1 2011-12-14 Yao Qi <yao@codesourcery.com>
3 * breakpoint.c (create_breakpoint): Set canonical.addr_string
6 2011-12-13 Joel Brobecker <brobecker@adacore.com>
8 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
9 * version.in: Bump version to 7.4.50.20111213-cvs.
11 2011-12-13 Joel Brobecker <brobecker@adacore.com>
13 * NEWS: Create a new section for the next release branch.
14 Rename the section of the current branch, now that it has
17 2011-12-11 Joel Brobecker <brobecker@adacore.com>
19 * ada-lang.c (ada_exception_support_info_sniffer): Improve
22 2011-12-11 Joel Brobecker <brobecker@adacore.com>
24 * ada-lang.c (struct ada_inferior_data) [exception_info]:
26 (exception_info): Delete.
27 (ada_exception_support_info_sniffer): Get exception_support_info
28 data from our per-inferior data. Adjust code accordingly.
29 (ada_unhandled_exception_name_addr_from_raise): Likewise.
30 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
31 (ada_executable_changed_observer): Delete.
32 (_initialize_ada_language): Remove call to
33 observer_attach_executable_changed.
35 2011-12-11 Joel Brobecker <brobecker@adacore.com>
37 * ada-lang.c (ada_has_this_exception_support): Raise an error
38 if we could find the Ada exception hook in the Ada runtime,
39 but no debugging info for that hook.
41 2011-12-11 Joel Brobecker <brobecker@adacore.com>
43 * ada-lang.c (ada_has_this_exception_support): New function,
44 extracted out of ada_exception_sal and ada_exception_sal.
45 (ada_exception_support_info_sniffer): Simplify by using
46 ada_has_this_exception_support.
47 (ada_exception_sal): Replace unnecessary checks by assertions.
48 Minor simplifications.
50 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
52 * breakpoint.c (update_global_location_list): Remove nested
53 definition of `b'(-Wshadow).
55 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
57 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
58 `error_flag'(-Wshadow).
60 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
62 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
65 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
67 * annotate.c (annotate_array_section_begin): Rename `index' to
70 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
72 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
75 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
77 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
78 `syscall' to `syscall_number'(-Wshadow).
80 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
82 * ada-lang.c (remove_extra_symbols): Rename `remove' to
85 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
87 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
90 2011-12-10 Doug Evans <dje@google.com>
92 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
93 debug_types_section. All uses updated.
94 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
95 to is_debug_types_section.
97 * python/py-auto-load.c (source_section_scripts): Call xfree
100 2011-12-10 Hui Zhu <teawater@gmail.com>
101 Yao Qi <yao@codesourcery.com>
103 * tracepoint.c (start_tracing): Clear `inserted' flag.
105 2011-12-10 Hui Zhu <teawater@gmail.com>
107 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
109 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
111 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
114 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
116 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
117 `marker' variables to `sal2' and `tpmarker' respectively
120 2011-12-09 Andrew Pinski <apinski@cavium.com>
122 * linespec.c (hash_address_entry): Use iterative_hash_object on each
123 field rather than the struct itself.
125 2011-12-09 Tom Tromey <tromey@redhat.com>
127 * breakpoint.c (compare_breakpoints): New function.
128 (clear_command): Remove duplicate breakpoints. Properly clean
131 2011-12-08 Maciej W. Rozycki <macro@mips.com>
132 Maciej W. Rozycki <macro@codesourcery.com>
134 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
135 address chunks retrieved from decoded lui/addiu pairs.
137 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
139 * mips-tdep.c (extended_offset): Correct calculation.
140 (unpack_mips16): Correct bitfield positions used for extraction
141 of the immediate argument; fix sign-extension of same.
142 (extended_mips16_next_pc): Correct B instruction's offset
143 calculation. Correct register decoding of the BEQZ and BNEZ
144 as well as jump-register instructions. Handle compact jumps.
146 2011-12-08 Tom Tromey <tromey@redhat.com>
148 * objfiles.h (struct objfile): Remove obsolete comment.
149 * objfiles.c (build_objfile_section_table): Remove obsolete
152 2011-12-07 Stan Shebs <stan@codesourcery.com>
154 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
155 maintainer of the tic6x target.
157 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
159 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
160 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
161 (arm_deal_with_atomic_sequence_raw): Likewise.
162 (arm_deal_with_atomic_sequence): Likewise.
163 (arm_software_single_step): Call it.
164 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
166 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
168 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
170 * s390-tdep.h: Likewise.
172 2011-12-07 Tristan Gingold <gingold@adacore.com>
174 * machoread.c (macho_symtab_read): Do not consider N_OPT as
175 a debugging stab. Improve complaint message.
177 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
179 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
180 load adjustment if still within the prologue.
182 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
184 * mips-tdep.c (mips32_next_pc): Fix floating point condition
187 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
189 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
190 of BLTZ* and BGEZ* instructions.
192 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
194 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
195 performed to determine whether an address refers to standard
197 (mips16_next_pc): Use mips_pc_is_mips16 instead of
200 2011-12-06 Pedro Alves <pedro@codesourcery.com>
202 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
203 (breakpoint_xfer_memory): ... this. Change prototype. Handle
205 * breakpoint.h (breakpoint_restore_shadows): Delete.
206 (breakpoint_xfer_memory): Declare.
207 * mem-break.c (default_memory_insert_breakpoint)
208 (default_memory_remove_breakpoint): Use target_write_raw_memory.
209 (memory_xfer_partial): Rename to ...
210 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
212 (memory_xfer_partial): New.
213 (target_write_raw_memory): New.
214 * target.h (target_write_raw_memory): New.
216 2011-12-06 Doug Evans <dje@google.com>
218 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
220 2011-12-06 Joel Brobecker <brobecker@acacore.com>
222 * language.h (struct language_defn): Add new component
223 la_symbol_name_compare.
224 * symfile.h (struct quick_symbol_functions): Update the profile
225 of parameter "name_matcher" for the expand_symtabs_matching
226 method. Update the documentation accordingly.
227 * ada-lang.h (ada_name_for_lookup): Add declaration.
228 * ada-lang.c (ada_name_for_lookup): New function, extracted out
229 from ada_iterate_over_symbols.
230 (ada_iterate_over_symbols): Do not encode symbol name anymore.
231 (ada_expand_partial_symbol_name): Adjust profile.
232 (ada_language_defn): Add value for la_symbol_name_compare field.
233 * linespec.c: #include "ada-lang.h".
234 (iterate_name_matcher): Add language parameter. Replace call
235 to strcmp_iw by call to language->la_symbol_name_compare.
236 (decode_variable): Encode COPY if current language is Ada.
237 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
238 of name_matcher parameter. Adjust call to name_matcher.
239 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
240 (expand_partial_symbol_names): Update profile of parameter "fun".
241 * psymtab.h (expand_partial_symbol_names): Update profile of
243 * symtab.c (demangle_for_lookup): Update function documentation.
244 (search_symbols_name_matches): Add language parameter.
245 (expand_partial_symbol_name): Likewise.
246 * c-lang.c (c_language_defn, cplus_language_defn)
247 (asm_language_defn, minimal_language_defn): Add value for
248 la_symbol_name_compare field.
249 * d-lang.c (d_language_defn): Likewise.
250 * f-lang.c (f_language_defn): Ditto.
251 * jv-lang.c (java_language_defn): Ditto.
252 * m2-lang.c (m2_language_defn): Ditto.
253 * objc-lang.c (objc_language_defn): Ditto.
254 * opencl-lang.c (opencl_language_defn): Ditto.
255 * p-lang.c (pascal_language_defn): Ditto.
256 * language.c (unknown_language_defn, auto_language_defn)
257 (local_language_defn): Ditto.
259 2011-12-06 Tom Tromey <tromey@redhat.com>
261 * linespec.c (iterate_over_all_matching_symtabs): Use
262 LA_ITERATE_OVER_SYMBOLS.
263 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
264 (find_function_symbols, decode_variable): Remove Ada special
266 * language.h (struct language_defn) <la_iterate_over_symbols>: New
268 (LA_ITERATE_OVER_SYMBOLS): New macro.
269 * language.c (unknown_language_defn, auto_language_defn)
270 (local_language_defn): Update.
271 * c-lang.c (c_language_defn, cplus_language_defn)
272 (asm_language_defn, minimal_language_defn): Update.
273 * d-lang.c (d_language_defn): Update.
274 * f-lang.c (f_language_defn): Update.
275 * jv-lang.c (java_language_defn): Update.
276 * m2-lang.c (m2_language_defn): Update.
277 * objc-lang.c (objc_language_defn): Update.
278 * opencl-lang.c (opencl_language_defn): Update.
279 * p-lang.c (pascal_language_defn): Update.
280 * ada-lang.c (ada_iterate_over_symbols): New function.
281 (ada_language_defn): Update.
283 2011-12-06 Tom Tromey <tromey@redhat.com>
284 Joel Brobecker <brobecker@acacore.com>
286 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
287 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
288 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
289 PR shlibs/8929, PR shlibs/7393:
290 * python/py-type.c (compare_maybe_null_strings): Rename from
292 (check_types_equal): Update.
293 * utils.c (compare_strings): New function.
294 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
296 * tracepoint.c (scope_info): Update.
297 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
298 * symtab.h (iterate_over_minimal_symbols)
299 (iterate_over_some_symtabs, iterate_over_symtabs)
300 (find_pcs_for_symtab_line, iterate_over_symbols)
301 (demangle_for_lookup): Declare.
302 (expand_line_sal): Remove.
303 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
304 (lookup_symtab_callback): New functions.
305 (lookup_symtab): Rewrite.
306 (demangle_for_lookup): New function, extract from
307 lookup_symbol_in_language.
308 (lookup_symbol_in_language): Use it.
309 (iterate_over_symbols): New function.
310 (find_line_symtab): Update.
311 (find_pcs_for_symtab_line): New functions.
312 (find_line_common): Add 'start' argument.
313 (decode_line_spec): Update. Change argument to 'flags', change
315 (append_expanded_sal): Remove.
316 (append_exact_match_to_sals): Remove.
317 (expand_line_sal): Remove.
318 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
320 <map_symtabs_matching_filename>: New field.
321 * stack.c (func_command): Only look in the current program space.
322 Use DECODE_LINE_FUNFIRSTLINE.
323 * source.c (line_info): Set pspace on sal. Check program space in
324 the loop. Use DECODE_LINE_LIST_MODE.
325 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
326 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
327 * python/python.c (gdbpy_decode_line): Update.
328 * psymtab.c (partial_map_expand_apply): New function.
329 (partial_map_symtabs_matching_filename): Rename from
330 lookup_partial_symbol. Update arguments.
331 (lookup_symtab_via_partial_symtab): Remove.
332 (psym_functions): Update.
333 * objc-lang.h (parse_selector, parse_method): Don't declare.
335 * objc-lang.c (parse_selector, parse_method): Now static.
336 (find_methods): Change arguments. Fill in a vector of symbol
338 (uniquify_strings): New function.
339 (find_imps): Change arguments.
340 * minsyms.c (iterate_over_minimal_symbols): New function.
341 * linespec.h (enum decode_line_flags): New.
342 (struct linespec_sals): New.
343 (struct linespec_result) <canonical>: Remove.
344 <pre_expanded, addr_string, sals>: New fields.
345 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
346 (decode_line_full): Declare.
347 (decode_line_1): Update.
348 * linespec.c (struct address_entry, struct linespec_state, struct
349 collect_info): New types.
350 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
351 (eq_address_entry, maybe_add_address): New functions.
352 (total_number_of_methods): Remove.
353 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
355 (find_methods): Change arguments. Don't canonicalize input.
357 (add_matching_methods, add_constructors)
358 (build_canonical_line_spec): Remove.
359 (filter_results, convert_results_to_lsals): New functions.
360 (decode_line_2): Change arguments. Rewrite for new data
362 (decode_line_internal): Rename from decode_line_1. Change
363 arguments. Add cleanups. Update for new data structures.
364 (linespec_state_constructor, linespec_state_destructor)
365 (decode_line_full, decode_line_1): New functions.
366 (decode_indirect): Change arguments. Update.
367 (locate_first_half): Use skip_spaces.
368 (decode_objc): Change arguments. Update for new data structures.
370 (decode_compound): Change arguments. Add cleanups. Remove
371 fallback code, replace with error.
372 (struct decode_compound_collector): New type.
373 (collect_one_symbol): New function.
374 (lookup_prefix_sym): Change arguments. Update.
375 (compare_symbol_name, add_all_symbol_names_from_pspace)
376 (find_superclass_methods ): New functions.
377 (find_method): Rewrite.
378 (struct symtab_collector): New type.
379 (add_symtabs_to_list, collect_symtabs_from_filename): New
381 (symtabs_from_filename): Change API. Rename from
382 symtab_from_filename.
383 (collect_function_symbols): New function.
384 (find_function_symbols): Change API. Rename from
385 find_function_symbol. Rewrite.
386 (decode_all_digits): Change arguments. Rewrite.
387 (decode_dollar): Change arguments. Use decode_variable.
388 (decode_label): Change arguments. Rewrite.
389 (collect_symbols): New function.
390 (minsym_found): Change arguments. Rewrite.
391 (check_minsym, search_minsyms_for_name)
392 (add_matching_symbols_to_info): New function.
393 (decode_variable): Change arguments. Iterate over all symbols.
394 (symbol_found): Remove.
395 (symbol_to_sal): New function.
396 (init_linespec_result, destroy_linespec_result)
397 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
399 (decode_digits_list_mode, decode_digits_ordinary): New functions.
400 * dwarf2read.c (dw2_map_expand_apply): New function.
401 (dw2_map_symtabs_matching_filename): Rename from
402 dw2_lookup_symtab. Change arguments.
403 (dwarf2_gdb_index_functions): Update.
404 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
405 * defs.h (compare_strings): Declare.
406 * cli/cli-cmds.c (compare_strings): Move to utils.c.
407 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
409 (compare_symtabs, filter_sals): New functions.
410 * breakpoint.h (struct bp_location) <line_number, source_file>:
412 (struct breakpoint) <line_number, source_file>: Remove.
414 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
415 (momentary_breakpoint_from_master, add_location_to_breakpoint):
416 Update for changes to locations.
417 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
419 (create_breakpoint_sal): Add 'filter' argument.
420 (remove_sal, expand_line_sal_maybe): Remove.
421 (create_breakpoints_sal): Remove 'sals' argument. Handle
422 pre-expanded sals and the filter.
423 (parse_breakpoint_sals): Use decode_line_full.
424 (check_fast_tracepoint_sals): Use get_sal_arch.
425 (create_breakpoint): Create a linespec_sals. Update.
426 (break_range_command): Use decode_line_full. Update.
427 (until_break_command): Update.
428 (clear_command): Update match conditions for linespec.c changes.
429 Use DECODE_LINE_LIST_MODE.
430 (say_where): Update for changes to locations.
431 (bp_location_dtor): Free 'source_file'.
432 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
433 (update_static_tracepoint): Update for changes to locations.
434 (update_breakpoint_locations): Disable ranged breakpoint if too
435 many locations match. Update.
436 (addr_string_to_sals): Use decode_line_full. Resolve all sal
438 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
439 (decode_line_spec_1): Update. Change argument name to 'flags',
440 change interpretation.
441 * block.h (block_containing_function): Declare.
442 * block.c (block_containing_function): New function.
443 * skip.c (skip_function_command): Update.
444 (skip_re_set): Update.
445 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
446 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
449 2011-12-06 Tom Tromey <tromey@redhat.com>
451 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
452 breakpoint's pspace to be NULL.
453 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
454 * breakpoint.c (init_raw_breakpoint): Conditionally set
456 (init_breakpoint_sal): Don't set breakpoint's pspace.
457 (prepare_re_set_context): Conditionally switch program space.
458 (addr_string_to_sals): Check executing_startup on location's
461 2011-12-06 Tom Tromey <tromey@redhat.com>
463 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
464 * breakpoint.c (should_be_inserted): Explicitly check if program
465 space is executing startup.
466 (describe_other_breakpoints): Update.
467 (disable_breakpoints_before_startup): Change executing_startup
468 earlier. Remove loop.
469 (enable_breakpoints_after_startup): Likewise.
470 (init_breakpoint_sal): Don't use bp_startup_disabled.
471 (create_breakpoint): Don't use bp_startup_disabled.
472 (update_global_location_list): Use should_be_inserted.
473 (bkpt_re_set): Update.
475 2011-12-06 Tom Tromey <tromey@redhat.com>
477 * python/lib/gdb/command/pretty_printers.py
478 (InfoPrettyPrinter.invoke1): Remove extra double quote.
480 2011-12-06 Tom Tromey <tromey@redhat.com>
484 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
486 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
487 (S390_LAST_BREAK_REGNUM): Likewise.
488 (S390_SYSTEM_CALL_REGNUM): Likewise.
489 (S390_NUM_REGS): Update.
491 (s390_regmap_last_break): Add declaration.
492 (s390x_regmap_last_break): Likewise.
493 (s390_regmap_system_call): Likewise.
495 (tdesc_s390_linux32v1): Add declaration.
496 (tdesc_s390_linux32v2): Likewise.
497 (tdesc_s390_linux64v1): Likewise.
498 (tdesc_s390_linux64v2): Likewise.
499 (tdesc_s390x_linux64v1): Likewise.
500 (tdesc_s390x_linux64v2): Likewise.
502 * s390-tdep.c: Include new target description files
503 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
504 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
505 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
506 (s390_cannot_store_register): New function.
507 (s390_write_pc): Likewise.
508 (s390_dwarf_regmap): Add fields for new registers.
509 (s390_regmap_gregset): Likewise.
510 (s390x_regmap_gregset): Likewise.
511 (s390_regmap_fpregset): Likewise.
512 (s390_regmap_upper): Likewise.
513 (s390_regmap_last_break): New variable.
514 (s390x_regmap_last_break): Likewise.
515 (s390_regmap_system_call): Likewise.
516 (s390_last_break_regset): Likewise.
517 (s390x_last_break_regset): Likewise.
518 (s390_system_call_regset): Likewise.
519 (s390_upper_regset_sections): Rename to ...
520 (s390_linux64_regset_sections): ... this.
521 (s390_linux32_regset_sections): New variable.
522 (s390x_linux64_regset_sections): Likewise.
523 (s390_linux32v1_regset_sections): Likewise.
524 (s390_linux32v2_regset_sections): Likewise.
525 (s390_linux64v1_regset_sections): Likewise.
526 (s390_linux64v2_regset_sections): Likewise.
527 (s390x_linux64v1_regset_sections): Likewise.
528 (s390x_linux64v2_regset_sections): Likewise.
529 (s390_regset_from_core_section): Handle .reg-s390-last-break and
530 .reg-s390-system-call core file sections.
531 (s390_core_read_description): Check for presence of
532 .reg-s390-last-break and .reg-s390-system-call core file
533 sections and return appropriate target description.
534 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
535 "last_break" and "system_call" in target description. Install
536 appropriate gdbarch_core_regset_sections array.
537 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
538 (_initialize_s390_tdep): Initialize additional target descriptions.
540 * s390-nat.c: Include "elf/common.h".
541 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
542 (have_regset_last_break): New static variable.
543 (have_regset_system_call): Likewise.
544 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
545 (s390_native_collect): Likewise.
546 (fetch_regset, store_regset, check_regset): New functions.
547 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
548 and S390_SYSTEM_CALL_REGNUM.
549 (s390_linux_store_inferior_registers): Likewise.
550 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
551 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
553 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
554 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
555 (s390-linux32v1-expedite): Define.
556 (s390-linux32v2-expedite): Likewise.
557 (s390-linux64v1-expedite): Likewise.
558 (s390-linux64v2-expedite): Likewise.
559 (s390x-linux64v1-expedite): Likewise.
560 (s390x-linux64v2-expedite): Likewise.
562 * features/s390-linux32.xml: Add orig_r2 register.
563 * features/s390-linux64.xml: Likewise.
564 * features/s390x-linux64.xml: Likewise.
565 * features/s390-linux32v1.xml: New file.
566 * features/s390-linux32v2.xml: Likewise.
567 * features/s390-linux64v1.xml: Likewise.
568 * features/s390-linux64v2.xml: Likewise.
569 * features/s390x-linux64v1.xml: Likewise.
570 * features/s390x-linux64v2.xml: Likewise.
572 * features/s390-linux32.c: Regenerate.
573 * features/s390-linux64.c: Likewise.
574 * features/s390x-linux64.c: Likewise.
575 * features/s390-linux32v1.c: New generated file.
576 * features/s390-linux32v2.c: Likewise.
577 * features/s390-linux64v1.c: Likewise.
578 * features/s390-linux64v2.c: Likewise.
579 * features/s390x-linux64v1.c: Likewise.
580 * features/s390x-linux64v2.c: Likewise.
582 * regformats/s390-linux32.dat: Regenerate.
583 * regformats/s390-linux64.dat: Regenerate.
584 * regformats/s390x-linux64.dat: Regenerate.
585 * regformats/s390-linux32v1.dat: New generated file.
586 * regformats/s390-linux32v2.dat: Likewise.
587 * regformats/s390-linux64v1.dat: Likewise.
588 * regformats/s390-linux64v2.dat: Likewise.
589 * regformats/s390x-linux64v1.dat: Likewise.
590 * regformats/s390x-linux64v2.dat: Likewise.
592 2011-12-05 Pedro Alves <pedro@codesourcery.com>
594 * linux-nat.c (resume_stopped_resumed_lwps): Call
597 2011-12-05 Pedro Alves <pedro@codesourcery.com>
599 * breakpoint.c: Include record.h.
600 (breakpoints_always_inserted_mode): Return false when the record
603 2011-12-05 Pedro Alves <pedro@codesourcery.com>
605 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
606 Reinstate perror_with_name call on ptrace error. Remove #if 0.
607 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
608 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
610 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
612 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
615 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
617 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
619 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
621 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
624 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
626 Fix compilation --without-expat.
627 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
629 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
631 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
632 Jan Kratochvil <jan.kratochvil@redhat.com>
634 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
635 * features/library-list-svr4.dtd: New file.
636 * remote.c (PACKET_qXfer_libraries_svr4): New.
637 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
638 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
639 * solib-svr4.c (struct svr4_library_list): New.
640 [HAVE_LIBEXPAT]: Include xml-support.h.
641 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
642 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
643 [HAVE_LIBEXPAT] (svr4_library_list_children)
644 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
645 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
646 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
647 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
648 (svr4_read_so_list): Extend the corruption message by addresses.
649 (svr4_current_sos): New variable library_list, call
650 svr4_current_sos_via_xfer_libraries.
651 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
653 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
656 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
657 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
659 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
662 * dwarf2read.c (process_psymtab_comp_unit): Set
663 PSYMTABS_ADDRMAP_SUPPORTED.
664 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
665 validity. New field psymtabs_addrmap_supported.
666 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
667 psymtabs_addrmap_supported.
668 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
669 !PSYMTABS_ADDRMAP_SUPPORTED.
670 (dump_psymtab, maintenance_info_psymtabs): Print also
671 psymtabs_addrmap_supported.
673 2011-12-01 Doug Evans <dje@google.com>
675 * python/py-type.c (type_object_methods): Fix "array" doc string.
677 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
679 * source.c (print_source_lines_base): Fix missing braces on else
680 clause leading to additional output.
682 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
684 * s390-nat.c (SUBOFF): Remove.
685 (s390_native_supply, s390_native_collect): New functions.
686 (supply_gregset, supply_fpregset): Use s390_native_supply.
687 (fill_gregset, fill_fpregset): Use s390_native_collect.
689 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
690 (s390_unwind_pseudo_register): New function.
691 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
692 registers instead of PC and CC.
693 (s390_backchain_frame_unwind_cache): Likewise.
694 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
696 (s390_trad_frame_prev_register): New function.
697 (s390_frame_prev_register): Use it.
698 (s390_sigtramp_frame_prev_register): Likewise.
699 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
700 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
701 special callback to unwind any pseudo.
703 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
704 * features/s390-core64.xml: Likewise.
705 * features/s390x-core64.xml: Likewise.
706 * features/s390-linux32.c: Regenerate.
707 * features/s390-linux64.c: Likewise.
708 * features/s390x-linux64.c: Likewise.
710 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
712 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
714 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
716 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
717 instruction. Add more diagnostic output.
719 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
721 * MAINTAINERS (Write After Approval): Add myself to the list.
723 2011-11-29 Sanjoy Das <sdas@igalia.com>
725 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
726 (jit_bfd_try_read_symtab): Fix comments.
728 2011-11-28 DJ Delorie <dj@redhat.com>
730 * NEWS: Mention RL78 simulator.
732 2011-11-28 Joel Brobecker <brobecker@adacore.com>
734 * symfile.h (struct quick_symbol_functions): Fix the documentation
735 of field map_matching_symbols, as symbols are sorted using
736 strcmp_iw_ordered, not strcmp_iw.
738 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
740 * symfile.h (struct quick_symbol_functions): Update the
741 documentation for field map_matching_symbols.
743 2011-11-28 Joel Brobecker <brobecker@adacore.com>
745 * ada-lang.c (compare_names): Fix wrong return value in case
746 string1 starts with the same contents as string2, followed
747 by an underscore that do not start a symbol name suffix.
749 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
754 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
755 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
756 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
758 * python/py-type.c (typy_strip_typedefs): Ditto.
759 (typy_legacy_template_argument): Ditto.
760 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
761 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
763 2011-11-27 Joel Brobecker <brobecker@acacore.com>
765 * remote.c (remote_get_tracepoint_status): Delete addrbuf
766 local variable. Avoid use of sprintf_vma.
768 2011-11-27 Sanjoy Das <sdas@igalia.com>
770 Fix regression in jit.exp.
771 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
772 (jit_register_code): Set the jit_objfile_data field to the correct
775 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
777 * alpha-tdep.c (br_opcode): New.
778 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
779 (alpha_deal_with_atomic_sequence): New function.
780 (alpha_gdbarch_init): Handle single stepping of atomic sequences
781 with alpha_deal_with_atomic_sequence.
783 2011-11-24 Tristan Gingold <gingold@adacore.com>
785 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
786 fields. Add oso_sym, end_sym and nbr_syms.
787 (macho_register_oso): Change interface.
788 (macho_symtab_add_minsym): New function.
789 (macho_symtab_read): Rewritten.
790 (get_archive_prefix_len): Remove trailing blanks.
791 (oso_el_compare_name): Add comment.
792 (struct macho_sym_hash_entry): New structure.
793 (macho_relocate_common_syms): Remove.
794 (macho_sym_hash_newfunc): New function.
795 (macho_resolve_oso_sym_with_minsym): Likewise.
796 (macho_add_oso_symfile): Rewritten.
797 (macho_symfile_read_all_oso): Remove trailing blanks.
798 Adjust code to free oso vector.
799 (macho_symfile_read): Likewise.
800 Move code to initialize minimal symbol
802 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
804 * mips-tdep.c (extended_offset): Fix formatting.
806 2011-11-23 Doug Evans <dje@google.com>
808 * dwarf2read.c (dw2_lookup_symtab): Add comment.
809 (dw2_expand_symtabs_with_filename): Ditto.
810 (dw2_expand_symtabs_matching): Ditto.
811 (dw2_map_symbol_filenames): Ditto.
813 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
815 * ada-lang.c (assign_aggregate): Minor reformatting.
817 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
819 * ada-lang.c (assign_aggregate): Remove declaration of local
820 variable `i' which is shadowing another variable with the same
821 name declared in the outer scope.
823 2011-11-23 Joel Brobecker <brobecker@adacore.com>
825 * ada-lang.c (get_base_type): Renames base_type. Adjust all
826 calls throughout this file.
828 2011-11-23 Joel Brobecker <brobecker@adacore.com>
830 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
833 2011-11-22 Tom Tromey <tromey@redhat.com>
836 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
837 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
838 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
839 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
840 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
841 (print_it_catch_syscall, print_it_catch_exec)
842 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
843 (bpstat_print): Add 'kind' argument. Handle
844 TARGET_WAITKIND_LOADED.
845 * infrun.c (normal_stop): Update for bpstat_print change. Don't
846 handle TARGET_WAITKIND_LOADED here.
847 * breakpoint.h (bpstat_print): Update.
849 2011-11-22 Tom Tromey <tromey@redhat.com>
851 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
853 2011-11-22 Tom Tromey <tromey@redhat.com>
855 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
856 Use static_assert to check the size of
857 async_reason_string_lookup.
858 * common/gdb_assert.h (static_assert): New macro.
860 2011-11-22 Alan Modra <amodra@gmail.com>
862 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
863 destination calculation. Don't expect >> to sign extend. Don't
864 add a break if branch lands inside the sequence anywhere.
866 2011-11-21 Keith Seitz <keiths@redhat.com>
868 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
869 -var-evaluate-expression of an enumeration and fix expected result.
870 * gdb.mi/mi2-varvdisplay.exp: Likewise.
872 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
874 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
875 the case where osdata->items is empty. Rename column names to a
876 canonical form to avoid problems with unusual column names.
878 2011-11-21 Yao Qi <yao@codesourcery.com>
880 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
882 2011-11-20 Stan Shebs <stan@codesourcery.com>
884 * NEWS: Mention tracepoint additions.
885 * breakpoint.h (struct tracepoint): New field traceframe_usage.
886 * breakpoint.c (print_one_breakpoint_location): Identify
887 tracepoints as such when reporting hit counts, report
889 (create_tracepoint_from_upload): Copy status info.
890 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
891 add fields user_name, notes, start_time, stop_time.
892 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
893 * tracepoint.c (trace_user): New global.
894 (trace_notes): New global.
895 (trace_stop_notes): New global.
896 (start_tracing): Add argument and trace note handling.
897 (stop_tracing): Ditto.
898 (trace_start_command): Add notes argument.
899 (trace_stop_command): Ditto.
900 (trace_status_command): Report additional status info.
901 (trace_status_mi): Similarly.
902 (trace_save): Update, record tracepoint status.
903 (set_disconnected_tracing): Call target method directly.
904 (send_disconnected_tracing_value): Remove.
905 (set_trace_user): New function.
906 (set_trace_notes): New function.
907 (set_trace_stop_notes): New function.
908 (parse_trace_status): Handle additional status.
909 (parse_tracepoint_status): New function.
910 (parse_tracepoint_definition): Call it.
911 (tfile_get_tracepoint_status): New function.
912 (init_tfile_ops): Use it.
913 (_initialize_tracepoint): Add new setshows.
914 * target.h (struct target_ops): New methods to_get_tracepoint_status
915 and to_set_trace_notes.
916 (target_get_tracepoint_status): New macro.
917 (target_set_trace_notes): New macro.
918 * target.c (update_current_target): Add new methods.
919 * remote.c (remote_get_tracepoint_status): New function.
920 (remote_set_trace_notes): New function.
921 (init_remote_ops): Add them.
922 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
923 (mi_cmd_trace_stop): Ditto.
925 2011-11-20 Sanjoy Das <sdas@igalia.com>
927 * jit.c: Include regcache.h.
928 (jit_gdbarch_data, jit_frame_unwind): New static variables.
929 (jit_unwind_reg_set_impl, free_reg_value_impl)
930 (jit_unwind_reg_get_impl, jit_frame_sniffer)
931 (jit_frame_unwind_stop_reason, jit_frame_this_id)
932 (jit_frame_prev_register, jit_dealloc_cache)
933 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
934 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
935 jit_prepend_unwinder.
936 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
938 2011-11-20 Sanjoy Das <sdas@igalia.com>
940 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
941 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
942 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
943 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
944 (finalize_symtab, jit_object_close_impl)
945 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
946 (free_objfile_data): New functions.
947 (_initialize_jit): Register jit_objfile_data with a proper cleanup
950 2011-11-20 Sanjoy Das <sdas@igalia.com>
952 * jit.c: Include gdb-dlfcn.h.
953 (loaded_jit_reader, reader_init_fn_sym): New static variables.
954 (jit_reader_load, jit_reader_load_command)
955 (jit_reader_unload_command): New functions.
956 (_initialize_jit): Add commands "jit-reader-load" and
959 2011-11-20 Sanjoy Das <sdas@igalia.com>
961 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
962 * config.in: Add new #define HAVE_LIBDL.
963 * configure.ac: Add check for -ldl.
964 * configure: Re-generated by autoconf.
965 * gdb-dlfcn.c: New file.
966 * gdb-dlfcn.h: New file.
968 2011-11-20 Sanjoy Das <sdas@igalia.com>
970 * config.in: Add new #defines: JIT_READER_DIR and
971 JIT_READER_DIR_RELOCATABLE.
972 * configure.ac: New GDB directory entry for jit-reader-dir.
973 * configure: Re-generated by autoconf.
974 * jit.c: New static variable: const char *jit_reader_dir.
975 (_initialize_jit): Relocate jit_reader_dir.
977 2011-11-20 Sanjoy Das <sdas@igalia.com>
979 * Makefile.in: Add jit-reader.h as a header. Have it installed in
981 * configure.ac: Generate a correct value for TARGET_PTR for
982 jit-reader.h. Tell configure to generate jit-reader.h from
984 * configure: Re-generated by autoconf.
985 * jit-reader.in: New file.
986 * jit.c: Include jit-reader.h.
988 2011-11-20 Sanjoy Das <sdas@igalia.com>
990 * MAINTAINERS (Write After Approval): Add myself to the list.
992 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
994 * findvar.c (read_frame_register_value): Respect value_offset
995 of the register value. Remove big-endian special case.
997 2011-11-18 Tom Tromey <tromey@redhat.com>
1000 * remote.c (putpkt_for_catch_errors): New function.
1001 (remote_kill): Use it.
1003 2011-11-18 Yao Qi <yao@codesourcery.com>
1005 * breakpoint.c (create_breakpoint): Produce query message according to
1007 Allocate tracepoint per correct type.
1008 Don't check SALs for pending fast tracepoints.
1009 * tracepoint.c (process_tracepoint_on_disconnect): New.
1010 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1012 2011-11-18 Yao Qi <yao@codesourcery.com>
1014 * breakpoint.c (install_breakpoint): Add one more parameter so that
1015 update_global_location_list is called conditionally.
1016 (create_fork_vfork_event_catchpoint): Update.
1017 (create_syscall_event_catchpoint): Update.
1018 (create_breakpoint_sal): Update.
1019 (create_breakpoint_sal): Update. Call do_cleanups before
1021 * ada-lang.c (create_ada_exception_catchpoint): Update.
1022 * breakpoint.h (install_breakpoint): Update declaration.
1024 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1026 * spu-tdep.c (spu_return_value): Fix handling of
1027 TYPE_CALLING_CONVENTION annotation.
1029 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1031 * skip.c (skip_function_command): Work around uninitialized
1034 2011-11-16 David S. Miller <davem@davemloft.net>
1036 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1037 'tv_usec' to long for printf since these fields have a type which
1040 2011-11-15 Doug Evans <dje@google.com>
1042 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1044 2011-11-15 Paul Koning <paul_koning@dell.com>
1046 * python/py-type.c (typy_get_composite): New function.
1047 (typy_nonzero): New function.
1048 (typy_values): Rename from typy_fields.
1049 (typy_fields): New function.
1050 (typy_length): Raise exception if not struct, union, or enum type.
1051 (typy_getitem): Ditto.
1052 (typy_has_key): Ditto.
1053 (typy_make_iter): Ditto.
1055 2011-11-15 Doug Evans <dje@google.com>
1057 * NEWS: Mention new parameter basenames-may-differ.
1058 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1059 ! basenames_may_differ.
1060 * psymtab.c (lookup_partial_symtab): Ditto.
1061 * symtab.c (lookup_symtab): Ditto.
1062 (basenames_may_differ): New global.
1063 (_initialize_symtab): New parameter basenames-may-differ.
1064 * symtab.h (basenames_may_differ): Declare.
1066 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1067 Luis Machado <lgustavo@codesourcery.com>
1069 * auxv.c: Include observer.h.
1070 (auxv_inferior_data_cleanup): New.
1071 (invalidate_auxv_cache_inf): New.
1072 (invalidate_auxv_cache): New.
1073 (get_auxv_inferior_data): New.
1074 (auxv_inferior_data): New static global.
1075 (auxv_info): New structure.
1076 (target_auxv_search): Use get_auxv_inferior_data instead of
1077 target_read_alloc and don't free cached buffers.
1078 (fprint_target_auxv): Likewise
1079 (_initialize_auxv): Register per-inferior auxv cache and register
1080 observers to invalidate auxv cache when needed.
1082 2011-11-14 Doug Evans <dje@google.com>
1084 Make "!" an alias for "shell".
1085 * NEWS: Add mention.
1086 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1087 adding "!" command, always add it.
1088 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1089 command of length one.
1091 2011-11-14 Stan Shebs <stan@codesourcery.com>
1092 Kwok Cheung Yeung <kcy@codesourcery.com>
1094 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1095 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1096 the minimum instruction size for fast tracepoints.
1097 * target.h (struct target_ops): Add new method
1098 to_get_min_fast_tracepoint_insn_len.
1099 (target_get_min_fast_tracepoint_insn_len): New.
1100 * target.c (update_current_target): Set up new target operation.
1101 * remote.c (remote_write_bytes_aux): Fix typo.
1102 (remote_get_min_fast_tracepoint_insn_len): New.
1103 (init_remote_ops): Initialize new field.
1105 2011-11-14 Tom Tromey <tromey@redhat.com>
1107 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1108 (encode_actions): Likewise.
1110 2011-11-14 Yao Qi <yao@codesourcery.com>
1112 * remote.c (struct remote_state): <install_in_trace> new field.
1113 (PACKET_InstallInTrace): New enum value.
1114 (remote_install_in_trace_feature): Support InstallInTrace.
1115 (remote_supports_install_in_trace): Likewise.
1116 (remote_protocol_features): Likewise.
1117 (_initialize_remote): Likewise.
1118 (remote_can_download_tracepoint): New.
1119 * target.h (struct target): New field
1120 `to_can_download_tracepoint'.
1121 (target_can_download_tracepoint): New macro.
1122 * target.c (update_current_target): Update.
1123 * breakpoint.h (struct bp_location): Add comment on field
1125 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1127 (remove_breakpoints): Don't remove tracepoints.
1128 (tracepoint_locations_match ): New.
1129 (breakpoint_locations_match): Call it.
1130 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1131 (download_tracepoint_locations): New.
1132 (update_global_location_list): Call it.
1133 * tracepoint.c (find_matching_tracepoint): Delete.
1134 (find_matching_tracepoint_location): Renamed from
1135 find_matching_tracepoint. Return bp_location rather than
1137 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1138 tracepoint is found.
1140 2011-11-14 Yao Qi <yao@codesourcery.com>
1142 * target.h (struct target): <to_download_tracepoint> Change type
1143 of parameter from tracepoint to bp_location.
1144 * target.c (update_current_target): Update.
1145 * tracepoint.c (start_tracing): Update.
1146 * remote.c (remote_download_tracepoint): Remove loop for each location
1149 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1151 * i386-nat.c (i386_insert_hw_breakpoint): Call
1152 i386_update_inferior_debug_regs.
1153 (i386_remove_hw_breakpoint): Likewise.
1155 2011-11-14 Yao Qi <yao@codesourcery.com>
1157 * breakpoint.c (init_raw_breakpoint): Call
1158 add_location_to_breakpoint to replace duplicated code.
1159 (add_location_to_breakpoint): Adjust the breakpoint's
1160 address prior to allocating a location.
1162 2011-11-12 Matt Rice <ratmice@gmail.com>
1164 * macrocmd.c (macro_no_macro_info): New function.
1165 (macro_expand_command): Use macro_no_macro_info.
1166 (macro_expand_once_command): Ditto.
1167 (info_macro_command): Add argument processing,
1168 move info_definitions_command here.
1169 (_initialize_macrocmd): Remove info definitions command.
1170 Add arguments to info macro help text.
1171 * NEWS: Replace info definitions command with new info macro options.
1173 2011-11-11 Keith Seitz <keiths@redhat.com>
1176 * linespec.c (locate_first_half): Keep ':' if it looks
1177 like it could be part of a Windows path starting with
1180 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1182 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1183 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1185 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1187 * target.c (target_waitstatus_to_string): Handle
1188 TARGET_WAITKIND_NO_RESUMED.
1190 2011-11-10 Doug Evans <dje@google.com>
1192 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1194 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1195 (map_partial_symbol_filenames): Ditto. All callers updated.
1196 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1197 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1198 parameter need_fullname.
1200 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1201 * source.c (symtab_to_fullname): Ditto.
1203 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1204 * gdb-demangle.h: ... here. New file.
1205 * demangle.c: #include "gdb-demangle.h".
1206 (_initialize_demangler): Use initialize_file_ftype for prototype.
1207 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1208 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1210 * utils.c: Update. #include "gdb-demangle.h".
1211 * symtab.h (asm_demangle): Delete.
1212 (demangle): Move declaration next to use.
1213 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1214 * dwarf2read.c: #include "gdb-demangle.h".
1215 * gnu-v2-abi.c: Ditto.
1216 * jv-typeprint.c: Ditto.
1217 * mdebugread.c: Ditto.
1218 * p-typeprint.c: Ditto.
1219 * stabsread.c: Ditto.
1220 * printcmd.c: Ditto.
1221 (asm_demangle): Delete declaration.
1222 * tui/tui-stack.c: #include "gdb-demangle.h".
1224 * python/py-type.c (typy_fields_items): Call check_typedef.
1226 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1228 * findvar.c (read_frame_register_value): Read the correct bytes
1229 from registers on big-endian architectures.
1231 2011-11-10 Tom Tromey <tromey@redhat.com>
1233 * procfs.c (load_syscalls): Make a cleanup.
1234 (open_procinfo_files): fd==0 is ok.
1236 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1238 * procfs.c (iterate_over_mappings): Call do_cleanups before
1241 2011-11-09 Doug Evans <dje@google.com>
1243 * gdbtypes.c (check_typedef): Document that this function can
1246 2011-11-09 Tom Tromey <tromey@redhat.com>
1249 * valops.c (value_full_object): Return early if real type is
1250 smaller than the enclosing type.
1252 2011-11-08 Yao Qi <yao@codesourcery.com>
1254 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1256 2011-11-08 Meador Inge <meadori@codesourcery.com>
1258 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1259 register when the frame can't be determined.
1260 * arm-tdep.c (arm_analyze_prologue): Ditto.
1262 2011-11-07 Stan Shebs <stan@codesourcery.com>
1264 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1266 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1268 * infrun.c (handle_inferior_event): Minor reformatting.
1270 2011-11-05 Doug Evans <dje@google.com>
1272 * source.c (forget_cached_source_info_for_objfile): Move call to
1273 objfile->sf->qf->forget_cached_source_info outside of
1274 ALL_OBJFILE_SYMTABS loop.
1275 (forget_cached_source_info): Delete unused variable `s'.
1277 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * i386-nat.c (dr_ref_count): Remove unused variable.
1281 2011-11-05 Doug Evans <dje@google.com>
1283 * main.c (captured_main): Set lim_at_start before calling
1284 make_command_stats_cleanup.
1286 2011-11-04 Doug Evans <dje@google.com>
1288 * utils.c: #include "timeval-utils.h".
1289 (cmd_stats): Rename start_time to start_cpu_time.
1290 New member start_wall_time.
1291 (report_command_stats): Report wall time.
1292 (make_command_stats_cleanup): Record start wall time.
1294 2011-11-04 Tom Tromey <tromey@redhat.com>
1296 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1298 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1300 * coff-pe-read.c: Include defs.h before bfd.h.
1302 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1306 * python/python.c (python_run_simple_file): Expand tilde in path.
1308 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1312 * python/py-type.c (typy_lookup_type): Do not return a type in
1313 an exception handler.
1315 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 Eli Zaretskii <eliz@gnu.org>
1318 * linux-nat.c (_initialize_linux_nat): Improve help
1319 for `info proc stat', `info proc status', `info proc cwd',
1320 `info proc cmdline' and `info proc exe'.
1322 2011-11-02 Stan Shebs <stan@codesourcery.com>
1324 String collection for tracepoints.
1325 * NEWS: Mention string collection.
1326 * common/ax.def (tracenz): New bytecode.
1327 * ax-gdb.h (trace_string_kludge): Declare.
1328 * ax-gdb.c: Include valprint.h and c-lang.h.
1329 (trace_string_kludge): New global.
1330 (gen_traced_pop): Add string case.
1331 (agent_command): Add string case.
1332 * tracepoint.h (decode_agent_options): Declare.
1333 * tracepoint.c: Include cli-utils.h.
1334 (decode_agent_options): New function.
1335 (validate_actionline): Call it.
1336 (encode_actions_1): Ditto.
1337 * target.h (struct target_ops): New method to_supports_string_tracing.
1338 (target_supports_string_tracing): New macro.
1339 * target.c (update_current_target): Add to_supports_string_tracing.
1340 * remote.c (struct remote_state): New field string_tracing.
1341 (remote_string_tracing_feature): New function.
1342 (remote_protocol_features): New feature tracenz.
1343 (remote_supports_string_tracing): New function.
1344 (init_remote_ops): Set to_supports_string_tracing.
1346 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1347 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 * linux-nat.c: Include cli/cli-utils.h.
1350 (enum info_proc_what): New.
1351 (linux_nat_info_proc_cmd): Rename to ...
1352 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1353 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1354 status_f and stat_f from WHAT. Throw error on extra parameters.
1355 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1356 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1357 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1358 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1359 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1360 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1361 `info proc cmdline', `info proc exe' and `info proc all' as real
1362 subcommands of `info proc'.
1364 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1366 * Makefile.in: (SFILES): Add skip.c.
1367 (HFILES_NO_SRCDIR): Add skip.h.
1368 (COMMON_OBS): Add skip.o.
1369 * skip.h, skip.c: New.
1370 * breakpoint.h (set_default_breakpoint): Remove.
1371 (get_sal_arch): Declare.
1372 * breakpoint.c: Remove default_breakpoint_valid,
1373 default_breakpoint_address, default_breakpoint_symtab,
1374 default_breakpoint_line, default_breakpoint_pspace variables.
1375 (get_sal_arch): Make public.
1376 (set_default_breakpoint): Remove.
1377 (parse_breakpoint_sals, create_breakpoint, clear_command,
1378 decode_line_spec_1): Remove uses of default_breakpoint variables;
1379 replaced with function calls into stack.c.
1380 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1381 * cli/cli-cmds.c: Add skiplist.
1382 (init_cmd_lists): Initialize skiplist.
1383 (init_cli_cmds): Fix comment (classes of commands appear in
1384 alphabetical order).
1385 * infrun.c (handle_inferior_event): Add check that we don't step into
1386 a function whose pc is marked for skip.
1387 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1388 last_displayed_addr, last_displayed_symtab, last_displayed_line
1390 (set_last_displayed_sal): New static function.
1391 (print_frame_info): Switch call to set_default_breakpoint to call to
1392 set_last_displayed_sal.
1393 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1394 get_last_displayed_pspace, get_last_displayed_addr,
1395 get_last_displayed_symtab, get_last_displayed_line,
1396 get_last_displayed_sal): New public functions.
1397 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1398 get_last_displayed_pspace, get_last_displayed_addr,
1399 get_last_displayed_symtab, get_last_displayed_line,
1400 get_last_displayed_sal): Declare.
1402 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1404 * MAINTAINERS (Write After Approval): Add myself to the list.
1406 2011-10-29 Yao Qi <yao@codesourcery.com>
1408 * infcmd.c (disconnect_command): Call disconnect_tracing.
1410 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1413 * symtab.c (skip_prologue_sal): Code reformatting.
1415 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1418 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1419 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1422 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1424 * linux-nat.c (linux_nat_filter_event): Remove `options'
1425 parameter, and dead code that used it. If we're handling a
1426 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1427 in our lwp list, re-add it.
1428 (check_zombie_leaders): New.
1429 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1430 wait for children with WNOHANG, and always wait for all children.
1431 Don't check for no resumed children upfront. Simplify wait loop.
1432 Check for zombie thread group leaders after handling all wait
1433 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1434 unwaited-for children left.
1435 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1436 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1437 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1438 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1440 2011-10-28 Sterling Augustine <saugustine@google.com>
1442 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1443 * symtab.c (free_completion_list): New function.
1444 (do_free_completion_list): Likewise.
1445 (default_make_symbol_completion_list_break_on): New variable
1446 back_to. Call make_cleanup and discard_cleanups.
1447 (make_source_files_completion_list): Likewise.
1449 2011-10-28 Paul Koning <paul_koning@dell.com>
1451 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1452 * NEWS: Mention deep_items.
1454 2011-10-28 Alen Skondro <askondro@gmail.com>
1456 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1459 2011-10-27 Meador Inge <meadori@codesourcery.com>
1461 * MAINTAINERS (Write After Approval): Add myself to the list.
1463 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1465 * value.h (read_frame_register_value): Add declaration.
1466 * findvar.c (read_frame_register_value): New function.
1467 (value_from_register): Use read_frame_register_value
1468 instead of get_frame_register_value + value_contents_copy
1469 to get value contents.
1471 2011-10-27 Doug Evans <dje@google.com>
1473 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1474 source_script_from_stream if it may have been found on the search path.
1475 * python/py-auto-load.c (source_section_scripts): Pass full path to
1476 source_python_script_for_objfile.
1477 * python/python.c (source_python_script): Delete stream parameter.
1478 All callers updated.
1479 (source_python_script_for_objfile): Ditto.
1480 * python/python-internal.h (source_python_script_for_objfile): Update.
1481 * python/python.h (source_python_script): Update.
1483 2011-10-27 Tom Tromey <tromey@redhat.com>
1485 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1486 (ada_sals_for_line): Remove declarations.
1488 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1490 Move unwind reasons to an external .def file
1491 * frame.c (frame_stop_reason_string): Rewrite using
1492 unwind_stop_reasons.def.
1493 * frame.h (enum unwind_stop_reason): Likewise.
1494 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1495 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1496 constants for bound-checking.
1497 * unwind_stop_reasons.def: New file.
1498 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1499 instead of a distinct value.
1501 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1505 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1506 (convert_values_to_python): Return on Python tuple allocation
1507 failure. Return NULL on value conversion error.
1509 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1511 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1512 (bppy_set_task): Ditto.
1513 (bppy_delete_breakpoint): Ditto.
1514 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1515 (gdbpy_lookup_global_symbol): Ditto.
1516 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1517 * python/py-frame.c (frapy_is_valid): Ditto.
1518 (frame_info_to_frame_object): Ditto.
1519 * python/py-type.c (typy_lookup_type): Ditto.
1520 (typy_getitem): Ditto.
1521 (typy_has_key): Ditto.
1522 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1524 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1526 * gdbarch.h: Regenerate.
1528 2011-10-26 Meador Inge <meadori@codesourcery.com>
1530 * gdbarch.sh (function_list): Use 'pstring' when printing
1532 * gdbarch.c: Regenerate.
1534 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1536 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1537 and frame caches if PTID refers to all threads of a process.
1539 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1541 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1542 to create_breakpoint.
1544 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1546 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1547 (ppc_sysv_abi_push_dummy_call): Use it.
1548 (do_ppc_sysv_return_value): Likewise.
1549 (ppc64_sysv_abi_push_dummy_call): Likewise.
1550 (ppc64_sysv_abi_return_value): Likewise.
1552 2011-10-26 Paul Koning <paul_koning@dell.com>
1554 * python/lib/gdb/types.py (deepitems): New function.
1556 2011-10-25 Paul Koning <paul_koning@dell.com>
1560 * python/py-value.c (value_to_value_object): Remove fetching of
1561 the value if it was lazy.
1562 (valpy_get_is_lazy): New function.
1563 (valpy_fetch_lazy): New function.
1565 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1567 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1568 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1570 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1572 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1573 event, in non-stop, if not stopping, make sure the new lwp has
1574 last_resume_kind set to resume_continue. Assert that when we're
1575 resuming the new lwp, its last_resume_kind is resume_continue.
1577 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1579 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1580 already set when marking the event thread as not executing in
1583 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1585 * infrun.c (handle_inferior_event): Add debug output for
1586 TARGET_WAITKIND_NO_HISTORY.
1588 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1590 * NEWS: Move set/show extended-prompt to "New Options". Expand
1591 description. Fix typos.
1593 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1597 * python/py-param.c (call_doc_function): Correctly deference on
1600 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1602 * ada-tasks.c (print_ada_task_info): Fix computation of
1603 number of tasks displayed in command output.
1605 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 Ulrich Weigand <uweigand@de.ibm.com>
1608 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1609 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1610 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1611 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1614 2011-10-20 Cary Coutant <ccoutant@google.com>
1616 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1618 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1619 flag. Adjust all callers.
1620 (process_psymtab_comp_unit): Remove adjustment for type section.
1622 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1624 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1625 arguments by adding OBJFILE. Instead of getting objfile from
1626 symbol's symtab, use new argument OBJFILE.
1627 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1628 arguments by adding OBJFILE.
1629 * gdb/dwarf2read.c (new_symbol_full): Change call to
1630 cp_scan_for_anonymous_namespaces to match new signature.
1631 * gdb/stabsread.c (define_symbol): Change call to
1632 cp_scan_for_anonymous_namespaces to match new signature.
1634 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1639 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1641 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1642 leak. Delete unused variables.
1644 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1648 * python/py-frame.c (frapy_read_var): Use const struct *block.
1649 * python/py-type.c (typy_lookup_typename): Likewise.
1650 (typy_lookup_type): Likewise.
1651 (typy_legacy_template_argument): Likewise.
1652 (typy_template_argument): Likewise.
1653 (gdbpy_lookup_type): Likewise.
1654 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1655 * python/py-block.c (blpy_block_object): Likewise.
1656 (blpy_iter): Likewise.
1657 (blpy_get_start): Likewise.
1658 (blpy_get_end): Likewise.
1659 (blpy_get_function): Likewise.
1660 (blpy_get_superblock): Likewise.
1661 (set_block): Likewise.
1662 (block_to_block_object): Likewise.
1663 (block_object_to_block): Likewise.
1664 (blpy_is_valid): Likewise.
1665 (blpy_get_global_block): New function.
1666 (blpy_get_static_block): New function.
1667 (blpy_is_global): New function.
1668 (blpy_is_static): New function.
1669 * blockframe.c (block_innermost_frame): Likewise.
1670 * valops.c (value_of_variable): Likewise.
1671 * frame.h: Update prototypes.
1672 * python/python-internal.h: Likewise.
1673 * value.h: Likewise.
1675 2011-10-19 Cary Coutant <ccoutant@google.com>
1677 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1680 2011-10-19 Cary Coutant <ccoutant@google.com>
1682 * dwarf2read.c (peek_abbrev_code): New function.
1683 (dw2_get_file_names): Check for dummy compilation units.
1684 (create_debug_types_hash_table): Likewise.
1685 (process_psymtab_comp_unit): Likewise.
1686 (load_partial_comp_unit): Likewise.
1687 (load_full_comp_unit): Likewise.
1689 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1691 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1692 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1693 pt_phdr if PT_PHDR was found.
1695 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1697 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1698 type or "<unnamed type"> when there is no name assigned.
1699 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1700 avoid a sigint when no name is assigned.
1702 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1705 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1706 * dwarf2expr.c (ctx_no_read_reg): New function.
1707 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1708 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1709 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1710 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1712 2011-10-16 Doug Evans <dje@google.com>
1714 * NEWS: Document python gdb.printing.register_pretty_printer's new
1715 `replace' parameter.
1717 2011-10-14 Keith Seitz <keiths@redhat.com>
1720 * eval.c (evaluate_subexp_standard): Do not construct
1721 an array of types; pass the value array directly to
1722 find_overload_match.
1723 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1724 (rank_function): Take an array of values instead of types.
1725 (rank_one_type): Add struct value * parameter.
1726 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1727 (rank_function): For each argument, pass the argument's
1728 value to rank_one_type.
1729 (rank_one_type): Add VALUE parameter.
1730 If the parameter type is a pointer and the argument type
1731 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1733 Update all calls to rank_one_type, passing NULL for new
1735 * valarith.c (value_user_defined_cpp_op): Do not construct
1736 an array of types; pass the value array directly to
1737 find_overload_match.
1738 * valops.c (find_overload_method_list): Take an array of
1739 values instead of types.
1740 Save the type of OBJP for later use.
1741 Update calls to find_oload_champ, and find_oload_champ_namespace.
1742 (find_oload_champ_namespace): Take an array of values instead
1744 (find_oload_champ_namespace_loop): Likewise.
1745 (find_oload_champ): Likewise.
1746 (classify_oload_match): Inspect all arguments
1747 until INCOMPATIBLE is found. Return the worst badness found
1749 (compare_parameters): Update call to rank_one_type.
1750 * value.h (find_overload_match): Take an array of values instead
1753 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Drop lazy lm_info reading.
1756 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1757 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1758 (lm_info_read): New function.
1759 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1760 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1761 lm_dynamic_from_link_map.
1762 (lm_next, lm_prev, lm_name): Remove.
1763 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1764 initialization incl. read_memory. No longer use lm_name.
1765 (svr4_free_so): Drop lm_info->lm freeing.
1766 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1767 explicit lm_addr and lm initialization.
1768 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1769 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1772 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1773 Paul Pluzhnikov <ppluzhnikov@google.com>
1775 * defs.h (struct so_list): New forward declaration.
1776 (make_cleanup_free_so): New declaration.
1777 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1778 (svr4_free_so): Move the function here from downwards. Handle NULL
1780 (svr4_free_library_list): New.
1781 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1782 Use more cleanups. Use new parameter ignore_first instead of
1783 ignore_first_link_map_entry.
1784 (svr4_current_sos): New variable ignore_first, initialize it. New
1785 variable back_to, use it for svr4_free_library_list protection.
1786 (svr4_free_so): Remove - move upwards.
1787 * utils.c: Include solist.h.
1788 (do_free_so, make_cleanup_free_so): New functions.
1790 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 Fix internal error regression.
1793 * value.c (value_primitive_field): Handle value_optimized_out. Move
1794 packed bitfields comment.
1796 2011-10-13 Tom Tromey <tromey@redhat.com>
1798 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1801 2011-10-13 Tom Tromey <tromey@redhat.com>
1803 * python/py-type.c (typy_has_key): Make 'field' const.
1805 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1807 * remote.c (remote_save_trace_data): Invert comparison.
1809 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1811 * tracepoint.c (trace_save_command): Use filename instead of
1814 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1819 2011-10-13 Yao Qi <yao@codesourcery.com>
1822 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1823 whether insn is a 32-bit Thumb-2 instruction.
1824 (thumb_in_function_epilogue_p): Likewise.
1825 (thumb_get_next_pc_raw): Likewise.
1826 (arm_breakpoint_from_pc): Likewise.
1828 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1831 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1832 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1833 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1834 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1836 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1838 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1839 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1840 clear DATA on zero SIZE.
1842 2011-10-12 Doug Evans <dje@google.com>
1844 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1845 header->first_die_offset here. All callers updated.
1847 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 Fix compatibility with texinfo versions older than 4.12.
1850 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1851 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1852 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1853 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1854 * configure: Regenerate.
1855 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1856 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1857 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1859 2011-10-12 Gary Benson <gbenson@redhat.com>
1861 * breakpoint.h (pc_at_non_inline_function): Declare.
1862 * breakpoint.c (is_non_inline_function,
1863 pc_at_non_inline_function): New functions.
1864 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1865 if the stop is at a location where functions cannot be inlined.
1867 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1869 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1870 the core wanted them stopped, or if they now have a pending event
1872 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1873 down to stop_and_resume_callback.
1874 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1875 having new pending events after calling linux_nat_filter_event.
1877 2011-10-11 Sterling Augustine <saugustine@google.com>
1879 * dwarf2read.c: Undo inadvertent changes in previous commit.
1881 2011-10-11 Sterling Augustine <saugustine@google.com>
1883 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1886 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1888 * symfile.c (separate_debug_file_exists): Fix condition.
1890 2011-10-11 David S. Miller <davem@davemloft.net>
1892 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1894 * regcache.h (regcache_restore): Remove declaration.
1896 * gdbarch.sh: New field 'long_long_align_bit'.
1897 * gdbarch.c, gdbarch.h: Regenerate.
1898 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1899 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1901 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 Revert this part of:
1904 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1905 Support @entry in input expressions.
1906 * c-exp.y (ENTRY, unknown_cpp_name): New.
1907 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1908 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1909 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1910 (name_not_typename: ENTRY): New.
1911 (yylex): Recognize ENTRY.
1913 Reimplement @entry in input expressions.
1914 * c-exp.y (ENTRY): New.
1915 (variable: name_not_typename ENTRY): New.
1916 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1918 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1920 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1921 parent and child's pids as soon as we detect a clone event.
1922 Adjust another debug message.
1924 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1926 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1927 not zombie instead of reading the whole file.
1929 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1931 Fix separate debuginfo warning with "remote:" access.
1932 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1933 * symfile.c (get_file_crc): New function with the code moved from ...
1934 (separate_debug_file_exists): ... this function, specifically variables
1935 buffer and count. New variable verified_as_different, set it. Remove
1936 file_crc initialization. Verify also if both files are not the same
1937 manually, if needed.
1939 2011-10-11 Yao Qi <yao@codesourcery.com>
1941 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1944 2011-10-10 Doug Evans <dje@google.com>
1946 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1947 libthread_db when we load libpthread or the main symbol file.
1948 (thread_db_inferior_created): New function.
1949 (_initialize_thread_db): Attach inferior_created observer.
1950 * linux-nat.c (linux_child_post_attach): Remove call to
1951 check_for_thread_db.
1952 (linux_child_post_startup_inferior): Ditto.
1953 * objfiles.h (OBJF_MAINLINE): Define.
1954 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1955 allocate_objfile when appropriate.
1957 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1960 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1961 Remove unused variables.
1962 (get_linux_version): Remove function.
1963 (_initialize_arm_linux_nat): Do not call it.
1965 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1967 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1968 new clone lwp if the core asked it to stop. Don't pass on
1969 unexpected signals to the new clone; leave them pending instead.
1971 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1973 * linux-nat.c (resume_lwp): Remove redundant debug output.
1975 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1977 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1978 last_resume_kind before clearing it, and use the copy instead to
1979 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1980 resume_clear_callback in the non-stop path too.
1982 2011-10-09 Yao Qi <yao@codesourcery.com>
1984 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1985 Honor OPTIONS and VAL's type.
1986 (common_val_print, value_print): Update to pass one more parameter.
1988 2011-10-09 Doug Evans <dje@google.com>
1990 Add new "alias" command.
1991 * NEWS: Mention new command.
1992 * command.h (valid_user_defined_cmd_name_p): Declare.
1993 * defs.h (make_cleanup_dyn_string_delete): Declare.
1994 * utils.c: #include "dyn-string.h".
1995 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1996 * cli/cli-cmds.c: #include "dyn-string.h".
1997 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1998 (init_cli_cmds): Add new command.
1999 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2001 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 Fix compatibility with older GCCs.
2004 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2005 * stack.c (read_frame_arg): Initialize val_deref.
2007 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 Entry values NEWS entries, DWARF disassembly support.
2010 * NEWS: New entry values entry.
2011 (set print entry-values, show print entry-values)
2012 (set debug entry-values, show debug entry-values): New entries.
2013 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2014 indent. Remove variable start. Move header printing out. Respect
2015 INDENT. Support DW_OP_GNU_entry_value.
2016 (locexpr_describe_location_1): Move the header printing here, extend
2017 the disassemble_dwarf_expression passed parameters.
2019 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2021 Display @entry parameter values even for references.
2022 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2023 coerce_ref_if_computed.
2024 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2025 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2026 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2027 existing push_dwarf_reg_entry_value call. Add new detection calling
2028 dwarf_block_to_dwarf_reg_deref. Update the error message.
2029 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2031 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2032 parameter deref_size, describe it in the comment.
2033 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2034 (dwarf_block_to_dwarf_reg_deref): New declaration.
2035 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2036 deref_size, describe it in the function comment. New variables
2037 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2038 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2039 describe it in the function comment. Fetch the alternative block
2040 accoring to DEREF_SIZE.
2041 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2042 (entry_data_value_free_closure, entry_data_value_funcs): New.
2043 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2044 outer_val, target_val, val and addr. Try to fetch and create also
2045 referenced value content.
2046 (pieced_value_funcs): NULL value for coerce_ref.
2047 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2048 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2049 coerce_ref_if_computed.
2050 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2051 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2052 * stack.c (read_frame_arg): Compare also dereferenced values.
2053 * value.c (value_computed_funcs): Make the parameter v const, use
2054 value_lval_const for it.
2055 (value_lval_const, coerce_ref_if_computed): New function.
2056 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2057 * value.h (struct lval_funcs): New field coerce_ref.
2058 (value_computed_funcs): Make the parameter v const.
2059 (value_lval_const, coerce_ref_if_computed): New declarations.
2061 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 Support @entry in input expressions.
2064 * c-exp.y (ENTRY, unknown_cpp_name): New.
2065 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2066 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2067 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2068 (name_not_typename: ENTRY): New.
2069 (yylex): Recognize ENTRY.
2070 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2071 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2073 * parse.c (operator_length_standard): Likewise.
2074 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2076 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2078 Display referenced values in backtraces.
2079 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2080 * stack.c (print_frame_arg): Likewise.
2082 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 Make some lval_funcs methods to default on NULL.
2085 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2087 (value_assign): Check if lval_computed write method is NULL.
2088 * value.h (struct lval_funcs): Comment NULL values for read and write
2091 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2093 Display @entry parameter values (without references).
2094 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2096 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2098 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2100 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2101 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2103 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2104 (loclist_read_variable_at_entry): New function.
2105 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2106 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2107 DW_AT_location, call dwarf_block_to_sp_offset for it.
2108 * frame.h (print_entry_values_no, print_entry_values_only)
2109 (print_entry_values_preferred, print_entry_values_if_needed)
2110 (print_entry_values_both, print_entry_values_compact)
2111 (print_entry_values_default, print_entry_values): New declarations.
2112 (struct frame_arg): New field entry_kind.
2113 (read_frame_arg): New parameter entryargp.
2114 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2115 arg->entry_kind. Optionally print the `@entry' suffix.
2116 (list_args_or_locals): New variable entryarg, initialize it.
2117 Initialize also entry_kind of arg and entryarg. Conditionalize
2118 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2119 xfree for entryarg.error.
2120 * stack.c (print_entry_values_no, print_entry_values_only)
2121 (print_entry_values_preferred, print_entry_values_if_needed)
2122 (print_entry_values_both, print_entry_values_compact)
2123 (print_entry_values_default, print_entry_values_choices)
2124 (print_entry_values): New variables.
2125 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2126 print the `@entry' suffix, possibly in combination for
2127 print_entry_values_compact.
2128 (read_frame_arg): New parameter entryargp, new variables entryval,
2129 entryval_error and val_equal. Read in also entryargp, respect
2130 print_entry_values, compare the values using val_equal, fill in also
2131 argp->entry_kind (together with entryargp->entry_kind).
2132 (print_frame_args): New variable entryarg, initialize it.
2133 Conditionalize print_frame_arg for arg, add print_frame_arg for
2134 entryarg. Call xfree for entryarg.error.
2135 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2136 * symtab.h (struct symbol_computed_ops): New field
2137 read_variable_at_entry.
2139 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2142 * frame.h (struct frame_arg): New definition.
2143 (read_frame_arg): New declaration.
2144 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2145 (list_args_or_locals): ... the code here. New variable arg, call
2146 read_frame_arg and list_arg_or_local with it. Unify the
2147 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2149 * stack.c (print_frame_arg): New functiom from the code of
2151 (read_frame_arg): New function.
2152 (print_frame_args): Remove variable val. New variable arg, call
2153 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2155 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2157 Protect entry values against self tail calls.
2158 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2159 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2161 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2163 Recognize virtual tail call frames.
2164 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2165 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2166 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2167 * dwarf2-frame-tailcall.c: New file.
2168 * dwarf2-frame-tailcall.h: New file.
2169 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2170 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2171 REGS.PREV only after CIE execution.
2172 (struct dwarf2_frame_cache): New field tailcall_cache.
2173 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2174 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2175 parts, try to find entry_cfa_sp_offset. Call
2176 dwarf2_tailcall_sniffer_first.
2177 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2179 (dwarf2_frame_dealloc_cache): New function.
2180 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2181 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2182 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2183 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2184 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2185 * dwarf2loc.c (func_addr_to_tail_call_list)
2186 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2187 (call_site_find_chain_1, call_site_find_chain): New.
2188 * dwarf2loc.h (struct call_site_chain): New.
2189 (call_site_find_chain): New declaration.
2190 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2191 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2192 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2193 * stack.c (frame_info): Support also TAILCALL_FRAME.
2195 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2197 Tail call sites reader implementation.
2198 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2199 fill in TYPE_TAIL_CALL_LIST.
2200 * gdbtypes.h (struct func_type): New field tail_call_list.
2201 (struct call_site): New field tail_call_next.
2202 (TYPE_TAIL_CALL_LIST): New definition.
2204 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 Implement basic support for DW_TAG_GNU_call_site.
2207 * block.c: Include gdbtypes.h and exceptions.h.
2208 (call_site_for_pc): New function.
2209 * block.h (call_site_for_pc): New declaration.
2210 * defs.h: Include hashtab.h.
2211 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2213 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2214 ctx_no_push_dwarf_reg_entry_value.
2215 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2216 (dwarf_block_to_dwarf_reg): New function.
2217 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2218 (ctx_no_push_dwarf_reg_entry_value): New function.
2219 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2220 push_dwarf_reg_entry_value.
2221 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2223 * dwarf2loc.c: Include gdbcmd.h.
2224 (dwarf_expr_ctx_funcs): New forward declaration.
2225 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2226 (dwarf_expr_reg_to_entry_parameter)
2227 (dwarf_expr_push_dwarf_reg_entry_value): New.
2228 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2229 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2230 (needs_dwarf_reg_entry_value): New function.
2231 (needs_frame_ctx_funcs): Install it.
2232 (_initialize_dwarf2loc): New function.
2233 * dwarf2loc.h (entry_values_debug): New declaration.
2234 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2235 (read_call_site_scope): New forward declaration.
2236 (process_full_comp_unit): Copy call_site_htab.
2237 (process_die): Support DW_TAG_GNU_call_site.
2238 (read_call_site_scope): New function.
2239 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2240 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2241 (cleanup_htab): Delete.
2242 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2243 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2244 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2245 FIELD_LOC_KIND_DWARF_BLOCK.
2246 * gdbtypes.h (enum field_loc_kind): New entry
2247 FIELD_LOC_KIND_DWARF_BLOCK.
2248 (struct main_type): New loc entry dwarf_block.
2249 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2250 (TYPE_FIELD_DWARF_BLOCK): New.
2251 * python/py-type.c: Include dwarf2loc.h.
2252 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2253 internal_error call on unknown FIELD_LOC_KIND.
2254 * symtab.h (struct symtab): New field call_site_htab.
2255 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2256 (core_addr_hash, core_addr_eq): New functions.
2258 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2262 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2263 calling_convention under func_stuff there.
2264 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2265 (init_type) <TYPE_CODE_FUNC>: Likewise.
2266 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2267 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2268 * gdbtypes.h (enum type_specific_kind): Change
2269 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2270 (struct main_type) <type_specific>: Change calling_convention to
2271 func_stuff. Move calling_convention to ...
2272 (struct func_type): ... this new struct.
2273 (INIT_FUNC_SPECIFIC): New #define.
2274 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2276 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2278 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2279 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2280 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2281 ctx->ref_addr_size. Handle its invalid value.
2282 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2283 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2284 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2285 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2286 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2287 (dwarf2_per_cu_ref_addr_size): New function.
2289 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 * dwarf2read.c (per_cu_header_read_in): New function.
2293 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2294 variables cu_header_local and cu_headerp.
2296 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2298 Fix initial language detection with -readnow.
2299 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2300 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2301 searches only for global symbols.
2303 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2305 Fix printed anonymous struct name.
2306 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2307 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2308 (anonymous_struct_prefix): New function.
2309 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2310 (dwarf2_name): Strip for anonymous structs any prefixes.
2312 2011-10-07 Doug Evans <dje@google.com>
2314 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2317 * python/lib/gdb/printing.py: Whitespace cleanup.
2319 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2322 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2324 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2325 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2326 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2327 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2328 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2329 (arm_linux_remove_watchpoint): Adjust.
2330 * i386-linux-nat.c (i386_linux_dr_set_control)
2331 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2332 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2333 (ia64_linux_remove_watchpoint): Adjust.
2334 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2335 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2336 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2337 (ppc_linux_insert_mask_watchpoint)
2338 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2339 (ppc_linux_remove_watchpoint): Adjust.
2340 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2343 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2345 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2346 (clear_win32_environment): New function for Cygwin to clear out
2348 (windows_create_inferior): Prepare new environment from in_env
2351 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2354 * python/py-value.c (valpy_call): Check that arguments are
2356 (is_intlike): Remove call to CHECK_TYPEDEF.
2357 (valpy_nonzero): Catch GDB exceptions.
2358 (valpy_absolute): Ditto.
2359 (valpy_lazy_string): Ditto.
2360 (valpy_call): Ditto.
2361 (valpy_get_is_optimized_out): Ditto.
2362 (valpy_long): Ditto.
2363 (valpy_float): Ditto.
2364 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2365 (valpy_richcompare): Ditto.
2367 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2369 * inferior.h (disable_randomization): Declare.
2370 * infrun.c (disable_randomization): New global variable.
2371 (show_disable_randomization): New function.
2372 (set_disable_randomization): Likewise.
2373 (_initialize_infrun): Install set/show disable-randomization
2375 * linux-nat.c (disable_randomization): Remove.
2376 (show_disable_randomization): Likewise.
2377 (set_disable_randomization): Likewise.
2378 (_initialize_linux_nat): No longer install set/show
2379 disable-randomization commands here.
2380 (linux_nat_supports_disable_randomization): New function.
2381 (linux_nat_add_target): Install it.
2382 * remote.c (PACKET_QDisableRandomization): New enum value.
2383 (remote_protocol_packets): Support QDisableRandomization.
2384 (_initialize_remote): Likewise.
2385 (remote_supports_disable_randomization): New function.
2386 (init_remote_ops): Install it.
2387 (extended_remote_supports_disable_randomization): New function.
2388 (init_extended_remote_ops): Install it.
2389 (extended_remote_disable_randomization): New function.
2390 (extended_remote_create_inferior_1): Call it.
2391 * target.h (struct target_ops): Add to_supports_disable_randomization.
2392 (target_supports_disable_randomization): Add prototype.
2393 * target.c (target_supports_disable_randomization): New function.
2394 (find_default_supports_disable_randomization): Likewise.
2395 (init_dummy_target): Install it.
2397 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2399 Allow Python notification of new object-file loadings.
2400 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2401 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2402 Add build rule for this file.
2403 * python/py-event.h (emit_new_objfile_event): New prototype.
2404 (newobjfile): New Python event emitter.
2405 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2406 Python event registry.
2407 * python/py-inferior.c: Include objfiles.h
2408 (python_new_objfile): New function.
2409 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2411 * python/py-newobjfileevent.c: New file.
2412 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2414 * python/python.c (_initialize_python): Add
2415 gdbpy_initialize_new_objfile_event call.
2416 * NEWS: Add item for new Python event "gdb.newobjfile"
2418 2011-10-05 Tristan Gingold <gingold@adacore.com>
2420 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2421 Extract the ravenscar task name from the symbol for the atcb.
2423 2011-10-04 Paul Koning <paul_koning@dell.com>
2425 * python/py-type.c (typy_make_iter): Add forward declaration.
2426 (typy_fields_items): Use the gdb.Type iterator.
2428 2011-10-04 Paul Koning <paul_koning@dell.com>
2430 * NEWS: Add entry for Python gdb.Type mapping methods.
2432 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2434 PR python/12691: Add the inferior to Python exited event
2435 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2437 * python/py-event.h (emit_exited_event): Likewise
2438 * python/-inferior.c (python_inferior_exit): Likewise
2440 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2442 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2443 in output of -ada-task-info GDB/MI command.
2445 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2447 * ada-lang.h (struct inferior): Declare.
2448 (print_ada_task_info): Add declaration.
2449 * ada-tasks.c (print_ada_task_info): Make non-static.
2450 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2451 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2452 * mi/mi-main.c: #include "ada-lang.h".
2453 (mi_cmd_list_features): Add "ada-task-info" to the list
2454 of supported features.
2455 (mi_cmd_ada_task_info): New function.
2457 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2459 * python/python.c (python_run_simple_file): New function.
2460 (source_python_script, source_python_script_for_objfile):
2461 Replace call to PyRun_SimpleFile by call to
2462 python_run_simple_file.
2464 2011-10-03 Paul Koning <paul_koning@dell.com>
2466 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2467 (value_to_value_object): Fetch value if it was lazy.
2469 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2472 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2473 Rearrange the code for it.
2475 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2477 * breakpoint.c (bkpt_print_recreate): Add call to
2478 print_recreate_thread.
2480 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2482 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2483 PTRACE_GETFDPIC_INTERP): Define.
2485 2011-09-28 Yao Qi <yao@codesourcery.com>
2487 * symfile.c (add_symbol_file_command): Update message on usage.
2489 2011-09-28 Paul Koning <paul_koning@dell.com>
2491 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2492 (typy_length, typy_get, typy_has_key, typy_make_iter)
2493 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2494 (typy_iterator_iter, typy_iterator_iternext)
2495 (typy_iterator_dealloc): New functions to implement standard
2496 Python mapping methods on gdb.Type object.
2497 (gdb.TypeIterator): New Python type.
2498 * python/python-internal.h (gdbpy_iter_kind): New enum.
2500 2011-09-28 David S. Miller <davem@davemloft.net>
2502 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2503 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2504 * sparc-tdep.c (sparc_complex_floating_p): New function.
2505 (sparc32_store_arguments): Handle complex floats.
2506 (sparc32_extract_return_value): Likewise.
2507 (sparc32_store_return_value): Likewise.
2508 (sparc32_stabs_argument_has_addr): Likewise.
2509 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2510 (sparc64_store_floating_fields): Handle complex floats.
2511 (sparc64_store_arguments): Likewise.
2512 (sparc64_store_return_value): Likewise.
2514 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2516 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2517 before the change on 2006-12-09.
2518 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2519 generates the environment block for CreateProcessA, modulo the
2520 Cygwin-specific parts that are not needed here.
2522 2011-09-27 Tristan Gingold <gingold@adacore.com>
2524 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2525 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2526 (darwin_solib_get_all_image_info_addr_at_init): New function.
2527 (darwin_solib_read_all_image_info_addr): Likewise.
2528 (darwin_solib_create_inferior_hook): Use the above two functions.
2529 * darwin-nat.c (darwin_execvp): Renames retval to res.
2530 (darwin_read_write_inferior): Update comment.
2531 (darwin_read_dyld_info): New function.
2532 (darwin_xfer_partial): Handle DYLD_INFO.
2534 2011-09-27 Stan Shebs <stan@codesourcery.com>
2536 Add return address collection for tracepoints.
2537 * tracepoint.c (encode_actions_1): Add case for $_ret.
2538 (validate_actionline): Check for $_ret.
2539 (trace_dump_actions): Ditto.
2540 * ax-gdb.h (gen_trace_for_return_address): Declare.
2541 * ax-gdb.c: Include arch-utils.h.
2542 (gen_trace_for_return_address): New function.
2543 (agent_command): Add return address special case.
2544 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2545 (amd64_gen_return_address): New function.
2546 (amd64_init_abi): Call it.
2547 * i386-tdep.c: Include ax.h and ax-gdb.h.
2548 (i386_gen_return_address): New function.
2549 (i386_init_abi): Call it.
2550 * arch-utils.h (default_gen_return_address): Declare.
2551 * arch-utils.c (default_gen_return_address): New function.
2552 * gdbarch.sh (gen_return_address): New method.
2553 * gdbarch.h, gdbarch.c: Regenerate.
2555 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2558 * i386-tdep.c (i386_frame_align): New.
2559 (i386_gdbarch_init): Use i386_frame_align.
2561 2011-09-23 Yao Qi <yao@codesourcery.com>
2563 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2566 2011-09-22 Tristan Gingold <gingold@adacore.com>
2568 * fork-child.c (fork_inferior): Add exec_fun parameter.
2569 Call exec_fun or execvp.
2570 * inferior.h: Adjust prototype.
2571 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2572 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2573 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2574 * procfs.c (procfs_create_inferior): Ditto.
2575 * darwin-nat.c (darwin_execvp): New function.
2576 (darwin_create_inferior): Use it.
2578 2011-09-22 Yao Qi <yao@codesourcery.com>
2580 * infrun.c (context_switch): Print debug message when switching to
2583 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2585 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2586 complex and vector types.
2587 (s390_return_value_convention): Likewise.
2589 (s390_value_from_register): Call check_typedef.
2590 (extend_simple_arg): Likewise.
2591 (alignment_of): Likewise.
2592 (s390_push_dummy_call): Likewise.
2593 (s390_return_value): Likewise.
2595 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2597 * event-top.c (async_disconnect): If an exception is thrown from
2598 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2600 * top.c (quit_cover): Return void and take no arguments.
2601 * top.h (quit_cover): Update prototype.
2603 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2605 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2606 current_uiout, not uiout.
2608 2011-09-19 Doug Evans <dje@google.com>
2610 * python/py-auto-load.c (source_section_scripts): Fix file
2612 * python/python.c (source_python_script_for_objfile): Tweak comments.
2614 2011-09-18 Yao Qi <yao@codesourcery.com>
2615 Ulrich Weigand <ulrich.weigand@linaro.org>
2617 Support displaced stepping for Thumb 16-bit insns.
2618 * arm-tdep.c (THUMB_NOP) Define.
2619 (thumb_copy_unmodified_16bit): New.
2620 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2621 (thumb_copy_alu_reg): New.
2622 (arm_copy_svc): Move some common code to ...
2623 (install_svc): ... here. New.
2624 (thumb_copy_svc): New.
2625 (install_pc_relative): New.
2626 (thumb_copy_pc_relative_16bit): New.
2627 (thumb_decode_pc_relative_16bit): New.
2628 (thumb_copy_16bit_ldr_literal): New.
2629 (thumb_copy_cbnz_cbz): New.
2630 (cleanup_pop_pc_16bit_all): New.
2631 (thumb_copy_pop_pc_16bit): New.
2632 (thumb_process_displaced_16bit_insn): New.
2633 (thumb_process_displaced_32bit_insn): New.
2634 (thumb_process_displaced_insn): process thumb instruction.
2636 Support displaced stepping for Thumb 32-bit insns.
2637 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2638 (thumb2_copy_preload): New.
2639 (thumb2_copy_copro_load_store): New.
2640 (thumb2_copy_b_bl_blx): New.
2641 (thumb2_copy_alu_imm): New.
2642 (thumb2_copy_load_reg_imm): New.
2643 (thumb2_copy_load_literal): New
2644 (thumb2_copy_block_xfer): New.
2645 (thumb_32bit_copy_undef): New.
2646 (thumb_32bit_copy_unpred): New.
2647 (thumb2_decode_ext_reg_ld_st): New.
2648 (thumb2_decode_svc_copro): New.
2649 (decode_thumb_32bit_store_single_data_item): New.
2650 (thumb_copy_pc_relative_32bit): New.
2651 (thumb_decode_pc_relative_32bit): New.
2652 (decode_thumb_32bit_ld_mem_hints): New.
2653 (thumb2_copy_table_branch): New
2654 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2657 2011-09-18 Yao Qi <yao@codesourcery.com>
2659 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2660 (install_b_bl_blx): Likewise.
2662 2011-09-17 Yao Qi <yao@codesourcery.com>
2664 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2665 (install_load_store): ... this. New.
2666 Change parameter BYTE to SIZE.
2667 (arm_copy_ldr_str_ldrb_strb): Update caller.
2668 (arm_decode_ld_st_word_ubyte): Update caller.
2670 2011-09-17 Yao Qi <yao@codesourcery.com>
2672 * infrun.c (displaced_step_fixup): Move some code ...
2673 (displaced_step_restore): ... here. New function.
2674 (handle_inferior_event): Cleanup displaced stepping state for both
2675 child and parent when get forked or vforked event.
2676 * regcache.c (get_thread_arch_aspace_regcache): New function.
2677 get_thread_arch_regcache (): Call it.
2679 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2681 * ada-tasks.c (print_ada_task_info): New function, merging
2682 short_task_info and info_tasks together. Reimplement using
2683 ui-out instead of printing to stdout directly. Move the code
2684 building and checking the task list here, instead of leaving it
2685 in info_tasks_command.
2686 (info_task): Move the code building and checking the task
2687 list here, instead of leaving it in info_tasks_command.
2688 (info_tasks_command): Delete code building and checking
2689 the task list - moved elsewhere. Update calls to info_tasks
2692 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2694 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2696 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2698 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2700 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2702 * ada-lang.h (ada_build_task_list): Remove parameter
2704 * ada-tasks.c (ada_build_task_list): Remove parameter
2705 `warn_if_null'. Adjust implementation and documentation.
2706 (valid_task_id, ada_get_environment_task)
2707 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2708 (info_tasks_command): Adjust implementation.
2709 (task_command): Likewise.
2710 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2711 to ada_build_task_list.
2713 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2715 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2716 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2717 (ada_tasks_inferior_data_handle): New static global.
2718 (get_ada_tasks_inferior_data): New function.
2719 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2720 (ada_get_environment_task, iterate_over_live_ada_tasks)
2721 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2723 (ada_set_current_inferior_known_tasks_addr): New function.
2724 (read_known_tasks, ada_build_task_list, short_task_info)
2725 (info_tasks, info_task, info_tasks_command, task_command_1)
2726 (task_command, ada_task_list_changed): Adjust.
2727 (ada_tasks_invalidate_inferior_data): New function.
2728 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2729 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2730 * ada-lang.h (struct inferior): Add declaration.
2731 (ada_task_list_changed): Update profile.
2732 * remote-wtx-pd.c: #include "inferior.h".
2733 (switch_to_pd_internal): Update call to ada_task_list_changed.
2735 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2737 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2738 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2739 (atcb_fieldno): Delete these static globals.
2740 (struct ada_tasks_pspace_data): New struct.
2741 (ada_tasks_pspace_data_handle): New static global.
2742 (get_ada_tasks_pspace_data): New function.
2743 (ada_tasks_invalidate_pspace_data): New function.
2744 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2745 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2746 (_initialize_tasks): Create this module's per-progspace
2749 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2751 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2753 2011-09-16 Tristan Gingold <gingold@adacore.com>
2755 * fork-child.c (fork_inferior): Update comment. Use alloca
2756 instead of xmalloc for argv. Move len and shell_command
2757 declarations in the block where they are used.
2758 Only call execvp. Factorize failure code.
2760 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2763 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2764 `exp_element' instead of an element of the same and make the function
2766 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2767 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2768 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2769 Change argument of `write_exp_elt' function call.
2770 Remove extra spaces from comments.
2771 * parser-defs.h (write_exp_elt): Remove prototype.
2773 2011-09-15 Paul Koning <paul_koning@dell.com>
2775 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2776 count of item appended to list.
2777 * python/py-type.c (typy_fields): Likewise.
2779 2011-09-15 Paul Koning <paul_koning@dell.com>
2781 * MAINTAINERS (Write After Approval): Add myself to the list.
2783 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2786 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2787 processes with multiple threads.
2788 (inf_has_multiple_thread_cb): New function.
2789 (inf_has_multiple_threads): New function.
2791 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2793 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2794 * python/py-inferior.c (GdbMethods): New Python method definition.
2796 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2798 Handle multiple breakpoint hits in Python interface:
2799 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2800 variable to breakpoints.
2801 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2802 bps instead of single breakpoint. Fix some space typos.
2803 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2804 variable to breakpoints.
2806 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2808 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2809 note if the breakpoint is internal.
2811 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2813 * MAINTAINERS (Write After Approval): Add myself to the list
2815 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2817 * infrun.c (prepare_for_detach, wait_for_inferior)
2818 (fetch_inferior_event): Don't flush the register cache.
2819 * remote.c (struct stop_reply) <regcache>: Add comment.
2821 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2823 Remove excessive DWARF expressions memory duplication.
2824 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2826 (indirect_pieced_value): Remove variable result. Remove variable
2827 back_to and its use for baton.data.
2828 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2830 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2831 Update the function comment.
2833 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2835 * inferior.h (ALL_INFERIORS): New.
2836 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2837 for a stopped thread.
2838 (thread_db_find_new_threads): Look for threads in all inferiors.
2840 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2842 * breakpoint.c (update_watchpoint): Handle the case of the
2843 watchpoint to update not being in the breakpoint list yet.
2844 (hw_watchpoint_use_count): New, factored out from
2845 hw_watchpoint_used_count.
2846 (hw_watchpoint_used_count): Rename to ...
2847 (hw_watchpoint_used_count_others): ... this. Add `except'
2848 parameter. Don't count resources of `except'. Use
2849 hw_watchpoint_use_count.
2851 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2853 * gdbthread.h (enum thread_state): Moved here.
2854 (struct thread_info): Rename `executing_' field to `executing' and
2855 `state_' to `state'.
2856 * thread.c (enum thread_state): Moved to gdbthread.h.
2857 (new_thread, add_thread_silent, delete_thread_1)
2858 (any_live_thread_of_process, thread_alive, set_running)
2859 (set_running, is_thread_state, any_running, is_executing)
2860 (set_executing, finish_thread_state, print_thread_info)
2861 (do_captured_thread_select): Adjust.
2863 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2865 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2866 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2868 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2869 Matt Rice <ratmice@gmail.com>
2873 * interps.c (struct interp) <interpreter_out>: Delete field.
2874 (interp_new): Remove the data and uiout parameters and adjust.
2875 (interp_set): Only set the current_uiout from the interpreter's
2876 uiout after initializing the interpreter. Adjust call to
2878 (interp_ui_out): Adjust to call procs->ui_out_proc.
2879 (interp_data, interp_name): New.
2880 * interps.h (interp_init_ftype): Add `self' parameter.
2881 (interp_ui_out_ftype): New typedef.
2882 (struct interp_procs) <ui_out_proc>: New method pointer.
2883 (interp_new): Remove the data and uiout parameters.
2884 (interp_data, interp_name): Declare.
2885 * tui/tui-interp.c (tui_init): Adjust prototype.
2887 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2888 tui_out here. Adjust call to interp_new.
2889 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2890 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2892 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2893 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2894 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2895 Initialize mi->uiout depending on the mi_version as extracted from
2896 the interpreter's name.
2898 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2899 interp_new. Don't allocate the ui_out's of the interpreters here.
2901 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2903 * solib.c (solib_used): New function.
2904 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2905 by another so_list object before freeing it.
2907 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2913 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2916 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2917 (amd64_skip_xmm_prologue): ... this new function. Describe its
2918 parameters. No longer use amd64_prologue_line_bug.
2919 * defs.h (producer_is_gcc_ge_4): New declaration.
2920 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2921 (process_full_comp_unit): Update its caller. Remove
2922 amd64_prologue_line_bug initialization.
2923 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2924 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2926 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2928 * linux-nat.h (enum resume_kind): New.
2929 (struct lwp_info) <last_resume_kind>: New field.
2930 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2931 resume_stop on the new lwp.
2932 (add_lwp): Set last_resume_kind as resume_continue by default.
2933 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2934 (resume_lwp): New, factored out from resume_callback. Also check
2935 for pending status in lp->waitstatus.
2936 (resume_callback): Reimplement.
2937 (resume_clear_callback): Set last_resume_kind as resume_stop.
2938 (resume_set_callback): Set last_resume_kind as resume_continue.
2939 (linux_nat_resume, linux_handle_extended_wait): Set
2941 (running_callback): Also check lp->waitstatus for pending events.
2942 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2944 (stop_and_resume_callback): Don't re-resume if the core wanted the
2945 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2946 using an invalidated pointer.
2947 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2948 SIGSTOPs if the core wanted the LWP to stop.
2949 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2950 wanted the lwp to stop. If the core wanted the lwp to stop, and
2951 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2952 of TARGET_SIGNAL_STOP.
2953 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2954 here. Instead, signal the lwp, and set the last_resume_kind to
2957 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2959 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2960 -1 (error), if the lwp exits right after attaching.
2962 2011-09-08 Doug Evans <dje@google.com>
2964 * py-cmd.c: Some minor formatting fixes.
2965 (gdbpy_parse_command_name): Rename text arg to name, make const.
2966 All callers updated.
2967 * python-internal.h (gdbpy_parse_command_name): Update.
2969 * cli/cli-decode.c (add_cmd): Add comment.
2971 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2973 PR breakpoints/12435
2974 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2975 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2976 * dwarf2read.c (process_full_comp_unit): Initialize
2977 amd64_prologue_line_bug.
2978 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2980 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 Fix TUI screen corruption.
2983 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2986 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2988 * findvar.c (read_var_value): Never return NULL, throw an error
2989 instead. Update the function comment. State symbol name in the error
2991 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2993 * stack.c (print_frame_args): Likewise.
2994 * valops.c (value_of_variable): Likewise.
2996 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2998 * stack.c (print_frame_args): New variable except. Wrap
2999 read_var_value and common_val_print into TRY_CATCH.
3001 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3003 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3004 caller to value_of_this.
3005 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3007 * valops.c (value_of_this): Remove parameter complain and variable ret.
3008 Update function comment. Never return NULL by this code.
3009 (value_of_this_silent): New function.
3010 * value.h (value_of_this): Remove parameter complain.
3011 (value_of_this_silent): New declaration.
3013 2011-09-07 Yao Qi <yao@codesourcery.com>
3015 * gdbthread.h (struct thread_info): Remove fields
3016 `stepping_through_solib_after_catch' and
3017 `stepping_through_solib_catchpoints'.
3018 * infrun.c (init_thread_stepping_state): Update.
3019 (process_event_stop_test, currently_stepping): Update.
3020 (currently_stepping_or_nexting_callback): Update.
3022 2011-09-07 Yao Qi <yao@codesourcery.com>
3024 * gdbthread.h (struct thread_info): Comment on field
3025 `step_after_step_resume_breakpoint'.
3027 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3029 * remote.c (remote_console_output): Reindent.
3031 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3033 * frame.c (has_stack_frames): Check for currently selected
3036 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3038 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3039 (set_async_annotation_level, set_async_prompt, pop_prompt)
3040 (push_prompt, new_async_prompt): Delete declarations.
3041 * top.h (get_prompt, set_prompt): Change prototype.
3042 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3044 * top.c (command_loop):
3045 (top_prompt): New global.
3046 (get_prefix, set_prefix, get_suffix, ): Delete.
3047 (get_prompt, set_prompt): Rewrite.
3048 (show_new_async_prompt): Rename to ...
3049 (show_prompt): ... this.
3050 (init_main): Adjust. Don't handle --annotate=2 here.
3051 * event-top.c (new_async_prompt): Delete.
3052 (the_prompts): Delete.
3053 (more_to_come): Make static.
3054 (display_gdb_prompt): Use top_level_prompt() to compute the top
3055 level prompt, and don't notify the before_prompt observers
3056 directly here. Always trick readline into not trying to display
3057 the prompt if sync_execution and displaying the primary prompt.
3058 If displaying a local/secondary prompt, always show it, even if
3059 sync_execution is set.
3060 (change_annotation_level): Delete.
3061 (top_level_prompt): New, based on change_annotation_level.
3062 (push_prompt, pop_prompt): Delete.
3063 (async_disable_stdin): No longer pushes prompt.
3064 (command_line_handler): No longer pushes or pops prompt. If more
3065 input is expected, call display_gdb_prompt with an explicit empty
3067 (async_stop_sig): Adjust.
3068 (set_async_annotation_level, set_async_prompt): Delete.
3069 * python/python.c (before_prompt_hook): Adjust.
3071 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3075 * infrun.c (fetch_inferior_event): Check if there's a selected
3076 thread before checking if the selected thread is executing.
3078 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3080 * inf-loop.c (execute_command): Don't check if the current thread
3081 if running before synchronously waiting for command completion.
3082 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3084 (normal_stop): Call async_enable_stdin here.
3085 * inf-loop.c (inferior_event_handler): Don't call
3086 async_enable_stdin, nor handle "set exec-done-display" here.
3088 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3092 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3094 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3096 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3098 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3100 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3102 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3104 2011-09-02 Matt Rice <ratmice@gmail.com>
3107 * event-top.c (cli_command_loop): Replace readline setup with
3108 direct call to display_gdb_prompt.
3109 (display_gdb_prompt): Do not call observer mechanism during
3110 synchronous execution.
3112 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3114 * linux-nat.c (in_pid_list_p): New.
3115 (linux_record_stopped_pid): Delete.
3116 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3117 already attached to the LWP. Return an indication if so.
3118 (linux_nat_filter_event): Adjust.
3119 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3120 returning an indication to ignore this thread.
3122 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3124 * top.c: Include interps.h.
3125 (execute_command): If the target can async, but the interpreter is
3126 in sync mode, synchronously wait for the command to finish before
3128 (execute_command_to_string): Force the interpreter to sync mode.
3129 * infrun.c: Include interps.h.
3130 (fetch_inferior_event): Don't restore the prompt yet if the
3131 interpreter is in sync mode.
3132 * interps.c (interpreter_async): New global.
3133 * interps.h (interpreter_async): Declare.
3134 * inf-loop.c: Include interps.h.
3135 (inferior_event_handler): Don't print the language change or run
3136 breakpoint commands yet if the interpreter in is sync mode.
3137 * main.c (captured_command_loop): Flip the interpreter to async
3139 * cli/cli-script.c: Include interps.h.
3140 (execute_user_command, while_command, if_command): Force the
3141 interpreter to sync mode.
3142 * python/python.c: Include interps.h.
3143 (python_command, execute_gdb_command): Force the interpreter to
3146 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3148 * value.c (show_convenience): Catch errors thrown while printing
3149 each internal variable.
3150 * infrun.c (validate_siginfo_access): New function.
3151 (siginfo_value_read, siginfo_value_write): Call it.
3153 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3156 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3157 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3160 2011-08-29 Yao Qi <yao@codesourcery.com>
3162 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3164 (enable_break2): Update caller.
3165 * solib-frv.c (bfd_lookup_symbol): Removed.
3167 (enable_break2): Update caller.
3168 * solib-pa64.c (bfd_lookup_symbol): Removed.
3170 * solib-svr4.c (bfd_lookup_symbol): Removed.
3171 (cmp_name_and_sec_flags): New.
3172 (enable_break): Update caller.
3173 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3174 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3175 (gdb_bfd_lookup_symbol): New.
3176 * solib.h: Functions declarations.
3178 2011-08-29 Yao Qi <yao@codesourcery.com>
3180 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3183 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3185 Fix TUI stepi on code without symbols.
3186 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3189 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3192 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3193 and the static keyword.
3194 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3195 Make prefix an array.
3196 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3197 * mi/mi-main.c (get_register): Remove stb initialization and the static
3200 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3202 Code cleanup - make mi_opt const.
3203 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3205 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3206 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3207 (mi_cmd_env_dir): Likewise.
3208 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3209 (mi_cmd_target_file_put): Likewise.
3210 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3211 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3212 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3213 (mi_valid_noargs): Make opts const.
3214 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3215 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3216 (mi_cmd_data_read_memory): Likewise.
3217 (mi_cmd_data_read_memory_bytes): Likewise.
3218 (mi_cmd_data_write_memory): Likewise.
3220 2011-08-26 Matt Rice <ratmice@gmail.com>
3222 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3223 bcache_xmalloc, replace bcache_xmalloc with call to
3224 psymbol_bcache_init for psymbol_cache.
3225 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3227 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3229 * inf-loop.c (inferior_event_handler): Add exception_print in
3232 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3235 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3236 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3237 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3238 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3239 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3240 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3241 * infrun.c (fetch_inferior_event): Call
3242 make_bpstat_clear_actions_cleanup.
3243 * top.c (execute_command): New variable cleanup_if_error, call
3244 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3245 * utils.c (do_bpstat_clear_actions_cleanup)
3246 (make_bpstat_clear_actions_cleanup): New functions.
3248 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3250 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3251 either the parent or the child forks. Rename a couple locals.
3253 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3255 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3256 library call. Avoid reading the `status' local if all waitpid
3259 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3261 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3262 opening /proc/PID/task always succeeds.
3264 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3266 * linespec.c (symtab_from_filename): Check for the end of string.
3268 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3271 * varobj.c (cplus_describe_child): Add the keyword
3272 'class' to the output of the method when dealing
3273 with a cast to a base class.
3275 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3277 No functionality change.
3278 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3279 function comment a reference, new variables tp and bs, move here code
3280 from throw_exception.
3281 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3282 describe it in the comment.
3283 * exceptions.c (throw_exception): Remove variable tp, move the code for
3284 bpstat_clear_actions to bpstat_clear_actions.
3286 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3288 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3289 * linux-nat.c: Include linux-procfs.h.
3290 (linux_proc_get_tgid): Move to ...
3291 * common/linux-procfs.c: ... here. New file.
3292 * common/linux-procfs.h: New file.
3293 * linux-thread-db.c: Include linux-procfs.h.
3294 * Makefile.in: Update dependencies.
3295 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3296 * config/arm/linux.mh: Likewise.
3297 * config/i386/linux.mh: Likewise.
3298 * config/i386/linux64.mh: Likewise.
3299 * config/ia64/linux.mh: Likewise.
3300 * config/m32r/linux.mh: Likewise.
3301 * config/m68k/linux.mh: Likewise.
3302 * config/mips/linux.mh: Likewise.
3303 * config/pa/linux.mh: Likewise.
3304 * config/pa/linux.mh: Likewise.
3305 * config/powerpc/linux.mh: Likewise.
3306 * config/powerpc/ppc64-linux.mh: Likewise.
3307 * config/powerpc/spu-linux.mh: Likewise.
3308 * config/sparc/linux.mh: Likewise.
3309 * config/sparc/linux64.mh: Likewise.
3310 * config/xtensa/linux.mh: Likewise.
3312 2011-08-24 Hui Zhu <teawater@gmail.com>
3314 * tracepoint.c (cond_string_is_same): New function.
3315 (find_matching_tracepoint): Add condition check
3316 by cond_string_is_same.
3318 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3320 Fix build error in Darwin port.
3321 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3323 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3326 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3327 (command_line_is_silent): New function.
3328 (bpstat_do_actions_1): No longer use commands_left, use
3329 command_line_is_silent for commands.
3330 (bpstat_alloc): Remove clearing of commands_left.
3331 (bpstat_stop_status): Remove initialization of commands_left, use
3332 command_line_is_silent.
3333 * breakpoint.h (struct bpstats): Remove commands_left.
3335 2011-08-18 Keith Seitz <keiths@redhat.com>
3338 * cp-name-parser.y (struct demangle_info): Remove unused
3341 (allocate_info): Change return type to struct demangle_info *.
3342 Always allocate a new demangle_info.
3343 Remove unused PREV pointer.
3344 (cp_new_demangle_parse_info): New function.
3345 (cp_demangled_name_parse_free): New function.
3346 (do_demangled_name_parse_free_cleanup): New function.
3347 (make_cleanup_cp_demangled_name_parse_free): New function.
3348 (cp_demangled_name_to_comp): Change return type to
3349 struct demangle_parse_info *.
3350 Allocate a new storage for each call.
3351 (main): Update usage for cp_demangled_name_to_comp
3353 * cp-support.h (struct demangle_parse_info): New structure.
3354 (cp_demangled_name_to_comp): Update API change for
3356 (cp_new_demangle_parse_info): Declare.
3357 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3358 (cp_demangled_name_parse_free): Declare.
3359 * cp-support.c (cp_canonicalize_string): Update API
3360 change for cp_demangled_name_to_comp.
3361 (mangled_name_to_comp): Likewise.
3362 Return struct demangle_parse_info, too.
3363 (cp_class_name_from_physname): Update mangled_name_to_comp
3365 (method_name_from_physname): Likewise.
3366 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3367 (cp_remove_params): Likewise.
3368 * python/py-type.c (typy_legacy_template_argument): Likewise.
3370 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3371 (cp_merge_demangle_parse_infos): Declare.
3372 * cp-support.c (ignore_typedefs): New file global.
3373 (copy_string_to_obstack): New function.
3374 (inspect_type): New function.
3375 (replace_typedefs): New function.
3376 (replace_typedefs_qualified_name): New function.
3377 (cp_canonicalize_string_no_typedefs): New function.
3378 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3379 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3380 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3381 instead of cp_canonicalize_string.
3382 (find_method): Likewise.
3383 (decode_compound): Before looking up the name, call
3384 cp_canonicalize_string_no_typedefs.
3385 (decode_variable): Likewise.
3387 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3388 Tom Tromey <tromey@redhat.com>
3389 Matt Rice <ratmice@gmail.com>
3391 * python/lib/gdb/prompt.py: New file.
3392 * python/lib/gdb/command/prompt.py: New file.
3393 * NEWS: Document set extended-prompt and gdb.prompt library
3395 2011-08-16 Yao Qi <yao@codesourcery.com>
3397 * tic6x-linux-tdep.c: Move const arrays definition from here...
3398 * tic6x-tdep.c: to here ...
3400 2011-08-14 Yao Qi <yao@codesourcery.com>
3402 * NEWS: New port to Texas Instruments TMS320C6x.
3404 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3405 Bernd Schmidt <bernds@codesourcery.com>
3406 Yao Qi <yao@codesourcery.com>
3408 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3409 * solib-dsbt.c: New file. Support DSBT shared object.
3410 * tic6x-linux-tdep.c: New file.
3411 * tic6x-tdep.c: New file.
3412 * tic6x-tdep.h: New file.
3414 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3415 Yao Qi <yao@codesourcery.com>
3417 * remote.c (PACKET_qXfer_fdpic): New enum value.
3418 (remote_protocol_features): Add qXfer:fdpic:read packet.
3419 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3420 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3421 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3423 2011-08-14 Yao Qi <yao@codesourcery.com>
3425 Target description for tic6x.
3426 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3427 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3428 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3429 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3430 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3431 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3432 * features/tic6x-c64xp-linux.xml: New.
3433 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3434 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3435 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3436 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3437 * regformats/tic6x-c64xp.dat,
3438 regformats/tic6x-c62x-linux.dat: Generated.
3439 * regformats/tic6x-c64x-linux.dat,
3440 regformats/tic6x-c64xp-linux.dat: Generated.
3441 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3442 features/tic6x-*.c files.
3443 Add regformats/tic6x-*.dat files.
3445 2011-08-12 Doug Evans <dje@google.com>
3447 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3448 * python/py-symbol.c (sympy_get_type): New function.
3449 (symbol_object_getset): Add "type".
3451 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3455 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3457 (tui_show_register_group): Don't store a byte buffer in the data
3459 (tui_register_format): Skip registers with an empty name.
3460 (tui_get_register): Store a struct value in the data element's
3461 value field instead of a byte buffer holding the raw register
3462 contents. Account for optimized-out and unavailable registers
3463 when comparing register contents.
3465 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3467 * printcmd.c (current_display_number): Update comment.
3468 (disable_current_display_cleanup): Delete.
3469 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3470 catch errors thrown while evaluating and printing the display.
3472 2011-08-09 Tom Tromey <tromey@redhat.com>
3474 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3476 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3478 * elfread.c (elf_symtab_read): Rework comments.
3479 * maint.c (maintenance_command): Ditto.
3480 * somread.c (som_symtab_read): Ditto.
3481 * solib.c (solib_find, solib_map_sections, update_solib_list)
3482 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3483 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3484 (sharedlibrary_command, no_shared_libraries): Ditto.
3485 * solib-irix.c (locate_base, disable_break, enable_break)
3486 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3487 (irix_current_sos, irix_open_symbol_file_object)
3488 (irix_special_symbol_handling): Ditto.
3489 * solib-sunos.c (locate_base, first_link_map_member)
3490 (sunos_current_sos, disable_break, enable_break)
3491 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3493 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3494 (open_symbol_file_object, svr4_current_sos, enable_break)
3495 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3497 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3498 (frv_current_sos, enable_break, frv_special_symbol_handling)
3499 (frv_solib_create_inferior_hook): Ditto.
3500 * solist.h (struct target_so_ops): Extend the comments of the
3501 special_symbol_handling, current_sos and open_symbol_file_object
3504 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3506 * python/lib/gdb/__init__.py: Auto-load files in command and
3507 function directories.
3508 * python/python.c (finish_python_initialization): Use
3510 * python/lib/gdb/command/pretty_printers.py: Self register
3512 * NEWS: Document auto-loading.
3514 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3516 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3517 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3518 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3520 2011-08-08 Tom Tromey <tromey@redhat.com>
3522 * breakpoint.c (clean_up_filters): Remove.
3523 (catch_syscall_split_args): Use VEC_cleanup.
3525 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3527 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3528 (main): Uncomment "Demangling error\n".
3530 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3532 * solib-target.c (segment_attributes): Make them static.
3533 (section_attributes, library_children, library_attributes): Likewise.
3534 (library_list_children, library_list_attributes): Likesise.
3535 (library_list_elements): Likewise.
3537 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3539 * exceptions.c (throw_exception): Don't disable the current
3541 * printcmd.c (disable_current_display_cleanup): New function.
3542 (do_one_display): Install a cleanup to disable the current display
3543 if doing the display throws.
3545 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3547 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3548 initialization of the tp_new member to the corresponding
3549 gdbpy_initialize_* function.
3550 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3551 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3552 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3553 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3554 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3556 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3558 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3559 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3560 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3561 references to current_uiout.
3563 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3565 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3566 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3567 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3568 * top.c (gdb_readline_wrapper): Adjust.
3569 * tui/tui-interp.c (tui_command_loop):
3570 (_initialize_tui_interp): Don't install it.
3572 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3574 * ui-out.h (uiout): Rename to ...
3575 (current_uiout): ... this.
3576 * ui-out.c (uiout): Rename to ...
3577 (current_uiout): ... this.
3578 * ada-lang.c (print_it_exception, print_one_exception)
3579 (print_mention_exception): Adjust.
3580 * breakpoint.c (watchpoint_check): Adjust.
3581 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3582 (default_collect_info, watchpoints_info, print_one_catch_fork)
3583 (print_one_catch_vfork, print_one_catch_syscall)
3584 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3585 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3586 (print_it_watchpoint, print_mention_watchpoint)
3587 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3588 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3589 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3590 (bkpt_print_mention, momentary_bkpt_print_it)
3591 (tracepoint_print_mention, update_static_tracepoint)
3592 (tracepoints_info, save_breakpoints): Adjust.
3593 * cli-out.c (field_separator): Adjust.
3594 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3595 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3596 * frame.c (get_current_frame): Adjust.
3597 * infcmd.c (run_command_1, print_return_value): Adjust.
3598 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3599 * infrun.c (print_end_stepping_range_reason): Adjust.
3600 (print_signal_exited_reason, print_exited_reason): Adjust.
3601 (print_signal_received_reason, print_no_history_reason): Adjust.
3602 * interps.c (interp_set): Adjust.
3603 * osdata.c (info_osdata_command): Adjust.
3604 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3605 * remote-fileio.c (remote_fileio_request): Adjust.
3606 * remote.c (show_remote_cmd): Adjust.
3607 * solib.c (info_sharedlibrary_command): Adjust.
3608 * source.c (print_source_lines_base): Adjust.
3609 * stack.c (print_stack_frame): Adjust.
3610 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3611 * symfile-mem.c (add_vsyscall_page): Adjust.
3612 * symfile.c (load_progress, generic_load)
3613 (print_transfer_performance): Adjust.
3614 * thread.c (info_threads_command, restore_selected_frame)
3615 (thread_command): Adjust.
3616 * top.c (make_cleanup_restore_ui_file): Adjust.
3617 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3618 (print_one_static_tracepoint_marker): Adjust.
3619 * cli/cli-cmds.c (print_disassembly): Adjust.
3620 * cli/cli-decode.c (print_doc_line): Adjust.
3621 * cli/cli-interp.c (safe_execute_command): Adjust.
3622 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3623 (handle_redirections): Adjust.
3624 * cli/cli-script.c (show_user_1): Adjust.
3625 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3626 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3627 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3628 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3629 (mi_cmd_env_dir): Adjust.
3630 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3631 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3632 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3633 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3634 (list_args_or_locals): Adjust.
3635 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3636 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3637 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3638 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3639 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3640 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3641 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3642 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3643 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3644 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3645 (list_available_thread_groups, mi_cmd_list_thread_groups)
3646 (mi_cmd_data_list_register_names)
3647 (mi_cmd_data_list_changed_registers)
3648 (mi_cmd_data_list_register_values, get_register)
3649 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3650 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3651 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3652 (mi_execute_command, mi_load_progress): Adjust.
3653 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3654 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3656 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3657 * tui/tui-interp.c (tui_command_loop): Adjust.
3658 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3660 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3662 * exceptions.c (struct catcher): Remove saved_uiout field.
3663 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3664 no longer save/resvore the global ui_out builder.
3665 (catch_exceptions_with_msg): Save/override/restore the global
3666 ui_out builder manually instead of relying on TRY_CATCH to do it.
3667 (catch_errors): Save/restore the global ui_out builder manually
3668 instead of relying on TRY_CATCH to do it.
3669 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3671 (TRY_CATCH): Adjust.
3672 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3673 the global ui_out builder manually instead of relying on TRY_CATCH
3676 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3678 * breakpoint.c (update_global_location_list): Ensure
3679 invariant 'first loc marked not duplicated and inserted,
3680 following locs marked duplicated/not inserted' is respected
3681 for multiple locations at the same address.
3682 (unduplicated_should_be_inserted) New function.
3683 (swap_insertion) New function.
3685 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * stack.c (print_frame_arguments_choices): Comment typo fix.
3689 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3692 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3693 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3694 argument. Update callers.
3696 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3699 * doublest.c (convert_doublest_to_floatformat): Pass correct
3700 mantissa length to put_field.
3702 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3705 exception_print code path.
3706 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3707 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3708 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3710 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3713 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3714 Remove, merge them into ...
3715 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3716 variable args and its initialization.
3717 (struct print_args_args, print_args_stub): Remove, merge them into
3719 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3721 (do_gdb_disassembly): ... here. Remove variable args and its
3723 (print_frame): Remove variable args and its initialization, new
3724 variable gdbarch and numargs (from print_args_stub), inline here
3725 print_args_stub with a TRY_CATCH.
3726 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3728 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3729 New variable e, remove variable btargs and its initialization.
3731 2011-08-01 Tristan Gingold <gingold@adacore.com>
3733 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3735 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3737 * breakpoint.c (insert_bp_location): Document return value.
3738 (insert_breakpoint_locations): Fix documentation.
3739 (remove_breakpoints): Add documentation.
3741 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3743 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3744 argument. Update callers.
3746 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3748 * stack.c (print_frame_info): Comment typo fix.
3750 2011-07-29 Sterling Augustine <saugustine@google.com>
3752 * MAINTAINERS (Write After Approval): Add myself to the list.
3754 2011-07-29 Tom Tromey <tromey@redhat.com>
3756 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3757 (library_list_start_segment): Update.
3758 (library_list_start_section): Update.
3760 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3762 * varobj.c (value_get_print_value): Move hint check later into the
3763 function. Comment function. Free thevalue before reusing it.
3765 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3766 Pedro Alves <pedro@codesourcery.com>
3768 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3770 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3771 Assert the result kind.
3772 * value.h (value_one): Remove parameter lv.
3774 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3776 Fix crash on lval_computed values.
3777 * valops.c (value_zero): Use not_lval for lval_computed.
3779 2011-07-27 Tom Tromey <tromey@redhat.com>
3781 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3782 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3784 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3786 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3787 "ptype" by their typedefs difference.
3789 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3791 * dwarf2expr.c (ctx_no_read_reg): New function.
3792 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3793 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3794 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3795 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3797 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3799 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3800 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3802 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3803 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3804 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3805 (ctx_no_get_base_type): Move the functions here.
3806 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3807 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3808 (ctx_no_get_base_type): New declarations.
3810 2011-07-27 Tom Tromey <tromey@redhat.com>
3812 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3814 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3815 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3817 2011-07-26 Sterling Augustine <saugustine@google.com>
3819 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3821 (dump_bfd_file): Likewise.
3823 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3825 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3826 (remote_hw_watchpoint_length_limit): New variable.
3827 (_initialize_remote) add set,show cmds for this new variable.
3828 * gdb.texinfo: document these new commands.
3829 * NEWS: Mention these new commands.
3831 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3833 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3834 true for software watchpoints.
3836 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3840 2011-07-26 Tom Tromey <tromey@redhat.com>
3842 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3843 * dwarf2read.c (read_indirect_string_at_offset): New function.
3844 (read_indirect_string): Use it.
3845 (dwarf_decode_macro_bytes): New function, taken from
3846 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3847 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3848 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3850 (struct dwarf2_per_objfile) <macro>: New field.
3851 (dwarf2_elf_names): Add .debug_macro.
3852 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3853 (dwarf2_locate_sections): Handle new section.
3854 (read_file_scope): Handle DW_AT_GNU_macros.
3855 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3857 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3859 * NEWS: Mention dcache configuration.
3860 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3861 (dcache_size, dcache_line_size): New variables.
3862 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3863 (struct dcache_block): Make it expandable.
3864 (struct dcache_struct): New field.
3865 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3866 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3867 (dcache_poke_byte, dcache_print_line): Adjust.
3868 (set_dcache_size, set_dcache_line_size): New functions.
3869 (set_dcache_command, show_dcache_command): New functions.
3870 (_initialize_dcache): Add new commands.
3872 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3874 * progspace.h (struct program_space): Add solib_add_generation.
3875 * infcmd.c (post_create_inferior): Only call solib_add if not
3877 * solib.c (solib_add): Increment solib_add_generation.
3879 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 Fix implicit pointer offsets.
3882 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3885 2011-07-25 Tom Tromey <tromey@redhat.com>
3887 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3889 (ada_exception_sal): Make 'ops' const.
3890 (ada_decode_exception_location): Likewise.
3891 (ada_decode_assert_location): Likewise.
3892 (catch_assert_command): Update.
3893 (catch_ada_exception_command): Update.
3894 (create_ada_exception_catchpoint): Make 'ops' const.
3895 * breakpoint.c (set_raw_breakpoint_without_location)
3896 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3898 (create_internal_breakpoint): Update.
3899 (init_raw_breakpoint_without_location): Make 'ops' const.
3900 (init_raw_breakpoint, init_catchpoint)
3901 (create_fork_vfork_event_catchpoint)
3902 (create_syscall_event_catchpoint, init_breakpoint_sal)
3903 (create_breakpoint_sal, create_breakpoints_sal)
3904 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3905 * breakpoint.h (struct breakpoint) <ops>: Now const.
3906 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3909 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3911 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3913 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3915 * breakpoint.h (print_recreate_thread): Declare.
3916 (struct breakpoint): Move step_count, pass_count,
3917 number_on_target, static_trace_marker_id,
3918 static_trace_marker_id_idx ...
3919 (struct tracepoint): ... to this new struct.
3920 (get_tracepoint, get_tracepoint_by_number_on_target)
3921 (get_tracepoint_by_number): Change return type to struct
3923 * breakpoint.c (is_tracepoint_type): New, factored out from
3925 (is_tracepoint): Adjust.
3926 (print_one_breakpoint_location): Cast to struct tracepoint as
3927 necessary, and adjust.
3928 (print_recreate_catch_fork, print_recreate_catch_vfork)
3929 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3930 print_recreate_thread.
3931 (init_breakpoint_sal): New, factored out from
3932 create_breakpoint_sal.
3933 (create_breakpoint_sal): Reimplement.
3934 (create_breakpoint): Allocate a struct tracecepoint if the caller
3935 wanted a tracepoint. Use init_breakpoint_sal and
3937 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3938 (print_recreate_masked_watchpoint)
3939 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3940 (tracepoint_print_one_detail): Adjust.
3941 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3942 Dump the pass count here.
3943 (update_static_tracepoint): Adjust.
3944 (addr_string_to_sals): Adjust.
3945 (create_tracepoint_from_upload): Adjust. Change return type to
3946 struct tracepoint pointer.
3947 (trace_pass_set_count): Change parameter type to struct tracepoint
3948 pointer, and adjust.
3949 (trace_pass_command): Adjust.
3950 (get_tracepoint, get_tracepoint_by_number_on_target)
3951 (get_tracepoint_by_number): Change return type to struct
3952 tracepoint pointer, and adjust.
3953 (print_recreate_thread): New, factored out from save_breakpoints.
3954 (save_breakpoints): Don't print thread and task and passcount
3956 * remote.c (remote_download_tracepoint): Adjust.
3957 * tracepoint.c (trace_actions_command, validate_actionline)
3958 (start_tracing, tfind_1, trace_find_tracepoint_command)
3959 (trace_dump_command): Adjust.
3960 (find_matching_tracepoint): Change return type to struct
3961 tracepoint pointer, and adjust.
3962 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3963 (tfile_trace_find, tfile_fetch_registers): Adjust.
3964 * tracepoint.h (create_tracepoint_from_upload): Change return type
3965 to struct tracepoint pointer.
3966 * ada-lang.c (print_recreate_exception): Call
3967 print_recreate_thread.
3968 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3970 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3972 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3973 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3974 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3975 watchpoint_thread, watchpoint_triggered ...
3976 (struct watchpoint): ... to this new struct.
3977 (is_watchpoint): Declare.
3978 (install_breakpoint): Add new `internal' parameter.
3979 * breakpoint.c (is_watchpoint): Delete declaration.
3980 (set_breakpoint_condition): Handle watchpoints.
3981 (is_watchpoint): Make public.
3982 (watchpoint_in_thread_scope): Change parameter type to struct
3984 (watchpoint_del_at_next_stop): Change parameter type to struct
3985 watchpoint. Remove assertion. Adjust.
3986 (update_watchpoint): Ditto.
3987 (insert_breakpoints, breakpoint_init_inferior)
3988 (watchpoints_triggered, watchpoint_check)
3989 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3990 (bpstat_stop_status, print_one_breakpoint_location)
3991 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3992 to struct watchpoint as necessary, and adjust.
3993 (install_breakpoint): Add `internal' argument. If true, don't
3994 mention the new breakpoint. Use set_breakpoint_number.
3995 (create_fork_vfork_event_catchpoint)
3996 (create_syscall_event_catchpoint): Adjust.
3997 (dtor_watchpoint): New.
3998 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3999 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4000 (print_it_watchpoint, print_mention_watchpoint)
4001 (print_recreate_watchpoint, insert_masked_watchpoint)
4002 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4003 (print_one_detail_masked_watchpoint)
4004 (print_mention_masked_watchpoint)
4005 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4006 necessary, and adjust.
4007 (watch_command_1): Allocate and initialize a struct watchpoint
4008 instead of a struct breakpoint. Use install_breakpoint.
4009 (catch_exec_command_1): Adjust.
4010 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4012 (delete_breakpoint, enable_breakpoint_disp)
4013 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4014 as necessary, and adjust.
4015 (initialize_breakpoint_ops): Install dtor_watchpoint as
4016 watchpoints' dtor method.
4017 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4018 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4019 to struct watchpoint as necessary, and adjust.
4021 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4023 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4024 the the base class ops table.
4025 (catch_exception_breakpoint_ops)
4026 (catch_exception_unhandled_breakpoint_ops)
4027 (catch_assert_breakpoint_ops): Don't statically initialize.
4028 (initialize_ada_catchpoint_ops): New.
4029 (_initialize_ada_language): Call it.
4030 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4031 (bkpt_breakpoint_ops): Forward declare.
4032 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4033 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4034 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4035 (masked_watchpoint_breakpoint_ops)
4036 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4037 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4038 base class ops table.
4039 (null_re_set, null_check_status, null_works_in_software_mode)
4040 (null_resources_needed, null_print_one_detail): Delete.
4041 (bkpt_dtor): Rename to ...
4042 (base_breakpoint_dtor): ... this. Make static.
4043 (bkpt_allocate_location): Rename to ...
4044 (base_breakpoint_allocate_location): ... this. Make static.
4045 (base_breakpoint_re_set): New.
4046 (internal_error_pure_virtual_called): New.
4047 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4048 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4049 (base_breakpoint_works_in_software_mode)
4050 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4051 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4052 (base_breakpoint_print_recreate): New functions.
4053 (base_breakpoint_ops): New global.
4054 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4055 (bkpt_breakpoint_hit): Make static.
4056 (bkpt_check_status): Delete.
4057 (bkpt_resources_needed): Make static.
4058 (bkpt_works_in_software_mode): Delete.
4059 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4061 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4062 (momentary_breakpoint_ops): Don't statically initialize.
4063 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4065 (tracepoint_insert_location, tracepoint_remove_location)
4066 (tracepoint_check_status, tracepoint_works_in_software_mode)
4067 (tracepoint_print_it): Delete.
4068 (tracepoint_breakpoint_ops): Don't statically initialize.
4069 (initialize_breakpoint_ops): New.
4070 (_initialize_breakpoint): Call it.
4071 * breakpoint.h (null_re_set, null_works_in_software_mode)
4072 (null_resources_needed, null_check_status, null_print_one_detail):
4073 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4074 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4075 (bkpt_check_status, bkpt_resources_needed)
4076 (bkpt_works_in_software_mode, bkpt_print_it)
4077 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4078 Delete declarations.
4079 (initialize_breakpoint_ops): Declare.
4081 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4083 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4084 (momentary_bkpt_print_it): Simplify.
4086 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4088 Split internal, momentary and user breakpoints breakpoint_ops
4091 * breakpoint.c (internal_breakpoint_ops)
4092 (momentary_breakpoint_ops): Forward declare.
4093 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4094 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4095 (create_overlay_event_breakpoint)
4096 (create_std_terminate_master_breakpoint)
4097 (create_exception_master_breakpoint): Create breakpoints with
4098 internal_breakpoint_ops vtable.
4099 (set_longjmp_breakpoint): Create momentary breakpoints with
4100 momentary_breakpoint_ops vtable, using
4101 momentary_breakpoint_from_master.
4102 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4103 (create_solib_event_breakpoint): Create breakpoints with
4104 internal_breakpoint_ops vtable.
4105 (set_momentary_breakpoint): Create breakpoints with
4106 momentary_breakpoint_ops vtable.
4107 (momentary_breakpoint_from_master): New, factored out from
4108 clone_momentary_breakpoint.
4109 (clone_momentary_breakpoint): Adjust.
4110 (watch_command_1): Create scope breakpoints with
4111 momentary_breakpoint_ops vtable.
4112 (bkpt_re_set): Remove handling of internal and momentary
4114 (bkpt_print_mention, bkpt_print_recreate): New.
4115 (bkpt_breakpoint_ops): Adjust.
4116 (internal_bkpt_re_set, internal_bkpt_check_status)
4117 (internal_bkpt_print_it, internal_bkpt_print_mention)
4118 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4119 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4120 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4121 (momentary_bkpt_print_recreate): New.
4122 (momentary_breakpoint_ops): New.
4124 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4126 Implement most breakpoint_ops methods for all breakpoint types,
4127 and move the default handlings to the proper callbacks.
4129 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4130 works_in_software_mode method.
4131 (insert_bp_location): Go through breakpoint_ops->insert_location
4132 for software and hardware watchpoints.
4133 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4135 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4136 for software and hardware watchpoints.
4137 (print_it_typical): Delete.
4138 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4140 (watchpoint_check): Adjust comment.
4141 (bpstat_check_location): Simply always call the breakpoint's
4142 breakpoint_hit method.
4143 (bpstat_stop_status): Always call the breakpoint's check_status
4144 method. Remove special cases for watchpoints and internal event
4145 breakpoints from here (moved to the check_status implementations).
4146 (print_one_breakpoint_location): Assume b->ops is never NULL.
4147 Remove static tracepoint marker id printing from here (moved to
4148 the print_one_detail callback implementation of tracepoints).
4149 (init_bp_location): Assert OPS is never NULL.
4150 (allocate_bp_location): Always call the breakpoint's
4151 allocate_location method, and remove the default code from here.
4152 (free_bp_location): Always call the location's dtor method, and
4153 remove the default code from here.
4154 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4155 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4156 parameter. Pass it down.
4157 (set_raw_breakpoint): Ditto.
4158 (print_it_catch_fork): Adjust to take a bpstat as argument.
4159 (catch_fork_breakpoint_ops): Install methods.
4160 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4161 (catch_vfork_breakpoint_ops): Install methods.
4162 (dtor_catch_syscall): Call the base dtor.
4163 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4164 (catch_syscall_breakpoint_ops): Install methods.
4165 (dtor_catch_exec): Call the base dtor.
4166 (print_it_catch_exec): Adjust to take a bpstat as argument.
4167 (catch_exec_breakpoint_ops): Install methods.
4168 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4169 the breakpoint's resources_needed method, and remove the default
4171 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4173 (clone_momentary_breakpoint): Clone the original's ops.
4174 (mention): Always call the breakpoint's print_mention method, and
4175 remove the default code from here.
4176 (create_breakpoint_sal): Adjust to pass the ops to
4177 set_raw_breakpoint rather than setting it manually.
4178 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4179 ops to set_raw_breakpoint_without_location rather than setting it
4181 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4182 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4183 (ranged_breakpoint_ops): Install methods.
4184 (break_range_command): Adjust to pass the ops to
4185 set_raw_breakpoint rather than setting it manually.
4186 (re_set_watchpoint, breakpoint_hit_watchpoint)
4187 (check_status_watchpoint, resources_needed_watchpoint)
4188 (works_in_software_mode_watchpoint, print_it_watchpoint)
4189 (print_mention_watchpoint, print_recreate_watchpoint): New
4191 (watchpoint_breakpoint_ops): Install new methods.
4192 (print_it_masked_watchpoint): New function.
4193 (masked_watchpoint_breakpoint_ops): Install new methods.
4194 (watch_command_1): Adjust to pass the right breakpoint_ops to
4195 set_raw_breakpoint_without_location rather than setting it
4196 manually later. Record the current pspace.
4197 (print_it_exception_catchpoint): Adjust to take a bpstat as
4199 (gnu_v3_exception_catchpoint_ops): Install new methods.
4200 (say_where): New function.
4201 (null_re_set, null_check_status, null_works_in_software_mode)
4202 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4204 (bp_location_ops): New global.
4205 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4206 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4207 (bkpt_check_status, bkpt_resources_needed)
4208 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4209 (bkpt_print_recreate): New functions.
4210 (bkpt_breakpoint_ops): New global.
4211 (tracepoint_re_set, tracepoint_insert_location)
4212 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4213 (tracepoint_check_status, tracepoint_works_in_software_mode)
4214 (tracepoint_print_it, tracepoint_print_one_detail)
4215 (tracepoint_print_mention, tracepoint_print_recreate): New
4217 (tracepoint_breakpoint_ops): New global.
4218 (delete_breakpoint): Always call the breakpoint's dtor method, and
4219 remove the default handling from here.
4220 (breakpoint_re_set_default): Make static.
4221 (breakpoint_re_set_one): Always call the breakpoints re_set
4222 method, and remove the default handling from here.
4223 (trace_command, ftrace_command, strace_command)
4224 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4225 to create_breakpoint.
4226 (save_breakpoints): Always call the breakpoint's print_recreate
4227 method, and remove the default handling from here.
4229 * ada-lang.c (dtor_exception): Call the base dtor.
4230 (re_set_exception): Call the base method.
4231 (print_it_exception, print_it_catch_exception): Adjust to take a
4233 (catch_exception_breakpoint_ops): Install methods.
4234 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4236 (catch_exception_unhandled_breakpoint_ops): Install methods.
4237 (print_it_catch_assert): Adjust to take a bpstat as argument.
4238 (catch_assert_breakpoint_ops): Install methods.
4240 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4241 to take a bpstat as argument.
4242 (enum print_stop_action): Add describing comments to each enum
4244 (breakpoint_re_set_default): Delete declaration.
4245 (null_re_set, null_works_in_software_mode, null_resources_needed)
4246 (null_check_status, null_print_one_detail): Declare.
4247 (bkpt_breakpoint_ops): Declare.
4248 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4249 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4250 (bkpt_check_status, bkpt_resources_needed)
4251 (bkpt_works_in_software_mode, bkpt_print_it)
4252 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4255 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4256 bkpt_breakpoint_ops.
4257 * python/py-breakpoint.c (bppy_init): Ditto.
4259 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4261 * MAINTAINERS (Write After Approval): Add myself to the list.
4263 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4265 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4267 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4269 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4270 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4271 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4273 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4274 (struct i386_debug_reg_state): New.
4275 (i386_init_dregs): New.
4277 (i386_cleanup_dregs): Use i386_init_dregs.
4278 (i386_show_dr): Add state parameter and adjust.
4279 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4281 (i386_remove_aligned_watchpoint): Likewise.
4282 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4283 (i386_update_inferior_debug_regs): New.
4284 (i386_insert_watchpoint): Work on a local mirror of the debug
4285 registers, and only update the inferior on success.
4286 (i386_remove_watchpoint): Ditto.
4287 (i386_region_ok_for_watchpoint): Adjust.
4288 (i386_stopped_data_address): Adjust.
4289 (i386_insert_hw_breakpoint): Adjust.
4290 (i386_remove_hw_breakpoint): Adjust.
4292 2011-07-22 Tom Tromey <tromey@redhat.com>
4294 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4295 from amd64_pseudo_register_read. Change arguments. Call
4296 mark_value_bytes_unavailable when needed.
4297 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4298 set_gdbarch_pseudo_register_read.
4299 * sentinel-frame.c (sentinel_frame_prev_register): Use
4300 regcache_cooked_read_value.
4301 * regcache.h (regcache_cooked_read_value): Declare.
4302 * regcache.c (regcache_cooked_read_value): New function.
4303 (regcache_cooked_read): Call
4304 gdbarch_pseudo_register_read_value if available.
4305 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4306 (i386_pseudo_register_read): Remove.
4307 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4308 i386_pseudo_register_read. Change arguments. Call
4309 mark_value_bytes_unavailable when needed.
4310 (i386_pseudo_register_read_value): New function.
4311 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4312 not set_gdbarch_pseudo_register_read.
4313 * gdbarch.sh (pseudo_register_read_value): New method.
4314 * gdbarch.c, gdbarch.h: Rebuild.
4315 * findvar.c (value_from_register): Call get_frame_register_value.
4317 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4319 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4321 (display_gdb_prompt): Likewise.
4322 (change_annotation_level): Likewise.
4323 (push_prompt): Likewise.
4324 (pop_prompt): Likewise.
4325 (handle_stop_sig): Use get_prompt with a level.
4326 * top.c (command_loop): Use get_prompt with a level.
4327 (set_async_annotation_level): Use set_prompt with a level.
4328 (get_prefix): New function.
4329 (set_prefix): Ditto.
4330 (set_suffix): Ditto.
4331 (get_suffix): Ditto.
4332 (get_prompt): Accept a level argument.
4333 (set_prompt): Accept a level argument. Free old prompts. Set
4334 new_async_prompt if level is 0.
4335 (init_main): Use set_prompt with a level. Do not set
4337 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4338 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4339 Modify set_prompt, get_prompt to account for levels.
4340 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4342 * python/python.c (before_prompt_hook): Use set_prompt.
4344 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4346 * defs.h: Add guard against inclusion in gdbserver.
4347 (struct ptid, ptid_t): Move to common/ptid.h.
4348 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4349 xsnprintf, internal_error): Move to common/common-utils.h.
4351 * gdb_assert.h: Move into common/ sub-directory.
4352 * gdb_locale.h: Ditto.
4353 * gdb_dirent.h: Ditto.
4354 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4355 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4356 Move into common/ptid.h.
4357 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4358 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4359 Change nomem to malloc_failure.
4360 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4361 * utils.c (nomem): Rename to malloc_failure.
4362 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4363 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4364 (gdb_buildargv): Change nomem to malloc_failure.
4365 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4366 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4367 ptid_is_pid): Move into common/ptid.c.
4368 (initialize_infrun): Delete initialization of null_ptid and
4370 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4371 linux_common_xfer_osdata.
4372 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4373 common/ptid.c and common/buffer.c.
4374 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4375 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4376 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4377 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4379 * common/gdb_assert.h: New.
4380 * common/gdb_dirent.h: New.
4381 * common/gdb_locale.h: New.
4382 * common/buffer.c: New.
4383 * common/buffer.h: New.
4384 * common/ptid.c: New.
4385 * common/ptid.h: New.
4386 * common/xml-utils.c: New.
4387 * common/xml-utils.h: New.
4388 * common/common-utils.c: New.
4389 * common/common-utils.h: New.
4390 * common/linux-osdata.c: New.
4391 * common/linux-osdata.h: New.
4392 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4393 * config/arm/linux.mh (NATDEPFILES): Ditto.
4394 * config/i386/linux.mh (NATDEPFILES): Ditto.
4395 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4396 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4397 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4398 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4399 * config/mips/linux.mh (NATDEPFILES): Ditto.
4400 * config/pa/linux.mh (NATDEPFILES): Ditto.
4401 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4402 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4403 * config/s390/s390.mh (NATDEPFILES): Ditto.
4404 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4405 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4406 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4408 2011-07-21 Matt Rice <ratmice@gmail.com>
4410 * NEWS: Add info macros and info definitions commands.
4412 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4414 * NEWS: Document Python prompt substitution hook.
4416 2011-07-18 Matt Rice <ratmice@gmail.com>
4419 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4420 * macrotab.c (foreach_macro): Ditto.
4421 (foreach_macro_in_scope): Ditto.
4422 * macrocmd.c (print_macro_callback): New function.
4423 (info_macro_command): Move some code to print_macro_definition.
4424 (print_macro_definition): New function.
4425 (print_one_macro): Add new arguments to callback.
4426 (info_definitions_command): New function.
4427 (info_macros_command): Ditto.
4428 (_initialize_macrocmd): Add info macros and info definitions commands.
4429 * symtab.c (add_macro_name): Add new arguments to callback.
4431 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4432 Tom Tromey <tromey@redhat.com>
4434 * top.c (set_prompt): Rewrite to free previous prompt, free
4435 asynch_new_prompt and set both on new prompts.
4436 * event-top.c (display_gdb_prompt): Add prompt substitution
4438 * python/python.c (before_prompt_hook): New function.
4440 2011-07-20 Matt Rice <ratmice@gmail.com>
4442 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4443 arguments to store_unsigned_integer.
4445 2011-07-20 Tom Tromey <tromey@redhat.com>
4447 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4448 in some declaration-only cases.
4450 2011-07-18 Tom Tromey <tromey@redhat.com>
4453 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4454 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4455 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4456 <debug_type_section>: New field.
4457 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4458 (load_cu): Use appropriate section.
4459 (create_signatured_type_table_from_index): Add 'section'
4461 (dwarf2_read_index): Only allow a single .debug_types section.
4462 (dw2_get_file_names): Use appropriate section.
4463 (read_type_comp_unit_head): Add 'section' argument.
4464 (create_debug_types_hash_table): Loop over all .debug_types
4466 (init_cu_die_reader): Use appropriate section.
4467 (process_psymtab_comp_unit, load_partial_comp_unit)
4468 (load_full_comp_unit, read_die_and_children, find_partial_die)
4469 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4470 (lookup_signatured_type_at_offset): Add 'section' argument.
4471 (read_signatured_type_at_offset): Add 'sect' argument.
4472 (read_signatured_type): Use appropriate section.
4473 (set_die_type, get_die_type_at_offset): Update.
4474 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4476 (write_psymtabs_to_index): Don't allow index with more than one
4477 .debug_types section.
4479 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4481 Fix crash if referenced CU is aged out.
4482 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4483 xfree of block.data.
4484 (indirect_pieced_value): New variable back_to, use to for xfree of
4486 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4488 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4489 (load_cu): New function from ...
4490 (dw2_do_instantiate_symtab): ... the code here ...
4491 (process_full_comp_unit): ... and here.
4492 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4495 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4500 2011-07-19 Gary Benson <gbenson@redhat.com>
4502 * infrun.c (struct execution_control_state): New member
4503 stop_func_filled_in.
4504 (clear_stop_func, fill_in_stop_func): New functions.
4505 (handle_inferior_event): Call clear_stop_func rather than
4506 manipulating the execution control state directly.
4507 Call fill_in_stop_func lazily as required rather than
4508 directly calling find_pc_partial_function in all cases.
4510 2011-07-18 Tom Tromey <tromey@redhat.com>
4512 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4513 checking for variable-sized array.
4515 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4517 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4518 of supported languages.
4519 * varobj.c: Add top definitions and basic implementation of the
4520 following callbacks: ada_number_of_children, ada_name_of_variable,
4521 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4522 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4523 (languages): Register Ada-specific callbacks.
4524 (variable_language): Add the Ada case in the language setter switch.
4526 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4530 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4533 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4534 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4535 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4536 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4537 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4538 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4539 (struct dwarf_expr_context_funcs): New, move here methods from ...
4540 (struct dwarf_expr_context): ... here. New fields funcs.
4541 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4542 (dwarf_expr_ctx_funcs): New.
4543 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4544 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4545 (needs_frame_ctx_funcs): New.
4546 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4548 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4550 * MAINTAINERS (Write After Approval): Add myself to the list.
4552 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4554 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4555 that CIE pointer of an FDE really points to a CIE .
4557 2011-07-15 Hui Zhu <teawater@gmail.com>
4559 * remote.c (remote_get_trace_status): Add comments.
4561 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4563 Code cleanup - constify struct lval_funcs.
4564 * dwarf2loc.c (pieced_value_funcs): Make it const.
4565 * infrun.c (siginfo_value_funcs): Likewise.
4566 * opencl-lang.c (opencl_value_funcs): Likewise.
4567 * valops.c (value_assign, value_ind): Make the funcs variable const.
4568 * value.c (struct value): Make location.computed.funcs target const.
4569 Rearrange the comments.
4570 (allocate_computed_value): Make the funcs parameter target const.
4571 (value_computed_funcs): Return the funcs target const.
4572 (value_free, value_copy, set_value_component_location): Make the funcs
4574 * value.h (allocate_computed_value): Make the funcs parameter target
4576 (value_computed_funcs): Return the funcs target const.
4577 * windows-tdep.c (tlb_value_funcs): Make it const.
4579 2011-07-14 Hui Zhu <teawater@gmail.com>
4581 * remote.c (remote_get_trace_status): Initialize p.
4583 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4586 * remote.c (remote_get_trace_status): New variable ex. Put
4587 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4589 2011-07-13 Tom Tromey <tromey@redhat.com>
4591 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4592 value_from_contents for final conversion.
4594 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4597 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4598 Indent prototypes so they do not get into tags.
4600 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4602 Code cleanup making also optimized out values lazy.
4603 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4604 allocate_optimized_out_value. Twice.
4605 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4606 * findvar.c (read_var_value): Likewise.
4607 * value.c (allocate_optimized_out_value): New function.
4608 * value.h (allocate_optimized_out_value): New declaration.
4610 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4612 Fix occasional crash of CTRL-C during DWARF read in.
4613 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4615 2011-07-11 Tom Tromey <tromey@redhat.com>
4617 * regcache.c (struct regcache_descr): Fix typo.
4618 * i387-tdep.c (i387_supply_xsave): Fix typo.
4620 2011-07-11 Tom Tromey <tromey@redhat.com>
4622 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4623 (read_file_scope, read_type_unit_scope): Use it.
4625 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4627 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4630 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4633 * python/python.c: Set gdbpy_should_print_stack default to off.
4634 (set_python): Deprecate maint set python print-stack to
4636 (_initialize_python): Deprecate maint set/show python print-stack.
4637 Add new prefix command, python. Add new setting, print-backtrace.
4638 * NEWS: Document set python print-stack. Document default change.
4640 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4642 * python/py-inferior.c (infpy_dealloc): New function.
4643 (inferior_to_inferior_object): Return a new object, or a
4644 new reference to the existing object.
4645 (find_thread_object): Cleanup references to inferior.
4646 (delete_thread_object): Ditto.
4647 * python/py-infthread.c (create_thread_object): Do not increment
4648 inferior reference count.
4650 2011-07-08 Tom Tromey <tromey@redhat.com>
4652 * dwarf2loc.c (locexpr_regname): New function.
4653 (locexpr_describe_location_piece): Use it.
4654 (disassemble_dwarf_expression): Add per_cu argument. Use
4656 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4657 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4659 (locexpr_describe_location_1): Add per_cu argument.
4660 (locexpr_describe_location): Update.
4661 (loclist_describe_location): Update.
4663 2011-07-08 Tom Tromey <tromey@redhat.com>
4665 * dwarf2expr.c (execute_stack_op): Add QUIT.
4667 2011-07-07 Hui Zhu <teawater@gmail.com>
4670 2011-07-06 Hui Zhu <teawater@gmail.com>
4671 * remote.c (remote_start_remote): Add TRY_CATCH for
4672 remote_get_trace_status.
4673 * tracepoint.c (disconnect_tracing): Ditto.
4675 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4677 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4678 variables as signed, not unsigned.
4680 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4682 * jit.c (jit_inferior_init): Reformat forward declaration.
4684 2011-07-06 Matt Rice <ratmice@gmail.com>
4686 * MAINTAINERS (Write After Approval): Add myself to the list.
4688 2011-07-06 Hui Zhu <teawater@gmail.com>
4690 * remote.c (remote_start_remote): Add TRY_CATCH for
4691 remote_get_trace_status.
4692 * tracepoint.c (disconnect_tracing): Ditto.
4694 2011-07-05 Tom Tromey <tromey@redhat.com>
4696 * symtab.c (operator_chars): Now static.
4697 * linespec.c (operator_chars): Don't declare.
4699 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4701 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4703 2011-07-05 Tom Tromey <tromey@redhat.com>
4705 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4706 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4707 (TYPE_CPLUS_REALLY_JAVA): New macro.
4708 * dwarf2read.c (process_structure_scope): Set
4709 TYPE_CPLUS_REALLY_JAVA.
4711 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4713 * ada-lang.c: Fix typos.
4714 * amd64-tdep.c: Likewise.
4715 * breakpoint.c: Likewise.
4716 * cli/cli-decode.c: Likewise.
4717 * findcmd.c: Likewise.
4718 * inline-frame.c: Likewise.
4719 * mi/mi-main.c: Likewise.
4720 * minsyms.c: Likewise.
4721 * monitor.c: Likewise.
4722 * monitor.h: Likewise.
4723 * prologue-value.c: Likewise.
4724 * reverse.c: Likewise.
4725 * s390-tdep.c: Likewise.
4727 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4729 * jit.c (jit_inferior_init): Forward declare.
4730 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4732 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4734 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4736 2011-07-04 Tristan Gingold <gingold@adacore.com>
4738 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4739 (tcb_fieldno): Add activation_link field.
4740 (get_known_tasks_addr): Moved and rewritten.
4741 (get_tcb_types_info): Set activation_link field.
4742 (read_known_tasks_array): Add parameter. Rewritten.
4743 (read_known_tasks_list): New function.
4744 (read_known_tasks): New function.
4745 (ada_build_task_list): Call read_known_tasks instead of
4746 read_known_tasks_array.
4747 * ravenscar-thread.c: Add first_task_name constant.
4748 (has_ravenscar_runtime): Check for task list too.
4750 2011-07-04 Tristan Gingold <gingold@adacore.com>
4752 * ada-tasks.c: Renames fieldno to actb_fieldno.
4753 (ada_get_task_number): Indentation.
4754 (get_tcb_types_info): Remove all parameters. Write directly
4756 (ptid_from_atcb_common): Adjust.
4757 (read_atcb): Adjust.
4759 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4761 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4763 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4765 * ui-out.c (ui_out_field_core_addr): Mention that the function
4766 description is in the header file.
4767 * ui-out.h (ui_out_field_core_addr): Document function.
4769 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4771 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4772 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4774 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4776 * symtab.c (expand_line_sal): Remove empty line.
4778 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4780 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4781 same way as ELFOSABI_NONE.
4782 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4784 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4786 * breakpoint.c: Fix typos in comments.
4787 * linespec.c: Likewise.
4788 * symtab.c: Likewise.
4790 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4792 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4793 section in separate object files.
4795 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4797 Fix false GCC warning.
4798 * linespec.c (decode_line_1): Initialize values.
4800 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4802 * linespec.c (find_method): Accept the function type automatically only
4803 if it was specified with parameter types.
4805 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 Stop on first linespec terminator instead of eating what we can.
4808 * linespec.c (is_linespec_boundary): New function.
4809 (name_end): Remove function.
4810 (keep_name_info): New parameter on_boundary, replace the body.
4811 (decode_line_1): Provide the parameter to keep_name_info.
4812 (decode_compound): Likewise. Drop the trailing java return type
4815 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4817 Fall back linespec to minimal symbols.
4818 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4819 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4820 (find_method, symbol_found): Change error to cplusplus_error.
4822 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4824 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4826 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4827 Tom Tromey <tromey@redhat.com>
4829 * dwarf2read.c (check_physname): New variable.
4830 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4831 (show_check_physname): New function.
4832 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4834 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4836 * machoread.c (macho_symfile_read): Delete OBE comment.
4838 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4840 * machoread.c (struct macho_oso_data): Delete.
4841 (current_oso): Delete.
4842 (macho_relocate_common_syms): New function, mostly extracted
4844 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4845 Remove code that sets and unset current_oso.
4846 (macho_symfile_relocate): Delete handling of common symbols,
4847 now moved to macho_relocate_common_syms.
4849 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4851 * darwin-nat.c (darwin_ptrace): Add documentation.
4852 Set errno to zero before calling ptrace. If ptrace returns
4853 -1 and errno is zero, then change then return zero.
4854 (darwin_kill_inferior): Issue a warning instead of triggering
4855 a failed assertion when the PT_KILL ptrace operations returned
4858 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4860 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4861 only when inf->private->no_ptrace.
4863 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4865 * ada-lang.c (print_it_exception): Print temporary catchpoints
4866 as "Temporary catchpoint".
4867 (print_mention_exception): Likewise.
4869 2011-07-01 Tom Tromey <tromey@redhat.com>
4871 * jv-lang.c (java_language_defn): Use java_printchar,
4873 (java_get_encoding): New function.
4874 (java_emit_char): Use generic_emit_char.
4875 (java_printchar): New function.
4876 (java_printstr): Likewise.
4878 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4880 * ada-typeprint.c (print_record_type): If unable to decode
4881 the name of the parent type, use the encoded name.
4883 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4885 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4886 pointer to constrained packed array type output.
4887 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4888 packed array output.
4890 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4892 * ada-typeprint.c (print_array_type): removed if condition on show
4893 being negative for bounds printing.
4895 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4897 * ada-lang.c (ada_identical_enum_types_p): New function.
4898 (symbols_are_identical_enums): New function.
4899 (remove_extra_symbols): Do nothing if NSYMS < 2.
4900 Use symbols_are_identical_enums.
4902 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4904 * ada-valprint.c (ada_value_print): Handle typedefs.
4906 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4908 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4910 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4912 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4913 (decode_constrained_packed_array): Likewise.
4914 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4916 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4918 * ada-exp.y (convert_char_literal): Handle typedef types.
4920 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4922 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4924 2011-06-30 Tom Tromey <tromey@redhat.com>
4926 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4927 * valops.c (find_overload_match): Call do_cleanups on early exit
4929 * solib.c (solib_find): Call do_cleanups on early exit path.
4931 2011-06-30 Tom Tromey <tromey@redhat.com>
4933 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4934 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4935 return paths. Defer final do_cleanups until last return.
4936 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4939 2011-06-30 Tom Tromey <tromey@redhat.com>
4941 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4943 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4945 * MAINTAINERS (Write After Approval): Add myself to the list.
4947 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 Disable epilogue unwinders on recent GCCs.
4950 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4951 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4952 * dwarf2read.c (process_full_comp_unit): Initialize
4953 EPILOGUE_UNWIND_VALID.
4954 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4955 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4956 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4958 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4960 Code cleanup - reformatting.
4961 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4962 (producer_is_gcc_ge_4): ... here, change the return value.
4963 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4966 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4968 Fix non-only rename list for Fortran modules import.
4969 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4970 cp_add_using_directive caller.
4971 (cp_add_using_directive): New parameter excludes, describe it. New
4972 variables ix and param. Compare if also excludes match. Allocate NEW
4973 with variable size, initialize EXCLUDES there.
4974 (cp_lookup_symbol_imports): New variable excludep, test
4975 current->EXCLUDES with it.
4976 * cp-support.h: Include vec.h.
4977 (struct using_direct): New field excludes, describe it.
4978 (DEF_VEC_P (const_char_ptr)): New.
4979 (cp_add_using_directive): New parameter excludes.
4980 * defs.h (const_char_ptr): New typedef.
4981 * dwarf2read.c (read_import_statement): New variables child_die,
4982 excludes and cleanups, read in excludes.
4983 (read_namespace): Adjust the cp_add_using_directive caller.
4985 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4989 negative comparisons.
4991 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4993 * mi/mi-main.c (mi_cmd_list_features): Emit
4994 breakpoint-notifications.
4996 2011-06-29 Tom Tromey <tromey@redhat.com>
4999 * valprint.h (generic_emit_char, generic_printstr): Declare.
5000 * valprint.c (wchar_printable, append_string_as_wide)
5001 (print_wchar): Move from c-lang.c.
5002 (generic_emit_char): New function; mostly taken from c_emit_char.
5003 (generic_printstr): New function; mostly taken from c_printstr.
5004 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5005 represented as arrays.
5006 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5008 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5009 identically to TYPE_CODE_INT.
5010 * f-lang.c (f_get_encoding): New function.
5011 (f_emit_char): Use generic_emit_char.
5012 (f_printchar): Replace comment.
5013 (f_printstr): Use generic_printstr.
5014 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5015 "character" types specially.
5016 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5018 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5020 (c_emit_char): Call generic_emit_char.
5021 (c_printstr): Call generic_printstr.
5023 2011-06-29 Gary Benson <gbenson@redhat.com>
5025 * breakpoint.c (bpstat_what): Removed duplicated case.
5027 2011-06-28 Tom Tromey <tromey@redhat.com>
5029 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5031 2011-06-27 Tom Tromey <tromey@redhat.com>
5033 * valops.c (find_overload_match): Call do_cleanups before early
5035 * top.c (execute_command): Call do_cleanups before early return.
5036 (command_loop): Likewise.
5037 * stack.c (backtrace_command): Make a null cleanup early. Don't
5038 conditionally call do_cleanups.
5039 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5041 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5042 so cleanups are always run.
5043 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5044 * findcmd.c (parse_find_args): Call do_cleanups on early return
5046 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5047 Don't conditionally call do_cleanups.
5048 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5051 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5053 * MAINTAINERS (Write After Approval): Use default email address.
5055 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5057 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5059 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5061 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5062 saved_regs_mask and copied_regs_mask fields.
5063 (sparc_record_save_insn): New prototype.
5064 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5065 (sparc_record_save_insn): New function.
5066 (sparc_analyze_prologue): Add head comment. Recognize store insns
5067 of call-saved registers. Use OFFSET consistently. Recognize flat
5068 frames and cache their settings.
5069 (sparc32_skip_prologue): Handle flat frames.
5070 (sparc_frame_cache): Add frame_offset to the base address.
5071 (sparc32_frame_cache): Adjust to new frame description.
5072 (sparc32_frame_prev_register): Likewise.
5073 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5074 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5075 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5076 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5077 frame by calling sparc_record_save_insn.
5078 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5079 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5080 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5082 2011-06-27 Tristan Gingold <gingold@adacore.com>
5084 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5085 field by map_addr and map_len.
5086 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5087 (munmap_section_buffer): Likewise.
5089 2011-06-24 Tom Tromey <tromey@redhat.com>
5091 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5092 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5093 * python/python.c (gdbpy_parameter): Make 'arg' const.
5094 (execute_gdb_command): Likewise.
5095 (gdbpy_decode_line): Likewise. Copy it.
5096 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5097 (gdbpy_write): Make 'arg' const.
5098 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5100 (gdbpy_lookup_type): Likewise.
5101 * python/py-prettyprint.c (print_children): Make 'name' const.
5102 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5103 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5105 * python/py-function.c (fnpy_init): Make 'name' const.
5106 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5107 (gdbpy_string_to_argv): Make 'input' const.
5108 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5110 * gdbtypes.h (lookup_typename): Update.
5111 * gdbtypes.c (lookup_typename): Make 'name' const.
5112 (lookup_struct): Likewise.
5113 (lookup_union): Likewise.
5114 (lookup_enum): Likewise.
5116 2011-06-24 Tom Tromey <tromey@redhat.com>
5118 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5119 gdb_thread_db.h. Move all common/ entries to be together.
5120 (TAGS): Don't depend on DEPFILES.
5122 2011-06-23 Yao Qi <yao@codesourcery.com>
5124 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5125 * remote.c (remote_start_remote): ... here.
5126 * monitor.c (monitor_open): ... here.
5128 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5130 * gdbtypes.c (append_composite_type_field_aligned): Fix
5131 calculation of bit position based on alignment.
5133 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5135 * breakpoint.c (bpstat_stop_status): Call the check_status
5136 breakpoint_ops method.
5137 (print_one_breakpoint_location): Also print the condition for Ada
5138 exception catchpoints.
5139 (allocate_bp_location): New, factored out from
5140 allocate_bp_location.
5141 (allocate_bp_location): Adjust. Call the owner breakpoint's
5142 allocate_location method, if there is one.
5143 (free_bp_location): Call the locations's dtor method, if there is
5145 (init_raw_breakpoint_without_location): New breakpoint_ops
5147 (set_raw_breakpoint_without_location): Adjust.
5148 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5149 (set_raw_breakpoint): Adjust.
5150 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5151 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5152 re_set and check_status methods.
5153 (init_catchpoint): Don't memset, initialize thread, addr_string
5154 and enable_state. Pass the ops down to init_raw_breakpoint.
5155 (install_catchpoint): Rename to ...
5156 (install_breakpoint): ... this, and make extern.
5157 (create_fork_vfork_event_catchpoint): Adjust.
5158 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5159 re_set and check_status methods.
5160 (create_syscall_event_catchpoint): Adjust.
5161 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5162 (masked_watchpoint_breakpoint_ops): Install NULL
5163 allocate_location, re_set and check_status methods.
5164 (catch_exec_command_1): Adjust.
5165 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5166 re_set and check_status methods.
5167 (create_ada_exception_breakpoint): Rename to ...
5168 (init_ada_exception_breakpoint): ... this. Add a struct
5169 breakpoint parameter, and delete the exp_string, cond_string and
5170 cond parameters. Use init_raw_breakpoint, and don't install or
5171 mention the breakpoint yet. Don't clear breakpoint fields that
5172 init_raw_breakpoint already clears.
5173 (re_set_breakpoint): Delete, split into ...
5174 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5176 (breakpoint_re_set_one): Call the breakpoint's
5177 breakpoint_ops->re_set implementation, if there's one. Adjust.
5178 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5179 (struct bp_location_ops): New type.
5180 (struct bp_location): New field `ops'.
5181 (struct breakpoint_ops): New `allocate_location', `re_set' and
5182 `check_status' fields. Make `breakpoint_hit''s description match
5184 (init_bp_location): Declare.
5185 (breakpoint_re_set_default): Declare.
5186 (create_ada_exception_breakpoint): Rename to ...
5187 (init_ada_exception_breakpoint): ... this. Add a struct
5188 breakpoint parameter, and delete the exp_string, cond_string and
5190 (install_breakpoint): Declare.
5191 * ada-lang.c: Include exceptions.h.
5192 <Ada exceptions description>: Update.
5193 (struct ada_catchpoint_location): New type.
5194 (ada_catchpoint_location_dtor): New function.
5195 (ada_catchpoint_location_ops): New global.
5196 (ada_catchpoint): New type.
5197 (create_excep_cond_exprs): New function.
5198 (dtor_exception, allocate_location_exception, re_set_exception)
5199 (should_stop_exception, check_status_exception): New functions.
5200 (print_one_exception, print_mention_exception)
5201 (print_recreate_exception): Adjust.
5202 (dtor_catch_exception, allocate_location_catch_exception)
5203 (re_set_catch_exception, check_status_catch_exception): New
5205 (catch_exception_breakpoint_ops): Install them.
5206 (dtor_catch_exception_unhandled)
5207 (allocate_location_catch_exception_unhandled)
5208 (re_set_catch_exception_unhandled)
5209 (check_status_catch_exception_unhandled): New functions.
5210 (catch_exception_unhandled_breakpoint_ops): Install them.
5211 (dtor_catch_assert, allocate_location_catch_assert)
5212 (re_set_catch_assert, check_status_catch_assert): New functions.
5213 (catch_assert_breakpoint_ops): Install them.
5214 (ada_exception_catchpoint_p): Delete.
5215 (catch_ada_exception_command_split)
5216 (ada_exception_catchpoint_cond_string): Rename exp_string
5217 parameter to excep_string. Adjust.
5218 (ada_parse_catchpoint_condition): Delete.
5219 (ada_exception_sal): Rename the exp_string parameter to
5220 excep_string. Delete the cond_string and cond parameters.
5222 (ada_decode_exception_location): Rename the exp_string parameter
5223 to excep_string. Delete the cond_string and cond parameters.
5225 (create_ada_exception_catchpoint): New function.
5226 (catch_ada_exception_command, ada_decode_assert_location)
5227 (catch_assert_command): Adjust.
5228 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5230 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5232 * ada-lang.c: Include arch-utils.h.
5233 (ada_decode_exception_location): Make static.
5234 (catch_ada_exception_command): Moved here from breakpoint.c.
5235 (ada_decode_assert_location): Make static.
5236 (catch_assert_command): Moved here from breakpoint.c.
5237 (_initialize_ada_lang): Install the exception and assert
5238 catchpoint commands here.
5239 * ada-lang.h (ada_decode_exception_location)
5240 (ada_decode_assert_location): Delete declarations.
5241 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5243 (create_ada_exception_breakpoint): Make extern.
5244 (catch_ada_exception_command, catch_assert_command): Moved to
5246 (add_catch_command): Make extern.
5247 (_initilize_breakpoint): Don't install the exception and assert
5248 catchpoint commands here.
5249 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5251 (add_catch_command, create_ada_exception_breakpoint): Declare.
5253 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5255 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5256 the breakpoint to the breakpoint chain here.
5257 (set_raw_breakpoint_without_location): Add the breakpoint to the
5258 breakpoint chain here.
5259 (init_raw_breakpoint): Adjust comments.
5260 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5262 (init_catchpoint): Don't set the catchpoint's breakpoint number
5264 (install_catchpoint): New function.
5265 (create_fork_vfork_event_catchpoint)
5266 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5267 use install_catchpoint.
5269 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5271 * breakpoint.c (create_catchpoint_without_mention)
5272 (create_catchpoint): Delete.
5274 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5276 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5277 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5278 reference to exec_pathname.
5279 (struct exec_catchpoint): New type.
5280 (dtor_catch_exec): New function.
5281 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5282 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5283 (catch_exec_command_1): Adjust to use init_catchpoint.
5284 (delete_breakpoint): Remove reference to exec_pathname.
5286 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5288 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5289 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5290 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5291 reference to syscalls_to_be_caught.
5292 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5294 (struct syscall_catchpoint): New type.
5295 (dtor_catch_syscall): New function.
5296 (insert_catch_syscall, remove_catch_syscall)
5297 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5298 (print_recreate_catch_syscall): Adjust.
5299 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5300 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5301 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5302 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5303 (masked_watchpoint_breakpoint_ops)
5304 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5305 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5306 there is one. Remove references to syscalls_to_be_caught.
5307 (catching_syscall_number): Adjust.
5308 * ada-lang.c (catch_exception_breakpoint_ops)
5309 (catch_exception_unhandled_breakpoint_ops)
5310 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5312 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5314 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5316 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5317 reference to forked_inferior_pid.
5318 (struct fork_catchpoint): New type.
5319 (breakpoint_hit_catch_fork, print_it_catch_fork)
5320 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5321 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5322 (create_fork_vfork_event_catchpoint): Adjust to use
5325 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5327 * breakpoint.c (add_to_breakpoint_chain)
5328 (init_raw_breakpoint_without_location): New functions, factored
5330 (set_raw_breakpoint_without_location): ... this one.
5331 (init_raw_breakpoint): New function, factored out from
5332 set_raw_breakpoint and adjusted to use
5333 init_raw_breakpoint_without_location.
5334 (set_raw_breakpoint): Adjust.
5335 (init_catchpoint): New function, factored out from
5336 create_catchpoint_without_mention and adjusted to use
5337 init_raw_breakpoint.
5338 (create_catchpoint_without_mention): Adjust.
5340 2011-06-22 Tom Tromey <tromey@redhat.com>
5342 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5343 argument of 0 specially.
5345 2011-06-22 Yao Qi <yao@codesourcery.com>
5347 * infrun.c (handle_inferior_event): Remove write-only local variable
5348 `sw_single_step_trap_p'.
5350 2011-06-20 Tom Tromey <tromey@redhat.com>
5352 * symtab.c (lookup_language_this): End loop if block is NULL.
5354 2011-06-17 Tom Tromey <tromey@redhat.com>
5356 * valops.c (value_of_this): Use lookup_language_this.
5357 * symtab.h (lookup_language_this): Declare.
5358 * symtab.c (lookup_language_this): New function.
5359 (lookup_symbol_aux): Use lookup_language_this.
5360 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5362 2011-06-17 Tom Tromey <tromey@redhat.com>
5364 * value.h (value_of_this): Update.
5365 (value_of_local): Remove.
5366 * valops.c (value_of_this): Rename from value_of_local. Change
5368 * p-exp.y (exp): Update.
5369 (variable): Likewise.
5370 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5372 2011-06-17 Tom Tromey <tromey@redhat.com>
5374 * valops.c (value_of_local): Complain if NAME is NULL.
5375 * std-operator.def (OP_OBJC_SELF): Remove.
5376 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5377 * objc-exp.y (name_not_typename): Use OP_THIS.
5378 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5380 <OP_OBJC_SELF>: Remove.
5381 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5383 2011-06-16 Tristan Gingold <gingold@adacore.com>
5385 * python/py-events.h (gdb_py_events): Make it extern.
5386 * python/py-evtregistry.c (gdb_py_events): Declare.
5388 2011-06-16 Hui Zhu <teawater@gmail.com>
5390 * remote.c (remote_trace_set_readonly_regions): Add check for
5391 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5394 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5396 * arm-linux-tdep.c: Include "auxv.h".
5398 (ARM_LINUX_SIZEOF_VFP): Define.
5399 (arm_linux_supply_vfp): New function.
5400 (arm_linux_collect_vfp): Likewise.
5401 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5402 (arm_linux_fpa_regset_sections): New variable.
5403 (arm_linux_vfp_regset_sections): Likewise.
5404 (arm_linux_core_read_description): New function.
5405 (arm_linux_init_abi): Install arm_linux_core_read_description and
5406 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5407 appropriate for the architecture.
5408 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5409 (tdesc_arm_with_m): Declare.
5410 (tdesc_arm_with_iwmmxt): Likewise.
5411 (tdesc_arm_with_vfpv2): Likewise.
5412 (tdesc_arm_with_vfpv3): Likewise.
5413 (tdesc_arm_with_neon): Likewise.
5414 * arm-linux-nat.c: Move features/*.c includes ...
5415 * arm-tdep.c: ... here.
5416 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5417 target description data structures ...
5418 * arm-tdep.c (_initialize_arm_tdep): ... here.
5419 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5420 HWCAP_VFPv3D16): Move definitions ...
5421 * arm-linux-tdep.h: ... here.
5423 2011-06-15 Hui Zhu <teawater@gmail.com>
5425 * remote.c (remote_trace_set_readonly_regions): Add a check for
5428 2011-06-14 Tom Tromey <tromey@redhat.com>
5430 * coffread.c (coffread_objfile): Rename from current_objfile.
5431 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5432 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5434 2011-06-14 Tom Tromey <tromey@redhat.com>
5436 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5437 (class_symtab): Remove.
5438 (jv_dynamics_progspace_key): New global.
5439 (jv_per_objfile_free): Reset program space data. Update assert.
5440 Don't clear globals.
5441 (get_dynamics_objfile): Use and set program space data.
5442 (get_java_class_symtab): Use get_dynamics_objfile.
5443 (add_class_symbol): Likewise.
5444 (java_link_class_type): Likewise.
5445 (java_object_type, jv_clear_object_type, set_java_object_type):
5447 (get_java_object_type): Update. Don't cache result.
5448 (is_object_type): Don't call set_java_object_type.
5449 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5450 initialize jv_dynamics_progspace_key.
5452 2011-06-14 Tom Tromey <tromey@redhat.com>
5454 * symtab.h (current_objfile): Don't declare.
5455 * objfiles.h (current_objfile): Don't declare.
5456 * objfiles.c (current_objfile): Remove.
5457 * mdebugread.c (current_objfile): New file-scope global.
5458 * dbxread.c (current_objfile): New file-scope global.
5459 * coffread.c (current_objfile): New file-scope global.
5461 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5463 * top.h (line): Rename to ...
5464 (saved_command_line): ... this.
5465 (linesize): Rename to ...
5466 (saved_command_line_size): ... this.
5467 * top.c (line): Rename to ...
5468 (saved_command_line): ... this.
5469 (linesize): Rename to ...
5470 (saved_command_line_size): ... this.
5471 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5472 * event-top.c (command_line_handler): Adjust.
5473 * main.c (captured_main): Adjust.
5475 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5477 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5478 get_frame_func instead of get_frame_pc to determine the code
5479 address used to construct the frame ID.
5480 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5481 (i386_epilogue_frame_this_id): Likewise.
5482 (i386_epilogue_frame_prev_register): New function.
5483 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5484 (i386_stack_tramp_frame_sniffer): Fix coding style.
5485 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5486 (i386_gdbarch_init): Fix comments.
5488 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5490 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5491 instruction when walking back through the instruction stream.
5493 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5496 fullname parameters order.
5498 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5501 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5503 * psymtab.c (map_symbol_filenames_psymtab)
5504 (map_partial_symbol_filenames): Likewise.
5505 * psymtab.h: Include symfile.h.
5506 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5507 * symfile.h (symbol_filename_ftype): New.
5508 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5509 map_symbol_filenames, clarify more the naming in comment.
5511 2011-06-07 Doug Evans <dje@google.com>
5513 * cc-with-index.sh: Fix typos in comment.
5514 Look for ../../gdb, for fullname.exp.
5516 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5517 Pedro Alves <pedro@codesourcery.com>
5519 * cli/cli-cmds.c (shell_escape): Use waitpid.
5520 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5522 2011-06-07 Tristan Gingold <gingold@adacore.com>
5524 * xcoffread.c (dwarf2_xcoff_names): New variable.
5525 (aix_process_linenos): Add a guard.
5526 (xcoff_symfile_finish): Free dwarf2.
5527 (xcoff_initial_scan): Add dwarf2 support.
5529 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5531 * infcall.c (run_inferior_call): Don't mask async. Instead force
5532 a synchronous wait, if the target can async.
5534 * target.h (struct target_ops): Delete to_async_mask.
5535 (target_async_mask): Delete.
5536 * target.c (update_current_target): Delete references to to_async_mask.
5537 * linux-nat.c (linux_nat_async_mask_value): Delete.
5538 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5539 to linux_nat_async_mask_value.
5540 (linux_nat_async_mask): Delete.
5541 (linux_nat_async, linux_nat_close): Remove references to
5542 linux_nat_async_mask_value.
5543 * record.c (record_async_mask_value): Delete.
5544 (record_async): Remove references to record_async_mask_value.
5545 (record_async_mask): Delete.
5546 (record_can_async_p, record_is_async_p): Remove references to
5547 record_async_mask_value.
5548 (init_record_ops, init_record_core_ops): Remove references to
5550 * remote.c (remote_async_mask_value): Delete.
5551 (init_remote_ops): Remove reference to remote_async_mask.
5552 (remote_can_async_p, remote_is_async_p): Remove references to
5553 remote_async_mask_value.
5554 (remote_async): Remove references to remote_async_mask_value.
5555 (remote_async_mask): Delete.
5557 * infrun.c (fetch_inferior_event): Don't claim registers changed
5558 if the current thread is already not executing.
5560 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5562 From Stephen Kitt <steve@sk2.org>
5563 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5564 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5566 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5568 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5569 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5571 2011-06-03 Tom Tromey <tromey@redhat.com>
5573 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5575 * python/py-exitedevent.c (create_exited_event_object): Change
5576 type of 'exit_code'. Optionally add exit_code attribute.
5577 (emit_exited_event): Change type of 'exit_code'.
5578 * python/py-event.h (emit_exited_event): Update.
5579 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5580 * infrun.c (handle_inferior_event): Set exit code fields on
5582 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5584 * inferior.c (exit_inferior_1): Initialize new fields.
5586 2011-06-03 Tom Tromey <tromey@redhat.com>
5588 * dwarf2expr.c (get_signed_type): New function.
5589 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5591 2011-06-02 Keith Seitz <keiths@redhat.com>
5593 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5595 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5597 * top.h (simplified_command_loop): Delete declaration.
5599 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5601 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5602 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5604 2011-06-01 Yao Qi <yao@codesourcery.com>
5606 * objfiles.h (obj_section_addr): Update reference to objfile from
5608 (obj_section_endaddr): Likewise.
5610 2011-06-01 Daniel Jacobowitz <drow@false.org>
5612 * MAINTAINERS: Update my email address and affiliation. Also
5613 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5615 2010-05-31 Keith Seitz <keiths@redhat.com>
5618 * linespec.c (get_search_block): New function.
5619 (find_methods): Add FILE_SYMTATB parameter and use it and
5620 get_search_block to pass an appropriate block to
5621 lookup_symbol_in_namespace.
5622 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5623 Check if *ARGPTR starts with a filename first.
5624 If it does, call locate_first_half again to locate the next
5625 "first half" of the linespec.
5626 Pass FILE_SYMTATB to decode_objc and decode_compound.
5627 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5628 (locate_first_half): Stop on the first colon seen.
5629 (decode_compound): Add FILE_SYMTAB parameter.
5630 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5631 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5632 get_search_block with lookup_symbol.
5633 (find_method): Add FILE_SYMTAB parameter and pass it to
5635 (decode_objc): Use get_search_block.
5637 2010-05-31 Keith Seitz <keiths@redhat.com>
5640 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5641 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5642 and CP_ANONYMOUS_NAMESPACE_LEN.
5643 (cp_is_anonymous): Likewise.
5644 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5645 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5646 * dwarf2read.c (namespace_name): Likewise.
5647 (fixup_partial_die): Likewise.
5648 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5649 seen in the input, keep it.
5651 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5653 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5654 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5655 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5656 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5657 * remote.c (_initialize_remote): Register
5658 async_remote_interrupt_twice directly as
5659 sigint_remote_twice_token event.
5661 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5663 * target.h (enum inferior_event_type): Delete INF_ERROR.
5664 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5666 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5668 * interps.c (interp_set): Don't cancel continuations.
5670 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5672 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5674 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5676 * continuations.h (continuation_ftype): Add `err' parameter.
5677 Document parameters.
5678 (do_all_continuations, do_all_continuations_thread)
5679 (do_all_intermediate_continuations)
5680 (do_all_intermediate_continuations_thread)
5681 (do_all_inferior_continuations): Add `err' parameter.
5682 * continuations.c (do_my_continuations_1, do_my_continuations)
5683 (do_all_inferior_continuations, do_all_continuations_ptid)
5684 (do_all_continuations_thread_callback)
5685 (do_all_continuations_thread, do_all_continuations)
5686 (do_all_intermediate_continuations_thread_callback)
5687 (do_all_intermediate_continuations_thread)
5688 (do_all_intermediate_continuations): Add `err' parameter, and pass
5689 it down all the way to the continuations proper.
5690 * inf-loop.c (inferior_event_handler): If fetching an inferior
5691 event throws an error, don't pop the target, and still call the
5692 continuations, but with `err' set. Adjust all other continuation
5694 * breakpoint.c (until_break_command_continuation): Add `err'
5696 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5697 issue another step if `err' is set.
5698 (struct until_next_continuation_args): New.
5699 (until_next_continuation): Add `err' parameter. Adjust.
5700 (until_next_command): Adjust.
5701 (struct finish_command_continuation_args): Add `thread' field.
5702 (finish_command_continuation): Add `err' parameter. Handle it.
5703 (finish_forward): Adjust.
5704 (attach_command_continuation): Add `err' parameter. Handle it.
5705 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5706 cancel the continuations.
5707 * interps.c (interp_set): Adjust to cancel the continuations.
5708 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5709 continuations rather than discarding.
5710 (free_thread): Don't clear thread inferior resources here.
5711 (delete_thread_1): Do it here instead. And do it before removing
5712 the thread from the threads list. Tag the thread as exited before
5713 clearing thread inferior resources.
5715 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5717 * infcall.c (call_function_by_hand): Rephrase error message.
5719 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5721 * defs.h (struct thread_info, struct inferior): Delete forward
5723 * breakpoint.h (struct thread_info): New forward declaration.
5724 * observer.sh (struct inferior): New forward declaration.
5725 * python/python-internal.h (struct inferior): New forward
5728 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5730 * defs.h (struct continuation, continuation_ftype)
5731 (continuation_free_arg_ftype, add_continuation)
5732 (do_all_continuations, do_all_continuations_thread)
5733 (discard_all_continuations, discard_all_continuations_thread)
5734 (add_intermediate_continuation, do_all_intermediate_continuations)
5735 (do_all_intermediate_continuations_thread)
5736 (discard_all_intermediate_continuations)
5737 (discard_all_intermediate_continuations_thread)
5738 (add_inferior_continuation, do_all_inferior_continuations)
5739 (discard_all_inferior_continuations): Move to ...
5740 * continuations.h: ... this new file.
5741 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5742 infcmd.c, inferior.c, infrun.c, interps.c: Include
5745 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5746 Doug Evans <dje@google.com>
5748 Fix PR 10970, PR 12702.
5749 * linux-nat.c (linux_lwp_is_zombie): New function.
5750 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5751 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5753 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5755 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5757 (add_continuation, add_intermediate_continuation)
5758 (add_inferior_continuation): Use them.
5759 * continuations.c (struct continuation): Use them.
5760 (make_continuation_ftype): Delete.
5761 (make_continuation, add_inferior_continuation, add_continuation)
5762 (add_intermediate_continuation): Use continuation_ftype and
5763 continuation_free_arg_ftype. Rename parameters to shorter names.
5765 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5767 * continuations.c (make_continuation): Make it return void.
5768 (do_my_continuations): Rename to ...
5769 (do_my_continuations_1): ... this. Remove old_chain parameter and
5771 (do_my_continuations): New.
5772 (discard_my_continuations): Rename to ...
5773 (discard_my_continuations_1): ... this. Remove old_chain
5774 parameter and adjust.
5775 (discard_my_continuations): New.
5776 (add_inferior_continuation): Simplify.
5777 (do_all_inferior_continuations): Reimplement on top
5778 do_my_continuations.
5779 (discard_all_inferior_continuations): Simplify.
5780 (add_continuation): Simplify.
5781 (do_all_continuations_ptid): Simplify.
5782 (discard_all_continuations_thread_callback): Simplify.
5783 (add_intermediate_continuation): Simplify.
5784 (discard_all_intermediate_continuations_thread_callback):
5787 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5789 * utils.c (struct continuation, add_continuation)
5790 (add_inferior_continuation)
5791 (do_all_inferior_continuations, discard_all_inferior_continuations)
5792 (restore_thread_cleanup, do_all_continuations_ptid)
5793 (do_all_continuations_thread_callback)
5794 (do_all_continuations_thread, do_all_continuations)
5795 (discard_all_continuations_thread_callback)
5796 (discard_all_continuations_thread, discard_all_continuations)
5797 (add_intermediate_continuation)
5798 (do_all_intermediate_continuations_thread_callback)
5799 (do_all_intermediate_continuations_thread)
5800 (do_all_intermediate_continuations)
5801 (discard_all_intermediate_continuations_thread_callback)
5802 (discard_all_intermediate_continuations_thread)
5803 (discard_all_intermediate_continuations): Move to ...
5804 * continuations.c: ... this new file, and adjust to no longer
5805 implement continuations on top of cleanups.
5806 * Makefile.in (SFILES): Add continuations.c.
5807 (COMMON_OBS): Add continuations.o.
5809 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5811 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5812 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5813 Internal error on invalid values.
5814 * reverse.c: Don't handle EXEC_ERROR.
5815 * mi/mi-main.c: Don't handle EXEC_ERROR.
5817 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5819 * record.c: Include event-loop.h, inf-loop.h.
5820 (record_beneath_to_async): New global.
5821 (tmp_to_async): New global.
5822 (record_async_inferior_event_token): New global.
5823 (record_open_1): Don't error out if async is enabled.
5824 (record_open): Handle to_async. Create an async event source in
5826 (record_close): Delete the async event source.
5827 (record_resumed): New global.
5828 (record_execution_dir): New global.
5829 (record_resume, record_core_resume): Set them. Register the
5830 target on the event loop.
5831 (record_wait): Rename to ...
5832 (record_wait_1): ... this. Add more debug output. Handle
5833 TARGET_WNOHANG, and the target beneath returning
5834 TARGET_WAITKIND_IGNORE.
5835 (record_wait): Reimplement on top of record_wait_1.
5836 (record_async_mask_value): New global.
5837 (record_async, record_async_mask, record_can_async_p)
5838 (record_is_async_p, record_execution_direction): New functions.
5839 (init_record_ops, init_record_core_ops): Install new methods.
5840 * infrun.c (fetch_inferior_event): Temporarily switch the global
5841 execution direction to the direction the target was going.
5842 (execution_direction): Change type to int.
5843 * target.c (default_execution_direction): New function.
5844 (update_current_target): Inherit and de_fault
5845 to_execution_direction.
5846 * target.h (struct target_ops) <to_execution_direction>: New
5848 (target_execution_direction): New macro.
5849 * inferior.h (execution_direction): Change type to int.
5851 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5853 * infcall.c (call_function_by_hand): Don't allow calling functions
5854 in reverse execution mode.
5856 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5858 * infcmd.c (finish_command): Allow async finish in reverse.
5860 2011-05-26 Yao Qi <yao@codesourcery.com>
5862 * gdb_thread_db.h: Delete. Move to ...
5863 * common/gdb_thread_db.h: ... here.
5865 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5867 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5868 function's entry point instead of a manually managed momentary
5869 breakpoint, and only ever issue one proceed call.
5870 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5871 doing a reverse-finish, switch to stepi mode, to do another step.
5872 (insert_step_resume_breakpoint_at_sal): Make public.
5873 (normal_stop): No need to save function value return registers if
5875 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5877 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5879 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5880 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5881 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5883 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5884 step-resume breakpoints.
5885 (print_it_typical): Handle bp_hp_step_resume.
5886 (bpstat_what): Ditto.
5887 (bptype_string): Ditto.
5888 (print_one_breakpoint_location): Ditto.
5889 (allocate_bp_location): Ditto.
5891 (breakpoint_re_set_one): Ditto.
5892 * infrun.c (handle_inferior_event): Adjust. Split
5893 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5894 BPSTAT_WHAT_HP_STEP_RESUME.
5895 (insert_step_resume_breakpoint_at_sal): Rename to ...
5896 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5897 parameter. Handle it.
5898 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5899 insert_step_resume_breakpoint_at_sal_1.
5900 (insert_step_resume_breakpoint_at_frame): Rename to ...
5901 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5902 set a high-priority step-resume breakpoint.
5903 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5904 (insert_step_resume_breakpoint_at_caller): Ditto.
5906 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5908 * breakpoint.c (iterate_over_related_breakpoints): New.
5909 (do_map_delete_breakpoint): New.
5910 (delete_command): Pass do_map_delete_breakpoint to
5911 map_breakpoint_numbers.
5912 (do_disable_breakpoint): New.
5913 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5915 (do_enable_breakpoint): Rename to ...
5916 (enable_breakpoint_disp): ... this.
5917 (enable_breakpoint): Adjust.
5918 (do_enable_breakpoint): New.
5919 (enable_once_breakpoint): Delete.
5920 (do_map_enable_breakpoint): New.
5921 (do_map_enable_once_breakpoint): New.
5922 (enable_once_command, enable_delete_command)
5923 (delete_trace_command): Iterate over the breakpoint's related
5926 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5928 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5929 for ALPHA_ZERO_REGNUM.
5930 (alpha_supply_int_regs): Explicitly supply zero as the value for
5931 ALPHA_ZERO_REGNUM in the register cache.
5932 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5934 2011-05-26 Yao Qi <yao@codesourcery.com>
5936 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5938 2011-05-26 Tristan Gingold <gingold@adacore.com>
5940 * symfile.h (struct dwarf2_section_names): New type.
5941 (struct dwarf2_debug_sections): New type.
5942 (dwarf2_has_info): Add parameter.
5943 * dwarf2read.c (dwarf2_elf_names): New variable.
5944 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5945 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5946 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5947 (dwarf2_has_info): Add names parameter. Pass names
5948 to dwarf2_locate_sections.
5949 (section_is_p): Rewrite using the names parameter.
5950 (dwarf2_locate_sections): Use section names from the names parameter.
5951 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5952 * elfread.c (read_psyms): Ditto.
5953 * machoread.c (macho_symfile_read): Ditto.
5955 2011-05-25 Andreas Schwab <schwab@redhat.com>
5958 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5960 2011-05-24 Keith Seitz <keiths@redhat.com>
5963 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5964 (decode_compound): Unconditionally call keep_name_info.
5966 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5968 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5969 scope, clear its command list.
5970 (map_breakpoint_numbers): Don't walk the related breakpoints list
5973 2011-05-24 Tom Tromey <tromey@redhat.com>
5975 * MAINTAINERS: Move Jim Blandy to past maintainers.
5977 2011-05-24 Tristan Gingold <gingold@adacore.com>
5979 * symfile.h (enum dwarf2_section_enum): New type.
5980 (dwarf2_get_section_info): New prototype.
5981 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5982 section_name by sect. Use a switch to select the info.
5983 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5984 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5986 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5988 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5989 shared library event breakpoint if there's no execution.
5991 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5993 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5994 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5996 2011-05-23 Tom Tromey <tromey@redhat.com>
5998 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6001 2011-05-23 Doug Evans <dje@google.com>
6003 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6004 entry for RuntimeError to doc string.
6006 2011-05-23 Jerome Guitton <guitton@adacore.com>
6008 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6009 sequence for probing loops.
6011 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6013 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6016 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6018 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6019 zero as the value for %g0 in the register cache.
6020 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6021 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6023 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6025 * infrun.c (proceed): Set previous_inferior_ptid here.
6026 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6027 inferior_ptid, not null_ptid.
6028 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6029 (fetch_inferior_event): Nor here.
6031 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6033 * inf-loop.c (inferior_event_handler): Only output a message if
6036 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6038 * MAINTAINERS: Update my e-mail address.
6040 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6042 * infrun.c (proceed): Switch the inferior event loop to
6043 INF_EXEC_COMPLETE if the target refused to resume from a
6046 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6048 * infcmd.c: Include "inf-loop.h".
6049 (step_once): When stepping into an inline subroutine, pretend the
6050 target has run. If the target can async, switch the inferior
6051 event loop to INF_EXEC_COMPLETE.
6052 * inferior.h (user_visible_resume_ptid): Declare.
6053 * infrun.c (user_visible_resume_ptid): New function, factored out
6056 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6057 that the current thread is running. Merge async and sync
6060 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6062 * infcmd.c (step_1): Simplify synchronous case.
6064 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6066 * tracepoint.c: Include exceptions.h.
6067 (TFILE_PID): Move higher in file.
6068 (tfile_open): Delay pushing the tfile target until we're assured
6069 the tfile header is present in the file. Wrap reading the initial
6070 newline-terminated lines in TRY_CATCH. Pop the target if the
6071 initial setup failed. Add the tfile's thread immediately
6072 aftwards, before any non-essential setup. Don't skip
6073 post_create_inferior if there are no traceframes present in the
6075 (tfile_close): Remove redundant check for null before xfree call.
6076 (tfile_thread_alive): New function.
6077 (init_tfile_ops): Register it as to_thread_alive callback.
6079 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6081 * tracepoint.c (tfile_open): Delete #if 0'd code.
6083 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 Fix -readnow for -gdwarf-4 unused type units.
6086 * dwarf2read.c (struct signatured_type): Remove the field offset.
6087 (create_signatured_type_table_from_index): Remove its initialization.
6088 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6089 instead. Add a complaint call.
6090 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6091 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6092 (lookup_signatured_type_at_offset, read_signatured_type)
6093 (write_one_signatured_type): Update the field for per_cu.
6095 2011-05-19 Tom Tromey <tromey@redhat.com>
6097 * python/py-inferior.c (python_inferior_exit): Use
6099 (python_on_resume): Likewise.
6101 2011-05-19 Matt Rice <ratmice@gmail.com>
6103 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6105 2011-05-19 Hui Zhu <teawater@gmail.com>
6107 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6109 2011-05-19 Hui Zhu <teawater@gmail.com>
6111 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6113 2011-05-18 Tom Tromey <tromey@redhat.com>
6115 * dwarf2read.c (dwarf2_add_field): Constify.
6116 * value.c (value_static_field): Constify.
6117 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6119 * ax-gdb.c (gen_static_field): Constify
6121 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 * linux-nat.c (kill_callback): Use SIGKILL first.
6125 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6127 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6129 2011-05-18 Tom Tromey <tromey@redhat.com>
6131 * value.c (value_fn_field): Constify.
6132 * symtab.c (gdb_mangle_name): Constify.
6133 * stabsread.c (update_method_name_from_physname): Make 'physname'
6135 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6136 const. Use explicit fputc_filtered loop.
6137 (pascal_type_print_base): Constify.
6138 * p-lang.h (pascal_type_print_method_args): Update.
6139 * linespec.c (add_matching_methods): Constify.
6140 (add_constructors): Likewise.
6141 * jv-typeprint.c (java_type_print_base): Constify.
6142 * gdbtypes.h (struct cplus_struct_type)
6143 <fn_fieldlist.fn_field.physname>: Now const.
6144 * dwarf2read.c (compute_delayed_physnames): Constify.
6145 (dwarf2_add_member_fn): Likewise.
6146 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6148 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6150 * infrun.c (resume): Mention which is the current thread, and its
6151 current PC in debug output.
6152 (prepare_to_proceed): Mention the thread switching in debug
6155 2011-05-18 Tom Tromey <tromey@redhat.com>
6157 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6158 path check. Use xmalloc and cleanups.
6159 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6161 2011-05-17 Tom Tromey <tromey@redhat.com>
6163 * cp-valprint.c (cp_print_value_fields): Catch errors from
6166 2011-05-17 Tom Tromey <tromey@redhat.com>
6168 * dwarf2read.c (dwarf2_get_die_type): Call
6169 get_die_type_at_offset.
6170 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6171 get_base_type function.
6173 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6175 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6178 2011-05-16 Doug Evans <dje@google.com>
6180 * python/py-auto-load.c (source_section_scripts): Mention objfile
6183 2011-05-15 Doug Evans <dje@google.com>
6185 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6186 (try_thread_db_load_from_pdir): Call it. If unable to find
6187 libthread_db in directory of libpthread, see if we're looking at
6188 the separate-debug-info copy.
6190 * python/py-autoload.c (print_script): Print "Missing" instead of
6191 "No" for missing scripts.
6192 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6194 2011-05-13 Doug Evans <dje@google.com>
6196 * ui-file.c (stdio_file_write_async_safe): Add comment.
6198 2011-05-14 Hui Zhu <teawater@gmail.com>
6200 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6202 2011-05-13 Doug Evans <dje@google.com>
6204 Support $pdir and $sdir in libthread-db-search-path.
6205 * NEWS: Mention $sdir,$pdir.
6206 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6207 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6208 (try_thread_db_load_from_sdir): New function.
6209 (try_thread_db_load_from_dir): New function.
6210 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6211 system directories if search of libthread-db-search-path fails,
6212 that is now done via $sdir.
6213 (has_libpthread): New function.
6214 (thread_db_load): Remove search for libthread_db in directory of
6215 libpthread, that is now done via $pdir.
6217 * NEWS: Mention "info auto-load-scripts".
6218 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6219 script_not_found_warning_printed.
6220 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6221 all callers updated. Initialize script_not_found_warning_printed.
6222 (get_auto_load_pspace_data_for_loading): New function.
6223 (maybe_add_script): New function.
6224 (source_section_scripts): Simplify. Only print one warning regardless
6225 of the number of auto-load scripts not found.
6226 (clear_section_scripts): Clear script_not_found_warning_printed.
6227 (auto_load_objfile_script): Record script in hash table.
6228 (count_matching_scripts): New function.
6229 (maybe_print_script): Renamed from maybe_print_section_script, all
6230 callers updated. Rewrite to use ui_out_*.
6231 (info_auto_load_scripts): Renamed from
6232 maintenance_print_section_scripts, all callers updated.
6233 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6234 renamed as "info auto-load-scripts".
6236 2011-05-13 Tom Tromey <tromey@redhat.com>
6238 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6239 (read_sleb128): Likewise.
6241 2011-05-13 Tom Tromey <tromey@redhat.com>
6243 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6246 2011-05-13 Doug Evans <dje@google.com>
6248 * linux-nat.c (debug_linux_nat_async): Delete.
6249 Replace all references to use debug_linux_nat instead.
6250 (show_debug_linux_nat_async): Delete.
6251 (sigchld_handler): Call ui_file_write_async_safe instead of
6253 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6254 * ui-file.c (struct ui_file): New member to_write_async_safe.
6255 (null_file_write_async_safe): New function.
6256 (ui_file_write_async_safe): New function.
6257 (set_ui_file_write_async_safe): New function.
6258 (ui_file_new): Initialize to_write_async_safe.
6259 (stdio_file_write_async_safe): New function.
6260 (struct stdio_file): New member fd.
6261 (stdio_file_new): Initialize to_write_async_safe, fd.
6262 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6264 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6265 (set_ui_file_write_async_safe): Declare.
6266 (ui_file_write_async_safe): Declare.
6268 2011-05-13 Tom Tromey <tromey@redhat.com>
6270 * utils.c (do_value_free): New function.
6271 (make_cleanup_value_free): Likewise.
6272 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6274 (dwarf2_loc_desc_needs_frame): Call
6275 make_cleanup_value_free_to_mark.
6276 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6277 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6279 (new_dwarf_expr_context): Don't call value_mark.
6280 * dwarf2-frame.c (execute_stack_op): Call
6281 make_cleanup_value_free_to_mark.
6282 * defs.h (make_cleanup_value_free): Declare.
6284 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6286 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6287 prepare_execute_command.
6288 * top.c (prepare_execute_command): Return cleanup.
6289 (execute_command): Use cleanup from prepare_execute_command.
6290 * top.h (prepare_execute_command): Change prototype to return
6292 * defs.h (struct value): Add opaque declaration.
6293 (make_cleanup_value_free_to_mark): Add prototype.
6294 * utils.c (do_value_free_to_mark): New function.
6295 (make_cleanup_value_free_to_mark): Likewise.
6297 2011-05-12 Tom Tromey <tromey@redhat.com>
6299 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6300 cast left-hand-side to unsigned.
6302 2011-05-12 Tom Tromey <tromey@redhat.com>
6305 * value.h (value_from_contents): Declare.
6306 * value.c (value_from_contents): New function.
6307 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6308 (dwarf2_get_die_type): New function.
6309 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6310 (allocate_piece_closure): Acquire reference to values.
6311 (read_pieced_value): Update for value-based expressions.
6312 (write_pieced_value): Likewise.
6313 (free_pieced_value_closure): Call value_free as needed.
6314 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6315 Update for value-based expressions.
6316 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6317 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6318 <get_base_type>: New field.
6319 (struct dwarf_expr_piece) <v.value>: Change type.
6320 <v.regno>: New field.
6321 (struct dwarf_expr_context) <mark>: New field.
6322 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6323 (dwarf_expr_pop, dwarf_expr_push): Remove.
6324 (dwarf_expr_push_address): Declare.
6325 * dwarf2expr.c (dwarf_arch_cookie): New global.
6326 (struct dwarf_gdbarch_types): New.
6327 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6329 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6331 (dwarf_expr_push_address): New function.
6332 (dwarf_expr_pop): Now static.
6333 (dwarf_expr_fetch): Change return type.
6334 (dwarf_require_integral): New function.
6335 (dwarf_expr_fetch): Simplify.
6336 (add_piece): Update.
6337 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6339 (execute_stack_op) <sign_ext>: Remove.
6340 Use values for DWARF stack.
6341 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6342 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6344 (_initialize_dwarf2expr): New function.
6345 (add_piece): Update.
6346 (new_dwarf_expr_context): Set new field.
6347 (free_dwarf_expr_context): Call value_free_to_mark.
6348 * dwarf2-frame.c (no_base_type): New function.
6349 (execute_stack_op): Set get_base_type field. Update.
6351 2011-05-12 Tom Tromey <tromey@redhat.com>
6353 * dwarf2read.c (read_common_block): Fix formatting.
6355 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6357 * breakpoint.c (disable_breakpoint): Disable all locations
6358 associated with a tracepoint on target if a trace experiment is
6360 (disable_command): Disable a specific tracepoint location on target if
6361 a trace experiment is running.
6362 (do_enable_breakpoint): Enable all locations associated with a
6363 tracepoint on target if a trace experiment is running.
6364 (enable_command) Enable a specific tracepoint location on target if a
6365 trace experiment is running.
6366 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6367 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6368 to_disable_tracepoint.
6369 * target.h: Add declaration of struct bp_location.
6370 (struct target_ops): Add new functions
6371 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6372 to_disable_tracepoint to target operations.
6373 (target_supports_enable_disable_tracepoint): New macro.
6374 (target_enable_tracepoint): New macro.
6375 (target_disable_tracepoint): New macro.
6376 * remote.c (struct remote_state): Add new field.
6377 (remote_enable_disable_tracepoint_feature): New.
6378 (remote_protocol_features): Add new entry.
6379 (remote_supports_enable_disable_tracepoint): New.
6380 (remote_enable_tracepoint): New.
6381 (remote_disable_tracepoint): New.
6382 (init_remote_ops): Add remote_enable_tracepoint,
6383 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6384 to remote operations.
6385 * tracepoint.c (start_tracing): Allow tracing to start without any
6386 tracepoints enabled with just a warning if they can be re-enabled
6388 * NEWS: Add news item for the new behaviour of the enable and disable
6389 GDB commands when applied to tracepoints.
6390 Add news items for the new remote packets QTEnable and QTDisable.
6392 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6394 * config.in: Regenerate.
6395 * configure: Regenerate.
6396 * configure.ac <--with-system-readline> (for readline_echoing_p):
6398 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6399 (tui_old_rl_echoing_p): ... here.
6400 (tui_setup_io): Rename extern declaration readline_echoing_p to
6401 _rl_echoing_p. Adjust assignments for the both renames.
6403 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6405 * symtab.c (lookup_symtab): Run cleanup before returning.
6407 2011-05-11 Tom Tromey <tromey@redhat.com>
6409 * dwarf2read.c (handle_data_member_location): New function.
6410 (dwarf2_add_field): Use it.
6411 (read_common_block): Likewise.
6413 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6415 Make addrs->SECTINDEX always defined.
6416 * symfile.c (relative_addr_info_to_section_offsets): Check for
6417 SECTINDEX -1, not for zero ADDR.
6418 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6419 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6420 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6423 2011-05-10 Doug Evans <dje@google.com>
6425 * linux-thread-db.c: Whitespace cleanup.
6426 (try_thread_db_load_1): Fix comment.
6428 * linux-thread-db.c (set_libthread_db_search_path): New function.
6429 (_initialize_thread_db): Add setter for libthread-db-search-path.
6431 2011-05-09 Doug Evans <dje@google.com>
6433 * NEWS: Mention --with-iconv-bin.
6434 * configure.ac: New option --with-iconv-bin.
6435 * configure: Regenerate.
6436 * config.in: Regenerate.
6437 * defs.h (relocate_gdb_directory): Declare.
6438 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6439 removed progname parameter, and exported. All callers updated.
6440 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6442 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6443 adding missing call to restore_child_signals_mask.
6445 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6447 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6449 * infrun.c (proceed, start_remote): Adjust.
6450 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6451 and adjust to not handle it.
6452 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6453 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6454 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6455 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6456 * windows-nat.c (do_initial_windows_stuff): Adjust.
6457 * infcmd.c (attach_command): Adjust.
6458 (notice_new_inferior): Adjust.
6460 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6462 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6463 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6464 * spu-tdep.c (op_selb): Use correct value.
6466 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6468 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6469 "parent" parameter to symbol_file_add_from_bfd call.
6471 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6472 Thiago Jung Bauermann <bauerman@br.ibm.com>
6474 Implement support for PowerPC BookE masked watchpoints.
6475 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6477 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6478 method. Initialize to NULL in all existing breakpoint_ops instances.
6479 (struct breakpoint) <hw_wp_mask>: New field.
6480 * breakpoint.c (is_masked_watchpoint): Add prototype.
6481 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6482 breakpoint's breakpoint_ops.works_in_software_mode if available.
6483 (watchpoints_triggered): Handle the case of a hardware masked
6485 (watchpoint_check): Likewise.
6486 (works_in_software_mode_watchpoint): New function.
6487 (insert_masked_watchpoint, remove_masked_watchpoint)
6488 (resources_needed_masked_watchpoint)
6489 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6490 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6491 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6493 (masked_watchpoint_breakpoint_ops): New structure.
6494 (watch_command_1): Check for the existence of the `mask' parameter.
6495 Set b->ops according to the type of hardware watchpoint being created.
6496 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6497 (ppc_linux_remove_mask_watchpoint)
6498 (ppc_linux_masked_watch_num_registers): New functions.
6499 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6500 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6501 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6502 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6503 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6504 (target_masked_watch_num_registers): New functions.
6505 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6506 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6508 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6509 (target_masked_watch_num_registers): Add prototypes.
6511 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6514 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6515 (producer_is_gcc_ge_4_0): New function.
6516 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6517 symtab->language code.
6518 (var_decode_location): Set cu->has_loclist.
6519 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6520 skip. Intialize force_skip from locations_valid. Move the prologue
6521 skipping code into two passes.
6522 * symtab.h (struct symtab): Make the primary field a bitfield. New
6523 field locations_valid.
6525 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6527 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6528 (classify_inner_name): Call cp_lookup_nested_type with
6530 * cp-namespace.c (cp_lookup_nested_type): New variable
6531 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6532 type_name_no_tag_or_error with saved_parent_type.
6533 * dwarf2read.c (load_partial_dies): Read in any children of
6534 DW_TAG_typedef with complaint in such case.
6535 * gdbtypes.c (type_name_no_tag_or_error): New function.
6536 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6537 * valops.c (destructor_name_p): New comment for parameter type. Remove
6538 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6539 * value.h (destructor_name_p): Remove type const.
6541 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6543 * symtab.c (compare_symbol_name): New function.
6544 (completion_list_add_name, expand_partial_symbol_name): Call it,
6545 remove the variable ncmp.
6546 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6549 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6551 Demote to sw watchpoint only in update_watchpoint.
6552 * breakpoint.c (update_watchpoint): Change between software and
6553 hardware watchpoint for all kinds of watchpoints, not just
6554 read/write ones. Determine b->exact value here instead of
6555 in watch_command_1. Error out if there are not enough resources
6556 for a read or access hardware watchpoint.
6557 (watch_command_1): Remove logic of checking whether there are
6558 enough resources available, since update_watchpoint will do that
6559 work now. Don't set b->exact here. Catch exceptions thrown by
6560 update_watchpoint and delete the watchpoint.
6561 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6562 Use target_exact_watchpoints instead.
6563 (delete_breakpoint): Notify observers only if deleted watchpoint
6564 has a breakpoint number assigned to it.
6566 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6568 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6570 2011-05-05 Jerome Guitton <guitton@adacore.com>
6572 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6574 (i386_stack_tramp_frame_unwind): New static global.
6575 (i386_match_pattern): New function, extracted from i386_match_insn.
6576 (i386_match_insn): Use i386_match_pattern.
6577 (i386_match_insn_block): New function.
6578 (i386_tramp_chain_in_reg_insns)
6579 (i386_tramp_chain_on_stack_insns): New static variables.
6580 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6583 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6585 * configure.host (xscale*): Don't handle target.
6586 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6589 2011-05-04 Yao Qi <yao@codesourcery.com>
6591 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6593 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6596 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6597 | * elfread.c (elf_symtab_read): Stop memory leak.
6599 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6601 * nto-tdep.c (nto_target): Replace deprecated call to
6602 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6604 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 Fix false GCC warning.
6607 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6609 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6611 * breakpoint.c (update_watchpoint): Move code to change
6612 the enable state of breakpoint from here ...
6613 (do_enable_breakpoint): ... to here.
6615 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6617 * valprint.c (val_print_array_elements): Fixed poor performance
6618 of printing very large arrays with repeat_count_threshold set
6619 to unlimited. New comment.
6621 2011-04-29 Tom Tromey <tromey@redhat.com>
6623 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6624 (mi_parse): Likewise.
6625 * breakpoint.c (break_range_command): Use sizeof char*, not
6627 (create_breakpoint): Likewise.
6628 (parse_breakpoint_sals): Likewise.
6630 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6632 * linux-nat.c (linux_child_remove_fork_catchpoint)
6633 (linux_child_remove_vfork_catchpoint)
6634 (linux_child_remove_exec_catchpoint): New functions.
6635 (linux_target_install_ops): Install them.
6637 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6641 * varobj.c (install_default_visualizer): Do not install a
6642 visualizer if the varobj is CPLUS_FAKE_CHILD.
6643 (construct_visualizer): Likewise.
6645 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6647 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6648 case insensitive comparison.
6650 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6652 * infrun.c (proceed): Revert previous change.
6653 (resume): Instead, handle the case of signal delivery while stepping
6654 off a breakpoint location here, and only if software single-stepping
6655 is used. Handle nested signals.
6657 2011-04-28 Yao Qi <yao@codesourcery.com>
6659 * arm-tdep.c (copy_unmodified): Rename to ...
6660 (arm_copy_unmodified): .. this. New.
6661 (copy_preload): Move common part to ...
6662 (install_preload): .. this. New.
6663 (arm_copy_preload): New.
6664 (copy_preload_reg): Move common part to ...
6665 (install_preload_reg): ... this. New.
6666 (arm_copy_preload_reg): New.
6667 (copy_b_bl_blx): Move common part to ...
6668 (install_b_bl_blx): .. this. New.
6669 (arm_copy_b_bl_blx): New.
6670 (copy_bx_blx_reg): Move common part to ...
6671 (install_bx_blx_reg): ... this. New.
6672 (arm_copy_bx_blx_reg): New.
6673 (copy_alu_reg): Move common part to ...
6674 (install_alu_reg): ... this. New.
6675 (arm_copy_alu_reg): New.
6676 (copy_alu_shifted_reg): Move common part to ...
6677 (install_alu_shifted_reg): ... this. New.
6678 (copy_ldr_str_ldrb_strb): Move common part to ...
6679 (install_ldr_str_ldrb_strb): ... this. New.
6680 (arm_copy_ldr_str_ldrb_strb): New.
6681 (copy_copro_load_store): Move some common part to ...
6682 (install_copy_copro_load_store): ... this. New.
6683 (arm_copy_copro_load_store): New.
6685 (arm_copy_svc): Renamed from copy_svc.
6686 (copy_undef): Delete.
6687 (arm_copy_undef): Renamed from copy_undef.
6688 (decode_ext_reg_ld_st): Delete.
6689 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6690 (decode_svc_copro): Delete.
6691 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6692 (copy_copro_load_store, copy_alu_imm): update callers.
6693 (copy_extra_ld_st, copy_block_xfer): Likewise.
6694 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6695 (decode_miscellaneous, decode_dp_misc): Likewise.
6696 (decode_ld_st_word_ubyte, decode_media): Likewise.
6697 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6698 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6699 (decode_unconditional, decode_miscellaneous): Likewise.
6700 (decode_media, decode_b_bl_ldmstm): Likewise.
6701 (arm_process_displaced_insn): Likewise..
6702 (decode_misc_memhint_neon): Delete.
6703 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6704 (decode_miscellaneous): Delete.
6705 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6706 (decode_dp_misc): Delete.
6707 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6708 (decode_ld_st_word_ubyte): Delete.
6709 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6710 (decode_media): Delete.
6711 (arm_decode_media): Renamed from decode_media.
6712 (decode_b_bl_ldmstm): Delete.
6713 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6714 (decode_ext_reg_ld_st): Delete.
6715 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6716 (decode_unconditional): Delete.
6717 (arm_decode_unconditional): Renamed from decode_unconditional.
6719 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6721 Case insensitive lookups implementation.
6722 * dwarf2read.c: Include ctype.h.
6723 (struct mapped_index): New field version.
6724 (mapped_index_string_hash): New parameter index_version. New comment
6725 for it. Call tolower appropriately.
6726 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6727 Choose the right index version for mapped_index_string_hash.
6728 (dwarf2_read_index): Support also the index version 5. Initialize the
6729 new struct mapped_index field version.
6730 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6731 (find_slot): Explain the version needs. Pass INT_MAX for the new
6733 (write_psymtabs_to_index): Produce version 5.
6734 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6735 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6736 * psymtab.c (lookup_partial_symbol): Find the
6737 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6739 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6741 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6742 (completion_list_add_name): New variable ncmp, initialize it, use it.
6743 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6744 * utils.c (strcmp_iw): Support case_sensitive_off.
6745 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6746 New function comment part. New variables saved_string1,
6747 saved_string2 and case_pass. Add a proper second pass.
6749 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6751 Replace re_comp/re_exec by regcomp/regexec.
6752 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6753 (search_symbols_name_matches): Use them, use regexec.
6754 (search_symbols): New variable retval_chain, adjust the use of
6755 old_chain against it. Replace re_comp by regcomp. Use the new struct
6756 search_symbols_data fields, use regexec instead of re_exec.
6758 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6760 Format the code for the next patch.
6761 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6762 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6763 New variables c1 and c2.
6765 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6767 * infrun.c (proceed): Do not single-step into signal delivery
6768 when stepping off a breakpoint location.
6769 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6770 (insert_step_resume_breakpoint_at_caller): Likewise.
6771 (insert_step_resume_breakpoint_at_sal): Likewise.
6772 (insert_longjmp_resume_breakpoint): Likewise.
6774 2011-04-27 Yao Qi <yao@codesourcery.com>
6776 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6778 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6780 * procfs.c (procfs_pass_signals): Fix advance declaration.
6782 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6784 * target.h (struct target_ops): Remove to_notice_signals;
6785 add to_pass_signals.
6786 (target_notice_signals): Remove.
6787 (target_pass_signals): Add prototype.
6788 * target.c (update_current_target): Remove to_notice_signals;
6789 mention to_pass_signals.
6790 (target_pass_signals): New function.
6791 (debug_to_notice_signals): Remove.
6792 (setup_target_debug): Do not install debug_to_notice_signals.
6794 * infrun.c (signal_pass): New global.
6795 (resume): Call target_pass_signals.
6796 (handle_inferior_event): Report all signals while stepping over
6797 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6798 are re-inserted when stepping over a signal handler.
6799 (signal_cache_update): New function.
6800 (signal_stop_update): Call it.
6801 (signal_print_update): Likewise.
6802 (signal_pass_update): Likewise.
6803 (handle_command): Call signal_cache_update and target_pass_signals
6804 instead of target_notice_signals.
6805 (_initialize_infrun): Initialize signal_pass.
6807 * linux-nat.c (pass_mask): New global.
6808 (linux_nat_pass_signals): New function.
6809 (linux_nat_create_inferior): Report all signals initially.
6810 (linux_nat_attach): Likewise.
6811 (linux_nat_resume): Use pass_mask to decide whether to directly
6812 handle an inferior signal.
6813 (linux_nat_wait_1): Likewise.
6814 (linux_nat_add_target): Install to_pass_signals callback.
6816 * nto-procfs.c (notice_signals): Remove.
6817 (procfs_resume): Do not call notice_signals.
6818 (procfs_notice_signals): Remove.
6819 (procfs_pass_signals): New function.
6820 (init_procfs_ops): Install to_pass_signals callback instead of
6821 to_notice_signals callback.
6822 (_initialize_procfs): Report all signals initially.
6824 * procfs.c (procfs_notice_signals): Remove.
6825 (procfs_pass_signals): New function.
6826 (procfs_target): Install to_pass_signals callback instead of
6827 to_notice_signals callback.
6828 (register_gdb_signals): Remove.
6829 (procfs_debug_inferior): Report all signals initially.
6830 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6832 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6833 parameters; use them instead of calling signal_..._state routines.
6834 (remote_notice_signals): Remove.
6835 (remote_start_remote): Report all signals initially.
6836 (remote_resume): Do not call remote_pass_signals.
6837 (_initialize_remote): Install to_pass_signals callback instead of
6838 to_notice_signals callback.
6840 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6842 * breakpoint.c (user_settable_breakpoint): Delete.
6843 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6844 (delete_command): Check user_breakpoint_p instead of looking at
6845 the breakpoint's type.
6846 (disable_command): Ditto.
6847 (enable_command): Ditto.
6848 (delete_trace_command): Use user_breakpoint_p instead of looking
6849 at the breakpoint number directly. When checking if there are
6850 user visible tracepoints, in order to know whether to ask the user
6851 for confirmation, check whether the breakpoint is actually a
6854 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6856 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6859 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6861 MI breakpoint notifications.
6863 * annotate.c (breakpoint_changed): Adjust parameter type.
6864 * breakpoint.c (set_breakpoint_condition): Adjust to change
6865 in breakpoint_modified type.
6866 (breakpoint_set_commands): Likewise.
6867 (do_map_commands_command): Likewise.
6868 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6869 changed after bumping hit count.
6870 (bpstat_stop_status): Likewise.
6871 (print_one_breakpoint_location): Don't wrap in tuple here.
6872 (print_one_breakpoint): Always print individual locations.
6873 For locations, use unnamed tuple.
6874 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6876 (create_catchpoint, create_syscall_event_catchpoint): Call
6877 breakpoint_created obsever.
6878 (mention): Don't call breakpoint_created observer.
6879 (create_breakpoint_sal): Call breakpoint_created observer.
6880 (create_breakpoint, watch_command_1): Likewise.
6881 (create_ada_exception_breakpoint): Likewise.
6882 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6883 (locations_are_equal): New.
6884 (update_breakpoint_locations): If locations were changed, notify.
6885 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6886 Call breakpoint_modified observer.
6888 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6889 (mi_cmd_break_insert): Don't set observers for modify and delete.
6890 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6891 (mi_breakpoint_created, mi_breakpoint_deleted)
6892 (mi_breakpoint_modified): New.
6893 (mi_interpreter_init): Hook the above.
6894 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6895 while -break-* commands are executing.
6896 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6897 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6899 (mi_ui_out_impl): Hook in mi_redirect.
6900 (mi_field_skip): True to the name, skip the field, don't output
6901 a field with an empty value.
6903 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6904 (gdbpy_breakpoint_deleted): Adjust.
6905 * tui/tui-hooks.c (tui_event_create_breakpoint)
6906 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6908 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6910 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6911 (procfs_remove_hw_watchpoint): Likewise.
6913 2011-04-26 Michael Walle <michael@walle.cc>
6915 * remote.c (remote_start_remote): Ack packet after sending the
6918 2011-04-26 Yao Qi <yao@codesourcery.com>
6920 * linux-nat.c: Move common macros to ...
6921 Include linux-ptrace.h.
6922 * common/linux-ptrace.h: ... here. New.
6924 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6926 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6927 !objfile_has_partial_symbols. New comment.
6928 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6929 SYM_READ_PSYMBOLS is not present. Extend the comment.
6930 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6932 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 * defs.h (ENUM_BITFIELD): Remove.
6936 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6937 Eli Zaretskii <eliz@gnu.org>
6939 * NEWS: Document the new gdbserver --once option.
6941 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6943 * MAINTAINERS: Update my email address.
6945 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6947 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6948 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6949 function call if __STDC_ISO_10646__ macro is defined.
6950 (intermediate_encoding): New prototype.
6951 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6952 to generate compile time error for unsupported gdb_wchar_t size.
6953 (ENDIAN_SUFFIX): New macro.
6954 (intermediate_encoding): New function.
6956 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6958 * ada-lang.c (struct add_partial_datum): Update the comment for
6959 expand_partial_symbol_name.
6960 (ada_add_partial_symbol_completions): Rename to ...
6961 (ada_expand_partial_symbol_name): ... here, change return type, update
6962 function comment, call symbol_completion_match instead of
6963 symbol_completion_add.
6964 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6965 and ada_expand_partial_symbol_name.
6966 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6968 (dw2_map_symbol_names): Remove.
6969 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6970 * psymtab.c (map_symbol_names_psymtab): Remove.
6971 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6972 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6974 (psym_functions): Unlist map_symbol_names_psymtab.
6975 (map_partial_symbol_names): Rename to ...
6976 (expand_partial_symbol_names): ... here, change the FUN type, call
6977 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6978 * psymtab.h (map_partial_symbol_names): Rename to ...
6979 (expand_partial_symbol_names): ... here, change the FUN type.
6980 * symfile.h (struct quick_symbol_functions): Update the description of
6981 expand_symtabs_matching. Remove map_symbol_names.
6982 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6983 (struct add_name_data): Update the comment for
6984 expand_partial_symbol_name.
6985 (add_partial_symbol_name): Rename to ...
6986 (expand_partial_symbol_name): ... here. Replace
6987 completion_list_add_name call by strncmp.
6988 (default_make_symbol_completion_list_break_on): Use now
6989 expand_partial_symbol_names and expand_partial_symbol_name.
6990 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6992 2011-04-20 Tom Tromey <tromey@redhat.com>
6994 * dwarf2read.c (save_gdb_index_command): Replace format
6995 documentation with a pointer to the manual.
6997 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6999 * regcache.c: Include remote.h.
7000 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7001 (regcache_dump): Handle regcache_dump_remote.
7002 (maintenance_print_remote_registers): New function.
7003 (_initialize_regcache): Install "maint print remote-registers"
7005 * remote.c (map_regcache_remote_table): New function, factored out
7007 (init_remote_state): ... here.
7008 (remote_register_number_and_offset): New.
7009 * remote.h (remote_register_number_and_offset): Declare.
7011 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7013 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7014 null_ptid, assume and allow a NULL address space, instead of
7015 asking the target for the ptid's address space.
7016 * infrun.c (ptid_is_pid): Remove assertion.
7018 2011-04-19 Tom Tromey <tromey@redhat.com>
7020 * windows-tdep.c (windows_xfer_shared_library):
7021 * windows-nat.c (get_module_name, windows_make_so):
7022 * v850-tdep.c (v850_handle_pushm):
7023 * utils.c (null_cleanup, gdb_realpath):
7024 * ui-out.c (get_next_header):
7025 * tracepoint.c (clear_traceframe_info):
7026 * symtab.c (lookup_symtab):
7027 * serial.h (struct serial_ops):
7028 * mipsread.c (read_alphacoff_dynamic_symtab):
7029 * infcmd.c (print_return_value):
7030 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7031 * f-exp.y (parse_number):
7032 * exceptions.c (catch_exceptions):
7033 * dummy-frame.c (dummy_frame_this_id):
7034 * defs.h (struct cleanup):
7035 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7036 * arm-tdep.c (arm_push_dummy_call):
7037 * amd64-tdep.h (amd64_collect_xsave):
7038 * amd64-tdep.c (amd64_collect_xsave):
7039 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7040 * README (typing): Remove duplicate words.
7041 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7042 * infrun.c (siginfo_value_read): Fix typo.
7043 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7044 * top.c (source_line_number): Add comma.
7046 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7048 * thread.c (any_live_thread_of_process): Prioritize threads
7049 that are not executing.
7050 * gdbthread.h (any_live_thread_of_process): Update comment
7051 as per above change.
7053 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7055 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7056 (scan_xcoff_symtab): Likewise.
7058 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7060 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7063 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7064 Pedro Alves <pedro@codesourcery.com>
7066 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7067 variables to simplify code and avoid == operator at end of
7068 line as this is against GNU coding standards.
7070 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7072 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7073 lm_name to name_lm to avoid conflict with lm_name function.
7075 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7077 ARI fixes: Use only lowercase function name for static functions.
7078 * nto-tdep.c (LM_ADDR): Rename to...
7079 (lm_addr): New function name.
7080 (nto_relocate_section_addresses): Adapt to change above.
7081 * solib-sunos.c (LM_ADDR): Rename to...
7082 (lm_addr): New function name.
7083 (LM_NEXT): Rename to...
7084 (lm_next): New function name.
7085 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7086 function name changes above.
7087 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7088 (lm_addr_from_link_map): New function name.
7089 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7090 (has_lm_dynamic_from_link_map): New function name.
7091 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7092 (lm_dynamic_from_link_map): New function name.
7093 (LM_ADDR_CHECK): Rename to...
7094 (lm_addr_check): New function name.
7095 (LM_NEXT): Rename to...
7096 (lm_next): New function name.
7097 (LM_PREV): Rename to...
7098 (lm_prev): New function name.
7099 (LM_NAME): Rename to...
7100 (lm_name): New function name.
7101 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7102 (ignore_first_link_map_entry): New function name.
7103 (svr4_keep_data_in_core): Adapt to function name changes above.
7104 (svr4_current_sos): Likewise.
7105 (enable_break): Likewise.
7106 (svr4_relocate_section_addresses): Likewise.
7108 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7111 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7112 sprintf. Simplify code and avoid loosing memory.
7113 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7114 (call0_frame_cache): Remove && operator from end of line.
7116 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7118 Fix libraries displacement if they change whether they were prelinked.
7119 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7120 does not match. Comment why.
7122 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7124 * corelow.c: Include wrapper.h.
7125 (core_open): Call now gdb_target_find_new_threads.
7126 * wrapper.c: Include target.h.
7127 (gdb_target_find_new_threads): New.
7128 * wrapper.h (gdb_target_find_new_threads): New declaration.
7130 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7132 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7133 even if !TARGET_HAS_EXECUTION.
7135 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7137 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7138 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7139 bfd_get_synthetic_symtab.
7140 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7141 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7142 parameter parent, remove the call to add_separate_debug_objfile.
7143 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7144 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7145 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7146 parent, new comment for it, call add_separate_debug_objfile for it.
7147 (symbol_file_add_separate): Pass objfile as the parameter parent,
7148 remove the call to add_separate_debug_objfile.
7149 (symbol_file_add_from_bfd): New parameter parent, pass it.
7150 (symbol_file_add): Pass NULL to the new parameter parent.
7151 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7153 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7155 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7158 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7160 Fix Python access to inlined frames.
7161 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7162 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7164 2011-04-15 Tom Tromey <tromey@redhat.com>
7166 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7168 2011-04-15 Gary Benson <gbenson@redhat.com>
7170 * MAINTAINERS: Add myself to write-after-approval section.
7172 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7174 * remote-sim.c (sim_command_completer): New function.
7175 (_initialize_remote_sim): Set completer to sim_command_completer.
7177 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7179 * breakpoint.c (print_exception_catchpoint): Rename to ...
7180 (print_it_exception_catchpoint): ... this.
7181 (gnu_v3_exception_catchpoint_ops): Update with new name
7182 for print_it_exception_catchpoint.
7184 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7186 * MAINTAINERS: Add myself for write after approval privileges.
7188 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7190 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7192 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7194 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7196 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7198 * breakpoint.c (save_breakpoints): Verify whether
7199 breakpoint_ops.print_recreate is defined before calling it.
7201 2011-04-11 Gary Benson <gbenson@redhat.com>
7203 Fix failure with --enable-maintainer-mode.
7204 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7206 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * symtab.c (search_symbols): Reorder the KIND description in the
7210 function comment. Remove the unused 4th element of types, types2,
7211 types3 and types4. New gdb_assert on KIND.
7212 (symtab_symbol_info): Remove the unused 4th element of classnames.
7213 New gdb_assert on KIND.
7214 * symtab.h (enum search_domain): New warning in the enum comment.
7215 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7218 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7220 Fix crash of gdb save-index on a STABS file.
7221 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7224 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7226 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7227 * dwarf2read.c: Include ctype.h.
7228 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7230 (dwarf2_add_field): Fix new_field->accessibility by calling
7231 dwarf2_default_access_attribute. Restructure setting accessibility
7233 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7234 is_private and is_protected by calling
7235 dwarf2_default_access_attribute.
7237 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7239 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7240 to the initialization.
7242 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7244 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7247 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7249 Remove support for old Cygwin 1.5 versions.
7250 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7251 function on old Cygwin version.
7252 * windows-nat.c: Remove cygwin version check and always define
7253 __USEWIDE for Cygwin compilation.
7255 2011-04-07 Yao Qi <yao@codesourcery.com>
7257 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7259 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7260 (arm_copy_svc): Remove parameters INSN and TO.
7261 (decode_svc_copro): Update caller.
7262 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7263 from function pointer `copy_svc_os'.
7265 2011-04-07 Yao Qi <yao@codesourcery.com>
7267 * arm-tdep.c (cleanup_branch): Set a correct return address in
7268 LR for ARM and Thumb.
7270 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7273 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7274 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7275 in the function comment, a new note on values compatibility.
7276 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7277 * symtab.h (SYMBOL_HASH_NEXT): New.
7279 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7281 * ppc-linux-nat.c (check_condition): Add len output parameter.
7282 Set it based on the memory region referenced in the condition
7283 expression. Update all callers.
7285 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7287 Fix crash regression on systems featuring .gdb_index.
7288 * objfiles.c (free_objfile): Move the
7289 forget_cached_source_info_for_objfile call earlier. Comment it.
7290 Extend the comment for objfile_free_data.
7292 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7294 Fix regression of displaying the debug format.
7295 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7298 2011-04-04 Tom Tromey <tromey@redhat.com>
7300 * cli/cli-interp.c (struct captured_execute_command_args):
7302 (do_captured_execute_command): Remove.
7303 (safe_execute_command): Use TRY_CATCH.
7304 * cli/cli-script.c (struct wrapped_read_command_file_args):
7306 (wrapped_read_command_file): Remove.
7307 (script_from_file): Use TRY_CATCH.
7308 * exceptions.c (catch_exception): Remove.
7309 * exceptions.h (catch_exception): Remove.
7310 (deprecated_throw_reason): Update comment.
7311 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7312 argument to 'context'.
7313 (mi_execute_command): Use TRY_CATCH.
7314 * remote.c (struct start_remote_args): Remove.
7315 (remote_start_remote): Update; change arguments.
7316 (remote_open_1): Use TRY_CATCH.
7318 2011-04-04 Tom Tromey <tromey@redhat.com>
7320 * tracepoint.c (scope_info): Update.
7321 * symtab.c (decode_line_spec): Update.
7322 * python/python.c (gdbpy_decode_line): Update.
7323 * linespec.h (decode_line_1): Update.
7324 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7325 (decode_compound, find_method, symtab_from_filename)
7326 (decode_variable): Likewise.
7327 * cli/cli-cmds.c (edit_command): Update.
7328 (list_command): Update.
7329 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7331 (create_breakpoint): Update.
7332 (until_break_command): Update.
7333 (addr_string_to_sals): Update.
7334 (decode_line_spec_1): Update.
7336 2011-04-04 Tom Tromey <tromey@redhat.com>
7338 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7339 (do_captured_parse_breakpoint): Remove.
7340 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7341 Use TRY_CATCH directly.
7343 2011-04-04 Tom Tromey <tromey@redhat.com>
7345 * symtab.h (free_symtab): Remove.
7346 (forget_cached_source_info_for_objfile): Declare.
7347 * symmisc.c (free_symtab): Remove.
7348 * source.c (forget_cached_source_info_for_objfile): New function.
7349 (forget_cached_source_info): Use it.
7350 * objfiles.c (free_objfile): Simplify check before calling
7351 clear_current_source_symtab_and_line. Call
7352 forget_cached_source_info_for_objfile.
7354 2011-04-04 Tom Tromey <tromey@redhat.com>
7356 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7357 (new_symtab): Don't set `free_code' on symtab.
7358 (new_linetable): Properly handle size==0.
7359 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7360 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7362 * jv-lang.c (struct jv_per_objfile_data): New.
7363 (jv_per_objfile_free): Free the data.
7364 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7365 (get_java_class_symtab): Set the `dict' field on the
7366 jv_per_objfile_data.
7367 (free_class_block): Remove.
7368 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7371 2011-04-04 Tom Tromey <tromey@redhat.com>
7373 * symfile.c (reread_symbols): Update.
7374 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7376 * objfiles.c (allocate_objfile): Update.
7377 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7379 * cp-namespace.c (lookup_symbol_file): Don't call
7380 lookup_possible_namespace_symbol.
7381 (initialize_namespace_symtab, get_possible_namespace_block)
7382 (free_namespace_block, cp_check_possible_namespace_symbols)
7383 (check_possible_namespace_symbols_loop)
7384 (check_one_possible_namespace_symbol)
7385 (lookup_possible_namespace_symbol): Remove.
7386 (maintenance_cplus_namespace): Replace with notice.
7387 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7389 2011-04-04 Tom Tromey <tromey@redhat.com>
7391 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7392 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7393 * symmisc.c (free_symtab): Don't free debugformat.
7394 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7395 (record_debugformat, record_producer): Document.
7396 * buildsym.c (end_symtab): Don't save debugformat and producer
7398 (end_symtab): Don't free debugformat and producer fields.
7399 (record_debugformat): Don't call xstrdup.
7400 (record_producer): Likewise.
7402 2011-04-04 Tom Tromey <tromey@redhat.com>
7404 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7405 (source_line_charpos, source_charpos_line): Remove.
7407 2011-04-04 Tom Tromey <tromey@redhat.com>
7409 * symtab.h (domain_enum): Split in two...
7410 (enum search_domain): New.
7411 (search_symbols): Update.
7412 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7413 redundant declarations.
7414 (search_symbols): Change 'kind' argument to search_domain.
7416 (print_symbol_info): Likewise.
7417 (symtab_symbol_info): Likewise.
7418 * symfile.h (struct quick_symbol_functions)
7419 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7420 <expand_symtabs_matching>: Likewise.
7421 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7422 (expand_symtabs_matching_via_partial): Update.
7423 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7424 (dw2_expand_symtabs_for_function): Update.
7425 * block.h: Moved anonymous enum...
7426 * defs.h (enum block_enum): ... here. Now named.
7428 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7430 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7431 * version.in: Bump version to 7.3.50.20110403-cvs.
7433 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7435 * NEWS: Create a new section for the next release branch.
7436 Rename the section of the current branch, now that it has
7439 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7441 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7442 for "fpscr" in target description.
7444 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7447 initialize it. Delay HASH initialization. Strip the part after open
7448 parenthesis for languages with qualifiers. Call do_cleanups.
7450 2011-04-01 Tom Tromey <tromey@redhat.com>
7452 * utils.c (report_command_stats): Don't print `-' for negative
7455 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7457 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7458 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7461 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7463 * breakpoint.h (bpdisp_text): Add declaration.
7464 * breakpoint.c (bpdisp_text): Make non-static.
7465 * ada-lang.c: #include "mi/mi-common.h".
7466 (print_it_exception): Rewrite to improve GDB/MI output.
7468 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7470 * arm-tdep.h (struct address_space): Add forward declaration.
7472 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7474 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7475 * arm-tdep.c (arm_override_mode): New global.
7476 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7477 execution mode heuristics.
7478 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7479 second single-step breakpoint if needed, using
7480 arm_insert_single_step_breakpoint.
7481 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7482 ARM execution mode, do not call thumb_get_next_pc_raw.
7483 (arm_get_next_pc): Encode execution mode in return value. Call
7484 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7485 (arm_insert_single_step_breakpoint): New function.
7486 (arm_software_single_step): Call it.
7487 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7488 argument to return execution mode of sigreturn target.
7489 (arm_linux_syscall_next_pc): Use it.
7490 (arm_linux_copy_svc): Update call.
7491 (arm_linux_software_single_step): Call
7492 arm_insert_single_step_breakpoint.
7494 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7496 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7499 2011-03-31 Tom Tromey <tromey@redhat.com>
7501 * varobj.c (update_dynamic_varobj_children): Properly handle
7502 errors from iterator.
7504 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7506 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7507 struct linkage name twice.
7509 2011-03-31 Tom Tromey <tromey@redhat.com>
7511 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7512 missing ">" to message.
7514 2011-03-31 Tom Tromey <tromey@redhat.com>
7516 * varobj.c (instantiate_pretty_printer): Remove duplicate
7519 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7521 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7522 if neither saved value nor register available (e.g. signal frame).
7524 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7526 * macroexp.c (expand): Avoid uninitialized variable
7529 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7531 * breakpoint.c (break_range_command): Fix typo in comment.
7533 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7534 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7536 Implement support for PowerPC BookE ranged breakpoints.
7537 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7538 * breakpoint.h (struct bp_target_info) <length>: New member
7540 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7541 instead of struct breakpoint as argument, and also add ASPACE
7542 and BP_ADDR arguments. Update all callers.
7543 (struct breakpoint_ops) <print_one_detail>: New method.
7544 (struct breakpoint) <addr_string_range_end>: New member variable.
7545 * breakpoint.c (breakpoint_location_address_match): Add function
7547 (insert_bp_location): Set bl->target_info.length.
7548 (breakpoint_here_p): Call breakpoint_location_address_match.
7549 (moribund_breakpoint_here_p): Likewise.
7550 (regular_breakpoint_inserted_here_p): Likewise.
7551 (breakpoint_thread_match): Likewise.
7552 (bpstat_stop_status): Likewise.
7553 (bpstat_check_location): Move call to
7554 breakpoint_ops.breakpoint_hit to the top.
7555 (print_one_breakpoint_location): Call
7556 breakpoint_ops.print_one_detail if available.
7557 (breakpoint_address_match_range): New function.
7558 (breakpoint_location_address_match): Likewise.
7559 (breakpoint_locations_match): Compare the length field of the
7561 (hw_breakpoint_used_count): Count resources used by all locations
7562 in a breakpoint, and use breakpoint_ops.resources_needed if
7564 (breakpoint_hit_ranged_breakpoint): New function.
7565 (resources_needed_ranged_breakpoint): Likewise.
7566 (print_it_ranged_breakpoint): Likewise.
7567 (print_one_ranged_breakpoint): Likewise.
7568 (print_one_detail_ranged_breakpoint): Likewise.
7569 (print_mention_ranged_breakpoint): Likewise.
7570 (print_recreate_ranged_breakpoint): Likewise.
7571 (ranged_breakpoint_ops): New structure.
7572 (find_breakpoint_range_end): New function.
7573 (break_range_command): Likewise.
7574 (delete_breakpoint): Free addr_string_range_end.
7575 (update_breakpoint_locations): Add SALS_END argument. Update
7576 all callers. Calculate breakpoint length if a non-zero SALS_END
7577 is given. Call breakpoint_locations_match instead of
7578 breakpoint_address_match.
7579 (reset_breakpoint): Find SaL of the end of the range if B is a
7581 (_initialize_breakpoint): Register break-range command.
7582 * defs.h (print_core_address): Add function prototype.
7583 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7585 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7586 (ppc_linux_remove_hw_breakpoint): Likewise.
7587 (_initialize_ppc_linux_nat): Initialize
7588 to_ranged_break_num_registers.
7589 * target.c (update_current_target): Add comment about
7590 to_ranged_break_num_registers.
7591 (target_ranged_break_num_registers): New function.
7592 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7594 (target_ranged_break_num_registers): Add function prototype.
7595 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7596 * utils.c (print_core_address): ... here.
7598 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7600 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7601 variable compiler warning.
7603 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7605 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7607 (re_set_breakpoint): ... to here ...
7608 (addr_string_to_sals): ... and here.
7610 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7612 * Makefile.in (SFILES): Add missing C sources.
7613 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7614 Add missing headers.
7616 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7618 * .gitignore: New file.
7620 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7622 * NEWS: Mention new cfi device simulation.
7624 2011-03-29 Tom Tromey <tromey@redhat.com>
7626 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7627 otherwise anonymous types.
7628 (dwarf2_name): Likewise.
7629 * valops.c (value_struct_elt_for_reference): Refine artificial
7630 type logic. Call error if j==-1.
7632 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7634 Fix false GCC warning.
7635 * infcall.c (find_function_addr): Initialize funaddr.
7637 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7639 Fix mingw compilation with --enable-targets=all.
7640 * remote-mips.c (gdb_usleep.h): Include header.
7641 (mips_enter_debug): Use gdb_usleep instead of sleep.
7643 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7645 Support resolution of STT_GNU_IFUNC via breakpoints.
7646 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7647 bp_gnu_ifunc_resolver_return.
7648 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7649 the loop. Support bp_gnu_ifunc_resolver and
7650 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7651 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7653 (bptype_string, print_one_breakpoint_location): Support
7654 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7655 (user_settable_breakpoint): Return true also for
7656 bp_gnu_ifunc_resolver.
7657 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7658 bp_gnu_ifunc_resolver_return.
7659 (set_breakpoint_location_function): New parameter explicit_loc,
7660 describe it. Call find_pc_partial_function_gnu_ifunc with new
7661 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7662 EXPLICIT_LOC is not set.
7663 (set_raw_breakpoint): Set EXPLICIT_LOC for
7664 set_breakpoint_location_function.
7665 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7666 set_breakpoint_location_function.
7667 (mention): Support bp_gnu_ifunc_resolver and
7668 bp_gnu_ifunc_resolver_return.
7669 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7670 set_breakpoint_location_function.
7671 (update_breakpoint_locations): Remove static.
7672 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7673 bp_gnu_ifunc_resolver_return.
7674 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7675 bp_gnu_ifunc_resolver_return.
7676 (update_breakpoint_locations): New declaration.
7677 * elfread.c: Include gdbthread.h and regcache.h.
7678 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7680 (elf_gnu_ifunc_fns): Install them.
7681 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7682 (stub_gnu_ifunc_resolver_return_stop): New functions.
7683 (stub_gnu_ifunc_fns): Install them.
7684 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7685 and gnu_ifunc_resolver_return_stop.
7686 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7688 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7690 STT_GNU_IFUNC reader implementation.
7691 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7692 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7693 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7694 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7695 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7696 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7697 (elf_gnu_ifunc_resolve_addr): New.
7698 (elf_symfile_read): Call elf_rel_plt_read.
7699 (elf_gnu_ifunc_fns): New.
7700 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7701 Install elf_gnu_ifunc_fns.
7702 * infcall.c (find_function_return_type): New function.
7703 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7704 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7705 (stub_gnu_ifunc_resolve_name): New functions.
7706 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7707 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7708 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7710 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 Code cleanup for later STT_GNU_IFUNC support.
7713 * infcall.c (find_function_addr): Remove variable code, use explicit
7714 dereferences for it. Move VALUE_TYPE initialization later.
7716 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7718 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7719 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7720 (clear_pc_function_cache): Clear it.
7721 (find_pc_partial_function): Rename to ...
7722 (find_pc_partial_function_gnu_ifunc): ... this function. New
7723 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7724 (find_pc_partial_function): New wrapper for this function.
7725 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7727 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 GDB internal type support for STT_GNU_IFUNC.
7730 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7731 (elf_symtab_read): Set mst_text_gnu_ifunc for
7732 BSF_GNU_INDIRECT_FUNCTION.
7733 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7734 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7735 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7736 nodebug_got_plt_symbol.
7737 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7738 (TYPE_GNU_IFUNC): New.
7739 (struct main_type): New field flag_gnu_ifunc.
7740 (struct builtin_type): New field builtin_func_func.
7741 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7742 nodebug_got_plt_symbol.
7743 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7744 (in_gnu_ifunc_stub): New.
7745 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7747 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7748 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7749 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7751 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7752 * symtab.c (search_symbols): Likewise.
7753 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7754 and mst_slot_got_plt.
7755 (in_gnu_ifunc_stub): New declaration.
7757 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7759 Support a ring of related breakpoints.
7760 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7761 other functions, add gdb_assert.
7762 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7763 watchpoint_del_at_next_stop.
7764 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7765 (bpstat_stop_status): Handle ring in related_breakpoint.
7766 (set_raw_breakpoint_without_location): Initialize ring in
7768 (delete_breakpoint): Handle ring in related_breakpoint, use
7769 watchpoint_del_at_next_stop.
7770 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7772 2011-03-28 Tom Tromey <tromey@redhat.com>
7775 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7776 with `language_minimal'.
7778 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7780 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7781 instead of checking for STT_ARM_TFUNC symbol type.
7783 2011-03-25 Tom Tromey <tromey@redhat.com>
7785 * linespec.c (symbol_found): Restore line-based result for
7786 non-LOC_LABEL symbols.
7788 2011-03-25 Kai Tietz <ktietz@redhat.com>
7790 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7791 instead of strcmp for comparison.
7792 (tui_source_is_displayed): Likewise.
7793 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7795 2011-03-24 Mark Wielaard <mjw@redhat.com>
7797 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7799 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7800 (find_partial_die_in_comp_unit): Likewise in comment.
7801 (read_attribute_value): Likewise.
7802 (lookup_die_type): Likewise.
7803 (dwarf_form_name): Likewise.
7804 (dump_die_shallow): Likewise.
7805 (follow_die_ref_or_sig): Likewise.
7807 2011-03-24 Tom Tromey <tromey@redhat.com>
7809 PR breakpoints/11816:
7810 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7811 (decode_compound): Update.
7812 (find_function_symbol): New function.
7813 (decode_dollar): Update.
7814 (decode_label): Add 'function_symbol' parameter. Handle
7815 function-relative labels.
7816 (decode_variable): Update.
7817 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7818 not its line. Set `special_display' and canonical name for
7821 2011-03-24 Tom Tromey <tromey@redhat.com>
7823 * linespec.h (struct linespec_result) <special_display>: New
7825 * breakpoint.h (struct breakpoint) <display_canonical>: New
7827 * breakpoint.c (print_breakpoint_location): Respect
7829 (create_breakpoint_sal): Add 'display_canonical' parameter.
7830 (create_breakpoints_sal): Update.
7831 (create_breakpoint): Update.
7833 2011-03-24 Tom Tromey <tromey@redhat.com>
7835 * symtab.c (decode_line_spec): Update.
7836 * linespec.c (build_canonical_line_spec): Change type of
7838 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7839 (find_method, decode_all_digits, decode_dollar, decode_label)
7840 (symbol_found): Likewise.
7841 (init_linespec_result): New function.
7842 * breakpoint.c (struct captured_parse_breakpoint_args)
7843 <canonical_p>: New field, replaces addr_string_p.
7844 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7846 (parse_breakpoint_sals): Likewise.
7847 (do_captured_parse_breakpoint): Update.
7848 (create_breakpoint): Use struct linespec_result.
7849 (until_break_command): Update.
7850 (breakpoint_re_set_one): Update.
7851 (decode_line_spec_1): Update.
7852 * linespec.h (struct linespec_result): New.
7853 (init_linespec_result): Declare.
7855 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7857 * regcache.c (regcache_raw_read): If the target didn't supply a
7858 given raw register, mark it as unavailable.
7860 2011-03-23 Kai Tietz <ktietz@redhat.com>
7862 * breakpoint.c (clear_command): Use filename_cmp
7863 instead of strcmp for comparison.
7864 * buildsym.c (watch_main_source_file_lossage): Likewise.
7865 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7866 checking just for slash.
7867 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7868 strrchr and filename_cmp instead of strcmp for filenames.
7869 (add_old_header_file): Use filename_cmp
7870 instead of strcmp for comparison.
7871 * exec.c (exec_set_section_address): Likewise.
7872 * macrotab.c (macro_lookup_inclusion): Likewise.
7873 (macro_lookup_inclusion): Likewise.
7874 * elfread.c (_initialize_elfread): Likewise.
7875 (elfstab_offset_sections): Likewise.
7876 (elfstab_offset_sections): Use lbasename instead of
7878 * mdebugread.c (parse_partial_symbols): Likewise.
7879 (arse_partial_symbols): Use filename_(n)cmp instead of
7880 str(n)cmp for comparison.
7881 * minsyms.c (lookup_minimal_symbol): Likewise.
7882 * psymtab.c (read_psymtabs_with_filename): Likewise.
7883 * solib.c (solib_read_symbols): Likewise.
7884 (reload_shared_libraries_1): Likewise.
7885 * symmisc.c (maintenance_print_symbols): Likewise.
7886 * symfile.c (separate_debug_file_exists): Likewise.
7887 (reread_symbols): Likewise.
7888 (find_separate_debug_file_by_debuglink): Likewise.
7889 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7890 * source.c (add_path): Likewise.
7891 * symtab.c (filename_seen): Likewise.
7892 (file_matches): Likewise.
7893 (print_symbol_info): Likewise.
7894 (maybe_add_partial_symtab_filename): Likewise.
7895 (make_source_files_completion_list): Likewise.
7896 * xml-syscall.c (init_sysinfo): Likewise.
7897 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7898 IS_DIR_SEPARATOR for checking for trailing path separator.
7900 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7902 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7903 label abort_expression.
7904 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7905 DWARF_VALUE_OPTIMIZED_OUT.
7907 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7910 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7911 to linkage_name. Invert its value. Update the function comment.
7912 (c_type_print_varspec_suffix): Invert it at the caller.
7913 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7915 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7917 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7918 errors when reading the `stop_pc'.
7919 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7922 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7924 * NEWS: Document gdb.Write stream keyword.
7926 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7929 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7930 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7931 (dwarf2_add_field): Fix new_field->accessibility for
7932 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7934 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7938 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7939 other error classes. Do not print stack trace.
7941 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7943 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7944 (dwarf2_add_field): Fix new_field->accessibility for
7945 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7947 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7949 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7950 encountering a load via a non-SP register.
7952 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7954 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7955 field in returned unwinder.
7957 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7959 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7961 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7963 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7966 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7968 * frame.c (frame_unwind_register): Throw an error if unwinding the
7970 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7971 an unwind stop reason.
7972 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7973 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7974 UNWIND_UNAVAILABLE>: New.
7975 * inline-frame.c (inline_frame_unwind): Install
7976 default_frame_unwind_stop_reason.
7977 * frame-unwind.c: Include "exceptions.h".
7978 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7979 (default_frame_unwind_stop_reason): New.
7980 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7981 (default_frame_unwind_stop_reason): Declare.
7982 (struct frame_unwind) <stop_reason>: New function pointer.
7984 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7985 * dwarf2-frame.c: Include exceptions.h.
7986 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7987 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7988 computing the CFA. If such an error was thrown, set
7989 unavailable_retaddr.
7990 (dwarf2_frame_unwind_stop_reason): New.
7991 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7993 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7994 (dwarf2_signal_frame_unwind): Ditto.
7996 * amd64-tdep.c: Include "exceptions.h".
7997 (struct amd64_frame_cache): New field "base_p".
7998 (amd64_init_frame_cache): Clear it.
7999 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8000 Avoid reading registers with functions that throw if the register
8001 is not necessary to compute the frame base.
8002 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8003 swallowing NOT_AVAILABLE_ERROR.
8004 (amd64_frame_unwind_stop_reason): New.
8005 (amd64_frame_this_id): Don't build a frame id if the frame base
8007 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8008 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8009 base_p if the frame base was computable.
8010 (amd64_sigtramp_frame_unwind_stop_reason): New.
8011 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8012 frame base was unavailable.
8013 (amd64_sigtramp_frame_unwind): Install
8014 amd64_sigtramp_frame_unwind_stop_reason.
8015 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8016 base_p if the frame base was computable.
8017 (amd64_epilogue_frame_unwind_stop_reason): New.
8018 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8019 frame base was unavailable.
8020 (amd64_epilogue_frame_unwind): Install
8021 amd64_epilogue_frame_unwind_stop_reason.
8022 * i386-tdep.c: Include "exceptions.h".
8023 (struct i386_frame_cache): New field "base_p".
8024 (i386_init_frame_cache): Clear it.
8025 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8026 Avoid reading registers with functions that throw if the register
8027 is not necessary to compute the frame base.
8028 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8029 swallowing NOT_AVAILABLE_ERROR.
8030 (i386_frame_unwind_stop_reason): New.
8031 (i386_frame_this_id): Don't build a frame id if the frame base was
8033 (i386_frame_prev_register): Handle unavailable SP.
8034 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8035 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8036 base_p if the frame base was computable.
8037 (i386_epilogue_frame_unwind_stop_reason): New.
8038 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8039 base was unavailable.
8040 (i386_epilogue_frame_unwind): Install
8041 i386_epilogue_frame_unwind_stop_reason.
8042 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8043 base_p if the frame base was computable.
8044 (i386_sigtramp_frame_unwind_stop_reason): New.
8045 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8046 base was unavailable.
8047 (i386_sigtramp_frame_unwind): Install
8048 i386_sigtramp_frame_unwind_stop_reason.
8049 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8050 type's size, not the register's.
8051 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8053 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8054 default_frame_unwind_stop_reason.
8055 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8056 (alpha_heuristic_frame_unwind): Ditto.
8057 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8058 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8059 * avr-tdep.c (avr_frame_unwind): Ditto.
8060 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8062 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8063 * frv-tdep.c (frv_frame_unwind): Ditto.
8064 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8065 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8066 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8067 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8068 (hppa_stub_frame_unwind): Ditto.
8069 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8070 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8071 (ia64_libunwind_frame_unwind)
8072 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8073 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8074 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8075 * m32c-tdep.c (m32c_unwind): Ditto.
8076 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8077 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8078 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8079 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8080 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8081 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8082 * mep-tdep.c (mep_frame_unwind): Ditto.
8083 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8084 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8085 (mips_stub_frame_unwind): Ditto.
8086 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8087 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8088 * mt-tdep.c (mt_frame_unwind): Ditto.
8089 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8090 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8091 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8092 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8093 (s390_sigtramp_frame_unwind): Ditto.
8094 * score-tdep.c (score_prologue_unwind): Ditto.
8095 * sh-tdep.c (sh_frame_unwind): Ditto.
8096 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8097 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8098 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8099 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8100 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8101 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8102 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8103 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8104 (sparc64obsd_trapframe_unwind): Ditto.
8105 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8106 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8107 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8108 * v850-tdep.c (v850_frame_unwind): Ditto.
8109 * vax-tdep.c (vax_frame_unwind): Ditto.
8110 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8111 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8112 * xtensa-tdep.c (xtensa_unwind): Ditto.
8114 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8116 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8117 there's always a frame. Use get_frame_pc_if_available instead of
8118 get_frame_pc, and if there's no PC available, don't look up a
8121 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8123 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8126 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8128 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8131 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8133 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8134 * frame.c (frame_unwind_caller_pc_if_available): New.
8135 * stack.c (frame_info): Handle unavailable PC.
8137 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8139 * frame.c (frame_unwind_pc): Rename to ...
8140 (frame_unwind_pc_if_available): ... this. New `pc' output
8141 parameter. Change return type to int. Gracefully handle
8142 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8143 happened, or 1 otherwise.
8144 (frame_unwind_pc): Reimplement on top of
8145 frame_unwind_pc_if_available.
8146 (get_frame_func): Rename to ...
8147 (get_frame_func_if_available): New `pc' output parameter. Change
8148 return type to int. Gracefully handle the PC not being available.
8149 (get_frame_func): Reimplement on top of
8150 get_frame_func_if_available.
8151 (select_frame): Handle the PC being unavailable.
8152 (get_prev_frame): Handle the PC being unavailable.
8153 (get_frame_pc_if_available): New.
8154 (get_frame_address_in_block_if_available): New.
8155 (find_frame_sal): Handle the frame PC not being available.
8156 * frame.h (get_frame_pc_if_available): Declare.
8157 (get_frame_address_in_block_if_available): Declare.
8158 (get_frame_func_if_available): Declare.
8159 * stack.c (print_frame_info): Handle the PC being unavailable.
8160 (find_frame_funname): Ditto.
8161 (print_frame): Handle the PC being unavailable.
8162 (get_frame_language): Ditto.
8163 * blockframe.c (get_frame_block): Ditto.
8164 * macroscope.c (default_macro_scope): Ditto.
8165 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8167 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8169 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8170 NOT_AVAILABLE_ERROR when evaluating the location expression.
8172 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8174 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8175 returning that the register piece is unavailable/optimized out.
8176 (write_pieced_value): Handle get_frame_register_bytes returning
8177 that the register piece is unavailable/optimized out when doing a
8178 read-modify write of a bitfield.
8179 * findvar.c (value_from_register): Handle get_frame_register_bytes
8180 returning that the register piece is unavailable/optimized out.
8181 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8182 and `unavailablep'. Throw error on bad debug info. Use
8183 frame_register instead of frame_register_read, to fill in the new
8185 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8187 * valops.c: (value_assign): Adjust, and handle
8188 get_frame_register_bytes failing.
8189 * spu-tdep.c: Include exceptions.h.
8190 (spu_software_single_step): Adjust, and handle
8191 get_frame_register_bytes failing.
8192 (spu_get_longjmp_target): Ditto.
8193 * gdbarch.sh (register_to_value): Change to return int. New
8194 parameters `optimizedp' and `unavailablep'.
8195 * gdbarch.h, gdbarch.c: Regenerate.
8196 * i386-tdep.c (i386_register_to_value): Adjust to new
8197 gdbarch_register_to_value interface.
8198 * i387-tdep.c (i387_register_to_value): Ditto.
8199 * i387-tdep.h (i387_register_to_value): Ditto.
8200 * alpha-tdep.c (alpha_register_to_value): Ditto.
8201 * ia64-tdep.c (ia64_register_to_value): Ditto.
8202 * m68k-tdep.c (m68k_register_to_value): Ditto.
8203 * mips-tdep.c (mips_register_to_value): Ditto.
8204 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8206 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8208 * findvar.c (value_of_register): Mark the value as unavailable, if
8209 the register is unavailable.
8210 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8211 (frame_register): New `unavailablep' parameter.
8212 (frame_register_read): Update comment.
8213 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8214 Set it if the register is unavailable. If the register is
8215 unavailable, clear the output buffer.
8216 (frame_register): New `unavailablep' parameter. Pass it down.
8217 (frame_unwind_register): Adjust.
8218 (put_frame_register): Adjust.
8219 (frame_register_read): Adjust. Also return false if the register
8221 (frame_register_unwind_location): Adjust.
8222 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8223 is unavailable, mark the value accordingly.
8224 * stack.c (frame_info): Handle unavailable registers.
8226 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8228 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8229 simplify, using regcache_cooked_read.
8231 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8233 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8234 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8235 (regcache_raw_read_unsigned, regcache_raw_read_part)
8236 (regcache_cooked_read, regcache_cooked_read_signed)
8237 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8238 (regcache_cooked_read_ftype): Change return to enum
8240 * regcache.c: Include exceptions.h
8241 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8242 (do_cooked_read): Change return to enum register_status. Always
8243 forward to regcache_cooked_read.
8244 (regcache_raw_read): Change return to enum register_status. If
8245 the register is not REG_VALID, memset the buffer. Return the
8247 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8248 return the register's status.
8249 (regcache_raw_read_unsigned): Ditto.
8250 (regcache_cooked_read): Change return to enum register_status.
8251 Assert that with read-only regcaches, the register's status must
8252 be known. If the regcache is read-only, and the register is not
8253 REG_VALID, memset the buffer. Return the register's status.
8254 (regcache_cooked_read_signed): Change return to enum
8255 register_status. Handle non-REG_VALID registers and return the
8257 (regcache_cooked_read_unsigned): Change return to enum
8258 register_status. Handle non-REG_VALID registers and return the
8260 (regcache_xfer_part, regcache_raw_read_part)
8261 (regcache_cooked_read_part): Change return to enum
8262 register_status. Return the register's status.
8263 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8265 (regcache_dump): Handle unavailable cooked registers.
8266 * frame.c (do_frame_register_read): Adjust interface to match
8267 regcache_cooked_read_ftype.
8268 * gdbarch.sh (pseudo_register_read): Change return to enum
8270 * gdbarch.h, gdbarch.c: Regenerate.
8272 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8274 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8275 register_status. If reading a raw register indicates the raw
8276 register is not valid, return the raw register's status,
8277 otherwise, return REG_VALID.
8278 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8279 register_status. Handle non-REG_VALID raw registers and return
8280 the register's status.
8281 * arm-tdep.c (arm_neon_quad_read)
8282 (arm_pseudo_read): Change return to enum register_status. Handle
8283 non-REG_VALID raw registers and return the register's status.
8284 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8285 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8286 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8287 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8288 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8290 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8291 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8292 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8293 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8294 (m32c_pseudo_register_read): Change return to enum
8295 register_status. Adjust.
8296 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8297 enum register_status. Return the register's status.
8298 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8299 register_status. Return the register's status.
8300 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8301 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8302 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8303 * rs6000-tdep.c (move_ev_register_func): New typedef.
8304 (e500_move_ev_register): Use it. Change return to enum
8305 register_status. Return the register's status.
8306 (do_regcache_raw_read): New function.
8307 (do_regcache_raw_write): New function.
8308 (e500_pseudo_register_read): Change return to enum
8309 register_status. Return the register's status. Use
8310 do_regcache_raw_read.
8311 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8312 (dfp_pseudo_register_read): Change return to enum register_status.
8313 Return the register's status.
8314 (vsx_pseudo_register_read): Ditto.
8315 (efpr_pseudo_register_read): Ditto.
8316 (rs6000_pseudo_register_read): Ditto.
8317 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8318 register_status. Return the register's status.
8319 * sh64-tdep.c (pseudo_register_read_portions): New function.
8320 (sh64_pseudo_register_read): Change return to enum
8321 register_status. Use pseudo_register_read_portions. Return the
8323 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8324 register_status. Return the register's status.
8325 * sh-tdep.c (pseudo_register_read_portions): New function.
8326 (sh_pseudo_register_read): Change return to enum register_status.
8327 Use pseudo_register_read_portions. Return the register's status.
8328 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8329 enum register_status. Return the register's status.
8330 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8331 * spu-tdep.c (spu_pseudo_register_read_spu)
8332 (spu_pseudo_register_read): Ditto.
8333 * xtensa-tdep.c (xtensa_register_read_masked)
8334 (xtensa_pseudo_register_read): Ditto.
8335 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8337 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8339 * python/py-value.c (valpy_getitem): Fix formatting of error function
8342 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8344 ARI fixes: Add missing internationalization markups throughout
8346 * darwin-nat-info.c: Ditto.
8349 * mi/mi-main.c: Ditto.
8351 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8353 ARI fixes: Add missing internationalization markups throughout
8356 * cp-name-parser.y: Ditto.
8359 * objc-exp.y: Ditto.
8362 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8364 ARI fixes: Messages should have no trailing new lines.
8365 * darwin-nat.c (mach_check_error): Remove trailing new line from
8366 warning function call message.
8367 * record.c (bfdcore_read): Idem for error call.
8369 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8371 * common/signals.c (target_signal_from_host): Add _ markup to error
8372 function call message.
8373 (target_signal_to_host): Add _ markup and remove trailing new line
8374 from warning call message.
8375 (target_signal_from_command): Add _ markup to error function call
8378 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8382 * python/python.c (gdbpy_write): Accept a stream argument and
8383 operate to the appropriate stream.
8384 (gdbpy_flush): Likewise.
8385 (_initialize_python): Add stream constants.
8386 (finish_python_initialization): Add GdbOutputErrorFile class.
8388 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8390 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8392 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8394 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8395 to store_signed_integer. Add debug message when relocating CALL
8396 instructions. Fix formatting of debug message.
8397 * i386-tdep.c (i386_relocate_instruction): Ditto.
8399 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8401 * target.h (struct target_ops): Remove to_lookup_symbol field.
8402 (target_lookup_symbol): Delete macro.
8403 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8404 (update_current_target, setup_target_debug): Remove handling
8405 of to_lookup_symbol target_ops field.
8406 * ada-tasks.c (get_known_tasks_addr): Remove use of
8407 target_lookup_symbol.
8408 * coffread.c (coff_symtab_read): Likewise.
8409 * dbxread.c (read_dbx_symtab): Ditto.
8411 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8414 * configure.ac: Add getthrds declaration check.
8415 * configure, config.in: Regenerate.
8416 * aix-thread.c (getthrds): Declare only if not already declared
8417 in procinfo.h. More declaration out of get_signaled_thread to
8420 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8422 * python/py-symtab.c: Populate symtab_object_methods,
8424 (stpy_is_valid): New function.
8425 (salpy_is_valid): Ditto.
8426 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8427 (sympy_is_valid): New function.
8428 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8429 (objfpy_is_valid): New function.
8430 * python/py-inferior.c: Populate inferior_object_methods.
8431 (infpy_is_valid): New function.
8432 * python/py-infthread.c: Populate thread_object_methods.
8433 (thpy_is_valid): New function.
8434 * python/py-block.c: Declare block_object_methods. Populate. Declare
8435 block_iterator_object_methods. Populate.
8436 (blpy_is_valid): New function.
8437 (blpy_iter_is_valid): Ditto.
8439 2011-03-16 Keith Seitz <keiths@redhat.com>
8441 * linespec.c (find_methods): Canonicalize NAME before looking
8443 (name_end): New function.
8444 (keep_name_info): New function.
8445 (decode_line_1): Use keep_name_info.
8446 (decode_compound): Likewise.
8447 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8448 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8451 * linespec.c (locate_first_half): Keep overload information, too.
8452 (decode_compound): Use a string to represent break characters
8454 If P points to a break character, do not increment it.
8455 For C++ and Java, keep overload information and relevant keywords.
8456 If we cannot find a symbol, search the minimal symbols.
8459 * linespec.c (decode_compound): Rename SAVED_ARG to
8461 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8463 Pass a valid block to lookup_symbol.
8464 (lookup_prefix_sym): Likewise.
8465 (find_method): Construct search name based on SYM_CLASS instead
8467 * psymtab.c (lookup_partial_symbol): Add language parameter.
8468 (lookup_symbol_aux_psymtabs): Likewise.
8469 Don't assume that the psymtab we found was the right one. Search
8470 for the desired symbol in the symtab to be certain.
8471 (psymtab_search_name): New function.
8472 (lookup_partial_symbol): Use psymtab_search_name.
8473 Add language parameter.
8474 (read_symtabs_for_function): Add language parameter and pass to
8475 lookup_partial_symbol.
8476 (find_symbol_file_from_partial): Likewise.
8478 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8481 * dwarf2read.c (noop_record_line): New function.
8482 (dwarf_decode_lines): Ignore line tables for GCd functions.
8484 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8486 Fix ARI warnings about new lines at the end of messages, which
8487 are unneeded as there is a new line added at the end of the message
8489 * darwin-nat.c (darwin_stop_inferior): Ditto.
8490 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8491 * dfp.c (decimal_to_number): Ditto.
8492 * exec.c (print_section_info): Ditto.
8493 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8494 * osdata.c (get_osdata): Ditto.
8495 * record.c (bfdcore_write): Ditto.
8496 * remote-mips.c (mips_readchar): Ditto.
8497 * remote.c (read_ptid): Ditto.
8498 * ser-mingw.c (ser_windows_raw): Ditto.
8499 * tracepoint.c (add_local_symbols): Ditto.
8500 * windows-nat.c (fake_create_process): Ditto.
8502 2011-03-16 Tom Tromey <tromey@redhat.com>
8504 * tracepoint.c (stop_tracing): Don't declare.
8505 * event-top.c (after_char_processing_hook): Add `(void)'.
8507 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8509 * NEWS: Add Parameter sub-classing description.
8511 2011-03-16 Kai Tietz <ktietz@redhat.com>
8513 * MAINTAINERS: Update my e-mail address.
8515 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8517 * MAINTAINERS: Add myself for write after approval privileges.
8519 2011-03-15 Michael Snyder <msnyder@vmware.com>
8521 * frame.c (find_frame_sal): Assert sym is not null.
8523 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8525 * objc-lang.c (selectors_info): Check strchr for null result.
8527 * stabsread.c (define_symbol): Guard against bad stabstring input.
8529 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8531 Remove trailing spaces and tabulations from pascal language
8536 p-valprint.c: Ditto.
8538 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8540 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8541 than LOW. Comment it.
8542 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8543 HIGHPC not strictly higher than LOWPC.
8545 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8547 Fix formatting of function declarations returning a pointer in
8549 * varobj.c (varobj_add_child): Ditto.
8550 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8551 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8553 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8555 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8556 for the "generic" vector ABI used with GCC 4.3 and later.
8557 (ppc64_sysv_abi_return_value): Likewise.
8559 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8561 * infcall.c (call_function_by_hand): Function return value is
8562 always a non_lval, even when using struct_return.
8564 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8566 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8567 (map_display_numbers): New.
8568 (do_delete_display): New.
8569 (undisplay_command): Use map_display_numbers.
8570 (do_enable_disable_display): New.
8571 (enable_disable_display_command): New function.
8572 (enable_display): Delete.
8573 (enable_display_command): New.
8574 (disable_display_command): Reimplement.
8575 (_initialize_printcmd): Adjust "enable display" command to use
8576 `enable_display_command' as callback.
8578 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8580 * NEWS: Add Python breakpoint 'stop' operation.
8582 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8584 * NEWS: Delete duplicate entry. Fix typo.
8586 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8588 Fix ARI warning about function names in first column.
8589 Put prototype declaration on same line as return type.
8590 * objc-exp.y: Ditto.
8592 * python/py-stopevent.h: Ditto.
8593 For long function names, split parameters to
8594 allow function name on same line as return type.
8595 * solib-pa64.c: Ditto.
8598 For long function declaration, use single line.
8599 * hppa-tdep.h: Ditto.
8600 * inferior.h: Ditto.
8602 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8604 * python/python.h: Declare gdbpy_should_stop and
8605 gdbpy_breakpoint_has_py_cond.
8606 * python/python.c: Add python.h to includes. Remove python.h from
8607 HAVE_PYTHON definition
8608 (gdbpy_should_stop): New dummy function.
8609 (gdbpy_breakpoint_has_py_cond): New dummy function.
8610 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8611 sub-classing capabilities.
8612 (gdbpy_should_stop): New function.
8613 (gdbpy_breakpoint_has_py_cond): New function.
8614 (local_setattro): New function.
8615 * breakpoint.c (condition_command): Add check for Python 'stop'
8617 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8618 operation function as part of stop/continue tests.
8620 2011-03-14 Tom Tromey <tromey@redhat.com>
8623 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8624 (needs_frame_dwarf_call): Likewise.
8626 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8628 Fix ARI warning about functions without parameters that do not
8630 * breakpoint.c (all_tracepoints): Replace () by (void).
8631 * f-exp.y (match_string_literal): Ditto.
8633 * m2-exp.y (yylex): Ditto.
8634 * mep-tdep.c (current_me_module): Ditto.
8635 (current_options): Ditto.
8636 (current_cop_data_bus_width): Ditto.
8637 (current_cr_names): Ditto.
8638 (current_cr_is_float): Ditto.
8639 (current_ccr_names): Ditto.
8640 * objc-exp.y (yylex): Ditto.
8641 * p-exp.y (yylex): Ditto.
8642 * remote.c (send_interrupt_sequence): Ditto.
8643 * tracepoint.c (current_trace_status): Ditto.
8644 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8645 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8647 2011-03-11 Michael Snyder <msnyder@vmware.com>
8649 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8650 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8651 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8652 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8653 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8655 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8656 (delete_async_event_handler): Ditto.
8658 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8660 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8662 * top.c (set_verbose): Assert showcmd was found.
8664 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8666 * xtensa-tdep.c (warning_once): Correct style issues.
8668 2011-03-11 Yao Qi <yao@codesourcery.com>
8670 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8672 2011-03-11 Andreas Schwab <schwab@redhat.com>
8674 * common/aclocal.m4: Remove.
8676 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8678 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8679 (xtensa_write_register, xtensa_read_register): Likewise.
8680 (xtensa_hextochar): Removed.
8681 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8683 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8685 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8686 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8687 (xtensa_alloc_frame_cache): Add initialization for new fields.
8688 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8689 (warning_once): New function.
8690 (xtensa_insn_kind): New item c0opc_and.
8691 (call0_classify_opcode): Add the case for AND instruction.
8692 (call0_track_op): Change arguments. New local variable litbase.
8693 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8694 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8696 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8697 (call0_analyze_prologue): Update the comments. Change arguments.
8698 Add the variety of updates to handle extended prologues, which now can
8699 conduct dynamic stack adjustments.
8700 (call0_frame_cache): Likewise.
8701 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8702 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8704 2011-03-10 Michael Snyder <msnyder@vmware.com>
8706 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8707 (cmd_qtframe): Ditto.
8708 (cmd_qtbuffer): Ditto.
8709 (cmd_bigqtbuffer): Ditto.
8711 2011-03-10 Tom Tromey <tromey@redhat.com>
8713 * tracepoint.c (trace_actions_command): Update.
8714 * thread.c (thread_apply_command): Update.
8715 * reverse.c (delete_bookmark_command): Update.
8716 (bookmarks_info): Update.
8717 * printcmd.c (undisplay_command): Update.
8718 * memattr.c (mem_enable_command): Update.
8719 (mem_disable_command): Update.
8720 (mem_delete_command): Update.
8721 * inferior.c (detach_inferior_command): Update.
8722 (kill_inferior_command): Update.
8723 (remove_inferior_command): Update.
8724 * cli/cli-utils.h (struct get_number_or_range_state): New.
8725 (init_number_or_range): Declare.
8726 (get_number_or_range): Update.
8727 * cli/cli-utils.c (init_number_or_range): New function.
8728 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8730 (number_is_in_list): Update.
8731 * breakpoint.h (get_tracepoint_by_number): Update.
8732 * breakpoint.c (map_breakpoint_numbers): Update for change to
8733 get_number_or_range.
8734 (find_location_by_number): Use get_number, not
8735 get_number_or_range.
8736 (trace_pass_set_count): New function.
8737 (trace_pass_command): Update for change to get_number_or_range.
8739 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8742 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8744 * python/py-param.c (add_setshow_generic): Add set/show callback
8745 parameters. Register Python object context.
8746 (get_show_value): New function.
8747 (get_set_value): New function.
8748 (call_doc_function): New function.
8749 (get_doc_string): Move behind get_show_value/get_set_value.
8751 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8753 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8755 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8757 * xtensa-tdep.c (xtensa_read_register): Add comment.
8758 (xtensa_write_register): Likewise.
8759 (xtensa_hextochar): Add comment and update to match coding conventions.
8760 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8761 (execute_l32e, execute_s32e, execute_code): Update comments.
8762 (xtensa_exception_handler_t): Update to match coding conventions.
8763 (xtensa_insn_kind): Likewise.
8765 2011-03-09 Michael Snyder <msnyder@vmware.com>
8767 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8769 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8771 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8773 2011-03-09 Tom Tromey <tromey@redhat.com>
8775 * thread.c (restore_selected_frame): Handle frame_level == -1.
8776 (make_cleanup_restore_current_thread): Use
8777 get_selected_frame_if_set.
8778 * frame.h (get_selected_frame_if_set): Declare.
8779 * frame.c (get_selected_frame_if_set): New function.
8781 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8783 * cli/cli-cmds.c (shell_escape): Use lbasename.
8784 * coffread.c (coff_start_symtab): Constify parameter.
8785 (complete_symtab): Constify `name' parameter.
8786 (coff_symtab_read): Constify `filestring' local.
8787 (coff_getfilename): Constify return and `result' local.
8789 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8790 * linux-fork.c (info_checkpoints_command): Use lbasename.
8791 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8792 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8793 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8794 * procfs.c (procfs_make_note_section): Use lbasename.
8795 * tui/tui-io.c (printable_part): Constity return and parameter.
8797 (print_filename): Constify parameters, and local `s'.
8798 (tui_rl_display_match_list): Constify local `temp'.
8800 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8803 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 Fix DWARF-3+ DW_AT_accessibility default assumption.
8805 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8806 cu->header.version >= 3.
8808 2011-03-09 Yao Qi <yao@codesourcery.com>
8810 * common/Makefile.in: Remove.
8811 * common/configure: Remove.
8812 * common/configure.ac: Remove.
8814 2011-03-09 Yao Qi <yao@codesourcery.com>
8817 2011-02-11 Yao Qi <yao@codesourcery.com>
8819 * common/Makefile.in: Add copyright header.
8821 2011-02-11 Yao Qi <yao@codesourcery.com>
8823 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8825 * configure.ac: Add common to sub dir.
8826 * configure: Regenerate.
8828 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8830 * xtensa-tdep.c (call0_ret): New function.
8831 (xtensa_skip_prologue): Speed up analysis.
8833 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8835 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8836 while executing MI command -data-list-changed-registers.
8838 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8840 * xtensa-tdep.c (xtensa_read_register): New function.
8841 (xtensa_write_register): New function.
8842 (xtensa_find_register_by_name): New function.
8843 (xtensa_windowed_frame_cache): Update comments in type description.
8844 (xtensa_frame_cache): Likewise.
8845 (xtensa_window_interrupt_insn): New function.
8846 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8847 (xtensa_insn_kind): Add new instructions.
8848 (rwx_special_register): New function.
8849 (call0_classify_opcode): Add new instructions to the analysis.
8850 (a0_saved, a7_saved, a11_saved): New variables.
8851 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8852 (execute_l32e): New function.
8853 (execute_s32e): New function.
8854 (xtensa_exception_handler_t): New type.
8855 (execute_code): New function.
8856 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8857 analysis for Xtensa Window Exception handlers.
8859 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8861 * xtensa-tdep.c (TX_PS): New.
8862 (windowing_enabled): Update to count for Call0 ABI.
8863 (xtensa_hextochar): New.
8864 (xtensa_init_reggroups): Make algorithm generic.
8865 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8867 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8869 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8871 2011-03-08 Michael Snyder <msnyder@vmware.com>
8873 * i386-tdep.c (i386_follow_jump): Check return value of
8875 (i386_analyze_struct_return): Ditto.
8876 (i386_skip_probe): Ditto.
8877 (i386_match_insn): Ditto.
8878 (i386_skip_noop): Ditto.
8879 (i386_analyze_frame_setup): Ditto.
8880 (i386_analyze_register_saves): Ditto.
8881 (i386_skip_prologue): Ditto.
8882 (i386_skip_main_prologue): Ditto.
8884 * target.c (read_whatever_is_readable): Fix memory leak.
8886 * i386-tdep.c (i386_process_record): Document fall through.
8888 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8890 Fix DWARF-3+ DW_AT_accessibility default assumption.
8891 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8892 cu->header.version >= 3.
8894 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8896 * remote.c (remote_check_symbols): Skip if the target has no
8899 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8901 * target.c (read_whatever_is_readable): Reformat comment,
8902 with a minor typo fix. Minor reformatting of the code.
8904 2011-03-08 Yao Qi <yao@codesourcery.com>
8906 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8907 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8908 Use cached result instead of calling displaced_in_arm_mode again.
8909 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8910 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8911 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8912 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8913 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8914 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8915 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8916 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8917 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8918 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8919 (arm_catch_kernel_helper_return): Likewise.
8920 * gdb/arm-tdep.h : Update function declarations.
8922 2011-03-07 Michael Snyder <msnyder@vmware.com>
8924 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8926 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8928 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8930 * elfread.c (elf_symtab_read): Stop memory leak.
8932 * main.c (captured_main): Fix memory leak.
8934 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8936 * ada-lang.c (compare_names): Call is_name_suffix with string1
8939 2011-03-07 Tom Tromey <tromey@redhat.com>
8941 * xcoffread.c (xcoff_sym_fns): Update.
8942 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8943 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8944 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8945 (symbol_file_add_with_addrs_or_offsets): Likewise.
8946 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8947 * somread.c (som_sym_fns): Update.
8948 * psymtab.h (require_partial_symbols): Declare.
8949 * psymtab.c (require_partial_symbols): New function.
8950 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8951 (ALL_OBJFILE_PSYMTABS): Undef.
8952 (ALL_PSYMTABS): Move from psympriv.h.
8953 (lookup_partial_symtab, find_pc_sect_psymtab)
8954 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8955 (find_last_source_symtab_from_partial)
8956 (forget_cached_source_info_partial)
8957 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8958 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8959 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8960 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8961 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8962 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8963 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8964 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8965 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8967 * mipsread.c (ecoff_sym_fns): Update.
8968 * machoread.c (macho_sym_fns): Update.
8969 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8970 (read_psyms): New function.
8971 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8972 (elf_sym_fns_lazy_psyms): New global.
8973 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8974 dwarf2_build_psymtabs.
8975 * dbxread.c (aout_sym_fns): Update.
8976 * coffread.c (coff_sym_fns): Update.
8978 2011-03-07 Tom Tromey <tromey@redhat.com>
8980 * infrun.c (print_exited_reason): Include inferior id and pid in
8983 2011-03-07 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8987 (target_has_execution_1): Update.
8988 (target_has_execution_current): Declare.
8989 (target_has_execution): Call target_has_execution_current.
8990 (default_child_has_execution): Update.
8991 * target.c (default_child_has_execution): Add 'the_ptid'
8993 (target_has_execution_1): Likewise.
8994 (target_has_execution_current): New function.
8995 (add_target): Update.
8996 (init_dummy_target): Update.
8997 * remote-m32r-sdi.c (m32r_has_execution): New function.
8998 (init_m32r_ops): Use it.
8999 * record.c (record_core_has_execution): Now static. Add
9000 'the_ptid' parameter.
9001 * inferior.c (have_live_inferiors): Don't save current thread.
9002 Use target_has_execution_1.
9004 2011-03-07 Yao Qi <yao@codesourcery.com>
9006 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9008 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9010 * elfread.c (elf_symtab_read): Minor reformatting.
9012 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9014 * objc-lang.c (selectors_info): Minor reformatting.
9016 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9018 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9020 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9021 Michael Snyder <msnyder@vmware.com>
9023 * ada-valprint.c (ada_val_print_array): Move the declaration of
9024 "byte_order" and "elttype" inside the block where these variables
9025 are actually used. Remove some special handling for the case
9026 where "elttype" and "eltlen" are null. Replace by a comment
9027 and a couple of assertion checks.
9029 2011-03-05 Michael Snyder <msnyder@vmware.com>
9031 * source.c (add_path): Replace semicolon at end of block.
9032 * dwarf2expr.c (execute_stack_op): Ditto.
9034 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9036 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9037 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9038 (bfin-*-*): Likewise.
9040 2011-03-05 Michael Snyder <msnyder@vmware.com>
9042 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9043 * mdebugread.c (parse_symbol): Ditto.
9044 * parse.c (parse_exp_in_context): Ditto.
9045 * source.c (add_path): Ditto.
9046 * utils.c (gnu_debuglink_crc32): Ditto.
9047 * varobj.c (variable_language): Ditto.
9049 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9051 2011-03-04 Michael Snyder <msnyder@vmware.com>
9053 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9055 * symfile.c (simple_overlay_update): Check for null return value
9056 from lookup_minimal_symbol.
9058 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9060 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9062 * eval.c (parse_and_eval_address_1): Remove function.
9063 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9064 instead of parse_and_eval_address_1.
9065 * value.h (parse_and_eval_address_1): Remove prototype.
9067 2011-03-04 Michael Snyder <msnyder@vmware.com>
9069 * remote.c (putpkt_binary): Document that case stmt falls through.
9071 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9073 * breakpointc (print_it_typical): Move NULL check from here...
9074 (print_bp_stop_message): ... to here.
9076 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9078 * breakpoint.c (enable_command): Use break instead of continue,
9079 and fill in a missing break.
9080 (disable_command): Ditto.
9082 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9084 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9085 (terminal_save_ours): Remove misleading comment.
9086 (inflow_inferior_data_cleanup): Free ttystate.
9087 (inflow_inferior_exit): Likewise.
9088 (copy_terminal_info): Copy ttystate.
9090 * serial.c (serial_copy_tty_state): New function.
9091 * serial.h (serial_copy_tty_state): Add prototype.
9092 (struct serial_ops): Add copy_tty_state callback.
9093 * ser-base.c (ser_base_copy_tty_state): New function.
9094 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9095 * ser-go32.c (dos_copy_tty_state): New function.
9096 (dos_ops): Install copy_tty_state callback.
9097 * ser-mingw.c (_initialize_ser_windows): Likewise.
9098 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9099 * ser-unix.c (hardwire_copy_tty_state): New function.
9100 (_initialize_ser_hardwire): Install it.
9102 2011-03-04 Michael Snyder <msnyder@vmware.com>
9104 * breakpoint.c (create_breakpoint): Add missing break statement.
9106 Reverting this patch:
9107 * infcall.c (call_function_by_hand): Add break statements for lint.
9109 Reverting this patch:
9110 * cli/cli-script.c (script_from_file): Add break for lint.
9112 2011-03-04 Michael Snyder <msnyder@vmware.com>
9114 * solib.c (reload_shared_libraries_1): Close memory leak.
9116 2011-03-03 Tom Tromey <tromey@redhat.com>
9119 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9122 2011-03-03 Michael Snyder <msnyder@vmware.com>
9124 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9125 fields of struct 'st' to zero.
9127 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9128 sal.pspace before calling set_current_source_symtab_and_line.
9130 2011-03-03 Yao Qi <yao@codesourcery.com>
9132 * Makefile.in (configure-common): Remove. Let Makefile
9133 in dir common to rebuild itself.
9134 (common/Makefile): Likewise.
9136 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9138 * utils.c (parse_escape): Add i18n markup in error message.
9140 2011-03-03 Yao Qi <yao@codesourcery.com>
9142 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9144 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9145 (displaced_write_reg, displaced_read_reg): Likewise.
9146 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9147 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9148 (cleanup_branch): Replace magic number 14 and 15 with
9149 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9151 2011-03-02 Michael Snyder <msnyder@vmware.com>
9153 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9155 * cli/cli-script.c (script_from_file): Add break for lint.
9157 * mdebugread.c (parse_partial_symbols): Fix indent.
9159 * target-descriptions.c (tdesc_gdb_type): No need to call
9160 xstrdup, callee saves a copy.
9162 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9164 * infcall.c (call_function_by_hand): Add break statements for lint.
9166 * utils.c (parse_escape): Escape the escape char.
9168 * python/py-inferior.c (build_inferior_list): Error out if
9169 PyList_Append fails.
9170 (gdbpy_inferiors): Error out if build_inferior_list fails.
9172 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9175 * record.c (record_restore): Move printf to before error return.
9177 2011-03-02 Yao Qi <yao@codesourcery.com>
9179 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9180 is_thumb and insn_size.
9181 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9182 on both ARM and Thumb mode.
9183 (arm_process_displaced_insn): Set is_thumb and insn_size.
9184 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9185 (arm_displaced_step_fixup): Likewise.
9187 2011-03-01 Michael Snyder <msnyder@vmware.com>
9189 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9191 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9193 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9195 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9197 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9200 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9201 which shadows function parameter.
9203 * tracepoint.c (create_tsv_from_upload): Superfluous call
9204 to xstrdup. Callee already calls xstrdup.
9206 * linespec.c (decode_line_1): Remove unnecessary null check.
9208 * tracepoint.c (scope_info): Fix mem leak, remove underused
9211 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9212 superfluous null check.
9214 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9215 (value_of_builtin_frame_fp_reg): Ditto.
9217 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9219 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9222 * linespec.c (decode_line_1): Check for null before dereference.
9224 * reverse.c (record_restore): Move null-check to before pointer
9227 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9229 * objc-lang.c (selectors_info): Add explanitory comment.
9230 (classes_info): Ditto.
9232 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9234 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9235 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9236 versions of the trampoline. Handle Thumb vs. ARM addresses.
9237 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9238 (arm_linux_init_abi): Install it.
9239 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9240 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9242 2011-02-28 Michael Snyder <msnyder@vmware.com>
9244 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9245 a little bigger, to avoid possibility of an overflow.
9247 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9248 buffers a little bigger, to avoid possibility of an overflow.
9250 * coffread.c (coff_getfilename): Add check to avoid overflow.
9252 * objc-lang.c (selectors_info): Add a small safety margin to
9254 (classes_info): Error out on too long REGEXP.
9256 * infrun.c (handle_inferior_event): Remove unused function call.
9258 * fork-child.c (fork_inferior): Remove ifdef'd code and
9261 * linux-thread-db.c (attach_thread): Discard unused value.
9263 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9265 * remote.c (remote_get_noisy_reply): Discard unused value.
9266 (remote_vcont_resume): Ditto.
9267 (remote_stop_ns): Ditto.
9269 * linespec.c (decode_objc): Delete unused variable.
9271 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9273 * dwarf2read.c (add_partial_symbol): Discard unused values.
9274 (read_base_type): Delete unused variable.
9276 * dbxread.c (read_dbx_symtab): Discard unused value.
9278 * eval.c (evaluate_subexp_standard): Delete unused variable,
9279 and discard unused values.
9281 * infcmd.c (_initialize_infcmd): Discard unused values.
9283 * stabsread.c (rs6000_builtin_type): Missing break statement.
9285 * dbxread.c (process_one_symbol): Discard unused value.
9287 * coffread.c (coff_end_symtab): Delete unused variable.
9289 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9290 (dwarf2_add_typedef): Delete unused variable.
9291 (read_namespace): Ditto.
9292 (dwarf_decode_macros): Ditto.
9294 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9296 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9298 * p-valprint.c (pascal_val_print): Discard unused value.
9300 * utils.c (nquery): Call va_end before return;
9304 * proc-service.c (ps_plog): Call va_end before return.
9306 2011-02-28 Tom Tromey <tromey@redhat.com>
9308 * python/python.c (gdbpy_value_cst): New global.
9309 (_initialize_python): Initialize it.
9310 * python/python-internal.h (gdbpy_value_cst): Declare.
9311 * python/py-value.c (convert_value_from_python): Use
9314 2011-02-28 Michael Snyder <msnyder@vmware.com>
9316 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9318 * breakpoint.c (catch_syscall_completer): Free malloced list.
9320 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9322 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9323 (lval_func_check_synthetic_pointer): Ditto.
9324 (lval_func_free_closure): Fix use-after-free.
9326 2011-02-28 Tom Tromey <tromey@redhat.com>
9328 * psymtab.c (expand_partial_symbol_tables): Use
9329 ALL_OBJFILE_PSYMTABS.
9331 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9333 * objc-lang.c (selectors_info): Error on too long REGEXP.
9335 2011-02-28 Michael Snyder <msnyder@vmware.com>
9337 * python/py-param.c (set_parameter_value): Add missing
9340 * linux-record.c (record_linux_system_call): Add missing
9343 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9345 * breakpoint.c (print_one_breakpoint_location): Remove unused
9346 argument PRINT_ADDRESS_BITS. Update callers.
9347 (print_one_breakpoint): Likewise.
9349 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9351 * breakpoint.c (wrap_indent_at_field): New function.
9352 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9353 Allocate ui_stream locally instead of using STB argument.
9354 (print_one_breakpoint_location): Update call.
9355 * ui-out.c (ui_out_query_field): New function.
9356 * ui-out.h (ui_out_query_field): Add prototype.
9358 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9360 From Michael Snyder <msnyder@vmware.com>
9361 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9363 2011-02-27 Michael Snyder <msnyder@vmware.com>
9365 * objc-lang.c (selectors_info): Prevent string overrun.
9367 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9370 * symtab.c (rbreak_command): Move variable 'file_name' to
9373 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9374 param with a local variable of the same name.
9376 2011-02-27 Michael Snyder <msnyder@vmware.com>
9378 * value.c (value_from_history_ref): New function.
9379 * value.h (value_from_history_ref): Export.
9380 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9381 to parse value history references.
9382 * cli/cli-utils.h (get_number_trailer): Update comment.
9384 2011-02-27 Michael Snyder <msnyder@vmware.com>
9386 * inferior.c (detach_inferior_command): Use get_number_or_range.
9387 (kill_inferior_command): Ditto.
9388 (remove_inferior_command): Ditto.
9389 (initialize_inferiors): Make command names plural.
9390 Update help strings.
9392 2011-02-27 Michael Snyder <msnyder@vmware.com>
9394 * darwin-nat-info.c: Fix comment typo.
9395 * dwarf2expr.h: Ditto.
9396 * fbsd-nat.c: Ditto.
9397 * fbsd-nat.h: Ditto.
9398 * frame-unwind.h: Ditto.
9400 * hppa-hpux-tdep.c: Ditto.
9401 * i386-linux-nat.c: Ditto.
9402 * linux-nat.c: Ditto.
9403 * nbsd-nat.c: Ditto.
9404 * nbsd-nat.h: Ditto.
9405 * ppc-linux-tdep.c: Ditto.
9408 * tui/tui-winsource.c: Ditto.
9410 2011-02-26 Michael Snyder <msnyder@vmware.com>
9412 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9414 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9416 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9417 with a local variable of the same name.
9419 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9420 param with a local variable of the same name.
9421 (i387_supply_xsave): Ditto.
9423 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9424 that it does not shadow a function parameter.
9426 * i386-nat.c (i386_length_and_rw_bits): Document that case
9427 statement is meant to fall through.
9429 * expprint.c (dump_subexp_body_standard): Document that case
9430 statement is meant to fall through.
9432 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9433 dead if statement. Condition can't be false.
9435 2011-02-25 Michael Snyder <msnyder@vmware.com>
9437 * arm-tdep.c: Fix typos in comments.
9438 * bsd-uthread.c: Ditto.
9439 * completer.c: Ditto.
9441 * cp-namespace.c: Ditto.
9442 * cp-support.c: Ditto.
9443 * cris-tdep.c: Ditto.
9445 * dwarf2read.c: Ditto.
9447 * gdbtypes.h: Ditto.
9448 * inferior.h: Ditto.
9449 * mdebugread.c: Ditto.
9450 * mips-tdep.c: Ditto.
9451 * ppc-linux-nat.c: Ditto.
9452 * ppc-linux-tdep.c: Ditto.
9453 * printcmd.c: Ditto.
9454 * sol-thread.c: Ditto.
9455 * solib-frv.c: Ditto.
9457 * sparc64-tdep.c: Ditto.
9458 * spu-tdep.c: Ditto.
9459 * stabsread.c: Ditto.
9464 * python/py-block.c: Ditto.
9465 * python/py-symbol.c: Ditto.
9466 * python/py-symtab.c: Ditto.
9467 * python/py-value.c: Ditto.
9468 * tui/tui-win.c: Ditto.
9470 2011-02-25 Michael Snyder <msnyder@vmware.com>
9472 * inferior.c (print_inferior): Accept a string instead of an int
9473 for requested_inferiors, and use get_number_or_range to parse it.
9474 (info_inferiors_command): Pass args string to print_inferior.
9475 (initialize_inferiors): Change help string for info inferiors.
9476 * inferior.h (print_inferior): Export prototype change.
9478 2011-02-25 Tom Tromey <tromey@redhat.com>
9480 * common/ax.def (invalid2): Set to 0x31.
9482 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9484 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9486 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9488 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9490 2011-02-24 Michael Snyder <msnyder@vmware.com>
9492 * Makefile.in (clean): Make clean should remove generated files
9493 observer.h and observer.inc.
9495 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9497 Revert the following patch (not approved yet):
9498 2011-02-21 Hui Zhu <teawater@gmail.com>
9499 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9500 * ax-gdb.c (gen_printf_expr_callback): New function.
9501 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9502 * ax-general.c (ax_memcpy): New function.
9503 (ax_print): Handle "printf".
9505 * ax.h (ax_memcpy): Forward declare.
9506 * common/ax.def (invalid2): Removed.
9507 (printf): New entry.
9508 * printcmd.c (printcmd.h): New include.
9509 (string_printf): New function.
9510 (ui_printf): Removed.
9511 (printf_command): Remove static. Call string_printf.
9512 (eval_command): Call string_printf.
9513 * printcmd.h: New file.
9514 * tracepoint.c (validate_actionline,
9515 encode_actions_1): handle printf_command.
9517 2011-02-23 Tom Tromey <tromey@redhat.com>
9519 * ax-general.c (ax_pick): Add missing newline.
9521 2011-02-23 Michael Snyder <msnyder@vmware.com>
9523 * breakpoint.c (breakpoint_1): Change first argument from an int
9524 to a char pointer, so that the function now accepts a list of
9525 breakpoints rather than just one. Use new function
9526 'number_is_in_list' to implement.
9527 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9528 (watchpoints_info): Ditto.
9529 (tracepoints_info): Ditto.
9530 (maintenance_info_breakpoints): Ditto.
9531 (_initialize_breakpoint): Update help strings to reflect the fact
9532 that these functions can now take more than one argument.
9533 * cli/cli-utils.c (number_is_in_list): New function.
9534 * cli/cli-utils.h (number_is_in_list): Export.
9536 2011-02-23 Michael Snyder <msnyder@vmware.com>
9538 * memattr.c (mem_enable_command): Use get_number_or_range.
9539 (mem_disable_command): Ditto.
9540 (mem_delete_command): Ditto.
9541 (_initialize_mem): Tweak usage message to reflect multiple
9544 2011-02-22 Doug Evans <dje@google.com>
9546 Add gdb.lookup_global_symbol python function.
9548 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9549 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9550 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9552 2011-02-22 Tom Tromey <tromey@redhat.com>
9554 * language.c (language_class_name_from_physname): Rename
9555 'curr_language' argument to 'lang'; use in body.
9557 2011-02-22 Michael Snyder <msnyder@vmware.com>
9559 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9561 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9563 * frame-unwind.h: Fix comment to mention the this frame, not the
9566 2011-02-22 Tom Tromey <tromey@redhat.com>
9568 * symfile.c (auto_solib_limit): Remove.
9569 * symfile.h (auto_solib_limit): Remove.
9571 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9573 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9575 2011-02-21 Michael Snyder <msnyder@vmware.com>
9577 * gdbthread.h (print_thread_info): Change prototype.
9578 * thread.c (print_thread_info): Accept char* instead of int for
9579 requested_threads argument. Use new function number_is_in_list
9580 to determine which threads to list.
9581 (info_threads_command): Pass char* to print_thread_info.
9582 * cli/cli-utils.c (number_is_in_list): New function.
9583 * cli/cli-utils.h (number_is_in_list): Export.
9584 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9586 (print_one_inferior): Ditto.
9587 (mi_cmd_list_thread_groups): Ditto.
9589 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9591 * common/Makefile.in (CFLAGS): New.
9592 (COMPILE): Add $(CFLAGS).
9594 2011-02-21 Tom Tromey <tromey@redhat.com>
9596 * breakpoint.c (catch_syscall_command_1): Fix typo.
9598 2011-02-21 Tom Tromey <tromey@redhat.com>
9600 * reverse.c: Include cli-utils.h.
9601 * printcmd.c: Include cli-utils.h.
9602 (string_printf): Use skip_spaces.
9603 * cli/cli-utils.h: New file.
9604 * cli/cli-utils.c: New file.
9605 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9606 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9607 * breakpoint.h (get_number, get_number_or_range): Move to
9609 * breakpoint.c: Include cli-utils.h.
9610 (get_number_trailer, get_number, get_number_or_range)
9611 (ep_skip_leading_whitespace): Move to cli-utils.c.
9612 (create_breakpoint_sal, find_condition_and_thread)
9613 (decode_static_tracepoint_spec, watch_command_1)
9614 (watch_maybe_just_location, ep_parse_optional_if_clause)
9615 (catch_fork_command_1, catch_exec_command_1)
9616 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9617 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9618 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9619 (HFILES_NO_SRCDIR): Add cli-utils.h.
9620 (cli-utils.o): New target.
9622 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9624 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9625 before calling discard_all_inferiors.
9627 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9629 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9630 (struct builtin_opencl_type): Remove.
9631 (builtin_opencl_type): Change return type to "struct type **".
9632 (lookup_opencl_vector_type): Update caller.
9633 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9634 (build_opencl_types): Install plain array of "struct type *"
9635 instead of "struct builtin_opencl_type".
9637 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9638 Ulrich Weigand <uweigand@de.ibm.com>
9640 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9641 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9642 (struct arm_linux_hwbp_cap): New type.
9643 (arm_linux_get_hwbp_cap): New function.
9644 (arm_linux_get_hw_breakpoint_count): Likewise.
9645 (arm_linux_get_hw_watchpoint_count): Likewise.
9646 (arm_linux_can_use_hw_breakpoint): Likewise.
9647 (arm_hwbp_type): New type.
9648 (arm_hwbp_control_t): Likewise.
9649 (struct arm_linux_hw_breakpoint): Likewise.
9650 (struct arm_linux_thread_points): Likewise.
9651 (arm_threads): New global variable.
9652 (arm_linux_find_breakpoints_by_tid): New function.
9653 (arm_hwbp_control_initialize): Likewise.
9654 (arm_hwbp_control_is_enabled): Likewise.
9655 (arm_hwbp_control_disable): Likewise.
9656 (arm_linux_hw_breakpoint_initialize): Likewise.
9657 (arm_linux_get_hwbp_type): Likewise.
9658 (arm_linux_hw_watchpoint_initialize): Likewise.
9659 (arm_linux_hw_breakpoint_equal): Likewise.
9660 (arm_linux_insert_hw_breakpoint1): Likewise.
9661 (arm_linux_remove_hw_breakpoint1): Likewise.
9662 (arm_linux_insert_hw_breakpoint): Likewise.
9663 (arm_linux_remove_hw_breakpoint): Likewise.
9664 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9665 (arm_linux_insert_watchpoint): Likewise.
9666 (arm_linux_remove_watchpoint): Likewise.
9667 (arm_linux_stopped_data_address): Likewise.
9668 (arm_linux_stopped_by_watchpoint): Likewise.
9669 (arm_linux_watchpoint_addr_within_range): Likewise.
9670 (arm_linux_new_thread): Likewise.
9671 (arm_linux_thread_exit): Likewise.
9672 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9673 related target callbacks. Register arm_linux_new_thread and
9674 arm_linux_thread_exit.
9675 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9676 * arm-tdep.c (arm_pc_is_thumb): Make global.
9677 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9679 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9681 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9682 per-frame locations while within a function epilogue.
9684 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9686 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9687 to GNU coding standards.
9689 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9691 Allow use of mingw native on Windows 95 OS.
9692 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9693 (ser_windows_close): Only call CancelIo if function exists.
9694 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9695 to check for existence of CancelIo function in kernel32 DLL.
9697 2011-02-21 Hui Zhu <teawater@gmail.com>
9699 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9700 * ax-gdb.c (gen_printf_expr_callback): New function.
9701 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9702 * ax-general.c (ax_memcpy): New function.
9703 (ax_print): Handle "printf".
9705 * ax.h (ax_memcpy): Forward declare.
9706 * common/ax.def (invalid2): Removed.
9707 (printf): New entry.
9708 * printcmd.c (printcmd.h): New include.
9709 (string_printf): New function.
9710 (ui_printf): Removed.
9711 (printf_command): Remove static. Call string_printf.
9712 (eval_command): Call string_printf.
9713 * printcmd.h: New file.
9714 * tracepoint.c (validate_actionline,
9715 encode_actions_1): handle printf_command.
9717 2011-02-19 Michael Snyder <msnyder@vmware.com>
9719 * reverse.c (delete_one_bookmark): Argument is now bookmark
9720 id rather than pointer to bookmark struct.
9721 (delete_bookmark_command): Use get_number_or_range.
9722 (goto_bookmark_command): Parse with get_number instead of strtoul.
9723 (bookmark_1): New function. Print info for one bookmark.
9724 (bookmarks_info): Use get_number_or_range and bookmark_1.
9726 2011-02-18 Michael Snyder <msnyder@vmware.com>
9728 * thread.c (info_threads_command): Re-implement using
9729 get_number_or_range.
9730 (thread_apply_command): Ditto.
9732 2011-02-18 Tom Tromey <tromey@redhat.com>
9734 * common/ax.def: New file.
9735 * ax.h (enum agent_op): Use ax.def.
9736 * ax-general.c (aop_map): Use ax.def.
9738 2011-02-18 Tom Tromey <tromey@redhat.com>
9740 * ax-general.c (aop_map): Add pick and rot.
9741 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9742 <DW_OP_rot>: Implement.
9743 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9745 * ax-general.c (ax_pick): New function.
9747 2011-02-18 Tom Tromey <tromey@redhat.com>
9749 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9751 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9752 Tom Tromey <tromey@redhat.com>
9754 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9755 make_symbol_overload_list_block with NULL BLOCK.
9756 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9758 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9760 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9761 * breakpoint.h (get_number_or_range): Declare.
9762 * printcmd.c (ALL_DISPLAYS): Declare.
9763 (delete_display): Reimplement taking a display pointer.
9764 (undisplay_command): Accept a range of displays to delete, using
9765 get_number_or_range.
9767 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9769 * c-valprint.c (c_val_print): Add embedded_offset to address
9770 for arrays of unspecified length.
9771 * p-valprint.c (pascal_val_print): Likewise.
9773 2011-02-18 Yao Qi <yao@codesourcery.com>
9775 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9776 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9777 (thumb_process_displaced_insn): New.
9778 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9779 call to arm_process_displaced_insn.
9780 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9782 2011-02-17 Tom Tromey <tromey@redhat.com>
9784 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9785 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9786 compile_dwarf_to_ax. No longer static. Call
9787 dwarf2_compile_cfa_to_ax.
9788 (locexpr_tracepoint_var_ref): Update.
9789 (loclist_tracepoint_var_ref): Update.
9790 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9791 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9792 argument; add 'gdbarch' and 'pc'.
9793 (dwarf2_compile_cfa_to_ax): New function.
9794 (dwarf2_frame_cache): Update.
9796 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9798 * ada-lang.c (ada_type_of_array): Fix the size of the array
9799 in the case of an unconstrained packed array.
9801 2011-02-17 Yao Qi <yao@codesourcery.com>
9803 * common/Makefile.in: Add more targets for make.
9805 2011-02-16 Tom Tromey <tromey@redhat.com>
9807 * dwarf2loc.c (unimplemented): Fix typo.
9809 2011-02-16 Tom Tromey <tromey@redhat.com>
9811 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9812 (compile_dwarf_to_ax) <default>: Use unimplemented.
9813 <DW_OP_deref>: Update.
9814 (disassemble_dwarf_expression): Update.
9815 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9816 (decode_locdesc): Update.
9817 * dwarf2expr.h (dwarf_stack_op_name): Update.
9819 2011-02-16 Tom Tromey <tromey@redhat.com>
9821 * ax.h (struct aop_map) <name>: Now const.
9823 2011-02-16 Tom Tromey <tromey@redhat.com>
9825 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9828 2011-02-16 Yao Qi <yao@codesourcery.com>
9830 * infrun.c (get_displaced_step_closure_by_addr): New.
9831 * inferior.h: Declare it.
9832 * arm-tdep.c: (arm_pc_is_thumb): Call
9833 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9836 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9837 Jan Kratochvil <jan.kratochvil@redhat.com>
9840 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9842 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9843 Jan Kratochvil <jan.kratochvil@redhat.com>
9845 * value.c (value_contents_copy_raw): Extend describing comment.
9846 Assert that the destination contents we're overwriting are wholly
9848 (value_contents_copy): Extend describing comment.
9850 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9851 Jan Kratochvil <jan.kratochvil@redhat.com>
9853 * value.c (value_available_contents_eq): Remove redundant local
9854 variables. Fix available contents comparision.
9855 * value.h (value_available_contents_eq): Extend describing
9858 2011-02-16 Yao Qi <yao@codesourcery.com>
9860 * thread.c (info_threads_command): Add missing i18n markup and remove
9863 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9865 * breakpoint.c (longjmp_names): New variable.
9866 (struct breakpoint_objfile_data): New type.
9867 (breakpoint_objfile_key): New variable.
9868 (msym_not_found): New variable.
9869 (msym_not_found_p): New predicate.
9870 (get_breakpoint_objfile_data): New function.
9871 (create_overlay_event_breakpoint): Check per-objfile cache for
9873 (create_longjmp_master_breakpoint): Likewise.
9874 (create_std_terminate_master_breakpoint): Likewise.
9875 (create_exception_master_breakpoint): Likewise.
9876 (_initialize_breakpoint): Register per-objfile data key.
9878 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9880 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9882 (create_longjmp_master_breakpoint): Loop over longjmp names.
9883 (create_std_terminate_master_breakpoint): Const-propagate parameter
9885 (update_breakpoints_after_exec): Adjust.
9886 (breakpoint_re_set): Adjust.
9888 2011-02-15 Michael Snyder <msnyder@vmware.com>
9890 * thread.c (info_threads_command): Process arg as thread id,
9891 or list of thread ids.
9892 (thread_find_command): New command.
9893 (_initialize_thread): Document argument for info threads.
9894 Document 'thread find' command.
9895 * NEWS: Document new command "thread find".
9897 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9899 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9900 * aclocal.m4: Regenerated with aclocal-1.11.1.
9901 * common/configure: Regenerate with autoconf-2.64.
9903 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9905 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9906 bool data type to a size of one byte.
9908 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9909 Jan Kratochvil <jan.kratochvil@redhat.com>
9911 * target.c (memory_xfer_live_readonly_partial): Document where to
9912 look for interface description.
9914 2011-02-15 Yao Qi <yao@codesourcery.com>
9917 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9918 order to store PC value on stack instead of text section.
9920 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9922 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9923 the EFP register set size.
9924 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9925 data from the VMX register.
9926 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9927 and write data from/to the VMX register.
9929 2011-02-14 Michael Snyder <msnyder@vmware.com>
9931 * command.h (enum command_class): New class 'no_set_class', for
9932 "show" commands without a corresponding "set" command.
9933 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9934 * copying.c (_initialize_copying): Ditto for "show copying" and
9936 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9938 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9939 which there is no corresponding "set" command (eg. "show copying").
9941 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9942 Jan Kratochvil <jan.kratochvil@redhat.com>
9944 * exec.c (section_table_available_memory): Change `len' parameter
9946 * exec.h (section_table_available_memory): Ditto.
9947 * value.h (read_value_memory): Rename the `offset' parameter to
9950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9951 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 * memrange.c (compare_mem_ranges): Mention sort order in
9955 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9956 * tracepoint.c (traceframe_available_memory): Extend comment to
9957 mention what happens to RESULT when the target does not support
9960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9961 Jan Kratochvil <jan.kratochvil@redhat.com>
9963 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9966 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9968 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9969 No longer handle NULL values.
9971 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9973 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9974 * value.c: Include "exceptions.h".
9975 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9977 * cp-abi.c: Include gdb_assert.h.
9978 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9979 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9981 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9982 parameters. No longer returns -1 on error.
9983 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9985 * cp-valprint.c: Include exceptions.h.
9986 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9987 the baseclass_offset. Handle unavailable base classes. Use
9988 val_print_invalid_address.
9989 * p-valprint.c: Include exceptions.h.
9990 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9991 when fetching the baseclass_offset. No longer expect
9992 baseclass_offset returning -1. Handle unavailable base classes.
9993 Use val_print_invalid_address.
9994 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9995 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9996 `embedded_offset' and `val' parameters. Adjust.
9997 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9998 parameter, and change its type to gdb_byte pointer. Add
9999 `embedded_offset' and `val' parameters. Adjust. No longer expect
10000 baseclass_offset returning -1.
10001 (value_dynamic_cast): Use value_contents_for_printing rather than
10002 value_contents. Adjust.
10003 (search_struct_field): No longer expect baseclass_offset returning
10005 (search_struct_method): If reading memory from the target is
10006 necessary, wrap it in a new value to pass to baseclass_offset. No
10007 longer expect baseclass_offset returning -1.
10008 (find_method_list): No longer expect baseclass_offset returning
10009 -1. Use value_contents_for_printing rather than value_contents.
10010 * valprint.c (val_print_invalid_address): New function.
10011 * valprint.h (val_print_invalid_address): Declare.
10012 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10013 and `val' parameters. No longer expect baseclass_offset returning
10015 * gnu-v2-abi.c: Include "exceptions.h".
10016 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10017 parameters. Handle unavailable memory. Recurse through
10018 gnuv2_baseclass_offset directly, rather than through
10019 baseclass_offset. No longer returns -1 on not found, instead
10021 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10022 `val' parameters. Adjust.
10024 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10026 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10027 almost but not quite adjacent.
10029 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10031 * value.h (value_entirely_available): Declare.
10032 * value.c (value_entirely_available): New function.
10033 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10034 real type if the pointer is unavailable.
10036 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10038 * valops.c (value_repeat): Use read_value_memory instead of
10041 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10043 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10044 * value.c (value_contents_copy_raw, value_contents_copy): New
10046 (value_primitive_field): Use value_contents_copy_raw instead of
10048 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10050 (value_array, value_slice): Ditto.
10051 * valarith.c (value_subscripted_rvalue): Use
10052 value_contents_copy_raw instead of memcpy.
10054 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10056 <unavailable> references.
10058 * valops.c (get_value_at): Use value_from_contents_and_address,
10059 avoiding read_memory.
10061 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10063 * c-valprint.c (c_val_print): Print a string with unavailable
10064 contents as an array.
10066 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10068 * value.h (unpack_bits_as_long): Delete declaration.
10069 (unpack_value_bits_as_long): Declare.
10070 (unpack_value_field_as_long): Declare.
10071 (value_field_bitfield): Declare.
10072 * value.c (unpack_bits_as_long): Rename to...
10073 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10074 value parameters. Return the extracted result in a new output
10075 parameter. If the value contents are unavailable, return false,
10076 otherwise return true.
10077 (unpack_value_bits_as_long): New.
10078 (unpack_field_as_long): Rename to...
10079 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10080 Add embedded_offset and value parameters. Return the extracted
10081 result in a new output parameter. If the value contents are
10082 unavailable, return false, otherwise return true.
10083 (unpack_value_field_as_long): New.
10084 (unpack_field_as_long_1): New.
10085 (unpack_field_as_long): Reimplement as wrapper around
10086 unpack_value_field_as_long_1.
10087 (value_field_bitfield): New function.
10088 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10089 unpack_value_bits_as_long. Mark the value as unavailable, if it
10091 * jv-valprint.c (java_print_value_fields): Use
10092 value_field_bitfield.
10093 * p-valprint.c (pascal_object_print_value_fields): Use
10094 value_field_bitfield.
10095 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10097 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10099 * value.c (get_internalvar_integer): Also return the int value of
10100 TYPE_CODE_INT INTERNALVAR_VALUE values.
10101 (set_internalvar): Don't special case TYPE_CODE_INT.
10103 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10105 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10106 INTERNALVAR_POINTER.
10108 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10109 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10110 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10114 * value.h (value_available_contents_eq): Declare.
10115 * value.c (find_first_range_overlap): New function.
10116 (value_available_contents_eq): New function.
10117 * valprint.c (val_print_array_elements): Use
10118 value_available_contents_eq.
10119 * ada-valprint.c (val_print_packed_array_elements): Use
10120 value_available_contents_eq.
10121 * jv-valprint.c (java_value_print): Use
10122 value_available_contents_eq.
10124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10126 * target.c (target_read_live_memory): New function.
10127 (memory_xfer_live_readonly_partial): New.
10128 (memory_xfer_partial): If reading from a traceframe, fallback to
10129 reading unavailable read-only memory from read-only regions of
10130 live target memory.
10131 * tracepoint.c (disconnect_tracing): Adjust.
10132 (set_current_traceframe): New, factored out from
10133 set_traceframe_number.
10134 (set_traceframe_number): Reimplement to only change the traceframe
10135 number on the GDB side.
10136 (do_restore_current_traceframe_cleanup): Adjust.
10137 (make_cleanup_restore_traceframe_number): New.
10138 (cur_traceframe_number): New global.
10139 (tfile_open): Set cur_traceframe_number to no traceframe.
10140 (set_tfile_traceframe): New function.
10141 (tfile_trace_find): If looking up a traceframe using any method
10142 other than by number, make sure the current tfile traceframe
10143 matches gdb's current traceframe. Update the current tfile
10144 traceframe if the lookup succeeded.
10145 (tfile_fetch_registers, tfile_xfer_partial)
10146 (tfile_get_trace_state_variable_value): Make sure the remote
10147 traceframe matches gdb's current traceframe.
10148 * remote.c (remote_traceframe_number): New global.
10149 (remote_open_1): Set it to -1.
10150 (set_remote_traceframe): New function.
10151 (remote_fetch_registers, remote_store_registers)
10152 (remote_xfer_memory, remote_xfer_partial)
10153 (remote_get_trace_state_variable_value): Make sure the remote
10154 traceframe matches gdb's current traceframe.
10155 (remote_trace_find): If looking up a traceframe using any method
10156 other than by number, make sure the current remote traceframe
10157 matches gdb's current traceframe. Update the current remote
10158 traceframe if the lookup succeeded.
10159 * infrun.c (fetch_inferior_event): Adjust.
10160 * tracepoint.h (set_current_traceframe): Declare.
10161 (get_traceframe_number, set_traceframe_number): Add describing
10164 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10166 Mark pieces of values as unavailable if the corresponding memory
10169 * valops.c: Include tracepoint.h.
10170 (value_fetch_lazy): Use read_value_memory.
10171 (read_value_memory): New.
10172 * value.h (read_value_memory): Declare.
10173 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10174 * exec.c (section_table_available_memory): New function.
10175 * exec.h (section_table_available_memory): Declare.
10177 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10179 * Makefile.in (SFILES): Add memrange.c.
10180 (HFILES_NO_SRCDIR): Add memrange.h.
10181 (COMMON_OBS): Add memrange.o.
10182 * memrange.c: New file.
10183 * memrange.h: New file.
10184 * tracepoint.c: Include memrange.h.
10185 (struct mem_range): Delete.
10186 (mem_range_s): Delete.
10187 (traceframe_available_memory): New function.
10188 * tracepoint.h (traceframe_available_memory): Declare.
10190 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10192 * target.h (struct traceframe_info): Forward declare.
10193 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10194 (struct target_ops) <to_traceframe_info>: New field.
10195 (target_traceframe_info): New.
10196 * target.c (update_current_target): Inherit and default
10197 to_traceframe_info.
10198 * remote.c (PACKET_qXfer_traceframe_info): New.
10199 (remote_protocol_features): Register qXfer:traceframe-info:read.
10200 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10201 (remote_traceframe_info): New.
10202 (init_remote_ops): Install it.
10203 (_initialize_remote): Install "set/show remote traceframe-info"
10205 * tracepoint.h (parse_traceframe_info): Declare.
10206 * tracepoint.c (struct mem_range): New.
10207 (mem_range_s): New typedef.
10208 (struct traceframe_info): New.
10209 (traceframe_info): New global.
10210 (free_traceframe_info): New function.
10211 (clear_traceframe_info): New function.
10212 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10214 (build_traceframe_info): New function.
10215 (tfile_traceframe_info): New function.
10216 (init_tfile_ops): Install tfile_traceframe_info.
10217 (traceframe_info_start_memory, free_result): New functions.
10218 (memory_attributes, traceframe_info_elements): New globals.
10219 (parse_traceframe_info, get_traceframe_info): New functions.
10220 * features/traceframe-info.dtd: New file.
10221 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10223 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10225 Base support for <unavailable> value contents.
10227 * value.h (value_bytes_available): Declare.
10228 (mark_value_bytes_unavailable): Declare.
10229 * value.c (struct range): New struct.
10230 (range_s): New typedef.
10231 (ranges_overlap): New function.
10232 (range_lessthan): New function.
10233 (ranges_contain_p): New function.
10234 (struct value) <unavailable>: New field.
10235 (value_bytes_available): New function.
10236 (mark_value_bytes_unavailable): New function.
10237 (require_not_optimized_out): Constify parameter.
10238 (require_available): New function.
10239 (value_contents_all, value_contents): Require all bytes be
10241 (value_free): Free `unavailable'.
10242 (value_copy): Copy `unavailable'.
10243 * valprint.h (val_print_unavailable): Declare.
10244 * valprint.c (valprint_check_validity): Rename `offset' parameter
10245 to `embedded_offset'. If printing a scalar, check whether the
10246 value chunk is available.
10247 (val_print_unavailable): New.
10248 (val_print_scalar_formatted): Check whether the value is
10250 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10251 pretty-printing unavailable values.
10253 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10255 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10256 * c-typeprint.c (c_type_print_args): Update the function comment. New
10257 variable param_type, initialize it. Remove const/volatile qualifiers
10258 for language_cplus and !show_artificial. Use param_type.
10260 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10262 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10263 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10264 * symtab.h (struct symtab) <next>: Comment extension.
10266 2011-02-12 Yao Qi <yao@codesourcery.com>
10268 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10270 2011-02-11 Yao Qi <yao@codesourcery.com>
10272 * common/Makefile.in: Add copyright header.
10274 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10276 * infrun.c (proceed): Move switching out and in of tfind mode from
10278 (fetch_inferior_event): ... to here.
10280 2011-02-11 Yao Qi <yao@codesourcery.com>
10282 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10284 * configure.ac: Add common to sub dir.
10285 * configure: Regenerate.
10287 2011-02-11 Yao Qi <yao@codesourcery.com>
10291 * common/Makefile.in: New.
10292 * common/configure.ac: New.
10293 * common/aclocal.m4: New.
10294 * common/configure: Generate.
10296 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10298 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10299 side of the parenthesis.
10302 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10303 * vec.h (VEC_block_remove): Fix comment.
10305 2011-02-08 Michael Snyder <msnyder@vmware.com>
10307 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10309 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10311 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10312 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10315 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10318 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10320 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10321 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10323 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10325 * dwarf2read.c (read_subroutine_type): Set special calling
10326 convention flag for functions compiled by IBM XL C for OpenCL.
10327 * ppc-sysv-tdep.c: Include "dwarf2.h"
10328 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10329 calling convention.
10330 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10331 IBM OpenCL vector types calling convention.
10332 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10333 (ppc_sysv_abi_broken_return_value): Likewise.
10334 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10335 types calling convention.
10336 (ppc64_sysv_abi_return_value): Likewise.
10337 * spu-tdep.c: Include "dwarf2.h"
10338 (spu_return_value): Implement IBM OpenCL vector types calling
10341 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10344 correct ABI for AltiVec vector arguments.
10346 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10348 * valprint.c (val_print): Extend comment.
10349 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10350 interface explanation to val_print.
10351 (ada_val_print_array): Adjust comment to current interface.
10352 (print_field_values): Adjust comment to current interface.
10353 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10354 explanation to val_print.
10355 * f-valprint.c (f_val_print): Ditto.
10356 * jv-valprint.c (java_val_print): Ditto.
10357 * m2-valprint.c (m2_val_print): Ditto.
10358 * p-valprint.c (pascal_val_print): Ditto.
10360 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10362 * breakpoint.c (parse_breakpoint_sals): Fix description.
10364 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10365 Oguz Kayral <oguzkayral@gmail.com>
10367 * python/py-inferior.c (python_on_normal_stop): New function.
10368 (python_on_resume): New function.
10369 (python_inferior_exit): New function.
10370 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10371 inferior_exit observers.
10372 * python/py-evtregistry.c: New file.
10373 * python/py-threadevent.c : New file.
10374 * python/py-event.c: New file.
10375 * python/py-evts.c: New file.
10376 * python/py-continueevent.c: New file.
10377 * python/py-bpevent.c: New file.
10378 * python/py-signalevent.c: New file.
10379 * python/py-exetiedevent.c: New file.
10380 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10381 Move struct breakpoint_object from here...
10382 * python/python-internal.h: ... to here.
10383 * python/py-event.h: New file.
10384 * python/py-events.h: New file.
10385 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10386 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10387 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10388 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10389 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10390 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10391 Add build rules for all the above.
10393 2011-02-04 Tom Tromey <tromey@redhat.com>
10395 * dwarf2read.c (dwarf2_section_empty_p): New function.
10396 (dwarf2_read_section): Use dwarf2_section_empty_p.
10397 (dwarf2_section_size): New function.
10398 (dwarf2_get_section_info): Unconditionally read section.
10399 (dwarf2_read_index): Use dwarf2_section_empty_p.
10400 (partial_read_comp_unit_head): Use dwarf2_section_size.
10401 (dwarf2_symbol_mark_computed): Likewise.
10403 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10405 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10407 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10409 * mips-linux-tdep.c: Include xml-syscall.h.
10410 (mips_linux_get_syscall_number): New function.
10411 (mips_linux_init_abi): Add calls to
10412 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10413 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10414 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10415 * syscalls/mips-n32-linux.xml: New file.
10416 * syscalls/mips-n64-linux.xml: New file.
10417 * syscalls/mips-o32-linux.xml: New file.
10419 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10421 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10422 Complain about inverted range entries.
10423 (dwarf2_record_block_ranges): Likewise.
10425 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10428 * breakpoint.c (update_watchpoint): Fix name of the
10429 update_global_location_list function.
10430 (print_one_breakpoint): Fix typo.
10431 (_initialize_breakpoint): Remove extra space in hbreak help
10433 * breakpoint.h (struct bp_location) <length>: Fix field
10436 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10438 * regcache.c (registers_changed_ptid): Don't explictly always
10439 clear `current_regcache'. Only clear current_thread_ptid and
10440 current_thread_arch when PTID matches. Only reinit the frame
10441 cache if PTID matches the current inferior_ptid. Move alloca(0)
10443 (registers_changed): ... here.
10445 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10447 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10448 starts with __stack_chk_guard as stack guard symbol.
10450 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10452 * disasm.c (compare_lines): Handle the end of sequence markers
10453 within the line table to better support disassembling over
10454 compilation unit boundaries.
10456 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10458 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10459 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10460 implementation even if no symbols are available.
10461 (thumb_analyze_prologue): Update call to skip_prologue_function.
10462 (arm_analyze_prologue): Likewise.
10464 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10466 * arm-tdep.c: Include "observer.h".
10467 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10468 (arm_exidx_data_key): New static variable.
10469 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10470 (struct arm_exidx_data): Likewise.
10471 (arm_exidx_data_free): New function.
10472 (arm_compare_exidx_entries): Likewise.
10473 (arm_obj_section_from_vma): Likewise.
10474 (arm_exidx_new_objfile): Likewise.
10475 (arm_find_exidx_entry): Likewise.
10476 (arm_exidx_fill_cache): Likewise.
10477 (arm_exidx_unwind_sniffer): Likewise.
10478 (arm_exidx_unwind): New global variable.
10479 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10480 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10481 observer. Register arm_exidx_data_key as objfile data.
10483 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10485 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10486 due to accessing uninitialized variable. Fix indentation.
10488 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10490 * c-valprint.c (c_value_print): When doing virtual base pointer
10491 adjustment, create a new value with adjusted contents rather than
10492 changing the contents of the value being printed (and getting it
10495 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10497 * xml-support.c (xml_find_attribute): New.
10498 (xinclude_start_include): Use it.
10499 * xml-support.h (xml_find_attribute): Declare.
10500 * memory-map.c (memory_map_start_memory)
10501 (memory_map_start_property): Use xml_find_attribute.
10502 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10503 xml_find_attribute.
10504 * remote.c (start_thread): Use xml_find_attribute.
10505 * solib-target.c (library_list_start_segment)
10506 (library_list_start_section, library_list_start_library)
10507 (library_list_start_list): Use xml_find_attribute.
10508 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10509 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10510 (tdesc_start_field): Use xml_find_attribute.
10512 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10514 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10515 (BUILD_OCL_VTYPES): Update.
10517 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10519 * configure.ac: Work around non-GNU sed limitation when computing
10520 python version number.
10521 * configure: Regenerate.
10523 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10525 Fix debug printing of TYPE_INSTANCE.
10526 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10527 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10529 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10531 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10532 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10533 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10534 * ada-operator.inc: Rename the file to ...
10535 * ada-operator.def: ... here, wrap all the entries by macro OP.
10536 * expprint.c (op_name_standard): Remove all the entries. Include
10537 "std-operator.def" instead.
10538 * expression.h (enum exp_opcode): Include "std-operator.def" and
10539 "ada-operator.def". Move all the entries ...
10540 * std-operator.def: ... here, wrap all the entries by macro OP.
10542 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10544 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10545 * breakpoint.c (remove_jit_event_breakpoints): New function.
10546 * jit.c (jit_descriptor_addr): Delete.
10547 (registering_code): Delete.
10548 (clear_int): Delete.
10549 (jit_inferior_data): New variable.
10550 (struct jit_inferior_data): New type.
10551 (get_jit_inferior_data): New function.
10552 (jit_inferior_data_cleanup): New function.
10553 (jit_read_descriptor): Adjust.
10554 (jit_register_code): Adjust.
10555 (jit_breakpoint_re_set_internal): New function; move code here ...
10556 (jit_inferior_init): ... from here.
10557 (jit_breakpoint_re_set): Adjust.
10558 (jit_reset_inferior_data_and_breakpoints): New function.
10559 (jit_inferior_created_observer): Adjust.
10560 (jit_inferior_exit_hook): Adjust.
10561 (jit_executable_changed_observer): New function.
10562 (jit_event_handler): Adjust.
10563 (_initialize_jit): Adjust.
10565 2011-01-31 Michael Snyder <msnyder@vmware.com>
10567 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10570 2011-01-31 Tom Tromey <tromey@redhat.com>
10573 * python/python.c (execute_gdb_command): Call
10574 prevent_dont_repeat.
10575 * top.c (suppress_dont_repeat): New global.
10576 (dont_repeat): Use it.
10577 (prevent_dont_repeat): New function.
10578 * command.h (prevent_dont_repeat): Declare.
10580 2011-01-31 Tom Tromey <tromey@redhat.com>
10582 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10583 * python/py-breakpoint.c (bppy_set_silent): Use
10584 breakpoint_set_silent.
10585 (bppy_set_thread): Use breakpoint_set_thread.
10586 (bppy_set_task): Use breakpoint_set_task.
10587 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10588 (breakpoint_set_task): Declare.
10589 (make_breakpoint_silent): Remove.
10590 * breakpoint.c (breakpoint_set_silent): New function.
10591 (breakpoint_set_thread): Likewise.
10592 (breakpoint_set_task): Likewise.
10593 (make_breakpoint_silent): Remove.
10595 2011-01-31 Tom Tromey <tromey@redhat.com>
10597 * breakpoint.h (user_breakpoint_p): Declare.
10598 * breakpoint.c (user_breakpoint_p): New function.
10599 (breakpoint_1): Use it.
10600 (save_breakpoints): Likewise.
10602 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10604 * configure.ac: Add handling of Python distribution on Windows.
10605 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10606 sysconfig variables are not defined, then do not use them.
10607 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10608 instead. On Windows, return all paths using forward-slashes
10609 rather than backslashes.
10611 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10613 * configure.ac: Remove fallback behavior for building
10614 against Python. Remove tweaking of Python include path.
10615 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10616 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10617 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10618 Always restore CPPFLAGS and LIBS after linking test.
10619 * configure: Regenerated.
10620 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10621 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10622 * python/python-internal.h: Adjust includes of Python .h files.
10624 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10626 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10629 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10631 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10634 2011-01-31 Yao Qi <yao@codesourcery.com>
10636 * arm-linux-nat.c: Update calls to regcache_register_status
10637 instead of regcache_valid_p.
10638 * aix-thread.c: Likewise.
10639 * i386gnu-nat.c: Likewise.
10641 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10644 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10645 touching TYPE_FIELD_ARTIFICIAL.
10647 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10649 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10652 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10654 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10655 selected, don't try iterating over the traceframe's blocks.
10656 (tfile_has_stack): If there's no traceframe selected, then there's
10658 (tfile_has_registers): If there's no traceframe selected, then
10659 there's no registers.
10661 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10663 * target.c (memory_xfer_partial): No need to restore shadows if we
10664 haven't read anything.
10666 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10668 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10669 and val_print_scalar_formatted.
10671 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10673 * tracepoint.c (tfile_read): New.
10674 (tfile_open): Use it.
10675 (tfile_get_traceframe_address): Use it.
10676 (tfile_trace_find): Use it.
10677 (walk_blocks_callback_func): New typedef.
10678 (match_blocktype): New function.
10679 (traceframe_walk_blocks): New function.
10680 (traceframe_find_block_type): New function.
10681 (tfile_fetch_registers, tfile_xfer_partial)
10682 (tfile_get_trace_state_variable_value): Use
10683 traceframe_find_block_type and tfile_read.
10685 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10687 * remote-mips.c: Add internationalization mark ups. Remove
10688 trailing \n from already marked up strings.
10690 2011-01-26 Tom Tromey <tromey@redhat.com>
10692 * python/py-prettyprint.c (print_string_repr): Clear
10693 'addressprint' option when calling val_print_string.
10694 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10695 option when calling val_print_string.
10697 2011-01-26 Tom Tromey <tromey@redhat.com>
10699 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10701 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10703 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10704 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10705 (gdb_py_long_as_ulongest): New defines.
10706 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10707 (gdb_py_int_as_long): Declare.
10708 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10709 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10710 (valpy_long): Add comment.
10711 * python/py-utils.c (get_addr_from_python): Use
10712 gdb_py_long_as_ulongest. Handle overflow properly.
10713 (gdb_py_object_from_longest): New function.
10714 (gdb_py_object_from_ulongest): Likewise.
10715 (gdb_py_int_as_long): Likewise.
10716 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10717 * python/py-symtab.c (salpy_get_pc): Use
10718 gdb_py_long_from_ulongest.
10719 (salpy_get_line): Use PyInt_FromLong.
10720 * python/py-param.c (set_parameter_value): Use
10721 gdb_py_int_as_long.
10722 * python/py-lazy-string.c (stpy_get_address): Use
10723 gdb_py_long_from_ulongest.
10724 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10725 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10726 * python/py-breakpoint.c (bppy_set_thread): Use
10727 gdb_py_int_as_long.
10728 (bppy_set_task): Likewise.
10729 (bppy_set_ignore_count): Likewise.
10730 (bppy_set_hit_count): Likewise.
10731 * python/py-block.c (blpy_get_start): Use
10732 gdb_py_object_from_ulongest.
10733 (blpy_get_end): Likewise.
10734 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10736 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10739 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10740 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10741 equality test for objfile, initialize addr_low if needed.
10743 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10745 * tui/tui-regs.c (tui_register_format): Remove dead code.
10747 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10749 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10750 instead of print_scalar_formatted.
10751 (print_scalar_formatted): Don't handle 's' format strings here,
10752 and add an assertion that we never see such format here.
10753 * valprint.h (val_print_scalar_formatted): Declare.
10754 * valprint.c (val_print_scalar_formatted): New.
10755 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10756 instead of print_scalar_formatted.
10757 * jv-valprint.c (java_val_print): Ditto.
10758 * p-valprint.c (pascal_val_print): Ditto.
10759 * ada-valprint.c (ada_val_print_1): Ditto.
10760 * f-valprint.c (f_val_print): Ditto.
10761 * infcmd.c (registers_info): Ditto.
10762 * m2-valprint.c (m2_val_print): Ditto.
10764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10766 * m2-valprint.c (print_unbounded_array): Pass
10767 value_contents_for_printing rather than value_contents, to
10768 m2_print_array_contents. Also pass in the value.
10770 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10773 (save_gdb_index_command): Switch to .gdb_index version 4.
10775 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10777 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10778 than frame_register, and always pass a valid value to val_print.
10780 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10782 Centralize printing "<optimized out>".
10784 * valprint.h (val_print_optimized_out): Declare.
10785 * cp-valprint.c (cp_print_value_fields): Use
10786 val_print_optimized_out.
10787 * jv-valprint.c (java_print_value_fields): Ditto.
10788 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10789 * printcmd.c (print_formatted): Ditto.
10790 * valprint.c (valprint_check_validity): Ditto.
10791 (value_check_printable): Ditto.
10792 (val_print_optimized_out): New.
10794 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10796 * infcmd.c (default_print_registers_info): Allocate values so to
10797 never pass a NULL value to val_print.
10799 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10801 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10802 boolean. Make sure to always pass a value that matches the
10803 contents buffer to callees. Preserve `address' for following
10805 * value.c (value_contents_for_printing_const): New.
10806 (value_address): Constify value argument.
10807 * value.h (value_contents_for_printing_const): Declare.
10808 (value_address): Constify value argument.
10810 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10812 * regcache.c (struct regcache_descr): Rename
10813 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10814 and sizeof_cooked_register_valid_p to
10815 sizeof_cooked_register_status.
10816 (init_regcache_descr): Adjust.
10817 (struct regcache): Rename register_valid_p field to
10819 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10820 (do_cooked_read): Adjust.
10821 (regcache_valid_p): Rename to ...
10822 (regcache_register_status): ... this. Adjust.
10823 (regcache_invalidate): Adjust.
10824 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10826 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10827 as unavailable, not valid.
10828 (regcache_dump): Adjust.
10829 * regcache.h (enum register_status): New.
10830 (regcache_register_status): Declare.
10831 (regcache_invalidate): Delete declaration.
10832 * corelow.c (get_core_registers): Adjust.
10833 * tracepoint.c (tfile_fetch_registers): Adjust.
10834 * trad-frame.c (REG_VALUE): Rename to ...
10835 (TF_REG_VALUE): ... this.
10836 (REG_UNKNOWN): Rename to ...
10837 (TF_REG_UNKNOWN): ... this.
10838 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10839 * mi/mi-main.c (register_changed_p): Adjust.
10841 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10843 * regcache.c (struct regcache_descr): Remove outdated comment.
10844 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10846 (regcache_xmalloc): Rename to ...
10847 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10848 Allocate the regcache type accordingly.
10849 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10850 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10851 cooked registers, not raw.
10852 (regcache_dup_no_passthrough): Delete.
10853 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10854 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10855 mention obsolete write_register_bytes.
10856 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10858 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10860 Stop remote_read_bytes from handling partial reads itself.
10862 * remote-fileio.c: Include target.h.
10863 (remote_fileio_write_bytes): Delete.
10864 (remote_fileio_func_open, remote_fileio_func_write)
10865 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10866 target_read_memory.
10867 (remote_fileio_func_stat): Use target_read_memory and
10868 target_write_memory.
10869 (remote_fileio_func_gettimeofday): Use target_write_memory.
10870 (remote_fileio_func_system): Use target_read_memory.
10871 * remote.c (remote_write_bytes): Make it static.
10872 (remote_read_bytes): Don't handle partial reads here.
10873 * remote.h (remote_read_bytes): Delete declaration.
10875 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10877 Simplify XML parsing a bit.
10879 * xml-support.h (gdb_xml_parse_quick): Declare.
10880 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10881 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10883 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10884 gdb_xml_create_parser_and_cleanup_1.
10885 (gdb_xml_parse_quick): New.
10886 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10887 * osdata.c (osdata_parse): Ditto.
10888 * remote.c (remote_threads_info): Ditto.
10889 * solib-target.c (solib_target_parse_libraries): Ditto.
10890 * xml-syscall.c (syscall_parse_xml): Ditto.
10891 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10893 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10895 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10896 with remote-mips.o added to gdb_target_obs.
10897 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10899 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10901 * ada-valprint.c (val_print_packed_array_elements): Pass the
10902 correct struct value to val_print.
10903 (ada_val_print_1): Ditto.
10905 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10907 Don't lose embedded_offset in printing routines throughout.
10909 * valprint.h (val_print_array_elements): Change prototype.
10910 * valprint.c (val_print_array_elements): Add `embedded_offset'
10911 parameter, and adjust to pass it down to val_print, while passing
10912 `valaddr' or `address' unmodified. Take embedded_offset into
10913 account when checking repetitions.
10914 * c-valprint.c (c_val_print): Pass embedded_offset to
10915 val_print_array_elements instead of adjusting `valaddr' and
10917 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10918 embedded_offset to val_print_array_elements instead of adjusting
10920 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10921 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10922 val_print_array_elements and pascal_object_print_value_fields
10923 instead of adjusting `valaddr'.
10924 (pascal_object_print_value_fields): Add `offset' parameter, and
10926 (pascal_object_print_value): Add `offset' parameter, and adjust to
10928 (pascal_object_print_static_field): Use
10929 value_contents_for_printing/value_embedded_offset, rather than
10931 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10932 parameter, and adjust to use it. Use
10933 value_contents_for_printing/value_embedded_offset, rather than
10935 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10936 (ada_val_print_array): Add `offset' parameter, and adjust to use
10938 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10939 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10940 Instead work with offsets. Use
10941 value_contents_for_printing/value_embedded_offset, rather than
10942 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10943 and use value_from_pointer to extract a target pointer, rather
10944 than value_from_longest.
10945 (print_variant_part): Add `offset' parameter. Replace
10946 `outer_valaddr' parameter by a new `outer_offset' parameter.
10947 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10948 (ada_value_print): Use
10949 value_contents_for_printing/value_embedded_offset, rather than
10951 (print_record): Add `offset' parameter, and adjust to pass it
10953 (print_field_values): Add `offset' parameter. Replace
10954 `outer_valaddr' parameter by a new `outer_offset' parameter.
10955 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10956 Use value_contents_for_printing/value_embedded_offset, rather than
10958 * d-valprint.c (dynamic_array_type): Use
10959 value_contents_for_printing/value_embedded_offset, rather than
10961 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10962 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10963 (java_print_value_fields): Take `offset' into account. Don't
10964 re-adjust `valaddr'. Instead pass down adjusted offsets.
10965 (java_val_print): Take `embedded_offset' into account. Pass it to
10966 java_print_value_fields.
10967 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10968 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10969 down adjusted offsets.
10970 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10971 (f_val_print): Take `embedded_offset' into account.
10973 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10975 * inflow.c: Include "gdbcmd.h".
10976 (interactive_mode): New static global, moved here from top.c.
10977 (show_interactive_mode): New function, moved here from top.c.
10978 use gdb_has_a_terminal instead of input_from_terminal_p to
10979 determine the current mode.
10980 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10982 (_initialize_inflow): Add the "set/show interactive-mode"
10983 commands. Moved here from top.c, after having adjusted slightly
10985 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10987 (input_from_terminal_p): Remove handling of "interactive-mode"
10988 setting, moved to infow.c.
10989 (init_main): Remove creation of the "set/show interactive-mode"
10990 commands, moved to inflow.c.
10992 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10994 * NEWS: Add entry for native ia64-hpux support.
10996 2011-01-19 Tom Tromey <tromey@redhat.com>
10999 * thread.c (free_thread): Free 'name'.
11000 (print_thread_info): Emit thread name. Change CLI output.
11001 (thread_name_command): New function.
11002 (do_captured_thread_select): Emit newline.
11003 (_initialize_thread): Register 'thread name' command.
11004 * target.h (struct target_ops) <to_thread_name>: New field.
11005 (target_thread_name): New macro.
11006 * target.c (update_current_target): Handle to_thread_name.
11007 * python/py-infthread.c (thpy_get_name): New function.
11008 (thpy_set_name): Likewise.
11009 (thread_object_getset): Add "name".
11010 * linux-nat.c (linux_nat_thread_name): New function.
11011 (linux_nat_add_target): Set to_thread_name.
11012 * gdbthread.h (struct thread_info) <name>: New field.
11014 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11016 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11017 (ada_val_print_1): Likewise.
11019 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11021 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11022 upper limit address is not greater than the function end address
11023 when the upper limit could not be computed using the debugging
11026 2011-01-17 Tom Tromey <tromey@redhat.com>
11028 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11030 * utils.c: Include gdb_regex.h.
11031 (do_regfree_cleanup): New function.
11032 (make_regfree_cleanup): Likewise.
11033 (get_regcomp_error): Likewise.
11034 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11036 2011-01-17 Tom Tromey <tromey@redhat.com>
11038 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11039 re_compile_fastmap.
11041 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11043 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11044 for internal variables.
11045 (last_was_structop): New static variable.
11046 (COMPLETE): New token.
11047 (field_exp): New rule to group all '.' suffix handling.
11048 Add mark_struct_expression calls when approriate to be able
11049 to correctly find fields for completion.
11050 (yylex): Adapt to handle field completion and set INTVAR when
11053 2011-01-14 Yao Qi <yao@codesourcery.com>
11055 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11056 save_reggroup, restore_reggroup and all_reggroup.
11058 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11060 * ada-valprint. (ada_printchar): Use the correct type length
11061 in call to ada_emit_char.
11062 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11064 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11066 * solib-som.h (hpux_major_release): Declare variable here.
11067 * solib-som.c: Remove <sys/utsname.h> header.
11068 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11069 (hpux_major_release): Make global, change default value to
11070 DEFAULT_HPUX_MAJOR_RELEASE.
11071 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11072 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11073 Add "solib-som.h" header.
11074 (set_hpux_major_release): New function.
11075 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11077 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11079 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11081 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11083 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11084 new-line at end of warning message.
11085 (ia64_hpux_store_register): Remove trailing new-line at end of
11087 * ia64-hpux-tdep.c: Rephrase comment.
11088 * solib-ia64-hpux.c (struct dld_info): Change type of field
11089 dld_flags from "long long" to ULONGEST.
11091 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11093 * target.h (deprecated_child_ops): Delete declaration.
11094 * target.c (deprecated_child_ops): Delete definition.
11096 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11098 * Makefile.in (hpux-thread.o): Delete rule.
11099 * configure.ac: Don't check for HPUX DCE threads support.
11100 * configure, config.in: Regenerate.
11101 * hppa-hpux-nat.c (child_suppress_run): Delete.
11102 (hppa_hpux_child_can_run): Delete.
11103 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11104 * hpux-thread.c: Delete.
11106 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11108 * hpux-thread.c (hpux_pid_to_str): Delete.
11110 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11112 * ada-valprint.c (ada_emit_char): Remove strange code.
11113 Check that c is <= UCHAR_MAX before passing it to isascii.
11114 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11116 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11118 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11119 to the case where instream is stdin.
11121 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11123 * ia64-tdep.h (struct regcache): Forward declare.
11124 (struct ia64_infcall_ops): New struct type.
11125 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11127 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11128 Renames ia64_find_global_pointer.
11129 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11130 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11131 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11133 (ia64_infcall_ops): New static global constant.
11134 (ia64_gdbarch_init): Set tdep->infcall_ops.
11135 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11136 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11137 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11138 (ia64_hpux_dummy_code): New static global constant.
11139 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11140 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11141 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11143 (ia64_hpux_infcall_ops): New static global constant.
11144 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11145 for inferior function calls to work properly on ia64-hpux.
11147 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11149 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11150 * ia64-tdep.h (struct frame_info): forward declaration.
11151 (struct gdbarch_tdep): Add field size_of_register_frame.
11152 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11153 to determine the size of the register frame.
11154 (ia64_size_of_register_frame): New function.
11155 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11156 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11157 (IA64_HPUX_UREG_REASON): New macro.
11158 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11160 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11161 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11162 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11165 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11167 Add support for ia64-hpux.
11168 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11169 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11171 * configure.host: Add handling for ia64-hpux hosts. Add associated
11173 * configure.tgt: Add handling for ia64-hpux targets.
11174 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11175 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11176 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11178 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11180 [ttrace] Compute thread list immediately after attach.
11181 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11183 (inf_ttrace_attach): Use it.
11185 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11187 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11188 if we could not determine the frame's function address. Instead,
11189 use the frame's PC, and then continue.
11191 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11193 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11194 not already defined.
11196 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11198 * ia64-tdep.c (ia64_struct_type_p): New function.
11199 (ia64_extract_return_value): Handle integral values that are
11200 less than 8 bytes long.
11201 (ia64_push_dummy_call): Likewise.
11203 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11205 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11206 floatformat_ia64_ext.
11207 (floatformat_ia64_ext_big): New static const.
11208 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11210 2011-01-12 Tom Tromey <tromey@redhat.com>
11212 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11214 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11215 (mi_cmd_thread_list_ids): Likewise.
11216 (mi_cmd_data_list_changed_registers): Likewise.
11217 (mi_cmd_data_list_register_values): Likewise.
11218 (mi_cmd_data_write_register_values): Likewise.
11219 (mi_cmd_data_evaluate_expression): Likewise.
11220 (mi_cmd_data_read_memory): Likewise.
11221 (mi_cmd_data_read_memory_bytes): Likewise.
11222 (mi_cmd_data_write_memory): Likewise.
11223 (mi_cmd_enable_timings): Likewise.
11224 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11225 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11226 (mi_cmd_var_delete): Likewise.
11227 (mi_cmd_var_set_format): Likewise.
11228 (mi_cmd_var_show_format): Likewise.
11229 (mi_cmd_var_info_num_children): Likewise.
11230 (mi_cmd_var_list_children): Likewise.
11231 (mi_cmd_var_info_type): Likewise.
11232 (mi_cmd_var_info_expression): Likewise.
11233 (mi_cmd_var_show_attributes): Likewise.
11234 (mi_cmd_var_assign): Likewise.
11235 (mi_cmd_var_update): Likewise.
11236 (mi_cmd_enable_pretty_printing): Likewise.
11237 (mi_cmd_var_set_update_range): Likewise.
11238 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11240 (mi_cmd_target_file_put): Likewise.
11241 (mi_cmd_target_file_delete): Likewise.
11242 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11244 (mi_cmd_stack_info_depth): Likewise.
11245 (mi_cmd_stack_list_locals): Likewise.
11246 (mi_cmd_stack_list_args): Likewise.
11247 (mi_cmd_stack_select_frame): Likewise.
11248 (mi_cmd_stack_select_frame): Likewise.
11249 (mi_cmd_stack_info_frame): Likewise.
11250 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11252 (mi_cmd_file_list_exec_source_files): Likewise.
11253 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11254 (mi_cmd_env_cd): Likewise.
11255 (mi_cmd_env_path): Likewise.
11256 (mi_cmd_env_dir): Likewise.
11257 (mi_cmd_inferior_tty_show): Likewise.
11258 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11260 (mi_cmd_break_watch): Likewise.
11262 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11264 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11265 (ppc_linux_insert_hw_breakpoint): Likewise.
11266 (ppc_linux_remove_hw_breakpoint): Likewise.
11267 (ppc_linux_insert_watchpoint): Likewise.
11269 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11270 Jan Kratochvil <jan.kratochvil@redhat.com>
11272 PR fortran/11104 and DWARF unbound arrays detection.
11273 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11274 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11275 unspecified upper bound.
11276 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11277 variables array_size_array, tmp_type and offset_item. New variable
11278 array. Remove call to f77_get_upperbound. New variables array_type
11279 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11280 the final call to deprecated_set_value_type.
11282 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11284 Make value allocations more lazy.
11285 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11286 instead of allocate_value and set_value_lazy when possible.
11287 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11288 instead of allocate_value and set_value_lazy.
11289 * findvar.c (value_of_register_lazy): Likewise.
11290 (read_var_value): Remove V preallocation, call just check_typedef in
11291 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11292 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11293 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11294 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11295 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11296 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11297 the end, remove set_value_lazy there.
11298 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11299 instead of allocate_value and set_value_lazy when possible.
11300 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11301 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11302 of allocate_value and set_value_lazy.
11303 (value_from_contents_and_address): Use allocate_value_lazy instead of
11304 allocate_value and set_value_lazy when possible.
11306 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11308 * disasm.c (dump_insns): Support dumping opcodes for MI.
11309 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11310 dumping of instruction opcodes.
11312 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11314 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11317 2011-01-11 Tom Tromey <tromey@redhat.com>
11319 * thread.c (do_captured_thread_select): Emit newline before
11322 2011-01-11 Michael Snyder <msnyder@vmware.com>
11324 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11325 * score-tdep.c: Ditto.
11326 * score-tdep.h: Ditto.
11327 * ser-base.c: Ditto.
11328 * ser-go32.c: Ditto.
11331 * ser-mingw.c: Ditto.
11332 * ser-pipe.c: Ditto.
11333 * ser-tcp.c: Ditto.
11334 * ser-unix.c: Ditto.
11335 * sh64-tdep.c: Ditto.
11336 * shnbsd-nat.c: Ditto.
11337 * sh-tdep.c: Ditto.
11338 * sh-tdep.h: Ditto.
11340 * solib-darwin.c: Ditto.
11341 * solib-frv.c: Ditto.
11343 * solib-irix.c: Ditto.
11344 * solib-osf.c: Ditto.
11345 * solib-pa64.c: Ditto.
11346 * solib-som.c: Ditto.
11347 * solib-spu.c: Ditto.
11348 * solib-sunos.c: Ditto.
11349 * solib-svr4.c: Ditto.
11351 * sol-thread.c: Ditto.
11352 * somread.c: Ditto.
11355 * sparc64-linux-tdep.c: Ditto.
11356 * sparc64-tdep.c: Ditto.
11357 * sparc-linux-nat.c: Ditto.
11358 * sparc-linux-tdep.c: Ditto.
11359 * sparc-sol2-nat.c: Ditto.
11360 * sparc-sol2-tdep.c: Ditto.
11361 * sparc-tdep.c: Ditto.
11362 * sparc-tdep.h: Ditto.
11363 * spu-tdep.c: Ditto.
11364 * stabsread.c: Ditto.
11365 * stabsread.h: Ditto.
11367 * symfile.c: Ditto.
11368 * symfile.h: Ditto.
11369 * symmisc.c: Ditto.
11373 * target-descriptions.c: Ditto.
11374 * target-descriptions.h: Ditto.
11376 * target-memory.c: Ditto.
11377 * terminal.h: Ditto.
11380 * tracepoint.c: Ditto.
11381 * tracepoint.h: Ditto.
11382 * trad-frame.h: Ditto.
11383 * typeprint.c: Ditto.
11385 2011-01-11 Michael Snyder <msnyder@vmware.com>
11387 * ui-file.c: Comment cleanup, mostly periods and spaces.
11388 * ui-file.h: Ditto.
11392 * v850-tdep.c: Ditto.
11393 * valarith.c: Ditto.
11395 * valprint.c: Ditto.
11396 * valprint.h: Ditto.
11401 * vax-tdep.c: Ditto.
11404 * version.h: Ditto.
11405 * windows-nat.c: Ditto.
11406 * windows-tdep.c: Ditto.
11407 * xcoffread.c: Ditto.
11408 * xcoffsolib.c: Ditto.
11409 * xml-support.c: Ditto.
11410 * xstormy16-tdep.c: Ditto.
11411 * xtensa-tdep.c: Ditto.
11412 * xtensa-tdep.h: Ditto.
11414 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11416 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11417 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11419 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11420 Thiago Jung Bauermann <bauerman@br.ibm.com>
11422 Implement support for PowerPC BookE ranged watchpoints.
11424 (struct breakpoint_ops) <resources_needed>: New method.
11425 Initialize to NULL in all existing breakpoint_ops instances.
11426 (struct breakpoint) <exact>: New field.
11427 (target_exact_watchpoints): Declare external global.
11428 * breakpoint.c (target_exact_watchpoints): New global flag.
11429 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11430 b->enable_state to bp_enabled before calling
11431 hw_watchpoint_used_count.
11432 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11433 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11435 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11436 if the watchpoint is exact.
11437 (resources_needed_watchpoint): New function.
11438 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11439 (watch_command_1): Set b->exact if the user asked for an exact
11440 watchpoint and one can be set.
11441 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11442 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11443 the user asks for an exact watchpoint and one can be set. Return
11444 number of needed debug registers to watch the expression.
11445 * gdbtypes.c (is_scalar_type): New function, based on
11446 valprint.c:scalar_type_p.
11447 (is_scalar_type_recursive): New function.
11448 * gdbtypes.h (is_scalar_type_recursive): Declare.
11449 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11450 handle regions when ranged watchpoints are available.
11451 (create_watchpoint_request): New function.
11452 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11453 create_watchpoint_request.
11454 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11455 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11456 `set powerpc' and `show powerpc' commands.
11457 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11458 Mention documentation comment in the target macro.
11459 (target_region_ok_for_hw_watchpoint): Document return value.
11461 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11463 * breakpoint.c (update_watchpoint): Decide on using a software or
11464 hardware watchpoint after the bp_locations are created.
11466 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11468 Convert hardware watchpoints to use breakpoint_ops.
11469 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11470 <insert_location>: ... this. Return int instead of void.
11471 Accept pointer to struct bp_location instead of pointer to
11472 struct breakpoint. Adapt all implementations.
11473 (breakpoint_ops) <remove>: Rename to...
11474 <remove_location>: ... this. Accept pointer to struct bp_location
11475 instead of pointer to struct breakpoint. Adapt all implementations.
11476 * breakpoint.c (insert_catchpoint): Delete function.
11477 (insert_bp_location): Call the watchpoint or catchpoint's
11478 breakpoint_ops.insert method.
11479 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11480 breakpoint_ops.remove method.
11481 (insert_watchpoint, remove_watchpoint): New functions.
11482 (watchpoint_breakpoint_ops): New structure.
11483 (watch_command_1): Initialize the OPS field.
11484 * inf-child.c (inf_child_insert_fork_catchpoint)
11485 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11486 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11487 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11489 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11490 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11491 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11492 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11493 * target.c (update_current_target): Change default implementation of
11494 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11495 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11496 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11497 to_set_syscall_catchpoint to return_one.
11498 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11499 (debug_to_insert_exec_catchpoint): Report return value.
11500 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11501 (to_insert_exec_catchpoint): Change declaration to return int instead
11504 2011-01-11 Michael Snyder <msnyder@vmware.com>
11506 * arm-tdep.c: Internationalization.
11508 * charset.c: Ditto.
11509 * fork-child.c: Ditto.
11510 * nto-procfs.c: Ditto.
11511 * ppc-sysv-tdep.c: Ditto.
11513 * remote-mips.c: Ditto.
11515 * rs6000-nat.c: Ditto.
11516 * rs6000-tdep.c: Ditto.
11520 * xml-support.c: Ditto.
11521 * mi/mi-cmd-break.c: Ditto.
11522 * mi/mi-cmd-var.c: Ditto.
11523 * mi/mi-interp.c: Ditto.
11524 * mi/mi-main.c: Ditto.
11526 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11528 * remote-sim.c (gdbsim_store_register): Update API to
11529 sim_store_register to check more error conditions.
11531 2011-01-10 Michael Snyder <msnyder@vmware.com>
11533 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11534 * nto-tdep.c: Ditto.
11535 * nto-tdep.h: Ditto.
11536 * objc-exp.y: Ditto.
11537 * objc-lang.c: Ditto.
11538 * objfiles.c: Ditto.
11539 * objfiles.h: Ditto.
11540 * observer.c: Ditto.
11541 * opencl-lang.c: Ditto.
11544 * parser-defs.h: Ditto.
11547 * posix-hdep.c: Ditto.
11548 * ppcbug-rom.c: Ditto.
11549 * ppc-linux-nat.c: Ditto.
11550 * ppc-linux-tdep.c: Ditto.
11551 * ppc-linux-tdep.h: Ditto.
11552 * ppcnbsd-tdep.c: Ditto.
11553 * ppcobsd-tdep.c: Ditto.
11554 * ppcobsd-tdep.h: Ditto.
11555 * ppc-sysv-tdep.c: Ditto.
11556 * ppc-tdep.h: Ditto.
11557 * printcmd.c: Ditto.
11558 * proc-abi.c: Ditto.
11559 * proc-flags.c: Ditto.
11561 * proc-utils.h: Ditto.
11562 * progspace.h: Ditto.
11563 * prologue-value.c: Ditto.
11564 * prologue-value.h: Ditto.
11565 * psympriv.h: Ditto.
11566 * psymtab.c: Ditto.
11567 * p-typeprint.c: Ditto.
11568 * p-valprint.c: Ditto.
11569 * ravenscar-sparc-thread.c: Ditto.
11570 * ravenscar-thread.c: Ditto.
11571 * ravenscar-thread.h: Ditto.
11573 * regcache.c: Ditto.
11574 * regcache.h: Ditto.
11576 * remote-fileio.c: Ditto.
11577 * remote-fileio.h: Ditto.
11579 * remote-m32r-sdi.c: Ditto.
11580 * remote-mips.c: Ditto.
11581 * remote-sim.c: Ditto.
11582 * rs6000-aix-tdep.c: Ditto.
11583 * rs6000-nat.c: Ditto.
11584 * rs6000-tdep.c: Ditto.
11586 2011-01-10 Michael Snyder <msnyder@vmware.com>
11588 * charset.c (validate): Internationalization.
11589 * coffread.c (read_one_sym): Ditto.
11590 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11591 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11592 * inflow.c (new_tty): Ditto.
11593 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11594 * m32c-tdep.c (m32c_return_value): Ditto.
11595 * mep-tdep.c (mep_store_return_value): Ditto.
11596 * score-tdep.c (score7_fetch_insn): Ditto.
11597 * ser-mingw.c (pipe_windows_open): Ditto.
11598 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11599 * spu-tdep.c (spu_register_type): Ditto.
11600 * tracepoint.c (trace_find_command): Ditto.
11601 * valarith.c (value_pos): Ditto.
11603 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11605 * ada-valprint.c (printstr): Minor comment reformatting.
11607 2011-01-08 Michael Snyder <msnyder@vmware.com>
11609 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11612 2011-01-08 Michael Snyder <msnyder@vmware.com>
11614 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11615 * hppa-hpux-tdep.c: Ditto.
11616 * hppa-linux-nat.c: Ditto.
11617 * hppa-linux-tdep.c: Ditto.
11618 * hppanbsd-tdep.c: Ditto.
11619 * hppa-tdep.c: Ditto.
11620 * hppa-tdep.h: Ditto.
11621 * hpux-thread.c: Ditto.
11622 * i386-cygwin-tdep.c: Ditto.
11623 * i386-darwin-nat.c: Ditto.
11624 * i386gnu-nat.c: Ditto.
11625 * i386-linux-nat.c: Ditto.
11626 * i386-linux-tdep.c: Ditto.
11627 * i386-nat.c: Ditto.
11628 * i386-nat.h: Ditto.
11629 * i386nbsd-tdep.c: Ditto.
11630 * i386-sol2-nat.c: Ditto.
11631 * i386-stub.c: Ditto.
11632 * i386-tdep.c: Ditto.
11633 * i386-tdep.h: Ditto.
11634 * i387-tdep.c: Ditto.
11635 * ia64-linux-nat.c: Ditto.
11636 * ia64-linux-tdep.c: Ditto.
11637 * ia64-tdep.c: Ditto.
11638 * infcall.c: Ditto.
11639 * infcall.h: Ditto.
11641 * inferior.c: Ditto.
11642 * inferior.h: Ditto.
11643 * infloop.c: Ditto.
11646 * interps.c: Ditto.
11647 * interps.h: Ditto.
11648 * iq2000-tdep.c: Ditto.
11649 * irix5-nat.c: Ditto.
11653 * jv-lang.c: Ditto.
11654 * jv-lang.h: Ditto.
11655 * jv-typeprint.c: Ditto.
11656 * jv-valprint.c: Ditto.
11657 * language.c: Ditto.
11658 * language.h: Ditto.
11659 * linespec.c: Ditto.
11660 * linux-fork.c: Ditto.
11661 * linux-nat.c: Ditto.
11662 * linux-thread-db.c: Ditto.
11663 * lm32-tdep.c: Ditto.
11665 2011-01-08 Michael Snyder <msnyder@vmware.com>
11667 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11668 * m2-lang.c: Ditto.
11669 * m2-typeprint.c: Ditto.
11670 * m2-valprint.c: Ditto.
11671 * m32c-tdep.c: Ditto.
11672 * m32r-linux-nat.c: Ditto.
11673 * m32r-rom.c: Ditto.
11674 * m32r-tdep.c: Ditto.
11675 * m32r-tdep.h: Ditto.
11676 * m68hc11-tdep.c: Ditto.
11677 * m58klinux-nat.c: Ditto.
11678 * m68k-tdep.c: Ditto.
11679 * m88k-tdep.c: Ditto.
11680 * m88k-tdep.h: Ditto.
11681 * machoread.c: Ditto.
11682 * macrocmd.c: Ditto.
11683 * macroexp.c: Ditto.
11684 * macrotab.c: Ditto.
11687 * mdebugread.c: Ditto.
11688 * mdebugread.h: Ditto.
11689 * memattr.c: Ditto.
11690 * memattr.h: Ditto.
11691 * memory-map.h: Ditto.
11692 * mep-tdep.c: Ditto.
11693 * microblaze-rom.c: Ditto.
11694 * microblaze-tdep.c: Ditto.
11695 * minsyms.c: Ditto.
11696 * mips-irix-tdep.c: Ditto.
11697 * mips-linux-nat.c: Ditto.
11698 * mips-linux-tdep.c: Ditto.
11699 * mips-linux-tdep.h: Ditto.
11700 * mipsnbsd-nat.c: Ditto.
11701 * mipsnbsd-tdep.c: Ditto.
11702 * mipsread.c: Ditto.
11703 * mips-tdep.c: Ditto.
11704 * mips-tdep.h: Ditto.
11705 * mn10300-linux-tdep.c: Ditto.
11706 * mn10300-tdep.c: Ditto.
11707 * mn10300-tdep.h: Ditto.
11708 * monitor.c: Ditto.
11709 * monitor.h: Ditto.
11710 * moxie-tdep.c: Ditto.
11711 * moxie-tdep.h: Ditto.
11712 * mt-tdep.c: Ditto.
11714 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11716 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11718 2011-01-08 Robert Millan <rmh@gnu.org>
11720 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11722 2011-01-07 Michael Snyder <msnyder@vmware.com>
11724 * charset.c (_initialize_charset): Fix typo in string.
11726 2011-01-07 Michael Snyder <msnyder@vmware.com>
11728 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11730 * tui/tui-layout.c (tui_set_layout_for_display_command):
11731 Split line so that operator goes to beginning of line.
11732 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11733 assignment out of if statement.
11735 2011-01-07 Michael Snyder <msnyder@vmware.com>
11737 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11738 * ada-lang.h: Ditto.
11739 * ada-tasks.c: Ditto.
11740 * ada-valprint.c: Ditto.
11741 * aix-threads.c: Ditto.
11742 * alpha-linux-nat.c: Ditto.
11743 * alpha-linux-tdep.c: Ditto.
11744 * alpha-mdebug-tdep.c: Ditto.
11745 * alpha-nat.c: Ditto.
11746 * alpha-osf1-tdep.c: Ditto.
11747 * alpha-tdep.c: Ditto.
11748 * alphabsd-nat.c: Ditto.
11749 * alphabsd-tdep.c: Ditto.
11750 * amd64-darwin-tdep.c: Ditto.
11751 * amd64-linux-nat.c: Ditto.
11752 * amd64-linux-tdep.c: Ditto.
11753 * amd64-sol2-tdep.c: Ditto.
11754 * amd64-tdep.c: Ditto.
11755 * amd64-fbsd-tdep.c: Ditto.
11756 * amd64-nbsd-tdep.c: Ditto.
11757 * amd64-obsd-tdep.c: Ditto.
11758 * amd64-linux-nat.c: Ditto.
11759 * amd64-linux-tdep.c: Ditto.
11760 * arm-tdep.c: Ditto.
11761 * arm-tdep.h: Ditto.
11762 * armnbsd-nat.c: Ditto.
11763 * avr-tdep.c: Ditto.
11764 * bfin-tdep.c: Ditto.
11765 * bsd-kvm.c: Ditto.
11766 * c-typeprintc: Ditto.
11767 * c-valprint.c: Ditto.
11768 * coff-pe-read.h: Ditto.
11769 * coffreead.c: Ditto.
11770 * cris-tdep.c: Ditto.
11772 * darwin-nat-info.c: Ditto.
11773 * darwin-nat.c: Ditto.
11774 * dbug-rom.c: Ditto.
11775 * dbxread.c: Ditto.
11778 * dec-thread.c: Ditto.
11780 * demangle.c: Ditto.
11781 * dicos-tdep.c: Ditto.
11782 * dictionary.c: Ditto.
11783 * dictionary.h: Ditto.
11784 * dink32-rom.c: Ditto.
11786 * doublest.c: Ditto.
11788 * dummy-frame.c: Ditto.
11789 * dwarf2-frame.c: Ditto.
11790 * dwarf2expr.c: Ditto.
11791 * dwarf2loc.c: Ditto.
11792 * dwarf2read.c: Ditto.
11793 * elfread.c: Ditto.
11794 * environ.c: Ditto.
11796 * event-top.h: Ditto.
11797 * exceptions.c: Ditto.
11798 * exceptions.h: Ditto.
11800 * expprint.c: Ditto.
11801 * expression.h: Ditto.
11805 * f-typeprint.c: Ditto.
11806 * f-valprint.c: Ditto.
11807 * fbsd-nat.c: Ditto.
11808 * findvar.c: Ditto.
11809 * fork-child.c: Ditto.
11812 * frv-linux-tdep.c: Ditto.
11813 * frv-tdep.c: Ditto.
11815 * gdb-stabs.h: Ditto.
11816 * gdb_assert.h: Ditto.
11817 * gdb_string.h: Ditto.
11818 * gdb_thread_db.h: Ditto.
11819 * gdb_wait.h: Ditto.
11820 * gdbarch.sh: Ditto.
11821 * gdbcore.h: Ditto.
11822 * gdbthread.h: Ditto.
11823 * gdbtypes.c: Ditto.
11824 * gdbtypes.h: Ditto.
11825 * gnu-nat.c: Ditto.
11826 * gnu-nat.h: Ditto.
11827 * gnu-v2-abi.c: Ditto.
11828 * gnu-v3-abi.c: Ditto.
11829 * go32-nat.c: Ditto.
11830 * gdbarch.c: Regenerate.
11831 * gdbarch.h: Regenerate.
11833 2011-01-07 Michael Snyder <msnyder@vmware.com>
11835 * ax-gdb.c: Adjust some long output strings.
11836 * breakpoint.c: Ditto.
11837 * charset.c: Ditto.
11839 * infcall.c: Ditto.
11841 * linux-nat.c: Ditto.
11842 * solib-pa64.c: Ditto.
11843 * solib-som.c: Ditto.
11845 2011-01-06 Tom Tromey <tromey@redhat.com>
11849 * python/python.c (GdbMethods): Add "newest_frame" method.
11850 * python/python-internal.h (gdbpy_newest_frame): Declare.
11851 * python/py-frame.c (gdbpy_newest_frame): New function.
11853 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11855 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11856 * jit.c (jit_debug): New variable.
11857 (show_jit_debug): New function.
11858 (struct target_buffer): Use ULONGEST.
11859 (bfd_open_from_target_memory): Likewise.
11860 (jit_register_code, jit_inferior_init): Add debug output.
11861 (_initialize_jit): Register "debug jit" command.
11863 2011-01-06 Tom Tromey <tromey@redhat.com>
11865 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11866 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11869 2011-01-06 Tom Tromey <tromey@redhat.com>
11871 * python/py-frame.c (frapy_block): Use get_frame_block.
11873 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11875 Do not stop on SIGPRIO signals by default
11876 * infrun.c (_initialize_infrun): Unset signal_stop and
11877 signal_print for TARGET_SIGNAL_PRIO.
11879 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11881 * ada-tasks.c: Fix style violation in comment.
11883 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11885 * linespec.c (decode_compound, find_method): Remove trailing \n
11886 at end of error string.
11887 * solib-irix.c (irix_current_sos): Likewise.
11888 * varobj.c (uninstall_variable): Likewise.
11890 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11892 * copyright.py: New script.
11893 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11894 Launch emacs without exec'ing. Call copyright.py afterwards.
11896 2011-01-05 Michael Snyder <msnyder@vmware.com>
11898 * addrmap.c: Shorten lines of >= 80 columns.
11899 * arch-utils.c: Ditto.
11900 * arch-utils.h: Ditto.
11902 * ax-general.c: Ditto.
11904 * blockframe.c: Ditto.
11905 * breakpoint.c: Ditto.
11906 * buildsym.c: Ditto.
11908 * c-typeprint.c: Ditto.
11909 * charset.c: Ditto.
11910 * coffread.c: Ditto.
11911 * command.h: Ditto.
11912 * corelow.c: Ditto.
11914 * cp-namespace.c: Ditto.
11915 * cp-support.c: Ditto.
11916 * dbug-rom.c: Ditto.
11917 * dbxread.c: Ditto.
11921 * dictionary.c: Ditto.
11923 * doublest.c: Ditto.
11924 * dwarf2-frame.c: Ditto.
11925 * dwarf2expr.c: Ditto.
11926 * dwarf2loc.c: Ditto.
11927 * dwarf2read.c: Ditto.
11928 * elfread.c: Ditto.
11930 * event-loop.c: Ditto.
11931 * event-loop.h: Ditto.
11932 * exceptions.h: Ditto.
11934 * expprint.c: Ditto.
11935 * expression.h: Ditto.
11937 * f-valprint.c: Ditto.
11938 * findcmd.c: Ditto.
11939 * frame-base.c: Ditto.
11940 * frame-unwind.c: Ditto.
11941 * frame-unwind.h: Ditto.
11945 * gdb-stabs.h: Ditto.
11946 * gdb_assert.h: Ditto.
11947 * gdb_dirent.h: Ditto.
11948 * gdb_obstack.h: Ditto.
11949 * gdbcore.h: Ditto.
11950 * gdbtypes.c: Ditto.
11951 * gdbtypes.h: Ditto.
11952 * inf-ttrace.c: Ditto.
11953 * infcall.c: Ditto.
11957 * inline-frame.h: Ditto.
11958 * language.c: Ditto.
11959 * language.h: Ditto.
11960 * libunwind-frame.c: Ditto.
11961 * libunwind-frame.h: Ditto.
11962 * linespec.c: Ditto.
11963 * linux-nat.c: Ditto.
11964 * linux-nat.h: Ditto.
11965 * linux-thread-db.c: Ditto.
11966 * machoread.c: Ditto.
11967 * macroexp.c: Ditto.
11968 * macrotab.c: Ditto.
11971 * mdebugread.c: Ditto.
11972 * memattr.c: Ditto.
11973 * minsyms.c: Ditto.
11974 * monitor.c: Ditto.
11975 * monitor.h: Ditto.
11976 * objfiles.c: Ditto.
11977 * objfiles.h: Ditto.
11979 * p-typeprint.c: Ditto.
11980 * p-valprint.c: Ditto.
11982 * printcmd.c: Ditto.
11983 * proc-events.c: Ditto.
11985 * progspace.c: Ditto.
11986 * progspace.h: Ditto.
11987 * psympriv.h: Ditto.
11988 * psymtab.c: Ditto.
11990 * regcache.c: Ditto.
11991 * regcache.h: Ditto.
11992 * remote-fileio.c: Ditto.
11994 * ser-mingw.c: Ditto.
11995 * ser-tcp.c: Ditto.
11996 * ser-unix.c: Ditto.
11999 * solib-frv.c: Ditto.
12000 * solib-irix.c: Ditto.
12001 * solib-osf.c: Ditto.
12002 * solib-pa64.c: Ditto.
12003 * solib-som.c: Ditto.
12004 * solib-sunos.c: Ditto.
12005 * solib-svr4.c: Ditto.
12006 * solib-target.c: Ditto.
12008 * somread.c: Ditto.
12010 * stabsread.c: Ditto.
12011 * stabsread.c: Ditto.
12014 * symfile-mem.c: Ditto.
12015 * symfile.c: Ditto.
12016 * symfile.h: Ditto.
12017 * symmisc.c: Ditto.
12020 * target-descriptions.c: Ditto.
12021 * target-memory.c: Ditto.
12024 * terminal.h: Ditto.
12027 * tracepoint.c: Ditto.
12028 * tracepoint.h: Ditto.
12029 * ui-file.c: Ditto.
12030 * ui-file.h: Ditto.
12032 * user-regs.c: Ditto.
12033 * user-regs.h: Ditto.
12035 * valarith.c: Ditto.
12037 * valprint.c: Ditto.
12038 * valprint.h: Ditto.
12043 * xcoffread.c: Ditto.
12044 * xcoffsolib.c: Ditto.
12045 * xcoffsolib.h: Ditto.
12046 * xml-syscall.c: Ditto.
12047 * xml-tdesc.c: Ditto.
12049 2011-01-05 Michael Snyder <msnyder@vmware.com>
12051 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12052 * cli/cli-decode.c: Ditto.
12053 * cli/cli-dump.c: Ditto.
12054 * cli/cli-logging.c: Ditto.
12055 * cli/cli-script.c: Ditto.
12056 * cli/cli-setshow.c: Ditto.
12057 * common/signals.c: Ditto.
12058 * mi/mi-cmd-break.c: Ditto.
12059 * mi/mi-cmd-disas.c: Ditto.
12060 * mi/mi-cmd-stack.c: Ditto.
12061 * mi/mi-cmd-var.c: Ditto.
12062 * mi/mi-cmds.c: Ditto.
12063 * mi/mi-common.h: Ditto.
12064 * mi/mi-console.c: Ditto.
12065 * mi/mi-interp.c: Ditto.
12066 * mi/mi-main.c: Ditto.
12067 * osf-share/cma_attr.c: Ditto.
12068 * osf-share/cma_deb_core.h: Ditto.
12069 * osf-share/cma_debug_client.h: Ditto.
12070 * osf-share/cma_handle.h: Ditto.
12071 * osf-share/cma_mutex.h: Ditto.
12072 * osf-share/cma_stack_int.h: Ditto.
12073 * osf-share/cma_tcb_defs.h: Ditto.
12074 * python/py-auto-load.c: Ditto.
12075 * python/py-breakpoint.c: Ditto.
12076 * python/py-cmd.c: Ditto.
12077 * python/py-frame.c: Ditto.
12078 * python/py-objfile.c: Ditto.
12079 * python/py-param.c: Ditto.
12080 * python/py-progspace.c: Ditto.
12081 * python/py-symbol.c: Ditto.
12082 * python/py-value.c: Ditto.
12083 * python/python-internal.h: Ditto.
12084 * python/python.c: Ditto.
12085 * tui/tui-data.c: Ditto.
12086 * tui/tui-disasm.c: Ditto.
12087 * tui/tui-hooks.c: Ditto.
12088 * tui/tui-io.c: Ditto.
12089 * tui/tui-layout.c: Ditto.
12090 * tui/tui-regs.c: Ditto.
12091 * tui/tui-source.c: Ditto.
12092 * tui/tui-stack.c: Ditto.
12093 * tui/tui-win.c: Ditto.
12094 * tui/tui-windata.c: Ditto.
12095 * tui/tui-winsource.c: Ditto.
12097 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12099 * configure.ac, gdb.1: Copyright year update.
12101 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12103 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12104 this_pc_in_block, morestack_msym and morestack_name. Check for
12105 "__morestack" minimal symbol there.
12107 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12109 * symfile.c (find_sym_fns): Add call to dont_repeat.
12111 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12113 Copyright year update in most files (performed by copyright.sh).
12115 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12117 * top.c (print_gdb_version): Update copyright year in version output.
12119 For older changes see ChangeLog-2010.
12125 version-control: never