1 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
3 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
6 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
8 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
9 `syscall' to `syscall_number'(-Wshadow).
11 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
13 * ada-lang.c (remove_extra_symbols): Rename `remove' to
16 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
18 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
21 2011-12-10 Doug Evans <dje@google.com>
23 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
24 debug_types_section. All uses updated.
25 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
26 to is_debug_types_section.
28 * python/py-auto-load.c (source_section_scripts): Call xfree
31 2011-12-10 Hui Zhu <teawater@gmail.com>
32 Yao Qi <yao@codesourcery.com>
34 * tracepoint.c (start_tracing): Clear `inserted' flag.
36 2011-12-10 Hui Zhu <teawater@gmail.com>
38 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
40 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
42 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
45 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
47 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
48 `marker' variables to `sal2' and `tpmarker' respectively
51 2011-12-09 Andrew Pinski <apinski@cavium.com>
53 * linespec.c (hash_address_entry): Use iterative_hash_object on each
54 field rather than the struct itself.
56 2011-12-09 Tom Tromey <tromey@redhat.com>
58 * breakpoint.c (compare_breakpoints): New function.
59 (clear_command): Remove duplicate breakpoints. Properly clean
62 2011-12-08 Maciej W. Rozycki <macro@mips.com>
63 Maciej W. Rozycki <macro@codesourcery.com>
65 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
66 address chunks retrieved from decoded lui/addiu pairs.
68 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
70 * mips-tdep.c (extended_offset): Correct calculation.
71 (unpack_mips16): Correct bitfield positions used for extraction
72 of the immediate argument; fix sign-extension of same.
73 (extended_mips16_next_pc): Correct B instruction's offset
74 calculation. Correct register decoding of the BEQZ and BNEZ
75 as well as jump-register instructions. Handle compact jumps.
77 2011-12-08 Tom Tromey <tromey@redhat.com>
79 * objfiles.h (struct objfile): Remove obsolete comment.
80 * objfiles.c (build_objfile_section_table): Remove obsolete
83 2011-12-07 Stan Shebs <stan@codesourcery.com>
85 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
86 maintainer of the tic6x target.
88 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
90 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
91 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
92 (arm_deal_with_atomic_sequence_raw): Likewise.
93 (arm_deal_with_atomic_sequence): Likewise.
94 (arm_software_single_step): Call it.
95 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
97 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
99 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
101 * s390-tdep.h: Likewise.
103 2011-12-07 Tristan Gingold <gingold@adacore.com>
105 * machoread.c (macho_symtab_read): Do not consider N_OPT as
106 a debugging stab. Improve complaint message.
108 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
110 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
111 load adjustment if still within the prologue.
113 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
115 * mips-tdep.c (mips32_next_pc): Fix floating point condition
118 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
120 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
121 of BLTZ* and BGEZ* instructions.
123 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
125 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
126 performed to determine whether an address refers to standard
128 (mips16_next_pc): Use mips_pc_is_mips16 instead of
131 2011-12-06 Pedro Alves <pedro@codesourcery.com>
133 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
134 (breakpoint_xfer_memory): ... this. Change prototype. Handle
136 * breakpoint.h (breakpoint_restore_shadows): Delete.
137 (breakpoint_xfer_memory): Declare.
138 * mem-break.c (default_memory_insert_breakpoint)
139 (default_memory_remove_breakpoint): Use target_write_raw_memory.
140 (memory_xfer_partial): Rename to ...
141 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
143 (memory_xfer_partial): New.
144 (target_write_raw_memory): New.
145 * target.h (target_write_raw_memory): New.
147 2011-12-06 Doug Evans <dje@google.com>
149 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
151 2011-12-06 Joel Brobecker <brobecker@acacore.com>
153 * language.h (struct language_defn): Add new component
154 la_symbol_name_compare.
155 * symfile.h (struct quick_symbol_functions): Update the profile
156 of parameter "name_matcher" for the expand_symtabs_matching
157 method. Update the documentation accordingly.
158 * ada-lang.h (ada_name_for_lookup): Add declaration.
159 * ada-lang.c (ada_name_for_lookup): New function, extracted out
160 from ada_iterate_over_symbols.
161 (ada_iterate_over_symbols): Do not encode symbol name anymore.
162 (ada_expand_partial_symbol_name): Adjust profile.
163 (ada_language_defn): Add value for la_symbol_name_compare field.
164 * linespec.c: #include "ada-lang.h".
165 (iterate_name_matcher): Add language parameter. Replace call
166 to strcmp_iw by call to language->la_symbol_name_compare.
167 (decode_variable): Encode COPY if current language is Ada.
168 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
169 of name_matcher parameter. Adjust call to name_matcher.
170 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
171 (expand_partial_symbol_names): Update profile of parameter "fun".
172 * psymtab.h (expand_partial_symbol_names): Update profile of
174 * symtab.c (demangle_for_lookup): Update function documentation.
175 (search_symbols_name_matches): Add language parameter.
176 (expand_partial_symbol_name): Likewise.
177 * c-lang.c (c_language_defn, cplus_language_defn)
178 (asm_language_defn, minimal_language_defn): Add value for
179 la_symbol_name_compare field.
180 * d-lang.c (d_language_defn): Likewise.
181 * f-lang.c (f_language_defn): Ditto.
182 * jv-lang.c (java_language_defn): Ditto.
183 * m2-lang.c (m2_language_defn): Ditto.
184 * objc-lang.c (objc_language_defn): Ditto.
185 * opencl-lang.c (opencl_language_defn): Ditto.
186 * p-lang.c (pascal_language_defn): Ditto.
187 * language.c (unknown_language_defn, auto_language_defn)
188 (local_language_defn): Ditto.
190 2011-12-06 Tom Tromey <tromey@redhat.com>
192 * linespec.c (iterate_over_all_matching_symtabs): Use
193 LA_ITERATE_OVER_SYMBOLS.
194 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
195 (find_function_symbols, decode_variable): Remove Ada special
197 * language.h (struct language_defn) <la_iterate_over_symbols>: New
199 (LA_ITERATE_OVER_SYMBOLS): New macro.
200 * language.c (unknown_language_defn, auto_language_defn)
201 (local_language_defn): Update.
202 * c-lang.c (c_language_defn, cplus_language_defn)
203 (asm_language_defn, minimal_language_defn): Update.
204 * d-lang.c (d_language_defn): Update.
205 * f-lang.c (f_language_defn): Update.
206 * jv-lang.c (java_language_defn): Update.
207 * m2-lang.c (m2_language_defn): Update.
208 * objc-lang.c (objc_language_defn): Update.
209 * opencl-lang.c (opencl_language_defn): Update.
210 * p-lang.c (pascal_language_defn): Update.
211 * ada-lang.c (ada_iterate_over_symbols): New function.
212 (ada_language_defn): Update.
214 2011-12-06 Tom Tromey <tromey@redhat.com>
215 Joel Brobecker <brobecker@acacore.com>
217 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
218 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
219 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
220 PR shlibs/8929, PR shlibs/7393:
221 * python/py-type.c (compare_maybe_null_strings): Rename from
223 (check_types_equal): Update.
224 * utils.c (compare_strings): New function.
225 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
227 * tracepoint.c (scope_info): Update.
228 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
229 * symtab.h (iterate_over_minimal_symbols)
230 (iterate_over_some_symtabs, iterate_over_symtabs)
231 (find_pcs_for_symtab_line, iterate_over_symbols)
232 (demangle_for_lookup): Declare.
233 (expand_line_sal): Remove.
234 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
235 (lookup_symtab_callback): New functions.
236 (lookup_symtab): Rewrite.
237 (demangle_for_lookup): New function, extract from
238 lookup_symbol_in_language.
239 (lookup_symbol_in_language): Use it.
240 (iterate_over_symbols): New function.
241 (find_line_symtab): Update.
242 (find_pcs_for_symtab_line): New functions.
243 (find_line_common): Add 'start' argument.
244 (decode_line_spec): Update. Change argument to 'flags', change
246 (append_expanded_sal): Remove.
247 (append_exact_match_to_sals): Remove.
248 (expand_line_sal): Remove.
249 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
251 <map_symtabs_matching_filename>: New field.
252 * stack.c (func_command): Only look in the current program space.
253 Use DECODE_LINE_FUNFIRSTLINE.
254 * source.c (line_info): Set pspace on sal. Check program space in
255 the loop. Use DECODE_LINE_LIST_MODE.
256 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
257 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
258 * python/python.c (gdbpy_decode_line): Update.
259 * psymtab.c (partial_map_expand_apply): New function.
260 (partial_map_symtabs_matching_filename): Rename from
261 lookup_partial_symbol. Update arguments.
262 (lookup_symtab_via_partial_symtab): Remove.
263 (psym_functions): Update.
264 * objc-lang.h (parse_selector, parse_method): Don't declare.
266 * objc-lang.c (parse_selector, parse_method): Now static.
267 (find_methods): Change arguments. Fill in a vector of symbol
269 (uniquify_strings): New function.
270 (find_imps): Change arguments.
271 * minsyms.c (iterate_over_minimal_symbols): New function.
272 * linespec.h (enum decode_line_flags): New.
273 (struct linespec_sals): New.
274 (struct linespec_result) <canonical>: Remove.
275 <pre_expanded, addr_string, sals>: New fields.
276 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
277 (decode_line_full): Declare.
278 (decode_line_1): Update.
279 * linespec.c (struct address_entry, struct linespec_state, struct
280 collect_info): New types.
281 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
282 (eq_address_entry, maybe_add_address): New functions.
283 (total_number_of_methods): Remove.
284 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
286 (find_methods): Change arguments. Don't canonicalize input.
288 (add_matching_methods, add_constructors)
289 (build_canonical_line_spec): Remove.
290 (filter_results, convert_results_to_lsals): New functions.
291 (decode_line_2): Change arguments. Rewrite for new data
293 (decode_line_internal): Rename from decode_line_1. Change
294 arguments. Add cleanups. Update for new data structures.
295 (linespec_state_constructor, linespec_state_destructor)
296 (decode_line_full, decode_line_1): New functions.
297 (decode_indirect): Change arguments. Update.
298 (locate_first_half): Use skip_spaces.
299 (decode_objc): Change arguments. Update for new data structures.
301 (decode_compound): Change arguments. Add cleanups. Remove
302 fallback code, replace with error.
303 (struct decode_compound_collector): New type.
304 (collect_one_symbol): New function.
305 (lookup_prefix_sym): Change arguments. Update.
306 (compare_symbol_name, add_all_symbol_names_from_pspace)
307 (find_superclass_methods ): New functions.
308 (find_method): Rewrite.
309 (struct symtab_collector): New type.
310 (add_symtabs_to_list, collect_symtabs_from_filename): New
312 (symtabs_from_filename): Change API. Rename from
313 symtab_from_filename.
314 (collect_function_symbols): New function.
315 (find_function_symbols): Change API. Rename from
316 find_function_symbol. Rewrite.
317 (decode_all_digits): Change arguments. Rewrite.
318 (decode_dollar): Change arguments. Use decode_variable.
319 (decode_label): Change arguments. Rewrite.
320 (collect_symbols): New function.
321 (minsym_found): Change arguments. Rewrite.
322 (check_minsym, search_minsyms_for_name)
323 (add_matching_symbols_to_info): New function.
324 (decode_variable): Change arguments. Iterate over all symbols.
325 (symbol_found): Remove.
326 (symbol_to_sal): New function.
327 (init_linespec_result, destroy_linespec_result)
328 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
330 (decode_digits_list_mode, decode_digits_ordinary): New functions.
331 * dwarf2read.c (dw2_map_expand_apply): New function.
332 (dw2_map_symtabs_matching_filename): Rename from
333 dw2_lookup_symtab. Change arguments.
334 (dwarf2_gdb_index_functions): Update.
335 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
336 * defs.h (compare_strings): Declare.
337 * cli/cli-cmds.c (compare_strings): Move to utils.c.
338 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
340 (compare_symtabs, filter_sals): New functions.
341 * breakpoint.h (struct bp_location) <line_number, source_file>:
343 (struct breakpoint) <line_number, source_file>: Remove.
345 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
346 (momentary_breakpoint_from_master, add_location_to_breakpoint):
347 Update for changes to locations.
348 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
350 (create_breakpoint_sal): Add 'filter' argument.
351 (remove_sal, expand_line_sal_maybe): Remove.
352 (create_breakpoints_sal): Remove 'sals' argument. Handle
353 pre-expanded sals and the filter.
354 (parse_breakpoint_sals): Use decode_line_full.
355 (check_fast_tracepoint_sals): Use get_sal_arch.
356 (create_breakpoint): Create a linespec_sals. Update.
357 (break_range_command): Use decode_line_full. Update.
358 (until_break_command): Update.
359 (clear_command): Update match conditions for linespec.c changes.
360 Use DECODE_LINE_LIST_MODE.
361 (say_where): Update for changes to locations.
362 (bp_location_dtor): Free 'source_file'.
363 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
364 (update_static_tracepoint): Update for changes to locations.
365 (update_breakpoint_locations): Disable ranged breakpoint if too
366 many locations match. Update.
367 (addr_string_to_sals): Use decode_line_full. Resolve all sal
369 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
370 (decode_line_spec_1): Update. Change argument name to 'flags',
371 change interpretation.
372 * block.h (block_containing_function): Declare.
373 * block.c (block_containing_function): New function.
374 * skip.c (skip_function_command): Update.
375 (skip_re_set): Update.
376 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
377 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
380 2011-12-06 Tom Tromey <tromey@redhat.com>
382 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
383 breakpoint's pspace to be NULL.
384 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
385 * breakpoint.c (init_raw_breakpoint): Conditionally set
387 (init_breakpoint_sal): Don't set breakpoint's pspace.
388 (prepare_re_set_context): Conditionally switch program space.
389 (addr_string_to_sals): Check executing_startup on location's
392 2011-12-06 Tom Tromey <tromey@redhat.com>
394 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
395 * breakpoint.c (should_be_inserted): Explicitly check if program
396 space is executing startup.
397 (describe_other_breakpoints): Update.
398 (disable_breakpoints_before_startup): Change executing_startup
399 earlier. Remove loop.
400 (enable_breakpoints_after_startup): Likewise.
401 (init_breakpoint_sal): Don't use bp_startup_disabled.
402 (create_breakpoint): Don't use bp_startup_disabled.
403 (update_global_location_list): Use should_be_inserted.
404 (bkpt_re_set): Update.
406 2011-12-06 Tom Tromey <tromey@redhat.com>
408 * python/lib/gdb/command/pretty_printers.py
409 (InfoPrettyPrinter.invoke1): Remove extra double quote.
411 2011-12-06 Tom Tromey <tromey@redhat.com>
415 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
417 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
418 (S390_LAST_BREAK_REGNUM): Likewise.
419 (S390_SYSTEM_CALL_REGNUM): Likewise.
420 (S390_NUM_REGS): Update.
422 (s390_regmap_last_break): Add declaration.
423 (s390x_regmap_last_break): Likewise.
424 (s390_regmap_system_call): Likewise.
426 (tdesc_s390_linux32v1): Add declaration.
427 (tdesc_s390_linux32v2): Likewise.
428 (tdesc_s390_linux64v1): Likewise.
429 (tdesc_s390_linux64v2): Likewise.
430 (tdesc_s390x_linux64v1): Likewise.
431 (tdesc_s390x_linux64v2): Likewise.
433 * s390-tdep.c: Include new target description files
434 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
435 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
436 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
437 (s390_cannot_store_register): New function.
438 (s390_write_pc): Likewise.
439 (s390_dwarf_regmap): Add fields for new registers.
440 (s390_regmap_gregset): Likewise.
441 (s390x_regmap_gregset): Likewise.
442 (s390_regmap_fpregset): Likewise.
443 (s390_regmap_upper): Likewise.
444 (s390_regmap_last_break): New variable.
445 (s390x_regmap_last_break): Likewise.
446 (s390_regmap_system_call): Likewise.
447 (s390_last_break_regset): Likewise.
448 (s390x_last_break_regset): Likewise.
449 (s390_system_call_regset): Likewise.
450 (s390_upper_regset_sections): Rename to ...
451 (s390_linux64_regset_sections): ... this.
452 (s390_linux32_regset_sections): New variable.
453 (s390x_linux64_regset_sections): Likewise.
454 (s390_linux32v1_regset_sections): Likewise.
455 (s390_linux32v2_regset_sections): Likewise.
456 (s390_linux64v1_regset_sections): Likewise.
457 (s390_linux64v2_regset_sections): Likewise.
458 (s390x_linux64v1_regset_sections): Likewise.
459 (s390x_linux64v2_regset_sections): Likewise.
460 (s390_regset_from_core_section): Handle .reg-s390-last-break and
461 .reg-s390-system-call core file sections.
462 (s390_core_read_description): Check for presence of
463 .reg-s390-last-break and .reg-s390-system-call core file
464 sections and return appropriate target description.
465 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
466 "last_break" and "system_call" in target description. Install
467 appropriate gdbarch_core_regset_sections array.
468 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
469 (_initialize_s390_tdep): Initialize additional target descriptions.
471 * s390-nat.c: Include "elf/common.h".
472 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
473 (have_regset_last_break): New static variable.
474 (have_regset_system_call): Likewise.
475 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
476 (s390_native_collect): Likewise.
477 (fetch_regset, store_regset, check_regset): New functions.
478 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
479 and S390_SYSTEM_CALL_REGNUM.
480 (s390_linux_store_inferior_registers): Likewise.
481 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
482 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
484 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
485 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
486 (s390-linux32v1-expedite): Define.
487 (s390-linux32v2-expedite): Likewise.
488 (s390-linux64v1-expedite): Likewise.
489 (s390-linux64v2-expedite): Likewise.
490 (s390x-linux64v1-expedite): Likewise.
491 (s390x-linux64v2-expedite): Likewise.
493 * features/s390-linux32.xml: Add orig_r2 register.
494 * features/s390-linux64.xml: Likewise.
495 * features/s390x-linux64.xml: Likewise.
496 * features/s390-linux32v1.xml: New file.
497 * features/s390-linux32v2.xml: Likewise.
498 * features/s390-linux64v1.xml: Likewise.
499 * features/s390-linux64v2.xml: Likewise.
500 * features/s390x-linux64v1.xml: Likewise.
501 * features/s390x-linux64v2.xml: Likewise.
503 * features/s390-linux32.c: Regenerate.
504 * features/s390-linux64.c: Likewise.
505 * features/s390x-linux64.c: Likewise.
506 * features/s390-linux32v1.c: New generated file.
507 * features/s390-linux32v2.c: Likewise.
508 * features/s390-linux64v1.c: Likewise.
509 * features/s390-linux64v2.c: Likewise.
510 * features/s390x-linux64v1.c: Likewise.
511 * features/s390x-linux64v2.c: Likewise.
513 * regformats/s390-linux32.dat: Regenerate.
514 * regformats/s390-linux64.dat: Regenerate.
515 * regformats/s390x-linux64.dat: Regenerate.
516 * regformats/s390-linux32v1.dat: New generated file.
517 * regformats/s390-linux32v2.dat: Likewise.
518 * regformats/s390-linux64v1.dat: Likewise.
519 * regformats/s390-linux64v2.dat: Likewise.
520 * regformats/s390x-linux64v1.dat: Likewise.
521 * regformats/s390x-linux64v2.dat: Likewise.
523 2011-12-05 Pedro Alves <pedro@codesourcery.com>
525 * linux-nat.c (resume_stopped_resumed_lwps): Call
528 2011-12-05 Pedro Alves <pedro@codesourcery.com>
530 * breakpoint.c: Include record.h.
531 (breakpoints_always_inserted_mode): Return false when the record
534 2011-12-05 Pedro Alves <pedro@codesourcery.com>
536 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
537 Reinstate perror_with_name call on ptrace error. Remove #if 0.
538 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
539 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
541 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
543 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
546 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
548 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
550 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
552 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
555 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
557 Fix compilation --without-expat.
558 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
560 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
562 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
563 Jan Kratochvil <jan.kratochvil@redhat.com>
565 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
566 * features/library-list-svr4.dtd: New file.
567 * remote.c (PACKET_qXfer_libraries_svr4): New.
568 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
569 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
570 * solib-svr4.c (struct svr4_library_list): New.
571 [HAVE_LIBEXPAT]: Include xml-support.h.
572 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
573 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
574 [HAVE_LIBEXPAT] (svr4_library_list_children)
575 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
576 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
577 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
578 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
579 (svr4_read_so_list): Extend the corruption message by addresses.
580 (svr4_current_sos): New variable library_list, call
581 svr4_current_sos_via_xfer_libraries.
582 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
584 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
587 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
588 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
590 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
593 * dwarf2read.c (process_psymtab_comp_unit): Set
594 PSYMTABS_ADDRMAP_SUPPORTED.
595 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
596 validity. New field psymtabs_addrmap_supported.
597 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
598 psymtabs_addrmap_supported.
599 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
600 !PSYMTABS_ADDRMAP_SUPPORTED.
601 (dump_psymtab, maintenance_info_psymtabs): Print also
602 psymtabs_addrmap_supported.
604 2011-12-01 Doug Evans <dje@google.com>
606 * python/py-type.c (type_object_methods): Fix "array" doc string.
608 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
610 * source.c (print_source_lines_base): Fix missing braces on else
611 clause leading to additional output.
613 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
615 * s390-nat.c (SUBOFF): Remove.
616 (s390_native_supply, s390_native_collect): New functions.
617 (supply_gregset, supply_fpregset): Use s390_native_supply.
618 (fill_gregset, fill_fpregset): Use s390_native_collect.
620 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
621 (s390_unwind_pseudo_register): New function.
622 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
623 registers instead of PC and CC.
624 (s390_backchain_frame_unwind_cache): Likewise.
625 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
627 (s390_trad_frame_prev_register): New function.
628 (s390_frame_prev_register): Use it.
629 (s390_sigtramp_frame_prev_register): Likewise.
630 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
631 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
632 special callback to unwind any pseudo.
634 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
635 * features/s390-core64.xml: Likewise.
636 * features/s390x-core64.xml: Likewise.
637 * features/s390-linux32.c: Regenerate.
638 * features/s390-linux64.c: Likewise.
639 * features/s390x-linux64.c: Likewise.
641 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
643 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
645 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
647 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
648 instruction. Add more diagnostic output.
650 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
652 * MAINTAINERS (Write After Approval): Add myself to the list.
654 2011-11-29 Sanjoy Das <sdas@igalia.com>
656 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
657 (jit_bfd_try_read_symtab): Fix comments.
659 2011-11-28 DJ Delorie <dj@redhat.com>
661 * NEWS: Mention RL78 simulator.
663 2011-11-28 Joel Brobecker <brobecker@adacore.com>
665 * symfile.h (struct quick_symbol_functions): Fix the documentation
666 of field map_matching_symbols, as symbols are sorted using
667 strcmp_iw_ordered, not strcmp_iw.
669 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
671 * symfile.h (struct quick_symbol_functions): Update the
672 documentation for field map_matching_symbols.
674 2011-11-28 Joel Brobecker <brobecker@adacore.com>
676 * ada-lang.c (compare_names): Fix wrong return value in case
677 string1 starts with the same contents as string2, followed
678 by an underscore that do not start a symbol name suffix.
680 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
685 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
686 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
687 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
689 * python/py-type.c (typy_strip_typedefs): Ditto.
690 (typy_legacy_template_argument): Ditto.
691 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
692 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
694 2011-11-27 Joel Brobecker <brobecker@acacore.com>
696 * remote.c (remote_get_tracepoint_status): Delete addrbuf
697 local variable. Avoid use of sprintf_vma.
699 2011-11-27 Sanjoy Das <sdas@igalia.com>
701 Fix regression in jit.exp.
702 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
703 (jit_register_code): Set the jit_objfile_data field to the correct
706 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
708 * alpha-tdep.c (br_opcode): New.
709 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
710 (alpha_deal_with_atomic_sequence): New function.
711 (alpha_gdbarch_init): Handle single stepping of atomic sequences
712 with alpha_deal_with_atomic_sequence.
714 2011-11-24 Tristan Gingold <gingold@adacore.com>
716 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
717 fields. Add oso_sym, end_sym and nbr_syms.
718 (macho_register_oso): Change interface.
719 (macho_symtab_add_minsym): New function.
720 (macho_symtab_read): Rewritten.
721 (get_archive_prefix_len): Remove trailing blanks.
722 (oso_el_compare_name): Add comment.
723 (struct macho_sym_hash_entry): New structure.
724 (macho_relocate_common_syms): Remove.
725 (macho_sym_hash_newfunc): New function.
726 (macho_resolve_oso_sym_with_minsym): Likewise.
727 (macho_add_oso_symfile): Rewritten.
728 (macho_symfile_read_all_oso): Remove trailing blanks.
729 Adjust code to free oso vector.
730 (macho_symfile_read): Likewise.
731 Move code to initialize minimal symbol
733 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
735 * mips-tdep.c (extended_offset): Fix formatting.
737 2011-11-23 Doug Evans <dje@google.com>
739 * dwarf2read.c (dw2_lookup_symtab): Add comment.
740 (dw2_expand_symtabs_with_filename): Ditto.
741 (dw2_expand_symtabs_matching): Ditto.
742 (dw2_map_symbol_filenames): Ditto.
744 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
746 * ada-lang.c (assign_aggregate): Minor reformatting.
748 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
750 * ada-lang.c (assign_aggregate): Remove declaration of local
751 variable `i' which is shadowing another variable with the same
752 name declared in the outer scope.
754 2011-11-23 Joel Brobecker <brobecker@adacore.com>
756 * ada-lang.c (get_base_type): Renames base_type. Adjust all
757 calls throughout this file.
759 2011-11-23 Joel Brobecker <brobecker@adacore.com>
761 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
764 2011-11-22 Tom Tromey <tromey@redhat.com>
767 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
768 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
769 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
770 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
771 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
772 (print_it_catch_syscall, print_it_catch_exec)
773 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
774 (bpstat_print): Add 'kind' argument. Handle
775 TARGET_WAITKIND_LOADED.
776 * infrun.c (normal_stop): Update for bpstat_print change. Don't
777 handle TARGET_WAITKIND_LOADED here.
778 * breakpoint.h (bpstat_print): Update.
780 2011-11-22 Tom Tromey <tromey@redhat.com>
782 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
784 2011-11-22 Tom Tromey <tromey@redhat.com>
786 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
787 Use static_assert to check the size of
788 async_reason_string_lookup.
789 * common/gdb_assert.h (static_assert): New macro.
791 2011-11-22 Alan Modra <amodra@gmail.com>
793 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
794 destination calculation. Don't expect >> to sign extend. Don't
795 add a break if branch lands inside the sequence anywhere.
797 2011-11-21 Keith Seitz <keiths@redhat.com>
799 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
800 -var-evaluate-expression of an enumeration and fix expected result.
801 * gdb.mi/mi2-varvdisplay.exp: Likewise.
803 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
805 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
806 the case where osdata->items is empty. Rename column names to a
807 canonical form to avoid problems with unusual column names.
809 2011-11-21 Yao Qi <yao@codesourcery.com>
811 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
813 2011-11-20 Stan Shebs <stan@codesourcery.com>
815 * NEWS: Mention tracepoint additions.
816 * breakpoint.h (struct tracepoint): New field traceframe_usage.
817 * breakpoint.c (print_one_breakpoint_location): Identify
818 tracepoints as such when reporting hit counts, report
820 (create_tracepoint_from_upload): Copy status info.
821 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
822 add fields user_name, notes, start_time, stop_time.
823 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
824 * tracepoint.c (trace_user): New global.
825 (trace_notes): New global.
826 (trace_stop_notes): New global.
827 (start_tracing): Add argument and trace note handling.
828 (stop_tracing): Ditto.
829 (trace_start_command): Add notes argument.
830 (trace_stop_command): Ditto.
831 (trace_status_command): Report additional status info.
832 (trace_status_mi): Similarly.
833 (trace_save): Update, record tracepoint status.
834 (set_disconnected_tracing): Call target method directly.
835 (send_disconnected_tracing_value): Remove.
836 (set_trace_user): New function.
837 (set_trace_notes): New function.
838 (set_trace_stop_notes): New function.
839 (parse_trace_status): Handle additional status.
840 (parse_tracepoint_status): New function.
841 (parse_tracepoint_definition): Call it.
842 (tfile_get_tracepoint_status): New function.
843 (init_tfile_ops): Use it.
844 (_initialize_tracepoint): Add new setshows.
845 * target.h (struct target_ops): New methods to_get_tracepoint_status
846 and to_set_trace_notes.
847 (target_get_tracepoint_status): New macro.
848 (target_set_trace_notes): New macro.
849 * target.c (update_current_target): Add new methods.
850 * remote.c (remote_get_tracepoint_status): New function.
851 (remote_set_trace_notes): New function.
852 (init_remote_ops): Add them.
853 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
854 (mi_cmd_trace_stop): Ditto.
856 2011-11-20 Sanjoy Das <sdas@igalia.com>
858 * jit.c: Include regcache.h.
859 (jit_gdbarch_data, jit_frame_unwind): New static variables.
860 (jit_unwind_reg_set_impl, free_reg_value_impl)
861 (jit_unwind_reg_get_impl, jit_frame_sniffer)
862 (jit_frame_unwind_stop_reason, jit_frame_this_id)
863 (jit_frame_prev_register, jit_dealloc_cache)
864 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
865 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
866 jit_prepend_unwinder.
867 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
869 2011-11-20 Sanjoy Das <sdas@igalia.com>
871 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
872 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
873 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
874 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
875 (finalize_symtab, jit_object_close_impl)
876 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
877 (free_objfile_data): New functions.
878 (_initialize_jit): Register jit_objfile_data with a proper cleanup
881 2011-11-20 Sanjoy Das <sdas@igalia.com>
883 * jit.c: Include gdb-dlfcn.h.
884 (loaded_jit_reader, reader_init_fn_sym): New static variables.
885 (jit_reader_load, jit_reader_load_command)
886 (jit_reader_unload_command): New functions.
887 (_initialize_jit): Add commands "jit-reader-load" and
890 2011-11-20 Sanjoy Das <sdas@igalia.com>
892 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
893 * config.in: Add new #define HAVE_LIBDL.
894 * configure.ac: Add check for -ldl.
895 * configure: Re-generated by autoconf.
896 * gdb-dlfcn.c: New file.
897 * gdb-dlfcn.h: New file.
899 2011-11-20 Sanjoy Das <sdas@igalia.com>
901 * config.in: Add new #defines: JIT_READER_DIR and
902 JIT_READER_DIR_RELOCATABLE.
903 * configure.ac: New GDB directory entry for jit-reader-dir.
904 * configure: Re-generated by autoconf.
905 * jit.c: New static variable: const char *jit_reader_dir.
906 (_initialize_jit): Relocate jit_reader_dir.
908 2011-11-20 Sanjoy Das <sdas@igalia.com>
910 * Makefile.in: Add jit-reader.h as a header. Have it installed in
912 * configure.ac: Generate a correct value for TARGET_PTR for
913 jit-reader.h. Tell configure to generate jit-reader.h from
915 * configure: Re-generated by autoconf.
916 * jit-reader.in: New file.
917 * jit.c: Include jit-reader.h.
919 2011-11-20 Sanjoy Das <sdas@igalia.com>
921 * MAINTAINERS (Write After Approval): Add myself to the list.
923 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
925 * findvar.c (read_frame_register_value): Respect value_offset
926 of the register value. Remove big-endian special case.
928 2011-11-18 Tom Tromey <tromey@redhat.com>
931 * remote.c (putpkt_for_catch_errors): New function.
932 (remote_kill): Use it.
934 2011-11-18 Yao Qi <yao@codesourcery.com>
936 * breakpoint.c (create_breakpoint): Produce query message according to
938 Allocate tracepoint per correct type.
939 Don't check SALs for pending fast tracepoints.
940 * tracepoint.c (process_tracepoint_on_disconnect): New.
941 (disconnect_tracing): Call process_tracepoint_on_disconnect.
943 2011-11-18 Yao Qi <yao@codesourcery.com>
945 * breakpoint.c (install_breakpoint): Add one more parameter so that
946 update_global_location_list is called conditionally.
947 (create_fork_vfork_event_catchpoint): Update.
948 (create_syscall_event_catchpoint): Update.
949 (create_breakpoint_sal): Update.
950 (create_breakpoint_sal): Update. Call do_cleanups before
952 * ada-lang.c (create_ada_exception_catchpoint): Update.
953 * breakpoint.h (install_breakpoint): Update declaration.
955 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
957 * spu-tdep.c (spu_return_value): Fix handling of
958 TYPE_CALLING_CONVENTION annotation.
960 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
962 * skip.c (skip_function_command): Work around uninitialized
965 2011-11-16 David S. Miller <davem@davemloft.net>
967 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
968 'tv_usec' to long for printf since these fields have a type which
971 2011-11-15 Doug Evans <dje@google.com>
973 * buildsym.c (add_symbol_to_list): Delete outdated comment.
975 2011-11-15 Paul Koning <paul_koning@dell.com>
977 * python/py-type.c (typy_get_composite): New function.
978 (typy_nonzero): New function.
979 (typy_values): Rename from typy_fields.
980 (typy_fields): New function.
981 (typy_length): Raise exception if not struct, union, or enum type.
982 (typy_getitem): Ditto.
983 (typy_has_key): Ditto.
984 (typy_make_iter): Ditto.
986 2011-11-15 Doug Evans <dje@google.com>
988 * NEWS: Mention new parameter basenames-may-differ.
989 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
990 ! basenames_may_differ.
991 * psymtab.c (lookup_partial_symtab): Ditto.
992 * symtab.c (lookup_symtab): Ditto.
993 (basenames_may_differ): New global.
994 (_initialize_symtab): New parameter basenames-may-differ.
995 * symtab.h (basenames_may_differ): Declare.
997 2011-11-15 Pedro Alves <pedro@codesourcery.com>
998 Luis Machado <lgustavo@codesourcery.com>
1000 * auxv.c: Include observer.h.
1001 (auxv_inferior_data_cleanup): New.
1002 (invalidate_auxv_cache_inf): New.
1003 (invalidate_auxv_cache): New.
1004 (get_auxv_inferior_data): New.
1005 (auxv_inferior_data): New static global.
1006 (auxv_info): New structure.
1007 (target_auxv_search): Use get_auxv_inferior_data instead of
1008 target_read_alloc and don't free cached buffers.
1009 (fprint_target_auxv): Likewise
1010 (_initialize_auxv): Register per-inferior auxv cache and register
1011 observers to invalidate auxv cache when needed.
1013 2011-11-14 Doug Evans <dje@google.com>
1015 Make "!" an alias for "shell".
1016 * NEWS: Add mention.
1017 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1018 adding "!" command, always add it.
1019 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1020 command of length one.
1022 2011-11-14 Stan Shebs <stan@codesourcery.com>
1023 Kwok Cheung Yeung <kcy@codesourcery.com>
1025 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1026 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1027 the minimum instruction size for fast tracepoints.
1028 * target.h (struct target_ops): Add new method
1029 to_get_min_fast_tracepoint_insn_len.
1030 (target_get_min_fast_tracepoint_insn_len): New.
1031 * target.c (update_current_target): Set up new target operation.
1032 * remote.c (remote_write_bytes_aux): Fix typo.
1033 (remote_get_min_fast_tracepoint_insn_len): New.
1034 (init_remote_ops): Initialize new field.
1036 2011-11-14 Tom Tromey <tromey@redhat.com>
1038 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1039 (encode_actions): Likewise.
1041 2011-11-14 Yao Qi <yao@codesourcery.com>
1043 * remote.c (struct remote_state): <install_in_trace> new field.
1044 (PACKET_InstallInTrace): New enum value.
1045 (remote_install_in_trace_feature): Support InstallInTrace.
1046 (remote_supports_install_in_trace): Likewise.
1047 (remote_protocol_features): Likewise.
1048 (_initialize_remote): Likewise.
1049 (remote_can_download_tracepoint): New.
1050 * target.h (struct target): New field
1051 `to_can_download_tracepoint'.
1052 (target_can_download_tracepoint): New macro.
1053 * target.c (update_current_target): Update.
1054 * breakpoint.h (struct bp_location): Add comment on field
1056 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1058 (remove_breakpoints): Don't remove tracepoints.
1059 (tracepoint_locations_match ): New.
1060 (breakpoint_locations_match): Call it.
1061 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1062 (download_tracepoint_locations): New.
1063 (update_global_location_list): Call it.
1064 * tracepoint.c (find_matching_tracepoint): Delete.
1065 (find_matching_tracepoint_location): Renamed from
1066 find_matching_tracepoint. Return bp_location rather than
1068 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1069 tracepoint is found.
1071 2011-11-14 Yao Qi <yao@codesourcery.com>
1073 * target.h (struct target): <to_download_tracepoint> Change type
1074 of parameter from tracepoint to bp_location.
1075 * target.c (update_current_target): Update.
1076 * tracepoint.c (start_tracing): Update.
1077 * remote.c (remote_download_tracepoint): Remove loop for each location
1080 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1082 * i386-nat.c (i386_insert_hw_breakpoint): Call
1083 i386_update_inferior_debug_regs.
1084 (i386_remove_hw_breakpoint): Likewise.
1086 2011-11-14 Yao Qi <yao@codesourcery.com>
1088 * breakpoint.c (init_raw_breakpoint): Call
1089 add_location_to_breakpoint to replace duplicated code.
1090 (add_location_to_breakpoint): Adjust the breakpoint's
1091 address prior to allocating a location.
1093 2011-11-12 Matt Rice <ratmice@gmail.com>
1095 * macrocmd.c (macro_no_macro_info): New function.
1096 (macro_expand_command): Use macro_no_macro_info.
1097 (macro_expand_once_command): Ditto.
1098 (info_macro_command): Add argument processing,
1099 move info_definitions_command here.
1100 (_initialize_macrocmd): Remove info definitions command.
1101 Add arguments to info macro help text.
1102 * NEWS: Replace info definitions command with new info macro options.
1104 2011-11-11 Keith Seitz <keiths@redhat.com>
1107 * linespec.c (locate_first_half): Keep ':' if it looks
1108 like it could be part of a Windows path starting with
1111 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1113 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1114 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1116 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1118 * target.c (target_waitstatus_to_string): Handle
1119 TARGET_WAITKIND_NO_RESUMED.
1121 2011-11-10 Doug Evans <dje@google.com>
1123 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1125 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1126 (map_partial_symbol_filenames): Ditto. All callers updated.
1127 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1128 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1129 parameter need_fullname.
1131 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1132 * source.c (symtab_to_fullname): Ditto.
1134 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1135 * gdb-demangle.h: ... here. New file.
1136 * demangle.c: #include "gdb-demangle.h".
1137 (_initialize_demangler): Use initialize_file_ftype for prototype.
1138 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1139 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1141 * utils.c: Update. #include "gdb-demangle.h".
1142 * symtab.h (asm_demangle): Delete.
1143 (demangle): Move declaration next to use.
1144 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1145 * dwarf2read.c: #include "gdb-demangle.h".
1146 * gnu-v2-abi.c: Ditto.
1147 * jv-typeprint.c: Ditto.
1148 * mdebugread.c: Ditto.
1149 * p-typeprint.c: Ditto.
1150 * stabsread.c: Ditto.
1151 * printcmd.c: Ditto.
1152 (asm_demangle): Delete declaration.
1153 * tui/tui-stack.c: #include "gdb-demangle.h".
1155 * python/py-type.c (typy_fields_items): Call check_typedef.
1157 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1159 * findvar.c (read_frame_register_value): Read the correct bytes
1160 from registers on big-endian architectures.
1162 2011-11-10 Tom Tromey <tromey@redhat.com>
1164 * procfs.c (load_syscalls): Make a cleanup.
1165 (open_procinfo_files): fd==0 is ok.
1167 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1169 * procfs.c (iterate_over_mappings): Call do_cleanups before
1172 2011-11-09 Doug Evans <dje@google.com>
1174 * gdbtypes.c (check_typedef): Document that this function can
1177 2011-11-09 Tom Tromey <tromey@redhat.com>
1180 * valops.c (value_full_object): Return early if real type is
1181 smaller than the enclosing type.
1183 2011-11-08 Yao Qi <yao@codesourcery.com>
1185 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1187 2011-11-08 Meador Inge <meadori@codesourcery.com>
1189 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1190 register when the frame can't be determined.
1191 * arm-tdep.c (arm_analyze_prologue): Ditto.
1193 2011-11-07 Stan Shebs <stan@codesourcery.com>
1195 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1197 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1199 * infrun.c (handle_inferior_event): Minor reformatting.
1201 2011-11-05 Doug Evans <dje@google.com>
1203 * source.c (forget_cached_source_info_for_objfile): Move call to
1204 objfile->sf->qf->forget_cached_source_info outside of
1205 ALL_OBJFILE_SYMTABS loop.
1206 (forget_cached_source_info): Delete unused variable `s'.
1208 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 * i386-nat.c (dr_ref_count): Remove unused variable.
1212 2011-11-05 Doug Evans <dje@google.com>
1214 * main.c (captured_main): Set lim_at_start before calling
1215 make_command_stats_cleanup.
1217 2011-11-04 Doug Evans <dje@google.com>
1219 * utils.c: #include "timeval-utils.h".
1220 (cmd_stats): Rename start_time to start_cpu_time.
1221 New member start_wall_time.
1222 (report_command_stats): Report wall time.
1223 (make_command_stats_cleanup): Record start wall time.
1225 2011-11-04 Tom Tromey <tromey@redhat.com>
1227 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1229 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1231 * coff-pe-read.c: Include defs.h before bfd.h.
1233 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1237 * python/python.c (python_run_simple_file): Expand tilde in path.
1239 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1243 * python/py-type.c (typy_lookup_type): Do not return a type in
1244 an exception handler.
1246 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1247 Eli Zaretskii <eliz@gnu.org>
1249 * linux-nat.c (_initialize_linux_nat): Improve help
1250 for `info proc stat', `info proc status', `info proc cwd',
1251 `info proc cmdline' and `info proc exe'.
1253 2011-11-02 Stan Shebs <stan@codesourcery.com>
1255 String collection for tracepoints.
1256 * NEWS: Mention string collection.
1257 * common/ax.def (tracenz): New bytecode.
1258 * ax-gdb.h (trace_string_kludge): Declare.
1259 * ax-gdb.c: Include valprint.h and c-lang.h.
1260 (trace_string_kludge): New global.
1261 (gen_traced_pop): Add string case.
1262 (agent_command): Add string case.
1263 * tracepoint.h (decode_agent_options): Declare.
1264 * tracepoint.c: Include cli-utils.h.
1265 (decode_agent_options): New function.
1266 (validate_actionline): Call it.
1267 (encode_actions_1): Ditto.
1268 * target.h (struct target_ops): New method to_supports_string_tracing.
1269 (target_supports_string_tracing): New macro.
1270 * target.c (update_current_target): Add to_supports_string_tracing.
1271 * remote.c (struct remote_state): New field string_tracing.
1272 (remote_string_tracing_feature): New function.
1273 (remote_protocol_features): New feature tracenz.
1274 (remote_supports_string_tracing): New function.
1275 (init_remote_ops): Set to_supports_string_tracing.
1277 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1278 Jan Kratochvil <jan.kratochvil@redhat.com>
1280 * linux-nat.c: Include cli/cli-utils.h.
1281 (enum info_proc_what): New.
1282 (linux_nat_info_proc_cmd): Rename to ...
1283 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1284 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1285 status_f and stat_f from WHAT. Throw error on extra parameters.
1286 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1287 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1288 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1289 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1290 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1291 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1292 `info proc cmdline', `info proc exe' and `info proc all' as real
1293 subcommands of `info proc'.
1295 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1297 * Makefile.in: (SFILES): Add skip.c.
1298 (HFILES_NO_SRCDIR): Add skip.h.
1299 (COMMON_OBS): Add skip.o.
1300 * skip.h, skip.c: New.
1301 * breakpoint.h (set_default_breakpoint): Remove.
1302 (get_sal_arch): Declare.
1303 * breakpoint.c: Remove default_breakpoint_valid,
1304 default_breakpoint_address, default_breakpoint_symtab,
1305 default_breakpoint_line, default_breakpoint_pspace variables.
1306 (get_sal_arch): Make public.
1307 (set_default_breakpoint): Remove.
1308 (parse_breakpoint_sals, create_breakpoint, clear_command,
1309 decode_line_spec_1): Remove uses of default_breakpoint variables;
1310 replaced with function calls into stack.c.
1311 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1312 * cli/cli-cmds.c: Add skiplist.
1313 (init_cmd_lists): Initialize skiplist.
1314 (init_cli_cmds): Fix comment (classes of commands appear in
1315 alphabetical order).
1316 * infrun.c (handle_inferior_event): Add check that we don't step into
1317 a function whose pc is marked for skip.
1318 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1319 last_displayed_addr, last_displayed_symtab, last_displayed_line
1321 (set_last_displayed_sal): New static function.
1322 (print_frame_info): Switch call to set_default_breakpoint to call to
1323 set_last_displayed_sal.
1324 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1325 get_last_displayed_pspace, get_last_displayed_addr,
1326 get_last_displayed_symtab, get_last_displayed_line,
1327 get_last_displayed_sal): New public functions.
1328 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1329 get_last_displayed_pspace, get_last_displayed_addr,
1330 get_last_displayed_symtab, get_last_displayed_line,
1331 get_last_displayed_sal): Declare.
1333 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1335 * MAINTAINERS (Write After Approval): Add myself to the list.
1337 2011-10-29 Yao Qi <yao@codesourcery.com>
1339 * infcmd.c (disconnect_command): Call disconnect_tracing.
1341 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 * symtab.c (skip_prologue_sal): Code reformatting.
1346 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1350 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1353 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1355 * linux-nat.c (linux_nat_filter_event): Remove `options'
1356 parameter, and dead code that used it. If we're handling a
1357 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1358 in our lwp list, re-add it.
1359 (check_zombie_leaders): New.
1360 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1361 wait for children with WNOHANG, and always wait for all children.
1362 Don't check for no resumed children upfront. Simplify wait loop.
1363 Check for zombie thread group leaders after handling all wait
1364 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1365 unwaited-for children left.
1366 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1367 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1368 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1369 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1371 2011-10-28 Sterling Augustine <saugustine@google.com>
1373 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1374 * symtab.c (free_completion_list): New function.
1375 (do_free_completion_list): Likewise.
1376 (default_make_symbol_completion_list_break_on): New variable
1377 back_to. Call make_cleanup and discard_cleanups.
1378 (make_source_files_completion_list): Likewise.
1380 2011-10-28 Paul Koning <paul_koning@dell.com>
1382 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1383 * NEWS: Mention deep_items.
1385 2011-10-28 Alen Skondro <askondro@gmail.com>
1387 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1390 2011-10-27 Meador Inge <meadori@codesourcery.com>
1392 * MAINTAINERS (Write After Approval): Add myself to the list.
1394 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1396 * value.h (read_frame_register_value): Add declaration.
1397 * findvar.c (read_frame_register_value): New function.
1398 (value_from_register): Use read_frame_register_value
1399 instead of get_frame_register_value + value_contents_copy
1400 to get value contents.
1402 2011-10-27 Doug Evans <dje@google.com>
1404 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1405 source_script_from_stream if it may have been found on the search path.
1406 * python/py-auto-load.c (source_section_scripts): Pass full path to
1407 source_python_script_for_objfile.
1408 * python/python.c (source_python_script): Delete stream parameter.
1409 All callers updated.
1410 (source_python_script_for_objfile): Ditto.
1411 * python/python-internal.h (source_python_script_for_objfile): Update.
1412 * python/python.h (source_python_script): Update.
1414 2011-10-27 Tom Tromey <tromey@redhat.com>
1416 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1417 (ada_sals_for_line): Remove declarations.
1419 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1421 Move unwind reasons to an external .def file
1422 * frame.c (frame_stop_reason_string): Rewrite using
1423 unwind_stop_reasons.def.
1424 * frame.h (enum unwind_stop_reason): Likewise.
1425 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1426 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1427 constants for bound-checking.
1428 * unwind_stop_reasons.def: New file.
1429 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1430 instead of a distinct value.
1432 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1436 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1437 (convert_values_to_python): Return on Python tuple allocation
1438 failure. Return NULL on value conversion error.
1440 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1442 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1443 (bppy_set_task): Ditto.
1444 (bppy_delete_breakpoint): Ditto.
1445 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1446 (gdbpy_lookup_global_symbol): Ditto.
1447 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1448 * python/py-frame.c (frapy_is_valid): Ditto.
1449 (frame_info_to_frame_object): Ditto.
1450 * python/py-type.c (typy_lookup_type): Ditto.
1451 (typy_getitem): Ditto.
1452 (typy_has_key): Ditto.
1453 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1455 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1457 * gdbarch.h: Regenerate.
1459 2011-10-26 Meador Inge <meadori@codesourcery.com>
1461 * gdbarch.sh (function_list): Use 'pstring' when printing
1463 * gdbarch.c: Regenerate.
1465 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1467 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1468 and frame caches if PTID refers to all threads of a process.
1470 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1472 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1473 to create_breakpoint.
1475 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1477 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1478 (ppc_sysv_abi_push_dummy_call): Use it.
1479 (do_ppc_sysv_return_value): Likewise.
1480 (ppc64_sysv_abi_push_dummy_call): Likewise.
1481 (ppc64_sysv_abi_return_value): Likewise.
1483 2011-10-26 Paul Koning <paul_koning@dell.com>
1485 * python/lib/gdb/types.py (deepitems): New function.
1487 2011-10-25 Paul Koning <paul_koning@dell.com>
1491 * python/py-value.c (value_to_value_object): Remove fetching of
1492 the value if it was lazy.
1493 (valpy_get_is_lazy): New function.
1494 (valpy_fetch_lazy): New function.
1496 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1498 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1499 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1501 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1503 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1504 event, in non-stop, if not stopping, make sure the new lwp has
1505 last_resume_kind set to resume_continue. Assert that when we're
1506 resuming the new lwp, its last_resume_kind is resume_continue.
1508 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1510 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1511 already set when marking the event thread as not executing in
1514 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1516 * infrun.c (handle_inferior_event): Add debug output for
1517 TARGET_WAITKIND_NO_HISTORY.
1519 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1521 * NEWS: Move set/show extended-prompt to "New Options". Expand
1522 description. Fix typos.
1524 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1528 * python/py-param.c (call_doc_function): Correctly deference on
1531 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1533 * ada-tasks.c (print_ada_task_info): Fix computation of
1534 number of tasks displayed in command output.
1536 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1537 Ulrich Weigand <uweigand@de.ibm.com>
1539 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1540 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1541 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1542 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1545 2011-10-20 Cary Coutant <ccoutant@google.com>
1547 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1549 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1550 flag. Adjust all callers.
1551 (process_psymtab_comp_unit): Remove adjustment for type section.
1553 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1555 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1556 arguments by adding OBJFILE. Instead of getting objfile from
1557 symbol's symtab, use new argument OBJFILE.
1558 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1559 arguments by adding OBJFILE.
1560 * gdb/dwarf2read.c (new_symbol_full): Change call to
1561 cp_scan_for_anonymous_namespaces to match new signature.
1562 * gdb/stabsread.c (define_symbol): Change call to
1563 cp_scan_for_anonymous_namespaces to match new signature.
1565 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1570 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1572 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1573 leak. Delete unused variables.
1575 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1579 * python/py-frame.c (frapy_read_var): Use const struct *block.
1580 * python/py-type.c (typy_lookup_typename): Likewise.
1581 (typy_lookup_type): Likewise.
1582 (typy_legacy_template_argument): Likewise.
1583 (typy_template_argument): Likewise.
1584 (gdbpy_lookup_type): Likewise.
1585 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1586 * python/py-block.c (blpy_block_object): Likewise.
1587 (blpy_iter): Likewise.
1588 (blpy_get_start): Likewise.
1589 (blpy_get_end): Likewise.
1590 (blpy_get_function): Likewise.
1591 (blpy_get_superblock): Likewise.
1592 (set_block): Likewise.
1593 (block_to_block_object): Likewise.
1594 (block_object_to_block): Likewise.
1595 (blpy_is_valid): Likewise.
1596 (blpy_get_global_block): New function.
1597 (blpy_get_static_block): New function.
1598 (blpy_is_global): New function.
1599 (blpy_is_static): New function.
1600 * blockframe.c (block_innermost_frame): Likewise.
1601 * valops.c (value_of_variable): Likewise.
1602 * frame.h: Update prototypes.
1603 * python/python-internal.h: Likewise.
1604 * value.h: Likewise.
1606 2011-10-19 Cary Coutant <ccoutant@google.com>
1608 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1611 2011-10-19 Cary Coutant <ccoutant@google.com>
1613 * dwarf2read.c (peek_abbrev_code): New function.
1614 (dw2_get_file_names): Check for dummy compilation units.
1615 (create_debug_types_hash_table): Likewise.
1616 (process_psymtab_comp_unit): Likewise.
1617 (load_partial_comp_unit): Likewise.
1618 (load_full_comp_unit): Likewise.
1620 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1622 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1623 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1624 pt_phdr if PT_PHDR was found.
1626 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1628 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1629 type or "<unnamed type"> when there is no name assigned.
1630 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1631 avoid a sigint when no name is assigned.
1633 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1637 * dwarf2expr.c (ctx_no_read_reg): New function.
1638 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1639 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1640 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1641 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1643 2011-10-16 Doug Evans <dje@google.com>
1645 * NEWS: Document python gdb.printing.register_pretty_printer's new
1646 `replace' parameter.
1648 2011-10-14 Keith Seitz <keiths@redhat.com>
1651 * eval.c (evaluate_subexp_standard): Do not construct
1652 an array of types; pass the value array directly to
1653 find_overload_match.
1654 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1655 (rank_function): Take an array of values instead of types.
1656 (rank_one_type): Add struct value * parameter.
1657 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1658 (rank_function): For each argument, pass the argument's
1659 value to rank_one_type.
1660 (rank_one_type): Add VALUE parameter.
1661 If the parameter type is a pointer and the argument type
1662 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1664 Update all calls to rank_one_type, passing NULL for new
1666 * valarith.c (value_user_defined_cpp_op): Do not construct
1667 an array of types; pass the value array directly to
1668 find_overload_match.
1669 * valops.c (find_overload_method_list): Take an array of
1670 values instead of types.
1671 Save the type of OBJP for later use.
1672 Update calls to find_oload_champ, and find_oload_champ_namespace.
1673 (find_oload_champ_namespace): Take an array of values instead
1675 (find_oload_champ_namespace_loop): Likewise.
1676 (find_oload_champ): Likewise.
1677 (classify_oload_match): Inspect all arguments
1678 until INCOMPATIBLE is found. Return the worst badness found
1680 (compare_parameters): Update call to rank_one_type.
1681 * value.h (find_overload_match): Take an array of values instead
1684 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 Drop lazy lm_info reading.
1687 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1688 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1689 (lm_info_read): New function.
1690 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1691 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1692 lm_dynamic_from_link_map.
1693 (lm_next, lm_prev, lm_name): Remove.
1694 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1695 initialization incl. read_memory. No longer use lm_name.
1696 (svr4_free_so): Drop lm_info->lm freeing.
1697 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1698 explicit lm_addr and lm initialization.
1699 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1700 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1703 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1704 Paul Pluzhnikov <ppluzhnikov@google.com>
1706 * defs.h (struct so_list): New forward declaration.
1707 (make_cleanup_free_so): New declaration.
1708 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1709 (svr4_free_so): Move the function here from downwards. Handle NULL
1711 (svr4_free_library_list): New.
1712 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1713 Use more cleanups. Use new parameter ignore_first instead of
1714 ignore_first_link_map_entry.
1715 (svr4_current_sos): New variable ignore_first, initialize it. New
1716 variable back_to, use it for svr4_free_library_list protection.
1717 (svr4_free_so): Remove - move upwards.
1718 * utils.c: Include solist.h.
1719 (do_free_so, make_cleanup_free_so): New functions.
1721 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 Fix internal error regression.
1724 * value.c (value_primitive_field): Handle value_optimized_out. Move
1725 packed bitfields comment.
1727 2011-10-13 Tom Tromey <tromey@redhat.com>
1729 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1732 2011-10-13 Tom Tromey <tromey@redhat.com>
1734 * python/py-type.c (typy_has_key): Make 'field' const.
1736 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1738 * remote.c (remote_save_trace_data): Invert comparison.
1740 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1742 * tracepoint.c (trace_save_command): Use filename instead of
1745 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1750 2011-10-13 Yao Qi <yao@codesourcery.com>
1753 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1754 whether insn is a 32-bit Thumb-2 instruction.
1755 (thumb_in_function_epilogue_p): Likewise.
1756 (thumb_get_next_pc_raw): Likewise.
1757 (arm_breakpoint_from_pc): Likewise.
1759 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1762 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1763 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1764 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1765 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1767 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1769 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1770 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1771 clear DATA on zero SIZE.
1773 2011-10-12 Doug Evans <dje@google.com>
1775 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1776 header->first_die_offset here. All callers updated.
1778 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 Fix compatibility with texinfo versions older than 4.12.
1781 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1782 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1783 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1784 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1785 * configure: Regenerate.
1786 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1787 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1788 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1790 2011-10-12 Gary Benson <gbenson@redhat.com>
1792 * breakpoint.h (pc_at_non_inline_function): Declare.
1793 * breakpoint.c (is_non_inline_function,
1794 pc_at_non_inline_function): New functions.
1795 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1796 if the stop is at a location where functions cannot be inlined.
1798 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1800 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1801 the core wanted them stopped, or if they now have a pending event
1803 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1804 down to stop_and_resume_callback.
1805 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1806 having new pending events after calling linux_nat_filter_event.
1808 2011-10-11 Sterling Augustine <saugustine@google.com>
1810 * dwarf2read.c: Undo inadvertent changes in previous commit.
1812 2011-10-11 Sterling Augustine <saugustine@google.com>
1814 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1817 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1819 * symfile.c (separate_debug_file_exists): Fix condition.
1821 2011-10-11 David S. Miller <davem@davemloft.net>
1823 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1825 * regcache.h (regcache_restore): Remove declaration.
1827 * gdbarch.sh: New field 'long_long_align_bit'.
1828 * gdbarch.c, gdbarch.h: Regenerate.
1829 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1830 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1832 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 Revert this part of:
1835 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1836 Support @entry in input expressions.
1837 * c-exp.y (ENTRY, unknown_cpp_name): New.
1838 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1839 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1840 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1841 (name_not_typename: ENTRY): New.
1842 (yylex): Recognize ENTRY.
1844 Reimplement @entry in input expressions.
1845 * c-exp.y (ENTRY): New.
1846 (variable: name_not_typename ENTRY): New.
1847 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1849 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1851 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1852 parent and child's pids as soon as we detect a clone event.
1853 Adjust another debug message.
1855 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1857 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1858 not zombie instead of reading the whole file.
1860 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1862 Fix separate debuginfo warning with "remote:" access.
1863 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1864 * symfile.c (get_file_crc): New function with the code moved from ...
1865 (separate_debug_file_exists): ... this function, specifically variables
1866 buffer and count. New variable verified_as_different, set it. Remove
1867 file_crc initialization. Verify also if both files are not the same
1868 manually, if needed.
1870 2011-10-11 Yao Qi <yao@codesourcery.com>
1872 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1875 2011-10-10 Doug Evans <dje@google.com>
1877 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1878 libthread_db when we load libpthread or the main symbol file.
1879 (thread_db_inferior_created): New function.
1880 (_initialize_thread_db): Attach inferior_created observer.
1881 * linux-nat.c (linux_child_post_attach): Remove call to
1882 check_for_thread_db.
1883 (linux_child_post_startup_inferior): Ditto.
1884 * objfiles.h (OBJF_MAINLINE): Define.
1885 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1886 allocate_objfile when appropriate.
1888 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1891 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1892 Remove unused variables.
1893 (get_linux_version): Remove function.
1894 (_initialize_arm_linux_nat): Do not call it.
1896 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1898 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1899 new clone lwp if the core asked it to stop. Don't pass on
1900 unexpected signals to the new clone; leave them pending instead.
1902 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1904 * linux-nat.c (resume_lwp): Remove redundant debug output.
1906 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1908 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1909 last_resume_kind before clearing it, and use the copy instead to
1910 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1911 resume_clear_callback in the non-stop path too.
1913 2011-10-09 Yao Qi <yao@codesourcery.com>
1915 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1916 Honor OPTIONS and VAL's type.
1917 (common_val_print, value_print): Update to pass one more parameter.
1919 2011-10-09 Doug Evans <dje@google.com>
1921 Add new "alias" command.
1922 * NEWS: Mention new command.
1923 * command.h (valid_user_defined_cmd_name_p): Declare.
1924 * defs.h (make_cleanup_dyn_string_delete): Declare.
1925 * utils.c: #include "dyn-string.h".
1926 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1927 * cli/cli-cmds.c: #include "dyn-string.h".
1928 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1929 (init_cli_cmds): Add new command.
1930 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1932 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 Fix compatibility with older GCCs.
1935 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1936 * stack.c (read_frame_arg): Initialize val_deref.
1938 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 Entry values NEWS entries, DWARF disassembly support.
1941 * NEWS: New entry values entry.
1942 (set print entry-values, show print entry-values)
1943 (set debug entry-values, show debug entry-values): New entries.
1944 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1945 indent. Remove variable start. Move header printing out. Respect
1946 INDENT. Support DW_OP_GNU_entry_value.
1947 (locexpr_describe_location_1): Move the header printing here, extend
1948 the disassemble_dwarf_expression passed parameters.
1950 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1952 Display @entry parameter values even for references.
1953 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1954 coerce_ref_if_computed.
1955 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1956 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1957 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1958 existing push_dwarf_reg_entry_value call. Add new detection calling
1959 dwarf_block_to_dwarf_reg_deref. Update the error message.
1960 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1962 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1963 parameter deref_size, describe it in the comment.
1964 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1965 (dwarf_block_to_dwarf_reg_deref): New declaration.
1966 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1967 deref_size, describe it in the function comment. New variables
1968 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1969 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1970 describe it in the function comment. Fetch the alternative block
1971 accoring to DEREF_SIZE.
1972 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1973 (entry_data_value_free_closure, entry_data_value_funcs): New.
1974 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1975 outer_val, target_val, val and addr. Try to fetch and create also
1976 referenced value content.
1977 (pieced_value_funcs): NULL value for coerce_ref.
1978 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1979 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1980 coerce_ref_if_computed.
1981 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1982 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1983 * stack.c (read_frame_arg): Compare also dereferenced values.
1984 * value.c (value_computed_funcs): Make the parameter v const, use
1985 value_lval_const for it.
1986 (value_lval_const, coerce_ref_if_computed): New function.
1987 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1988 * value.h (struct lval_funcs): New field coerce_ref.
1989 (value_computed_funcs): Make the parameter v const.
1990 (value_lval_const, coerce_ref_if_computed): New declarations.
1992 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1994 Support @entry in input expressions.
1995 * c-exp.y (ENTRY, unknown_cpp_name): New.
1996 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1997 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1998 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1999 (name_not_typename: ENTRY): New.
2000 (yylex): Recognize ENTRY.
2001 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2002 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2004 * parse.c (operator_length_standard): Likewise.
2005 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2007 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 Display referenced values in backtraces.
2010 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2011 * stack.c (print_frame_arg): Likewise.
2013 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 Make some lval_funcs methods to default on NULL.
2016 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2018 (value_assign): Check if lval_computed write method is NULL.
2019 * value.h (struct lval_funcs): Comment NULL values for read and write
2022 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2024 Display @entry parameter values (without references).
2025 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2027 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2029 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2031 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2032 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2034 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2035 (loclist_read_variable_at_entry): New function.
2036 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2037 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2038 DW_AT_location, call dwarf_block_to_sp_offset for it.
2039 * frame.h (print_entry_values_no, print_entry_values_only)
2040 (print_entry_values_preferred, print_entry_values_if_needed)
2041 (print_entry_values_both, print_entry_values_compact)
2042 (print_entry_values_default, print_entry_values): New declarations.
2043 (struct frame_arg): New field entry_kind.
2044 (read_frame_arg): New parameter entryargp.
2045 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2046 arg->entry_kind. Optionally print the `@entry' suffix.
2047 (list_args_or_locals): New variable entryarg, initialize it.
2048 Initialize also entry_kind of arg and entryarg. Conditionalize
2049 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2050 xfree for entryarg.error.
2051 * stack.c (print_entry_values_no, print_entry_values_only)
2052 (print_entry_values_preferred, print_entry_values_if_needed)
2053 (print_entry_values_both, print_entry_values_compact)
2054 (print_entry_values_default, print_entry_values_choices)
2055 (print_entry_values): New variables.
2056 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2057 print the `@entry' suffix, possibly in combination for
2058 print_entry_values_compact.
2059 (read_frame_arg): New parameter entryargp, new variables entryval,
2060 entryval_error and val_equal. Read in also entryargp, respect
2061 print_entry_values, compare the values using val_equal, fill in also
2062 argp->entry_kind (together with entryargp->entry_kind).
2063 (print_frame_args): New variable entryarg, initialize it.
2064 Conditionalize print_frame_arg for arg, add print_frame_arg for
2065 entryarg. Call xfree for entryarg.error.
2066 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2067 * symtab.h (struct symbol_computed_ops): New field
2068 read_variable_at_entry.
2070 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 * frame.h (struct frame_arg): New definition.
2074 (read_frame_arg): New declaration.
2075 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2076 (list_args_or_locals): ... the code here. New variable arg, call
2077 read_frame_arg and list_arg_or_local with it. Unify the
2078 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2080 * stack.c (print_frame_arg): New functiom from the code of
2082 (read_frame_arg): New function.
2083 (print_frame_args): Remove variable val. New variable arg, call
2084 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2086 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 Protect entry values against self tail calls.
2089 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2090 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2092 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Recognize virtual tail call frames.
2095 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2096 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2097 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2098 * dwarf2-frame-tailcall.c: New file.
2099 * dwarf2-frame-tailcall.h: New file.
2100 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2101 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2102 REGS.PREV only after CIE execution.
2103 (struct dwarf2_frame_cache): New field tailcall_cache.
2104 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2105 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2106 parts, try to find entry_cfa_sp_offset. Call
2107 dwarf2_tailcall_sniffer_first.
2108 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2110 (dwarf2_frame_dealloc_cache): New function.
2111 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2112 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2113 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2114 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2115 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2116 * dwarf2loc.c (func_addr_to_tail_call_list)
2117 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2118 (call_site_find_chain_1, call_site_find_chain): New.
2119 * dwarf2loc.h (struct call_site_chain): New.
2120 (call_site_find_chain): New declaration.
2121 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2122 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2123 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2124 * stack.c (frame_info): Support also TAILCALL_FRAME.
2126 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 Tail call sites reader implementation.
2129 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2130 fill in TYPE_TAIL_CALL_LIST.
2131 * gdbtypes.h (struct func_type): New field tail_call_list.
2132 (struct call_site): New field tail_call_next.
2133 (TYPE_TAIL_CALL_LIST): New definition.
2135 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2137 Implement basic support for DW_TAG_GNU_call_site.
2138 * block.c: Include gdbtypes.h and exceptions.h.
2139 (call_site_for_pc): New function.
2140 * block.h (call_site_for_pc): New declaration.
2141 * defs.h: Include hashtab.h.
2142 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2144 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2145 ctx_no_push_dwarf_reg_entry_value.
2146 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2147 (dwarf_block_to_dwarf_reg): New function.
2148 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2149 (ctx_no_push_dwarf_reg_entry_value): New function.
2150 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2151 push_dwarf_reg_entry_value.
2152 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2154 * dwarf2loc.c: Include gdbcmd.h.
2155 (dwarf_expr_ctx_funcs): New forward declaration.
2156 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2157 (dwarf_expr_reg_to_entry_parameter)
2158 (dwarf_expr_push_dwarf_reg_entry_value): New.
2159 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2160 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2161 (needs_dwarf_reg_entry_value): New function.
2162 (needs_frame_ctx_funcs): Install it.
2163 (_initialize_dwarf2loc): New function.
2164 * dwarf2loc.h (entry_values_debug): New declaration.
2165 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2166 (read_call_site_scope): New forward declaration.
2167 (process_full_comp_unit): Copy call_site_htab.
2168 (process_die): Support DW_TAG_GNU_call_site.
2169 (read_call_site_scope): New function.
2170 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2171 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2172 (cleanup_htab): Delete.
2173 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2174 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2175 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2176 FIELD_LOC_KIND_DWARF_BLOCK.
2177 * gdbtypes.h (enum field_loc_kind): New entry
2178 FIELD_LOC_KIND_DWARF_BLOCK.
2179 (struct main_type): New loc entry dwarf_block.
2180 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2181 (TYPE_FIELD_DWARF_BLOCK): New.
2182 * python/py-type.c: Include dwarf2loc.h.
2183 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2184 internal_error call on unknown FIELD_LOC_KIND.
2185 * symtab.h (struct symtab): New field call_site_htab.
2186 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2187 (core_addr_hash, core_addr_eq): New functions.
2189 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2192 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2193 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2194 calling_convention under func_stuff there.
2195 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2196 (init_type) <TYPE_CODE_FUNC>: Likewise.
2197 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2198 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2199 * gdbtypes.h (enum type_specific_kind): Change
2200 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2201 (struct main_type) <type_specific>: Change calling_convention to
2202 func_stuff. Move calling_convention to ...
2203 (struct func_type): ... this new struct.
2204 (INIT_FUNC_SPECIFIC): New #define.
2205 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2207 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2210 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2211 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2212 ctx->ref_addr_size. Handle its invalid value.
2213 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2214 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2215 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2216 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2217 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2218 (dwarf2_per_cu_ref_addr_size): New function.
2220 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * dwarf2read.c (per_cu_header_read_in): New function.
2224 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2225 variables cu_header_local and cu_headerp.
2227 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2229 Fix initial language detection with -readnow.
2230 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2231 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2232 searches only for global symbols.
2234 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2236 Fix printed anonymous struct name.
2237 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2238 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2239 (anonymous_struct_prefix): New function.
2240 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2241 (dwarf2_name): Strip for anonymous structs any prefixes.
2243 2011-10-07 Doug Evans <dje@google.com>
2245 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2248 * python/lib/gdb/printing.py: Whitespace cleanup.
2250 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2253 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2255 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2256 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2257 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2258 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2259 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2260 (arm_linux_remove_watchpoint): Adjust.
2261 * i386-linux-nat.c (i386_linux_dr_set_control)
2262 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2263 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2264 (ia64_linux_remove_watchpoint): Adjust.
2265 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2266 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2267 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2268 (ppc_linux_insert_mask_watchpoint)
2269 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2270 (ppc_linux_remove_watchpoint): Adjust.
2271 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2274 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2276 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2277 (clear_win32_environment): New function for Cygwin to clear out
2279 (windows_create_inferior): Prepare new environment from in_env
2282 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2285 * python/py-value.c (valpy_call): Check that arguments are
2287 (is_intlike): Remove call to CHECK_TYPEDEF.
2288 (valpy_nonzero): Catch GDB exceptions.
2289 (valpy_absolute): Ditto.
2290 (valpy_lazy_string): Ditto.
2291 (valpy_call): Ditto.
2292 (valpy_get_is_optimized_out): Ditto.
2293 (valpy_long): Ditto.
2294 (valpy_float): Ditto.
2295 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2296 (valpy_richcompare): Ditto.
2298 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2300 * inferior.h (disable_randomization): Declare.
2301 * infrun.c (disable_randomization): New global variable.
2302 (show_disable_randomization): New function.
2303 (set_disable_randomization): Likewise.
2304 (_initialize_infrun): Install set/show disable-randomization
2306 * linux-nat.c (disable_randomization): Remove.
2307 (show_disable_randomization): Likewise.
2308 (set_disable_randomization): Likewise.
2309 (_initialize_linux_nat): No longer install set/show
2310 disable-randomization commands here.
2311 (linux_nat_supports_disable_randomization): New function.
2312 (linux_nat_add_target): Install it.
2313 * remote.c (PACKET_QDisableRandomization): New enum value.
2314 (remote_protocol_packets): Support QDisableRandomization.
2315 (_initialize_remote): Likewise.
2316 (remote_supports_disable_randomization): New function.
2317 (init_remote_ops): Install it.
2318 (extended_remote_supports_disable_randomization): New function.
2319 (init_extended_remote_ops): Install it.
2320 (extended_remote_disable_randomization): New function.
2321 (extended_remote_create_inferior_1): Call it.
2322 * target.h (struct target_ops): Add to_supports_disable_randomization.
2323 (target_supports_disable_randomization): Add prototype.
2324 * target.c (target_supports_disable_randomization): New function.
2325 (find_default_supports_disable_randomization): Likewise.
2326 (init_dummy_target): Install it.
2328 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2330 Allow Python notification of new object-file loadings.
2331 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2332 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2333 Add build rule for this file.
2334 * python/py-event.h (emit_new_objfile_event): New prototype.
2335 (newobjfile): New Python event emitter.
2336 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2337 Python event registry.
2338 * python/py-inferior.c: Include objfiles.h
2339 (python_new_objfile): New function.
2340 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2342 * python/py-newobjfileevent.c: New file.
2343 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2345 * python/python.c (_initialize_python): Add
2346 gdbpy_initialize_new_objfile_event call.
2347 * NEWS: Add item for new Python event "gdb.newobjfile"
2349 2011-10-05 Tristan Gingold <gingold@adacore.com>
2351 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2352 Extract the ravenscar task name from the symbol for the atcb.
2354 2011-10-04 Paul Koning <paul_koning@dell.com>
2356 * python/py-type.c (typy_make_iter): Add forward declaration.
2357 (typy_fields_items): Use the gdb.Type iterator.
2359 2011-10-04 Paul Koning <paul_koning@dell.com>
2361 * NEWS: Add entry for Python gdb.Type mapping methods.
2363 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2365 PR python/12691: Add the inferior to Python exited event
2366 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2368 * python/py-event.h (emit_exited_event): Likewise
2369 * python/-inferior.c (python_inferior_exit): Likewise
2371 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2373 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2374 in output of -ada-task-info GDB/MI command.
2376 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2378 * ada-lang.h (struct inferior): Declare.
2379 (print_ada_task_info): Add declaration.
2380 * ada-tasks.c (print_ada_task_info): Make non-static.
2381 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2382 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2383 * mi/mi-main.c: #include "ada-lang.h".
2384 (mi_cmd_list_features): Add "ada-task-info" to the list
2385 of supported features.
2386 (mi_cmd_ada_task_info): New function.
2388 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2390 * python/python.c (python_run_simple_file): New function.
2391 (source_python_script, source_python_script_for_objfile):
2392 Replace call to PyRun_SimpleFile by call to
2393 python_run_simple_file.
2395 2011-10-03 Paul Koning <paul_koning@dell.com>
2397 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2398 (value_to_value_object): Fetch value if it was lazy.
2400 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2403 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2404 Rearrange the code for it.
2406 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2408 * breakpoint.c (bkpt_print_recreate): Add call to
2409 print_recreate_thread.
2411 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2413 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2414 PTRACE_GETFDPIC_INTERP): Define.
2416 2011-09-28 Yao Qi <yao@codesourcery.com>
2418 * symfile.c (add_symbol_file_command): Update message on usage.
2420 2011-09-28 Paul Koning <paul_koning@dell.com>
2422 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2423 (typy_length, typy_get, typy_has_key, typy_make_iter)
2424 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2425 (typy_iterator_iter, typy_iterator_iternext)
2426 (typy_iterator_dealloc): New functions to implement standard
2427 Python mapping methods on gdb.Type object.
2428 (gdb.TypeIterator): New Python type.
2429 * python/python-internal.h (gdbpy_iter_kind): New enum.
2431 2011-09-28 David S. Miller <davem@davemloft.net>
2433 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2434 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2435 * sparc-tdep.c (sparc_complex_floating_p): New function.
2436 (sparc32_store_arguments): Handle complex floats.
2437 (sparc32_extract_return_value): Likewise.
2438 (sparc32_store_return_value): Likewise.
2439 (sparc32_stabs_argument_has_addr): Likewise.
2440 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2441 (sparc64_store_floating_fields): Handle complex floats.
2442 (sparc64_store_arguments): Likewise.
2443 (sparc64_store_return_value): Likewise.
2445 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2447 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2448 before the change on 2006-12-09.
2449 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2450 generates the environment block for CreateProcessA, modulo the
2451 Cygwin-specific parts that are not needed here.
2453 2011-09-27 Tristan Gingold <gingold@adacore.com>
2455 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2456 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2457 (darwin_solib_get_all_image_info_addr_at_init): New function.
2458 (darwin_solib_read_all_image_info_addr): Likewise.
2459 (darwin_solib_create_inferior_hook): Use the above two functions.
2460 * darwin-nat.c (darwin_execvp): Renames retval to res.
2461 (darwin_read_write_inferior): Update comment.
2462 (darwin_read_dyld_info): New function.
2463 (darwin_xfer_partial): Handle DYLD_INFO.
2465 2011-09-27 Stan Shebs <stan@codesourcery.com>
2467 Add return address collection for tracepoints.
2468 * tracepoint.c (encode_actions_1): Add case for $_ret.
2469 (validate_actionline): Check for $_ret.
2470 (trace_dump_actions): Ditto.
2471 * ax-gdb.h (gen_trace_for_return_address): Declare.
2472 * ax-gdb.c: Include arch-utils.h.
2473 (gen_trace_for_return_address): New function.
2474 (agent_command): Add return address special case.
2475 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2476 (amd64_gen_return_address): New function.
2477 (amd64_init_abi): Call it.
2478 * i386-tdep.c: Include ax.h and ax-gdb.h.
2479 (i386_gen_return_address): New function.
2480 (i386_init_abi): Call it.
2481 * arch-utils.h (default_gen_return_address): Declare.
2482 * arch-utils.c (default_gen_return_address): New function.
2483 * gdbarch.sh (gen_return_address): New method.
2484 * gdbarch.h, gdbarch.c: Regenerate.
2486 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2489 * i386-tdep.c (i386_frame_align): New.
2490 (i386_gdbarch_init): Use i386_frame_align.
2492 2011-09-23 Yao Qi <yao@codesourcery.com>
2494 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2497 2011-09-22 Tristan Gingold <gingold@adacore.com>
2499 * fork-child.c (fork_inferior): Add exec_fun parameter.
2500 Call exec_fun or execvp.
2501 * inferior.h: Adjust prototype.
2502 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2503 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2504 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2505 * procfs.c (procfs_create_inferior): Ditto.
2506 * darwin-nat.c (darwin_execvp): New function.
2507 (darwin_create_inferior): Use it.
2509 2011-09-22 Yao Qi <yao@codesourcery.com>
2511 * infrun.c (context_switch): Print debug message when switching to
2514 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2516 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2517 complex and vector types.
2518 (s390_return_value_convention): Likewise.
2520 (s390_value_from_register): Call check_typedef.
2521 (extend_simple_arg): Likewise.
2522 (alignment_of): Likewise.
2523 (s390_push_dummy_call): Likewise.
2524 (s390_return_value): Likewise.
2526 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2528 * event-top.c (async_disconnect): If an exception is thrown from
2529 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2531 * top.c (quit_cover): Return void and take no arguments.
2532 * top.h (quit_cover): Update prototype.
2534 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2536 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2537 current_uiout, not uiout.
2539 2011-09-19 Doug Evans <dje@google.com>
2541 * python/py-auto-load.c (source_section_scripts): Fix file
2543 * python/python.c (source_python_script_for_objfile): Tweak comments.
2545 2011-09-18 Yao Qi <yao@codesourcery.com>
2546 Ulrich Weigand <ulrich.weigand@linaro.org>
2548 Support displaced stepping for Thumb 16-bit insns.
2549 * arm-tdep.c (THUMB_NOP) Define.
2550 (thumb_copy_unmodified_16bit): New.
2551 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2552 (thumb_copy_alu_reg): New.
2553 (arm_copy_svc): Move some common code to ...
2554 (install_svc): ... here. New.
2555 (thumb_copy_svc): New.
2556 (install_pc_relative): New.
2557 (thumb_copy_pc_relative_16bit): New.
2558 (thumb_decode_pc_relative_16bit): New.
2559 (thumb_copy_16bit_ldr_literal): New.
2560 (thumb_copy_cbnz_cbz): New.
2561 (cleanup_pop_pc_16bit_all): New.
2562 (thumb_copy_pop_pc_16bit): New.
2563 (thumb_process_displaced_16bit_insn): New.
2564 (thumb_process_displaced_32bit_insn): New.
2565 (thumb_process_displaced_insn): process thumb instruction.
2567 Support displaced stepping for Thumb 32-bit insns.
2568 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2569 (thumb2_copy_preload): New.
2570 (thumb2_copy_copro_load_store): New.
2571 (thumb2_copy_b_bl_blx): New.
2572 (thumb2_copy_alu_imm): New.
2573 (thumb2_copy_load_reg_imm): New.
2574 (thumb2_copy_load_literal): New
2575 (thumb2_copy_block_xfer): New.
2576 (thumb_32bit_copy_undef): New.
2577 (thumb_32bit_copy_unpred): New.
2578 (thumb2_decode_ext_reg_ld_st): New.
2579 (thumb2_decode_svc_copro): New.
2580 (decode_thumb_32bit_store_single_data_item): New.
2581 (thumb_copy_pc_relative_32bit): New.
2582 (thumb_decode_pc_relative_32bit): New.
2583 (decode_thumb_32bit_ld_mem_hints): New.
2584 (thumb2_copy_table_branch): New
2585 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2588 2011-09-18 Yao Qi <yao@codesourcery.com>
2590 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2591 (install_b_bl_blx): Likewise.
2593 2011-09-17 Yao Qi <yao@codesourcery.com>
2595 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2596 (install_load_store): ... this. New.
2597 Change parameter BYTE to SIZE.
2598 (arm_copy_ldr_str_ldrb_strb): Update caller.
2599 (arm_decode_ld_st_word_ubyte): Update caller.
2601 2011-09-17 Yao Qi <yao@codesourcery.com>
2603 * infrun.c (displaced_step_fixup): Move some code ...
2604 (displaced_step_restore): ... here. New function.
2605 (handle_inferior_event): Cleanup displaced stepping state for both
2606 child and parent when get forked or vforked event.
2607 * regcache.c (get_thread_arch_aspace_regcache): New function.
2608 get_thread_arch_regcache (): Call it.
2610 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2612 * ada-tasks.c (print_ada_task_info): New function, merging
2613 short_task_info and info_tasks together. Reimplement using
2614 ui-out instead of printing to stdout directly. Move the code
2615 building and checking the task list here, instead of leaving it
2616 in info_tasks_command.
2617 (info_task): Move the code building and checking the task
2618 list here, instead of leaving it in info_tasks_command.
2619 (info_tasks_command): Delete code building and checking
2620 the task list - moved elsewhere. Update calls to info_tasks
2623 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2625 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2627 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2629 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2631 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2633 * ada-lang.h (ada_build_task_list): Remove parameter
2635 * ada-tasks.c (ada_build_task_list): Remove parameter
2636 `warn_if_null'. Adjust implementation and documentation.
2637 (valid_task_id, ada_get_environment_task)
2638 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2639 (info_tasks_command): Adjust implementation.
2640 (task_command): Likewise.
2641 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2642 to ada_build_task_list.
2644 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2646 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2647 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2648 (ada_tasks_inferior_data_handle): New static global.
2649 (get_ada_tasks_inferior_data): New function.
2650 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2651 (ada_get_environment_task, iterate_over_live_ada_tasks)
2652 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2654 (ada_set_current_inferior_known_tasks_addr): New function.
2655 (read_known_tasks, ada_build_task_list, short_task_info)
2656 (info_tasks, info_task, info_tasks_command, task_command_1)
2657 (task_command, ada_task_list_changed): Adjust.
2658 (ada_tasks_invalidate_inferior_data): New function.
2659 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2660 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2661 * ada-lang.h (struct inferior): Add declaration.
2662 (ada_task_list_changed): Update profile.
2663 * remote-wtx-pd.c: #include "inferior.h".
2664 (switch_to_pd_internal): Update call to ada_task_list_changed.
2666 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2668 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2669 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2670 (atcb_fieldno): Delete these static globals.
2671 (struct ada_tasks_pspace_data): New struct.
2672 (ada_tasks_pspace_data_handle): New static global.
2673 (get_ada_tasks_pspace_data): New function.
2674 (ada_tasks_invalidate_pspace_data): New function.
2675 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2676 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2677 (_initialize_tasks): Create this module's per-progspace
2680 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2682 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2684 2011-09-16 Tristan Gingold <gingold@adacore.com>
2686 * fork-child.c (fork_inferior): Update comment. Use alloca
2687 instead of xmalloc for argv. Move len and shell_command
2688 declarations in the block where they are used.
2689 Only call execvp. Factorize failure code.
2691 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2694 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2695 `exp_element' instead of an element of the same and make the function
2697 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2698 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2699 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2700 Change argument of `write_exp_elt' function call.
2701 Remove extra spaces from comments.
2702 * parser-defs.h (write_exp_elt): Remove prototype.
2704 2011-09-15 Paul Koning <paul_koning@dell.com>
2706 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2707 count of item appended to list.
2708 * python/py-type.c (typy_fields): Likewise.
2710 2011-09-15 Paul Koning <paul_koning@dell.com>
2712 * MAINTAINERS (Write After Approval): Add myself to the list.
2714 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2717 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2718 processes with multiple threads.
2719 (inf_has_multiple_thread_cb): New function.
2720 (inf_has_multiple_threads): New function.
2722 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2724 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2725 * python/py-inferior.c (GdbMethods): New Python method definition.
2727 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2729 Handle multiple breakpoint hits in Python interface:
2730 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2731 variable to breakpoints.
2732 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2733 bps instead of single breakpoint. Fix some space typos.
2734 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2735 variable to breakpoints.
2737 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2739 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2740 note if the breakpoint is internal.
2742 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2744 * MAINTAINERS (Write After Approval): Add myself to the list
2746 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2748 * infrun.c (prepare_for_detach, wait_for_inferior)
2749 (fetch_inferior_event): Don't flush the register cache.
2750 * remote.c (struct stop_reply) <regcache>: Add comment.
2752 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 Remove excessive DWARF expressions memory duplication.
2755 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2757 (indirect_pieced_value): Remove variable result. Remove variable
2758 back_to and its use for baton.data.
2759 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2761 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2762 Update the function comment.
2764 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2766 * inferior.h (ALL_INFERIORS): New.
2767 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2768 for a stopped thread.
2769 (thread_db_find_new_threads): Look for threads in all inferiors.
2771 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2773 * breakpoint.c (update_watchpoint): Handle the case of the
2774 watchpoint to update not being in the breakpoint list yet.
2775 (hw_watchpoint_use_count): New, factored out from
2776 hw_watchpoint_used_count.
2777 (hw_watchpoint_used_count): Rename to ...
2778 (hw_watchpoint_used_count_others): ... this. Add `except'
2779 parameter. Don't count resources of `except'. Use
2780 hw_watchpoint_use_count.
2782 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2784 * gdbthread.h (enum thread_state): Moved here.
2785 (struct thread_info): Rename `executing_' field to `executing' and
2786 `state_' to `state'.
2787 * thread.c (enum thread_state): Moved to gdbthread.h.
2788 (new_thread, add_thread_silent, delete_thread_1)
2789 (any_live_thread_of_process, thread_alive, set_running)
2790 (set_running, is_thread_state, any_running, is_executing)
2791 (set_executing, finish_thread_state, print_thread_info)
2792 (do_captured_thread_select): Adjust.
2794 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2796 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2797 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2799 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2800 Matt Rice <ratmice@gmail.com>
2804 * interps.c (struct interp) <interpreter_out>: Delete field.
2805 (interp_new): Remove the data and uiout parameters and adjust.
2806 (interp_set): Only set the current_uiout from the interpreter's
2807 uiout after initializing the interpreter. Adjust call to
2809 (interp_ui_out): Adjust to call procs->ui_out_proc.
2810 (interp_data, interp_name): New.
2811 * interps.h (interp_init_ftype): Add `self' parameter.
2812 (interp_ui_out_ftype): New typedef.
2813 (struct interp_procs) <ui_out_proc>: New method pointer.
2814 (interp_new): Remove the data and uiout parameters.
2815 (interp_data, interp_name): Declare.
2816 * tui/tui-interp.c (tui_init): Adjust prototype.
2818 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2819 tui_out here. Adjust call to interp_new.
2820 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2821 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2823 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2824 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2825 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2826 Initialize mi->uiout depending on the mi_version as extracted from
2827 the interpreter's name.
2829 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2830 interp_new. Don't allocate the ui_out's of the interpreters here.
2832 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2834 * solib.c (solib_used): New function.
2835 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2836 by another so_list object before freeing it.
2838 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2844 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2847 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2848 (amd64_skip_xmm_prologue): ... this new function. Describe its
2849 parameters. No longer use amd64_prologue_line_bug.
2850 * defs.h (producer_is_gcc_ge_4): New declaration.
2851 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2852 (process_full_comp_unit): Update its caller. Remove
2853 amd64_prologue_line_bug initialization.
2854 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2855 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2857 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2859 * linux-nat.h (enum resume_kind): New.
2860 (struct lwp_info) <last_resume_kind>: New field.
2861 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2862 resume_stop on the new lwp.
2863 (add_lwp): Set last_resume_kind as resume_continue by default.
2864 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2865 (resume_lwp): New, factored out from resume_callback. Also check
2866 for pending status in lp->waitstatus.
2867 (resume_callback): Reimplement.
2868 (resume_clear_callback): Set last_resume_kind as resume_stop.
2869 (resume_set_callback): Set last_resume_kind as resume_continue.
2870 (linux_nat_resume, linux_handle_extended_wait): Set
2872 (running_callback): Also check lp->waitstatus for pending events.
2873 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2875 (stop_and_resume_callback): Don't re-resume if the core wanted the
2876 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2877 using an invalidated pointer.
2878 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2879 SIGSTOPs if the core wanted the LWP to stop.
2880 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2881 wanted the lwp to stop. If the core wanted the lwp to stop, and
2882 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2883 of TARGET_SIGNAL_STOP.
2884 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2885 here. Instead, signal the lwp, and set the last_resume_kind to
2888 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2890 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2891 -1 (error), if the lwp exits right after attaching.
2893 2011-09-08 Doug Evans <dje@google.com>
2895 * py-cmd.c: Some minor formatting fixes.
2896 (gdbpy_parse_command_name): Rename text arg to name, make const.
2897 All callers updated.
2898 * python-internal.h (gdbpy_parse_command_name): Update.
2900 * cli/cli-decode.c (add_cmd): Add comment.
2902 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2904 PR breakpoints/12435
2905 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2906 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2907 * dwarf2read.c (process_full_comp_unit): Initialize
2908 amd64_prologue_line_bug.
2909 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2911 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 Fix TUI screen corruption.
2914 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2917 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 * findvar.c (read_var_value): Never return NULL, throw an error
2920 instead. Update the function comment. State symbol name in the error
2922 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2924 * stack.c (print_frame_args): Likewise.
2925 * valops.c (value_of_variable): Likewise.
2927 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2929 * stack.c (print_frame_args): New variable except. Wrap
2930 read_var_value and common_val_print into TRY_CATCH.
2932 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2935 caller to value_of_this.
2936 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2938 * valops.c (value_of_this): Remove parameter complain and variable ret.
2939 Update function comment. Never return NULL by this code.
2940 (value_of_this_silent): New function.
2941 * value.h (value_of_this): Remove parameter complain.
2942 (value_of_this_silent): New declaration.
2944 2011-09-07 Yao Qi <yao@codesourcery.com>
2946 * gdbthread.h (struct thread_info): Remove fields
2947 `stepping_through_solib_after_catch' and
2948 `stepping_through_solib_catchpoints'.
2949 * infrun.c (init_thread_stepping_state): Update.
2950 (process_event_stop_test, currently_stepping): Update.
2951 (currently_stepping_or_nexting_callback): Update.
2953 2011-09-07 Yao Qi <yao@codesourcery.com>
2955 * gdbthread.h (struct thread_info): Comment on field
2956 `step_after_step_resume_breakpoint'.
2958 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2960 * remote.c (remote_console_output): Reindent.
2962 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2964 * frame.c (has_stack_frames): Check for currently selected
2967 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2969 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2970 (set_async_annotation_level, set_async_prompt, pop_prompt)
2971 (push_prompt, new_async_prompt): Delete declarations.
2972 * top.h (get_prompt, set_prompt): Change prototype.
2973 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2975 * top.c (command_loop):
2976 (top_prompt): New global.
2977 (get_prefix, set_prefix, get_suffix, ): Delete.
2978 (get_prompt, set_prompt): Rewrite.
2979 (show_new_async_prompt): Rename to ...
2980 (show_prompt): ... this.
2981 (init_main): Adjust. Don't handle --annotate=2 here.
2982 * event-top.c (new_async_prompt): Delete.
2983 (the_prompts): Delete.
2984 (more_to_come): Make static.
2985 (display_gdb_prompt): Use top_level_prompt() to compute the top
2986 level prompt, and don't notify the before_prompt observers
2987 directly here. Always trick readline into not trying to display
2988 the prompt if sync_execution and displaying the primary prompt.
2989 If displaying a local/secondary prompt, always show it, even if
2990 sync_execution is set.
2991 (change_annotation_level): Delete.
2992 (top_level_prompt): New, based on change_annotation_level.
2993 (push_prompt, pop_prompt): Delete.
2994 (async_disable_stdin): No longer pushes prompt.
2995 (command_line_handler): No longer pushes or pops prompt. If more
2996 input is expected, call display_gdb_prompt with an explicit empty
2998 (async_stop_sig): Adjust.
2999 (set_async_annotation_level, set_async_prompt): Delete.
3000 * python/python.c (before_prompt_hook): Adjust.
3002 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3006 * infrun.c (fetch_inferior_event): Check if there's a selected
3007 thread before checking if the selected thread is executing.
3009 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3011 * inf-loop.c (execute_command): Don't check if the current thread
3012 if running before synchronously waiting for command completion.
3013 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3015 (normal_stop): Call async_enable_stdin here.
3016 * inf-loop.c (inferior_event_handler): Don't call
3017 async_enable_stdin, nor handle "set exec-done-display" here.
3019 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3023 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3025 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3027 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3029 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3031 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3033 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3035 2011-09-02 Matt Rice <ratmice@gmail.com>
3038 * event-top.c (cli_command_loop): Replace readline setup with
3039 direct call to display_gdb_prompt.
3040 (display_gdb_prompt): Do not call observer mechanism during
3041 synchronous execution.
3043 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3045 * linux-nat.c (in_pid_list_p): New.
3046 (linux_record_stopped_pid): Delete.
3047 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3048 already attached to the LWP. Return an indication if so.
3049 (linux_nat_filter_event): Adjust.
3050 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3051 returning an indication to ignore this thread.
3053 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3055 * top.c: Include interps.h.
3056 (execute_command): If the target can async, but the interpreter is
3057 in sync mode, synchronously wait for the command to finish before
3059 (execute_command_to_string): Force the interpreter to sync mode.
3060 * infrun.c: Include interps.h.
3061 (fetch_inferior_event): Don't restore the prompt yet if the
3062 interpreter is in sync mode.
3063 * interps.c (interpreter_async): New global.
3064 * interps.h (interpreter_async): Declare.
3065 * inf-loop.c: Include interps.h.
3066 (inferior_event_handler): Don't print the language change or run
3067 breakpoint commands yet if the interpreter in is sync mode.
3068 * main.c (captured_command_loop): Flip the interpreter to async
3070 * cli/cli-script.c: Include interps.h.
3071 (execute_user_command, while_command, if_command): Force the
3072 interpreter to sync mode.
3073 * python/python.c: Include interps.h.
3074 (python_command, execute_gdb_command): Force the interpreter to
3077 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3079 * value.c (show_convenience): Catch errors thrown while printing
3080 each internal variable.
3081 * infrun.c (validate_siginfo_access): New function.
3082 (siginfo_value_read, siginfo_value_write): Call it.
3084 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3087 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3088 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3091 2011-08-29 Yao Qi <yao@codesourcery.com>
3093 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3095 (enable_break2): Update caller.
3096 * solib-frv.c (bfd_lookup_symbol): Removed.
3098 (enable_break2): Update caller.
3099 * solib-pa64.c (bfd_lookup_symbol): Removed.
3101 * solib-svr4.c (bfd_lookup_symbol): Removed.
3102 (cmp_name_and_sec_flags): New.
3103 (enable_break): Update caller.
3104 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3105 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3106 (gdb_bfd_lookup_symbol): New.
3107 * solib.h: Functions declarations.
3109 2011-08-29 Yao Qi <yao@codesourcery.com>
3111 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3114 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 Fix TUI stepi on code without symbols.
3117 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3120 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3123 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3124 and the static keyword.
3125 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3126 Make prefix an array.
3127 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3128 * mi/mi-main.c (get_register): Remove stb initialization and the static
3131 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3133 Code cleanup - make mi_opt const.
3134 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3136 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3137 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3138 (mi_cmd_env_dir): Likewise.
3139 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3140 (mi_cmd_target_file_put): Likewise.
3141 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3142 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3143 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3144 (mi_valid_noargs): Make opts const.
3145 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3146 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3147 (mi_cmd_data_read_memory): Likewise.
3148 (mi_cmd_data_read_memory_bytes): Likewise.
3149 (mi_cmd_data_write_memory): Likewise.
3151 2011-08-26 Matt Rice <ratmice@gmail.com>
3153 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3154 bcache_xmalloc, replace bcache_xmalloc with call to
3155 psymbol_bcache_init for psymbol_cache.
3156 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3158 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3160 * inf-loop.c (inferior_event_handler): Add exception_print in
3163 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3165 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3166 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3167 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3168 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3169 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3170 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3171 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3172 * infrun.c (fetch_inferior_event): Call
3173 make_bpstat_clear_actions_cleanup.
3174 * top.c (execute_command): New variable cleanup_if_error, call
3175 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3176 * utils.c (do_bpstat_clear_actions_cleanup)
3177 (make_bpstat_clear_actions_cleanup): New functions.
3179 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3181 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3182 either the parent or the child forks. Rename a couple locals.
3184 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3186 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3187 library call. Avoid reading the `status' local if all waitpid
3190 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3192 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3193 opening /proc/PID/task always succeeds.
3195 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3197 * linespec.c (symtab_from_filename): Check for the end of string.
3199 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3202 * varobj.c (cplus_describe_child): Add the keyword
3203 'class' to the output of the method when dealing
3204 with a cast to a base class.
3206 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3208 No functionality change.
3209 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3210 function comment a reference, new variables tp and bs, move here code
3211 from throw_exception.
3212 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3213 describe it in the comment.
3214 * exceptions.c (throw_exception): Remove variable tp, move the code for
3215 bpstat_clear_actions to bpstat_clear_actions.
3217 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3219 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3220 * linux-nat.c: Include linux-procfs.h.
3221 (linux_proc_get_tgid): Move to ...
3222 * common/linux-procfs.c: ... here. New file.
3223 * common/linux-procfs.h: New file.
3224 * linux-thread-db.c: Include linux-procfs.h.
3225 * Makefile.in: Update dependencies.
3226 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3227 * config/arm/linux.mh: Likewise.
3228 * config/i386/linux.mh: Likewise.
3229 * config/i386/linux64.mh: Likewise.
3230 * config/ia64/linux.mh: Likewise.
3231 * config/m32r/linux.mh: Likewise.
3232 * config/m68k/linux.mh: Likewise.
3233 * config/mips/linux.mh: Likewise.
3234 * config/pa/linux.mh: Likewise.
3235 * config/pa/linux.mh: Likewise.
3236 * config/powerpc/linux.mh: Likewise.
3237 * config/powerpc/ppc64-linux.mh: Likewise.
3238 * config/powerpc/spu-linux.mh: Likewise.
3239 * config/sparc/linux.mh: Likewise.
3240 * config/sparc/linux64.mh: Likewise.
3241 * config/xtensa/linux.mh: Likewise.
3243 2011-08-24 Hui Zhu <teawater@gmail.com>
3245 * tracepoint.c (cond_string_is_same): New function.
3246 (find_matching_tracepoint): Add condition check
3247 by cond_string_is_same.
3249 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3251 Fix build error in Darwin port.
3252 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3254 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3257 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3258 (command_line_is_silent): New function.
3259 (bpstat_do_actions_1): No longer use commands_left, use
3260 command_line_is_silent for commands.
3261 (bpstat_alloc): Remove clearing of commands_left.
3262 (bpstat_stop_status): Remove initialization of commands_left, use
3263 command_line_is_silent.
3264 * breakpoint.h (struct bpstats): Remove commands_left.
3266 2011-08-18 Keith Seitz <keiths@redhat.com>
3269 * cp-name-parser.y (struct demangle_info): Remove unused
3272 (allocate_info): Change return type to struct demangle_info *.
3273 Always allocate a new demangle_info.
3274 Remove unused PREV pointer.
3275 (cp_new_demangle_parse_info): New function.
3276 (cp_demangled_name_parse_free): New function.
3277 (do_demangled_name_parse_free_cleanup): New function.
3278 (make_cleanup_cp_demangled_name_parse_free): New function.
3279 (cp_demangled_name_to_comp): Change return type to
3280 struct demangle_parse_info *.
3281 Allocate a new storage for each call.
3282 (main): Update usage for cp_demangled_name_to_comp
3284 * cp-support.h (struct demangle_parse_info): New structure.
3285 (cp_demangled_name_to_comp): Update API change for
3287 (cp_new_demangle_parse_info): Declare.
3288 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3289 (cp_demangled_name_parse_free): Declare.
3290 * cp-support.c (cp_canonicalize_string): Update API
3291 change for cp_demangled_name_to_comp.
3292 (mangled_name_to_comp): Likewise.
3293 Return struct demangle_parse_info, too.
3294 (cp_class_name_from_physname): Update mangled_name_to_comp
3296 (method_name_from_physname): Likewise.
3297 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3298 (cp_remove_params): Likewise.
3299 * python/py-type.c (typy_legacy_template_argument): Likewise.
3301 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3302 (cp_merge_demangle_parse_infos): Declare.
3303 * cp-support.c (ignore_typedefs): New file global.
3304 (copy_string_to_obstack): New function.
3305 (inspect_type): New function.
3306 (replace_typedefs): New function.
3307 (replace_typedefs_qualified_name): New function.
3308 (cp_canonicalize_string_no_typedefs): New function.
3309 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3310 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3311 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3312 instead of cp_canonicalize_string.
3313 (find_method): Likewise.
3314 (decode_compound): Before looking up the name, call
3315 cp_canonicalize_string_no_typedefs.
3316 (decode_variable): Likewise.
3318 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3319 Tom Tromey <tromey@redhat.com>
3320 Matt Rice <ratmice@gmail.com>
3322 * python/lib/gdb/prompt.py: New file.
3323 * python/lib/gdb/command/prompt.py: New file.
3324 * NEWS: Document set extended-prompt and gdb.prompt library
3326 2011-08-16 Yao Qi <yao@codesourcery.com>
3328 * tic6x-linux-tdep.c: Move const arrays definition from here...
3329 * tic6x-tdep.c: to here ...
3331 2011-08-14 Yao Qi <yao@codesourcery.com>
3333 * NEWS: New port to Texas Instruments TMS320C6x.
3335 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3336 Bernd Schmidt <bernds@codesourcery.com>
3337 Yao Qi <yao@codesourcery.com>
3339 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3340 * solib-dsbt.c: New file. Support DSBT shared object.
3341 * tic6x-linux-tdep.c: New file.
3342 * tic6x-tdep.c: New file.
3343 * tic6x-tdep.h: New file.
3345 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3346 Yao Qi <yao@codesourcery.com>
3348 * remote.c (PACKET_qXfer_fdpic): New enum value.
3349 (remote_protocol_features): Add qXfer:fdpic:read packet.
3350 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3351 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3352 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3354 2011-08-14 Yao Qi <yao@codesourcery.com>
3356 Target description for tic6x.
3357 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3358 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3359 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3360 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3361 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3362 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3363 * features/tic6x-c64xp-linux.xml: New.
3364 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3365 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3366 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3367 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3368 * regformats/tic6x-c64xp.dat,
3369 regformats/tic6x-c62x-linux.dat: Generated.
3370 * regformats/tic6x-c64x-linux.dat,
3371 regformats/tic6x-c64xp-linux.dat: Generated.
3372 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3373 features/tic6x-*.c files.
3374 Add regformats/tic6x-*.dat files.
3376 2011-08-12 Doug Evans <dje@google.com>
3378 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3379 * python/py-symbol.c (sympy_get_type): New function.
3380 (symbol_object_getset): Add "type".
3382 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3386 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3388 (tui_show_register_group): Don't store a byte buffer in the data
3390 (tui_register_format): Skip registers with an empty name.
3391 (tui_get_register): Store a struct value in the data element's
3392 value field instead of a byte buffer holding the raw register
3393 contents. Account for optimized-out and unavailable registers
3394 when comparing register contents.
3396 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3398 * printcmd.c (current_display_number): Update comment.
3399 (disable_current_display_cleanup): Delete.
3400 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3401 catch errors thrown while evaluating and printing the display.
3403 2011-08-09 Tom Tromey <tromey@redhat.com>
3405 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3407 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3409 * elfread.c (elf_symtab_read): Rework comments.
3410 * maint.c (maintenance_command): Ditto.
3411 * somread.c (som_symtab_read): Ditto.
3412 * solib.c (solib_find, solib_map_sections, update_solib_list)
3413 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3414 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3415 (sharedlibrary_command, no_shared_libraries): Ditto.
3416 * solib-irix.c (locate_base, disable_break, enable_break)
3417 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3418 (irix_current_sos, irix_open_symbol_file_object)
3419 (irix_special_symbol_handling): Ditto.
3420 * solib-sunos.c (locate_base, first_link_map_member)
3421 (sunos_current_sos, disable_break, enable_break)
3422 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3424 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3425 (open_symbol_file_object, svr4_current_sos, enable_break)
3426 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3428 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3429 (frv_current_sos, enable_break, frv_special_symbol_handling)
3430 (frv_solib_create_inferior_hook): Ditto.
3431 * solist.h (struct target_so_ops): Extend the comments of the
3432 special_symbol_handling, current_sos and open_symbol_file_object
3435 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3437 * python/lib/gdb/__init__.py: Auto-load files in command and
3438 function directories.
3439 * python/python.c (finish_python_initialization): Use
3441 * python/lib/gdb/command/pretty_printers.py: Self register
3443 * NEWS: Document auto-loading.
3445 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3448 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3449 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3451 2011-08-08 Tom Tromey <tromey@redhat.com>
3453 * breakpoint.c (clean_up_filters): Remove.
3454 (catch_syscall_split_args): Use VEC_cleanup.
3456 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3459 (main): Uncomment "Demangling error\n".
3461 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3463 * solib-target.c (segment_attributes): Make them static.
3464 (section_attributes, library_children, library_attributes): Likewise.
3465 (library_list_children, library_list_attributes): Likesise.
3466 (library_list_elements): Likewise.
3468 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3470 * exceptions.c (throw_exception): Don't disable the current
3472 * printcmd.c (disable_current_display_cleanup): New function.
3473 (do_one_display): Install a cleanup to disable the current display
3474 if doing the display throws.
3476 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3478 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3479 initialization of the tp_new member to the corresponding
3480 gdbpy_initialize_* function.
3481 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3482 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3483 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3484 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3485 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3487 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3490 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3491 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3492 references to current_uiout.
3494 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3496 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3497 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3498 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3499 * top.c (gdb_readline_wrapper): Adjust.
3500 * tui/tui-interp.c (tui_command_loop):
3501 (_initialize_tui_interp): Don't install it.
3503 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3505 * ui-out.h (uiout): Rename to ...
3506 (current_uiout): ... this.
3507 * ui-out.c (uiout): Rename to ...
3508 (current_uiout): ... this.
3509 * ada-lang.c (print_it_exception, print_one_exception)
3510 (print_mention_exception): Adjust.
3511 * breakpoint.c (watchpoint_check): Adjust.
3512 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3513 (default_collect_info, watchpoints_info, print_one_catch_fork)
3514 (print_one_catch_vfork, print_one_catch_syscall)
3515 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3516 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3517 (print_it_watchpoint, print_mention_watchpoint)
3518 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3519 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3520 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3521 (bkpt_print_mention, momentary_bkpt_print_it)
3522 (tracepoint_print_mention, update_static_tracepoint)
3523 (tracepoints_info, save_breakpoints): Adjust.
3524 * cli-out.c (field_separator): Adjust.
3525 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3526 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3527 * frame.c (get_current_frame): Adjust.
3528 * infcmd.c (run_command_1, print_return_value): Adjust.
3529 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3530 * infrun.c (print_end_stepping_range_reason): Adjust.
3531 (print_signal_exited_reason, print_exited_reason): Adjust.
3532 (print_signal_received_reason, print_no_history_reason): Adjust.
3533 * interps.c (interp_set): Adjust.
3534 * osdata.c (info_osdata_command): Adjust.
3535 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3536 * remote-fileio.c (remote_fileio_request): Adjust.
3537 * remote.c (show_remote_cmd): Adjust.
3538 * solib.c (info_sharedlibrary_command): Adjust.
3539 * source.c (print_source_lines_base): Adjust.
3540 * stack.c (print_stack_frame): Adjust.
3541 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3542 * symfile-mem.c (add_vsyscall_page): Adjust.
3543 * symfile.c (load_progress, generic_load)
3544 (print_transfer_performance): Adjust.
3545 * thread.c (info_threads_command, restore_selected_frame)
3546 (thread_command): Adjust.
3547 * top.c (make_cleanup_restore_ui_file): Adjust.
3548 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3549 (print_one_static_tracepoint_marker): Adjust.
3550 * cli/cli-cmds.c (print_disassembly): Adjust.
3551 * cli/cli-decode.c (print_doc_line): Adjust.
3552 * cli/cli-interp.c (safe_execute_command): Adjust.
3553 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3554 (handle_redirections): Adjust.
3555 * cli/cli-script.c (show_user_1): Adjust.
3556 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3557 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3558 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3559 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3560 (mi_cmd_env_dir): Adjust.
3561 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3562 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3563 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3564 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3565 (list_args_or_locals): Adjust.
3566 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3567 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3568 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3569 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3570 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3571 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3572 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3573 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3574 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3575 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3576 (list_available_thread_groups, mi_cmd_list_thread_groups)
3577 (mi_cmd_data_list_register_names)
3578 (mi_cmd_data_list_changed_registers)
3579 (mi_cmd_data_list_register_values, get_register)
3580 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3581 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3582 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3583 (mi_execute_command, mi_load_progress): Adjust.
3584 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3585 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3587 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3588 * tui/tui-interp.c (tui_command_loop): Adjust.
3589 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3591 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3593 * exceptions.c (struct catcher): Remove saved_uiout field.
3594 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3595 no longer save/resvore the global ui_out builder.
3596 (catch_exceptions_with_msg): Save/override/restore the global
3597 ui_out builder manually instead of relying on TRY_CATCH to do it.
3598 (catch_errors): Save/restore the global ui_out builder manually
3599 instead of relying on TRY_CATCH to do it.
3600 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3602 (TRY_CATCH): Adjust.
3603 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3604 the global ui_out builder manually instead of relying on TRY_CATCH
3607 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3609 * breakpoint.c (update_global_location_list): Ensure
3610 invariant 'first loc marked not duplicated and inserted,
3611 following locs marked duplicated/not inserted' is respected
3612 for multiple locations at the same address.
3613 (unduplicated_should_be_inserted) New function.
3614 (swap_insertion) New function.
3616 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3618 * stack.c (print_frame_arguments_choices): Comment typo fix.
3620 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3623 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3624 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3625 argument. Update callers.
3627 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3630 * doublest.c (convert_doublest_to_floatformat): Pass correct
3631 mantissa length to put_field.
3633 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3635 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3636 exception_print code path.
3637 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3638 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3639 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3641 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3644 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3645 Remove, merge them into ...
3646 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3647 variable args and its initialization.
3648 (struct print_args_args, print_args_stub): Remove, merge them into
3650 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3652 (do_gdb_disassembly): ... here. Remove variable args and its
3654 (print_frame): Remove variable args and its initialization, new
3655 variable gdbarch and numargs (from print_args_stub), inline here
3656 print_args_stub with a TRY_CATCH.
3657 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3659 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3660 New variable e, remove variable btargs and its initialization.
3662 2011-08-01 Tristan Gingold <gingold@adacore.com>
3664 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3666 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3668 * breakpoint.c (insert_bp_location): Document return value.
3669 (insert_breakpoint_locations): Fix documentation.
3670 (remove_breakpoints): Add documentation.
3672 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3674 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3675 argument. Update callers.
3677 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3679 * stack.c (print_frame_info): Comment typo fix.
3681 2011-07-29 Sterling Augustine <saugustine@google.com>
3683 * MAINTAINERS (Write After Approval): Add myself to the list.
3685 2011-07-29 Tom Tromey <tromey@redhat.com>
3687 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3688 (library_list_start_segment): Update.
3689 (library_list_start_section): Update.
3691 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3693 * varobj.c (value_get_print_value): Move hint check later into the
3694 function. Comment function. Free thevalue before reusing it.
3696 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 Pedro Alves <pedro@codesourcery.com>
3699 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3701 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3702 Assert the result kind.
3703 * value.h (value_one): Remove parameter lv.
3705 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3707 Fix crash on lval_computed values.
3708 * valops.c (value_zero): Use not_lval for lval_computed.
3710 2011-07-27 Tom Tromey <tromey@redhat.com>
3712 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3713 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3715 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3718 "ptype" by their typedefs difference.
3720 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3722 * dwarf2expr.c (ctx_no_read_reg): New function.
3723 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3724 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3725 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3726 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3728 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3730 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3731 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3733 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3734 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3735 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3736 (ctx_no_get_base_type): Move the functions here.
3737 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3738 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3739 (ctx_no_get_base_type): New declarations.
3741 2011-07-27 Tom Tromey <tromey@redhat.com>
3743 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3745 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3746 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3748 2011-07-26 Sterling Augustine <saugustine@google.com>
3750 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3752 (dump_bfd_file): Likewise.
3754 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3756 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3757 (remote_hw_watchpoint_length_limit): New variable.
3758 (_initialize_remote) add set,show cmds for this new variable.
3759 * gdb.texinfo: document these new commands.
3760 * NEWS: Mention these new commands.
3762 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3764 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3765 true for software watchpoints.
3767 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3771 2011-07-26 Tom Tromey <tromey@redhat.com>
3773 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3774 * dwarf2read.c (read_indirect_string_at_offset): New function.
3775 (read_indirect_string): Use it.
3776 (dwarf_decode_macro_bytes): New function, taken from
3777 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3778 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3779 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3781 (struct dwarf2_per_objfile) <macro>: New field.
3782 (dwarf2_elf_names): Add .debug_macro.
3783 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3784 (dwarf2_locate_sections): Handle new section.
3785 (read_file_scope): Handle DW_AT_GNU_macros.
3786 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3788 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3790 * NEWS: Mention dcache configuration.
3791 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3792 (dcache_size, dcache_line_size): New variables.
3793 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3794 (struct dcache_block): Make it expandable.
3795 (struct dcache_struct): New field.
3796 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3797 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3798 (dcache_poke_byte, dcache_print_line): Adjust.
3799 (set_dcache_size, set_dcache_line_size): New functions.
3800 (set_dcache_command, show_dcache_command): New functions.
3801 (_initialize_dcache): Add new commands.
3803 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3805 * progspace.h (struct program_space): Add solib_add_generation.
3806 * infcmd.c (post_create_inferior): Only call solib_add if not
3808 * solib.c (solib_add): Increment solib_add_generation.
3810 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3812 Fix implicit pointer offsets.
3813 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3816 2011-07-25 Tom Tromey <tromey@redhat.com>
3818 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3820 (ada_exception_sal): Make 'ops' const.
3821 (ada_decode_exception_location): Likewise.
3822 (ada_decode_assert_location): Likewise.
3823 (catch_assert_command): Update.
3824 (catch_ada_exception_command): Update.
3825 (create_ada_exception_catchpoint): Make 'ops' const.
3826 * breakpoint.c (set_raw_breakpoint_without_location)
3827 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3829 (create_internal_breakpoint): Update.
3830 (init_raw_breakpoint_without_location): Make 'ops' const.
3831 (init_raw_breakpoint, init_catchpoint)
3832 (create_fork_vfork_event_catchpoint)
3833 (create_syscall_event_catchpoint, init_breakpoint_sal)
3834 (create_breakpoint_sal, create_breakpoints_sal)
3835 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3836 * breakpoint.h (struct breakpoint) <ops>: Now const.
3837 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3840 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3842 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3844 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3846 * breakpoint.h (print_recreate_thread): Declare.
3847 (struct breakpoint): Move step_count, pass_count,
3848 number_on_target, static_trace_marker_id,
3849 static_trace_marker_id_idx ...
3850 (struct tracepoint): ... to this new struct.
3851 (get_tracepoint, get_tracepoint_by_number_on_target)
3852 (get_tracepoint_by_number): Change return type to struct
3854 * breakpoint.c (is_tracepoint_type): New, factored out from
3856 (is_tracepoint): Adjust.
3857 (print_one_breakpoint_location): Cast to struct tracepoint as
3858 necessary, and adjust.
3859 (print_recreate_catch_fork, print_recreate_catch_vfork)
3860 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3861 print_recreate_thread.
3862 (init_breakpoint_sal): New, factored out from
3863 create_breakpoint_sal.
3864 (create_breakpoint_sal): Reimplement.
3865 (create_breakpoint): Allocate a struct tracecepoint if the caller
3866 wanted a tracepoint. Use init_breakpoint_sal and
3868 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3869 (print_recreate_masked_watchpoint)
3870 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3871 (tracepoint_print_one_detail): Adjust.
3872 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3873 Dump the pass count here.
3874 (update_static_tracepoint): Adjust.
3875 (addr_string_to_sals): Adjust.
3876 (create_tracepoint_from_upload): Adjust. Change return type to
3877 struct tracepoint pointer.
3878 (trace_pass_set_count): Change parameter type to struct tracepoint
3879 pointer, and adjust.
3880 (trace_pass_command): Adjust.
3881 (get_tracepoint, get_tracepoint_by_number_on_target)
3882 (get_tracepoint_by_number): Change return type to struct
3883 tracepoint pointer, and adjust.
3884 (print_recreate_thread): New, factored out from save_breakpoints.
3885 (save_breakpoints): Don't print thread and task and passcount
3887 * remote.c (remote_download_tracepoint): Adjust.
3888 * tracepoint.c (trace_actions_command, validate_actionline)
3889 (start_tracing, tfind_1, trace_find_tracepoint_command)
3890 (trace_dump_command): Adjust.
3891 (find_matching_tracepoint): Change return type to struct
3892 tracepoint pointer, and adjust.
3893 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3894 (tfile_trace_find, tfile_fetch_registers): Adjust.
3895 * tracepoint.h (create_tracepoint_from_upload): Change return type
3896 to struct tracepoint pointer.
3897 * ada-lang.c (print_recreate_exception): Call
3898 print_recreate_thread.
3899 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3901 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3903 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3904 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3905 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3906 watchpoint_thread, watchpoint_triggered ...
3907 (struct watchpoint): ... to this new struct.
3908 (is_watchpoint): Declare.
3909 (install_breakpoint): Add new `internal' parameter.
3910 * breakpoint.c (is_watchpoint): Delete declaration.
3911 (set_breakpoint_condition): Handle watchpoints.
3912 (is_watchpoint): Make public.
3913 (watchpoint_in_thread_scope): Change parameter type to struct
3915 (watchpoint_del_at_next_stop): Change parameter type to struct
3916 watchpoint. Remove assertion. Adjust.
3917 (update_watchpoint): Ditto.
3918 (insert_breakpoints, breakpoint_init_inferior)
3919 (watchpoints_triggered, watchpoint_check)
3920 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3921 (bpstat_stop_status, print_one_breakpoint_location)
3922 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3923 to struct watchpoint as necessary, and adjust.
3924 (install_breakpoint): Add `internal' argument. If true, don't
3925 mention the new breakpoint. Use set_breakpoint_number.
3926 (create_fork_vfork_event_catchpoint)
3927 (create_syscall_event_catchpoint): Adjust.
3928 (dtor_watchpoint): New.
3929 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3930 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3931 (print_it_watchpoint, print_mention_watchpoint)
3932 (print_recreate_watchpoint, insert_masked_watchpoint)
3933 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3934 (print_one_detail_masked_watchpoint)
3935 (print_mention_masked_watchpoint)
3936 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3937 necessary, and adjust.
3938 (watch_command_1): Allocate and initialize a struct watchpoint
3939 instead of a struct breakpoint. Use install_breakpoint.
3940 (catch_exec_command_1): Adjust.
3941 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3943 (delete_breakpoint, enable_breakpoint_disp)
3944 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3945 as necessary, and adjust.
3946 (initialize_breakpoint_ops): Install dtor_watchpoint as
3947 watchpoints' dtor method.
3948 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3949 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3950 to struct watchpoint as necessary, and adjust.
3952 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3954 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3955 the the base class ops table.
3956 (catch_exception_breakpoint_ops)
3957 (catch_exception_unhandled_breakpoint_ops)
3958 (catch_assert_breakpoint_ops): Don't statically initialize.
3959 (initialize_ada_catchpoint_ops): New.
3960 (_initialize_ada_language): Call it.
3961 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3962 (bkpt_breakpoint_ops): Forward declare.
3963 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3964 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3965 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3966 (masked_watchpoint_breakpoint_ops)
3967 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3968 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3969 base class ops table.
3970 (null_re_set, null_check_status, null_works_in_software_mode)
3971 (null_resources_needed, null_print_one_detail): Delete.
3972 (bkpt_dtor): Rename to ...
3973 (base_breakpoint_dtor): ... this. Make static.
3974 (bkpt_allocate_location): Rename to ...
3975 (base_breakpoint_allocate_location): ... this. Make static.
3976 (base_breakpoint_re_set): New.
3977 (internal_error_pure_virtual_called): New.
3978 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3979 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3980 (base_breakpoint_works_in_software_mode)
3981 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3982 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3983 (base_breakpoint_print_recreate): New functions.
3984 (base_breakpoint_ops): New global.
3985 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3986 (bkpt_breakpoint_hit): Make static.
3987 (bkpt_check_status): Delete.
3988 (bkpt_resources_needed): Make static.
3989 (bkpt_works_in_software_mode): Delete.
3990 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3992 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3993 (momentary_breakpoint_ops): Don't statically initialize.
3994 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3996 (tracepoint_insert_location, tracepoint_remove_location)
3997 (tracepoint_check_status, tracepoint_works_in_software_mode)
3998 (tracepoint_print_it): Delete.
3999 (tracepoint_breakpoint_ops): Don't statically initialize.
4000 (initialize_breakpoint_ops): New.
4001 (_initialize_breakpoint): Call it.
4002 * breakpoint.h (null_re_set, null_works_in_software_mode)
4003 (null_resources_needed, null_check_status, null_print_one_detail):
4004 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4005 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4006 (bkpt_check_status, bkpt_resources_needed)
4007 (bkpt_works_in_software_mode, bkpt_print_it)
4008 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4009 Delete declarations.
4010 (initialize_breakpoint_ops): Declare.
4012 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4014 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4015 (momentary_bkpt_print_it): Simplify.
4017 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4019 Split internal, momentary and user breakpoints breakpoint_ops
4022 * breakpoint.c (internal_breakpoint_ops)
4023 (momentary_breakpoint_ops): Forward declare.
4024 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4025 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4026 (create_overlay_event_breakpoint)
4027 (create_std_terminate_master_breakpoint)
4028 (create_exception_master_breakpoint): Create breakpoints with
4029 internal_breakpoint_ops vtable.
4030 (set_longjmp_breakpoint): Create momentary breakpoints with
4031 momentary_breakpoint_ops vtable, using
4032 momentary_breakpoint_from_master.
4033 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4034 (create_solib_event_breakpoint): Create breakpoints with
4035 internal_breakpoint_ops vtable.
4036 (set_momentary_breakpoint): Create breakpoints with
4037 momentary_breakpoint_ops vtable.
4038 (momentary_breakpoint_from_master): New, factored out from
4039 clone_momentary_breakpoint.
4040 (clone_momentary_breakpoint): Adjust.
4041 (watch_command_1): Create scope breakpoints with
4042 momentary_breakpoint_ops vtable.
4043 (bkpt_re_set): Remove handling of internal and momentary
4045 (bkpt_print_mention, bkpt_print_recreate): New.
4046 (bkpt_breakpoint_ops): Adjust.
4047 (internal_bkpt_re_set, internal_bkpt_check_status)
4048 (internal_bkpt_print_it, internal_bkpt_print_mention)
4049 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4050 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4051 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4052 (momentary_bkpt_print_recreate): New.
4053 (momentary_breakpoint_ops): New.
4055 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4057 Implement most breakpoint_ops methods for all breakpoint types,
4058 and move the default handlings to the proper callbacks.
4060 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4061 works_in_software_mode method.
4062 (insert_bp_location): Go through breakpoint_ops->insert_location
4063 for software and hardware watchpoints.
4064 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4066 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4067 for software and hardware watchpoints.
4068 (print_it_typical): Delete.
4069 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4071 (watchpoint_check): Adjust comment.
4072 (bpstat_check_location): Simply always call the breakpoint's
4073 breakpoint_hit method.
4074 (bpstat_stop_status): Always call the breakpoint's check_status
4075 method. Remove special cases for watchpoints and internal event
4076 breakpoints from here (moved to the check_status implementations).
4077 (print_one_breakpoint_location): Assume b->ops is never NULL.
4078 Remove static tracepoint marker id printing from here (moved to
4079 the print_one_detail callback implementation of tracepoints).
4080 (init_bp_location): Assert OPS is never NULL.
4081 (allocate_bp_location): Always call the breakpoint's
4082 allocate_location method, and remove the default code from here.
4083 (free_bp_location): Always call the location's dtor method, and
4084 remove the default code from here.
4085 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4086 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4087 parameter. Pass it down.
4088 (set_raw_breakpoint): Ditto.
4089 (print_it_catch_fork): Adjust to take a bpstat as argument.
4090 (catch_fork_breakpoint_ops): Install methods.
4091 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4092 (catch_vfork_breakpoint_ops): Install methods.
4093 (dtor_catch_syscall): Call the base dtor.
4094 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4095 (catch_syscall_breakpoint_ops): Install methods.
4096 (dtor_catch_exec): Call the base dtor.
4097 (print_it_catch_exec): Adjust to take a bpstat as argument.
4098 (catch_exec_breakpoint_ops): Install methods.
4099 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4100 the breakpoint's resources_needed method, and remove the default
4102 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4104 (clone_momentary_breakpoint): Clone the original's ops.
4105 (mention): Always call the breakpoint's print_mention method, and
4106 remove the default code from here.
4107 (create_breakpoint_sal): Adjust to pass the ops to
4108 set_raw_breakpoint rather than setting it manually.
4109 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4110 ops to set_raw_breakpoint_without_location rather than setting it
4112 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4113 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4114 (ranged_breakpoint_ops): Install methods.
4115 (break_range_command): Adjust to pass the ops to
4116 set_raw_breakpoint rather than setting it manually.
4117 (re_set_watchpoint, breakpoint_hit_watchpoint)
4118 (check_status_watchpoint, resources_needed_watchpoint)
4119 (works_in_software_mode_watchpoint, print_it_watchpoint)
4120 (print_mention_watchpoint, print_recreate_watchpoint): New
4122 (watchpoint_breakpoint_ops): Install new methods.
4123 (print_it_masked_watchpoint): New function.
4124 (masked_watchpoint_breakpoint_ops): Install new methods.
4125 (watch_command_1): Adjust to pass the right breakpoint_ops to
4126 set_raw_breakpoint_without_location rather than setting it
4127 manually later. Record the current pspace.
4128 (print_it_exception_catchpoint): Adjust to take a bpstat as
4130 (gnu_v3_exception_catchpoint_ops): Install new methods.
4131 (say_where): New function.
4132 (null_re_set, null_check_status, null_works_in_software_mode)
4133 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4135 (bp_location_ops): New global.
4136 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4137 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4138 (bkpt_check_status, bkpt_resources_needed)
4139 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4140 (bkpt_print_recreate): New functions.
4141 (bkpt_breakpoint_ops): New global.
4142 (tracepoint_re_set, tracepoint_insert_location)
4143 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4144 (tracepoint_check_status, tracepoint_works_in_software_mode)
4145 (tracepoint_print_it, tracepoint_print_one_detail)
4146 (tracepoint_print_mention, tracepoint_print_recreate): New
4148 (tracepoint_breakpoint_ops): New global.
4149 (delete_breakpoint): Always call the breakpoint's dtor method, and
4150 remove the default handling from here.
4151 (breakpoint_re_set_default): Make static.
4152 (breakpoint_re_set_one): Always call the breakpoints re_set
4153 method, and remove the default handling from here.
4154 (trace_command, ftrace_command, strace_command)
4155 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4156 to create_breakpoint.
4157 (save_breakpoints): Always call the breakpoint's print_recreate
4158 method, and remove the default handling from here.
4160 * ada-lang.c (dtor_exception): Call the base dtor.
4161 (re_set_exception): Call the base method.
4162 (print_it_exception, print_it_catch_exception): Adjust to take a
4164 (catch_exception_breakpoint_ops): Install methods.
4165 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4167 (catch_exception_unhandled_breakpoint_ops): Install methods.
4168 (print_it_catch_assert): Adjust to take a bpstat as argument.
4169 (catch_assert_breakpoint_ops): Install methods.
4171 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4172 to take a bpstat as argument.
4173 (enum print_stop_action): Add describing comments to each enum
4175 (breakpoint_re_set_default): Delete declaration.
4176 (null_re_set, null_works_in_software_mode, null_resources_needed)
4177 (null_check_status, null_print_one_detail): Declare.
4178 (bkpt_breakpoint_ops): Declare.
4179 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4180 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4181 (bkpt_check_status, bkpt_resources_needed)
4182 (bkpt_works_in_software_mode, bkpt_print_it)
4183 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4186 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4187 bkpt_breakpoint_ops.
4188 * python/py-breakpoint.c (bppy_init): Ditto.
4190 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4192 * MAINTAINERS (Write After Approval): Add myself to the list.
4194 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4196 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4198 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4200 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4201 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4202 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4204 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4205 (struct i386_debug_reg_state): New.
4206 (i386_init_dregs): New.
4208 (i386_cleanup_dregs): Use i386_init_dregs.
4209 (i386_show_dr): Add state parameter and adjust.
4210 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4212 (i386_remove_aligned_watchpoint): Likewise.
4213 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4214 (i386_update_inferior_debug_regs): New.
4215 (i386_insert_watchpoint): Work on a local mirror of the debug
4216 registers, and only update the inferior on success.
4217 (i386_remove_watchpoint): Ditto.
4218 (i386_region_ok_for_watchpoint): Adjust.
4219 (i386_stopped_data_address): Adjust.
4220 (i386_insert_hw_breakpoint): Adjust.
4221 (i386_remove_hw_breakpoint): Adjust.
4223 2011-07-22 Tom Tromey <tromey@redhat.com>
4225 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4226 from amd64_pseudo_register_read. Change arguments. Call
4227 mark_value_bytes_unavailable when needed.
4228 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4229 set_gdbarch_pseudo_register_read.
4230 * sentinel-frame.c (sentinel_frame_prev_register): Use
4231 regcache_cooked_read_value.
4232 * regcache.h (regcache_cooked_read_value): Declare.
4233 * regcache.c (regcache_cooked_read_value): New function.
4234 (regcache_cooked_read): Call
4235 gdbarch_pseudo_register_read_value if available.
4236 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4237 (i386_pseudo_register_read): Remove.
4238 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4239 i386_pseudo_register_read. Change arguments. Call
4240 mark_value_bytes_unavailable when needed.
4241 (i386_pseudo_register_read_value): New function.
4242 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4243 not set_gdbarch_pseudo_register_read.
4244 * gdbarch.sh (pseudo_register_read_value): New method.
4245 * gdbarch.c, gdbarch.h: Rebuild.
4246 * findvar.c (value_from_register): Call get_frame_register_value.
4248 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4250 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4252 (display_gdb_prompt): Likewise.
4253 (change_annotation_level): Likewise.
4254 (push_prompt): Likewise.
4255 (pop_prompt): Likewise.
4256 (handle_stop_sig): Use get_prompt with a level.
4257 * top.c (command_loop): Use get_prompt with a level.
4258 (set_async_annotation_level): Use set_prompt with a level.
4259 (get_prefix): New function.
4260 (set_prefix): Ditto.
4261 (set_suffix): Ditto.
4262 (get_suffix): Ditto.
4263 (get_prompt): Accept a level argument.
4264 (set_prompt): Accept a level argument. Free old prompts. Set
4265 new_async_prompt if level is 0.
4266 (init_main): Use set_prompt with a level. Do not set
4268 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4269 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4270 Modify set_prompt, get_prompt to account for levels.
4271 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4273 * python/python.c (before_prompt_hook): Use set_prompt.
4275 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4277 * defs.h: Add guard against inclusion in gdbserver.
4278 (struct ptid, ptid_t): Move to common/ptid.h.
4279 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4280 xsnprintf, internal_error): Move to common/common-utils.h.
4282 * gdb_assert.h: Move into common/ sub-directory.
4283 * gdb_locale.h: Ditto.
4284 * gdb_dirent.h: Ditto.
4285 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4286 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4287 Move into common/ptid.h.
4288 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4289 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4290 Change nomem to malloc_failure.
4291 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4292 * utils.c (nomem): Rename to malloc_failure.
4293 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4294 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4295 (gdb_buildargv): Change nomem to malloc_failure.
4296 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4297 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4298 ptid_is_pid): Move into common/ptid.c.
4299 (initialize_infrun): Delete initialization of null_ptid and
4301 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4302 linux_common_xfer_osdata.
4303 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4304 common/ptid.c and common/buffer.c.
4305 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4306 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4307 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4308 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4310 * common/gdb_assert.h: New.
4311 * common/gdb_dirent.h: New.
4312 * common/gdb_locale.h: New.
4313 * common/buffer.c: New.
4314 * common/buffer.h: New.
4315 * common/ptid.c: New.
4316 * common/ptid.h: New.
4317 * common/xml-utils.c: New.
4318 * common/xml-utils.h: New.
4319 * common/common-utils.c: New.
4320 * common/common-utils.h: New.
4321 * common/linux-osdata.c: New.
4322 * common/linux-osdata.h: New.
4323 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4324 * config/arm/linux.mh (NATDEPFILES): Ditto.
4325 * config/i386/linux.mh (NATDEPFILES): Ditto.
4326 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4327 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4328 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4329 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4330 * config/mips/linux.mh (NATDEPFILES): Ditto.
4331 * config/pa/linux.mh (NATDEPFILES): Ditto.
4332 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4333 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4334 * config/s390/s390.mh (NATDEPFILES): Ditto.
4335 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4336 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4337 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4339 2011-07-21 Matt Rice <ratmice@gmail.com>
4341 * NEWS: Add info macros and info definitions commands.
4343 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4345 * NEWS: Document Python prompt substitution hook.
4347 2011-07-18 Matt Rice <ratmice@gmail.com>
4350 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4351 * macrotab.c (foreach_macro): Ditto.
4352 (foreach_macro_in_scope): Ditto.
4353 * macrocmd.c (print_macro_callback): New function.
4354 (info_macro_command): Move some code to print_macro_definition.
4355 (print_macro_definition): New function.
4356 (print_one_macro): Add new arguments to callback.
4357 (info_definitions_command): New function.
4358 (info_macros_command): Ditto.
4359 (_initialize_macrocmd): Add info macros and info definitions commands.
4360 * symtab.c (add_macro_name): Add new arguments to callback.
4362 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4363 Tom Tromey <tromey@redhat.com>
4365 * top.c (set_prompt): Rewrite to free previous prompt, free
4366 asynch_new_prompt and set both on new prompts.
4367 * event-top.c (display_gdb_prompt): Add prompt substitution
4369 * python/python.c (before_prompt_hook): New function.
4371 2011-07-20 Matt Rice <ratmice@gmail.com>
4373 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4374 arguments to store_unsigned_integer.
4376 2011-07-20 Tom Tromey <tromey@redhat.com>
4378 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4379 in some declaration-only cases.
4381 2011-07-18 Tom Tromey <tromey@redhat.com>
4384 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4385 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4386 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4387 <debug_type_section>: New field.
4388 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4389 (load_cu): Use appropriate section.
4390 (create_signatured_type_table_from_index): Add 'section'
4392 (dwarf2_read_index): Only allow a single .debug_types section.
4393 (dw2_get_file_names): Use appropriate section.
4394 (read_type_comp_unit_head): Add 'section' argument.
4395 (create_debug_types_hash_table): Loop over all .debug_types
4397 (init_cu_die_reader): Use appropriate section.
4398 (process_psymtab_comp_unit, load_partial_comp_unit)
4399 (load_full_comp_unit, read_die_and_children, find_partial_die)
4400 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4401 (lookup_signatured_type_at_offset): Add 'section' argument.
4402 (read_signatured_type_at_offset): Add 'sect' argument.
4403 (read_signatured_type): Use appropriate section.
4404 (set_die_type, get_die_type_at_offset): Update.
4405 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4407 (write_psymtabs_to_index): Don't allow index with more than one
4408 .debug_types section.
4410 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 Fix crash if referenced CU is aged out.
4413 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4414 xfree of block.data.
4415 (indirect_pieced_value): New variable back_to, use to for xfree of
4417 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4419 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4420 (load_cu): New function from ...
4421 (dw2_do_instantiate_symtab): ... the code here ...
4422 (process_full_comp_unit): ... and here.
4423 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4426 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4428 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4431 2011-07-19 Gary Benson <gbenson@redhat.com>
4433 * infrun.c (struct execution_control_state): New member
4434 stop_func_filled_in.
4435 (clear_stop_func, fill_in_stop_func): New functions.
4436 (handle_inferior_event): Call clear_stop_func rather than
4437 manipulating the execution control state directly.
4438 Call fill_in_stop_func lazily as required rather than
4439 directly calling find_pc_partial_function in all cases.
4441 2011-07-18 Tom Tromey <tromey@redhat.com>
4443 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4444 checking for variable-sized array.
4446 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4448 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4449 of supported languages.
4450 * varobj.c: Add top definitions and basic implementation of the
4451 following callbacks: ada_number_of_children, ada_name_of_variable,
4452 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4453 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4454 (languages): Register Ada-specific callbacks.
4455 (variable_language): Add the Ada case in the language setter switch.
4457 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4459 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4461 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4465 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4466 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4467 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4468 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4469 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4470 (struct dwarf_expr_context_funcs): New, move here methods from ...
4471 (struct dwarf_expr_context): ... here. New fields funcs.
4472 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4473 (dwarf_expr_ctx_funcs): New.
4474 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4475 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4476 (needs_frame_ctx_funcs): New.
4477 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4479 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4481 * MAINTAINERS (Write After Approval): Add myself to the list.
4483 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4485 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4486 that CIE pointer of an FDE really points to a CIE .
4488 2011-07-15 Hui Zhu <teawater@gmail.com>
4490 * remote.c (remote_get_trace_status): Add comments.
4492 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 Code cleanup - constify struct lval_funcs.
4495 * dwarf2loc.c (pieced_value_funcs): Make it const.
4496 * infrun.c (siginfo_value_funcs): Likewise.
4497 * opencl-lang.c (opencl_value_funcs): Likewise.
4498 * valops.c (value_assign, value_ind): Make the funcs variable const.
4499 * value.c (struct value): Make location.computed.funcs target const.
4500 Rearrange the comments.
4501 (allocate_computed_value): Make the funcs parameter target const.
4502 (value_computed_funcs): Return the funcs target const.
4503 (value_free, value_copy, set_value_component_location): Make the funcs
4505 * value.h (allocate_computed_value): Make the funcs parameter target
4507 (value_computed_funcs): Return the funcs target const.
4508 * windows-tdep.c (tlb_value_funcs): Make it const.
4510 2011-07-14 Hui Zhu <teawater@gmail.com>
4512 * remote.c (remote_get_trace_status): Initialize p.
4514 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * remote.c (remote_get_trace_status): New variable ex. Put
4518 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4520 2011-07-13 Tom Tromey <tromey@redhat.com>
4522 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4523 value_from_contents for final conversion.
4525 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4529 Indent prototypes so they do not get into tags.
4531 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4533 Code cleanup making also optimized out values lazy.
4534 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4535 allocate_optimized_out_value. Twice.
4536 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4537 * findvar.c (read_var_value): Likewise.
4538 * value.c (allocate_optimized_out_value): New function.
4539 * value.h (allocate_optimized_out_value): New declaration.
4541 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4543 Fix occasional crash of CTRL-C during DWARF read in.
4544 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4546 2011-07-11 Tom Tromey <tromey@redhat.com>
4548 * regcache.c (struct regcache_descr): Fix typo.
4549 * i387-tdep.c (i387_supply_xsave): Fix typo.
4551 2011-07-11 Tom Tromey <tromey@redhat.com>
4553 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4554 (read_file_scope, read_type_unit_scope): Use it.
4556 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4561 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4564 * python/python.c: Set gdbpy_should_print_stack default to off.
4565 (set_python): Deprecate maint set python print-stack to
4567 (_initialize_python): Deprecate maint set/show python print-stack.
4568 Add new prefix command, python. Add new setting, print-backtrace.
4569 * NEWS: Document set python print-stack. Document default change.
4571 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4573 * python/py-inferior.c (infpy_dealloc): New function.
4574 (inferior_to_inferior_object): Return a new object, or a
4575 new reference to the existing object.
4576 (find_thread_object): Cleanup references to inferior.
4577 (delete_thread_object): Ditto.
4578 * python/py-infthread.c (create_thread_object): Do not increment
4579 inferior reference count.
4581 2011-07-08 Tom Tromey <tromey@redhat.com>
4583 * dwarf2loc.c (locexpr_regname): New function.
4584 (locexpr_describe_location_piece): Use it.
4585 (disassemble_dwarf_expression): Add per_cu argument. Use
4587 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4588 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4590 (locexpr_describe_location_1): Add per_cu argument.
4591 (locexpr_describe_location): Update.
4592 (loclist_describe_location): Update.
4594 2011-07-08 Tom Tromey <tromey@redhat.com>
4596 * dwarf2expr.c (execute_stack_op): Add QUIT.
4598 2011-07-07 Hui Zhu <teawater@gmail.com>
4601 2011-07-06 Hui Zhu <teawater@gmail.com>
4602 * remote.c (remote_start_remote): Add TRY_CATCH for
4603 remote_get_trace_status.
4604 * tracepoint.c (disconnect_tracing): Ditto.
4606 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4608 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4609 variables as signed, not unsigned.
4611 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4613 * jit.c (jit_inferior_init): Reformat forward declaration.
4615 2011-07-06 Matt Rice <ratmice@gmail.com>
4617 * MAINTAINERS (Write After Approval): Add myself to the list.
4619 2011-07-06 Hui Zhu <teawater@gmail.com>
4621 * remote.c (remote_start_remote): Add TRY_CATCH for
4622 remote_get_trace_status.
4623 * tracepoint.c (disconnect_tracing): Ditto.
4625 2011-07-05 Tom Tromey <tromey@redhat.com>
4627 * symtab.c (operator_chars): Now static.
4628 * linespec.c (operator_chars): Don't declare.
4630 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4632 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4634 2011-07-05 Tom Tromey <tromey@redhat.com>
4636 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4637 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4638 (TYPE_CPLUS_REALLY_JAVA): New macro.
4639 * dwarf2read.c (process_structure_scope): Set
4640 TYPE_CPLUS_REALLY_JAVA.
4642 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4644 * ada-lang.c: Fix typos.
4645 * amd64-tdep.c: Likewise.
4646 * breakpoint.c: Likewise.
4647 * cli/cli-decode.c: Likewise.
4648 * findcmd.c: Likewise.
4649 * inline-frame.c: Likewise.
4650 * mi/mi-main.c: Likewise.
4651 * minsyms.c: Likewise.
4652 * monitor.c: Likewise.
4653 * monitor.h: Likewise.
4654 * prologue-value.c: Likewise.
4655 * reverse.c: Likewise.
4656 * s390-tdep.c: Likewise.
4658 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4660 * jit.c (jit_inferior_init): Forward declare.
4661 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4663 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4665 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4667 2011-07-04 Tristan Gingold <gingold@adacore.com>
4669 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4670 (tcb_fieldno): Add activation_link field.
4671 (get_known_tasks_addr): Moved and rewritten.
4672 (get_tcb_types_info): Set activation_link field.
4673 (read_known_tasks_array): Add parameter. Rewritten.
4674 (read_known_tasks_list): New function.
4675 (read_known_tasks): New function.
4676 (ada_build_task_list): Call read_known_tasks instead of
4677 read_known_tasks_array.
4678 * ravenscar-thread.c: Add first_task_name constant.
4679 (has_ravenscar_runtime): Check for task list too.
4681 2011-07-04 Tristan Gingold <gingold@adacore.com>
4683 * ada-tasks.c: Renames fieldno to actb_fieldno.
4684 (ada_get_task_number): Indentation.
4685 (get_tcb_types_info): Remove all parameters. Write directly
4687 (ptid_from_atcb_common): Adjust.
4688 (read_atcb): Adjust.
4690 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4692 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4694 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4696 * ui-out.c (ui_out_field_core_addr): Mention that the function
4697 description is in the header file.
4698 * ui-out.h (ui_out_field_core_addr): Document function.
4700 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4702 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4703 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4705 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4707 * symtab.c (expand_line_sal): Remove empty line.
4709 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4711 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4712 same way as ELFOSABI_NONE.
4713 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4715 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4717 * breakpoint.c: Fix typos in comments.
4718 * linespec.c: Likewise.
4719 * symtab.c: Likewise.
4721 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4723 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4724 section in separate object files.
4726 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 Fix false GCC warning.
4729 * linespec.c (decode_line_1): Initialize values.
4731 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 * linespec.c (find_method): Accept the function type automatically only
4734 if it was specified with parameter types.
4736 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 Stop on first linespec terminator instead of eating what we can.
4739 * linespec.c (is_linespec_boundary): New function.
4740 (name_end): Remove function.
4741 (keep_name_info): New parameter on_boundary, replace the body.
4742 (decode_line_1): Provide the parameter to keep_name_info.
4743 (decode_compound): Likewise. Drop the trailing java return type
4746 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 Fall back linespec to minimal symbols.
4749 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4750 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4751 (find_method, symbol_found): Change error to cplusplus_error.
4753 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4757 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 Tom Tromey <tromey@redhat.com>
4760 * dwarf2read.c (check_physname): New variable.
4761 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4762 (show_check_physname): New function.
4763 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4765 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4767 * machoread.c (macho_symfile_read): Delete OBE comment.
4769 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4771 * machoread.c (struct macho_oso_data): Delete.
4772 (current_oso): Delete.
4773 (macho_relocate_common_syms): New function, mostly extracted
4775 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4776 Remove code that sets and unset current_oso.
4777 (macho_symfile_relocate): Delete handling of common symbols,
4778 now moved to macho_relocate_common_syms.
4780 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4782 * darwin-nat.c (darwin_ptrace): Add documentation.
4783 Set errno to zero before calling ptrace. If ptrace returns
4784 -1 and errno is zero, then change then return zero.
4785 (darwin_kill_inferior): Issue a warning instead of triggering
4786 a failed assertion when the PT_KILL ptrace operations returned
4789 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4791 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4792 only when inf->private->no_ptrace.
4794 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4796 * ada-lang.c (print_it_exception): Print temporary catchpoints
4797 as "Temporary catchpoint".
4798 (print_mention_exception): Likewise.
4800 2011-07-01 Tom Tromey <tromey@redhat.com>
4802 * jv-lang.c (java_language_defn): Use java_printchar,
4804 (java_get_encoding): New function.
4805 (java_emit_char): Use generic_emit_char.
4806 (java_printchar): New function.
4807 (java_printstr): Likewise.
4809 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4811 * ada-typeprint.c (print_record_type): If unable to decode
4812 the name of the parent type, use the encoded name.
4814 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4816 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4817 pointer to constrained packed array type output.
4818 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4819 packed array output.
4821 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4823 * ada-typeprint.c (print_array_type): removed if condition on show
4824 being negative for bounds printing.
4826 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4828 * ada-lang.c (ada_identical_enum_types_p): New function.
4829 (symbols_are_identical_enums): New function.
4830 (remove_extra_symbols): Do nothing if NSYMS < 2.
4831 Use symbols_are_identical_enums.
4833 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4835 * ada-valprint.c (ada_value_print): Handle typedefs.
4837 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4839 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4841 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4843 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4844 (decode_constrained_packed_array): Likewise.
4845 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4847 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4849 * ada-exp.y (convert_char_literal): Handle typedef types.
4851 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4853 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4855 2011-06-30 Tom Tromey <tromey@redhat.com>
4857 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4858 * valops.c (find_overload_match): Call do_cleanups on early exit
4860 * solib.c (solib_find): Call do_cleanups on early exit path.
4862 2011-06-30 Tom Tromey <tromey@redhat.com>
4864 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4865 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4866 return paths. Defer final do_cleanups until last return.
4867 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4870 2011-06-30 Tom Tromey <tromey@redhat.com>
4872 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4874 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4876 * MAINTAINERS (Write After Approval): Add myself to the list.
4878 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4880 Disable epilogue unwinders on recent GCCs.
4881 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4882 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4883 * dwarf2read.c (process_full_comp_unit): Initialize
4884 EPILOGUE_UNWIND_VALID.
4885 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4886 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4887 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4889 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4891 Code cleanup - reformatting.
4892 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4893 (producer_is_gcc_ge_4): ... here, change the return value.
4894 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4897 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4899 Fix non-only rename list for Fortran modules import.
4900 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4901 cp_add_using_directive caller.
4902 (cp_add_using_directive): New parameter excludes, describe it. New
4903 variables ix and param. Compare if also excludes match. Allocate NEW
4904 with variable size, initialize EXCLUDES there.
4905 (cp_lookup_symbol_imports): New variable excludep, test
4906 current->EXCLUDES with it.
4907 * cp-support.h: Include vec.h.
4908 (struct using_direct): New field excludes, describe it.
4909 (DEF_VEC_P (const_char_ptr)): New.
4910 (cp_add_using_directive): New parameter excludes.
4911 * defs.h (const_char_ptr): New typedef.
4912 * dwarf2read.c (read_import_statement): New variables child_die,
4913 excludes and cleanups, read in excludes.
4914 (read_namespace): Adjust the cp_add_using_directive caller.
4916 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4919 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4920 negative comparisons.
4922 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4924 * mi/mi-main.c (mi_cmd_list_features): Emit
4925 breakpoint-notifications.
4927 2011-06-29 Tom Tromey <tromey@redhat.com>
4930 * valprint.h (generic_emit_char, generic_printstr): Declare.
4931 * valprint.c (wchar_printable, append_string_as_wide)
4932 (print_wchar): Move from c-lang.c.
4933 (generic_emit_char): New function; mostly taken from c_emit_char.
4934 (generic_printstr): New function; mostly taken from c_printstr.
4935 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4936 represented as arrays.
4937 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4939 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4940 identically to TYPE_CODE_INT.
4941 * f-lang.c (f_get_encoding): New function.
4942 (f_emit_char): Use generic_emit_char.
4943 (f_printchar): Replace comment.
4944 (f_printstr): Use generic_printstr.
4945 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4946 "character" types specially.
4947 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4949 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4951 (c_emit_char): Call generic_emit_char.
4952 (c_printstr): Call generic_printstr.
4954 2011-06-29 Gary Benson <gbenson@redhat.com>
4956 * breakpoint.c (bpstat_what): Removed duplicated case.
4958 2011-06-28 Tom Tromey <tromey@redhat.com>
4960 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4962 2011-06-27 Tom Tromey <tromey@redhat.com>
4964 * valops.c (find_overload_match): Call do_cleanups before early
4966 * top.c (execute_command): Call do_cleanups before early return.
4967 (command_loop): Likewise.
4968 * stack.c (backtrace_command): Make a null cleanup early. Don't
4969 conditionally call do_cleanups.
4970 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4972 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4973 so cleanups are always run.
4974 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4975 * findcmd.c (parse_find_args): Call do_cleanups on early return
4977 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4978 Don't conditionally call do_cleanups.
4979 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4982 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4984 * MAINTAINERS (Write After Approval): Use default email address.
4986 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4988 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4990 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4992 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4993 saved_regs_mask and copied_regs_mask fields.
4994 (sparc_record_save_insn): New prototype.
4995 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4996 (sparc_record_save_insn): New function.
4997 (sparc_analyze_prologue): Add head comment. Recognize store insns
4998 of call-saved registers. Use OFFSET consistently. Recognize flat
4999 frames and cache their settings.
5000 (sparc32_skip_prologue): Handle flat frames.
5001 (sparc_frame_cache): Add frame_offset to the base address.
5002 (sparc32_frame_cache): Adjust to new frame description.
5003 (sparc32_frame_prev_register): Likewise.
5004 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5005 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5006 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5007 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5008 frame by calling sparc_record_save_insn.
5009 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5010 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5011 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5013 2011-06-27 Tristan Gingold <gingold@adacore.com>
5015 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5016 field by map_addr and map_len.
5017 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5018 (munmap_section_buffer): Likewise.
5020 2011-06-24 Tom Tromey <tromey@redhat.com>
5022 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5023 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5024 * python/python.c (gdbpy_parameter): Make 'arg' const.
5025 (execute_gdb_command): Likewise.
5026 (gdbpy_decode_line): Likewise. Copy it.
5027 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5028 (gdbpy_write): Make 'arg' const.
5029 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5031 (gdbpy_lookup_type): Likewise.
5032 * python/py-prettyprint.c (print_children): Make 'name' const.
5033 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5034 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5036 * python/py-function.c (fnpy_init): Make 'name' const.
5037 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5038 (gdbpy_string_to_argv): Make 'input' const.
5039 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5041 * gdbtypes.h (lookup_typename): Update.
5042 * gdbtypes.c (lookup_typename): Make 'name' const.
5043 (lookup_struct): Likewise.
5044 (lookup_union): Likewise.
5045 (lookup_enum): Likewise.
5047 2011-06-24 Tom Tromey <tromey@redhat.com>
5049 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5050 gdb_thread_db.h. Move all common/ entries to be together.
5051 (TAGS): Don't depend on DEPFILES.
5053 2011-06-23 Yao Qi <yao@codesourcery.com>
5055 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5056 * remote.c (remote_start_remote): ... here.
5057 * monitor.c (monitor_open): ... here.
5059 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5061 * gdbtypes.c (append_composite_type_field_aligned): Fix
5062 calculation of bit position based on alignment.
5064 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5066 * breakpoint.c (bpstat_stop_status): Call the check_status
5067 breakpoint_ops method.
5068 (print_one_breakpoint_location): Also print the condition for Ada
5069 exception catchpoints.
5070 (allocate_bp_location): New, factored out from
5071 allocate_bp_location.
5072 (allocate_bp_location): Adjust. Call the owner breakpoint's
5073 allocate_location method, if there is one.
5074 (free_bp_location): Call the locations's dtor method, if there is
5076 (init_raw_breakpoint_without_location): New breakpoint_ops
5078 (set_raw_breakpoint_without_location): Adjust.
5079 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5080 (set_raw_breakpoint): Adjust.
5081 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5082 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5083 re_set and check_status methods.
5084 (init_catchpoint): Don't memset, initialize thread, addr_string
5085 and enable_state. Pass the ops down to init_raw_breakpoint.
5086 (install_catchpoint): Rename to ...
5087 (install_breakpoint): ... this, and make extern.
5088 (create_fork_vfork_event_catchpoint): Adjust.
5089 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5090 re_set and check_status methods.
5091 (create_syscall_event_catchpoint): Adjust.
5092 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5093 (masked_watchpoint_breakpoint_ops): Install NULL
5094 allocate_location, re_set and check_status methods.
5095 (catch_exec_command_1): Adjust.
5096 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5097 re_set and check_status methods.
5098 (create_ada_exception_breakpoint): Rename to ...
5099 (init_ada_exception_breakpoint): ... this. Add a struct
5100 breakpoint parameter, and delete the exp_string, cond_string and
5101 cond parameters. Use init_raw_breakpoint, and don't install or
5102 mention the breakpoint yet. Don't clear breakpoint fields that
5103 init_raw_breakpoint already clears.
5104 (re_set_breakpoint): Delete, split into ...
5105 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5107 (breakpoint_re_set_one): Call the breakpoint's
5108 breakpoint_ops->re_set implementation, if there's one. Adjust.
5109 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5110 (struct bp_location_ops): New type.
5111 (struct bp_location): New field `ops'.
5112 (struct breakpoint_ops): New `allocate_location', `re_set' and
5113 `check_status' fields. Make `breakpoint_hit''s description match
5115 (init_bp_location): Declare.
5116 (breakpoint_re_set_default): Declare.
5117 (create_ada_exception_breakpoint): Rename to ...
5118 (init_ada_exception_breakpoint): ... this. Add a struct
5119 breakpoint parameter, and delete the exp_string, cond_string and
5121 (install_breakpoint): Declare.
5122 * ada-lang.c: Include exceptions.h.
5123 <Ada exceptions description>: Update.
5124 (struct ada_catchpoint_location): New type.
5125 (ada_catchpoint_location_dtor): New function.
5126 (ada_catchpoint_location_ops): New global.
5127 (ada_catchpoint): New type.
5128 (create_excep_cond_exprs): New function.
5129 (dtor_exception, allocate_location_exception, re_set_exception)
5130 (should_stop_exception, check_status_exception): New functions.
5131 (print_one_exception, print_mention_exception)
5132 (print_recreate_exception): Adjust.
5133 (dtor_catch_exception, allocate_location_catch_exception)
5134 (re_set_catch_exception, check_status_catch_exception): New
5136 (catch_exception_breakpoint_ops): Install them.
5137 (dtor_catch_exception_unhandled)
5138 (allocate_location_catch_exception_unhandled)
5139 (re_set_catch_exception_unhandled)
5140 (check_status_catch_exception_unhandled): New functions.
5141 (catch_exception_unhandled_breakpoint_ops): Install them.
5142 (dtor_catch_assert, allocate_location_catch_assert)
5143 (re_set_catch_assert, check_status_catch_assert): New functions.
5144 (catch_assert_breakpoint_ops): Install them.
5145 (ada_exception_catchpoint_p): Delete.
5146 (catch_ada_exception_command_split)
5147 (ada_exception_catchpoint_cond_string): Rename exp_string
5148 parameter to excep_string. Adjust.
5149 (ada_parse_catchpoint_condition): Delete.
5150 (ada_exception_sal): Rename the exp_string parameter to
5151 excep_string. Delete the cond_string and cond parameters.
5153 (ada_decode_exception_location): Rename the exp_string parameter
5154 to excep_string. Delete the cond_string and cond parameters.
5156 (create_ada_exception_catchpoint): New function.
5157 (catch_ada_exception_command, ada_decode_assert_location)
5158 (catch_assert_command): Adjust.
5159 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5161 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5163 * ada-lang.c: Include arch-utils.h.
5164 (ada_decode_exception_location): Make static.
5165 (catch_ada_exception_command): Moved here from breakpoint.c.
5166 (ada_decode_assert_location): Make static.
5167 (catch_assert_command): Moved here from breakpoint.c.
5168 (_initialize_ada_lang): Install the exception and assert
5169 catchpoint commands here.
5170 * ada-lang.h (ada_decode_exception_location)
5171 (ada_decode_assert_location): Delete declarations.
5172 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5174 (create_ada_exception_breakpoint): Make extern.
5175 (catch_ada_exception_command, catch_assert_command): Moved to
5177 (add_catch_command): Make extern.
5178 (_initilize_breakpoint): Don't install the exception and assert
5179 catchpoint commands here.
5180 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5182 (add_catch_command, create_ada_exception_breakpoint): Declare.
5184 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5186 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5187 the breakpoint to the breakpoint chain here.
5188 (set_raw_breakpoint_without_location): Add the breakpoint to the
5189 breakpoint chain here.
5190 (init_raw_breakpoint): Adjust comments.
5191 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5193 (init_catchpoint): Don't set the catchpoint's breakpoint number
5195 (install_catchpoint): New function.
5196 (create_fork_vfork_event_catchpoint)
5197 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5198 use install_catchpoint.
5200 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5202 * breakpoint.c (create_catchpoint_without_mention)
5203 (create_catchpoint): Delete.
5205 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5207 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5208 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5209 reference to exec_pathname.
5210 (struct exec_catchpoint): New type.
5211 (dtor_catch_exec): New function.
5212 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5213 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5214 (catch_exec_command_1): Adjust to use init_catchpoint.
5215 (delete_breakpoint): Remove reference to exec_pathname.
5217 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5219 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5220 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5221 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5222 reference to syscalls_to_be_caught.
5223 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5225 (struct syscall_catchpoint): New type.
5226 (dtor_catch_syscall): New function.
5227 (insert_catch_syscall, remove_catch_syscall)
5228 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5229 (print_recreate_catch_syscall): Adjust.
5230 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5231 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5232 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5233 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5234 (masked_watchpoint_breakpoint_ops)
5235 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5236 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5237 there is one. Remove references to syscalls_to_be_caught.
5238 (catching_syscall_number): Adjust.
5239 * ada-lang.c (catch_exception_breakpoint_ops)
5240 (catch_exception_unhandled_breakpoint_ops)
5241 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5243 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5245 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5247 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5248 reference to forked_inferior_pid.
5249 (struct fork_catchpoint): New type.
5250 (breakpoint_hit_catch_fork, print_it_catch_fork)
5251 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5252 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5253 (create_fork_vfork_event_catchpoint): Adjust to use
5256 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5258 * breakpoint.c (add_to_breakpoint_chain)
5259 (init_raw_breakpoint_without_location): New functions, factored
5261 (set_raw_breakpoint_without_location): ... this one.
5262 (init_raw_breakpoint): New function, factored out from
5263 set_raw_breakpoint and adjusted to use
5264 init_raw_breakpoint_without_location.
5265 (set_raw_breakpoint): Adjust.
5266 (init_catchpoint): New function, factored out from
5267 create_catchpoint_without_mention and adjusted to use
5268 init_raw_breakpoint.
5269 (create_catchpoint_without_mention): Adjust.
5271 2011-06-22 Tom Tromey <tromey@redhat.com>
5273 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5274 argument of 0 specially.
5276 2011-06-22 Yao Qi <yao@codesourcery.com>
5278 * infrun.c (handle_inferior_event): Remove write-only local variable
5279 `sw_single_step_trap_p'.
5281 2011-06-20 Tom Tromey <tromey@redhat.com>
5283 * symtab.c (lookup_language_this): End loop if block is NULL.
5285 2011-06-17 Tom Tromey <tromey@redhat.com>
5287 * valops.c (value_of_this): Use lookup_language_this.
5288 * symtab.h (lookup_language_this): Declare.
5289 * symtab.c (lookup_language_this): New function.
5290 (lookup_symbol_aux): Use lookup_language_this.
5291 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5293 2011-06-17 Tom Tromey <tromey@redhat.com>
5295 * value.h (value_of_this): Update.
5296 (value_of_local): Remove.
5297 * valops.c (value_of_this): Rename from value_of_local. Change
5299 * p-exp.y (exp): Update.
5300 (variable): Likewise.
5301 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5303 2011-06-17 Tom Tromey <tromey@redhat.com>
5305 * valops.c (value_of_local): Complain if NAME is NULL.
5306 * std-operator.def (OP_OBJC_SELF): Remove.
5307 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5308 * objc-exp.y (name_not_typename): Use OP_THIS.
5309 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5311 <OP_OBJC_SELF>: Remove.
5312 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5314 2011-06-16 Tristan Gingold <gingold@adacore.com>
5316 * python/py-events.h (gdb_py_events): Make it extern.
5317 * python/py-evtregistry.c (gdb_py_events): Declare.
5319 2011-06-16 Hui Zhu <teawater@gmail.com>
5321 * remote.c (remote_trace_set_readonly_regions): Add check for
5322 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5325 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5327 * arm-linux-tdep.c: Include "auxv.h".
5329 (ARM_LINUX_SIZEOF_VFP): Define.
5330 (arm_linux_supply_vfp): New function.
5331 (arm_linux_collect_vfp): Likewise.
5332 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5333 (arm_linux_fpa_regset_sections): New variable.
5334 (arm_linux_vfp_regset_sections): Likewise.
5335 (arm_linux_core_read_description): New function.
5336 (arm_linux_init_abi): Install arm_linux_core_read_description and
5337 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5338 appropriate for the architecture.
5339 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5340 (tdesc_arm_with_m): Declare.
5341 (tdesc_arm_with_iwmmxt): Likewise.
5342 (tdesc_arm_with_vfpv2): Likewise.
5343 (tdesc_arm_with_vfpv3): Likewise.
5344 (tdesc_arm_with_neon): Likewise.
5345 * arm-linux-nat.c: Move features/*.c includes ...
5346 * arm-tdep.c: ... here.
5347 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5348 target description data structures ...
5349 * arm-tdep.c (_initialize_arm_tdep): ... here.
5350 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5351 HWCAP_VFPv3D16): Move definitions ...
5352 * arm-linux-tdep.h: ... here.
5354 2011-06-15 Hui Zhu <teawater@gmail.com>
5356 * remote.c (remote_trace_set_readonly_regions): Add a check for
5359 2011-06-14 Tom Tromey <tromey@redhat.com>
5361 * coffread.c (coffread_objfile): Rename from current_objfile.
5362 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5363 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5365 2011-06-14 Tom Tromey <tromey@redhat.com>
5367 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5368 (class_symtab): Remove.
5369 (jv_dynamics_progspace_key): New global.
5370 (jv_per_objfile_free): Reset program space data. Update assert.
5371 Don't clear globals.
5372 (get_dynamics_objfile): Use and set program space data.
5373 (get_java_class_symtab): Use get_dynamics_objfile.
5374 (add_class_symbol): Likewise.
5375 (java_link_class_type): Likewise.
5376 (java_object_type, jv_clear_object_type, set_java_object_type):
5378 (get_java_object_type): Update. Don't cache result.
5379 (is_object_type): Don't call set_java_object_type.
5380 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5381 initialize jv_dynamics_progspace_key.
5383 2011-06-14 Tom Tromey <tromey@redhat.com>
5385 * symtab.h (current_objfile): Don't declare.
5386 * objfiles.h (current_objfile): Don't declare.
5387 * objfiles.c (current_objfile): Remove.
5388 * mdebugread.c (current_objfile): New file-scope global.
5389 * dbxread.c (current_objfile): New file-scope global.
5390 * coffread.c (current_objfile): New file-scope global.
5392 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5394 * top.h (line): Rename to ...
5395 (saved_command_line): ... this.
5396 (linesize): Rename to ...
5397 (saved_command_line_size): ... this.
5398 * top.c (line): Rename to ...
5399 (saved_command_line): ... this.
5400 (linesize): Rename to ...
5401 (saved_command_line_size): ... this.
5402 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5403 * event-top.c (command_line_handler): Adjust.
5404 * main.c (captured_main): Adjust.
5406 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5408 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5409 get_frame_func instead of get_frame_pc to determine the code
5410 address used to construct the frame ID.
5411 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5412 (i386_epilogue_frame_this_id): Likewise.
5413 (i386_epilogue_frame_prev_register): New function.
5414 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5415 (i386_stack_tramp_frame_sniffer): Fix coding style.
5416 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5417 (i386_gdbarch_init): Fix comments.
5419 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5421 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5422 instruction when walking back through the instruction stream.
5424 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5426 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5427 fullname parameters order.
5429 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5432 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5434 * psymtab.c (map_symbol_filenames_psymtab)
5435 (map_partial_symbol_filenames): Likewise.
5436 * psymtab.h: Include symfile.h.
5437 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5438 * symfile.h (symbol_filename_ftype): New.
5439 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5440 map_symbol_filenames, clarify more the naming in comment.
5442 2011-06-07 Doug Evans <dje@google.com>
5444 * cc-with-index.sh: Fix typos in comment.
5445 Look for ../../gdb, for fullname.exp.
5447 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5448 Pedro Alves <pedro@codesourcery.com>
5450 * cli/cli-cmds.c (shell_escape): Use waitpid.
5451 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5453 2011-06-07 Tristan Gingold <gingold@adacore.com>
5455 * xcoffread.c (dwarf2_xcoff_names): New variable.
5456 (aix_process_linenos): Add a guard.
5457 (xcoff_symfile_finish): Free dwarf2.
5458 (xcoff_initial_scan): Add dwarf2 support.
5460 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5462 * infcall.c (run_inferior_call): Don't mask async. Instead force
5463 a synchronous wait, if the target can async.
5465 * target.h (struct target_ops): Delete to_async_mask.
5466 (target_async_mask): Delete.
5467 * target.c (update_current_target): Delete references to to_async_mask.
5468 * linux-nat.c (linux_nat_async_mask_value): Delete.
5469 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5470 to linux_nat_async_mask_value.
5471 (linux_nat_async_mask): Delete.
5472 (linux_nat_async, linux_nat_close): Remove references to
5473 linux_nat_async_mask_value.
5474 * record.c (record_async_mask_value): Delete.
5475 (record_async): Remove references to record_async_mask_value.
5476 (record_async_mask): Delete.
5477 (record_can_async_p, record_is_async_p): Remove references to
5478 record_async_mask_value.
5479 (init_record_ops, init_record_core_ops): Remove references to
5481 * remote.c (remote_async_mask_value): Delete.
5482 (init_remote_ops): Remove reference to remote_async_mask.
5483 (remote_can_async_p, remote_is_async_p): Remove references to
5484 remote_async_mask_value.
5485 (remote_async): Remove references to remote_async_mask_value.
5486 (remote_async_mask): Delete.
5488 * infrun.c (fetch_inferior_event): Don't claim registers changed
5489 if the current thread is already not executing.
5491 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5493 From Stephen Kitt <steve@sk2.org>
5494 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5495 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5497 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5499 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5500 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5502 2011-06-03 Tom Tromey <tromey@redhat.com>
5504 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5506 * python/py-exitedevent.c (create_exited_event_object): Change
5507 type of 'exit_code'. Optionally add exit_code attribute.
5508 (emit_exited_event): Change type of 'exit_code'.
5509 * python/py-event.h (emit_exited_event): Update.
5510 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5511 * infrun.c (handle_inferior_event): Set exit code fields on
5513 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5515 * inferior.c (exit_inferior_1): Initialize new fields.
5517 2011-06-03 Tom Tromey <tromey@redhat.com>
5519 * dwarf2expr.c (get_signed_type): New function.
5520 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5522 2011-06-02 Keith Seitz <keiths@redhat.com>
5524 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5526 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5528 * top.h (simplified_command_loop): Delete declaration.
5530 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5532 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5533 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5535 2011-06-01 Yao Qi <yao@codesourcery.com>
5537 * objfiles.h (obj_section_addr): Update reference to objfile from
5539 (obj_section_endaddr): Likewise.
5541 2011-06-01 Daniel Jacobowitz <drow@false.org>
5543 * MAINTAINERS: Update my email address and affiliation. Also
5544 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5546 2010-05-31 Keith Seitz <keiths@redhat.com>
5549 * linespec.c (get_search_block): New function.
5550 (find_methods): Add FILE_SYMTATB parameter and use it and
5551 get_search_block to pass an appropriate block to
5552 lookup_symbol_in_namespace.
5553 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5554 Check if *ARGPTR starts with a filename first.
5555 If it does, call locate_first_half again to locate the next
5556 "first half" of the linespec.
5557 Pass FILE_SYMTATB to decode_objc and decode_compound.
5558 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5559 (locate_first_half): Stop on the first colon seen.
5560 (decode_compound): Add FILE_SYMTAB parameter.
5561 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5562 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5563 get_search_block with lookup_symbol.
5564 (find_method): Add FILE_SYMTAB parameter and pass it to
5566 (decode_objc): Use get_search_block.
5568 2010-05-31 Keith Seitz <keiths@redhat.com>
5571 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5572 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5573 and CP_ANONYMOUS_NAMESPACE_LEN.
5574 (cp_is_anonymous): Likewise.
5575 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5576 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5577 * dwarf2read.c (namespace_name): Likewise.
5578 (fixup_partial_die): Likewise.
5579 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5580 seen in the input, keep it.
5582 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5584 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5585 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5586 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5587 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5588 * remote.c (_initialize_remote): Register
5589 async_remote_interrupt_twice directly as
5590 sigint_remote_twice_token event.
5592 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5594 * target.h (enum inferior_event_type): Delete INF_ERROR.
5595 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5597 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5599 * interps.c (interp_set): Don't cancel continuations.
5601 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5603 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5605 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5607 * continuations.h (continuation_ftype): Add `err' parameter.
5608 Document parameters.
5609 (do_all_continuations, do_all_continuations_thread)
5610 (do_all_intermediate_continuations)
5611 (do_all_intermediate_continuations_thread)
5612 (do_all_inferior_continuations): Add `err' parameter.
5613 * continuations.c (do_my_continuations_1, do_my_continuations)
5614 (do_all_inferior_continuations, do_all_continuations_ptid)
5615 (do_all_continuations_thread_callback)
5616 (do_all_continuations_thread, do_all_continuations)
5617 (do_all_intermediate_continuations_thread_callback)
5618 (do_all_intermediate_continuations_thread)
5619 (do_all_intermediate_continuations): Add `err' parameter, and pass
5620 it down all the way to the continuations proper.
5621 * inf-loop.c (inferior_event_handler): If fetching an inferior
5622 event throws an error, don't pop the target, and still call the
5623 continuations, but with `err' set. Adjust all other continuation
5625 * breakpoint.c (until_break_command_continuation): Add `err'
5627 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5628 issue another step if `err' is set.
5629 (struct until_next_continuation_args): New.
5630 (until_next_continuation): Add `err' parameter. Adjust.
5631 (until_next_command): Adjust.
5632 (struct finish_command_continuation_args): Add `thread' field.
5633 (finish_command_continuation): Add `err' parameter. Handle it.
5634 (finish_forward): Adjust.
5635 (attach_command_continuation): Add `err' parameter. Handle it.
5636 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5637 cancel the continuations.
5638 * interps.c (interp_set): Adjust to cancel the continuations.
5639 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5640 continuations rather than discarding.
5641 (free_thread): Don't clear thread inferior resources here.
5642 (delete_thread_1): Do it here instead. And do it before removing
5643 the thread from the threads list. Tag the thread as exited before
5644 clearing thread inferior resources.
5646 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5648 * infcall.c (call_function_by_hand): Rephrase error message.
5650 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5652 * defs.h (struct thread_info, struct inferior): Delete forward
5654 * breakpoint.h (struct thread_info): New forward declaration.
5655 * observer.sh (struct inferior): New forward declaration.
5656 * python/python-internal.h (struct inferior): New forward
5659 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5661 * defs.h (struct continuation, continuation_ftype)
5662 (continuation_free_arg_ftype, add_continuation)
5663 (do_all_continuations, do_all_continuations_thread)
5664 (discard_all_continuations, discard_all_continuations_thread)
5665 (add_intermediate_continuation, do_all_intermediate_continuations)
5666 (do_all_intermediate_continuations_thread)
5667 (discard_all_intermediate_continuations)
5668 (discard_all_intermediate_continuations_thread)
5669 (add_inferior_continuation, do_all_inferior_continuations)
5670 (discard_all_inferior_continuations): Move to ...
5671 * continuations.h: ... this new file.
5672 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5673 infcmd.c, inferior.c, infrun.c, interps.c: Include
5676 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5677 Doug Evans <dje@google.com>
5679 Fix PR 10970, PR 12702.
5680 * linux-nat.c (linux_lwp_is_zombie): New function.
5681 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5682 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5684 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5686 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5688 (add_continuation, add_intermediate_continuation)
5689 (add_inferior_continuation): Use them.
5690 * continuations.c (struct continuation): Use them.
5691 (make_continuation_ftype): Delete.
5692 (make_continuation, add_inferior_continuation, add_continuation)
5693 (add_intermediate_continuation): Use continuation_ftype and
5694 continuation_free_arg_ftype. Rename parameters to shorter names.
5696 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5698 * continuations.c (make_continuation): Make it return void.
5699 (do_my_continuations): Rename to ...
5700 (do_my_continuations_1): ... this. Remove old_chain parameter and
5702 (do_my_continuations): New.
5703 (discard_my_continuations): Rename to ...
5704 (discard_my_continuations_1): ... this. Remove old_chain
5705 parameter and adjust.
5706 (discard_my_continuations): New.
5707 (add_inferior_continuation): Simplify.
5708 (do_all_inferior_continuations): Reimplement on top
5709 do_my_continuations.
5710 (discard_all_inferior_continuations): Simplify.
5711 (add_continuation): Simplify.
5712 (do_all_continuations_ptid): Simplify.
5713 (discard_all_continuations_thread_callback): Simplify.
5714 (add_intermediate_continuation): Simplify.
5715 (discard_all_intermediate_continuations_thread_callback):
5718 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5720 * utils.c (struct continuation, add_continuation)
5721 (add_inferior_continuation)
5722 (do_all_inferior_continuations, discard_all_inferior_continuations)
5723 (restore_thread_cleanup, do_all_continuations_ptid)
5724 (do_all_continuations_thread_callback)
5725 (do_all_continuations_thread, do_all_continuations)
5726 (discard_all_continuations_thread_callback)
5727 (discard_all_continuations_thread, discard_all_continuations)
5728 (add_intermediate_continuation)
5729 (do_all_intermediate_continuations_thread_callback)
5730 (do_all_intermediate_continuations_thread)
5731 (do_all_intermediate_continuations)
5732 (discard_all_intermediate_continuations_thread_callback)
5733 (discard_all_intermediate_continuations_thread)
5734 (discard_all_intermediate_continuations): Move to ...
5735 * continuations.c: ... this new file, and adjust to no longer
5736 implement continuations on top of cleanups.
5737 * Makefile.in (SFILES): Add continuations.c.
5738 (COMMON_OBS): Add continuations.o.
5740 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5742 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5743 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5744 Internal error on invalid values.
5745 * reverse.c: Don't handle EXEC_ERROR.
5746 * mi/mi-main.c: Don't handle EXEC_ERROR.
5748 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5750 * record.c: Include event-loop.h, inf-loop.h.
5751 (record_beneath_to_async): New global.
5752 (tmp_to_async): New global.
5753 (record_async_inferior_event_token): New global.
5754 (record_open_1): Don't error out if async is enabled.
5755 (record_open): Handle to_async. Create an async event source in
5757 (record_close): Delete the async event source.
5758 (record_resumed): New global.
5759 (record_execution_dir): New global.
5760 (record_resume, record_core_resume): Set them. Register the
5761 target on the event loop.
5762 (record_wait): Rename to ...
5763 (record_wait_1): ... this. Add more debug output. Handle
5764 TARGET_WNOHANG, and the target beneath returning
5765 TARGET_WAITKIND_IGNORE.
5766 (record_wait): Reimplement on top of record_wait_1.
5767 (record_async_mask_value): New global.
5768 (record_async, record_async_mask, record_can_async_p)
5769 (record_is_async_p, record_execution_direction): New functions.
5770 (init_record_ops, init_record_core_ops): Install new methods.
5771 * infrun.c (fetch_inferior_event): Temporarily switch the global
5772 execution direction to the direction the target was going.
5773 (execution_direction): Change type to int.
5774 * target.c (default_execution_direction): New function.
5775 (update_current_target): Inherit and de_fault
5776 to_execution_direction.
5777 * target.h (struct target_ops) <to_execution_direction>: New
5779 (target_execution_direction): New macro.
5780 * inferior.h (execution_direction): Change type to int.
5782 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5784 * infcall.c (call_function_by_hand): Don't allow calling functions
5785 in reverse execution mode.
5787 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5789 * infcmd.c (finish_command): Allow async finish in reverse.
5791 2011-05-26 Yao Qi <yao@codesourcery.com>
5793 * gdb_thread_db.h: Delete. Move to ...
5794 * common/gdb_thread_db.h: ... here.
5796 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5798 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5799 function's entry point instead of a manually managed momentary
5800 breakpoint, and only ever issue one proceed call.
5801 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5802 doing a reverse-finish, switch to stepi mode, to do another step.
5803 (insert_step_resume_breakpoint_at_sal): Make public.
5804 (normal_stop): No need to save function value return registers if
5806 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5808 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5810 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5811 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5812 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5814 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5815 step-resume breakpoints.
5816 (print_it_typical): Handle bp_hp_step_resume.
5817 (bpstat_what): Ditto.
5818 (bptype_string): Ditto.
5819 (print_one_breakpoint_location): Ditto.
5820 (allocate_bp_location): Ditto.
5822 (breakpoint_re_set_one): Ditto.
5823 * infrun.c (handle_inferior_event): Adjust. Split
5824 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5825 BPSTAT_WHAT_HP_STEP_RESUME.
5826 (insert_step_resume_breakpoint_at_sal): Rename to ...
5827 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5828 parameter. Handle it.
5829 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5830 insert_step_resume_breakpoint_at_sal_1.
5831 (insert_step_resume_breakpoint_at_frame): Rename to ...
5832 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5833 set a high-priority step-resume breakpoint.
5834 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5835 (insert_step_resume_breakpoint_at_caller): Ditto.
5837 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5839 * breakpoint.c (iterate_over_related_breakpoints): New.
5840 (do_map_delete_breakpoint): New.
5841 (delete_command): Pass do_map_delete_breakpoint to
5842 map_breakpoint_numbers.
5843 (do_disable_breakpoint): New.
5844 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5846 (do_enable_breakpoint): Rename to ...
5847 (enable_breakpoint_disp): ... this.
5848 (enable_breakpoint): Adjust.
5849 (do_enable_breakpoint): New.
5850 (enable_once_breakpoint): Delete.
5851 (do_map_enable_breakpoint): New.
5852 (do_map_enable_once_breakpoint): New.
5853 (enable_once_command, enable_delete_command)
5854 (delete_trace_command): Iterate over the breakpoint's related
5857 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5859 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5860 for ALPHA_ZERO_REGNUM.
5861 (alpha_supply_int_regs): Explicitly supply zero as the value for
5862 ALPHA_ZERO_REGNUM in the register cache.
5863 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5865 2011-05-26 Yao Qi <yao@codesourcery.com>
5867 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5869 2011-05-26 Tristan Gingold <gingold@adacore.com>
5871 * symfile.h (struct dwarf2_section_names): New type.
5872 (struct dwarf2_debug_sections): New type.
5873 (dwarf2_has_info): Add parameter.
5874 * dwarf2read.c (dwarf2_elf_names): New variable.
5875 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5876 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5877 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5878 (dwarf2_has_info): Add names parameter. Pass names
5879 to dwarf2_locate_sections.
5880 (section_is_p): Rewrite using the names parameter.
5881 (dwarf2_locate_sections): Use section names from the names parameter.
5882 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5883 * elfread.c (read_psyms): Ditto.
5884 * machoread.c (macho_symfile_read): Ditto.
5886 2011-05-25 Andreas Schwab <schwab@redhat.com>
5889 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5891 2011-05-24 Keith Seitz <keiths@redhat.com>
5894 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5895 (decode_compound): Unconditionally call keep_name_info.
5897 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5899 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5900 scope, clear its command list.
5901 (map_breakpoint_numbers): Don't walk the related breakpoints list
5904 2011-05-24 Tom Tromey <tromey@redhat.com>
5906 * MAINTAINERS: Move Jim Blandy to past maintainers.
5908 2011-05-24 Tristan Gingold <gingold@adacore.com>
5910 * symfile.h (enum dwarf2_section_enum): New type.
5911 (dwarf2_get_section_info): New prototype.
5912 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5913 section_name by sect. Use a switch to select the info.
5914 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5915 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5917 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5919 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5920 shared library event breakpoint if there's no execution.
5922 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5924 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5925 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5927 2011-05-23 Tom Tromey <tromey@redhat.com>
5929 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5932 2011-05-23 Doug Evans <dje@google.com>
5934 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5935 entry for RuntimeError to doc string.
5937 2011-05-23 Jerome Guitton <guitton@adacore.com>
5939 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5940 sequence for probing loops.
5942 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5944 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5947 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5949 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5950 zero as the value for %g0 in the register cache.
5951 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5952 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5954 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5956 * infrun.c (proceed): Set previous_inferior_ptid here.
5957 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5958 inferior_ptid, not null_ptid.
5959 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5960 (fetch_inferior_event): Nor here.
5962 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5964 * inf-loop.c (inferior_event_handler): Only output a message if
5967 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5969 * MAINTAINERS: Update my e-mail address.
5971 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5973 * infrun.c (proceed): Switch the inferior event loop to
5974 INF_EXEC_COMPLETE if the target refused to resume from a
5977 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5979 * infcmd.c: Include "inf-loop.h".
5980 (step_once): When stepping into an inline subroutine, pretend the
5981 target has run. If the target can async, switch the inferior
5982 event loop to INF_EXEC_COMPLETE.
5983 * inferior.h (user_visible_resume_ptid): Declare.
5984 * infrun.c (user_visible_resume_ptid): New function, factored out
5987 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5988 that the current thread is running. Merge async and sync
5991 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5993 * infcmd.c (step_1): Simplify synchronous case.
5995 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5997 * tracepoint.c: Include exceptions.h.
5998 (TFILE_PID): Move higher in file.
5999 (tfile_open): Delay pushing the tfile target until we're assured
6000 the tfile header is present in the file. Wrap reading the initial
6001 newline-terminated lines in TRY_CATCH. Pop the target if the
6002 initial setup failed. Add the tfile's thread immediately
6003 aftwards, before any non-essential setup. Don't skip
6004 post_create_inferior if there are no traceframes present in the
6006 (tfile_close): Remove redundant check for null before xfree call.
6007 (tfile_thread_alive): New function.
6008 (init_tfile_ops): Register it as to_thread_alive callback.
6010 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6012 * tracepoint.c (tfile_open): Delete #if 0'd code.
6014 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 Fix -readnow for -gdwarf-4 unused type units.
6017 * dwarf2read.c (struct signatured_type): Remove the field offset.
6018 (create_signatured_type_table_from_index): Remove its initialization.
6019 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6020 instead. Add a complaint call.
6021 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6022 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6023 (lookup_signatured_type_at_offset, read_signatured_type)
6024 (write_one_signatured_type): Update the field for per_cu.
6026 2011-05-19 Tom Tromey <tromey@redhat.com>
6028 * python/py-inferior.c (python_inferior_exit): Use
6030 (python_on_resume): Likewise.
6032 2011-05-19 Matt Rice <ratmice@gmail.com>
6034 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6036 2011-05-19 Hui Zhu <teawater@gmail.com>
6038 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6040 2011-05-19 Hui Zhu <teawater@gmail.com>
6042 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6044 2011-05-18 Tom Tromey <tromey@redhat.com>
6046 * dwarf2read.c (dwarf2_add_field): Constify.
6047 * value.c (value_static_field): Constify.
6048 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6050 * ax-gdb.c (gen_static_field): Constify
6052 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6054 * linux-nat.c (kill_callback): Use SIGKILL first.
6056 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6058 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6060 2011-05-18 Tom Tromey <tromey@redhat.com>
6062 * value.c (value_fn_field): Constify.
6063 * symtab.c (gdb_mangle_name): Constify.
6064 * stabsread.c (update_method_name_from_physname): Make 'physname'
6066 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6067 const. Use explicit fputc_filtered loop.
6068 (pascal_type_print_base): Constify.
6069 * p-lang.h (pascal_type_print_method_args): Update.
6070 * linespec.c (add_matching_methods): Constify.
6071 (add_constructors): Likewise.
6072 * jv-typeprint.c (java_type_print_base): Constify.
6073 * gdbtypes.h (struct cplus_struct_type)
6074 <fn_fieldlist.fn_field.physname>: Now const.
6075 * dwarf2read.c (compute_delayed_physnames): Constify.
6076 (dwarf2_add_member_fn): Likewise.
6077 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6079 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6081 * infrun.c (resume): Mention which is the current thread, and its
6082 current PC in debug output.
6083 (prepare_to_proceed): Mention the thread switching in debug
6086 2011-05-18 Tom Tromey <tromey@redhat.com>
6088 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6089 path check. Use xmalloc and cleanups.
6090 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6092 2011-05-17 Tom Tromey <tromey@redhat.com>
6094 * cp-valprint.c (cp_print_value_fields): Catch errors from
6097 2011-05-17 Tom Tromey <tromey@redhat.com>
6099 * dwarf2read.c (dwarf2_get_die_type): Call
6100 get_die_type_at_offset.
6101 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6102 get_base_type function.
6104 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6106 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6109 2011-05-16 Doug Evans <dje@google.com>
6111 * python/py-auto-load.c (source_section_scripts): Mention objfile
6114 2011-05-15 Doug Evans <dje@google.com>
6116 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6117 (try_thread_db_load_from_pdir): Call it. If unable to find
6118 libthread_db in directory of libpthread, see if we're looking at
6119 the separate-debug-info copy.
6121 * python/py-autoload.c (print_script): Print "Missing" instead of
6122 "No" for missing scripts.
6123 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6125 2011-05-13 Doug Evans <dje@google.com>
6127 * ui-file.c (stdio_file_write_async_safe): Add comment.
6129 2011-05-14 Hui Zhu <teawater@gmail.com>
6131 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6133 2011-05-13 Doug Evans <dje@google.com>
6135 Support $pdir and $sdir in libthread-db-search-path.
6136 * NEWS: Mention $sdir,$pdir.
6137 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6138 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6139 (try_thread_db_load_from_sdir): New function.
6140 (try_thread_db_load_from_dir): New function.
6141 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6142 system directories if search of libthread-db-search-path fails,
6143 that is now done via $sdir.
6144 (has_libpthread): New function.
6145 (thread_db_load): Remove search for libthread_db in directory of
6146 libpthread, that is now done via $pdir.
6148 * NEWS: Mention "info auto-load-scripts".
6149 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6150 script_not_found_warning_printed.
6151 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6152 all callers updated. Initialize script_not_found_warning_printed.
6153 (get_auto_load_pspace_data_for_loading): New function.
6154 (maybe_add_script): New function.
6155 (source_section_scripts): Simplify. Only print one warning regardless
6156 of the number of auto-load scripts not found.
6157 (clear_section_scripts): Clear script_not_found_warning_printed.
6158 (auto_load_objfile_script): Record script in hash table.
6159 (count_matching_scripts): New function.
6160 (maybe_print_script): Renamed from maybe_print_section_script, all
6161 callers updated. Rewrite to use ui_out_*.
6162 (info_auto_load_scripts): Renamed from
6163 maintenance_print_section_scripts, all callers updated.
6164 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6165 renamed as "info auto-load-scripts".
6167 2011-05-13 Tom Tromey <tromey@redhat.com>
6169 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6170 (read_sleb128): Likewise.
6172 2011-05-13 Tom Tromey <tromey@redhat.com>
6174 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6177 2011-05-13 Doug Evans <dje@google.com>
6179 * linux-nat.c (debug_linux_nat_async): Delete.
6180 Replace all references to use debug_linux_nat instead.
6181 (show_debug_linux_nat_async): Delete.
6182 (sigchld_handler): Call ui_file_write_async_safe instead of
6184 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6185 * ui-file.c (struct ui_file): New member to_write_async_safe.
6186 (null_file_write_async_safe): New function.
6187 (ui_file_write_async_safe): New function.
6188 (set_ui_file_write_async_safe): New function.
6189 (ui_file_new): Initialize to_write_async_safe.
6190 (stdio_file_write_async_safe): New function.
6191 (struct stdio_file): New member fd.
6192 (stdio_file_new): Initialize to_write_async_safe, fd.
6193 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6195 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6196 (set_ui_file_write_async_safe): Declare.
6197 (ui_file_write_async_safe): Declare.
6199 2011-05-13 Tom Tromey <tromey@redhat.com>
6201 * utils.c (do_value_free): New function.
6202 (make_cleanup_value_free): Likewise.
6203 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6205 (dwarf2_loc_desc_needs_frame): Call
6206 make_cleanup_value_free_to_mark.
6207 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6208 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6210 (new_dwarf_expr_context): Don't call value_mark.
6211 * dwarf2-frame.c (execute_stack_op): Call
6212 make_cleanup_value_free_to_mark.
6213 * defs.h (make_cleanup_value_free): Declare.
6215 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6217 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6218 prepare_execute_command.
6219 * top.c (prepare_execute_command): Return cleanup.
6220 (execute_command): Use cleanup from prepare_execute_command.
6221 * top.h (prepare_execute_command): Change prototype to return
6223 * defs.h (struct value): Add opaque declaration.
6224 (make_cleanup_value_free_to_mark): Add prototype.
6225 * utils.c (do_value_free_to_mark): New function.
6226 (make_cleanup_value_free_to_mark): Likewise.
6228 2011-05-12 Tom Tromey <tromey@redhat.com>
6230 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6231 cast left-hand-side to unsigned.
6233 2011-05-12 Tom Tromey <tromey@redhat.com>
6236 * value.h (value_from_contents): Declare.
6237 * value.c (value_from_contents): New function.
6238 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6239 (dwarf2_get_die_type): New function.
6240 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6241 (allocate_piece_closure): Acquire reference to values.
6242 (read_pieced_value): Update for value-based expressions.
6243 (write_pieced_value): Likewise.
6244 (free_pieced_value_closure): Call value_free as needed.
6245 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6246 Update for value-based expressions.
6247 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6248 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6249 <get_base_type>: New field.
6250 (struct dwarf_expr_piece) <v.value>: Change type.
6251 <v.regno>: New field.
6252 (struct dwarf_expr_context) <mark>: New field.
6253 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6254 (dwarf_expr_pop, dwarf_expr_push): Remove.
6255 (dwarf_expr_push_address): Declare.
6256 * dwarf2expr.c (dwarf_arch_cookie): New global.
6257 (struct dwarf_gdbarch_types): New.
6258 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6260 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6262 (dwarf_expr_push_address): New function.
6263 (dwarf_expr_pop): Now static.
6264 (dwarf_expr_fetch): Change return type.
6265 (dwarf_require_integral): New function.
6266 (dwarf_expr_fetch): Simplify.
6267 (add_piece): Update.
6268 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6270 (execute_stack_op) <sign_ext>: Remove.
6271 Use values for DWARF stack.
6272 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6273 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6275 (_initialize_dwarf2expr): New function.
6276 (add_piece): Update.
6277 (new_dwarf_expr_context): Set new field.
6278 (free_dwarf_expr_context): Call value_free_to_mark.
6279 * dwarf2-frame.c (no_base_type): New function.
6280 (execute_stack_op): Set get_base_type field. Update.
6282 2011-05-12 Tom Tromey <tromey@redhat.com>
6284 * dwarf2read.c (read_common_block): Fix formatting.
6286 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6288 * breakpoint.c (disable_breakpoint): Disable all locations
6289 associated with a tracepoint on target if a trace experiment is
6291 (disable_command): Disable a specific tracepoint location on target if
6292 a trace experiment is running.
6293 (do_enable_breakpoint): Enable all locations associated with a
6294 tracepoint on target if a trace experiment is running.
6295 (enable_command) Enable a specific tracepoint location on target if a
6296 trace experiment is running.
6297 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6298 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6299 to_disable_tracepoint.
6300 * target.h: Add declaration of struct bp_location.
6301 (struct target_ops): Add new functions
6302 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6303 to_disable_tracepoint to target operations.
6304 (target_supports_enable_disable_tracepoint): New macro.
6305 (target_enable_tracepoint): New macro.
6306 (target_disable_tracepoint): New macro.
6307 * remote.c (struct remote_state): Add new field.
6308 (remote_enable_disable_tracepoint_feature): New.
6309 (remote_protocol_features): Add new entry.
6310 (remote_supports_enable_disable_tracepoint): New.
6311 (remote_enable_tracepoint): New.
6312 (remote_disable_tracepoint): New.
6313 (init_remote_ops): Add remote_enable_tracepoint,
6314 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6315 to remote operations.
6316 * tracepoint.c (start_tracing): Allow tracing to start without any
6317 tracepoints enabled with just a warning if they can be re-enabled
6319 * NEWS: Add news item for the new behaviour of the enable and disable
6320 GDB commands when applied to tracepoints.
6321 Add news items for the new remote packets QTEnable and QTDisable.
6323 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6325 * config.in: Regenerate.
6326 * configure: Regenerate.
6327 * configure.ac <--with-system-readline> (for readline_echoing_p):
6329 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6330 (tui_old_rl_echoing_p): ... here.
6331 (tui_setup_io): Rename extern declaration readline_echoing_p to
6332 _rl_echoing_p. Adjust assignments for the both renames.
6334 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6336 * symtab.c (lookup_symtab): Run cleanup before returning.
6338 2011-05-11 Tom Tromey <tromey@redhat.com>
6340 * dwarf2read.c (handle_data_member_location): New function.
6341 (dwarf2_add_field): Use it.
6342 (read_common_block): Likewise.
6344 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6346 Make addrs->SECTINDEX always defined.
6347 * symfile.c (relative_addr_info_to_section_offsets): Check for
6348 SECTINDEX -1, not for zero ADDR.
6349 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6350 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6351 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6354 2011-05-10 Doug Evans <dje@google.com>
6356 * linux-thread-db.c: Whitespace cleanup.
6357 (try_thread_db_load_1): Fix comment.
6359 * linux-thread-db.c (set_libthread_db_search_path): New function.
6360 (_initialize_thread_db): Add setter for libthread-db-search-path.
6362 2011-05-09 Doug Evans <dje@google.com>
6364 * NEWS: Mention --with-iconv-bin.
6365 * configure.ac: New option --with-iconv-bin.
6366 * configure: Regenerate.
6367 * config.in: Regenerate.
6368 * defs.h (relocate_gdb_directory): Declare.
6369 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6370 removed progname parameter, and exported. All callers updated.
6371 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6373 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6374 adding missing call to restore_child_signals_mask.
6376 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6378 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6380 * infrun.c (proceed, start_remote): Adjust.
6381 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6382 and adjust to not handle it.
6383 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6384 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6385 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6386 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6387 * windows-nat.c (do_initial_windows_stuff): Adjust.
6388 * infcmd.c (attach_command): Adjust.
6389 (notice_new_inferior): Adjust.
6391 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6393 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6394 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6395 * spu-tdep.c (op_selb): Use correct value.
6397 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6399 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6400 "parent" parameter to symbol_file_add_from_bfd call.
6402 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6403 Thiago Jung Bauermann <bauerman@br.ibm.com>
6405 Implement support for PowerPC BookE masked watchpoints.
6406 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6408 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6409 method. Initialize to NULL in all existing breakpoint_ops instances.
6410 (struct breakpoint) <hw_wp_mask>: New field.
6411 * breakpoint.c (is_masked_watchpoint): Add prototype.
6412 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6413 breakpoint's breakpoint_ops.works_in_software_mode if available.
6414 (watchpoints_triggered): Handle the case of a hardware masked
6416 (watchpoint_check): Likewise.
6417 (works_in_software_mode_watchpoint): New function.
6418 (insert_masked_watchpoint, remove_masked_watchpoint)
6419 (resources_needed_masked_watchpoint)
6420 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6421 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6422 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6424 (masked_watchpoint_breakpoint_ops): New structure.
6425 (watch_command_1): Check for the existence of the `mask' parameter.
6426 Set b->ops according to the type of hardware watchpoint being created.
6427 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6428 (ppc_linux_remove_mask_watchpoint)
6429 (ppc_linux_masked_watch_num_registers): New functions.
6430 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6431 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6432 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6433 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6434 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6435 (target_masked_watch_num_registers): New functions.
6436 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6437 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6439 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6440 (target_masked_watch_num_registers): Add prototypes.
6442 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6445 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6446 (producer_is_gcc_ge_4_0): New function.
6447 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6448 symtab->language code.
6449 (var_decode_location): Set cu->has_loclist.
6450 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6451 skip. Intialize force_skip from locations_valid. Move the prologue
6452 skipping code into two passes.
6453 * symtab.h (struct symtab): Make the primary field a bitfield. New
6454 field locations_valid.
6456 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6458 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6459 (classify_inner_name): Call cp_lookup_nested_type with
6461 * cp-namespace.c (cp_lookup_nested_type): New variable
6462 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6463 type_name_no_tag_or_error with saved_parent_type.
6464 * dwarf2read.c (load_partial_dies): Read in any children of
6465 DW_TAG_typedef with complaint in such case.
6466 * gdbtypes.c (type_name_no_tag_or_error): New function.
6467 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6468 * valops.c (destructor_name_p): New comment for parameter type. Remove
6469 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6470 * value.h (destructor_name_p): Remove type const.
6472 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6474 * symtab.c (compare_symbol_name): New function.
6475 (completion_list_add_name, expand_partial_symbol_name): Call it,
6476 remove the variable ncmp.
6477 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6480 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6482 Demote to sw watchpoint only in update_watchpoint.
6483 * breakpoint.c (update_watchpoint): Change between software and
6484 hardware watchpoint for all kinds of watchpoints, not just
6485 read/write ones. Determine b->exact value here instead of
6486 in watch_command_1. Error out if there are not enough resources
6487 for a read or access hardware watchpoint.
6488 (watch_command_1): Remove logic of checking whether there are
6489 enough resources available, since update_watchpoint will do that
6490 work now. Don't set b->exact here. Catch exceptions thrown by
6491 update_watchpoint and delete the watchpoint.
6492 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6493 Use target_exact_watchpoints instead.
6494 (delete_breakpoint): Notify observers only if deleted watchpoint
6495 has a breakpoint number assigned to it.
6497 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6499 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6501 2011-05-05 Jerome Guitton <guitton@adacore.com>
6503 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6505 (i386_stack_tramp_frame_unwind): New static global.
6506 (i386_match_pattern): New function, extracted from i386_match_insn.
6507 (i386_match_insn): Use i386_match_pattern.
6508 (i386_match_insn_block): New function.
6509 (i386_tramp_chain_in_reg_insns)
6510 (i386_tramp_chain_on_stack_insns): New static variables.
6511 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6514 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6516 * configure.host (xscale*): Don't handle target.
6517 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6520 2011-05-04 Yao Qi <yao@codesourcery.com>
6522 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6524 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6527 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6528 | * elfread.c (elf_symtab_read): Stop memory leak.
6530 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6532 * nto-tdep.c (nto_target): Replace deprecated call to
6533 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6535 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6537 Fix false GCC warning.
6538 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6540 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6542 * breakpoint.c (update_watchpoint): Move code to change
6543 the enable state of breakpoint from here ...
6544 (do_enable_breakpoint): ... to here.
6546 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6548 * valprint.c (val_print_array_elements): Fixed poor performance
6549 of printing very large arrays with repeat_count_threshold set
6550 to unlimited. New comment.
6552 2011-04-29 Tom Tromey <tromey@redhat.com>
6554 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6555 (mi_parse): Likewise.
6556 * breakpoint.c (break_range_command): Use sizeof char*, not
6558 (create_breakpoint): Likewise.
6559 (parse_breakpoint_sals): Likewise.
6561 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6563 * linux-nat.c (linux_child_remove_fork_catchpoint)
6564 (linux_child_remove_vfork_catchpoint)
6565 (linux_child_remove_exec_catchpoint): New functions.
6566 (linux_target_install_ops): Install them.
6568 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6572 * varobj.c (install_default_visualizer): Do not install a
6573 visualizer if the varobj is CPLUS_FAKE_CHILD.
6574 (construct_visualizer): Likewise.
6576 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6578 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6579 case insensitive comparison.
6581 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6583 * infrun.c (proceed): Revert previous change.
6584 (resume): Instead, handle the case of signal delivery while stepping
6585 off a breakpoint location here, and only if software single-stepping
6586 is used. Handle nested signals.
6588 2011-04-28 Yao Qi <yao@codesourcery.com>
6590 * arm-tdep.c (copy_unmodified): Rename to ...
6591 (arm_copy_unmodified): .. this. New.
6592 (copy_preload): Move common part to ...
6593 (install_preload): .. this. New.
6594 (arm_copy_preload): New.
6595 (copy_preload_reg): Move common part to ...
6596 (install_preload_reg): ... this. New.
6597 (arm_copy_preload_reg): New.
6598 (copy_b_bl_blx): Move common part to ...
6599 (install_b_bl_blx): .. this. New.
6600 (arm_copy_b_bl_blx): New.
6601 (copy_bx_blx_reg): Move common part to ...
6602 (install_bx_blx_reg): ... this. New.
6603 (arm_copy_bx_blx_reg): New.
6604 (copy_alu_reg): Move common part to ...
6605 (install_alu_reg): ... this. New.
6606 (arm_copy_alu_reg): New.
6607 (copy_alu_shifted_reg): Move common part to ...
6608 (install_alu_shifted_reg): ... this. New.
6609 (copy_ldr_str_ldrb_strb): Move common part to ...
6610 (install_ldr_str_ldrb_strb): ... this. New.
6611 (arm_copy_ldr_str_ldrb_strb): New.
6612 (copy_copro_load_store): Move some common part to ...
6613 (install_copy_copro_load_store): ... this. New.
6614 (arm_copy_copro_load_store): New.
6616 (arm_copy_svc): Renamed from copy_svc.
6617 (copy_undef): Delete.
6618 (arm_copy_undef): Renamed from copy_undef.
6619 (decode_ext_reg_ld_st): Delete.
6620 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6621 (decode_svc_copro): Delete.
6622 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6623 (copy_copro_load_store, copy_alu_imm): update callers.
6624 (copy_extra_ld_st, copy_block_xfer): Likewise.
6625 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6626 (decode_miscellaneous, decode_dp_misc): Likewise.
6627 (decode_ld_st_word_ubyte, decode_media): Likewise.
6628 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6629 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6630 (decode_unconditional, decode_miscellaneous): Likewise.
6631 (decode_media, decode_b_bl_ldmstm): Likewise.
6632 (arm_process_displaced_insn): Likewise..
6633 (decode_misc_memhint_neon): Delete.
6634 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6635 (decode_miscellaneous): Delete.
6636 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6637 (decode_dp_misc): Delete.
6638 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6639 (decode_ld_st_word_ubyte): Delete.
6640 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6641 (decode_media): Delete.
6642 (arm_decode_media): Renamed from decode_media.
6643 (decode_b_bl_ldmstm): Delete.
6644 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6645 (decode_ext_reg_ld_st): Delete.
6646 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6647 (decode_unconditional): Delete.
6648 (arm_decode_unconditional): Renamed from decode_unconditional.
6650 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Case insensitive lookups implementation.
6653 * dwarf2read.c: Include ctype.h.
6654 (struct mapped_index): New field version.
6655 (mapped_index_string_hash): New parameter index_version. New comment
6656 for it. Call tolower appropriately.
6657 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6658 Choose the right index version for mapped_index_string_hash.
6659 (dwarf2_read_index): Support also the index version 5. Initialize the
6660 new struct mapped_index field version.
6661 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6662 (find_slot): Explain the version needs. Pass INT_MAX for the new
6664 (write_psymtabs_to_index): Produce version 5.
6665 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6666 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6667 * psymtab.c (lookup_partial_symbol): Find the
6668 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6670 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6672 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6673 (completion_list_add_name): New variable ncmp, initialize it, use it.
6674 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6675 * utils.c (strcmp_iw): Support case_sensitive_off.
6676 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6677 New function comment part. New variables saved_string1,
6678 saved_string2 and case_pass. Add a proper second pass.
6680 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6682 Replace re_comp/re_exec by regcomp/regexec.
6683 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6684 (search_symbols_name_matches): Use them, use regexec.
6685 (search_symbols): New variable retval_chain, adjust the use of
6686 old_chain against it. Replace re_comp by regcomp. Use the new struct
6687 search_symbols_data fields, use regexec instead of re_exec.
6689 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6691 Format the code for the next patch.
6692 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6693 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6694 New variables c1 and c2.
6696 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6698 * infrun.c (proceed): Do not single-step into signal delivery
6699 when stepping off a breakpoint location.
6700 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6701 (insert_step_resume_breakpoint_at_caller): Likewise.
6702 (insert_step_resume_breakpoint_at_sal): Likewise.
6703 (insert_longjmp_resume_breakpoint): Likewise.
6705 2011-04-27 Yao Qi <yao@codesourcery.com>
6707 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6709 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6711 * procfs.c (procfs_pass_signals): Fix advance declaration.
6713 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6715 * target.h (struct target_ops): Remove to_notice_signals;
6716 add to_pass_signals.
6717 (target_notice_signals): Remove.
6718 (target_pass_signals): Add prototype.
6719 * target.c (update_current_target): Remove to_notice_signals;
6720 mention to_pass_signals.
6721 (target_pass_signals): New function.
6722 (debug_to_notice_signals): Remove.
6723 (setup_target_debug): Do not install debug_to_notice_signals.
6725 * infrun.c (signal_pass): New global.
6726 (resume): Call target_pass_signals.
6727 (handle_inferior_event): Report all signals while stepping over
6728 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6729 are re-inserted when stepping over a signal handler.
6730 (signal_cache_update): New function.
6731 (signal_stop_update): Call it.
6732 (signal_print_update): Likewise.
6733 (signal_pass_update): Likewise.
6734 (handle_command): Call signal_cache_update and target_pass_signals
6735 instead of target_notice_signals.
6736 (_initialize_infrun): Initialize signal_pass.
6738 * linux-nat.c (pass_mask): New global.
6739 (linux_nat_pass_signals): New function.
6740 (linux_nat_create_inferior): Report all signals initially.
6741 (linux_nat_attach): Likewise.
6742 (linux_nat_resume): Use pass_mask to decide whether to directly
6743 handle an inferior signal.
6744 (linux_nat_wait_1): Likewise.
6745 (linux_nat_add_target): Install to_pass_signals callback.
6747 * nto-procfs.c (notice_signals): Remove.
6748 (procfs_resume): Do not call notice_signals.
6749 (procfs_notice_signals): Remove.
6750 (procfs_pass_signals): New function.
6751 (init_procfs_ops): Install to_pass_signals callback instead of
6752 to_notice_signals callback.
6753 (_initialize_procfs): Report all signals initially.
6755 * procfs.c (procfs_notice_signals): Remove.
6756 (procfs_pass_signals): New function.
6757 (procfs_target): Install to_pass_signals callback instead of
6758 to_notice_signals callback.
6759 (register_gdb_signals): Remove.
6760 (procfs_debug_inferior): Report all signals initially.
6761 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6763 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6764 parameters; use them instead of calling signal_..._state routines.
6765 (remote_notice_signals): Remove.
6766 (remote_start_remote): Report all signals initially.
6767 (remote_resume): Do not call remote_pass_signals.
6768 (_initialize_remote): Install to_pass_signals callback instead of
6769 to_notice_signals callback.
6771 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6773 * breakpoint.c (user_settable_breakpoint): Delete.
6774 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6775 (delete_command): Check user_breakpoint_p instead of looking at
6776 the breakpoint's type.
6777 (disable_command): Ditto.
6778 (enable_command): Ditto.
6779 (delete_trace_command): Use user_breakpoint_p instead of looking
6780 at the breakpoint number directly. When checking if there are
6781 user visible tracepoints, in order to know whether to ask the user
6782 for confirmation, check whether the breakpoint is actually a
6785 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6787 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6790 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6792 MI breakpoint notifications.
6794 * annotate.c (breakpoint_changed): Adjust parameter type.
6795 * breakpoint.c (set_breakpoint_condition): Adjust to change
6796 in breakpoint_modified type.
6797 (breakpoint_set_commands): Likewise.
6798 (do_map_commands_command): Likewise.
6799 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6800 changed after bumping hit count.
6801 (bpstat_stop_status): Likewise.
6802 (print_one_breakpoint_location): Don't wrap in tuple here.
6803 (print_one_breakpoint): Always print individual locations.
6804 For locations, use unnamed tuple.
6805 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6807 (create_catchpoint, create_syscall_event_catchpoint): Call
6808 breakpoint_created obsever.
6809 (mention): Don't call breakpoint_created observer.
6810 (create_breakpoint_sal): Call breakpoint_created observer.
6811 (create_breakpoint, watch_command_1): Likewise.
6812 (create_ada_exception_breakpoint): Likewise.
6813 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6814 (locations_are_equal): New.
6815 (update_breakpoint_locations): If locations were changed, notify.
6816 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6817 Call breakpoint_modified observer.
6819 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6820 (mi_cmd_break_insert): Don't set observers for modify and delete.
6821 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6822 (mi_breakpoint_created, mi_breakpoint_deleted)
6823 (mi_breakpoint_modified): New.
6824 (mi_interpreter_init): Hook the above.
6825 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6826 while -break-* commands are executing.
6827 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6828 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6830 (mi_ui_out_impl): Hook in mi_redirect.
6831 (mi_field_skip): True to the name, skip the field, don't output
6832 a field with an empty value.
6834 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6835 (gdbpy_breakpoint_deleted): Adjust.
6836 * tui/tui-hooks.c (tui_event_create_breakpoint)
6837 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6839 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6841 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6842 (procfs_remove_hw_watchpoint): Likewise.
6844 2011-04-26 Michael Walle <michael@walle.cc>
6846 * remote.c (remote_start_remote): Ack packet after sending the
6849 2011-04-26 Yao Qi <yao@codesourcery.com>
6851 * linux-nat.c: Move common macros to ...
6852 Include linux-ptrace.h.
6853 * common/linux-ptrace.h: ... here. New.
6855 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6857 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6858 !objfile_has_partial_symbols. New comment.
6859 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6860 SYM_READ_PSYMBOLS is not present. Extend the comment.
6861 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6863 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6865 * defs.h (ENUM_BITFIELD): Remove.
6867 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6868 Eli Zaretskii <eliz@gnu.org>
6870 * NEWS: Document the new gdbserver --once option.
6872 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6874 * MAINTAINERS: Update my email address.
6876 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6878 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6879 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6880 function call if __STDC_ISO_10646__ macro is defined.
6881 (intermediate_encoding): New prototype.
6882 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6883 to generate compile time error for unsupported gdb_wchar_t size.
6884 (ENDIAN_SUFFIX): New macro.
6885 (intermediate_encoding): New function.
6887 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6889 * ada-lang.c (struct add_partial_datum): Update the comment for
6890 expand_partial_symbol_name.
6891 (ada_add_partial_symbol_completions): Rename to ...
6892 (ada_expand_partial_symbol_name): ... here, change return type, update
6893 function comment, call symbol_completion_match instead of
6894 symbol_completion_add.
6895 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6896 and ada_expand_partial_symbol_name.
6897 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6899 (dw2_map_symbol_names): Remove.
6900 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6901 * psymtab.c (map_symbol_names_psymtab): Remove.
6902 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6903 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6905 (psym_functions): Unlist map_symbol_names_psymtab.
6906 (map_partial_symbol_names): Rename to ...
6907 (expand_partial_symbol_names): ... here, change the FUN type, call
6908 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6909 * psymtab.h (map_partial_symbol_names): Rename to ...
6910 (expand_partial_symbol_names): ... here, change the FUN type.
6911 * symfile.h (struct quick_symbol_functions): Update the description of
6912 expand_symtabs_matching. Remove map_symbol_names.
6913 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6914 (struct add_name_data): Update the comment for
6915 expand_partial_symbol_name.
6916 (add_partial_symbol_name): Rename to ...
6917 (expand_partial_symbol_name): ... here. Replace
6918 completion_list_add_name call by strncmp.
6919 (default_make_symbol_completion_list_break_on): Use now
6920 expand_partial_symbol_names and expand_partial_symbol_name.
6921 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6923 2011-04-20 Tom Tromey <tromey@redhat.com>
6925 * dwarf2read.c (save_gdb_index_command): Replace format
6926 documentation with a pointer to the manual.
6928 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6930 * regcache.c: Include remote.h.
6931 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6932 (regcache_dump): Handle regcache_dump_remote.
6933 (maintenance_print_remote_registers): New function.
6934 (_initialize_regcache): Install "maint print remote-registers"
6936 * remote.c (map_regcache_remote_table): New function, factored out
6938 (init_remote_state): ... here.
6939 (remote_register_number_and_offset): New.
6940 * remote.h (remote_register_number_and_offset): Declare.
6942 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6944 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6945 null_ptid, assume and allow a NULL address space, instead of
6946 asking the target for the ptid's address space.
6947 * infrun.c (ptid_is_pid): Remove assertion.
6949 2011-04-19 Tom Tromey <tromey@redhat.com>
6951 * windows-tdep.c (windows_xfer_shared_library):
6952 * windows-nat.c (get_module_name, windows_make_so):
6953 * v850-tdep.c (v850_handle_pushm):
6954 * utils.c (null_cleanup, gdb_realpath):
6955 * ui-out.c (get_next_header):
6956 * tracepoint.c (clear_traceframe_info):
6957 * symtab.c (lookup_symtab):
6958 * serial.h (struct serial_ops):
6959 * mipsread.c (read_alphacoff_dynamic_symtab):
6960 * infcmd.c (print_return_value):
6961 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6962 * f-exp.y (parse_number):
6963 * exceptions.c (catch_exceptions):
6964 * dummy-frame.c (dummy_frame_this_id):
6965 * defs.h (struct cleanup):
6966 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6967 * arm-tdep.c (arm_push_dummy_call):
6968 * amd64-tdep.h (amd64_collect_xsave):
6969 * amd64-tdep.c (amd64_collect_xsave):
6970 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6971 * README (typing): Remove duplicate words.
6972 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6973 * infrun.c (siginfo_value_read): Fix typo.
6974 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6975 * top.c (source_line_number): Add comma.
6977 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6979 * thread.c (any_live_thread_of_process): Prioritize threads
6980 that are not executing.
6981 * gdbthread.h (any_live_thread_of_process): Update comment
6982 as per above change.
6984 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6986 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6987 (scan_xcoff_symtab): Likewise.
6989 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6991 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6994 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6995 Pedro Alves <pedro@codesourcery.com>
6997 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6998 variables to simplify code and avoid == operator at end of
6999 line as this is against GNU coding standards.
7001 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7003 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7004 lm_name to name_lm to avoid conflict with lm_name function.
7006 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7008 ARI fixes: Use only lowercase function name for static functions.
7009 * nto-tdep.c (LM_ADDR): Rename to...
7010 (lm_addr): New function name.
7011 (nto_relocate_section_addresses): Adapt to change above.
7012 * solib-sunos.c (LM_ADDR): Rename to...
7013 (lm_addr): New function name.
7014 (LM_NEXT): Rename to...
7015 (lm_next): New function name.
7016 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7017 function name changes above.
7018 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7019 (lm_addr_from_link_map): New function name.
7020 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7021 (has_lm_dynamic_from_link_map): New function name.
7022 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7023 (lm_dynamic_from_link_map): New function name.
7024 (LM_ADDR_CHECK): Rename to...
7025 (lm_addr_check): New function name.
7026 (LM_NEXT): Rename to...
7027 (lm_next): New function name.
7028 (LM_PREV): Rename to...
7029 (lm_prev): New function name.
7030 (LM_NAME): Rename to...
7031 (lm_name): New function name.
7032 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7033 (ignore_first_link_map_entry): New function name.
7034 (svr4_keep_data_in_core): Adapt to function name changes above.
7035 (svr4_current_sos): Likewise.
7036 (enable_break): Likewise.
7037 (svr4_relocate_section_addresses): Likewise.
7039 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7042 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7043 sprintf. Simplify code and avoid loosing memory.
7044 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7045 (call0_frame_cache): Remove && operator from end of line.
7047 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7049 Fix libraries displacement if they change whether they were prelinked.
7050 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7051 does not match. Comment why.
7053 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7055 * corelow.c: Include wrapper.h.
7056 (core_open): Call now gdb_target_find_new_threads.
7057 * wrapper.c: Include target.h.
7058 (gdb_target_find_new_threads): New.
7059 * wrapper.h (gdb_target_find_new_threads): New declaration.
7061 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7063 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7064 even if !TARGET_HAS_EXECUTION.
7066 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7068 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7069 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7070 bfd_get_synthetic_symtab.
7071 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7072 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7073 parameter parent, remove the call to add_separate_debug_objfile.
7074 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7075 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7076 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7077 parent, new comment for it, call add_separate_debug_objfile for it.
7078 (symbol_file_add_separate): Pass objfile as the parameter parent,
7079 remove the call to add_separate_debug_objfile.
7080 (symbol_file_add_from_bfd): New parameter parent, pass it.
7081 (symbol_file_add): Pass NULL to the new parameter parent.
7082 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7084 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7086 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7089 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7091 Fix Python access to inlined frames.
7092 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7093 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7095 2011-04-15 Tom Tromey <tromey@redhat.com>
7097 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7099 2011-04-15 Gary Benson <gbenson@redhat.com>
7101 * MAINTAINERS: Add myself to write-after-approval section.
7103 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7105 * remote-sim.c (sim_command_completer): New function.
7106 (_initialize_remote_sim): Set completer to sim_command_completer.
7108 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7110 * breakpoint.c (print_exception_catchpoint): Rename to ...
7111 (print_it_exception_catchpoint): ... this.
7112 (gnu_v3_exception_catchpoint_ops): Update with new name
7113 for print_it_exception_catchpoint.
7115 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7117 * MAINTAINERS: Add myself for write after approval privileges.
7119 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7121 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7123 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7125 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7127 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7129 * breakpoint.c (save_breakpoints): Verify whether
7130 breakpoint_ops.print_recreate is defined before calling it.
7132 2011-04-11 Gary Benson <gbenson@redhat.com>
7134 Fix failure with --enable-maintainer-mode.
7135 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7137 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7140 * symtab.c (search_symbols): Reorder the KIND description in the
7141 function comment. Remove the unused 4th element of types, types2,
7142 types3 and types4. New gdb_assert on KIND.
7143 (symtab_symbol_info): Remove the unused 4th element of classnames.
7144 New gdb_assert on KIND.
7145 * symtab.h (enum search_domain): New warning in the enum comment.
7146 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7149 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 Fix crash of gdb save-index on a STABS file.
7152 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7155 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7157 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7158 * dwarf2read.c: Include ctype.h.
7159 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7161 (dwarf2_add_field): Fix new_field->accessibility by calling
7162 dwarf2_default_access_attribute. Restructure setting accessibility
7164 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7165 is_private and is_protected by calling
7166 dwarf2_default_access_attribute.
7168 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7170 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7171 to the initialization.
7173 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7175 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7178 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7180 Remove support for old Cygwin 1.5 versions.
7181 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7182 function on old Cygwin version.
7183 * windows-nat.c: Remove cygwin version check and always define
7184 __USEWIDE for Cygwin compilation.
7186 2011-04-07 Yao Qi <yao@codesourcery.com>
7188 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7190 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7191 (arm_copy_svc): Remove parameters INSN and TO.
7192 (decode_svc_copro): Update caller.
7193 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7194 from function pointer `copy_svc_os'.
7196 2011-04-07 Yao Qi <yao@codesourcery.com>
7198 * arm-tdep.c (cleanup_branch): Set a correct return address in
7199 LR for ARM and Thumb.
7201 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7204 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7205 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7206 in the function comment, a new note on values compatibility.
7207 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7208 * symtab.h (SYMBOL_HASH_NEXT): New.
7210 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7212 * ppc-linux-nat.c (check_condition): Add len output parameter.
7213 Set it based on the memory region referenced in the condition
7214 expression. Update all callers.
7216 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7218 Fix crash regression on systems featuring .gdb_index.
7219 * objfiles.c (free_objfile): Move the
7220 forget_cached_source_info_for_objfile call earlier. Comment it.
7221 Extend the comment for objfile_free_data.
7223 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 Fix regression of displaying the debug format.
7226 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7229 2011-04-04 Tom Tromey <tromey@redhat.com>
7231 * cli/cli-interp.c (struct captured_execute_command_args):
7233 (do_captured_execute_command): Remove.
7234 (safe_execute_command): Use TRY_CATCH.
7235 * cli/cli-script.c (struct wrapped_read_command_file_args):
7237 (wrapped_read_command_file): Remove.
7238 (script_from_file): Use TRY_CATCH.
7239 * exceptions.c (catch_exception): Remove.
7240 * exceptions.h (catch_exception): Remove.
7241 (deprecated_throw_reason): Update comment.
7242 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7243 argument to 'context'.
7244 (mi_execute_command): Use TRY_CATCH.
7245 * remote.c (struct start_remote_args): Remove.
7246 (remote_start_remote): Update; change arguments.
7247 (remote_open_1): Use TRY_CATCH.
7249 2011-04-04 Tom Tromey <tromey@redhat.com>
7251 * tracepoint.c (scope_info): Update.
7252 * symtab.c (decode_line_spec): Update.
7253 * python/python.c (gdbpy_decode_line): Update.
7254 * linespec.h (decode_line_1): Update.
7255 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7256 (decode_compound, find_method, symtab_from_filename)
7257 (decode_variable): Likewise.
7258 * cli/cli-cmds.c (edit_command): Update.
7259 (list_command): Update.
7260 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7262 (create_breakpoint): Update.
7263 (until_break_command): Update.
7264 (addr_string_to_sals): Update.
7265 (decode_line_spec_1): Update.
7267 2011-04-04 Tom Tromey <tromey@redhat.com>
7269 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7270 (do_captured_parse_breakpoint): Remove.
7271 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7272 Use TRY_CATCH directly.
7274 2011-04-04 Tom Tromey <tromey@redhat.com>
7276 * symtab.h (free_symtab): Remove.
7277 (forget_cached_source_info_for_objfile): Declare.
7278 * symmisc.c (free_symtab): Remove.
7279 * source.c (forget_cached_source_info_for_objfile): New function.
7280 (forget_cached_source_info): Use it.
7281 * objfiles.c (free_objfile): Simplify check before calling
7282 clear_current_source_symtab_and_line. Call
7283 forget_cached_source_info_for_objfile.
7285 2011-04-04 Tom Tromey <tromey@redhat.com>
7287 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7288 (new_symtab): Don't set `free_code' on symtab.
7289 (new_linetable): Properly handle size==0.
7290 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7291 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7293 * jv-lang.c (struct jv_per_objfile_data): New.
7294 (jv_per_objfile_free): Free the data.
7295 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7296 (get_java_class_symtab): Set the `dict' field on the
7297 jv_per_objfile_data.
7298 (free_class_block): Remove.
7299 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7302 2011-04-04 Tom Tromey <tromey@redhat.com>
7304 * symfile.c (reread_symbols): Update.
7305 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7307 * objfiles.c (allocate_objfile): Update.
7308 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7310 * cp-namespace.c (lookup_symbol_file): Don't call
7311 lookup_possible_namespace_symbol.
7312 (initialize_namespace_symtab, get_possible_namespace_block)
7313 (free_namespace_block, cp_check_possible_namespace_symbols)
7314 (check_possible_namespace_symbols_loop)
7315 (check_one_possible_namespace_symbol)
7316 (lookup_possible_namespace_symbol): Remove.
7317 (maintenance_cplus_namespace): Replace with notice.
7318 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7320 2011-04-04 Tom Tromey <tromey@redhat.com>
7322 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7323 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7324 * symmisc.c (free_symtab): Don't free debugformat.
7325 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7326 (record_debugformat, record_producer): Document.
7327 * buildsym.c (end_symtab): Don't save debugformat and producer
7329 (end_symtab): Don't free debugformat and producer fields.
7330 (record_debugformat): Don't call xstrdup.
7331 (record_producer): Likewise.
7333 2011-04-04 Tom Tromey <tromey@redhat.com>
7335 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7336 (source_line_charpos, source_charpos_line): Remove.
7338 2011-04-04 Tom Tromey <tromey@redhat.com>
7340 * symtab.h (domain_enum): Split in two...
7341 (enum search_domain): New.
7342 (search_symbols): Update.
7343 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7344 redundant declarations.
7345 (search_symbols): Change 'kind' argument to search_domain.
7347 (print_symbol_info): Likewise.
7348 (symtab_symbol_info): Likewise.
7349 * symfile.h (struct quick_symbol_functions)
7350 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7351 <expand_symtabs_matching>: Likewise.
7352 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7353 (expand_symtabs_matching_via_partial): Update.
7354 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7355 (dw2_expand_symtabs_for_function): Update.
7356 * block.h: Moved anonymous enum...
7357 * defs.h (enum block_enum): ... here. Now named.
7359 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7361 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7362 * version.in: Bump version to 7.3.50.20110403-cvs.
7364 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7366 * NEWS: Create a new section for the next release branch.
7367 Rename the section of the current branch, now that it has
7370 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7372 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7373 for "fpscr" in target description.
7375 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7377 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7378 initialize it. Delay HASH initialization. Strip the part after open
7379 parenthesis for languages with qualifiers. Call do_cleanups.
7381 2011-04-01 Tom Tromey <tromey@redhat.com>
7383 * utils.c (report_command_stats): Don't print `-' for negative
7386 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7388 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7389 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7392 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7394 * breakpoint.h (bpdisp_text): Add declaration.
7395 * breakpoint.c (bpdisp_text): Make non-static.
7396 * ada-lang.c: #include "mi/mi-common.h".
7397 (print_it_exception): Rewrite to improve GDB/MI output.
7399 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7401 * arm-tdep.h (struct address_space): Add forward declaration.
7403 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7405 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7406 * arm-tdep.c (arm_override_mode): New global.
7407 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7408 execution mode heuristics.
7409 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7410 second single-step breakpoint if needed, using
7411 arm_insert_single_step_breakpoint.
7412 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7413 ARM execution mode, do not call thumb_get_next_pc_raw.
7414 (arm_get_next_pc): Encode execution mode in return value. Call
7415 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7416 (arm_insert_single_step_breakpoint): New function.
7417 (arm_software_single_step): Call it.
7418 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7419 argument to return execution mode of sigreturn target.
7420 (arm_linux_syscall_next_pc): Use it.
7421 (arm_linux_copy_svc): Update call.
7422 (arm_linux_software_single_step): Call
7423 arm_insert_single_step_breakpoint.
7425 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7430 2011-03-31 Tom Tromey <tromey@redhat.com>
7432 * varobj.c (update_dynamic_varobj_children): Properly handle
7433 errors from iterator.
7435 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7437 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7438 struct linkage name twice.
7440 2011-03-31 Tom Tromey <tromey@redhat.com>
7442 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7443 missing ">" to message.
7445 2011-03-31 Tom Tromey <tromey@redhat.com>
7447 * varobj.c (instantiate_pretty_printer): Remove duplicate
7450 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7452 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7453 if neither saved value nor register available (e.g. signal frame).
7455 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7457 * macroexp.c (expand): Avoid uninitialized variable
7460 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7462 * breakpoint.c (break_range_command): Fix typo in comment.
7464 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7465 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7467 Implement support for PowerPC BookE ranged breakpoints.
7468 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7469 * breakpoint.h (struct bp_target_info) <length>: New member
7471 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7472 instead of struct breakpoint as argument, and also add ASPACE
7473 and BP_ADDR arguments. Update all callers.
7474 (struct breakpoint_ops) <print_one_detail>: New method.
7475 (struct breakpoint) <addr_string_range_end>: New member variable.
7476 * breakpoint.c (breakpoint_location_address_match): Add function
7478 (insert_bp_location): Set bl->target_info.length.
7479 (breakpoint_here_p): Call breakpoint_location_address_match.
7480 (moribund_breakpoint_here_p): Likewise.
7481 (regular_breakpoint_inserted_here_p): Likewise.
7482 (breakpoint_thread_match): Likewise.
7483 (bpstat_stop_status): Likewise.
7484 (bpstat_check_location): Move call to
7485 breakpoint_ops.breakpoint_hit to the top.
7486 (print_one_breakpoint_location): Call
7487 breakpoint_ops.print_one_detail if available.
7488 (breakpoint_address_match_range): New function.
7489 (breakpoint_location_address_match): Likewise.
7490 (breakpoint_locations_match): Compare the length field of the
7492 (hw_breakpoint_used_count): Count resources used by all locations
7493 in a breakpoint, and use breakpoint_ops.resources_needed if
7495 (breakpoint_hit_ranged_breakpoint): New function.
7496 (resources_needed_ranged_breakpoint): Likewise.
7497 (print_it_ranged_breakpoint): Likewise.
7498 (print_one_ranged_breakpoint): Likewise.
7499 (print_one_detail_ranged_breakpoint): Likewise.
7500 (print_mention_ranged_breakpoint): Likewise.
7501 (print_recreate_ranged_breakpoint): Likewise.
7502 (ranged_breakpoint_ops): New structure.
7503 (find_breakpoint_range_end): New function.
7504 (break_range_command): Likewise.
7505 (delete_breakpoint): Free addr_string_range_end.
7506 (update_breakpoint_locations): Add SALS_END argument. Update
7507 all callers. Calculate breakpoint length if a non-zero SALS_END
7508 is given. Call breakpoint_locations_match instead of
7509 breakpoint_address_match.
7510 (reset_breakpoint): Find SaL of the end of the range if B is a
7512 (_initialize_breakpoint): Register break-range command.
7513 * defs.h (print_core_address): Add function prototype.
7514 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7516 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7517 (ppc_linux_remove_hw_breakpoint): Likewise.
7518 (_initialize_ppc_linux_nat): Initialize
7519 to_ranged_break_num_registers.
7520 * target.c (update_current_target): Add comment about
7521 to_ranged_break_num_registers.
7522 (target_ranged_break_num_registers): New function.
7523 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7525 (target_ranged_break_num_registers): Add function prototype.
7526 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7527 * utils.c (print_core_address): ... here.
7529 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7531 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7532 variable compiler warning.
7534 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7536 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7538 (re_set_breakpoint): ... to here ...
7539 (addr_string_to_sals): ... and here.
7541 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7543 * Makefile.in (SFILES): Add missing C sources.
7544 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7545 Add missing headers.
7547 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7549 * .gitignore: New file.
7551 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7553 * NEWS: Mention new cfi device simulation.
7555 2011-03-29 Tom Tromey <tromey@redhat.com>
7557 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7558 otherwise anonymous types.
7559 (dwarf2_name): Likewise.
7560 * valops.c (value_struct_elt_for_reference): Refine artificial
7561 type logic. Call error if j==-1.
7563 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7565 Fix false GCC warning.
7566 * infcall.c (find_function_addr): Initialize funaddr.
7568 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7570 Fix mingw compilation with --enable-targets=all.
7571 * remote-mips.c (gdb_usleep.h): Include header.
7572 (mips_enter_debug): Use gdb_usleep instead of sleep.
7574 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7576 Support resolution of STT_GNU_IFUNC via breakpoints.
7577 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7578 bp_gnu_ifunc_resolver_return.
7579 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7580 the loop. Support bp_gnu_ifunc_resolver and
7581 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7582 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7584 (bptype_string, print_one_breakpoint_location): Support
7585 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7586 (user_settable_breakpoint): Return true also for
7587 bp_gnu_ifunc_resolver.
7588 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7589 bp_gnu_ifunc_resolver_return.
7590 (set_breakpoint_location_function): New parameter explicit_loc,
7591 describe it. Call find_pc_partial_function_gnu_ifunc with new
7592 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7593 EXPLICIT_LOC is not set.
7594 (set_raw_breakpoint): Set EXPLICIT_LOC for
7595 set_breakpoint_location_function.
7596 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7597 set_breakpoint_location_function.
7598 (mention): Support bp_gnu_ifunc_resolver and
7599 bp_gnu_ifunc_resolver_return.
7600 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7601 set_breakpoint_location_function.
7602 (update_breakpoint_locations): Remove static.
7603 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7604 bp_gnu_ifunc_resolver_return.
7605 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7606 bp_gnu_ifunc_resolver_return.
7607 (update_breakpoint_locations): New declaration.
7608 * elfread.c: Include gdbthread.h and regcache.h.
7609 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7611 (elf_gnu_ifunc_fns): Install them.
7612 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7613 (stub_gnu_ifunc_resolver_return_stop): New functions.
7614 (stub_gnu_ifunc_fns): Install them.
7615 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7616 and gnu_ifunc_resolver_return_stop.
7617 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7619 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7621 STT_GNU_IFUNC reader implementation.
7622 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7623 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7624 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7625 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7626 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7627 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7628 (elf_gnu_ifunc_resolve_addr): New.
7629 (elf_symfile_read): Call elf_rel_plt_read.
7630 (elf_gnu_ifunc_fns): New.
7631 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7632 Install elf_gnu_ifunc_fns.
7633 * infcall.c (find_function_return_type): New function.
7634 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7635 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7636 (stub_gnu_ifunc_resolve_name): New functions.
7637 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7638 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7639 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7641 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7643 Code cleanup for later STT_GNU_IFUNC support.
7644 * infcall.c (find_function_addr): Remove variable code, use explicit
7645 dereferences for it. Move VALUE_TYPE initialization later.
7647 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7649 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7650 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7651 (clear_pc_function_cache): Clear it.
7652 (find_pc_partial_function): Rename to ...
7653 (find_pc_partial_function_gnu_ifunc): ... this function. New
7654 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7655 (find_pc_partial_function): New wrapper for this function.
7656 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7658 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 GDB internal type support for STT_GNU_IFUNC.
7661 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7662 (elf_symtab_read): Set mst_text_gnu_ifunc for
7663 BSF_GNU_INDIRECT_FUNCTION.
7664 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7665 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7666 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7667 nodebug_got_plt_symbol.
7668 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7669 (TYPE_GNU_IFUNC): New.
7670 (struct main_type): New field flag_gnu_ifunc.
7671 (struct builtin_type): New field builtin_func_func.
7672 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7673 nodebug_got_plt_symbol.
7674 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7675 (in_gnu_ifunc_stub): New.
7676 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7678 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7679 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7680 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7682 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7683 * symtab.c (search_symbols): Likewise.
7684 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7685 and mst_slot_got_plt.
7686 (in_gnu_ifunc_stub): New declaration.
7688 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7690 Support a ring of related breakpoints.
7691 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7692 other functions, add gdb_assert.
7693 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7694 watchpoint_del_at_next_stop.
7695 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7696 (bpstat_stop_status): Handle ring in related_breakpoint.
7697 (set_raw_breakpoint_without_location): Initialize ring in
7699 (delete_breakpoint): Handle ring in related_breakpoint, use
7700 watchpoint_del_at_next_stop.
7701 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7703 2011-03-28 Tom Tromey <tromey@redhat.com>
7706 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7707 with `language_minimal'.
7709 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7711 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7712 instead of checking for STT_ARM_TFUNC symbol type.
7714 2011-03-25 Tom Tromey <tromey@redhat.com>
7716 * linespec.c (symbol_found): Restore line-based result for
7717 non-LOC_LABEL symbols.
7719 2011-03-25 Kai Tietz <ktietz@redhat.com>
7721 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7722 instead of strcmp for comparison.
7723 (tui_source_is_displayed): Likewise.
7724 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7726 2011-03-24 Mark Wielaard <mjw@redhat.com>
7728 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7730 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7731 (find_partial_die_in_comp_unit): Likewise in comment.
7732 (read_attribute_value): Likewise.
7733 (lookup_die_type): Likewise.
7734 (dwarf_form_name): Likewise.
7735 (dump_die_shallow): Likewise.
7736 (follow_die_ref_or_sig): Likewise.
7738 2011-03-24 Tom Tromey <tromey@redhat.com>
7740 PR breakpoints/11816:
7741 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7742 (decode_compound): Update.
7743 (find_function_symbol): New function.
7744 (decode_dollar): Update.
7745 (decode_label): Add 'function_symbol' parameter. Handle
7746 function-relative labels.
7747 (decode_variable): Update.
7748 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7749 not its line. Set `special_display' and canonical name for
7752 2011-03-24 Tom Tromey <tromey@redhat.com>
7754 * linespec.h (struct linespec_result) <special_display>: New
7756 * breakpoint.h (struct breakpoint) <display_canonical>: New
7758 * breakpoint.c (print_breakpoint_location): Respect
7760 (create_breakpoint_sal): Add 'display_canonical' parameter.
7761 (create_breakpoints_sal): Update.
7762 (create_breakpoint): Update.
7764 2011-03-24 Tom Tromey <tromey@redhat.com>
7766 * symtab.c (decode_line_spec): Update.
7767 * linespec.c (build_canonical_line_spec): Change type of
7769 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7770 (find_method, decode_all_digits, decode_dollar, decode_label)
7771 (symbol_found): Likewise.
7772 (init_linespec_result): New function.
7773 * breakpoint.c (struct captured_parse_breakpoint_args)
7774 <canonical_p>: New field, replaces addr_string_p.
7775 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7777 (parse_breakpoint_sals): Likewise.
7778 (do_captured_parse_breakpoint): Update.
7779 (create_breakpoint): Use struct linespec_result.
7780 (until_break_command): Update.
7781 (breakpoint_re_set_one): Update.
7782 (decode_line_spec_1): Update.
7783 * linespec.h (struct linespec_result): New.
7784 (init_linespec_result): Declare.
7786 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7788 * regcache.c (regcache_raw_read): If the target didn't supply a
7789 given raw register, mark it as unavailable.
7791 2011-03-23 Kai Tietz <ktietz@redhat.com>
7793 * breakpoint.c (clear_command): Use filename_cmp
7794 instead of strcmp for comparison.
7795 * buildsym.c (watch_main_source_file_lossage): Likewise.
7796 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7797 checking just for slash.
7798 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7799 strrchr and filename_cmp instead of strcmp for filenames.
7800 (add_old_header_file): Use filename_cmp
7801 instead of strcmp for comparison.
7802 * exec.c (exec_set_section_address): Likewise.
7803 * macrotab.c (macro_lookup_inclusion): Likewise.
7804 (macro_lookup_inclusion): Likewise.
7805 * elfread.c (_initialize_elfread): Likewise.
7806 (elfstab_offset_sections): Likewise.
7807 (elfstab_offset_sections): Use lbasename instead of
7809 * mdebugread.c (parse_partial_symbols): Likewise.
7810 (arse_partial_symbols): Use filename_(n)cmp instead of
7811 str(n)cmp for comparison.
7812 * minsyms.c (lookup_minimal_symbol): Likewise.
7813 * psymtab.c (read_psymtabs_with_filename): Likewise.
7814 * solib.c (solib_read_symbols): Likewise.
7815 (reload_shared_libraries_1): Likewise.
7816 * symmisc.c (maintenance_print_symbols): Likewise.
7817 * symfile.c (separate_debug_file_exists): Likewise.
7818 (reread_symbols): Likewise.
7819 (find_separate_debug_file_by_debuglink): Likewise.
7820 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7821 * source.c (add_path): Likewise.
7822 * symtab.c (filename_seen): Likewise.
7823 (file_matches): Likewise.
7824 (print_symbol_info): Likewise.
7825 (maybe_add_partial_symtab_filename): Likewise.
7826 (make_source_files_completion_list): Likewise.
7827 * xml-syscall.c (init_sysinfo): Likewise.
7828 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7829 IS_DIR_SEPARATOR for checking for trailing path separator.
7831 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7833 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7834 label abort_expression.
7835 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7836 DWARF_VALUE_OPTIMIZED_OUT.
7838 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7841 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7842 to linkage_name. Invert its value. Update the function comment.
7843 (c_type_print_varspec_suffix): Invert it at the caller.
7844 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7846 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7848 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7849 errors when reading the `stop_pc'.
7850 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7853 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7855 * NEWS: Document gdb.Write stream keyword.
7857 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7860 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7861 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7862 (dwarf2_add_field): Fix new_field->accessibility for
7863 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7865 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7869 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7870 other error classes. Do not print stack trace.
7872 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7874 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7875 (dwarf2_add_field): Fix new_field->accessibility for
7876 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7878 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7880 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7881 encountering a load via a non-SP register.
7883 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7885 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7886 field in returned unwinder.
7888 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7890 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7892 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7894 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7897 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7899 * frame.c (frame_unwind_register): Throw an error if unwinding the
7901 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7902 an unwind stop reason.
7903 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7904 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7905 UNWIND_UNAVAILABLE>: New.
7906 * inline-frame.c (inline_frame_unwind): Install
7907 default_frame_unwind_stop_reason.
7908 * frame-unwind.c: Include "exceptions.h".
7909 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7910 (default_frame_unwind_stop_reason): New.
7911 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7912 (default_frame_unwind_stop_reason): Declare.
7913 (struct frame_unwind) <stop_reason>: New function pointer.
7915 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7916 * dwarf2-frame.c: Include exceptions.h.
7917 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7918 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7919 computing the CFA. If such an error was thrown, set
7920 unavailable_retaddr.
7921 (dwarf2_frame_unwind_stop_reason): New.
7922 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7924 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7925 (dwarf2_signal_frame_unwind): Ditto.
7927 * amd64-tdep.c: Include "exceptions.h".
7928 (struct amd64_frame_cache): New field "base_p".
7929 (amd64_init_frame_cache): Clear it.
7930 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7931 Avoid reading registers with functions that throw if the register
7932 is not necessary to compute the frame base.
7933 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7934 swallowing NOT_AVAILABLE_ERROR.
7935 (amd64_frame_unwind_stop_reason): New.
7936 (amd64_frame_this_id): Don't build a frame id if the frame base
7938 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7939 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7940 base_p if the frame base was computable.
7941 (amd64_sigtramp_frame_unwind_stop_reason): New.
7942 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7943 frame base was unavailable.
7944 (amd64_sigtramp_frame_unwind): Install
7945 amd64_sigtramp_frame_unwind_stop_reason.
7946 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7947 base_p if the frame base was computable.
7948 (amd64_epilogue_frame_unwind_stop_reason): New.
7949 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7950 frame base was unavailable.
7951 (amd64_epilogue_frame_unwind): Install
7952 amd64_epilogue_frame_unwind_stop_reason.
7953 * i386-tdep.c: Include "exceptions.h".
7954 (struct i386_frame_cache): New field "base_p".
7955 (i386_init_frame_cache): Clear it.
7956 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7957 Avoid reading registers with functions that throw if the register
7958 is not necessary to compute the frame base.
7959 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7960 swallowing NOT_AVAILABLE_ERROR.
7961 (i386_frame_unwind_stop_reason): New.
7962 (i386_frame_this_id): Don't build a frame id if the frame base was
7964 (i386_frame_prev_register): Handle unavailable SP.
7965 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7966 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7967 base_p if the frame base was computable.
7968 (i386_epilogue_frame_unwind_stop_reason): New.
7969 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7970 base was unavailable.
7971 (i386_epilogue_frame_unwind): Install
7972 i386_epilogue_frame_unwind_stop_reason.
7973 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7974 base_p if the frame base was computable.
7975 (i386_sigtramp_frame_unwind_stop_reason): New.
7976 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7977 base was unavailable.
7978 (i386_sigtramp_frame_unwind): Install
7979 i386_sigtramp_frame_unwind_stop_reason.
7980 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7981 type's size, not the register's.
7982 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7984 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7985 default_frame_unwind_stop_reason.
7986 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7987 (alpha_heuristic_frame_unwind): Ditto.
7988 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7989 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7990 * avr-tdep.c (avr_frame_unwind): Ditto.
7991 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7993 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7994 * frv-tdep.c (frv_frame_unwind): Ditto.
7995 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7996 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7997 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7998 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7999 (hppa_stub_frame_unwind): Ditto.
8000 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8001 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8002 (ia64_libunwind_frame_unwind)
8003 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8004 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8005 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8006 * m32c-tdep.c (m32c_unwind): Ditto.
8007 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8008 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8009 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8010 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8011 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8012 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8013 * mep-tdep.c (mep_frame_unwind): Ditto.
8014 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8015 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8016 (mips_stub_frame_unwind): Ditto.
8017 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8018 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8019 * mt-tdep.c (mt_frame_unwind): Ditto.
8020 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8021 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8022 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8023 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8024 (s390_sigtramp_frame_unwind): Ditto.
8025 * score-tdep.c (score_prologue_unwind): Ditto.
8026 * sh-tdep.c (sh_frame_unwind): Ditto.
8027 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8028 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8029 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8030 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8031 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8032 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8033 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8034 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8035 (sparc64obsd_trapframe_unwind): Ditto.
8036 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8037 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8038 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8039 * v850-tdep.c (v850_frame_unwind): Ditto.
8040 * vax-tdep.c (vax_frame_unwind): Ditto.
8041 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8042 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8043 * xtensa-tdep.c (xtensa_unwind): Ditto.
8045 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8047 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8048 there's always a frame. Use get_frame_pc_if_available instead of
8049 get_frame_pc, and if there's no PC available, don't look up a
8052 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8054 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8057 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8059 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8062 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8064 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8065 * frame.c (frame_unwind_caller_pc_if_available): New.
8066 * stack.c (frame_info): Handle unavailable PC.
8068 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8070 * frame.c (frame_unwind_pc): Rename to ...
8071 (frame_unwind_pc_if_available): ... this. New `pc' output
8072 parameter. Change return type to int. Gracefully handle
8073 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8074 happened, or 1 otherwise.
8075 (frame_unwind_pc): Reimplement on top of
8076 frame_unwind_pc_if_available.
8077 (get_frame_func): Rename to ...
8078 (get_frame_func_if_available): New `pc' output parameter. Change
8079 return type to int. Gracefully handle the PC not being available.
8080 (get_frame_func): Reimplement on top of
8081 get_frame_func_if_available.
8082 (select_frame): Handle the PC being unavailable.
8083 (get_prev_frame): Handle the PC being unavailable.
8084 (get_frame_pc_if_available): New.
8085 (get_frame_address_in_block_if_available): New.
8086 (find_frame_sal): Handle the frame PC not being available.
8087 * frame.h (get_frame_pc_if_available): Declare.
8088 (get_frame_address_in_block_if_available): Declare.
8089 (get_frame_func_if_available): Declare.
8090 * stack.c (print_frame_info): Handle the PC being unavailable.
8091 (find_frame_funname): Ditto.
8092 (print_frame): Handle the PC being unavailable.
8093 (get_frame_language): Ditto.
8094 * blockframe.c (get_frame_block): Ditto.
8095 * macroscope.c (default_macro_scope): Ditto.
8096 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8098 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8100 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8101 NOT_AVAILABLE_ERROR when evaluating the location expression.
8103 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8105 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8106 returning that the register piece is unavailable/optimized out.
8107 (write_pieced_value): Handle get_frame_register_bytes returning
8108 that the register piece is unavailable/optimized out when doing a
8109 read-modify write of a bitfield.
8110 * findvar.c (value_from_register): Handle get_frame_register_bytes
8111 returning that the register piece is unavailable/optimized out.
8112 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8113 and `unavailablep'. Throw error on bad debug info. Use
8114 frame_register instead of frame_register_read, to fill in the new
8116 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8118 * valops.c: (value_assign): Adjust, and handle
8119 get_frame_register_bytes failing.
8120 * spu-tdep.c: Include exceptions.h.
8121 (spu_software_single_step): Adjust, and handle
8122 get_frame_register_bytes failing.
8123 (spu_get_longjmp_target): Ditto.
8124 * gdbarch.sh (register_to_value): Change to return int. New
8125 parameters `optimizedp' and `unavailablep'.
8126 * gdbarch.h, gdbarch.c: Regenerate.
8127 * i386-tdep.c (i386_register_to_value): Adjust to new
8128 gdbarch_register_to_value interface.
8129 * i387-tdep.c (i387_register_to_value): Ditto.
8130 * i387-tdep.h (i387_register_to_value): Ditto.
8131 * alpha-tdep.c (alpha_register_to_value): Ditto.
8132 * ia64-tdep.c (ia64_register_to_value): Ditto.
8133 * m68k-tdep.c (m68k_register_to_value): Ditto.
8134 * mips-tdep.c (mips_register_to_value): Ditto.
8135 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8137 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8139 * findvar.c (value_of_register): Mark the value as unavailable, if
8140 the register is unavailable.
8141 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8142 (frame_register): New `unavailablep' parameter.
8143 (frame_register_read): Update comment.
8144 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8145 Set it if the register is unavailable. If the register is
8146 unavailable, clear the output buffer.
8147 (frame_register): New `unavailablep' parameter. Pass it down.
8148 (frame_unwind_register): Adjust.
8149 (put_frame_register): Adjust.
8150 (frame_register_read): Adjust. Also return false if the register
8152 (frame_register_unwind_location): Adjust.
8153 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8154 is unavailable, mark the value accordingly.
8155 * stack.c (frame_info): Handle unavailable registers.
8157 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8159 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8160 simplify, using regcache_cooked_read.
8162 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8164 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8165 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8166 (regcache_raw_read_unsigned, regcache_raw_read_part)
8167 (regcache_cooked_read, regcache_cooked_read_signed)
8168 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8169 (regcache_cooked_read_ftype): Change return to enum
8171 * regcache.c: Include exceptions.h
8172 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8173 (do_cooked_read): Change return to enum register_status. Always
8174 forward to regcache_cooked_read.
8175 (regcache_raw_read): Change return to enum register_status. If
8176 the register is not REG_VALID, memset the buffer. Return the
8178 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8179 return the register's status.
8180 (regcache_raw_read_unsigned): Ditto.
8181 (regcache_cooked_read): Change return to enum register_status.
8182 Assert that with read-only regcaches, the register's status must
8183 be known. If the regcache is read-only, and the register is not
8184 REG_VALID, memset the buffer. Return the register's status.
8185 (regcache_cooked_read_signed): Change return to enum
8186 register_status. Handle non-REG_VALID registers and return the
8188 (regcache_cooked_read_unsigned): Change return to enum
8189 register_status. Handle non-REG_VALID registers and return the
8191 (regcache_xfer_part, regcache_raw_read_part)
8192 (regcache_cooked_read_part): Change return to enum
8193 register_status. Return the register's status.
8194 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8196 (regcache_dump): Handle unavailable cooked registers.
8197 * frame.c (do_frame_register_read): Adjust interface to match
8198 regcache_cooked_read_ftype.
8199 * gdbarch.sh (pseudo_register_read): Change return to enum
8201 * gdbarch.h, gdbarch.c: Regenerate.
8203 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8205 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8206 register_status. If reading a raw register indicates the raw
8207 register is not valid, return the raw register's status,
8208 otherwise, return REG_VALID.
8209 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8210 register_status. Handle non-REG_VALID raw registers and return
8211 the register's status.
8212 * arm-tdep.c (arm_neon_quad_read)
8213 (arm_pseudo_read): Change return to enum register_status. Handle
8214 non-REG_VALID raw registers and return the register's status.
8215 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8216 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8217 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8218 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8219 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8221 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8222 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8223 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8224 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8225 (m32c_pseudo_register_read): Change return to enum
8226 register_status. Adjust.
8227 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8228 enum register_status. Return the register's status.
8229 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8230 register_status. Return the register's status.
8231 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8232 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8233 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8234 * rs6000-tdep.c (move_ev_register_func): New typedef.
8235 (e500_move_ev_register): Use it. Change return to enum
8236 register_status. Return the register's status.
8237 (do_regcache_raw_read): New function.
8238 (do_regcache_raw_write): New function.
8239 (e500_pseudo_register_read): Change return to enum
8240 register_status. Return the register's status. Use
8241 do_regcache_raw_read.
8242 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8243 (dfp_pseudo_register_read): Change return to enum register_status.
8244 Return the register's status.
8245 (vsx_pseudo_register_read): Ditto.
8246 (efpr_pseudo_register_read): Ditto.
8247 (rs6000_pseudo_register_read): Ditto.
8248 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8249 register_status. Return the register's status.
8250 * sh64-tdep.c (pseudo_register_read_portions): New function.
8251 (sh64_pseudo_register_read): Change return to enum
8252 register_status. Use pseudo_register_read_portions. Return the
8254 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8255 register_status. Return the register's status.
8256 * sh-tdep.c (pseudo_register_read_portions): New function.
8257 (sh_pseudo_register_read): Change return to enum register_status.
8258 Use pseudo_register_read_portions. Return the register's status.
8259 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8260 enum register_status. Return the register's status.
8261 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8262 * spu-tdep.c (spu_pseudo_register_read_spu)
8263 (spu_pseudo_register_read): Ditto.
8264 * xtensa-tdep.c (xtensa_register_read_masked)
8265 (xtensa_pseudo_register_read): Ditto.
8266 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8268 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8270 * python/py-value.c (valpy_getitem): Fix formatting of error function
8273 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8275 ARI fixes: Add missing internationalization markups throughout
8277 * darwin-nat-info.c: Ditto.
8280 * mi/mi-main.c: Ditto.
8282 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8284 ARI fixes: Add missing internationalization markups throughout
8287 * cp-name-parser.y: Ditto.
8290 * objc-exp.y: Ditto.
8293 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8295 ARI fixes: Messages should have no trailing new lines.
8296 * darwin-nat.c (mach_check_error): Remove trailing new line from
8297 warning function call message.
8298 * record.c (bfdcore_read): Idem for error call.
8300 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8302 * common/signals.c (target_signal_from_host): Add _ markup to error
8303 function call message.
8304 (target_signal_to_host): Add _ markup and remove trailing new line
8305 from warning call message.
8306 (target_signal_from_command): Add _ markup to error function call
8309 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8313 * python/python.c (gdbpy_write): Accept a stream argument and
8314 operate to the appropriate stream.
8315 (gdbpy_flush): Likewise.
8316 (_initialize_python): Add stream constants.
8317 (finish_python_initialization): Add GdbOutputErrorFile class.
8319 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8321 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8323 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8325 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8326 to store_signed_integer. Add debug message when relocating CALL
8327 instructions. Fix formatting of debug message.
8328 * i386-tdep.c (i386_relocate_instruction): Ditto.
8330 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8332 * target.h (struct target_ops): Remove to_lookup_symbol field.
8333 (target_lookup_symbol): Delete macro.
8334 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8335 (update_current_target, setup_target_debug): Remove handling
8336 of to_lookup_symbol target_ops field.
8337 * ada-tasks.c (get_known_tasks_addr): Remove use of
8338 target_lookup_symbol.
8339 * coffread.c (coff_symtab_read): Likewise.
8340 * dbxread.c (read_dbx_symtab): Ditto.
8342 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8345 * configure.ac: Add getthrds declaration check.
8346 * configure, config.in: Regenerate.
8347 * aix-thread.c (getthrds): Declare only if not already declared
8348 in procinfo.h. More declaration out of get_signaled_thread to
8351 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8353 * python/py-symtab.c: Populate symtab_object_methods,
8355 (stpy_is_valid): New function.
8356 (salpy_is_valid): Ditto.
8357 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8358 (sympy_is_valid): New function.
8359 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8360 (objfpy_is_valid): New function.
8361 * python/py-inferior.c: Populate inferior_object_methods.
8362 (infpy_is_valid): New function.
8363 * python/py-infthread.c: Populate thread_object_methods.
8364 (thpy_is_valid): New function.
8365 * python/py-block.c: Declare block_object_methods. Populate. Declare
8366 block_iterator_object_methods. Populate.
8367 (blpy_is_valid): New function.
8368 (blpy_iter_is_valid): Ditto.
8370 2011-03-16 Keith Seitz <keiths@redhat.com>
8372 * linespec.c (find_methods): Canonicalize NAME before looking
8374 (name_end): New function.
8375 (keep_name_info): New function.
8376 (decode_line_1): Use keep_name_info.
8377 (decode_compound): Likewise.
8378 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8379 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8382 * linespec.c (locate_first_half): Keep overload information, too.
8383 (decode_compound): Use a string to represent break characters
8385 If P points to a break character, do not increment it.
8386 For C++ and Java, keep overload information and relevant keywords.
8387 If we cannot find a symbol, search the minimal symbols.
8390 * linespec.c (decode_compound): Rename SAVED_ARG to
8392 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8394 Pass a valid block to lookup_symbol.
8395 (lookup_prefix_sym): Likewise.
8396 (find_method): Construct search name based on SYM_CLASS instead
8398 * psymtab.c (lookup_partial_symbol): Add language parameter.
8399 (lookup_symbol_aux_psymtabs): Likewise.
8400 Don't assume that the psymtab we found was the right one. Search
8401 for the desired symbol in the symtab to be certain.
8402 (psymtab_search_name): New function.
8403 (lookup_partial_symbol): Use psymtab_search_name.
8404 Add language parameter.
8405 (read_symtabs_for_function): Add language parameter and pass to
8406 lookup_partial_symbol.
8407 (find_symbol_file_from_partial): Likewise.
8409 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8412 * dwarf2read.c (noop_record_line): New function.
8413 (dwarf_decode_lines): Ignore line tables for GCd functions.
8415 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8417 Fix ARI warnings about new lines at the end of messages, which
8418 are unneeded as there is a new line added at the end of the message
8420 * darwin-nat.c (darwin_stop_inferior): Ditto.
8421 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8422 * dfp.c (decimal_to_number): Ditto.
8423 * exec.c (print_section_info): Ditto.
8424 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8425 * osdata.c (get_osdata): Ditto.
8426 * record.c (bfdcore_write): Ditto.
8427 * remote-mips.c (mips_readchar): Ditto.
8428 * remote.c (read_ptid): Ditto.
8429 * ser-mingw.c (ser_windows_raw): Ditto.
8430 * tracepoint.c (add_local_symbols): Ditto.
8431 * windows-nat.c (fake_create_process): Ditto.
8433 2011-03-16 Tom Tromey <tromey@redhat.com>
8435 * tracepoint.c (stop_tracing): Don't declare.
8436 * event-top.c (after_char_processing_hook): Add `(void)'.
8438 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8440 * NEWS: Add Parameter sub-classing description.
8442 2011-03-16 Kai Tietz <ktietz@redhat.com>
8444 * MAINTAINERS: Update my e-mail address.
8446 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8448 * MAINTAINERS: Add myself for write after approval privileges.
8450 2011-03-15 Michael Snyder <msnyder@vmware.com>
8452 * frame.c (find_frame_sal): Assert sym is not null.
8454 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8456 * objc-lang.c (selectors_info): Check strchr for null result.
8458 * stabsread.c (define_symbol): Guard against bad stabstring input.
8460 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8462 Remove trailing spaces and tabulations from pascal language
8467 p-valprint.c: Ditto.
8469 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8471 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8472 than LOW. Comment it.
8473 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8474 HIGHPC not strictly higher than LOWPC.
8476 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8478 Fix formatting of function declarations returning a pointer in
8480 * varobj.c (varobj_add_child): Ditto.
8481 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8482 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8484 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8486 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8487 for the "generic" vector ABI used with GCC 4.3 and later.
8488 (ppc64_sysv_abi_return_value): Likewise.
8490 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8492 * infcall.c (call_function_by_hand): Function return value is
8493 always a non_lval, even when using struct_return.
8495 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8497 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8498 (map_display_numbers): New.
8499 (do_delete_display): New.
8500 (undisplay_command): Use map_display_numbers.
8501 (do_enable_disable_display): New.
8502 (enable_disable_display_command): New function.
8503 (enable_display): Delete.
8504 (enable_display_command): New.
8505 (disable_display_command): Reimplement.
8506 (_initialize_printcmd): Adjust "enable display" command to use
8507 `enable_display_command' as callback.
8509 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8511 * NEWS: Add Python breakpoint 'stop' operation.
8513 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8515 * NEWS: Delete duplicate entry. Fix typo.
8517 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8519 Fix ARI warning about function names in first column.
8520 Put prototype declaration on same line as return type.
8521 * objc-exp.y: Ditto.
8523 * python/py-stopevent.h: Ditto.
8524 For long function names, split parameters to
8525 allow function name on same line as return type.
8526 * solib-pa64.c: Ditto.
8529 For long function declaration, use single line.
8530 * hppa-tdep.h: Ditto.
8531 * inferior.h: Ditto.
8533 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8535 * python/python.h: Declare gdbpy_should_stop and
8536 gdbpy_breakpoint_has_py_cond.
8537 * python/python.c: Add python.h to includes. Remove python.h from
8538 HAVE_PYTHON definition
8539 (gdbpy_should_stop): New dummy function.
8540 (gdbpy_breakpoint_has_py_cond): New dummy function.
8541 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8542 sub-classing capabilities.
8543 (gdbpy_should_stop): New function.
8544 (gdbpy_breakpoint_has_py_cond): New function.
8545 (local_setattro): New function.
8546 * breakpoint.c (condition_command): Add check for Python 'stop'
8548 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8549 operation function as part of stop/continue tests.
8551 2011-03-14 Tom Tromey <tromey@redhat.com>
8554 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8555 (needs_frame_dwarf_call): Likewise.
8557 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8559 Fix ARI warning about functions without parameters that do not
8561 * breakpoint.c (all_tracepoints): Replace () by (void).
8562 * f-exp.y (match_string_literal): Ditto.
8564 * m2-exp.y (yylex): Ditto.
8565 * mep-tdep.c (current_me_module): Ditto.
8566 (current_options): Ditto.
8567 (current_cop_data_bus_width): Ditto.
8568 (current_cr_names): Ditto.
8569 (current_cr_is_float): Ditto.
8570 (current_ccr_names): Ditto.
8571 * objc-exp.y (yylex): Ditto.
8572 * p-exp.y (yylex): Ditto.
8573 * remote.c (send_interrupt_sequence): Ditto.
8574 * tracepoint.c (current_trace_status): Ditto.
8575 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8576 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8578 2011-03-11 Michael Snyder <msnyder@vmware.com>
8580 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8581 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8582 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8583 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8584 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8586 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8587 (delete_async_event_handler): Ditto.
8589 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8591 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8593 * top.c (set_verbose): Assert showcmd was found.
8595 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8597 * xtensa-tdep.c (warning_once): Correct style issues.
8599 2011-03-11 Yao Qi <yao@codesourcery.com>
8601 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8603 2011-03-11 Andreas Schwab <schwab@redhat.com>
8605 * common/aclocal.m4: Remove.
8607 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8609 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8610 (xtensa_write_register, xtensa_read_register): Likewise.
8611 (xtensa_hextochar): Removed.
8612 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8614 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8616 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8617 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8618 (xtensa_alloc_frame_cache): Add initialization for new fields.
8619 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8620 (warning_once): New function.
8621 (xtensa_insn_kind): New item c0opc_and.
8622 (call0_classify_opcode): Add the case for AND instruction.
8623 (call0_track_op): Change arguments. New local variable litbase.
8624 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8625 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8627 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8628 (call0_analyze_prologue): Update the comments. Change arguments.
8629 Add the variety of updates to handle extended prologues, which now can
8630 conduct dynamic stack adjustments.
8631 (call0_frame_cache): Likewise.
8632 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8633 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8635 2011-03-10 Michael Snyder <msnyder@vmware.com>
8637 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8638 (cmd_qtframe): Ditto.
8639 (cmd_qtbuffer): Ditto.
8640 (cmd_bigqtbuffer): Ditto.
8642 2011-03-10 Tom Tromey <tromey@redhat.com>
8644 * tracepoint.c (trace_actions_command): Update.
8645 * thread.c (thread_apply_command): Update.
8646 * reverse.c (delete_bookmark_command): Update.
8647 (bookmarks_info): Update.
8648 * printcmd.c (undisplay_command): Update.
8649 * memattr.c (mem_enable_command): Update.
8650 (mem_disable_command): Update.
8651 (mem_delete_command): Update.
8652 * inferior.c (detach_inferior_command): Update.
8653 (kill_inferior_command): Update.
8654 (remove_inferior_command): Update.
8655 * cli/cli-utils.h (struct get_number_or_range_state): New.
8656 (init_number_or_range): Declare.
8657 (get_number_or_range): Update.
8658 * cli/cli-utils.c (init_number_or_range): New function.
8659 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8661 (number_is_in_list): Update.
8662 * breakpoint.h (get_tracepoint_by_number): Update.
8663 * breakpoint.c (map_breakpoint_numbers): Update for change to
8664 get_number_or_range.
8665 (find_location_by_number): Use get_number, not
8666 get_number_or_range.
8667 (trace_pass_set_count): New function.
8668 (trace_pass_command): Update for change to get_number_or_range.
8670 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8673 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8675 * python/py-param.c (add_setshow_generic): Add set/show callback
8676 parameters. Register Python object context.
8677 (get_show_value): New function.
8678 (get_set_value): New function.
8679 (call_doc_function): New function.
8680 (get_doc_string): Move behind get_show_value/get_set_value.
8682 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8684 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8686 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8688 * xtensa-tdep.c (xtensa_read_register): Add comment.
8689 (xtensa_write_register): Likewise.
8690 (xtensa_hextochar): Add comment and update to match coding conventions.
8691 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8692 (execute_l32e, execute_s32e, execute_code): Update comments.
8693 (xtensa_exception_handler_t): Update to match coding conventions.
8694 (xtensa_insn_kind): Likewise.
8696 2011-03-09 Michael Snyder <msnyder@vmware.com>
8698 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8700 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8702 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8704 2011-03-09 Tom Tromey <tromey@redhat.com>
8706 * thread.c (restore_selected_frame): Handle frame_level == -1.
8707 (make_cleanup_restore_current_thread): Use
8708 get_selected_frame_if_set.
8709 * frame.h (get_selected_frame_if_set): Declare.
8710 * frame.c (get_selected_frame_if_set): New function.
8712 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8714 * cli/cli-cmds.c (shell_escape): Use lbasename.
8715 * coffread.c (coff_start_symtab): Constify parameter.
8716 (complete_symtab): Constify `name' parameter.
8717 (coff_symtab_read): Constify `filestring' local.
8718 (coff_getfilename): Constify return and `result' local.
8720 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8721 * linux-fork.c (info_checkpoints_command): Use lbasename.
8722 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8723 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8724 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8725 * procfs.c (procfs_make_note_section): Use lbasename.
8726 * tui/tui-io.c (printable_part): Constity return and parameter.
8728 (print_filename): Constify parameters, and local `s'.
8729 (tui_rl_display_match_list): Constify local `temp'.
8731 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8734 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8735 Fix DWARF-3+ DW_AT_accessibility default assumption.
8736 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8737 cu->header.version >= 3.
8739 2011-03-09 Yao Qi <yao@codesourcery.com>
8741 * common/Makefile.in: Remove.
8742 * common/configure: Remove.
8743 * common/configure.ac: Remove.
8745 2011-03-09 Yao Qi <yao@codesourcery.com>
8748 2011-02-11 Yao Qi <yao@codesourcery.com>
8750 * common/Makefile.in: Add copyright header.
8752 2011-02-11 Yao Qi <yao@codesourcery.com>
8754 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8756 * configure.ac: Add common to sub dir.
8757 * configure: Regenerate.
8759 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8761 * xtensa-tdep.c (call0_ret): New function.
8762 (xtensa_skip_prologue): Speed up analysis.
8764 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8766 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8767 while executing MI command -data-list-changed-registers.
8769 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8771 * xtensa-tdep.c (xtensa_read_register): New function.
8772 (xtensa_write_register): New function.
8773 (xtensa_find_register_by_name): New function.
8774 (xtensa_windowed_frame_cache): Update comments in type description.
8775 (xtensa_frame_cache): Likewise.
8776 (xtensa_window_interrupt_insn): New function.
8777 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8778 (xtensa_insn_kind): Add new instructions.
8779 (rwx_special_register): New function.
8780 (call0_classify_opcode): Add new instructions to the analysis.
8781 (a0_saved, a7_saved, a11_saved): New variables.
8782 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8783 (execute_l32e): New function.
8784 (execute_s32e): New function.
8785 (xtensa_exception_handler_t): New type.
8786 (execute_code): New function.
8787 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8788 analysis for Xtensa Window Exception handlers.
8790 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8792 * xtensa-tdep.c (TX_PS): New.
8793 (windowing_enabled): Update to count for Call0 ABI.
8794 (xtensa_hextochar): New.
8795 (xtensa_init_reggroups): Make algorithm generic.
8796 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8798 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8800 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8802 2011-03-08 Michael Snyder <msnyder@vmware.com>
8804 * i386-tdep.c (i386_follow_jump): Check return value of
8806 (i386_analyze_struct_return): Ditto.
8807 (i386_skip_probe): Ditto.
8808 (i386_match_insn): Ditto.
8809 (i386_skip_noop): Ditto.
8810 (i386_analyze_frame_setup): Ditto.
8811 (i386_analyze_register_saves): Ditto.
8812 (i386_skip_prologue): Ditto.
8813 (i386_skip_main_prologue): Ditto.
8815 * target.c (read_whatever_is_readable): Fix memory leak.
8817 * i386-tdep.c (i386_process_record): Document fall through.
8819 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8821 Fix DWARF-3+ DW_AT_accessibility default assumption.
8822 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8823 cu->header.version >= 3.
8825 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8827 * remote.c (remote_check_symbols): Skip if the target has no
8830 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8832 * target.c (read_whatever_is_readable): Reformat comment,
8833 with a minor typo fix. Minor reformatting of the code.
8835 2011-03-08 Yao Qi <yao@codesourcery.com>
8837 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8838 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8839 Use cached result instead of calling displaced_in_arm_mode again.
8840 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8841 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8842 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8843 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8844 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8845 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8846 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8847 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8848 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8849 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8850 (arm_catch_kernel_helper_return): Likewise.
8851 * gdb/arm-tdep.h : Update function declarations.
8853 2011-03-07 Michael Snyder <msnyder@vmware.com>
8855 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8857 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8859 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8861 * elfread.c (elf_symtab_read): Stop memory leak.
8863 * main.c (captured_main): Fix memory leak.
8865 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8867 * ada-lang.c (compare_names): Call is_name_suffix with string1
8870 2011-03-07 Tom Tromey <tromey@redhat.com>
8872 * xcoffread.c (xcoff_sym_fns): Update.
8873 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8874 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8875 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8876 (symbol_file_add_with_addrs_or_offsets): Likewise.
8877 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8878 * somread.c (som_sym_fns): Update.
8879 * psymtab.h (require_partial_symbols): Declare.
8880 * psymtab.c (require_partial_symbols): New function.
8881 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8882 (ALL_OBJFILE_PSYMTABS): Undef.
8883 (ALL_PSYMTABS): Move from psympriv.h.
8884 (lookup_partial_symtab, find_pc_sect_psymtab)
8885 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8886 (find_last_source_symtab_from_partial)
8887 (forget_cached_source_info_partial)
8888 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8889 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8890 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8891 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8892 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8893 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8894 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8895 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8896 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8898 * mipsread.c (ecoff_sym_fns): Update.
8899 * machoread.c (macho_sym_fns): Update.
8900 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8901 (read_psyms): New function.
8902 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8903 (elf_sym_fns_lazy_psyms): New global.
8904 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8905 dwarf2_build_psymtabs.
8906 * dbxread.c (aout_sym_fns): Update.
8907 * coffread.c (coff_sym_fns): Update.
8909 2011-03-07 Tom Tromey <tromey@redhat.com>
8911 * infrun.c (print_exited_reason): Include inferior id and pid in
8914 2011-03-07 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8918 (target_has_execution_1): Update.
8919 (target_has_execution_current): Declare.
8920 (target_has_execution): Call target_has_execution_current.
8921 (default_child_has_execution): Update.
8922 * target.c (default_child_has_execution): Add 'the_ptid'
8924 (target_has_execution_1): Likewise.
8925 (target_has_execution_current): New function.
8926 (add_target): Update.
8927 (init_dummy_target): Update.
8928 * remote-m32r-sdi.c (m32r_has_execution): New function.
8929 (init_m32r_ops): Use it.
8930 * record.c (record_core_has_execution): Now static. Add
8931 'the_ptid' parameter.
8932 * inferior.c (have_live_inferiors): Don't save current thread.
8933 Use target_has_execution_1.
8935 2011-03-07 Yao Qi <yao@codesourcery.com>
8937 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8939 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8941 * elfread.c (elf_symtab_read): Minor reformatting.
8943 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8945 * objc-lang.c (selectors_info): Minor reformatting.
8947 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8949 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8951 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8952 Michael Snyder <msnyder@vmware.com>
8954 * ada-valprint.c (ada_val_print_array): Move the declaration of
8955 "byte_order" and "elttype" inside the block where these variables
8956 are actually used. Remove some special handling for the case
8957 where "elttype" and "eltlen" are null. Replace by a comment
8958 and a couple of assertion checks.
8960 2011-03-05 Michael Snyder <msnyder@vmware.com>
8962 * source.c (add_path): Replace semicolon at end of block.
8963 * dwarf2expr.c (execute_stack_op): Ditto.
8965 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8967 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8968 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8969 (bfin-*-*): Likewise.
8971 2011-03-05 Michael Snyder <msnyder@vmware.com>
8973 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8974 * mdebugread.c (parse_symbol): Ditto.
8975 * parse.c (parse_exp_in_context): Ditto.
8976 * source.c (add_path): Ditto.
8977 * utils.c (gnu_debuglink_crc32): Ditto.
8978 * varobj.c (variable_language): Ditto.
8980 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8982 2011-03-04 Michael Snyder <msnyder@vmware.com>
8984 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8986 * symfile.c (simple_overlay_update): Check for null return value
8987 from lookup_minimal_symbol.
8989 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8991 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8993 * eval.c (parse_and_eval_address_1): Remove function.
8994 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8995 instead of parse_and_eval_address_1.
8996 * value.h (parse_and_eval_address_1): Remove prototype.
8998 2011-03-04 Michael Snyder <msnyder@vmware.com>
9000 * remote.c (putpkt_binary): Document that case stmt falls through.
9002 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9004 * breakpointc (print_it_typical): Move NULL check from here...
9005 (print_bp_stop_message): ... to here.
9007 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9009 * breakpoint.c (enable_command): Use break instead of continue,
9010 and fill in a missing break.
9011 (disable_command): Ditto.
9013 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9015 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9016 (terminal_save_ours): Remove misleading comment.
9017 (inflow_inferior_data_cleanup): Free ttystate.
9018 (inflow_inferior_exit): Likewise.
9019 (copy_terminal_info): Copy ttystate.
9021 * serial.c (serial_copy_tty_state): New function.
9022 * serial.h (serial_copy_tty_state): Add prototype.
9023 (struct serial_ops): Add copy_tty_state callback.
9024 * ser-base.c (ser_base_copy_tty_state): New function.
9025 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9026 * ser-go32.c (dos_copy_tty_state): New function.
9027 (dos_ops): Install copy_tty_state callback.
9028 * ser-mingw.c (_initialize_ser_windows): Likewise.
9029 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9030 * ser-unix.c (hardwire_copy_tty_state): New function.
9031 (_initialize_ser_hardwire): Install it.
9033 2011-03-04 Michael Snyder <msnyder@vmware.com>
9035 * breakpoint.c (create_breakpoint): Add missing break statement.
9037 Reverting this patch:
9038 * infcall.c (call_function_by_hand): Add break statements for lint.
9040 Reverting this patch:
9041 * cli/cli-script.c (script_from_file): Add break for lint.
9043 2011-03-04 Michael Snyder <msnyder@vmware.com>
9045 * solib.c (reload_shared_libraries_1): Close memory leak.
9047 2011-03-03 Tom Tromey <tromey@redhat.com>
9050 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9053 2011-03-03 Michael Snyder <msnyder@vmware.com>
9055 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9056 fields of struct 'st' to zero.
9058 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9059 sal.pspace before calling set_current_source_symtab_and_line.
9061 2011-03-03 Yao Qi <yao@codesourcery.com>
9063 * Makefile.in (configure-common): Remove. Let Makefile
9064 in dir common to rebuild itself.
9065 (common/Makefile): Likewise.
9067 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9069 * utils.c (parse_escape): Add i18n markup in error message.
9071 2011-03-03 Yao Qi <yao@codesourcery.com>
9073 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9075 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9076 (displaced_write_reg, displaced_read_reg): Likewise.
9077 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9078 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9079 (cleanup_branch): Replace magic number 14 and 15 with
9080 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9082 2011-03-02 Michael Snyder <msnyder@vmware.com>
9084 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9086 * cli/cli-script.c (script_from_file): Add break for lint.
9088 * mdebugread.c (parse_partial_symbols): Fix indent.
9090 * target-descriptions.c (tdesc_gdb_type): No need to call
9091 xstrdup, callee saves a copy.
9093 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9095 * infcall.c (call_function_by_hand): Add break statements for lint.
9097 * utils.c (parse_escape): Escape the escape char.
9099 * python/py-inferior.c (build_inferior_list): Error out if
9100 PyList_Append fails.
9101 (gdbpy_inferiors): Error out if build_inferior_list fails.
9103 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9106 * record.c (record_restore): Move printf to before error return.
9108 2011-03-02 Yao Qi <yao@codesourcery.com>
9110 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9111 is_thumb and insn_size.
9112 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9113 on both ARM and Thumb mode.
9114 (arm_process_displaced_insn): Set is_thumb and insn_size.
9115 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9116 (arm_displaced_step_fixup): Likewise.
9118 2011-03-01 Michael Snyder <msnyder@vmware.com>
9120 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9122 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9124 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9126 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9128 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9131 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9132 which shadows function parameter.
9134 * tracepoint.c (create_tsv_from_upload): Superfluous call
9135 to xstrdup. Callee already calls xstrdup.
9137 * linespec.c (decode_line_1): Remove unnecessary null check.
9139 * tracepoint.c (scope_info): Fix mem leak, remove underused
9142 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9143 superfluous null check.
9145 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9146 (value_of_builtin_frame_fp_reg): Ditto.
9148 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9150 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9153 * linespec.c (decode_line_1): Check for null before dereference.
9155 * reverse.c (record_restore): Move null-check to before pointer
9158 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9160 * objc-lang.c (selectors_info): Add explanitory comment.
9161 (classes_info): Ditto.
9163 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9165 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9166 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9167 versions of the trampoline. Handle Thumb vs. ARM addresses.
9168 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9169 (arm_linux_init_abi): Install it.
9170 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9171 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9173 2011-02-28 Michael Snyder <msnyder@vmware.com>
9175 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9176 a little bigger, to avoid possibility of an overflow.
9178 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9179 buffers a little bigger, to avoid possibility of an overflow.
9181 * coffread.c (coff_getfilename): Add check to avoid overflow.
9183 * objc-lang.c (selectors_info): Add a small safety margin to
9185 (classes_info): Error out on too long REGEXP.
9187 * infrun.c (handle_inferior_event): Remove unused function call.
9189 * fork-child.c (fork_inferior): Remove ifdef'd code and
9192 * linux-thread-db.c (attach_thread): Discard unused value.
9194 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9196 * remote.c (remote_get_noisy_reply): Discard unused value.
9197 (remote_vcont_resume): Ditto.
9198 (remote_stop_ns): Ditto.
9200 * linespec.c (decode_objc): Delete unused variable.
9202 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9204 * dwarf2read.c (add_partial_symbol): Discard unused values.
9205 (read_base_type): Delete unused variable.
9207 * dbxread.c (read_dbx_symtab): Discard unused value.
9209 * eval.c (evaluate_subexp_standard): Delete unused variable,
9210 and discard unused values.
9212 * infcmd.c (_initialize_infcmd): Discard unused values.
9214 * stabsread.c (rs6000_builtin_type): Missing break statement.
9216 * dbxread.c (process_one_symbol): Discard unused value.
9218 * coffread.c (coff_end_symtab): Delete unused variable.
9220 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9221 (dwarf2_add_typedef): Delete unused variable.
9222 (read_namespace): Ditto.
9223 (dwarf_decode_macros): Ditto.
9225 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9227 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9229 * p-valprint.c (pascal_val_print): Discard unused value.
9231 * utils.c (nquery): Call va_end before return;
9235 * proc-service.c (ps_plog): Call va_end before return.
9237 2011-02-28 Tom Tromey <tromey@redhat.com>
9239 * python/python.c (gdbpy_value_cst): New global.
9240 (_initialize_python): Initialize it.
9241 * python/python-internal.h (gdbpy_value_cst): Declare.
9242 * python/py-value.c (convert_value_from_python): Use
9245 2011-02-28 Michael Snyder <msnyder@vmware.com>
9247 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9249 * breakpoint.c (catch_syscall_completer): Free malloced list.
9251 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9253 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9254 (lval_func_check_synthetic_pointer): Ditto.
9255 (lval_func_free_closure): Fix use-after-free.
9257 2011-02-28 Tom Tromey <tromey@redhat.com>
9259 * psymtab.c (expand_partial_symbol_tables): Use
9260 ALL_OBJFILE_PSYMTABS.
9262 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9264 * objc-lang.c (selectors_info): Error on too long REGEXP.
9266 2011-02-28 Michael Snyder <msnyder@vmware.com>
9268 * python/py-param.c (set_parameter_value): Add missing
9271 * linux-record.c (record_linux_system_call): Add missing
9274 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9276 * breakpoint.c (print_one_breakpoint_location): Remove unused
9277 argument PRINT_ADDRESS_BITS. Update callers.
9278 (print_one_breakpoint): Likewise.
9280 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9282 * breakpoint.c (wrap_indent_at_field): New function.
9283 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9284 Allocate ui_stream locally instead of using STB argument.
9285 (print_one_breakpoint_location): Update call.
9286 * ui-out.c (ui_out_query_field): New function.
9287 * ui-out.h (ui_out_query_field): Add prototype.
9289 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9291 From Michael Snyder <msnyder@vmware.com>
9292 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9294 2011-02-27 Michael Snyder <msnyder@vmware.com>
9296 * objc-lang.c (selectors_info): Prevent string overrun.
9298 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9301 * symtab.c (rbreak_command): Move variable 'file_name' to
9304 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9305 param with a local variable of the same name.
9307 2011-02-27 Michael Snyder <msnyder@vmware.com>
9309 * value.c (value_from_history_ref): New function.
9310 * value.h (value_from_history_ref): Export.
9311 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9312 to parse value history references.
9313 * cli/cli-utils.h (get_number_trailer): Update comment.
9315 2011-02-27 Michael Snyder <msnyder@vmware.com>
9317 * inferior.c (detach_inferior_command): Use get_number_or_range.
9318 (kill_inferior_command): Ditto.
9319 (remove_inferior_command): Ditto.
9320 (initialize_inferiors): Make command names plural.
9321 Update help strings.
9323 2011-02-27 Michael Snyder <msnyder@vmware.com>
9325 * darwin-nat-info.c: Fix comment typo.
9326 * dwarf2expr.h: Ditto.
9327 * fbsd-nat.c: Ditto.
9328 * fbsd-nat.h: Ditto.
9329 * frame-unwind.h: Ditto.
9331 * hppa-hpux-tdep.c: Ditto.
9332 * i386-linux-nat.c: Ditto.
9333 * linux-nat.c: Ditto.
9334 * nbsd-nat.c: Ditto.
9335 * nbsd-nat.h: Ditto.
9336 * ppc-linux-tdep.c: Ditto.
9339 * tui/tui-winsource.c: Ditto.
9341 2011-02-26 Michael Snyder <msnyder@vmware.com>
9343 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9345 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9347 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9348 with a local variable of the same name.
9350 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9351 param with a local variable of the same name.
9352 (i387_supply_xsave): Ditto.
9354 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9355 that it does not shadow a function parameter.
9357 * i386-nat.c (i386_length_and_rw_bits): Document that case
9358 statement is meant to fall through.
9360 * expprint.c (dump_subexp_body_standard): Document that case
9361 statement is meant to fall through.
9363 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9364 dead if statement. Condition can't be false.
9366 2011-02-25 Michael Snyder <msnyder@vmware.com>
9368 * arm-tdep.c: Fix typos in comments.
9369 * bsd-uthread.c: Ditto.
9370 * completer.c: Ditto.
9372 * cp-namespace.c: Ditto.
9373 * cp-support.c: Ditto.
9374 * cris-tdep.c: Ditto.
9376 * dwarf2read.c: Ditto.
9378 * gdbtypes.h: Ditto.
9379 * inferior.h: Ditto.
9380 * mdebugread.c: Ditto.
9381 * mips-tdep.c: Ditto.
9382 * ppc-linux-nat.c: Ditto.
9383 * ppc-linux-tdep.c: Ditto.
9384 * printcmd.c: Ditto.
9385 * sol-thread.c: Ditto.
9386 * solib-frv.c: Ditto.
9388 * sparc64-tdep.c: Ditto.
9389 * spu-tdep.c: Ditto.
9390 * stabsread.c: Ditto.
9395 * python/py-block.c: Ditto.
9396 * python/py-symbol.c: Ditto.
9397 * python/py-symtab.c: Ditto.
9398 * python/py-value.c: Ditto.
9399 * tui/tui-win.c: Ditto.
9401 2011-02-25 Michael Snyder <msnyder@vmware.com>
9403 * inferior.c (print_inferior): Accept a string instead of an int
9404 for requested_inferiors, and use get_number_or_range to parse it.
9405 (info_inferiors_command): Pass args string to print_inferior.
9406 (initialize_inferiors): Change help string for info inferiors.
9407 * inferior.h (print_inferior): Export prototype change.
9409 2011-02-25 Tom Tromey <tromey@redhat.com>
9411 * common/ax.def (invalid2): Set to 0x31.
9413 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9415 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9417 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9419 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9421 2011-02-24 Michael Snyder <msnyder@vmware.com>
9423 * Makefile.in (clean): Make clean should remove generated files
9424 observer.h and observer.inc.
9426 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9428 Revert the following patch (not approved yet):
9429 2011-02-21 Hui Zhu <teawater@gmail.com>
9430 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9431 * ax-gdb.c (gen_printf_expr_callback): New function.
9432 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9433 * ax-general.c (ax_memcpy): New function.
9434 (ax_print): Handle "printf".
9436 * ax.h (ax_memcpy): Forward declare.
9437 * common/ax.def (invalid2): Removed.
9438 (printf): New entry.
9439 * printcmd.c (printcmd.h): New include.
9440 (string_printf): New function.
9441 (ui_printf): Removed.
9442 (printf_command): Remove static. Call string_printf.
9443 (eval_command): Call string_printf.
9444 * printcmd.h: New file.
9445 * tracepoint.c (validate_actionline,
9446 encode_actions_1): handle printf_command.
9448 2011-02-23 Tom Tromey <tromey@redhat.com>
9450 * ax-general.c (ax_pick): Add missing newline.
9452 2011-02-23 Michael Snyder <msnyder@vmware.com>
9454 * breakpoint.c (breakpoint_1): Change first argument from an int
9455 to a char pointer, so that the function now accepts a list of
9456 breakpoints rather than just one. Use new function
9457 'number_is_in_list' to implement.
9458 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9459 (watchpoints_info): Ditto.
9460 (tracepoints_info): Ditto.
9461 (maintenance_info_breakpoints): Ditto.
9462 (_initialize_breakpoint): Update help strings to reflect the fact
9463 that these functions can now take more than one argument.
9464 * cli/cli-utils.c (number_is_in_list): New function.
9465 * cli/cli-utils.h (number_is_in_list): Export.
9467 2011-02-23 Michael Snyder <msnyder@vmware.com>
9469 * memattr.c (mem_enable_command): Use get_number_or_range.
9470 (mem_disable_command): Ditto.
9471 (mem_delete_command): Ditto.
9472 (_initialize_mem): Tweak usage message to reflect multiple
9475 2011-02-22 Doug Evans <dje@google.com>
9477 Add gdb.lookup_global_symbol python function.
9479 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9480 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9481 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9483 2011-02-22 Tom Tromey <tromey@redhat.com>
9485 * language.c (language_class_name_from_physname): Rename
9486 'curr_language' argument to 'lang'; use in body.
9488 2011-02-22 Michael Snyder <msnyder@vmware.com>
9490 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9492 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9494 * frame-unwind.h: Fix comment to mention the this frame, not the
9497 2011-02-22 Tom Tromey <tromey@redhat.com>
9499 * symfile.c (auto_solib_limit): Remove.
9500 * symfile.h (auto_solib_limit): Remove.
9502 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9504 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9506 2011-02-21 Michael Snyder <msnyder@vmware.com>
9508 * gdbthread.h (print_thread_info): Change prototype.
9509 * thread.c (print_thread_info): Accept char* instead of int for
9510 requested_threads argument. Use new function number_is_in_list
9511 to determine which threads to list.
9512 (info_threads_command): Pass char* to print_thread_info.
9513 * cli/cli-utils.c (number_is_in_list): New function.
9514 * cli/cli-utils.h (number_is_in_list): Export.
9515 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9517 (print_one_inferior): Ditto.
9518 (mi_cmd_list_thread_groups): Ditto.
9520 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9522 * common/Makefile.in (CFLAGS): New.
9523 (COMPILE): Add $(CFLAGS).
9525 2011-02-21 Tom Tromey <tromey@redhat.com>
9527 * breakpoint.c (catch_syscall_command_1): Fix typo.
9529 2011-02-21 Tom Tromey <tromey@redhat.com>
9531 * reverse.c: Include cli-utils.h.
9532 * printcmd.c: Include cli-utils.h.
9533 (string_printf): Use skip_spaces.
9534 * cli/cli-utils.h: New file.
9535 * cli/cli-utils.c: New file.
9536 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9537 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9538 * breakpoint.h (get_number, get_number_or_range): Move to
9540 * breakpoint.c: Include cli-utils.h.
9541 (get_number_trailer, get_number, get_number_or_range)
9542 (ep_skip_leading_whitespace): Move to cli-utils.c.
9543 (create_breakpoint_sal, find_condition_and_thread)
9544 (decode_static_tracepoint_spec, watch_command_1)
9545 (watch_maybe_just_location, ep_parse_optional_if_clause)
9546 (catch_fork_command_1, catch_exec_command_1)
9547 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9548 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9549 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9550 (HFILES_NO_SRCDIR): Add cli-utils.h.
9551 (cli-utils.o): New target.
9553 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9555 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9556 before calling discard_all_inferiors.
9558 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9560 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9561 (struct builtin_opencl_type): Remove.
9562 (builtin_opencl_type): Change return type to "struct type **".
9563 (lookup_opencl_vector_type): Update caller.
9564 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9565 (build_opencl_types): Install plain array of "struct type *"
9566 instead of "struct builtin_opencl_type".
9568 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9569 Ulrich Weigand <uweigand@de.ibm.com>
9571 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9572 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9573 (struct arm_linux_hwbp_cap): New type.
9574 (arm_linux_get_hwbp_cap): New function.
9575 (arm_linux_get_hw_breakpoint_count): Likewise.
9576 (arm_linux_get_hw_watchpoint_count): Likewise.
9577 (arm_linux_can_use_hw_breakpoint): Likewise.
9578 (arm_hwbp_type): New type.
9579 (arm_hwbp_control_t): Likewise.
9580 (struct arm_linux_hw_breakpoint): Likewise.
9581 (struct arm_linux_thread_points): Likewise.
9582 (arm_threads): New global variable.
9583 (arm_linux_find_breakpoints_by_tid): New function.
9584 (arm_hwbp_control_initialize): Likewise.
9585 (arm_hwbp_control_is_enabled): Likewise.
9586 (arm_hwbp_control_disable): Likewise.
9587 (arm_linux_hw_breakpoint_initialize): Likewise.
9588 (arm_linux_get_hwbp_type): Likewise.
9589 (arm_linux_hw_watchpoint_initialize): Likewise.
9590 (arm_linux_hw_breakpoint_equal): Likewise.
9591 (arm_linux_insert_hw_breakpoint1): Likewise.
9592 (arm_linux_remove_hw_breakpoint1): Likewise.
9593 (arm_linux_insert_hw_breakpoint): Likewise.
9594 (arm_linux_remove_hw_breakpoint): Likewise.
9595 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9596 (arm_linux_insert_watchpoint): Likewise.
9597 (arm_linux_remove_watchpoint): Likewise.
9598 (arm_linux_stopped_data_address): Likewise.
9599 (arm_linux_stopped_by_watchpoint): Likewise.
9600 (arm_linux_watchpoint_addr_within_range): Likewise.
9601 (arm_linux_new_thread): Likewise.
9602 (arm_linux_thread_exit): Likewise.
9603 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9604 related target callbacks. Register arm_linux_new_thread and
9605 arm_linux_thread_exit.
9606 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9607 * arm-tdep.c (arm_pc_is_thumb): Make global.
9608 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9610 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9612 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9613 per-frame locations while within a function epilogue.
9615 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9617 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9618 to GNU coding standards.
9620 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9622 Allow use of mingw native on Windows 95 OS.
9623 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9624 (ser_windows_close): Only call CancelIo if function exists.
9625 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9626 to check for existence of CancelIo function in kernel32 DLL.
9628 2011-02-21 Hui Zhu <teawater@gmail.com>
9630 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9631 * ax-gdb.c (gen_printf_expr_callback): New function.
9632 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9633 * ax-general.c (ax_memcpy): New function.
9634 (ax_print): Handle "printf".
9636 * ax.h (ax_memcpy): Forward declare.
9637 * common/ax.def (invalid2): Removed.
9638 (printf): New entry.
9639 * printcmd.c (printcmd.h): New include.
9640 (string_printf): New function.
9641 (ui_printf): Removed.
9642 (printf_command): Remove static. Call string_printf.
9643 (eval_command): Call string_printf.
9644 * printcmd.h: New file.
9645 * tracepoint.c (validate_actionline,
9646 encode_actions_1): handle printf_command.
9648 2011-02-19 Michael Snyder <msnyder@vmware.com>
9650 * reverse.c (delete_one_bookmark): Argument is now bookmark
9651 id rather than pointer to bookmark struct.
9652 (delete_bookmark_command): Use get_number_or_range.
9653 (goto_bookmark_command): Parse with get_number instead of strtoul.
9654 (bookmark_1): New function. Print info for one bookmark.
9655 (bookmarks_info): Use get_number_or_range and bookmark_1.
9657 2011-02-18 Michael Snyder <msnyder@vmware.com>
9659 * thread.c (info_threads_command): Re-implement using
9660 get_number_or_range.
9661 (thread_apply_command): Ditto.
9663 2011-02-18 Tom Tromey <tromey@redhat.com>
9665 * common/ax.def: New file.
9666 * ax.h (enum agent_op): Use ax.def.
9667 * ax-general.c (aop_map): Use ax.def.
9669 2011-02-18 Tom Tromey <tromey@redhat.com>
9671 * ax-general.c (aop_map): Add pick and rot.
9672 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9673 <DW_OP_rot>: Implement.
9674 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9676 * ax-general.c (ax_pick): New function.
9678 2011-02-18 Tom Tromey <tromey@redhat.com>
9680 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9682 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9683 Tom Tromey <tromey@redhat.com>
9685 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9686 make_symbol_overload_list_block with NULL BLOCK.
9687 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9689 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9691 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9692 * breakpoint.h (get_number_or_range): Declare.
9693 * printcmd.c (ALL_DISPLAYS): Declare.
9694 (delete_display): Reimplement taking a display pointer.
9695 (undisplay_command): Accept a range of displays to delete, using
9696 get_number_or_range.
9698 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9700 * c-valprint.c (c_val_print): Add embedded_offset to address
9701 for arrays of unspecified length.
9702 * p-valprint.c (pascal_val_print): Likewise.
9704 2011-02-18 Yao Qi <yao@codesourcery.com>
9706 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9707 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9708 (thumb_process_displaced_insn): New.
9709 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9710 call to arm_process_displaced_insn.
9711 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9713 2011-02-17 Tom Tromey <tromey@redhat.com>
9715 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9716 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9717 compile_dwarf_to_ax. No longer static. Call
9718 dwarf2_compile_cfa_to_ax.
9719 (locexpr_tracepoint_var_ref): Update.
9720 (loclist_tracepoint_var_ref): Update.
9721 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9722 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9723 argument; add 'gdbarch' and 'pc'.
9724 (dwarf2_compile_cfa_to_ax): New function.
9725 (dwarf2_frame_cache): Update.
9727 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9729 * ada-lang.c (ada_type_of_array): Fix the size of the array
9730 in the case of an unconstrained packed array.
9732 2011-02-17 Yao Qi <yao@codesourcery.com>
9734 * common/Makefile.in: Add more targets for make.
9736 2011-02-16 Tom Tromey <tromey@redhat.com>
9738 * dwarf2loc.c (unimplemented): Fix typo.
9740 2011-02-16 Tom Tromey <tromey@redhat.com>
9742 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9743 (compile_dwarf_to_ax) <default>: Use unimplemented.
9744 <DW_OP_deref>: Update.
9745 (disassemble_dwarf_expression): Update.
9746 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9747 (decode_locdesc): Update.
9748 * dwarf2expr.h (dwarf_stack_op_name): Update.
9750 2011-02-16 Tom Tromey <tromey@redhat.com>
9752 * ax.h (struct aop_map) <name>: Now const.
9754 2011-02-16 Tom Tromey <tromey@redhat.com>
9756 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9759 2011-02-16 Yao Qi <yao@codesourcery.com>
9761 * infrun.c (get_displaced_step_closure_by_addr): New.
9762 * inferior.h: Declare it.
9763 * arm-tdep.c: (arm_pc_is_thumb): Call
9764 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9767 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9768 Jan Kratochvil <jan.kratochvil@redhat.com>
9771 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9773 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9774 Jan Kratochvil <jan.kratochvil@redhat.com>
9776 * value.c (value_contents_copy_raw): Extend describing comment.
9777 Assert that the destination contents we're overwriting are wholly
9779 (value_contents_copy): Extend describing comment.
9781 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9782 Jan Kratochvil <jan.kratochvil@redhat.com>
9784 * value.c (value_available_contents_eq): Remove redundant local
9785 variables. Fix available contents comparision.
9786 * value.h (value_available_contents_eq): Extend describing
9789 2011-02-16 Yao Qi <yao@codesourcery.com>
9791 * thread.c (info_threads_command): Add missing i18n markup and remove
9794 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9796 * breakpoint.c (longjmp_names): New variable.
9797 (struct breakpoint_objfile_data): New type.
9798 (breakpoint_objfile_key): New variable.
9799 (msym_not_found): New variable.
9800 (msym_not_found_p): New predicate.
9801 (get_breakpoint_objfile_data): New function.
9802 (create_overlay_event_breakpoint): Check per-objfile cache for
9804 (create_longjmp_master_breakpoint): Likewise.
9805 (create_std_terminate_master_breakpoint): Likewise.
9806 (create_exception_master_breakpoint): Likewise.
9807 (_initialize_breakpoint): Register per-objfile data key.
9809 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9811 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9813 (create_longjmp_master_breakpoint): Loop over longjmp names.
9814 (create_std_terminate_master_breakpoint): Const-propagate parameter
9816 (update_breakpoints_after_exec): Adjust.
9817 (breakpoint_re_set): Adjust.
9819 2011-02-15 Michael Snyder <msnyder@vmware.com>
9821 * thread.c (info_threads_command): Process arg as thread id,
9822 or list of thread ids.
9823 (thread_find_command): New command.
9824 (_initialize_thread): Document argument for info threads.
9825 Document 'thread find' command.
9826 * NEWS: Document new command "thread find".
9828 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9830 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9831 * aclocal.m4: Regenerated with aclocal-1.11.1.
9832 * common/configure: Regenerate with autoconf-2.64.
9834 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9836 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9837 bool data type to a size of one byte.
9839 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9840 Jan Kratochvil <jan.kratochvil@redhat.com>
9842 * target.c (memory_xfer_live_readonly_partial): Document where to
9843 look for interface description.
9845 2011-02-15 Yao Qi <yao@codesourcery.com>
9848 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9849 order to store PC value on stack instead of text section.
9851 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9853 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9854 the EFP register set size.
9855 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9856 data from the VMX register.
9857 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9858 and write data from/to the VMX register.
9860 2011-02-14 Michael Snyder <msnyder@vmware.com>
9862 * command.h (enum command_class): New class 'no_set_class', for
9863 "show" commands without a corresponding "set" command.
9864 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9865 * copying.c (_initialize_copying): Ditto for "show copying" and
9867 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9869 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9870 which there is no corresponding "set" command (eg. "show copying").
9872 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9873 Jan Kratochvil <jan.kratochvil@redhat.com>
9875 * exec.c (section_table_available_memory): Change `len' parameter
9877 * exec.h (section_table_available_memory): Ditto.
9878 * value.h (read_value_memory): Rename the `offset' parameter to
9881 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9882 Jan Kratochvil <jan.kratochvil@redhat.com>
9884 * memrange.c (compare_mem_ranges): Mention sort order in
9886 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9887 * tracepoint.c (traceframe_available_memory): Extend comment to
9888 mention what happens to RESULT when the target does not support
9891 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9892 Jan Kratochvil <jan.kratochvil@redhat.com>
9894 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9897 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9899 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9900 No longer handle NULL values.
9902 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9904 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9905 * value.c: Include "exceptions.h".
9906 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9908 * cp-abi.c: Include gdb_assert.h.
9909 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9910 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9912 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9913 parameters. No longer returns -1 on error.
9914 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9916 * cp-valprint.c: Include exceptions.h.
9917 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9918 the baseclass_offset. Handle unavailable base classes. Use
9919 val_print_invalid_address.
9920 * p-valprint.c: Include exceptions.h.
9921 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9922 when fetching the baseclass_offset. No longer expect
9923 baseclass_offset returning -1. Handle unavailable base classes.
9924 Use val_print_invalid_address.
9925 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9926 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9927 `embedded_offset' and `val' parameters. Adjust.
9928 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9929 parameter, and change its type to gdb_byte pointer. Add
9930 `embedded_offset' and `val' parameters. Adjust. No longer expect
9931 baseclass_offset returning -1.
9932 (value_dynamic_cast): Use value_contents_for_printing rather than
9933 value_contents. Adjust.
9934 (search_struct_field): No longer expect baseclass_offset returning
9936 (search_struct_method): If reading memory from the target is
9937 necessary, wrap it in a new value to pass to baseclass_offset. No
9938 longer expect baseclass_offset returning -1.
9939 (find_method_list): No longer expect baseclass_offset returning
9940 -1. Use value_contents_for_printing rather than value_contents.
9941 * valprint.c (val_print_invalid_address): New function.
9942 * valprint.h (val_print_invalid_address): Declare.
9943 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9944 and `val' parameters. No longer expect baseclass_offset returning
9946 * gnu-v2-abi.c: Include "exceptions.h".
9947 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9948 parameters. Handle unavailable memory. Recurse through
9949 gnuv2_baseclass_offset directly, rather than through
9950 baseclass_offset. No longer returns -1 on not found, instead
9952 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9953 `val' parameters. Adjust.
9955 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9957 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9958 almost but not quite adjacent.
9960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9962 * value.h (value_entirely_available): Declare.
9963 * value.c (value_entirely_available): New function.
9964 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9965 real type if the pointer is unavailable.
9967 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9969 * valops.c (value_repeat): Use read_value_memory instead of
9972 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9974 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9975 * value.c (value_contents_copy_raw, value_contents_copy): New
9977 (value_primitive_field): Use value_contents_copy_raw instead of
9979 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9981 (value_array, value_slice): Ditto.
9982 * valarith.c (value_subscripted_rvalue): Use
9983 value_contents_copy_raw instead of memcpy.
9985 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9987 <unavailable> references.
9989 * valops.c (get_value_at): Use value_from_contents_and_address,
9990 avoiding read_memory.
9992 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9994 * c-valprint.c (c_val_print): Print a string with unavailable
9995 contents as an array.
9997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9999 * value.h (unpack_bits_as_long): Delete declaration.
10000 (unpack_value_bits_as_long): Declare.
10001 (unpack_value_field_as_long): Declare.
10002 (value_field_bitfield): Declare.
10003 * value.c (unpack_bits_as_long): Rename to...
10004 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10005 value parameters. Return the extracted result in a new output
10006 parameter. If the value contents are unavailable, return false,
10007 otherwise return true.
10008 (unpack_value_bits_as_long): New.
10009 (unpack_field_as_long): Rename to...
10010 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10011 Add embedded_offset and value parameters. Return the extracted
10012 result in a new output parameter. If the value contents are
10013 unavailable, return false, otherwise return true.
10014 (unpack_value_field_as_long): New.
10015 (unpack_field_as_long_1): New.
10016 (unpack_field_as_long): Reimplement as wrapper around
10017 unpack_value_field_as_long_1.
10018 (value_field_bitfield): New function.
10019 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10020 unpack_value_bits_as_long. Mark the value as unavailable, if it
10022 * jv-valprint.c (java_print_value_fields): Use
10023 value_field_bitfield.
10024 * p-valprint.c (pascal_object_print_value_fields): Use
10025 value_field_bitfield.
10026 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10028 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10030 * value.c (get_internalvar_integer): Also return the int value of
10031 TYPE_CODE_INT INTERNALVAR_VALUE values.
10032 (set_internalvar): Don't special case TYPE_CODE_INT.
10034 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10036 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10037 INTERNALVAR_POINTER.
10039 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10040 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10041 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10043 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10045 * value.h (value_available_contents_eq): Declare.
10046 * value.c (find_first_range_overlap): New function.
10047 (value_available_contents_eq): New function.
10048 * valprint.c (val_print_array_elements): Use
10049 value_available_contents_eq.
10050 * ada-valprint.c (val_print_packed_array_elements): Use
10051 value_available_contents_eq.
10052 * jv-valprint.c (java_value_print): Use
10053 value_available_contents_eq.
10055 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10057 * target.c (target_read_live_memory): New function.
10058 (memory_xfer_live_readonly_partial): New.
10059 (memory_xfer_partial): If reading from a traceframe, fallback to
10060 reading unavailable read-only memory from read-only regions of
10061 live target memory.
10062 * tracepoint.c (disconnect_tracing): Adjust.
10063 (set_current_traceframe): New, factored out from
10064 set_traceframe_number.
10065 (set_traceframe_number): Reimplement to only change the traceframe
10066 number on the GDB side.
10067 (do_restore_current_traceframe_cleanup): Adjust.
10068 (make_cleanup_restore_traceframe_number): New.
10069 (cur_traceframe_number): New global.
10070 (tfile_open): Set cur_traceframe_number to no traceframe.
10071 (set_tfile_traceframe): New function.
10072 (tfile_trace_find): If looking up a traceframe using any method
10073 other than by number, make sure the current tfile traceframe
10074 matches gdb's current traceframe. Update the current tfile
10075 traceframe if the lookup succeeded.
10076 (tfile_fetch_registers, tfile_xfer_partial)
10077 (tfile_get_trace_state_variable_value): Make sure the remote
10078 traceframe matches gdb's current traceframe.
10079 * remote.c (remote_traceframe_number): New global.
10080 (remote_open_1): Set it to -1.
10081 (set_remote_traceframe): New function.
10082 (remote_fetch_registers, remote_store_registers)
10083 (remote_xfer_memory, remote_xfer_partial)
10084 (remote_get_trace_state_variable_value): Make sure the remote
10085 traceframe matches gdb's current traceframe.
10086 (remote_trace_find): If looking up a traceframe using any method
10087 other than by number, make sure the current remote traceframe
10088 matches gdb's current traceframe. Update the current remote
10089 traceframe if the lookup succeeded.
10090 * infrun.c (fetch_inferior_event): Adjust.
10091 * tracepoint.h (set_current_traceframe): Declare.
10092 (get_traceframe_number, set_traceframe_number): Add describing
10095 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10097 Mark pieces of values as unavailable if the corresponding memory
10100 * valops.c: Include tracepoint.h.
10101 (value_fetch_lazy): Use read_value_memory.
10102 (read_value_memory): New.
10103 * value.h (read_value_memory): Declare.
10104 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10105 * exec.c (section_table_available_memory): New function.
10106 * exec.h (section_table_available_memory): Declare.
10108 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10110 * Makefile.in (SFILES): Add memrange.c.
10111 (HFILES_NO_SRCDIR): Add memrange.h.
10112 (COMMON_OBS): Add memrange.o.
10113 * memrange.c: New file.
10114 * memrange.h: New file.
10115 * tracepoint.c: Include memrange.h.
10116 (struct mem_range): Delete.
10117 (mem_range_s): Delete.
10118 (traceframe_available_memory): New function.
10119 * tracepoint.h (traceframe_available_memory): Declare.
10121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10123 * target.h (struct traceframe_info): Forward declare.
10124 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10125 (struct target_ops) <to_traceframe_info>: New field.
10126 (target_traceframe_info): New.
10127 * target.c (update_current_target): Inherit and default
10128 to_traceframe_info.
10129 * remote.c (PACKET_qXfer_traceframe_info): New.
10130 (remote_protocol_features): Register qXfer:traceframe-info:read.
10131 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10132 (remote_traceframe_info): New.
10133 (init_remote_ops): Install it.
10134 (_initialize_remote): Install "set/show remote traceframe-info"
10136 * tracepoint.h (parse_traceframe_info): Declare.
10137 * tracepoint.c (struct mem_range): New.
10138 (mem_range_s): New typedef.
10139 (struct traceframe_info): New.
10140 (traceframe_info): New global.
10141 (free_traceframe_info): New function.
10142 (clear_traceframe_info): New function.
10143 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10145 (build_traceframe_info): New function.
10146 (tfile_traceframe_info): New function.
10147 (init_tfile_ops): Install tfile_traceframe_info.
10148 (traceframe_info_start_memory, free_result): New functions.
10149 (memory_attributes, traceframe_info_elements): New globals.
10150 (parse_traceframe_info, get_traceframe_info): New functions.
10151 * features/traceframe-info.dtd: New file.
10152 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10154 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10156 Base support for <unavailable> value contents.
10158 * value.h (value_bytes_available): Declare.
10159 (mark_value_bytes_unavailable): Declare.
10160 * value.c (struct range): New struct.
10161 (range_s): New typedef.
10162 (ranges_overlap): New function.
10163 (range_lessthan): New function.
10164 (ranges_contain_p): New function.
10165 (struct value) <unavailable>: New field.
10166 (value_bytes_available): New function.
10167 (mark_value_bytes_unavailable): New function.
10168 (require_not_optimized_out): Constify parameter.
10169 (require_available): New function.
10170 (value_contents_all, value_contents): Require all bytes be
10172 (value_free): Free `unavailable'.
10173 (value_copy): Copy `unavailable'.
10174 * valprint.h (val_print_unavailable): Declare.
10175 * valprint.c (valprint_check_validity): Rename `offset' parameter
10176 to `embedded_offset'. If printing a scalar, check whether the
10177 value chunk is available.
10178 (val_print_unavailable): New.
10179 (val_print_scalar_formatted): Check whether the value is
10181 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10182 pretty-printing unavailable values.
10184 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10186 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10187 * c-typeprint.c (c_type_print_args): Update the function comment. New
10188 variable param_type, initialize it. Remove const/volatile qualifiers
10189 for language_cplus and !show_artificial. Use param_type.
10191 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10193 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10194 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10195 * symtab.h (struct symtab) <next>: Comment extension.
10197 2011-02-12 Yao Qi <yao@codesourcery.com>
10199 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10201 2011-02-11 Yao Qi <yao@codesourcery.com>
10203 * common/Makefile.in: Add copyright header.
10205 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10207 * infrun.c (proceed): Move switching out and in of tfind mode from
10209 (fetch_inferior_event): ... to here.
10211 2011-02-11 Yao Qi <yao@codesourcery.com>
10213 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10215 * configure.ac: Add common to sub dir.
10216 * configure: Regenerate.
10218 2011-02-11 Yao Qi <yao@codesourcery.com>
10222 * common/Makefile.in: New.
10223 * common/configure.ac: New.
10224 * common/aclocal.m4: New.
10225 * common/configure: Generate.
10227 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10229 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10230 side of the parenthesis.
10233 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10234 * vec.h (VEC_block_remove): Fix comment.
10236 2011-02-08 Michael Snyder <msnyder@vmware.com>
10238 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10240 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10242 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10243 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10246 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10249 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10251 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10252 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10254 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10256 * dwarf2read.c (read_subroutine_type): Set special calling
10257 convention flag for functions compiled by IBM XL C for OpenCL.
10258 * ppc-sysv-tdep.c: Include "dwarf2.h"
10259 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10260 calling convention.
10261 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10262 IBM OpenCL vector types calling convention.
10263 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10264 (ppc_sysv_abi_broken_return_value): Likewise.
10265 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10266 types calling convention.
10267 (ppc64_sysv_abi_return_value): Likewise.
10268 * spu-tdep.c: Include "dwarf2.h"
10269 (spu_return_value): Implement IBM OpenCL vector types calling
10272 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10274 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10275 correct ABI for AltiVec vector arguments.
10277 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10279 * valprint.c (val_print): Extend comment.
10280 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10281 interface explanation to val_print.
10282 (ada_val_print_array): Adjust comment to current interface.
10283 (print_field_values): Adjust comment to current interface.
10284 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10285 explanation to val_print.
10286 * f-valprint.c (f_val_print): Ditto.
10287 * jv-valprint.c (java_val_print): Ditto.
10288 * m2-valprint.c (m2_val_print): Ditto.
10289 * p-valprint.c (pascal_val_print): Ditto.
10291 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10293 * breakpoint.c (parse_breakpoint_sals): Fix description.
10295 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10296 Oguz Kayral <oguzkayral@gmail.com>
10298 * python/py-inferior.c (python_on_normal_stop): New function.
10299 (python_on_resume): New function.
10300 (python_inferior_exit): New function.
10301 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10302 inferior_exit observers.
10303 * python/py-evtregistry.c: New file.
10304 * python/py-threadevent.c : New file.
10305 * python/py-event.c: New file.
10306 * python/py-evts.c: New file.
10307 * python/py-continueevent.c: New file.
10308 * python/py-bpevent.c: New file.
10309 * python/py-signalevent.c: New file.
10310 * python/py-exetiedevent.c: New file.
10311 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10312 Move struct breakpoint_object from here...
10313 * python/python-internal.h: ... to here.
10314 * python/py-event.h: New file.
10315 * python/py-events.h: New file.
10316 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10317 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10318 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10319 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10320 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10321 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10322 Add build rules for all the above.
10324 2011-02-04 Tom Tromey <tromey@redhat.com>
10326 * dwarf2read.c (dwarf2_section_empty_p): New function.
10327 (dwarf2_read_section): Use dwarf2_section_empty_p.
10328 (dwarf2_section_size): New function.
10329 (dwarf2_get_section_info): Unconditionally read section.
10330 (dwarf2_read_index): Use dwarf2_section_empty_p.
10331 (partial_read_comp_unit_head): Use dwarf2_section_size.
10332 (dwarf2_symbol_mark_computed): Likewise.
10334 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10336 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10338 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10340 * mips-linux-tdep.c: Include xml-syscall.h.
10341 (mips_linux_get_syscall_number): New function.
10342 (mips_linux_init_abi): Add calls to
10343 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10344 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10345 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10346 * syscalls/mips-n32-linux.xml: New file.
10347 * syscalls/mips-n64-linux.xml: New file.
10348 * syscalls/mips-o32-linux.xml: New file.
10350 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10352 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10353 Complain about inverted range entries.
10354 (dwarf2_record_block_ranges): Likewise.
10356 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10359 * breakpoint.c (update_watchpoint): Fix name of the
10360 update_global_location_list function.
10361 (print_one_breakpoint): Fix typo.
10362 (_initialize_breakpoint): Remove extra space in hbreak help
10364 * breakpoint.h (struct bp_location) <length>: Fix field
10367 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10369 * regcache.c (registers_changed_ptid): Don't explictly always
10370 clear `current_regcache'. Only clear current_thread_ptid and
10371 current_thread_arch when PTID matches. Only reinit the frame
10372 cache if PTID matches the current inferior_ptid. Move alloca(0)
10374 (registers_changed): ... here.
10376 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10378 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10379 starts with __stack_chk_guard as stack guard symbol.
10381 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10383 * disasm.c (compare_lines): Handle the end of sequence markers
10384 within the line table to better support disassembling over
10385 compilation unit boundaries.
10387 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10389 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10390 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10391 implementation even if no symbols are available.
10392 (thumb_analyze_prologue): Update call to skip_prologue_function.
10393 (arm_analyze_prologue): Likewise.
10395 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10397 * arm-tdep.c: Include "observer.h".
10398 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10399 (arm_exidx_data_key): New static variable.
10400 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10401 (struct arm_exidx_data): Likewise.
10402 (arm_exidx_data_free): New function.
10403 (arm_compare_exidx_entries): Likewise.
10404 (arm_obj_section_from_vma): Likewise.
10405 (arm_exidx_new_objfile): Likewise.
10406 (arm_find_exidx_entry): Likewise.
10407 (arm_exidx_fill_cache): Likewise.
10408 (arm_exidx_unwind_sniffer): Likewise.
10409 (arm_exidx_unwind): New global variable.
10410 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10411 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10412 observer. Register arm_exidx_data_key as objfile data.
10414 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10416 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10417 due to accessing uninitialized variable. Fix indentation.
10419 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10421 * c-valprint.c (c_value_print): When doing virtual base pointer
10422 adjustment, create a new value with adjusted contents rather than
10423 changing the contents of the value being printed (and getting it
10426 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10428 * xml-support.c (xml_find_attribute): New.
10429 (xinclude_start_include): Use it.
10430 * xml-support.h (xml_find_attribute): Declare.
10431 * memory-map.c (memory_map_start_memory)
10432 (memory_map_start_property): Use xml_find_attribute.
10433 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10434 xml_find_attribute.
10435 * remote.c (start_thread): Use xml_find_attribute.
10436 * solib-target.c (library_list_start_segment)
10437 (library_list_start_section, library_list_start_library)
10438 (library_list_start_list): Use xml_find_attribute.
10439 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10440 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10441 (tdesc_start_field): Use xml_find_attribute.
10443 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10445 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10446 (BUILD_OCL_VTYPES): Update.
10448 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10450 * configure.ac: Work around non-GNU sed limitation when computing
10451 python version number.
10452 * configure: Regenerate.
10454 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10456 Fix debug printing of TYPE_INSTANCE.
10457 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10458 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10460 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10462 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10463 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10464 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10465 * ada-operator.inc: Rename the file to ...
10466 * ada-operator.def: ... here, wrap all the entries by macro OP.
10467 * expprint.c (op_name_standard): Remove all the entries. Include
10468 "std-operator.def" instead.
10469 * expression.h (enum exp_opcode): Include "std-operator.def" and
10470 "ada-operator.def". Move all the entries ...
10471 * std-operator.def: ... here, wrap all the entries by macro OP.
10473 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10475 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10476 * breakpoint.c (remove_jit_event_breakpoints): New function.
10477 * jit.c (jit_descriptor_addr): Delete.
10478 (registering_code): Delete.
10479 (clear_int): Delete.
10480 (jit_inferior_data): New variable.
10481 (struct jit_inferior_data): New type.
10482 (get_jit_inferior_data): New function.
10483 (jit_inferior_data_cleanup): New function.
10484 (jit_read_descriptor): Adjust.
10485 (jit_register_code): Adjust.
10486 (jit_breakpoint_re_set_internal): New function; move code here ...
10487 (jit_inferior_init): ... from here.
10488 (jit_breakpoint_re_set): Adjust.
10489 (jit_reset_inferior_data_and_breakpoints): New function.
10490 (jit_inferior_created_observer): Adjust.
10491 (jit_inferior_exit_hook): Adjust.
10492 (jit_executable_changed_observer): New function.
10493 (jit_event_handler): Adjust.
10494 (_initialize_jit): Adjust.
10496 2011-01-31 Michael Snyder <msnyder@vmware.com>
10498 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10501 2011-01-31 Tom Tromey <tromey@redhat.com>
10504 * python/python.c (execute_gdb_command): Call
10505 prevent_dont_repeat.
10506 * top.c (suppress_dont_repeat): New global.
10507 (dont_repeat): Use it.
10508 (prevent_dont_repeat): New function.
10509 * command.h (prevent_dont_repeat): Declare.
10511 2011-01-31 Tom Tromey <tromey@redhat.com>
10513 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10514 * python/py-breakpoint.c (bppy_set_silent): Use
10515 breakpoint_set_silent.
10516 (bppy_set_thread): Use breakpoint_set_thread.
10517 (bppy_set_task): Use breakpoint_set_task.
10518 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10519 (breakpoint_set_task): Declare.
10520 (make_breakpoint_silent): Remove.
10521 * breakpoint.c (breakpoint_set_silent): New function.
10522 (breakpoint_set_thread): Likewise.
10523 (breakpoint_set_task): Likewise.
10524 (make_breakpoint_silent): Remove.
10526 2011-01-31 Tom Tromey <tromey@redhat.com>
10528 * breakpoint.h (user_breakpoint_p): Declare.
10529 * breakpoint.c (user_breakpoint_p): New function.
10530 (breakpoint_1): Use it.
10531 (save_breakpoints): Likewise.
10533 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10535 * configure.ac: Add handling of Python distribution on Windows.
10536 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10537 sysconfig variables are not defined, then do not use them.
10538 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10539 instead. On Windows, return all paths using forward-slashes
10540 rather than backslashes.
10542 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10544 * configure.ac: Remove fallback behavior for building
10545 against Python. Remove tweaking of Python include path.
10546 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10547 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10548 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10549 Always restore CPPFLAGS and LIBS after linking test.
10550 * configure: Regenerated.
10551 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10552 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10553 * python/python-internal.h: Adjust includes of Python .h files.
10555 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10557 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10560 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10562 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10565 2011-01-31 Yao Qi <yao@codesourcery.com>
10567 * arm-linux-nat.c: Update calls to regcache_register_status
10568 instead of regcache_valid_p.
10569 * aix-thread.c: Likewise.
10570 * i386gnu-nat.c: Likewise.
10572 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10575 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10576 touching TYPE_FIELD_ARTIFICIAL.
10578 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10580 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10583 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10585 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10586 selected, don't try iterating over the traceframe's blocks.
10587 (tfile_has_stack): If there's no traceframe selected, then there's
10589 (tfile_has_registers): If there's no traceframe selected, then
10590 there's no registers.
10592 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10594 * target.c (memory_xfer_partial): No need to restore shadows if we
10595 haven't read anything.
10597 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10599 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10600 and val_print_scalar_formatted.
10602 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10604 * tracepoint.c (tfile_read): New.
10605 (tfile_open): Use it.
10606 (tfile_get_traceframe_address): Use it.
10607 (tfile_trace_find): Use it.
10608 (walk_blocks_callback_func): New typedef.
10609 (match_blocktype): New function.
10610 (traceframe_walk_blocks): New function.
10611 (traceframe_find_block_type): New function.
10612 (tfile_fetch_registers, tfile_xfer_partial)
10613 (tfile_get_trace_state_variable_value): Use
10614 traceframe_find_block_type and tfile_read.
10616 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10618 * remote-mips.c: Add internationalization mark ups. Remove
10619 trailing \n from already marked up strings.
10621 2011-01-26 Tom Tromey <tromey@redhat.com>
10623 * python/py-prettyprint.c (print_string_repr): Clear
10624 'addressprint' option when calling val_print_string.
10625 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10626 option when calling val_print_string.
10628 2011-01-26 Tom Tromey <tromey@redhat.com>
10630 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10632 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10634 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10635 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10636 (gdb_py_long_as_ulongest): New defines.
10637 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10638 (gdb_py_int_as_long): Declare.
10639 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10640 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10641 (valpy_long): Add comment.
10642 * python/py-utils.c (get_addr_from_python): Use
10643 gdb_py_long_as_ulongest. Handle overflow properly.
10644 (gdb_py_object_from_longest): New function.
10645 (gdb_py_object_from_ulongest): Likewise.
10646 (gdb_py_int_as_long): Likewise.
10647 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10648 * python/py-symtab.c (salpy_get_pc): Use
10649 gdb_py_long_from_ulongest.
10650 (salpy_get_line): Use PyInt_FromLong.
10651 * python/py-param.c (set_parameter_value): Use
10652 gdb_py_int_as_long.
10653 * python/py-lazy-string.c (stpy_get_address): Use
10654 gdb_py_long_from_ulongest.
10655 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10656 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10657 * python/py-breakpoint.c (bppy_set_thread): Use
10658 gdb_py_int_as_long.
10659 (bppy_set_task): Likewise.
10660 (bppy_set_ignore_count): Likewise.
10661 (bppy_set_hit_count): Likewise.
10662 * python/py-block.c (blpy_get_start): Use
10663 gdb_py_object_from_ulongest.
10664 (blpy_get_end): Likewise.
10665 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10667 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10670 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10671 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10672 equality test for objfile, initialize addr_low if needed.
10674 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10676 * tui/tui-regs.c (tui_register_format): Remove dead code.
10678 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10680 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10681 instead of print_scalar_formatted.
10682 (print_scalar_formatted): Don't handle 's' format strings here,
10683 and add an assertion that we never see such format here.
10684 * valprint.h (val_print_scalar_formatted): Declare.
10685 * valprint.c (val_print_scalar_formatted): New.
10686 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10687 instead of print_scalar_formatted.
10688 * jv-valprint.c (java_val_print): Ditto.
10689 * p-valprint.c (pascal_val_print): Ditto.
10690 * ada-valprint.c (ada_val_print_1): Ditto.
10691 * f-valprint.c (f_val_print): Ditto.
10692 * infcmd.c (registers_info): Ditto.
10693 * m2-valprint.c (m2_val_print): Ditto.
10695 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10697 * m2-valprint.c (print_unbounded_array): Pass
10698 value_contents_for_printing rather than value_contents, to
10699 m2_print_array_contents. Also pass in the value.
10701 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10703 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10704 (save_gdb_index_command): Switch to .gdb_index version 4.
10706 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10708 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10709 than frame_register, and always pass a valid value to val_print.
10711 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10713 Centralize printing "<optimized out>".
10715 * valprint.h (val_print_optimized_out): Declare.
10716 * cp-valprint.c (cp_print_value_fields): Use
10717 val_print_optimized_out.
10718 * jv-valprint.c (java_print_value_fields): Ditto.
10719 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10720 * printcmd.c (print_formatted): Ditto.
10721 * valprint.c (valprint_check_validity): Ditto.
10722 (value_check_printable): Ditto.
10723 (val_print_optimized_out): New.
10725 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10727 * infcmd.c (default_print_registers_info): Allocate values so to
10728 never pass a NULL value to val_print.
10730 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10732 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10733 boolean. Make sure to always pass a value that matches the
10734 contents buffer to callees. Preserve `address' for following
10736 * value.c (value_contents_for_printing_const): New.
10737 (value_address): Constify value argument.
10738 * value.h (value_contents_for_printing_const): Declare.
10739 (value_address): Constify value argument.
10741 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10743 * regcache.c (struct regcache_descr): Rename
10744 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10745 and sizeof_cooked_register_valid_p to
10746 sizeof_cooked_register_status.
10747 (init_regcache_descr): Adjust.
10748 (struct regcache): Rename register_valid_p field to
10750 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10751 (do_cooked_read): Adjust.
10752 (regcache_valid_p): Rename to ...
10753 (regcache_register_status): ... this. Adjust.
10754 (regcache_invalidate): Adjust.
10755 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10757 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10758 as unavailable, not valid.
10759 (regcache_dump): Adjust.
10760 * regcache.h (enum register_status): New.
10761 (regcache_register_status): Declare.
10762 (regcache_invalidate): Delete declaration.
10763 * corelow.c (get_core_registers): Adjust.
10764 * tracepoint.c (tfile_fetch_registers): Adjust.
10765 * trad-frame.c (REG_VALUE): Rename to ...
10766 (TF_REG_VALUE): ... this.
10767 (REG_UNKNOWN): Rename to ...
10768 (TF_REG_UNKNOWN): ... this.
10769 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10770 * mi/mi-main.c (register_changed_p): Adjust.
10772 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10774 * regcache.c (struct regcache_descr): Remove outdated comment.
10775 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10777 (regcache_xmalloc): Rename to ...
10778 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10779 Allocate the regcache type accordingly.
10780 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10781 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10782 cooked registers, not raw.
10783 (regcache_dup_no_passthrough): Delete.
10784 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10785 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10786 mention obsolete write_register_bytes.
10787 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10789 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10791 Stop remote_read_bytes from handling partial reads itself.
10793 * remote-fileio.c: Include target.h.
10794 (remote_fileio_write_bytes): Delete.
10795 (remote_fileio_func_open, remote_fileio_func_write)
10796 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10797 target_read_memory.
10798 (remote_fileio_func_stat): Use target_read_memory and
10799 target_write_memory.
10800 (remote_fileio_func_gettimeofday): Use target_write_memory.
10801 (remote_fileio_func_system): Use target_read_memory.
10802 * remote.c (remote_write_bytes): Make it static.
10803 (remote_read_bytes): Don't handle partial reads here.
10804 * remote.h (remote_read_bytes): Delete declaration.
10806 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10808 Simplify XML parsing a bit.
10810 * xml-support.h (gdb_xml_parse_quick): Declare.
10811 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10812 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10814 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10815 gdb_xml_create_parser_and_cleanup_1.
10816 (gdb_xml_parse_quick): New.
10817 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10818 * osdata.c (osdata_parse): Ditto.
10819 * remote.c (remote_threads_info): Ditto.
10820 * solib-target.c (solib_target_parse_libraries): Ditto.
10821 * xml-syscall.c (syscall_parse_xml): Ditto.
10822 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10824 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10826 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10827 with remote-mips.o added to gdb_target_obs.
10828 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10830 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10832 * ada-valprint.c (val_print_packed_array_elements): Pass the
10833 correct struct value to val_print.
10834 (ada_val_print_1): Ditto.
10836 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10838 Don't lose embedded_offset in printing routines throughout.
10840 * valprint.h (val_print_array_elements): Change prototype.
10841 * valprint.c (val_print_array_elements): Add `embedded_offset'
10842 parameter, and adjust to pass it down to val_print, while passing
10843 `valaddr' or `address' unmodified. Take embedded_offset into
10844 account when checking repetitions.
10845 * c-valprint.c (c_val_print): Pass embedded_offset to
10846 val_print_array_elements instead of adjusting `valaddr' and
10848 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10849 embedded_offset to val_print_array_elements instead of adjusting
10851 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10852 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10853 val_print_array_elements and pascal_object_print_value_fields
10854 instead of adjusting `valaddr'.
10855 (pascal_object_print_value_fields): Add `offset' parameter, and
10857 (pascal_object_print_value): Add `offset' parameter, and adjust to
10859 (pascal_object_print_static_field): Use
10860 value_contents_for_printing/value_embedded_offset, rather than
10862 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10863 parameter, and adjust to use it. Use
10864 value_contents_for_printing/value_embedded_offset, rather than
10866 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10867 (ada_val_print_array): Add `offset' parameter, and adjust to use
10869 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10870 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10871 Instead work with offsets. Use
10872 value_contents_for_printing/value_embedded_offset, rather than
10873 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10874 and use value_from_pointer to extract a target pointer, rather
10875 than value_from_longest.
10876 (print_variant_part): Add `offset' parameter. Replace
10877 `outer_valaddr' parameter by a new `outer_offset' parameter.
10878 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10879 (ada_value_print): Use
10880 value_contents_for_printing/value_embedded_offset, rather than
10882 (print_record): Add `offset' parameter, and adjust to pass it
10884 (print_field_values): Add `offset' parameter. Replace
10885 `outer_valaddr' parameter by a new `outer_offset' parameter.
10886 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10887 Use value_contents_for_printing/value_embedded_offset, rather than
10889 * d-valprint.c (dynamic_array_type): Use
10890 value_contents_for_printing/value_embedded_offset, rather than
10892 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10893 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10894 (java_print_value_fields): Take `offset' into account. Don't
10895 re-adjust `valaddr'. Instead pass down adjusted offsets.
10896 (java_val_print): Take `embedded_offset' into account. Pass it to
10897 java_print_value_fields.
10898 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10899 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10900 down adjusted offsets.
10901 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10902 (f_val_print): Take `embedded_offset' into account.
10904 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10906 * inflow.c: Include "gdbcmd.h".
10907 (interactive_mode): New static global, moved here from top.c.
10908 (show_interactive_mode): New function, moved here from top.c.
10909 use gdb_has_a_terminal instead of input_from_terminal_p to
10910 determine the current mode.
10911 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10913 (_initialize_inflow): Add the "set/show interactive-mode"
10914 commands. Moved here from top.c, after having adjusted slightly
10916 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10918 (input_from_terminal_p): Remove handling of "interactive-mode"
10919 setting, moved to infow.c.
10920 (init_main): Remove creation of the "set/show interactive-mode"
10921 commands, moved to inflow.c.
10923 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10925 * NEWS: Add entry for native ia64-hpux support.
10927 2011-01-19 Tom Tromey <tromey@redhat.com>
10930 * thread.c (free_thread): Free 'name'.
10931 (print_thread_info): Emit thread name. Change CLI output.
10932 (thread_name_command): New function.
10933 (do_captured_thread_select): Emit newline.
10934 (_initialize_thread): Register 'thread name' command.
10935 * target.h (struct target_ops) <to_thread_name>: New field.
10936 (target_thread_name): New macro.
10937 * target.c (update_current_target): Handle to_thread_name.
10938 * python/py-infthread.c (thpy_get_name): New function.
10939 (thpy_set_name): Likewise.
10940 (thread_object_getset): Add "name".
10941 * linux-nat.c (linux_nat_thread_name): New function.
10942 (linux_nat_add_target): Set to_thread_name.
10943 * gdbthread.h (struct thread_info) <name>: New field.
10945 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10947 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10948 (ada_val_print_1): Likewise.
10950 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10952 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10953 upper limit address is not greater than the function end address
10954 when the upper limit could not be computed using the debugging
10957 2011-01-17 Tom Tromey <tromey@redhat.com>
10959 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10961 * utils.c: Include gdb_regex.h.
10962 (do_regfree_cleanup): New function.
10963 (make_regfree_cleanup): Likewise.
10964 (get_regcomp_error): Likewise.
10965 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10967 2011-01-17 Tom Tromey <tromey@redhat.com>
10969 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10970 re_compile_fastmap.
10972 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10974 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10975 for internal variables.
10976 (last_was_structop): New static variable.
10977 (COMPLETE): New token.
10978 (field_exp): New rule to group all '.' suffix handling.
10979 Add mark_struct_expression calls when approriate to be able
10980 to correctly find fields for completion.
10981 (yylex): Adapt to handle field completion and set INTVAR when
10984 2011-01-14 Yao Qi <yao@codesourcery.com>
10986 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10987 save_reggroup, restore_reggroup and all_reggroup.
10989 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10991 * ada-valprint. (ada_printchar): Use the correct type length
10992 in call to ada_emit_char.
10993 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10995 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10997 * solib-som.h (hpux_major_release): Declare variable here.
10998 * solib-som.c: Remove <sys/utsname.h> header.
10999 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11000 (hpux_major_release): Make global, change default value to
11001 DEFAULT_HPUX_MAJOR_RELEASE.
11002 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11003 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11004 Add "solib-som.h" header.
11005 (set_hpux_major_release): New function.
11006 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11008 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11010 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11012 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11014 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11015 new-line at end of warning message.
11016 (ia64_hpux_store_register): Remove trailing new-line at end of
11018 * ia64-hpux-tdep.c: Rephrase comment.
11019 * solib-ia64-hpux.c (struct dld_info): Change type of field
11020 dld_flags from "long long" to ULONGEST.
11022 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11024 * target.h (deprecated_child_ops): Delete declaration.
11025 * target.c (deprecated_child_ops): Delete definition.
11027 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11029 * Makefile.in (hpux-thread.o): Delete rule.
11030 * configure.ac: Don't check for HPUX DCE threads support.
11031 * configure, config.in: Regenerate.
11032 * hppa-hpux-nat.c (child_suppress_run): Delete.
11033 (hppa_hpux_child_can_run): Delete.
11034 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11035 * hpux-thread.c: Delete.
11037 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11039 * hpux-thread.c (hpux_pid_to_str): Delete.
11041 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11043 * ada-valprint.c (ada_emit_char): Remove strange code.
11044 Check that c is <= UCHAR_MAX before passing it to isascii.
11045 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11047 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11049 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11050 to the case where instream is stdin.
11052 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11054 * ia64-tdep.h (struct regcache): Forward declare.
11055 (struct ia64_infcall_ops): New struct type.
11056 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11058 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11059 Renames ia64_find_global_pointer.
11060 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11061 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11062 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11064 (ia64_infcall_ops): New static global constant.
11065 (ia64_gdbarch_init): Set tdep->infcall_ops.
11066 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11067 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11068 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11069 (ia64_hpux_dummy_code): New static global constant.
11070 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11071 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11072 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11074 (ia64_hpux_infcall_ops): New static global constant.
11075 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11076 for inferior function calls to work properly on ia64-hpux.
11078 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11080 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11081 * ia64-tdep.h (struct frame_info): forward declaration.
11082 (struct gdbarch_tdep): Add field size_of_register_frame.
11083 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11084 to determine the size of the register frame.
11085 (ia64_size_of_register_frame): New function.
11086 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11087 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11088 (IA64_HPUX_UREG_REASON): New macro.
11089 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11091 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11092 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11093 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11096 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11098 Add support for ia64-hpux.
11099 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11100 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11102 * configure.host: Add handling for ia64-hpux hosts. Add associated
11104 * configure.tgt: Add handling for ia64-hpux targets.
11105 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11106 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11107 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11109 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11111 [ttrace] Compute thread list immediately after attach.
11112 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11114 (inf_ttrace_attach): Use it.
11116 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11118 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11119 if we could not determine the frame's function address. Instead,
11120 use the frame's PC, and then continue.
11122 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11124 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11125 not already defined.
11127 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11129 * ia64-tdep.c (ia64_struct_type_p): New function.
11130 (ia64_extract_return_value): Handle integral values that are
11131 less than 8 bytes long.
11132 (ia64_push_dummy_call): Likewise.
11134 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11136 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11137 floatformat_ia64_ext.
11138 (floatformat_ia64_ext_big): New static const.
11139 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11141 2011-01-12 Tom Tromey <tromey@redhat.com>
11143 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11145 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11146 (mi_cmd_thread_list_ids): Likewise.
11147 (mi_cmd_data_list_changed_registers): Likewise.
11148 (mi_cmd_data_list_register_values): Likewise.
11149 (mi_cmd_data_write_register_values): Likewise.
11150 (mi_cmd_data_evaluate_expression): Likewise.
11151 (mi_cmd_data_read_memory): Likewise.
11152 (mi_cmd_data_read_memory_bytes): Likewise.
11153 (mi_cmd_data_write_memory): Likewise.
11154 (mi_cmd_enable_timings): Likewise.
11155 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11156 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11157 (mi_cmd_var_delete): Likewise.
11158 (mi_cmd_var_set_format): Likewise.
11159 (mi_cmd_var_show_format): Likewise.
11160 (mi_cmd_var_info_num_children): Likewise.
11161 (mi_cmd_var_list_children): Likewise.
11162 (mi_cmd_var_info_type): Likewise.
11163 (mi_cmd_var_info_expression): Likewise.
11164 (mi_cmd_var_show_attributes): Likewise.
11165 (mi_cmd_var_assign): Likewise.
11166 (mi_cmd_var_update): Likewise.
11167 (mi_cmd_enable_pretty_printing): Likewise.
11168 (mi_cmd_var_set_update_range): Likewise.
11169 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11171 (mi_cmd_target_file_put): Likewise.
11172 (mi_cmd_target_file_delete): Likewise.
11173 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11175 (mi_cmd_stack_info_depth): Likewise.
11176 (mi_cmd_stack_list_locals): Likewise.
11177 (mi_cmd_stack_list_args): Likewise.
11178 (mi_cmd_stack_select_frame): Likewise.
11179 (mi_cmd_stack_select_frame): Likewise.
11180 (mi_cmd_stack_info_frame): Likewise.
11181 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11183 (mi_cmd_file_list_exec_source_files): Likewise.
11184 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11185 (mi_cmd_env_cd): Likewise.
11186 (mi_cmd_env_path): Likewise.
11187 (mi_cmd_env_dir): Likewise.
11188 (mi_cmd_inferior_tty_show): Likewise.
11189 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11190 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11191 (mi_cmd_break_watch): Likewise.
11193 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11195 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11196 (ppc_linux_insert_hw_breakpoint): Likewise.
11197 (ppc_linux_remove_hw_breakpoint): Likewise.
11198 (ppc_linux_insert_watchpoint): Likewise.
11200 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11201 Jan Kratochvil <jan.kratochvil@redhat.com>
11203 PR fortran/11104 and DWARF unbound arrays detection.
11204 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11205 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11206 unspecified upper bound.
11207 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11208 variables array_size_array, tmp_type and offset_item. New variable
11209 array. Remove call to f77_get_upperbound. New variables array_type
11210 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11211 the final call to deprecated_set_value_type.
11213 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11215 Make value allocations more lazy.
11216 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11217 instead of allocate_value and set_value_lazy when possible.
11218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11219 instead of allocate_value and set_value_lazy.
11220 * findvar.c (value_of_register_lazy): Likewise.
11221 (read_var_value): Remove V preallocation, call just check_typedef in
11222 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11223 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11224 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11225 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11226 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11227 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11228 the end, remove set_value_lazy there.
11229 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11230 instead of allocate_value and set_value_lazy when possible.
11231 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11232 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11233 of allocate_value and set_value_lazy.
11234 (value_from_contents_and_address): Use allocate_value_lazy instead of
11235 allocate_value and set_value_lazy when possible.
11237 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11239 * disasm.c (dump_insns): Support dumping opcodes for MI.
11240 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11241 dumping of instruction opcodes.
11243 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11245 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11248 2011-01-11 Tom Tromey <tromey@redhat.com>
11250 * thread.c (do_captured_thread_select): Emit newline before
11253 2011-01-11 Michael Snyder <msnyder@vmware.com>
11255 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11256 * score-tdep.c: Ditto.
11257 * score-tdep.h: Ditto.
11258 * ser-base.c: Ditto.
11259 * ser-go32.c: Ditto.
11262 * ser-mingw.c: Ditto.
11263 * ser-pipe.c: Ditto.
11264 * ser-tcp.c: Ditto.
11265 * ser-unix.c: Ditto.
11266 * sh64-tdep.c: Ditto.
11267 * shnbsd-nat.c: Ditto.
11268 * sh-tdep.c: Ditto.
11269 * sh-tdep.h: Ditto.
11271 * solib-darwin.c: Ditto.
11272 * solib-frv.c: Ditto.
11274 * solib-irix.c: Ditto.
11275 * solib-osf.c: Ditto.
11276 * solib-pa64.c: Ditto.
11277 * solib-som.c: Ditto.
11278 * solib-spu.c: Ditto.
11279 * solib-sunos.c: Ditto.
11280 * solib-svr4.c: Ditto.
11282 * sol-thread.c: Ditto.
11283 * somread.c: Ditto.
11286 * sparc64-linux-tdep.c: Ditto.
11287 * sparc64-tdep.c: Ditto.
11288 * sparc-linux-nat.c: Ditto.
11289 * sparc-linux-tdep.c: Ditto.
11290 * sparc-sol2-nat.c: Ditto.
11291 * sparc-sol2-tdep.c: Ditto.
11292 * sparc-tdep.c: Ditto.
11293 * sparc-tdep.h: Ditto.
11294 * spu-tdep.c: Ditto.
11295 * stabsread.c: Ditto.
11296 * stabsread.h: Ditto.
11298 * symfile.c: Ditto.
11299 * symfile.h: Ditto.
11300 * symmisc.c: Ditto.
11304 * target-descriptions.c: Ditto.
11305 * target-descriptions.h: Ditto.
11307 * target-memory.c: Ditto.
11308 * terminal.h: Ditto.
11311 * tracepoint.c: Ditto.
11312 * tracepoint.h: Ditto.
11313 * trad-frame.h: Ditto.
11314 * typeprint.c: Ditto.
11316 2011-01-11 Michael Snyder <msnyder@vmware.com>
11318 * ui-file.c: Comment cleanup, mostly periods and spaces.
11319 * ui-file.h: Ditto.
11323 * v850-tdep.c: Ditto.
11324 * valarith.c: Ditto.
11326 * valprint.c: Ditto.
11327 * valprint.h: Ditto.
11332 * vax-tdep.c: Ditto.
11335 * version.h: Ditto.
11336 * windows-nat.c: Ditto.
11337 * windows-tdep.c: Ditto.
11338 * xcoffread.c: Ditto.
11339 * xcoffsolib.c: Ditto.
11340 * xml-support.c: Ditto.
11341 * xstormy16-tdep.c: Ditto.
11342 * xtensa-tdep.c: Ditto.
11343 * xtensa-tdep.h: Ditto.
11345 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11347 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11348 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11350 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11351 Thiago Jung Bauermann <bauerman@br.ibm.com>
11353 Implement support for PowerPC BookE ranged watchpoints.
11355 (struct breakpoint_ops) <resources_needed>: New method.
11356 Initialize to NULL in all existing breakpoint_ops instances.
11357 (struct breakpoint) <exact>: New field.
11358 (target_exact_watchpoints): Declare external global.
11359 * breakpoint.c (target_exact_watchpoints): New global flag.
11360 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11361 b->enable_state to bp_enabled before calling
11362 hw_watchpoint_used_count.
11363 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11364 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11366 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11367 if the watchpoint is exact.
11368 (resources_needed_watchpoint): New function.
11369 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11370 (watch_command_1): Set b->exact if the user asked for an exact
11371 watchpoint and one can be set.
11372 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11373 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11374 the user asks for an exact watchpoint and one can be set. Return
11375 number of needed debug registers to watch the expression.
11376 * gdbtypes.c (is_scalar_type): New function, based on
11377 valprint.c:scalar_type_p.
11378 (is_scalar_type_recursive): New function.
11379 * gdbtypes.h (is_scalar_type_recursive): Declare.
11380 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11381 handle regions when ranged watchpoints are available.
11382 (create_watchpoint_request): New function.
11383 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11384 create_watchpoint_request.
11385 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11386 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11387 `set powerpc' and `show powerpc' commands.
11388 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11389 Mention documentation comment in the target macro.
11390 (target_region_ok_for_hw_watchpoint): Document return value.
11392 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11394 * breakpoint.c (update_watchpoint): Decide on using a software or
11395 hardware watchpoint after the bp_locations are created.
11397 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11399 Convert hardware watchpoints to use breakpoint_ops.
11400 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11401 <insert_location>: ... this. Return int instead of void.
11402 Accept pointer to struct bp_location instead of pointer to
11403 struct breakpoint. Adapt all implementations.
11404 (breakpoint_ops) <remove>: Rename to...
11405 <remove_location>: ... this. Accept pointer to struct bp_location
11406 instead of pointer to struct breakpoint. Adapt all implementations.
11407 * breakpoint.c (insert_catchpoint): Delete function.
11408 (insert_bp_location): Call the watchpoint or catchpoint's
11409 breakpoint_ops.insert method.
11410 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11411 breakpoint_ops.remove method.
11412 (insert_watchpoint, remove_watchpoint): New functions.
11413 (watchpoint_breakpoint_ops): New structure.
11414 (watch_command_1): Initialize the OPS field.
11415 * inf-child.c (inf_child_insert_fork_catchpoint)
11416 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11417 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11418 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11420 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11421 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11422 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11423 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11424 * target.c (update_current_target): Change default implementation of
11425 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11426 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11427 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11428 to_set_syscall_catchpoint to return_one.
11429 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11430 (debug_to_insert_exec_catchpoint): Report return value.
11431 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11432 (to_insert_exec_catchpoint): Change declaration to return int instead
11435 2011-01-11 Michael Snyder <msnyder@vmware.com>
11437 * arm-tdep.c: Internationalization.
11439 * charset.c: Ditto.
11440 * fork-child.c: Ditto.
11441 * nto-procfs.c: Ditto.
11442 * ppc-sysv-tdep.c: Ditto.
11444 * remote-mips.c: Ditto.
11446 * rs6000-nat.c: Ditto.
11447 * rs6000-tdep.c: Ditto.
11451 * xml-support.c: Ditto.
11452 * mi/mi-cmd-break.c: Ditto.
11453 * mi/mi-cmd-var.c: Ditto.
11454 * mi/mi-interp.c: Ditto.
11455 * mi/mi-main.c: Ditto.
11457 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11459 * remote-sim.c (gdbsim_store_register): Update API to
11460 sim_store_register to check more error conditions.
11462 2011-01-10 Michael Snyder <msnyder@vmware.com>
11464 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11465 * nto-tdep.c: Ditto.
11466 * nto-tdep.h: Ditto.
11467 * objc-exp.y: Ditto.
11468 * objc-lang.c: Ditto.
11469 * objfiles.c: Ditto.
11470 * objfiles.h: Ditto.
11471 * observer.c: Ditto.
11472 * opencl-lang.c: Ditto.
11475 * parser-defs.h: Ditto.
11478 * posix-hdep.c: Ditto.
11479 * ppcbug-rom.c: Ditto.
11480 * ppc-linux-nat.c: Ditto.
11481 * ppc-linux-tdep.c: Ditto.
11482 * ppc-linux-tdep.h: Ditto.
11483 * ppcnbsd-tdep.c: Ditto.
11484 * ppcobsd-tdep.c: Ditto.
11485 * ppcobsd-tdep.h: Ditto.
11486 * ppc-sysv-tdep.c: Ditto.
11487 * ppc-tdep.h: Ditto.
11488 * printcmd.c: Ditto.
11489 * proc-abi.c: Ditto.
11490 * proc-flags.c: Ditto.
11492 * proc-utils.h: Ditto.
11493 * progspace.h: Ditto.
11494 * prologue-value.c: Ditto.
11495 * prologue-value.h: Ditto.
11496 * psympriv.h: Ditto.
11497 * psymtab.c: Ditto.
11498 * p-typeprint.c: Ditto.
11499 * p-valprint.c: Ditto.
11500 * ravenscar-sparc-thread.c: Ditto.
11501 * ravenscar-thread.c: Ditto.
11502 * ravenscar-thread.h: Ditto.
11504 * regcache.c: Ditto.
11505 * regcache.h: Ditto.
11507 * remote-fileio.c: Ditto.
11508 * remote-fileio.h: Ditto.
11510 * remote-m32r-sdi.c: Ditto.
11511 * remote-mips.c: Ditto.
11512 * remote-sim.c: Ditto.
11513 * rs6000-aix-tdep.c: Ditto.
11514 * rs6000-nat.c: Ditto.
11515 * rs6000-tdep.c: Ditto.
11517 2011-01-10 Michael Snyder <msnyder@vmware.com>
11519 * charset.c (validate): Internationalization.
11520 * coffread.c (read_one_sym): Ditto.
11521 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11522 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11523 * inflow.c (new_tty): Ditto.
11524 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11525 * m32c-tdep.c (m32c_return_value): Ditto.
11526 * mep-tdep.c (mep_store_return_value): Ditto.
11527 * score-tdep.c (score7_fetch_insn): Ditto.
11528 * ser-mingw.c (pipe_windows_open): Ditto.
11529 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11530 * spu-tdep.c (spu_register_type): Ditto.
11531 * tracepoint.c (trace_find_command): Ditto.
11532 * valarith.c (value_pos): Ditto.
11534 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11536 * ada-valprint.c (printstr): Minor comment reformatting.
11538 2011-01-08 Michael Snyder <msnyder@vmware.com>
11540 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11543 2011-01-08 Michael Snyder <msnyder@vmware.com>
11545 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11546 * hppa-hpux-tdep.c: Ditto.
11547 * hppa-linux-nat.c: Ditto.
11548 * hppa-linux-tdep.c: Ditto.
11549 * hppanbsd-tdep.c: Ditto.
11550 * hppa-tdep.c: Ditto.
11551 * hppa-tdep.h: Ditto.
11552 * hpux-thread.c: Ditto.
11553 * i386-cygwin-tdep.c: Ditto.
11554 * i386-darwin-nat.c: Ditto.
11555 * i386gnu-nat.c: Ditto.
11556 * i386-linux-nat.c: Ditto.
11557 * i386-linux-tdep.c: Ditto.
11558 * i386-nat.c: Ditto.
11559 * i386-nat.h: Ditto.
11560 * i386nbsd-tdep.c: Ditto.
11561 * i386-sol2-nat.c: Ditto.
11562 * i386-stub.c: Ditto.
11563 * i386-tdep.c: Ditto.
11564 * i386-tdep.h: Ditto.
11565 * i387-tdep.c: Ditto.
11566 * ia64-linux-nat.c: Ditto.
11567 * ia64-linux-tdep.c: Ditto.
11568 * ia64-tdep.c: Ditto.
11569 * infcall.c: Ditto.
11570 * infcall.h: Ditto.
11572 * inferior.c: Ditto.
11573 * inferior.h: Ditto.
11574 * infloop.c: Ditto.
11577 * interps.c: Ditto.
11578 * interps.h: Ditto.
11579 * iq2000-tdep.c: Ditto.
11580 * irix5-nat.c: Ditto.
11584 * jv-lang.c: Ditto.
11585 * jv-lang.h: Ditto.
11586 * jv-typeprint.c: Ditto.
11587 * jv-valprint.c: Ditto.
11588 * language.c: Ditto.
11589 * language.h: Ditto.
11590 * linespec.c: Ditto.
11591 * linux-fork.c: Ditto.
11592 * linux-nat.c: Ditto.
11593 * linux-thread-db.c: Ditto.
11594 * lm32-tdep.c: Ditto.
11596 2011-01-08 Michael Snyder <msnyder@vmware.com>
11598 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11599 * m2-lang.c: Ditto.
11600 * m2-typeprint.c: Ditto.
11601 * m2-valprint.c: Ditto.
11602 * m32c-tdep.c: Ditto.
11603 * m32r-linux-nat.c: Ditto.
11604 * m32r-rom.c: Ditto.
11605 * m32r-tdep.c: Ditto.
11606 * m32r-tdep.h: Ditto.
11607 * m68hc11-tdep.c: Ditto.
11608 * m58klinux-nat.c: Ditto.
11609 * m68k-tdep.c: Ditto.
11610 * m88k-tdep.c: Ditto.
11611 * m88k-tdep.h: Ditto.
11612 * machoread.c: Ditto.
11613 * macrocmd.c: Ditto.
11614 * macroexp.c: Ditto.
11615 * macrotab.c: Ditto.
11618 * mdebugread.c: Ditto.
11619 * mdebugread.h: Ditto.
11620 * memattr.c: Ditto.
11621 * memattr.h: Ditto.
11622 * memory-map.h: Ditto.
11623 * mep-tdep.c: Ditto.
11624 * microblaze-rom.c: Ditto.
11625 * microblaze-tdep.c: Ditto.
11626 * minsyms.c: Ditto.
11627 * mips-irix-tdep.c: Ditto.
11628 * mips-linux-nat.c: Ditto.
11629 * mips-linux-tdep.c: Ditto.
11630 * mips-linux-tdep.h: Ditto.
11631 * mipsnbsd-nat.c: Ditto.
11632 * mipsnbsd-tdep.c: Ditto.
11633 * mipsread.c: Ditto.
11634 * mips-tdep.c: Ditto.
11635 * mips-tdep.h: Ditto.
11636 * mn10300-linux-tdep.c: Ditto.
11637 * mn10300-tdep.c: Ditto.
11638 * mn10300-tdep.h: Ditto.
11639 * monitor.c: Ditto.
11640 * monitor.h: Ditto.
11641 * moxie-tdep.c: Ditto.
11642 * moxie-tdep.h: Ditto.
11643 * mt-tdep.c: Ditto.
11645 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11647 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11649 2011-01-08 Robert Millan <rmh@gnu.org>
11651 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11653 2011-01-07 Michael Snyder <msnyder@vmware.com>
11655 * charset.c (_initialize_charset): Fix typo in string.
11657 2011-01-07 Michael Snyder <msnyder@vmware.com>
11659 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11661 * tui/tui-layout.c (tui_set_layout_for_display_command):
11662 Split line so that operator goes to beginning of line.
11663 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11664 assignment out of if statement.
11666 2011-01-07 Michael Snyder <msnyder@vmware.com>
11668 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11669 * ada-lang.h: Ditto.
11670 * ada-tasks.c: Ditto.
11671 * ada-valprint.c: Ditto.
11672 * aix-threads.c: Ditto.
11673 * alpha-linux-nat.c: Ditto.
11674 * alpha-linux-tdep.c: Ditto.
11675 * alpha-mdebug-tdep.c: Ditto.
11676 * alpha-nat.c: Ditto.
11677 * alpha-osf1-tdep.c: Ditto.
11678 * alpha-tdep.c: Ditto.
11679 * alphabsd-nat.c: Ditto.
11680 * alphabsd-tdep.c: Ditto.
11681 * amd64-darwin-tdep.c: Ditto.
11682 * amd64-linux-nat.c: Ditto.
11683 * amd64-linux-tdep.c: Ditto.
11684 * amd64-sol2-tdep.c: Ditto.
11685 * amd64-tdep.c: Ditto.
11686 * amd64-fbsd-tdep.c: Ditto.
11687 * amd64-nbsd-tdep.c: Ditto.
11688 * amd64-obsd-tdep.c: Ditto.
11689 * amd64-linux-nat.c: Ditto.
11690 * amd64-linux-tdep.c: Ditto.
11691 * arm-tdep.c: Ditto.
11692 * arm-tdep.h: Ditto.
11693 * armnbsd-nat.c: Ditto.
11694 * avr-tdep.c: Ditto.
11695 * bfin-tdep.c: Ditto.
11696 * bsd-kvm.c: Ditto.
11697 * c-typeprintc: Ditto.
11698 * c-valprint.c: Ditto.
11699 * coff-pe-read.h: Ditto.
11700 * coffreead.c: Ditto.
11701 * cris-tdep.c: Ditto.
11703 * darwin-nat-info.c: Ditto.
11704 * darwin-nat.c: Ditto.
11705 * dbug-rom.c: Ditto.
11706 * dbxread.c: Ditto.
11709 * dec-thread.c: Ditto.
11711 * demangle.c: Ditto.
11712 * dicos-tdep.c: Ditto.
11713 * dictionary.c: Ditto.
11714 * dictionary.h: Ditto.
11715 * dink32-rom.c: Ditto.
11717 * doublest.c: Ditto.
11719 * dummy-frame.c: Ditto.
11720 * dwarf2-frame.c: Ditto.
11721 * dwarf2expr.c: Ditto.
11722 * dwarf2loc.c: Ditto.
11723 * dwarf2read.c: Ditto.
11724 * elfread.c: Ditto.
11725 * environ.c: Ditto.
11727 * event-top.h: Ditto.
11728 * exceptions.c: Ditto.
11729 * exceptions.h: Ditto.
11731 * expprint.c: Ditto.
11732 * expression.h: Ditto.
11736 * f-typeprint.c: Ditto.
11737 * f-valprint.c: Ditto.
11738 * fbsd-nat.c: Ditto.
11739 * findvar.c: Ditto.
11740 * fork-child.c: Ditto.
11743 * frv-linux-tdep.c: Ditto.
11744 * frv-tdep.c: Ditto.
11746 * gdb-stabs.h: Ditto.
11747 * gdb_assert.h: Ditto.
11748 * gdb_string.h: Ditto.
11749 * gdb_thread_db.h: Ditto.
11750 * gdb_wait.h: Ditto.
11751 * gdbarch.sh: Ditto.
11752 * gdbcore.h: Ditto.
11753 * gdbthread.h: Ditto.
11754 * gdbtypes.c: Ditto.
11755 * gdbtypes.h: Ditto.
11756 * gnu-nat.c: Ditto.
11757 * gnu-nat.h: Ditto.
11758 * gnu-v2-abi.c: Ditto.
11759 * gnu-v3-abi.c: Ditto.
11760 * go32-nat.c: Ditto.
11761 * gdbarch.c: Regenerate.
11762 * gdbarch.h: Regenerate.
11764 2011-01-07 Michael Snyder <msnyder@vmware.com>
11766 * ax-gdb.c: Adjust some long output strings.
11767 * breakpoint.c: Ditto.
11768 * charset.c: Ditto.
11770 * infcall.c: Ditto.
11772 * linux-nat.c: Ditto.
11773 * solib-pa64.c: Ditto.
11774 * solib-som.c: Ditto.
11776 2011-01-06 Tom Tromey <tromey@redhat.com>
11780 * python/python.c (GdbMethods): Add "newest_frame" method.
11781 * python/python-internal.h (gdbpy_newest_frame): Declare.
11782 * python/py-frame.c (gdbpy_newest_frame): New function.
11784 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11786 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11787 * jit.c (jit_debug): New variable.
11788 (show_jit_debug): New function.
11789 (struct target_buffer): Use ULONGEST.
11790 (bfd_open_from_target_memory): Likewise.
11791 (jit_register_code, jit_inferior_init): Add debug output.
11792 (_initialize_jit): Register "debug jit" command.
11794 2011-01-06 Tom Tromey <tromey@redhat.com>
11796 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11797 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11800 2011-01-06 Tom Tromey <tromey@redhat.com>
11802 * python/py-frame.c (frapy_block): Use get_frame_block.
11804 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11806 Do not stop on SIGPRIO signals by default
11807 * infrun.c (_initialize_infrun): Unset signal_stop and
11808 signal_print for TARGET_SIGNAL_PRIO.
11810 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11812 * ada-tasks.c: Fix style violation in comment.
11814 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11816 * linespec.c (decode_compound, find_method): Remove trailing \n
11817 at end of error string.
11818 * solib-irix.c (irix_current_sos): Likewise.
11819 * varobj.c (uninstall_variable): Likewise.
11821 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11823 * copyright.py: New script.
11824 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11825 Launch emacs without exec'ing. Call copyright.py afterwards.
11827 2011-01-05 Michael Snyder <msnyder@vmware.com>
11829 * addrmap.c: Shorten lines of >= 80 columns.
11830 * arch-utils.c: Ditto.
11831 * arch-utils.h: Ditto.
11833 * ax-general.c: Ditto.
11835 * blockframe.c: Ditto.
11836 * breakpoint.c: Ditto.
11837 * buildsym.c: Ditto.
11839 * c-typeprint.c: Ditto.
11840 * charset.c: Ditto.
11841 * coffread.c: Ditto.
11842 * command.h: Ditto.
11843 * corelow.c: Ditto.
11845 * cp-namespace.c: Ditto.
11846 * cp-support.c: Ditto.
11847 * dbug-rom.c: Ditto.
11848 * dbxread.c: Ditto.
11852 * dictionary.c: Ditto.
11854 * doublest.c: Ditto.
11855 * dwarf2-frame.c: Ditto.
11856 * dwarf2expr.c: Ditto.
11857 * dwarf2loc.c: Ditto.
11858 * dwarf2read.c: Ditto.
11859 * elfread.c: Ditto.
11861 * event-loop.c: Ditto.
11862 * event-loop.h: Ditto.
11863 * exceptions.h: Ditto.
11865 * expprint.c: Ditto.
11866 * expression.h: Ditto.
11868 * f-valprint.c: Ditto.
11869 * findcmd.c: Ditto.
11870 * frame-base.c: Ditto.
11871 * frame-unwind.c: Ditto.
11872 * frame-unwind.h: Ditto.
11876 * gdb-stabs.h: Ditto.
11877 * gdb_assert.h: Ditto.
11878 * gdb_dirent.h: Ditto.
11879 * gdb_obstack.h: Ditto.
11880 * gdbcore.h: Ditto.
11881 * gdbtypes.c: Ditto.
11882 * gdbtypes.h: Ditto.
11883 * inf-ttrace.c: Ditto.
11884 * infcall.c: Ditto.
11888 * inline-frame.h: Ditto.
11889 * language.c: Ditto.
11890 * language.h: Ditto.
11891 * libunwind-frame.c: Ditto.
11892 * libunwind-frame.h: Ditto.
11893 * linespec.c: Ditto.
11894 * linux-nat.c: Ditto.
11895 * linux-nat.h: Ditto.
11896 * linux-thread-db.c: Ditto.
11897 * machoread.c: Ditto.
11898 * macroexp.c: Ditto.
11899 * macrotab.c: Ditto.
11902 * mdebugread.c: Ditto.
11903 * memattr.c: Ditto.
11904 * minsyms.c: Ditto.
11905 * monitor.c: Ditto.
11906 * monitor.h: Ditto.
11907 * objfiles.c: Ditto.
11908 * objfiles.h: Ditto.
11910 * p-typeprint.c: Ditto.
11911 * p-valprint.c: Ditto.
11913 * printcmd.c: Ditto.
11914 * proc-events.c: Ditto.
11916 * progspace.c: Ditto.
11917 * progspace.h: Ditto.
11918 * psympriv.h: Ditto.
11919 * psymtab.c: Ditto.
11921 * regcache.c: Ditto.
11922 * regcache.h: Ditto.
11923 * remote-fileio.c: Ditto.
11925 * ser-mingw.c: Ditto.
11926 * ser-tcp.c: Ditto.
11927 * ser-unix.c: Ditto.
11930 * solib-frv.c: Ditto.
11931 * solib-irix.c: Ditto.
11932 * solib-osf.c: Ditto.
11933 * solib-pa64.c: Ditto.
11934 * solib-som.c: Ditto.
11935 * solib-sunos.c: Ditto.
11936 * solib-svr4.c: Ditto.
11937 * solib-target.c: Ditto.
11939 * somread.c: Ditto.
11941 * stabsread.c: Ditto.
11942 * stabsread.c: Ditto.
11945 * symfile-mem.c: Ditto.
11946 * symfile.c: Ditto.
11947 * symfile.h: Ditto.
11948 * symmisc.c: Ditto.
11951 * target-descriptions.c: Ditto.
11952 * target-memory.c: Ditto.
11955 * terminal.h: Ditto.
11958 * tracepoint.c: Ditto.
11959 * tracepoint.h: Ditto.
11960 * ui-file.c: Ditto.
11961 * ui-file.h: Ditto.
11963 * user-regs.c: Ditto.
11964 * user-regs.h: Ditto.
11966 * valarith.c: Ditto.
11968 * valprint.c: Ditto.
11969 * valprint.h: Ditto.
11974 * xcoffread.c: Ditto.
11975 * xcoffsolib.c: Ditto.
11976 * xcoffsolib.h: Ditto.
11977 * xml-syscall.c: Ditto.
11978 * xml-tdesc.c: Ditto.
11980 2011-01-05 Michael Snyder <msnyder@vmware.com>
11982 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11983 * cli/cli-decode.c: Ditto.
11984 * cli/cli-dump.c: Ditto.
11985 * cli/cli-logging.c: Ditto.
11986 * cli/cli-script.c: Ditto.
11987 * cli/cli-setshow.c: Ditto.
11988 * common/signals.c: Ditto.
11989 * mi/mi-cmd-break.c: Ditto.
11990 * mi/mi-cmd-disas.c: Ditto.
11991 * mi/mi-cmd-stack.c: Ditto.
11992 * mi/mi-cmd-var.c: Ditto.
11993 * mi/mi-cmds.c: Ditto.
11994 * mi/mi-common.h: Ditto.
11995 * mi/mi-console.c: Ditto.
11996 * mi/mi-interp.c: Ditto.
11997 * mi/mi-main.c: Ditto.
11998 * osf-share/cma_attr.c: Ditto.
11999 * osf-share/cma_deb_core.h: Ditto.
12000 * osf-share/cma_debug_client.h: Ditto.
12001 * osf-share/cma_handle.h: Ditto.
12002 * osf-share/cma_mutex.h: Ditto.
12003 * osf-share/cma_stack_int.h: Ditto.
12004 * osf-share/cma_tcb_defs.h: Ditto.
12005 * python/py-auto-load.c: Ditto.
12006 * python/py-breakpoint.c: Ditto.
12007 * python/py-cmd.c: Ditto.
12008 * python/py-frame.c: Ditto.
12009 * python/py-objfile.c: Ditto.
12010 * python/py-param.c: Ditto.
12011 * python/py-progspace.c: Ditto.
12012 * python/py-symbol.c: Ditto.
12013 * python/py-value.c: Ditto.
12014 * python/python-internal.h: Ditto.
12015 * python/python.c: Ditto.
12016 * tui/tui-data.c: Ditto.
12017 * tui/tui-disasm.c: Ditto.
12018 * tui/tui-hooks.c: Ditto.
12019 * tui/tui-io.c: Ditto.
12020 * tui/tui-layout.c: Ditto.
12021 * tui/tui-regs.c: Ditto.
12022 * tui/tui-source.c: Ditto.
12023 * tui/tui-stack.c: Ditto.
12024 * tui/tui-win.c: Ditto.
12025 * tui/tui-windata.c: Ditto.
12026 * tui/tui-winsource.c: Ditto.
12028 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12030 * configure.ac, gdb.1: Copyright year update.
12032 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12034 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12035 this_pc_in_block, morestack_msym and morestack_name. Check for
12036 "__morestack" minimal symbol there.
12038 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12040 * symfile.c (find_sym_fns): Add call to dont_repeat.
12042 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12044 Copyright year update in most files (performed by copyright.sh).
12046 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12048 * top.c (print_gdb_version): Update copyright year in version output.
12050 For older changes see ChangeLog-2010.
12056 version-control: never