1 2011-12-13 Joel Brobecker <brobecker@adacore.com>
3 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
4 * version.in: Bump version to 7.4.50.20111213-cvs.
6 2011-12-11 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.c (ada_exception_support_info_sniffer): Improve
11 2011-12-11 Joel Brobecker <brobecker@adacore.com>
13 * ada-lang.c (struct ada_inferior_data) [exception_info]:
15 (exception_info): Delete.
16 (ada_exception_support_info_sniffer): Get exception_support_info
17 data from our per-inferior data. Adjust code accordingly.
18 (ada_unhandled_exception_name_addr_from_raise): Likewise.
19 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
20 (ada_executable_changed_observer): Delete.
21 (_initialize_ada_language): Remove call to
22 observer_attach_executable_changed.
24 2011-12-11 Joel Brobecker <brobecker@adacore.com>
26 * ada-lang.c (ada_has_this_exception_support): Raise an error
27 if we could find the Ada exception hook in the Ada runtime,
28 but no debugging info for that hook.
30 2011-12-11 Joel Brobecker <brobecker@adacore.com>
32 * ada-lang.c (ada_has_this_exception_support): New function,
33 extracted out of ada_exception_sal and ada_exception_sal.
34 (ada_exception_support_info_sniffer): Simplify by using
35 ada_has_this_exception_support.
36 (ada_exception_sal): Replace unnecessary checks by assertions.
37 Minor simplifications.
39 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
41 * breakpoint.c (update_global_location_list): Remove nested
42 definition of `b'(-Wshadow).
44 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
46 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
47 `error_flag'(-Wshadow).
49 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
51 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
54 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
56 * annotate.c (annotate_array_section_begin): Rename `index' to
59 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
61 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
64 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
66 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
67 `syscall' to `syscall_number'(-Wshadow).
69 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
71 * ada-lang.c (remove_extra_symbols): Rename `remove' to
74 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
76 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
79 2011-12-10 Doug Evans <dje@google.com>
81 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
82 debug_types_section. All uses updated.
83 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
84 to is_debug_types_section.
86 * python/py-auto-load.c (source_section_scripts): Call xfree
89 2011-12-10 Hui Zhu <teawater@gmail.com>
90 Yao Qi <yao@codesourcery.com>
92 * tracepoint.c (start_tracing): Clear `inserted' flag.
94 2011-12-10 Hui Zhu <teawater@gmail.com>
96 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
98 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
100 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
103 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
105 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
106 `marker' variables to `sal2' and `tpmarker' respectively
109 2011-12-09 Andrew Pinski <apinski@cavium.com>
111 * linespec.c (hash_address_entry): Use iterative_hash_object on each
112 field rather than the struct itself.
114 2011-12-09 Tom Tromey <tromey@redhat.com>
116 * breakpoint.c (compare_breakpoints): New function.
117 (clear_command): Remove duplicate breakpoints. Properly clean
120 2011-12-08 Maciej W. Rozycki <macro@mips.com>
121 Maciej W. Rozycki <macro@codesourcery.com>
123 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
124 address chunks retrieved from decoded lui/addiu pairs.
126 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
128 * mips-tdep.c (extended_offset): Correct calculation.
129 (unpack_mips16): Correct bitfield positions used for extraction
130 of the immediate argument; fix sign-extension of same.
131 (extended_mips16_next_pc): Correct B instruction's offset
132 calculation. Correct register decoding of the BEQZ and BNEZ
133 as well as jump-register instructions. Handle compact jumps.
135 2011-12-08 Tom Tromey <tromey@redhat.com>
137 * objfiles.h (struct objfile): Remove obsolete comment.
138 * objfiles.c (build_objfile_section_table): Remove obsolete
141 2011-12-07 Stan Shebs <stan@codesourcery.com>
143 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
144 maintainer of the tic6x target.
146 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
148 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
149 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
150 (arm_deal_with_atomic_sequence_raw): Likewise.
151 (arm_deal_with_atomic_sequence): Likewise.
152 (arm_software_single_step): Call it.
153 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
155 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
157 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
159 * s390-tdep.h: Likewise.
161 2011-12-07 Tristan Gingold <gingold@adacore.com>
163 * machoread.c (macho_symtab_read): Do not consider N_OPT as
164 a debugging stab. Improve complaint message.
166 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
168 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
169 load adjustment if still within the prologue.
171 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
173 * mips-tdep.c (mips32_next_pc): Fix floating point condition
176 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
178 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
179 of BLTZ* and BGEZ* instructions.
181 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
183 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
184 performed to determine whether an address refers to standard
186 (mips16_next_pc): Use mips_pc_is_mips16 instead of
189 2011-12-06 Pedro Alves <pedro@codesourcery.com>
191 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
192 (breakpoint_xfer_memory): ... this. Change prototype. Handle
194 * breakpoint.h (breakpoint_restore_shadows): Delete.
195 (breakpoint_xfer_memory): Declare.
196 * mem-break.c (default_memory_insert_breakpoint)
197 (default_memory_remove_breakpoint): Use target_write_raw_memory.
198 (memory_xfer_partial): Rename to ...
199 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
201 (memory_xfer_partial): New.
202 (target_write_raw_memory): New.
203 * target.h (target_write_raw_memory): New.
205 2011-12-06 Doug Evans <dje@google.com>
207 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
209 2011-12-06 Joel Brobecker <brobecker@acacore.com>
211 * language.h (struct language_defn): Add new component
212 la_symbol_name_compare.
213 * symfile.h (struct quick_symbol_functions): Update the profile
214 of parameter "name_matcher" for the expand_symtabs_matching
215 method. Update the documentation accordingly.
216 * ada-lang.h (ada_name_for_lookup): Add declaration.
217 * ada-lang.c (ada_name_for_lookup): New function, extracted out
218 from ada_iterate_over_symbols.
219 (ada_iterate_over_symbols): Do not encode symbol name anymore.
220 (ada_expand_partial_symbol_name): Adjust profile.
221 (ada_language_defn): Add value for la_symbol_name_compare field.
222 * linespec.c: #include "ada-lang.h".
223 (iterate_name_matcher): Add language parameter. Replace call
224 to strcmp_iw by call to language->la_symbol_name_compare.
225 (decode_variable): Encode COPY if current language is Ada.
226 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
227 of name_matcher parameter. Adjust call to name_matcher.
228 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
229 (expand_partial_symbol_names): Update profile of parameter "fun".
230 * psymtab.h (expand_partial_symbol_names): Update profile of
232 * symtab.c (demangle_for_lookup): Update function documentation.
233 (search_symbols_name_matches): Add language parameter.
234 (expand_partial_symbol_name): Likewise.
235 * c-lang.c (c_language_defn, cplus_language_defn)
236 (asm_language_defn, minimal_language_defn): Add value for
237 la_symbol_name_compare field.
238 * d-lang.c (d_language_defn): Likewise.
239 * f-lang.c (f_language_defn): Ditto.
240 * jv-lang.c (java_language_defn): Ditto.
241 * m2-lang.c (m2_language_defn): Ditto.
242 * objc-lang.c (objc_language_defn): Ditto.
243 * opencl-lang.c (opencl_language_defn): Ditto.
244 * p-lang.c (pascal_language_defn): Ditto.
245 * language.c (unknown_language_defn, auto_language_defn)
246 (local_language_defn): Ditto.
248 2011-12-06 Tom Tromey <tromey@redhat.com>
250 * linespec.c (iterate_over_all_matching_symtabs): Use
251 LA_ITERATE_OVER_SYMBOLS.
252 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
253 (find_function_symbols, decode_variable): Remove Ada special
255 * language.h (struct language_defn) <la_iterate_over_symbols>: New
257 (LA_ITERATE_OVER_SYMBOLS): New macro.
258 * language.c (unknown_language_defn, auto_language_defn)
259 (local_language_defn): Update.
260 * c-lang.c (c_language_defn, cplus_language_defn)
261 (asm_language_defn, minimal_language_defn): Update.
262 * d-lang.c (d_language_defn): Update.
263 * f-lang.c (f_language_defn): Update.
264 * jv-lang.c (java_language_defn): Update.
265 * m2-lang.c (m2_language_defn): Update.
266 * objc-lang.c (objc_language_defn): Update.
267 * opencl-lang.c (opencl_language_defn): Update.
268 * p-lang.c (pascal_language_defn): Update.
269 * ada-lang.c (ada_iterate_over_symbols): New function.
270 (ada_language_defn): Update.
272 2011-12-06 Tom Tromey <tromey@redhat.com>
273 Joel Brobecker <brobecker@acacore.com>
275 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
276 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
277 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
278 PR shlibs/8929, PR shlibs/7393:
279 * python/py-type.c (compare_maybe_null_strings): Rename from
281 (check_types_equal): Update.
282 * utils.c (compare_strings): New function.
283 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
285 * tracepoint.c (scope_info): Update.
286 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
287 * symtab.h (iterate_over_minimal_symbols)
288 (iterate_over_some_symtabs, iterate_over_symtabs)
289 (find_pcs_for_symtab_line, iterate_over_symbols)
290 (demangle_for_lookup): Declare.
291 (expand_line_sal): Remove.
292 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
293 (lookup_symtab_callback): New functions.
294 (lookup_symtab): Rewrite.
295 (demangle_for_lookup): New function, extract from
296 lookup_symbol_in_language.
297 (lookup_symbol_in_language): Use it.
298 (iterate_over_symbols): New function.
299 (find_line_symtab): Update.
300 (find_pcs_for_symtab_line): New functions.
301 (find_line_common): Add 'start' argument.
302 (decode_line_spec): Update. Change argument to 'flags', change
304 (append_expanded_sal): Remove.
305 (append_exact_match_to_sals): Remove.
306 (expand_line_sal): Remove.
307 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
309 <map_symtabs_matching_filename>: New field.
310 * stack.c (func_command): Only look in the current program space.
311 Use DECODE_LINE_FUNFIRSTLINE.
312 * source.c (line_info): Set pspace on sal. Check program space in
313 the loop. Use DECODE_LINE_LIST_MODE.
314 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
315 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
316 * python/python.c (gdbpy_decode_line): Update.
317 * psymtab.c (partial_map_expand_apply): New function.
318 (partial_map_symtabs_matching_filename): Rename from
319 lookup_partial_symbol. Update arguments.
320 (lookup_symtab_via_partial_symtab): Remove.
321 (psym_functions): Update.
322 * objc-lang.h (parse_selector, parse_method): Don't declare.
324 * objc-lang.c (parse_selector, parse_method): Now static.
325 (find_methods): Change arguments. Fill in a vector of symbol
327 (uniquify_strings): New function.
328 (find_imps): Change arguments.
329 * minsyms.c (iterate_over_minimal_symbols): New function.
330 * linespec.h (enum decode_line_flags): New.
331 (struct linespec_sals): New.
332 (struct linespec_result) <canonical>: Remove.
333 <pre_expanded, addr_string, sals>: New fields.
334 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
335 (decode_line_full): Declare.
336 (decode_line_1): Update.
337 * linespec.c (struct address_entry, struct linespec_state, struct
338 collect_info): New types.
339 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
340 (eq_address_entry, maybe_add_address): New functions.
341 (total_number_of_methods): Remove.
342 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
344 (find_methods): Change arguments. Don't canonicalize input.
346 (add_matching_methods, add_constructors)
347 (build_canonical_line_spec): Remove.
348 (filter_results, convert_results_to_lsals): New functions.
349 (decode_line_2): Change arguments. Rewrite for new data
351 (decode_line_internal): Rename from decode_line_1. Change
352 arguments. Add cleanups. Update for new data structures.
353 (linespec_state_constructor, linespec_state_destructor)
354 (decode_line_full, decode_line_1): New functions.
355 (decode_indirect): Change arguments. Update.
356 (locate_first_half): Use skip_spaces.
357 (decode_objc): Change arguments. Update for new data structures.
359 (decode_compound): Change arguments. Add cleanups. Remove
360 fallback code, replace with error.
361 (struct decode_compound_collector): New type.
362 (collect_one_symbol): New function.
363 (lookup_prefix_sym): Change arguments. Update.
364 (compare_symbol_name, add_all_symbol_names_from_pspace)
365 (find_superclass_methods ): New functions.
366 (find_method): Rewrite.
367 (struct symtab_collector): New type.
368 (add_symtabs_to_list, collect_symtabs_from_filename): New
370 (symtabs_from_filename): Change API. Rename from
371 symtab_from_filename.
372 (collect_function_symbols): New function.
373 (find_function_symbols): Change API. Rename from
374 find_function_symbol. Rewrite.
375 (decode_all_digits): Change arguments. Rewrite.
376 (decode_dollar): Change arguments. Use decode_variable.
377 (decode_label): Change arguments. Rewrite.
378 (collect_symbols): New function.
379 (minsym_found): Change arguments. Rewrite.
380 (check_minsym, search_minsyms_for_name)
381 (add_matching_symbols_to_info): New function.
382 (decode_variable): Change arguments. Iterate over all symbols.
383 (symbol_found): Remove.
384 (symbol_to_sal): New function.
385 (init_linespec_result, destroy_linespec_result)
386 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
388 (decode_digits_list_mode, decode_digits_ordinary): New functions.
389 * dwarf2read.c (dw2_map_expand_apply): New function.
390 (dw2_map_symtabs_matching_filename): Rename from
391 dw2_lookup_symtab. Change arguments.
392 (dwarf2_gdb_index_functions): Update.
393 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
394 * defs.h (compare_strings): Declare.
395 * cli/cli-cmds.c (compare_strings): Move to utils.c.
396 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
398 (compare_symtabs, filter_sals): New functions.
399 * breakpoint.h (struct bp_location) <line_number, source_file>:
401 (struct breakpoint) <line_number, source_file>: Remove.
403 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
404 (momentary_breakpoint_from_master, add_location_to_breakpoint):
405 Update for changes to locations.
406 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
408 (create_breakpoint_sal): Add 'filter' argument.
409 (remove_sal, expand_line_sal_maybe): Remove.
410 (create_breakpoints_sal): Remove 'sals' argument. Handle
411 pre-expanded sals and the filter.
412 (parse_breakpoint_sals): Use decode_line_full.
413 (check_fast_tracepoint_sals): Use get_sal_arch.
414 (create_breakpoint): Create a linespec_sals. Update.
415 (break_range_command): Use decode_line_full. Update.
416 (until_break_command): Update.
417 (clear_command): Update match conditions for linespec.c changes.
418 Use DECODE_LINE_LIST_MODE.
419 (say_where): Update for changes to locations.
420 (bp_location_dtor): Free 'source_file'.
421 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
422 (update_static_tracepoint): Update for changes to locations.
423 (update_breakpoint_locations): Disable ranged breakpoint if too
424 many locations match. Update.
425 (addr_string_to_sals): Use decode_line_full. Resolve all sal
427 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
428 (decode_line_spec_1): Update. Change argument name to 'flags',
429 change interpretation.
430 * block.h (block_containing_function): Declare.
431 * block.c (block_containing_function): New function.
432 * skip.c (skip_function_command): Update.
433 (skip_re_set): Update.
434 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
435 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
438 2011-12-06 Tom Tromey <tromey@redhat.com>
440 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
441 breakpoint's pspace to be NULL.
442 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
443 * breakpoint.c (init_raw_breakpoint): Conditionally set
445 (init_breakpoint_sal): Don't set breakpoint's pspace.
446 (prepare_re_set_context): Conditionally switch program space.
447 (addr_string_to_sals): Check executing_startup on location's
450 2011-12-06 Tom Tromey <tromey@redhat.com>
452 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
453 * breakpoint.c (should_be_inserted): Explicitly check if program
454 space is executing startup.
455 (describe_other_breakpoints): Update.
456 (disable_breakpoints_before_startup): Change executing_startup
457 earlier. Remove loop.
458 (enable_breakpoints_after_startup): Likewise.
459 (init_breakpoint_sal): Don't use bp_startup_disabled.
460 (create_breakpoint): Don't use bp_startup_disabled.
461 (update_global_location_list): Use should_be_inserted.
462 (bkpt_re_set): Update.
464 2011-12-06 Tom Tromey <tromey@redhat.com>
466 * python/lib/gdb/command/pretty_printers.py
467 (InfoPrettyPrinter.invoke1): Remove extra double quote.
469 2011-12-06 Tom Tromey <tromey@redhat.com>
473 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
475 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
476 (S390_LAST_BREAK_REGNUM): Likewise.
477 (S390_SYSTEM_CALL_REGNUM): Likewise.
478 (S390_NUM_REGS): Update.
480 (s390_regmap_last_break): Add declaration.
481 (s390x_regmap_last_break): Likewise.
482 (s390_regmap_system_call): Likewise.
484 (tdesc_s390_linux32v1): Add declaration.
485 (tdesc_s390_linux32v2): Likewise.
486 (tdesc_s390_linux64v1): Likewise.
487 (tdesc_s390_linux64v2): Likewise.
488 (tdesc_s390x_linux64v1): Likewise.
489 (tdesc_s390x_linux64v2): Likewise.
491 * s390-tdep.c: Include new target description files
492 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
493 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
494 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
495 (s390_cannot_store_register): New function.
496 (s390_write_pc): Likewise.
497 (s390_dwarf_regmap): Add fields for new registers.
498 (s390_regmap_gregset): Likewise.
499 (s390x_regmap_gregset): Likewise.
500 (s390_regmap_fpregset): Likewise.
501 (s390_regmap_upper): Likewise.
502 (s390_regmap_last_break): New variable.
503 (s390x_regmap_last_break): Likewise.
504 (s390_regmap_system_call): Likewise.
505 (s390_last_break_regset): Likewise.
506 (s390x_last_break_regset): Likewise.
507 (s390_system_call_regset): Likewise.
508 (s390_upper_regset_sections): Rename to ...
509 (s390_linux64_regset_sections): ... this.
510 (s390_linux32_regset_sections): New variable.
511 (s390x_linux64_regset_sections): Likewise.
512 (s390_linux32v1_regset_sections): Likewise.
513 (s390_linux32v2_regset_sections): Likewise.
514 (s390_linux64v1_regset_sections): Likewise.
515 (s390_linux64v2_regset_sections): Likewise.
516 (s390x_linux64v1_regset_sections): Likewise.
517 (s390x_linux64v2_regset_sections): Likewise.
518 (s390_regset_from_core_section): Handle .reg-s390-last-break and
519 .reg-s390-system-call core file sections.
520 (s390_core_read_description): Check for presence of
521 .reg-s390-last-break and .reg-s390-system-call core file
522 sections and return appropriate target description.
523 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
524 "last_break" and "system_call" in target description. Install
525 appropriate gdbarch_core_regset_sections array.
526 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
527 (_initialize_s390_tdep): Initialize additional target descriptions.
529 * s390-nat.c: Include "elf/common.h".
530 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
531 (have_regset_last_break): New static variable.
532 (have_regset_system_call): Likewise.
533 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
534 (s390_native_collect): Likewise.
535 (fetch_regset, store_regset, check_regset): New functions.
536 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
537 and S390_SYSTEM_CALL_REGNUM.
538 (s390_linux_store_inferior_registers): Likewise.
539 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
540 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
542 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
543 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
544 (s390-linux32v1-expedite): Define.
545 (s390-linux32v2-expedite): Likewise.
546 (s390-linux64v1-expedite): Likewise.
547 (s390-linux64v2-expedite): Likewise.
548 (s390x-linux64v1-expedite): Likewise.
549 (s390x-linux64v2-expedite): Likewise.
551 * features/s390-linux32.xml: Add orig_r2 register.
552 * features/s390-linux64.xml: Likewise.
553 * features/s390x-linux64.xml: Likewise.
554 * features/s390-linux32v1.xml: New file.
555 * features/s390-linux32v2.xml: Likewise.
556 * features/s390-linux64v1.xml: Likewise.
557 * features/s390-linux64v2.xml: Likewise.
558 * features/s390x-linux64v1.xml: Likewise.
559 * features/s390x-linux64v2.xml: Likewise.
561 * features/s390-linux32.c: Regenerate.
562 * features/s390-linux64.c: Likewise.
563 * features/s390x-linux64.c: Likewise.
564 * features/s390-linux32v1.c: New generated file.
565 * features/s390-linux32v2.c: Likewise.
566 * features/s390-linux64v1.c: Likewise.
567 * features/s390-linux64v2.c: Likewise.
568 * features/s390x-linux64v1.c: Likewise.
569 * features/s390x-linux64v2.c: Likewise.
571 * regformats/s390-linux32.dat: Regenerate.
572 * regformats/s390-linux64.dat: Regenerate.
573 * regformats/s390x-linux64.dat: Regenerate.
574 * regformats/s390-linux32v1.dat: New generated file.
575 * regformats/s390-linux32v2.dat: Likewise.
576 * regformats/s390-linux64v1.dat: Likewise.
577 * regformats/s390-linux64v2.dat: Likewise.
578 * regformats/s390x-linux64v1.dat: Likewise.
579 * regformats/s390x-linux64v2.dat: Likewise.
581 2011-12-05 Pedro Alves <pedro@codesourcery.com>
583 * linux-nat.c (resume_stopped_resumed_lwps): Call
586 2011-12-05 Pedro Alves <pedro@codesourcery.com>
588 * breakpoint.c: Include record.h.
589 (breakpoints_always_inserted_mode): Return false when the record
592 2011-12-05 Pedro Alves <pedro@codesourcery.com>
594 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
595 Reinstate perror_with_name call on ptrace error. Remove #if 0.
596 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
597 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
599 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
601 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
604 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
606 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
608 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
610 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
613 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
615 Fix compilation --without-expat.
616 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
618 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
620 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
621 Jan Kratochvil <jan.kratochvil@redhat.com>
623 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
624 * features/library-list-svr4.dtd: New file.
625 * remote.c (PACKET_qXfer_libraries_svr4): New.
626 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
627 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
628 * solib-svr4.c (struct svr4_library_list): New.
629 [HAVE_LIBEXPAT]: Include xml-support.h.
630 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
631 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
632 [HAVE_LIBEXPAT] (svr4_library_list_children)
633 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
634 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
635 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
636 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
637 (svr4_read_so_list): Extend the corruption message by addresses.
638 (svr4_current_sos): New variable library_list, call
639 svr4_current_sos_via_xfer_libraries.
640 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
642 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
646 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
648 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
651 * dwarf2read.c (process_psymtab_comp_unit): Set
652 PSYMTABS_ADDRMAP_SUPPORTED.
653 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
654 validity. New field psymtabs_addrmap_supported.
655 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
656 psymtabs_addrmap_supported.
657 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
658 !PSYMTABS_ADDRMAP_SUPPORTED.
659 (dump_psymtab, maintenance_info_psymtabs): Print also
660 psymtabs_addrmap_supported.
662 2011-12-01 Doug Evans <dje@google.com>
664 * python/py-type.c (type_object_methods): Fix "array" doc string.
666 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
668 * source.c (print_source_lines_base): Fix missing braces on else
669 clause leading to additional output.
671 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
673 * s390-nat.c (SUBOFF): Remove.
674 (s390_native_supply, s390_native_collect): New functions.
675 (supply_gregset, supply_fpregset): Use s390_native_supply.
676 (fill_gregset, fill_fpregset): Use s390_native_collect.
678 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
679 (s390_unwind_pseudo_register): New function.
680 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
681 registers instead of PC and CC.
682 (s390_backchain_frame_unwind_cache): Likewise.
683 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
685 (s390_trad_frame_prev_register): New function.
686 (s390_frame_prev_register): Use it.
687 (s390_sigtramp_frame_prev_register): Likewise.
688 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
689 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
690 special callback to unwind any pseudo.
692 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
693 * features/s390-core64.xml: Likewise.
694 * features/s390x-core64.xml: Likewise.
695 * features/s390-linux32.c: Regenerate.
696 * features/s390-linux64.c: Likewise.
697 * features/s390x-linux64.c: Likewise.
699 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
701 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
703 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
705 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
706 instruction. Add more diagnostic output.
708 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
710 * MAINTAINERS (Write After Approval): Add myself to the list.
712 2011-11-29 Sanjoy Das <sdas@igalia.com>
714 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
715 (jit_bfd_try_read_symtab): Fix comments.
717 2011-11-28 DJ Delorie <dj@redhat.com>
719 * NEWS: Mention RL78 simulator.
721 2011-11-28 Joel Brobecker <brobecker@adacore.com>
723 * symfile.h (struct quick_symbol_functions): Fix the documentation
724 of field map_matching_symbols, as symbols are sorted using
725 strcmp_iw_ordered, not strcmp_iw.
727 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
729 * symfile.h (struct quick_symbol_functions): Update the
730 documentation for field map_matching_symbols.
732 2011-11-28 Joel Brobecker <brobecker@adacore.com>
734 * ada-lang.c (compare_names): Fix wrong return value in case
735 string1 starts with the same contents as string2, followed
736 by an underscore that do not start a symbol name suffix.
738 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
743 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
744 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
745 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
747 * python/py-type.c (typy_strip_typedefs): Ditto.
748 (typy_legacy_template_argument): Ditto.
749 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
750 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
752 2011-11-27 Joel Brobecker <brobecker@acacore.com>
754 * remote.c (remote_get_tracepoint_status): Delete addrbuf
755 local variable. Avoid use of sprintf_vma.
757 2011-11-27 Sanjoy Das <sdas@igalia.com>
759 Fix regression in jit.exp.
760 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
761 (jit_register_code): Set the jit_objfile_data field to the correct
764 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
766 * alpha-tdep.c (br_opcode): New.
767 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
768 (alpha_deal_with_atomic_sequence): New function.
769 (alpha_gdbarch_init): Handle single stepping of atomic sequences
770 with alpha_deal_with_atomic_sequence.
772 2011-11-24 Tristan Gingold <gingold@adacore.com>
774 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
775 fields. Add oso_sym, end_sym and nbr_syms.
776 (macho_register_oso): Change interface.
777 (macho_symtab_add_minsym): New function.
778 (macho_symtab_read): Rewritten.
779 (get_archive_prefix_len): Remove trailing blanks.
780 (oso_el_compare_name): Add comment.
781 (struct macho_sym_hash_entry): New structure.
782 (macho_relocate_common_syms): Remove.
783 (macho_sym_hash_newfunc): New function.
784 (macho_resolve_oso_sym_with_minsym): Likewise.
785 (macho_add_oso_symfile): Rewritten.
786 (macho_symfile_read_all_oso): Remove trailing blanks.
787 Adjust code to free oso vector.
788 (macho_symfile_read): Likewise.
789 Move code to initialize minimal symbol
791 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
793 * mips-tdep.c (extended_offset): Fix formatting.
795 2011-11-23 Doug Evans <dje@google.com>
797 * dwarf2read.c (dw2_lookup_symtab): Add comment.
798 (dw2_expand_symtabs_with_filename): Ditto.
799 (dw2_expand_symtabs_matching): Ditto.
800 (dw2_map_symbol_filenames): Ditto.
802 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
804 * ada-lang.c (assign_aggregate): Minor reformatting.
806 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
808 * ada-lang.c (assign_aggregate): Remove declaration of local
809 variable `i' which is shadowing another variable with the same
810 name declared in the outer scope.
812 2011-11-23 Joel Brobecker <brobecker@adacore.com>
814 * ada-lang.c (get_base_type): Renames base_type. Adjust all
815 calls throughout this file.
817 2011-11-23 Joel Brobecker <brobecker@adacore.com>
819 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
822 2011-11-22 Tom Tromey <tromey@redhat.com>
825 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
826 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
827 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
828 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
829 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
830 (print_it_catch_syscall, print_it_catch_exec)
831 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
832 (bpstat_print): Add 'kind' argument. Handle
833 TARGET_WAITKIND_LOADED.
834 * infrun.c (normal_stop): Update for bpstat_print change. Don't
835 handle TARGET_WAITKIND_LOADED here.
836 * breakpoint.h (bpstat_print): Update.
838 2011-11-22 Tom Tromey <tromey@redhat.com>
840 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
842 2011-11-22 Tom Tromey <tromey@redhat.com>
844 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
845 Use static_assert to check the size of
846 async_reason_string_lookup.
847 * common/gdb_assert.h (static_assert): New macro.
849 2011-11-22 Alan Modra <amodra@gmail.com>
851 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
852 destination calculation. Don't expect >> to sign extend. Don't
853 add a break if branch lands inside the sequence anywhere.
855 2011-11-21 Keith Seitz <keiths@redhat.com>
857 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
858 -var-evaluate-expression of an enumeration and fix expected result.
859 * gdb.mi/mi2-varvdisplay.exp: Likewise.
861 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
863 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
864 the case where osdata->items is empty. Rename column names to a
865 canonical form to avoid problems with unusual column names.
867 2011-11-21 Yao Qi <yao@codesourcery.com>
869 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
871 2011-11-20 Stan Shebs <stan@codesourcery.com>
873 * NEWS: Mention tracepoint additions.
874 * breakpoint.h (struct tracepoint): New field traceframe_usage.
875 * breakpoint.c (print_one_breakpoint_location): Identify
876 tracepoints as such when reporting hit counts, report
878 (create_tracepoint_from_upload): Copy status info.
879 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
880 add fields user_name, notes, start_time, stop_time.
881 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
882 * tracepoint.c (trace_user): New global.
883 (trace_notes): New global.
884 (trace_stop_notes): New global.
885 (start_tracing): Add argument and trace note handling.
886 (stop_tracing): Ditto.
887 (trace_start_command): Add notes argument.
888 (trace_stop_command): Ditto.
889 (trace_status_command): Report additional status info.
890 (trace_status_mi): Similarly.
891 (trace_save): Update, record tracepoint status.
892 (set_disconnected_tracing): Call target method directly.
893 (send_disconnected_tracing_value): Remove.
894 (set_trace_user): New function.
895 (set_trace_notes): New function.
896 (set_trace_stop_notes): New function.
897 (parse_trace_status): Handle additional status.
898 (parse_tracepoint_status): New function.
899 (parse_tracepoint_definition): Call it.
900 (tfile_get_tracepoint_status): New function.
901 (init_tfile_ops): Use it.
902 (_initialize_tracepoint): Add new setshows.
903 * target.h (struct target_ops): New methods to_get_tracepoint_status
904 and to_set_trace_notes.
905 (target_get_tracepoint_status): New macro.
906 (target_set_trace_notes): New macro.
907 * target.c (update_current_target): Add new methods.
908 * remote.c (remote_get_tracepoint_status): New function.
909 (remote_set_trace_notes): New function.
910 (init_remote_ops): Add them.
911 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
912 (mi_cmd_trace_stop): Ditto.
914 2011-11-20 Sanjoy Das <sdas@igalia.com>
916 * jit.c: Include regcache.h.
917 (jit_gdbarch_data, jit_frame_unwind): New static variables.
918 (jit_unwind_reg_set_impl, free_reg_value_impl)
919 (jit_unwind_reg_get_impl, jit_frame_sniffer)
920 (jit_frame_unwind_stop_reason, jit_frame_this_id)
921 (jit_frame_prev_register, jit_dealloc_cache)
922 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
923 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
924 jit_prepend_unwinder.
925 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
927 2011-11-20 Sanjoy Das <sdas@igalia.com>
929 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
930 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
931 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
932 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
933 (finalize_symtab, jit_object_close_impl)
934 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
935 (free_objfile_data): New functions.
936 (_initialize_jit): Register jit_objfile_data with a proper cleanup
939 2011-11-20 Sanjoy Das <sdas@igalia.com>
941 * jit.c: Include gdb-dlfcn.h.
942 (loaded_jit_reader, reader_init_fn_sym): New static variables.
943 (jit_reader_load, jit_reader_load_command)
944 (jit_reader_unload_command): New functions.
945 (_initialize_jit): Add commands "jit-reader-load" and
948 2011-11-20 Sanjoy Das <sdas@igalia.com>
950 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
951 * config.in: Add new #define HAVE_LIBDL.
952 * configure.ac: Add check for -ldl.
953 * configure: Re-generated by autoconf.
954 * gdb-dlfcn.c: New file.
955 * gdb-dlfcn.h: New file.
957 2011-11-20 Sanjoy Das <sdas@igalia.com>
959 * config.in: Add new #defines: JIT_READER_DIR and
960 JIT_READER_DIR_RELOCATABLE.
961 * configure.ac: New GDB directory entry for jit-reader-dir.
962 * configure: Re-generated by autoconf.
963 * jit.c: New static variable: const char *jit_reader_dir.
964 (_initialize_jit): Relocate jit_reader_dir.
966 2011-11-20 Sanjoy Das <sdas@igalia.com>
968 * Makefile.in: Add jit-reader.h as a header. Have it installed in
970 * configure.ac: Generate a correct value for TARGET_PTR for
971 jit-reader.h. Tell configure to generate jit-reader.h from
973 * configure: Re-generated by autoconf.
974 * jit-reader.in: New file.
975 * jit.c: Include jit-reader.h.
977 2011-11-20 Sanjoy Das <sdas@igalia.com>
979 * MAINTAINERS (Write After Approval): Add myself to the list.
981 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
983 * findvar.c (read_frame_register_value): Respect value_offset
984 of the register value. Remove big-endian special case.
986 2011-11-18 Tom Tromey <tromey@redhat.com>
989 * remote.c (putpkt_for_catch_errors): New function.
990 (remote_kill): Use it.
992 2011-11-18 Yao Qi <yao@codesourcery.com>
994 * breakpoint.c (create_breakpoint): Produce query message according to
996 Allocate tracepoint per correct type.
997 Don't check SALs for pending fast tracepoints.
998 * tracepoint.c (process_tracepoint_on_disconnect): New.
999 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1001 2011-11-18 Yao Qi <yao@codesourcery.com>
1003 * breakpoint.c (install_breakpoint): Add one more parameter so that
1004 update_global_location_list is called conditionally.
1005 (create_fork_vfork_event_catchpoint): Update.
1006 (create_syscall_event_catchpoint): Update.
1007 (create_breakpoint_sal): Update.
1008 (create_breakpoint_sal): Update. Call do_cleanups before
1010 * ada-lang.c (create_ada_exception_catchpoint): Update.
1011 * breakpoint.h (install_breakpoint): Update declaration.
1013 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1015 * spu-tdep.c (spu_return_value): Fix handling of
1016 TYPE_CALLING_CONVENTION annotation.
1018 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1020 * skip.c (skip_function_command): Work around uninitialized
1023 2011-11-16 David S. Miller <davem@davemloft.net>
1025 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1026 'tv_usec' to long for printf since these fields have a type which
1029 2011-11-15 Doug Evans <dje@google.com>
1031 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1033 2011-11-15 Paul Koning <paul_koning@dell.com>
1035 * python/py-type.c (typy_get_composite): New function.
1036 (typy_nonzero): New function.
1037 (typy_values): Rename from typy_fields.
1038 (typy_fields): New function.
1039 (typy_length): Raise exception if not struct, union, or enum type.
1040 (typy_getitem): Ditto.
1041 (typy_has_key): Ditto.
1042 (typy_make_iter): Ditto.
1044 2011-11-15 Doug Evans <dje@google.com>
1046 * NEWS: Mention new parameter basenames-may-differ.
1047 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1048 ! basenames_may_differ.
1049 * psymtab.c (lookup_partial_symtab): Ditto.
1050 * symtab.c (lookup_symtab): Ditto.
1051 (basenames_may_differ): New global.
1052 (_initialize_symtab): New parameter basenames-may-differ.
1053 * symtab.h (basenames_may_differ): Declare.
1055 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1056 Luis Machado <lgustavo@codesourcery.com>
1058 * auxv.c: Include observer.h.
1059 (auxv_inferior_data_cleanup): New.
1060 (invalidate_auxv_cache_inf): New.
1061 (invalidate_auxv_cache): New.
1062 (get_auxv_inferior_data): New.
1063 (auxv_inferior_data): New static global.
1064 (auxv_info): New structure.
1065 (target_auxv_search): Use get_auxv_inferior_data instead of
1066 target_read_alloc and don't free cached buffers.
1067 (fprint_target_auxv): Likewise
1068 (_initialize_auxv): Register per-inferior auxv cache and register
1069 observers to invalidate auxv cache when needed.
1071 2011-11-14 Doug Evans <dje@google.com>
1073 Make "!" an alias for "shell".
1074 * NEWS: Add mention.
1075 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1076 adding "!" command, always add it.
1077 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1078 command of length one.
1080 2011-11-14 Stan Shebs <stan@codesourcery.com>
1081 Kwok Cheung Yeung <kcy@codesourcery.com>
1083 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1084 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1085 the minimum instruction size for fast tracepoints.
1086 * target.h (struct target_ops): Add new method
1087 to_get_min_fast_tracepoint_insn_len.
1088 (target_get_min_fast_tracepoint_insn_len): New.
1089 * target.c (update_current_target): Set up new target operation.
1090 * remote.c (remote_write_bytes_aux): Fix typo.
1091 (remote_get_min_fast_tracepoint_insn_len): New.
1092 (init_remote_ops): Initialize new field.
1094 2011-11-14 Tom Tromey <tromey@redhat.com>
1096 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1097 (encode_actions): Likewise.
1099 2011-11-14 Yao Qi <yao@codesourcery.com>
1101 * remote.c (struct remote_state): <install_in_trace> new field.
1102 (PACKET_InstallInTrace): New enum value.
1103 (remote_install_in_trace_feature): Support InstallInTrace.
1104 (remote_supports_install_in_trace): Likewise.
1105 (remote_protocol_features): Likewise.
1106 (_initialize_remote): Likewise.
1107 (remote_can_download_tracepoint): New.
1108 * target.h (struct target): New field
1109 `to_can_download_tracepoint'.
1110 (target_can_download_tracepoint): New macro.
1111 * target.c (update_current_target): Update.
1112 * breakpoint.h (struct bp_location): Add comment on field
1114 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1116 (remove_breakpoints): Don't remove tracepoints.
1117 (tracepoint_locations_match ): New.
1118 (breakpoint_locations_match): Call it.
1119 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1120 (download_tracepoint_locations): New.
1121 (update_global_location_list): Call it.
1122 * tracepoint.c (find_matching_tracepoint): Delete.
1123 (find_matching_tracepoint_location): Renamed from
1124 find_matching_tracepoint. Return bp_location rather than
1126 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1127 tracepoint is found.
1129 2011-11-14 Yao Qi <yao@codesourcery.com>
1131 * target.h (struct target): <to_download_tracepoint> Change type
1132 of parameter from tracepoint to bp_location.
1133 * target.c (update_current_target): Update.
1134 * tracepoint.c (start_tracing): Update.
1135 * remote.c (remote_download_tracepoint): Remove loop for each location
1138 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1140 * i386-nat.c (i386_insert_hw_breakpoint): Call
1141 i386_update_inferior_debug_regs.
1142 (i386_remove_hw_breakpoint): Likewise.
1144 2011-11-14 Yao Qi <yao@codesourcery.com>
1146 * breakpoint.c (init_raw_breakpoint): Call
1147 add_location_to_breakpoint to replace duplicated code.
1148 (add_location_to_breakpoint): Adjust the breakpoint's
1149 address prior to allocating a location.
1151 2011-11-12 Matt Rice <ratmice@gmail.com>
1153 * macrocmd.c (macro_no_macro_info): New function.
1154 (macro_expand_command): Use macro_no_macro_info.
1155 (macro_expand_once_command): Ditto.
1156 (info_macro_command): Add argument processing,
1157 move info_definitions_command here.
1158 (_initialize_macrocmd): Remove info definitions command.
1159 Add arguments to info macro help text.
1160 * NEWS: Replace info definitions command with new info macro options.
1162 2011-11-11 Keith Seitz <keiths@redhat.com>
1165 * linespec.c (locate_first_half): Keep ':' if it looks
1166 like it could be part of a Windows path starting with
1169 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1171 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1172 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1174 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1176 * target.c (target_waitstatus_to_string): Handle
1177 TARGET_WAITKIND_NO_RESUMED.
1179 2011-11-10 Doug Evans <dje@google.com>
1181 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1183 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1184 (map_partial_symbol_filenames): Ditto. All callers updated.
1185 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1186 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1187 parameter need_fullname.
1189 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1190 * source.c (symtab_to_fullname): Ditto.
1192 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1193 * gdb-demangle.h: ... here. New file.
1194 * demangle.c: #include "gdb-demangle.h".
1195 (_initialize_demangler): Use initialize_file_ftype for prototype.
1196 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1197 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1199 * utils.c: Update. #include "gdb-demangle.h".
1200 * symtab.h (asm_demangle): Delete.
1201 (demangle): Move declaration next to use.
1202 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1203 * dwarf2read.c: #include "gdb-demangle.h".
1204 * gnu-v2-abi.c: Ditto.
1205 * jv-typeprint.c: Ditto.
1206 * mdebugread.c: Ditto.
1207 * p-typeprint.c: Ditto.
1208 * stabsread.c: Ditto.
1209 * printcmd.c: Ditto.
1210 (asm_demangle): Delete declaration.
1211 * tui/tui-stack.c: #include "gdb-demangle.h".
1213 * python/py-type.c (typy_fields_items): Call check_typedef.
1215 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1217 * findvar.c (read_frame_register_value): Read the correct bytes
1218 from registers on big-endian architectures.
1220 2011-11-10 Tom Tromey <tromey@redhat.com>
1222 * procfs.c (load_syscalls): Make a cleanup.
1223 (open_procinfo_files): fd==0 is ok.
1225 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1227 * procfs.c (iterate_over_mappings): Call do_cleanups before
1230 2011-11-09 Doug Evans <dje@google.com>
1232 * gdbtypes.c (check_typedef): Document that this function can
1235 2011-11-09 Tom Tromey <tromey@redhat.com>
1238 * valops.c (value_full_object): Return early if real type is
1239 smaller than the enclosing type.
1241 2011-11-08 Yao Qi <yao@codesourcery.com>
1243 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1245 2011-11-08 Meador Inge <meadori@codesourcery.com>
1247 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1248 register when the frame can't be determined.
1249 * arm-tdep.c (arm_analyze_prologue): Ditto.
1251 2011-11-07 Stan Shebs <stan@codesourcery.com>
1253 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1255 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1257 * infrun.c (handle_inferior_event): Minor reformatting.
1259 2011-11-05 Doug Evans <dje@google.com>
1261 * source.c (forget_cached_source_info_for_objfile): Move call to
1262 objfile->sf->qf->forget_cached_source_info outside of
1263 ALL_OBJFILE_SYMTABS loop.
1264 (forget_cached_source_info): Delete unused variable `s'.
1266 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 * i386-nat.c (dr_ref_count): Remove unused variable.
1270 2011-11-05 Doug Evans <dje@google.com>
1272 * main.c (captured_main): Set lim_at_start before calling
1273 make_command_stats_cleanup.
1275 2011-11-04 Doug Evans <dje@google.com>
1277 * utils.c: #include "timeval-utils.h".
1278 (cmd_stats): Rename start_time to start_cpu_time.
1279 New member start_wall_time.
1280 (report_command_stats): Report wall time.
1281 (make_command_stats_cleanup): Record start wall time.
1283 2011-11-04 Tom Tromey <tromey@redhat.com>
1285 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1287 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1289 * coff-pe-read.c: Include defs.h before bfd.h.
1291 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1295 * python/python.c (python_run_simple_file): Expand tilde in path.
1297 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1301 * python/py-type.c (typy_lookup_type): Do not return a type in
1302 an exception handler.
1304 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1305 Eli Zaretskii <eliz@gnu.org>
1307 * linux-nat.c (_initialize_linux_nat): Improve help
1308 for `info proc stat', `info proc status', `info proc cwd',
1309 `info proc cmdline' and `info proc exe'.
1311 2011-11-02 Stan Shebs <stan@codesourcery.com>
1313 String collection for tracepoints.
1314 * NEWS: Mention string collection.
1315 * common/ax.def (tracenz): New bytecode.
1316 * ax-gdb.h (trace_string_kludge): Declare.
1317 * ax-gdb.c: Include valprint.h and c-lang.h.
1318 (trace_string_kludge): New global.
1319 (gen_traced_pop): Add string case.
1320 (agent_command): Add string case.
1321 * tracepoint.h (decode_agent_options): Declare.
1322 * tracepoint.c: Include cli-utils.h.
1323 (decode_agent_options): New function.
1324 (validate_actionline): Call it.
1325 (encode_actions_1): Ditto.
1326 * target.h (struct target_ops): New method to_supports_string_tracing.
1327 (target_supports_string_tracing): New macro.
1328 * target.c (update_current_target): Add to_supports_string_tracing.
1329 * remote.c (struct remote_state): New field string_tracing.
1330 (remote_string_tracing_feature): New function.
1331 (remote_protocol_features): New feature tracenz.
1332 (remote_supports_string_tracing): New function.
1333 (init_remote_ops): Set to_supports_string_tracing.
1335 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1336 Jan Kratochvil <jan.kratochvil@redhat.com>
1338 * linux-nat.c: Include cli/cli-utils.h.
1339 (enum info_proc_what): New.
1340 (linux_nat_info_proc_cmd): Rename to ...
1341 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1342 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1343 status_f and stat_f from WHAT. Throw error on extra parameters.
1344 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1345 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1346 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1347 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1348 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1349 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1350 `info proc cmdline', `info proc exe' and `info proc all' as real
1351 subcommands of `info proc'.
1353 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1355 * Makefile.in: (SFILES): Add skip.c.
1356 (HFILES_NO_SRCDIR): Add skip.h.
1357 (COMMON_OBS): Add skip.o.
1358 * skip.h, skip.c: New.
1359 * breakpoint.h (set_default_breakpoint): Remove.
1360 (get_sal_arch): Declare.
1361 * breakpoint.c: Remove default_breakpoint_valid,
1362 default_breakpoint_address, default_breakpoint_symtab,
1363 default_breakpoint_line, default_breakpoint_pspace variables.
1364 (get_sal_arch): Make public.
1365 (set_default_breakpoint): Remove.
1366 (parse_breakpoint_sals, create_breakpoint, clear_command,
1367 decode_line_spec_1): Remove uses of default_breakpoint variables;
1368 replaced with function calls into stack.c.
1369 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1370 * cli/cli-cmds.c: Add skiplist.
1371 (init_cmd_lists): Initialize skiplist.
1372 (init_cli_cmds): Fix comment (classes of commands appear in
1373 alphabetical order).
1374 * infrun.c (handle_inferior_event): Add check that we don't step into
1375 a function whose pc is marked for skip.
1376 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1377 last_displayed_addr, last_displayed_symtab, last_displayed_line
1379 (set_last_displayed_sal): New static function.
1380 (print_frame_info): Switch call to set_default_breakpoint to call to
1381 set_last_displayed_sal.
1382 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1383 get_last_displayed_pspace, get_last_displayed_addr,
1384 get_last_displayed_symtab, get_last_displayed_line,
1385 get_last_displayed_sal): New public functions.
1386 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1387 get_last_displayed_pspace, get_last_displayed_addr,
1388 get_last_displayed_symtab, get_last_displayed_line,
1389 get_last_displayed_sal): Declare.
1391 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1393 * MAINTAINERS (Write After Approval): Add myself to the list.
1395 2011-10-29 Yao Qi <yao@codesourcery.com>
1397 * infcmd.c (disconnect_command): Call disconnect_tracing.
1399 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 * symtab.c (skip_prologue_sal): Code reformatting.
1404 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1408 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1411 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1413 * linux-nat.c (linux_nat_filter_event): Remove `options'
1414 parameter, and dead code that used it. If we're handling a
1415 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1416 in our lwp list, re-add it.
1417 (check_zombie_leaders): New.
1418 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1419 wait for children with WNOHANG, and always wait for all children.
1420 Don't check for no resumed children upfront. Simplify wait loop.
1421 Check for zombie thread group leaders after handling all wait
1422 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1423 unwaited-for children left.
1424 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1425 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1426 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1427 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1429 2011-10-28 Sterling Augustine <saugustine@google.com>
1431 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1432 * symtab.c (free_completion_list): New function.
1433 (do_free_completion_list): Likewise.
1434 (default_make_symbol_completion_list_break_on): New variable
1435 back_to. Call make_cleanup and discard_cleanups.
1436 (make_source_files_completion_list): Likewise.
1438 2011-10-28 Paul Koning <paul_koning@dell.com>
1440 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1441 * NEWS: Mention deep_items.
1443 2011-10-28 Alen Skondro <askondro@gmail.com>
1445 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1448 2011-10-27 Meador Inge <meadori@codesourcery.com>
1450 * MAINTAINERS (Write After Approval): Add myself to the list.
1452 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1454 * value.h (read_frame_register_value): Add declaration.
1455 * findvar.c (read_frame_register_value): New function.
1456 (value_from_register): Use read_frame_register_value
1457 instead of get_frame_register_value + value_contents_copy
1458 to get value contents.
1460 2011-10-27 Doug Evans <dje@google.com>
1462 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1463 source_script_from_stream if it may have been found on the search path.
1464 * python/py-auto-load.c (source_section_scripts): Pass full path to
1465 source_python_script_for_objfile.
1466 * python/python.c (source_python_script): Delete stream parameter.
1467 All callers updated.
1468 (source_python_script_for_objfile): Ditto.
1469 * python/python-internal.h (source_python_script_for_objfile): Update.
1470 * python/python.h (source_python_script): Update.
1472 2011-10-27 Tom Tromey <tromey@redhat.com>
1474 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1475 (ada_sals_for_line): Remove declarations.
1477 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1479 Move unwind reasons to an external .def file
1480 * frame.c (frame_stop_reason_string): Rewrite using
1481 unwind_stop_reasons.def.
1482 * frame.h (enum unwind_stop_reason): Likewise.
1483 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1484 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1485 constants for bound-checking.
1486 * unwind_stop_reasons.def: New file.
1487 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1488 instead of a distinct value.
1490 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1494 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1495 (convert_values_to_python): Return on Python tuple allocation
1496 failure. Return NULL on value conversion error.
1498 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1500 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1501 (bppy_set_task): Ditto.
1502 (bppy_delete_breakpoint): Ditto.
1503 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1504 (gdbpy_lookup_global_symbol): Ditto.
1505 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1506 * python/py-frame.c (frapy_is_valid): Ditto.
1507 (frame_info_to_frame_object): Ditto.
1508 * python/py-type.c (typy_lookup_type): Ditto.
1509 (typy_getitem): Ditto.
1510 (typy_has_key): Ditto.
1511 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1513 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1515 * gdbarch.h: Regenerate.
1517 2011-10-26 Meador Inge <meadori@codesourcery.com>
1519 * gdbarch.sh (function_list): Use 'pstring' when printing
1521 * gdbarch.c: Regenerate.
1523 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1525 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1526 and frame caches if PTID refers to all threads of a process.
1528 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1530 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1531 to create_breakpoint.
1533 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1535 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1536 (ppc_sysv_abi_push_dummy_call): Use it.
1537 (do_ppc_sysv_return_value): Likewise.
1538 (ppc64_sysv_abi_push_dummy_call): Likewise.
1539 (ppc64_sysv_abi_return_value): Likewise.
1541 2011-10-26 Paul Koning <paul_koning@dell.com>
1543 * python/lib/gdb/types.py (deepitems): New function.
1545 2011-10-25 Paul Koning <paul_koning@dell.com>
1549 * python/py-value.c (value_to_value_object): Remove fetching of
1550 the value if it was lazy.
1551 (valpy_get_is_lazy): New function.
1552 (valpy_fetch_lazy): New function.
1554 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1556 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1557 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1559 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1561 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1562 event, in non-stop, if not stopping, make sure the new lwp has
1563 last_resume_kind set to resume_continue. Assert that when we're
1564 resuming the new lwp, its last_resume_kind is resume_continue.
1566 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1568 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1569 already set when marking the event thread as not executing in
1572 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1574 * infrun.c (handle_inferior_event): Add debug output for
1575 TARGET_WAITKIND_NO_HISTORY.
1577 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1579 * NEWS: Move set/show extended-prompt to "New Options". Expand
1580 description. Fix typos.
1582 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1586 * python/py-param.c (call_doc_function): Correctly deference on
1589 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1591 * ada-tasks.c (print_ada_task_info): Fix computation of
1592 number of tasks displayed in command output.
1594 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 Ulrich Weigand <uweigand@de.ibm.com>
1597 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1598 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1599 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1600 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1603 2011-10-20 Cary Coutant <ccoutant@google.com>
1605 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1607 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1608 flag. Adjust all callers.
1609 (process_psymtab_comp_unit): Remove adjustment for type section.
1611 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1613 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1614 arguments by adding OBJFILE. Instead of getting objfile from
1615 symbol's symtab, use new argument OBJFILE.
1616 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1617 arguments by adding OBJFILE.
1618 * gdb/dwarf2read.c (new_symbol_full): Change call to
1619 cp_scan_for_anonymous_namespaces to match new signature.
1620 * gdb/stabsread.c (define_symbol): Change call to
1621 cp_scan_for_anonymous_namespaces to match new signature.
1623 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1628 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1630 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1631 leak. Delete unused variables.
1633 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1637 * python/py-frame.c (frapy_read_var): Use const struct *block.
1638 * python/py-type.c (typy_lookup_typename): Likewise.
1639 (typy_lookup_type): Likewise.
1640 (typy_legacy_template_argument): Likewise.
1641 (typy_template_argument): Likewise.
1642 (gdbpy_lookup_type): Likewise.
1643 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1644 * python/py-block.c (blpy_block_object): Likewise.
1645 (blpy_iter): Likewise.
1646 (blpy_get_start): Likewise.
1647 (blpy_get_end): Likewise.
1648 (blpy_get_function): Likewise.
1649 (blpy_get_superblock): Likewise.
1650 (set_block): Likewise.
1651 (block_to_block_object): Likewise.
1652 (block_object_to_block): Likewise.
1653 (blpy_is_valid): Likewise.
1654 (blpy_get_global_block): New function.
1655 (blpy_get_static_block): New function.
1656 (blpy_is_global): New function.
1657 (blpy_is_static): New function.
1658 * blockframe.c (block_innermost_frame): Likewise.
1659 * valops.c (value_of_variable): Likewise.
1660 * frame.h: Update prototypes.
1661 * python/python-internal.h: Likewise.
1662 * value.h: Likewise.
1664 2011-10-19 Cary Coutant <ccoutant@google.com>
1666 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1669 2011-10-19 Cary Coutant <ccoutant@google.com>
1671 * dwarf2read.c (peek_abbrev_code): New function.
1672 (dw2_get_file_names): Check for dummy compilation units.
1673 (create_debug_types_hash_table): Likewise.
1674 (process_psymtab_comp_unit): Likewise.
1675 (load_partial_comp_unit): Likewise.
1676 (load_full_comp_unit): Likewise.
1678 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1680 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1681 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1682 pt_phdr if PT_PHDR was found.
1684 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1686 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1687 type or "<unnamed type"> when there is no name assigned.
1688 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1689 avoid a sigint when no name is assigned.
1691 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1694 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1695 * dwarf2expr.c (ctx_no_read_reg): New function.
1696 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1697 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1698 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1699 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1701 2011-10-16 Doug Evans <dje@google.com>
1703 * NEWS: Document python gdb.printing.register_pretty_printer's new
1704 `replace' parameter.
1706 2011-10-14 Keith Seitz <keiths@redhat.com>
1709 * eval.c (evaluate_subexp_standard): Do not construct
1710 an array of types; pass the value array directly to
1711 find_overload_match.
1712 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1713 (rank_function): Take an array of values instead of types.
1714 (rank_one_type): Add struct value * parameter.
1715 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1716 (rank_function): For each argument, pass the argument's
1717 value to rank_one_type.
1718 (rank_one_type): Add VALUE parameter.
1719 If the parameter type is a pointer and the argument type
1720 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1722 Update all calls to rank_one_type, passing NULL for new
1724 * valarith.c (value_user_defined_cpp_op): Do not construct
1725 an array of types; pass the value array directly to
1726 find_overload_match.
1727 * valops.c (find_overload_method_list): Take an array of
1728 values instead of types.
1729 Save the type of OBJP for later use.
1730 Update calls to find_oload_champ, and find_oload_champ_namespace.
1731 (find_oload_champ_namespace): Take an array of values instead
1733 (find_oload_champ_namespace_loop): Likewise.
1734 (find_oload_champ): Likewise.
1735 (classify_oload_match): Inspect all arguments
1736 until INCOMPATIBLE is found. Return the worst badness found
1738 (compare_parameters): Update call to rank_one_type.
1739 * value.h (find_overload_match): Take an array of values instead
1742 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1744 Drop lazy lm_info reading.
1745 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1746 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1747 (lm_info_read): New function.
1748 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1749 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1750 lm_dynamic_from_link_map.
1751 (lm_next, lm_prev, lm_name): Remove.
1752 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1753 initialization incl. read_memory. No longer use lm_name.
1754 (svr4_free_so): Drop lm_info->lm freeing.
1755 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1756 explicit lm_addr and lm initialization.
1757 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1758 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1761 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Paul Pluzhnikov <ppluzhnikov@google.com>
1764 * defs.h (struct so_list): New forward declaration.
1765 (make_cleanup_free_so): New declaration.
1766 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1767 (svr4_free_so): Move the function here from downwards. Handle NULL
1769 (svr4_free_library_list): New.
1770 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1771 Use more cleanups. Use new parameter ignore_first instead of
1772 ignore_first_link_map_entry.
1773 (svr4_current_sos): New variable ignore_first, initialize it. New
1774 variable back_to, use it for svr4_free_library_list protection.
1775 (svr4_free_so): Remove - move upwards.
1776 * utils.c: Include solist.h.
1777 (do_free_so, make_cleanup_free_so): New functions.
1779 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 Fix internal error regression.
1782 * value.c (value_primitive_field): Handle value_optimized_out. Move
1783 packed bitfields comment.
1785 2011-10-13 Tom Tromey <tromey@redhat.com>
1787 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1790 2011-10-13 Tom Tromey <tromey@redhat.com>
1792 * python/py-type.c (typy_has_key): Make 'field' const.
1794 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1796 * remote.c (remote_save_trace_data): Invert comparison.
1798 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1800 * tracepoint.c (trace_save_command): Use filename instead of
1803 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1808 2011-10-13 Yao Qi <yao@codesourcery.com>
1811 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1812 whether insn is a 32-bit Thumb-2 instruction.
1813 (thumb_in_function_epilogue_p): Likewise.
1814 (thumb_get_next_pc_raw): Likewise.
1815 (arm_breakpoint_from_pc): Likewise.
1817 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1820 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1821 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1822 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1823 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1825 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1827 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1828 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1829 clear DATA on zero SIZE.
1831 2011-10-12 Doug Evans <dje@google.com>
1833 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1834 header->first_die_offset here. All callers updated.
1836 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1838 Fix compatibility with texinfo versions older than 4.12.
1839 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1840 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1841 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1842 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1843 * configure: Regenerate.
1844 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1845 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1846 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1848 2011-10-12 Gary Benson <gbenson@redhat.com>
1850 * breakpoint.h (pc_at_non_inline_function): Declare.
1851 * breakpoint.c (is_non_inline_function,
1852 pc_at_non_inline_function): New functions.
1853 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1854 if the stop is at a location where functions cannot be inlined.
1856 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1858 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1859 the core wanted them stopped, or if they now have a pending event
1861 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1862 down to stop_and_resume_callback.
1863 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1864 having new pending events after calling linux_nat_filter_event.
1866 2011-10-11 Sterling Augustine <saugustine@google.com>
1868 * dwarf2read.c: Undo inadvertent changes in previous commit.
1870 2011-10-11 Sterling Augustine <saugustine@google.com>
1872 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1875 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1877 * symfile.c (separate_debug_file_exists): Fix condition.
1879 2011-10-11 David S. Miller <davem@davemloft.net>
1881 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1883 * regcache.h (regcache_restore): Remove declaration.
1885 * gdbarch.sh: New field 'long_long_align_bit'.
1886 * gdbarch.c, gdbarch.h: Regenerate.
1887 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1888 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1890 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1892 Revert this part of:
1893 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1894 Support @entry in input expressions.
1895 * c-exp.y (ENTRY, unknown_cpp_name): New.
1896 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1897 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1898 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1899 (name_not_typename: ENTRY): New.
1900 (yylex): Recognize ENTRY.
1902 Reimplement @entry in input expressions.
1903 * c-exp.y (ENTRY): New.
1904 (variable: name_not_typename ENTRY): New.
1905 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1907 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1909 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1910 parent and child's pids as soon as we detect a clone event.
1911 Adjust another debug message.
1913 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1915 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1916 not zombie instead of reading the whole file.
1918 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 Fix separate debuginfo warning with "remote:" access.
1921 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1922 * symfile.c (get_file_crc): New function with the code moved from ...
1923 (separate_debug_file_exists): ... this function, specifically variables
1924 buffer and count. New variable verified_as_different, set it. Remove
1925 file_crc initialization. Verify also if both files are not the same
1926 manually, if needed.
1928 2011-10-11 Yao Qi <yao@codesourcery.com>
1930 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1933 2011-10-10 Doug Evans <dje@google.com>
1935 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1936 libthread_db when we load libpthread or the main symbol file.
1937 (thread_db_inferior_created): New function.
1938 (_initialize_thread_db): Attach inferior_created observer.
1939 * linux-nat.c (linux_child_post_attach): Remove call to
1940 check_for_thread_db.
1941 (linux_child_post_startup_inferior): Ditto.
1942 * objfiles.h (OBJF_MAINLINE): Define.
1943 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1944 allocate_objfile when appropriate.
1946 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1949 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1950 Remove unused variables.
1951 (get_linux_version): Remove function.
1952 (_initialize_arm_linux_nat): Do not call it.
1954 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1956 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1957 new clone lwp if the core asked it to stop. Don't pass on
1958 unexpected signals to the new clone; leave them pending instead.
1960 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1962 * linux-nat.c (resume_lwp): Remove redundant debug output.
1964 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1966 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1967 last_resume_kind before clearing it, and use the copy instead to
1968 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1969 resume_clear_callback in the non-stop path too.
1971 2011-10-09 Yao Qi <yao@codesourcery.com>
1973 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1974 Honor OPTIONS and VAL's type.
1975 (common_val_print, value_print): Update to pass one more parameter.
1977 2011-10-09 Doug Evans <dje@google.com>
1979 Add new "alias" command.
1980 * NEWS: Mention new command.
1981 * command.h (valid_user_defined_cmd_name_p): Declare.
1982 * defs.h (make_cleanup_dyn_string_delete): Declare.
1983 * utils.c: #include "dyn-string.h".
1984 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1985 * cli/cli-cmds.c: #include "dyn-string.h".
1986 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1987 (init_cli_cmds): Add new command.
1988 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1990 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 Fix compatibility with older GCCs.
1993 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1994 * stack.c (read_frame_arg): Initialize val_deref.
1996 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1998 Entry values NEWS entries, DWARF disassembly support.
1999 * NEWS: New entry values entry.
2000 (set print entry-values, show print entry-values)
2001 (set debug entry-values, show debug entry-values): New entries.
2002 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2003 indent. Remove variable start. Move header printing out. Respect
2004 INDENT. Support DW_OP_GNU_entry_value.
2005 (locexpr_describe_location_1): Move the header printing here, extend
2006 the disassemble_dwarf_expression passed parameters.
2008 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2010 Display @entry parameter values even for references.
2011 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2012 coerce_ref_if_computed.
2013 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2014 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2015 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2016 existing push_dwarf_reg_entry_value call. Add new detection calling
2017 dwarf_block_to_dwarf_reg_deref. Update the error message.
2018 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2020 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2021 parameter deref_size, describe it in the comment.
2022 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2023 (dwarf_block_to_dwarf_reg_deref): New declaration.
2024 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2025 deref_size, describe it in the function comment. New variables
2026 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2027 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2028 describe it in the function comment. Fetch the alternative block
2029 accoring to DEREF_SIZE.
2030 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2031 (entry_data_value_free_closure, entry_data_value_funcs): New.
2032 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2033 outer_val, target_val, val and addr. Try to fetch and create also
2034 referenced value content.
2035 (pieced_value_funcs): NULL value for coerce_ref.
2036 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2037 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2038 coerce_ref_if_computed.
2039 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2040 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2041 * stack.c (read_frame_arg): Compare also dereferenced values.
2042 * value.c (value_computed_funcs): Make the parameter v const, use
2043 value_lval_const for it.
2044 (value_lval_const, coerce_ref_if_computed): New function.
2045 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2046 * value.h (struct lval_funcs): New field coerce_ref.
2047 (value_computed_funcs): Make the parameter v const.
2048 (value_lval_const, coerce_ref_if_computed): New declarations.
2050 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Support @entry in input expressions.
2053 * c-exp.y (ENTRY, unknown_cpp_name): New.
2054 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2055 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2056 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2057 (name_not_typename: ENTRY): New.
2058 (yylex): Recognize ENTRY.
2059 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2060 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2062 * parse.c (operator_length_standard): Likewise.
2063 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2065 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 Display referenced values in backtraces.
2068 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2069 * stack.c (print_frame_arg): Likewise.
2071 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 Make some lval_funcs methods to default on NULL.
2074 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2076 (value_assign): Check if lval_computed write method is NULL.
2077 * value.h (struct lval_funcs): Comment NULL values for read and write
2080 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2082 Display @entry parameter values (without references).
2083 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2085 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2087 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2089 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2090 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2092 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2093 (loclist_read_variable_at_entry): New function.
2094 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2095 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2096 DW_AT_location, call dwarf_block_to_sp_offset for it.
2097 * frame.h (print_entry_values_no, print_entry_values_only)
2098 (print_entry_values_preferred, print_entry_values_if_needed)
2099 (print_entry_values_both, print_entry_values_compact)
2100 (print_entry_values_default, print_entry_values): New declarations.
2101 (struct frame_arg): New field entry_kind.
2102 (read_frame_arg): New parameter entryargp.
2103 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2104 arg->entry_kind. Optionally print the `@entry' suffix.
2105 (list_args_or_locals): New variable entryarg, initialize it.
2106 Initialize also entry_kind of arg and entryarg. Conditionalize
2107 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2108 xfree for entryarg.error.
2109 * stack.c (print_entry_values_no, print_entry_values_only)
2110 (print_entry_values_preferred, print_entry_values_if_needed)
2111 (print_entry_values_both, print_entry_values_compact)
2112 (print_entry_values_default, print_entry_values_choices)
2113 (print_entry_values): New variables.
2114 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2115 print the `@entry' suffix, possibly in combination for
2116 print_entry_values_compact.
2117 (read_frame_arg): New parameter entryargp, new variables entryval,
2118 entryval_error and val_equal. Read in also entryargp, respect
2119 print_entry_values, compare the values using val_equal, fill in also
2120 argp->entry_kind (together with entryargp->entry_kind).
2121 (print_frame_args): New variable entryarg, initialize it.
2122 Conditionalize print_frame_arg for arg, add print_frame_arg for
2123 entryarg. Call xfree for entryarg.error.
2124 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2125 * symtab.h (struct symbol_computed_ops): New field
2126 read_variable_at_entry.
2128 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2131 * frame.h (struct frame_arg): New definition.
2132 (read_frame_arg): New declaration.
2133 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2134 (list_args_or_locals): ... the code here. New variable arg, call
2135 read_frame_arg and list_arg_or_local with it. Unify the
2136 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2138 * stack.c (print_frame_arg): New functiom from the code of
2140 (read_frame_arg): New function.
2141 (print_frame_args): Remove variable val. New variable arg, call
2142 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2144 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 Protect entry values against self tail calls.
2147 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2148 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2150 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2152 Recognize virtual tail call frames.
2153 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2154 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2155 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2156 * dwarf2-frame-tailcall.c: New file.
2157 * dwarf2-frame-tailcall.h: New file.
2158 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2159 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2160 REGS.PREV only after CIE execution.
2161 (struct dwarf2_frame_cache): New field tailcall_cache.
2162 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2163 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2164 parts, try to find entry_cfa_sp_offset. Call
2165 dwarf2_tailcall_sniffer_first.
2166 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2168 (dwarf2_frame_dealloc_cache): New function.
2169 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2170 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2171 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2172 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2173 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2174 * dwarf2loc.c (func_addr_to_tail_call_list)
2175 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2176 (call_site_find_chain_1, call_site_find_chain): New.
2177 * dwarf2loc.h (struct call_site_chain): New.
2178 (call_site_find_chain): New declaration.
2179 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2180 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2181 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2182 * stack.c (frame_info): Support also TAILCALL_FRAME.
2184 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 Tail call sites reader implementation.
2187 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2188 fill in TYPE_TAIL_CALL_LIST.
2189 * gdbtypes.h (struct func_type): New field tail_call_list.
2190 (struct call_site): New field tail_call_next.
2191 (TYPE_TAIL_CALL_LIST): New definition.
2193 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 Implement basic support for DW_TAG_GNU_call_site.
2196 * block.c: Include gdbtypes.h and exceptions.h.
2197 (call_site_for_pc): New function.
2198 * block.h (call_site_for_pc): New declaration.
2199 * defs.h: Include hashtab.h.
2200 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2202 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2203 ctx_no_push_dwarf_reg_entry_value.
2204 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2205 (dwarf_block_to_dwarf_reg): New function.
2206 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2207 (ctx_no_push_dwarf_reg_entry_value): New function.
2208 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2209 push_dwarf_reg_entry_value.
2210 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2212 * dwarf2loc.c: Include gdbcmd.h.
2213 (dwarf_expr_ctx_funcs): New forward declaration.
2214 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2215 (dwarf_expr_reg_to_entry_parameter)
2216 (dwarf_expr_push_dwarf_reg_entry_value): New.
2217 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2218 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2219 (needs_dwarf_reg_entry_value): New function.
2220 (needs_frame_ctx_funcs): Install it.
2221 (_initialize_dwarf2loc): New function.
2222 * dwarf2loc.h (entry_values_debug): New declaration.
2223 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2224 (read_call_site_scope): New forward declaration.
2225 (process_full_comp_unit): Copy call_site_htab.
2226 (process_die): Support DW_TAG_GNU_call_site.
2227 (read_call_site_scope): New function.
2228 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2229 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2230 (cleanup_htab): Delete.
2231 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2232 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2233 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2234 FIELD_LOC_KIND_DWARF_BLOCK.
2235 * gdbtypes.h (enum field_loc_kind): New entry
2236 FIELD_LOC_KIND_DWARF_BLOCK.
2237 (struct main_type): New loc entry dwarf_block.
2238 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2239 (TYPE_FIELD_DWARF_BLOCK): New.
2240 * python/py-type.c: Include dwarf2loc.h.
2241 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2242 internal_error call on unknown FIELD_LOC_KIND.
2243 * symtab.h (struct symtab): New field call_site_htab.
2244 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2245 (core_addr_hash, core_addr_eq): New functions.
2247 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2251 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2252 calling_convention under func_stuff there.
2253 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2254 (init_type) <TYPE_CODE_FUNC>: Likewise.
2255 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2256 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2257 * gdbtypes.h (enum type_specific_kind): Change
2258 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2259 (struct main_type) <type_specific>: Change calling_convention to
2260 func_stuff. Move calling_convention to ...
2261 (struct func_type): ... this new struct.
2262 (INIT_FUNC_SPECIFIC): New #define.
2263 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2265 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2267 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2268 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2269 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2270 ctx->ref_addr_size. Handle its invalid value.
2271 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2272 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2273 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2274 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2275 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2276 (dwarf2_per_cu_ref_addr_size): New function.
2278 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 * dwarf2read.c (per_cu_header_read_in): New function.
2282 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2283 variables cu_header_local and cu_headerp.
2285 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2287 Fix initial language detection with -readnow.
2288 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2289 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2290 searches only for global symbols.
2292 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2294 Fix printed anonymous struct name.
2295 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2296 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2297 (anonymous_struct_prefix): New function.
2298 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2299 (dwarf2_name): Strip for anonymous structs any prefixes.
2301 2011-10-07 Doug Evans <dje@google.com>
2303 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2306 * python/lib/gdb/printing.py: Whitespace cleanup.
2308 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2311 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2313 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2314 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2315 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2316 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2317 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2318 (arm_linux_remove_watchpoint): Adjust.
2319 * i386-linux-nat.c (i386_linux_dr_set_control)
2320 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2321 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2322 (ia64_linux_remove_watchpoint): Adjust.
2323 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2324 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2325 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2326 (ppc_linux_insert_mask_watchpoint)
2327 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2328 (ppc_linux_remove_watchpoint): Adjust.
2329 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2332 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2334 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2335 (clear_win32_environment): New function for Cygwin to clear out
2337 (windows_create_inferior): Prepare new environment from in_env
2340 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2343 * python/py-value.c (valpy_call): Check that arguments are
2345 (is_intlike): Remove call to CHECK_TYPEDEF.
2346 (valpy_nonzero): Catch GDB exceptions.
2347 (valpy_absolute): Ditto.
2348 (valpy_lazy_string): Ditto.
2349 (valpy_call): Ditto.
2350 (valpy_get_is_optimized_out): Ditto.
2351 (valpy_long): Ditto.
2352 (valpy_float): Ditto.
2353 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2354 (valpy_richcompare): Ditto.
2356 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2358 * inferior.h (disable_randomization): Declare.
2359 * infrun.c (disable_randomization): New global variable.
2360 (show_disable_randomization): New function.
2361 (set_disable_randomization): Likewise.
2362 (_initialize_infrun): Install set/show disable-randomization
2364 * linux-nat.c (disable_randomization): Remove.
2365 (show_disable_randomization): Likewise.
2366 (set_disable_randomization): Likewise.
2367 (_initialize_linux_nat): No longer install set/show
2368 disable-randomization commands here.
2369 (linux_nat_supports_disable_randomization): New function.
2370 (linux_nat_add_target): Install it.
2371 * remote.c (PACKET_QDisableRandomization): New enum value.
2372 (remote_protocol_packets): Support QDisableRandomization.
2373 (_initialize_remote): Likewise.
2374 (remote_supports_disable_randomization): New function.
2375 (init_remote_ops): Install it.
2376 (extended_remote_supports_disable_randomization): New function.
2377 (init_extended_remote_ops): Install it.
2378 (extended_remote_disable_randomization): New function.
2379 (extended_remote_create_inferior_1): Call it.
2380 * target.h (struct target_ops): Add to_supports_disable_randomization.
2381 (target_supports_disable_randomization): Add prototype.
2382 * target.c (target_supports_disable_randomization): New function.
2383 (find_default_supports_disable_randomization): Likewise.
2384 (init_dummy_target): Install it.
2386 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2388 Allow Python notification of new object-file loadings.
2389 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2390 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2391 Add build rule for this file.
2392 * python/py-event.h (emit_new_objfile_event): New prototype.
2393 (newobjfile): New Python event emitter.
2394 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2395 Python event registry.
2396 * python/py-inferior.c: Include objfiles.h
2397 (python_new_objfile): New function.
2398 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2400 * python/py-newobjfileevent.c: New file.
2401 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2403 * python/python.c (_initialize_python): Add
2404 gdbpy_initialize_new_objfile_event call.
2405 * NEWS: Add item for new Python event "gdb.newobjfile"
2407 2011-10-05 Tristan Gingold <gingold@adacore.com>
2409 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2410 Extract the ravenscar task name from the symbol for the atcb.
2412 2011-10-04 Paul Koning <paul_koning@dell.com>
2414 * python/py-type.c (typy_make_iter): Add forward declaration.
2415 (typy_fields_items): Use the gdb.Type iterator.
2417 2011-10-04 Paul Koning <paul_koning@dell.com>
2419 * NEWS: Add entry for Python gdb.Type mapping methods.
2421 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2423 PR python/12691: Add the inferior to Python exited event
2424 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2426 * python/py-event.h (emit_exited_event): Likewise
2427 * python/-inferior.c (python_inferior_exit): Likewise
2429 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2431 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2432 in output of -ada-task-info GDB/MI command.
2434 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2436 * ada-lang.h (struct inferior): Declare.
2437 (print_ada_task_info): Add declaration.
2438 * ada-tasks.c (print_ada_task_info): Make non-static.
2439 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2440 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2441 * mi/mi-main.c: #include "ada-lang.h".
2442 (mi_cmd_list_features): Add "ada-task-info" to the list
2443 of supported features.
2444 (mi_cmd_ada_task_info): New function.
2446 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2448 * python/python.c (python_run_simple_file): New function.
2449 (source_python_script, source_python_script_for_objfile):
2450 Replace call to PyRun_SimpleFile by call to
2451 python_run_simple_file.
2453 2011-10-03 Paul Koning <paul_koning@dell.com>
2455 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2456 (value_to_value_object): Fetch value if it was lazy.
2458 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2462 Rearrange the code for it.
2464 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2466 * breakpoint.c (bkpt_print_recreate): Add call to
2467 print_recreate_thread.
2469 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2471 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2472 PTRACE_GETFDPIC_INTERP): Define.
2474 2011-09-28 Yao Qi <yao@codesourcery.com>
2476 * symfile.c (add_symbol_file_command): Update message on usage.
2478 2011-09-28 Paul Koning <paul_koning@dell.com>
2480 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2481 (typy_length, typy_get, typy_has_key, typy_make_iter)
2482 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2483 (typy_iterator_iter, typy_iterator_iternext)
2484 (typy_iterator_dealloc): New functions to implement standard
2485 Python mapping methods on gdb.Type object.
2486 (gdb.TypeIterator): New Python type.
2487 * python/python-internal.h (gdbpy_iter_kind): New enum.
2489 2011-09-28 David S. Miller <davem@davemloft.net>
2491 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2492 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2493 * sparc-tdep.c (sparc_complex_floating_p): New function.
2494 (sparc32_store_arguments): Handle complex floats.
2495 (sparc32_extract_return_value): Likewise.
2496 (sparc32_store_return_value): Likewise.
2497 (sparc32_stabs_argument_has_addr): Likewise.
2498 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2499 (sparc64_store_floating_fields): Handle complex floats.
2500 (sparc64_store_arguments): Likewise.
2501 (sparc64_store_return_value): Likewise.
2503 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2505 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2506 before the change on 2006-12-09.
2507 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2508 generates the environment block for CreateProcessA, modulo the
2509 Cygwin-specific parts that are not needed here.
2511 2011-09-27 Tristan Gingold <gingold@adacore.com>
2513 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2514 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2515 (darwin_solib_get_all_image_info_addr_at_init): New function.
2516 (darwin_solib_read_all_image_info_addr): Likewise.
2517 (darwin_solib_create_inferior_hook): Use the above two functions.
2518 * darwin-nat.c (darwin_execvp): Renames retval to res.
2519 (darwin_read_write_inferior): Update comment.
2520 (darwin_read_dyld_info): New function.
2521 (darwin_xfer_partial): Handle DYLD_INFO.
2523 2011-09-27 Stan Shebs <stan@codesourcery.com>
2525 Add return address collection for tracepoints.
2526 * tracepoint.c (encode_actions_1): Add case for $_ret.
2527 (validate_actionline): Check for $_ret.
2528 (trace_dump_actions): Ditto.
2529 * ax-gdb.h (gen_trace_for_return_address): Declare.
2530 * ax-gdb.c: Include arch-utils.h.
2531 (gen_trace_for_return_address): New function.
2532 (agent_command): Add return address special case.
2533 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2534 (amd64_gen_return_address): New function.
2535 (amd64_init_abi): Call it.
2536 * i386-tdep.c: Include ax.h and ax-gdb.h.
2537 (i386_gen_return_address): New function.
2538 (i386_init_abi): Call it.
2539 * arch-utils.h (default_gen_return_address): Declare.
2540 * arch-utils.c (default_gen_return_address): New function.
2541 * gdbarch.sh (gen_return_address): New method.
2542 * gdbarch.h, gdbarch.c: Regenerate.
2544 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2547 * i386-tdep.c (i386_frame_align): New.
2548 (i386_gdbarch_init): Use i386_frame_align.
2550 2011-09-23 Yao Qi <yao@codesourcery.com>
2552 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2555 2011-09-22 Tristan Gingold <gingold@adacore.com>
2557 * fork-child.c (fork_inferior): Add exec_fun parameter.
2558 Call exec_fun or execvp.
2559 * inferior.h: Adjust prototype.
2560 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2561 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2562 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2563 * procfs.c (procfs_create_inferior): Ditto.
2564 * darwin-nat.c (darwin_execvp): New function.
2565 (darwin_create_inferior): Use it.
2567 2011-09-22 Yao Qi <yao@codesourcery.com>
2569 * infrun.c (context_switch): Print debug message when switching to
2572 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2574 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2575 complex and vector types.
2576 (s390_return_value_convention): Likewise.
2578 (s390_value_from_register): Call check_typedef.
2579 (extend_simple_arg): Likewise.
2580 (alignment_of): Likewise.
2581 (s390_push_dummy_call): Likewise.
2582 (s390_return_value): Likewise.
2584 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2586 * event-top.c (async_disconnect): If an exception is thrown from
2587 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2589 * top.c (quit_cover): Return void and take no arguments.
2590 * top.h (quit_cover): Update prototype.
2592 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2594 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2595 current_uiout, not uiout.
2597 2011-09-19 Doug Evans <dje@google.com>
2599 * python/py-auto-load.c (source_section_scripts): Fix file
2601 * python/python.c (source_python_script_for_objfile): Tweak comments.
2603 2011-09-18 Yao Qi <yao@codesourcery.com>
2604 Ulrich Weigand <ulrich.weigand@linaro.org>
2606 Support displaced stepping for Thumb 16-bit insns.
2607 * arm-tdep.c (THUMB_NOP) Define.
2608 (thumb_copy_unmodified_16bit): New.
2609 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2610 (thumb_copy_alu_reg): New.
2611 (arm_copy_svc): Move some common code to ...
2612 (install_svc): ... here. New.
2613 (thumb_copy_svc): New.
2614 (install_pc_relative): New.
2615 (thumb_copy_pc_relative_16bit): New.
2616 (thumb_decode_pc_relative_16bit): New.
2617 (thumb_copy_16bit_ldr_literal): New.
2618 (thumb_copy_cbnz_cbz): New.
2619 (cleanup_pop_pc_16bit_all): New.
2620 (thumb_copy_pop_pc_16bit): New.
2621 (thumb_process_displaced_16bit_insn): New.
2622 (thumb_process_displaced_32bit_insn): New.
2623 (thumb_process_displaced_insn): process thumb instruction.
2625 Support displaced stepping for Thumb 32-bit insns.
2626 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2627 (thumb2_copy_preload): New.
2628 (thumb2_copy_copro_load_store): New.
2629 (thumb2_copy_b_bl_blx): New.
2630 (thumb2_copy_alu_imm): New.
2631 (thumb2_copy_load_reg_imm): New.
2632 (thumb2_copy_load_literal): New
2633 (thumb2_copy_block_xfer): New.
2634 (thumb_32bit_copy_undef): New.
2635 (thumb_32bit_copy_unpred): New.
2636 (thumb2_decode_ext_reg_ld_st): New.
2637 (thumb2_decode_svc_copro): New.
2638 (decode_thumb_32bit_store_single_data_item): New.
2639 (thumb_copy_pc_relative_32bit): New.
2640 (thumb_decode_pc_relative_32bit): New.
2641 (decode_thumb_32bit_ld_mem_hints): New.
2642 (thumb2_copy_table_branch): New
2643 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2646 2011-09-18 Yao Qi <yao@codesourcery.com>
2648 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2649 (install_b_bl_blx): Likewise.
2651 2011-09-17 Yao Qi <yao@codesourcery.com>
2653 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2654 (install_load_store): ... this. New.
2655 Change parameter BYTE to SIZE.
2656 (arm_copy_ldr_str_ldrb_strb): Update caller.
2657 (arm_decode_ld_st_word_ubyte): Update caller.
2659 2011-09-17 Yao Qi <yao@codesourcery.com>
2661 * infrun.c (displaced_step_fixup): Move some code ...
2662 (displaced_step_restore): ... here. New function.
2663 (handle_inferior_event): Cleanup displaced stepping state for both
2664 child and parent when get forked or vforked event.
2665 * regcache.c (get_thread_arch_aspace_regcache): New function.
2666 get_thread_arch_regcache (): Call it.
2668 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2670 * ada-tasks.c (print_ada_task_info): New function, merging
2671 short_task_info and info_tasks together. Reimplement using
2672 ui-out instead of printing to stdout directly. Move the code
2673 building and checking the task list here, instead of leaving it
2674 in info_tasks_command.
2675 (info_task): Move the code building and checking the task
2676 list here, instead of leaving it in info_tasks_command.
2677 (info_tasks_command): Delete code building and checking
2678 the task list - moved elsewhere. Update calls to info_tasks
2681 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2683 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2685 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2687 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2689 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2691 * ada-lang.h (ada_build_task_list): Remove parameter
2693 * ada-tasks.c (ada_build_task_list): Remove parameter
2694 `warn_if_null'. Adjust implementation and documentation.
2695 (valid_task_id, ada_get_environment_task)
2696 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2697 (info_tasks_command): Adjust implementation.
2698 (task_command): Likewise.
2699 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2700 to ada_build_task_list.
2702 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2704 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2705 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2706 (ada_tasks_inferior_data_handle): New static global.
2707 (get_ada_tasks_inferior_data): New function.
2708 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2709 (ada_get_environment_task, iterate_over_live_ada_tasks)
2710 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2712 (ada_set_current_inferior_known_tasks_addr): New function.
2713 (read_known_tasks, ada_build_task_list, short_task_info)
2714 (info_tasks, info_task, info_tasks_command, task_command_1)
2715 (task_command, ada_task_list_changed): Adjust.
2716 (ada_tasks_invalidate_inferior_data): New function.
2717 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2718 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2719 * ada-lang.h (struct inferior): Add declaration.
2720 (ada_task_list_changed): Update profile.
2721 * remote-wtx-pd.c: #include "inferior.h".
2722 (switch_to_pd_internal): Update call to ada_task_list_changed.
2724 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2726 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2727 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2728 (atcb_fieldno): Delete these static globals.
2729 (struct ada_tasks_pspace_data): New struct.
2730 (ada_tasks_pspace_data_handle): New static global.
2731 (get_ada_tasks_pspace_data): New function.
2732 (ada_tasks_invalidate_pspace_data): New function.
2733 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2734 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2735 (_initialize_tasks): Create this module's per-progspace
2738 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2740 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2742 2011-09-16 Tristan Gingold <gingold@adacore.com>
2744 * fork-child.c (fork_inferior): Update comment. Use alloca
2745 instead of xmalloc for argv. Move len and shell_command
2746 declarations in the block where they are used.
2747 Only call execvp. Factorize failure code.
2749 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2752 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2753 `exp_element' instead of an element of the same and make the function
2755 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2756 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2757 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2758 Change argument of `write_exp_elt' function call.
2759 Remove extra spaces from comments.
2760 * parser-defs.h (write_exp_elt): Remove prototype.
2762 2011-09-15 Paul Koning <paul_koning@dell.com>
2764 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2765 count of item appended to list.
2766 * python/py-type.c (typy_fields): Likewise.
2768 2011-09-15 Paul Koning <paul_koning@dell.com>
2770 * MAINTAINERS (Write After Approval): Add myself to the list.
2772 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2775 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2776 processes with multiple threads.
2777 (inf_has_multiple_thread_cb): New function.
2778 (inf_has_multiple_threads): New function.
2780 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2782 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2783 * python/py-inferior.c (GdbMethods): New Python method definition.
2785 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2787 Handle multiple breakpoint hits in Python interface:
2788 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2789 variable to breakpoints.
2790 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2791 bps instead of single breakpoint. Fix some space typos.
2792 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2793 variable to breakpoints.
2795 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2797 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2798 note if the breakpoint is internal.
2800 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2802 * MAINTAINERS (Write After Approval): Add myself to the list
2804 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2806 * infrun.c (prepare_for_detach, wait_for_inferior)
2807 (fetch_inferior_event): Don't flush the register cache.
2808 * remote.c (struct stop_reply) <regcache>: Add comment.
2810 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2812 Remove excessive DWARF expressions memory duplication.
2813 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2815 (indirect_pieced_value): Remove variable result. Remove variable
2816 back_to and its use for baton.data.
2817 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2819 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2820 Update the function comment.
2822 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2824 * inferior.h (ALL_INFERIORS): New.
2825 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2826 for a stopped thread.
2827 (thread_db_find_new_threads): Look for threads in all inferiors.
2829 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2831 * breakpoint.c (update_watchpoint): Handle the case of the
2832 watchpoint to update not being in the breakpoint list yet.
2833 (hw_watchpoint_use_count): New, factored out from
2834 hw_watchpoint_used_count.
2835 (hw_watchpoint_used_count): Rename to ...
2836 (hw_watchpoint_used_count_others): ... this. Add `except'
2837 parameter. Don't count resources of `except'. Use
2838 hw_watchpoint_use_count.
2840 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2842 * gdbthread.h (enum thread_state): Moved here.
2843 (struct thread_info): Rename `executing_' field to `executing' and
2844 `state_' to `state'.
2845 * thread.c (enum thread_state): Moved to gdbthread.h.
2846 (new_thread, add_thread_silent, delete_thread_1)
2847 (any_live_thread_of_process, thread_alive, set_running)
2848 (set_running, is_thread_state, any_running, is_executing)
2849 (set_executing, finish_thread_state, print_thread_info)
2850 (do_captured_thread_select): Adjust.
2852 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2854 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2855 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2857 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2858 Matt Rice <ratmice@gmail.com>
2862 * interps.c (struct interp) <interpreter_out>: Delete field.
2863 (interp_new): Remove the data and uiout parameters and adjust.
2864 (interp_set): Only set the current_uiout from the interpreter's
2865 uiout after initializing the interpreter. Adjust call to
2867 (interp_ui_out): Adjust to call procs->ui_out_proc.
2868 (interp_data, interp_name): New.
2869 * interps.h (interp_init_ftype): Add `self' parameter.
2870 (interp_ui_out_ftype): New typedef.
2871 (struct interp_procs) <ui_out_proc>: New method pointer.
2872 (interp_new): Remove the data and uiout parameters.
2873 (interp_data, interp_name): Declare.
2874 * tui/tui-interp.c (tui_init): Adjust prototype.
2876 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2877 tui_out here. Adjust call to interp_new.
2878 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2879 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2881 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2882 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2883 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2884 Initialize mi->uiout depending on the mi_version as extracted from
2885 the interpreter's name.
2887 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2888 interp_new. Don't allocate the ui_out's of the interpreters here.
2890 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2892 * solib.c (solib_used): New function.
2893 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2894 by another so_list object before freeing it.
2896 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2899 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2902 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2905 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2906 (amd64_skip_xmm_prologue): ... this new function. Describe its
2907 parameters. No longer use amd64_prologue_line_bug.
2908 * defs.h (producer_is_gcc_ge_4): New declaration.
2909 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2910 (process_full_comp_unit): Update its caller. Remove
2911 amd64_prologue_line_bug initialization.
2912 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2913 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2915 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2917 * linux-nat.h (enum resume_kind): New.
2918 (struct lwp_info) <last_resume_kind>: New field.
2919 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2920 resume_stop on the new lwp.
2921 (add_lwp): Set last_resume_kind as resume_continue by default.
2922 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2923 (resume_lwp): New, factored out from resume_callback. Also check
2924 for pending status in lp->waitstatus.
2925 (resume_callback): Reimplement.
2926 (resume_clear_callback): Set last_resume_kind as resume_stop.
2927 (resume_set_callback): Set last_resume_kind as resume_continue.
2928 (linux_nat_resume, linux_handle_extended_wait): Set
2930 (running_callback): Also check lp->waitstatus for pending events.
2931 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2933 (stop_and_resume_callback): Don't re-resume if the core wanted the
2934 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2935 using an invalidated pointer.
2936 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2937 SIGSTOPs if the core wanted the LWP to stop.
2938 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2939 wanted the lwp to stop. If the core wanted the lwp to stop, and
2940 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2941 of TARGET_SIGNAL_STOP.
2942 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2943 here. Instead, signal the lwp, and set the last_resume_kind to
2946 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2948 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2949 -1 (error), if the lwp exits right after attaching.
2951 2011-09-08 Doug Evans <dje@google.com>
2953 * py-cmd.c: Some minor formatting fixes.
2954 (gdbpy_parse_command_name): Rename text arg to name, make const.
2955 All callers updated.
2956 * python-internal.h (gdbpy_parse_command_name): Update.
2958 * cli/cli-decode.c (add_cmd): Add comment.
2960 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2962 PR breakpoints/12435
2963 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2964 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2965 * dwarf2read.c (process_full_comp_unit): Initialize
2966 amd64_prologue_line_bug.
2967 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2969 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 Fix TUI screen corruption.
2972 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2975 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 * findvar.c (read_var_value): Never return NULL, throw an error
2978 instead. Update the function comment. State symbol name in the error
2980 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2982 * stack.c (print_frame_args): Likewise.
2983 * valops.c (value_of_variable): Likewise.
2985 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * stack.c (print_frame_args): New variable except. Wrap
2988 read_var_value and common_val_print into TRY_CATCH.
2990 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2993 caller to value_of_this.
2994 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2996 * valops.c (value_of_this): Remove parameter complain and variable ret.
2997 Update function comment. Never return NULL by this code.
2998 (value_of_this_silent): New function.
2999 * value.h (value_of_this): Remove parameter complain.
3000 (value_of_this_silent): New declaration.
3002 2011-09-07 Yao Qi <yao@codesourcery.com>
3004 * gdbthread.h (struct thread_info): Remove fields
3005 `stepping_through_solib_after_catch' and
3006 `stepping_through_solib_catchpoints'.
3007 * infrun.c (init_thread_stepping_state): Update.
3008 (process_event_stop_test, currently_stepping): Update.
3009 (currently_stepping_or_nexting_callback): Update.
3011 2011-09-07 Yao Qi <yao@codesourcery.com>
3013 * gdbthread.h (struct thread_info): Comment on field
3014 `step_after_step_resume_breakpoint'.
3016 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3018 * remote.c (remote_console_output): Reindent.
3020 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3022 * frame.c (has_stack_frames): Check for currently selected
3025 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3027 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3028 (set_async_annotation_level, set_async_prompt, pop_prompt)
3029 (push_prompt, new_async_prompt): Delete declarations.
3030 * top.h (get_prompt, set_prompt): Change prototype.
3031 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3033 * top.c (command_loop):
3034 (top_prompt): New global.
3035 (get_prefix, set_prefix, get_suffix, ): Delete.
3036 (get_prompt, set_prompt): Rewrite.
3037 (show_new_async_prompt): Rename to ...
3038 (show_prompt): ... this.
3039 (init_main): Adjust. Don't handle --annotate=2 here.
3040 * event-top.c (new_async_prompt): Delete.
3041 (the_prompts): Delete.
3042 (more_to_come): Make static.
3043 (display_gdb_prompt): Use top_level_prompt() to compute the top
3044 level prompt, and don't notify the before_prompt observers
3045 directly here. Always trick readline into not trying to display
3046 the prompt if sync_execution and displaying the primary prompt.
3047 If displaying a local/secondary prompt, always show it, even if
3048 sync_execution is set.
3049 (change_annotation_level): Delete.
3050 (top_level_prompt): New, based on change_annotation_level.
3051 (push_prompt, pop_prompt): Delete.
3052 (async_disable_stdin): No longer pushes prompt.
3053 (command_line_handler): No longer pushes or pops prompt. If more
3054 input is expected, call display_gdb_prompt with an explicit empty
3056 (async_stop_sig): Adjust.
3057 (set_async_annotation_level, set_async_prompt): Delete.
3058 * python/python.c (before_prompt_hook): Adjust.
3060 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3064 * infrun.c (fetch_inferior_event): Check if there's a selected
3065 thread before checking if the selected thread is executing.
3067 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3069 * inf-loop.c (execute_command): Don't check if the current thread
3070 if running before synchronously waiting for command completion.
3071 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3073 (normal_stop): Call async_enable_stdin here.
3074 * inf-loop.c (inferior_event_handler): Don't call
3075 async_enable_stdin, nor handle "set exec-done-display" here.
3077 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3081 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3083 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3085 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3087 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3089 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3091 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3093 2011-09-02 Matt Rice <ratmice@gmail.com>
3096 * event-top.c (cli_command_loop): Replace readline setup with
3097 direct call to display_gdb_prompt.
3098 (display_gdb_prompt): Do not call observer mechanism during
3099 synchronous execution.
3101 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3103 * linux-nat.c (in_pid_list_p): New.
3104 (linux_record_stopped_pid): Delete.
3105 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3106 already attached to the LWP. Return an indication if so.
3107 (linux_nat_filter_event): Adjust.
3108 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3109 returning an indication to ignore this thread.
3111 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3113 * top.c: Include interps.h.
3114 (execute_command): If the target can async, but the interpreter is
3115 in sync mode, synchronously wait for the command to finish before
3117 (execute_command_to_string): Force the interpreter to sync mode.
3118 * infrun.c: Include interps.h.
3119 (fetch_inferior_event): Don't restore the prompt yet if the
3120 interpreter is in sync mode.
3121 * interps.c (interpreter_async): New global.
3122 * interps.h (interpreter_async): Declare.
3123 * inf-loop.c: Include interps.h.
3124 (inferior_event_handler): Don't print the language change or run
3125 breakpoint commands yet if the interpreter in is sync mode.
3126 * main.c (captured_command_loop): Flip the interpreter to async
3128 * cli/cli-script.c: Include interps.h.
3129 (execute_user_command, while_command, if_command): Force the
3130 interpreter to sync mode.
3131 * python/python.c: Include interps.h.
3132 (python_command, execute_gdb_command): Force the interpreter to
3135 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3137 * value.c (show_convenience): Catch errors thrown while printing
3138 each internal variable.
3139 * infrun.c (validate_siginfo_access): New function.
3140 (siginfo_value_read, siginfo_value_write): Call it.
3142 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3145 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3146 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3149 2011-08-29 Yao Qi <yao@codesourcery.com>
3151 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3153 (enable_break2): Update caller.
3154 * solib-frv.c (bfd_lookup_symbol): Removed.
3156 (enable_break2): Update caller.
3157 * solib-pa64.c (bfd_lookup_symbol): Removed.
3159 * solib-svr4.c (bfd_lookup_symbol): Removed.
3160 (cmp_name_and_sec_flags): New.
3161 (enable_break): Update caller.
3162 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3163 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3164 (gdb_bfd_lookup_symbol): New.
3165 * solib.h: Functions declarations.
3167 2011-08-29 Yao Qi <yao@codesourcery.com>
3169 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3172 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 Fix TUI stepi on code without symbols.
3175 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3178 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3182 and the static keyword.
3183 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3184 Make prefix an array.
3185 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3186 * mi/mi-main.c (get_register): Remove stb initialization and the static
3189 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3191 Code cleanup - make mi_opt const.
3192 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3194 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3195 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3196 (mi_cmd_env_dir): Likewise.
3197 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3198 (mi_cmd_target_file_put): Likewise.
3199 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3200 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3201 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3202 (mi_valid_noargs): Make opts const.
3203 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3204 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3205 (mi_cmd_data_read_memory): Likewise.
3206 (mi_cmd_data_read_memory_bytes): Likewise.
3207 (mi_cmd_data_write_memory): Likewise.
3209 2011-08-26 Matt Rice <ratmice@gmail.com>
3211 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3212 bcache_xmalloc, replace bcache_xmalloc with call to
3213 psymbol_bcache_init for psymbol_cache.
3214 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3216 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3218 * inf-loop.c (inferior_event_handler): Add exception_print in
3221 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3223 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3224 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3225 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3226 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3227 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3228 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3229 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3230 * infrun.c (fetch_inferior_event): Call
3231 make_bpstat_clear_actions_cleanup.
3232 * top.c (execute_command): New variable cleanup_if_error, call
3233 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3234 * utils.c (do_bpstat_clear_actions_cleanup)
3235 (make_bpstat_clear_actions_cleanup): New functions.
3237 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3239 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3240 either the parent or the child forks. Rename a couple locals.
3242 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3244 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3245 library call. Avoid reading the `status' local if all waitpid
3248 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3250 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3251 opening /proc/PID/task always succeeds.
3253 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3255 * linespec.c (symtab_from_filename): Check for the end of string.
3257 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3260 * varobj.c (cplus_describe_child): Add the keyword
3261 'class' to the output of the method when dealing
3262 with a cast to a base class.
3264 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3266 No functionality change.
3267 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3268 function comment a reference, new variables tp and bs, move here code
3269 from throw_exception.
3270 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3271 describe it in the comment.
3272 * exceptions.c (throw_exception): Remove variable tp, move the code for
3273 bpstat_clear_actions to bpstat_clear_actions.
3275 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3277 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3278 * linux-nat.c: Include linux-procfs.h.
3279 (linux_proc_get_tgid): Move to ...
3280 * common/linux-procfs.c: ... here. New file.
3281 * common/linux-procfs.h: New file.
3282 * linux-thread-db.c: Include linux-procfs.h.
3283 * Makefile.in: Update dependencies.
3284 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3285 * config/arm/linux.mh: Likewise.
3286 * config/i386/linux.mh: Likewise.
3287 * config/i386/linux64.mh: Likewise.
3288 * config/ia64/linux.mh: Likewise.
3289 * config/m32r/linux.mh: Likewise.
3290 * config/m68k/linux.mh: Likewise.
3291 * config/mips/linux.mh: Likewise.
3292 * config/pa/linux.mh: Likewise.
3293 * config/pa/linux.mh: Likewise.
3294 * config/powerpc/linux.mh: Likewise.
3295 * config/powerpc/ppc64-linux.mh: Likewise.
3296 * config/powerpc/spu-linux.mh: Likewise.
3297 * config/sparc/linux.mh: Likewise.
3298 * config/sparc/linux64.mh: Likewise.
3299 * config/xtensa/linux.mh: Likewise.
3301 2011-08-24 Hui Zhu <teawater@gmail.com>
3303 * tracepoint.c (cond_string_is_same): New function.
3304 (find_matching_tracepoint): Add condition check
3305 by cond_string_is_same.
3307 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3309 Fix build error in Darwin port.
3310 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3312 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3315 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3316 (command_line_is_silent): New function.
3317 (bpstat_do_actions_1): No longer use commands_left, use
3318 command_line_is_silent for commands.
3319 (bpstat_alloc): Remove clearing of commands_left.
3320 (bpstat_stop_status): Remove initialization of commands_left, use
3321 command_line_is_silent.
3322 * breakpoint.h (struct bpstats): Remove commands_left.
3324 2011-08-18 Keith Seitz <keiths@redhat.com>
3327 * cp-name-parser.y (struct demangle_info): Remove unused
3330 (allocate_info): Change return type to struct demangle_info *.
3331 Always allocate a new demangle_info.
3332 Remove unused PREV pointer.
3333 (cp_new_demangle_parse_info): New function.
3334 (cp_demangled_name_parse_free): New function.
3335 (do_demangled_name_parse_free_cleanup): New function.
3336 (make_cleanup_cp_demangled_name_parse_free): New function.
3337 (cp_demangled_name_to_comp): Change return type to
3338 struct demangle_parse_info *.
3339 Allocate a new storage for each call.
3340 (main): Update usage for cp_demangled_name_to_comp
3342 * cp-support.h (struct demangle_parse_info): New structure.
3343 (cp_demangled_name_to_comp): Update API change for
3345 (cp_new_demangle_parse_info): Declare.
3346 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3347 (cp_demangled_name_parse_free): Declare.
3348 * cp-support.c (cp_canonicalize_string): Update API
3349 change for cp_demangled_name_to_comp.
3350 (mangled_name_to_comp): Likewise.
3351 Return struct demangle_parse_info, too.
3352 (cp_class_name_from_physname): Update mangled_name_to_comp
3354 (method_name_from_physname): Likewise.
3355 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3356 (cp_remove_params): Likewise.
3357 * python/py-type.c (typy_legacy_template_argument): Likewise.
3359 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3360 (cp_merge_demangle_parse_infos): Declare.
3361 * cp-support.c (ignore_typedefs): New file global.
3362 (copy_string_to_obstack): New function.
3363 (inspect_type): New function.
3364 (replace_typedefs): New function.
3365 (replace_typedefs_qualified_name): New function.
3366 (cp_canonicalize_string_no_typedefs): New function.
3367 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3368 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3369 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3370 instead of cp_canonicalize_string.
3371 (find_method): Likewise.
3372 (decode_compound): Before looking up the name, call
3373 cp_canonicalize_string_no_typedefs.
3374 (decode_variable): Likewise.
3376 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3377 Tom Tromey <tromey@redhat.com>
3378 Matt Rice <ratmice@gmail.com>
3380 * python/lib/gdb/prompt.py: New file.
3381 * python/lib/gdb/command/prompt.py: New file.
3382 * NEWS: Document set extended-prompt and gdb.prompt library
3384 2011-08-16 Yao Qi <yao@codesourcery.com>
3386 * tic6x-linux-tdep.c: Move const arrays definition from here...
3387 * tic6x-tdep.c: to here ...
3389 2011-08-14 Yao Qi <yao@codesourcery.com>
3391 * NEWS: New port to Texas Instruments TMS320C6x.
3393 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3394 Bernd Schmidt <bernds@codesourcery.com>
3395 Yao Qi <yao@codesourcery.com>
3397 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3398 * solib-dsbt.c: New file. Support DSBT shared object.
3399 * tic6x-linux-tdep.c: New file.
3400 * tic6x-tdep.c: New file.
3401 * tic6x-tdep.h: New file.
3403 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3404 Yao Qi <yao@codesourcery.com>
3406 * remote.c (PACKET_qXfer_fdpic): New enum value.
3407 (remote_protocol_features): Add qXfer:fdpic:read packet.
3408 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3409 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3410 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3412 2011-08-14 Yao Qi <yao@codesourcery.com>
3414 Target description for tic6x.
3415 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3416 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3417 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3418 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3419 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3420 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3421 * features/tic6x-c64xp-linux.xml: New.
3422 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3423 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3424 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3425 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3426 * regformats/tic6x-c64xp.dat,
3427 regformats/tic6x-c62x-linux.dat: Generated.
3428 * regformats/tic6x-c64x-linux.dat,
3429 regformats/tic6x-c64xp-linux.dat: Generated.
3430 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3431 features/tic6x-*.c files.
3432 Add regformats/tic6x-*.dat files.
3434 2011-08-12 Doug Evans <dje@google.com>
3436 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3437 * python/py-symbol.c (sympy_get_type): New function.
3438 (symbol_object_getset): Add "type".
3440 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3444 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3446 (tui_show_register_group): Don't store a byte buffer in the data
3448 (tui_register_format): Skip registers with an empty name.
3449 (tui_get_register): Store a struct value in the data element's
3450 value field instead of a byte buffer holding the raw register
3451 contents. Account for optimized-out and unavailable registers
3452 when comparing register contents.
3454 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3456 * printcmd.c (current_display_number): Update comment.
3457 (disable_current_display_cleanup): Delete.
3458 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3459 catch errors thrown while evaluating and printing the display.
3461 2011-08-09 Tom Tromey <tromey@redhat.com>
3463 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3465 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3467 * elfread.c (elf_symtab_read): Rework comments.
3468 * maint.c (maintenance_command): Ditto.
3469 * somread.c (som_symtab_read): Ditto.
3470 * solib.c (solib_find, solib_map_sections, update_solib_list)
3471 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3472 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3473 (sharedlibrary_command, no_shared_libraries): Ditto.
3474 * solib-irix.c (locate_base, disable_break, enable_break)
3475 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3476 (irix_current_sos, irix_open_symbol_file_object)
3477 (irix_special_symbol_handling): Ditto.
3478 * solib-sunos.c (locate_base, first_link_map_member)
3479 (sunos_current_sos, disable_break, enable_break)
3480 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3482 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3483 (open_symbol_file_object, svr4_current_sos, enable_break)
3484 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3486 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3487 (frv_current_sos, enable_break, frv_special_symbol_handling)
3488 (frv_solib_create_inferior_hook): Ditto.
3489 * solist.h (struct target_so_ops): Extend the comments of the
3490 special_symbol_handling, current_sos and open_symbol_file_object
3493 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3495 * python/lib/gdb/__init__.py: Auto-load files in command and
3496 function directories.
3497 * python/python.c (finish_python_initialization): Use
3499 * python/lib/gdb/command/pretty_printers.py: Self register
3501 * NEWS: Document auto-loading.
3503 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3506 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3507 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3509 2011-08-08 Tom Tromey <tromey@redhat.com>
3511 * breakpoint.c (clean_up_filters): Remove.
3512 (catch_syscall_split_args): Use VEC_cleanup.
3514 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3516 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3517 (main): Uncomment "Demangling error\n".
3519 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3521 * solib-target.c (segment_attributes): Make them static.
3522 (section_attributes, library_children, library_attributes): Likewise.
3523 (library_list_children, library_list_attributes): Likesise.
3524 (library_list_elements): Likewise.
3526 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3528 * exceptions.c (throw_exception): Don't disable the current
3530 * printcmd.c (disable_current_display_cleanup): New function.
3531 (do_one_display): Install a cleanup to disable the current display
3532 if doing the display throws.
3534 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3536 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3537 initialization of the tp_new member to the corresponding
3538 gdbpy_initialize_* function.
3539 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3540 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3541 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3542 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3543 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3545 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3548 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3549 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3550 references to current_uiout.
3552 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3554 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3555 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3556 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3557 * top.c (gdb_readline_wrapper): Adjust.
3558 * tui/tui-interp.c (tui_command_loop):
3559 (_initialize_tui_interp): Don't install it.
3561 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3563 * ui-out.h (uiout): Rename to ...
3564 (current_uiout): ... this.
3565 * ui-out.c (uiout): Rename to ...
3566 (current_uiout): ... this.
3567 * ada-lang.c (print_it_exception, print_one_exception)
3568 (print_mention_exception): Adjust.
3569 * breakpoint.c (watchpoint_check): Adjust.
3570 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3571 (default_collect_info, watchpoints_info, print_one_catch_fork)
3572 (print_one_catch_vfork, print_one_catch_syscall)
3573 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3574 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3575 (print_it_watchpoint, print_mention_watchpoint)
3576 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3577 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3578 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3579 (bkpt_print_mention, momentary_bkpt_print_it)
3580 (tracepoint_print_mention, update_static_tracepoint)
3581 (tracepoints_info, save_breakpoints): Adjust.
3582 * cli-out.c (field_separator): Adjust.
3583 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3584 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3585 * frame.c (get_current_frame): Adjust.
3586 * infcmd.c (run_command_1, print_return_value): Adjust.
3587 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3588 * infrun.c (print_end_stepping_range_reason): Adjust.
3589 (print_signal_exited_reason, print_exited_reason): Adjust.
3590 (print_signal_received_reason, print_no_history_reason): Adjust.
3591 * interps.c (interp_set): Adjust.
3592 * osdata.c (info_osdata_command): Adjust.
3593 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3594 * remote-fileio.c (remote_fileio_request): Adjust.
3595 * remote.c (show_remote_cmd): Adjust.
3596 * solib.c (info_sharedlibrary_command): Adjust.
3597 * source.c (print_source_lines_base): Adjust.
3598 * stack.c (print_stack_frame): Adjust.
3599 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3600 * symfile-mem.c (add_vsyscall_page): Adjust.
3601 * symfile.c (load_progress, generic_load)
3602 (print_transfer_performance): Adjust.
3603 * thread.c (info_threads_command, restore_selected_frame)
3604 (thread_command): Adjust.
3605 * top.c (make_cleanup_restore_ui_file): Adjust.
3606 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3607 (print_one_static_tracepoint_marker): Adjust.
3608 * cli/cli-cmds.c (print_disassembly): Adjust.
3609 * cli/cli-decode.c (print_doc_line): Adjust.
3610 * cli/cli-interp.c (safe_execute_command): Adjust.
3611 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3612 (handle_redirections): Adjust.
3613 * cli/cli-script.c (show_user_1): Adjust.
3614 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3615 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3616 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3617 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3618 (mi_cmd_env_dir): Adjust.
3619 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3620 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3621 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3622 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3623 (list_args_or_locals): Adjust.
3624 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3625 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3626 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3627 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3628 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3629 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3630 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3631 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3632 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3633 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3634 (list_available_thread_groups, mi_cmd_list_thread_groups)
3635 (mi_cmd_data_list_register_names)
3636 (mi_cmd_data_list_changed_registers)
3637 (mi_cmd_data_list_register_values, get_register)
3638 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3639 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3640 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3641 (mi_execute_command, mi_load_progress): Adjust.
3642 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3643 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3645 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3646 * tui/tui-interp.c (tui_command_loop): Adjust.
3647 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3649 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3651 * exceptions.c (struct catcher): Remove saved_uiout field.
3652 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3653 no longer save/resvore the global ui_out builder.
3654 (catch_exceptions_with_msg): Save/override/restore the global
3655 ui_out builder manually instead of relying on TRY_CATCH to do it.
3656 (catch_errors): Save/restore the global ui_out builder manually
3657 instead of relying on TRY_CATCH to do it.
3658 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3660 (TRY_CATCH): Adjust.
3661 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3662 the global ui_out builder manually instead of relying on TRY_CATCH
3665 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3667 * breakpoint.c (update_global_location_list): Ensure
3668 invariant 'first loc marked not duplicated and inserted,
3669 following locs marked duplicated/not inserted' is respected
3670 for multiple locations at the same address.
3671 (unduplicated_should_be_inserted) New function.
3672 (swap_insertion) New function.
3674 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 * stack.c (print_frame_arguments_choices): Comment typo fix.
3678 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3681 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3682 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3683 argument. Update callers.
3685 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3688 * doublest.c (convert_doublest_to_floatformat): Pass correct
3689 mantissa length to put_field.
3691 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3693 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3694 exception_print code path.
3695 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3696 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3697 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3699 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3702 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3703 Remove, merge them into ...
3704 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3705 variable args and its initialization.
3706 (struct print_args_args, print_args_stub): Remove, merge them into
3708 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3710 (do_gdb_disassembly): ... here. Remove variable args and its
3712 (print_frame): Remove variable args and its initialization, new
3713 variable gdbarch and numargs (from print_args_stub), inline here
3714 print_args_stub with a TRY_CATCH.
3715 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3717 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3718 New variable e, remove variable btargs and its initialization.
3720 2011-08-01 Tristan Gingold <gingold@adacore.com>
3722 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3724 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3726 * breakpoint.c (insert_bp_location): Document return value.
3727 (insert_breakpoint_locations): Fix documentation.
3728 (remove_breakpoints): Add documentation.
3730 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3732 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3733 argument. Update callers.
3735 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 * stack.c (print_frame_info): Comment typo fix.
3739 2011-07-29 Sterling Augustine <saugustine@google.com>
3741 * MAINTAINERS (Write After Approval): Add myself to the list.
3743 2011-07-29 Tom Tromey <tromey@redhat.com>
3745 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3746 (library_list_start_segment): Update.
3747 (library_list_start_section): Update.
3749 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3751 * varobj.c (value_get_print_value): Move hint check later into the
3752 function. Comment function. Free thevalue before reusing it.
3754 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3755 Pedro Alves <pedro@codesourcery.com>
3757 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3759 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3760 Assert the result kind.
3761 * value.h (value_one): Remove parameter lv.
3763 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 Fix crash on lval_computed values.
3766 * valops.c (value_zero): Use not_lval for lval_computed.
3768 2011-07-27 Tom Tromey <tromey@redhat.com>
3770 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3771 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3773 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3775 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3776 "ptype" by their typedefs difference.
3778 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3780 * dwarf2expr.c (ctx_no_read_reg): New function.
3781 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3782 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3783 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3784 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3786 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3788 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3789 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3791 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3792 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3793 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3794 (ctx_no_get_base_type): Move the functions here.
3795 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3796 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3797 (ctx_no_get_base_type): New declarations.
3799 2011-07-27 Tom Tromey <tromey@redhat.com>
3801 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3803 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3804 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3806 2011-07-26 Sterling Augustine <saugustine@google.com>
3808 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3810 (dump_bfd_file): Likewise.
3812 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3814 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3815 (remote_hw_watchpoint_length_limit): New variable.
3816 (_initialize_remote) add set,show cmds for this new variable.
3817 * gdb.texinfo: document these new commands.
3818 * NEWS: Mention these new commands.
3820 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3822 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3823 true for software watchpoints.
3825 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3829 2011-07-26 Tom Tromey <tromey@redhat.com>
3831 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3832 * dwarf2read.c (read_indirect_string_at_offset): New function.
3833 (read_indirect_string): Use it.
3834 (dwarf_decode_macro_bytes): New function, taken from
3835 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3836 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3837 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3839 (struct dwarf2_per_objfile) <macro>: New field.
3840 (dwarf2_elf_names): Add .debug_macro.
3841 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3842 (dwarf2_locate_sections): Handle new section.
3843 (read_file_scope): Handle DW_AT_GNU_macros.
3844 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3846 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3848 * NEWS: Mention dcache configuration.
3849 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3850 (dcache_size, dcache_line_size): New variables.
3851 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3852 (struct dcache_block): Make it expandable.
3853 (struct dcache_struct): New field.
3854 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3855 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3856 (dcache_poke_byte, dcache_print_line): Adjust.
3857 (set_dcache_size, set_dcache_line_size): New functions.
3858 (set_dcache_command, show_dcache_command): New functions.
3859 (_initialize_dcache): Add new commands.
3861 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3863 * progspace.h (struct program_space): Add solib_add_generation.
3864 * infcmd.c (post_create_inferior): Only call solib_add if not
3866 * solib.c (solib_add): Increment solib_add_generation.
3868 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 Fix implicit pointer offsets.
3871 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3874 2011-07-25 Tom Tromey <tromey@redhat.com>
3876 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3878 (ada_exception_sal): Make 'ops' const.
3879 (ada_decode_exception_location): Likewise.
3880 (ada_decode_assert_location): Likewise.
3881 (catch_assert_command): Update.
3882 (catch_ada_exception_command): Update.
3883 (create_ada_exception_catchpoint): Make 'ops' const.
3884 * breakpoint.c (set_raw_breakpoint_without_location)
3885 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3887 (create_internal_breakpoint): Update.
3888 (init_raw_breakpoint_without_location): Make 'ops' const.
3889 (init_raw_breakpoint, init_catchpoint)
3890 (create_fork_vfork_event_catchpoint)
3891 (create_syscall_event_catchpoint, init_breakpoint_sal)
3892 (create_breakpoint_sal, create_breakpoints_sal)
3893 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3894 * breakpoint.h (struct breakpoint) <ops>: Now const.
3895 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3898 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3900 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3902 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3904 * breakpoint.h (print_recreate_thread): Declare.
3905 (struct breakpoint): Move step_count, pass_count,
3906 number_on_target, static_trace_marker_id,
3907 static_trace_marker_id_idx ...
3908 (struct tracepoint): ... to this new struct.
3909 (get_tracepoint, get_tracepoint_by_number_on_target)
3910 (get_tracepoint_by_number): Change return type to struct
3912 * breakpoint.c (is_tracepoint_type): New, factored out from
3914 (is_tracepoint): Adjust.
3915 (print_one_breakpoint_location): Cast to struct tracepoint as
3916 necessary, and adjust.
3917 (print_recreate_catch_fork, print_recreate_catch_vfork)
3918 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3919 print_recreate_thread.
3920 (init_breakpoint_sal): New, factored out from
3921 create_breakpoint_sal.
3922 (create_breakpoint_sal): Reimplement.
3923 (create_breakpoint): Allocate a struct tracecepoint if the caller
3924 wanted a tracepoint. Use init_breakpoint_sal and
3926 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3927 (print_recreate_masked_watchpoint)
3928 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3929 (tracepoint_print_one_detail): Adjust.
3930 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3931 Dump the pass count here.
3932 (update_static_tracepoint): Adjust.
3933 (addr_string_to_sals): Adjust.
3934 (create_tracepoint_from_upload): Adjust. Change return type to
3935 struct tracepoint pointer.
3936 (trace_pass_set_count): Change parameter type to struct tracepoint
3937 pointer, and adjust.
3938 (trace_pass_command): Adjust.
3939 (get_tracepoint, get_tracepoint_by_number_on_target)
3940 (get_tracepoint_by_number): Change return type to struct
3941 tracepoint pointer, and adjust.
3942 (print_recreate_thread): New, factored out from save_breakpoints.
3943 (save_breakpoints): Don't print thread and task and passcount
3945 * remote.c (remote_download_tracepoint): Adjust.
3946 * tracepoint.c (trace_actions_command, validate_actionline)
3947 (start_tracing, tfind_1, trace_find_tracepoint_command)
3948 (trace_dump_command): Adjust.
3949 (find_matching_tracepoint): Change return type to struct
3950 tracepoint pointer, and adjust.
3951 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3952 (tfile_trace_find, tfile_fetch_registers): Adjust.
3953 * tracepoint.h (create_tracepoint_from_upload): Change return type
3954 to struct tracepoint pointer.
3955 * ada-lang.c (print_recreate_exception): Call
3956 print_recreate_thread.
3957 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3959 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3961 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3962 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3963 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3964 watchpoint_thread, watchpoint_triggered ...
3965 (struct watchpoint): ... to this new struct.
3966 (is_watchpoint): Declare.
3967 (install_breakpoint): Add new `internal' parameter.
3968 * breakpoint.c (is_watchpoint): Delete declaration.
3969 (set_breakpoint_condition): Handle watchpoints.
3970 (is_watchpoint): Make public.
3971 (watchpoint_in_thread_scope): Change parameter type to struct
3973 (watchpoint_del_at_next_stop): Change parameter type to struct
3974 watchpoint. Remove assertion. Adjust.
3975 (update_watchpoint): Ditto.
3976 (insert_breakpoints, breakpoint_init_inferior)
3977 (watchpoints_triggered, watchpoint_check)
3978 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3979 (bpstat_stop_status, print_one_breakpoint_location)
3980 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3981 to struct watchpoint as necessary, and adjust.
3982 (install_breakpoint): Add `internal' argument. If true, don't
3983 mention the new breakpoint. Use set_breakpoint_number.
3984 (create_fork_vfork_event_catchpoint)
3985 (create_syscall_event_catchpoint): Adjust.
3986 (dtor_watchpoint): New.
3987 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3988 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3989 (print_it_watchpoint, print_mention_watchpoint)
3990 (print_recreate_watchpoint, insert_masked_watchpoint)
3991 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3992 (print_one_detail_masked_watchpoint)
3993 (print_mention_masked_watchpoint)
3994 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3995 necessary, and adjust.
3996 (watch_command_1): Allocate and initialize a struct watchpoint
3997 instead of a struct breakpoint. Use install_breakpoint.
3998 (catch_exec_command_1): Adjust.
3999 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4001 (delete_breakpoint, enable_breakpoint_disp)
4002 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4003 as necessary, and adjust.
4004 (initialize_breakpoint_ops): Install dtor_watchpoint as
4005 watchpoints' dtor method.
4006 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4007 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4008 to struct watchpoint as necessary, and adjust.
4010 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4012 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4013 the the base class ops table.
4014 (catch_exception_breakpoint_ops)
4015 (catch_exception_unhandled_breakpoint_ops)
4016 (catch_assert_breakpoint_ops): Don't statically initialize.
4017 (initialize_ada_catchpoint_ops): New.
4018 (_initialize_ada_language): Call it.
4019 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4020 (bkpt_breakpoint_ops): Forward declare.
4021 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4022 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4023 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4024 (masked_watchpoint_breakpoint_ops)
4025 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4026 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4027 base class ops table.
4028 (null_re_set, null_check_status, null_works_in_software_mode)
4029 (null_resources_needed, null_print_one_detail): Delete.
4030 (bkpt_dtor): Rename to ...
4031 (base_breakpoint_dtor): ... this. Make static.
4032 (bkpt_allocate_location): Rename to ...
4033 (base_breakpoint_allocate_location): ... this. Make static.
4034 (base_breakpoint_re_set): New.
4035 (internal_error_pure_virtual_called): New.
4036 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4037 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4038 (base_breakpoint_works_in_software_mode)
4039 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4040 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4041 (base_breakpoint_print_recreate): New functions.
4042 (base_breakpoint_ops): New global.
4043 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4044 (bkpt_breakpoint_hit): Make static.
4045 (bkpt_check_status): Delete.
4046 (bkpt_resources_needed): Make static.
4047 (bkpt_works_in_software_mode): Delete.
4048 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4050 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4051 (momentary_breakpoint_ops): Don't statically initialize.
4052 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4054 (tracepoint_insert_location, tracepoint_remove_location)
4055 (tracepoint_check_status, tracepoint_works_in_software_mode)
4056 (tracepoint_print_it): Delete.
4057 (tracepoint_breakpoint_ops): Don't statically initialize.
4058 (initialize_breakpoint_ops): New.
4059 (_initialize_breakpoint): Call it.
4060 * breakpoint.h (null_re_set, null_works_in_software_mode)
4061 (null_resources_needed, null_check_status, null_print_one_detail):
4062 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4063 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4064 (bkpt_check_status, bkpt_resources_needed)
4065 (bkpt_works_in_software_mode, bkpt_print_it)
4066 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4067 Delete declarations.
4068 (initialize_breakpoint_ops): Declare.
4070 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4072 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4073 (momentary_bkpt_print_it): Simplify.
4075 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4077 Split internal, momentary and user breakpoints breakpoint_ops
4080 * breakpoint.c (internal_breakpoint_ops)
4081 (momentary_breakpoint_ops): Forward declare.
4082 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4083 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4084 (create_overlay_event_breakpoint)
4085 (create_std_terminate_master_breakpoint)
4086 (create_exception_master_breakpoint): Create breakpoints with
4087 internal_breakpoint_ops vtable.
4088 (set_longjmp_breakpoint): Create momentary breakpoints with
4089 momentary_breakpoint_ops vtable, using
4090 momentary_breakpoint_from_master.
4091 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4092 (create_solib_event_breakpoint): Create breakpoints with
4093 internal_breakpoint_ops vtable.
4094 (set_momentary_breakpoint): Create breakpoints with
4095 momentary_breakpoint_ops vtable.
4096 (momentary_breakpoint_from_master): New, factored out from
4097 clone_momentary_breakpoint.
4098 (clone_momentary_breakpoint): Adjust.
4099 (watch_command_1): Create scope breakpoints with
4100 momentary_breakpoint_ops vtable.
4101 (bkpt_re_set): Remove handling of internal and momentary
4103 (bkpt_print_mention, bkpt_print_recreate): New.
4104 (bkpt_breakpoint_ops): Adjust.
4105 (internal_bkpt_re_set, internal_bkpt_check_status)
4106 (internal_bkpt_print_it, internal_bkpt_print_mention)
4107 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4108 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4109 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4110 (momentary_bkpt_print_recreate): New.
4111 (momentary_breakpoint_ops): New.
4113 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4115 Implement most breakpoint_ops methods for all breakpoint types,
4116 and move the default handlings to the proper callbacks.
4118 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4119 works_in_software_mode method.
4120 (insert_bp_location): Go through breakpoint_ops->insert_location
4121 for software and hardware watchpoints.
4122 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4124 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4125 for software and hardware watchpoints.
4126 (print_it_typical): Delete.
4127 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4129 (watchpoint_check): Adjust comment.
4130 (bpstat_check_location): Simply always call the breakpoint's
4131 breakpoint_hit method.
4132 (bpstat_stop_status): Always call the breakpoint's check_status
4133 method. Remove special cases for watchpoints and internal event
4134 breakpoints from here (moved to the check_status implementations).
4135 (print_one_breakpoint_location): Assume b->ops is never NULL.
4136 Remove static tracepoint marker id printing from here (moved to
4137 the print_one_detail callback implementation of tracepoints).
4138 (init_bp_location): Assert OPS is never NULL.
4139 (allocate_bp_location): Always call the breakpoint's
4140 allocate_location method, and remove the default code from here.
4141 (free_bp_location): Always call the location's dtor method, and
4142 remove the default code from here.
4143 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4144 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4145 parameter. Pass it down.
4146 (set_raw_breakpoint): Ditto.
4147 (print_it_catch_fork): Adjust to take a bpstat as argument.
4148 (catch_fork_breakpoint_ops): Install methods.
4149 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4150 (catch_vfork_breakpoint_ops): Install methods.
4151 (dtor_catch_syscall): Call the base dtor.
4152 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4153 (catch_syscall_breakpoint_ops): Install methods.
4154 (dtor_catch_exec): Call the base dtor.
4155 (print_it_catch_exec): Adjust to take a bpstat as argument.
4156 (catch_exec_breakpoint_ops): Install methods.
4157 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4158 the breakpoint's resources_needed method, and remove the default
4160 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4162 (clone_momentary_breakpoint): Clone the original's ops.
4163 (mention): Always call the breakpoint's print_mention method, and
4164 remove the default code from here.
4165 (create_breakpoint_sal): Adjust to pass the ops to
4166 set_raw_breakpoint rather than setting it manually.
4167 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4168 ops to set_raw_breakpoint_without_location rather than setting it
4170 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4171 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4172 (ranged_breakpoint_ops): Install methods.
4173 (break_range_command): Adjust to pass the ops to
4174 set_raw_breakpoint rather than setting it manually.
4175 (re_set_watchpoint, breakpoint_hit_watchpoint)
4176 (check_status_watchpoint, resources_needed_watchpoint)
4177 (works_in_software_mode_watchpoint, print_it_watchpoint)
4178 (print_mention_watchpoint, print_recreate_watchpoint): New
4180 (watchpoint_breakpoint_ops): Install new methods.
4181 (print_it_masked_watchpoint): New function.
4182 (masked_watchpoint_breakpoint_ops): Install new methods.
4183 (watch_command_1): Adjust to pass the right breakpoint_ops to
4184 set_raw_breakpoint_without_location rather than setting it
4185 manually later. Record the current pspace.
4186 (print_it_exception_catchpoint): Adjust to take a bpstat as
4188 (gnu_v3_exception_catchpoint_ops): Install new methods.
4189 (say_where): New function.
4190 (null_re_set, null_check_status, null_works_in_software_mode)
4191 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4193 (bp_location_ops): New global.
4194 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4195 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4196 (bkpt_check_status, bkpt_resources_needed)
4197 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4198 (bkpt_print_recreate): New functions.
4199 (bkpt_breakpoint_ops): New global.
4200 (tracepoint_re_set, tracepoint_insert_location)
4201 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4202 (tracepoint_check_status, tracepoint_works_in_software_mode)
4203 (tracepoint_print_it, tracepoint_print_one_detail)
4204 (tracepoint_print_mention, tracepoint_print_recreate): New
4206 (tracepoint_breakpoint_ops): New global.
4207 (delete_breakpoint): Always call the breakpoint's dtor method, and
4208 remove the default handling from here.
4209 (breakpoint_re_set_default): Make static.
4210 (breakpoint_re_set_one): Always call the breakpoints re_set
4211 method, and remove the default handling from here.
4212 (trace_command, ftrace_command, strace_command)
4213 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4214 to create_breakpoint.
4215 (save_breakpoints): Always call the breakpoint's print_recreate
4216 method, and remove the default handling from here.
4218 * ada-lang.c (dtor_exception): Call the base dtor.
4219 (re_set_exception): Call the base method.
4220 (print_it_exception, print_it_catch_exception): Adjust to take a
4222 (catch_exception_breakpoint_ops): Install methods.
4223 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4225 (catch_exception_unhandled_breakpoint_ops): Install methods.
4226 (print_it_catch_assert): Adjust to take a bpstat as argument.
4227 (catch_assert_breakpoint_ops): Install methods.
4229 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4230 to take a bpstat as argument.
4231 (enum print_stop_action): Add describing comments to each enum
4233 (breakpoint_re_set_default): Delete declaration.
4234 (null_re_set, null_works_in_software_mode, null_resources_needed)
4235 (null_check_status, null_print_one_detail): Declare.
4236 (bkpt_breakpoint_ops): Declare.
4237 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4238 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4239 (bkpt_check_status, bkpt_resources_needed)
4240 (bkpt_works_in_software_mode, bkpt_print_it)
4241 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4244 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4245 bkpt_breakpoint_ops.
4246 * python/py-breakpoint.c (bppy_init): Ditto.
4248 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4250 * MAINTAINERS (Write After Approval): Add myself to the list.
4252 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4254 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4256 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4258 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4259 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4260 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4262 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4263 (struct i386_debug_reg_state): New.
4264 (i386_init_dregs): New.
4266 (i386_cleanup_dregs): Use i386_init_dregs.
4267 (i386_show_dr): Add state parameter and adjust.
4268 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4270 (i386_remove_aligned_watchpoint): Likewise.
4271 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4272 (i386_update_inferior_debug_regs): New.
4273 (i386_insert_watchpoint): Work on a local mirror of the debug
4274 registers, and only update the inferior on success.
4275 (i386_remove_watchpoint): Ditto.
4276 (i386_region_ok_for_watchpoint): Adjust.
4277 (i386_stopped_data_address): Adjust.
4278 (i386_insert_hw_breakpoint): Adjust.
4279 (i386_remove_hw_breakpoint): Adjust.
4281 2011-07-22 Tom Tromey <tromey@redhat.com>
4283 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4284 from amd64_pseudo_register_read. Change arguments. Call
4285 mark_value_bytes_unavailable when needed.
4286 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4287 set_gdbarch_pseudo_register_read.
4288 * sentinel-frame.c (sentinel_frame_prev_register): Use
4289 regcache_cooked_read_value.
4290 * regcache.h (regcache_cooked_read_value): Declare.
4291 * regcache.c (regcache_cooked_read_value): New function.
4292 (regcache_cooked_read): Call
4293 gdbarch_pseudo_register_read_value if available.
4294 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4295 (i386_pseudo_register_read): Remove.
4296 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4297 i386_pseudo_register_read. Change arguments. Call
4298 mark_value_bytes_unavailable when needed.
4299 (i386_pseudo_register_read_value): New function.
4300 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4301 not set_gdbarch_pseudo_register_read.
4302 * gdbarch.sh (pseudo_register_read_value): New method.
4303 * gdbarch.c, gdbarch.h: Rebuild.
4304 * findvar.c (value_from_register): Call get_frame_register_value.
4306 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4308 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4310 (display_gdb_prompt): Likewise.
4311 (change_annotation_level): Likewise.
4312 (push_prompt): Likewise.
4313 (pop_prompt): Likewise.
4314 (handle_stop_sig): Use get_prompt with a level.
4315 * top.c (command_loop): Use get_prompt with a level.
4316 (set_async_annotation_level): Use set_prompt with a level.
4317 (get_prefix): New function.
4318 (set_prefix): Ditto.
4319 (set_suffix): Ditto.
4320 (get_suffix): Ditto.
4321 (get_prompt): Accept a level argument.
4322 (set_prompt): Accept a level argument. Free old prompts. Set
4323 new_async_prompt if level is 0.
4324 (init_main): Use set_prompt with a level. Do not set
4326 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4327 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4328 Modify set_prompt, get_prompt to account for levels.
4329 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4331 * python/python.c (before_prompt_hook): Use set_prompt.
4333 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4335 * defs.h: Add guard against inclusion in gdbserver.
4336 (struct ptid, ptid_t): Move to common/ptid.h.
4337 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4338 xsnprintf, internal_error): Move to common/common-utils.h.
4340 * gdb_assert.h: Move into common/ sub-directory.
4341 * gdb_locale.h: Ditto.
4342 * gdb_dirent.h: Ditto.
4343 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4344 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4345 Move into common/ptid.h.
4346 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4347 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4348 Change nomem to malloc_failure.
4349 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4350 * utils.c (nomem): Rename to malloc_failure.
4351 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4352 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4353 (gdb_buildargv): Change nomem to malloc_failure.
4354 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4355 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4356 ptid_is_pid): Move into common/ptid.c.
4357 (initialize_infrun): Delete initialization of null_ptid and
4359 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4360 linux_common_xfer_osdata.
4361 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4362 common/ptid.c and common/buffer.c.
4363 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4364 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4365 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4366 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4368 * common/gdb_assert.h: New.
4369 * common/gdb_dirent.h: New.
4370 * common/gdb_locale.h: New.
4371 * common/buffer.c: New.
4372 * common/buffer.h: New.
4373 * common/ptid.c: New.
4374 * common/ptid.h: New.
4375 * common/xml-utils.c: New.
4376 * common/xml-utils.h: New.
4377 * common/common-utils.c: New.
4378 * common/common-utils.h: New.
4379 * common/linux-osdata.c: New.
4380 * common/linux-osdata.h: New.
4381 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4382 * config/arm/linux.mh (NATDEPFILES): Ditto.
4383 * config/i386/linux.mh (NATDEPFILES): Ditto.
4384 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4385 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4386 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4387 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4388 * config/mips/linux.mh (NATDEPFILES): Ditto.
4389 * config/pa/linux.mh (NATDEPFILES): Ditto.
4390 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4391 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4392 * config/s390/s390.mh (NATDEPFILES): Ditto.
4393 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4394 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4395 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4397 2011-07-21 Matt Rice <ratmice@gmail.com>
4399 * NEWS: Add info macros and info definitions commands.
4401 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4403 * NEWS: Document Python prompt substitution hook.
4405 2011-07-18 Matt Rice <ratmice@gmail.com>
4408 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4409 * macrotab.c (foreach_macro): Ditto.
4410 (foreach_macro_in_scope): Ditto.
4411 * macrocmd.c (print_macro_callback): New function.
4412 (info_macro_command): Move some code to print_macro_definition.
4413 (print_macro_definition): New function.
4414 (print_one_macro): Add new arguments to callback.
4415 (info_definitions_command): New function.
4416 (info_macros_command): Ditto.
4417 (_initialize_macrocmd): Add info macros and info definitions commands.
4418 * symtab.c (add_macro_name): Add new arguments to callback.
4420 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4421 Tom Tromey <tromey@redhat.com>
4423 * top.c (set_prompt): Rewrite to free previous prompt, free
4424 asynch_new_prompt and set both on new prompts.
4425 * event-top.c (display_gdb_prompt): Add prompt substitution
4427 * python/python.c (before_prompt_hook): New function.
4429 2011-07-20 Matt Rice <ratmice@gmail.com>
4431 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4432 arguments to store_unsigned_integer.
4434 2011-07-20 Tom Tromey <tromey@redhat.com>
4436 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4437 in some declaration-only cases.
4439 2011-07-18 Tom Tromey <tromey@redhat.com>
4442 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4443 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4444 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4445 <debug_type_section>: New field.
4446 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4447 (load_cu): Use appropriate section.
4448 (create_signatured_type_table_from_index): Add 'section'
4450 (dwarf2_read_index): Only allow a single .debug_types section.
4451 (dw2_get_file_names): Use appropriate section.
4452 (read_type_comp_unit_head): Add 'section' argument.
4453 (create_debug_types_hash_table): Loop over all .debug_types
4455 (init_cu_die_reader): Use appropriate section.
4456 (process_psymtab_comp_unit, load_partial_comp_unit)
4457 (load_full_comp_unit, read_die_and_children, find_partial_die)
4458 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4459 (lookup_signatured_type_at_offset): Add 'section' argument.
4460 (read_signatured_type_at_offset): Add 'sect' argument.
4461 (read_signatured_type): Use appropriate section.
4462 (set_die_type, get_die_type_at_offset): Update.
4463 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4465 (write_psymtabs_to_index): Don't allow index with more than one
4466 .debug_types section.
4468 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 Fix crash if referenced CU is aged out.
4471 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4472 xfree of block.data.
4473 (indirect_pieced_value): New variable back_to, use to for xfree of
4475 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4477 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4478 (load_cu): New function from ...
4479 (dw2_do_instantiate_symtab): ... the code here ...
4480 (process_full_comp_unit): ... and here.
4481 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4484 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4489 2011-07-19 Gary Benson <gbenson@redhat.com>
4491 * infrun.c (struct execution_control_state): New member
4492 stop_func_filled_in.
4493 (clear_stop_func, fill_in_stop_func): New functions.
4494 (handle_inferior_event): Call clear_stop_func rather than
4495 manipulating the execution control state directly.
4496 Call fill_in_stop_func lazily as required rather than
4497 directly calling find_pc_partial_function in all cases.
4499 2011-07-18 Tom Tromey <tromey@redhat.com>
4501 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4502 checking for variable-sized array.
4504 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4506 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4507 of supported languages.
4508 * varobj.c: Add top definitions and basic implementation of the
4509 following callbacks: ada_number_of_children, ada_name_of_variable,
4510 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4511 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4512 (languages): Register Ada-specific callbacks.
4513 (variable_language): Add the Ada case in the language setter switch.
4515 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4519 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4522 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4523 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4524 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4525 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4526 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4527 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4528 (struct dwarf_expr_context_funcs): New, move here methods from ...
4529 (struct dwarf_expr_context): ... here. New fields funcs.
4530 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4531 (dwarf_expr_ctx_funcs): New.
4532 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4533 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4534 (needs_frame_ctx_funcs): New.
4535 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4537 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4539 * MAINTAINERS (Write After Approval): Add myself to the list.
4541 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4543 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4544 that CIE pointer of an FDE really points to a CIE .
4546 2011-07-15 Hui Zhu <teawater@gmail.com>
4548 * remote.c (remote_get_trace_status): Add comments.
4550 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4552 Code cleanup - constify struct lval_funcs.
4553 * dwarf2loc.c (pieced_value_funcs): Make it const.
4554 * infrun.c (siginfo_value_funcs): Likewise.
4555 * opencl-lang.c (opencl_value_funcs): Likewise.
4556 * valops.c (value_assign, value_ind): Make the funcs variable const.
4557 * value.c (struct value): Make location.computed.funcs target const.
4558 Rearrange the comments.
4559 (allocate_computed_value): Make the funcs parameter target const.
4560 (value_computed_funcs): Return the funcs target const.
4561 (value_free, value_copy, set_value_component_location): Make the funcs
4563 * value.h (allocate_computed_value): Make the funcs parameter target
4565 (value_computed_funcs): Return the funcs target const.
4566 * windows-tdep.c (tlb_value_funcs): Make it const.
4568 2011-07-14 Hui Zhu <teawater@gmail.com>
4570 * remote.c (remote_get_trace_status): Initialize p.
4572 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4575 * remote.c (remote_get_trace_status): New variable ex. Put
4576 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4578 2011-07-13 Tom Tromey <tromey@redhat.com>
4580 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4581 value_from_contents for final conversion.
4583 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4586 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4587 Indent prototypes so they do not get into tags.
4589 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4591 Code cleanup making also optimized out values lazy.
4592 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4593 allocate_optimized_out_value. Twice.
4594 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4595 * findvar.c (read_var_value): Likewise.
4596 * value.c (allocate_optimized_out_value): New function.
4597 * value.h (allocate_optimized_out_value): New declaration.
4599 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4601 Fix occasional crash of CTRL-C during DWARF read in.
4602 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4604 2011-07-11 Tom Tromey <tromey@redhat.com>
4606 * regcache.c (struct regcache_descr): Fix typo.
4607 * i387-tdep.c (i387_supply_xsave): Fix typo.
4609 2011-07-11 Tom Tromey <tromey@redhat.com>
4611 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4612 (read_file_scope, read_type_unit_scope): Use it.
4614 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4616 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4619 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4622 * python/python.c: Set gdbpy_should_print_stack default to off.
4623 (set_python): Deprecate maint set python print-stack to
4625 (_initialize_python): Deprecate maint set/show python print-stack.
4626 Add new prefix command, python. Add new setting, print-backtrace.
4627 * NEWS: Document set python print-stack. Document default change.
4629 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4631 * python/py-inferior.c (infpy_dealloc): New function.
4632 (inferior_to_inferior_object): Return a new object, or a
4633 new reference to the existing object.
4634 (find_thread_object): Cleanup references to inferior.
4635 (delete_thread_object): Ditto.
4636 * python/py-infthread.c (create_thread_object): Do not increment
4637 inferior reference count.
4639 2011-07-08 Tom Tromey <tromey@redhat.com>
4641 * dwarf2loc.c (locexpr_regname): New function.
4642 (locexpr_describe_location_piece): Use it.
4643 (disassemble_dwarf_expression): Add per_cu argument. Use
4645 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4646 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4648 (locexpr_describe_location_1): Add per_cu argument.
4649 (locexpr_describe_location): Update.
4650 (loclist_describe_location): Update.
4652 2011-07-08 Tom Tromey <tromey@redhat.com>
4654 * dwarf2expr.c (execute_stack_op): Add QUIT.
4656 2011-07-07 Hui Zhu <teawater@gmail.com>
4659 2011-07-06 Hui Zhu <teawater@gmail.com>
4660 * remote.c (remote_start_remote): Add TRY_CATCH for
4661 remote_get_trace_status.
4662 * tracepoint.c (disconnect_tracing): Ditto.
4664 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4666 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4667 variables as signed, not unsigned.
4669 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4671 * jit.c (jit_inferior_init): Reformat forward declaration.
4673 2011-07-06 Matt Rice <ratmice@gmail.com>
4675 * MAINTAINERS (Write After Approval): Add myself to the list.
4677 2011-07-06 Hui Zhu <teawater@gmail.com>
4679 * remote.c (remote_start_remote): Add TRY_CATCH for
4680 remote_get_trace_status.
4681 * tracepoint.c (disconnect_tracing): Ditto.
4683 2011-07-05 Tom Tromey <tromey@redhat.com>
4685 * symtab.c (operator_chars): Now static.
4686 * linespec.c (operator_chars): Don't declare.
4688 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4690 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4692 2011-07-05 Tom Tromey <tromey@redhat.com>
4694 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4695 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4696 (TYPE_CPLUS_REALLY_JAVA): New macro.
4697 * dwarf2read.c (process_structure_scope): Set
4698 TYPE_CPLUS_REALLY_JAVA.
4700 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4702 * ada-lang.c: Fix typos.
4703 * amd64-tdep.c: Likewise.
4704 * breakpoint.c: Likewise.
4705 * cli/cli-decode.c: Likewise.
4706 * findcmd.c: Likewise.
4707 * inline-frame.c: Likewise.
4708 * mi/mi-main.c: Likewise.
4709 * minsyms.c: Likewise.
4710 * monitor.c: Likewise.
4711 * monitor.h: Likewise.
4712 * prologue-value.c: Likewise.
4713 * reverse.c: Likewise.
4714 * s390-tdep.c: Likewise.
4716 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4718 * jit.c (jit_inferior_init): Forward declare.
4719 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4721 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4723 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4725 2011-07-04 Tristan Gingold <gingold@adacore.com>
4727 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4728 (tcb_fieldno): Add activation_link field.
4729 (get_known_tasks_addr): Moved and rewritten.
4730 (get_tcb_types_info): Set activation_link field.
4731 (read_known_tasks_array): Add parameter. Rewritten.
4732 (read_known_tasks_list): New function.
4733 (read_known_tasks): New function.
4734 (ada_build_task_list): Call read_known_tasks instead of
4735 read_known_tasks_array.
4736 * ravenscar-thread.c: Add first_task_name constant.
4737 (has_ravenscar_runtime): Check for task list too.
4739 2011-07-04 Tristan Gingold <gingold@adacore.com>
4741 * ada-tasks.c: Renames fieldno to actb_fieldno.
4742 (ada_get_task_number): Indentation.
4743 (get_tcb_types_info): Remove all parameters. Write directly
4745 (ptid_from_atcb_common): Adjust.
4746 (read_atcb): Adjust.
4748 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4750 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4752 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4754 * ui-out.c (ui_out_field_core_addr): Mention that the function
4755 description is in the header file.
4756 * ui-out.h (ui_out_field_core_addr): Document function.
4758 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4760 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4761 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4763 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4765 * symtab.c (expand_line_sal): Remove empty line.
4767 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4769 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4770 same way as ELFOSABI_NONE.
4771 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4773 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4775 * breakpoint.c: Fix typos in comments.
4776 * linespec.c: Likewise.
4777 * symtab.c: Likewise.
4779 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4781 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4782 section in separate object files.
4784 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4786 Fix false GCC warning.
4787 * linespec.c (decode_line_1): Initialize values.
4789 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 * linespec.c (find_method): Accept the function type automatically only
4792 if it was specified with parameter types.
4794 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 Stop on first linespec terminator instead of eating what we can.
4797 * linespec.c (is_linespec_boundary): New function.
4798 (name_end): Remove function.
4799 (keep_name_info): New parameter on_boundary, replace the body.
4800 (decode_line_1): Provide the parameter to keep_name_info.
4801 (decode_compound): Likewise. Drop the trailing java return type
4804 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4806 Fall back linespec to minimal symbols.
4807 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4808 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4809 (find_method, symbol_found): Change error to cplusplus_error.
4811 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4815 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4816 Tom Tromey <tromey@redhat.com>
4818 * dwarf2read.c (check_physname): New variable.
4819 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4820 (show_check_physname): New function.
4821 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4823 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4825 * machoread.c (macho_symfile_read): Delete OBE comment.
4827 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4829 * machoread.c (struct macho_oso_data): Delete.
4830 (current_oso): Delete.
4831 (macho_relocate_common_syms): New function, mostly extracted
4833 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4834 Remove code that sets and unset current_oso.
4835 (macho_symfile_relocate): Delete handling of common symbols,
4836 now moved to macho_relocate_common_syms.
4838 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4840 * darwin-nat.c (darwin_ptrace): Add documentation.
4841 Set errno to zero before calling ptrace. If ptrace returns
4842 -1 and errno is zero, then change then return zero.
4843 (darwin_kill_inferior): Issue a warning instead of triggering
4844 a failed assertion when the PT_KILL ptrace operations returned
4847 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4849 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4850 only when inf->private->no_ptrace.
4852 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4854 * ada-lang.c (print_it_exception): Print temporary catchpoints
4855 as "Temporary catchpoint".
4856 (print_mention_exception): Likewise.
4858 2011-07-01 Tom Tromey <tromey@redhat.com>
4860 * jv-lang.c (java_language_defn): Use java_printchar,
4862 (java_get_encoding): New function.
4863 (java_emit_char): Use generic_emit_char.
4864 (java_printchar): New function.
4865 (java_printstr): Likewise.
4867 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4869 * ada-typeprint.c (print_record_type): If unable to decode
4870 the name of the parent type, use the encoded name.
4872 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4874 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4875 pointer to constrained packed array type output.
4876 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4877 packed array output.
4879 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4881 * ada-typeprint.c (print_array_type): removed if condition on show
4882 being negative for bounds printing.
4884 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4886 * ada-lang.c (ada_identical_enum_types_p): New function.
4887 (symbols_are_identical_enums): New function.
4888 (remove_extra_symbols): Do nothing if NSYMS < 2.
4889 Use symbols_are_identical_enums.
4891 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4893 * ada-valprint.c (ada_value_print): Handle typedefs.
4895 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4897 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4899 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4901 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4902 (decode_constrained_packed_array): Likewise.
4903 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4905 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4907 * ada-exp.y (convert_char_literal): Handle typedef types.
4909 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4911 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4913 2011-06-30 Tom Tromey <tromey@redhat.com>
4915 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4916 * valops.c (find_overload_match): Call do_cleanups on early exit
4918 * solib.c (solib_find): Call do_cleanups on early exit path.
4920 2011-06-30 Tom Tromey <tromey@redhat.com>
4922 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4923 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4924 return paths. Defer final do_cleanups until last return.
4925 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4928 2011-06-30 Tom Tromey <tromey@redhat.com>
4930 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4932 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4934 * MAINTAINERS (Write After Approval): Add myself to the list.
4936 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4938 Disable epilogue unwinders on recent GCCs.
4939 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4940 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4941 * dwarf2read.c (process_full_comp_unit): Initialize
4942 EPILOGUE_UNWIND_VALID.
4943 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4944 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4945 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4947 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 Code cleanup - reformatting.
4950 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4951 (producer_is_gcc_ge_4): ... here, change the return value.
4952 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4955 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4957 Fix non-only rename list for Fortran modules import.
4958 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4959 cp_add_using_directive caller.
4960 (cp_add_using_directive): New parameter excludes, describe it. New
4961 variables ix and param. Compare if also excludes match. Allocate NEW
4962 with variable size, initialize EXCLUDES there.
4963 (cp_lookup_symbol_imports): New variable excludep, test
4964 current->EXCLUDES with it.
4965 * cp-support.h: Include vec.h.
4966 (struct using_direct): New field excludes, describe it.
4967 (DEF_VEC_P (const_char_ptr)): New.
4968 (cp_add_using_directive): New parameter excludes.
4969 * defs.h (const_char_ptr): New typedef.
4970 * dwarf2read.c (read_import_statement): New variables child_die,
4971 excludes and cleanups, read in excludes.
4972 (read_namespace): Adjust the cp_add_using_directive caller.
4974 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4977 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4978 negative comparisons.
4980 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4982 * mi/mi-main.c (mi_cmd_list_features): Emit
4983 breakpoint-notifications.
4985 2011-06-29 Tom Tromey <tromey@redhat.com>
4988 * valprint.h (generic_emit_char, generic_printstr): Declare.
4989 * valprint.c (wchar_printable, append_string_as_wide)
4990 (print_wchar): Move from c-lang.c.
4991 (generic_emit_char): New function; mostly taken from c_emit_char.
4992 (generic_printstr): New function; mostly taken from c_printstr.
4993 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4994 represented as arrays.
4995 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4997 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4998 identically to TYPE_CODE_INT.
4999 * f-lang.c (f_get_encoding): New function.
5000 (f_emit_char): Use generic_emit_char.
5001 (f_printchar): Replace comment.
5002 (f_printstr): Use generic_printstr.
5003 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5004 "character" types specially.
5005 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5007 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5009 (c_emit_char): Call generic_emit_char.
5010 (c_printstr): Call generic_printstr.
5012 2011-06-29 Gary Benson <gbenson@redhat.com>
5014 * breakpoint.c (bpstat_what): Removed duplicated case.
5016 2011-06-28 Tom Tromey <tromey@redhat.com>
5018 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5020 2011-06-27 Tom Tromey <tromey@redhat.com>
5022 * valops.c (find_overload_match): Call do_cleanups before early
5024 * top.c (execute_command): Call do_cleanups before early return.
5025 (command_loop): Likewise.
5026 * stack.c (backtrace_command): Make a null cleanup early. Don't
5027 conditionally call do_cleanups.
5028 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5030 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5031 so cleanups are always run.
5032 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5033 * findcmd.c (parse_find_args): Call do_cleanups on early return
5035 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5036 Don't conditionally call do_cleanups.
5037 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5040 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5042 * MAINTAINERS (Write After Approval): Use default email address.
5044 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5046 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5048 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5050 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5051 saved_regs_mask and copied_regs_mask fields.
5052 (sparc_record_save_insn): New prototype.
5053 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5054 (sparc_record_save_insn): New function.
5055 (sparc_analyze_prologue): Add head comment. Recognize store insns
5056 of call-saved registers. Use OFFSET consistently. Recognize flat
5057 frames and cache their settings.
5058 (sparc32_skip_prologue): Handle flat frames.
5059 (sparc_frame_cache): Add frame_offset to the base address.
5060 (sparc32_frame_cache): Adjust to new frame description.
5061 (sparc32_frame_prev_register): Likewise.
5062 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5063 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5064 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5065 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5066 frame by calling sparc_record_save_insn.
5067 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5068 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5069 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5071 2011-06-27 Tristan Gingold <gingold@adacore.com>
5073 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5074 field by map_addr and map_len.
5075 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5076 (munmap_section_buffer): Likewise.
5078 2011-06-24 Tom Tromey <tromey@redhat.com>
5080 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5081 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5082 * python/python.c (gdbpy_parameter): Make 'arg' const.
5083 (execute_gdb_command): Likewise.
5084 (gdbpy_decode_line): Likewise. Copy it.
5085 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5086 (gdbpy_write): Make 'arg' const.
5087 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5089 (gdbpy_lookup_type): Likewise.
5090 * python/py-prettyprint.c (print_children): Make 'name' const.
5091 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5092 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5094 * python/py-function.c (fnpy_init): Make 'name' const.
5095 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5096 (gdbpy_string_to_argv): Make 'input' const.
5097 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5099 * gdbtypes.h (lookup_typename): Update.
5100 * gdbtypes.c (lookup_typename): Make 'name' const.
5101 (lookup_struct): Likewise.
5102 (lookup_union): Likewise.
5103 (lookup_enum): Likewise.
5105 2011-06-24 Tom Tromey <tromey@redhat.com>
5107 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5108 gdb_thread_db.h. Move all common/ entries to be together.
5109 (TAGS): Don't depend on DEPFILES.
5111 2011-06-23 Yao Qi <yao@codesourcery.com>
5113 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5114 * remote.c (remote_start_remote): ... here.
5115 * monitor.c (monitor_open): ... here.
5117 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5119 * gdbtypes.c (append_composite_type_field_aligned): Fix
5120 calculation of bit position based on alignment.
5122 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5124 * breakpoint.c (bpstat_stop_status): Call the check_status
5125 breakpoint_ops method.
5126 (print_one_breakpoint_location): Also print the condition for Ada
5127 exception catchpoints.
5128 (allocate_bp_location): New, factored out from
5129 allocate_bp_location.
5130 (allocate_bp_location): Adjust. Call the owner breakpoint's
5131 allocate_location method, if there is one.
5132 (free_bp_location): Call the locations's dtor method, if there is
5134 (init_raw_breakpoint_without_location): New breakpoint_ops
5136 (set_raw_breakpoint_without_location): Adjust.
5137 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5138 (set_raw_breakpoint): Adjust.
5139 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5140 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5141 re_set and check_status methods.
5142 (init_catchpoint): Don't memset, initialize thread, addr_string
5143 and enable_state. Pass the ops down to init_raw_breakpoint.
5144 (install_catchpoint): Rename to ...
5145 (install_breakpoint): ... this, and make extern.
5146 (create_fork_vfork_event_catchpoint): Adjust.
5147 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5148 re_set and check_status methods.
5149 (create_syscall_event_catchpoint): Adjust.
5150 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5151 (masked_watchpoint_breakpoint_ops): Install NULL
5152 allocate_location, re_set and check_status methods.
5153 (catch_exec_command_1): Adjust.
5154 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5155 re_set and check_status methods.
5156 (create_ada_exception_breakpoint): Rename to ...
5157 (init_ada_exception_breakpoint): ... this. Add a struct
5158 breakpoint parameter, and delete the exp_string, cond_string and
5159 cond parameters. Use init_raw_breakpoint, and don't install or
5160 mention the breakpoint yet. Don't clear breakpoint fields that
5161 init_raw_breakpoint already clears.
5162 (re_set_breakpoint): Delete, split into ...
5163 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5165 (breakpoint_re_set_one): Call the breakpoint's
5166 breakpoint_ops->re_set implementation, if there's one. Adjust.
5167 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5168 (struct bp_location_ops): New type.
5169 (struct bp_location): New field `ops'.
5170 (struct breakpoint_ops): New `allocate_location', `re_set' and
5171 `check_status' fields. Make `breakpoint_hit''s description match
5173 (init_bp_location): Declare.
5174 (breakpoint_re_set_default): Declare.
5175 (create_ada_exception_breakpoint): Rename to ...
5176 (init_ada_exception_breakpoint): ... this. Add a struct
5177 breakpoint parameter, and delete the exp_string, cond_string and
5179 (install_breakpoint): Declare.
5180 * ada-lang.c: Include exceptions.h.
5181 <Ada exceptions description>: Update.
5182 (struct ada_catchpoint_location): New type.
5183 (ada_catchpoint_location_dtor): New function.
5184 (ada_catchpoint_location_ops): New global.
5185 (ada_catchpoint): New type.
5186 (create_excep_cond_exprs): New function.
5187 (dtor_exception, allocate_location_exception, re_set_exception)
5188 (should_stop_exception, check_status_exception): New functions.
5189 (print_one_exception, print_mention_exception)
5190 (print_recreate_exception): Adjust.
5191 (dtor_catch_exception, allocate_location_catch_exception)
5192 (re_set_catch_exception, check_status_catch_exception): New
5194 (catch_exception_breakpoint_ops): Install them.
5195 (dtor_catch_exception_unhandled)
5196 (allocate_location_catch_exception_unhandled)
5197 (re_set_catch_exception_unhandled)
5198 (check_status_catch_exception_unhandled): New functions.
5199 (catch_exception_unhandled_breakpoint_ops): Install them.
5200 (dtor_catch_assert, allocate_location_catch_assert)
5201 (re_set_catch_assert, check_status_catch_assert): New functions.
5202 (catch_assert_breakpoint_ops): Install them.
5203 (ada_exception_catchpoint_p): Delete.
5204 (catch_ada_exception_command_split)
5205 (ada_exception_catchpoint_cond_string): Rename exp_string
5206 parameter to excep_string. Adjust.
5207 (ada_parse_catchpoint_condition): Delete.
5208 (ada_exception_sal): Rename the exp_string parameter to
5209 excep_string. Delete the cond_string and cond parameters.
5211 (ada_decode_exception_location): Rename the exp_string parameter
5212 to excep_string. Delete the cond_string and cond parameters.
5214 (create_ada_exception_catchpoint): New function.
5215 (catch_ada_exception_command, ada_decode_assert_location)
5216 (catch_assert_command): Adjust.
5217 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5219 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5221 * ada-lang.c: Include arch-utils.h.
5222 (ada_decode_exception_location): Make static.
5223 (catch_ada_exception_command): Moved here from breakpoint.c.
5224 (ada_decode_assert_location): Make static.
5225 (catch_assert_command): Moved here from breakpoint.c.
5226 (_initialize_ada_lang): Install the exception and assert
5227 catchpoint commands here.
5228 * ada-lang.h (ada_decode_exception_location)
5229 (ada_decode_assert_location): Delete declarations.
5230 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5232 (create_ada_exception_breakpoint): Make extern.
5233 (catch_ada_exception_command, catch_assert_command): Moved to
5235 (add_catch_command): Make extern.
5236 (_initilize_breakpoint): Don't install the exception and assert
5237 catchpoint commands here.
5238 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5240 (add_catch_command, create_ada_exception_breakpoint): Declare.
5242 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5244 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5245 the breakpoint to the breakpoint chain here.
5246 (set_raw_breakpoint_without_location): Add the breakpoint to the
5247 breakpoint chain here.
5248 (init_raw_breakpoint): Adjust comments.
5249 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5251 (init_catchpoint): Don't set the catchpoint's breakpoint number
5253 (install_catchpoint): New function.
5254 (create_fork_vfork_event_catchpoint)
5255 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5256 use install_catchpoint.
5258 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5260 * breakpoint.c (create_catchpoint_without_mention)
5261 (create_catchpoint): Delete.
5263 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5265 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5266 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5267 reference to exec_pathname.
5268 (struct exec_catchpoint): New type.
5269 (dtor_catch_exec): New function.
5270 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5271 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5272 (catch_exec_command_1): Adjust to use init_catchpoint.
5273 (delete_breakpoint): Remove reference to exec_pathname.
5275 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5277 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5278 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5279 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5280 reference to syscalls_to_be_caught.
5281 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5283 (struct syscall_catchpoint): New type.
5284 (dtor_catch_syscall): New function.
5285 (insert_catch_syscall, remove_catch_syscall)
5286 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5287 (print_recreate_catch_syscall): Adjust.
5288 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5289 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5290 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5291 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5292 (masked_watchpoint_breakpoint_ops)
5293 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5294 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5295 there is one. Remove references to syscalls_to_be_caught.
5296 (catching_syscall_number): Adjust.
5297 * ada-lang.c (catch_exception_breakpoint_ops)
5298 (catch_exception_unhandled_breakpoint_ops)
5299 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5301 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5303 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5305 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5306 reference to forked_inferior_pid.
5307 (struct fork_catchpoint): New type.
5308 (breakpoint_hit_catch_fork, print_it_catch_fork)
5309 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5310 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5311 (create_fork_vfork_event_catchpoint): Adjust to use
5314 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5316 * breakpoint.c (add_to_breakpoint_chain)
5317 (init_raw_breakpoint_without_location): New functions, factored
5319 (set_raw_breakpoint_without_location): ... this one.
5320 (init_raw_breakpoint): New function, factored out from
5321 set_raw_breakpoint and adjusted to use
5322 init_raw_breakpoint_without_location.
5323 (set_raw_breakpoint): Adjust.
5324 (init_catchpoint): New function, factored out from
5325 create_catchpoint_without_mention and adjusted to use
5326 init_raw_breakpoint.
5327 (create_catchpoint_without_mention): Adjust.
5329 2011-06-22 Tom Tromey <tromey@redhat.com>
5331 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5332 argument of 0 specially.
5334 2011-06-22 Yao Qi <yao@codesourcery.com>
5336 * infrun.c (handle_inferior_event): Remove write-only local variable
5337 `sw_single_step_trap_p'.
5339 2011-06-20 Tom Tromey <tromey@redhat.com>
5341 * symtab.c (lookup_language_this): End loop if block is NULL.
5343 2011-06-17 Tom Tromey <tromey@redhat.com>
5345 * valops.c (value_of_this): Use lookup_language_this.
5346 * symtab.h (lookup_language_this): Declare.
5347 * symtab.c (lookup_language_this): New function.
5348 (lookup_symbol_aux): Use lookup_language_this.
5349 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5351 2011-06-17 Tom Tromey <tromey@redhat.com>
5353 * value.h (value_of_this): Update.
5354 (value_of_local): Remove.
5355 * valops.c (value_of_this): Rename from value_of_local. Change
5357 * p-exp.y (exp): Update.
5358 (variable): Likewise.
5359 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5361 2011-06-17 Tom Tromey <tromey@redhat.com>
5363 * valops.c (value_of_local): Complain if NAME is NULL.
5364 * std-operator.def (OP_OBJC_SELF): Remove.
5365 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5366 * objc-exp.y (name_not_typename): Use OP_THIS.
5367 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5369 <OP_OBJC_SELF>: Remove.
5370 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5372 2011-06-16 Tristan Gingold <gingold@adacore.com>
5374 * python/py-events.h (gdb_py_events): Make it extern.
5375 * python/py-evtregistry.c (gdb_py_events): Declare.
5377 2011-06-16 Hui Zhu <teawater@gmail.com>
5379 * remote.c (remote_trace_set_readonly_regions): Add check for
5380 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5383 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5385 * arm-linux-tdep.c: Include "auxv.h".
5387 (ARM_LINUX_SIZEOF_VFP): Define.
5388 (arm_linux_supply_vfp): New function.
5389 (arm_linux_collect_vfp): Likewise.
5390 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5391 (arm_linux_fpa_regset_sections): New variable.
5392 (arm_linux_vfp_regset_sections): Likewise.
5393 (arm_linux_core_read_description): New function.
5394 (arm_linux_init_abi): Install arm_linux_core_read_description and
5395 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5396 appropriate for the architecture.
5397 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5398 (tdesc_arm_with_m): Declare.
5399 (tdesc_arm_with_iwmmxt): Likewise.
5400 (tdesc_arm_with_vfpv2): Likewise.
5401 (tdesc_arm_with_vfpv3): Likewise.
5402 (tdesc_arm_with_neon): Likewise.
5403 * arm-linux-nat.c: Move features/*.c includes ...
5404 * arm-tdep.c: ... here.
5405 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5406 target description data structures ...
5407 * arm-tdep.c (_initialize_arm_tdep): ... here.
5408 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5409 HWCAP_VFPv3D16): Move definitions ...
5410 * arm-linux-tdep.h: ... here.
5412 2011-06-15 Hui Zhu <teawater@gmail.com>
5414 * remote.c (remote_trace_set_readonly_regions): Add a check for
5417 2011-06-14 Tom Tromey <tromey@redhat.com>
5419 * coffread.c (coffread_objfile): Rename from current_objfile.
5420 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5421 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5423 2011-06-14 Tom Tromey <tromey@redhat.com>
5425 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5426 (class_symtab): Remove.
5427 (jv_dynamics_progspace_key): New global.
5428 (jv_per_objfile_free): Reset program space data. Update assert.
5429 Don't clear globals.
5430 (get_dynamics_objfile): Use and set program space data.
5431 (get_java_class_symtab): Use get_dynamics_objfile.
5432 (add_class_symbol): Likewise.
5433 (java_link_class_type): Likewise.
5434 (java_object_type, jv_clear_object_type, set_java_object_type):
5436 (get_java_object_type): Update. Don't cache result.
5437 (is_object_type): Don't call set_java_object_type.
5438 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5439 initialize jv_dynamics_progspace_key.
5441 2011-06-14 Tom Tromey <tromey@redhat.com>
5443 * symtab.h (current_objfile): Don't declare.
5444 * objfiles.h (current_objfile): Don't declare.
5445 * objfiles.c (current_objfile): Remove.
5446 * mdebugread.c (current_objfile): New file-scope global.
5447 * dbxread.c (current_objfile): New file-scope global.
5448 * coffread.c (current_objfile): New file-scope global.
5450 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5452 * top.h (line): Rename to ...
5453 (saved_command_line): ... this.
5454 (linesize): Rename to ...
5455 (saved_command_line_size): ... this.
5456 * top.c (line): Rename to ...
5457 (saved_command_line): ... this.
5458 (linesize): Rename to ...
5459 (saved_command_line_size): ... this.
5460 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5461 * event-top.c (command_line_handler): Adjust.
5462 * main.c (captured_main): Adjust.
5464 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5466 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5467 get_frame_func instead of get_frame_pc to determine the code
5468 address used to construct the frame ID.
5469 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5470 (i386_epilogue_frame_this_id): Likewise.
5471 (i386_epilogue_frame_prev_register): New function.
5472 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5473 (i386_stack_tramp_frame_sniffer): Fix coding style.
5474 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5475 (i386_gdbarch_init): Fix comments.
5477 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5479 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5480 instruction when walking back through the instruction stream.
5482 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5484 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5485 fullname parameters order.
5487 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5492 * psymtab.c (map_symbol_filenames_psymtab)
5493 (map_partial_symbol_filenames): Likewise.
5494 * psymtab.h: Include symfile.h.
5495 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5496 * symfile.h (symbol_filename_ftype): New.
5497 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5498 map_symbol_filenames, clarify more the naming in comment.
5500 2011-06-07 Doug Evans <dje@google.com>
5502 * cc-with-index.sh: Fix typos in comment.
5503 Look for ../../gdb, for fullname.exp.
5505 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5506 Pedro Alves <pedro@codesourcery.com>
5508 * cli/cli-cmds.c (shell_escape): Use waitpid.
5509 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5511 2011-06-07 Tristan Gingold <gingold@adacore.com>
5513 * xcoffread.c (dwarf2_xcoff_names): New variable.
5514 (aix_process_linenos): Add a guard.
5515 (xcoff_symfile_finish): Free dwarf2.
5516 (xcoff_initial_scan): Add dwarf2 support.
5518 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5520 * infcall.c (run_inferior_call): Don't mask async. Instead force
5521 a synchronous wait, if the target can async.
5523 * target.h (struct target_ops): Delete to_async_mask.
5524 (target_async_mask): Delete.
5525 * target.c (update_current_target): Delete references to to_async_mask.
5526 * linux-nat.c (linux_nat_async_mask_value): Delete.
5527 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5528 to linux_nat_async_mask_value.
5529 (linux_nat_async_mask): Delete.
5530 (linux_nat_async, linux_nat_close): Remove references to
5531 linux_nat_async_mask_value.
5532 * record.c (record_async_mask_value): Delete.
5533 (record_async): Remove references to record_async_mask_value.
5534 (record_async_mask): Delete.
5535 (record_can_async_p, record_is_async_p): Remove references to
5536 record_async_mask_value.
5537 (init_record_ops, init_record_core_ops): Remove references to
5539 * remote.c (remote_async_mask_value): Delete.
5540 (init_remote_ops): Remove reference to remote_async_mask.
5541 (remote_can_async_p, remote_is_async_p): Remove references to
5542 remote_async_mask_value.
5543 (remote_async): Remove references to remote_async_mask_value.
5544 (remote_async_mask): Delete.
5546 * infrun.c (fetch_inferior_event): Don't claim registers changed
5547 if the current thread is already not executing.
5549 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5551 From Stephen Kitt <steve@sk2.org>
5552 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5553 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5555 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5557 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5558 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5560 2011-06-03 Tom Tromey <tromey@redhat.com>
5562 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5564 * python/py-exitedevent.c (create_exited_event_object): Change
5565 type of 'exit_code'. Optionally add exit_code attribute.
5566 (emit_exited_event): Change type of 'exit_code'.
5567 * python/py-event.h (emit_exited_event): Update.
5568 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5569 * infrun.c (handle_inferior_event): Set exit code fields on
5571 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5573 * inferior.c (exit_inferior_1): Initialize new fields.
5575 2011-06-03 Tom Tromey <tromey@redhat.com>
5577 * dwarf2expr.c (get_signed_type): New function.
5578 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5580 2011-06-02 Keith Seitz <keiths@redhat.com>
5582 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5584 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5586 * top.h (simplified_command_loop): Delete declaration.
5588 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5590 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5591 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5593 2011-06-01 Yao Qi <yao@codesourcery.com>
5595 * objfiles.h (obj_section_addr): Update reference to objfile from
5597 (obj_section_endaddr): Likewise.
5599 2011-06-01 Daniel Jacobowitz <drow@false.org>
5601 * MAINTAINERS: Update my email address and affiliation. Also
5602 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5604 2010-05-31 Keith Seitz <keiths@redhat.com>
5607 * linespec.c (get_search_block): New function.
5608 (find_methods): Add FILE_SYMTATB parameter and use it and
5609 get_search_block to pass an appropriate block to
5610 lookup_symbol_in_namespace.
5611 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5612 Check if *ARGPTR starts with a filename first.
5613 If it does, call locate_first_half again to locate the next
5614 "first half" of the linespec.
5615 Pass FILE_SYMTATB to decode_objc and decode_compound.
5616 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5617 (locate_first_half): Stop on the first colon seen.
5618 (decode_compound): Add FILE_SYMTAB parameter.
5619 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5620 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5621 get_search_block with lookup_symbol.
5622 (find_method): Add FILE_SYMTAB parameter and pass it to
5624 (decode_objc): Use get_search_block.
5626 2010-05-31 Keith Seitz <keiths@redhat.com>
5629 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5630 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5631 and CP_ANONYMOUS_NAMESPACE_LEN.
5632 (cp_is_anonymous): Likewise.
5633 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5634 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5635 * dwarf2read.c (namespace_name): Likewise.
5636 (fixup_partial_die): Likewise.
5637 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5638 seen in the input, keep it.
5640 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5642 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5643 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5644 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5645 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5646 * remote.c (_initialize_remote): Register
5647 async_remote_interrupt_twice directly as
5648 sigint_remote_twice_token event.
5650 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5652 * target.h (enum inferior_event_type): Delete INF_ERROR.
5653 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5655 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5657 * interps.c (interp_set): Don't cancel continuations.
5659 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5661 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5663 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5665 * continuations.h (continuation_ftype): Add `err' parameter.
5666 Document parameters.
5667 (do_all_continuations, do_all_continuations_thread)
5668 (do_all_intermediate_continuations)
5669 (do_all_intermediate_continuations_thread)
5670 (do_all_inferior_continuations): Add `err' parameter.
5671 * continuations.c (do_my_continuations_1, do_my_continuations)
5672 (do_all_inferior_continuations, do_all_continuations_ptid)
5673 (do_all_continuations_thread_callback)
5674 (do_all_continuations_thread, do_all_continuations)
5675 (do_all_intermediate_continuations_thread_callback)
5676 (do_all_intermediate_continuations_thread)
5677 (do_all_intermediate_continuations): Add `err' parameter, and pass
5678 it down all the way to the continuations proper.
5679 * inf-loop.c (inferior_event_handler): If fetching an inferior
5680 event throws an error, don't pop the target, and still call the
5681 continuations, but with `err' set. Adjust all other continuation
5683 * breakpoint.c (until_break_command_continuation): Add `err'
5685 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5686 issue another step if `err' is set.
5687 (struct until_next_continuation_args): New.
5688 (until_next_continuation): Add `err' parameter. Adjust.
5689 (until_next_command): Adjust.
5690 (struct finish_command_continuation_args): Add `thread' field.
5691 (finish_command_continuation): Add `err' parameter. Handle it.
5692 (finish_forward): Adjust.
5693 (attach_command_continuation): Add `err' parameter. Handle it.
5694 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5695 cancel the continuations.
5696 * interps.c (interp_set): Adjust to cancel the continuations.
5697 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5698 continuations rather than discarding.
5699 (free_thread): Don't clear thread inferior resources here.
5700 (delete_thread_1): Do it here instead. And do it before removing
5701 the thread from the threads list. Tag the thread as exited before
5702 clearing thread inferior resources.
5704 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5706 * infcall.c (call_function_by_hand): Rephrase error message.
5708 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5710 * defs.h (struct thread_info, struct inferior): Delete forward
5712 * breakpoint.h (struct thread_info): New forward declaration.
5713 * observer.sh (struct inferior): New forward declaration.
5714 * python/python-internal.h (struct inferior): New forward
5717 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5719 * defs.h (struct continuation, continuation_ftype)
5720 (continuation_free_arg_ftype, add_continuation)
5721 (do_all_continuations, do_all_continuations_thread)
5722 (discard_all_continuations, discard_all_continuations_thread)
5723 (add_intermediate_continuation, do_all_intermediate_continuations)
5724 (do_all_intermediate_continuations_thread)
5725 (discard_all_intermediate_continuations)
5726 (discard_all_intermediate_continuations_thread)
5727 (add_inferior_continuation, do_all_inferior_continuations)
5728 (discard_all_inferior_continuations): Move to ...
5729 * continuations.h: ... this new file.
5730 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5731 infcmd.c, inferior.c, infrun.c, interps.c: Include
5734 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5735 Doug Evans <dje@google.com>
5737 Fix PR 10970, PR 12702.
5738 * linux-nat.c (linux_lwp_is_zombie): New function.
5739 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5740 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5742 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5744 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5746 (add_continuation, add_intermediate_continuation)
5747 (add_inferior_continuation): Use them.
5748 * continuations.c (struct continuation): Use them.
5749 (make_continuation_ftype): Delete.
5750 (make_continuation, add_inferior_continuation, add_continuation)
5751 (add_intermediate_continuation): Use continuation_ftype and
5752 continuation_free_arg_ftype. Rename parameters to shorter names.
5754 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5756 * continuations.c (make_continuation): Make it return void.
5757 (do_my_continuations): Rename to ...
5758 (do_my_continuations_1): ... this. Remove old_chain parameter and
5760 (do_my_continuations): New.
5761 (discard_my_continuations): Rename to ...
5762 (discard_my_continuations_1): ... this. Remove old_chain
5763 parameter and adjust.
5764 (discard_my_continuations): New.
5765 (add_inferior_continuation): Simplify.
5766 (do_all_inferior_continuations): Reimplement on top
5767 do_my_continuations.
5768 (discard_all_inferior_continuations): Simplify.
5769 (add_continuation): Simplify.
5770 (do_all_continuations_ptid): Simplify.
5771 (discard_all_continuations_thread_callback): Simplify.
5772 (add_intermediate_continuation): Simplify.
5773 (discard_all_intermediate_continuations_thread_callback):
5776 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5778 * utils.c (struct continuation, add_continuation)
5779 (add_inferior_continuation)
5780 (do_all_inferior_continuations, discard_all_inferior_continuations)
5781 (restore_thread_cleanup, do_all_continuations_ptid)
5782 (do_all_continuations_thread_callback)
5783 (do_all_continuations_thread, do_all_continuations)
5784 (discard_all_continuations_thread_callback)
5785 (discard_all_continuations_thread, discard_all_continuations)
5786 (add_intermediate_continuation)
5787 (do_all_intermediate_continuations_thread_callback)
5788 (do_all_intermediate_continuations_thread)
5789 (do_all_intermediate_continuations)
5790 (discard_all_intermediate_continuations_thread_callback)
5791 (discard_all_intermediate_continuations_thread)
5792 (discard_all_intermediate_continuations): Move to ...
5793 * continuations.c: ... this new file, and adjust to no longer
5794 implement continuations on top of cleanups.
5795 * Makefile.in (SFILES): Add continuations.c.
5796 (COMMON_OBS): Add continuations.o.
5798 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5800 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5801 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5802 Internal error on invalid values.
5803 * reverse.c: Don't handle EXEC_ERROR.
5804 * mi/mi-main.c: Don't handle EXEC_ERROR.
5806 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5808 * record.c: Include event-loop.h, inf-loop.h.
5809 (record_beneath_to_async): New global.
5810 (tmp_to_async): New global.
5811 (record_async_inferior_event_token): New global.
5812 (record_open_1): Don't error out if async is enabled.
5813 (record_open): Handle to_async. Create an async event source in
5815 (record_close): Delete the async event source.
5816 (record_resumed): New global.
5817 (record_execution_dir): New global.
5818 (record_resume, record_core_resume): Set them. Register the
5819 target on the event loop.
5820 (record_wait): Rename to ...
5821 (record_wait_1): ... this. Add more debug output. Handle
5822 TARGET_WNOHANG, and the target beneath returning
5823 TARGET_WAITKIND_IGNORE.
5824 (record_wait): Reimplement on top of record_wait_1.
5825 (record_async_mask_value): New global.
5826 (record_async, record_async_mask, record_can_async_p)
5827 (record_is_async_p, record_execution_direction): New functions.
5828 (init_record_ops, init_record_core_ops): Install new methods.
5829 * infrun.c (fetch_inferior_event): Temporarily switch the global
5830 execution direction to the direction the target was going.
5831 (execution_direction): Change type to int.
5832 * target.c (default_execution_direction): New function.
5833 (update_current_target): Inherit and de_fault
5834 to_execution_direction.
5835 * target.h (struct target_ops) <to_execution_direction>: New
5837 (target_execution_direction): New macro.
5838 * inferior.h (execution_direction): Change type to int.
5840 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5842 * infcall.c (call_function_by_hand): Don't allow calling functions
5843 in reverse execution mode.
5845 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5847 * infcmd.c (finish_command): Allow async finish in reverse.
5849 2011-05-26 Yao Qi <yao@codesourcery.com>
5851 * gdb_thread_db.h: Delete. Move to ...
5852 * common/gdb_thread_db.h: ... here.
5854 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5856 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5857 function's entry point instead of a manually managed momentary
5858 breakpoint, and only ever issue one proceed call.
5859 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5860 doing a reverse-finish, switch to stepi mode, to do another step.
5861 (insert_step_resume_breakpoint_at_sal): Make public.
5862 (normal_stop): No need to save function value return registers if
5864 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5866 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5868 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5869 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5870 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5872 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5873 step-resume breakpoints.
5874 (print_it_typical): Handle bp_hp_step_resume.
5875 (bpstat_what): Ditto.
5876 (bptype_string): Ditto.
5877 (print_one_breakpoint_location): Ditto.
5878 (allocate_bp_location): Ditto.
5880 (breakpoint_re_set_one): Ditto.
5881 * infrun.c (handle_inferior_event): Adjust. Split
5882 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5883 BPSTAT_WHAT_HP_STEP_RESUME.
5884 (insert_step_resume_breakpoint_at_sal): Rename to ...
5885 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5886 parameter. Handle it.
5887 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5888 insert_step_resume_breakpoint_at_sal_1.
5889 (insert_step_resume_breakpoint_at_frame): Rename to ...
5890 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5891 set a high-priority step-resume breakpoint.
5892 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5893 (insert_step_resume_breakpoint_at_caller): Ditto.
5895 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5897 * breakpoint.c (iterate_over_related_breakpoints): New.
5898 (do_map_delete_breakpoint): New.
5899 (delete_command): Pass do_map_delete_breakpoint to
5900 map_breakpoint_numbers.
5901 (do_disable_breakpoint): New.
5902 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5904 (do_enable_breakpoint): Rename to ...
5905 (enable_breakpoint_disp): ... this.
5906 (enable_breakpoint): Adjust.
5907 (do_enable_breakpoint): New.
5908 (enable_once_breakpoint): Delete.
5909 (do_map_enable_breakpoint): New.
5910 (do_map_enable_once_breakpoint): New.
5911 (enable_once_command, enable_delete_command)
5912 (delete_trace_command): Iterate over the breakpoint's related
5915 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5917 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5918 for ALPHA_ZERO_REGNUM.
5919 (alpha_supply_int_regs): Explicitly supply zero as the value for
5920 ALPHA_ZERO_REGNUM in the register cache.
5921 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5923 2011-05-26 Yao Qi <yao@codesourcery.com>
5925 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5927 2011-05-26 Tristan Gingold <gingold@adacore.com>
5929 * symfile.h (struct dwarf2_section_names): New type.
5930 (struct dwarf2_debug_sections): New type.
5931 (dwarf2_has_info): Add parameter.
5932 * dwarf2read.c (dwarf2_elf_names): New variable.
5933 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5934 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5935 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5936 (dwarf2_has_info): Add names parameter. Pass names
5937 to dwarf2_locate_sections.
5938 (section_is_p): Rewrite using the names parameter.
5939 (dwarf2_locate_sections): Use section names from the names parameter.
5940 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5941 * elfread.c (read_psyms): Ditto.
5942 * machoread.c (macho_symfile_read): Ditto.
5944 2011-05-25 Andreas Schwab <schwab@redhat.com>
5947 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5949 2011-05-24 Keith Seitz <keiths@redhat.com>
5952 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5953 (decode_compound): Unconditionally call keep_name_info.
5955 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5957 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5958 scope, clear its command list.
5959 (map_breakpoint_numbers): Don't walk the related breakpoints list
5962 2011-05-24 Tom Tromey <tromey@redhat.com>
5964 * MAINTAINERS: Move Jim Blandy to past maintainers.
5966 2011-05-24 Tristan Gingold <gingold@adacore.com>
5968 * symfile.h (enum dwarf2_section_enum): New type.
5969 (dwarf2_get_section_info): New prototype.
5970 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5971 section_name by sect. Use a switch to select the info.
5972 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5973 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5975 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5977 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5978 shared library event breakpoint if there's no execution.
5980 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5982 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5983 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5985 2011-05-23 Tom Tromey <tromey@redhat.com>
5987 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5990 2011-05-23 Doug Evans <dje@google.com>
5992 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5993 entry for RuntimeError to doc string.
5995 2011-05-23 Jerome Guitton <guitton@adacore.com>
5997 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5998 sequence for probing loops.
6000 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6002 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6005 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6007 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6008 zero as the value for %g0 in the register cache.
6009 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6010 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6012 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6014 * infrun.c (proceed): Set previous_inferior_ptid here.
6015 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6016 inferior_ptid, not null_ptid.
6017 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6018 (fetch_inferior_event): Nor here.
6020 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6022 * inf-loop.c (inferior_event_handler): Only output a message if
6025 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6027 * MAINTAINERS: Update my e-mail address.
6029 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6031 * infrun.c (proceed): Switch the inferior event loop to
6032 INF_EXEC_COMPLETE if the target refused to resume from a
6035 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6037 * infcmd.c: Include "inf-loop.h".
6038 (step_once): When stepping into an inline subroutine, pretend the
6039 target has run. If the target can async, switch the inferior
6040 event loop to INF_EXEC_COMPLETE.
6041 * inferior.h (user_visible_resume_ptid): Declare.
6042 * infrun.c (user_visible_resume_ptid): New function, factored out
6045 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6046 that the current thread is running. Merge async and sync
6049 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6051 * infcmd.c (step_1): Simplify synchronous case.
6053 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6055 * tracepoint.c: Include exceptions.h.
6056 (TFILE_PID): Move higher in file.
6057 (tfile_open): Delay pushing the tfile target until we're assured
6058 the tfile header is present in the file. Wrap reading the initial
6059 newline-terminated lines in TRY_CATCH. Pop the target if the
6060 initial setup failed. Add the tfile's thread immediately
6061 aftwards, before any non-essential setup. Don't skip
6062 post_create_inferior if there are no traceframes present in the
6064 (tfile_close): Remove redundant check for null before xfree call.
6065 (tfile_thread_alive): New function.
6066 (init_tfile_ops): Register it as to_thread_alive callback.
6068 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6070 * tracepoint.c (tfile_open): Delete #if 0'd code.
6072 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6074 Fix -readnow for -gdwarf-4 unused type units.
6075 * dwarf2read.c (struct signatured_type): Remove the field offset.
6076 (create_signatured_type_table_from_index): Remove its initialization.
6077 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6078 instead. Add a complaint call.
6079 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6080 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6081 (lookup_signatured_type_at_offset, read_signatured_type)
6082 (write_one_signatured_type): Update the field for per_cu.
6084 2011-05-19 Tom Tromey <tromey@redhat.com>
6086 * python/py-inferior.c (python_inferior_exit): Use
6088 (python_on_resume): Likewise.
6090 2011-05-19 Matt Rice <ratmice@gmail.com>
6092 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6094 2011-05-19 Hui Zhu <teawater@gmail.com>
6096 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6098 2011-05-19 Hui Zhu <teawater@gmail.com>
6100 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6102 2011-05-18 Tom Tromey <tromey@redhat.com>
6104 * dwarf2read.c (dwarf2_add_field): Constify.
6105 * value.c (value_static_field): Constify.
6106 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6108 * ax-gdb.c (gen_static_field): Constify
6110 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 * linux-nat.c (kill_callback): Use SIGKILL first.
6114 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6116 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6118 2011-05-18 Tom Tromey <tromey@redhat.com>
6120 * value.c (value_fn_field): Constify.
6121 * symtab.c (gdb_mangle_name): Constify.
6122 * stabsread.c (update_method_name_from_physname): Make 'physname'
6124 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6125 const. Use explicit fputc_filtered loop.
6126 (pascal_type_print_base): Constify.
6127 * p-lang.h (pascal_type_print_method_args): Update.
6128 * linespec.c (add_matching_methods): Constify.
6129 (add_constructors): Likewise.
6130 * jv-typeprint.c (java_type_print_base): Constify.
6131 * gdbtypes.h (struct cplus_struct_type)
6132 <fn_fieldlist.fn_field.physname>: Now const.
6133 * dwarf2read.c (compute_delayed_physnames): Constify.
6134 (dwarf2_add_member_fn): Likewise.
6135 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6137 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6139 * infrun.c (resume): Mention which is the current thread, and its
6140 current PC in debug output.
6141 (prepare_to_proceed): Mention the thread switching in debug
6144 2011-05-18 Tom Tromey <tromey@redhat.com>
6146 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6147 path check. Use xmalloc and cleanups.
6148 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6150 2011-05-17 Tom Tromey <tromey@redhat.com>
6152 * cp-valprint.c (cp_print_value_fields): Catch errors from
6155 2011-05-17 Tom Tromey <tromey@redhat.com>
6157 * dwarf2read.c (dwarf2_get_die_type): Call
6158 get_die_type_at_offset.
6159 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6160 get_base_type function.
6162 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6164 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6167 2011-05-16 Doug Evans <dje@google.com>
6169 * python/py-auto-load.c (source_section_scripts): Mention objfile
6172 2011-05-15 Doug Evans <dje@google.com>
6174 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6175 (try_thread_db_load_from_pdir): Call it. If unable to find
6176 libthread_db in directory of libpthread, see if we're looking at
6177 the separate-debug-info copy.
6179 * python/py-autoload.c (print_script): Print "Missing" instead of
6180 "No" for missing scripts.
6181 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6183 2011-05-13 Doug Evans <dje@google.com>
6185 * ui-file.c (stdio_file_write_async_safe): Add comment.
6187 2011-05-14 Hui Zhu <teawater@gmail.com>
6189 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6191 2011-05-13 Doug Evans <dje@google.com>
6193 Support $pdir and $sdir in libthread-db-search-path.
6194 * NEWS: Mention $sdir,$pdir.
6195 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6196 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6197 (try_thread_db_load_from_sdir): New function.
6198 (try_thread_db_load_from_dir): New function.
6199 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6200 system directories if search of libthread-db-search-path fails,
6201 that is now done via $sdir.
6202 (has_libpthread): New function.
6203 (thread_db_load): Remove search for libthread_db in directory of
6204 libpthread, that is now done via $pdir.
6206 * NEWS: Mention "info auto-load-scripts".
6207 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6208 script_not_found_warning_printed.
6209 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6210 all callers updated. Initialize script_not_found_warning_printed.
6211 (get_auto_load_pspace_data_for_loading): New function.
6212 (maybe_add_script): New function.
6213 (source_section_scripts): Simplify. Only print one warning regardless
6214 of the number of auto-load scripts not found.
6215 (clear_section_scripts): Clear script_not_found_warning_printed.
6216 (auto_load_objfile_script): Record script in hash table.
6217 (count_matching_scripts): New function.
6218 (maybe_print_script): Renamed from maybe_print_section_script, all
6219 callers updated. Rewrite to use ui_out_*.
6220 (info_auto_load_scripts): Renamed from
6221 maintenance_print_section_scripts, all callers updated.
6222 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6223 renamed as "info auto-load-scripts".
6225 2011-05-13 Tom Tromey <tromey@redhat.com>
6227 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6228 (read_sleb128): Likewise.
6230 2011-05-13 Tom Tromey <tromey@redhat.com>
6232 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6235 2011-05-13 Doug Evans <dje@google.com>
6237 * linux-nat.c (debug_linux_nat_async): Delete.
6238 Replace all references to use debug_linux_nat instead.
6239 (show_debug_linux_nat_async): Delete.
6240 (sigchld_handler): Call ui_file_write_async_safe instead of
6242 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6243 * ui-file.c (struct ui_file): New member to_write_async_safe.
6244 (null_file_write_async_safe): New function.
6245 (ui_file_write_async_safe): New function.
6246 (set_ui_file_write_async_safe): New function.
6247 (ui_file_new): Initialize to_write_async_safe.
6248 (stdio_file_write_async_safe): New function.
6249 (struct stdio_file): New member fd.
6250 (stdio_file_new): Initialize to_write_async_safe, fd.
6251 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6253 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6254 (set_ui_file_write_async_safe): Declare.
6255 (ui_file_write_async_safe): Declare.
6257 2011-05-13 Tom Tromey <tromey@redhat.com>
6259 * utils.c (do_value_free): New function.
6260 (make_cleanup_value_free): Likewise.
6261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6263 (dwarf2_loc_desc_needs_frame): Call
6264 make_cleanup_value_free_to_mark.
6265 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6266 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6268 (new_dwarf_expr_context): Don't call value_mark.
6269 * dwarf2-frame.c (execute_stack_op): Call
6270 make_cleanup_value_free_to_mark.
6271 * defs.h (make_cleanup_value_free): Declare.
6273 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6275 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6276 prepare_execute_command.
6277 * top.c (prepare_execute_command): Return cleanup.
6278 (execute_command): Use cleanup from prepare_execute_command.
6279 * top.h (prepare_execute_command): Change prototype to return
6281 * defs.h (struct value): Add opaque declaration.
6282 (make_cleanup_value_free_to_mark): Add prototype.
6283 * utils.c (do_value_free_to_mark): New function.
6284 (make_cleanup_value_free_to_mark): Likewise.
6286 2011-05-12 Tom Tromey <tromey@redhat.com>
6288 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6289 cast left-hand-side to unsigned.
6291 2011-05-12 Tom Tromey <tromey@redhat.com>
6294 * value.h (value_from_contents): Declare.
6295 * value.c (value_from_contents): New function.
6296 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6297 (dwarf2_get_die_type): New function.
6298 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6299 (allocate_piece_closure): Acquire reference to values.
6300 (read_pieced_value): Update for value-based expressions.
6301 (write_pieced_value): Likewise.
6302 (free_pieced_value_closure): Call value_free as needed.
6303 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6304 Update for value-based expressions.
6305 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6306 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6307 <get_base_type>: New field.
6308 (struct dwarf_expr_piece) <v.value>: Change type.
6309 <v.regno>: New field.
6310 (struct dwarf_expr_context) <mark>: New field.
6311 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6312 (dwarf_expr_pop, dwarf_expr_push): Remove.
6313 (dwarf_expr_push_address): Declare.
6314 * dwarf2expr.c (dwarf_arch_cookie): New global.
6315 (struct dwarf_gdbarch_types): New.
6316 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6318 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6320 (dwarf_expr_push_address): New function.
6321 (dwarf_expr_pop): Now static.
6322 (dwarf_expr_fetch): Change return type.
6323 (dwarf_require_integral): New function.
6324 (dwarf_expr_fetch): Simplify.
6325 (add_piece): Update.
6326 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6328 (execute_stack_op) <sign_ext>: Remove.
6329 Use values for DWARF stack.
6330 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6331 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6333 (_initialize_dwarf2expr): New function.
6334 (add_piece): Update.
6335 (new_dwarf_expr_context): Set new field.
6336 (free_dwarf_expr_context): Call value_free_to_mark.
6337 * dwarf2-frame.c (no_base_type): New function.
6338 (execute_stack_op): Set get_base_type field. Update.
6340 2011-05-12 Tom Tromey <tromey@redhat.com>
6342 * dwarf2read.c (read_common_block): Fix formatting.
6344 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6346 * breakpoint.c (disable_breakpoint): Disable all locations
6347 associated with a tracepoint on target if a trace experiment is
6349 (disable_command): Disable a specific tracepoint location on target if
6350 a trace experiment is running.
6351 (do_enable_breakpoint): Enable all locations associated with a
6352 tracepoint on target if a trace experiment is running.
6353 (enable_command) Enable a specific tracepoint location on target if a
6354 trace experiment is running.
6355 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6356 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6357 to_disable_tracepoint.
6358 * target.h: Add declaration of struct bp_location.
6359 (struct target_ops): Add new functions
6360 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6361 to_disable_tracepoint to target operations.
6362 (target_supports_enable_disable_tracepoint): New macro.
6363 (target_enable_tracepoint): New macro.
6364 (target_disable_tracepoint): New macro.
6365 * remote.c (struct remote_state): Add new field.
6366 (remote_enable_disable_tracepoint_feature): New.
6367 (remote_protocol_features): Add new entry.
6368 (remote_supports_enable_disable_tracepoint): New.
6369 (remote_enable_tracepoint): New.
6370 (remote_disable_tracepoint): New.
6371 (init_remote_ops): Add remote_enable_tracepoint,
6372 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6373 to remote operations.
6374 * tracepoint.c (start_tracing): Allow tracing to start without any
6375 tracepoints enabled with just a warning if they can be re-enabled
6377 * NEWS: Add news item for the new behaviour of the enable and disable
6378 GDB commands when applied to tracepoints.
6379 Add news items for the new remote packets QTEnable and QTDisable.
6381 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6383 * config.in: Regenerate.
6384 * configure: Regenerate.
6385 * configure.ac <--with-system-readline> (for readline_echoing_p):
6387 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6388 (tui_old_rl_echoing_p): ... here.
6389 (tui_setup_io): Rename extern declaration readline_echoing_p to
6390 _rl_echoing_p. Adjust assignments for the both renames.
6392 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6394 * symtab.c (lookup_symtab): Run cleanup before returning.
6396 2011-05-11 Tom Tromey <tromey@redhat.com>
6398 * dwarf2read.c (handle_data_member_location): New function.
6399 (dwarf2_add_field): Use it.
6400 (read_common_block): Likewise.
6402 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6404 Make addrs->SECTINDEX always defined.
6405 * symfile.c (relative_addr_info_to_section_offsets): Check for
6406 SECTINDEX -1, not for zero ADDR.
6407 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6408 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6409 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6412 2011-05-10 Doug Evans <dje@google.com>
6414 * linux-thread-db.c: Whitespace cleanup.
6415 (try_thread_db_load_1): Fix comment.
6417 * linux-thread-db.c (set_libthread_db_search_path): New function.
6418 (_initialize_thread_db): Add setter for libthread-db-search-path.
6420 2011-05-09 Doug Evans <dje@google.com>
6422 * NEWS: Mention --with-iconv-bin.
6423 * configure.ac: New option --with-iconv-bin.
6424 * configure: Regenerate.
6425 * config.in: Regenerate.
6426 * defs.h (relocate_gdb_directory): Declare.
6427 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6428 removed progname parameter, and exported. All callers updated.
6429 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6431 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6432 adding missing call to restore_child_signals_mask.
6434 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6436 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6438 * infrun.c (proceed, start_remote): Adjust.
6439 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6440 and adjust to not handle it.
6441 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6442 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6443 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6444 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6445 * windows-nat.c (do_initial_windows_stuff): Adjust.
6446 * infcmd.c (attach_command): Adjust.
6447 (notice_new_inferior): Adjust.
6449 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6451 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6452 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6453 * spu-tdep.c (op_selb): Use correct value.
6455 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6457 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6458 "parent" parameter to symbol_file_add_from_bfd call.
6460 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6461 Thiago Jung Bauermann <bauerman@br.ibm.com>
6463 Implement support for PowerPC BookE masked watchpoints.
6464 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6466 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6467 method. Initialize to NULL in all existing breakpoint_ops instances.
6468 (struct breakpoint) <hw_wp_mask>: New field.
6469 * breakpoint.c (is_masked_watchpoint): Add prototype.
6470 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6471 breakpoint's breakpoint_ops.works_in_software_mode if available.
6472 (watchpoints_triggered): Handle the case of a hardware masked
6474 (watchpoint_check): Likewise.
6475 (works_in_software_mode_watchpoint): New function.
6476 (insert_masked_watchpoint, remove_masked_watchpoint)
6477 (resources_needed_masked_watchpoint)
6478 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6479 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6480 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6482 (masked_watchpoint_breakpoint_ops): New structure.
6483 (watch_command_1): Check for the existence of the `mask' parameter.
6484 Set b->ops according to the type of hardware watchpoint being created.
6485 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6486 (ppc_linux_remove_mask_watchpoint)
6487 (ppc_linux_masked_watch_num_registers): New functions.
6488 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6489 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6490 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6491 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6492 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6493 (target_masked_watch_num_registers): New functions.
6494 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6495 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6497 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6498 (target_masked_watch_num_registers): Add prototypes.
6500 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6503 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6504 (producer_is_gcc_ge_4_0): New function.
6505 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6506 symtab->language code.
6507 (var_decode_location): Set cu->has_loclist.
6508 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6509 skip. Intialize force_skip from locations_valid. Move the prologue
6510 skipping code into two passes.
6511 * symtab.h (struct symtab): Make the primary field a bitfield. New
6512 field locations_valid.
6514 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6516 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6517 (classify_inner_name): Call cp_lookup_nested_type with
6519 * cp-namespace.c (cp_lookup_nested_type): New variable
6520 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6521 type_name_no_tag_or_error with saved_parent_type.
6522 * dwarf2read.c (load_partial_dies): Read in any children of
6523 DW_TAG_typedef with complaint in such case.
6524 * gdbtypes.c (type_name_no_tag_or_error): New function.
6525 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6526 * valops.c (destructor_name_p): New comment for parameter type. Remove
6527 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6528 * value.h (destructor_name_p): Remove type const.
6530 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6532 * symtab.c (compare_symbol_name): New function.
6533 (completion_list_add_name, expand_partial_symbol_name): Call it,
6534 remove the variable ncmp.
6535 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6538 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6540 Demote to sw watchpoint only in update_watchpoint.
6541 * breakpoint.c (update_watchpoint): Change between software and
6542 hardware watchpoint for all kinds of watchpoints, not just
6543 read/write ones. Determine b->exact value here instead of
6544 in watch_command_1. Error out if there are not enough resources
6545 for a read or access hardware watchpoint.
6546 (watch_command_1): Remove logic of checking whether there are
6547 enough resources available, since update_watchpoint will do that
6548 work now. Don't set b->exact here. Catch exceptions thrown by
6549 update_watchpoint and delete the watchpoint.
6550 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6551 Use target_exact_watchpoints instead.
6552 (delete_breakpoint): Notify observers only if deleted watchpoint
6553 has a breakpoint number assigned to it.
6555 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6557 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6559 2011-05-05 Jerome Guitton <guitton@adacore.com>
6561 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6563 (i386_stack_tramp_frame_unwind): New static global.
6564 (i386_match_pattern): New function, extracted from i386_match_insn.
6565 (i386_match_insn): Use i386_match_pattern.
6566 (i386_match_insn_block): New function.
6567 (i386_tramp_chain_in_reg_insns)
6568 (i386_tramp_chain_on_stack_insns): New static variables.
6569 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6572 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6574 * configure.host (xscale*): Don't handle target.
6575 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6578 2011-05-04 Yao Qi <yao@codesourcery.com>
6580 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6582 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6585 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6586 | * elfread.c (elf_symtab_read): Stop memory leak.
6588 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6590 * nto-tdep.c (nto_target): Replace deprecated call to
6591 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6593 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6595 Fix false GCC warning.
6596 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6598 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6600 * breakpoint.c (update_watchpoint): Move code to change
6601 the enable state of breakpoint from here ...
6602 (do_enable_breakpoint): ... to here.
6604 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6606 * valprint.c (val_print_array_elements): Fixed poor performance
6607 of printing very large arrays with repeat_count_threshold set
6608 to unlimited. New comment.
6610 2011-04-29 Tom Tromey <tromey@redhat.com>
6612 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6613 (mi_parse): Likewise.
6614 * breakpoint.c (break_range_command): Use sizeof char*, not
6616 (create_breakpoint): Likewise.
6617 (parse_breakpoint_sals): Likewise.
6619 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6621 * linux-nat.c (linux_child_remove_fork_catchpoint)
6622 (linux_child_remove_vfork_catchpoint)
6623 (linux_child_remove_exec_catchpoint): New functions.
6624 (linux_target_install_ops): Install them.
6626 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6630 * varobj.c (install_default_visualizer): Do not install a
6631 visualizer if the varobj is CPLUS_FAKE_CHILD.
6632 (construct_visualizer): Likewise.
6634 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6636 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6637 case insensitive comparison.
6639 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6641 * infrun.c (proceed): Revert previous change.
6642 (resume): Instead, handle the case of signal delivery while stepping
6643 off a breakpoint location here, and only if software single-stepping
6644 is used. Handle nested signals.
6646 2011-04-28 Yao Qi <yao@codesourcery.com>
6648 * arm-tdep.c (copy_unmodified): Rename to ...
6649 (arm_copy_unmodified): .. this. New.
6650 (copy_preload): Move common part to ...
6651 (install_preload): .. this. New.
6652 (arm_copy_preload): New.
6653 (copy_preload_reg): Move common part to ...
6654 (install_preload_reg): ... this. New.
6655 (arm_copy_preload_reg): New.
6656 (copy_b_bl_blx): Move common part to ...
6657 (install_b_bl_blx): .. this. New.
6658 (arm_copy_b_bl_blx): New.
6659 (copy_bx_blx_reg): Move common part to ...
6660 (install_bx_blx_reg): ... this. New.
6661 (arm_copy_bx_blx_reg): New.
6662 (copy_alu_reg): Move common part to ...
6663 (install_alu_reg): ... this. New.
6664 (arm_copy_alu_reg): New.
6665 (copy_alu_shifted_reg): Move common part to ...
6666 (install_alu_shifted_reg): ... this. New.
6667 (copy_ldr_str_ldrb_strb): Move common part to ...
6668 (install_ldr_str_ldrb_strb): ... this. New.
6669 (arm_copy_ldr_str_ldrb_strb): New.
6670 (copy_copro_load_store): Move some common part to ...
6671 (install_copy_copro_load_store): ... this. New.
6672 (arm_copy_copro_load_store): New.
6674 (arm_copy_svc): Renamed from copy_svc.
6675 (copy_undef): Delete.
6676 (arm_copy_undef): Renamed from copy_undef.
6677 (decode_ext_reg_ld_st): Delete.
6678 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6679 (decode_svc_copro): Delete.
6680 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6681 (copy_copro_load_store, copy_alu_imm): update callers.
6682 (copy_extra_ld_st, copy_block_xfer): Likewise.
6683 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6684 (decode_miscellaneous, decode_dp_misc): Likewise.
6685 (decode_ld_st_word_ubyte, decode_media): Likewise.
6686 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6687 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6688 (decode_unconditional, decode_miscellaneous): Likewise.
6689 (decode_media, decode_b_bl_ldmstm): Likewise.
6690 (arm_process_displaced_insn): Likewise..
6691 (decode_misc_memhint_neon): Delete.
6692 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6693 (decode_miscellaneous): Delete.
6694 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6695 (decode_dp_misc): Delete.
6696 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6697 (decode_ld_st_word_ubyte): Delete.
6698 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6699 (decode_media): Delete.
6700 (arm_decode_media): Renamed from decode_media.
6701 (decode_b_bl_ldmstm): Delete.
6702 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6703 (decode_ext_reg_ld_st): Delete.
6704 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6705 (decode_unconditional): Delete.
6706 (arm_decode_unconditional): Renamed from decode_unconditional.
6708 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6710 Case insensitive lookups implementation.
6711 * dwarf2read.c: Include ctype.h.
6712 (struct mapped_index): New field version.
6713 (mapped_index_string_hash): New parameter index_version. New comment
6714 for it. Call tolower appropriately.
6715 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6716 Choose the right index version for mapped_index_string_hash.
6717 (dwarf2_read_index): Support also the index version 5. Initialize the
6718 new struct mapped_index field version.
6719 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6720 (find_slot): Explain the version needs. Pass INT_MAX for the new
6722 (write_psymtabs_to_index): Produce version 5.
6723 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6724 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6725 * psymtab.c (lookup_partial_symbol): Find the
6726 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6728 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6730 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6731 (completion_list_add_name): New variable ncmp, initialize it, use it.
6732 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6733 * utils.c (strcmp_iw): Support case_sensitive_off.
6734 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6735 New function comment part. New variables saved_string1,
6736 saved_string2 and case_pass. Add a proper second pass.
6738 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6740 Replace re_comp/re_exec by regcomp/regexec.
6741 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6742 (search_symbols_name_matches): Use them, use regexec.
6743 (search_symbols): New variable retval_chain, adjust the use of
6744 old_chain against it. Replace re_comp by regcomp. Use the new struct
6745 search_symbols_data fields, use regexec instead of re_exec.
6747 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6749 Format the code for the next patch.
6750 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6751 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6752 New variables c1 and c2.
6754 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6756 * infrun.c (proceed): Do not single-step into signal delivery
6757 when stepping off a breakpoint location.
6758 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6759 (insert_step_resume_breakpoint_at_caller): Likewise.
6760 (insert_step_resume_breakpoint_at_sal): Likewise.
6761 (insert_longjmp_resume_breakpoint): Likewise.
6763 2011-04-27 Yao Qi <yao@codesourcery.com>
6765 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6767 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6769 * procfs.c (procfs_pass_signals): Fix advance declaration.
6771 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6773 * target.h (struct target_ops): Remove to_notice_signals;
6774 add to_pass_signals.
6775 (target_notice_signals): Remove.
6776 (target_pass_signals): Add prototype.
6777 * target.c (update_current_target): Remove to_notice_signals;
6778 mention to_pass_signals.
6779 (target_pass_signals): New function.
6780 (debug_to_notice_signals): Remove.
6781 (setup_target_debug): Do not install debug_to_notice_signals.
6783 * infrun.c (signal_pass): New global.
6784 (resume): Call target_pass_signals.
6785 (handle_inferior_event): Report all signals while stepping over
6786 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6787 are re-inserted when stepping over a signal handler.
6788 (signal_cache_update): New function.
6789 (signal_stop_update): Call it.
6790 (signal_print_update): Likewise.
6791 (signal_pass_update): Likewise.
6792 (handle_command): Call signal_cache_update and target_pass_signals
6793 instead of target_notice_signals.
6794 (_initialize_infrun): Initialize signal_pass.
6796 * linux-nat.c (pass_mask): New global.
6797 (linux_nat_pass_signals): New function.
6798 (linux_nat_create_inferior): Report all signals initially.
6799 (linux_nat_attach): Likewise.
6800 (linux_nat_resume): Use pass_mask to decide whether to directly
6801 handle an inferior signal.
6802 (linux_nat_wait_1): Likewise.
6803 (linux_nat_add_target): Install to_pass_signals callback.
6805 * nto-procfs.c (notice_signals): Remove.
6806 (procfs_resume): Do not call notice_signals.
6807 (procfs_notice_signals): Remove.
6808 (procfs_pass_signals): New function.
6809 (init_procfs_ops): Install to_pass_signals callback instead of
6810 to_notice_signals callback.
6811 (_initialize_procfs): Report all signals initially.
6813 * procfs.c (procfs_notice_signals): Remove.
6814 (procfs_pass_signals): New function.
6815 (procfs_target): Install to_pass_signals callback instead of
6816 to_notice_signals callback.
6817 (register_gdb_signals): Remove.
6818 (procfs_debug_inferior): Report all signals initially.
6819 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6821 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6822 parameters; use them instead of calling signal_..._state routines.
6823 (remote_notice_signals): Remove.
6824 (remote_start_remote): Report all signals initially.
6825 (remote_resume): Do not call remote_pass_signals.
6826 (_initialize_remote): Install to_pass_signals callback instead of
6827 to_notice_signals callback.
6829 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6831 * breakpoint.c (user_settable_breakpoint): Delete.
6832 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6833 (delete_command): Check user_breakpoint_p instead of looking at
6834 the breakpoint's type.
6835 (disable_command): Ditto.
6836 (enable_command): Ditto.
6837 (delete_trace_command): Use user_breakpoint_p instead of looking
6838 at the breakpoint number directly. When checking if there are
6839 user visible tracepoints, in order to know whether to ask the user
6840 for confirmation, check whether the breakpoint is actually a
6843 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6845 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6848 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6850 MI breakpoint notifications.
6852 * annotate.c (breakpoint_changed): Adjust parameter type.
6853 * breakpoint.c (set_breakpoint_condition): Adjust to change
6854 in breakpoint_modified type.
6855 (breakpoint_set_commands): Likewise.
6856 (do_map_commands_command): Likewise.
6857 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6858 changed after bumping hit count.
6859 (bpstat_stop_status): Likewise.
6860 (print_one_breakpoint_location): Don't wrap in tuple here.
6861 (print_one_breakpoint): Always print individual locations.
6862 For locations, use unnamed tuple.
6863 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6865 (create_catchpoint, create_syscall_event_catchpoint): Call
6866 breakpoint_created obsever.
6867 (mention): Don't call breakpoint_created observer.
6868 (create_breakpoint_sal): Call breakpoint_created observer.
6869 (create_breakpoint, watch_command_1): Likewise.
6870 (create_ada_exception_breakpoint): Likewise.
6871 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6872 (locations_are_equal): New.
6873 (update_breakpoint_locations): If locations were changed, notify.
6874 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6875 Call breakpoint_modified observer.
6877 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6878 (mi_cmd_break_insert): Don't set observers for modify and delete.
6879 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6880 (mi_breakpoint_created, mi_breakpoint_deleted)
6881 (mi_breakpoint_modified): New.
6882 (mi_interpreter_init): Hook the above.
6883 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6884 while -break-* commands are executing.
6885 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6886 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6888 (mi_ui_out_impl): Hook in mi_redirect.
6889 (mi_field_skip): True to the name, skip the field, don't output
6890 a field with an empty value.
6892 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6893 (gdbpy_breakpoint_deleted): Adjust.
6894 * tui/tui-hooks.c (tui_event_create_breakpoint)
6895 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6897 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6899 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6900 (procfs_remove_hw_watchpoint): Likewise.
6902 2011-04-26 Michael Walle <michael@walle.cc>
6904 * remote.c (remote_start_remote): Ack packet after sending the
6907 2011-04-26 Yao Qi <yao@codesourcery.com>
6909 * linux-nat.c: Move common macros to ...
6910 Include linux-ptrace.h.
6911 * common/linux-ptrace.h: ... here. New.
6913 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6915 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6916 !objfile_has_partial_symbols. New comment.
6917 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6918 SYM_READ_PSYMBOLS is not present. Extend the comment.
6919 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6921 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6923 * defs.h (ENUM_BITFIELD): Remove.
6925 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6926 Eli Zaretskii <eliz@gnu.org>
6928 * NEWS: Document the new gdbserver --once option.
6930 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6932 * MAINTAINERS: Update my email address.
6934 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6936 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6937 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6938 function call if __STDC_ISO_10646__ macro is defined.
6939 (intermediate_encoding): New prototype.
6940 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6941 to generate compile time error for unsupported gdb_wchar_t size.
6942 (ENDIAN_SUFFIX): New macro.
6943 (intermediate_encoding): New function.
6945 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6947 * ada-lang.c (struct add_partial_datum): Update the comment for
6948 expand_partial_symbol_name.
6949 (ada_add_partial_symbol_completions): Rename to ...
6950 (ada_expand_partial_symbol_name): ... here, change return type, update
6951 function comment, call symbol_completion_match instead of
6952 symbol_completion_add.
6953 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6954 and ada_expand_partial_symbol_name.
6955 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6957 (dw2_map_symbol_names): Remove.
6958 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6959 * psymtab.c (map_symbol_names_psymtab): Remove.
6960 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6961 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6963 (psym_functions): Unlist map_symbol_names_psymtab.
6964 (map_partial_symbol_names): Rename to ...
6965 (expand_partial_symbol_names): ... here, change the FUN type, call
6966 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6967 * psymtab.h (map_partial_symbol_names): Rename to ...
6968 (expand_partial_symbol_names): ... here, change the FUN type.
6969 * symfile.h (struct quick_symbol_functions): Update the description of
6970 expand_symtabs_matching. Remove map_symbol_names.
6971 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6972 (struct add_name_data): Update the comment for
6973 expand_partial_symbol_name.
6974 (add_partial_symbol_name): Rename to ...
6975 (expand_partial_symbol_name): ... here. Replace
6976 completion_list_add_name call by strncmp.
6977 (default_make_symbol_completion_list_break_on): Use now
6978 expand_partial_symbol_names and expand_partial_symbol_name.
6979 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6981 2011-04-20 Tom Tromey <tromey@redhat.com>
6983 * dwarf2read.c (save_gdb_index_command): Replace format
6984 documentation with a pointer to the manual.
6986 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6988 * regcache.c: Include remote.h.
6989 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6990 (regcache_dump): Handle regcache_dump_remote.
6991 (maintenance_print_remote_registers): New function.
6992 (_initialize_regcache): Install "maint print remote-registers"
6994 * remote.c (map_regcache_remote_table): New function, factored out
6996 (init_remote_state): ... here.
6997 (remote_register_number_and_offset): New.
6998 * remote.h (remote_register_number_and_offset): Declare.
7000 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7002 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7003 null_ptid, assume and allow a NULL address space, instead of
7004 asking the target for the ptid's address space.
7005 * infrun.c (ptid_is_pid): Remove assertion.
7007 2011-04-19 Tom Tromey <tromey@redhat.com>
7009 * windows-tdep.c (windows_xfer_shared_library):
7010 * windows-nat.c (get_module_name, windows_make_so):
7011 * v850-tdep.c (v850_handle_pushm):
7012 * utils.c (null_cleanup, gdb_realpath):
7013 * ui-out.c (get_next_header):
7014 * tracepoint.c (clear_traceframe_info):
7015 * symtab.c (lookup_symtab):
7016 * serial.h (struct serial_ops):
7017 * mipsread.c (read_alphacoff_dynamic_symtab):
7018 * infcmd.c (print_return_value):
7019 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7020 * f-exp.y (parse_number):
7021 * exceptions.c (catch_exceptions):
7022 * dummy-frame.c (dummy_frame_this_id):
7023 * defs.h (struct cleanup):
7024 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7025 * arm-tdep.c (arm_push_dummy_call):
7026 * amd64-tdep.h (amd64_collect_xsave):
7027 * amd64-tdep.c (amd64_collect_xsave):
7028 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7029 * README (typing): Remove duplicate words.
7030 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7031 * infrun.c (siginfo_value_read): Fix typo.
7032 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7033 * top.c (source_line_number): Add comma.
7035 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7037 * thread.c (any_live_thread_of_process): Prioritize threads
7038 that are not executing.
7039 * gdbthread.h (any_live_thread_of_process): Update comment
7040 as per above change.
7042 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7044 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7045 (scan_xcoff_symtab): Likewise.
7047 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7049 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7052 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7053 Pedro Alves <pedro@codesourcery.com>
7055 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7056 variables to simplify code and avoid == operator at end of
7057 line as this is against GNU coding standards.
7059 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7061 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7062 lm_name to name_lm to avoid conflict with lm_name function.
7064 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7066 ARI fixes: Use only lowercase function name for static functions.
7067 * nto-tdep.c (LM_ADDR): Rename to...
7068 (lm_addr): New function name.
7069 (nto_relocate_section_addresses): Adapt to change above.
7070 * solib-sunos.c (LM_ADDR): Rename to...
7071 (lm_addr): New function name.
7072 (LM_NEXT): Rename to...
7073 (lm_next): New function name.
7074 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7075 function name changes above.
7076 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7077 (lm_addr_from_link_map): New function name.
7078 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7079 (has_lm_dynamic_from_link_map): New function name.
7080 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7081 (lm_dynamic_from_link_map): New function name.
7082 (LM_ADDR_CHECK): Rename to...
7083 (lm_addr_check): New function name.
7084 (LM_NEXT): Rename to...
7085 (lm_next): New function name.
7086 (LM_PREV): Rename to...
7087 (lm_prev): New function name.
7088 (LM_NAME): Rename to...
7089 (lm_name): New function name.
7090 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7091 (ignore_first_link_map_entry): New function name.
7092 (svr4_keep_data_in_core): Adapt to function name changes above.
7093 (svr4_current_sos): Likewise.
7094 (enable_break): Likewise.
7095 (svr4_relocate_section_addresses): Likewise.
7097 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7100 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7101 sprintf. Simplify code and avoid loosing memory.
7102 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7103 (call0_frame_cache): Remove && operator from end of line.
7105 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7107 Fix libraries displacement if they change whether they were prelinked.
7108 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7109 does not match. Comment why.
7111 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7113 * corelow.c: Include wrapper.h.
7114 (core_open): Call now gdb_target_find_new_threads.
7115 * wrapper.c: Include target.h.
7116 (gdb_target_find_new_threads): New.
7117 * wrapper.h (gdb_target_find_new_threads): New declaration.
7119 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7122 even if !TARGET_HAS_EXECUTION.
7124 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7126 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7127 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7128 bfd_get_synthetic_symtab.
7129 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7130 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7131 parameter parent, remove the call to add_separate_debug_objfile.
7132 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7133 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7134 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7135 parent, new comment for it, call add_separate_debug_objfile for it.
7136 (symbol_file_add_separate): Pass objfile as the parameter parent,
7137 remove the call to add_separate_debug_objfile.
7138 (symbol_file_add_from_bfd): New parameter parent, pass it.
7139 (symbol_file_add): Pass NULL to the new parameter parent.
7140 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7142 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7147 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7149 Fix Python access to inlined frames.
7150 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7151 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7153 2011-04-15 Tom Tromey <tromey@redhat.com>
7155 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7157 2011-04-15 Gary Benson <gbenson@redhat.com>
7159 * MAINTAINERS: Add myself to write-after-approval section.
7161 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7163 * remote-sim.c (sim_command_completer): New function.
7164 (_initialize_remote_sim): Set completer to sim_command_completer.
7166 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7168 * breakpoint.c (print_exception_catchpoint): Rename to ...
7169 (print_it_exception_catchpoint): ... this.
7170 (gnu_v3_exception_catchpoint_ops): Update with new name
7171 for print_it_exception_catchpoint.
7173 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7175 * MAINTAINERS: Add myself for write after approval privileges.
7177 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7179 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7181 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7183 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7185 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7187 * breakpoint.c (save_breakpoints): Verify whether
7188 breakpoint_ops.print_recreate is defined before calling it.
7190 2011-04-11 Gary Benson <gbenson@redhat.com>
7192 Fix failure with --enable-maintainer-mode.
7193 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7195 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7198 * symtab.c (search_symbols): Reorder the KIND description in the
7199 function comment. Remove the unused 4th element of types, types2,
7200 types3 and types4. New gdb_assert on KIND.
7201 (symtab_symbol_info): Remove the unused 4th element of classnames.
7202 New gdb_assert on KIND.
7203 * symtab.h (enum search_domain): New warning in the enum comment.
7204 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7207 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 Fix crash of gdb save-index on a STABS file.
7210 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7213 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7215 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7216 * dwarf2read.c: Include ctype.h.
7217 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7219 (dwarf2_add_field): Fix new_field->accessibility by calling
7220 dwarf2_default_access_attribute. Restructure setting accessibility
7222 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7223 is_private and is_protected by calling
7224 dwarf2_default_access_attribute.
7226 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7228 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7229 to the initialization.
7231 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7233 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7236 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7238 Remove support for old Cygwin 1.5 versions.
7239 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7240 function on old Cygwin version.
7241 * windows-nat.c: Remove cygwin version check and always define
7242 __USEWIDE for Cygwin compilation.
7244 2011-04-07 Yao Qi <yao@codesourcery.com>
7246 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7248 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7249 (arm_copy_svc): Remove parameters INSN and TO.
7250 (decode_svc_copro): Update caller.
7251 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7252 from function pointer `copy_svc_os'.
7254 2011-04-07 Yao Qi <yao@codesourcery.com>
7256 * arm-tdep.c (cleanup_branch): Set a correct return address in
7257 LR for ARM and Thumb.
7259 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7262 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7263 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7264 in the function comment, a new note on values compatibility.
7265 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7266 * symtab.h (SYMBOL_HASH_NEXT): New.
7268 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7270 * ppc-linux-nat.c (check_condition): Add len output parameter.
7271 Set it based on the memory region referenced in the condition
7272 expression. Update all callers.
7274 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7276 Fix crash regression on systems featuring .gdb_index.
7277 * objfiles.c (free_objfile): Move the
7278 forget_cached_source_info_for_objfile call earlier. Comment it.
7279 Extend the comment for objfile_free_data.
7281 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7283 Fix regression of displaying the debug format.
7284 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7287 2011-04-04 Tom Tromey <tromey@redhat.com>
7289 * cli/cli-interp.c (struct captured_execute_command_args):
7291 (do_captured_execute_command): Remove.
7292 (safe_execute_command): Use TRY_CATCH.
7293 * cli/cli-script.c (struct wrapped_read_command_file_args):
7295 (wrapped_read_command_file): Remove.
7296 (script_from_file): Use TRY_CATCH.
7297 * exceptions.c (catch_exception): Remove.
7298 * exceptions.h (catch_exception): Remove.
7299 (deprecated_throw_reason): Update comment.
7300 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7301 argument to 'context'.
7302 (mi_execute_command): Use TRY_CATCH.
7303 * remote.c (struct start_remote_args): Remove.
7304 (remote_start_remote): Update; change arguments.
7305 (remote_open_1): Use TRY_CATCH.
7307 2011-04-04 Tom Tromey <tromey@redhat.com>
7309 * tracepoint.c (scope_info): Update.
7310 * symtab.c (decode_line_spec): Update.
7311 * python/python.c (gdbpy_decode_line): Update.
7312 * linespec.h (decode_line_1): Update.
7313 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7314 (decode_compound, find_method, symtab_from_filename)
7315 (decode_variable): Likewise.
7316 * cli/cli-cmds.c (edit_command): Update.
7317 (list_command): Update.
7318 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7320 (create_breakpoint): Update.
7321 (until_break_command): Update.
7322 (addr_string_to_sals): Update.
7323 (decode_line_spec_1): Update.
7325 2011-04-04 Tom Tromey <tromey@redhat.com>
7327 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7328 (do_captured_parse_breakpoint): Remove.
7329 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7330 Use TRY_CATCH directly.
7332 2011-04-04 Tom Tromey <tromey@redhat.com>
7334 * symtab.h (free_symtab): Remove.
7335 (forget_cached_source_info_for_objfile): Declare.
7336 * symmisc.c (free_symtab): Remove.
7337 * source.c (forget_cached_source_info_for_objfile): New function.
7338 (forget_cached_source_info): Use it.
7339 * objfiles.c (free_objfile): Simplify check before calling
7340 clear_current_source_symtab_and_line. Call
7341 forget_cached_source_info_for_objfile.
7343 2011-04-04 Tom Tromey <tromey@redhat.com>
7345 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7346 (new_symtab): Don't set `free_code' on symtab.
7347 (new_linetable): Properly handle size==0.
7348 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7349 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7351 * jv-lang.c (struct jv_per_objfile_data): New.
7352 (jv_per_objfile_free): Free the data.
7353 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7354 (get_java_class_symtab): Set the `dict' field on the
7355 jv_per_objfile_data.
7356 (free_class_block): Remove.
7357 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7360 2011-04-04 Tom Tromey <tromey@redhat.com>
7362 * symfile.c (reread_symbols): Update.
7363 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7365 * objfiles.c (allocate_objfile): Update.
7366 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7368 * cp-namespace.c (lookup_symbol_file): Don't call
7369 lookup_possible_namespace_symbol.
7370 (initialize_namespace_symtab, get_possible_namespace_block)
7371 (free_namespace_block, cp_check_possible_namespace_symbols)
7372 (check_possible_namespace_symbols_loop)
7373 (check_one_possible_namespace_symbol)
7374 (lookup_possible_namespace_symbol): Remove.
7375 (maintenance_cplus_namespace): Replace with notice.
7376 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7378 2011-04-04 Tom Tromey <tromey@redhat.com>
7380 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7381 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7382 * symmisc.c (free_symtab): Don't free debugformat.
7383 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7384 (record_debugformat, record_producer): Document.
7385 * buildsym.c (end_symtab): Don't save debugformat and producer
7387 (end_symtab): Don't free debugformat and producer fields.
7388 (record_debugformat): Don't call xstrdup.
7389 (record_producer): Likewise.
7391 2011-04-04 Tom Tromey <tromey@redhat.com>
7393 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7394 (source_line_charpos, source_charpos_line): Remove.
7396 2011-04-04 Tom Tromey <tromey@redhat.com>
7398 * symtab.h (domain_enum): Split in two...
7399 (enum search_domain): New.
7400 (search_symbols): Update.
7401 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7402 redundant declarations.
7403 (search_symbols): Change 'kind' argument to search_domain.
7405 (print_symbol_info): Likewise.
7406 (symtab_symbol_info): Likewise.
7407 * symfile.h (struct quick_symbol_functions)
7408 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7409 <expand_symtabs_matching>: Likewise.
7410 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7411 (expand_symtabs_matching_via_partial): Update.
7412 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7413 (dw2_expand_symtabs_for_function): Update.
7414 * block.h: Moved anonymous enum...
7415 * defs.h (enum block_enum): ... here. Now named.
7417 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7419 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7420 * version.in: Bump version to 7.3.50.20110403-cvs.
7422 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7424 * NEWS: Create a new section for the next release branch.
7425 Rename the section of the current branch, now that it has
7428 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7430 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7431 for "fpscr" in target description.
7433 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7436 initialize it. Delay HASH initialization. Strip the part after open
7437 parenthesis for languages with qualifiers. Call do_cleanups.
7439 2011-04-01 Tom Tromey <tromey@redhat.com>
7441 * utils.c (report_command_stats): Don't print `-' for negative
7444 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7446 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7447 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7450 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7452 * breakpoint.h (bpdisp_text): Add declaration.
7453 * breakpoint.c (bpdisp_text): Make non-static.
7454 * ada-lang.c: #include "mi/mi-common.h".
7455 (print_it_exception): Rewrite to improve GDB/MI output.
7457 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7459 * arm-tdep.h (struct address_space): Add forward declaration.
7461 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7463 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7464 * arm-tdep.c (arm_override_mode): New global.
7465 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7466 execution mode heuristics.
7467 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7468 second single-step breakpoint if needed, using
7469 arm_insert_single_step_breakpoint.
7470 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7471 ARM execution mode, do not call thumb_get_next_pc_raw.
7472 (arm_get_next_pc): Encode execution mode in return value. Call
7473 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7474 (arm_insert_single_step_breakpoint): New function.
7475 (arm_software_single_step): Call it.
7476 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7477 argument to return execution mode of sigreturn target.
7478 (arm_linux_syscall_next_pc): Use it.
7479 (arm_linux_copy_svc): Update call.
7480 (arm_linux_software_single_step): Call
7481 arm_insert_single_step_breakpoint.
7483 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7485 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7488 2011-03-31 Tom Tromey <tromey@redhat.com>
7490 * varobj.c (update_dynamic_varobj_children): Properly handle
7491 errors from iterator.
7493 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7496 struct linkage name twice.
7498 2011-03-31 Tom Tromey <tromey@redhat.com>
7500 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7501 missing ">" to message.
7503 2011-03-31 Tom Tromey <tromey@redhat.com>
7505 * varobj.c (instantiate_pretty_printer): Remove duplicate
7508 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7510 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7511 if neither saved value nor register available (e.g. signal frame).
7513 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7515 * macroexp.c (expand): Avoid uninitialized variable
7518 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7520 * breakpoint.c (break_range_command): Fix typo in comment.
7522 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7523 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7525 Implement support for PowerPC BookE ranged breakpoints.
7526 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7527 * breakpoint.h (struct bp_target_info) <length>: New member
7529 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7530 instead of struct breakpoint as argument, and also add ASPACE
7531 and BP_ADDR arguments. Update all callers.
7532 (struct breakpoint_ops) <print_one_detail>: New method.
7533 (struct breakpoint) <addr_string_range_end>: New member variable.
7534 * breakpoint.c (breakpoint_location_address_match): Add function
7536 (insert_bp_location): Set bl->target_info.length.
7537 (breakpoint_here_p): Call breakpoint_location_address_match.
7538 (moribund_breakpoint_here_p): Likewise.
7539 (regular_breakpoint_inserted_here_p): Likewise.
7540 (breakpoint_thread_match): Likewise.
7541 (bpstat_stop_status): Likewise.
7542 (bpstat_check_location): Move call to
7543 breakpoint_ops.breakpoint_hit to the top.
7544 (print_one_breakpoint_location): Call
7545 breakpoint_ops.print_one_detail if available.
7546 (breakpoint_address_match_range): New function.
7547 (breakpoint_location_address_match): Likewise.
7548 (breakpoint_locations_match): Compare the length field of the
7550 (hw_breakpoint_used_count): Count resources used by all locations
7551 in a breakpoint, and use breakpoint_ops.resources_needed if
7553 (breakpoint_hit_ranged_breakpoint): New function.
7554 (resources_needed_ranged_breakpoint): Likewise.
7555 (print_it_ranged_breakpoint): Likewise.
7556 (print_one_ranged_breakpoint): Likewise.
7557 (print_one_detail_ranged_breakpoint): Likewise.
7558 (print_mention_ranged_breakpoint): Likewise.
7559 (print_recreate_ranged_breakpoint): Likewise.
7560 (ranged_breakpoint_ops): New structure.
7561 (find_breakpoint_range_end): New function.
7562 (break_range_command): Likewise.
7563 (delete_breakpoint): Free addr_string_range_end.
7564 (update_breakpoint_locations): Add SALS_END argument. Update
7565 all callers. Calculate breakpoint length if a non-zero SALS_END
7566 is given. Call breakpoint_locations_match instead of
7567 breakpoint_address_match.
7568 (reset_breakpoint): Find SaL of the end of the range if B is a
7570 (_initialize_breakpoint): Register break-range command.
7571 * defs.h (print_core_address): Add function prototype.
7572 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7574 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7575 (ppc_linux_remove_hw_breakpoint): Likewise.
7576 (_initialize_ppc_linux_nat): Initialize
7577 to_ranged_break_num_registers.
7578 * target.c (update_current_target): Add comment about
7579 to_ranged_break_num_registers.
7580 (target_ranged_break_num_registers): New function.
7581 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7583 (target_ranged_break_num_registers): Add function prototype.
7584 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7585 * utils.c (print_core_address): ... here.
7587 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7589 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7590 variable compiler warning.
7592 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7594 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7596 (re_set_breakpoint): ... to here ...
7597 (addr_string_to_sals): ... and here.
7599 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7601 * Makefile.in (SFILES): Add missing C sources.
7602 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7603 Add missing headers.
7605 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7607 * .gitignore: New file.
7609 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7611 * NEWS: Mention new cfi device simulation.
7613 2011-03-29 Tom Tromey <tromey@redhat.com>
7615 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7616 otherwise anonymous types.
7617 (dwarf2_name): Likewise.
7618 * valops.c (value_struct_elt_for_reference): Refine artificial
7619 type logic. Call error if j==-1.
7621 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7623 Fix false GCC warning.
7624 * infcall.c (find_function_addr): Initialize funaddr.
7626 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7628 Fix mingw compilation with --enable-targets=all.
7629 * remote-mips.c (gdb_usleep.h): Include header.
7630 (mips_enter_debug): Use gdb_usleep instead of sleep.
7632 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7634 Support resolution of STT_GNU_IFUNC via breakpoints.
7635 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7636 bp_gnu_ifunc_resolver_return.
7637 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7638 the loop. Support bp_gnu_ifunc_resolver and
7639 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7640 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7642 (bptype_string, print_one_breakpoint_location): Support
7643 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7644 (user_settable_breakpoint): Return true also for
7645 bp_gnu_ifunc_resolver.
7646 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7647 bp_gnu_ifunc_resolver_return.
7648 (set_breakpoint_location_function): New parameter explicit_loc,
7649 describe it. Call find_pc_partial_function_gnu_ifunc with new
7650 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7651 EXPLICIT_LOC is not set.
7652 (set_raw_breakpoint): Set EXPLICIT_LOC for
7653 set_breakpoint_location_function.
7654 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7655 set_breakpoint_location_function.
7656 (mention): Support bp_gnu_ifunc_resolver and
7657 bp_gnu_ifunc_resolver_return.
7658 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7659 set_breakpoint_location_function.
7660 (update_breakpoint_locations): Remove static.
7661 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7662 bp_gnu_ifunc_resolver_return.
7663 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7664 bp_gnu_ifunc_resolver_return.
7665 (update_breakpoint_locations): New declaration.
7666 * elfread.c: Include gdbthread.h and regcache.h.
7667 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7669 (elf_gnu_ifunc_fns): Install them.
7670 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7671 (stub_gnu_ifunc_resolver_return_stop): New functions.
7672 (stub_gnu_ifunc_fns): Install them.
7673 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7674 and gnu_ifunc_resolver_return_stop.
7675 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7677 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7679 STT_GNU_IFUNC reader implementation.
7680 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7681 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7682 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7683 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7684 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7685 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7686 (elf_gnu_ifunc_resolve_addr): New.
7687 (elf_symfile_read): Call elf_rel_plt_read.
7688 (elf_gnu_ifunc_fns): New.
7689 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7690 Install elf_gnu_ifunc_fns.
7691 * infcall.c (find_function_return_type): New function.
7692 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7693 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7694 (stub_gnu_ifunc_resolve_name): New functions.
7695 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7696 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7697 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7699 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 Code cleanup for later STT_GNU_IFUNC support.
7702 * infcall.c (find_function_addr): Remove variable code, use explicit
7703 dereferences for it. Move VALUE_TYPE initialization later.
7705 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7707 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7708 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7709 (clear_pc_function_cache): Clear it.
7710 (find_pc_partial_function): Rename to ...
7711 (find_pc_partial_function_gnu_ifunc): ... this function. New
7712 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7713 (find_pc_partial_function): New wrapper for this function.
7714 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7716 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7718 GDB internal type support for STT_GNU_IFUNC.
7719 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7720 (elf_symtab_read): Set mst_text_gnu_ifunc for
7721 BSF_GNU_INDIRECT_FUNCTION.
7722 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7723 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7724 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7725 nodebug_got_plt_symbol.
7726 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7727 (TYPE_GNU_IFUNC): New.
7728 (struct main_type): New field flag_gnu_ifunc.
7729 (struct builtin_type): New field builtin_func_func.
7730 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7731 nodebug_got_plt_symbol.
7732 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7733 (in_gnu_ifunc_stub): New.
7734 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7736 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7737 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7738 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7740 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7741 * symtab.c (search_symbols): Likewise.
7742 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7743 and mst_slot_got_plt.
7744 (in_gnu_ifunc_stub): New declaration.
7746 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7748 Support a ring of related breakpoints.
7749 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7750 other functions, add gdb_assert.
7751 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7752 watchpoint_del_at_next_stop.
7753 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7754 (bpstat_stop_status): Handle ring in related_breakpoint.
7755 (set_raw_breakpoint_without_location): Initialize ring in
7757 (delete_breakpoint): Handle ring in related_breakpoint, use
7758 watchpoint_del_at_next_stop.
7759 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7761 2011-03-28 Tom Tromey <tromey@redhat.com>
7764 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7765 with `language_minimal'.
7767 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7769 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7770 instead of checking for STT_ARM_TFUNC symbol type.
7772 2011-03-25 Tom Tromey <tromey@redhat.com>
7774 * linespec.c (symbol_found): Restore line-based result for
7775 non-LOC_LABEL symbols.
7777 2011-03-25 Kai Tietz <ktietz@redhat.com>
7779 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7780 instead of strcmp for comparison.
7781 (tui_source_is_displayed): Likewise.
7782 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7784 2011-03-24 Mark Wielaard <mjw@redhat.com>
7786 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7788 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7789 (find_partial_die_in_comp_unit): Likewise in comment.
7790 (read_attribute_value): Likewise.
7791 (lookup_die_type): Likewise.
7792 (dwarf_form_name): Likewise.
7793 (dump_die_shallow): Likewise.
7794 (follow_die_ref_or_sig): Likewise.
7796 2011-03-24 Tom Tromey <tromey@redhat.com>
7798 PR breakpoints/11816:
7799 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7800 (decode_compound): Update.
7801 (find_function_symbol): New function.
7802 (decode_dollar): Update.
7803 (decode_label): Add 'function_symbol' parameter. Handle
7804 function-relative labels.
7805 (decode_variable): Update.
7806 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7807 not its line. Set `special_display' and canonical name for
7810 2011-03-24 Tom Tromey <tromey@redhat.com>
7812 * linespec.h (struct linespec_result) <special_display>: New
7814 * breakpoint.h (struct breakpoint) <display_canonical>: New
7816 * breakpoint.c (print_breakpoint_location): Respect
7818 (create_breakpoint_sal): Add 'display_canonical' parameter.
7819 (create_breakpoints_sal): Update.
7820 (create_breakpoint): Update.
7822 2011-03-24 Tom Tromey <tromey@redhat.com>
7824 * symtab.c (decode_line_spec): Update.
7825 * linespec.c (build_canonical_line_spec): Change type of
7827 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7828 (find_method, decode_all_digits, decode_dollar, decode_label)
7829 (symbol_found): Likewise.
7830 (init_linespec_result): New function.
7831 * breakpoint.c (struct captured_parse_breakpoint_args)
7832 <canonical_p>: New field, replaces addr_string_p.
7833 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7835 (parse_breakpoint_sals): Likewise.
7836 (do_captured_parse_breakpoint): Update.
7837 (create_breakpoint): Use struct linespec_result.
7838 (until_break_command): Update.
7839 (breakpoint_re_set_one): Update.
7840 (decode_line_spec_1): Update.
7841 * linespec.h (struct linespec_result): New.
7842 (init_linespec_result): Declare.
7844 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7846 * regcache.c (regcache_raw_read): If the target didn't supply a
7847 given raw register, mark it as unavailable.
7849 2011-03-23 Kai Tietz <ktietz@redhat.com>
7851 * breakpoint.c (clear_command): Use filename_cmp
7852 instead of strcmp for comparison.
7853 * buildsym.c (watch_main_source_file_lossage): Likewise.
7854 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7855 checking just for slash.
7856 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7857 strrchr and filename_cmp instead of strcmp for filenames.
7858 (add_old_header_file): Use filename_cmp
7859 instead of strcmp for comparison.
7860 * exec.c (exec_set_section_address): Likewise.
7861 * macrotab.c (macro_lookup_inclusion): Likewise.
7862 (macro_lookup_inclusion): Likewise.
7863 * elfread.c (_initialize_elfread): Likewise.
7864 (elfstab_offset_sections): Likewise.
7865 (elfstab_offset_sections): Use lbasename instead of
7867 * mdebugread.c (parse_partial_symbols): Likewise.
7868 (arse_partial_symbols): Use filename_(n)cmp instead of
7869 str(n)cmp for comparison.
7870 * minsyms.c (lookup_minimal_symbol): Likewise.
7871 * psymtab.c (read_psymtabs_with_filename): Likewise.
7872 * solib.c (solib_read_symbols): Likewise.
7873 (reload_shared_libraries_1): Likewise.
7874 * symmisc.c (maintenance_print_symbols): Likewise.
7875 * symfile.c (separate_debug_file_exists): Likewise.
7876 (reread_symbols): Likewise.
7877 (find_separate_debug_file_by_debuglink): Likewise.
7878 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7879 * source.c (add_path): Likewise.
7880 * symtab.c (filename_seen): Likewise.
7881 (file_matches): Likewise.
7882 (print_symbol_info): Likewise.
7883 (maybe_add_partial_symtab_filename): Likewise.
7884 (make_source_files_completion_list): Likewise.
7885 * xml-syscall.c (init_sysinfo): Likewise.
7886 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7887 IS_DIR_SEPARATOR for checking for trailing path separator.
7889 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7891 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7892 label abort_expression.
7893 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7894 DWARF_VALUE_OPTIMIZED_OUT.
7896 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7899 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7900 to linkage_name. Invert its value. Update the function comment.
7901 (c_type_print_varspec_suffix): Invert it at the caller.
7902 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7904 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7906 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7907 errors when reading the `stop_pc'.
7908 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7911 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7913 * NEWS: Document gdb.Write stream keyword.
7915 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7918 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7919 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7920 (dwarf2_add_field): Fix new_field->accessibility for
7921 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7923 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7927 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7928 other error classes. Do not print stack trace.
7930 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7932 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7933 (dwarf2_add_field): Fix new_field->accessibility for
7934 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7936 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7938 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7939 encountering a load via a non-SP register.
7941 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7943 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7944 field in returned unwinder.
7946 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7948 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7950 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7952 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7955 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7957 * frame.c (frame_unwind_register): Throw an error if unwinding the
7959 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7960 an unwind stop reason.
7961 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7962 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7963 UNWIND_UNAVAILABLE>: New.
7964 * inline-frame.c (inline_frame_unwind): Install
7965 default_frame_unwind_stop_reason.
7966 * frame-unwind.c: Include "exceptions.h".
7967 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7968 (default_frame_unwind_stop_reason): New.
7969 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7970 (default_frame_unwind_stop_reason): Declare.
7971 (struct frame_unwind) <stop_reason>: New function pointer.
7973 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7974 * dwarf2-frame.c: Include exceptions.h.
7975 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7976 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7977 computing the CFA. If such an error was thrown, set
7978 unavailable_retaddr.
7979 (dwarf2_frame_unwind_stop_reason): New.
7980 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7982 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7983 (dwarf2_signal_frame_unwind): Ditto.
7985 * amd64-tdep.c: Include "exceptions.h".
7986 (struct amd64_frame_cache): New field "base_p".
7987 (amd64_init_frame_cache): Clear it.
7988 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7989 Avoid reading registers with functions that throw if the register
7990 is not necessary to compute the frame base.
7991 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7992 swallowing NOT_AVAILABLE_ERROR.
7993 (amd64_frame_unwind_stop_reason): New.
7994 (amd64_frame_this_id): Don't build a frame id if the frame base
7996 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7997 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7998 base_p if the frame base was computable.
7999 (amd64_sigtramp_frame_unwind_stop_reason): New.
8000 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8001 frame base was unavailable.
8002 (amd64_sigtramp_frame_unwind): Install
8003 amd64_sigtramp_frame_unwind_stop_reason.
8004 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8005 base_p if the frame base was computable.
8006 (amd64_epilogue_frame_unwind_stop_reason): New.
8007 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8008 frame base was unavailable.
8009 (amd64_epilogue_frame_unwind): Install
8010 amd64_epilogue_frame_unwind_stop_reason.
8011 * i386-tdep.c: Include "exceptions.h".
8012 (struct i386_frame_cache): New field "base_p".
8013 (i386_init_frame_cache): Clear it.
8014 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8015 Avoid reading registers with functions that throw if the register
8016 is not necessary to compute the frame base.
8017 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8018 swallowing NOT_AVAILABLE_ERROR.
8019 (i386_frame_unwind_stop_reason): New.
8020 (i386_frame_this_id): Don't build a frame id if the frame base was
8022 (i386_frame_prev_register): Handle unavailable SP.
8023 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8024 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8025 base_p if the frame base was computable.
8026 (i386_epilogue_frame_unwind_stop_reason): New.
8027 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8028 base was unavailable.
8029 (i386_epilogue_frame_unwind): Install
8030 i386_epilogue_frame_unwind_stop_reason.
8031 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8032 base_p if the frame base was computable.
8033 (i386_sigtramp_frame_unwind_stop_reason): New.
8034 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8035 base was unavailable.
8036 (i386_sigtramp_frame_unwind): Install
8037 i386_sigtramp_frame_unwind_stop_reason.
8038 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8039 type's size, not the register's.
8040 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8042 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8043 default_frame_unwind_stop_reason.
8044 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8045 (alpha_heuristic_frame_unwind): Ditto.
8046 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8047 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8048 * avr-tdep.c (avr_frame_unwind): Ditto.
8049 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8051 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8052 * frv-tdep.c (frv_frame_unwind): Ditto.
8053 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8054 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8055 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8056 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8057 (hppa_stub_frame_unwind): Ditto.
8058 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8059 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8060 (ia64_libunwind_frame_unwind)
8061 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8062 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8063 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8064 * m32c-tdep.c (m32c_unwind): Ditto.
8065 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8066 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8067 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8068 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8069 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8070 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8071 * mep-tdep.c (mep_frame_unwind): Ditto.
8072 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8073 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8074 (mips_stub_frame_unwind): Ditto.
8075 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8076 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8077 * mt-tdep.c (mt_frame_unwind): Ditto.
8078 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8079 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8080 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8081 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8082 (s390_sigtramp_frame_unwind): Ditto.
8083 * score-tdep.c (score_prologue_unwind): Ditto.
8084 * sh-tdep.c (sh_frame_unwind): Ditto.
8085 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8086 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8087 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8088 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8089 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8090 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8091 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8092 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8093 (sparc64obsd_trapframe_unwind): Ditto.
8094 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8095 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8096 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8097 * v850-tdep.c (v850_frame_unwind): Ditto.
8098 * vax-tdep.c (vax_frame_unwind): Ditto.
8099 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8100 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8101 * xtensa-tdep.c (xtensa_unwind): Ditto.
8103 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8105 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8106 there's always a frame. Use get_frame_pc_if_available instead of
8107 get_frame_pc, and if there's no PC available, don't look up a
8110 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8112 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8115 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8117 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8120 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8122 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8123 * frame.c (frame_unwind_caller_pc_if_available): New.
8124 * stack.c (frame_info): Handle unavailable PC.
8126 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8128 * frame.c (frame_unwind_pc): Rename to ...
8129 (frame_unwind_pc_if_available): ... this. New `pc' output
8130 parameter. Change return type to int. Gracefully handle
8131 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8132 happened, or 1 otherwise.
8133 (frame_unwind_pc): Reimplement on top of
8134 frame_unwind_pc_if_available.
8135 (get_frame_func): Rename to ...
8136 (get_frame_func_if_available): New `pc' output parameter. Change
8137 return type to int. Gracefully handle the PC not being available.
8138 (get_frame_func): Reimplement on top of
8139 get_frame_func_if_available.
8140 (select_frame): Handle the PC being unavailable.
8141 (get_prev_frame): Handle the PC being unavailable.
8142 (get_frame_pc_if_available): New.
8143 (get_frame_address_in_block_if_available): New.
8144 (find_frame_sal): Handle the frame PC not being available.
8145 * frame.h (get_frame_pc_if_available): Declare.
8146 (get_frame_address_in_block_if_available): Declare.
8147 (get_frame_func_if_available): Declare.
8148 * stack.c (print_frame_info): Handle the PC being unavailable.
8149 (find_frame_funname): Ditto.
8150 (print_frame): Handle the PC being unavailable.
8151 (get_frame_language): Ditto.
8152 * blockframe.c (get_frame_block): Ditto.
8153 * macroscope.c (default_macro_scope): Ditto.
8154 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8156 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8158 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8159 NOT_AVAILABLE_ERROR when evaluating the location expression.
8161 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8163 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8164 returning that the register piece is unavailable/optimized out.
8165 (write_pieced_value): Handle get_frame_register_bytes returning
8166 that the register piece is unavailable/optimized out when doing a
8167 read-modify write of a bitfield.
8168 * findvar.c (value_from_register): Handle get_frame_register_bytes
8169 returning that the register piece is unavailable/optimized out.
8170 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8171 and `unavailablep'. Throw error on bad debug info. Use
8172 frame_register instead of frame_register_read, to fill in the new
8174 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8176 * valops.c: (value_assign): Adjust, and handle
8177 get_frame_register_bytes failing.
8178 * spu-tdep.c: Include exceptions.h.
8179 (spu_software_single_step): Adjust, and handle
8180 get_frame_register_bytes failing.
8181 (spu_get_longjmp_target): Ditto.
8182 * gdbarch.sh (register_to_value): Change to return int. New
8183 parameters `optimizedp' and `unavailablep'.
8184 * gdbarch.h, gdbarch.c: Regenerate.
8185 * i386-tdep.c (i386_register_to_value): Adjust to new
8186 gdbarch_register_to_value interface.
8187 * i387-tdep.c (i387_register_to_value): Ditto.
8188 * i387-tdep.h (i387_register_to_value): Ditto.
8189 * alpha-tdep.c (alpha_register_to_value): Ditto.
8190 * ia64-tdep.c (ia64_register_to_value): Ditto.
8191 * m68k-tdep.c (m68k_register_to_value): Ditto.
8192 * mips-tdep.c (mips_register_to_value): Ditto.
8193 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8195 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8197 * findvar.c (value_of_register): Mark the value as unavailable, if
8198 the register is unavailable.
8199 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8200 (frame_register): New `unavailablep' parameter.
8201 (frame_register_read): Update comment.
8202 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8203 Set it if the register is unavailable. If the register is
8204 unavailable, clear the output buffer.
8205 (frame_register): New `unavailablep' parameter. Pass it down.
8206 (frame_unwind_register): Adjust.
8207 (put_frame_register): Adjust.
8208 (frame_register_read): Adjust. Also return false if the register
8210 (frame_register_unwind_location): Adjust.
8211 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8212 is unavailable, mark the value accordingly.
8213 * stack.c (frame_info): Handle unavailable registers.
8215 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8217 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8218 simplify, using regcache_cooked_read.
8220 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8222 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8223 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8224 (regcache_raw_read_unsigned, regcache_raw_read_part)
8225 (regcache_cooked_read, regcache_cooked_read_signed)
8226 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8227 (regcache_cooked_read_ftype): Change return to enum
8229 * regcache.c: Include exceptions.h
8230 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8231 (do_cooked_read): Change return to enum register_status. Always
8232 forward to regcache_cooked_read.
8233 (regcache_raw_read): Change return to enum register_status. If
8234 the register is not REG_VALID, memset the buffer. Return the
8236 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8237 return the register's status.
8238 (regcache_raw_read_unsigned): Ditto.
8239 (regcache_cooked_read): Change return to enum register_status.
8240 Assert that with read-only regcaches, the register's status must
8241 be known. If the regcache is read-only, and the register is not
8242 REG_VALID, memset the buffer. Return the register's status.
8243 (regcache_cooked_read_signed): Change return to enum
8244 register_status. Handle non-REG_VALID registers and return the
8246 (regcache_cooked_read_unsigned): Change return to enum
8247 register_status. Handle non-REG_VALID registers and return the
8249 (regcache_xfer_part, regcache_raw_read_part)
8250 (regcache_cooked_read_part): Change return to enum
8251 register_status. Return the register's status.
8252 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8254 (regcache_dump): Handle unavailable cooked registers.
8255 * frame.c (do_frame_register_read): Adjust interface to match
8256 regcache_cooked_read_ftype.
8257 * gdbarch.sh (pseudo_register_read): Change return to enum
8259 * gdbarch.h, gdbarch.c: Regenerate.
8261 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8263 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8264 register_status. If reading a raw register indicates the raw
8265 register is not valid, return the raw register's status,
8266 otherwise, return REG_VALID.
8267 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8268 register_status. Handle non-REG_VALID raw registers and return
8269 the register's status.
8270 * arm-tdep.c (arm_neon_quad_read)
8271 (arm_pseudo_read): Change return to enum register_status. Handle
8272 non-REG_VALID raw registers and return the register's status.
8273 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8274 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8275 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8276 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8277 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8279 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8280 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8281 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8282 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8283 (m32c_pseudo_register_read): Change return to enum
8284 register_status. Adjust.
8285 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8286 enum register_status. Return the register's status.
8287 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8288 register_status. Return the register's status.
8289 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8290 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8291 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8292 * rs6000-tdep.c (move_ev_register_func): New typedef.
8293 (e500_move_ev_register): Use it. Change return to enum
8294 register_status. Return the register's status.
8295 (do_regcache_raw_read): New function.
8296 (do_regcache_raw_write): New function.
8297 (e500_pseudo_register_read): Change return to enum
8298 register_status. Return the register's status. Use
8299 do_regcache_raw_read.
8300 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8301 (dfp_pseudo_register_read): Change return to enum register_status.
8302 Return the register's status.
8303 (vsx_pseudo_register_read): Ditto.
8304 (efpr_pseudo_register_read): Ditto.
8305 (rs6000_pseudo_register_read): Ditto.
8306 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8307 register_status. Return the register's status.
8308 * sh64-tdep.c (pseudo_register_read_portions): New function.
8309 (sh64_pseudo_register_read): Change return to enum
8310 register_status. Use pseudo_register_read_portions. Return the
8312 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8313 register_status. Return the register's status.
8314 * sh-tdep.c (pseudo_register_read_portions): New function.
8315 (sh_pseudo_register_read): Change return to enum register_status.
8316 Use pseudo_register_read_portions. Return the register's status.
8317 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8318 enum register_status. Return the register's status.
8319 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8320 * spu-tdep.c (spu_pseudo_register_read_spu)
8321 (spu_pseudo_register_read): Ditto.
8322 * xtensa-tdep.c (xtensa_register_read_masked)
8323 (xtensa_pseudo_register_read): Ditto.
8324 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8326 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8328 * python/py-value.c (valpy_getitem): Fix formatting of error function
8331 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8333 ARI fixes: Add missing internationalization markups throughout
8335 * darwin-nat-info.c: Ditto.
8338 * mi/mi-main.c: Ditto.
8340 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8342 ARI fixes: Add missing internationalization markups throughout
8345 * cp-name-parser.y: Ditto.
8348 * objc-exp.y: Ditto.
8351 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8353 ARI fixes: Messages should have no trailing new lines.
8354 * darwin-nat.c (mach_check_error): Remove trailing new line from
8355 warning function call message.
8356 * record.c (bfdcore_read): Idem for error call.
8358 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8360 * common/signals.c (target_signal_from_host): Add _ markup to error
8361 function call message.
8362 (target_signal_to_host): Add _ markup and remove trailing new line
8363 from warning call message.
8364 (target_signal_from_command): Add _ markup to error function call
8367 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8371 * python/python.c (gdbpy_write): Accept a stream argument and
8372 operate to the appropriate stream.
8373 (gdbpy_flush): Likewise.
8374 (_initialize_python): Add stream constants.
8375 (finish_python_initialization): Add GdbOutputErrorFile class.
8377 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8379 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8381 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8383 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8384 to store_signed_integer. Add debug message when relocating CALL
8385 instructions. Fix formatting of debug message.
8386 * i386-tdep.c (i386_relocate_instruction): Ditto.
8388 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8390 * target.h (struct target_ops): Remove to_lookup_symbol field.
8391 (target_lookup_symbol): Delete macro.
8392 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8393 (update_current_target, setup_target_debug): Remove handling
8394 of to_lookup_symbol target_ops field.
8395 * ada-tasks.c (get_known_tasks_addr): Remove use of
8396 target_lookup_symbol.
8397 * coffread.c (coff_symtab_read): Likewise.
8398 * dbxread.c (read_dbx_symtab): Ditto.
8400 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8403 * configure.ac: Add getthrds declaration check.
8404 * configure, config.in: Regenerate.
8405 * aix-thread.c (getthrds): Declare only if not already declared
8406 in procinfo.h. More declaration out of get_signaled_thread to
8409 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8411 * python/py-symtab.c: Populate symtab_object_methods,
8413 (stpy_is_valid): New function.
8414 (salpy_is_valid): Ditto.
8415 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8416 (sympy_is_valid): New function.
8417 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8418 (objfpy_is_valid): New function.
8419 * python/py-inferior.c: Populate inferior_object_methods.
8420 (infpy_is_valid): New function.
8421 * python/py-infthread.c: Populate thread_object_methods.
8422 (thpy_is_valid): New function.
8423 * python/py-block.c: Declare block_object_methods. Populate. Declare
8424 block_iterator_object_methods. Populate.
8425 (blpy_is_valid): New function.
8426 (blpy_iter_is_valid): Ditto.
8428 2011-03-16 Keith Seitz <keiths@redhat.com>
8430 * linespec.c (find_methods): Canonicalize NAME before looking
8432 (name_end): New function.
8433 (keep_name_info): New function.
8434 (decode_line_1): Use keep_name_info.
8435 (decode_compound): Likewise.
8436 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8437 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8440 * linespec.c (locate_first_half): Keep overload information, too.
8441 (decode_compound): Use a string to represent break characters
8443 If P points to a break character, do not increment it.
8444 For C++ and Java, keep overload information and relevant keywords.
8445 If we cannot find a symbol, search the minimal symbols.
8448 * linespec.c (decode_compound): Rename SAVED_ARG to
8450 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8452 Pass a valid block to lookup_symbol.
8453 (lookup_prefix_sym): Likewise.
8454 (find_method): Construct search name based on SYM_CLASS instead
8456 * psymtab.c (lookup_partial_symbol): Add language parameter.
8457 (lookup_symbol_aux_psymtabs): Likewise.
8458 Don't assume that the psymtab we found was the right one. Search
8459 for the desired symbol in the symtab to be certain.
8460 (psymtab_search_name): New function.
8461 (lookup_partial_symbol): Use psymtab_search_name.
8462 Add language parameter.
8463 (read_symtabs_for_function): Add language parameter and pass to
8464 lookup_partial_symbol.
8465 (find_symbol_file_from_partial): Likewise.
8467 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8470 * dwarf2read.c (noop_record_line): New function.
8471 (dwarf_decode_lines): Ignore line tables for GCd functions.
8473 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8475 Fix ARI warnings about new lines at the end of messages, which
8476 are unneeded as there is a new line added at the end of the message
8478 * darwin-nat.c (darwin_stop_inferior): Ditto.
8479 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8480 * dfp.c (decimal_to_number): Ditto.
8481 * exec.c (print_section_info): Ditto.
8482 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8483 * osdata.c (get_osdata): Ditto.
8484 * record.c (bfdcore_write): Ditto.
8485 * remote-mips.c (mips_readchar): Ditto.
8486 * remote.c (read_ptid): Ditto.
8487 * ser-mingw.c (ser_windows_raw): Ditto.
8488 * tracepoint.c (add_local_symbols): Ditto.
8489 * windows-nat.c (fake_create_process): Ditto.
8491 2011-03-16 Tom Tromey <tromey@redhat.com>
8493 * tracepoint.c (stop_tracing): Don't declare.
8494 * event-top.c (after_char_processing_hook): Add `(void)'.
8496 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8498 * NEWS: Add Parameter sub-classing description.
8500 2011-03-16 Kai Tietz <ktietz@redhat.com>
8502 * MAINTAINERS: Update my e-mail address.
8504 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8506 * MAINTAINERS: Add myself for write after approval privileges.
8508 2011-03-15 Michael Snyder <msnyder@vmware.com>
8510 * frame.c (find_frame_sal): Assert sym is not null.
8512 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8514 * objc-lang.c (selectors_info): Check strchr for null result.
8516 * stabsread.c (define_symbol): Guard against bad stabstring input.
8518 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8520 Remove trailing spaces and tabulations from pascal language
8525 p-valprint.c: Ditto.
8527 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8529 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8530 than LOW. Comment it.
8531 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8532 HIGHPC not strictly higher than LOWPC.
8534 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8536 Fix formatting of function declarations returning a pointer in
8538 * varobj.c (varobj_add_child): Ditto.
8539 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8540 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8542 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8544 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8545 for the "generic" vector ABI used with GCC 4.3 and later.
8546 (ppc64_sysv_abi_return_value): Likewise.
8548 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8550 * infcall.c (call_function_by_hand): Function return value is
8551 always a non_lval, even when using struct_return.
8553 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8555 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8556 (map_display_numbers): New.
8557 (do_delete_display): New.
8558 (undisplay_command): Use map_display_numbers.
8559 (do_enable_disable_display): New.
8560 (enable_disable_display_command): New function.
8561 (enable_display): Delete.
8562 (enable_display_command): New.
8563 (disable_display_command): Reimplement.
8564 (_initialize_printcmd): Adjust "enable display" command to use
8565 `enable_display_command' as callback.
8567 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8569 * NEWS: Add Python breakpoint 'stop' operation.
8571 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8573 * NEWS: Delete duplicate entry. Fix typo.
8575 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8577 Fix ARI warning about function names in first column.
8578 Put prototype declaration on same line as return type.
8579 * objc-exp.y: Ditto.
8581 * python/py-stopevent.h: Ditto.
8582 For long function names, split parameters to
8583 allow function name on same line as return type.
8584 * solib-pa64.c: Ditto.
8587 For long function declaration, use single line.
8588 * hppa-tdep.h: Ditto.
8589 * inferior.h: Ditto.
8591 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8593 * python/python.h: Declare gdbpy_should_stop and
8594 gdbpy_breakpoint_has_py_cond.
8595 * python/python.c: Add python.h to includes. Remove python.h from
8596 HAVE_PYTHON definition
8597 (gdbpy_should_stop): New dummy function.
8598 (gdbpy_breakpoint_has_py_cond): New dummy function.
8599 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8600 sub-classing capabilities.
8601 (gdbpy_should_stop): New function.
8602 (gdbpy_breakpoint_has_py_cond): New function.
8603 (local_setattro): New function.
8604 * breakpoint.c (condition_command): Add check for Python 'stop'
8606 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8607 operation function as part of stop/continue tests.
8609 2011-03-14 Tom Tromey <tromey@redhat.com>
8612 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8613 (needs_frame_dwarf_call): Likewise.
8615 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8617 Fix ARI warning about functions without parameters that do not
8619 * breakpoint.c (all_tracepoints): Replace () by (void).
8620 * f-exp.y (match_string_literal): Ditto.
8622 * m2-exp.y (yylex): Ditto.
8623 * mep-tdep.c (current_me_module): Ditto.
8624 (current_options): Ditto.
8625 (current_cop_data_bus_width): Ditto.
8626 (current_cr_names): Ditto.
8627 (current_cr_is_float): Ditto.
8628 (current_ccr_names): Ditto.
8629 * objc-exp.y (yylex): Ditto.
8630 * p-exp.y (yylex): Ditto.
8631 * remote.c (send_interrupt_sequence): Ditto.
8632 * tracepoint.c (current_trace_status): Ditto.
8633 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8634 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8636 2011-03-11 Michael Snyder <msnyder@vmware.com>
8638 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8639 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8640 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8641 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8642 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8644 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8645 (delete_async_event_handler): Ditto.
8647 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8649 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8651 * top.c (set_verbose): Assert showcmd was found.
8653 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8655 * xtensa-tdep.c (warning_once): Correct style issues.
8657 2011-03-11 Yao Qi <yao@codesourcery.com>
8659 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8661 2011-03-11 Andreas Schwab <schwab@redhat.com>
8663 * common/aclocal.m4: Remove.
8665 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8667 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8668 (xtensa_write_register, xtensa_read_register): Likewise.
8669 (xtensa_hextochar): Removed.
8670 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8672 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8674 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8675 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8676 (xtensa_alloc_frame_cache): Add initialization for new fields.
8677 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8678 (warning_once): New function.
8679 (xtensa_insn_kind): New item c0opc_and.
8680 (call0_classify_opcode): Add the case for AND instruction.
8681 (call0_track_op): Change arguments. New local variable litbase.
8682 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8683 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8685 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8686 (call0_analyze_prologue): Update the comments. Change arguments.
8687 Add the variety of updates to handle extended prologues, which now can
8688 conduct dynamic stack adjustments.
8689 (call0_frame_cache): Likewise.
8690 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8691 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8693 2011-03-10 Michael Snyder <msnyder@vmware.com>
8695 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8696 (cmd_qtframe): Ditto.
8697 (cmd_qtbuffer): Ditto.
8698 (cmd_bigqtbuffer): Ditto.
8700 2011-03-10 Tom Tromey <tromey@redhat.com>
8702 * tracepoint.c (trace_actions_command): Update.
8703 * thread.c (thread_apply_command): Update.
8704 * reverse.c (delete_bookmark_command): Update.
8705 (bookmarks_info): Update.
8706 * printcmd.c (undisplay_command): Update.
8707 * memattr.c (mem_enable_command): Update.
8708 (mem_disable_command): Update.
8709 (mem_delete_command): Update.
8710 * inferior.c (detach_inferior_command): Update.
8711 (kill_inferior_command): Update.
8712 (remove_inferior_command): Update.
8713 * cli/cli-utils.h (struct get_number_or_range_state): New.
8714 (init_number_or_range): Declare.
8715 (get_number_or_range): Update.
8716 * cli/cli-utils.c (init_number_or_range): New function.
8717 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8719 (number_is_in_list): Update.
8720 * breakpoint.h (get_tracepoint_by_number): Update.
8721 * breakpoint.c (map_breakpoint_numbers): Update for change to
8722 get_number_or_range.
8723 (find_location_by_number): Use get_number, not
8724 get_number_or_range.
8725 (trace_pass_set_count): New function.
8726 (trace_pass_command): Update for change to get_number_or_range.
8728 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8731 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8733 * python/py-param.c (add_setshow_generic): Add set/show callback
8734 parameters. Register Python object context.
8735 (get_show_value): New function.
8736 (get_set_value): New function.
8737 (call_doc_function): New function.
8738 (get_doc_string): Move behind get_show_value/get_set_value.
8740 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8742 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8744 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8746 * xtensa-tdep.c (xtensa_read_register): Add comment.
8747 (xtensa_write_register): Likewise.
8748 (xtensa_hextochar): Add comment and update to match coding conventions.
8749 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8750 (execute_l32e, execute_s32e, execute_code): Update comments.
8751 (xtensa_exception_handler_t): Update to match coding conventions.
8752 (xtensa_insn_kind): Likewise.
8754 2011-03-09 Michael Snyder <msnyder@vmware.com>
8756 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8758 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8760 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8762 2011-03-09 Tom Tromey <tromey@redhat.com>
8764 * thread.c (restore_selected_frame): Handle frame_level == -1.
8765 (make_cleanup_restore_current_thread): Use
8766 get_selected_frame_if_set.
8767 * frame.h (get_selected_frame_if_set): Declare.
8768 * frame.c (get_selected_frame_if_set): New function.
8770 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8772 * cli/cli-cmds.c (shell_escape): Use lbasename.
8773 * coffread.c (coff_start_symtab): Constify parameter.
8774 (complete_symtab): Constify `name' parameter.
8775 (coff_symtab_read): Constify `filestring' local.
8776 (coff_getfilename): Constify return and `result' local.
8778 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8779 * linux-fork.c (info_checkpoints_command): Use lbasename.
8780 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8781 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8782 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8783 * procfs.c (procfs_make_note_section): Use lbasename.
8784 * tui/tui-io.c (printable_part): Constity return and parameter.
8786 (print_filename): Constify parameters, and local `s'.
8787 (tui_rl_display_match_list): Constify local `temp'.
8789 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8792 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8793 Fix DWARF-3+ DW_AT_accessibility default assumption.
8794 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8795 cu->header.version >= 3.
8797 2011-03-09 Yao Qi <yao@codesourcery.com>
8799 * common/Makefile.in: Remove.
8800 * common/configure: Remove.
8801 * common/configure.ac: Remove.
8803 2011-03-09 Yao Qi <yao@codesourcery.com>
8806 2011-02-11 Yao Qi <yao@codesourcery.com>
8808 * common/Makefile.in: Add copyright header.
8810 2011-02-11 Yao Qi <yao@codesourcery.com>
8812 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8814 * configure.ac: Add common to sub dir.
8815 * configure: Regenerate.
8817 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8819 * xtensa-tdep.c (call0_ret): New function.
8820 (xtensa_skip_prologue): Speed up analysis.
8822 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8824 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8825 while executing MI command -data-list-changed-registers.
8827 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8829 * xtensa-tdep.c (xtensa_read_register): New function.
8830 (xtensa_write_register): New function.
8831 (xtensa_find_register_by_name): New function.
8832 (xtensa_windowed_frame_cache): Update comments in type description.
8833 (xtensa_frame_cache): Likewise.
8834 (xtensa_window_interrupt_insn): New function.
8835 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8836 (xtensa_insn_kind): Add new instructions.
8837 (rwx_special_register): New function.
8838 (call0_classify_opcode): Add new instructions to the analysis.
8839 (a0_saved, a7_saved, a11_saved): New variables.
8840 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8841 (execute_l32e): New function.
8842 (execute_s32e): New function.
8843 (xtensa_exception_handler_t): New type.
8844 (execute_code): New function.
8845 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8846 analysis for Xtensa Window Exception handlers.
8848 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8850 * xtensa-tdep.c (TX_PS): New.
8851 (windowing_enabled): Update to count for Call0 ABI.
8852 (xtensa_hextochar): New.
8853 (xtensa_init_reggroups): Make algorithm generic.
8854 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8856 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8858 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8860 2011-03-08 Michael Snyder <msnyder@vmware.com>
8862 * i386-tdep.c (i386_follow_jump): Check return value of
8864 (i386_analyze_struct_return): Ditto.
8865 (i386_skip_probe): Ditto.
8866 (i386_match_insn): Ditto.
8867 (i386_skip_noop): Ditto.
8868 (i386_analyze_frame_setup): Ditto.
8869 (i386_analyze_register_saves): Ditto.
8870 (i386_skip_prologue): Ditto.
8871 (i386_skip_main_prologue): Ditto.
8873 * target.c (read_whatever_is_readable): Fix memory leak.
8875 * i386-tdep.c (i386_process_record): Document fall through.
8877 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 Fix DWARF-3+ DW_AT_accessibility default assumption.
8880 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8881 cu->header.version >= 3.
8883 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8885 * remote.c (remote_check_symbols): Skip if the target has no
8888 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8890 * target.c (read_whatever_is_readable): Reformat comment,
8891 with a minor typo fix. Minor reformatting of the code.
8893 2011-03-08 Yao Qi <yao@codesourcery.com>
8895 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8896 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8897 Use cached result instead of calling displaced_in_arm_mode again.
8898 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8899 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8900 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8901 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8902 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8903 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8904 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8905 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8906 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8907 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8908 (arm_catch_kernel_helper_return): Likewise.
8909 * gdb/arm-tdep.h : Update function declarations.
8911 2011-03-07 Michael Snyder <msnyder@vmware.com>
8913 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8915 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8917 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8919 * elfread.c (elf_symtab_read): Stop memory leak.
8921 * main.c (captured_main): Fix memory leak.
8923 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8925 * ada-lang.c (compare_names): Call is_name_suffix with string1
8928 2011-03-07 Tom Tromey <tromey@redhat.com>
8930 * xcoffread.c (xcoff_sym_fns): Update.
8931 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8932 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8933 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8934 (symbol_file_add_with_addrs_or_offsets): Likewise.
8935 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8936 * somread.c (som_sym_fns): Update.
8937 * psymtab.h (require_partial_symbols): Declare.
8938 * psymtab.c (require_partial_symbols): New function.
8939 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8940 (ALL_OBJFILE_PSYMTABS): Undef.
8941 (ALL_PSYMTABS): Move from psympriv.h.
8942 (lookup_partial_symtab, find_pc_sect_psymtab)
8943 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8944 (find_last_source_symtab_from_partial)
8945 (forget_cached_source_info_partial)
8946 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8947 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8948 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8949 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8950 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8951 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8952 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8953 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8954 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8956 * mipsread.c (ecoff_sym_fns): Update.
8957 * machoread.c (macho_sym_fns): Update.
8958 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8959 (read_psyms): New function.
8960 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8961 (elf_sym_fns_lazy_psyms): New global.
8962 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8963 dwarf2_build_psymtabs.
8964 * dbxread.c (aout_sym_fns): Update.
8965 * coffread.c (coff_sym_fns): Update.
8967 2011-03-07 Tom Tromey <tromey@redhat.com>
8969 * infrun.c (print_exited_reason): Include inferior id and pid in
8972 2011-03-07 Tom Tromey <tromey@redhat.com>
8974 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8976 (target_has_execution_1): Update.
8977 (target_has_execution_current): Declare.
8978 (target_has_execution): Call target_has_execution_current.
8979 (default_child_has_execution): Update.
8980 * target.c (default_child_has_execution): Add 'the_ptid'
8982 (target_has_execution_1): Likewise.
8983 (target_has_execution_current): New function.
8984 (add_target): Update.
8985 (init_dummy_target): Update.
8986 * remote-m32r-sdi.c (m32r_has_execution): New function.
8987 (init_m32r_ops): Use it.
8988 * record.c (record_core_has_execution): Now static. Add
8989 'the_ptid' parameter.
8990 * inferior.c (have_live_inferiors): Don't save current thread.
8991 Use target_has_execution_1.
8993 2011-03-07 Yao Qi <yao@codesourcery.com>
8995 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8997 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8999 * elfread.c (elf_symtab_read): Minor reformatting.
9001 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9003 * objc-lang.c (selectors_info): Minor reformatting.
9005 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9007 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9009 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9010 Michael Snyder <msnyder@vmware.com>
9012 * ada-valprint.c (ada_val_print_array): Move the declaration of
9013 "byte_order" and "elttype" inside the block where these variables
9014 are actually used. Remove some special handling for the case
9015 where "elttype" and "eltlen" are null. Replace by a comment
9016 and a couple of assertion checks.
9018 2011-03-05 Michael Snyder <msnyder@vmware.com>
9020 * source.c (add_path): Replace semicolon at end of block.
9021 * dwarf2expr.c (execute_stack_op): Ditto.
9023 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9025 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9026 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9027 (bfin-*-*): Likewise.
9029 2011-03-05 Michael Snyder <msnyder@vmware.com>
9031 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9032 * mdebugread.c (parse_symbol): Ditto.
9033 * parse.c (parse_exp_in_context): Ditto.
9034 * source.c (add_path): Ditto.
9035 * utils.c (gnu_debuglink_crc32): Ditto.
9036 * varobj.c (variable_language): Ditto.
9038 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9040 2011-03-04 Michael Snyder <msnyder@vmware.com>
9042 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9044 * symfile.c (simple_overlay_update): Check for null return value
9045 from lookup_minimal_symbol.
9047 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9049 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9051 * eval.c (parse_and_eval_address_1): Remove function.
9052 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9053 instead of parse_and_eval_address_1.
9054 * value.h (parse_and_eval_address_1): Remove prototype.
9056 2011-03-04 Michael Snyder <msnyder@vmware.com>
9058 * remote.c (putpkt_binary): Document that case stmt falls through.
9060 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9062 * breakpointc (print_it_typical): Move NULL check from here...
9063 (print_bp_stop_message): ... to here.
9065 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9067 * breakpoint.c (enable_command): Use break instead of continue,
9068 and fill in a missing break.
9069 (disable_command): Ditto.
9071 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9073 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9074 (terminal_save_ours): Remove misleading comment.
9075 (inflow_inferior_data_cleanup): Free ttystate.
9076 (inflow_inferior_exit): Likewise.
9077 (copy_terminal_info): Copy ttystate.
9079 * serial.c (serial_copy_tty_state): New function.
9080 * serial.h (serial_copy_tty_state): Add prototype.
9081 (struct serial_ops): Add copy_tty_state callback.
9082 * ser-base.c (ser_base_copy_tty_state): New function.
9083 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9084 * ser-go32.c (dos_copy_tty_state): New function.
9085 (dos_ops): Install copy_tty_state callback.
9086 * ser-mingw.c (_initialize_ser_windows): Likewise.
9087 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9088 * ser-unix.c (hardwire_copy_tty_state): New function.
9089 (_initialize_ser_hardwire): Install it.
9091 2011-03-04 Michael Snyder <msnyder@vmware.com>
9093 * breakpoint.c (create_breakpoint): Add missing break statement.
9095 Reverting this patch:
9096 * infcall.c (call_function_by_hand): Add break statements for lint.
9098 Reverting this patch:
9099 * cli/cli-script.c (script_from_file): Add break for lint.
9101 2011-03-04 Michael Snyder <msnyder@vmware.com>
9103 * solib.c (reload_shared_libraries_1): Close memory leak.
9105 2011-03-03 Tom Tromey <tromey@redhat.com>
9108 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9111 2011-03-03 Michael Snyder <msnyder@vmware.com>
9113 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9114 fields of struct 'st' to zero.
9116 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9117 sal.pspace before calling set_current_source_symtab_and_line.
9119 2011-03-03 Yao Qi <yao@codesourcery.com>
9121 * Makefile.in (configure-common): Remove. Let Makefile
9122 in dir common to rebuild itself.
9123 (common/Makefile): Likewise.
9125 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9127 * utils.c (parse_escape): Add i18n markup in error message.
9129 2011-03-03 Yao Qi <yao@codesourcery.com>
9131 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9133 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9134 (displaced_write_reg, displaced_read_reg): Likewise.
9135 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9136 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9137 (cleanup_branch): Replace magic number 14 and 15 with
9138 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9140 2011-03-02 Michael Snyder <msnyder@vmware.com>
9142 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9144 * cli/cli-script.c (script_from_file): Add break for lint.
9146 * mdebugread.c (parse_partial_symbols): Fix indent.
9148 * target-descriptions.c (tdesc_gdb_type): No need to call
9149 xstrdup, callee saves a copy.
9151 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9153 * infcall.c (call_function_by_hand): Add break statements for lint.
9155 * utils.c (parse_escape): Escape the escape char.
9157 * python/py-inferior.c (build_inferior_list): Error out if
9158 PyList_Append fails.
9159 (gdbpy_inferiors): Error out if build_inferior_list fails.
9161 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9164 * record.c (record_restore): Move printf to before error return.
9166 2011-03-02 Yao Qi <yao@codesourcery.com>
9168 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9169 is_thumb and insn_size.
9170 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9171 on both ARM and Thumb mode.
9172 (arm_process_displaced_insn): Set is_thumb and insn_size.
9173 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9174 (arm_displaced_step_fixup): Likewise.
9176 2011-03-01 Michael Snyder <msnyder@vmware.com>
9178 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9180 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9182 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9184 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9186 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9189 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9190 which shadows function parameter.
9192 * tracepoint.c (create_tsv_from_upload): Superfluous call
9193 to xstrdup. Callee already calls xstrdup.
9195 * linespec.c (decode_line_1): Remove unnecessary null check.
9197 * tracepoint.c (scope_info): Fix mem leak, remove underused
9200 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9201 superfluous null check.
9203 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9204 (value_of_builtin_frame_fp_reg): Ditto.
9206 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9208 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9211 * linespec.c (decode_line_1): Check for null before dereference.
9213 * reverse.c (record_restore): Move null-check to before pointer
9216 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9218 * objc-lang.c (selectors_info): Add explanitory comment.
9219 (classes_info): Ditto.
9221 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9223 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9224 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9225 versions of the trampoline. Handle Thumb vs. ARM addresses.
9226 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9227 (arm_linux_init_abi): Install it.
9228 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9229 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9231 2011-02-28 Michael Snyder <msnyder@vmware.com>
9233 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9234 a little bigger, to avoid possibility of an overflow.
9236 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9237 buffers a little bigger, to avoid possibility of an overflow.
9239 * coffread.c (coff_getfilename): Add check to avoid overflow.
9241 * objc-lang.c (selectors_info): Add a small safety margin to
9243 (classes_info): Error out on too long REGEXP.
9245 * infrun.c (handle_inferior_event): Remove unused function call.
9247 * fork-child.c (fork_inferior): Remove ifdef'd code and
9250 * linux-thread-db.c (attach_thread): Discard unused value.
9252 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9254 * remote.c (remote_get_noisy_reply): Discard unused value.
9255 (remote_vcont_resume): Ditto.
9256 (remote_stop_ns): Ditto.
9258 * linespec.c (decode_objc): Delete unused variable.
9260 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9262 * dwarf2read.c (add_partial_symbol): Discard unused values.
9263 (read_base_type): Delete unused variable.
9265 * dbxread.c (read_dbx_symtab): Discard unused value.
9267 * eval.c (evaluate_subexp_standard): Delete unused variable,
9268 and discard unused values.
9270 * infcmd.c (_initialize_infcmd): Discard unused values.
9272 * stabsread.c (rs6000_builtin_type): Missing break statement.
9274 * dbxread.c (process_one_symbol): Discard unused value.
9276 * coffread.c (coff_end_symtab): Delete unused variable.
9278 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9279 (dwarf2_add_typedef): Delete unused variable.
9280 (read_namespace): Ditto.
9281 (dwarf_decode_macros): Ditto.
9283 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9285 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9287 * p-valprint.c (pascal_val_print): Discard unused value.
9289 * utils.c (nquery): Call va_end before return;
9293 * proc-service.c (ps_plog): Call va_end before return.
9295 2011-02-28 Tom Tromey <tromey@redhat.com>
9297 * python/python.c (gdbpy_value_cst): New global.
9298 (_initialize_python): Initialize it.
9299 * python/python-internal.h (gdbpy_value_cst): Declare.
9300 * python/py-value.c (convert_value_from_python): Use
9303 2011-02-28 Michael Snyder <msnyder@vmware.com>
9305 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9307 * breakpoint.c (catch_syscall_completer): Free malloced list.
9309 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9311 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9312 (lval_func_check_synthetic_pointer): Ditto.
9313 (lval_func_free_closure): Fix use-after-free.
9315 2011-02-28 Tom Tromey <tromey@redhat.com>
9317 * psymtab.c (expand_partial_symbol_tables): Use
9318 ALL_OBJFILE_PSYMTABS.
9320 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9322 * objc-lang.c (selectors_info): Error on too long REGEXP.
9324 2011-02-28 Michael Snyder <msnyder@vmware.com>
9326 * python/py-param.c (set_parameter_value): Add missing
9329 * linux-record.c (record_linux_system_call): Add missing
9332 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9334 * breakpoint.c (print_one_breakpoint_location): Remove unused
9335 argument PRINT_ADDRESS_BITS. Update callers.
9336 (print_one_breakpoint): Likewise.
9338 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9340 * breakpoint.c (wrap_indent_at_field): New function.
9341 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9342 Allocate ui_stream locally instead of using STB argument.
9343 (print_one_breakpoint_location): Update call.
9344 * ui-out.c (ui_out_query_field): New function.
9345 * ui-out.h (ui_out_query_field): Add prototype.
9347 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9349 From Michael Snyder <msnyder@vmware.com>
9350 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9352 2011-02-27 Michael Snyder <msnyder@vmware.com>
9354 * objc-lang.c (selectors_info): Prevent string overrun.
9356 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9359 * symtab.c (rbreak_command): Move variable 'file_name' to
9362 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9363 param with a local variable of the same name.
9365 2011-02-27 Michael Snyder <msnyder@vmware.com>
9367 * value.c (value_from_history_ref): New function.
9368 * value.h (value_from_history_ref): Export.
9369 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9370 to parse value history references.
9371 * cli/cli-utils.h (get_number_trailer): Update comment.
9373 2011-02-27 Michael Snyder <msnyder@vmware.com>
9375 * inferior.c (detach_inferior_command): Use get_number_or_range.
9376 (kill_inferior_command): Ditto.
9377 (remove_inferior_command): Ditto.
9378 (initialize_inferiors): Make command names plural.
9379 Update help strings.
9381 2011-02-27 Michael Snyder <msnyder@vmware.com>
9383 * darwin-nat-info.c: Fix comment typo.
9384 * dwarf2expr.h: Ditto.
9385 * fbsd-nat.c: Ditto.
9386 * fbsd-nat.h: Ditto.
9387 * frame-unwind.h: Ditto.
9389 * hppa-hpux-tdep.c: Ditto.
9390 * i386-linux-nat.c: Ditto.
9391 * linux-nat.c: Ditto.
9392 * nbsd-nat.c: Ditto.
9393 * nbsd-nat.h: Ditto.
9394 * ppc-linux-tdep.c: Ditto.
9397 * tui/tui-winsource.c: Ditto.
9399 2011-02-26 Michael Snyder <msnyder@vmware.com>
9401 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9403 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9405 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9406 with a local variable of the same name.
9408 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9409 param with a local variable of the same name.
9410 (i387_supply_xsave): Ditto.
9412 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9413 that it does not shadow a function parameter.
9415 * i386-nat.c (i386_length_and_rw_bits): Document that case
9416 statement is meant to fall through.
9418 * expprint.c (dump_subexp_body_standard): Document that case
9419 statement is meant to fall through.
9421 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9422 dead if statement. Condition can't be false.
9424 2011-02-25 Michael Snyder <msnyder@vmware.com>
9426 * arm-tdep.c: Fix typos in comments.
9427 * bsd-uthread.c: Ditto.
9428 * completer.c: Ditto.
9430 * cp-namespace.c: Ditto.
9431 * cp-support.c: Ditto.
9432 * cris-tdep.c: Ditto.
9434 * dwarf2read.c: Ditto.
9436 * gdbtypes.h: Ditto.
9437 * inferior.h: Ditto.
9438 * mdebugread.c: Ditto.
9439 * mips-tdep.c: Ditto.
9440 * ppc-linux-nat.c: Ditto.
9441 * ppc-linux-tdep.c: Ditto.
9442 * printcmd.c: Ditto.
9443 * sol-thread.c: Ditto.
9444 * solib-frv.c: Ditto.
9446 * sparc64-tdep.c: Ditto.
9447 * spu-tdep.c: Ditto.
9448 * stabsread.c: Ditto.
9453 * python/py-block.c: Ditto.
9454 * python/py-symbol.c: Ditto.
9455 * python/py-symtab.c: Ditto.
9456 * python/py-value.c: Ditto.
9457 * tui/tui-win.c: Ditto.
9459 2011-02-25 Michael Snyder <msnyder@vmware.com>
9461 * inferior.c (print_inferior): Accept a string instead of an int
9462 for requested_inferiors, and use get_number_or_range to parse it.
9463 (info_inferiors_command): Pass args string to print_inferior.
9464 (initialize_inferiors): Change help string for info inferiors.
9465 * inferior.h (print_inferior): Export prototype change.
9467 2011-02-25 Tom Tromey <tromey@redhat.com>
9469 * common/ax.def (invalid2): Set to 0x31.
9471 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9473 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9475 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9477 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9479 2011-02-24 Michael Snyder <msnyder@vmware.com>
9481 * Makefile.in (clean): Make clean should remove generated files
9482 observer.h and observer.inc.
9484 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9486 Revert the following patch (not approved yet):
9487 2011-02-21 Hui Zhu <teawater@gmail.com>
9488 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9489 * ax-gdb.c (gen_printf_expr_callback): New function.
9490 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9491 * ax-general.c (ax_memcpy): New function.
9492 (ax_print): Handle "printf".
9494 * ax.h (ax_memcpy): Forward declare.
9495 * common/ax.def (invalid2): Removed.
9496 (printf): New entry.
9497 * printcmd.c (printcmd.h): New include.
9498 (string_printf): New function.
9499 (ui_printf): Removed.
9500 (printf_command): Remove static. Call string_printf.
9501 (eval_command): Call string_printf.
9502 * printcmd.h: New file.
9503 * tracepoint.c (validate_actionline,
9504 encode_actions_1): handle printf_command.
9506 2011-02-23 Tom Tromey <tromey@redhat.com>
9508 * ax-general.c (ax_pick): Add missing newline.
9510 2011-02-23 Michael Snyder <msnyder@vmware.com>
9512 * breakpoint.c (breakpoint_1): Change first argument from an int
9513 to a char pointer, so that the function now accepts a list of
9514 breakpoints rather than just one. Use new function
9515 'number_is_in_list' to implement.
9516 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9517 (watchpoints_info): Ditto.
9518 (tracepoints_info): Ditto.
9519 (maintenance_info_breakpoints): Ditto.
9520 (_initialize_breakpoint): Update help strings to reflect the fact
9521 that these functions can now take more than one argument.
9522 * cli/cli-utils.c (number_is_in_list): New function.
9523 * cli/cli-utils.h (number_is_in_list): Export.
9525 2011-02-23 Michael Snyder <msnyder@vmware.com>
9527 * memattr.c (mem_enable_command): Use get_number_or_range.
9528 (mem_disable_command): Ditto.
9529 (mem_delete_command): Ditto.
9530 (_initialize_mem): Tweak usage message to reflect multiple
9533 2011-02-22 Doug Evans <dje@google.com>
9535 Add gdb.lookup_global_symbol python function.
9537 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9538 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9539 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9541 2011-02-22 Tom Tromey <tromey@redhat.com>
9543 * language.c (language_class_name_from_physname): Rename
9544 'curr_language' argument to 'lang'; use in body.
9546 2011-02-22 Michael Snyder <msnyder@vmware.com>
9548 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9550 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9552 * frame-unwind.h: Fix comment to mention the this frame, not the
9555 2011-02-22 Tom Tromey <tromey@redhat.com>
9557 * symfile.c (auto_solib_limit): Remove.
9558 * symfile.h (auto_solib_limit): Remove.
9560 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9562 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9564 2011-02-21 Michael Snyder <msnyder@vmware.com>
9566 * gdbthread.h (print_thread_info): Change prototype.
9567 * thread.c (print_thread_info): Accept char* instead of int for
9568 requested_threads argument. Use new function number_is_in_list
9569 to determine which threads to list.
9570 (info_threads_command): Pass char* to print_thread_info.
9571 * cli/cli-utils.c (number_is_in_list): New function.
9572 * cli/cli-utils.h (number_is_in_list): Export.
9573 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9575 (print_one_inferior): Ditto.
9576 (mi_cmd_list_thread_groups): Ditto.
9578 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9580 * common/Makefile.in (CFLAGS): New.
9581 (COMPILE): Add $(CFLAGS).
9583 2011-02-21 Tom Tromey <tromey@redhat.com>
9585 * breakpoint.c (catch_syscall_command_1): Fix typo.
9587 2011-02-21 Tom Tromey <tromey@redhat.com>
9589 * reverse.c: Include cli-utils.h.
9590 * printcmd.c: Include cli-utils.h.
9591 (string_printf): Use skip_spaces.
9592 * cli/cli-utils.h: New file.
9593 * cli/cli-utils.c: New file.
9594 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9595 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9596 * breakpoint.h (get_number, get_number_or_range): Move to
9598 * breakpoint.c: Include cli-utils.h.
9599 (get_number_trailer, get_number, get_number_or_range)
9600 (ep_skip_leading_whitespace): Move to cli-utils.c.
9601 (create_breakpoint_sal, find_condition_and_thread)
9602 (decode_static_tracepoint_spec, watch_command_1)
9603 (watch_maybe_just_location, ep_parse_optional_if_clause)
9604 (catch_fork_command_1, catch_exec_command_1)
9605 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9606 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9607 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9608 (HFILES_NO_SRCDIR): Add cli-utils.h.
9609 (cli-utils.o): New target.
9611 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9613 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9614 before calling discard_all_inferiors.
9616 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9618 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9619 (struct builtin_opencl_type): Remove.
9620 (builtin_opencl_type): Change return type to "struct type **".
9621 (lookup_opencl_vector_type): Update caller.
9622 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9623 (build_opencl_types): Install plain array of "struct type *"
9624 instead of "struct builtin_opencl_type".
9626 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9627 Ulrich Weigand <uweigand@de.ibm.com>
9629 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9630 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9631 (struct arm_linux_hwbp_cap): New type.
9632 (arm_linux_get_hwbp_cap): New function.
9633 (arm_linux_get_hw_breakpoint_count): Likewise.
9634 (arm_linux_get_hw_watchpoint_count): Likewise.
9635 (arm_linux_can_use_hw_breakpoint): Likewise.
9636 (arm_hwbp_type): New type.
9637 (arm_hwbp_control_t): Likewise.
9638 (struct arm_linux_hw_breakpoint): Likewise.
9639 (struct arm_linux_thread_points): Likewise.
9640 (arm_threads): New global variable.
9641 (arm_linux_find_breakpoints_by_tid): New function.
9642 (arm_hwbp_control_initialize): Likewise.
9643 (arm_hwbp_control_is_enabled): Likewise.
9644 (arm_hwbp_control_disable): Likewise.
9645 (arm_linux_hw_breakpoint_initialize): Likewise.
9646 (arm_linux_get_hwbp_type): Likewise.
9647 (arm_linux_hw_watchpoint_initialize): Likewise.
9648 (arm_linux_hw_breakpoint_equal): Likewise.
9649 (arm_linux_insert_hw_breakpoint1): Likewise.
9650 (arm_linux_remove_hw_breakpoint1): Likewise.
9651 (arm_linux_insert_hw_breakpoint): Likewise.
9652 (arm_linux_remove_hw_breakpoint): Likewise.
9653 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9654 (arm_linux_insert_watchpoint): Likewise.
9655 (arm_linux_remove_watchpoint): Likewise.
9656 (arm_linux_stopped_data_address): Likewise.
9657 (arm_linux_stopped_by_watchpoint): Likewise.
9658 (arm_linux_watchpoint_addr_within_range): Likewise.
9659 (arm_linux_new_thread): Likewise.
9660 (arm_linux_thread_exit): Likewise.
9661 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9662 related target callbacks. Register arm_linux_new_thread and
9663 arm_linux_thread_exit.
9664 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9665 * arm-tdep.c (arm_pc_is_thumb): Make global.
9666 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9668 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9670 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9671 per-frame locations while within a function epilogue.
9673 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9675 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9676 to GNU coding standards.
9678 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9680 Allow use of mingw native on Windows 95 OS.
9681 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9682 (ser_windows_close): Only call CancelIo if function exists.
9683 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9684 to check for existence of CancelIo function in kernel32 DLL.
9686 2011-02-21 Hui Zhu <teawater@gmail.com>
9688 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9689 * ax-gdb.c (gen_printf_expr_callback): New function.
9690 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9691 * ax-general.c (ax_memcpy): New function.
9692 (ax_print): Handle "printf".
9694 * ax.h (ax_memcpy): Forward declare.
9695 * common/ax.def (invalid2): Removed.
9696 (printf): New entry.
9697 * printcmd.c (printcmd.h): New include.
9698 (string_printf): New function.
9699 (ui_printf): Removed.
9700 (printf_command): Remove static. Call string_printf.
9701 (eval_command): Call string_printf.
9702 * printcmd.h: New file.
9703 * tracepoint.c (validate_actionline,
9704 encode_actions_1): handle printf_command.
9706 2011-02-19 Michael Snyder <msnyder@vmware.com>
9708 * reverse.c (delete_one_bookmark): Argument is now bookmark
9709 id rather than pointer to bookmark struct.
9710 (delete_bookmark_command): Use get_number_or_range.
9711 (goto_bookmark_command): Parse with get_number instead of strtoul.
9712 (bookmark_1): New function. Print info for one bookmark.
9713 (bookmarks_info): Use get_number_or_range and bookmark_1.
9715 2011-02-18 Michael Snyder <msnyder@vmware.com>
9717 * thread.c (info_threads_command): Re-implement using
9718 get_number_or_range.
9719 (thread_apply_command): Ditto.
9721 2011-02-18 Tom Tromey <tromey@redhat.com>
9723 * common/ax.def: New file.
9724 * ax.h (enum agent_op): Use ax.def.
9725 * ax-general.c (aop_map): Use ax.def.
9727 2011-02-18 Tom Tromey <tromey@redhat.com>
9729 * ax-general.c (aop_map): Add pick and rot.
9730 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9731 <DW_OP_rot>: Implement.
9732 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9734 * ax-general.c (ax_pick): New function.
9736 2011-02-18 Tom Tromey <tromey@redhat.com>
9738 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9740 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9741 Tom Tromey <tromey@redhat.com>
9743 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9744 make_symbol_overload_list_block with NULL BLOCK.
9745 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9747 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9749 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9750 * breakpoint.h (get_number_or_range): Declare.
9751 * printcmd.c (ALL_DISPLAYS): Declare.
9752 (delete_display): Reimplement taking a display pointer.
9753 (undisplay_command): Accept a range of displays to delete, using
9754 get_number_or_range.
9756 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9758 * c-valprint.c (c_val_print): Add embedded_offset to address
9759 for arrays of unspecified length.
9760 * p-valprint.c (pascal_val_print): Likewise.
9762 2011-02-18 Yao Qi <yao@codesourcery.com>
9764 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9765 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9766 (thumb_process_displaced_insn): New.
9767 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9768 call to arm_process_displaced_insn.
9769 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9771 2011-02-17 Tom Tromey <tromey@redhat.com>
9773 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9774 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9775 compile_dwarf_to_ax. No longer static. Call
9776 dwarf2_compile_cfa_to_ax.
9777 (locexpr_tracepoint_var_ref): Update.
9778 (loclist_tracepoint_var_ref): Update.
9779 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9780 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9781 argument; add 'gdbarch' and 'pc'.
9782 (dwarf2_compile_cfa_to_ax): New function.
9783 (dwarf2_frame_cache): Update.
9785 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9787 * ada-lang.c (ada_type_of_array): Fix the size of the array
9788 in the case of an unconstrained packed array.
9790 2011-02-17 Yao Qi <yao@codesourcery.com>
9792 * common/Makefile.in: Add more targets for make.
9794 2011-02-16 Tom Tromey <tromey@redhat.com>
9796 * dwarf2loc.c (unimplemented): Fix typo.
9798 2011-02-16 Tom Tromey <tromey@redhat.com>
9800 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9801 (compile_dwarf_to_ax) <default>: Use unimplemented.
9802 <DW_OP_deref>: Update.
9803 (disassemble_dwarf_expression): Update.
9804 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9805 (decode_locdesc): Update.
9806 * dwarf2expr.h (dwarf_stack_op_name): Update.
9808 2011-02-16 Tom Tromey <tromey@redhat.com>
9810 * ax.h (struct aop_map) <name>: Now const.
9812 2011-02-16 Tom Tromey <tromey@redhat.com>
9814 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9817 2011-02-16 Yao Qi <yao@codesourcery.com>
9819 * infrun.c (get_displaced_step_closure_by_addr): New.
9820 * inferior.h: Declare it.
9821 * arm-tdep.c: (arm_pc_is_thumb): Call
9822 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9825 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9826 Jan Kratochvil <jan.kratochvil@redhat.com>
9829 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9831 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9832 Jan Kratochvil <jan.kratochvil@redhat.com>
9834 * value.c (value_contents_copy_raw): Extend describing comment.
9835 Assert that the destination contents we're overwriting are wholly
9837 (value_contents_copy): Extend describing comment.
9839 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9840 Jan Kratochvil <jan.kratochvil@redhat.com>
9842 * value.c (value_available_contents_eq): Remove redundant local
9843 variables. Fix available contents comparision.
9844 * value.h (value_available_contents_eq): Extend describing
9847 2011-02-16 Yao Qi <yao@codesourcery.com>
9849 * thread.c (info_threads_command): Add missing i18n markup and remove
9852 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9854 * breakpoint.c (longjmp_names): New variable.
9855 (struct breakpoint_objfile_data): New type.
9856 (breakpoint_objfile_key): New variable.
9857 (msym_not_found): New variable.
9858 (msym_not_found_p): New predicate.
9859 (get_breakpoint_objfile_data): New function.
9860 (create_overlay_event_breakpoint): Check per-objfile cache for
9862 (create_longjmp_master_breakpoint): Likewise.
9863 (create_std_terminate_master_breakpoint): Likewise.
9864 (create_exception_master_breakpoint): Likewise.
9865 (_initialize_breakpoint): Register per-objfile data key.
9867 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9869 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9871 (create_longjmp_master_breakpoint): Loop over longjmp names.
9872 (create_std_terminate_master_breakpoint): Const-propagate parameter
9874 (update_breakpoints_after_exec): Adjust.
9875 (breakpoint_re_set): Adjust.
9877 2011-02-15 Michael Snyder <msnyder@vmware.com>
9879 * thread.c (info_threads_command): Process arg as thread id,
9880 or list of thread ids.
9881 (thread_find_command): New command.
9882 (_initialize_thread): Document argument for info threads.
9883 Document 'thread find' command.
9884 * NEWS: Document new command "thread find".
9886 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9888 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9889 * aclocal.m4: Regenerated with aclocal-1.11.1.
9890 * common/configure: Regenerate with autoconf-2.64.
9892 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9894 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9895 bool data type to a size of one byte.
9897 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9898 Jan Kratochvil <jan.kratochvil@redhat.com>
9900 * target.c (memory_xfer_live_readonly_partial): Document where to
9901 look for interface description.
9903 2011-02-15 Yao Qi <yao@codesourcery.com>
9906 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9907 order to store PC value on stack instead of text section.
9909 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9911 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9912 the EFP register set size.
9913 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9914 data from the VMX register.
9915 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9916 and write data from/to the VMX register.
9918 2011-02-14 Michael Snyder <msnyder@vmware.com>
9920 * command.h (enum command_class): New class 'no_set_class', for
9921 "show" commands without a corresponding "set" command.
9922 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9923 * copying.c (_initialize_copying): Ditto for "show copying" and
9925 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9927 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9928 which there is no corresponding "set" command (eg. "show copying").
9930 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9931 Jan Kratochvil <jan.kratochvil@redhat.com>
9933 * exec.c (section_table_available_memory): Change `len' parameter
9935 * exec.h (section_table_available_memory): Ditto.
9936 * value.h (read_value_memory): Rename the `offset' parameter to
9939 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9940 Jan Kratochvil <jan.kratochvil@redhat.com>
9942 * memrange.c (compare_mem_ranges): Mention sort order in
9944 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9945 * tracepoint.c (traceframe_available_memory): Extend comment to
9946 mention what happens to RESULT when the target does not support
9949 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9950 Jan Kratochvil <jan.kratochvil@redhat.com>
9952 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9955 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9957 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9958 No longer handle NULL values.
9960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9962 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9963 * value.c: Include "exceptions.h".
9964 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9966 * cp-abi.c: Include gdb_assert.h.
9967 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9968 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9970 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9971 parameters. No longer returns -1 on error.
9972 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9974 * cp-valprint.c: Include exceptions.h.
9975 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9976 the baseclass_offset. Handle unavailable base classes. Use
9977 val_print_invalid_address.
9978 * p-valprint.c: Include exceptions.h.
9979 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9980 when fetching the baseclass_offset. No longer expect
9981 baseclass_offset returning -1. Handle unavailable base classes.
9982 Use val_print_invalid_address.
9983 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9984 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9985 `embedded_offset' and `val' parameters. Adjust.
9986 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9987 parameter, and change its type to gdb_byte pointer. Add
9988 `embedded_offset' and `val' parameters. Adjust. No longer expect
9989 baseclass_offset returning -1.
9990 (value_dynamic_cast): Use value_contents_for_printing rather than
9991 value_contents. Adjust.
9992 (search_struct_field): No longer expect baseclass_offset returning
9994 (search_struct_method): If reading memory from the target is
9995 necessary, wrap it in a new value to pass to baseclass_offset. No
9996 longer expect baseclass_offset returning -1.
9997 (find_method_list): No longer expect baseclass_offset returning
9998 -1. Use value_contents_for_printing rather than value_contents.
9999 * valprint.c (val_print_invalid_address): New function.
10000 * valprint.h (val_print_invalid_address): Declare.
10001 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10002 and `val' parameters. No longer expect baseclass_offset returning
10004 * gnu-v2-abi.c: Include "exceptions.h".
10005 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10006 parameters. Handle unavailable memory. Recurse through
10007 gnuv2_baseclass_offset directly, rather than through
10008 baseclass_offset. No longer returns -1 on not found, instead
10010 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10011 `val' parameters. Adjust.
10013 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10015 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10016 almost but not quite adjacent.
10018 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10020 * value.h (value_entirely_available): Declare.
10021 * value.c (value_entirely_available): New function.
10022 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10023 real type if the pointer is unavailable.
10025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10027 * valops.c (value_repeat): Use read_value_memory instead of
10030 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10032 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10033 * value.c (value_contents_copy_raw, value_contents_copy): New
10035 (value_primitive_field): Use value_contents_copy_raw instead of
10037 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10039 (value_array, value_slice): Ditto.
10040 * valarith.c (value_subscripted_rvalue): Use
10041 value_contents_copy_raw instead of memcpy.
10043 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10045 <unavailable> references.
10047 * valops.c (get_value_at): Use value_from_contents_and_address,
10048 avoiding read_memory.
10050 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10052 * c-valprint.c (c_val_print): Print a string with unavailable
10053 contents as an array.
10055 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10057 * value.h (unpack_bits_as_long): Delete declaration.
10058 (unpack_value_bits_as_long): Declare.
10059 (unpack_value_field_as_long): Declare.
10060 (value_field_bitfield): Declare.
10061 * value.c (unpack_bits_as_long): Rename to...
10062 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10063 value parameters. Return the extracted result in a new output
10064 parameter. If the value contents are unavailable, return false,
10065 otherwise return true.
10066 (unpack_value_bits_as_long): New.
10067 (unpack_field_as_long): Rename to...
10068 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10069 Add embedded_offset and value parameters. Return the extracted
10070 result in a new output parameter. If the value contents are
10071 unavailable, return false, otherwise return true.
10072 (unpack_value_field_as_long): New.
10073 (unpack_field_as_long_1): New.
10074 (unpack_field_as_long): Reimplement as wrapper around
10075 unpack_value_field_as_long_1.
10076 (value_field_bitfield): New function.
10077 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10078 unpack_value_bits_as_long. Mark the value as unavailable, if it
10080 * jv-valprint.c (java_print_value_fields): Use
10081 value_field_bitfield.
10082 * p-valprint.c (pascal_object_print_value_fields): Use
10083 value_field_bitfield.
10084 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10086 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10088 * value.c (get_internalvar_integer): Also return the int value of
10089 TYPE_CODE_INT INTERNALVAR_VALUE values.
10090 (set_internalvar): Don't special case TYPE_CODE_INT.
10092 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10094 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10095 INTERNALVAR_POINTER.
10097 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10098 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10099 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10103 * value.h (value_available_contents_eq): Declare.
10104 * value.c (find_first_range_overlap): New function.
10105 (value_available_contents_eq): New function.
10106 * valprint.c (val_print_array_elements): Use
10107 value_available_contents_eq.
10108 * ada-valprint.c (val_print_packed_array_elements): Use
10109 value_available_contents_eq.
10110 * jv-valprint.c (java_value_print): Use
10111 value_available_contents_eq.
10113 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10115 * target.c (target_read_live_memory): New function.
10116 (memory_xfer_live_readonly_partial): New.
10117 (memory_xfer_partial): If reading from a traceframe, fallback to
10118 reading unavailable read-only memory from read-only regions of
10119 live target memory.
10120 * tracepoint.c (disconnect_tracing): Adjust.
10121 (set_current_traceframe): New, factored out from
10122 set_traceframe_number.
10123 (set_traceframe_number): Reimplement to only change the traceframe
10124 number on the GDB side.
10125 (do_restore_current_traceframe_cleanup): Adjust.
10126 (make_cleanup_restore_traceframe_number): New.
10127 (cur_traceframe_number): New global.
10128 (tfile_open): Set cur_traceframe_number to no traceframe.
10129 (set_tfile_traceframe): New function.
10130 (tfile_trace_find): If looking up a traceframe using any method
10131 other than by number, make sure the current tfile traceframe
10132 matches gdb's current traceframe. Update the current tfile
10133 traceframe if the lookup succeeded.
10134 (tfile_fetch_registers, tfile_xfer_partial)
10135 (tfile_get_trace_state_variable_value): Make sure the remote
10136 traceframe matches gdb's current traceframe.
10137 * remote.c (remote_traceframe_number): New global.
10138 (remote_open_1): Set it to -1.
10139 (set_remote_traceframe): New function.
10140 (remote_fetch_registers, remote_store_registers)
10141 (remote_xfer_memory, remote_xfer_partial)
10142 (remote_get_trace_state_variable_value): Make sure the remote
10143 traceframe matches gdb's current traceframe.
10144 (remote_trace_find): If looking up a traceframe using any method
10145 other than by number, make sure the current remote traceframe
10146 matches gdb's current traceframe. Update the current remote
10147 traceframe if the lookup succeeded.
10148 * infrun.c (fetch_inferior_event): Adjust.
10149 * tracepoint.h (set_current_traceframe): Declare.
10150 (get_traceframe_number, set_traceframe_number): Add describing
10153 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10155 Mark pieces of values as unavailable if the corresponding memory
10158 * valops.c: Include tracepoint.h.
10159 (value_fetch_lazy): Use read_value_memory.
10160 (read_value_memory): New.
10161 * value.h (read_value_memory): Declare.
10162 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10163 * exec.c (section_table_available_memory): New function.
10164 * exec.h (section_table_available_memory): Declare.
10166 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10168 * Makefile.in (SFILES): Add memrange.c.
10169 (HFILES_NO_SRCDIR): Add memrange.h.
10170 (COMMON_OBS): Add memrange.o.
10171 * memrange.c: New file.
10172 * memrange.h: New file.
10173 * tracepoint.c: Include memrange.h.
10174 (struct mem_range): Delete.
10175 (mem_range_s): Delete.
10176 (traceframe_available_memory): New function.
10177 * tracepoint.h (traceframe_available_memory): Declare.
10179 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10181 * target.h (struct traceframe_info): Forward declare.
10182 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10183 (struct target_ops) <to_traceframe_info>: New field.
10184 (target_traceframe_info): New.
10185 * target.c (update_current_target): Inherit and default
10186 to_traceframe_info.
10187 * remote.c (PACKET_qXfer_traceframe_info): New.
10188 (remote_protocol_features): Register qXfer:traceframe-info:read.
10189 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10190 (remote_traceframe_info): New.
10191 (init_remote_ops): Install it.
10192 (_initialize_remote): Install "set/show remote traceframe-info"
10194 * tracepoint.h (parse_traceframe_info): Declare.
10195 * tracepoint.c (struct mem_range): New.
10196 (mem_range_s): New typedef.
10197 (struct traceframe_info): New.
10198 (traceframe_info): New global.
10199 (free_traceframe_info): New function.
10200 (clear_traceframe_info): New function.
10201 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10203 (build_traceframe_info): New function.
10204 (tfile_traceframe_info): New function.
10205 (init_tfile_ops): Install tfile_traceframe_info.
10206 (traceframe_info_start_memory, free_result): New functions.
10207 (memory_attributes, traceframe_info_elements): New globals.
10208 (parse_traceframe_info, get_traceframe_info): New functions.
10209 * features/traceframe-info.dtd: New file.
10210 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10212 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10214 Base support for <unavailable> value contents.
10216 * value.h (value_bytes_available): Declare.
10217 (mark_value_bytes_unavailable): Declare.
10218 * value.c (struct range): New struct.
10219 (range_s): New typedef.
10220 (ranges_overlap): New function.
10221 (range_lessthan): New function.
10222 (ranges_contain_p): New function.
10223 (struct value) <unavailable>: New field.
10224 (value_bytes_available): New function.
10225 (mark_value_bytes_unavailable): New function.
10226 (require_not_optimized_out): Constify parameter.
10227 (require_available): New function.
10228 (value_contents_all, value_contents): Require all bytes be
10230 (value_free): Free `unavailable'.
10231 (value_copy): Copy `unavailable'.
10232 * valprint.h (val_print_unavailable): Declare.
10233 * valprint.c (valprint_check_validity): Rename `offset' parameter
10234 to `embedded_offset'. If printing a scalar, check whether the
10235 value chunk is available.
10236 (val_print_unavailable): New.
10237 (val_print_scalar_formatted): Check whether the value is
10239 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10240 pretty-printing unavailable values.
10242 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10244 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10245 * c-typeprint.c (c_type_print_args): Update the function comment. New
10246 variable param_type, initialize it. Remove const/volatile qualifiers
10247 for language_cplus and !show_artificial. Use param_type.
10249 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10251 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10252 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10253 * symtab.h (struct symtab) <next>: Comment extension.
10255 2011-02-12 Yao Qi <yao@codesourcery.com>
10257 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10259 2011-02-11 Yao Qi <yao@codesourcery.com>
10261 * common/Makefile.in: Add copyright header.
10263 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10265 * infrun.c (proceed): Move switching out and in of tfind mode from
10267 (fetch_inferior_event): ... to here.
10269 2011-02-11 Yao Qi <yao@codesourcery.com>
10271 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10273 * configure.ac: Add common to sub dir.
10274 * configure: Regenerate.
10276 2011-02-11 Yao Qi <yao@codesourcery.com>
10280 * common/Makefile.in: New.
10281 * common/configure.ac: New.
10282 * common/aclocal.m4: New.
10283 * common/configure: Generate.
10285 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10287 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10288 side of the parenthesis.
10291 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10292 * vec.h (VEC_block_remove): Fix comment.
10294 2011-02-08 Michael Snyder <msnyder@vmware.com>
10296 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10298 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10300 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10301 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10304 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10307 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10309 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10310 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10312 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10314 * dwarf2read.c (read_subroutine_type): Set special calling
10315 convention flag for functions compiled by IBM XL C for OpenCL.
10316 * ppc-sysv-tdep.c: Include "dwarf2.h"
10317 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10318 calling convention.
10319 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10320 IBM OpenCL vector types calling convention.
10321 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10322 (ppc_sysv_abi_broken_return_value): Likewise.
10323 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10324 types calling convention.
10325 (ppc64_sysv_abi_return_value): Likewise.
10326 * spu-tdep.c: Include "dwarf2.h"
10327 (spu_return_value): Implement IBM OpenCL vector types calling
10330 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10332 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10333 correct ABI for AltiVec vector arguments.
10335 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10337 * valprint.c (val_print): Extend comment.
10338 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10339 interface explanation to val_print.
10340 (ada_val_print_array): Adjust comment to current interface.
10341 (print_field_values): Adjust comment to current interface.
10342 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10343 explanation to val_print.
10344 * f-valprint.c (f_val_print): Ditto.
10345 * jv-valprint.c (java_val_print): Ditto.
10346 * m2-valprint.c (m2_val_print): Ditto.
10347 * p-valprint.c (pascal_val_print): Ditto.
10349 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10351 * breakpoint.c (parse_breakpoint_sals): Fix description.
10353 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10354 Oguz Kayral <oguzkayral@gmail.com>
10356 * python/py-inferior.c (python_on_normal_stop): New function.
10357 (python_on_resume): New function.
10358 (python_inferior_exit): New function.
10359 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10360 inferior_exit observers.
10361 * python/py-evtregistry.c: New file.
10362 * python/py-threadevent.c : New file.
10363 * python/py-event.c: New file.
10364 * python/py-evts.c: New file.
10365 * python/py-continueevent.c: New file.
10366 * python/py-bpevent.c: New file.
10367 * python/py-signalevent.c: New file.
10368 * python/py-exetiedevent.c: New file.
10369 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10370 Move struct breakpoint_object from here...
10371 * python/python-internal.h: ... to here.
10372 * python/py-event.h: New file.
10373 * python/py-events.h: New file.
10374 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10375 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10376 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10377 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10378 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10379 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10380 Add build rules for all the above.
10382 2011-02-04 Tom Tromey <tromey@redhat.com>
10384 * dwarf2read.c (dwarf2_section_empty_p): New function.
10385 (dwarf2_read_section): Use dwarf2_section_empty_p.
10386 (dwarf2_section_size): New function.
10387 (dwarf2_get_section_info): Unconditionally read section.
10388 (dwarf2_read_index): Use dwarf2_section_empty_p.
10389 (partial_read_comp_unit_head): Use dwarf2_section_size.
10390 (dwarf2_symbol_mark_computed): Likewise.
10392 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10394 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10396 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10398 * mips-linux-tdep.c: Include xml-syscall.h.
10399 (mips_linux_get_syscall_number): New function.
10400 (mips_linux_init_abi): Add calls to
10401 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10402 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10403 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10404 * syscalls/mips-n32-linux.xml: New file.
10405 * syscalls/mips-n64-linux.xml: New file.
10406 * syscalls/mips-o32-linux.xml: New file.
10408 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10410 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10411 Complain about inverted range entries.
10412 (dwarf2_record_block_ranges): Likewise.
10414 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10417 * breakpoint.c (update_watchpoint): Fix name of the
10418 update_global_location_list function.
10419 (print_one_breakpoint): Fix typo.
10420 (_initialize_breakpoint): Remove extra space in hbreak help
10422 * breakpoint.h (struct bp_location) <length>: Fix field
10425 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10427 * regcache.c (registers_changed_ptid): Don't explictly always
10428 clear `current_regcache'. Only clear current_thread_ptid and
10429 current_thread_arch when PTID matches. Only reinit the frame
10430 cache if PTID matches the current inferior_ptid. Move alloca(0)
10432 (registers_changed): ... here.
10434 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10436 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10437 starts with __stack_chk_guard as stack guard symbol.
10439 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10441 * disasm.c (compare_lines): Handle the end of sequence markers
10442 within the line table to better support disassembling over
10443 compilation unit boundaries.
10445 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10447 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10448 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10449 implementation even if no symbols are available.
10450 (thumb_analyze_prologue): Update call to skip_prologue_function.
10451 (arm_analyze_prologue): Likewise.
10453 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10455 * arm-tdep.c: Include "observer.h".
10456 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10457 (arm_exidx_data_key): New static variable.
10458 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10459 (struct arm_exidx_data): Likewise.
10460 (arm_exidx_data_free): New function.
10461 (arm_compare_exidx_entries): Likewise.
10462 (arm_obj_section_from_vma): Likewise.
10463 (arm_exidx_new_objfile): Likewise.
10464 (arm_find_exidx_entry): Likewise.
10465 (arm_exidx_fill_cache): Likewise.
10466 (arm_exidx_unwind_sniffer): Likewise.
10467 (arm_exidx_unwind): New global variable.
10468 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10469 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10470 observer. Register arm_exidx_data_key as objfile data.
10472 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10474 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10475 due to accessing uninitialized variable. Fix indentation.
10477 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10479 * c-valprint.c (c_value_print): When doing virtual base pointer
10480 adjustment, create a new value with adjusted contents rather than
10481 changing the contents of the value being printed (and getting it
10484 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10486 * xml-support.c (xml_find_attribute): New.
10487 (xinclude_start_include): Use it.
10488 * xml-support.h (xml_find_attribute): Declare.
10489 * memory-map.c (memory_map_start_memory)
10490 (memory_map_start_property): Use xml_find_attribute.
10491 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10492 xml_find_attribute.
10493 * remote.c (start_thread): Use xml_find_attribute.
10494 * solib-target.c (library_list_start_segment)
10495 (library_list_start_section, library_list_start_library)
10496 (library_list_start_list): Use xml_find_attribute.
10497 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10498 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10499 (tdesc_start_field): Use xml_find_attribute.
10501 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10503 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10504 (BUILD_OCL_VTYPES): Update.
10506 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10508 * configure.ac: Work around non-GNU sed limitation when computing
10509 python version number.
10510 * configure: Regenerate.
10512 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10514 Fix debug printing of TYPE_INSTANCE.
10515 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10516 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10518 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10520 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10521 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10522 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10523 * ada-operator.inc: Rename the file to ...
10524 * ada-operator.def: ... here, wrap all the entries by macro OP.
10525 * expprint.c (op_name_standard): Remove all the entries. Include
10526 "std-operator.def" instead.
10527 * expression.h (enum exp_opcode): Include "std-operator.def" and
10528 "ada-operator.def". Move all the entries ...
10529 * std-operator.def: ... here, wrap all the entries by macro OP.
10531 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10533 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10534 * breakpoint.c (remove_jit_event_breakpoints): New function.
10535 * jit.c (jit_descriptor_addr): Delete.
10536 (registering_code): Delete.
10537 (clear_int): Delete.
10538 (jit_inferior_data): New variable.
10539 (struct jit_inferior_data): New type.
10540 (get_jit_inferior_data): New function.
10541 (jit_inferior_data_cleanup): New function.
10542 (jit_read_descriptor): Adjust.
10543 (jit_register_code): Adjust.
10544 (jit_breakpoint_re_set_internal): New function; move code here ...
10545 (jit_inferior_init): ... from here.
10546 (jit_breakpoint_re_set): Adjust.
10547 (jit_reset_inferior_data_and_breakpoints): New function.
10548 (jit_inferior_created_observer): Adjust.
10549 (jit_inferior_exit_hook): Adjust.
10550 (jit_executable_changed_observer): New function.
10551 (jit_event_handler): Adjust.
10552 (_initialize_jit): Adjust.
10554 2011-01-31 Michael Snyder <msnyder@vmware.com>
10556 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10559 2011-01-31 Tom Tromey <tromey@redhat.com>
10562 * python/python.c (execute_gdb_command): Call
10563 prevent_dont_repeat.
10564 * top.c (suppress_dont_repeat): New global.
10565 (dont_repeat): Use it.
10566 (prevent_dont_repeat): New function.
10567 * command.h (prevent_dont_repeat): Declare.
10569 2011-01-31 Tom Tromey <tromey@redhat.com>
10571 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10572 * python/py-breakpoint.c (bppy_set_silent): Use
10573 breakpoint_set_silent.
10574 (bppy_set_thread): Use breakpoint_set_thread.
10575 (bppy_set_task): Use breakpoint_set_task.
10576 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10577 (breakpoint_set_task): Declare.
10578 (make_breakpoint_silent): Remove.
10579 * breakpoint.c (breakpoint_set_silent): New function.
10580 (breakpoint_set_thread): Likewise.
10581 (breakpoint_set_task): Likewise.
10582 (make_breakpoint_silent): Remove.
10584 2011-01-31 Tom Tromey <tromey@redhat.com>
10586 * breakpoint.h (user_breakpoint_p): Declare.
10587 * breakpoint.c (user_breakpoint_p): New function.
10588 (breakpoint_1): Use it.
10589 (save_breakpoints): Likewise.
10591 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10593 * configure.ac: Add handling of Python distribution on Windows.
10594 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10595 sysconfig variables are not defined, then do not use them.
10596 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10597 instead. On Windows, return all paths using forward-slashes
10598 rather than backslashes.
10600 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10602 * configure.ac: Remove fallback behavior for building
10603 against Python. Remove tweaking of Python include path.
10604 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10605 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10606 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10607 Always restore CPPFLAGS and LIBS after linking test.
10608 * configure: Regenerated.
10609 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10610 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10611 * python/python-internal.h: Adjust includes of Python .h files.
10613 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10615 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10618 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10620 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10623 2011-01-31 Yao Qi <yao@codesourcery.com>
10625 * arm-linux-nat.c: Update calls to regcache_register_status
10626 instead of regcache_valid_p.
10627 * aix-thread.c: Likewise.
10628 * i386gnu-nat.c: Likewise.
10630 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10633 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10634 touching TYPE_FIELD_ARTIFICIAL.
10636 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10638 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10641 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10643 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10644 selected, don't try iterating over the traceframe's blocks.
10645 (tfile_has_stack): If there's no traceframe selected, then there's
10647 (tfile_has_registers): If there's no traceframe selected, then
10648 there's no registers.
10650 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10652 * target.c (memory_xfer_partial): No need to restore shadows if we
10653 haven't read anything.
10655 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10657 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10658 and val_print_scalar_formatted.
10660 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10662 * tracepoint.c (tfile_read): New.
10663 (tfile_open): Use it.
10664 (tfile_get_traceframe_address): Use it.
10665 (tfile_trace_find): Use it.
10666 (walk_blocks_callback_func): New typedef.
10667 (match_blocktype): New function.
10668 (traceframe_walk_blocks): New function.
10669 (traceframe_find_block_type): New function.
10670 (tfile_fetch_registers, tfile_xfer_partial)
10671 (tfile_get_trace_state_variable_value): Use
10672 traceframe_find_block_type and tfile_read.
10674 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10676 * remote-mips.c: Add internationalization mark ups. Remove
10677 trailing \n from already marked up strings.
10679 2011-01-26 Tom Tromey <tromey@redhat.com>
10681 * python/py-prettyprint.c (print_string_repr): Clear
10682 'addressprint' option when calling val_print_string.
10683 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10684 option when calling val_print_string.
10686 2011-01-26 Tom Tromey <tromey@redhat.com>
10688 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10690 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10692 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10693 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10694 (gdb_py_long_as_ulongest): New defines.
10695 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10696 (gdb_py_int_as_long): Declare.
10697 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10698 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10699 (valpy_long): Add comment.
10700 * python/py-utils.c (get_addr_from_python): Use
10701 gdb_py_long_as_ulongest. Handle overflow properly.
10702 (gdb_py_object_from_longest): New function.
10703 (gdb_py_object_from_ulongest): Likewise.
10704 (gdb_py_int_as_long): Likewise.
10705 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10706 * python/py-symtab.c (salpy_get_pc): Use
10707 gdb_py_long_from_ulongest.
10708 (salpy_get_line): Use PyInt_FromLong.
10709 * python/py-param.c (set_parameter_value): Use
10710 gdb_py_int_as_long.
10711 * python/py-lazy-string.c (stpy_get_address): Use
10712 gdb_py_long_from_ulongest.
10713 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10714 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10715 * python/py-breakpoint.c (bppy_set_thread): Use
10716 gdb_py_int_as_long.
10717 (bppy_set_task): Likewise.
10718 (bppy_set_ignore_count): Likewise.
10719 (bppy_set_hit_count): Likewise.
10720 * python/py-block.c (blpy_get_start): Use
10721 gdb_py_object_from_ulongest.
10722 (blpy_get_end): Likewise.
10723 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10725 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10728 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10729 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10730 equality test for objfile, initialize addr_low if needed.
10732 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10734 * tui/tui-regs.c (tui_register_format): Remove dead code.
10736 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10738 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10739 instead of print_scalar_formatted.
10740 (print_scalar_formatted): Don't handle 's' format strings here,
10741 and add an assertion that we never see such format here.
10742 * valprint.h (val_print_scalar_formatted): Declare.
10743 * valprint.c (val_print_scalar_formatted): New.
10744 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10745 instead of print_scalar_formatted.
10746 * jv-valprint.c (java_val_print): Ditto.
10747 * p-valprint.c (pascal_val_print): Ditto.
10748 * ada-valprint.c (ada_val_print_1): Ditto.
10749 * f-valprint.c (f_val_print): Ditto.
10750 * infcmd.c (registers_info): Ditto.
10751 * m2-valprint.c (m2_val_print): Ditto.
10753 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10755 * m2-valprint.c (print_unbounded_array): Pass
10756 value_contents_for_printing rather than value_contents, to
10757 m2_print_array_contents. Also pass in the value.
10759 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10761 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10762 (save_gdb_index_command): Switch to .gdb_index version 4.
10764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10766 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10767 than frame_register, and always pass a valid value to val_print.
10769 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10771 Centralize printing "<optimized out>".
10773 * valprint.h (val_print_optimized_out): Declare.
10774 * cp-valprint.c (cp_print_value_fields): Use
10775 val_print_optimized_out.
10776 * jv-valprint.c (java_print_value_fields): Ditto.
10777 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10778 * printcmd.c (print_formatted): Ditto.
10779 * valprint.c (valprint_check_validity): Ditto.
10780 (value_check_printable): Ditto.
10781 (val_print_optimized_out): New.
10783 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10785 * infcmd.c (default_print_registers_info): Allocate values so to
10786 never pass a NULL value to val_print.
10788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10790 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10791 boolean. Make sure to always pass a value that matches the
10792 contents buffer to callees. Preserve `address' for following
10794 * value.c (value_contents_for_printing_const): New.
10795 (value_address): Constify value argument.
10796 * value.h (value_contents_for_printing_const): Declare.
10797 (value_address): Constify value argument.
10799 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10801 * regcache.c (struct regcache_descr): Rename
10802 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10803 and sizeof_cooked_register_valid_p to
10804 sizeof_cooked_register_status.
10805 (init_regcache_descr): Adjust.
10806 (struct regcache): Rename register_valid_p field to
10808 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10809 (do_cooked_read): Adjust.
10810 (regcache_valid_p): Rename to ...
10811 (regcache_register_status): ... this. Adjust.
10812 (regcache_invalidate): Adjust.
10813 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10815 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10816 as unavailable, not valid.
10817 (regcache_dump): Adjust.
10818 * regcache.h (enum register_status): New.
10819 (regcache_register_status): Declare.
10820 (regcache_invalidate): Delete declaration.
10821 * corelow.c (get_core_registers): Adjust.
10822 * tracepoint.c (tfile_fetch_registers): Adjust.
10823 * trad-frame.c (REG_VALUE): Rename to ...
10824 (TF_REG_VALUE): ... this.
10825 (REG_UNKNOWN): Rename to ...
10826 (TF_REG_UNKNOWN): ... this.
10827 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10828 * mi/mi-main.c (register_changed_p): Adjust.
10830 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10832 * regcache.c (struct regcache_descr): Remove outdated comment.
10833 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10835 (regcache_xmalloc): Rename to ...
10836 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10837 Allocate the regcache type accordingly.
10838 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10839 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10840 cooked registers, not raw.
10841 (regcache_dup_no_passthrough): Delete.
10842 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10843 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10844 mention obsolete write_register_bytes.
10845 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10847 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10849 Stop remote_read_bytes from handling partial reads itself.
10851 * remote-fileio.c: Include target.h.
10852 (remote_fileio_write_bytes): Delete.
10853 (remote_fileio_func_open, remote_fileio_func_write)
10854 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10855 target_read_memory.
10856 (remote_fileio_func_stat): Use target_read_memory and
10857 target_write_memory.
10858 (remote_fileio_func_gettimeofday): Use target_write_memory.
10859 (remote_fileio_func_system): Use target_read_memory.
10860 * remote.c (remote_write_bytes): Make it static.
10861 (remote_read_bytes): Don't handle partial reads here.
10862 * remote.h (remote_read_bytes): Delete declaration.
10864 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10866 Simplify XML parsing a bit.
10868 * xml-support.h (gdb_xml_parse_quick): Declare.
10869 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10870 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10872 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10873 gdb_xml_create_parser_and_cleanup_1.
10874 (gdb_xml_parse_quick): New.
10875 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10876 * osdata.c (osdata_parse): Ditto.
10877 * remote.c (remote_threads_info): Ditto.
10878 * solib-target.c (solib_target_parse_libraries): Ditto.
10879 * xml-syscall.c (syscall_parse_xml): Ditto.
10880 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10882 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10884 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10885 with remote-mips.o added to gdb_target_obs.
10886 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10888 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10890 * ada-valprint.c (val_print_packed_array_elements): Pass the
10891 correct struct value to val_print.
10892 (ada_val_print_1): Ditto.
10894 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10896 Don't lose embedded_offset in printing routines throughout.
10898 * valprint.h (val_print_array_elements): Change prototype.
10899 * valprint.c (val_print_array_elements): Add `embedded_offset'
10900 parameter, and adjust to pass it down to val_print, while passing
10901 `valaddr' or `address' unmodified. Take embedded_offset into
10902 account when checking repetitions.
10903 * c-valprint.c (c_val_print): Pass embedded_offset to
10904 val_print_array_elements instead of adjusting `valaddr' and
10906 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10907 embedded_offset to val_print_array_elements instead of adjusting
10909 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10910 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10911 val_print_array_elements and pascal_object_print_value_fields
10912 instead of adjusting `valaddr'.
10913 (pascal_object_print_value_fields): Add `offset' parameter, and
10915 (pascal_object_print_value): Add `offset' parameter, and adjust to
10917 (pascal_object_print_static_field): Use
10918 value_contents_for_printing/value_embedded_offset, rather than
10920 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10921 parameter, and adjust to use it. Use
10922 value_contents_for_printing/value_embedded_offset, rather than
10924 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10925 (ada_val_print_array): Add `offset' parameter, and adjust to use
10927 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10928 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10929 Instead work with offsets. Use
10930 value_contents_for_printing/value_embedded_offset, rather than
10931 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10932 and use value_from_pointer to extract a target pointer, rather
10933 than value_from_longest.
10934 (print_variant_part): Add `offset' parameter. Replace
10935 `outer_valaddr' parameter by a new `outer_offset' parameter.
10936 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10937 (ada_value_print): Use
10938 value_contents_for_printing/value_embedded_offset, rather than
10940 (print_record): Add `offset' parameter, and adjust to pass it
10942 (print_field_values): Add `offset' parameter. Replace
10943 `outer_valaddr' parameter by a new `outer_offset' parameter.
10944 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10945 Use value_contents_for_printing/value_embedded_offset, rather than
10947 * d-valprint.c (dynamic_array_type): Use
10948 value_contents_for_printing/value_embedded_offset, rather than
10950 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10951 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10952 (java_print_value_fields): Take `offset' into account. Don't
10953 re-adjust `valaddr'. Instead pass down adjusted offsets.
10954 (java_val_print): Take `embedded_offset' into account. Pass it to
10955 java_print_value_fields.
10956 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10957 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10958 down adjusted offsets.
10959 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10960 (f_val_print): Take `embedded_offset' into account.
10962 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10964 * inflow.c: Include "gdbcmd.h".
10965 (interactive_mode): New static global, moved here from top.c.
10966 (show_interactive_mode): New function, moved here from top.c.
10967 use gdb_has_a_terminal instead of input_from_terminal_p to
10968 determine the current mode.
10969 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10971 (_initialize_inflow): Add the "set/show interactive-mode"
10972 commands. Moved here from top.c, after having adjusted slightly
10974 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10976 (input_from_terminal_p): Remove handling of "interactive-mode"
10977 setting, moved to infow.c.
10978 (init_main): Remove creation of the "set/show interactive-mode"
10979 commands, moved to inflow.c.
10981 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10983 * NEWS: Add entry for native ia64-hpux support.
10985 2011-01-19 Tom Tromey <tromey@redhat.com>
10988 * thread.c (free_thread): Free 'name'.
10989 (print_thread_info): Emit thread name. Change CLI output.
10990 (thread_name_command): New function.
10991 (do_captured_thread_select): Emit newline.
10992 (_initialize_thread): Register 'thread name' command.
10993 * target.h (struct target_ops) <to_thread_name>: New field.
10994 (target_thread_name): New macro.
10995 * target.c (update_current_target): Handle to_thread_name.
10996 * python/py-infthread.c (thpy_get_name): New function.
10997 (thpy_set_name): Likewise.
10998 (thread_object_getset): Add "name".
10999 * linux-nat.c (linux_nat_thread_name): New function.
11000 (linux_nat_add_target): Set to_thread_name.
11001 * gdbthread.h (struct thread_info) <name>: New field.
11003 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11005 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11006 (ada_val_print_1): Likewise.
11008 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11010 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11011 upper limit address is not greater than the function end address
11012 when the upper limit could not be computed using the debugging
11015 2011-01-17 Tom Tromey <tromey@redhat.com>
11017 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11019 * utils.c: Include gdb_regex.h.
11020 (do_regfree_cleanup): New function.
11021 (make_regfree_cleanup): Likewise.
11022 (get_regcomp_error): Likewise.
11023 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11025 2011-01-17 Tom Tromey <tromey@redhat.com>
11027 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11028 re_compile_fastmap.
11030 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11032 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11033 for internal variables.
11034 (last_was_structop): New static variable.
11035 (COMPLETE): New token.
11036 (field_exp): New rule to group all '.' suffix handling.
11037 Add mark_struct_expression calls when approriate to be able
11038 to correctly find fields for completion.
11039 (yylex): Adapt to handle field completion and set INTVAR when
11042 2011-01-14 Yao Qi <yao@codesourcery.com>
11044 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11045 save_reggroup, restore_reggroup and all_reggroup.
11047 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11049 * ada-valprint. (ada_printchar): Use the correct type length
11050 in call to ada_emit_char.
11051 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11053 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11055 * solib-som.h (hpux_major_release): Declare variable here.
11056 * solib-som.c: Remove <sys/utsname.h> header.
11057 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11058 (hpux_major_release): Make global, change default value to
11059 DEFAULT_HPUX_MAJOR_RELEASE.
11060 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11061 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11062 Add "solib-som.h" header.
11063 (set_hpux_major_release): New function.
11064 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11066 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11068 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11070 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11072 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11073 new-line at end of warning message.
11074 (ia64_hpux_store_register): Remove trailing new-line at end of
11076 * ia64-hpux-tdep.c: Rephrase comment.
11077 * solib-ia64-hpux.c (struct dld_info): Change type of field
11078 dld_flags from "long long" to ULONGEST.
11080 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11082 * target.h (deprecated_child_ops): Delete declaration.
11083 * target.c (deprecated_child_ops): Delete definition.
11085 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11087 * Makefile.in (hpux-thread.o): Delete rule.
11088 * configure.ac: Don't check for HPUX DCE threads support.
11089 * configure, config.in: Regenerate.
11090 * hppa-hpux-nat.c (child_suppress_run): Delete.
11091 (hppa_hpux_child_can_run): Delete.
11092 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11093 * hpux-thread.c: Delete.
11095 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11097 * hpux-thread.c (hpux_pid_to_str): Delete.
11099 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11101 * ada-valprint.c (ada_emit_char): Remove strange code.
11102 Check that c is <= UCHAR_MAX before passing it to isascii.
11103 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11105 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11107 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11108 to the case where instream is stdin.
11110 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11112 * ia64-tdep.h (struct regcache): Forward declare.
11113 (struct ia64_infcall_ops): New struct type.
11114 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11116 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11117 Renames ia64_find_global_pointer.
11118 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11119 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11120 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11122 (ia64_infcall_ops): New static global constant.
11123 (ia64_gdbarch_init): Set tdep->infcall_ops.
11124 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11125 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11126 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11127 (ia64_hpux_dummy_code): New static global constant.
11128 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11129 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11130 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11132 (ia64_hpux_infcall_ops): New static global constant.
11133 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11134 for inferior function calls to work properly on ia64-hpux.
11136 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11138 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11139 * ia64-tdep.h (struct frame_info): forward declaration.
11140 (struct gdbarch_tdep): Add field size_of_register_frame.
11141 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11142 to determine the size of the register frame.
11143 (ia64_size_of_register_frame): New function.
11144 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11145 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11146 (IA64_HPUX_UREG_REASON): New macro.
11147 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11149 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11150 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11151 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11154 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11156 Add support for ia64-hpux.
11157 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11158 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11160 * configure.host: Add handling for ia64-hpux hosts. Add associated
11162 * configure.tgt: Add handling for ia64-hpux targets.
11163 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11164 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11165 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11167 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11169 [ttrace] Compute thread list immediately after attach.
11170 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11172 (inf_ttrace_attach): Use it.
11174 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11176 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11177 if we could not determine the frame's function address. Instead,
11178 use the frame's PC, and then continue.
11180 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11182 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11183 not already defined.
11185 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11187 * ia64-tdep.c (ia64_struct_type_p): New function.
11188 (ia64_extract_return_value): Handle integral values that are
11189 less than 8 bytes long.
11190 (ia64_push_dummy_call): Likewise.
11192 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11194 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11195 floatformat_ia64_ext.
11196 (floatformat_ia64_ext_big): New static const.
11197 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11199 2011-01-12 Tom Tromey <tromey@redhat.com>
11201 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11203 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11204 (mi_cmd_thread_list_ids): Likewise.
11205 (mi_cmd_data_list_changed_registers): Likewise.
11206 (mi_cmd_data_list_register_values): Likewise.
11207 (mi_cmd_data_write_register_values): Likewise.
11208 (mi_cmd_data_evaluate_expression): Likewise.
11209 (mi_cmd_data_read_memory): Likewise.
11210 (mi_cmd_data_read_memory_bytes): Likewise.
11211 (mi_cmd_data_write_memory): Likewise.
11212 (mi_cmd_enable_timings): Likewise.
11213 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11214 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11215 (mi_cmd_var_delete): Likewise.
11216 (mi_cmd_var_set_format): Likewise.
11217 (mi_cmd_var_show_format): Likewise.
11218 (mi_cmd_var_info_num_children): Likewise.
11219 (mi_cmd_var_list_children): Likewise.
11220 (mi_cmd_var_info_type): Likewise.
11221 (mi_cmd_var_info_expression): Likewise.
11222 (mi_cmd_var_show_attributes): Likewise.
11223 (mi_cmd_var_assign): Likewise.
11224 (mi_cmd_var_update): Likewise.
11225 (mi_cmd_enable_pretty_printing): Likewise.
11226 (mi_cmd_var_set_update_range): Likewise.
11227 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11229 (mi_cmd_target_file_put): Likewise.
11230 (mi_cmd_target_file_delete): Likewise.
11231 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11233 (mi_cmd_stack_info_depth): Likewise.
11234 (mi_cmd_stack_list_locals): Likewise.
11235 (mi_cmd_stack_list_args): Likewise.
11236 (mi_cmd_stack_select_frame): Likewise.
11237 (mi_cmd_stack_select_frame): Likewise.
11238 (mi_cmd_stack_info_frame): Likewise.
11239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11241 (mi_cmd_file_list_exec_source_files): Likewise.
11242 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11243 (mi_cmd_env_cd): Likewise.
11244 (mi_cmd_env_path): Likewise.
11245 (mi_cmd_env_dir): Likewise.
11246 (mi_cmd_inferior_tty_show): Likewise.
11247 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11248 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11249 (mi_cmd_break_watch): Likewise.
11251 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11253 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11254 (ppc_linux_insert_hw_breakpoint): Likewise.
11255 (ppc_linux_remove_hw_breakpoint): Likewise.
11256 (ppc_linux_insert_watchpoint): Likewise.
11258 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11259 Jan Kratochvil <jan.kratochvil@redhat.com>
11261 PR fortran/11104 and DWARF unbound arrays detection.
11262 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11263 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11264 unspecified upper bound.
11265 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11266 variables array_size_array, tmp_type and offset_item. New variable
11267 array. Remove call to f77_get_upperbound. New variables array_type
11268 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11269 the final call to deprecated_set_value_type.
11271 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11273 Make value allocations more lazy.
11274 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11275 instead of allocate_value and set_value_lazy when possible.
11276 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11277 instead of allocate_value and set_value_lazy.
11278 * findvar.c (value_of_register_lazy): Likewise.
11279 (read_var_value): Remove V preallocation, call just check_typedef in
11280 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11281 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11282 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11283 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11284 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11285 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11286 the end, remove set_value_lazy there.
11287 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11288 instead of allocate_value and set_value_lazy when possible.
11289 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11290 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11291 of allocate_value and set_value_lazy.
11292 (value_from_contents_and_address): Use allocate_value_lazy instead of
11293 allocate_value and set_value_lazy when possible.
11295 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11297 * disasm.c (dump_insns): Support dumping opcodes for MI.
11298 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11299 dumping of instruction opcodes.
11301 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11303 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11306 2011-01-11 Tom Tromey <tromey@redhat.com>
11308 * thread.c (do_captured_thread_select): Emit newline before
11311 2011-01-11 Michael Snyder <msnyder@vmware.com>
11313 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11314 * score-tdep.c: Ditto.
11315 * score-tdep.h: Ditto.
11316 * ser-base.c: Ditto.
11317 * ser-go32.c: Ditto.
11320 * ser-mingw.c: Ditto.
11321 * ser-pipe.c: Ditto.
11322 * ser-tcp.c: Ditto.
11323 * ser-unix.c: Ditto.
11324 * sh64-tdep.c: Ditto.
11325 * shnbsd-nat.c: Ditto.
11326 * sh-tdep.c: Ditto.
11327 * sh-tdep.h: Ditto.
11329 * solib-darwin.c: Ditto.
11330 * solib-frv.c: Ditto.
11332 * solib-irix.c: Ditto.
11333 * solib-osf.c: Ditto.
11334 * solib-pa64.c: Ditto.
11335 * solib-som.c: Ditto.
11336 * solib-spu.c: Ditto.
11337 * solib-sunos.c: Ditto.
11338 * solib-svr4.c: Ditto.
11340 * sol-thread.c: Ditto.
11341 * somread.c: Ditto.
11344 * sparc64-linux-tdep.c: Ditto.
11345 * sparc64-tdep.c: Ditto.
11346 * sparc-linux-nat.c: Ditto.
11347 * sparc-linux-tdep.c: Ditto.
11348 * sparc-sol2-nat.c: Ditto.
11349 * sparc-sol2-tdep.c: Ditto.
11350 * sparc-tdep.c: Ditto.
11351 * sparc-tdep.h: Ditto.
11352 * spu-tdep.c: Ditto.
11353 * stabsread.c: Ditto.
11354 * stabsread.h: Ditto.
11356 * symfile.c: Ditto.
11357 * symfile.h: Ditto.
11358 * symmisc.c: Ditto.
11362 * target-descriptions.c: Ditto.
11363 * target-descriptions.h: Ditto.
11365 * target-memory.c: Ditto.
11366 * terminal.h: Ditto.
11369 * tracepoint.c: Ditto.
11370 * tracepoint.h: Ditto.
11371 * trad-frame.h: Ditto.
11372 * typeprint.c: Ditto.
11374 2011-01-11 Michael Snyder <msnyder@vmware.com>
11376 * ui-file.c: Comment cleanup, mostly periods and spaces.
11377 * ui-file.h: Ditto.
11381 * v850-tdep.c: Ditto.
11382 * valarith.c: Ditto.
11384 * valprint.c: Ditto.
11385 * valprint.h: Ditto.
11390 * vax-tdep.c: Ditto.
11393 * version.h: Ditto.
11394 * windows-nat.c: Ditto.
11395 * windows-tdep.c: Ditto.
11396 * xcoffread.c: Ditto.
11397 * xcoffsolib.c: Ditto.
11398 * xml-support.c: Ditto.
11399 * xstormy16-tdep.c: Ditto.
11400 * xtensa-tdep.c: Ditto.
11401 * xtensa-tdep.h: Ditto.
11403 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11405 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11406 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11408 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11409 Thiago Jung Bauermann <bauerman@br.ibm.com>
11411 Implement support for PowerPC BookE ranged watchpoints.
11413 (struct breakpoint_ops) <resources_needed>: New method.
11414 Initialize to NULL in all existing breakpoint_ops instances.
11415 (struct breakpoint) <exact>: New field.
11416 (target_exact_watchpoints): Declare external global.
11417 * breakpoint.c (target_exact_watchpoints): New global flag.
11418 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11419 b->enable_state to bp_enabled before calling
11420 hw_watchpoint_used_count.
11421 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11422 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11424 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11425 if the watchpoint is exact.
11426 (resources_needed_watchpoint): New function.
11427 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11428 (watch_command_1): Set b->exact if the user asked for an exact
11429 watchpoint and one can be set.
11430 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11431 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11432 the user asks for an exact watchpoint and one can be set. Return
11433 number of needed debug registers to watch the expression.
11434 * gdbtypes.c (is_scalar_type): New function, based on
11435 valprint.c:scalar_type_p.
11436 (is_scalar_type_recursive): New function.
11437 * gdbtypes.h (is_scalar_type_recursive): Declare.
11438 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11439 handle regions when ranged watchpoints are available.
11440 (create_watchpoint_request): New function.
11441 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11442 create_watchpoint_request.
11443 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11444 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11445 `set powerpc' and `show powerpc' commands.
11446 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11447 Mention documentation comment in the target macro.
11448 (target_region_ok_for_hw_watchpoint): Document return value.
11450 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11452 * breakpoint.c (update_watchpoint): Decide on using a software or
11453 hardware watchpoint after the bp_locations are created.
11455 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11457 Convert hardware watchpoints to use breakpoint_ops.
11458 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11459 <insert_location>: ... this. Return int instead of void.
11460 Accept pointer to struct bp_location instead of pointer to
11461 struct breakpoint. Adapt all implementations.
11462 (breakpoint_ops) <remove>: Rename to...
11463 <remove_location>: ... this. Accept pointer to struct bp_location
11464 instead of pointer to struct breakpoint. Adapt all implementations.
11465 * breakpoint.c (insert_catchpoint): Delete function.
11466 (insert_bp_location): Call the watchpoint or catchpoint's
11467 breakpoint_ops.insert method.
11468 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11469 breakpoint_ops.remove method.
11470 (insert_watchpoint, remove_watchpoint): New functions.
11471 (watchpoint_breakpoint_ops): New structure.
11472 (watch_command_1): Initialize the OPS field.
11473 * inf-child.c (inf_child_insert_fork_catchpoint)
11474 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11475 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11476 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11478 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11479 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11480 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11481 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11482 * target.c (update_current_target): Change default implementation of
11483 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11484 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11485 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11486 to_set_syscall_catchpoint to return_one.
11487 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11488 (debug_to_insert_exec_catchpoint): Report return value.
11489 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11490 (to_insert_exec_catchpoint): Change declaration to return int instead
11493 2011-01-11 Michael Snyder <msnyder@vmware.com>
11495 * arm-tdep.c: Internationalization.
11497 * charset.c: Ditto.
11498 * fork-child.c: Ditto.
11499 * nto-procfs.c: Ditto.
11500 * ppc-sysv-tdep.c: Ditto.
11502 * remote-mips.c: Ditto.
11504 * rs6000-nat.c: Ditto.
11505 * rs6000-tdep.c: Ditto.
11509 * xml-support.c: Ditto.
11510 * mi/mi-cmd-break.c: Ditto.
11511 * mi/mi-cmd-var.c: Ditto.
11512 * mi/mi-interp.c: Ditto.
11513 * mi/mi-main.c: Ditto.
11515 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11517 * remote-sim.c (gdbsim_store_register): Update API to
11518 sim_store_register to check more error conditions.
11520 2011-01-10 Michael Snyder <msnyder@vmware.com>
11522 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11523 * nto-tdep.c: Ditto.
11524 * nto-tdep.h: Ditto.
11525 * objc-exp.y: Ditto.
11526 * objc-lang.c: Ditto.
11527 * objfiles.c: Ditto.
11528 * objfiles.h: Ditto.
11529 * observer.c: Ditto.
11530 * opencl-lang.c: Ditto.
11533 * parser-defs.h: Ditto.
11536 * posix-hdep.c: Ditto.
11537 * ppcbug-rom.c: Ditto.
11538 * ppc-linux-nat.c: Ditto.
11539 * ppc-linux-tdep.c: Ditto.
11540 * ppc-linux-tdep.h: Ditto.
11541 * ppcnbsd-tdep.c: Ditto.
11542 * ppcobsd-tdep.c: Ditto.
11543 * ppcobsd-tdep.h: Ditto.
11544 * ppc-sysv-tdep.c: Ditto.
11545 * ppc-tdep.h: Ditto.
11546 * printcmd.c: Ditto.
11547 * proc-abi.c: Ditto.
11548 * proc-flags.c: Ditto.
11550 * proc-utils.h: Ditto.
11551 * progspace.h: Ditto.
11552 * prologue-value.c: Ditto.
11553 * prologue-value.h: Ditto.
11554 * psympriv.h: Ditto.
11555 * psymtab.c: Ditto.
11556 * p-typeprint.c: Ditto.
11557 * p-valprint.c: Ditto.
11558 * ravenscar-sparc-thread.c: Ditto.
11559 * ravenscar-thread.c: Ditto.
11560 * ravenscar-thread.h: Ditto.
11562 * regcache.c: Ditto.
11563 * regcache.h: Ditto.
11565 * remote-fileio.c: Ditto.
11566 * remote-fileio.h: Ditto.
11568 * remote-m32r-sdi.c: Ditto.
11569 * remote-mips.c: Ditto.
11570 * remote-sim.c: Ditto.
11571 * rs6000-aix-tdep.c: Ditto.
11572 * rs6000-nat.c: Ditto.
11573 * rs6000-tdep.c: Ditto.
11575 2011-01-10 Michael Snyder <msnyder@vmware.com>
11577 * charset.c (validate): Internationalization.
11578 * coffread.c (read_one_sym): Ditto.
11579 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11580 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11581 * inflow.c (new_tty): Ditto.
11582 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11583 * m32c-tdep.c (m32c_return_value): Ditto.
11584 * mep-tdep.c (mep_store_return_value): Ditto.
11585 * score-tdep.c (score7_fetch_insn): Ditto.
11586 * ser-mingw.c (pipe_windows_open): Ditto.
11587 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11588 * spu-tdep.c (spu_register_type): Ditto.
11589 * tracepoint.c (trace_find_command): Ditto.
11590 * valarith.c (value_pos): Ditto.
11592 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11594 * ada-valprint.c (printstr): Minor comment reformatting.
11596 2011-01-08 Michael Snyder <msnyder@vmware.com>
11598 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11601 2011-01-08 Michael Snyder <msnyder@vmware.com>
11603 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11604 * hppa-hpux-tdep.c: Ditto.
11605 * hppa-linux-nat.c: Ditto.
11606 * hppa-linux-tdep.c: Ditto.
11607 * hppanbsd-tdep.c: Ditto.
11608 * hppa-tdep.c: Ditto.
11609 * hppa-tdep.h: Ditto.
11610 * hpux-thread.c: Ditto.
11611 * i386-cygwin-tdep.c: Ditto.
11612 * i386-darwin-nat.c: Ditto.
11613 * i386gnu-nat.c: Ditto.
11614 * i386-linux-nat.c: Ditto.
11615 * i386-linux-tdep.c: Ditto.
11616 * i386-nat.c: Ditto.
11617 * i386-nat.h: Ditto.
11618 * i386nbsd-tdep.c: Ditto.
11619 * i386-sol2-nat.c: Ditto.
11620 * i386-stub.c: Ditto.
11621 * i386-tdep.c: Ditto.
11622 * i386-tdep.h: Ditto.
11623 * i387-tdep.c: Ditto.
11624 * ia64-linux-nat.c: Ditto.
11625 * ia64-linux-tdep.c: Ditto.
11626 * ia64-tdep.c: Ditto.
11627 * infcall.c: Ditto.
11628 * infcall.h: Ditto.
11630 * inferior.c: Ditto.
11631 * inferior.h: Ditto.
11632 * infloop.c: Ditto.
11635 * interps.c: Ditto.
11636 * interps.h: Ditto.
11637 * iq2000-tdep.c: Ditto.
11638 * irix5-nat.c: Ditto.
11642 * jv-lang.c: Ditto.
11643 * jv-lang.h: Ditto.
11644 * jv-typeprint.c: Ditto.
11645 * jv-valprint.c: Ditto.
11646 * language.c: Ditto.
11647 * language.h: Ditto.
11648 * linespec.c: Ditto.
11649 * linux-fork.c: Ditto.
11650 * linux-nat.c: Ditto.
11651 * linux-thread-db.c: Ditto.
11652 * lm32-tdep.c: Ditto.
11654 2011-01-08 Michael Snyder <msnyder@vmware.com>
11656 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11657 * m2-lang.c: Ditto.
11658 * m2-typeprint.c: Ditto.
11659 * m2-valprint.c: Ditto.
11660 * m32c-tdep.c: Ditto.
11661 * m32r-linux-nat.c: Ditto.
11662 * m32r-rom.c: Ditto.
11663 * m32r-tdep.c: Ditto.
11664 * m32r-tdep.h: Ditto.
11665 * m68hc11-tdep.c: Ditto.
11666 * m58klinux-nat.c: Ditto.
11667 * m68k-tdep.c: Ditto.
11668 * m88k-tdep.c: Ditto.
11669 * m88k-tdep.h: Ditto.
11670 * machoread.c: Ditto.
11671 * macrocmd.c: Ditto.
11672 * macroexp.c: Ditto.
11673 * macrotab.c: Ditto.
11676 * mdebugread.c: Ditto.
11677 * mdebugread.h: Ditto.
11678 * memattr.c: Ditto.
11679 * memattr.h: Ditto.
11680 * memory-map.h: Ditto.
11681 * mep-tdep.c: Ditto.
11682 * microblaze-rom.c: Ditto.
11683 * microblaze-tdep.c: Ditto.
11684 * minsyms.c: Ditto.
11685 * mips-irix-tdep.c: Ditto.
11686 * mips-linux-nat.c: Ditto.
11687 * mips-linux-tdep.c: Ditto.
11688 * mips-linux-tdep.h: Ditto.
11689 * mipsnbsd-nat.c: Ditto.
11690 * mipsnbsd-tdep.c: Ditto.
11691 * mipsread.c: Ditto.
11692 * mips-tdep.c: Ditto.
11693 * mips-tdep.h: Ditto.
11694 * mn10300-linux-tdep.c: Ditto.
11695 * mn10300-tdep.c: Ditto.
11696 * mn10300-tdep.h: Ditto.
11697 * monitor.c: Ditto.
11698 * monitor.h: Ditto.
11699 * moxie-tdep.c: Ditto.
11700 * moxie-tdep.h: Ditto.
11701 * mt-tdep.c: Ditto.
11703 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11705 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11707 2011-01-08 Robert Millan <rmh@gnu.org>
11709 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11711 2011-01-07 Michael Snyder <msnyder@vmware.com>
11713 * charset.c (_initialize_charset): Fix typo in string.
11715 2011-01-07 Michael Snyder <msnyder@vmware.com>
11717 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11719 * tui/tui-layout.c (tui_set_layout_for_display_command):
11720 Split line so that operator goes to beginning of line.
11721 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11722 assignment out of if statement.
11724 2011-01-07 Michael Snyder <msnyder@vmware.com>
11726 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11727 * ada-lang.h: Ditto.
11728 * ada-tasks.c: Ditto.
11729 * ada-valprint.c: Ditto.
11730 * aix-threads.c: Ditto.
11731 * alpha-linux-nat.c: Ditto.
11732 * alpha-linux-tdep.c: Ditto.
11733 * alpha-mdebug-tdep.c: Ditto.
11734 * alpha-nat.c: Ditto.
11735 * alpha-osf1-tdep.c: Ditto.
11736 * alpha-tdep.c: Ditto.
11737 * alphabsd-nat.c: Ditto.
11738 * alphabsd-tdep.c: Ditto.
11739 * amd64-darwin-tdep.c: Ditto.
11740 * amd64-linux-nat.c: Ditto.
11741 * amd64-linux-tdep.c: Ditto.
11742 * amd64-sol2-tdep.c: Ditto.
11743 * amd64-tdep.c: Ditto.
11744 * amd64-fbsd-tdep.c: Ditto.
11745 * amd64-nbsd-tdep.c: Ditto.
11746 * amd64-obsd-tdep.c: Ditto.
11747 * amd64-linux-nat.c: Ditto.
11748 * amd64-linux-tdep.c: Ditto.
11749 * arm-tdep.c: Ditto.
11750 * arm-tdep.h: Ditto.
11751 * armnbsd-nat.c: Ditto.
11752 * avr-tdep.c: Ditto.
11753 * bfin-tdep.c: Ditto.
11754 * bsd-kvm.c: Ditto.
11755 * c-typeprintc: Ditto.
11756 * c-valprint.c: Ditto.
11757 * coff-pe-read.h: Ditto.
11758 * coffreead.c: Ditto.
11759 * cris-tdep.c: Ditto.
11761 * darwin-nat-info.c: Ditto.
11762 * darwin-nat.c: Ditto.
11763 * dbug-rom.c: Ditto.
11764 * dbxread.c: Ditto.
11767 * dec-thread.c: Ditto.
11769 * demangle.c: Ditto.
11770 * dicos-tdep.c: Ditto.
11771 * dictionary.c: Ditto.
11772 * dictionary.h: Ditto.
11773 * dink32-rom.c: Ditto.
11775 * doublest.c: Ditto.
11777 * dummy-frame.c: Ditto.
11778 * dwarf2-frame.c: Ditto.
11779 * dwarf2expr.c: Ditto.
11780 * dwarf2loc.c: Ditto.
11781 * dwarf2read.c: Ditto.
11782 * elfread.c: Ditto.
11783 * environ.c: Ditto.
11785 * event-top.h: Ditto.
11786 * exceptions.c: Ditto.
11787 * exceptions.h: Ditto.
11789 * expprint.c: Ditto.
11790 * expression.h: Ditto.
11794 * f-typeprint.c: Ditto.
11795 * f-valprint.c: Ditto.
11796 * fbsd-nat.c: Ditto.
11797 * findvar.c: Ditto.
11798 * fork-child.c: Ditto.
11801 * frv-linux-tdep.c: Ditto.
11802 * frv-tdep.c: Ditto.
11804 * gdb-stabs.h: Ditto.
11805 * gdb_assert.h: Ditto.
11806 * gdb_string.h: Ditto.
11807 * gdb_thread_db.h: Ditto.
11808 * gdb_wait.h: Ditto.
11809 * gdbarch.sh: Ditto.
11810 * gdbcore.h: Ditto.
11811 * gdbthread.h: Ditto.
11812 * gdbtypes.c: Ditto.
11813 * gdbtypes.h: Ditto.
11814 * gnu-nat.c: Ditto.
11815 * gnu-nat.h: Ditto.
11816 * gnu-v2-abi.c: Ditto.
11817 * gnu-v3-abi.c: Ditto.
11818 * go32-nat.c: Ditto.
11819 * gdbarch.c: Regenerate.
11820 * gdbarch.h: Regenerate.
11822 2011-01-07 Michael Snyder <msnyder@vmware.com>
11824 * ax-gdb.c: Adjust some long output strings.
11825 * breakpoint.c: Ditto.
11826 * charset.c: Ditto.
11828 * infcall.c: Ditto.
11830 * linux-nat.c: Ditto.
11831 * solib-pa64.c: Ditto.
11832 * solib-som.c: Ditto.
11834 2011-01-06 Tom Tromey <tromey@redhat.com>
11838 * python/python.c (GdbMethods): Add "newest_frame" method.
11839 * python/python-internal.h (gdbpy_newest_frame): Declare.
11840 * python/py-frame.c (gdbpy_newest_frame): New function.
11842 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11844 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11845 * jit.c (jit_debug): New variable.
11846 (show_jit_debug): New function.
11847 (struct target_buffer): Use ULONGEST.
11848 (bfd_open_from_target_memory): Likewise.
11849 (jit_register_code, jit_inferior_init): Add debug output.
11850 (_initialize_jit): Register "debug jit" command.
11852 2011-01-06 Tom Tromey <tromey@redhat.com>
11854 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11855 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11858 2011-01-06 Tom Tromey <tromey@redhat.com>
11860 * python/py-frame.c (frapy_block): Use get_frame_block.
11862 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11864 Do not stop on SIGPRIO signals by default
11865 * infrun.c (_initialize_infrun): Unset signal_stop and
11866 signal_print for TARGET_SIGNAL_PRIO.
11868 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11870 * ada-tasks.c: Fix style violation in comment.
11872 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11874 * linespec.c (decode_compound, find_method): Remove trailing \n
11875 at end of error string.
11876 * solib-irix.c (irix_current_sos): Likewise.
11877 * varobj.c (uninstall_variable): Likewise.
11879 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11881 * copyright.py: New script.
11882 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11883 Launch emacs without exec'ing. Call copyright.py afterwards.
11885 2011-01-05 Michael Snyder <msnyder@vmware.com>
11887 * addrmap.c: Shorten lines of >= 80 columns.
11888 * arch-utils.c: Ditto.
11889 * arch-utils.h: Ditto.
11891 * ax-general.c: Ditto.
11893 * blockframe.c: Ditto.
11894 * breakpoint.c: Ditto.
11895 * buildsym.c: Ditto.
11897 * c-typeprint.c: Ditto.
11898 * charset.c: Ditto.
11899 * coffread.c: Ditto.
11900 * command.h: Ditto.
11901 * corelow.c: Ditto.
11903 * cp-namespace.c: Ditto.
11904 * cp-support.c: Ditto.
11905 * dbug-rom.c: Ditto.
11906 * dbxread.c: Ditto.
11910 * dictionary.c: Ditto.
11912 * doublest.c: Ditto.
11913 * dwarf2-frame.c: Ditto.
11914 * dwarf2expr.c: Ditto.
11915 * dwarf2loc.c: Ditto.
11916 * dwarf2read.c: Ditto.
11917 * elfread.c: Ditto.
11919 * event-loop.c: Ditto.
11920 * event-loop.h: Ditto.
11921 * exceptions.h: Ditto.
11923 * expprint.c: Ditto.
11924 * expression.h: Ditto.
11926 * f-valprint.c: Ditto.
11927 * findcmd.c: Ditto.
11928 * frame-base.c: Ditto.
11929 * frame-unwind.c: Ditto.
11930 * frame-unwind.h: Ditto.
11934 * gdb-stabs.h: Ditto.
11935 * gdb_assert.h: Ditto.
11936 * gdb_dirent.h: Ditto.
11937 * gdb_obstack.h: Ditto.
11938 * gdbcore.h: Ditto.
11939 * gdbtypes.c: Ditto.
11940 * gdbtypes.h: Ditto.
11941 * inf-ttrace.c: Ditto.
11942 * infcall.c: Ditto.
11946 * inline-frame.h: Ditto.
11947 * language.c: Ditto.
11948 * language.h: Ditto.
11949 * libunwind-frame.c: Ditto.
11950 * libunwind-frame.h: Ditto.
11951 * linespec.c: Ditto.
11952 * linux-nat.c: Ditto.
11953 * linux-nat.h: Ditto.
11954 * linux-thread-db.c: Ditto.
11955 * machoread.c: Ditto.
11956 * macroexp.c: Ditto.
11957 * macrotab.c: Ditto.
11960 * mdebugread.c: Ditto.
11961 * memattr.c: Ditto.
11962 * minsyms.c: Ditto.
11963 * monitor.c: Ditto.
11964 * monitor.h: Ditto.
11965 * objfiles.c: Ditto.
11966 * objfiles.h: Ditto.
11968 * p-typeprint.c: Ditto.
11969 * p-valprint.c: Ditto.
11971 * printcmd.c: Ditto.
11972 * proc-events.c: Ditto.
11974 * progspace.c: Ditto.
11975 * progspace.h: Ditto.
11976 * psympriv.h: Ditto.
11977 * psymtab.c: Ditto.
11979 * regcache.c: Ditto.
11980 * regcache.h: Ditto.
11981 * remote-fileio.c: Ditto.
11983 * ser-mingw.c: Ditto.
11984 * ser-tcp.c: Ditto.
11985 * ser-unix.c: Ditto.
11988 * solib-frv.c: Ditto.
11989 * solib-irix.c: Ditto.
11990 * solib-osf.c: Ditto.
11991 * solib-pa64.c: Ditto.
11992 * solib-som.c: Ditto.
11993 * solib-sunos.c: Ditto.
11994 * solib-svr4.c: Ditto.
11995 * solib-target.c: Ditto.
11997 * somread.c: Ditto.
11999 * stabsread.c: Ditto.
12000 * stabsread.c: Ditto.
12003 * symfile-mem.c: Ditto.
12004 * symfile.c: Ditto.
12005 * symfile.h: Ditto.
12006 * symmisc.c: Ditto.
12009 * target-descriptions.c: Ditto.
12010 * target-memory.c: Ditto.
12013 * terminal.h: Ditto.
12016 * tracepoint.c: Ditto.
12017 * tracepoint.h: Ditto.
12018 * ui-file.c: Ditto.
12019 * ui-file.h: Ditto.
12021 * user-regs.c: Ditto.
12022 * user-regs.h: Ditto.
12024 * valarith.c: Ditto.
12026 * valprint.c: Ditto.
12027 * valprint.h: Ditto.
12032 * xcoffread.c: Ditto.
12033 * xcoffsolib.c: Ditto.
12034 * xcoffsolib.h: Ditto.
12035 * xml-syscall.c: Ditto.
12036 * xml-tdesc.c: Ditto.
12038 2011-01-05 Michael Snyder <msnyder@vmware.com>
12040 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12041 * cli/cli-decode.c: Ditto.
12042 * cli/cli-dump.c: Ditto.
12043 * cli/cli-logging.c: Ditto.
12044 * cli/cli-script.c: Ditto.
12045 * cli/cli-setshow.c: Ditto.
12046 * common/signals.c: Ditto.
12047 * mi/mi-cmd-break.c: Ditto.
12048 * mi/mi-cmd-disas.c: Ditto.
12049 * mi/mi-cmd-stack.c: Ditto.
12050 * mi/mi-cmd-var.c: Ditto.
12051 * mi/mi-cmds.c: Ditto.
12052 * mi/mi-common.h: Ditto.
12053 * mi/mi-console.c: Ditto.
12054 * mi/mi-interp.c: Ditto.
12055 * mi/mi-main.c: Ditto.
12056 * osf-share/cma_attr.c: Ditto.
12057 * osf-share/cma_deb_core.h: Ditto.
12058 * osf-share/cma_debug_client.h: Ditto.
12059 * osf-share/cma_handle.h: Ditto.
12060 * osf-share/cma_mutex.h: Ditto.
12061 * osf-share/cma_stack_int.h: Ditto.
12062 * osf-share/cma_tcb_defs.h: Ditto.
12063 * python/py-auto-load.c: Ditto.
12064 * python/py-breakpoint.c: Ditto.
12065 * python/py-cmd.c: Ditto.
12066 * python/py-frame.c: Ditto.
12067 * python/py-objfile.c: Ditto.
12068 * python/py-param.c: Ditto.
12069 * python/py-progspace.c: Ditto.
12070 * python/py-symbol.c: Ditto.
12071 * python/py-value.c: Ditto.
12072 * python/python-internal.h: Ditto.
12073 * python/python.c: Ditto.
12074 * tui/tui-data.c: Ditto.
12075 * tui/tui-disasm.c: Ditto.
12076 * tui/tui-hooks.c: Ditto.
12077 * tui/tui-io.c: Ditto.
12078 * tui/tui-layout.c: Ditto.
12079 * tui/tui-regs.c: Ditto.
12080 * tui/tui-source.c: Ditto.
12081 * tui/tui-stack.c: Ditto.
12082 * tui/tui-win.c: Ditto.
12083 * tui/tui-windata.c: Ditto.
12084 * tui/tui-winsource.c: Ditto.
12086 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12088 * configure.ac, gdb.1: Copyright year update.
12090 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12092 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12093 this_pc_in_block, morestack_msym and morestack_name. Check for
12094 "__morestack" minimal symbol there.
12096 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12098 * symfile.c (find_sym_fns): Add call to dont_repeat.
12100 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12102 Copyright year update in most files (performed by copyright.sh).
12104 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12106 * top.c (print_gdb_version): Update copyright year in version output.
12108 For older changes see ChangeLog-2010.
12114 version-control: never