1 2011-12-08 Tom Tromey <tromey@redhat.com>
3 * objfiles.h (struct objfile): Remove obsolete comment.
4 * objfiles.c (build_objfile_section_table): Remove obsolete
7 2011-12-07 Stan Shebs <stan@codesourcery.com>
9 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
10 maintainer of the tic6x target.
12 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
15 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
16 (arm_deal_with_atomic_sequence_raw): Likewise.
17 (arm_deal_with_atomic_sequence): Likewise.
18 (arm_software_single_step): Call it.
19 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
21 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
23 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
25 * s390-tdep.h: Likewise.
27 2011-12-07 Tristan Gingold <gingold@adacore.com>
29 * machoread.c (macho_symtab_read): Do not consider N_OPT as
30 a debugging stab. Improve complaint message.
32 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
34 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
35 load adjustment if still within the prologue.
37 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
39 * mips-tdep.c (mips32_next_pc): Fix floating point condition
42 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
44 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
45 of BLTZ* and BGEZ* instructions.
47 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
49 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
50 performed to determine whether an address refers to standard
52 (mips16_next_pc): Use mips_pc_is_mips16 instead of
55 2011-12-06 Pedro Alves <pedro@codesourcery.com>
57 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
58 (breakpoint_xfer_memory): ... this. Change prototype. Handle
60 * breakpoint.h (breakpoint_restore_shadows): Delete.
61 (breakpoint_xfer_memory): Declare.
62 * mem-break.c (default_memory_insert_breakpoint)
63 (default_memory_remove_breakpoint): Use target_write_raw_memory.
64 (memory_xfer_partial): Rename to ...
65 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
67 (memory_xfer_partial): New.
68 (target_write_raw_memory): New.
69 * target.h (target_write_raw_memory): New.
71 2011-12-06 Doug Evans <dje@google.com>
73 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
75 2011-12-06 Joel Brobecker <brobecker@acacore.com>
77 * language.h (struct language_defn): Add new component
78 la_symbol_name_compare.
79 * symfile.h (struct quick_symbol_functions): Update the profile
80 of parameter "name_matcher" for the expand_symtabs_matching
81 method. Update the documentation accordingly.
82 * ada-lang.h (ada_name_for_lookup): Add declaration.
83 * ada-lang.c (ada_name_for_lookup): New function, extracted out
84 from ada_iterate_over_symbols.
85 (ada_iterate_over_symbols): Do not encode symbol name anymore.
86 (ada_expand_partial_symbol_name): Adjust profile.
87 (ada_language_defn): Add value for la_symbol_name_compare field.
88 * linespec.c: #include "ada-lang.h".
89 (iterate_name_matcher): Add language parameter. Replace call
90 to strcmp_iw by call to language->la_symbol_name_compare.
91 (decode_variable): Encode COPY if current language is Ada.
92 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
93 of name_matcher parameter. Adjust call to name_matcher.
94 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
95 (expand_partial_symbol_names): Update profile of parameter "fun".
96 * psymtab.h (expand_partial_symbol_names): Update profile of
98 * symtab.c (demangle_for_lookup): Update function documentation.
99 (search_symbols_name_matches): Add language parameter.
100 (expand_partial_symbol_name): Likewise.
101 * c-lang.c (c_language_defn, cplus_language_defn)
102 (asm_language_defn, minimal_language_defn): Add value for
103 la_symbol_name_compare field.
104 * d-lang.c (d_language_defn): Likewise.
105 * f-lang.c (f_language_defn): Ditto.
106 * jv-lang.c (java_language_defn): Ditto.
107 * m2-lang.c (m2_language_defn): Ditto.
108 * objc-lang.c (objc_language_defn): Ditto.
109 * opencl-lang.c (opencl_language_defn): Ditto.
110 * p-lang.c (pascal_language_defn): Ditto.
111 * language.c (unknown_language_defn, auto_language_defn)
112 (local_language_defn): Ditto.
114 2011-12-06 Tom Tromey <tromey@redhat.com>
116 * linespec.c (iterate_over_all_matching_symtabs): Use
117 LA_ITERATE_OVER_SYMBOLS.
118 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
119 (find_function_symbols, decode_variable): Remove Ada special
121 * language.h (struct language_defn) <la_iterate_over_symbols>: New
123 (LA_ITERATE_OVER_SYMBOLS): New macro.
124 * language.c (unknown_language_defn, auto_language_defn)
125 (local_language_defn): Update.
126 * c-lang.c (c_language_defn, cplus_language_defn)
127 (asm_language_defn, minimal_language_defn): Update.
128 * d-lang.c (d_language_defn): Update.
129 * f-lang.c (f_language_defn): Update.
130 * jv-lang.c (java_language_defn): Update.
131 * m2-lang.c (m2_language_defn): Update.
132 * objc-lang.c (objc_language_defn): Update.
133 * opencl-lang.c (opencl_language_defn): Update.
134 * p-lang.c (pascal_language_defn): Update.
135 * ada-lang.c (ada_iterate_over_symbols): New function.
136 (ada_language_defn): Update.
138 2011-12-06 Tom Tromey <tromey@redhat.com>
139 Joel Brobecker <brobecker@acacore.com>
141 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
142 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
143 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
144 PR shlibs/8929, PR shlibs/7393:
145 * python/py-type.c (compare_maybe_null_strings): Rename from
147 (check_types_equal): Update.
148 * utils.c (compare_strings): New function.
149 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
151 * tracepoint.c (scope_info): Update.
152 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
153 * symtab.h (iterate_over_minimal_symbols)
154 (iterate_over_some_symtabs, iterate_over_symtabs)
155 (find_pcs_for_symtab_line, iterate_over_symbols)
156 (demangle_for_lookup): Declare.
157 (expand_line_sal): Remove.
158 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
159 (lookup_symtab_callback): New functions.
160 (lookup_symtab): Rewrite.
161 (demangle_for_lookup): New function, extract from
162 lookup_symbol_in_language.
163 (lookup_symbol_in_language): Use it.
164 (iterate_over_symbols): New function.
165 (find_line_symtab): Update.
166 (find_pcs_for_symtab_line): New functions.
167 (find_line_common): Add 'start' argument.
168 (decode_line_spec): Update. Change argument to 'flags', change
170 (append_expanded_sal): Remove.
171 (append_exact_match_to_sals): Remove.
172 (expand_line_sal): Remove.
173 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
175 <map_symtabs_matching_filename>: New field.
176 * stack.c (func_command): Only look in the current program space.
177 Use DECODE_LINE_FUNFIRSTLINE.
178 * source.c (line_info): Set pspace on sal. Check program space in
179 the loop. Use DECODE_LINE_LIST_MODE.
180 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
181 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
182 * python/python.c (gdbpy_decode_line): Update.
183 * psymtab.c (partial_map_expand_apply): New function.
184 (partial_map_symtabs_matching_filename): Rename from
185 lookup_partial_symbol. Update arguments.
186 (lookup_symtab_via_partial_symtab): Remove.
187 (psym_functions): Update.
188 * objc-lang.h (parse_selector, parse_method): Don't declare.
190 * objc-lang.c (parse_selector, parse_method): Now static.
191 (find_methods): Change arguments. Fill in a vector of symbol
193 (uniquify_strings): New function.
194 (find_imps): Change arguments.
195 * minsyms.c (iterate_over_minimal_symbols): New function.
196 * linespec.h (enum decode_line_flags): New.
197 (struct linespec_sals): New.
198 (struct linespec_result) <canonical>: Remove.
199 <pre_expanded, addr_string, sals>: New fields.
200 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
201 (decode_line_full): Declare.
202 (decode_line_1): Update.
203 * linespec.c (struct address_entry, struct linespec_state, struct
204 collect_info): New types.
205 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
206 (eq_address_entry, maybe_add_address): New functions.
207 (total_number_of_methods): Remove.
208 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
210 (find_methods): Change arguments. Don't canonicalize input.
212 (add_matching_methods, add_constructors)
213 (build_canonical_line_spec): Remove.
214 (filter_results, convert_results_to_lsals): New functions.
215 (decode_line_2): Change arguments. Rewrite for new data
217 (decode_line_internal): Rename from decode_line_1. Change
218 arguments. Add cleanups. Update for new data structures.
219 (linespec_state_constructor, linespec_state_destructor)
220 (decode_line_full, decode_line_1): New functions.
221 (decode_indirect): Change arguments. Update.
222 (locate_first_half): Use skip_spaces.
223 (decode_objc): Change arguments. Update for new data structures.
225 (decode_compound): Change arguments. Add cleanups. Remove
226 fallback code, replace with error.
227 (struct decode_compound_collector): New type.
228 (collect_one_symbol): New function.
229 (lookup_prefix_sym): Change arguments. Update.
230 (compare_symbol_name, add_all_symbol_names_from_pspace)
231 (find_superclass_methods ): New functions.
232 (find_method): Rewrite.
233 (struct symtab_collector): New type.
234 (add_symtabs_to_list, collect_symtabs_from_filename): New
236 (symtabs_from_filename): Change API. Rename from
237 symtab_from_filename.
238 (collect_function_symbols): New function.
239 (find_function_symbols): Change API. Rename from
240 find_function_symbol. Rewrite.
241 (decode_all_digits): Change arguments. Rewrite.
242 (decode_dollar): Change arguments. Use decode_variable.
243 (decode_label): Change arguments. Rewrite.
244 (collect_symbols): New function.
245 (minsym_found): Change arguments. Rewrite.
246 (check_minsym, search_minsyms_for_name)
247 (add_matching_symbols_to_info): New function.
248 (decode_variable): Change arguments. Iterate over all symbols.
249 (symbol_found): Remove.
250 (symbol_to_sal): New function.
251 (init_linespec_result, destroy_linespec_result)
252 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
254 (decode_digits_list_mode, decode_digits_ordinary): New functions.
255 * dwarf2read.c (dw2_map_expand_apply): New function.
256 (dw2_map_symtabs_matching_filename): Rename from
257 dw2_lookup_symtab. Change arguments.
258 (dwarf2_gdb_index_functions): Update.
259 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
260 * defs.h (compare_strings): Declare.
261 * cli/cli-cmds.c (compare_strings): Move to utils.c.
262 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
264 (compare_symtabs, filter_sals): New functions.
265 * breakpoint.h (struct bp_location) <line_number, source_file>:
267 (struct breakpoint) <line_number, source_file>: Remove.
269 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
270 (momentary_breakpoint_from_master, add_location_to_breakpoint):
271 Update for changes to locations.
272 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
274 (create_breakpoint_sal): Add 'filter' argument.
275 (remove_sal, expand_line_sal_maybe): Remove.
276 (create_breakpoints_sal): Remove 'sals' argument. Handle
277 pre-expanded sals and the filter.
278 (parse_breakpoint_sals): Use decode_line_full.
279 (check_fast_tracepoint_sals): Use get_sal_arch.
280 (create_breakpoint): Create a linespec_sals. Update.
281 (break_range_command): Use decode_line_full. Update.
282 (until_break_command): Update.
283 (clear_command): Update match conditions for linespec.c changes.
284 Use DECODE_LINE_LIST_MODE.
285 (say_where): Update for changes to locations.
286 (bp_location_dtor): Free 'source_file'.
287 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
288 (update_static_tracepoint): Update for changes to locations.
289 (update_breakpoint_locations): Disable ranged breakpoint if too
290 many locations match. Update.
291 (addr_string_to_sals): Use decode_line_full. Resolve all sal
293 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
294 (decode_line_spec_1): Update. Change argument name to 'flags',
295 change interpretation.
296 * block.h (block_containing_function): Declare.
297 * block.c (block_containing_function): New function.
298 * skip.c (skip_function_command): Update.
299 (skip_re_set): Update.
300 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
301 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
304 2011-12-06 Tom Tromey <tromey@redhat.com>
306 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
307 breakpoint's pspace to be NULL.
308 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
309 * breakpoint.c (init_raw_breakpoint): Conditionally set
311 (init_breakpoint_sal): Don't set breakpoint's pspace.
312 (prepare_re_set_context): Conditionally switch program space.
313 (addr_string_to_sals): Check executing_startup on location's
316 2011-12-06 Tom Tromey <tromey@redhat.com>
318 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
319 * breakpoint.c (should_be_inserted): Explicitly check if program
320 space is executing startup.
321 (describe_other_breakpoints): Update.
322 (disable_breakpoints_before_startup): Change executing_startup
323 earlier. Remove loop.
324 (enable_breakpoints_after_startup): Likewise.
325 (init_breakpoint_sal): Don't use bp_startup_disabled.
326 (create_breakpoint): Don't use bp_startup_disabled.
327 (update_global_location_list): Use should_be_inserted.
328 (bkpt_re_set): Update.
330 2011-12-06 Tom Tromey <tromey@redhat.com>
332 * python/lib/gdb/command/pretty_printers.py
333 (InfoPrettyPrinter.invoke1): Remove extra double quote.
335 2011-12-06 Tom Tromey <tromey@redhat.com>
339 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
341 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
342 (S390_LAST_BREAK_REGNUM): Likewise.
343 (S390_SYSTEM_CALL_REGNUM): Likewise.
344 (S390_NUM_REGS): Update.
346 (s390_regmap_last_break): Add declaration.
347 (s390x_regmap_last_break): Likewise.
348 (s390_regmap_system_call): Likewise.
350 (tdesc_s390_linux32v1): Add declaration.
351 (tdesc_s390_linux32v2): Likewise.
352 (tdesc_s390_linux64v1): Likewise.
353 (tdesc_s390_linux64v2): Likewise.
354 (tdesc_s390x_linux64v1): Likewise.
355 (tdesc_s390x_linux64v2): Likewise.
357 * s390-tdep.c: Include new target description files
358 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
359 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
360 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
361 (s390_cannot_store_register): New function.
362 (s390_write_pc): Likewise.
363 (s390_dwarf_regmap): Add fields for new registers.
364 (s390_regmap_gregset): Likewise.
365 (s390x_regmap_gregset): Likewise.
366 (s390_regmap_fpregset): Likewise.
367 (s390_regmap_upper): Likewise.
368 (s390_regmap_last_break): New variable.
369 (s390x_regmap_last_break): Likewise.
370 (s390_regmap_system_call): Likewise.
371 (s390_last_break_regset): Likewise.
372 (s390x_last_break_regset): Likewise.
373 (s390_system_call_regset): Likewise.
374 (s390_upper_regset_sections): Rename to ...
375 (s390_linux64_regset_sections): ... this.
376 (s390_linux32_regset_sections): New variable.
377 (s390x_linux64_regset_sections): Likewise.
378 (s390_linux32v1_regset_sections): Likewise.
379 (s390_linux32v2_regset_sections): Likewise.
380 (s390_linux64v1_regset_sections): Likewise.
381 (s390_linux64v2_regset_sections): Likewise.
382 (s390x_linux64v1_regset_sections): Likewise.
383 (s390x_linux64v2_regset_sections): Likewise.
384 (s390_regset_from_core_section): Handle .reg-s390-last-break and
385 .reg-s390-system-call core file sections.
386 (s390_core_read_description): Check for presence of
387 .reg-s390-last-break and .reg-s390-system-call core file
388 sections and return appropriate target description.
389 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
390 "last_break" and "system_call" in target description. Install
391 appropriate gdbarch_core_regset_sections array.
392 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
393 (_initialize_s390_tdep): Initialize additional target descriptions.
395 * s390-nat.c: Include "elf/common.h".
396 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
397 (have_regset_last_break): New static variable.
398 (have_regset_system_call): Likewise.
399 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
400 (s390_native_collect): Likewise.
401 (fetch_regset, store_regset, check_regset): New functions.
402 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
403 and S390_SYSTEM_CALL_REGNUM.
404 (s390_linux_store_inferior_registers): Likewise.
405 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
406 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
408 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
409 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
410 (s390-linux32v1-expedite): Define.
411 (s390-linux32v2-expedite): Likewise.
412 (s390-linux64v1-expedite): Likewise.
413 (s390-linux64v2-expedite): Likewise.
414 (s390x-linux64v1-expedite): Likewise.
415 (s390x-linux64v2-expedite): Likewise.
417 * features/s390-linux32.xml: Add orig_r2 register.
418 * features/s390-linux64.xml: Likewise.
419 * features/s390x-linux64.xml: Likewise.
420 * features/s390-linux32v1.xml: New file.
421 * features/s390-linux32v2.xml: Likewise.
422 * features/s390-linux64v1.xml: Likewise.
423 * features/s390-linux64v2.xml: Likewise.
424 * features/s390x-linux64v1.xml: Likewise.
425 * features/s390x-linux64v2.xml: Likewise.
427 * features/s390-linux32.c: Regenerate.
428 * features/s390-linux64.c: Likewise.
429 * features/s390x-linux64.c: Likewise.
430 * features/s390-linux32v1.c: New generated file.
431 * features/s390-linux32v2.c: Likewise.
432 * features/s390-linux64v1.c: Likewise.
433 * features/s390-linux64v2.c: Likewise.
434 * features/s390x-linux64v1.c: Likewise.
435 * features/s390x-linux64v2.c: Likewise.
437 * regformats/s390-linux32.dat: Regenerate.
438 * regformats/s390-linux64.dat: Regenerate.
439 * regformats/s390x-linux64.dat: Regenerate.
440 * regformats/s390-linux32v1.dat: New generated file.
441 * regformats/s390-linux32v2.dat: Likewise.
442 * regformats/s390-linux64v1.dat: Likewise.
443 * regformats/s390-linux64v2.dat: Likewise.
444 * regformats/s390x-linux64v1.dat: Likewise.
445 * regformats/s390x-linux64v2.dat: Likewise.
447 2011-12-05 Pedro Alves <pedro@codesourcery.com>
449 * linux-nat.c (resume_stopped_resumed_lwps): Call
452 2011-12-05 Pedro Alves <pedro@codesourcery.com>
454 * breakpoint.c: Include record.h.
455 (breakpoints_always_inserted_mode): Return false when the record
458 2011-12-05 Pedro Alves <pedro@codesourcery.com>
460 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
461 Reinstate perror_with_name call on ptrace error. Remove #if 0.
462 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
463 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
465 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
467 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
470 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
472 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
474 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
476 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
479 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
481 Fix compilation --without-expat.
482 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
484 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
486 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
487 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
490 * features/library-list-svr4.dtd: New file.
491 * remote.c (PACKET_qXfer_libraries_svr4): New.
492 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
493 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
494 * solib-svr4.c (struct svr4_library_list): New.
495 [HAVE_LIBEXPAT]: Include xml-support.h.
496 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
497 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
498 [HAVE_LIBEXPAT] (svr4_library_list_children)
499 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
500 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
501 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
502 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
503 (svr4_read_so_list): Extend the corruption message by addresses.
504 (svr4_current_sos): New variable library_list, call
505 svr4_current_sos_via_xfer_libraries.
506 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
508 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
511 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
512 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
514 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
517 * dwarf2read.c (process_psymtab_comp_unit): Set
518 PSYMTABS_ADDRMAP_SUPPORTED.
519 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
520 validity. New field psymtabs_addrmap_supported.
521 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
522 psymtabs_addrmap_supported.
523 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
524 !PSYMTABS_ADDRMAP_SUPPORTED.
525 (dump_psymtab, maintenance_info_psymtabs): Print also
526 psymtabs_addrmap_supported.
528 2011-12-01 Doug Evans <dje@google.com>
530 * python/py-type.c (type_object_methods): Fix "array" doc string.
532 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
534 * source.c (print_source_lines_base): Fix missing braces on else
535 clause leading to additional output.
537 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
539 * s390-nat.c (SUBOFF): Remove.
540 (s390_native_supply, s390_native_collect): New functions.
541 (supply_gregset, supply_fpregset): Use s390_native_supply.
542 (fill_gregset, fill_fpregset): Use s390_native_collect.
544 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
545 (s390_unwind_pseudo_register): New function.
546 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
547 registers instead of PC and CC.
548 (s390_backchain_frame_unwind_cache): Likewise.
549 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
551 (s390_trad_frame_prev_register): New function.
552 (s390_frame_prev_register): Use it.
553 (s390_sigtramp_frame_prev_register): Likewise.
554 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
555 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
556 special callback to unwind any pseudo.
558 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
559 * features/s390-core64.xml: Likewise.
560 * features/s390x-core64.xml: Likewise.
561 * features/s390-linux32.c: Regenerate.
562 * features/s390-linux64.c: Likewise.
563 * features/s390x-linux64.c: Likewise.
565 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
567 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
569 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
571 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
572 instruction. Add more diagnostic output.
574 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
576 * MAINTAINERS (Write After Approval): Add myself to the list.
578 2011-11-29 Sanjoy Das <sdas@igalia.com>
580 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
581 (jit_bfd_try_read_symtab): Fix comments.
583 2011-11-28 DJ Delorie <dj@redhat.com>
585 * NEWS: Mention RL78 simulator.
587 2011-11-28 Joel Brobecker <brobecker@adacore.com>
589 * symfile.h (struct quick_symbol_functions): Fix the documentation
590 of field map_matching_symbols, as symbols are sorted using
591 strcmp_iw_ordered, not strcmp_iw.
593 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
595 * symfile.h (struct quick_symbol_functions): Update the
596 documentation for field map_matching_symbols.
598 2011-11-28 Joel Brobecker <brobecker@adacore.com>
600 * ada-lang.c (compare_names): Fix wrong return value in case
601 string1 starts with the same contents as string2, followed
602 by an underscore that do not start a symbol name suffix.
604 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
609 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
610 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
611 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
613 * python/py-type.c (typy_strip_typedefs): Ditto.
614 (typy_legacy_template_argument): Ditto.
615 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
616 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
618 2011-11-27 Joel Brobecker <brobecker@acacore.com>
620 * remote.c (remote_get_tracepoint_status): Delete addrbuf
621 local variable. Avoid use of sprintf_vma.
623 2011-11-27 Sanjoy Das <sdas@igalia.com>
625 Fix regression in jit.exp.
626 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
627 (jit_register_code): Set the jit_objfile_data field to the correct
630 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
632 * alpha-tdep.c (br_opcode): New.
633 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
634 (alpha_deal_with_atomic_sequence): New function.
635 (alpha_gdbarch_init): Handle single stepping of atomic sequences
636 with alpha_deal_with_atomic_sequence.
638 2011-11-24 Tristan Gingold <gingold@adacore.com>
640 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
641 fields. Add oso_sym, end_sym and nbr_syms.
642 (macho_register_oso): Change interface.
643 (macho_symtab_add_minsym): New function.
644 (macho_symtab_read): Rewritten.
645 (get_archive_prefix_len): Remove trailing blanks.
646 (oso_el_compare_name): Add comment.
647 (struct macho_sym_hash_entry): New structure.
648 (macho_relocate_common_syms): Remove.
649 (macho_sym_hash_newfunc): New function.
650 (macho_resolve_oso_sym_with_minsym): Likewise.
651 (macho_add_oso_symfile): Rewritten.
652 (macho_symfile_read_all_oso): Remove trailing blanks.
653 Adjust code to free oso vector.
654 (macho_symfile_read): Likewise.
655 Move code to initialize minimal symbol
657 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
659 * mips-tdep.c (extended_offset): Fix formatting.
661 2011-11-23 Doug Evans <dje@google.com>
663 * dwarf2read.c (dw2_lookup_symtab): Add comment.
664 (dw2_expand_symtabs_with_filename): Ditto.
665 (dw2_expand_symtabs_matching): Ditto.
666 (dw2_map_symbol_filenames): Ditto.
668 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
670 * ada-lang.c (assign_aggregate): Minor reformatting.
672 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
674 * ada-lang.c (assign_aggregate): Remove declaration of local
675 variable `i' which is shadowing another variable with the same
676 name declared in the outer scope.
678 2011-11-23 Joel Brobecker <brobecker@adacore.com>
680 * ada-lang.c (get_base_type): Renames base_type. Adjust all
681 calls throughout this file.
683 2011-11-23 Joel Brobecker <brobecker@adacore.com>
685 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
688 2011-11-22 Tom Tromey <tromey@redhat.com>
691 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
692 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
693 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
694 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
695 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
696 (print_it_catch_syscall, print_it_catch_exec)
697 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
698 (bpstat_print): Add 'kind' argument. Handle
699 TARGET_WAITKIND_LOADED.
700 * infrun.c (normal_stop): Update for bpstat_print change. Don't
701 handle TARGET_WAITKIND_LOADED here.
702 * breakpoint.h (bpstat_print): Update.
704 2011-11-22 Tom Tromey <tromey@redhat.com>
706 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
708 2011-11-22 Tom Tromey <tromey@redhat.com>
710 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
711 Use static_assert to check the size of
712 async_reason_string_lookup.
713 * common/gdb_assert.h (static_assert): New macro.
715 2011-11-22 Alan Modra <amodra@gmail.com>
717 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
718 destination calculation. Don't expect >> to sign extend. Don't
719 add a break if branch lands inside the sequence anywhere.
721 2011-11-21 Keith Seitz <keiths@redhat.com>
723 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
724 -var-evaluate-expression of an enumeration and fix expected result.
725 * gdb.mi/mi2-varvdisplay.exp: Likewise.
727 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
729 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
730 the case where osdata->items is empty. Rename column names to a
731 canonical form to avoid problems with unusual column names.
733 2011-11-21 Yao Qi <yao@codesourcery.com>
735 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
737 2011-11-20 Stan Shebs <stan@codesourcery.com>
739 * NEWS: Mention tracepoint additions.
740 * breakpoint.h (struct tracepoint): New field traceframe_usage.
741 * breakpoint.c (print_one_breakpoint_location): Identify
742 tracepoints as such when reporting hit counts, report
744 (create_tracepoint_from_upload): Copy status info.
745 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
746 add fields user_name, notes, start_time, stop_time.
747 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
748 * tracepoint.c (trace_user): New global.
749 (trace_notes): New global.
750 (trace_stop_notes): New global.
751 (start_tracing): Add argument and trace note handling.
752 (stop_tracing): Ditto.
753 (trace_start_command): Add notes argument.
754 (trace_stop_command): Ditto.
755 (trace_status_command): Report additional status info.
756 (trace_status_mi): Similarly.
757 (trace_save): Update, record tracepoint status.
758 (set_disconnected_tracing): Call target method directly.
759 (send_disconnected_tracing_value): Remove.
760 (set_trace_user): New function.
761 (set_trace_notes): New function.
762 (set_trace_stop_notes): New function.
763 (parse_trace_status): Handle additional status.
764 (parse_tracepoint_status): New function.
765 (parse_tracepoint_definition): Call it.
766 (tfile_get_tracepoint_status): New function.
767 (init_tfile_ops): Use it.
768 (_initialize_tracepoint): Add new setshows.
769 * target.h (struct target_ops): New methods to_get_tracepoint_status
770 and to_set_trace_notes.
771 (target_get_tracepoint_status): New macro.
772 (target_set_trace_notes): New macro.
773 * target.c (update_current_target): Add new methods.
774 * remote.c (remote_get_tracepoint_status): New function.
775 (remote_set_trace_notes): New function.
776 (init_remote_ops): Add them.
777 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
778 (mi_cmd_trace_stop): Ditto.
780 2011-11-20 Sanjoy Das <sdas@igalia.com>
782 * jit.c: Include regcache.h.
783 (jit_gdbarch_data, jit_frame_unwind): New static variables.
784 (jit_unwind_reg_set_impl, free_reg_value_impl)
785 (jit_unwind_reg_get_impl, jit_frame_sniffer)
786 (jit_frame_unwind_stop_reason, jit_frame_this_id)
787 (jit_frame_prev_register, jit_dealloc_cache)
788 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
789 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
790 jit_prepend_unwinder.
791 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
793 2011-11-20 Sanjoy Das <sdas@igalia.com>
795 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
796 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
797 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
798 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
799 (finalize_symtab, jit_object_close_impl)
800 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
801 (free_objfile_data): New functions.
802 (_initialize_jit): Register jit_objfile_data with a proper cleanup
805 2011-11-20 Sanjoy Das <sdas@igalia.com>
807 * jit.c: Include gdb-dlfcn.h.
808 (loaded_jit_reader, reader_init_fn_sym): New static variables.
809 (jit_reader_load, jit_reader_load_command)
810 (jit_reader_unload_command): New functions.
811 (_initialize_jit): Add commands "jit-reader-load" and
814 2011-11-20 Sanjoy Das <sdas@igalia.com>
816 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
817 * config.in: Add new #define HAVE_LIBDL.
818 * configure.ac: Add check for -ldl.
819 * configure: Re-generated by autoconf.
820 * gdb-dlfcn.c: New file.
821 * gdb-dlfcn.h: New file.
823 2011-11-20 Sanjoy Das <sdas@igalia.com>
825 * config.in: Add new #defines: JIT_READER_DIR and
826 JIT_READER_DIR_RELOCATABLE.
827 * configure.ac: New GDB directory entry for jit-reader-dir.
828 * configure: Re-generated by autoconf.
829 * jit.c: New static variable: const char *jit_reader_dir.
830 (_initialize_jit): Relocate jit_reader_dir.
832 2011-11-20 Sanjoy Das <sdas@igalia.com>
834 * Makefile.in: Add jit-reader.h as a header. Have it installed in
836 * configure.ac: Generate a correct value for TARGET_PTR for
837 jit-reader.h. Tell configure to generate jit-reader.h from
839 * configure: Re-generated by autoconf.
840 * jit-reader.in: New file.
841 * jit.c: Include jit-reader.h.
843 2011-11-20 Sanjoy Das <sdas@igalia.com>
845 * MAINTAINERS (Write After Approval): Add myself to the list.
847 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
849 * findvar.c (read_frame_register_value): Respect value_offset
850 of the register value. Remove big-endian special case.
852 2011-11-18 Tom Tromey <tromey@redhat.com>
855 * remote.c (putpkt_for_catch_errors): New function.
856 (remote_kill): Use it.
858 2011-11-18 Yao Qi <yao@codesourcery.com>
860 * breakpoint.c (create_breakpoint): Produce query message according to
862 Allocate tracepoint per correct type.
863 Don't check SALs for pending fast tracepoints.
864 * tracepoint.c (process_tracepoint_on_disconnect): New.
865 (disconnect_tracing): Call process_tracepoint_on_disconnect.
867 2011-11-18 Yao Qi <yao@codesourcery.com>
869 * breakpoint.c (install_breakpoint): Add one more parameter so that
870 update_global_location_list is called conditionally.
871 (create_fork_vfork_event_catchpoint): Update.
872 (create_syscall_event_catchpoint): Update.
873 (create_breakpoint_sal): Update.
874 (create_breakpoint_sal): Update. Call do_cleanups before
876 * ada-lang.c (create_ada_exception_catchpoint): Update.
877 * breakpoint.h (install_breakpoint): Update declaration.
879 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
881 * spu-tdep.c (spu_return_value): Fix handling of
882 TYPE_CALLING_CONVENTION annotation.
884 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
886 * skip.c (skip_function_command): Work around uninitialized
889 2011-11-16 David S. Miller <davem@davemloft.net>
891 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
892 'tv_usec' to long for printf since these fields have a type which
895 2011-11-15 Doug Evans <dje@google.com>
897 * buildsym.c (add_symbol_to_list): Delete outdated comment.
899 2011-11-15 Paul Koning <paul_koning@dell.com>
901 * python/py-type.c (typy_get_composite): New function.
902 (typy_nonzero): New function.
903 (typy_values): Rename from typy_fields.
904 (typy_fields): New function.
905 (typy_length): Raise exception if not struct, union, or enum type.
906 (typy_getitem): Ditto.
907 (typy_has_key): Ditto.
908 (typy_make_iter): Ditto.
910 2011-11-15 Doug Evans <dje@google.com>
912 * NEWS: Mention new parameter basenames-may-differ.
913 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
914 ! basenames_may_differ.
915 * psymtab.c (lookup_partial_symtab): Ditto.
916 * symtab.c (lookup_symtab): Ditto.
917 (basenames_may_differ): New global.
918 (_initialize_symtab): New parameter basenames-may-differ.
919 * symtab.h (basenames_may_differ): Declare.
921 2011-11-15 Pedro Alves <pedro@codesourcery.com>
922 Luis Machado <lgustavo@codesourcery.com>
924 * auxv.c: Include observer.h.
925 (auxv_inferior_data_cleanup): New.
926 (invalidate_auxv_cache_inf): New.
927 (invalidate_auxv_cache): New.
928 (get_auxv_inferior_data): New.
929 (auxv_inferior_data): New static global.
930 (auxv_info): New structure.
931 (target_auxv_search): Use get_auxv_inferior_data instead of
932 target_read_alloc and don't free cached buffers.
933 (fprint_target_auxv): Likewise
934 (_initialize_auxv): Register per-inferior auxv cache and register
935 observers to invalidate auxv cache when needed.
937 2011-11-14 Doug Evans <dje@google.com>
939 Make "!" an alias for "shell".
941 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
942 adding "!" command, always add it.
943 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
944 command of length one.
946 2011-11-14 Stan Shebs <stan@codesourcery.com>
947 Kwok Cheung Yeung <kcy@codesourcery.com>
949 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
950 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
951 the minimum instruction size for fast tracepoints.
952 * target.h (struct target_ops): Add new method
953 to_get_min_fast_tracepoint_insn_len.
954 (target_get_min_fast_tracepoint_insn_len): New.
955 * target.c (update_current_target): Set up new target operation.
956 * remote.c (remote_write_bytes_aux): Fix typo.
957 (remote_get_min_fast_tracepoint_insn_len): New.
958 (init_remote_ops): Initialize new field.
960 2011-11-14 Tom Tromey <tromey@redhat.com>
962 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
963 (encode_actions): Likewise.
965 2011-11-14 Yao Qi <yao@codesourcery.com>
967 * remote.c (struct remote_state): <install_in_trace> new field.
968 (PACKET_InstallInTrace): New enum value.
969 (remote_install_in_trace_feature): Support InstallInTrace.
970 (remote_supports_install_in_trace): Likewise.
971 (remote_protocol_features): Likewise.
972 (_initialize_remote): Likewise.
973 (remote_can_download_tracepoint): New.
974 * target.h (struct target): New field
975 `to_can_download_tracepoint'.
976 (target_can_download_tracepoint): New macro.
977 * target.c (update_current_target): Update.
978 * breakpoint.h (struct bp_location): Add comment on field
980 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
982 (remove_breakpoints): Don't remove tracepoints.
983 (tracepoint_locations_match ): New.
984 (breakpoint_locations_match): Call it.
985 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
986 (download_tracepoint_locations): New.
987 (update_global_location_list): Call it.
988 * tracepoint.c (find_matching_tracepoint): Delete.
989 (find_matching_tracepoint_location): Renamed from
990 find_matching_tracepoint. Return bp_location rather than
992 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
995 2011-11-14 Yao Qi <yao@codesourcery.com>
997 * target.h (struct target): <to_download_tracepoint> Change type
998 of parameter from tracepoint to bp_location.
999 * target.c (update_current_target): Update.
1000 * tracepoint.c (start_tracing): Update.
1001 * remote.c (remote_download_tracepoint): Remove loop for each location
1004 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1006 * i386-nat.c (i386_insert_hw_breakpoint): Call
1007 i386_update_inferior_debug_regs.
1008 (i386_remove_hw_breakpoint): Likewise.
1010 2011-11-14 Yao Qi <yao@codesourcery.com>
1012 * breakpoint.c (init_raw_breakpoint): Call
1013 add_location_to_breakpoint to replace duplicated code.
1014 (add_location_to_breakpoint): Adjust the breakpoint's
1015 address prior to allocating a location.
1017 2011-11-12 Matt Rice <ratmice@gmail.com>
1019 * macrocmd.c (macro_no_macro_info): New function.
1020 (macro_expand_command): Use macro_no_macro_info.
1021 (macro_expand_once_command): Ditto.
1022 (info_macro_command): Add argument processing,
1023 move info_definitions_command here.
1024 (_initialize_macrocmd): Remove info definitions command.
1025 Add arguments to info macro help text.
1026 * NEWS: Replace info definitions command with new info macro options.
1028 2011-11-11 Keith Seitz <keiths@redhat.com>
1031 * linespec.c (locate_first_half): Keep ':' if it looks
1032 like it could be part of a Windows path starting with
1035 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1037 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1038 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1040 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1042 * target.c (target_waitstatus_to_string): Handle
1043 TARGET_WAITKIND_NO_RESUMED.
1045 2011-11-10 Doug Evans <dje@google.com>
1047 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1049 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1050 (map_partial_symbol_filenames): Ditto. All callers updated.
1051 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1052 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1053 parameter need_fullname.
1055 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1056 * source.c (symtab_to_fullname): Ditto.
1058 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1059 * gdb-demangle.h: ... here. New file.
1060 * demangle.c: #include "gdb-demangle.h".
1061 (_initialize_demangler): Use initialize_file_ftype for prototype.
1062 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1063 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1065 * utils.c: Update. #include "gdb-demangle.h".
1066 * symtab.h (asm_demangle): Delete.
1067 (demangle): Move declaration next to use.
1068 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1069 * dwarf2read.c: #include "gdb-demangle.h".
1070 * gnu-v2-abi.c: Ditto.
1071 * jv-typeprint.c: Ditto.
1072 * mdebugread.c: Ditto.
1073 * p-typeprint.c: Ditto.
1074 * stabsread.c: Ditto.
1075 * printcmd.c: Ditto.
1076 (asm_demangle): Delete declaration.
1077 * tui/tui-stack.c: #include "gdb-demangle.h".
1079 * python/py-type.c (typy_fields_items): Call check_typedef.
1081 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1083 * findvar.c (read_frame_register_value): Read the correct bytes
1084 from registers on big-endian architectures.
1086 2011-11-10 Tom Tromey <tromey@redhat.com>
1088 * procfs.c (load_syscalls): Make a cleanup.
1089 (open_procinfo_files): fd==0 is ok.
1091 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1093 * procfs.c (iterate_over_mappings): Call do_cleanups before
1096 2011-11-09 Doug Evans <dje@google.com>
1098 * gdbtypes.c (check_typedef): Document that this function can
1101 2011-11-09 Tom Tromey <tromey@redhat.com>
1104 * valops.c (value_full_object): Return early if real type is
1105 smaller than the enclosing type.
1107 2011-11-08 Yao Qi <yao@codesourcery.com>
1109 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1111 2011-11-08 Meador Inge <meadori@codesourcery.com>
1113 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1114 register when the frame can't be determined.
1115 * arm-tdep.c (arm_analyze_prologue): Ditto.
1117 2011-11-07 Stan Shebs <stan@codesourcery.com>
1119 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1121 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1123 * infrun.c (handle_inferior_event): Minor reformatting.
1125 2011-11-05 Doug Evans <dje@google.com>
1127 * source.c (forget_cached_source_info_for_objfile): Move call to
1128 objfile->sf->qf->forget_cached_source_info outside of
1129 ALL_OBJFILE_SYMTABS loop.
1130 (forget_cached_source_info): Delete unused variable `s'.
1132 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1134 * i386-nat.c (dr_ref_count): Remove unused variable.
1136 2011-11-05 Doug Evans <dje@google.com>
1138 * main.c (captured_main): Set lim_at_start before calling
1139 make_command_stats_cleanup.
1141 2011-11-04 Doug Evans <dje@google.com>
1143 * utils.c: #include "timeval-utils.h".
1144 (cmd_stats): Rename start_time to start_cpu_time.
1145 New member start_wall_time.
1146 (report_command_stats): Report wall time.
1147 (make_command_stats_cleanup): Record start wall time.
1149 2011-11-04 Tom Tromey <tromey@redhat.com>
1151 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1153 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1155 * coff-pe-read.c: Include defs.h before bfd.h.
1157 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1161 * python/python.c (python_run_simple_file): Expand tilde in path.
1163 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1167 * python/py-type.c (typy_lookup_type): Do not return a type in
1168 an exception handler.
1170 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 Eli Zaretskii <eliz@gnu.org>
1173 * linux-nat.c (_initialize_linux_nat): Improve help
1174 for `info proc stat', `info proc status', `info proc cwd',
1175 `info proc cmdline' and `info proc exe'.
1177 2011-11-02 Stan Shebs <stan@codesourcery.com>
1179 String collection for tracepoints.
1180 * NEWS: Mention string collection.
1181 * common/ax.def (tracenz): New bytecode.
1182 * ax-gdb.h (trace_string_kludge): Declare.
1183 * ax-gdb.c: Include valprint.h and c-lang.h.
1184 (trace_string_kludge): New global.
1185 (gen_traced_pop): Add string case.
1186 (agent_command): Add string case.
1187 * tracepoint.h (decode_agent_options): Declare.
1188 * tracepoint.c: Include cli-utils.h.
1189 (decode_agent_options): New function.
1190 (validate_actionline): Call it.
1191 (encode_actions_1): Ditto.
1192 * target.h (struct target_ops): New method to_supports_string_tracing.
1193 (target_supports_string_tracing): New macro.
1194 * target.c (update_current_target): Add to_supports_string_tracing.
1195 * remote.c (struct remote_state): New field string_tracing.
1196 (remote_string_tracing_feature): New function.
1197 (remote_protocol_features): New feature tracenz.
1198 (remote_supports_string_tracing): New function.
1199 (init_remote_ops): Set to_supports_string_tracing.
1201 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1202 Jan Kratochvil <jan.kratochvil@redhat.com>
1204 * linux-nat.c: Include cli/cli-utils.h.
1205 (enum info_proc_what): New.
1206 (linux_nat_info_proc_cmd): Rename to ...
1207 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1208 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1209 status_f and stat_f from WHAT. Throw error on extra parameters.
1210 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1211 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1212 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1213 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1214 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1215 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1216 `info proc cmdline', `info proc exe' and `info proc all' as real
1217 subcommands of `info proc'.
1219 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1221 * Makefile.in: (SFILES): Add skip.c.
1222 (HFILES_NO_SRCDIR): Add skip.h.
1223 (COMMON_OBS): Add skip.o.
1224 * skip.h, skip.c: New.
1225 * breakpoint.h (set_default_breakpoint): Remove.
1226 (get_sal_arch): Declare.
1227 * breakpoint.c: Remove default_breakpoint_valid,
1228 default_breakpoint_address, default_breakpoint_symtab,
1229 default_breakpoint_line, default_breakpoint_pspace variables.
1230 (get_sal_arch): Make public.
1231 (set_default_breakpoint): Remove.
1232 (parse_breakpoint_sals, create_breakpoint, clear_command,
1233 decode_line_spec_1): Remove uses of default_breakpoint variables;
1234 replaced with function calls into stack.c.
1235 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1236 * cli/cli-cmds.c: Add skiplist.
1237 (init_cmd_lists): Initialize skiplist.
1238 (init_cli_cmds): Fix comment (classes of commands appear in
1239 alphabetical order).
1240 * infrun.c (handle_inferior_event): Add check that we don't step into
1241 a function whose pc is marked for skip.
1242 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1243 last_displayed_addr, last_displayed_symtab, last_displayed_line
1245 (set_last_displayed_sal): New static function.
1246 (print_frame_info): Switch call to set_default_breakpoint to call to
1247 set_last_displayed_sal.
1248 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1249 get_last_displayed_pspace, get_last_displayed_addr,
1250 get_last_displayed_symtab, get_last_displayed_line,
1251 get_last_displayed_sal): New public functions.
1252 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1253 get_last_displayed_pspace, get_last_displayed_addr,
1254 get_last_displayed_symtab, get_last_displayed_line,
1255 get_last_displayed_sal): Declare.
1257 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1259 * MAINTAINERS (Write After Approval): Add myself to the list.
1261 2011-10-29 Yao Qi <yao@codesourcery.com>
1263 * infcmd.c (disconnect_command): Call disconnect_tracing.
1265 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 * symtab.c (skip_prologue_sal): Code reformatting.
1270 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1274 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1277 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1279 * linux-nat.c (linux_nat_filter_event): Remove `options'
1280 parameter, and dead code that used it. If we're handling a
1281 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1282 in our lwp list, re-add it.
1283 (check_zombie_leaders): New.
1284 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1285 wait for children with WNOHANG, and always wait for all children.
1286 Don't check for no resumed children upfront. Simplify wait loop.
1287 Check for zombie thread group leaders after handling all wait
1288 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1289 unwaited-for children left.
1290 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1291 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1292 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1293 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1295 2011-10-28 Sterling Augustine <saugustine@google.com>
1297 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1298 * symtab.c (free_completion_list): New function.
1299 (do_free_completion_list): Likewise.
1300 (default_make_symbol_completion_list_break_on): New variable
1301 back_to. Call make_cleanup and discard_cleanups.
1302 (make_source_files_completion_list): Likewise.
1304 2011-10-28 Paul Koning <paul_koning@dell.com>
1306 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1307 * NEWS: Mention deep_items.
1309 2011-10-28 Alen Skondro <askondro@gmail.com>
1311 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1314 2011-10-27 Meador Inge <meadori@codesourcery.com>
1316 * MAINTAINERS (Write After Approval): Add myself to the list.
1318 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1320 * value.h (read_frame_register_value): Add declaration.
1321 * findvar.c (read_frame_register_value): New function.
1322 (value_from_register): Use read_frame_register_value
1323 instead of get_frame_register_value + value_contents_copy
1324 to get value contents.
1326 2011-10-27 Doug Evans <dje@google.com>
1328 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1329 source_script_from_stream if it may have been found on the search path.
1330 * python/py-auto-load.c (source_section_scripts): Pass full path to
1331 source_python_script_for_objfile.
1332 * python/python.c (source_python_script): Delete stream parameter.
1333 All callers updated.
1334 (source_python_script_for_objfile): Ditto.
1335 * python/python-internal.h (source_python_script_for_objfile): Update.
1336 * python/python.h (source_python_script): Update.
1338 2011-10-27 Tom Tromey <tromey@redhat.com>
1340 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1341 (ada_sals_for_line): Remove declarations.
1343 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1345 Move unwind reasons to an external .def file
1346 * frame.c (frame_stop_reason_string): Rewrite using
1347 unwind_stop_reasons.def.
1348 * frame.h (enum unwind_stop_reason): Likewise.
1349 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1350 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1351 constants for bound-checking.
1352 * unwind_stop_reasons.def: New file.
1353 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1354 instead of a distinct value.
1356 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1360 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1361 (convert_values_to_python): Return on Python tuple allocation
1362 failure. Return NULL on value conversion error.
1364 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1366 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1367 (bppy_set_task): Ditto.
1368 (bppy_delete_breakpoint): Ditto.
1369 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1370 (gdbpy_lookup_global_symbol): Ditto.
1371 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1372 * python/py-frame.c (frapy_is_valid): Ditto.
1373 (frame_info_to_frame_object): Ditto.
1374 * python/py-type.c (typy_lookup_type): Ditto.
1375 (typy_getitem): Ditto.
1376 (typy_has_key): Ditto.
1377 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1379 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1381 * gdbarch.h: Regenerate.
1383 2011-10-26 Meador Inge <meadori@codesourcery.com>
1385 * gdbarch.sh (function_list): Use 'pstring' when printing
1387 * gdbarch.c: Regenerate.
1389 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1391 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1392 and frame caches if PTID refers to all threads of a process.
1394 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1396 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1397 to create_breakpoint.
1399 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1401 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1402 (ppc_sysv_abi_push_dummy_call): Use it.
1403 (do_ppc_sysv_return_value): Likewise.
1404 (ppc64_sysv_abi_push_dummy_call): Likewise.
1405 (ppc64_sysv_abi_return_value): Likewise.
1407 2011-10-26 Paul Koning <paul_koning@dell.com>
1409 * python/lib/gdb/types.py (deepitems): New function.
1411 2011-10-25 Paul Koning <paul_koning@dell.com>
1415 * python/py-value.c (value_to_value_object): Remove fetching of
1416 the value if it was lazy.
1417 (valpy_get_is_lazy): New function.
1418 (valpy_fetch_lazy): New function.
1420 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1422 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1423 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1425 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1427 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1428 event, in non-stop, if not stopping, make sure the new lwp has
1429 last_resume_kind set to resume_continue. Assert that when we're
1430 resuming the new lwp, its last_resume_kind is resume_continue.
1432 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1434 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1435 already set when marking the event thread as not executing in
1438 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1440 * infrun.c (handle_inferior_event): Add debug output for
1441 TARGET_WAITKIND_NO_HISTORY.
1443 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1445 * NEWS: Move set/show extended-prompt to "New Options". Expand
1446 description. Fix typos.
1448 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1452 * python/py-param.c (call_doc_function): Correctly deference on
1455 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1457 * ada-tasks.c (print_ada_task_info): Fix computation of
1458 number of tasks displayed in command output.
1460 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 Ulrich Weigand <uweigand@de.ibm.com>
1463 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1464 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1465 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1466 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1469 2011-10-20 Cary Coutant <ccoutant@google.com>
1471 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1473 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1474 flag. Adjust all callers.
1475 (process_psymtab_comp_unit): Remove adjustment for type section.
1477 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1479 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1480 arguments by adding OBJFILE. Instead of getting objfile from
1481 symbol's symtab, use new argument OBJFILE.
1482 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1483 arguments by adding OBJFILE.
1484 * gdb/dwarf2read.c (new_symbol_full): Change call to
1485 cp_scan_for_anonymous_namespaces to match new signature.
1486 * gdb/stabsread.c (define_symbol): Change call to
1487 cp_scan_for_anonymous_namespaces to match new signature.
1489 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1494 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1496 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1497 leak. Delete unused variables.
1499 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1503 * python/py-frame.c (frapy_read_var): Use const struct *block.
1504 * python/py-type.c (typy_lookup_typename): Likewise.
1505 (typy_lookup_type): Likewise.
1506 (typy_legacy_template_argument): Likewise.
1507 (typy_template_argument): Likewise.
1508 (gdbpy_lookup_type): Likewise.
1509 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1510 * python/py-block.c (blpy_block_object): Likewise.
1511 (blpy_iter): Likewise.
1512 (blpy_get_start): Likewise.
1513 (blpy_get_end): Likewise.
1514 (blpy_get_function): Likewise.
1515 (blpy_get_superblock): Likewise.
1516 (set_block): Likewise.
1517 (block_to_block_object): Likewise.
1518 (block_object_to_block): Likewise.
1519 (blpy_is_valid): Likewise.
1520 (blpy_get_global_block): New function.
1521 (blpy_get_static_block): New function.
1522 (blpy_is_global): New function.
1523 (blpy_is_static): New function.
1524 * blockframe.c (block_innermost_frame): Likewise.
1525 * valops.c (value_of_variable): Likewise.
1526 * frame.h: Update prototypes.
1527 * python/python-internal.h: Likewise.
1528 * value.h: Likewise.
1530 2011-10-19 Cary Coutant <ccoutant@google.com>
1532 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1535 2011-10-19 Cary Coutant <ccoutant@google.com>
1537 * dwarf2read.c (peek_abbrev_code): New function.
1538 (dw2_get_file_names): Check for dummy compilation units.
1539 (create_debug_types_hash_table): Likewise.
1540 (process_psymtab_comp_unit): Likewise.
1541 (load_partial_comp_unit): Likewise.
1542 (load_full_comp_unit): Likewise.
1544 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1546 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1547 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1548 pt_phdr if PT_PHDR was found.
1550 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1552 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1553 type or "<unnamed type"> when there is no name assigned.
1554 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1555 avoid a sigint when no name is assigned.
1557 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1561 * dwarf2expr.c (ctx_no_read_reg): New function.
1562 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1563 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1564 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1565 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1567 2011-10-16 Doug Evans <dje@google.com>
1569 * NEWS: Document python gdb.printing.register_pretty_printer's new
1570 `replace' parameter.
1572 2011-10-14 Keith Seitz <keiths@redhat.com>
1575 * eval.c (evaluate_subexp_standard): Do not construct
1576 an array of types; pass the value array directly to
1577 find_overload_match.
1578 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1579 (rank_function): Take an array of values instead of types.
1580 (rank_one_type): Add struct value * parameter.
1581 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1582 (rank_function): For each argument, pass the argument's
1583 value to rank_one_type.
1584 (rank_one_type): Add VALUE parameter.
1585 If the parameter type is a pointer and the argument type
1586 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1588 Update all calls to rank_one_type, passing NULL for new
1590 * valarith.c (value_user_defined_cpp_op): Do not construct
1591 an array of types; pass the value array directly to
1592 find_overload_match.
1593 * valops.c (find_overload_method_list): Take an array of
1594 values instead of types.
1595 Save the type of OBJP for later use.
1596 Update calls to find_oload_champ, and find_oload_champ_namespace.
1597 (find_oload_champ_namespace): Take an array of values instead
1599 (find_oload_champ_namespace_loop): Likewise.
1600 (find_oload_champ): Likewise.
1601 (classify_oload_match): Inspect all arguments
1602 until INCOMPATIBLE is found. Return the worst badness found
1604 (compare_parameters): Update call to rank_one_type.
1605 * value.h (find_overload_match): Take an array of values instead
1608 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1610 Drop lazy lm_info reading.
1611 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1612 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1613 (lm_info_read): New function.
1614 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1615 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1616 lm_dynamic_from_link_map.
1617 (lm_next, lm_prev, lm_name): Remove.
1618 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1619 initialization incl. read_memory. No longer use lm_name.
1620 (svr4_free_so): Drop lm_info->lm freeing.
1621 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1622 explicit lm_addr and lm initialization.
1623 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1624 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1627 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 Paul Pluzhnikov <ppluzhnikov@google.com>
1630 * defs.h (struct so_list): New forward declaration.
1631 (make_cleanup_free_so): New declaration.
1632 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1633 (svr4_free_so): Move the function here from downwards. Handle NULL
1635 (svr4_free_library_list): New.
1636 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1637 Use more cleanups. Use new parameter ignore_first instead of
1638 ignore_first_link_map_entry.
1639 (svr4_current_sos): New variable ignore_first, initialize it. New
1640 variable back_to, use it for svr4_free_library_list protection.
1641 (svr4_free_so): Remove - move upwards.
1642 * utils.c: Include solist.h.
1643 (do_free_so, make_cleanup_free_so): New functions.
1645 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 Fix internal error regression.
1648 * value.c (value_primitive_field): Handle value_optimized_out. Move
1649 packed bitfields comment.
1651 2011-10-13 Tom Tromey <tromey@redhat.com>
1653 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1656 2011-10-13 Tom Tromey <tromey@redhat.com>
1658 * python/py-type.c (typy_has_key): Make 'field' const.
1660 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1662 * remote.c (remote_save_trace_data): Invert comparison.
1664 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1666 * tracepoint.c (trace_save_command): Use filename instead of
1669 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1674 2011-10-13 Yao Qi <yao@codesourcery.com>
1677 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1678 whether insn is a 32-bit Thumb-2 instruction.
1679 (thumb_in_function_epilogue_p): Likewise.
1680 (thumb_get_next_pc_raw): Likewise.
1681 (arm_breakpoint_from_pc): Likewise.
1683 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1686 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1687 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1688 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1689 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1691 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1693 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1694 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1695 clear DATA on zero SIZE.
1697 2011-10-12 Doug Evans <dje@google.com>
1699 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1700 header->first_die_offset here. All callers updated.
1702 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1704 Fix compatibility with texinfo versions older than 4.12.
1705 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1706 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1707 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1708 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1709 * configure: Regenerate.
1710 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1711 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1712 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1714 2011-10-12 Gary Benson <gbenson@redhat.com>
1716 * breakpoint.h (pc_at_non_inline_function): Declare.
1717 * breakpoint.c (is_non_inline_function,
1718 pc_at_non_inline_function): New functions.
1719 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1720 if the stop is at a location where functions cannot be inlined.
1722 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1724 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1725 the core wanted them stopped, or if they now have a pending event
1727 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1728 down to stop_and_resume_callback.
1729 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1730 having new pending events after calling linux_nat_filter_event.
1732 2011-10-11 Sterling Augustine <saugustine@google.com>
1734 * dwarf2read.c: Undo inadvertent changes in previous commit.
1736 2011-10-11 Sterling Augustine <saugustine@google.com>
1738 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1741 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1743 * symfile.c (separate_debug_file_exists): Fix condition.
1745 2011-10-11 David S. Miller <davem@davemloft.net>
1747 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1749 * regcache.h (regcache_restore): Remove declaration.
1751 * gdbarch.sh: New field 'long_long_align_bit'.
1752 * gdbarch.c, gdbarch.h: Regenerate.
1753 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1754 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1756 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 Revert this part of:
1759 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1760 Support @entry in input expressions.
1761 * c-exp.y (ENTRY, unknown_cpp_name): New.
1762 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1763 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1764 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1765 (name_not_typename: ENTRY): New.
1766 (yylex): Recognize ENTRY.
1768 Reimplement @entry in input expressions.
1769 * c-exp.y (ENTRY): New.
1770 (variable: name_not_typename ENTRY): New.
1771 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1773 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1775 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1776 parent and child's pids as soon as we detect a clone event.
1777 Adjust another debug message.
1779 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1781 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1782 not zombie instead of reading the whole file.
1784 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 Fix separate debuginfo warning with "remote:" access.
1787 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1788 * symfile.c (get_file_crc): New function with the code moved from ...
1789 (separate_debug_file_exists): ... this function, specifically variables
1790 buffer and count. New variable verified_as_different, set it. Remove
1791 file_crc initialization. Verify also if both files are not the same
1792 manually, if needed.
1794 2011-10-11 Yao Qi <yao@codesourcery.com>
1796 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1799 2011-10-10 Doug Evans <dje@google.com>
1801 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1802 libthread_db when we load libpthread or the main symbol file.
1803 (thread_db_inferior_created): New function.
1804 (_initialize_thread_db): Attach inferior_created observer.
1805 * linux-nat.c (linux_child_post_attach): Remove call to
1806 check_for_thread_db.
1807 (linux_child_post_startup_inferior): Ditto.
1808 * objfiles.h (OBJF_MAINLINE): Define.
1809 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1810 allocate_objfile when appropriate.
1812 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1815 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1816 Remove unused variables.
1817 (get_linux_version): Remove function.
1818 (_initialize_arm_linux_nat): Do not call it.
1820 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1822 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1823 new clone lwp if the core asked it to stop. Don't pass on
1824 unexpected signals to the new clone; leave them pending instead.
1826 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1828 * linux-nat.c (resume_lwp): Remove redundant debug output.
1830 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1832 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1833 last_resume_kind before clearing it, and use the copy instead to
1834 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1835 resume_clear_callback in the non-stop path too.
1837 2011-10-09 Yao Qi <yao@codesourcery.com>
1839 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1840 Honor OPTIONS and VAL's type.
1841 (common_val_print, value_print): Update to pass one more parameter.
1843 2011-10-09 Doug Evans <dje@google.com>
1845 Add new "alias" command.
1846 * NEWS: Mention new command.
1847 * command.h (valid_user_defined_cmd_name_p): Declare.
1848 * defs.h (make_cleanup_dyn_string_delete): Declare.
1849 * utils.c: #include "dyn-string.h".
1850 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1851 * cli/cli-cmds.c: #include "dyn-string.h".
1852 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1853 (init_cli_cmds): Add new command.
1854 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1856 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 Fix compatibility with older GCCs.
1859 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1860 * stack.c (read_frame_arg): Initialize val_deref.
1862 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 Entry values NEWS entries, DWARF disassembly support.
1865 * NEWS: New entry values entry.
1866 (set print entry-values, show print entry-values)
1867 (set debug entry-values, show debug entry-values): New entries.
1868 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1869 indent. Remove variable start. Move header printing out. Respect
1870 INDENT. Support DW_OP_GNU_entry_value.
1871 (locexpr_describe_location_1): Move the header printing here, extend
1872 the disassemble_dwarf_expression passed parameters.
1874 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1876 Display @entry parameter values even for references.
1877 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1878 coerce_ref_if_computed.
1879 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1880 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1881 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1882 existing push_dwarf_reg_entry_value call. Add new detection calling
1883 dwarf_block_to_dwarf_reg_deref. Update the error message.
1884 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1886 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1887 parameter deref_size, describe it in the comment.
1888 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1889 (dwarf_block_to_dwarf_reg_deref): New declaration.
1890 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1891 deref_size, describe it in the function comment. New variables
1892 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1893 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1894 describe it in the function comment. Fetch the alternative block
1895 accoring to DEREF_SIZE.
1896 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1897 (entry_data_value_free_closure, entry_data_value_funcs): New.
1898 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1899 outer_val, target_val, val and addr. Try to fetch and create also
1900 referenced value content.
1901 (pieced_value_funcs): NULL value for coerce_ref.
1902 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1903 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1904 coerce_ref_if_computed.
1905 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1906 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1907 * stack.c (read_frame_arg): Compare also dereferenced values.
1908 * value.c (value_computed_funcs): Make the parameter v const, use
1909 value_lval_const for it.
1910 (value_lval_const, coerce_ref_if_computed): New function.
1911 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1912 * value.h (struct lval_funcs): New field coerce_ref.
1913 (value_computed_funcs): Make the parameter v const.
1914 (value_lval_const, coerce_ref_if_computed): New declarations.
1916 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1918 Support @entry in input expressions.
1919 * c-exp.y (ENTRY, unknown_cpp_name): New.
1920 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1921 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1922 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1923 (name_not_typename: ENTRY): New.
1924 (yylex): Recognize ENTRY.
1925 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1926 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1928 * parse.c (operator_length_standard): Likewise.
1929 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1931 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 Display referenced values in backtraces.
1934 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1935 * stack.c (print_frame_arg): Likewise.
1937 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 Make some lval_funcs methods to default on NULL.
1940 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1942 (value_assign): Check if lval_computed write method is NULL.
1943 * value.h (struct lval_funcs): Comment NULL values for read and write
1946 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1948 Display @entry parameter values (without references).
1949 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1951 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1953 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1955 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1956 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1958 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1959 (loclist_read_variable_at_entry): New function.
1960 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1961 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1962 DW_AT_location, call dwarf_block_to_sp_offset for it.
1963 * frame.h (print_entry_values_no, print_entry_values_only)
1964 (print_entry_values_preferred, print_entry_values_if_needed)
1965 (print_entry_values_both, print_entry_values_compact)
1966 (print_entry_values_default, print_entry_values): New declarations.
1967 (struct frame_arg): New field entry_kind.
1968 (read_frame_arg): New parameter entryargp.
1969 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1970 arg->entry_kind. Optionally print the `@entry' suffix.
1971 (list_args_or_locals): New variable entryarg, initialize it.
1972 Initialize also entry_kind of arg and entryarg. Conditionalize
1973 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1974 xfree for entryarg.error.
1975 * stack.c (print_entry_values_no, print_entry_values_only)
1976 (print_entry_values_preferred, print_entry_values_if_needed)
1977 (print_entry_values_both, print_entry_values_compact)
1978 (print_entry_values_default, print_entry_values_choices)
1979 (print_entry_values): New variables.
1980 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1981 print the `@entry' suffix, possibly in combination for
1982 print_entry_values_compact.
1983 (read_frame_arg): New parameter entryargp, new variables entryval,
1984 entryval_error and val_equal. Read in also entryargp, respect
1985 print_entry_values, compare the values using val_equal, fill in also
1986 argp->entry_kind (together with entryargp->entry_kind).
1987 (print_frame_args): New variable entryarg, initialize it.
1988 Conditionalize print_frame_arg for arg, add print_frame_arg for
1989 entryarg. Call xfree for entryarg.error.
1990 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1991 * symtab.h (struct symbol_computed_ops): New field
1992 read_variable_at_entry.
1994 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 * frame.h (struct frame_arg): New definition.
1998 (read_frame_arg): New declaration.
1999 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2000 (list_args_or_locals): ... the code here. New variable arg, call
2001 read_frame_arg and list_arg_or_local with it. Unify the
2002 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2004 * stack.c (print_frame_arg): New functiom from the code of
2006 (read_frame_arg): New function.
2007 (print_frame_args): Remove variable val. New variable arg, call
2008 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2010 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2012 Protect entry values against self tail calls.
2013 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2014 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2016 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2018 Recognize virtual tail call frames.
2019 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2020 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2021 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2022 * dwarf2-frame-tailcall.c: New file.
2023 * dwarf2-frame-tailcall.h: New file.
2024 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2025 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2026 REGS.PREV only after CIE execution.
2027 (struct dwarf2_frame_cache): New field tailcall_cache.
2028 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2029 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2030 parts, try to find entry_cfa_sp_offset. Call
2031 dwarf2_tailcall_sniffer_first.
2032 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2034 (dwarf2_frame_dealloc_cache): New function.
2035 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2036 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2037 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2038 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2039 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2040 * dwarf2loc.c (func_addr_to_tail_call_list)
2041 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2042 (call_site_find_chain_1, call_site_find_chain): New.
2043 * dwarf2loc.h (struct call_site_chain): New.
2044 (call_site_find_chain): New declaration.
2045 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2046 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2047 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2048 * stack.c (frame_info): Support also TAILCALL_FRAME.
2050 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Tail call sites reader implementation.
2053 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2054 fill in TYPE_TAIL_CALL_LIST.
2055 * gdbtypes.h (struct func_type): New field tail_call_list.
2056 (struct call_site): New field tail_call_next.
2057 (TYPE_TAIL_CALL_LIST): New definition.
2059 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 Implement basic support for DW_TAG_GNU_call_site.
2062 * block.c: Include gdbtypes.h and exceptions.h.
2063 (call_site_for_pc): New function.
2064 * block.h (call_site_for_pc): New declaration.
2065 * defs.h: Include hashtab.h.
2066 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2068 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2069 ctx_no_push_dwarf_reg_entry_value.
2070 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2071 (dwarf_block_to_dwarf_reg): New function.
2072 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2073 (ctx_no_push_dwarf_reg_entry_value): New function.
2074 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2075 push_dwarf_reg_entry_value.
2076 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2078 * dwarf2loc.c: Include gdbcmd.h.
2079 (dwarf_expr_ctx_funcs): New forward declaration.
2080 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2081 (dwarf_expr_reg_to_entry_parameter)
2082 (dwarf_expr_push_dwarf_reg_entry_value): New.
2083 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2084 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2085 (needs_dwarf_reg_entry_value): New function.
2086 (needs_frame_ctx_funcs): Install it.
2087 (_initialize_dwarf2loc): New function.
2088 * dwarf2loc.h (entry_values_debug): New declaration.
2089 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2090 (read_call_site_scope): New forward declaration.
2091 (process_full_comp_unit): Copy call_site_htab.
2092 (process_die): Support DW_TAG_GNU_call_site.
2093 (read_call_site_scope): New function.
2094 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2095 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2096 (cleanup_htab): Delete.
2097 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2098 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2099 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2100 FIELD_LOC_KIND_DWARF_BLOCK.
2101 * gdbtypes.h (enum field_loc_kind): New entry
2102 FIELD_LOC_KIND_DWARF_BLOCK.
2103 (struct main_type): New loc entry dwarf_block.
2104 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2105 (TYPE_FIELD_DWARF_BLOCK): New.
2106 * python/py-type.c: Include dwarf2loc.h.
2107 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2108 internal_error call on unknown FIELD_LOC_KIND.
2109 * symtab.h (struct symtab): New field call_site_htab.
2110 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2111 (core_addr_hash, core_addr_eq): New functions.
2113 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2116 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2117 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2118 calling_convention under func_stuff there.
2119 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2120 (init_type) <TYPE_CODE_FUNC>: Likewise.
2121 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2122 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2123 * gdbtypes.h (enum type_specific_kind): Change
2124 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2125 (struct main_type) <type_specific>: Change calling_convention to
2126 func_stuff. Move calling_convention to ...
2127 (struct func_type): ... this new struct.
2128 (INIT_FUNC_SPECIFIC): New #define.
2129 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2131 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2134 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2135 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2136 ctx->ref_addr_size. Handle its invalid value.
2137 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2138 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2139 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2140 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2141 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2142 (dwarf2_per_cu_ref_addr_size): New function.
2144 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2147 * dwarf2read.c (per_cu_header_read_in): New function.
2148 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2149 variables cu_header_local and cu_headerp.
2151 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 Fix initial language detection with -readnow.
2154 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2155 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2156 searches only for global symbols.
2158 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2160 Fix printed anonymous struct name.
2161 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2162 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2163 (anonymous_struct_prefix): New function.
2164 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2165 (dwarf2_name): Strip for anonymous structs any prefixes.
2167 2011-10-07 Doug Evans <dje@google.com>
2169 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2172 * python/lib/gdb/printing.py: Whitespace cleanup.
2174 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2177 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2179 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2180 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2181 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2182 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2183 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2184 (arm_linux_remove_watchpoint): Adjust.
2185 * i386-linux-nat.c (i386_linux_dr_set_control)
2186 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2187 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2188 (ia64_linux_remove_watchpoint): Adjust.
2189 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2190 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2191 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2192 (ppc_linux_insert_mask_watchpoint)
2193 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2194 (ppc_linux_remove_watchpoint): Adjust.
2195 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2198 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2200 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2201 (clear_win32_environment): New function for Cygwin to clear out
2203 (windows_create_inferior): Prepare new environment from in_env
2206 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2209 * python/py-value.c (valpy_call): Check that arguments are
2211 (is_intlike): Remove call to CHECK_TYPEDEF.
2212 (valpy_nonzero): Catch GDB exceptions.
2213 (valpy_absolute): Ditto.
2214 (valpy_lazy_string): Ditto.
2215 (valpy_call): Ditto.
2216 (valpy_get_is_optimized_out): Ditto.
2217 (valpy_long): Ditto.
2218 (valpy_float): Ditto.
2219 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2220 (valpy_richcompare): Ditto.
2222 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2224 * inferior.h (disable_randomization): Declare.
2225 * infrun.c (disable_randomization): New global variable.
2226 (show_disable_randomization): New function.
2227 (set_disable_randomization): Likewise.
2228 (_initialize_infrun): Install set/show disable-randomization
2230 * linux-nat.c (disable_randomization): Remove.
2231 (show_disable_randomization): Likewise.
2232 (set_disable_randomization): Likewise.
2233 (_initialize_linux_nat): No longer install set/show
2234 disable-randomization commands here.
2235 (linux_nat_supports_disable_randomization): New function.
2236 (linux_nat_add_target): Install it.
2237 * remote.c (PACKET_QDisableRandomization): New enum value.
2238 (remote_protocol_packets): Support QDisableRandomization.
2239 (_initialize_remote): Likewise.
2240 (remote_supports_disable_randomization): New function.
2241 (init_remote_ops): Install it.
2242 (extended_remote_supports_disable_randomization): New function.
2243 (init_extended_remote_ops): Install it.
2244 (extended_remote_disable_randomization): New function.
2245 (extended_remote_create_inferior_1): Call it.
2246 * target.h (struct target_ops): Add to_supports_disable_randomization.
2247 (target_supports_disable_randomization): Add prototype.
2248 * target.c (target_supports_disable_randomization): New function.
2249 (find_default_supports_disable_randomization): Likewise.
2250 (init_dummy_target): Install it.
2252 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2254 Allow Python notification of new object-file loadings.
2255 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2256 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2257 Add build rule for this file.
2258 * python/py-event.h (emit_new_objfile_event): New prototype.
2259 (newobjfile): New Python event emitter.
2260 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2261 Python event registry.
2262 * python/py-inferior.c: Include objfiles.h
2263 (python_new_objfile): New function.
2264 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2266 * python/py-newobjfileevent.c: New file.
2267 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2269 * python/python.c (_initialize_python): Add
2270 gdbpy_initialize_new_objfile_event call.
2271 * NEWS: Add item for new Python event "gdb.newobjfile"
2273 2011-10-05 Tristan Gingold <gingold@adacore.com>
2275 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2276 Extract the ravenscar task name from the symbol for the atcb.
2278 2011-10-04 Paul Koning <paul_koning@dell.com>
2280 * python/py-type.c (typy_make_iter): Add forward declaration.
2281 (typy_fields_items): Use the gdb.Type iterator.
2283 2011-10-04 Paul Koning <paul_koning@dell.com>
2285 * NEWS: Add entry for Python gdb.Type mapping methods.
2287 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2289 PR python/12691: Add the inferior to Python exited event
2290 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2292 * python/py-event.h (emit_exited_event): Likewise
2293 * python/-inferior.c (python_inferior_exit): Likewise
2295 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2297 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2298 in output of -ada-task-info GDB/MI command.
2300 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2302 * ada-lang.h (struct inferior): Declare.
2303 (print_ada_task_info): Add declaration.
2304 * ada-tasks.c (print_ada_task_info): Make non-static.
2305 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2306 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2307 * mi/mi-main.c: #include "ada-lang.h".
2308 (mi_cmd_list_features): Add "ada-task-info" to the list
2309 of supported features.
2310 (mi_cmd_ada_task_info): New function.
2312 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2314 * python/python.c (python_run_simple_file): New function.
2315 (source_python_script, source_python_script_for_objfile):
2316 Replace call to PyRun_SimpleFile by call to
2317 python_run_simple_file.
2319 2011-10-03 Paul Koning <paul_koning@dell.com>
2321 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2322 (value_to_value_object): Fetch value if it was lazy.
2324 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2327 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2328 Rearrange the code for it.
2330 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2332 * breakpoint.c (bkpt_print_recreate): Add call to
2333 print_recreate_thread.
2335 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2337 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2338 PTRACE_GETFDPIC_INTERP): Define.
2340 2011-09-28 Yao Qi <yao@codesourcery.com>
2342 * symfile.c (add_symbol_file_command): Update message on usage.
2344 2011-09-28 Paul Koning <paul_koning@dell.com>
2346 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2347 (typy_length, typy_get, typy_has_key, typy_make_iter)
2348 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2349 (typy_iterator_iter, typy_iterator_iternext)
2350 (typy_iterator_dealloc): New functions to implement standard
2351 Python mapping methods on gdb.Type object.
2352 (gdb.TypeIterator): New Python type.
2353 * python/python-internal.h (gdbpy_iter_kind): New enum.
2355 2011-09-28 David S. Miller <davem@davemloft.net>
2357 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2358 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2359 * sparc-tdep.c (sparc_complex_floating_p): New function.
2360 (sparc32_store_arguments): Handle complex floats.
2361 (sparc32_extract_return_value): Likewise.
2362 (sparc32_store_return_value): Likewise.
2363 (sparc32_stabs_argument_has_addr): Likewise.
2364 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2365 (sparc64_store_floating_fields): Handle complex floats.
2366 (sparc64_store_arguments): Likewise.
2367 (sparc64_store_return_value): Likewise.
2369 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2371 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2372 before the change on 2006-12-09.
2373 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2374 generates the environment block for CreateProcessA, modulo the
2375 Cygwin-specific parts that are not needed here.
2377 2011-09-27 Tristan Gingold <gingold@adacore.com>
2379 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2380 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2381 (darwin_solib_get_all_image_info_addr_at_init): New function.
2382 (darwin_solib_read_all_image_info_addr): Likewise.
2383 (darwin_solib_create_inferior_hook): Use the above two functions.
2384 * darwin-nat.c (darwin_execvp): Renames retval to res.
2385 (darwin_read_write_inferior): Update comment.
2386 (darwin_read_dyld_info): New function.
2387 (darwin_xfer_partial): Handle DYLD_INFO.
2389 2011-09-27 Stan Shebs <stan@codesourcery.com>
2391 Add return address collection for tracepoints.
2392 * tracepoint.c (encode_actions_1): Add case for $_ret.
2393 (validate_actionline): Check for $_ret.
2394 (trace_dump_actions): Ditto.
2395 * ax-gdb.h (gen_trace_for_return_address): Declare.
2396 * ax-gdb.c: Include arch-utils.h.
2397 (gen_trace_for_return_address): New function.
2398 (agent_command): Add return address special case.
2399 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2400 (amd64_gen_return_address): New function.
2401 (amd64_init_abi): Call it.
2402 * i386-tdep.c: Include ax.h and ax-gdb.h.
2403 (i386_gen_return_address): New function.
2404 (i386_init_abi): Call it.
2405 * arch-utils.h (default_gen_return_address): Declare.
2406 * arch-utils.c (default_gen_return_address): New function.
2407 * gdbarch.sh (gen_return_address): New method.
2408 * gdbarch.h, gdbarch.c: Regenerate.
2410 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2413 * i386-tdep.c (i386_frame_align): New.
2414 (i386_gdbarch_init): Use i386_frame_align.
2416 2011-09-23 Yao Qi <yao@codesourcery.com>
2418 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2421 2011-09-22 Tristan Gingold <gingold@adacore.com>
2423 * fork-child.c (fork_inferior): Add exec_fun parameter.
2424 Call exec_fun or execvp.
2425 * inferior.h: Adjust prototype.
2426 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2427 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2428 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2429 * procfs.c (procfs_create_inferior): Ditto.
2430 * darwin-nat.c (darwin_execvp): New function.
2431 (darwin_create_inferior): Use it.
2433 2011-09-22 Yao Qi <yao@codesourcery.com>
2435 * infrun.c (context_switch): Print debug message when switching to
2438 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2440 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2441 complex and vector types.
2442 (s390_return_value_convention): Likewise.
2444 (s390_value_from_register): Call check_typedef.
2445 (extend_simple_arg): Likewise.
2446 (alignment_of): Likewise.
2447 (s390_push_dummy_call): Likewise.
2448 (s390_return_value): Likewise.
2450 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2452 * event-top.c (async_disconnect): If an exception is thrown from
2453 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2455 * top.c (quit_cover): Return void and take no arguments.
2456 * top.h (quit_cover): Update prototype.
2458 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2460 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2461 current_uiout, not uiout.
2463 2011-09-19 Doug Evans <dje@google.com>
2465 * python/py-auto-load.c (source_section_scripts): Fix file
2467 * python/python.c (source_python_script_for_objfile): Tweak comments.
2469 2011-09-18 Yao Qi <yao@codesourcery.com>
2470 Ulrich Weigand <ulrich.weigand@linaro.org>
2472 Support displaced stepping for Thumb 16-bit insns.
2473 * arm-tdep.c (THUMB_NOP) Define.
2474 (thumb_copy_unmodified_16bit): New.
2475 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2476 (thumb_copy_alu_reg): New.
2477 (arm_copy_svc): Move some common code to ...
2478 (install_svc): ... here. New.
2479 (thumb_copy_svc): New.
2480 (install_pc_relative): New.
2481 (thumb_copy_pc_relative_16bit): New.
2482 (thumb_decode_pc_relative_16bit): New.
2483 (thumb_copy_16bit_ldr_literal): New.
2484 (thumb_copy_cbnz_cbz): New.
2485 (cleanup_pop_pc_16bit_all): New.
2486 (thumb_copy_pop_pc_16bit): New.
2487 (thumb_process_displaced_16bit_insn): New.
2488 (thumb_process_displaced_32bit_insn): New.
2489 (thumb_process_displaced_insn): process thumb instruction.
2491 Support displaced stepping for Thumb 32-bit insns.
2492 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2493 (thumb2_copy_preload): New.
2494 (thumb2_copy_copro_load_store): New.
2495 (thumb2_copy_b_bl_blx): New.
2496 (thumb2_copy_alu_imm): New.
2497 (thumb2_copy_load_reg_imm): New.
2498 (thumb2_copy_load_literal): New
2499 (thumb2_copy_block_xfer): New.
2500 (thumb_32bit_copy_undef): New.
2501 (thumb_32bit_copy_unpred): New.
2502 (thumb2_decode_ext_reg_ld_st): New.
2503 (thumb2_decode_svc_copro): New.
2504 (decode_thumb_32bit_store_single_data_item): New.
2505 (thumb_copy_pc_relative_32bit): New.
2506 (thumb_decode_pc_relative_32bit): New.
2507 (decode_thumb_32bit_ld_mem_hints): New.
2508 (thumb2_copy_table_branch): New
2509 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2512 2011-09-18 Yao Qi <yao@codesourcery.com>
2514 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2515 (install_b_bl_blx): Likewise.
2517 2011-09-17 Yao Qi <yao@codesourcery.com>
2519 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2520 (install_load_store): ... this. New.
2521 Change parameter BYTE to SIZE.
2522 (arm_copy_ldr_str_ldrb_strb): Update caller.
2523 (arm_decode_ld_st_word_ubyte): Update caller.
2525 2011-09-17 Yao Qi <yao@codesourcery.com>
2527 * infrun.c (displaced_step_fixup): Move some code ...
2528 (displaced_step_restore): ... here. New function.
2529 (handle_inferior_event): Cleanup displaced stepping state for both
2530 child and parent when get forked or vforked event.
2531 * regcache.c (get_thread_arch_aspace_regcache): New function.
2532 get_thread_arch_regcache (): Call it.
2534 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2536 * ada-tasks.c (print_ada_task_info): New function, merging
2537 short_task_info and info_tasks together. Reimplement using
2538 ui-out instead of printing to stdout directly. Move the code
2539 building and checking the task list here, instead of leaving it
2540 in info_tasks_command.
2541 (info_task): Move the code building and checking the task
2542 list here, instead of leaving it in info_tasks_command.
2543 (info_tasks_command): Delete code building and checking
2544 the task list - moved elsewhere. Update calls to info_tasks
2547 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2549 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2551 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2553 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2555 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2557 * ada-lang.h (ada_build_task_list): Remove parameter
2559 * ada-tasks.c (ada_build_task_list): Remove parameter
2560 `warn_if_null'. Adjust implementation and documentation.
2561 (valid_task_id, ada_get_environment_task)
2562 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2563 (info_tasks_command): Adjust implementation.
2564 (task_command): Likewise.
2565 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2566 to ada_build_task_list.
2568 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2570 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2571 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2572 (ada_tasks_inferior_data_handle): New static global.
2573 (get_ada_tasks_inferior_data): New function.
2574 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2575 (ada_get_environment_task, iterate_over_live_ada_tasks)
2576 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2578 (ada_set_current_inferior_known_tasks_addr): New function.
2579 (read_known_tasks, ada_build_task_list, short_task_info)
2580 (info_tasks, info_task, info_tasks_command, task_command_1)
2581 (task_command, ada_task_list_changed): Adjust.
2582 (ada_tasks_invalidate_inferior_data): New function.
2583 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2584 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2585 * ada-lang.h (struct inferior): Add declaration.
2586 (ada_task_list_changed): Update profile.
2587 * remote-wtx-pd.c: #include "inferior.h".
2588 (switch_to_pd_internal): Update call to ada_task_list_changed.
2590 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2592 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2593 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2594 (atcb_fieldno): Delete these static globals.
2595 (struct ada_tasks_pspace_data): New struct.
2596 (ada_tasks_pspace_data_handle): New static global.
2597 (get_ada_tasks_pspace_data): New function.
2598 (ada_tasks_invalidate_pspace_data): New function.
2599 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2600 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2601 (_initialize_tasks): Create this module's per-progspace
2604 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2606 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2608 2011-09-16 Tristan Gingold <gingold@adacore.com>
2610 * fork-child.c (fork_inferior): Update comment. Use alloca
2611 instead of xmalloc for argv. Move len and shell_command
2612 declarations in the block where they are used.
2613 Only call execvp. Factorize failure code.
2615 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2618 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2619 `exp_element' instead of an element of the same and make the function
2621 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2622 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2623 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2624 Change argument of `write_exp_elt' function call.
2625 Remove extra spaces from comments.
2626 * parser-defs.h (write_exp_elt): Remove prototype.
2628 2011-09-15 Paul Koning <paul_koning@dell.com>
2630 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2631 count of item appended to list.
2632 * python/py-type.c (typy_fields): Likewise.
2634 2011-09-15 Paul Koning <paul_koning@dell.com>
2636 * MAINTAINERS (Write After Approval): Add myself to the list.
2638 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2641 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2642 processes with multiple threads.
2643 (inf_has_multiple_thread_cb): New function.
2644 (inf_has_multiple_threads): New function.
2646 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2648 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2649 * python/py-inferior.c (GdbMethods): New Python method definition.
2651 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2653 Handle multiple breakpoint hits in Python interface:
2654 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2655 variable to breakpoints.
2656 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2657 bps instead of single breakpoint. Fix some space typos.
2658 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2659 variable to breakpoints.
2661 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2663 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2664 note if the breakpoint is internal.
2666 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2668 * MAINTAINERS (Write After Approval): Add myself to the list
2670 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2672 * infrun.c (prepare_for_detach, wait_for_inferior)
2673 (fetch_inferior_event): Don't flush the register cache.
2674 * remote.c (struct stop_reply) <regcache>: Add comment.
2676 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 Remove excessive DWARF expressions memory duplication.
2679 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2681 (indirect_pieced_value): Remove variable result. Remove variable
2682 back_to and its use for baton.data.
2683 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2685 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2686 Update the function comment.
2688 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2690 * inferior.h (ALL_INFERIORS): New.
2691 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2692 for a stopped thread.
2693 (thread_db_find_new_threads): Look for threads in all inferiors.
2695 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2697 * breakpoint.c (update_watchpoint): Handle the case of the
2698 watchpoint to update not being in the breakpoint list yet.
2699 (hw_watchpoint_use_count): New, factored out from
2700 hw_watchpoint_used_count.
2701 (hw_watchpoint_used_count): Rename to ...
2702 (hw_watchpoint_used_count_others): ... this. Add `except'
2703 parameter. Don't count resources of `except'. Use
2704 hw_watchpoint_use_count.
2706 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2708 * gdbthread.h (enum thread_state): Moved here.
2709 (struct thread_info): Rename `executing_' field to `executing' and
2710 `state_' to `state'.
2711 * thread.c (enum thread_state): Moved to gdbthread.h.
2712 (new_thread, add_thread_silent, delete_thread_1)
2713 (any_live_thread_of_process, thread_alive, set_running)
2714 (set_running, is_thread_state, any_running, is_executing)
2715 (set_executing, finish_thread_state, print_thread_info)
2716 (do_captured_thread_select): Adjust.
2718 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2721 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2723 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2724 Matt Rice <ratmice@gmail.com>
2728 * interps.c (struct interp) <interpreter_out>: Delete field.
2729 (interp_new): Remove the data and uiout parameters and adjust.
2730 (interp_set): Only set the current_uiout from the interpreter's
2731 uiout after initializing the interpreter. Adjust call to
2733 (interp_ui_out): Adjust to call procs->ui_out_proc.
2734 (interp_data, interp_name): New.
2735 * interps.h (interp_init_ftype): Add `self' parameter.
2736 (interp_ui_out_ftype): New typedef.
2737 (struct interp_procs) <ui_out_proc>: New method pointer.
2738 (interp_new): Remove the data and uiout parameters.
2739 (interp_data, interp_name): Declare.
2740 * tui/tui-interp.c (tui_init): Adjust prototype.
2742 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2743 tui_out here. Adjust call to interp_new.
2744 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2745 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2747 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2748 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2749 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2750 Initialize mi->uiout depending on the mi_version as extracted from
2751 the interpreter's name.
2753 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2754 interp_new. Don't allocate the ui_out's of the interpreters here.
2756 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2758 * solib.c (solib_used): New function.
2759 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2760 by another so_list object before freeing it.
2762 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2765 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2768 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2771 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2772 (amd64_skip_xmm_prologue): ... this new function. Describe its
2773 parameters. No longer use amd64_prologue_line_bug.
2774 * defs.h (producer_is_gcc_ge_4): New declaration.
2775 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2776 (process_full_comp_unit): Update its caller. Remove
2777 amd64_prologue_line_bug initialization.
2778 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2779 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2781 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2783 * linux-nat.h (enum resume_kind): New.
2784 (struct lwp_info) <last_resume_kind>: New field.
2785 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2786 resume_stop on the new lwp.
2787 (add_lwp): Set last_resume_kind as resume_continue by default.
2788 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2789 (resume_lwp): New, factored out from resume_callback. Also check
2790 for pending status in lp->waitstatus.
2791 (resume_callback): Reimplement.
2792 (resume_clear_callback): Set last_resume_kind as resume_stop.
2793 (resume_set_callback): Set last_resume_kind as resume_continue.
2794 (linux_nat_resume, linux_handle_extended_wait): Set
2796 (running_callback): Also check lp->waitstatus for pending events.
2797 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2799 (stop_and_resume_callback): Don't re-resume if the core wanted the
2800 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2801 using an invalidated pointer.
2802 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2803 SIGSTOPs if the core wanted the LWP to stop.
2804 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2805 wanted the lwp to stop. If the core wanted the lwp to stop, and
2806 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2807 of TARGET_SIGNAL_STOP.
2808 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2809 here. Instead, signal the lwp, and set the last_resume_kind to
2812 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2814 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2815 -1 (error), if the lwp exits right after attaching.
2817 2011-09-08 Doug Evans <dje@google.com>
2819 * py-cmd.c: Some minor formatting fixes.
2820 (gdbpy_parse_command_name): Rename text arg to name, make const.
2821 All callers updated.
2822 * python-internal.h (gdbpy_parse_command_name): Update.
2824 * cli/cli-decode.c (add_cmd): Add comment.
2826 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2828 PR breakpoints/12435
2829 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2830 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2831 * dwarf2read.c (process_full_comp_unit): Initialize
2832 amd64_prologue_line_bug.
2833 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2835 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2837 Fix TUI screen corruption.
2838 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2841 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2843 * findvar.c (read_var_value): Never return NULL, throw an error
2844 instead. Update the function comment. State symbol name in the error
2846 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2848 * stack.c (print_frame_args): Likewise.
2849 * valops.c (value_of_variable): Likewise.
2851 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 * stack.c (print_frame_args): New variable except. Wrap
2854 read_var_value and common_val_print into TRY_CATCH.
2856 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2858 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2859 caller to value_of_this.
2860 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2862 * valops.c (value_of_this): Remove parameter complain and variable ret.
2863 Update function comment. Never return NULL by this code.
2864 (value_of_this_silent): New function.
2865 * value.h (value_of_this): Remove parameter complain.
2866 (value_of_this_silent): New declaration.
2868 2011-09-07 Yao Qi <yao@codesourcery.com>
2870 * gdbthread.h (struct thread_info): Remove fields
2871 `stepping_through_solib_after_catch' and
2872 `stepping_through_solib_catchpoints'.
2873 * infrun.c (init_thread_stepping_state): Update.
2874 (process_event_stop_test, currently_stepping): Update.
2875 (currently_stepping_or_nexting_callback): Update.
2877 2011-09-07 Yao Qi <yao@codesourcery.com>
2879 * gdbthread.h (struct thread_info): Comment on field
2880 `step_after_step_resume_breakpoint'.
2882 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2884 * remote.c (remote_console_output): Reindent.
2886 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2888 * frame.c (has_stack_frames): Check for currently selected
2891 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2893 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2894 (set_async_annotation_level, set_async_prompt, pop_prompt)
2895 (push_prompt, new_async_prompt): Delete declarations.
2896 * top.h (get_prompt, set_prompt): Change prototype.
2897 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2899 * top.c (command_loop):
2900 (top_prompt): New global.
2901 (get_prefix, set_prefix, get_suffix, ): Delete.
2902 (get_prompt, set_prompt): Rewrite.
2903 (show_new_async_prompt): Rename to ...
2904 (show_prompt): ... this.
2905 (init_main): Adjust. Don't handle --annotate=2 here.
2906 * event-top.c (new_async_prompt): Delete.
2907 (the_prompts): Delete.
2908 (more_to_come): Make static.
2909 (display_gdb_prompt): Use top_level_prompt() to compute the top
2910 level prompt, and don't notify the before_prompt observers
2911 directly here. Always trick readline into not trying to display
2912 the prompt if sync_execution and displaying the primary prompt.
2913 If displaying a local/secondary prompt, always show it, even if
2914 sync_execution is set.
2915 (change_annotation_level): Delete.
2916 (top_level_prompt): New, based on change_annotation_level.
2917 (push_prompt, pop_prompt): Delete.
2918 (async_disable_stdin): No longer pushes prompt.
2919 (command_line_handler): No longer pushes or pops prompt. If more
2920 input is expected, call display_gdb_prompt with an explicit empty
2922 (async_stop_sig): Adjust.
2923 (set_async_annotation_level, set_async_prompt): Delete.
2924 * python/python.c (before_prompt_hook): Adjust.
2926 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2930 * infrun.c (fetch_inferior_event): Check if there's a selected
2931 thread before checking if the selected thread is executing.
2933 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2935 * inf-loop.c (execute_command): Don't check if the current thread
2936 if running before synchronously waiting for command completion.
2937 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2939 (normal_stop): Call async_enable_stdin here.
2940 * inf-loop.c (inferior_event_handler): Don't call
2941 async_enable_stdin, nor handle "set exec-done-display" here.
2943 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2947 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2949 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2951 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2953 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2955 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2959 2011-09-02 Matt Rice <ratmice@gmail.com>
2962 * event-top.c (cli_command_loop): Replace readline setup with
2963 direct call to display_gdb_prompt.
2964 (display_gdb_prompt): Do not call observer mechanism during
2965 synchronous execution.
2967 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2969 * linux-nat.c (in_pid_list_p): New.
2970 (linux_record_stopped_pid): Delete.
2971 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2972 already attached to the LWP. Return an indication if so.
2973 (linux_nat_filter_event): Adjust.
2974 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2975 returning an indication to ignore this thread.
2977 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2979 * top.c: Include interps.h.
2980 (execute_command): If the target can async, but the interpreter is
2981 in sync mode, synchronously wait for the command to finish before
2983 (execute_command_to_string): Force the interpreter to sync mode.
2984 * infrun.c: Include interps.h.
2985 (fetch_inferior_event): Don't restore the prompt yet if the
2986 interpreter is in sync mode.
2987 * interps.c (interpreter_async): New global.
2988 * interps.h (interpreter_async): Declare.
2989 * inf-loop.c: Include interps.h.
2990 (inferior_event_handler): Don't print the language change or run
2991 breakpoint commands yet if the interpreter in is sync mode.
2992 * main.c (captured_command_loop): Flip the interpreter to async
2994 * cli/cli-script.c: Include interps.h.
2995 (execute_user_command, while_command, if_command): Force the
2996 interpreter to sync mode.
2997 * python/python.c: Include interps.h.
2998 (python_command, execute_gdb_command): Force the interpreter to
3001 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3003 * value.c (show_convenience): Catch errors thrown while printing
3004 each internal variable.
3005 * infrun.c (validate_siginfo_access): New function.
3006 (siginfo_value_read, siginfo_value_write): Call it.
3008 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3011 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3012 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3015 2011-08-29 Yao Qi <yao@codesourcery.com>
3017 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3019 (enable_break2): Update caller.
3020 * solib-frv.c (bfd_lookup_symbol): Removed.
3022 (enable_break2): Update caller.
3023 * solib-pa64.c (bfd_lookup_symbol): Removed.
3025 * solib-svr4.c (bfd_lookup_symbol): Removed.
3026 (cmp_name_and_sec_flags): New.
3027 (enable_break): Update caller.
3028 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3029 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3030 (gdb_bfd_lookup_symbol): New.
3031 * solib.h: Functions declarations.
3033 2011-08-29 Yao Qi <yao@codesourcery.com>
3035 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3038 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 Fix TUI stepi on code without symbols.
3041 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3044 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3047 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3048 and the static keyword.
3049 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3050 Make prefix an array.
3051 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3052 * mi/mi-main.c (get_register): Remove stb initialization and the static
3055 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3057 Code cleanup - make mi_opt const.
3058 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3060 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3061 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3062 (mi_cmd_env_dir): Likewise.
3063 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3064 (mi_cmd_target_file_put): Likewise.
3065 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3066 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3067 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3068 (mi_valid_noargs): Make opts const.
3069 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3070 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3071 (mi_cmd_data_read_memory): Likewise.
3072 (mi_cmd_data_read_memory_bytes): Likewise.
3073 (mi_cmd_data_write_memory): Likewise.
3075 2011-08-26 Matt Rice <ratmice@gmail.com>
3077 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3078 bcache_xmalloc, replace bcache_xmalloc with call to
3079 psymbol_bcache_init for psymbol_cache.
3080 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3082 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3084 * inf-loop.c (inferior_event_handler): Add exception_print in
3087 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3089 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3090 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3091 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3092 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3093 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3094 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3095 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3096 * infrun.c (fetch_inferior_event): Call
3097 make_bpstat_clear_actions_cleanup.
3098 * top.c (execute_command): New variable cleanup_if_error, call
3099 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3100 * utils.c (do_bpstat_clear_actions_cleanup)
3101 (make_bpstat_clear_actions_cleanup): New functions.
3103 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3105 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3106 either the parent or the child forks. Rename a couple locals.
3108 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3110 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3111 library call. Avoid reading the `status' local if all waitpid
3114 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3116 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3117 opening /proc/PID/task always succeeds.
3119 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3121 * linespec.c (symtab_from_filename): Check for the end of string.
3123 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3126 * varobj.c (cplus_describe_child): Add the keyword
3127 'class' to the output of the method when dealing
3128 with a cast to a base class.
3130 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 No functionality change.
3133 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3134 function comment a reference, new variables tp and bs, move here code
3135 from throw_exception.
3136 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3137 describe it in the comment.
3138 * exceptions.c (throw_exception): Remove variable tp, move the code for
3139 bpstat_clear_actions to bpstat_clear_actions.
3141 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3143 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3144 * linux-nat.c: Include linux-procfs.h.
3145 (linux_proc_get_tgid): Move to ...
3146 * common/linux-procfs.c: ... here. New file.
3147 * common/linux-procfs.h: New file.
3148 * linux-thread-db.c: Include linux-procfs.h.
3149 * Makefile.in: Update dependencies.
3150 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3151 * config/arm/linux.mh: Likewise.
3152 * config/i386/linux.mh: Likewise.
3153 * config/i386/linux64.mh: Likewise.
3154 * config/ia64/linux.mh: Likewise.
3155 * config/m32r/linux.mh: Likewise.
3156 * config/m68k/linux.mh: Likewise.
3157 * config/mips/linux.mh: Likewise.
3158 * config/pa/linux.mh: Likewise.
3159 * config/pa/linux.mh: Likewise.
3160 * config/powerpc/linux.mh: Likewise.
3161 * config/powerpc/ppc64-linux.mh: Likewise.
3162 * config/powerpc/spu-linux.mh: Likewise.
3163 * config/sparc/linux.mh: Likewise.
3164 * config/sparc/linux64.mh: Likewise.
3165 * config/xtensa/linux.mh: Likewise.
3167 2011-08-24 Hui Zhu <teawater@gmail.com>
3169 * tracepoint.c (cond_string_is_same): New function.
3170 (find_matching_tracepoint): Add condition check
3171 by cond_string_is_same.
3173 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3175 Fix build error in Darwin port.
3176 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3178 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3182 (command_line_is_silent): New function.
3183 (bpstat_do_actions_1): No longer use commands_left, use
3184 command_line_is_silent for commands.
3185 (bpstat_alloc): Remove clearing of commands_left.
3186 (bpstat_stop_status): Remove initialization of commands_left, use
3187 command_line_is_silent.
3188 * breakpoint.h (struct bpstats): Remove commands_left.
3190 2011-08-18 Keith Seitz <keiths@redhat.com>
3193 * cp-name-parser.y (struct demangle_info): Remove unused
3196 (allocate_info): Change return type to struct demangle_info *.
3197 Always allocate a new demangle_info.
3198 Remove unused PREV pointer.
3199 (cp_new_demangle_parse_info): New function.
3200 (cp_demangled_name_parse_free): New function.
3201 (do_demangled_name_parse_free_cleanup): New function.
3202 (make_cleanup_cp_demangled_name_parse_free): New function.
3203 (cp_demangled_name_to_comp): Change return type to
3204 struct demangle_parse_info *.
3205 Allocate a new storage for each call.
3206 (main): Update usage for cp_demangled_name_to_comp
3208 * cp-support.h (struct demangle_parse_info): New structure.
3209 (cp_demangled_name_to_comp): Update API change for
3211 (cp_new_demangle_parse_info): Declare.
3212 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3213 (cp_demangled_name_parse_free): Declare.
3214 * cp-support.c (cp_canonicalize_string): Update API
3215 change for cp_demangled_name_to_comp.
3216 (mangled_name_to_comp): Likewise.
3217 Return struct demangle_parse_info, too.
3218 (cp_class_name_from_physname): Update mangled_name_to_comp
3220 (method_name_from_physname): Likewise.
3221 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3222 (cp_remove_params): Likewise.
3223 * python/py-type.c (typy_legacy_template_argument): Likewise.
3225 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3226 (cp_merge_demangle_parse_infos): Declare.
3227 * cp-support.c (ignore_typedefs): New file global.
3228 (copy_string_to_obstack): New function.
3229 (inspect_type): New function.
3230 (replace_typedefs): New function.
3231 (replace_typedefs_qualified_name): New function.
3232 (cp_canonicalize_string_no_typedefs): New function.
3233 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3234 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3235 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3236 instead of cp_canonicalize_string.
3237 (find_method): Likewise.
3238 (decode_compound): Before looking up the name, call
3239 cp_canonicalize_string_no_typedefs.
3240 (decode_variable): Likewise.
3242 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3243 Tom Tromey <tromey@redhat.com>
3244 Matt Rice <ratmice@gmail.com>
3246 * python/lib/gdb/prompt.py: New file.
3247 * python/lib/gdb/command/prompt.py: New file.
3248 * NEWS: Document set extended-prompt and gdb.prompt library
3250 2011-08-16 Yao Qi <yao@codesourcery.com>
3252 * tic6x-linux-tdep.c: Move const arrays definition from here...
3253 * tic6x-tdep.c: to here ...
3255 2011-08-14 Yao Qi <yao@codesourcery.com>
3257 * NEWS: New port to Texas Instruments TMS320C6x.
3259 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3260 Bernd Schmidt <bernds@codesourcery.com>
3261 Yao Qi <yao@codesourcery.com>
3263 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3264 * solib-dsbt.c: New file. Support DSBT shared object.
3265 * tic6x-linux-tdep.c: New file.
3266 * tic6x-tdep.c: New file.
3267 * tic6x-tdep.h: New file.
3269 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3270 Yao Qi <yao@codesourcery.com>
3272 * remote.c (PACKET_qXfer_fdpic): New enum value.
3273 (remote_protocol_features): Add qXfer:fdpic:read packet.
3274 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3275 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3276 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3278 2011-08-14 Yao Qi <yao@codesourcery.com>
3280 Target description for tic6x.
3281 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3282 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3283 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3284 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3285 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3286 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3287 * features/tic6x-c64xp-linux.xml: New.
3288 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3289 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3290 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3291 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3292 * regformats/tic6x-c64xp.dat,
3293 regformats/tic6x-c62x-linux.dat: Generated.
3294 * regformats/tic6x-c64x-linux.dat,
3295 regformats/tic6x-c64xp-linux.dat: Generated.
3296 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3297 features/tic6x-*.c files.
3298 Add regformats/tic6x-*.dat files.
3300 2011-08-12 Doug Evans <dje@google.com>
3302 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3303 * python/py-symbol.c (sympy_get_type): New function.
3304 (symbol_object_getset): Add "type".
3306 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3310 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3312 (tui_show_register_group): Don't store a byte buffer in the data
3314 (tui_register_format): Skip registers with an empty name.
3315 (tui_get_register): Store a struct value in the data element's
3316 value field instead of a byte buffer holding the raw register
3317 contents. Account for optimized-out and unavailable registers
3318 when comparing register contents.
3320 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3322 * printcmd.c (current_display_number): Update comment.
3323 (disable_current_display_cleanup): Delete.
3324 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3325 catch errors thrown while evaluating and printing the display.
3327 2011-08-09 Tom Tromey <tromey@redhat.com>
3329 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3331 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3333 * elfread.c (elf_symtab_read): Rework comments.
3334 * maint.c (maintenance_command): Ditto.
3335 * somread.c (som_symtab_read): Ditto.
3336 * solib.c (solib_find, solib_map_sections, update_solib_list)
3337 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3338 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3339 (sharedlibrary_command, no_shared_libraries): Ditto.
3340 * solib-irix.c (locate_base, disable_break, enable_break)
3341 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3342 (irix_current_sos, irix_open_symbol_file_object)
3343 (irix_special_symbol_handling): Ditto.
3344 * solib-sunos.c (locate_base, first_link_map_member)
3345 (sunos_current_sos, disable_break, enable_break)
3346 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3348 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3349 (open_symbol_file_object, svr4_current_sos, enable_break)
3350 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3352 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3353 (frv_current_sos, enable_break, frv_special_symbol_handling)
3354 (frv_solib_create_inferior_hook): Ditto.
3355 * solist.h (struct target_so_ops): Extend the comments of the
3356 special_symbol_handling, current_sos and open_symbol_file_object
3359 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3361 * python/lib/gdb/__init__.py: Auto-load files in command and
3362 function directories.
3363 * python/python.c (finish_python_initialization): Use
3365 * python/lib/gdb/command/pretty_printers.py: Self register
3367 * NEWS: Document auto-loading.
3369 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3372 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3373 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3375 2011-08-08 Tom Tromey <tromey@redhat.com>
3377 * breakpoint.c (clean_up_filters): Remove.
3378 (catch_syscall_split_args): Use VEC_cleanup.
3380 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3383 (main): Uncomment "Demangling error\n".
3385 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3387 * solib-target.c (segment_attributes): Make them static.
3388 (section_attributes, library_children, library_attributes): Likewise.
3389 (library_list_children, library_list_attributes): Likesise.
3390 (library_list_elements): Likewise.
3392 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3394 * exceptions.c (throw_exception): Don't disable the current
3396 * printcmd.c (disable_current_display_cleanup): New function.
3397 (do_one_display): Install a cleanup to disable the current display
3398 if doing the display throws.
3400 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3402 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3403 initialization of the tp_new member to the corresponding
3404 gdbpy_initialize_* function.
3405 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3406 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3407 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3408 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3409 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3411 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3413 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3414 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3415 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3416 references to current_uiout.
3418 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3420 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3421 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3422 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3423 * top.c (gdb_readline_wrapper): Adjust.
3424 * tui/tui-interp.c (tui_command_loop):
3425 (_initialize_tui_interp): Don't install it.
3427 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3429 * ui-out.h (uiout): Rename to ...
3430 (current_uiout): ... this.
3431 * ui-out.c (uiout): Rename to ...
3432 (current_uiout): ... this.
3433 * ada-lang.c (print_it_exception, print_one_exception)
3434 (print_mention_exception): Adjust.
3435 * breakpoint.c (watchpoint_check): Adjust.
3436 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3437 (default_collect_info, watchpoints_info, print_one_catch_fork)
3438 (print_one_catch_vfork, print_one_catch_syscall)
3439 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3440 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3441 (print_it_watchpoint, print_mention_watchpoint)
3442 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3443 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3444 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3445 (bkpt_print_mention, momentary_bkpt_print_it)
3446 (tracepoint_print_mention, update_static_tracepoint)
3447 (tracepoints_info, save_breakpoints): Adjust.
3448 * cli-out.c (field_separator): Adjust.
3449 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3450 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3451 * frame.c (get_current_frame): Adjust.
3452 * infcmd.c (run_command_1, print_return_value): Adjust.
3453 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3454 * infrun.c (print_end_stepping_range_reason): Adjust.
3455 (print_signal_exited_reason, print_exited_reason): Adjust.
3456 (print_signal_received_reason, print_no_history_reason): Adjust.
3457 * interps.c (interp_set): Adjust.
3458 * osdata.c (info_osdata_command): Adjust.
3459 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3460 * remote-fileio.c (remote_fileio_request): Adjust.
3461 * remote.c (show_remote_cmd): Adjust.
3462 * solib.c (info_sharedlibrary_command): Adjust.
3463 * source.c (print_source_lines_base): Adjust.
3464 * stack.c (print_stack_frame): Adjust.
3465 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3466 * symfile-mem.c (add_vsyscall_page): Adjust.
3467 * symfile.c (load_progress, generic_load)
3468 (print_transfer_performance): Adjust.
3469 * thread.c (info_threads_command, restore_selected_frame)
3470 (thread_command): Adjust.
3471 * top.c (make_cleanup_restore_ui_file): Adjust.
3472 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3473 (print_one_static_tracepoint_marker): Adjust.
3474 * cli/cli-cmds.c (print_disassembly): Adjust.
3475 * cli/cli-decode.c (print_doc_line): Adjust.
3476 * cli/cli-interp.c (safe_execute_command): Adjust.
3477 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3478 (handle_redirections): Adjust.
3479 * cli/cli-script.c (show_user_1): Adjust.
3480 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3481 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3482 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3483 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3484 (mi_cmd_env_dir): Adjust.
3485 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3486 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3487 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3488 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3489 (list_args_or_locals): Adjust.
3490 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3491 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3492 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3493 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3494 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3495 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3496 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3497 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3498 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3499 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3500 (list_available_thread_groups, mi_cmd_list_thread_groups)
3501 (mi_cmd_data_list_register_names)
3502 (mi_cmd_data_list_changed_registers)
3503 (mi_cmd_data_list_register_values, get_register)
3504 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3505 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3506 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3507 (mi_execute_command, mi_load_progress): Adjust.
3508 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3509 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3511 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3512 * tui/tui-interp.c (tui_command_loop): Adjust.
3513 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3515 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3517 * exceptions.c (struct catcher): Remove saved_uiout field.
3518 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3519 no longer save/resvore the global ui_out builder.
3520 (catch_exceptions_with_msg): Save/override/restore the global
3521 ui_out builder manually instead of relying on TRY_CATCH to do it.
3522 (catch_errors): Save/restore the global ui_out builder manually
3523 instead of relying on TRY_CATCH to do it.
3524 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3526 (TRY_CATCH): Adjust.
3527 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3528 the global ui_out builder manually instead of relying on TRY_CATCH
3531 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533 * breakpoint.c (update_global_location_list): Ensure
3534 invariant 'first loc marked not duplicated and inserted,
3535 following locs marked duplicated/not inserted' is respected
3536 for multiple locations at the same address.
3537 (unduplicated_should_be_inserted) New function.
3538 (swap_insertion) New function.
3540 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3542 * stack.c (print_frame_arguments_choices): Comment typo fix.
3544 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3547 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3548 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3549 argument. Update callers.
3551 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3554 * doublest.c (convert_doublest_to_floatformat): Pass correct
3555 mantissa length to put_field.
3557 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3559 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3560 exception_print code path.
3561 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3562 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3563 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3565 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3569 Remove, merge them into ...
3570 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3571 variable args and its initialization.
3572 (struct print_args_args, print_args_stub): Remove, merge them into
3574 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3576 (do_gdb_disassembly): ... here. Remove variable args and its
3578 (print_frame): Remove variable args and its initialization, new
3579 variable gdbarch and numargs (from print_args_stub), inline here
3580 print_args_stub with a TRY_CATCH.
3581 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3583 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3584 New variable e, remove variable btargs and its initialization.
3586 2011-08-01 Tristan Gingold <gingold@adacore.com>
3588 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3590 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3592 * breakpoint.c (insert_bp_location): Document return value.
3593 (insert_breakpoint_locations): Fix documentation.
3594 (remove_breakpoints): Add documentation.
3596 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3598 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3599 argument. Update callers.
3601 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3603 * stack.c (print_frame_info): Comment typo fix.
3605 2011-07-29 Sterling Augustine <saugustine@google.com>
3607 * MAINTAINERS (Write After Approval): Add myself to the list.
3609 2011-07-29 Tom Tromey <tromey@redhat.com>
3611 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3612 (library_list_start_segment): Update.
3613 (library_list_start_section): Update.
3615 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3617 * varobj.c (value_get_print_value): Move hint check later into the
3618 function. Comment function. Free thevalue before reusing it.
3620 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 Pedro Alves <pedro@codesourcery.com>
3623 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3625 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3626 Assert the result kind.
3627 * value.h (value_one): Remove parameter lv.
3629 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3631 Fix crash on lval_computed values.
3632 * valops.c (value_zero): Use not_lval for lval_computed.
3634 2011-07-27 Tom Tromey <tromey@redhat.com>
3636 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3637 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3639 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3641 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3642 "ptype" by their typedefs difference.
3644 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 * dwarf2expr.c (ctx_no_read_reg): New function.
3647 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3648 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3649 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3650 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3652 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3655 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3657 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3658 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3659 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3660 (ctx_no_get_base_type): Move the functions here.
3661 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3662 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3663 (ctx_no_get_base_type): New declarations.
3665 2011-07-27 Tom Tromey <tromey@redhat.com>
3667 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3669 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3670 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3672 2011-07-26 Sterling Augustine <saugustine@google.com>
3674 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3676 (dump_bfd_file): Likewise.
3678 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3680 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3681 (remote_hw_watchpoint_length_limit): New variable.
3682 (_initialize_remote) add set,show cmds for this new variable.
3683 * gdb.texinfo: document these new commands.
3684 * NEWS: Mention these new commands.
3686 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3688 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3689 true for software watchpoints.
3691 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3695 2011-07-26 Tom Tromey <tromey@redhat.com>
3697 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3698 * dwarf2read.c (read_indirect_string_at_offset): New function.
3699 (read_indirect_string): Use it.
3700 (dwarf_decode_macro_bytes): New function, taken from
3701 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3702 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3703 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3705 (struct dwarf2_per_objfile) <macro>: New field.
3706 (dwarf2_elf_names): Add .debug_macro.
3707 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3708 (dwarf2_locate_sections): Handle new section.
3709 (read_file_scope): Handle DW_AT_GNU_macros.
3710 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3712 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3714 * NEWS: Mention dcache configuration.
3715 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3716 (dcache_size, dcache_line_size): New variables.
3717 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3718 (struct dcache_block): Make it expandable.
3719 (struct dcache_struct): New field.
3720 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3721 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3722 (dcache_poke_byte, dcache_print_line): Adjust.
3723 (set_dcache_size, set_dcache_line_size): New functions.
3724 (set_dcache_command, show_dcache_command): New functions.
3725 (_initialize_dcache): Add new commands.
3727 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3729 * progspace.h (struct program_space): Add solib_add_generation.
3730 * infcmd.c (post_create_inferior): Only call solib_add if not
3732 * solib.c (solib_add): Increment solib_add_generation.
3734 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3736 Fix implicit pointer offsets.
3737 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3740 2011-07-25 Tom Tromey <tromey@redhat.com>
3742 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3744 (ada_exception_sal): Make 'ops' const.
3745 (ada_decode_exception_location): Likewise.
3746 (ada_decode_assert_location): Likewise.
3747 (catch_assert_command): Update.
3748 (catch_ada_exception_command): Update.
3749 (create_ada_exception_catchpoint): Make 'ops' const.
3750 * breakpoint.c (set_raw_breakpoint_without_location)
3751 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3753 (create_internal_breakpoint): Update.
3754 (init_raw_breakpoint_without_location): Make 'ops' const.
3755 (init_raw_breakpoint, init_catchpoint)
3756 (create_fork_vfork_event_catchpoint)
3757 (create_syscall_event_catchpoint, init_breakpoint_sal)
3758 (create_breakpoint_sal, create_breakpoints_sal)
3759 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3760 * breakpoint.h (struct breakpoint) <ops>: Now const.
3761 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3764 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3766 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3768 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3770 * breakpoint.h (print_recreate_thread): Declare.
3771 (struct breakpoint): Move step_count, pass_count,
3772 number_on_target, static_trace_marker_id,
3773 static_trace_marker_id_idx ...
3774 (struct tracepoint): ... to this new struct.
3775 (get_tracepoint, get_tracepoint_by_number_on_target)
3776 (get_tracepoint_by_number): Change return type to struct
3778 * breakpoint.c (is_tracepoint_type): New, factored out from
3780 (is_tracepoint): Adjust.
3781 (print_one_breakpoint_location): Cast to struct tracepoint as
3782 necessary, and adjust.
3783 (print_recreate_catch_fork, print_recreate_catch_vfork)
3784 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3785 print_recreate_thread.
3786 (init_breakpoint_sal): New, factored out from
3787 create_breakpoint_sal.
3788 (create_breakpoint_sal): Reimplement.
3789 (create_breakpoint): Allocate a struct tracecepoint if the caller
3790 wanted a tracepoint. Use init_breakpoint_sal and
3792 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3793 (print_recreate_masked_watchpoint)
3794 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3795 (tracepoint_print_one_detail): Adjust.
3796 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3797 Dump the pass count here.
3798 (update_static_tracepoint): Adjust.
3799 (addr_string_to_sals): Adjust.
3800 (create_tracepoint_from_upload): Adjust. Change return type to
3801 struct tracepoint pointer.
3802 (trace_pass_set_count): Change parameter type to struct tracepoint
3803 pointer, and adjust.
3804 (trace_pass_command): Adjust.
3805 (get_tracepoint, get_tracepoint_by_number_on_target)
3806 (get_tracepoint_by_number): Change return type to struct
3807 tracepoint pointer, and adjust.
3808 (print_recreate_thread): New, factored out from save_breakpoints.
3809 (save_breakpoints): Don't print thread and task and passcount
3811 * remote.c (remote_download_tracepoint): Adjust.
3812 * tracepoint.c (trace_actions_command, validate_actionline)
3813 (start_tracing, tfind_1, trace_find_tracepoint_command)
3814 (trace_dump_command): Adjust.
3815 (find_matching_tracepoint): Change return type to struct
3816 tracepoint pointer, and adjust.
3817 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3818 (tfile_trace_find, tfile_fetch_registers): Adjust.
3819 * tracepoint.h (create_tracepoint_from_upload): Change return type
3820 to struct tracepoint pointer.
3821 * ada-lang.c (print_recreate_exception): Call
3822 print_recreate_thread.
3823 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3825 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3827 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3828 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3829 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3830 watchpoint_thread, watchpoint_triggered ...
3831 (struct watchpoint): ... to this new struct.
3832 (is_watchpoint): Declare.
3833 (install_breakpoint): Add new `internal' parameter.
3834 * breakpoint.c (is_watchpoint): Delete declaration.
3835 (set_breakpoint_condition): Handle watchpoints.
3836 (is_watchpoint): Make public.
3837 (watchpoint_in_thread_scope): Change parameter type to struct
3839 (watchpoint_del_at_next_stop): Change parameter type to struct
3840 watchpoint. Remove assertion. Adjust.
3841 (update_watchpoint): Ditto.
3842 (insert_breakpoints, breakpoint_init_inferior)
3843 (watchpoints_triggered, watchpoint_check)
3844 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3845 (bpstat_stop_status, print_one_breakpoint_location)
3846 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3847 to struct watchpoint as necessary, and adjust.
3848 (install_breakpoint): Add `internal' argument. If true, don't
3849 mention the new breakpoint. Use set_breakpoint_number.
3850 (create_fork_vfork_event_catchpoint)
3851 (create_syscall_event_catchpoint): Adjust.
3852 (dtor_watchpoint): New.
3853 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3854 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3855 (print_it_watchpoint, print_mention_watchpoint)
3856 (print_recreate_watchpoint, insert_masked_watchpoint)
3857 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3858 (print_one_detail_masked_watchpoint)
3859 (print_mention_masked_watchpoint)
3860 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3861 necessary, and adjust.
3862 (watch_command_1): Allocate and initialize a struct watchpoint
3863 instead of a struct breakpoint. Use install_breakpoint.
3864 (catch_exec_command_1): Adjust.
3865 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3867 (delete_breakpoint, enable_breakpoint_disp)
3868 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3869 as necessary, and adjust.
3870 (initialize_breakpoint_ops): Install dtor_watchpoint as
3871 watchpoints' dtor method.
3872 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3873 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3874 to struct watchpoint as necessary, and adjust.
3876 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3878 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3879 the the base class ops table.
3880 (catch_exception_breakpoint_ops)
3881 (catch_exception_unhandled_breakpoint_ops)
3882 (catch_assert_breakpoint_ops): Don't statically initialize.
3883 (initialize_ada_catchpoint_ops): New.
3884 (_initialize_ada_language): Call it.
3885 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3886 (bkpt_breakpoint_ops): Forward declare.
3887 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3888 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3889 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3890 (masked_watchpoint_breakpoint_ops)
3891 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3892 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3893 base class ops table.
3894 (null_re_set, null_check_status, null_works_in_software_mode)
3895 (null_resources_needed, null_print_one_detail): Delete.
3896 (bkpt_dtor): Rename to ...
3897 (base_breakpoint_dtor): ... this. Make static.
3898 (bkpt_allocate_location): Rename to ...
3899 (base_breakpoint_allocate_location): ... this. Make static.
3900 (base_breakpoint_re_set): New.
3901 (internal_error_pure_virtual_called): New.
3902 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3903 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3904 (base_breakpoint_works_in_software_mode)
3905 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3906 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3907 (base_breakpoint_print_recreate): New functions.
3908 (base_breakpoint_ops): New global.
3909 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3910 (bkpt_breakpoint_hit): Make static.
3911 (bkpt_check_status): Delete.
3912 (bkpt_resources_needed): Make static.
3913 (bkpt_works_in_software_mode): Delete.
3914 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3916 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3917 (momentary_breakpoint_ops): Don't statically initialize.
3918 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3920 (tracepoint_insert_location, tracepoint_remove_location)
3921 (tracepoint_check_status, tracepoint_works_in_software_mode)
3922 (tracepoint_print_it): Delete.
3923 (tracepoint_breakpoint_ops): Don't statically initialize.
3924 (initialize_breakpoint_ops): New.
3925 (_initialize_breakpoint): Call it.
3926 * breakpoint.h (null_re_set, null_works_in_software_mode)
3927 (null_resources_needed, null_check_status, null_print_one_detail):
3928 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3929 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3930 (bkpt_check_status, bkpt_resources_needed)
3931 (bkpt_works_in_software_mode, bkpt_print_it)
3932 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3933 Delete declarations.
3934 (initialize_breakpoint_ops): Declare.
3936 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3938 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3939 (momentary_bkpt_print_it): Simplify.
3941 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3943 Split internal, momentary and user breakpoints breakpoint_ops
3946 * breakpoint.c (internal_breakpoint_ops)
3947 (momentary_breakpoint_ops): Forward declare.
3948 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3949 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3950 (create_overlay_event_breakpoint)
3951 (create_std_terminate_master_breakpoint)
3952 (create_exception_master_breakpoint): Create breakpoints with
3953 internal_breakpoint_ops vtable.
3954 (set_longjmp_breakpoint): Create momentary breakpoints with
3955 momentary_breakpoint_ops vtable, using
3956 momentary_breakpoint_from_master.
3957 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3958 (create_solib_event_breakpoint): Create breakpoints with
3959 internal_breakpoint_ops vtable.
3960 (set_momentary_breakpoint): Create breakpoints with
3961 momentary_breakpoint_ops vtable.
3962 (momentary_breakpoint_from_master): New, factored out from
3963 clone_momentary_breakpoint.
3964 (clone_momentary_breakpoint): Adjust.
3965 (watch_command_1): Create scope breakpoints with
3966 momentary_breakpoint_ops vtable.
3967 (bkpt_re_set): Remove handling of internal and momentary
3969 (bkpt_print_mention, bkpt_print_recreate): New.
3970 (bkpt_breakpoint_ops): Adjust.
3971 (internal_bkpt_re_set, internal_bkpt_check_status)
3972 (internal_bkpt_print_it, internal_bkpt_print_mention)
3973 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3974 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3975 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3976 (momentary_bkpt_print_recreate): New.
3977 (momentary_breakpoint_ops): New.
3979 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3981 Implement most breakpoint_ops methods for all breakpoint types,
3982 and move the default handlings to the proper callbacks.
3984 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3985 works_in_software_mode method.
3986 (insert_bp_location): Go through breakpoint_ops->insert_location
3987 for software and hardware watchpoints.
3988 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3990 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3991 for software and hardware watchpoints.
3992 (print_it_typical): Delete.
3993 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3995 (watchpoint_check): Adjust comment.
3996 (bpstat_check_location): Simply always call the breakpoint's
3997 breakpoint_hit method.
3998 (bpstat_stop_status): Always call the breakpoint's check_status
3999 method. Remove special cases for watchpoints and internal event
4000 breakpoints from here (moved to the check_status implementations).
4001 (print_one_breakpoint_location): Assume b->ops is never NULL.
4002 Remove static tracepoint marker id printing from here (moved to
4003 the print_one_detail callback implementation of tracepoints).
4004 (init_bp_location): Assert OPS is never NULL.
4005 (allocate_bp_location): Always call the breakpoint's
4006 allocate_location method, and remove the default code from here.
4007 (free_bp_location): Always call the location's dtor method, and
4008 remove the default code from here.
4009 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4010 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4011 parameter. Pass it down.
4012 (set_raw_breakpoint): Ditto.
4013 (print_it_catch_fork): Adjust to take a bpstat as argument.
4014 (catch_fork_breakpoint_ops): Install methods.
4015 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4016 (catch_vfork_breakpoint_ops): Install methods.
4017 (dtor_catch_syscall): Call the base dtor.
4018 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4019 (catch_syscall_breakpoint_ops): Install methods.
4020 (dtor_catch_exec): Call the base dtor.
4021 (print_it_catch_exec): Adjust to take a bpstat as argument.
4022 (catch_exec_breakpoint_ops): Install methods.
4023 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4024 the breakpoint's resources_needed method, and remove the default
4026 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4028 (clone_momentary_breakpoint): Clone the original's ops.
4029 (mention): Always call the breakpoint's print_mention method, and
4030 remove the default code from here.
4031 (create_breakpoint_sal): Adjust to pass the ops to
4032 set_raw_breakpoint rather than setting it manually.
4033 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4034 ops to set_raw_breakpoint_without_location rather than setting it
4036 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4037 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4038 (ranged_breakpoint_ops): Install methods.
4039 (break_range_command): Adjust to pass the ops to
4040 set_raw_breakpoint rather than setting it manually.
4041 (re_set_watchpoint, breakpoint_hit_watchpoint)
4042 (check_status_watchpoint, resources_needed_watchpoint)
4043 (works_in_software_mode_watchpoint, print_it_watchpoint)
4044 (print_mention_watchpoint, print_recreate_watchpoint): New
4046 (watchpoint_breakpoint_ops): Install new methods.
4047 (print_it_masked_watchpoint): New function.
4048 (masked_watchpoint_breakpoint_ops): Install new methods.
4049 (watch_command_1): Adjust to pass the right breakpoint_ops to
4050 set_raw_breakpoint_without_location rather than setting it
4051 manually later. Record the current pspace.
4052 (print_it_exception_catchpoint): Adjust to take a bpstat as
4054 (gnu_v3_exception_catchpoint_ops): Install new methods.
4055 (say_where): New function.
4056 (null_re_set, null_check_status, null_works_in_software_mode)
4057 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4059 (bp_location_ops): New global.
4060 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4061 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4062 (bkpt_check_status, bkpt_resources_needed)
4063 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4064 (bkpt_print_recreate): New functions.
4065 (bkpt_breakpoint_ops): New global.
4066 (tracepoint_re_set, tracepoint_insert_location)
4067 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4068 (tracepoint_check_status, tracepoint_works_in_software_mode)
4069 (tracepoint_print_it, tracepoint_print_one_detail)
4070 (tracepoint_print_mention, tracepoint_print_recreate): New
4072 (tracepoint_breakpoint_ops): New global.
4073 (delete_breakpoint): Always call the breakpoint's dtor method, and
4074 remove the default handling from here.
4075 (breakpoint_re_set_default): Make static.
4076 (breakpoint_re_set_one): Always call the breakpoints re_set
4077 method, and remove the default handling from here.
4078 (trace_command, ftrace_command, strace_command)
4079 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4080 to create_breakpoint.
4081 (save_breakpoints): Always call the breakpoint's print_recreate
4082 method, and remove the default handling from here.
4084 * ada-lang.c (dtor_exception): Call the base dtor.
4085 (re_set_exception): Call the base method.
4086 (print_it_exception, print_it_catch_exception): Adjust to take a
4088 (catch_exception_breakpoint_ops): Install methods.
4089 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4091 (catch_exception_unhandled_breakpoint_ops): Install methods.
4092 (print_it_catch_assert): Adjust to take a bpstat as argument.
4093 (catch_assert_breakpoint_ops): Install methods.
4095 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4096 to take a bpstat as argument.
4097 (enum print_stop_action): Add describing comments to each enum
4099 (breakpoint_re_set_default): Delete declaration.
4100 (null_re_set, null_works_in_software_mode, null_resources_needed)
4101 (null_check_status, null_print_one_detail): Declare.
4102 (bkpt_breakpoint_ops): Declare.
4103 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4104 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4105 (bkpt_check_status, bkpt_resources_needed)
4106 (bkpt_works_in_software_mode, bkpt_print_it)
4107 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4110 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4111 bkpt_breakpoint_ops.
4112 * python/py-breakpoint.c (bppy_init): Ditto.
4114 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4116 * MAINTAINERS (Write After Approval): Add myself to the list.
4118 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4120 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4122 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4124 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4125 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4126 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4128 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4129 (struct i386_debug_reg_state): New.
4130 (i386_init_dregs): New.
4132 (i386_cleanup_dregs): Use i386_init_dregs.
4133 (i386_show_dr): Add state parameter and adjust.
4134 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4136 (i386_remove_aligned_watchpoint): Likewise.
4137 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4138 (i386_update_inferior_debug_regs): New.
4139 (i386_insert_watchpoint): Work on a local mirror of the debug
4140 registers, and only update the inferior on success.
4141 (i386_remove_watchpoint): Ditto.
4142 (i386_region_ok_for_watchpoint): Adjust.
4143 (i386_stopped_data_address): Adjust.
4144 (i386_insert_hw_breakpoint): Adjust.
4145 (i386_remove_hw_breakpoint): Adjust.
4147 2011-07-22 Tom Tromey <tromey@redhat.com>
4149 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4150 from amd64_pseudo_register_read. Change arguments. Call
4151 mark_value_bytes_unavailable when needed.
4152 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4153 set_gdbarch_pseudo_register_read.
4154 * sentinel-frame.c (sentinel_frame_prev_register): Use
4155 regcache_cooked_read_value.
4156 * regcache.h (regcache_cooked_read_value): Declare.
4157 * regcache.c (regcache_cooked_read_value): New function.
4158 (regcache_cooked_read): Call
4159 gdbarch_pseudo_register_read_value if available.
4160 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4161 (i386_pseudo_register_read): Remove.
4162 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4163 i386_pseudo_register_read. Change arguments. Call
4164 mark_value_bytes_unavailable when needed.
4165 (i386_pseudo_register_read_value): New function.
4166 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4167 not set_gdbarch_pseudo_register_read.
4168 * gdbarch.sh (pseudo_register_read_value): New method.
4169 * gdbarch.c, gdbarch.h: Rebuild.
4170 * findvar.c (value_from_register): Call get_frame_register_value.
4172 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4174 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4176 (display_gdb_prompt): Likewise.
4177 (change_annotation_level): Likewise.
4178 (push_prompt): Likewise.
4179 (pop_prompt): Likewise.
4180 (handle_stop_sig): Use get_prompt with a level.
4181 * top.c (command_loop): Use get_prompt with a level.
4182 (set_async_annotation_level): Use set_prompt with a level.
4183 (get_prefix): New function.
4184 (set_prefix): Ditto.
4185 (set_suffix): Ditto.
4186 (get_suffix): Ditto.
4187 (get_prompt): Accept a level argument.
4188 (set_prompt): Accept a level argument. Free old prompts. Set
4189 new_async_prompt if level is 0.
4190 (init_main): Use set_prompt with a level. Do not set
4192 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4193 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4194 Modify set_prompt, get_prompt to account for levels.
4195 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4197 * python/python.c (before_prompt_hook): Use set_prompt.
4199 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4201 * defs.h: Add guard against inclusion in gdbserver.
4202 (struct ptid, ptid_t): Move to common/ptid.h.
4203 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4204 xsnprintf, internal_error): Move to common/common-utils.h.
4206 * gdb_assert.h: Move into common/ sub-directory.
4207 * gdb_locale.h: Ditto.
4208 * gdb_dirent.h: Ditto.
4209 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4210 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4211 Move into common/ptid.h.
4212 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4213 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4214 Change nomem to malloc_failure.
4215 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4216 * utils.c (nomem): Rename to malloc_failure.
4217 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4218 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4219 (gdb_buildargv): Change nomem to malloc_failure.
4220 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4221 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4222 ptid_is_pid): Move into common/ptid.c.
4223 (initialize_infrun): Delete initialization of null_ptid and
4225 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4226 linux_common_xfer_osdata.
4227 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4228 common/ptid.c and common/buffer.c.
4229 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4230 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4231 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4232 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4234 * common/gdb_assert.h: New.
4235 * common/gdb_dirent.h: New.
4236 * common/gdb_locale.h: New.
4237 * common/buffer.c: New.
4238 * common/buffer.h: New.
4239 * common/ptid.c: New.
4240 * common/ptid.h: New.
4241 * common/xml-utils.c: New.
4242 * common/xml-utils.h: New.
4243 * common/common-utils.c: New.
4244 * common/common-utils.h: New.
4245 * common/linux-osdata.c: New.
4246 * common/linux-osdata.h: New.
4247 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4248 * config/arm/linux.mh (NATDEPFILES): Ditto.
4249 * config/i386/linux.mh (NATDEPFILES): Ditto.
4250 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4251 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4252 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4253 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4254 * config/mips/linux.mh (NATDEPFILES): Ditto.
4255 * config/pa/linux.mh (NATDEPFILES): Ditto.
4256 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4257 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4258 * config/s390/s390.mh (NATDEPFILES): Ditto.
4259 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4260 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4261 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4263 2011-07-21 Matt Rice <ratmice@gmail.com>
4265 * NEWS: Add info macros and info definitions commands.
4267 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4269 * NEWS: Document Python prompt substitution hook.
4271 2011-07-18 Matt Rice <ratmice@gmail.com>
4274 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4275 * macrotab.c (foreach_macro): Ditto.
4276 (foreach_macro_in_scope): Ditto.
4277 * macrocmd.c (print_macro_callback): New function.
4278 (info_macro_command): Move some code to print_macro_definition.
4279 (print_macro_definition): New function.
4280 (print_one_macro): Add new arguments to callback.
4281 (info_definitions_command): New function.
4282 (info_macros_command): Ditto.
4283 (_initialize_macrocmd): Add info macros and info definitions commands.
4284 * symtab.c (add_macro_name): Add new arguments to callback.
4286 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4287 Tom Tromey <tromey@redhat.com>
4289 * top.c (set_prompt): Rewrite to free previous prompt, free
4290 asynch_new_prompt and set both on new prompts.
4291 * event-top.c (display_gdb_prompt): Add prompt substitution
4293 * python/python.c (before_prompt_hook): New function.
4295 2011-07-20 Matt Rice <ratmice@gmail.com>
4297 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4298 arguments to store_unsigned_integer.
4300 2011-07-20 Tom Tromey <tromey@redhat.com>
4302 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4303 in some declaration-only cases.
4305 2011-07-18 Tom Tromey <tromey@redhat.com>
4308 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4309 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4310 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4311 <debug_type_section>: New field.
4312 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4313 (load_cu): Use appropriate section.
4314 (create_signatured_type_table_from_index): Add 'section'
4316 (dwarf2_read_index): Only allow a single .debug_types section.
4317 (dw2_get_file_names): Use appropriate section.
4318 (read_type_comp_unit_head): Add 'section' argument.
4319 (create_debug_types_hash_table): Loop over all .debug_types
4321 (init_cu_die_reader): Use appropriate section.
4322 (process_psymtab_comp_unit, load_partial_comp_unit)
4323 (load_full_comp_unit, read_die_and_children, find_partial_die)
4324 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4325 (lookup_signatured_type_at_offset): Add 'section' argument.
4326 (read_signatured_type_at_offset): Add 'sect' argument.
4327 (read_signatured_type): Use appropriate section.
4328 (set_die_type, get_die_type_at_offset): Update.
4329 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4331 (write_psymtabs_to_index): Don't allow index with more than one
4332 .debug_types section.
4334 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4336 Fix crash if referenced CU is aged out.
4337 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4338 xfree of block.data.
4339 (indirect_pieced_value): New variable back_to, use to for xfree of
4341 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4343 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4344 (load_cu): New function from ...
4345 (dw2_do_instantiate_symtab): ... the code here ...
4346 (process_full_comp_unit): ... and here.
4347 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4350 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4355 2011-07-19 Gary Benson <gbenson@redhat.com>
4357 * infrun.c (struct execution_control_state): New member
4358 stop_func_filled_in.
4359 (clear_stop_func, fill_in_stop_func): New functions.
4360 (handle_inferior_event): Call clear_stop_func rather than
4361 manipulating the execution control state directly.
4362 Call fill_in_stop_func lazily as required rather than
4363 directly calling find_pc_partial_function in all cases.
4365 2011-07-18 Tom Tromey <tromey@redhat.com>
4367 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4368 checking for variable-sized array.
4370 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4372 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4373 of supported languages.
4374 * varobj.c: Add top definitions and basic implementation of the
4375 following callbacks: ada_number_of_children, ada_name_of_variable,
4376 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4377 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4378 (languages): Register Ada-specific callbacks.
4379 (variable_language): Add the Ada case in the language setter switch.
4381 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4385 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4389 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4390 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4391 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4392 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4393 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4394 (struct dwarf_expr_context_funcs): New, move here methods from ...
4395 (struct dwarf_expr_context): ... here. New fields funcs.
4396 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4397 (dwarf_expr_ctx_funcs): New.
4398 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4399 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4400 (needs_frame_ctx_funcs): New.
4401 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4403 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4405 * MAINTAINERS (Write After Approval): Add myself to the list.
4407 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4409 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4410 that CIE pointer of an FDE really points to a CIE .
4412 2011-07-15 Hui Zhu <teawater@gmail.com>
4414 * remote.c (remote_get_trace_status): Add comments.
4416 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4418 Code cleanup - constify struct lval_funcs.
4419 * dwarf2loc.c (pieced_value_funcs): Make it const.
4420 * infrun.c (siginfo_value_funcs): Likewise.
4421 * opencl-lang.c (opencl_value_funcs): Likewise.
4422 * valops.c (value_assign, value_ind): Make the funcs variable const.
4423 * value.c (struct value): Make location.computed.funcs target const.
4424 Rearrange the comments.
4425 (allocate_computed_value): Make the funcs parameter target const.
4426 (value_computed_funcs): Return the funcs target const.
4427 (value_free, value_copy, set_value_component_location): Make the funcs
4429 * value.h (allocate_computed_value): Make the funcs parameter target
4431 (value_computed_funcs): Return the funcs target const.
4432 * windows-tdep.c (tlb_value_funcs): Make it const.
4434 2011-07-14 Hui Zhu <teawater@gmail.com>
4436 * remote.c (remote_get_trace_status): Initialize p.
4438 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4441 * remote.c (remote_get_trace_status): New variable ex. Put
4442 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4444 2011-07-13 Tom Tromey <tromey@redhat.com>
4446 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4447 value_from_contents for final conversion.
4449 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4452 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4453 Indent prototypes so they do not get into tags.
4455 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4457 Code cleanup making also optimized out values lazy.
4458 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4459 allocate_optimized_out_value. Twice.
4460 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4461 * findvar.c (read_var_value): Likewise.
4462 * value.c (allocate_optimized_out_value): New function.
4463 * value.h (allocate_optimized_out_value): New declaration.
4465 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4467 Fix occasional crash of CTRL-C during DWARF read in.
4468 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4470 2011-07-11 Tom Tromey <tromey@redhat.com>
4472 * regcache.c (struct regcache_descr): Fix typo.
4473 * i387-tdep.c (i387_supply_xsave): Fix typo.
4475 2011-07-11 Tom Tromey <tromey@redhat.com>
4477 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4478 (read_file_scope, read_type_unit_scope): Use it.
4480 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4482 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4485 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4488 * python/python.c: Set gdbpy_should_print_stack default to off.
4489 (set_python): Deprecate maint set python print-stack to
4491 (_initialize_python): Deprecate maint set/show python print-stack.
4492 Add new prefix command, python. Add new setting, print-backtrace.
4493 * NEWS: Document set python print-stack. Document default change.
4495 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4497 * python/py-inferior.c (infpy_dealloc): New function.
4498 (inferior_to_inferior_object): Return a new object, or a
4499 new reference to the existing object.
4500 (find_thread_object): Cleanup references to inferior.
4501 (delete_thread_object): Ditto.
4502 * python/py-infthread.c (create_thread_object): Do not increment
4503 inferior reference count.
4505 2011-07-08 Tom Tromey <tromey@redhat.com>
4507 * dwarf2loc.c (locexpr_regname): New function.
4508 (locexpr_describe_location_piece): Use it.
4509 (disassemble_dwarf_expression): Add per_cu argument. Use
4511 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4512 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4514 (locexpr_describe_location_1): Add per_cu argument.
4515 (locexpr_describe_location): Update.
4516 (loclist_describe_location): Update.
4518 2011-07-08 Tom Tromey <tromey@redhat.com>
4520 * dwarf2expr.c (execute_stack_op): Add QUIT.
4522 2011-07-07 Hui Zhu <teawater@gmail.com>
4525 2011-07-06 Hui Zhu <teawater@gmail.com>
4526 * remote.c (remote_start_remote): Add TRY_CATCH for
4527 remote_get_trace_status.
4528 * tracepoint.c (disconnect_tracing): Ditto.
4530 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4532 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4533 variables as signed, not unsigned.
4535 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4537 * jit.c (jit_inferior_init): Reformat forward declaration.
4539 2011-07-06 Matt Rice <ratmice@gmail.com>
4541 * MAINTAINERS (Write After Approval): Add myself to the list.
4543 2011-07-06 Hui Zhu <teawater@gmail.com>
4545 * remote.c (remote_start_remote): Add TRY_CATCH for
4546 remote_get_trace_status.
4547 * tracepoint.c (disconnect_tracing): Ditto.
4549 2011-07-05 Tom Tromey <tromey@redhat.com>
4551 * symtab.c (operator_chars): Now static.
4552 * linespec.c (operator_chars): Don't declare.
4554 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4556 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4558 2011-07-05 Tom Tromey <tromey@redhat.com>
4560 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4561 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4562 (TYPE_CPLUS_REALLY_JAVA): New macro.
4563 * dwarf2read.c (process_structure_scope): Set
4564 TYPE_CPLUS_REALLY_JAVA.
4566 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4568 * ada-lang.c: Fix typos.
4569 * amd64-tdep.c: Likewise.
4570 * breakpoint.c: Likewise.
4571 * cli/cli-decode.c: Likewise.
4572 * findcmd.c: Likewise.
4573 * inline-frame.c: Likewise.
4574 * mi/mi-main.c: Likewise.
4575 * minsyms.c: Likewise.
4576 * monitor.c: Likewise.
4577 * monitor.h: Likewise.
4578 * prologue-value.c: Likewise.
4579 * reverse.c: Likewise.
4580 * s390-tdep.c: Likewise.
4582 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4584 * jit.c (jit_inferior_init): Forward declare.
4585 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4587 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4589 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4591 2011-07-04 Tristan Gingold <gingold@adacore.com>
4593 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4594 (tcb_fieldno): Add activation_link field.
4595 (get_known_tasks_addr): Moved and rewritten.
4596 (get_tcb_types_info): Set activation_link field.
4597 (read_known_tasks_array): Add parameter. Rewritten.
4598 (read_known_tasks_list): New function.
4599 (read_known_tasks): New function.
4600 (ada_build_task_list): Call read_known_tasks instead of
4601 read_known_tasks_array.
4602 * ravenscar-thread.c: Add first_task_name constant.
4603 (has_ravenscar_runtime): Check for task list too.
4605 2011-07-04 Tristan Gingold <gingold@adacore.com>
4607 * ada-tasks.c: Renames fieldno to actb_fieldno.
4608 (ada_get_task_number): Indentation.
4609 (get_tcb_types_info): Remove all parameters. Write directly
4611 (ptid_from_atcb_common): Adjust.
4612 (read_atcb): Adjust.
4614 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4616 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4618 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4620 * ui-out.c (ui_out_field_core_addr): Mention that the function
4621 description is in the header file.
4622 * ui-out.h (ui_out_field_core_addr): Document function.
4624 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4626 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4627 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4629 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4631 * symtab.c (expand_line_sal): Remove empty line.
4633 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4635 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4636 same way as ELFOSABI_NONE.
4637 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4639 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4641 * breakpoint.c: Fix typos in comments.
4642 * linespec.c: Likewise.
4643 * symtab.c: Likewise.
4645 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4647 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4648 section in separate object files.
4650 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 Fix false GCC warning.
4653 * linespec.c (decode_line_1): Initialize values.
4655 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4657 * linespec.c (find_method): Accept the function type automatically only
4658 if it was specified with parameter types.
4660 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4662 Stop on first linespec terminator instead of eating what we can.
4663 * linespec.c (is_linespec_boundary): New function.
4664 (name_end): Remove function.
4665 (keep_name_info): New parameter on_boundary, replace the body.
4666 (decode_line_1): Provide the parameter to keep_name_info.
4667 (decode_compound): Likewise. Drop the trailing java return type
4670 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4672 Fall back linespec to minimal symbols.
4673 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4674 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4675 (find_method, symbol_found): Change error to cplusplus_error.
4677 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4679 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4681 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4682 Tom Tromey <tromey@redhat.com>
4684 * dwarf2read.c (check_physname): New variable.
4685 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4686 (show_check_physname): New function.
4687 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4689 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4691 * machoread.c (macho_symfile_read): Delete OBE comment.
4693 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4695 * machoread.c (struct macho_oso_data): Delete.
4696 (current_oso): Delete.
4697 (macho_relocate_common_syms): New function, mostly extracted
4699 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4700 Remove code that sets and unset current_oso.
4701 (macho_symfile_relocate): Delete handling of common symbols,
4702 now moved to macho_relocate_common_syms.
4704 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4706 * darwin-nat.c (darwin_ptrace): Add documentation.
4707 Set errno to zero before calling ptrace. If ptrace returns
4708 -1 and errno is zero, then change then return zero.
4709 (darwin_kill_inferior): Issue a warning instead of triggering
4710 a failed assertion when the PT_KILL ptrace operations returned
4713 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4715 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4716 only when inf->private->no_ptrace.
4718 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4720 * ada-lang.c (print_it_exception): Print temporary catchpoints
4721 as "Temporary catchpoint".
4722 (print_mention_exception): Likewise.
4724 2011-07-01 Tom Tromey <tromey@redhat.com>
4726 * jv-lang.c (java_language_defn): Use java_printchar,
4728 (java_get_encoding): New function.
4729 (java_emit_char): Use generic_emit_char.
4730 (java_printchar): New function.
4731 (java_printstr): Likewise.
4733 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4735 * ada-typeprint.c (print_record_type): If unable to decode
4736 the name of the parent type, use the encoded name.
4738 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4740 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4741 pointer to constrained packed array type output.
4742 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4743 packed array output.
4745 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4747 * ada-typeprint.c (print_array_type): removed if condition on show
4748 being negative for bounds printing.
4750 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4752 * ada-lang.c (ada_identical_enum_types_p): New function.
4753 (symbols_are_identical_enums): New function.
4754 (remove_extra_symbols): Do nothing if NSYMS < 2.
4755 Use symbols_are_identical_enums.
4757 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4759 * ada-valprint.c (ada_value_print): Handle typedefs.
4761 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4763 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4765 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4767 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4768 (decode_constrained_packed_array): Likewise.
4769 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4771 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4773 * ada-exp.y (convert_char_literal): Handle typedef types.
4775 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4777 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4779 2011-06-30 Tom Tromey <tromey@redhat.com>
4781 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4782 * valops.c (find_overload_match): Call do_cleanups on early exit
4784 * solib.c (solib_find): Call do_cleanups on early exit path.
4786 2011-06-30 Tom Tromey <tromey@redhat.com>
4788 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4789 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4790 return paths. Defer final do_cleanups until last return.
4791 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4794 2011-06-30 Tom Tromey <tromey@redhat.com>
4796 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4798 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4800 * MAINTAINERS (Write After Approval): Add myself to the list.
4802 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4804 Disable epilogue unwinders on recent GCCs.
4805 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4806 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4807 * dwarf2read.c (process_full_comp_unit): Initialize
4808 EPILOGUE_UNWIND_VALID.
4809 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4810 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4811 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4813 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4815 Code cleanup - reformatting.
4816 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4817 (producer_is_gcc_ge_4): ... here, change the return value.
4818 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4821 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4823 Fix non-only rename list for Fortran modules import.
4824 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4825 cp_add_using_directive caller.
4826 (cp_add_using_directive): New parameter excludes, describe it. New
4827 variables ix and param. Compare if also excludes match. Allocate NEW
4828 with variable size, initialize EXCLUDES there.
4829 (cp_lookup_symbol_imports): New variable excludep, test
4830 current->EXCLUDES with it.
4831 * cp-support.h: Include vec.h.
4832 (struct using_direct): New field excludes, describe it.
4833 (DEF_VEC_P (const_char_ptr)): New.
4834 (cp_add_using_directive): New parameter excludes.
4835 * defs.h (const_char_ptr): New typedef.
4836 * dwarf2read.c (read_import_statement): New variables child_die,
4837 excludes and cleanups, read in excludes.
4838 (read_namespace): Adjust the cp_add_using_directive caller.
4840 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4843 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4844 negative comparisons.
4846 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4848 * mi/mi-main.c (mi_cmd_list_features): Emit
4849 breakpoint-notifications.
4851 2011-06-29 Tom Tromey <tromey@redhat.com>
4854 * valprint.h (generic_emit_char, generic_printstr): Declare.
4855 * valprint.c (wchar_printable, append_string_as_wide)
4856 (print_wchar): Move from c-lang.c.
4857 (generic_emit_char): New function; mostly taken from c_emit_char.
4858 (generic_printstr): New function; mostly taken from c_printstr.
4859 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4860 represented as arrays.
4861 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4863 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4864 identically to TYPE_CODE_INT.
4865 * f-lang.c (f_get_encoding): New function.
4866 (f_emit_char): Use generic_emit_char.
4867 (f_printchar): Replace comment.
4868 (f_printstr): Use generic_printstr.
4869 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4870 "character" types specially.
4871 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4873 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4875 (c_emit_char): Call generic_emit_char.
4876 (c_printstr): Call generic_printstr.
4878 2011-06-29 Gary Benson <gbenson@redhat.com>
4880 * breakpoint.c (bpstat_what): Removed duplicated case.
4882 2011-06-28 Tom Tromey <tromey@redhat.com>
4884 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4886 2011-06-27 Tom Tromey <tromey@redhat.com>
4888 * valops.c (find_overload_match): Call do_cleanups before early
4890 * top.c (execute_command): Call do_cleanups before early return.
4891 (command_loop): Likewise.
4892 * stack.c (backtrace_command): Make a null cleanup early. Don't
4893 conditionally call do_cleanups.
4894 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4896 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4897 so cleanups are always run.
4898 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4899 * findcmd.c (parse_find_args): Call do_cleanups on early return
4901 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4902 Don't conditionally call do_cleanups.
4903 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4906 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4908 * MAINTAINERS (Write After Approval): Use default email address.
4910 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4912 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4914 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4916 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4917 saved_regs_mask and copied_regs_mask fields.
4918 (sparc_record_save_insn): New prototype.
4919 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4920 (sparc_record_save_insn): New function.
4921 (sparc_analyze_prologue): Add head comment. Recognize store insns
4922 of call-saved registers. Use OFFSET consistently. Recognize flat
4923 frames and cache their settings.
4924 (sparc32_skip_prologue): Handle flat frames.
4925 (sparc_frame_cache): Add frame_offset to the base address.
4926 (sparc32_frame_cache): Adjust to new frame description.
4927 (sparc32_frame_prev_register): Likewise.
4928 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4929 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4930 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4931 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4932 frame by calling sparc_record_save_insn.
4933 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4934 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4935 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4937 2011-06-27 Tristan Gingold <gingold@adacore.com>
4939 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4940 field by map_addr and map_len.
4941 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4942 (munmap_section_buffer): Likewise.
4944 2011-06-24 Tom Tromey <tromey@redhat.com>
4946 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4947 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4948 * python/python.c (gdbpy_parameter): Make 'arg' const.
4949 (execute_gdb_command): Likewise.
4950 (gdbpy_decode_line): Likewise. Copy it.
4951 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4952 (gdbpy_write): Make 'arg' const.
4953 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4955 (gdbpy_lookup_type): Likewise.
4956 * python/py-prettyprint.c (print_children): Make 'name' const.
4957 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4958 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4960 * python/py-function.c (fnpy_init): Make 'name' const.
4961 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4962 (gdbpy_string_to_argv): Make 'input' const.
4963 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4965 * gdbtypes.h (lookup_typename): Update.
4966 * gdbtypes.c (lookup_typename): Make 'name' const.
4967 (lookup_struct): Likewise.
4968 (lookup_union): Likewise.
4969 (lookup_enum): Likewise.
4971 2011-06-24 Tom Tromey <tromey@redhat.com>
4973 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4974 gdb_thread_db.h. Move all common/ entries to be together.
4975 (TAGS): Don't depend on DEPFILES.
4977 2011-06-23 Yao Qi <yao@codesourcery.com>
4979 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4980 * remote.c (remote_start_remote): ... here.
4981 * monitor.c (monitor_open): ... here.
4983 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4985 * gdbtypes.c (append_composite_type_field_aligned): Fix
4986 calculation of bit position based on alignment.
4988 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4990 * breakpoint.c (bpstat_stop_status): Call the check_status
4991 breakpoint_ops method.
4992 (print_one_breakpoint_location): Also print the condition for Ada
4993 exception catchpoints.
4994 (allocate_bp_location): New, factored out from
4995 allocate_bp_location.
4996 (allocate_bp_location): Adjust. Call the owner breakpoint's
4997 allocate_location method, if there is one.
4998 (free_bp_location): Call the locations's dtor method, if there is
5000 (init_raw_breakpoint_without_location): New breakpoint_ops
5002 (set_raw_breakpoint_without_location): Adjust.
5003 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5004 (set_raw_breakpoint): Adjust.
5005 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5006 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5007 re_set and check_status methods.
5008 (init_catchpoint): Don't memset, initialize thread, addr_string
5009 and enable_state. Pass the ops down to init_raw_breakpoint.
5010 (install_catchpoint): Rename to ...
5011 (install_breakpoint): ... this, and make extern.
5012 (create_fork_vfork_event_catchpoint): Adjust.
5013 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5014 re_set and check_status methods.
5015 (create_syscall_event_catchpoint): Adjust.
5016 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5017 (masked_watchpoint_breakpoint_ops): Install NULL
5018 allocate_location, re_set and check_status methods.
5019 (catch_exec_command_1): Adjust.
5020 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5021 re_set and check_status methods.
5022 (create_ada_exception_breakpoint): Rename to ...
5023 (init_ada_exception_breakpoint): ... this. Add a struct
5024 breakpoint parameter, and delete the exp_string, cond_string and
5025 cond parameters. Use init_raw_breakpoint, and don't install or
5026 mention the breakpoint yet. Don't clear breakpoint fields that
5027 init_raw_breakpoint already clears.
5028 (re_set_breakpoint): Delete, split into ...
5029 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5031 (breakpoint_re_set_one): Call the breakpoint's
5032 breakpoint_ops->re_set implementation, if there's one. Adjust.
5033 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5034 (struct bp_location_ops): New type.
5035 (struct bp_location): New field `ops'.
5036 (struct breakpoint_ops): New `allocate_location', `re_set' and
5037 `check_status' fields. Make `breakpoint_hit''s description match
5039 (init_bp_location): Declare.
5040 (breakpoint_re_set_default): Declare.
5041 (create_ada_exception_breakpoint): Rename to ...
5042 (init_ada_exception_breakpoint): ... this. Add a struct
5043 breakpoint parameter, and delete the exp_string, cond_string and
5045 (install_breakpoint): Declare.
5046 * ada-lang.c: Include exceptions.h.
5047 <Ada exceptions description>: Update.
5048 (struct ada_catchpoint_location): New type.
5049 (ada_catchpoint_location_dtor): New function.
5050 (ada_catchpoint_location_ops): New global.
5051 (ada_catchpoint): New type.
5052 (create_excep_cond_exprs): New function.
5053 (dtor_exception, allocate_location_exception, re_set_exception)
5054 (should_stop_exception, check_status_exception): New functions.
5055 (print_one_exception, print_mention_exception)
5056 (print_recreate_exception): Adjust.
5057 (dtor_catch_exception, allocate_location_catch_exception)
5058 (re_set_catch_exception, check_status_catch_exception): New
5060 (catch_exception_breakpoint_ops): Install them.
5061 (dtor_catch_exception_unhandled)
5062 (allocate_location_catch_exception_unhandled)
5063 (re_set_catch_exception_unhandled)
5064 (check_status_catch_exception_unhandled): New functions.
5065 (catch_exception_unhandled_breakpoint_ops): Install them.
5066 (dtor_catch_assert, allocate_location_catch_assert)
5067 (re_set_catch_assert, check_status_catch_assert): New functions.
5068 (catch_assert_breakpoint_ops): Install them.
5069 (ada_exception_catchpoint_p): Delete.
5070 (catch_ada_exception_command_split)
5071 (ada_exception_catchpoint_cond_string): Rename exp_string
5072 parameter to excep_string. Adjust.
5073 (ada_parse_catchpoint_condition): Delete.
5074 (ada_exception_sal): Rename the exp_string parameter to
5075 excep_string. Delete the cond_string and cond parameters.
5077 (ada_decode_exception_location): Rename the exp_string parameter
5078 to excep_string. Delete the cond_string and cond parameters.
5080 (create_ada_exception_catchpoint): New function.
5081 (catch_ada_exception_command, ada_decode_assert_location)
5082 (catch_assert_command): Adjust.
5083 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5085 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5087 * ada-lang.c: Include arch-utils.h.
5088 (ada_decode_exception_location): Make static.
5089 (catch_ada_exception_command): Moved here from breakpoint.c.
5090 (ada_decode_assert_location): Make static.
5091 (catch_assert_command): Moved here from breakpoint.c.
5092 (_initialize_ada_lang): Install the exception and assert
5093 catchpoint commands here.
5094 * ada-lang.h (ada_decode_exception_location)
5095 (ada_decode_assert_location): Delete declarations.
5096 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5098 (create_ada_exception_breakpoint): Make extern.
5099 (catch_ada_exception_command, catch_assert_command): Moved to
5101 (add_catch_command): Make extern.
5102 (_initilize_breakpoint): Don't install the exception and assert
5103 catchpoint commands here.
5104 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5106 (add_catch_command, create_ada_exception_breakpoint): Declare.
5108 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5110 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5111 the breakpoint to the breakpoint chain here.
5112 (set_raw_breakpoint_without_location): Add the breakpoint to the
5113 breakpoint chain here.
5114 (init_raw_breakpoint): Adjust comments.
5115 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5117 (init_catchpoint): Don't set the catchpoint's breakpoint number
5119 (install_catchpoint): New function.
5120 (create_fork_vfork_event_catchpoint)
5121 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5122 use install_catchpoint.
5124 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5126 * breakpoint.c (create_catchpoint_without_mention)
5127 (create_catchpoint): Delete.
5129 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5131 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5132 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5133 reference to exec_pathname.
5134 (struct exec_catchpoint): New type.
5135 (dtor_catch_exec): New function.
5136 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5137 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5138 (catch_exec_command_1): Adjust to use init_catchpoint.
5139 (delete_breakpoint): Remove reference to exec_pathname.
5141 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5143 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5144 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5145 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5146 reference to syscalls_to_be_caught.
5147 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5149 (struct syscall_catchpoint): New type.
5150 (dtor_catch_syscall): New function.
5151 (insert_catch_syscall, remove_catch_syscall)
5152 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5153 (print_recreate_catch_syscall): Adjust.
5154 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5155 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5156 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5157 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5158 (masked_watchpoint_breakpoint_ops)
5159 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5160 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5161 there is one. Remove references to syscalls_to_be_caught.
5162 (catching_syscall_number): Adjust.
5163 * ada-lang.c (catch_exception_breakpoint_ops)
5164 (catch_exception_unhandled_breakpoint_ops)
5165 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5167 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5169 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5171 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5172 reference to forked_inferior_pid.
5173 (struct fork_catchpoint): New type.
5174 (breakpoint_hit_catch_fork, print_it_catch_fork)
5175 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5176 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5177 (create_fork_vfork_event_catchpoint): Adjust to use
5180 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5182 * breakpoint.c (add_to_breakpoint_chain)
5183 (init_raw_breakpoint_without_location): New functions, factored
5185 (set_raw_breakpoint_without_location): ... this one.
5186 (init_raw_breakpoint): New function, factored out from
5187 set_raw_breakpoint and adjusted to use
5188 init_raw_breakpoint_without_location.
5189 (set_raw_breakpoint): Adjust.
5190 (init_catchpoint): New function, factored out from
5191 create_catchpoint_without_mention and adjusted to use
5192 init_raw_breakpoint.
5193 (create_catchpoint_without_mention): Adjust.
5195 2011-06-22 Tom Tromey <tromey@redhat.com>
5197 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5198 argument of 0 specially.
5200 2011-06-22 Yao Qi <yao@codesourcery.com>
5202 * infrun.c (handle_inferior_event): Remove write-only local variable
5203 `sw_single_step_trap_p'.
5205 2011-06-20 Tom Tromey <tromey@redhat.com>
5207 * symtab.c (lookup_language_this): End loop if block is NULL.
5209 2011-06-17 Tom Tromey <tromey@redhat.com>
5211 * valops.c (value_of_this): Use lookup_language_this.
5212 * symtab.h (lookup_language_this): Declare.
5213 * symtab.c (lookup_language_this): New function.
5214 (lookup_symbol_aux): Use lookup_language_this.
5215 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5217 2011-06-17 Tom Tromey <tromey@redhat.com>
5219 * value.h (value_of_this): Update.
5220 (value_of_local): Remove.
5221 * valops.c (value_of_this): Rename from value_of_local. Change
5223 * p-exp.y (exp): Update.
5224 (variable): Likewise.
5225 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5227 2011-06-17 Tom Tromey <tromey@redhat.com>
5229 * valops.c (value_of_local): Complain if NAME is NULL.
5230 * std-operator.def (OP_OBJC_SELF): Remove.
5231 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5232 * objc-exp.y (name_not_typename): Use OP_THIS.
5233 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5235 <OP_OBJC_SELF>: Remove.
5236 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5238 2011-06-16 Tristan Gingold <gingold@adacore.com>
5240 * python/py-events.h (gdb_py_events): Make it extern.
5241 * python/py-evtregistry.c (gdb_py_events): Declare.
5243 2011-06-16 Hui Zhu <teawater@gmail.com>
5245 * remote.c (remote_trace_set_readonly_regions): Add check for
5246 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5249 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5251 * arm-linux-tdep.c: Include "auxv.h".
5253 (ARM_LINUX_SIZEOF_VFP): Define.
5254 (arm_linux_supply_vfp): New function.
5255 (arm_linux_collect_vfp): Likewise.
5256 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5257 (arm_linux_fpa_regset_sections): New variable.
5258 (arm_linux_vfp_regset_sections): Likewise.
5259 (arm_linux_core_read_description): New function.
5260 (arm_linux_init_abi): Install arm_linux_core_read_description and
5261 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5262 appropriate for the architecture.
5263 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5264 (tdesc_arm_with_m): Declare.
5265 (tdesc_arm_with_iwmmxt): Likewise.
5266 (tdesc_arm_with_vfpv2): Likewise.
5267 (tdesc_arm_with_vfpv3): Likewise.
5268 (tdesc_arm_with_neon): Likewise.
5269 * arm-linux-nat.c: Move features/*.c includes ...
5270 * arm-tdep.c: ... here.
5271 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5272 target description data structures ...
5273 * arm-tdep.c (_initialize_arm_tdep): ... here.
5274 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5275 HWCAP_VFPv3D16): Move definitions ...
5276 * arm-linux-tdep.h: ... here.
5278 2011-06-15 Hui Zhu <teawater@gmail.com>
5280 * remote.c (remote_trace_set_readonly_regions): Add a check for
5283 2011-06-14 Tom Tromey <tromey@redhat.com>
5285 * coffread.c (coffread_objfile): Rename from current_objfile.
5286 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5287 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5289 2011-06-14 Tom Tromey <tromey@redhat.com>
5291 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5292 (class_symtab): Remove.
5293 (jv_dynamics_progspace_key): New global.
5294 (jv_per_objfile_free): Reset program space data. Update assert.
5295 Don't clear globals.
5296 (get_dynamics_objfile): Use and set program space data.
5297 (get_java_class_symtab): Use get_dynamics_objfile.
5298 (add_class_symbol): Likewise.
5299 (java_link_class_type): Likewise.
5300 (java_object_type, jv_clear_object_type, set_java_object_type):
5302 (get_java_object_type): Update. Don't cache result.
5303 (is_object_type): Don't call set_java_object_type.
5304 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5305 initialize jv_dynamics_progspace_key.
5307 2011-06-14 Tom Tromey <tromey@redhat.com>
5309 * symtab.h (current_objfile): Don't declare.
5310 * objfiles.h (current_objfile): Don't declare.
5311 * objfiles.c (current_objfile): Remove.
5312 * mdebugread.c (current_objfile): New file-scope global.
5313 * dbxread.c (current_objfile): New file-scope global.
5314 * coffread.c (current_objfile): New file-scope global.
5316 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5318 * top.h (line): Rename to ...
5319 (saved_command_line): ... this.
5320 (linesize): Rename to ...
5321 (saved_command_line_size): ... this.
5322 * top.c (line): Rename to ...
5323 (saved_command_line): ... this.
5324 (linesize): Rename to ...
5325 (saved_command_line_size): ... this.
5326 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5327 * event-top.c (command_line_handler): Adjust.
5328 * main.c (captured_main): Adjust.
5330 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5332 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5333 get_frame_func instead of get_frame_pc to determine the code
5334 address used to construct the frame ID.
5335 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5336 (i386_epilogue_frame_this_id): Likewise.
5337 (i386_epilogue_frame_prev_register): New function.
5338 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5339 (i386_stack_tramp_frame_sniffer): Fix coding style.
5340 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5341 (i386_gdbarch_init): Fix comments.
5343 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5345 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5346 instruction when walking back through the instruction stream.
5348 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5350 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5351 fullname parameters order.
5353 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5356 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5358 * psymtab.c (map_symbol_filenames_psymtab)
5359 (map_partial_symbol_filenames): Likewise.
5360 * psymtab.h: Include symfile.h.
5361 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5362 * symfile.h (symbol_filename_ftype): New.
5363 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5364 map_symbol_filenames, clarify more the naming in comment.
5366 2011-06-07 Doug Evans <dje@google.com>
5368 * cc-with-index.sh: Fix typos in comment.
5369 Look for ../../gdb, for fullname.exp.
5371 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5372 Pedro Alves <pedro@codesourcery.com>
5374 * cli/cli-cmds.c (shell_escape): Use waitpid.
5375 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5377 2011-06-07 Tristan Gingold <gingold@adacore.com>
5379 * xcoffread.c (dwarf2_xcoff_names): New variable.
5380 (aix_process_linenos): Add a guard.
5381 (xcoff_symfile_finish): Free dwarf2.
5382 (xcoff_initial_scan): Add dwarf2 support.
5384 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5386 * infcall.c (run_inferior_call): Don't mask async. Instead force
5387 a synchronous wait, if the target can async.
5389 * target.h (struct target_ops): Delete to_async_mask.
5390 (target_async_mask): Delete.
5391 * target.c (update_current_target): Delete references to to_async_mask.
5392 * linux-nat.c (linux_nat_async_mask_value): Delete.
5393 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5394 to linux_nat_async_mask_value.
5395 (linux_nat_async_mask): Delete.
5396 (linux_nat_async, linux_nat_close): Remove references to
5397 linux_nat_async_mask_value.
5398 * record.c (record_async_mask_value): Delete.
5399 (record_async): Remove references to record_async_mask_value.
5400 (record_async_mask): Delete.
5401 (record_can_async_p, record_is_async_p): Remove references to
5402 record_async_mask_value.
5403 (init_record_ops, init_record_core_ops): Remove references to
5405 * remote.c (remote_async_mask_value): Delete.
5406 (init_remote_ops): Remove reference to remote_async_mask.
5407 (remote_can_async_p, remote_is_async_p): Remove references to
5408 remote_async_mask_value.
5409 (remote_async): Remove references to remote_async_mask_value.
5410 (remote_async_mask): Delete.
5412 * infrun.c (fetch_inferior_event): Don't claim registers changed
5413 if the current thread is already not executing.
5415 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5417 From Stephen Kitt <steve@sk2.org>
5418 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5419 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5421 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5423 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5424 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5426 2011-06-03 Tom Tromey <tromey@redhat.com>
5428 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5430 * python/py-exitedevent.c (create_exited_event_object): Change
5431 type of 'exit_code'. Optionally add exit_code attribute.
5432 (emit_exited_event): Change type of 'exit_code'.
5433 * python/py-event.h (emit_exited_event): Update.
5434 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5435 * infrun.c (handle_inferior_event): Set exit code fields on
5437 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5439 * inferior.c (exit_inferior_1): Initialize new fields.
5441 2011-06-03 Tom Tromey <tromey@redhat.com>
5443 * dwarf2expr.c (get_signed_type): New function.
5444 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5446 2011-06-02 Keith Seitz <keiths@redhat.com>
5448 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5450 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5452 * top.h (simplified_command_loop): Delete declaration.
5454 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5456 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5457 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5459 2011-06-01 Yao Qi <yao@codesourcery.com>
5461 * objfiles.h (obj_section_addr): Update reference to objfile from
5463 (obj_section_endaddr): Likewise.
5465 2011-06-01 Daniel Jacobowitz <drow@false.org>
5467 * MAINTAINERS: Update my email address and affiliation. Also
5468 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5470 2010-05-31 Keith Seitz <keiths@redhat.com>
5473 * linespec.c (get_search_block): New function.
5474 (find_methods): Add FILE_SYMTATB parameter and use it and
5475 get_search_block to pass an appropriate block to
5476 lookup_symbol_in_namespace.
5477 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5478 Check if *ARGPTR starts with a filename first.
5479 If it does, call locate_first_half again to locate the next
5480 "first half" of the linespec.
5481 Pass FILE_SYMTATB to decode_objc and decode_compound.
5482 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5483 (locate_first_half): Stop on the first colon seen.
5484 (decode_compound): Add FILE_SYMTAB parameter.
5485 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5486 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5487 get_search_block with lookup_symbol.
5488 (find_method): Add FILE_SYMTAB parameter and pass it to
5490 (decode_objc): Use get_search_block.
5492 2010-05-31 Keith Seitz <keiths@redhat.com>
5495 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5496 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5497 and CP_ANONYMOUS_NAMESPACE_LEN.
5498 (cp_is_anonymous): Likewise.
5499 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5500 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5501 * dwarf2read.c (namespace_name): Likewise.
5502 (fixup_partial_die): Likewise.
5503 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5504 seen in the input, keep it.
5506 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5508 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5509 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5510 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5511 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5512 * remote.c (_initialize_remote): Register
5513 async_remote_interrupt_twice directly as
5514 sigint_remote_twice_token event.
5516 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5518 * target.h (enum inferior_event_type): Delete INF_ERROR.
5519 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5521 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5523 * interps.c (interp_set): Don't cancel continuations.
5525 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5527 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5529 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5531 * continuations.h (continuation_ftype): Add `err' parameter.
5532 Document parameters.
5533 (do_all_continuations, do_all_continuations_thread)
5534 (do_all_intermediate_continuations)
5535 (do_all_intermediate_continuations_thread)
5536 (do_all_inferior_continuations): Add `err' parameter.
5537 * continuations.c (do_my_continuations_1, do_my_continuations)
5538 (do_all_inferior_continuations, do_all_continuations_ptid)
5539 (do_all_continuations_thread_callback)
5540 (do_all_continuations_thread, do_all_continuations)
5541 (do_all_intermediate_continuations_thread_callback)
5542 (do_all_intermediate_continuations_thread)
5543 (do_all_intermediate_continuations): Add `err' parameter, and pass
5544 it down all the way to the continuations proper.
5545 * inf-loop.c (inferior_event_handler): If fetching an inferior
5546 event throws an error, don't pop the target, and still call the
5547 continuations, but with `err' set. Adjust all other continuation
5549 * breakpoint.c (until_break_command_continuation): Add `err'
5551 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5552 issue another step if `err' is set.
5553 (struct until_next_continuation_args): New.
5554 (until_next_continuation): Add `err' parameter. Adjust.
5555 (until_next_command): Adjust.
5556 (struct finish_command_continuation_args): Add `thread' field.
5557 (finish_command_continuation): Add `err' parameter. Handle it.
5558 (finish_forward): Adjust.
5559 (attach_command_continuation): Add `err' parameter. Handle it.
5560 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5561 cancel the continuations.
5562 * interps.c (interp_set): Adjust to cancel the continuations.
5563 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5564 continuations rather than discarding.
5565 (free_thread): Don't clear thread inferior resources here.
5566 (delete_thread_1): Do it here instead. And do it before removing
5567 the thread from the threads list. Tag the thread as exited before
5568 clearing thread inferior resources.
5570 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5572 * infcall.c (call_function_by_hand): Rephrase error message.
5574 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5576 * defs.h (struct thread_info, struct inferior): Delete forward
5578 * breakpoint.h (struct thread_info): New forward declaration.
5579 * observer.sh (struct inferior): New forward declaration.
5580 * python/python-internal.h (struct inferior): New forward
5583 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5585 * defs.h (struct continuation, continuation_ftype)
5586 (continuation_free_arg_ftype, add_continuation)
5587 (do_all_continuations, do_all_continuations_thread)
5588 (discard_all_continuations, discard_all_continuations_thread)
5589 (add_intermediate_continuation, do_all_intermediate_continuations)
5590 (do_all_intermediate_continuations_thread)
5591 (discard_all_intermediate_continuations)
5592 (discard_all_intermediate_continuations_thread)
5593 (add_inferior_continuation, do_all_inferior_continuations)
5594 (discard_all_inferior_continuations): Move to ...
5595 * continuations.h: ... this new file.
5596 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5597 infcmd.c, inferior.c, infrun.c, interps.c: Include
5600 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5601 Doug Evans <dje@google.com>
5603 Fix PR 10970, PR 12702.
5604 * linux-nat.c (linux_lwp_is_zombie): New function.
5605 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5606 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5608 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5610 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5612 (add_continuation, add_intermediate_continuation)
5613 (add_inferior_continuation): Use them.
5614 * continuations.c (struct continuation): Use them.
5615 (make_continuation_ftype): Delete.
5616 (make_continuation, add_inferior_continuation, add_continuation)
5617 (add_intermediate_continuation): Use continuation_ftype and
5618 continuation_free_arg_ftype. Rename parameters to shorter names.
5620 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5622 * continuations.c (make_continuation): Make it return void.
5623 (do_my_continuations): Rename to ...
5624 (do_my_continuations_1): ... this. Remove old_chain parameter and
5626 (do_my_continuations): New.
5627 (discard_my_continuations): Rename to ...
5628 (discard_my_continuations_1): ... this. Remove old_chain
5629 parameter and adjust.
5630 (discard_my_continuations): New.
5631 (add_inferior_continuation): Simplify.
5632 (do_all_inferior_continuations): Reimplement on top
5633 do_my_continuations.
5634 (discard_all_inferior_continuations): Simplify.
5635 (add_continuation): Simplify.
5636 (do_all_continuations_ptid): Simplify.
5637 (discard_all_continuations_thread_callback): Simplify.
5638 (add_intermediate_continuation): Simplify.
5639 (discard_all_intermediate_continuations_thread_callback):
5642 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5644 * utils.c (struct continuation, add_continuation)
5645 (add_inferior_continuation)
5646 (do_all_inferior_continuations, discard_all_inferior_continuations)
5647 (restore_thread_cleanup, do_all_continuations_ptid)
5648 (do_all_continuations_thread_callback)
5649 (do_all_continuations_thread, do_all_continuations)
5650 (discard_all_continuations_thread_callback)
5651 (discard_all_continuations_thread, discard_all_continuations)
5652 (add_intermediate_continuation)
5653 (do_all_intermediate_continuations_thread_callback)
5654 (do_all_intermediate_continuations_thread)
5655 (do_all_intermediate_continuations)
5656 (discard_all_intermediate_continuations_thread_callback)
5657 (discard_all_intermediate_continuations_thread)
5658 (discard_all_intermediate_continuations): Move to ...
5659 * continuations.c: ... this new file, and adjust to no longer
5660 implement continuations on top of cleanups.
5661 * Makefile.in (SFILES): Add continuations.c.
5662 (COMMON_OBS): Add continuations.o.
5664 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5666 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5667 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5668 Internal error on invalid values.
5669 * reverse.c: Don't handle EXEC_ERROR.
5670 * mi/mi-main.c: Don't handle EXEC_ERROR.
5672 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5674 * record.c: Include event-loop.h, inf-loop.h.
5675 (record_beneath_to_async): New global.
5676 (tmp_to_async): New global.
5677 (record_async_inferior_event_token): New global.
5678 (record_open_1): Don't error out if async is enabled.
5679 (record_open): Handle to_async. Create an async event source in
5681 (record_close): Delete the async event source.
5682 (record_resumed): New global.
5683 (record_execution_dir): New global.
5684 (record_resume, record_core_resume): Set them. Register the
5685 target on the event loop.
5686 (record_wait): Rename to ...
5687 (record_wait_1): ... this. Add more debug output. Handle
5688 TARGET_WNOHANG, and the target beneath returning
5689 TARGET_WAITKIND_IGNORE.
5690 (record_wait): Reimplement on top of record_wait_1.
5691 (record_async_mask_value): New global.
5692 (record_async, record_async_mask, record_can_async_p)
5693 (record_is_async_p, record_execution_direction): New functions.
5694 (init_record_ops, init_record_core_ops): Install new methods.
5695 * infrun.c (fetch_inferior_event): Temporarily switch the global
5696 execution direction to the direction the target was going.
5697 (execution_direction): Change type to int.
5698 * target.c (default_execution_direction): New function.
5699 (update_current_target): Inherit and de_fault
5700 to_execution_direction.
5701 * target.h (struct target_ops) <to_execution_direction>: New
5703 (target_execution_direction): New macro.
5704 * inferior.h (execution_direction): Change type to int.
5706 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5708 * infcall.c (call_function_by_hand): Don't allow calling functions
5709 in reverse execution mode.
5711 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5713 * infcmd.c (finish_command): Allow async finish in reverse.
5715 2011-05-26 Yao Qi <yao@codesourcery.com>
5717 * gdb_thread_db.h: Delete. Move to ...
5718 * common/gdb_thread_db.h: ... here.
5720 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5722 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5723 function's entry point instead of a manually managed momentary
5724 breakpoint, and only ever issue one proceed call.
5725 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5726 doing a reverse-finish, switch to stepi mode, to do another step.
5727 (insert_step_resume_breakpoint_at_sal): Make public.
5728 (normal_stop): No need to save function value return registers if
5730 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5732 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5734 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5735 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5736 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5738 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5739 step-resume breakpoints.
5740 (print_it_typical): Handle bp_hp_step_resume.
5741 (bpstat_what): Ditto.
5742 (bptype_string): Ditto.
5743 (print_one_breakpoint_location): Ditto.
5744 (allocate_bp_location): Ditto.
5746 (breakpoint_re_set_one): Ditto.
5747 * infrun.c (handle_inferior_event): Adjust. Split
5748 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5749 BPSTAT_WHAT_HP_STEP_RESUME.
5750 (insert_step_resume_breakpoint_at_sal): Rename to ...
5751 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5752 parameter. Handle it.
5753 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5754 insert_step_resume_breakpoint_at_sal_1.
5755 (insert_step_resume_breakpoint_at_frame): Rename to ...
5756 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5757 set a high-priority step-resume breakpoint.
5758 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5759 (insert_step_resume_breakpoint_at_caller): Ditto.
5761 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5763 * breakpoint.c (iterate_over_related_breakpoints): New.
5764 (do_map_delete_breakpoint): New.
5765 (delete_command): Pass do_map_delete_breakpoint to
5766 map_breakpoint_numbers.
5767 (do_disable_breakpoint): New.
5768 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5770 (do_enable_breakpoint): Rename to ...
5771 (enable_breakpoint_disp): ... this.
5772 (enable_breakpoint): Adjust.
5773 (do_enable_breakpoint): New.
5774 (enable_once_breakpoint): Delete.
5775 (do_map_enable_breakpoint): New.
5776 (do_map_enable_once_breakpoint): New.
5777 (enable_once_command, enable_delete_command)
5778 (delete_trace_command): Iterate over the breakpoint's related
5781 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5783 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5784 for ALPHA_ZERO_REGNUM.
5785 (alpha_supply_int_regs): Explicitly supply zero as the value for
5786 ALPHA_ZERO_REGNUM in the register cache.
5787 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5789 2011-05-26 Yao Qi <yao@codesourcery.com>
5791 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5793 2011-05-26 Tristan Gingold <gingold@adacore.com>
5795 * symfile.h (struct dwarf2_section_names): New type.
5796 (struct dwarf2_debug_sections): New type.
5797 (dwarf2_has_info): Add parameter.
5798 * dwarf2read.c (dwarf2_elf_names): New variable.
5799 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5800 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5801 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5802 (dwarf2_has_info): Add names parameter. Pass names
5803 to dwarf2_locate_sections.
5804 (section_is_p): Rewrite using the names parameter.
5805 (dwarf2_locate_sections): Use section names from the names parameter.
5806 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5807 * elfread.c (read_psyms): Ditto.
5808 * machoread.c (macho_symfile_read): Ditto.
5810 2011-05-25 Andreas Schwab <schwab@redhat.com>
5813 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5815 2011-05-24 Keith Seitz <keiths@redhat.com>
5818 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5819 (decode_compound): Unconditionally call keep_name_info.
5821 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5823 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5824 scope, clear its command list.
5825 (map_breakpoint_numbers): Don't walk the related breakpoints list
5828 2011-05-24 Tom Tromey <tromey@redhat.com>
5830 * MAINTAINERS: Move Jim Blandy to past maintainers.
5832 2011-05-24 Tristan Gingold <gingold@adacore.com>
5834 * symfile.h (enum dwarf2_section_enum): New type.
5835 (dwarf2_get_section_info): New prototype.
5836 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5837 section_name by sect. Use a switch to select the info.
5838 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5839 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5841 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5843 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5844 shared library event breakpoint if there's no execution.
5846 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5848 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5849 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5851 2011-05-23 Tom Tromey <tromey@redhat.com>
5853 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5856 2011-05-23 Doug Evans <dje@google.com>
5858 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5859 entry for RuntimeError to doc string.
5861 2011-05-23 Jerome Guitton <guitton@adacore.com>
5863 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5864 sequence for probing loops.
5866 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5868 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5871 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5873 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5874 zero as the value for %g0 in the register cache.
5875 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5876 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5878 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5880 * infrun.c (proceed): Set previous_inferior_ptid here.
5881 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5882 inferior_ptid, not null_ptid.
5883 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5884 (fetch_inferior_event): Nor here.
5886 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5888 * inf-loop.c (inferior_event_handler): Only output a message if
5891 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5893 * MAINTAINERS: Update my e-mail address.
5895 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5897 * infrun.c (proceed): Switch the inferior event loop to
5898 INF_EXEC_COMPLETE if the target refused to resume from a
5901 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5903 * infcmd.c: Include "inf-loop.h".
5904 (step_once): When stepping into an inline subroutine, pretend the
5905 target has run. If the target can async, switch the inferior
5906 event loop to INF_EXEC_COMPLETE.
5907 * inferior.h (user_visible_resume_ptid): Declare.
5908 * infrun.c (user_visible_resume_ptid): New function, factored out
5911 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5912 that the current thread is running. Merge async and sync
5915 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5917 * infcmd.c (step_1): Simplify synchronous case.
5919 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5921 * tracepoint.c: Include exceptions.h.
5922 (TFILE_PID): Move higher in file.
5923 (tfile_open): Delay pushing the tfile target until we're assured
5924 the tfile header is present in the file. Wrap reading the initial
5925 newline-terminated lines in TRY_CATCH. Pop the target if the
5926 initial setup failed. Add the tfile's thread immediately
5927 aftwards, before any non-essential setup. Don't skip
5928 post_create_inferior if there are no traceframes present in the
5930 (tfile_close): Remove redundant check for null before xfree call.
5931 (tfile_thread_alive): New function.
5932 (init_tfile_ops): Register it as to_thread_alive callback.
5934 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5936 * tracepoint.c (tfile_open): Delete #if 0'd code.
5938 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5940 Fix -readnow for -gdwarf-4 unused type units.
5941 * dwarf2read.c (struct signatured_type): Remove the field offset.
5942 (create_signatured_type_table_from_index): Remove its initialization.
5943 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5944 instead. Add a complaint call.
5945 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5946 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5947 (lookup_signatured_type_at_offset, read_signatured_type)
5948 (write_one_signatured_type): Update the field for per_cu.
5950 2011-05-19 Tom Tromey <tromey@redhat.com>
5952 * python/py-inferior.c (python_inferior_exit): Use
5954 (python_on_resume): Likewise.
5956 2011-05-19 Matt Rice <ratmice@gmail.com>
5958 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5960 2011-05-19 Hui Zhu <teawater@gmail.com>
5962 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5964 2011-05-19 Hui Zhu <teawater@gmail.com>
5966 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5968 2011-05-18 Tom Tromey <tromey@redhat.com>
5970 * dwarf2read.c (dwarf2_add_field): Constify.
5971 * value.c (value_static_field): Constify.
5972 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5974 * ax-gdb.c (gen_static_field): Constify
5976 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5978 * linux-nat.c (kill_callback): Use SIGKILL first.
5980 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5982 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5984 2011-05-18 Tom Tromey <tromey@redhat.com>
5986 * value.c (value_fn_field): Constify.
5987 * symtab.c (gdb_mangle_name): Constify.
5988 * stabsread.c (update_method_name_from_physname): Make 'physname'
5990 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5991 const. Use explicit fputc_filtered loop.
5992 (pascal_type_print_base): Constify.
5993 * p-lang.h (pascal_type_print_method_args): Update.
5994 * linespec.c (add_matching_methods): Constify.
5995 (add_constructors): Likewise.
5996 * jv-typeprint.c (java_type_print_base): Constify.
5997 * gdbtypes.h (struct cplus_struct_type)
5998 <fn_fieldlist.fn_field.physname>: Now const.
5999 * dwarf2read.c (compute_delayed_physnames): Constify.
6000 (dwarf2_add_member_fn): Likewise.
6001 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6003 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6005 * infrun.c (resume): Mention which is the current thread, and its
6006 current PC in debug output.
6007 (prepare_to_proceed): Mention the thread switching in debug
6010 2011-05-18 Tom Tromey <tromey@redhat.com>
6012 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6013 path check. Use xmalloc and cleanups.
6014 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6016 2011-05-17 Tom Tromey <tromey@redhat.com>
6018 * cp-valprint.c (cp_print_value_fields): Catch errors from
6021 2011-05-17 Tom Tromey <tromey@redhat.com>
6023 * dwarf2read.c (dwarf2_get_die_type): Call
6024 get_die_type_at_offset.
6025 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6026 get_base_type function.
6028 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6030 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6033 2011-05-16 Doug Evans <dje@google.com>
6035 * python/py-auto-load.c (source_section_scripts): Mention objfile
6038 2011-05-15 Doug Evans <dje@google.com>
6040 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6041 (try_thread_db_load_from_pdir): Call it. If unable to find
6042 libthread_db in directory of libpthread, see if we're looking at
6043 the separate-debug-info copy.
6045 * python/py-autoload.c (print_script): Print "Missing" instead of
6046 "No" for missing scripts.
6047 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6049 2011-05-13 Doug Evans <dje@google.com>
6051 * ui-file.c (stdio_file_write_async_safe): Add comment.
6053 2011-05-14 Hui Zhu <teawater@gmail.com>
6055 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6057 2011-05-13 Doug Evans <dje@google.com>
6059 Support $pdir and $sdir in libthread-db-search-path.
6060 * NEWS: Mention $sdir,$pdir.
6061 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6062 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6063 (try_thread_db_load_from_sdir): New function.
6064 (try_thread_db_load_from_dir): New function.
6065 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6066 system directories if search of libthread-db-search-path fails,
6067 that is now done via $sdir.
6068 (has_libpthread): New function.
6069 (thread_db_load): Remove search for libthread_db in directory of
6070 libpthread, that is now done via $pdir.
6072 * NEWS: Mention "info auto-load-scripts".
6073 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6074 script_not_found_warning_printed.
6075 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6076 all callers updated. Initialize script_not_found_warning_printed.
6077 (get_auto_load_pspace_data_for_loading): New function.
6078 (maybe_add_script): New function.
6079 (source_section_scripts): Simplify. Only print one warning regardless
6080 of the number of auto-load scripts not found.
6081 (clear_section_scripts): Clear script_not_found_warning_printed.
6082 (auto_load_objfile_script): Record script in hash table.
6083 (count_matching_scripts): New function.
6084 (maybe_print_script): Renamed from maybe_print_section_script, all
6085 callers updated. Rewrite to use ui_out_*.
6086 (info_auto_load_scripts): Renamed from
6087 maintenance_print_section_scripts, all callers updated.
6088 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6089 renamed as "info auto-load-scripts".
6091 2011-05-13 Tom Tromey <tromey@redhat.com>
6093 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6094 (read_sleb128): Likewise.
6096 2011-05-13 Tom Tromey <tromey@redhat.com>
6098 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6101 2011-05-13 Doug Evans <dje@google.com>
6103 * linux-nat.c (debug_linux_nat_async): Delete.
6104 Replace all references to use debug_linux_nat instead.
6105 (show_debug_linux_nat_async): Delete.
6106 (sigchld_handler): Call ui_file_write_async_safe instead of
6108 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6109 * ui-file.c (struct ui_file): New member to_write_async_safe.
6110 (null_file_write_async_safe): New function.
6111 (ui_file_write_async_safe): New function.
6112 (set_ui_file_write_async_safe): New function.
6113 (ui_file_new): Initialize to_write_async_safe.
6114 (stdio_file_write_async_safe): New function.
6115 (struct stdio_file): New member fd.
6116 (stdio_file_new): Initialize to_write_async_safe, fd.
6117 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6119 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6120 (set_ui_file_write_async_safe): Declare.
6121 (ui_file_write_async_safe): Declare.
6123 2011-05-13 Tom Tromey <tromey@redhat.com>
6125 * utils.c (do_value_free): New function.
6126 (make_cleanup_value_free): Likewise.
6127 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6129 (dwarf2_loc_desc_needs_frame): Call
6130 make_cleanup_value_free_to_mark.
6131 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6132 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6134 (new_dwarf_expr_context): Don't call value_mark.
6135 * dwarf2-frame.c (execute_stack_op): Call
6136 make_cleanup_value_free_to_mark.
6137 * defs.h (make_cleanup_value_free): Declare.
6139 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6141 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6142 prepare_execute_command.
6143 * top.c (prepare_execute_command): Return cleanup.
6144 (execute_command): Use cleanup from prepare_execute_command.
6145 * top.h (prepare_execute_command): Change prototype to return
6147 * defs.h (struct value): Add opaque declaration.
6148 (make_cleanup_value_free_to_mark): Add prototype.
6149 * utils.c (do_value_free_to_mark): New function.
6150 (make_cleanup_value_free_to_mark): Likewise.
6152 2011-05-12 Tom Tromey <tromey@redhat.com>
6154 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6155 cast left-hand-side to unsigned.
6157 2011-05-12 Tom Tromey <tromey@redhat.com>
6160 * value.h (value_from_contents): Declare.
6161 * value.c (value_from_contents): New function.
6162 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6163 (dwarf2_get_die_type): New function.
6164 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6165 (allocate_piece_closure): Acquire reference to values.
6166 (read_pieced_value): Update for value-based expressions.
6167 (write_pieced_value): Likewise.
6168 (free_pieced_value_closure): Call value_free as needed.
6169 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6170 Update for value-based expressions.
6171 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6172 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6173 <get_base_type>: New field.
6174 (struct dwarf_expr_piece) <v.value>: Change type.
6175 <v.regno>: New field.
6176 (struct dwarf_expr_context) <mark>: New field.
6177 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6178 (dwarf_expr_pop, dwarf_expr_push): Remove.
6179 (dwarf_expr_push_address): Declare.
6180 * dwarf2expr.c (dwarf_arch_cookie): New global.
6181 (struct dwarf_gdbarch_types): New.
6182 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6184 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6186 (dwarf_expr_push_address): New function.
6187 (dwarf_expr_pop): Now static.
6188 (dwarf_expr_fetch): Change return type.
6189 (dwarf_require_integral): New function.
6190 (dwarf_expr_fetch): Simplify.
6191 (add_piece): Update.
6192 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6194 (execute_stack_op) <sign_ext>: Remove.
6195 Use values for DWARF stack.
6196 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6197 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6199 (_initialize_dwarf2expr): New function.
6200 (add_piece): Update.
6201 (new_dwarf_expr_context): Set new field.
6202 (free_dwarf_expr_context): Call value_free_to_mark.
6203 * dwarf2-frame.c (no_base_type): New function.
6204 (execute_stack_op): Set get_base_type field. Update.
6206 2011-05-12 Tom Tromey <tromey@redhat.com>
6208 * dwarf2read.c (read_common_block): Fix formatting.
6210 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6212 * breakpoint.c (disable_breakpoint): Disable all locations
6213 associated with a tracepoint on target if a trace experiment is
6215 (disable_command): Disable a specific tracepoint location on target if
6216 a trace experiment is running.
6217 (do_enable_breakpoint): Enable all locations associated with a
6218 tracepoint on target if a trace experiment is running.
6219 (enable_command) Enable a specific tracepoint location on target if a
6220 trace experiment is running.
6221 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6222 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6223 to_disable_tracepoint.
6224 * target.h: Add declaration of struct bp_location.
6225 (struct target_ops): Add new functions
6226 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6227 to_disable_tracepoint to target operations.
6228 (target_supports_enable_disable_tracepoint): New macro.
6229 (target_enable_tracepoint): New macro.
6230 (target_disable_tracepoint): New macro.
6231 * remote.c (struct remote_state): Add new field.
6232 (remote_enable_disable_tracepoint_feature): New.
6233 (remote_protocol_features): Add new entry.
6234 (remote_supports_enable_disable_tracepoint): New.
6235 (remote_enable_tracepoint): New.
6236 (remote_disable_tracepoint): New.
6237 (init_remote_ops): Add remote_enable_tracepoint,
6238 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6239 to remote operations.
6240 * tracepoint.c (start_tracing): Allow tracing to start without any
6241 tracepoints enabled with just a warning if they can be re-enabled
6243 * NEWS: Add news item for the new behaviour of the enable and disable
6244 GDB commands when applied to tracepoints.
6245 Add news items for the new remote packets QTEnable and QTDisable.
6247 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6249 * config.in: Regenerate.
6250 * configure: Regenerate.
6251 * configure.ac <--with-system-readline> (for readline_echoing_p):
6253 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6254 (tui_old_rl_echoing_p): ... here.
6255 (tui_setup_io): Rename extern declaration readline_echoing_p to
6256 _rl_echoing_p. Adjust assignments for the both renames.
6258 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6260 * symtab.c (lookup_symtab): Run cleanup before returning.
6262 2011-05-11 Tom Tromey <tromey@redhat.com>
6264 * dwarf2read.c (handle_data_member_location): New function.
6265 (dwarf2_add_field): Use it.
6266 (read_common_block): Likewise.
6268 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6270 Make addrs->SECTINDEX always defined.
6271 * symfile.c (relative_addr_info_to_section_offsets): Check for
6272 SECTINDEX -1, not for zero ADDR.
6273 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6274 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6275 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6278 2011-05-10 Doug Evans <dje@google.com>
6280 * linux-thread-db.c: Whitespace cleanup.
6281 (try_thread_db_load_1): Fix comment.
6283 * linux-thread-db.c (set_libthread_db_search_path): New function.
6284 (_initialize_thread_db): Add setter for libthread-db-search-path.
6286 2011-05-09 Doug Evans <dje@google.com>
6288 * NEWS: Mention --with-iconv-bin.
6289 * configure.ac: New option --with-iconv-bin.
6290 * configure: Regenerate.
6291 * config.in: Regenerate.
6292 * defs.h (relocate_gdb_directory): Declare.
6293 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6294 removed progname parameter, and exported. All callers updated.
6295 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6297 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6298 adding missing call to restore_child_signals_mask.
6300 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6302 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6304 * infrun.c (proceed, start_remote): Adjust.
6305 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6306 and adjust to not handle it.
6307 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6308 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6309 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6310 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6311 * windows-nat.c (do_initial_windows_stuff): Adjust.
6312 * infcmd.c (attach_command): Adjust.
6313 (notice_new_inferior): Adjust.
6315 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6317 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6318 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6319 * spu-tdep.c (op_selb): Use correct value.
6321 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6323 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6324 "parent" parameter to symbol_file_add_from_bfd call.
6326 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6327 Thiago Jung Bauermann <bauerman@br.ibm.com>
6329 Implement support for PowerPC BookE masked watchpoints.
6330 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6332 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6333 method. Initialize to NULL in all existing breakpoint_ops instances.
6334 (struct breakpoint) <hw_wp_mask>: New field.
6335 * breakpoint.c (is_masked_watchpoint): Add prototype.
6336 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6337 breakpoint's breakpoint_ops.works_in_software_mode if available.
6338 (watchpoints_triggered): Handle the case of a hardware masked
6340 (watchpoint_check): Likewise.
6341 (works_in_software_mode_watchpoint): New function.
6342 (insert_masked_watchpoint, remove_masked_watchpoint)
6343 (resources_needed_masked_watchpoint)
6344 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6345 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6346 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6348 (masked_watchpoint_breakpoint_ops): New structure.
6349 (watch_command_1): Check for the existence of the `mask' parameter.
6350 Set b->ops according to the type of hardware watchpoint being created.
6351 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6352 (ppc_linux_remove_mask_watchpoint)
6353 (ppc_linux_masked_watch_num_registers): New functions.
6354 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6355 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6356 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6357 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6358 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6359 (target_masked_watch_num_registers): New functions.
6360 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6361 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6363 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6364 (target_masked_watch_num_registers): Add prototypes.
6366 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6369 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6370 (producer_is_gcc_ge_4_0): New function.
6371 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6372 symtab->language code.
6373 (var_decode_location): Set cu->has_loclist.
6374 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6375 skip. Intialize force_skip from locations_valid. Move the prologue
6376 skipping code into two passes.
6377 * symtab.h (struct symtab): Make the primary field a bitfield. New
6378 field locations_valid.
6380 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6383 (classify_inner_name): Call cp_lookup_nested_type with
6385 * cp-namespace.c (cp_lookup_nested_type): New variable
6386 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6387 type_name_no_tag_or_error with saved_parent_type.
6388 * dwarf2read.c (load_partial_dies): Read in any children of
6389 DW_TAG_typedef with complaint in such case.
6390 * gdbtypes.c (type_name_no_tag_or_error): New function.
6391 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6392 * valops.c (destructor_name_p): New comment for parameter type. Remove
6393 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6394 * value.h (destructor_name_p): Remove type const.
6396 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 * symtab.c (compare_symbol_name): New function.
6399 (completion_list_add_name, expand_partial_symbol_name): Call it,
6400 remove the variable ncmp.
6401 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6404 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6406 Demote to sw watchpoint only in update_watchpoint.
6407 * breakpoint.c (update_watchpoint): Change between software and
6408 hardware watchpoint for all kinds of watchpoints, not just
6409 read/write ones. Determine b->exact value here instead of
6410 in watch_command_1. Error out if there are not enough resources
6411 for a read or access hardware watchpoint.
6412 (watch_command_1): Remove logic of checking whether there are
6413 enough resources available, since update_watchpoint will do that
6414 work now. Don't set b->exact here. Catch exceptions thrown by
6415 update_watchpoint and delete the watchpoint.
6416 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6417 Use target_exact_watchpoints instead.
6418 (delete_breakpoint): Notify observers only if deleted watchpoint
6419 has a breakpoint number assigned to it.
6421 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6423 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6425 2011-05-05 Jerome Guitton <guitton@adacore.com>
6427 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6429 (i386_stack_tramp_frame_unwind): New static global.
6430 (i386_match_pattern): New function, extracted from i386_match_insn.
6431 (i386_match_insn): Use i386_match_pattern.
6432 (i386_match_insn_block): New function.
6433 (i386_tramp_chain_in_reg_insns)
6434 (i386_tramp_chain_on_stack_insns): New static variables.
6435 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6438 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6440 * configure.host (xscale*): Don't handle target.
6441 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6444 2011-05-04 Yao Qi <yao@codesourcery.com>
6446 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6448 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6451 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6452 | * elfread.c (elf_symtab_read): Stop memory leak.
6454 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6456 * nto-tdep.c (nto_target): Replace deprecated call to
6457 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6459 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 Fix false GCC warning.
6462 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6464 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466 * breakpoint.c (update_watchpoint): Move code to change
6467 the enable state of breakpoint from here ...
6468 (do_enable_breakpoint): ... to here.
6470 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6472 * valprint.c (val_print_array_elements): Fixed poor performance
6473 of printing very large arrays with repeat_count_threshold set
6474 to unlimited. New comment.
6476 2011-04-29 Tom Tromey <tromey@redhat.com>
6478 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6479 (mi_parse): Likewise.
6480 * breakpoint.c (break_range_command): Use sizeof char*, not
6482 (create_breakpoint): Likewise.
6483 (parse_breakpoint_sals): Likewise.
6485 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6487 * linux-nat.c (linux_child_remove_fork_catchpoint)
6488 (linux_child_remove_vfork_catchpoint)
6489 (linux_child_remove_exec_catchpoint): New functions.
6490 (linux_target_install_ops): Install them.
6492 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6496 * varobj.c (install_default_visualizer): Do not install a
6497 visualizer if the varobj is CPLUS_FAKE_CHILD.
6498 (construct_visualizer): Likewise.
6500 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6502 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6503 case insensitive comparison.
6505 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6507 * infrun.c (proceed): Revert previous change.
6508 (resume): Instead, handle the case of signal delivery while stepping
6509 off a breakpoint location here, and only if software single-stepping
6510 is used. Handle nested signals.
6512 2011-04-28 Yao Qi <yao@codesourcery.com>
6514 * arm-tdep.c (copy_unmodified): Rename to ...
6515 (arm_copy_unmodified): .. this. New.
6516 (copy_preload): Move common part to ...
6517 (install_preload): .. this. New.
6518 (arm_copy_preload): New.
6519 (copy_preload_reg): Move common part to ...
6520 (install_preload_reg): ... this. New.
6521 (arm_copy_preload_reg): New.
6522 (copy_b_bl_blx): Move common part to ...
6523 (install_b_bl_blx): .. this. New.
6524 (arm_copy_b_bl_blx): New.
6525 (copy_bx_blx_reg): Move common part to ...
6526 (install_bx_blx_reg): ... this. New.
6527 (arm_copy_bx_blx_reg): New.
6528 (copy_alu_reg): Move common part to ...
6529 (install_alu_reg): ... this. New.
6530 (arm_copy_alu_reg): New.
6531 (copy_alu_shifted_reg): Move common part to ...
6532 (install_alu_shifted_reg): ... this. New.
6533 (copy_ldr_str_ldrb_strb): Move common part to ...
6534 (install_ldr_str_ldrb_strb): ... this. New.
6535 (arm_copy_ldr_str_ldrb_strb): New.
6536 (copy_copro_load_store): Move some common part to ...
6537 (install_copy_copro_load_store): ... this. New.
6538 (arm_copy_copro_load_store): New.
6540 (arm_copy_svc): Renamed from copy_svc.
6541 (copy_undef): Delete.
6542 (arm_copy_undef): Renamed from copy_undef.
6543 (decode_ext_reg_ld_st): Delete.
6544 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6545 (decode_svc_copro): Delete.
6546 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6547 (copy_copro_load_store, copy_alu_imm): update callers.
6548 (copy_extra_ld_st, copy_block_xfer): Likewise.
6549 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6550 (decode_miscellaneous, decode_dp_misc): Likewise.
6551 (decode_ld_st_word_ubyte, decode_media): Likewise.
6552 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6553 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6554 (decode_unconditional, decode_miscellaneous): Likewise.
6555 (decode_media, decode_b_bl_ldmstm): Likewise.
6556 (arm_process_displaced_insn): Likewise..
6557 (decode_misc_memhint_neon): Delete.
6558 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6559 (decode_miscellaneous): Delete.
6560 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6561 (decode_dp_misc): Delete.
6562 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6563 (decode_ld_st_word_ubyte): Delete.
6564 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6565 (decode_media): Delete.
6566 (arm_decode_media): Renamed from decode_media.
6567 (decode_b_bl_ldmstm): Delete.
6568 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6569 (decode_ext_reg_ld_st): Delete.
6570 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6571 (decode_unconditional): Delete.
6572 (arm_decode_unconditional): Renamed from decode_unconditional.
6574 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6576 Case insensitive lookups implementation.
6577 * dwarf2read.c: Include ctype.h.
6578 (struct mapped_index): New field version.
6579 (mapped_index_string_hash): New parameter index_version. New comment
6580 for it. Call tolower appropriately.
6581 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6582 Choose the right index version for mapped_index_string_hash.
6583 (dwarf2_read_index): Support also the index version 5. Initialize the
6584 new struct mapped_index field version.
6585 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6586 (find_slot): Explain the version needs. Pass INT_MAX for the new
6588 (write_psymtabs_to_index): Produce version 5.
6589 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6590 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6591 * psymtab.c (lookup_partial_symbol): Find the
6592 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6594 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6596 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6597 (completion_list_add_name): New variable ncmp, initialize it, use it.
6598 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6599 * utils.c (strcmp_iw): Support case_sensitive_off.
6600 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6601 New function comment part. New variables saved_string1,
6602 saved_string2 and case_pass. Add a proper second pass.
6604 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 Replace re_comp/re_exec by regcomp/regexec.
6607 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6608 (search_symbols_name_matches): Use them, use regexec.
6609 (search_symbols): New variable retval_chain, adjust the use of
6610 old_chain against it. Replace re_comp by regcomp. Use the new struct
6611 search_symbols_data fields, use regexec instead of re_exec.
6613 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6615 Format the code for the next patch.
6616 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6617 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6618 New variables c1 and c2.
6620 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6622 * infrun.c (proceed): Do not single-step into signal delivery
6623 when stepping off a breakpoint location.
6624 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6625 (insert_step_resume_breakpoint_at_caller): Likewise.
6626 (insert_step_resume_breakpoint_at_sal): Likewise.
6627 (insert_longjmp_resume_breakpoint): Likewise.
6629 2011-04-27 Yao Qi <yao@codesourcery.com>
6631 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6633 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6635 * procfs.c (procfs_pass_signals): Fix advance declaration.
6637 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6639 * target.h (struct target_ops): Remove to_notice_signals;
6640 add to_pass_signals.
6641 (target_notice_signals): Remove.
6642 (target_pass_signals): Add prototype.
6643 * target.c (update_current_target): Remove to_notice_signals;
6644 mention to_pass_signals.
6645 (target_pass_signals): New function.
6646 (debug_to_notice_signals): Remove.
6647 (setup_target_debug): Do not install debug_to_notice_signals.
6649 * infrun.c (signal_pass): New global.
6650 (resume): Call target_pass_signals.
6651 (handle_inferior_event): Report all signals while stepping over
6652 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6653 are re-inserted when stepping over a signal handler.
6654 (signal_cache_update): New function.
6655 (signal_stop_update): Call it.
6656 (signal_print_update): Likewise.
6657 (signal_pass_update): Likewise.
6658 (handle_command): Call signal_cache_update and target_pass_signals
6659 instead of target_notice_signals.
6660 (_initialize_infrun): Initialize signal_pass.
6662 * linux-nat.c (pass_mask): New global.
6663 (linux_nat_pass_signals): New function.
6664 (linux_nat_create_inferior): Report all signals initially.
6665 (linux_nat_attach): Likewise.
6666 (linux_nat_resume): Use pass_mask to decide whether to directly
6667 handle an inferior signal.
6668 (linux_nat_wait_1): Likewise.
6669 (linux_nat_add_target): Install to_pass_signals callback.
6671 * nto-procfs.c (notice_signals): Remove.
6672 (procfs_resume): Do not call notice_signals.
6673 (procfs_notice_signals): Remove.
6674 (procfs_pass_signals): New function.
6675 (init_procfs_ops): Install to_pass_signals callback instead of
6676 to_notice_signals callback.
6677 (_initialize_procfs): Report all signals initially.
6679 * procfs.c (procfs_notice_signals): Remove.
6680 (procfs_pass_signals): New function.
6681 (procfs_target): Install to_pass_signals callback instead of
6682 to_notice_signals callback.
6683 (register_gdb_signals): Remove.
6684 (procfs_debug_inferior): Report all signals initially.
6685 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6687 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6688 parameters; use them instead of calling signal_..._state routines.
6689 (remote_notice_signals): Remove.
6690 (remote_start_remote): Report all signals initially.
6691 (remote_resume): Do not call remote_pass_signals.
6692 (_initialize_remote): Install to_pass_signals callback instead of
6693 to_notice_signals callback.
6695 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6697 * breakpoint.c (user_settable_breakpoint): Delete.
6698 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6699 (delete_command): Check user_breakpoint_p instead of looking at
6700 the breakpoint's type.
6701 (disable_command): Ditto.
6702 (enable_command): Ditto.
6703 (delete_trace_command): Use user_breakpoint_p instead of looking
6704 at the breakpoint number directly. When checking if there are
6705 user visible tracepoints, in order to know whether to ask the user
6706 for confirmation, check whether the breakpoint is actually a
6709 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6711 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6714 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6716 MI breakpoint notifications.
6718 * annotate.c (breakpoint_changed): Adjust parameter type.
6719 * breakpoint.c (set_breakpoint_condition): Adjust to change
6720 in breakpoint_modified type.
6721 (breakpoint_set_commands): Likewise.
6722 (do_map_commands_command): Likewise.
6723 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6724 changed after bumping hit count.
6725 (bpstat_stop_status): Likewise.
6726 (print_one_breakpoint_location): Don't wrap in tuple here.
6727 (print_one_breakpoint): Always print individual locations.
6728 For locations, use unnamed tuple.
6729 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6731 (create_catchpoint, create_syscall_event_catchpoint): Call
6732 breakpoint_created obsever.
6733 (mention): Don't call breakpoint_created observer.
6734 (create_breakpoint_sal): Call breakpoint_created observer.
6735 (create_breakpoint, watch_command_1): Likewise.
6736 (create_ada_exception_breakpoint): Likewise.
6737 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6738 (locations_are_equal): New.
6739 (update_breakpoint_locations): If locations were changed, notify.
6740 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6741 Call breakpoint_modified observer.
6743 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6744 (mi_cmd_break_insert): Don't set observers for modify and delete.
6745 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6746 (mi_breakpoint_created, mi_breakpoint_deleted)
6747 (mi_breakpoint_modified): New.
6748 (mi_interpreter_init): Hook the above.
6749 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6750 while -break-* commands are executing.
6751 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6752 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6754 (mi_ui_out_impl): Hook in mi_redirect.
6755 (mi_field_skip): True to the name, skip the field, don't output
6756 a field with an empty value.
6758 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6759 (gdbpy_breakpoint_deleted): Adjust.
6760 * tui/tui-hooks.c (tui_event_create_breakpoint)
6761 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6763 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6765 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6766 (procfs_remove_hw_watchpoint): Likewise.
6768 2011-04-26 Michael Walle <michael@walle.cc>
6770 * remote.c (remote_start_remote): Ack packet after sending the
6773 2011-04-26 Yao Qi <yao@codesourcery.com>
6775 * linux-nat.c: Move common macros to ...
6776 Include linux-ptrace.h.
6777 * common/linux-ptrace.h: ... here. New.
6779 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6781 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6782 !objfile_has_partial_symbols. New comment.
6783 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6784 SYM_READ_PSYMBOLS is not present. Extend the comment.
6785 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6787 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6789 * defs.h (ENUM_BITFIELD): Remove.
6791 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 Eli Zaretskii <eliz@gnu.org>
6794 * NEWS: Document the new gdbserver --once option.
6796 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6798 * MAINTAINERS: Update my email address.
6800 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6802 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6803 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6804 function call if __STDC_ISO_10646__ macro is defined.
6805 (intermediate_encoding): New prototype.
6806 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6807 to generate compile time error for unsupported gdb_wchar_t size.
6808 (ENDIAN_SUFFIX): New macro.
6809 (intermediate_encoding): New function.
6811 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6813 * ada-lang.c (struct add_partial_datum): Update the comment for
6814 expand_partial_symbol_name.
6815 (ada_add_partial_symbol_completions): Rename to ...
6816 (ada_expand_partial_symbol_name): ... here, change return type, update
6817 function comment, call symbol_completion_match instead of
6818 symbol_completion_add.
6819 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6820 and ada_expand_partial_symbol_name.
6821 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6823 (dw2_map_symbol_names): Remove.
6824 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6825 * psymtab.c (map_symbol_names_psymtab): Remove.
6826 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6827 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6829 (psym_functions): Unlist map_symbol_names_psymtab.
6830 (map_partial_symbol_names): Rename to ...
6831 (expand_partial_symbol_names): ... here, change the FUN type, call
6832 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6833 * psymtab.h (map_partial_symbol_names): Rename to ...
6834 (expand_partial_symbol_names): ... here, change the FUN type.
6835 * symfile.h (struct quick_symbol_functions): Update the description of
6836 expand_symtabs_matching. Remove map_symbol_names.
6837 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6838 (struct add_name_data): Update the comment for
6839 expand_partial_symbol_name.
6840 (add_partial_symbol_name): Rename to ...
6841 (expand_partial_symbol_name): ... here. Replace
6842 completion_list_add_name call by strncmp.
6843 (default_make_symbol_completion_list_break_on): Use now
6844 expand_partial_symbol_names and expand_partial_symbol_name.
6845 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6847 2011-04-20 Tom Tromey <tromey@redhat.com>
6849 * dwarf2read.c (save_gdb_index_command): Replace format
6850 documentation with a pointer to the manual.
6852 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6854 * regcache.c: Include remote.h.
6855 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6856 (regcache_dump): Handle regcache_dump_remote.
6857 (maintenance_print_remote_registers): New function.
6858 (_initialize_regcache): Install "maint print remote-registers"
6860 * remote.c (map_regcache_remote_table): New function, factored out
6862 (init_remote_state): ... here.
6863 (remote_register_number_and_offset): New.
6864 * remote.h (remote_register_number_and_offset): Declare.
6866 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6868 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6869 null_ptid, assume and allow a NULL address space, instead of
6870 asking the target for the ptid's address space.
6871 * infrun.c (ptid_is_pid): Remove assertion.
6873 2011-04-19 Tom Tromey <tromey@redhat.com>
6875 * windows-tdep.c (windows_xfer_shared_library):
6876 * windows-nat.c (get_module_name, windows_make_so):
6877 * v850-tdep.c (v850_handle_pushm):
6878 * utils.c (null_cleanup, gdb_realpath):
6879 * ui-out.c (get_next_header):
6880 * tracepoint.c (clear_traceframe_info):
6881 * symtab.c (lookup_symtab):
6882 * serial.h (struct serial_ops):
6883 * mipsread.c (read_alphacoff_dynamic_symtab):
6884 * infcmd.c (print_return_value):
6885 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6886 * f-exp.y (parse_number):
6887 * exceptions.c (catch_exceptions):
6888 * dummy-frame.c (dummy_frame_this_id):
6889 * defs.h (struct cleanup):
6890 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6891 * arm-tdep.c (arm_push_dummy_call):
6892 * amd64-tdep.h (amd64_collect_xsave):
6893 * amd64-tdep.c (amd64_collect_xsave):
6894 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6895 * README (typing): Remove duplicate words.
6896 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6897 * infrun.c (siginfo_value_read): Fix typo.
6898 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6899 * top.c (source_line_number): Add comma.
6901 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6903 * thread.c (any_live_thread_of_process): Prioritize threads
6904 that are not executing.
6905 * gdbthread.h (any_live_thread_of_process): Update comment
6906 as per above change.
6908 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6910 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6911 (scan_xcoff_symtab): Likewise.
6913 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6915 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6918 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6919 Pedro Alves <pedro@codesourcery.com>
6921 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6922 variables to simplify code and avoid == operator at end of
6923 line as this is against GNU coding standards.
6925 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6927 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6928 lm_name to name_lm to avoid conflict with lm_name function.
6930 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6932 ARI fixes: Use only lowercase function name for static functions.
6933 * nto-tdep.c (LM_ADDR): Rename to...
6934 (lm_addr): New function name.
6935 (nto_relocate_section_addresses): Adapt to change above.
6936 * solib-sunos.c (LM_ADDR): Rename to...
6937 (lm_addr): New function name.
6938 (LM_NEXT): Rename to...
6939 (lm_next): New function name.
6940 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6941 function name changes above.
6942 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6943 (lm_addr_from_link_map): New function name.
6944 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6945 (has_lm_dynamic_from_link_map): New function name.
6946 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6947 (lm_dynamic_from_link_map): New function name.
6948 (LM_ADDR_CHECK): Rename to...
6949 (lm_addr_check): New function name.
6950 (LM_NEXT): Rename to...
6951 (lm_next): New function name.
6952 (LM_PREV): Rename to...
6953 (lm_prev): New function name.
6954 (LM_NAME): Rename to...
6955 (lm_name): New function name.
6956 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6957 (ignore_first_link_map_entry): New function name.
6958 (svr4_keep_data_in_core): Adapt to function name changes above.
6959 (svr4_current_sos): Likewise.
6960 (enable_break): Likewise.
6961 (svr4_relocate_section_addresses): Likewise.
6963 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6966 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6967 sprintf. Simplify code and avoid loosing memory.
6968 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6969 (call0_frame_cache): Remove && operator from end of line.
6971 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6973 Fix libraries displacement if they change whether they were prelinked.
6974 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6975 does not match. Comment why.
6977 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6979 * corelow.c: Include wrapper.h.
6980 (core_open): Call now gdb_target_find_new_threads.
6981 * wrapper.c: Include target.h.
6982 (gdb_target_find_new_threads): New.
6983 * wrapper.h (gdb_target_find_new_threads): New declaration.
6985 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6987 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6988 even if !TARGET_HAS_EXECUTION.
6990 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6993 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6994 bfd_get_synthetic_symtab.
6995 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6996 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6997 parameter parent, remove the call to add_separate_debug_objfile.
6998 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6999 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7000 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7001 parent, new comment for it, call add_separate_debug_objfile for it.
7002 (symbol_file_add_separate): Pass objfile as the parameter parent,
7003 remove the call to add_separate_debug_objfile.
7004 (symbol_file_add_from_bfd): New parameter parent, pass it.
7005 (symbol_file_add): Pass NULL to the new parameter parent.
7006 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7008 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7010 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7013 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7015 Fix Python access to inlined frames.
7016 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7017 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7019 2011-04-15 Tom Tromey <tromey@redhat.com>
7021 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7023 2011-04-15 Gary Benson <gbenson@redhat.com>
7025 * MAINTAINERS: Add myself to write-after-approval section.
7027 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7029 * remote-sim.c (sim_command_completer): New function.
7030 (_initialize_remote_sim): Set completer to sim_command_completer.
7032 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7034 * breakpoint.c (print_exception_catchpoint): Rename to ...
7035 (print_it_exception_catchpoint): ... this.
7036 (gnu_v3_exception_catchpoint_ops): Update with new name
7037 for print_it_exception_catchpoint.
7039 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7041 * MAINTAINERS: Add myself for write after approval privileges.
7043 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7045 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7047 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7049 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7051 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7053 * breakpoint.c (save_breakpoints): Verify whether
7054 breakpoint_ops.print_recreate is defined before calling it.
7056 2011-04-11 Gary Benson <gbenson@redhat.com>
7058 Fix failure with --enable-maintainer-mode.
7059 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7061 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 * symtab.c (search_symbols): Reorder the KIND description in the
7065 function comment. Remove the unused 4th element of types, types2,
7066 types3 and types4. New gdb_assert on KIND.
7067 (symtab_symbol_info): Remove the unused 4th element of classnames.
7068 New gdb_assert on KIND.
7069 * symtab.h (enum search_domain): New warning in the enum comment.
7070 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7073 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7075 Fix crash of gdb save-index on a STABS file.
7076 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7079 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7081 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7082 * dwarf2read.c: Include ctype.h.
7083 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7085 (dwarf2_add_field): Fix new_field->accessibility by calling
7086 dwarf2_default_access_attribute. Restructure setting accessibility
7088 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7089 is_private and is_protected by calling
7090 dwarf2_default_access_attribute.
7092 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7094 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7095 to the initialization.
7097 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7099 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7102 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7104 Remove support for old Cygwin 1.5 versions.
7105 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7106 function on old Cygwin version.
7107 * windows-nat.c: Remove cygwin version check and always define
7108 __USEWIDE for Cygwin compilation.
7110 2011-04-07 Yao Qi <yao@codesourcery.com>
7112 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7114 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7115 (arm_copy_svc): Remove parameters INSN and TO.
7116 (decode_svc_copro): Update caller.
7117 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7118 from function pointer `copy_svc_os'.
7120 2011-04-07 Yao Qi <yao@codesourcery.com>
7122 * arm-tdep.c (cleanup_branch): Set a correct return address in
7123 LR for ARM and Thumb.
7125 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7128 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7129 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7130 in the function comment, a new note on values compatibility.
7131 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7132 * symtab.h (SYMBOL_HASH_NEXT): New.
7134 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7136 * ppc-linux-nat.c (check_condition): Add len output parameter.
7137 Set it based on the memory region referenced in the condition
7138 expression. Update all callers.
7140 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7142 Fix crash regression on systems featuring .gdb_index.
7143 * objfiles.c (free_objfile): Move the
7144 forget_cached_source_info_for_objfile call earlier. Comment it.
7145 Extend the comment for objfile_free_data.
7147 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7149 Fix regression of displaying the debug format.
7150 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7153 2011-04-04 Tom Tromey <tromey@redhat.com>
7155 * cli/cli-interp.c (struct captured_execute_command_args):
7157 (do_captured_execute_command): Remove.
7158 (safe_execute_command): Use TRY_CATCH.
7159 * cli/cli-script.c (struct wrapped_read_command_file_args):
7161 (wrapped_read_command_file): Remove.
7162 (script_from_file): Use TRY_CATCH.
7163 * exceptions.c (catch_exception): Remove.
7164 * exceptions.h (catch_exception): Remove.
7165 (deprecated_throw_reason): Update comment.
7166 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7167 argument to 'context'.
7168 (mi_execute_command): Use TRY_CATCH.
7169 * remote.c (struct start_remote_args): Remove.
7170 (remote_start_remote): Update; change arguments.
7171 (remote_open_1): Use TRY_CATCH.
7173 2011-04-04 Tom Tromey <tromey@redhat.com>
7175 * tracepoint.c (scope_info): Update.
7176 * symtab.c (decode_line_spec): Update.
7177 * python/python.c (gdbpy_decode_line): Update.
7178 * linespec.h (decode_line_1): Update.
7179 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7180 (decode_compound, find_method, symtab_from_filename)
7181 (decode_variable): Likewise.
7182 * cli/cli-cmds.c (edit_command): Update.
7183 (list_command): Update.
7184 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7186 (create_breakpoint): Update.
7187 (until_break_command): Update.
7188 (addr_string_to_sals): Update.
7189 (decode_line_spec_1): Update.
7191 2011-04-04 Tom Tromey <tromey@redhat.com>
7193 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7194 (do_captured_parse_breakpoint): Remove.
7195 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7196 Use TRY_CATCH directly.
7198 2011-04-04 Tom Tromey <tromey@redhat.com>
7200 * symtab.h (free_symtab): Remove.
7201 (forget_cached_source_info_for_objfile): Declare.
7202 * symmisc.c (free_symtab): Remove.
7203 * source.c (forget_cached_source_info_for_objfile): New function.
7204 (forget_cached_source_info): Use it.
7205 * objfiles.c (free_objfile): Simplify check before calling
7206 clear_current_source_symtab_and_line. Call
7207 forget_cached_source_info_for_objfile.
7209 2011-04-04 Tom Tromey <tromey@redhat.com>
7211 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7212 (new_symtab): Don't set `free_code' on symtab.
7213 (new_linetable): Properly handle size==0.
7214 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7215 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7217 * jv-lang.c (struct jv_per_objfile_data): New.
7218 (jv_per_objfile_free): Free the data.
7219 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7220 (get_java_class_symtab): Set the `dict' field on the
7221 jv_per_objfile_data.
7222 (free_class_block): Remove.
7223 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7226 2011-04-04 Tom Tromey <tromey@redhat.com>
7228 * symfile.c (reread_symbols): Update.
7229 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7231 * objfiles.c (allocate_objfile): Update.
7232 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7234 * cp-namespace.c (lookup_symbol_file): Don't call
7235 lookup_possible_namespace_symbol.
7236 (initialize_namespace_symtab, get_possible_namespace_block)
7237 (free_namespace_block, cp_check_possible_namespace_symbols)
7238 (check_possible_namespace_symbols_loop)
7239 (check_one_possible_namespace_symbol)
7240 (lookup_possible_namespace_symbol): Remove.
7241 (maintenance_cplus_namespace): Replace with notice.
7242 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7244 2011-04-04 Tom Tromey <tromey@redhat.com>
7246 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7247 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7248 * symmisc.c (free_symtab): Don't free debugformat.
7249 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7250 (record_debugformat, record_producer): Document.
7251 * buildsym.c (end_symtab): Don't save debugformat and producer
7253 (end_symtab): Don't free debugformat and producer fields.
7254 (record_debugformat): Don't call xstrdup.
7255 (record_producer): Likewise.
7257 2011-04-04 Tom Tromey <tromey@redhat.com>
7259 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7260 (source_line_charpos, source_charpos_line): Remove.
7262 2011-04-04 Tom Tromey <tromey@redhat.com>
7264 * symtab.h (domain_enum): Split in two...
7265 (enum search_domain): New.
7266 (search_symbols): Update.
7267 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7268 redundant declarations.
7269 (search_symbols): Change 'kind' argument to search_domain.
7271 (print_symbol_info): Likewise.
7272 (symtab_symbol_info): Likewise.
7273 * symfile.h (struct quick_symbol_functions)
7274 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7275 <expand_symtabs_matching>: Likewise.
7276 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7277 (expand_symtabs_matching_via_partial): Update.
7278 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7279 (dw2_expand_symtabs_for_function): Update.
7280 * block.h: Moved anonymous enum...
7281 * defs.h (enum block_enum): ... here. Now named.
7283 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7285 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7286 * version.in: Bump version to 7.3.50.20110403-cvs.
7288 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7290 * NEWS: Create a new section for the next release branch.
7291 Rename the section of the current branch, now that it has
7294 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7296 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7297 for "fpscr" in target description.
7299 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7301 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7302 initialize it. Delay HASH initialization. Strip the part after open
7303 parenthesis for languages with qualifiers. Call do_cleanups.
7305 2011-04-01 Tom Tromey <tromey@redhat.com>
7307 * utils.c (report_command_stats): Don't print `-' for negative
7310 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7312 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7313 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7316 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7318 * breakpoint.h (bpdisp_text): Add declaration.
7319 * breakpoint.c (bpdisp_text): Make non-static.
7320 * ada-lang.c: #include "mi/mi-common.h".
7321 (print_it_exception): Rewrite to improve GDB/MI output.
7323 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7325 * arm-tdep.h (struct address_space): Add forward declaration.
7327 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7329 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7330 * arm-tdep.c (arm_override_mode): New global.
7331 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7332 execution mode heuristics.
7333 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7334 second single-step breakpoint if needed, using
7335 arm_insert_single_step_breakpoint.
7336 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7337 ARM execution mode, do not call thumb_get_next_pc_raw.
7338 (arm_get_next_pc): Encode execution mode in return value. Call
7339 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7340 (arm_insert_single_step_breakpoint): New function.
7341 (arm_software_single_step): Call it.
7342 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7343 argument to return execution mode of sigreturn target.
7344 (arm_linux_syscall_next_pc): Use it.
7345 (arm_linux_copy_svc): Update call.
7346 (arm_linux_software_single_step): Call
7347 arm_insert_single_step_breakpoint.
7349 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7351 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7354 2011-03-31 Tom Tromey <tromey@redhat.com>
7356 * varobj.c (update_dynamic_varobj_children): Properly handle
7357 errors from iterator.
7359 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7361 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7362 struct linkage name twice.
7364 2011-03-31 Tom Tromey <tromey@redhat.com>
7366 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7367 missing ">" to message.
7369 2011-03-31 Tom Tromey <tromey@redhat.com>
7371 * varobj.c (instantiate_pretty_printer): Remove duplicate
7374 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7376 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7377 if neither saved value nor register available (e.g. signal frame).
7379 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7381 * macroexp.c (expand): Avoid uninitialized variable
7384 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7386 * breakpoint.c (break_range_command): Fix typo in comment.
7388 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7389 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7391 Implement support for PowerPC BookE ranged breakpoints.
7392 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7393 * breakpoint.h (struct bp_target_info) <length>: New member
7395 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7396 instead of struct breakpoint as argument, and also add ASPACE
7397 and BP_ADDR arguments. Update all callers.
7398 (struct breakpoint_ops) <print_one_detail>: New method.
7399 (struct breakpoint) <addr_string_range_end>: New member variable.
7400 * breakpoint.c (breakpoint_location_address_match): Add function
7402 (insert_bp_location): Set bl->target_info.length.
7403 (breakpoint_here_p): Call breakpoint_location_address_match.
7404 (moribund_breakpoint_here_p): Likewise.
7405 (regular_breakpoint_inserted_here_p): Likewise.
7406 (breakpoint_thread_match): Likewise.
7407 (bpstat_stop_status): Likewise.
7408 (bpstat_check_location): Move call to
7409 breakpoint_ops.breakpoint_hit to the top.
7410 (print_one_breakpoint_location): Call
7411 breakpoint_ops.print_one_detail if available.
7412 (breakpoint_address_match_range): New function.
7413 (breakpoint_location_address_match): Likewise.
7414 (breakpoint_locations_match): Compare the length field of the
7416 (hw_breakpoint_used_count): Count resources used by all locations
7417 in a breakpoint, and use breakpoint_ops.resources_needed if
7419 (breakpoint_hit_ranged_breakpoint): New function.
7420 (resources_needed_ranged_breakpoint): Likewise.
7421 (print_it_ranged_breakpoint): Likewise.
7422 (print_one_ranged_breakpoint): Likewise.
7423 (print_one_detail_ranged_breakpoint): Likewise.
7424 (print_mention_ranged_breakpoint): Likewise.
7425 (print_recreate_ranged_breakpoint): Likewise.
7426 (ranged_breakpoint_ops): New structure.
7427 (find_breakpoint_range_end): New function.
7428 (break_range_command): Likewise.
7429 (delete_breakpoint): Free addr_string_range_end.
7430 (update_breakpoint_locations): Add SALS_END argument. Update
7431 all callers. Calculate breakpoint length if a non-zero SALS_END
7432 is given. Call breakpoint_locations_match instead of
7433 breakpoint_address_match.
7434 (reset_breakpoint): Find SaL of the end of the range if B is a
7436 (_initialize_breakpoint): Register break-range command.
7437 * defs.h (print_core_address): Add function prototype.
7438 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7440 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7441 (ppc_linux_remove_hw_breakpoint): Likewise.
7442 (_initialize_ppc_linux_nat): Initialize
7443 to_ranged_break_num_registers.
7444 * target.c (update_current_target): Add comment about
7445 to_ranged_break_num_registers.
7446 (target_ranged_break_num_registers): New function.
7447 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7449 (target_ranged_break_num_registers): Add function prototype.
7450 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7451 * utils.c (print_core_address): ... here.
7453 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7455 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7456 variable compiler warning.
7458 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7460 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7462 (re_set_breakpoint): ... to here ...
7463 (addr_string_to_sals): ... and here.
7465 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7467 * Makefile.in (SFILES): Add missing C sources.
7468 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7469 Add missing headers.
7471 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7473 * .gitignore: New file.
7475 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7477 * NEWS: Mention new cfi device simulation.
7479 2011-03-29 Tom Tromey <tromey@redhat.com>
7481 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7482 otherwise anonymous types.
7483 (dwarf2_name): Likewise.
7484 * valops.c (value_struct_elt_for_reference): Refine artificial
7485 type logic. Call error if j==-1.
7487 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7489 Fix false GCC warning.
7490 * infcall.c (find_function_addr): Initialize funaddr.
7492 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7494 Fix mingw compilation with --enable-targets=all.
7495 * remote-mips.c (gdb_usleep.h): Include header.
7496 (mips_enter_debug): Use gdb_usleep instead of sleep.
7498 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7500 Support resolution of STT_GNU_IFUNC via breakpoints.
7501 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7502 bp_gnu_ifunc_resolver_return.
7503 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7504 the loop. Support bp_gnu_ifunc_resolver and
7505 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7506 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7508 (bptype_string, print_one_breakpoint_location): Support
7509 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7510 (user_settable_breakpoint): Return true also for
7511 bp_gnu_ifunc_resolver.
7512 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7513 bp_gnu_ifunc_resolver_return.
7514 (set_breakpoint_location_function): New parameter explicit_loc,
7515 describe it. Call find_pc_partial_function_gnu_ifunc with new
7516 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7517 EXPLICIT_LOC is not set.
7518 (set_raw_breakpoint): Set EXPLICIT_LOC for
7519 set_breakpoint_location_function.
7520 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7521 set_breakpoint_location_function.
7522 (mention): Support bp_gnu_ifunc_resolver and
7523 bp_gnu_ifunc_resolver_return.
7524 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7525 set_breakpoint_location_function.
7526 (update_breakpoint_locations): Remove static.
7527 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7528 bp_gnu_ifunc_resolver_return.
7529 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7530 bp_gnu_ifunc_resolver_return.
7531 (update_breakpoint_locations): New declaration.
7532 * elfread.c: Include gdbthread.h and regcache.h.
7533 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7535 (elf_gnu_ifunc_fns): Install them.
7536 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7537 (stub_gnu_ifunc_resolver_return_stop): New functions.
7538 (stub_gnu_ifunc_fns): Install them.
7539 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7540 and gnu_ifunc_resolver_return_stop.
7541 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7543 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7545 STT_GNU_IFUNC reader implementation.
7546 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7547 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7548 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7549 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7550 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7551 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7552 (elf_gnu_ifunc_resolve_addr): New.
7553 (elf_symfile_read): Call elf_rel_plt_read.
7554 (elf_gnu_ifunc_fns): New.
7555 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7556 Install elf_gnu_ifunc_fns.
7557 * infcall.c (find_function_return_type): New function.
7558 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7559 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7560 (stub_gnu_ifunc_resolve_name): New functions.
7561 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7562 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7563 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7565 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7567 Code cleanup for later STT_GNU_IFUNC support.
7568 * infcall.c (find_function_addr): Remove variable code, use explicit
7569 dereferences for it. Move VALUE_TYPE initialization later.
7571 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7573 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7574 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7575 (clear_pc_function_cache): Clear it.
7576 (find_pc_partial_function): Rename to ...
7577 (find_pc_partial_function_gnu_ifunc): ... this function. New
7578 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7579 (find_pc_partial_function): New wrapper for this function.
7580 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7582 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 GDB internal type support for STT_GNU_IFUNC.
7585 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7586 (elf_symtab_read): Set mst_text_gnu_ifunc for
7587 BSF_GNU_INDIRECT_FUNCTION.
7588 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7589 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7590 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7591 nodebug_got_plt_symbol.
7592 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7593 (TYPE_GNU_IFUNC): New.
7594 (struct main_type): New field flag_gnu_ifunc.
7595 (struct builtin_type): New field builtin_func_func.
7596 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7597 nodebug_got_plt_symbol.
7598 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7599 (in_gnu_ifunc_stub): New.
7600 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7602 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7603 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7604 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7606 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7607 * symtab.c (search_symbols): Likewise.
7608 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7609 and mst_slot_got_plt.
7610 (in_gnu_ifunc_stub): New declaration.
7612 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 Support a ring of related breakpoints.
7615 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7616 other functions, add gdb_assert.
7617 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7618 watchpoint_del_at_next_stop.
7619 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7620 (bpstat_stop_status): Handle ring in related_breakpoint.
7621 (set_raw_breakpoint_without_location): Initialize ring in
7623 (delete_breakpoint): Handle ring in related_breakpoint, use
7624 watchpoint_del_at_next_stop.
7625 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7627 2011-03-28 Tom Tromey <tromey@redhat.com>
7630 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7631 with `language_minimal'.
7633 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7635 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7636 instead of checking for STT_ARM_TFUNC symbol type.
7638 2011-03-25 Tom Tromey <tromey@redhat.com>
7640 * linespec.c (symbol_found): Restore line-based result for
7641 non-LOC_LABEL symbols.
7643 2011-03-25 Kai Tietz <ktietz@redhat.com>
7645 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7646 instead of strcmp for comparison.
7647 (tui_source_is_displayed): Likewise.
7648 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7650 2011-03-24 Mark Wielaard <mjw@redhat.com>
7652 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7654 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7655 (find_partial_die_in_comp_unit): Likewise in comment.
7656 (read_attribute_value): Likewise.
7657 (lookup_die_type): Likewise.
7658 (dwarf_form_name): Likewise.
7659 (dump_die_shallow): Likewise.
7660 (follow_die_ref_or_sig): Likewise.
7662 2011-03-24 Tom Tromey <tromey@redhat.com>
7664 PR breakpoints/11816:
7665 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7666 (decode_compound): Update.
7667 (find_function_symbol): New function.
7668 (decode_dollar): Update.
7669 (decode_label): Add 'function_symbol' parameter. Handle
7670 function-relative labels.
7671 (decode_variable): Update.
7672 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7673 not its line. Set `special_display' and canonical name for
7676 2011-03-24 Tom Tromey <tromey@redhat.com>
7678 * linespec.h (struct linespec_result) <special_display>: New
7680 * breakpoint.h (struct breakpoint) <display_canonical>: New
7682 * breakpoint.c (print_breakpoint_location): Respect
7684 (create_breakpoint_sal): Add 'display_canonical' parameter.
7685 (create_breakpoints_sal): Update.
7686 (create_breakpoint): Update.
7688 2011-03-24 Tom Tromey <tromey@redhat.com>
7690 * symtab.c (decode_line_spec): Update.
7691 * linespec.c (build_canonical_line_spec): Change type of
7693 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7694 (find_method, decode_all_digits, decode_dollar, decode_label)
7695 (symbol_found): Likewise.
7696 (init_linespec_result): New function.
7697 * breakpoint.c (struct captured_parse_breakpoint_args)
7698 <canonical_p>: New field, replaces addr_string_p.
7699 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7701 (parse_breakpoint_sals): Likewise.
7702 (do_captured_parse_breakpoint): Update.
7703 (create_breakpoint): Use struct linespec_result.
7704 (until_break_command): Update.
7705 (breakpoint_re_set_one): Update.
7706 (decode_line_spec_1): Update.
7707 * linespec.h (struct linespec_result): New.
7708 (init_linespec_result): Declare.
7710 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7712 * regcache.c (regcache_raw_read): If the target didn't supply a
7713 given raw register, mark it as unavailable.
7715 2011-03-23 Kai Tietz <ktietz@redhat.com>
7717 * breakpoint.c (clear_command): Use filename_cmp
7718 instead of strcmp for comparison.
7719 * buildsym.c (watch_main_source_file_lossage): Likewise.
7720 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7721 checking just for slash.
7722 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7723 strrchr and filename_cmp instead of strcmp for filenames.
7724 (add_old_header_file): Use filename_cmp
7725 instead of strcmp for comparison.
7726 * exec.c (exec_set_section_address): Likewise.
7727 * macrotab.c (macro_lookup_inclusion): Likewise.
7728 (macro_lookup_inclusion): Likewise.
7729 * elfread.c (_initialize_elfread): Likewise.
7730 (elfstab_offset_sections): Likewise.
7731 (elfstab_offset_sections): Use lbasename instead of
7733 * mdebugread.c (parse_partial_symbols): Likewise.
7734 (arse_partial_symbols): Use filename_(n)cmp instead of
7735 str(n)cmp for comparison.
7736 * minsyms.c (lookup_minimal_symbol): Likewise.
7737 * psymtab.c (read_psymtabs_with_filename): Likewise.
7738 * solib.c (solib_read_symbols): Likewise.
7739 (reload_shared_libraries_1): Likewise.
7740 * symmisc.c (maintenance_print_symbols): Likewise.
7741 * symfile.c (separate_debug_file_exists): Likewise.
7742 (reread_symbols): Likewise.
7743 (find_separate_debug_file_by_debuglink): Likewise.
7744 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7745 * source.c (add_path): Likewise.
7746 * symtab.c (filename_seen): Likewise.
7747 (file_matches): Likewise.
7748 (print_symbol_info): Likewise.
7749 (maybe_add_partial_symtab_filename): Likewise.
7750 (make_source_files_completion_list): Likewise.
7751 * xml-syscall.c (init_sysinfo): Likewise.
7752 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7753 IS_DIR_SEPARATOR for checking for trailing path separator.
7755 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7757 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7758 label abort_expression.
7759 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7760 DWARF_VALUE_OPTIMIZED_OUT.
7762 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7765 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7766 to linkage_name. Invert its value. Update the function comment.
7767 (c_type_print_varspec_suffix): Invert it at the caller.
7768 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7770 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7772 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7773 errors when reading the `stop_pc'.
7774 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7777 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7779 * NEWS: Document gdb.Write stream keyword.
7781 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7784 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7785 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7786 (dwarf2_add_field): Fix new_field->accessibility for
7787 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7789 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7793 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7794 other error classes. Do not print stack trace.
7796 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7798 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7799 (dwarf2_add_field): Fix new_field->accessibility for
7800 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7802 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7804 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7805 encountering a load via a non-SP register.
7807 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7809 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7810 field in returned unwinder.
7812 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7814 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7816 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7818 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7821 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7823 * frame.c (frame_unwind_register): Throw an error if unwinding the
7825 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7826 an unwind stop reason.
7827 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7828 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7829 UNWIND_UNAVAILABLE>: New.
7830 * inline-frame.c (inline_frame_unwind): Install
7831 default_frame_unwind_stop_reason.
7832 * frame-unwind.c: Include "exceptions.h".
7833 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7834 (default_frame_unwind_stop_reason): New.
7835 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7836 (default_frame_unwind_stop_reason): Declare.
7837 (struct frame_unwind) <stop_reason>: New function pointer.
7839 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7840 * dwarf2-frame.c: Include exceptions.h.
7841 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7842 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7843 computing the CFA. If such an error was thrown, set
7844 unavailable_retaddr.
7845 (dwarf2_frame_unwind_stop_reason): New.
7846 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7848 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7849 (dwarf2_signal_frame_unwind): Ditto.
7851 * amd64-tdep.c: Include "exceptions.h".
7852 (struct amd64_frame_cache): New field "base_p".
7853 (amd64_init_frame_cache): Clear it.
7854 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7855 Avoid reading registers with functions that throw if the register
7856 is not necessary to compute the frame base.
7857 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7858 swallowing NOT_AVAILABLE_ERROR.
7859 (amd64_frame_unwind_stop_reason): New.
7860 (amd64_frame_this_id): Don't build a frame id if the frame base
7862 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7863 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7864 base_p if the frame base was computable.
7865 (amd64_sigtramp_frame_unwind_stop_reason): New.
7866 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7867 frame base was unavailable.
7868 (amd64_sigtramp_frame_unwind): Install
7869 amd64_sigtramp_frame_unwind_stop_reason.
7870 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7871 base_p if the frame base was computable.
7872 (amd64_epilogue_frame_unwind_stop_reason): New.
7873 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7874 frame base was unavailable.
7875 (amd64_epilogue_frame_unwind): Install
7876 amd64_epilogue_frame_unwind_stop_reason.
7877 * i386-tdep.c: Include "exceptions.h".
7878 (struct i386_frame_cache): New field "base_p".
7879 (i386_init_frame_cache): Clear it.
7880 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7881 Avoid reading registers with functions that throw if the register
7882 is not necessary to compute the frame base.
7883 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7884 swallowing NOT_AVAILABLE_ERROR.
7885 (i386_frame_unwind_stop_reason): New.
7886 (i386_frame_this_id): Don't build a frame id if the frame base was
7888 (i386_frame_prev_register): Handle unavailable SP.
7889 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7890 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7891 base_p if the frame base was computable.
7892 (i386_epilogue_frame_unwind_stop_reason): New.
7893 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7894 base was unavailable.
7895 (i386_epilogue_frame_unwind): Install
7896 i386_epilogue_frame_unwind_stop_reason.
7897 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7898 base_p if the frame base was computable.
7899 (i386_sigtramp_frame_unwind_stop_reason): New.
7900 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7901 base was unavailable.
7902 (i386_sigtramp_frame_unwind): Install
7903 i386_sigtramp_frame_unwind_stop_reason.
7904 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7905 type's size, not the register's.
7906 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7908 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7909 default_frame_unwind_stop_reason.
7910 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7911 (alpha_heuristic_frame_unwind): Ditto.
7912 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7913 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7914 * avr-tdep.c (avr_frame_unwind): Ditto.
7915 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7917 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7918 * frv-tdep.c (frv_frame_unwind): Ditto.
7919 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7920 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7921 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7922 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7923 (hppa_stub_frame_unwind): Ditto.
7924 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7925 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7926 (ia64_libunwind_frame_unwind)
7927 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7928 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7929 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7930 * m32c-tdep.c (m32c_unwind): Ditto.
7931 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7932 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7933 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7934 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7935 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7936 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7937 * mep-tdep.c (mep_frame_unwind): Ditto.
7938 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7939 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7940 (mips_stub_frame_unwind): Ditto.
7941 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7942 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7943 * mt-tdep.c (mt_frame_unwind): Ditto.
7944 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7945 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7946 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7947 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7948 (s390_sigtramp_frame_unwind): Ditto.
7949 * score-tdep.c (score_prologue_unwind): Ditto.
7950 * sh-tdep.c (sh_frame_unwind): Ditto.
7951 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7952 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7953 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7954 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7955 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7956 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7957 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7958 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7959 (sparc64obsd_trapframe_unwind): Ditto.
7960 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7961 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7962 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7963 * v850-tdep.c (v850_frame_unwind): Ditto.
7964 * vax-tdep.c (vax_frame_unwind): Ditto.
7965 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7966 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7967 * xtensa-tdep.c (xtensa_unwind): Ditto.
7969 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7971 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7972 there's always a frame. Use get_frame_pc_if_available instead of
7973 get_frame_pc, and if there's no PC available, don't look up a
7976 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7978 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7981 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7983 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7986 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7988 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7989 * frame.c (frame_unwind_caller_pc_if_available): New.
7990 * stack.c (frame_info): Handle unavailable PC.
7992 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7994 * frame.c (frame_unwind_pc): Rename to ...
7995 (frame_unwind_pc_if_available): ... this. New `pc' output
7996 parameter. Change return type to int. Gracefully handle
7997 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7998 happened, or 1 otherwise.
7999 (frame_unwind_pc): Reimplement on top of
8000 frame_unwind_pc_if_available.
8001 (get_frame_func): Rename to ...
8002 (get_frame_func_if_available): New `pc' output parameter. Change
8003 return type to int. Gracefully handle the PC not being available.
8004 (get_frame_func): Reimplement on top of
8005 get_frame_func_if_available.
8006 (select_frame): Handle the PC being unavailable.
8007 (get_prev_frame): Handle the PC being unavailable.
8008 (get_frame_pc_if_available): New.
8009 (get_frame_address_in_block_if_available): New.
8010 (find_frame_sal): Handle the frame PC not being available.
8011 * frame.h (get_frame_pc_if_available): Declare.
8012 (get_frame_address_in_block_if_available): Declare.
8013 (get_frame_func_if_available): Declare.
8014 * stack.c (print_frame_info): Handle the PC being unavailable.
8015 (find_frame_funname): Ditto.
8016 (print_frame): Handle the PC being unavailable.
8017 (get_frame_language): Ditto.
8018 * blockframe.c (get_frame_block): Ditto.
8019 * macroscope.c (default_macro_scope): Ditto.
8020 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8022 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8024 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8025 NOT_AVAILABLE_ERROR when evaluating the location expression.
8027 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8029 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8030 returning that the register piece is unavailable/optimized out.
8031 (write_pieced_value): Handle get_frame_register_bytes returning
8032 that the register piece is unavailable/optimized out when doing a
8033 read-modify write of a bitfield.
8034 * findvar.c (value_from_register): Handle get_frame_register_bytes
8035 returning that the register piece is unavailable/optimized out.
8036 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8037 and `unavailablep'. Throw error on bad debug info. Use
8038 frame_register instead of frame_register_read, to fill in the new
8040 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8042 * valops.c: (value_assign): Adjust, and handle
8043 get_frame_register_bytes failing.
8044 * spu-tdep.c: Include exceptions.h.
8045 (spu_software_single_step): Adjust, and handle
8046 get_frame_register_bytes failing.
8047 (spu_get_longjmp_target): Ditto.
8048 * gdbarch.sh (register_to_value): Change to return int. New
8049 parameters `optimizedp' and `unavailablep'.
8050 * gdbarch.h, gdbarch.c: Regenerate.
8051 * i386-tdep.c (i386_register_to_value): Adjust to new
8052 gdbarch_register_to_value interface.
8053 * i387-tdep.c (i387_register_to_value): Ditto.
8054 * i387-tdep.h (i387_register_to_value): Ditto.
8055 * alpha-tdep.c (alpha_register_to_value): Ditto.
8056 * ia64-tdep.c (ia64_register_to_value): Ditto.
8057 * m68k-tdep.c (m68k_register_to_value): Ditto.
8058 * mips-tdep.c (mips_register_to_value): Ditto.
8059 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8061 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8063 * findvar.c (value_of_register): Mark the value as unavailable, if
8064 the register is unavailable.
8065 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8066 (frame_register): New `unavailablep' parameter.
8067 (frame_register_read): Update comment.
8068 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8069 Set it if the register is unavailable. If the register is
8070 unavailable, clear the output buffer.
8071 (frame_register): New `unavailablep' parameter. Pass it down.
8072 (frame_unwind_register): Adjust.
8073 (put_frame_register): Adjust.
8074 (frame_register_read): Adjust. Also return false if the register
8076 (frame_register_unwind_location): Adjust.
8077 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8078 is unavailable, mark the value accordingly.
8079 * stack.c (frame_info): Handle unavailable registers.
8081 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8083 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8084 simplify, using regcache_cooked_read.
8086 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8088 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8089 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8090 (regcache_raw_read_unsigned, regcache_raw_read_part)
8091 (regcache_cooked_read, regcache_cooked_read_signed)
8092 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8093 (regcache_cooked_read_ftype): Change return to enum
8095 * regcache.c: Include exceptions.h
8096 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8097 (do_cooked_read): Change return to enum register_status. Always
8098 forward to regcache_cooked_read.
8099 (regcache_raw_read): Change return to enum register_status. If
8100 the register is not REG_VALID, memset the buffer. Return the
8102 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8103 return the register's status.
8104 (regcache_raw_read_unsigned): Ditto.
8105 (regcache_cooked_read): Change return to enum register_status.
8106 Assert that with read-only regcaches, the register's status must
8107 be known. If the regcache is read-only, and the register is not
8108 REG_VALID, memset the buffer. Return the register's status.
8109 (regcache_cooked_read_signed): Change return to enum
8110 register_status. Handle non-REG_VALID registers and return the
8112 (regcache_cooked_read_unsigned): Change return to enum
8113 register_status. Handle non-REG_VALID registers and return the
8115 (regcache_xfer_part, regcache_raw_read_part)
8116 (regcache_cooked_read_part): Change return to enum
8117 register_status. Return the register's status.
8118 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8120 (regcache_dump): Handle unavailable cooked registers.
8121 * frame.c (do_frame_register_read): Adjust interface to match
8122 regcache_cooked_read_ftype.
8123 * gdbarch.sh (pseudo_register_read): Change return to enum
8125 * gdbarch.h, gdbarch.c: Regenerate.
8127 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8129 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8130 register_status. If reading a raw register indicates the raw
8131 register is not valid, return the raw register's status,
8132 otherwise, return REG_VALID.
8133 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8134 register_status. Handle non-REG_VALID raw registers and return
8135 the register's status.
8136 * arm-tdep.c (arm_neon_quad_read)
8137 (arm_pseudo_read): Change return to enum register_status. Handle
8138 non-REG_VALID raw registers and return the register's status.
8139 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8140 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8141 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8142 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8143 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8145 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8146 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8147 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8148 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8149 (m32c_pseudo_register_read): Change return to enum
8150 register_status. Adjust.
8151 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8152 enum register_status. Return the register's status.
8153 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8154 register_status. Return the register's status.
8155 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8156 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8157 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8158 * rs6000-tdep.c (move_ev_register_func): New typedef.
8159 (e500_move_ev_register): Use it. Change return to enum
8160 register_status. Return the register's status.
8161 (do_regcache_raw_read): New function.
8162 (do_regcache_raw_write): New function.
8163 (e500_pseudo_register_read): Change return to enum
8164 register_status. Return the register's status. Use
8165 do_regcache_raw_read.
8166 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8167 (dfp_pseudo_register_read): Change return to enum register_status.
8168 Return the register's status.
8169 (vsx_pseudo_register_read): Ditto.
8170 (efpr_pseudo_register_read): Ditto.
8171 (rs6000_pseudo_register_read): Ditto.
8172 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8173 register_status. Return the register's status.
8174 * sh64-tdep.c (pseudo_register_read_portions): New function.
8175 (sh64_pseudo_register_read): Change return to enum
8176 register_status. Use pseudo_register_read_portions. Return the
8178 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8179 register_status. Return the register's status.
8180 * sh-tdep.c (pseudo_register_read_portions): New function.
8181 (sh_pseudo_register_read): Change return to enum register_status.
8182 Use pseudo_register_read_portions. Return the register's status.
8183 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8184 enum register_status. Return the register's status.
8185 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8186 * spu-tdep.c (spu_pseudo_register_read_spu)
8187 (spu_pseudo_register_read): Ditto.
8188 * xtensa-tdep.c (xtensa_register_read_masked)
8189 (xtensa_pseudo_register_read): Ditto.
8190 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8192 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8194 * python/py-value.c (valpy_getitem): Fix formatting of error function
8197 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8199 ARI fixes: Add missing internationalization markups throughout
8201 * darwin-nat-info.c: Ditto.
8204 * mi/mi-main.c: Ditto.
8206 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8208 ARI fixes: Add missing internationalization markups throughout
8211 * cp-name-parser.y: Ditto.
8214 * objc-exp.y: Ditto.
8217 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8219 ARI fixes: Messages should have no trailing new lines.
8220 * darwin-nat.c (mach_check_error): Remove trailing new line from
8221 warning function call message.
8222 * record.c (bfdcore_read): Idem for error call.
8224 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8226 * common/signals.c (target_signal_from_host): Add _ markup to error
8227 function call message.
8228 (target_signal_to_host): Add _ markup and remove trailing new line
8229 from warning call message.
8230 (target_signal_from_command): Add _ markup to error function call
8233 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8237 * python/python.c (gdbpy_write): Accept a stream argument and
8238 operate to the appropriate stream.
8239 (gdbpy_flush): Likewise.
8240 (_initialize_python): Add stream constants.
8241 (finish_python_initialization): Add GdbOutputErrorFile class.
8243 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8245 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8247 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8249 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8250 to store_signed_integer. Add debug message when relocating CALL
8251 instructions. Fix formatting of debug message.
8252 * i386-tdep.c (i386_relocate_instruction): Ditto.
8254 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8256 * target.h (struct target_ops): Remove to_lookup_symbol field.
8257 (target_lookup_symbol): Delete macro.
8258 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8259 (update_current_target, setup_target_debug): Remove handling
8260 of to_lookup_symbol target_ops field.
8261 * ada-tasks.c (get_known_tasks_addr): Remove use of
8262 target_lookup_symbol.
8263 * coffread.c (coff_symtab_read): Likewise.
8264 * dbxread.c (read_dbx_symtab): Ditto.
8266 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8269 * configure.ac: Add getthrds declaration check.
8270 * configure, config.in: Regenerate.
8271 * aix-thread.c (getthrds): Declare only if not already declared
8272 in procinfo.h. More declaration out of get_signaled_thread to
8275 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8277 * python/py-symtab.c: Populate symtab_object_methods,
8279 (stpy_is_valid): New function.
8280 (salpy_is_valid): Ditto.
8281 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8282 (sympy_is_valid): New function.
8283 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8284 (objfpy_is_valid): New function.
8285 * python/py-inferior.c: Populate inferior_object_methods.
8286 (infpy_is_valid): New function.
8287 * python/py-infthread.c: Populate thread_object_methods.
8288 (thpy_is_valid): New function.
8289 * python/py-block.c: Declare block_object_methods. Populate. Declare
8290 block_iterator_object_methods. Populate.
8291 (blpy_is_valid): New function.
8292 (blpy_iter_is_valid): Ditto.
8294 2011-03-16 Keith Seitz <keiths@redhat.com>
8296 * linespec.c (find_methods): Canonicalize NAME before looking
8298 (name_end): New function.
8299 (keep_name_info): New function.
8300 (decode_line_1): Use keep_name_info.
8301 (decode_compound): Likewise.
8302 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8303 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8306 * linespec.c (locate_first_half): Keep overload information, too.
8307 (decode_compound): Use a string to represent break characters
8309 If P points to a break character, do not increment it.
8310 For C++ and Java, keep overload information and relevant keywords.
8311 If we cannot find a symbol, search the minimal symbols.
8314 * linespec.c (decode_compound): Rename SAVED_ARG to
8316 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8318 Pass a valid block to lookup_symbol.
8319 (lookup_prefix_sym): Likewise.
8320 (find_method): Construct search name based on SYM_CLASS instead
8322 * psymtab.c (lookup_partial_symbol): Add language parameter.
8323 (lookup_symbol_aux_psymtabs): Likewise.
8324 Don't assume that the psymtab we found was the right one. Search
8325 for the desired symbol in the symtab to be certain.
8326 (psymtab_search_name): New function.
8327 (lookup_partial_symbol): Use psymtab_search_name.
8328 Add language parameter.
8329 (read_symtabs_for_function): Add language parameter and pass to
8330 lookup_partial_symbol.
8331 (find_symbol_file_from_partial): Likewise.
8333 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8336 * dwarf2read.c (noop_record_line): New function.
8337 (dwarf_decode_lines): Ignore line tables for GCd functions.
8339 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8341 Fix ARI warnings about new lines at the end of messages, which
8342 are unneeded as there is a new line added at the end of the message
8344 * darwin-nat.c (darwin_stop_inferior): Ditto.
8345 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8346 * dfp.c (decimal_to_number): Ditto.
8347 * exec.c (print_section_info): Ditto.
8348 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8349 * osdata.c (get_osdata): Ditto.
8350 * record.c (bfdcore_write): Ditto.
8351 * remote-mips.c (mips_readchar): Ditto.
8352 * remote.c (read_ptid): Ditto.
8353 * ser-mingw.c (ser_windows_raw): Ditto.
8354 * tracepoint.c (add_local_symbols): Ditto.
8355 * windows-nat.c (fake_create_process): Ditto.
8357 2011-03-16 Tom Tromey <tromey@redhat.com>
8359 * tracepoint.c (stop_tracing): Don't declare.
8360 * event-top.c (after_char_processing_hook): Add `(void)'.
8362 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8364 * NEWS: Add Parameter sub-classing description.
8366 2011-03-16 Kai Tietz <ktietz@redhat.com>
8368 * MAINTAINERS: Update my e-mail address.
8370 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8372 * MAINTAINERS: Add myself for write after approval privileges.
8374 2011-03-15 Michael Snyder <msnyder@vmware.com>
8376 * frame.c (find_frame_sal): Assert sym is not null.
8378 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8380 * objc-lang.c (selectors_info): Check strchr for null result.
8382 * stabsread.c (define_symbol): Guard against bad stabstring input.
8384 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8386 Remove trailing spaces and tabulations from pascal language
8391 p-valprint.c: Ditto.
8393 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8395 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8396 than LOW. Comment it.
8397 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8398 HIGHPC not strictly higher than LOWPC.
8400 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8402 Fix formatting of function declarations returning a pointer in
8404 * varobj.c (varobj_add_child): Ditto.
8405 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8406 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8408 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8410 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8411 for the "generic" vector ABI used with GCC 4.3 and later.
8412 (ppc64_sysv_abi_return_value): Likewise.
8414 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8416 * infcall.c (call_function_by_hand): Function return value is
8417 always a non_lval, even when using struct_return.
8419 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8421 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8422 (map_display_numbers): New.
8423 (do_delete_display): New.
8424 (undisplay_command): Use map_display_numbers.
8425 (do_enable_disable_display): New.
8426 (enable_disable_display_command): New function.
8427 (enable_display): Delete.
8428 (enable_display_command): New.
8429 (disable_display_command): Reimplement.
8430 (_initialize_printcmd): Adjust "enable display" command to use
8431 `enable_display_command' as callback.
8433 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8435 * NEWS: Add Python breakpoint 'stop' operation.
8437 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8439 * NEWS: Delete duplicate entry. Fix typo.
8441 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8443 Fix ARI warning about function names in first column.
8444 Put prototype declaration on same line as return type.
8445 * objc-exp.y: Ditto.
8447 * python/py-stopevent.h: Ditto.
8448 For long function names, split parameters to
8449 allow function name on same line as return type.
8450 * solib-pa64.c: Ditto.
8453 For long function declaration, use single line.
8454 * hppa-tdep.h: Ditto.
8455 * inferior.h: Ditto.
8457 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8459 * python/python.h: Declare gdbpy_should_stop and
8460 gdbpy_breakpoint_has_py_cond.
8461 * python/python.c: Add python.h to includes. Remove python.h from
8462 HAVE_PYTHON definition
8463 (gdbpy_should_stop): New dummy function.
8464 (gdbpy_breakpoint_has_py_cond): New dummy function.
8465 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8466 sub-classing capabilities.
8467 (gdbpy_should_stop): New function.
8468 (gdbpy_breakpoint_has_py_cond): New function.
8469 (local_setattro): New function.
8470 * breakpoint.c (condition_command): Add check for Python 'stop'
8472 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8473 operation function as part of stop/continue tests.
8475 2011-03-14 Tom Tromey <tromey@redhat.com>
8478 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8479 (needs_frame_dwarf_call): Likewise.
8481 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8483 Fix ARI warning about functions without parameters that do not
8485 * breakpoint.c (all_tracepoints): Replace () by (void).
8486 * f-exp.y (match_string_literal): Ditto.
8488 * m2-exp.y (yylex): Ditto.
8489 * mep-tdep.c (current_me_module): Ditto.
8490 (current_options): Ditto.
8491 (current_cop_data_bus_width): Ditto.
8492 (current_cr_names): Ditto.
8493 (current_cr_is_float): Ditto.
8494 (current_ccr_names): Ditto.
8495 * objc-exp.y (yylex): Ditto.
8496 * p-exp.y (yylex): Ditto.
8497 * remote.c (send_interrupt_sequence): Ditto.
8498 * tracepoint.c (current_trace_status): Ditto.
8499 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8500 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8502 2011-03-11 Michael Snyder <msnyder@vmware.com>
8504 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8505 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8506 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8507 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8508 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8510 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8511 (delete_async_event_handler): Ditto.
8513 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8515 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8517 * top.c (set_verbose): Assert showcmd was found.
8519 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8521 * xtensa-tdep.c (warning_once): Correct style issues.
8523 2011-03-11 Yao Qi <yao@codesourcery.com>
8525 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8527 2011-03-11 Andreas Schwab <schwab@redhat.com>
8529 * common/aclocal.m4: Remove.
8531 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8533 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8534 (xtensa_write_register, xtensa_read_register): Likewise.
8535 (xtensa_hextochar): Removed.
8536 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8538 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8540 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8541 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8542 (xtensa_alloc_frame_cache): Add initialization for new fields.
8543 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8544 (warning_once): New function.
8545 (xtensa_insn_kind): New item c0opc_and.
8546 (call0_classify_opcode): Add the case for AND instruction.
8547 (call0_track_op): Change arguments. New local variable litbase.
8548 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8549 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8551 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8552 (call0_analyze_prologue): Update the comments. Change arguments.
8553 Add the variety of updates to handle extended prologues, which now can
8554 conduct dynamic stack adjustments.
8555 (call0_frame_cache): Likewise.
8556 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8557 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8559 2011-03-10 Michael Snyder <msnyder@vmware.com>
8561 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8562 (cmd_qtframe): Ditto.
8563 (cmd_qtbuffer): Ditto.
8564 (cmd_bigqtbuffer): Ditto.
8566 2011-03-10 Tom Tromey <tromey@redhat.com>
8568 * tracepoint.c (trace_actions_command): Update.
8569 * thread.c (thread_apply_command): Update.
8570 * reverse.c (delete_bookmark_command): Update.
8571 (bookmarks_info): Update.
8572 * printcmd.c (undisplay_command): Update.
8573 * memattr.c (mem_enable_command): Update.
8574 (mem_disable_command): Update.
8575 (mem_delete_command): Update.
8576 * inferior.c (detach_inferior_command): Update.
8577 (kill_inferior_command): Update.
8578 (remove_inferior_command): Update.
8579 * cli/cli-utils.h (struct get_number_or_range_state): New.
8580 (init_number_or_range): Declare.
8581 (get_number_or_range): Update.
8582 * cli/cli-utils.c (init_number_or_range): New function.
8583 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8585 (number_is_in_list): Update.
8586 * breakpoint.h (get_tracepoint_by_number): Update.
8587 * breakpoint.c (map_breakpoint_numbers): Update for change to
8588 get_number_or_range.
8589 (find_location_by_number): Use get_number, not
8590 get_number_or_range.
8591 (trace_pass_set_count): New function.
8592 (trace_pass_command): Update for change to get_number_or_range.
8594 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8597 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8599 * python/py-param.c (add_setshow_generic): Add set/show callback
8600 parameters. Register Python object context.
8601 (get_show_value): New function.
8602 (get_set_value): New function.
8603 (call_doc_function): New function.
8604 (get_doc_string): Move behind get_show_value/get_set_value.
8606 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8608 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8610 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8612 * xtensa-tdep.c (xtensa_read_register): Add comment.
8613 (xtensa_write_register): Likewise.
8614 (xtensa_hextochar): Add comment and update to match coding conventions.
8615 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8616 (execute_l32e, execute_s32e, execute_code): Update comments.
8617 (xtensa_exception_handler_t): Update to match coding conventions.
8618 (xtensa_insn_kind): Likewise.
8620 2011-03-09 Michael Snyder <msnyder@vmware.com>
8622 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8624 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8626 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8628 2011-03-09 Tom Tromey <tromey@redhat.com>
8630 * thread.c (restore_selected_frame): Handle frame_level == -1.
8631 (make_cleanup_restore_current_thread): Use
8632 get_selected_frame_if_set.
8633 * frame.h (get_selected_frame_if_set): Declare.
8634 * frame.c (get_selected_frame_if_set): New function.
8636 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8638 * cli/cli-cmds.c (shell_escape): Use lbasename.
8639 * coffread.c (coff_start_symtab): Constify parameter.
8640 (complete_symtab): Constify `name' parameter.
8641 (coff_symtab_read): Constify `filestring' local.
8642 (coff_getfilename): Constify return and `result' local.
8644 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8645 * linux-fork.c (info_checkpoints_command): Use lbasename.
8646 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8647 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8648 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8649 * procfs.c (procfs_make_note_section): Use lbasename.
8650 * tui/tui-io.c (printable_part): Constity return and parameter.
8652 (print_filename): Constify parameters, and local `s'.
8653 (tui_rl_display_match_list): Constify local `temp'.
8655 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8658 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8659 Fix DWARF-3+ DW_AT_accessibility default assumption.
8660 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8661 cu->header.version >= 3.
8663 2011-03-09 Yao Qi <yao@codesourcery.com>
8665 * common/Makefile.in: Remove.
8666 * common/configure: Remove.
8667 * common/configure.ac: Remove.
8669 2011-03-09 Yao Qi <yao@codesourcery.com>
8672 2011-02-11 Yao Qi <yao@codesourcery.com>
8674 * common/Makefile.in: Add copyright header.
8676 2011-02-11 Yao Qi <yao@codesourcery.com>
8678 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8680 * configure.ac: Add common to sub dir.
8681 * configure: Regenerate.
8683 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8685 * xtensa-tdep.c (call0_ret): New function.
8686 (xtensa_skip_prologue): Speed up analysis.
8688 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8690 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8691 while executing MI command -data-list-changed-registers.
8693 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8695 * xtensa-tdep.c (xtensa_read_register): New function.
8696 (xtensa_write_register): New function.
8697 (xtensa_find_register_by_name): New function.
8698 (xtensa_windowed_frame_cache): Update comments in type description.
8699 (xtensa_frame_cache): Likewise.
8700 (xtensa_window_interrupt_insn): New function.
8701 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8702 (xtensa_insn_kind): Add new instructions.
8703 (rwx_special_register): New function.
8704 (call0_classify_opcode): Add new instructions to the analysis.
8705 (a0_saved, a7_saved, a11_saved): New variables.
8706 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8707 (execute_l32e): New function.
8708 (execute_s32e): New function.
8709 (xtensa_exception_handler_t): New type.
8710 (execute_code): New function.
8711 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8712 analysis for Xtensa Window Exception handlers.
8714 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8716 * xtensa-tdep.c (TX_PS): New.
8717 (windowing_enabled): Update to count for Call0 ABI.
8718 (xtensa_hextochar): New.
8719 (xtensa_init_reggroups): Make algorithm generic.
8720 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8722 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8724 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8726 2011-03-08 Michael Snyder <msnyder@vmware.com>
8728 * i386-tdep.c (i386_follow_jump): Check return value of
8730 (i386_analyze_struct_return): Ditto.
8731 (i386_skip_probe): Ditto.
8732 (i386_match_insn): Ditto.
8733 (i386_skip_noop): Ditto.
8734 (i386_analyze_frame_setup): Ditto.
8735 (i386_analyze_register_saves): Ditto.
8736 (i386_skip_prologue): Ditto.
8737 (i386_skip_main_prologue): Ditto.
8739 * target.c (read_whatever_is_readable): Fix memory leak.
8741 * i386-tdep.c (i386_process_record): Document fall through.
8743 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8745 Fix DWARF-3+ DW_AT_accessibility default assumption.
8746 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8747 cu->header.version >= 3.
8749 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8751 * remote.c (remote_check_symbols): Skip if the target has no
8754 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8756 * target.c (read_whatever_is_readable): Reformat comment,
8757 with a minor typo fix. Minor reformatting of the code.
8759 2011-03-08 Yao Qi <yao@codesourcery.com>
8761 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8762 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8763 Use cached result instead of calling displaced_in_arm_mode again.
8764 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8765 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8766 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8767 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8768 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8769 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8770 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8771 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8772 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8773 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8774 (arm_catch_kernel_helper_return): Likewise.
8775 * gdb/arm-tdep.h : Update function declarations.
8777 2011-03-07 Michael Snyder <msnyder@vmware.com>
8779 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8781 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8783 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8785 * elfread.c (elf_symtab_read): Stop memory leak.
8787 * main.c (captured_main): Fix memory leak.
8789 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8791 * ada-lang.c (compare_names): Call is_name_suffix with string1
8794 2011-03-07 Tom Tromey <tromey@redhat.com>
8796 * xcoffread.c (xcoff_sym_fns): Update.
8797 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8798 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8799 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8800 (symbol_file_add_with_addrs_or_offsets): Likewise.
8801 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8802 * somread.c (som_sym_fns): Update.
8803 * psymtab.h (require_partial_symbols): Declare.
8804 * psymtab.c (require_partial_symbols): New function.
8805 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8806 (ALL_OBJFILE_PSYMTABS): Undef.
8807 (ALL_PSYMTABS): Move from psympriv.h.
8808 (lookup_partial_symtab, find_pc_sect_psymtab)
8809 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8810 (find_last_source_symtab_from_partial)
8811 (forget_cached_source_info_partial)
8812 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8813 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8814 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8815 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8816 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8817 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8818 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8819 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8820 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8822 * mipsread.c (ecoff_sym_fns): Update.
8823 * machoread.c (macho_sym_fns): Update.
8824 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8825 (read_psyms): New function.
8826 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8827 (elf_sym_fns_lazy_psyms): New global.
8828 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8829 dwarf2_build_psymtabs.
8830 * dbxread.c (aout_sym_fns): Update.
8831 * coffread.c (coff_sym_fns): Update.
8833 2011-03-07 Tom Tromey <tromey@redhat.com>
8835 * infrun.c (print_exited_reason): Include inferior id and pid in
8838 2011-03-07 Tom Tromey <tromey@redhat.com>
8840 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8842 (target_has_execution_1): Update.
8843 (target_has_execution_current): Declare.
8844 (target_has_execution): Call target_has_execution_current.
8845 (default_child_has_execution): Update.
8846 * target.c (default_child_has_execution): Add 'the_ptid'
8848 (target_has_execution_1): Likewise.
8849 (target_has_execution_current): New function.
8850 (add_target): Update.
8851 (init_dummy_target): Update.
8852 * remote-m32r-sdi.c (m32r_has_execution): New function.
8853 (init_m32r_ops): Use it.
8854 * record.c (record_core_has_execution): Now static. Add
8855 'the_ptid' parameter.
8856 * inferior.c (have_live_inferiors): Don't save current thread.
8857 Use target_has_execution_1.
8859 2011-03-07 Yao Qi <yao@codesourcery.com>
8861 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8863 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8865 * elfread.c (elf_symtab_read): Minor reformatting.
8867 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8869 * objc-lang.c (selectors_info): Minor reformatting.
8871 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8873 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8875 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8876 Michael Snyder <msnyder@vmware.com>
8878 * ada-valprint.c (ada_val_print_array): Move the declaration of
8879 "byte_order" and "elttype" inside the block where these variables
8880 are actually used. Remove some special handling for the case
8881 where "elttype" and "eltlen" are null. Replace by a comment
8882 and a couple of assertion checks.
8884 2011-03-05 Michael Snyder <msnyder@vmware.com>
8886 * source.c (add_path): Replace semicolon at end of block.
8887 * dwarf2expr.c (execute_stack_op): Ditto.
8889 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8891 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8892 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8893 (bfin-*-*): Likewise.
8895 2011-03-05 Michael Snyder <msnyder@vmware.com>
8897 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8898 * mdebugread.c (parse_symbol): Ditto.
8899 * parse.c (parse_exp_in_context): Ditto.
8900 * source.c (add_path): Ditto.
8901 * utils.c (gnu_debuglink_crc32): Ditto.
8902 * varobj.c (variable_language): Ditto.
8904 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8906 2011-03-04 Michael Snyder <msnyder@vmware.com>
8908 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8910 * symfile.c (simple_overlay_update): Check for null return value
8911 from lookup_minimal_symbol.
8913 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8915 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8917 * eval.c (parse_and_eval_address_1): Remove function.
8918 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8919 instead of parse_and_eval_address_1.
8920 * value.h (parse_and_eval_address_1): Remove prototype.
8922 2011-03-04 Michael Snyder <msnyder@vmware.com>
8924 * remote.c (putpkt_binary): Document that case stmt falls through.
8926 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8928 * breakpointc (print_it_typical): Move NULL check from here...
8929 (print_bp_stop_message): ... to here.
8931 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8933 * breakpoint.c (enable_command): Use break instead of continue,
8934 and fill in a missing break.
8935 (disable_command): Ditto.
8937 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8939 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8940 (terminal_save_ours): Remove misleading comment.
8941 (inflow_inferior_data_cleanup): Free ttystate.
8942 (inflow_inferior_exit): Likewise.
8943 (copy_terminal_info): Copy ttystate.
8945 * serial.c (serial_copy_tty_state): New function.
8946 * serial.h (serial_copy_tty_state): Add prototype.
8947 (struct serial_ops): Add copy_tty_state callback.
8948 * ser-base.c (ser_base_copy_tty_state): New function.
8949 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8950 * ser-go32.c (dos_copy_tty_state): New function.
8951 (dos_ops): Install copy_tty_state callback.
8952 * ser-mingw.c (_initialize_ser_windows): Likewise.
8953 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8954 * ser-unix.c (hardwire_copy_tty_state): New function.
8955 (_initialize_ser_hardwire): Install it.
8957 2011-03-04 Michael Snyder <msnyder@vmware.com>
8959 * breakpoint.c (create_breakpoint): Add missing break statement.
8961 Reverting this patch:
8962 * infcall.c (call_function_by_hand): Add break statements for lint.
8964 Reverting this patch:
8965 * cli/cli-script.c (script_from_file): Add break for lint.
8967 2011-03-04 Michael Snyder <msnyder@vmware.com>
8969 * solib.c (reload_shared_libraries_1): Close memory leak.
8971 2011-03-03 Tom Tromey <tromey@redhat.com>
8974 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8977 2011-03-03 Michael Snyder <msnyder@vmware.com>
8979 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8980 fields of struct 'st' to zero.
8982 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8983 sal.pspace before calling set_current_source_symtab_and_line.
8985 2011-03-03 Yao Qi <yao@codesourcery.com>
8987 * Makefile.in (configure-common): Remove. Let Makefile
8988 in dir common to rebuild itself.
8989 (common/Makefile): Likewise.
8991 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8993 * utils.c (parse_escape): Add i18n markup in error message.
8995 2011-03-03 Yao Qi <yao@codesourcery.com>
8997 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8999 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9000 (displaced_write_reg, displaced_read_reg): Likewise.
9001 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9002 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9003 (cleanup_branch): Replace magic number 14 and 15 with
9004 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9006 2011-03-02 Michael Snyder <msnyder@vmware.com>
9008 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9010 * cli/cli-script.c (script_from_file): Add break for lint.
9012 * mdebugread.c (parse_partial_symbols): Fix indent.
9014 * target-descriptions.c (tdesc_gdb_type): No need to call
9015 xstrdup, callee saves a copy.
9017 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9019 * infcall.c (call_function_by_hand): Add break statements for lint.
9021 * utils.c (parse_escape): Escape the escape char.
9023 * python/py-inferior.c (build_inferior_list): Error out if
9024 PyList_Append fails.
9025 (gdbpy_inferiors): Error out if build_inferior_list fails.
9027 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9030 * record.c (record_restore): Move printf to before error return.
9032 2011-03-02 Yao Qi <yao@codesourcery.com>
9034 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9035 is_thumb and insn_size.
9036 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9037 on both ARM and Thumb mode.
9038 (arm_process_displaced_insn): Set is_thumb and insn_size.
9039 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9040 (arm_displaced_step_fixup): Likewise.
9042 2011-03-01 Michael Snyder <msnyder@vmware.com>
9044 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9046 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9048 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9050 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9052 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9055 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9056 which shadows function parameter.
9058 * tracepoint.c (create_tsv_from_upload): Superfluous call
9059 to xstrdup. Callee already calls xstrdup.
9061 * linespec.c (decode_line_1): Remove unnecessary null check.
9063 * tracepoint.c (scope_info): Fix mem leak, remove underused
9066 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9067 superfluous null check.
9069 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9070 (value_of_builtin_frame_fp_reg): Ditto.
9072 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9074 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9077 * linespec.c (decode_line_1): Check for null before dereference.
9079 * reverse.c (record_restore): Move null-check to before pointer
9082 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9084 * objc-lang.c (selectors_info): Add explanitory comment.
9085 (classes_info): Ditto.
9087 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9089 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9090 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9091 versions of the trampoline. Handle Thumb vs. ARM addresses.
9092 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9093 (arm_linux_init_abi): Install it.
9094 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9095 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9097 2011-02-28 Michael Snyder <msnyder@vmware.com>
9099 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9100 a little bigger, to avoid possibility of an overflow.
9102 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9103 buffers a little bigger, to avoid possibility of an overflow.
9105 * coffread.c (coff_getfilename): Add check to avoid overflow.
9107 * objc-lang.c (selectors_info): Add a small safety margin to
9109 (classes_info): Error out on too long REGEXP.
9111 * infrun.c (handle_inferior_event): Remove unused function call.
9113 * fork-child.c (fork_inferior): Remove ifdef'd code and
9116 * linux-thread-db.c (attach_thread): Discard unused value.
9118 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9120 * remote.c (remote_get_noisy_reply): Discard unused value.
9121 (remote_vcont_resume): Ditto.
9122 (remote_stop_ns): Ditto.
9124 * linespec.c (decode_objc): Delete unused variable.
9126 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9128 * dwarf2read.c (add_partial_symbol): Discard unused values.
9129 (read_base_type): Delete unused variable.
9131 * dbxread.c (read_dbx_symtab): Discard unused value.
9133 * eval.c (evaluate_subexp_standard): Delete unused variable,
9134 and discard unused values.
9136 * infcmd.c (_initialize_infcmd): Discard unused values.
9138 * stabsread.c (rs6000_builtin_type): Missing break statement.
9140 * dbxread.c (process_one_symbol): Discard unused value.
9142 * coffread.c (coff_end_symtab): Delete unused variable.
9144 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9145 (dwarf2_add_typedef): Delete unused variable.
9146 (read_namespace): Ditto.
9147 (dwarf_decode_macros): Ditto.
9149 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9151 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9153 * p-valprint.c (pascal_val_print): Discard unused value.
9155 * utils.c (nquery): Call va_end before return;
9159 * proc-service.c (ps_plog): Call va_end before return.
9161 2011-02-28 Tom Tromey <tromey@redhat.com>
9163 * python/python.c (gdbpy_value_cst): New global.
9164 (_initialize_python): Initialize it.
9165 * python/python-internal.h (gdbpy_value_cst): Declare.
9166 * python/py-value.c (convert_value_from_python): Use
9169 2011-02-28 Michael Snyder <msnyder@vmware.com>
9171 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9173 * breakpoint.c (catch_syscall_completer): Free malloced list.
9175 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9177 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9178 (lval_func_check_synthetic_pointer): Ditto.
9179 (lval_func_free_closure): Fix use-after-free.
9181 2011-02-28 Tom Tromey <tromey@redhat.com>
9183 * psymtab.c (expand_partial_symbol_tables): Use
9184 ALL_OBJFILE_PSYMTABS.
9186 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9188 * objc-lang.c (selectors_info): Error on too long REGEXP.
9190 2011-02-28 Michael Snyder <msnyder@vmware.com>
9192 * python/py-param.c (set_parameter_value): Add missing
9195 * linux-record.c (record_linux_system_call): Add missing
9198 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9200 * breakpoint.c (print_one_breakpoint_location): Remove unused
9201 argument PRINT_ADDRESS_BITS. Update callers.
9202 (print_one_breakpoint): Likewise.
9204 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9206 * breakpoint.c (wrap_indent_at_field): New function.
9207 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9208 Allocate ui_stream locally instead of using STB argument.
9209 (print_one_breakpoint_location): Update call.
9210 * ui-out.c (ui_out_query_field): New function.
9211 * ui-out.h (ui_out_query_field): Add prototype.
9213 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9215 From Michael Snyder <msnyder@vmware.com>
9216 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9218 2011-02-27 Michael Snyder <msnyder@vmware.com>
9220 * objc-lang.c (selectors_info): Prevent string overrun.
9222 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9225 * symtab.c (rbreak_command): Move variable 'file_name' to
9228 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9229 param with a local variable of the same name.
9231 2011-02-27 Michael Snyder <msnyder@vmware.com>
9233 * value.c (value_from_history_ref): New function.
9234 * value.h (value_from_history_ref): Export.
9235 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9236 to parse value history references.
9237 * cli/cli-utils.h (get_number_trailer): Update comment.
9239 2011-02-27 Michael Snyder <msnyder@vmware.com>
9241 * inferior.c (detach_inferior_command): Use get_number_or_range.
9242 (kill_inferior_command): Ditto.
9243 (remove_inferior_command): Ditto.
9244 (initialize_inferiors): Make command names plural.
9245 Update help strings.
9247 2011-02-27 Michael Snyder <msnyder@vmware.com>
9249 * darwin-nat-info.c: Fix comment typo.
9250 * dwarf2expr.h: Ditto.
9251 * fbsd-nat.c: Ditto.
9252 * fbsd-nat.h: Ditto.
9253 * frame-unwind.h: Ditto.
9255 * hppa-hpux-tdep.c: Ditto.
9256 * i386-linux-nat.c: Ditto.
9257 * linux-nat.c: Ditto.
9258 * nbsd-nat.c: Ditto.
9259 * nbsd-nat.h: Ditto.
9260 * ppc-linux-tdep.c: Ditto.
9263 * tui/tui-winsource.c: Ditto.
9265 2011-02-26 Michael Snyder <msnyder@vmware.com>
9267 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9269 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9271 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9272 with a local variable of the same name.
9274 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9275 param with a local variable of the same name.
9276 (i387_supply_xsave): Ditto.
9278 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9279 that it does not shadow a function parameter.
9281 * i386-nat.c (i386_length_and_rw_bits): Document that case
9282 statement is meant to fall through.
9284 * expprint.c (dump_subexp_body_standard): Document that case
9285 statement is meant to fall through.
9287 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9288 dead if statement. Condition can't be false.
9290 2011-02-25 Michael Snyder <msnyder@vmware.com>
9292 * arm-tdep.c: Fix typos in comments.
9293 * bsd-uthread.c: Ditto.
9294 * completer.c: Ditto.
9296 * cp-namespace.c: Ditto.
9297 * cp-support.c: Ditto.
9298 * cris-tdep.c: Ditto.
9300 * dwarf2read.c: Ditto.
9302 * gdbtypes.h: Ditto.
9303 * inferior.h: Ditto.
9304 * mdebugread.c: Ditto.
9305 * mips-tdep.c: Ditto.
9306 * ppc-linux-nat.c: Ditto.
9307 * ppc-linux-tdep.c: Ditto.
9308 * printcmd.c: Ditto.
9309 * sol-thread.c: Ditto.
9310 * solib-frv.c: Ditto.
9312 * sparc64-tdep.c: Ditto.
9313 * spu-tdep.c: Ditto.
9314 * stabsread.c: Ditto.
9319 * python/py-block.c: Ditto.
9320 * python/py-symbol.c: Ditto.
9321 * python/py-symtab.c: Ditto.
9322 * python/py-value.c: Ditto.
9323 * tui/tui-win.c: Ditto.
9325 2011-02-25 Michael Snyder <msnyder@vmware.com>
9327 * inferior.c (print_inferior): Accept a string instead of an int
9328 for requested_inferiors, and use get_number_or_range to parse it.
9329 (info_inferiors_command): Pass args string to print_inferior.
9330 (initialize_inferiors): Change help string for info inferiors.
9331 * inferior.h (print_inferior): Export prototype change.
9333 2011-02-25 Tom Tromey <tromey@redhat.com>
9335 * common/ax.def (invalid2): Set to 0x31.
9337 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9339 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9341 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9343 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9345 2011-02-24 Michael Snyder <msnyder@vmware.com>
9347 * Makefile.in (clean): Make clean should remove generated files
9348 observer.h and observer.inc.
9350 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9352 Revert the following patch (not approved yet):
9353 2011-02-21 Hui Zhu <teawater@gmail.com>
9354 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9355 * ax-gdb.c (gen_printf_expr_callback): New function.
9356 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9357 * ax-general.c (ax_memcpy): New function.
9358 (ax_print): Handle "printf".
9360 * ax.h (ax_memcpy): Forward declare.
9361 * common/ax.def (invalid2): Removed.
9362 (printf): New entry.
9363 * printcmd.c (printcmd.h): New include.
9364 (string_printf): New function.
9365 (ui_printf): Removed.
9366 (printf_command): Remove static. Call string_printf.
9367 (eval_command): Call string_printf.
9368 * printcmd.h: New file.
9369 * tracepoint.c (validate_actionline,
9370 encode_actions_1): handle printf_command.
9372 2011-02-23 Tom Tromey <tromey@redhat.com>
9374 * ax-general.c (ax_pick): Add missing newline.
9376 2011-02-23 Michael Snyder <msnyder@vmware.com>
9378 * breakpoint.c (breakpoint_1): Change first argument from an int
9379 to a char pointer, so that the function now accepts a list of
9380 breakpoints rather than just one. Use new function
9381 'number_is_in_list' to implement.
9382 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9383 (watchpoints_info): Ditto.
9384 (tracepoints_info): Ditto.
9385 (maintenance_info_breakpoints): Ditto.
9386 (_initialize_breakpoint): Update help strings to reflect the fact
9387 that these functions can now take more than one argument.
9388 * cli/cli-utils.c (number_is_in_list): New function.
9389 * cli/cli-utils.h (number_is_in_list): Export.
9391 2011-02-23 Michael Snyder <msnyder@vmware.com>
9393 * memattr.c (mem_enable_command): Use get_number_or_range.
9394 (mem_disable_command): Ditto.
9395 (mem_delete_command): Ditto.
9396 (_initialize_mem): Tweak usage message to reflect multiple
9399 2011-02-22 Doug Evans <dje@google.com>
9401 Add gdb.lookup_global_symbol python function.
9403 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9404 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9405 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9407 2011-02-22 Tom Tromey <tromey@redhat.com>
9409 * language.c (language_class_name_from_physname): Rename
9410 'curr_language' argument to 'lang'; use in body.
9412 2011-02-22 Michael Snyder <msnyder@vmware.com>
9414 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9416 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9418 * frame-unwind.h: Fix comment to mention the this frame, not the
9421 2011-02-22 Tom Tromey <tromey@redhat.com>
9423 * symfile.c (auto_solib_limit): Remove.
9424 * symfile.h (auto_solib_limit): Remove.
9426 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9428 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9430 2011-02-21 Michael Snyder <msnyder@vmware.com>
9432 * gdbthread.h (print_thread_info): Change prototype.
9433 * thread.c (print_thread_info): Accept char* instead of int for
9434 requested_threads argument. Use new function number_is_in_list
9435 to determine which threads to list.
9436 (info_threads_command): Pass char* to print_thread_info.
9437 * cli/cli-utils.c (number_is_in_list): New function.
9438 * cli/cli-utils.h (number_is_in_list): Export.
9439 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9441 (print_one_inferior): Ditto.
9442 (mi_cmd_list_thread_groups): Ditto.
9444 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9446 * common/Makefile.in (CFLAGS): New.
9447 (COMPILE): Add $(CFLAGS).
9449 2011-02-21 Tom Tromey <tromey@redhat.com>
9451 * breakpoint.c (catch_syscall_command_1): Fix typo.
9453 2011-02-21 Tom Tromey <tromey@redhat.com>
9455 * reverse.c: Include cli-utils.h.
9456 * printcmd.c: Include cli-utils.h.
9457 (string_printf): Use skip_spaces.
9458 * cli/cli-utils.h: New file.
9459 * cli/cli-utils.c: New file.
9460 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9461 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9462 * breakpoint.h (get_number, get_number_or_range): Move to
9464 * breakpoint.c: Include cli-utils.h.
9465 (get_number_trailer, get_number, get_number_or_range)
9466 (ep_skip_leading_whitespace): Move to cli-utils.c.
9467 (create_breakpoint_sal, find_condition_and_thread)
9468 (decode_static_tracepoint_spec, watch_command_1)
9469 (watch_maybe_just_location, ep_parse_optional_if_clause)
9470 (catch_fork_command_1, catch_exec_command_1)
9471 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9472 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9473 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9474 (HFILES_NO_SRCDIR): Add cli-utils.h.
9475 (cli-utils.o): New target.
9477 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9479 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9480 before calling discard_all_inferiors.
9482 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9484 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9485 (struct builtin_opencl_type): Remove.
9486 (builtin_opencl_type): Change return type to "struct type **".
9487 (lookup_opencl_vector_type): Update caller.
9488 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9489 (build_opencl_types): Install plain array of "struct type *"
9490 instead of "struct builtin_opencl_type".
9492 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9493 Ulrich Weigand <uweigand@de.ibm.com>
9495 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9496 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9497 (struct arm_linux_hwbp_cap): New type.
9498 (arm_linux_get_hwbp_cap): New function.
9499 (arm_linux_get_hw_breakpoint_count): Likewise.
9500 (arm_linux_get_hw_watchpoint_count): Likewise.
9501 (arm_linux_can_use_hw_breakpoint): Likewise.
9502 (arm_hwbp_type): New type.
9503 (arm_hwbp_control_t): Likewise.
9504 (struct arm_linux_hw_breakpoint): Likewise.
9505 (struct arm_linux_thread_points): Likewise.
9506 (arm_threads): New global variable.
9507 (arm_linux_find_breakpoints_by_tid): New function.
9508 (arm_hwbp_control_initialize): Likewise.
9509 (arm_hwbp_control_is_enabled): Likewise.
9510 (arm_hwbp_control_disable): Likewise.
9511 (arm_linux_hw_breakpoint_initialize): Likewise.
9512 (arm_linux_get_hwbp_type): Likewise.
9513 (arm_linux_hw_watchpoint_initialize): Likewise.
9514 (arm_linux_hw_breakpoint_equal): Likewise.
9515 (arm_linux_insert_hw_breakpoint1): Likewise.
9516 (arm_linux_remove_hw_breakpoint1): Likewise.
9517 (arm_linux_insert_hw_breakpoint): Likewise.
9518 (arm_linux_remove_hw_breakpoint): Likewise.
9519 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9520 (arm_linux_insert_watchpoint): Likewise.
9521 (arm_linux_remove_watchpoint): Likewise.
9522 (arm_linux_stopped_data_address): Likewise.
9523 (arm_linux_stopped_by_watchpoint): Likewise.
9524 (arm_linux_watchpoint_addr_within_range): Likewise.
9525 (arm_linux_new_thread): Likewise.
9526 (arm_linux_thread_exit): Likewise.
9527 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9528 related target callbacks. Register arm_linux_new_thread and
9529 arm_linux_thread_exit.
9530 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9531 * arm-tdep.c (arm_pc_is_thumb): Make global.
9532 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9534 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9536 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9537 per-frame locations while within a function epilogue.
9539 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9541 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9542 to GNU coding standards.
9544 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9546 Allow use of mingw native on Windows 95 OS.
9547 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9548 (ser_windows_close): Only call CancelIo if function exists.
9549 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9550 to check for existence of CancelIo function in kernel32 DLL.
9552 2011-02-21 Hui Zhu <teawater@gmail.com>
9554 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9555 * ax-gdb.c (gen_printf_expr_callback): New function.
9556 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9557 * ax-general.c (ax_memcpy): New function.
9558 (ax_print): Handle "printf".
9560 * ax.h (ax_memcpy): Forward declare.
9561 * common/ax.def (invalid2): Removed.
9562 (printf): New entry.
9563 * printcmd.c (printcmd.h): New include.
9564 (string_printf): New function.
9565 (ui_printf): Removed.
9566 (printf_command): Remove static. Call string_printf.
9567 (eval_command): Call string_printf.
9568 * printcmd.h: New file.
9569 * tracepoint.c (validate_actionline,
9570 encode_actions_1): handle printf_command.
9572 2011-02-19 Michael Snyder <msnyder@vmware.com>
9574 * reverse.c (delete_one_bookmark): Argument is now bookmark
9575 id rather than pointer to bookmark struct.
9576 (delete_bookmark_command): Use get_number_or_range.
9577 (goto_bookmark_command): Parse with get_number instead of strtoul.
9578 (bookmark_1): New function. Print info for one bookmark.
9579 (bookmarks_info): Use get_number_or_range and bookmark_1.
9581 2011-02-18 Michael Snyder <msnyder@vmware.com>
9583 * thread.c (info_threads_command): Re-implement using
9584 get_number_or_range.
9585 (thread_apply_command): Ditto.
9587 2011-02-18 Tom Tromey <tromey@redhat.com>
9589 * common/ax.def: New file.
9590 * ax.h (enum agent_op): Use ax.def.
9591 * ax-general.c (aop_map): Use ax.def.
9593 2011-02-18 Tom Tromey <tromey@redhat.com>
9595 * ax-general.c (aop_map): Add pick and rot.
9596 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9597 <DW_OP_rot>: Implement.
9598 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9600 * ax-general.c (ax_pick): New function.
9602 2011-02-18 Tom Tromey <tromey@redhat.com>
9604 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9606 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9607 Tom Tromey <tromey@redhat.com>
9609 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9610 make_symbol_overload_list_block with NULL BLOCK.
9611 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9613 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9615 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9616 * breakpoint.h (get_number_or_range): Declare.
9617 * printcmd.c (ALL_DISPLAYS): Declare.
9618 (delete_display): Reimplement taking a display pointer.
9619 (undisplay_command): Accept a range of displays to delete, using
9620 get_number_or_range.
9622 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9624 * c-valprint.c (c_val_print): Add embedded_offset to address
9625 for arrays of unspecified length.
9626 * p-valprint.c (pascal_val_print): Likewise.
9628 2011-02-18 Yao Qi <yao@codesourcery.com>
9630 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9631 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9632 (thumb_process_displaced_insn): New.
9633 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9634 call to arm_process_displaced_insn.
9635 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9637 2011-02-17 Tom Tromey <tromey@redhat.com>
9639 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9640 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9641 compile_dwarf_to_ax. No longer static. Call
9642 dwarf2_compile_cfa_to_ax.
9643 (locexpr_tracepoint_var_ref): Update.
9644 (loclist_tracepoint_var_ref): Update.
9645 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9646 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9647 argument; add 'gdbarch' and 'pc'.
9648 (dwarf2_compile_cfa_to_ax): New function.
9649 (dwarf2_frame_cache): Update.
9651 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9653 * ada-lang.c (ada_type_of_array): Fix the size of the array
9654 in the case of an unconstrained packed array.
9656 2011-02-17 Yao Qi <yao@codesourcery.com>
9658 * common/Makefile.in: Add more targets for make.
9660 2011-02-16 Tom Tromey <tromey@redhat.com>
9662 * dwarf2loc.c (unimplemented): Fix typo.
9664 2011-02-16 Tom Tromey <tromey@redhat.com>
9666 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9667 (compile_dwarf_to_ax) <default>: Use unimplemented.
9668 <DW_OP_deref>: Update.
9669 (disassemble_dwarf_expression): Update.
9670 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9671 (decode_locdesc): Update.
9672 * dwarf2expr.h (dwarf_stack_op_name): Update.
9674 2011-02-16 Tom Tromey <tromey@redhat.com>
9676 * ax.h (struct aop_map) <name>: Now const.
9678 2011-02-16 Tom Tromey <tromey@redhat.com>
9680 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9683 2011-02-16 Yao Qi <yao@codesourcery.com>
9685 * infrun.c (get_displaced_step_closure_by_addr): New.
9686 * inferior.h: Declare it.
9687 * arm-tdep.c: (arm_pc_is_thumb): Call
9688 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9691 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9692 Jan Kratochvil <jan.kratochvil@redhat.com>
9695 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9697 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9698 Jan Kratochvil <jan.kratochvil@redhat.com>
9700 * value.c (value_contents_copy_raw): Extend describing comment.
9701 Assert that the destination contents we're overwriting are wholly
9703 (value_contents_copy): Extend describing comment.
9705 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9706 Jan Kratochvil <jan.kratochvil@redhat.com>
9708 * value.c (value_available_contents_eq): Remove redundant local
9709 variables. Fix available contents comparision.
9710 * value.h (value_available_contents_eq): Extend describing
9713 2011-02-16 Yao Qi <yao@codesourcery.com>
9715 * thread.c (info_threads_command): Add missing i18n markup and remove
9718 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9720 * breakpoint.c (longjmp_names): New variable.
9721 (struct breakpoint_objfile_data): New type.
9722 (breakpoint_objfile_key): New variable.
9723 (msym_not_found): New variable.
9724 (msym_not_found_p): New predicate.
9725 (get_breakpoint_objfile_data): New function.
9726 (create_overlay_event_breakpoint): Check per-objfile cache for
9728 (create_longjmp_master_breakpoint): Likewise.
9729 (create_std_terminate_master_breakpoint): Likewise.
9730 (create_exception_master_breakpoint): Likewise.
9731 (_initialize_breakpoint): Register per-objfile data key.
9733 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9735 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9737 (create_longjmp_master_breakpoint): Loop over longjmp names.
9738 (create_std_terminate_master_breakpoint): Const-propagate parameter
9740 (update_breakpoints_after_exec): Adjust.
9741 (breakpoint_re_set): Adjust.
9743 2011-02-15 Michael Snyder <msnyder@vmware.com>
9745 * thread.c (info_threads_command): Process arg as thread id,
9746 or list of thread ids.
9747 (thread_find_command): New command.
9748 (_initialize_thread): Document argument for info threads.
9749 Document 'thread find' command.
9750 * NEWS: Document new command "thread find".
9752 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9755 * aclocal.m4: Regenerated with aclocal-1.11.1.
9756 * common/configure: Regenerate with autoconf-2.64.
9758 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9760 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9761 bool data type to a size of one byte.
9763 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9764 Jan Kratochvil <jan.kratochvil@redhat.com>
9766 * target.c (memory_xfer_live_readonly_partial): Document where to
9767 look for interface description.
9769 2011-02-15 Yao Qi <yao@codesourcery.com>
9772 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9773 order to store PC value on stack instead of text section.
9775 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9777 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9778 the EFP register set size.
9779 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9780 data from the VMX register.
9781 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9782 and write data from/to the VMX register.
9784 2011-02-14 Michael Snyder <msnyder@vmware.com>
9786 * command.h (enum command_class): New class 'no_set_class', for
9787 "show" commands without a corresponding "set" command.
9788 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9789 * copying.c (_initialize_copying): Ditto for "show copying" and
9791 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9793 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9794 which there is no corresponding "set" command (eg. "show copying").
9796 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9797 Jan Kratochvil <jan.kratochvil@redhat.com>
9799 * exec.c (section_table_available_memory): Change `len' parameter
9801 * exec.h (section_table_available_memory): Ditto.
9802 * value.h (read_value_memory): Rename the `offset' parameter to
9805 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9806 Jan Kratochvil <jan.kratochvil@redhat.com>
9808 * memrange.c (compare_mem_ranges): Mention sort order in
9810 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9811 * tracepoint.c (traceframe_available_memory): Extend comment to
9812 mention what happens to RESULT when the target does not support
9815 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9816 Jan Kratochvil <jan.kratochvil@redhat.com>
9818 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9821 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9823 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9824 No longer handle NULL values.
9826 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9828 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9829 * value.c: Include "exceptions.h".
9830 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9832 * cp-abi.c: Include gdb_assert.h.
9833 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9834 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9836 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9837 parameters. No longer returns -1 on error.
9838 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9840 * cp-valprint.c: Include exceptions.h.
9841 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9842 the baseclass_offset. Handle unavailable base classes. Use
9843 val_print_invalid_address.
9844 * p-valprint.c: Include exceptions.h.
9845 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9846 when fetching the baseclass_offset. No longer expect
9847 baseclass_offset returning -1. Handle unavailable base classes.
9848 Use val_print_invalid_address.
9849 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9850 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9851 `embedded_offset' and `val' parameters. Adjust.
9852 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9853 parameter, and change its type to gdb_byte pointer. Add
9854 `embedded_offset' and `val' parameters. Adjust. No longer expect
9855 baseclass_offset returning -1.
9856 (value_dynamic_cast): Use value_contents_for_printing rather than
9857 value_contents. Adjust.
9858 (search_struct_field): No longer expect baseclass_offset returning
9860 (search_struct_method): If reading memory from the target is
9861 necessary, wrap it in a new value to pass to baseclass_offset. No
9862 longer expect baseclass_offset returning -1.
9863 (find_method_list): No longer expect baseclass_offset returning
9864 -1. Use value_contents_for_printing rather than value_contents.
9865 * valprint.c (val_print_invalid_address): New function.
9866 * valprint.h (val_print_invalid_address): Declare.
9867 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9868 and `val' parameters. No longer expect baseclass_offset returning
9870 * gnu-v2-abi.c: Include "exceptions.h".
9871 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9872 parameters. Handle unavailable memory. Recurse through
9873 gnuv2_baseclass_offset directly, rather than through
9874 baseclass_offset. No longer returns -1 on not found, instead
9876 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9877 `val' parameters. Adjust.
9879 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9881 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9882 almost but not quite adjacent.
9884 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9886 * value.h (value_entirely_available): Declare.
9887 * value.c (value_entirely_available): New function.
9888 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9889 real type if the pointer is unavailable.
9891 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9893 * valops.c (value_repeat): Use read_value_memory instead of
9896 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9898 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9899 * value.c (value_contents_copy_raw, value_contents_copy): New
9901 (value_primitive_field): Use value_contents_copy_raw instead of
9903 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9905 (value_array, value_slice): Ditto.
9906 * valarith.c (value_subscripted_rvalue): Use
9907 value_contents_copy_raw instead of memcpy.
9909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9911 <unavailable> references.
9913 * valops.c (get_value_at): Use value_from_contents_and_address,
9914 avoiding read_memory.
9916 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9918 * c-valprint.c (c_val_print): Print a string with unavailable
9919 contents as an array.
9921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9923 * value.h (unpack_bits_as_long): Delete declaration.
9924 (unpack_value_bits_as_long): Declare.
9925 (unpack_value_field_as_long): Declare.
9926 (value_field_bitfield): Declare.
9927 * value.c (unpack_bits_as_long): Rename to...
9928 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9929 value parameters. Return the extracted result in a new output
9930 parameter. If the value contents are unavailable, return false,
9931 otherwise return true.
9932 (unpack_value_bits_as_long): New.
9933 (unpack_field_as_long): Rename to...
9934 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9935 Add embedded_offset and value parameters. Return the extracted
9936 result in a new output parameter. If the value contents are
9937 unavailable, return false, otherwise return true.
9938 (unpack_value_field_as_long): New.
9939 (unpack_field_as_long_1): New.
9940 (unpack_field_as_long): Reimplement as wrapper around
9941 unpack_value_field_as_long_1.
9942 (value_field_bitfield): New function.
9943 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9944 unpack_value_bits_as_long. Mark the value as unavailable, if it
9946 * jv-valprint.c (java_print_value_fields): Use
9947 value_field_bitfield.
9948 * p-valprint.c (pascal_object_print_value_fields): Use
9949 value_field_bitfield.
9950 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9952 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9954 * value.c (get_internalvar_integer): Also return the int value of
9955 TYPE_CODE_INT INTERNALVAR_VALUE values.
9956 (set_internalvar): Don't special case TYPE_CODE_INT.
9958 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9960 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9961 INTERNALVAR_POINTER.
9963 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9964 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9965 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9967 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9969 * value.h (value_available_contents_eq): Declare.
9970 * value.c (find_first_range_overlap): New function.
9971 (value_available_contents_eq): New function.
9972 * valprint.c (val_print_array_elements): Use
9973 value_available_contents_eq.
9974 * ada-valprint.c (val_print_packed_array_elements): Use
9975 value_available_contents_eq.
9976 * jv-valprint.c (java_value_print): Use
9977 value_available_contents_eq.
9979 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9981 * target.c (target_read_live_memory): New function.
9982 (memory_xfer_live_readonly_partial): New.
9983 (memory_xfer_partial): If reading from a traceframe, fallback to
9984 reading unavailable read-only memory from read-only regions of
9986 * tracepoint.c (disconnect_tracing): Adjust.
9987 (set_current_traceframe): New, factored out from
9988 set_traceframe_number.
9989 (set_traceframe_number): Reimplement to only change the traceframe
9990 number on the GDB side.
9991 (do_restore_current_traceframe_cleanup): Adjust.
9992 (make_cleanup_restore_traceframe_number): New.
9993 (cur_traceframe_number): New global.
9994 (tfile_open): Set cur_traceframe_number to no traceframe.
9995 (set_tfile_traceframe): New function.
9996 (tfile_trace_find): If looking up a traceframe using any method
9997 other than by number, make sure the current tfile traceframe
9998 matches gdb's current traceframe. Update the current tfile
9999 traceframe if the lookup succeeded.
10000 (tfile_fetch_registers, tfile_xfer_partial)
10001 (tfile_get_trace_state_variable_value): Make sure the remote
10002 traceframe matches gdb's current traceframe.
10003 * remote.c (remote_traceframe_number): New global.
10004 (remote_open_1): Set it to -1.
10005 (set_remote_traceframe): New function.
10006 (remote_fetch_registers, remote_store_registers)
10007 (remote_xfer_memory, remote_xfer_partial)
10008 (remote_get_trace_state_variable_value): Make sure the remote
10009 traceframe matches gdb's current traceframe.
10010 (remote_trace_find): If looking up a traceframe using any method
10011 other than by number, make sure the current remote traceframe
10012 matches gdb's current traceframe. Update the current remote
10013 traceframe if the lookup succeeded.
10014 * infrun.c (fetch_inferior_event): Adjust.
10015 * tracepoint.h (set_current_traceframe): Declare.
10016 (get_traceframe_number, set_traceframe_number): Add describing
10019 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10021 Mark pieces of values as unavailable if the corresponding memory
10024 * valops.c: Include tracepoint.h.
10025 (value_fetch_lazy): Use read_value_memory.
10026 (read_value_memory): New.
10027 * value.h (read_value_memory): Declare.
10028 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10029 * exec.c (section_table_available_memory): New function.
10030 * exec.h (section_table_available_memory): Declare.
10032 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10034 * Makefile.in (SFILES): Add memrange.c.
10035 (HFILES_NO_SRCDIR): Add memrange.h.
10036 (COMMON_OBS): Add memrange.o.
10037 * memrange.c: New file.
10038 * memrange.h: New file.
10039 * tracepoint.c: Include memrange.h.
10040 (struct mem_range): Delete.
10041 (mem_range_s): Delete.
10042 (traceframe_available_memory): New function.
10043 * tracepoint.h (traceframe_available_memory): Declare.
10045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10047 * target.h (struct traceframe_info): Forward declare.
10048 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10049 (struct target_ops) <to_traceframe_info>: New field.
10050 (target_traceframe_info): New.
10051 * target.c (update_current_target): Inherit and default
10052 to_traceframe_info.
10053 * remote.c (PACKET_qXfer_traceframe_info): New.
10054 (remote_protocol_features): Register qXfer:traceframe-info:read.
10055 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10056 (remote_traceframe_info): New.
10057 (init_remote_ops): Install it.
10058 (_initialize_remote): Install "set/show remote traceframe-info"
10060 * tracepoint.h (parse_traceframe_info): Declare.
10061 * tracepoint.c (struct mem_range): New.
10062 (mem_range_s): New typedef.
10063 (struct traceframe_info): New.
10064 (traceframe_info): New global.
10065 (free_traceframe_info): New function.
10066 (clear_traceframe_info): New function.
10067 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10069 (build_traceframe_info): New function.
10070 (tfile_traceframe_info): New function.
10071 (init_tfile_ops): Install tfile_traceframe_info.
10072 (traceframe_info_start_memory, free_result): New functions.
10073 (memory_attributes, traceframe_info_elements): New globals.
10074 (parse_traceframe_info, get_traceframe_info): New functions.
10075 * features/traceframe-info.dtd: New file.
10076 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10078 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10080 Base support for <unavailable> value contents.
10082 * value.h (value_bytes_available): Declare.
10083 (mark_value_bytes_unavailable): Declare.
10084 * value.c (struct range): New struct.
10085 (range_s): New typedef.
10086 (ranges_overlap): New function.
10087 (range_lessthan): New function.
10088 (ranges_contain_p): New function.
10089 (struct value) <unavailable>: New field.
10090 (value_bytes_available): New function.
10091 (mark_value_bytes_unavailable): New function.
10092 (require_not_optimized_out): Constify parameter.
10093 (require_available): New function.
10094 (value_contents_all, value_contents): Require all bytes be
10096 (value_free): Free `unavailable'.
10097 (value_copy): Copy `unavailable'.
10098 * valprint.h (val_print_unavailable): Declare.
10099 * valprint.c (valprint_check_validity): Rename `offset' parameter
10100 to `embedded_offset'. If printing a scalar, check whether the
10101 value chunk is available.
10102 (val_print_unavailable): New.
10103 (val_print_scalar_formatted): Check whether the value is
10105 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10106 pretty-printing unavailable values.
10108 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10110 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10111 * c-typeprint.c (c_type_print_args): Update the function comment. New
10112 variable param_type, initialize it. Remove const/volatile qualifiers
10113 for language_cplus and !show_artificial. Use param_type.
10115 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10117 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10118 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10119 * symtab.h (struct symtab) <next>: Comment extension.
10121 2011-02-12 Yao Qi <yao@codesourcery.com>
10123 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10125 2011-02-11 Yao Qi <yao@codesourcery.com>
10127 * common/Makefile.in: Add copyright header.
10129 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10131 * infrun.c (proceed): Move switching out and in of tfind mode from
10133 (fetch_inferior_event): ... to here.
10135 2011-02-11 Yao Qi <yao@codesourcery.com>
10137 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10139 * configure.ac: Add common to sub dir.
10140 * configure: Regenerate.
10142 2011-02-11 Yao Qi <yao@codesourcery.com>
10146 * common/Makefile.in: New.
10147 * common/configure.ac: New.
10148 * common/aclocal.m4: New.
10149 * common/configure: Generate.
10151 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10153 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10154 side of the parenthesis.
10157 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10158 * vec.h (VEC_block_remove): Fix comment.
10160 2011-02-08 Michael Snyder <msnyder@vmware.com>
10162 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10164 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10167 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10170 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10173 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10175 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10176 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10178 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10180 * dwarf2read.c (read_subroutine_type): Set special calling
10181 convention flag for functions compiled by IBM XL C for OpenCL.
10182 * ppc-sysv-tdep.c: Include "dwarf2.h"
10183 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10184 calling convention.
10185 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10186 IBM OpenCL vector types calling convention.
10187 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10188 (ppc_sysv_abi_broken_return_value): Likewise.
10189 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10190 types calling convention.
10191 (ppc64_sysv_abi_return_value): Likewise.
10192 * spu-tdep.c: Include "dwarf2.h"
10193 (spu_return_value): Implement IBM OpenCL vector types calling
10196 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10198 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10199 correct ABI for AltiVec vector arguments.
10201 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10203 * valprint.c (val_print): Extend comment.
10204 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10205 interface explanation to val_print.
10206 (ada_val_print_array): Adjust comment to current interface.
10207 (print_field_values): Adjust comment to current interface.
10208 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10209 explanation to val_print.
10210 * f-valprint.c (f_val_print): Ditto.
10211 * jv-valprint.c (java_val_print): Ditto.
10212 * m2-valprint.c (m2_val_print): Ditto.
10213 * p-valprint.c (pascal_val_print): Ditto.
10215 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10217 * breakpoint.c (parse_breakpoint_sals): Fix description.
10219 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10220 Oguz Kayral <oguzkayral@gmail.com>
10222 * python/py-inferior.c (python_on_normal_stop): New function.
10223 (python_on_resume): New function.
10224 (python_inferior_exit): New function.
10225 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10226 inferior_exit observers.
10227 * python/py-evtregistry.c: New file.
10228 * python/py-threadevent.c : New file.
10229 * python/py-event.c: New file.
10230 * python/py-evts.c: New file.
10231 * python/py-continueevent.c: New file.
10232 * python/py-bpevent.c: New file.
10233 * python/py-signalevent.c: New file.
10234 * python/py-exetiedevent.c: New file.
10235 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10236 Move struct breakpoint_object from here...
10237 * python/python-internal.h: ... to here.
10238 * python/py-event.h: New file.
10239 * python/py-events.h: New file.
10240 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10241 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10242 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10243 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10244 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10245 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10246 Add build rules for all the above.
10248 2011-02-04 Tom Tromey <tromey@redhat.com>
10250 * dwarf2read.c (dwarf2_section_empty_p): New function.
10251 (dwarf2_read_section): Use dwarf2_section_empty_p.
10252 (dwarf2_section_size): New function.
10253 (dwarf2_get_section_info): Unconditionally read section.
10254 (dwarf2_read_index): Use dwarf2_section_empty_p.
10255 (partial_read_comp_unit_head): Use dwarf2_section_size.
10256 (dwarf2_symbol_mark_computed): Likewise.
10258 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10260 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10262 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10264 * mips-linux-tdep.c: Include xml-syscall.h.
10265 (mips_linux_get_syscall_number): New function.
10266 (mips_linux_init_abi): Add calls to
10267 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10268 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10269 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10270 * syscalls/mips-n32-linux.xml: New file.
10271 * syscalls/mips-n64-linux.xml: New file.
10272 * syscalls/mips-o32-linux.xml: New file.
10274 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10276 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10277 Complain about inverted range entries.
10278 (dwarf2_record_block_ranges): Likewise.
10280 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10283 * breakpoint.c (update_watchpoint): Fix name of the
10284 update_global_location_list function.
10285 (print_one_breakpoint): Fix typo.
10286 (_initialize_breakpoint): Remove extra space in hbreak help
10288 * breakpoint.h (struct bp_location) <length>: Fix field
10291 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10293 * regcache.c (registers_changed_ptid): Don't explictly always
10294 clear `current_regcache'. Only clear current_thread_ptid and
10295 current_thread_arch when PTID matches. Only reinit the frame
10296 cache if PTID matches the current inferior_ptid. Move alloca(0)
10298 (registers_changed): ... here.
10300 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10302 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10303 starts with __stack_chk_guard as stack guard symbol.
10305 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10307 * disasm.c (compare_lines): Handle the end of sequence markers
10308 within the line table to better support disassembling over
10309 compilation unit boundaries.
10311 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10313 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10314 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10315 implementation even if no symbols are available.
10316 (thumb_analyze_prologue): Update call to skip_prologue_function.
10317 (arm_analyze_prologue): Likewise.
10319 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10321 * arm-tdep.c: Include "observer.h".
10322 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10323 (arm_exidx_data_key): New static variable.
10324 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10325 (struct arm_exidx_data): Likewise.
10326 (arm_exidx_data_free): New function.
10327 (arm_compare_exidx_entries): Likewise.
10328 (arm_obj_section_from_vma): Likewise.
10329 (arm_exidx_new_objfile): Likewise.
10330 (arm_find_exidx_entry): Likewise.
10331 (arm_exidx_fill_cache): Likewise.
10332 (arm_exidx_unwind_sniffer): Likewise.
10333 (arm_exidx_unwind): New global variable.
10334 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10335 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10336 observer. Register arm_exidx_data_key as objfile data.
10338 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10340 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10341 due to accessing uninitialized variable. Fix indentation.
10343 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10345 * c-valprint.c (c_value_print): When doing virtual base pointer
10346 adjustment, create a new value with adjusted contents rather than
10347 changing the contents of the value being printed (and getting it
10350 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10352 * xml-support.c (xml_find_attribute): New.
10353 (xinclude_start_include): Use it.
10354 * xml-support.h (xml_find_attribute): Declare.
10355 * memory-map.c (memory_map_start_memory)
10356 (memory_map_start_property): Use xml_find_attribute.
10357 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10358 xml_find_attribute.
10359 * remote.c (start_thread): Use xml_find_attribute.
10360 * solib-target.c (library_list_start_segment)
10361 (library_list_start_section, library_list_start_library)
10362 (library_list_start_list): Use xml_find_attribute.
10363 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10364 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10365 (tdesc_start_field): Use xml_find_attribute.
10367 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10369 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10370 (BUILD_OCL_VTYPES): Update.
10372 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10374 * configure.ac: Work around non-GNU sed limitation when computing
10375 python version number.
10376 * configure: Regenerate.
10378 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 Fix debug printing of TYPE_INSTANCE.
10381 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10382 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10384 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10387 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10388 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10389 * ada-operator.inc: Rename the file to ...
10390 * ada-operator.def: ... here, wrap all the entries by macro OP.
10391 * expprint.c (op_name_standard): Remove all the entries. Include
10392 "std-operator.def" instead.
10393 * expression.h (enum exp_opcode): Include "std-operator.def" and
10394 "ada-operator.def". Move all the entries ...
10395 * std-operator.def: ... here, wrap all the entries by macro OP.
10397 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10399 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10400 * breakpoint.c (remove_jit_event_breakpoints): New function.
10401 * jit.c (jit_descriptor_addr): Delete.
10402 (registering_code): Delete.
10403 (clear_int): Delete.
10404 (jit_inferior_data): New variable.
10405 (struct jit_inferior_data): New type.
10406 (get_jit_inferior_data): New function.
10407 (jit_inferior_data_cleanup): New function.
10408 (jit_read_descriptor): Adjust.
10409 (jit_register_code): Adjust.
10410 (jit_breakpoint_re_set_internal): New function; move code here ...
10411 (jit_inferior_init): ... from here.
10412 (jit_breakpoint_re_set): Adjust.
10413 (jit_reset_inferior_data_and_breakpoints): New function.
10414 (jit_inferior_created_observer): Adjust.
10415 (jit_inferior_exit_hook): Adjust.
10416 (jit_executable_changed_observer): New function.
10417 (jit_event_handler): Adjust.
10418 (_initialize_jit): Adjust.
10420 2011-01-31 Michael Snyder <msnyder@vmware.com>
10422 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10425 2011-01-31 Tom Tromey <tromey@redhat.com>
10428 * python/python.c (execute_gdb_command): Call
10429 prevent_dont_repeat.
10430 * top.c (suppress_dont_repeat): New global.
10431 (dont_repeat): Use it.
10432 (prevent_dont_repeat): New function.
10433 * command.h (prevent_dont_repeat): Declare.
10435 2011-01-31 Tom Tromey <tromey@redhat.com>
10437 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10438 * python/py-breakpoint.c (bppy_set_silent): Use
10439 breakpoint_set_silent.
10440 (bppy_set_thread): Use breakpoint_set_thread.
10441 (bppy_set_task): Use breakpoint_set_task.
10442 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10443 (breakpoint_set_task): Declare.
10444 (make_breakpoint_silent): Remove.
10445 * breakpoint.c (breakpoint_set_silent): New function.
10446 (breakpoint_set_thread): Likewise.
10447 (breakpoint_set_task): Likewise.
10448 (make_breakpoint_silent): Remove.
10450 2011-01-31 Tom Tromey <tromey@redhat.com>
10452 * breakpoint.h (user_breakpoint_p): Declare.
10453 * breakpoint.c (user_breakpoint_p): New function.
10454 (breakpoint_1): Use it.
10455 (save_breakpoints): Likewise.
10457 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10459 * configure.ac: Add handling of Python distribution on Windows.
10460 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10461 sysconfig variables are not defined, then do not use them.
10462 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10463 instead. On Windows, return all paths using forward-slashes
10464 rather than backslashes.
10466 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10468 * configure.ac: Remove fallback behavior for building
10469 against Python. Remove tweaking of Python include path.
10470 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10471 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10472 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10473 Always restore CPPFLAGS and LIBS after linking test.
10474 * configure: Regenerated.
10475 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10476 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10477 * python/python-internal.h: Adjust includes of Python .h files.
10479 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10481 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10484 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10486 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10489 2011-01-31 Yao Qi <yao@codesourcery.com>
10491 * arm-linux-nat.c: Update calls to regcache_register_status
10492 instead of regcache_valid_p.
10493 * aix-thread.c: Likewise.
10494 * i386gnu-nat.c: Likewise.
10496 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10499 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10500 touching TYPE_FIELD_ARTIFICIAL.
10502 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10504 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10507 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10509 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10510 selected, don't try iterating over the traceframe's blocks.
10511 (tfile_has_stack): If there's no traceframe selected, then there's
10513 (tfile_has_registers): If there's no traceframe selected, then
10514 there's no registers.
10516 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10518 * target.c (memory_xfer_partial): No need to restore shadows if we
10519 haven't read anything.
10521 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10523 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10524 and val_print_scalar_formatted.
10526 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10528 * tracepoint.c (tfile_read): New.
10529 (tfile_open): Use it.
10530 (tfile_get_traceframe_address): Use it.
10531 (tfile_trace_find): Use it.
10532 (walk_blocks_callback_func): New typedef.
10533 (match_blocktype): New function.
10534 (traceframe_walk_blocks): New function.
10535 (traceframe_find_block_type): New function.
10536 (tfile_fetch_registers, tfile_xfer_partial)
10537 (tfile_get_trace_state_variable_value): Use
10538 traceframe_find_block_type and tfile_read.
10540 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10542 * remote-mips.c: Add internationalization mark ups. Remove
10543 trailing \n from already marked up strings.
10545 2011-01-26 Tom Tromey <tromey@redhat.com>
10547 * python/py-prettyprint.c (print_string_repr): Clear
10548 'addressprint' option when calling val_print_string.
10549 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10550 option when calling val_print_string.
10552 2011-01-26 Tom Tromey <tromey@redhat.com>
10554 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10556 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10558 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10559 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10560 (gdb_py_long_as_ulongest): New defines.
10561 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10562 (gdb_py_int_as_long): Declare.
10563 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10564 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10565 (valpy_long): Add comment.
10566 * python/py-utils.c (get_addr_from_python): Use
10567 gdb_py_long_as_ulongest. Handle overflow properly.
10568 (gdb_py_object_from_longest): New function.
10569 (gdb_py_object_from_ulongest): Likewise.
10570 (gdb_py_int_as_long): Likewise.
10571 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10572 * python/py-symtab.c (salpy_get_pc): Use
10573 gdb_py_long_from_ulongest.
10574 (salpy_get_line): Use PyInt_FromLong.
10575 * python/py-param.c (set_parameter_value): Use
10576 gdb_py_int_as_long.
10577 * python/py-lazy-string.c (stpy_get_address): Use
10578 gdb_py_long_from_ulongest.
10579 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10580 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10581 * python/py-breakpoint.c (bppy_set_thread): Use
10582 gdb_py_int_as_long.
10583 (bppy_set_task): Likewise.
10584 (bppy_set_ignore_count): Likewise.
10585 (bppy_set_hit_count): Likewise.
10586 * python/py-block.c (blpy_get_start): Use
10587 gdb_py_object_from_ulongest.
10588 (blpy_get_end): Likewise.
10589 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10591 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10594 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10595 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10596 equality test for objfile, initialize addr_low if needed.
10598 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10600 * tui/tui-regs.c (tui_register_format): Remove dead code.
10602 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10604 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10605 instead of print_scalar_formatted.
10606 (print_scalar_formatted): Don't handle 's' format strings here,
10607 and add an assertion that we never see such format here.
10608 * valprint.h (val_print_scalar_formatted): Declare.
10609 * valprint.c (val_print_scalar_formatted): New.
10610 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10611 instead of print_scalar_formatted.
10612 * jv-valprint.c (java_val_print): Ditto.
10613 * p-valprint.c (pascal_val_print): Ditto.
10614 * ada-valprint.c (ada_val_print_1): Ditto.
10615 * f-valprint.c (f_val_print): Ditto.
10616 * infcmd.c (registers_info): Ditto.
10617 * m2-valprint.c (m2_val_print): Ditto.
10619 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10621 * m2-valprint.c (print_unbounded_array): Pass
10622 value_contents_for_printing rather than value_contents, to
10623 m2_print_array_contents. Also pass in the value.
10625 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10627 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10628 (save_gdb_index_command): Switch to .gdb_index version 4.
10630 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10632 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10633 than frame_register, and always pass a valid value to val_print.
10635 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10637 Centralize printing "<optimized out>".
10639 * valprint.h (val_print_optimized_out): Declare.
10640 * cp-valprint.c (cp_print_value_fields): Use
10641 val_print_optimized_out.
10642 * jv-valprint.c (java_print_value_fields): Ditto.
10643 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10644 * printcmd.c (print_formatted): Ditto.
10645 * valprint.c (valprint_check_validity): Ditto.
10646 (value_check_printable): Ditto.
10647 (val_print_optimized_out): New.
10649 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10651 * infcmd.c (default_print_registers_info): Allocate values so to
10652 never pass a NULL value to val_print.
10654 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10656 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10657 boolean. Make sure to always pass a value that matches the
10658 contents buffer to callees. Preserve `address' for following
10660 * value.c (value_contents_for_printing_const): New.
10661 (value_address): Constify value argument.
10662 * value.h (value_contents_for_printing_const): Declare.
10663 (value_address): Constify value argument.
10665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10667 * regcache.c (struct regcache_descr): Rename
10668 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10669 and sizeof_cooked_register_valid_p to
10670 sizeof_cooked_register_status.
10671 (init_regcache_descr): Adjust.
10672 (struct regcache): Rename register_valid_p field to
10674 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10675 (do_cooked_read): Adjust.
10676 (regcache_valid_p): Rename to ...
10677 (regcache_register_status): ... this. Adjust.
10678 (regcache_invalidate): Adjust.
10679 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10681 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10682 as unavailable, not valid.
10683 (regcache_dump): Adjust.
10684 * regcache.h (enum register_status): New.
10685 (regcache_register_status): Declare.
10686 (regcache_invalidate): Delete declaration.
10687 * corelow.c (get_core_registers): Adjust.
10688 * tracepoint.c (tfile_fetch_registers): Adjust.
10689 * trad-frame.c (REG_VALUE): Rename to ...
10690 (TF_REG_VALUE): ... this.
10691 (REG_UNKNOWN): Rename to ...
10692 (TF_REG_UNKNOWN): ... this.
10693 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10694 * mi/mi-main.c (register_changed_p): Adjust.
10696 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10698 * regcache.c (struct regcache_descr): Remove outdated comment.
10699 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10701 (regcache_xmalloc): Rename to ...
10702 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10703 Allocate the regcache type accordingly.
10704 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10705 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10706 cooked registers, not raw.
10707 (regcache_dup_no_passthrough): Delete.
10708 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10709 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10710 mention obsolete write_register_bytes.
10711 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10713 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10715 Stop remote_read_bytes from handling partial reads itself.
10717 * remote-fileio.c: Include target.h.
10718 (remote_fileio_write_bytes): Delete.
10719 (remote_fileio_func_open, remote_fileio_func_write)
10720 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10721 target_read_memory.
10722 (remote_fileio_func_stat): Use target_read_memory and
10723 target_write_memory.
10724 (remote_fileio_func_gettimeofday): Use target_write_memory.
10725 (remote_fileio_func_system): Use target_read_memory.
10726 * remote.c (remote_write_bytes): Make it static.
10727 (remote_read_bytes): Don't handle partial reads here.
10728 * remote.h (remote_read_bytes): Delete declaration.
10730 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10732 Simplify XML parsing a bit.
10734 * xml-support.h (gdb_xml_parse_quick): Declare.
10735 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10736 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10738 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10739 gdb_xml_create_parser_and_cleanup_1.
10740 (gdb_xml_parse_quick): New.
10741 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10742 * osdata.c (osdata_parse): Ditto.
10743 * remote.c (remote_threads_info): Ditto.
10744 * solib-target.c (solib_target_parse_libraries): Ditto.
10745 * xml-syscall.c (syscall_parse_xml): Ditto.
10746 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10748 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10750 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10751 with remote-mips.o added to gdb_target_obs.
10752 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10754 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10756 * ada-valprint.c (val_print_packed_array_elements): Pass the
10757 correct struct value to val_print.
10758 (ada_val_print_1): Ditto.
10760 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10762 Don't lose embedded_offset in printing routines throughout.
10764 * valprint.h (val_print_array_elements): Change prototype.
10765 * valprint.c (val_print_array_elements): Add `embedded_offset'
10766 parameter, and adjust to pass it down to val_print, while passing
10767 `valaddr' or `address' unmodified. Take embedded_offset into
10768 account when checking repetitions.
10769 * c-valprint.c (c_val_print): Pass embedded_offset to
10770 val_print_array_elements instead of adjusting `valaddr' and
10772 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10773 embedded_offset to val_print_array_elements instead of adjusting
10775 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10776 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10777 val_print_array_elements and pascal_object_print_value_fields
10778 instead of adjusting `valaddr'.
10779 (pascal_object_print_value_fields): Add `offset' parameter, and
10781 (pascal_object_print_value): Add `offset' parameter, and adjust to
10783 (pascal_object_print_static_field): Use
10784 value_contents_for_printing/value_embedded_offset, rather than
10786 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10787 parameter, and adjust to use it. Use
10788 value_contents_for_printing/value_embedded_offset, rather than
10790 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10791 (ada_val_print_array): Add `offset' parameter, and adjust to use
10793 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10794 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10795 Instead work with offsets. Use
10796 value_contents_for_printing/value_embedded_offset, rather than
10797 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10798 and use value_from_pointer to extract a target pointer, rather
10799 than value_from_longest.
10800 (print_variant_part): Add `offset' parameter. Replace
10801 `outer_valaddr' parameter by a new `outer_offset' parameter.
10802 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10803 (ada_value_print): Use
10804 value_contents_for_printing/value_embedded_offset, rather than
10806 (print_record): Add `offset' parameter, and adjust to pass it
10808 (print_field_values): Add `offset' parameter. Replace
10809 `outer_valaddr' parameter by a new `outer_offset' parameter.
10810 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10811 Use value_contents_for_printing/value_embedded_offset, rather than
10813 * d-valprint.c (dynamic_array_type): Use
10814 value_contents_for_printing/value_embedded_offset, rather than
10816 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10817 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10818 (java_print_value_fields): Take `offset' into account. Don't
10819 re-adjust `valaddr'. Instead pass down adjusted offsets.
10820 (java_val_print): Take `embedded_offset' into account. Pass it to
10821 java_print_value_fields.
10822 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10823 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10824 down adjusted offsets.
10825 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10826 (f_val_print): Take `embedded_offset' into account.
10828 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10830 * inflow.c: Include "gdbcmd.h".
10831 (interactive_mode): New static global, moved here from top.c.
10832 (show_interactive_mode): New function, moved here from top.c.
10833 use gdb_has_a_terminal instead of input_from_terminal_p to
10834 determine the current mode.
10835 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10837 (_initialize_inflow): Add the "set/show interactive-mode"
10838 commands. Moved here from top.c, after having adjusted slightly
10840 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10842 (input_from_terminal_p): Remove handling of "interactive-mode"
10843 setting, moved to infow.c.
10844 (init_main): Remove creation of the "set/show interactive-mode"
10845 commands, moved to inflow.c.
10847 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10849 * NEWS: Add entry for native ia64-hpux support.
10851 2011-01-19 Tom Tromey <tromey@redhat.com>
10854 * thread.c (free_thread): Free 'name'.
10855 (print_thread_info): Emit thread name. Change CLI output.
10856 (thread_name_command): New function.
10857 (do_captured_thread_select): Emit newline.
10858 (_initialize_thread): Register 'thread name' command.
10859 * target.h (struct target_ops) <to_thread_name>: New field.
10860 (target_thread_name): New macro.
10861 * target.c (update_current_target): Handle to_thread_name.
10862 * python/py-infthread.c (thpy_get_name): New function.
10863 (thpy_set_name): Likewise.
10864 (thread_object_getset): Add "name".
10865 * linux-nat.c (linux_nat_thread_name): New function.
10866 (linux_nat_add_target): Set to_thread_name.
10867 * gdbthread.h (struct thread_info) <name>: New field.
10869 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10871 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10872 (ada_val_print_1): Likewise.
10874 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10876 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10877 upper limit address is not greater than the function end address
10878 when the upper limit could not be computed using the debugging
10881 2011-01-17 Tom Tromey <tromey@redhat.com>
10883 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10885 * utils.c: Include gdb_regex.h.
10886 (do_regfree_cleanup): New function.
10887 (make_regfree_cleanup): Likewise.
10888 (get_regcomp_error): Likewise.
10889 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10891 2011-01-17 Tom Tromey <tromey@redhat.com>
10893 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10894 re_compile_fastmap.
10896 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10898 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10899 for internal variables.
10900 (last_was_structop): New static variable.
10901 (COMPLETE): New token.
10902 (field_exp): New rule to group all '.' suffix handling.
10903 Add mark_struct_expression calls when approriate to be able
10904 to correctly find fields for completion.
10905 (yylex): Adapt to handle field completion and set INTVAR when
10908 2011-01-14 Yao Qi <yao@codesourcery.com>
10910 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10911 save_reggroup, restore_reggroup and all_reggroup.
10913 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10915 * ada-valprint. (ada_printchar): Use the correct type length
10916 in call to ada_emit_char.
10917 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10919 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10921 * solib-som.h (hpux_major_release): Declare variable here.
10922 * solib-som.c: Remove <sys/utsname.h> header.
10923 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10924 (hpux_major_release): Make global, change default value to
10925 DEFAULT_HPUX_MAJOR_RELEASE.
10926 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10927 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10928 Add "solib-som.h" header.
10929 (set_hpux_major_release): New function.
10930 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10932 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10934 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10936 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10938 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10939 new-line at end of warning message.
10940 (ia64_hpux_store_register): Remove trailing new-line at end of
10942 * ia64-hpux-tdep.c: Rephrase comment.
10943 * solib-ia64-hpux.c (struct dld_info): Change type of field
10944 dld_flags from "long long" to ULONGEST.
10946 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10948 * target.h (deprecated_child_ops): Delete declaration.
10949 * target.c (deprecated_child_ops): Delete definition.
10951 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10953 * Makefile.in (hpux-thread.o): Delete rule.
10954 * configure.ac: Don't check for HPUX DCE threads support.
10955 * configure, config.in: Regenerate.
10956 * hppa-hpux-nat.c (child_suppress_run): Delete.
10957 (hppa_hpux_child_can_run): Delete.
10958 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10959 * hpux-thread.c: Delete.
10961 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10963 * hpux-thread.c (hpux_pid_to_str): Delete.
10965 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10967 * ada-valprint.c (ada_emit_char): Remove strange code.
10968 Check that c is <= UCHAR_MAX before passing it to isascii.
10969 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10973 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10974 to the case where instream is stdin.
10976 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10978 * ia64-tdep.h (struct regcache): Forward declare.
10979 (struct ia64_infcall_ops): New struct type.
10980 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10982 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10983 Renames ia64_find_global_pointer.
10984 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10985 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10986 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10988 (ia64_infcall_ops): New static global constant.
10989 (ia64_gdbarch_init): Set tdep->infcall_ops.
10990 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10991 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10992 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10993 (ia64_hpux_dummy_code): New static global constant.
10994 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10995 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10996 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10998 (ia64_hpux_infcall_ops): New static global constant.
10999 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11000 for inferior function calls to work properly on ia64-hpux.
11002 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11004 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11005 * ia64-tdep.h (struct frame_info): forward declaration.
11006 (struct gdbarch_tdep): Add field size_of_register_frame.
11007 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11008 to determine the size of the register frame.
11009 (ia64_size_of_register_frame): New function.
11010 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11011 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11012 (IA64_HPUX_UREG_REASON): New macro.
11013 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11015 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11016 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11017 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11020 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11022 Add support for ia64-hpux.
11023 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11024 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11026 * configure.host: Add handling for ia64-hpux hosts. Add associated
11028 * configure.tgt: Add handling for ia64-hpux targets.
11029 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11030 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11031 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11033 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11035 [ttrace] Compute thread list immediately after attach.
11036 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11038 (inf_ttrace_attach): Use it.
11040 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11042 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11043 if we could not determine the frame's function address. Instead,
11044 use the frame's PC, and then continue.
11046 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11048 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11049 not already defined.
11051 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11053 * ia64-tdep.c (ia64_struct_type_p): New function.
11054 (ia64_extract_return_value): Handle integral values that are
11055 less than 8 bytes long.
11056 (ia64_push_dummy_call): Likewise.
11058 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11060 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11061 floatformat_ia64_ext.
11062 (floatformat_ia64_ext_big): New static const.
11063 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11065 2011-01-12 Tom Tromey <tromey@redhat.com>
11067 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11069 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11070 (mi_cmd_thread_list_ids): Likewise.
11071 (mi_cmd_data_list_changed_registers): Likewise.
11072 (mi_cmd_data_list_register_values): Likewise.
11073 (mi_cmd_data_write_register_values): Likewise.
11074 (mi_cmd_data_evaluate_expression): Likewise.
11075 (mi_cmd_data_read_memory): Likewise.
11076 (mi_cmd_data_read_memory_bytes): Likewise.
11077 (mi_cmd_data_write_memory): Likewise.
11078 (mi_cmd_enable_timings): Likewise.
11079 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11080 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11081 (mi_cmd_var_delete): Likewise.
11082 (mi_cmd_var_set_format): Likewise.
11083 (mi_cmd_var_show_format): Likewise.
11084 (mi_cmd_var_info_num_children): Likewise.
11085 (mi_cmd_var_list_children): Likewise.
11086 (mi_cmd_var_info_type): Likewise.
11087 (mi_cmd_var_info_expression): Likewise.
11088 (mi_cmd_var_show_attributes): Likewise.
11089 (mi_cmd_var_assign): Likewise.
11090 (mi_cmd_var_update): Likewise.
11091 (mi_cmd_enable_pretty_printing): Likewise.
11092 (mi_cmd_var_set_update_range): Likewise.
11093 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11095 (mi_cmd_target_file_put): Likewise.
11096 (mi_cmd_target_file_delete): Likewise.
11097 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11099 (mi_cmd_stack_info_depth): Likewise.
11100 (mi_cmd_stack_list_locals): Likewise.
11101 (mi_cmd_stack_list_args): Likewise.
11102 (mi_cmd_stack_select_frame): Likewise.
11103 (mi_cmd_stack_select_frame): Likewise.
11104 (mi_cmd_stack_info_frame): Likewise.
11105 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11107 (mi_cmd_file_list_exec_source_files): Likewise.
11108 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11109 (mi_cmd_env_cd): Likewise.
11110 (mi_cmd_env_path): Likewise.
11111 (mi_cmd_env_dir): Likewise.
11112 (mi_cmd_inferior_tty_show): Likewise.
11113 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11114 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11115 (mi_cmd_break_watch): Likewise.
11117 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11119 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11120 (ppc_linux_insert_hw_breakpoint): Likewise.
11121 (ppc_linux_remove_hw_breakpoint): Likewise.
11122 (ppc_linux_insert_watchpoint): Likewise.
11124 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11125 Jan Kratochvil <jan.kratochvil@redhat.com>
11127 PR fortran/11104 and DWARF unbound arrays detection.
11128 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11129 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11130 unspecified upper bound.
11131 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11132 variables array_size_array, tmp_type and offset_item. New variable
11133 array. Remove call to f77_get_upperbound. New variables array_type
11134 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11135 the final call to deprecated_set_value_type.
11137 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11139 Make value allocations more lazy.
11140 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11141 instead of allocate_value and set_value_lazy when possible.
11142 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11143 instead of allocate_value and set_value_lazy.
11144 * findvar.c (value_of_register_lazy): Likewise.
11145 (read_var_value): Remove V preallocation, call just check_typedef in
11146 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11147 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11148 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11149 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11150 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11151 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11152 the end, remove set_value_lazy there.
11153 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11154 instead of allocate_value and set_value_lazy when possible.
11155 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11156 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11157 of allocate_value and set_value_lazy.
11158 (value_from_contents_and_address): Use allocate_value_lazy instead of
11159 allocate_value and set_value_lazy when possible.
11161 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11163 * disasm.c (dump_insns): Support dumping opcodes for MI.
11164 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11165 dumping of instruction opcodes.
11167 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11169 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11172 2011-01-11 Tom Tromey <tromey@redhat.com>
11174 * thread.c (do_captured_thread_select): Emit newline before
11177 2011-01-11 Michael Snyder <msnyder@vmware.com>
11179 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11180 * score-tdep.c: Ditto.
11181 * score-tdep.h: Ditto.
11182 * ser-base.c: Ditto.
11183 * ser-go32.c: Ditto.
11186 * ser-mingw.c: Ditto.
11187 * ser-pipe.c: Ditto.
11188 * ser-tcp.c: Ditto.
11189 * ser-unix.c: Ditto.
11190 * sh64-tdep.c: Ditto.
11191 * shnbsd-nat.c: Ditto.
11192 * sh-tdep.c: Ditto.
11193 * sh-tdep.h: Ditto.
11195 * solib-darwin.c: Ditto.
11196 * solib-frv.c: Ditto.
11198 * solib-irix.c: Ditto.
11199 * solib-osf.c: Ditto.
11200 * solib-pa64.c: Ditto.
11201 * solib-som.c: Ditto.
11202 * solib-spu.c: Ditto.
11203 * solib-sunos.c: Ditto.
11204 * solib-svr4.c: Ditto.
11206 * sol-thread.c: Ditto.
11207 * somread.c: Ditto.
11210 * sparc64-linux-tdep.c: Ditto.
11211 * sparc64-tdep.c: Ditto.
11212 * sparc-linux-nat.c: Ditto.
11213 * sparc-linux-tdep.c: Ditto.
11214 * sparc-sol2-nat.c: Ditto.
11215 * sparc-sol2-tdep.c: Ditto.
11216 * sparc-tdep.c: Ditto.
11217 * sparc-tdep.h: Ditto.
11218 * spu-tdep.c: Ditto.
11219 * stabsread.c: Ditto.
11220 * stabsread.h: Ditto.
11222 * symfile.c: Ditto.
11223 * symfile.h: Ditto.
11224 * symmisc.c: Ditto.
11228 * target-descriptions.c: Ditto.
11229 * target-descriptions.h: Ditto.
11231 * target-memory.c: Ditto.
11232 * terminal.h: Ditto.
11235 * tracepoint.c: Ditto.
11236 * tracepoint.h: Ditto.
11237 * trad-frame.h: Ditto.
11238 * typeprint.c: Ditto.
11240 2011-01-11 Michael Snyder <msnyder@vmware.com>
11242 * ui-file.c: Comment cleanup, mostly periods and spaces.
11243 * ui-file.h: Ditto.
11247 * v850-tdep.c: Ditto.
11248 * valarith.c: Ditto.
11250 * valprint.c: Ditto.
11251 * valprint.h: Ditto.
11256 * vax-tdep.c: Ditto.
11259 * version.h: Ditto.
11260 * windows-nat.c: Ditto.
11261 * windows-tdep.c: Ditto.
11262 * xcoffread.c: Ditto.
11263 * xcoffsolib.c: Ditto.
11264 * xml-support.c: Ditto.
11265 * xstormy16-tdep.c: Ditto.
11266 * xtensa-tdep.c: Ditto.
11267 * xtensa-tdep.h: Ditto.
11269 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11271 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11272 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11274 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11275 Thiago Jung Bauermann <bauerman@br.ibm.com>
11277 Implement support for PowerPC BookE ranged watchpoints.
11279 (struct breakpoint_ops) <resources_needed>: New method.
11280 Initialize to NULL in all existing breakpoint_ops instances.
11281 (struct breakpoint) <exact>: New field.
11282 (target_exact_watchpoints): Declare external global.
11283 * breakpoint.c (target_exact_watchpoints): New global flag.
11284 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11285 b->enable_state to bp_enabled before calling
11286 hw_watchpoint_used_count.
11287 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11288 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11290 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11291 if the watchpoint is exact.
11292 (resources_needed_watchpoint): New function.
11293 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11294 (watch_command_1): Set b->exact if the user asked for an exact
11295 watchpoint and one can be set.
11296 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11297 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11298 the user asks for an exact watchpoint and one can be set. Return
11299 number of needed debug registers to watch the expression.
11300 * gdbtypes.c (is_scalar_type): New function, based on
11301 valprint.c:scalar_type_p.
11302 (is_scalar_type_recursive): New function.
11303 * gdbtypes.h (is_scalar_type_recursive): Declare.
11304 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11305 handle regions when ranged watchpoints are available.
11306 (create_watchpoint_request): New function.
11307 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11308 create_watchpoint_request.
11309 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11310 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11311 `set powerpc' and `show powerpc' commands.
11312 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11313 Mention documentation comment in the target macro.
11314 (target_region_ok_for_hw_watchpoint): Document return value.
11316 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11318 * breakpoint.c (update_watchpoint): Decide on using a software or
11319 hardware watchpoint after the bp_locations are created.
11321 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11323 Convert hardware watchpoints to use breakpoint_ops.
11324 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11325 <insert_location>: ... this. Return int instead of void.
11326 Accept pointer to struct bp_location instead of pointer to
11327 struct breakpoint. Adapt all implementations.
11328 (breakpoint_ops) <remove>: Rename to...
11329 <remove_location>: ... this. Accept pointer to struct bp_location
11330 instead of pointer to struct breakpoint. Adapt all implementations.
11331 * breakpoint.c (insert_catchpoint): Delete function.
11332 (insert_bp_location): Call the watchpoint or catchpoint's
11333 breakpoint_ops.insert method.
11334 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11335 breakpoint_ops.remove method.
11336 (insert_watchpoint, remove_watchpoint): New functions.
11337 (watchpoint_breakpoint_ops): New structure.
11338 (watch_command_1): Initialize the OPS field.
11339 * inf-child.c (inf_child_insert_fork_catchpoint)
11340 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11341 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11342 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11344 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11345 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11346 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11347 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11348 * target.c (update_current_target): Change default implementation of
11349 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11350 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11351 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11352 to_set_syscall_catchpoint to return_one.
11353 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11354 (debug_to_insert_exec_catchpoint): Report return value.
11355 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11356 (to_insert_exec_catchpoint): Change declaration to return int instead
11359 2011-01-11 Michael Snyder <msnyder@vmware.com>
11361 * arm-tdep.c: Internationalization.
11363 * charset.c: Ditto.
11364 * fork-child.c: Ditto.
11365 * nto-procfs.c: Ditto.
11366 * ppc-sysv-tdep.c: Ditto.
11368 * remote-mips.c: Ditto.
11370 * rs6000-nat.c: Ditto.
11371 * rs6000-tdep.c: Ditto.
11375 * xml-support.c: Ditto.
11376 * mi/mi-cmd-break.c: Ditto.
11377 * mi/mi-cmd-var.c: Ditto.
11378 * mi/mi-interp.c: Ditto.
11379 * mi/mi-main.c: Ditto.
11381 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11383 * remote-sim.c (gdbsim_store_register): Update API to
11384 sim_store_register to check more error conditions.
11386 2011-01-10 Michael Snyder <msnyder@vmware.com>
11388 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11389 * nto-tdep.c: Ditto.
11390 * nto-tdep.h: Ditto.
11391 * objc-exp.y: Ditto.
11392 * objc-lang.c: Ditto.
11393 * objfiles.c: Ditto.
11394 * objfiles.h: Ditto.
11395 * observer.c: Ditto.
11396 * opencl-lang.c: Ditto.
11399 * parser-defs.h: Ditto.
11402 * posix-hdep.c: Ditto.
11403 * ppcbug-rom.c: Ditto.
11404 * ppc-linux-nat.c: Ditto.
11405 * ppc-linux-tdep.c: Ditto.
11406 * ppc-linux-tdep.h: Ditto.
11407 * ppcnbsd-tdep.c: Ditto.
11408 * ppcobsd-tdep.c: Ditto.
11409 * ppcobsd-tdep.h: Ditto.
11410 * ppc-sysv-tdep.c: Ditto.
11411 * ppc-tdep.h: Ditto.
11412 * printcmd.c: Ditto.
11413 * proc-abi.c: Ditto.
11414 * proc-flags.c: Ditto.
11416 * proc-utils.h: Ditto.
11417 * progspace.h: Ditto.
11418 * prologue-value.c: Ditto.
11419 * prologue-value.h: Ditto.
11420 * psympriv.h: Ditto.
11421 * psymtab.c: Ditto.
11422 * p-typeprint.c: Ditto.
11423 * p-valprint.c: Ditto.
11424 * ravenscar-sparc-thread.c: Ditto.
11425 * ravenscar-thread.c: Ditto.
11426 * ravenscar-thread.h: Ditto.
11428 * regcache.c: Ditto.
11429 * regcache.h: Ditto.
11431 * remote-fileio.c: Ditto.
11432 * remote-fileio.h: Ditto.
11434 * remote-m32r-sdi.c: Ditto.
11435 * remote-mips.c: Ditto.
11436 * remote-sim.c: Ditto.
11437 * rs6000-aix-tdep.c: Ditto.
11438 * rs6000-nat.c: Ditto.
11439 * rs6000-tdep.c: Ditto.
11441 2011-01-10 Michael Snyder <msnyder@vmware.com>
11443 * charset.c (validate): Internationalization.
11444 * coffread.c (read_one_sym): Ditto.
11445 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11446 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11447 * inflow.c (new_tty): Ditto.
11448 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11449 * m32c-tdep.c (m32c_return_value): Ditto.
11450 * mep-tdep.c (mep_store_return_value): Ditto.
11451 * score-tdep.c (score7_fetch_insn): Ditto.
11452 * ser-mingw.c (pipe_windows_open): Ditto.
11453 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11454 * spu-tdep.c (spu_register_type): Ditto.
11455 * tracepoint.c (trace_find_command): Ditto.
11456 * valarith.c (value_pos): Ditto.
11458 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11460 * ada-valprint.c (printstr): Minor comment reformatting.
11462 2011-01-08 Michael Snyder <msnyder@vmware.com>
11464 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11467 2011-01-08 Michael Snyder <msnyder@vmware.com>
11469 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11470 * hppa-hpux-tdep.c: Ditto.
11471 * hppa-linux-nat.c: Ditto.
11472 * hppa-linux-tdep.c: Ditto.
11473 * hppanbsd-tdep.c: Ditto.
11474 * hppa-tdep.c: Ditto.
11475 * hppa-tdep.h: Ditto.
11476 * hpux-thread.c: Ditto.
11477 * i386-cygwin-tdep.c: Ditto.
11478 * i386-darwin-nat.c: Ditto.
11479 * i386gnu-nat.c: Ditto.
11480 * i386-linux-nat.c: Ditto.
11481 * i386-linux-tdep.c: Ditto.
11482 * i386-nat.c: Ditto.
11483 * i386-nat.h: Ditto.
11484 * i386nbsd-tdep.c: Ditto.
11485 * i386-sol2-nat.c: Ditto.
11486 * i386-stub.c: Ditto.
11487 * i386-tdep.c: Ditto.
11488 * i386-tdep.h: Ditto.
11489 * i387-tdep.c: Ditto.
11490 * ia64-linux-nat.c: Ditto.
11491 * ia64-linux-tdep.c: Ditto.
11492 * ia64-tdep.c: Ditto.
11493 * infcall.c: Ditto.
11494 * infcall.h: Ditto.
11496 * inferior.c: Ditto.
11497 * inferior.h: Ditto.
11498 * infloop.c: Ditto.
11501 * interps.c: Ditto.
11502 * interps.h: Ditto.
11503 * iq2000-tdep.c: Ditto.
11504 * irix5-nat.c: Ditto.
11508 * jv-lang.c: Ditto.
11509 * jv-lang.h: Ditto.
11510 * jv-typeprint.c: Ditto.
11511 * jv-valprint.c: Ditto.
11512 * language.c: Ditto.
11513 * language.h: Ditto.
11514 * linespec.c: Ditto.
11515 * linux-fork.c: Ditto.
11516 * linux-nat.c: Ditto.
11517 * linux-thread-db.c: Ditto.
11518 * lm32-tdep.c: Ditto.
11520 2011-01-08 Michael Snyder <msnyder@vmware.com>
11522 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11523 * m2-lang.c: Ditto.
11524 * m2-typeprint.c: Ditto.
11525 * m2-valprint.c: Ditto.
11526 * m32c-tdep.c: Ditto.
11527 * m32r-linux-nat.c: Ditto.
11528 * m32r-rom.c: Ditto.
11529 * m32r-tdep.c: Ditto.
11530 * m32r-tdep.h: Ditto.
11531 * m68hc11-tdep.c: Ditto.
11532 * m58klinux-nat.c: Ditto.
11533 * m68k-tdep.c: Ditto.
11534 * m88k-tdep.c: Ditto.
11535 * m88k-tdep.h: Ditto.
11536 * machoread.c: Ditto.
11537 * macrocmd.c: Ditto.
11538 * macroexp.c: Ditto.
11539 * macrotab.c: Ditto.
11542 * mdebugread.c: Ditto.
11543 * mdebugread.h: Ditto.
11544 * memattr.c: Ditto.
11545 * memattr.h: Ditto.
11546 * memory-map.h: Ditto.
11547 * mep-tdep.c: Ditto.
11548 * microblaze-rom.c: Ditto.
11549 * microblaze-tdep.c: Ditto.
11550 * minsyms.c: Ditto.
11551 * mips-irix-tdep.c: Ditto.
11552 * mips-linux-nat.c: Ditto.
11553 * mips-linux-tdep.c: Ditto.
11554 * mips-linux-tdep.h: Ditto.
11555 * mipsnbsd-nat.c: Ditto.
11556 * mipsnbsd-tdep.c: Ditto.
11557 * mipsread.c: Ditto.
11558 * mips-tdep.c: Ditto.
11559 * mips-tdep.h: Ditto.
11560 * mn10300-linux-tdep.c: Ditto.
11561 * mn10300-tdep.c: Ditto.
11562 * mn10300-tdep.h: Ditto.
11563 * monitor.c: Ditto.
11564 * monitor.h: Ditto.
11565 * moxie-tdep.c: Ditto.
11566 * moxie-tdep.h: Ditto.
11567 * mt-tdep.c: Ditto.
11569 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11571 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11573 2011-01-08 Robert Millan <rmh@gnu.org>
11575 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11577 2011-01-07 Michael Snyder <msnyder@vmware.com>
11579 * charset.c (_initialize_charset): Fix typo in string.
11581 2011-01-07 Michael Snyder <msnyder@vmware.com>
11583 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11585 * tui/tui-layout.c (tui_set_layout_for_display_command):
11586 Split line so that operator goes to beginning of line.
11587 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11588 assignment out of if statement.
11590 2011-01-07 Michael Snyder <msnyder@vmware.com>
11592 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11593 * ada-lang.h: Ditto.
11594 * ada-tasks.c: Ditto.
11595 * ada-valprint.c: Ditto.
11596 * aix-threads.c: Ditto.
11597 * alpha-linux-nat.c: Ditto.
11598 * alpha-linux-tdep.c: Ditto.
11599 * alpha-mdebug-tdep.c: Ditto.
11600 * alpha-nat.c: Ditto.
11601 * alpha-osf1-tdep.c: Ditto.
11602 * alpha-tdep.c: Ditto.
11603 * alphabsd-nat.c: Ditto.
11604 * alphabsd-tdep.c: Ditto.
11605 * amd64-darwin-tdep.c: Ditto.
11606 * amd64-linux-nat.c: Ditto.
11607 * amd64-linux-tdep.c: Ditto.
11608 * amd64-sol2-tdep.c: Ditto.
11609 * amd64-tdep.c: Ditto.
11610 * amd64-fbsd-tdep.c: Ditto.
11611 * amd64-nbsd-tdep.c: Ditto.
11612 * amd64-obsd-tdep.c: Ditto.
11613 * amd64-linux-nat.c: Ditto.
11614 * amd64-linux-tdep.c: Ditto.
11615 * arm-tdep.c: Ditto.
11616 * arm-tdep.h: Ditto.
11617 * armnbsd-nat.c: Ditto.
11618 * avr-tdep.c: Ditto.
11619 * bfin-tdep.c: Ditto.
11620 * bsd-kvm.c: Ditto.
11621 * c-typeprintc: Ditto.
11622 * c-valprint.c: Ditto.
11623 * coff-pe-read.h: Ditto.
11624 * coffreead.c: Ditto.
11625 * cris-tdep.c: Ditto.
11627 * darwin-nat-info.c: Ditto.
11628 * darwin-nat.c: Ditto.
11629 * dbug-rom.c: Ditto.
11630 * dbxread.c: Ditto.
11633 * dec-thread.c: Ditto.
11635 * demangle.c: Ditto.
11636 * dicos-tdep.c: Ditto.
11637 * dictionary.c: Ditto.
11638 * dictionary.h: Ditto.
11639 * dink32-rom.c: Ditto.
11641 * doublest.c: Ditto.
11643 * dummy-frame.c: Ditto.
11644 * dwarf2-frame.c: Ditto.
11645 * dwarf2expr.c: Ditto.
11646 * dwarf2loc.c: Ditto.
11647 * dwarf2read.c: Ditto.
11648 * elfread.c: Ditto.
11649 * environ.c: Ditto.
11651 * event-top.h: Ditto.
11652 * exceptions.c: Ditto.
11653 * exceptions.h: Ditto.
11655 * expprint.c: Ditto.
11656 * expression.h: Ditto.
11660 * f-typeprint.c: Ditto.
11661 * f-valprint.c: Ditto.
11662 * fbsd-nat.c: Ditto.
11663 * findvar.c: Ditto.
11664 * fork-child.c: Ditto.
11667 * frv-linux-tdep.c: Ditto.
11668 * frv-tdep.c: Ditto.
11670 * gdb-stabs.h: Ditto.
11671 * gdb_assert.h: Ditto.
11672 * gdb_string.h: Ditto.
11673 * gdb_thread_db.h: Ditto.
11674 * gdb_wait.h: Ditto.
11675 * gdbarch.sh: Ditto.
11676 * gdbcore.h: Ditto.
11677 * gdbthread.h: Ditto.
11678 * gdbtypes.c: Ditto.
11679 * gdbtypes.h: Ditto.
11680 * gnu-nat.c: Ditto.
11681 * gnu-nat.h: Ditto.
11682 * gnu-v2-abi.c: Ditto.
11683 * gnu-v3-abi.c: Ditto.
11684 * go32-nat.c: Ditto.
11685 * gdbarch.c: Regenerate.
11686 * gdbarch.h: Regenerate.
11688 2011-01-07 Michael Snyder <msnyder@vmware.com>
11690 * ax-gdb.c: Adjust some long output strings.
11691 * breakpoint.c: Ditto.
11692 * charset.c: Ditto.
11694 * infcall.c: Ditto.
11696 * linux-nat.c: Ditto.
11697 * solib-pa64.c: Ditto.
11698 * solib-som.c: Ditto.
11700 2011-01-06 Tom Tromey <tromey@redhat.com>
11704 * python/python.c (GdbMethods): Add "newest_frame" method.
11705 * python/python-internal.h (gdbpy_newest_frame): Declare.
11706 * python/py-frame.c (gdbpy_newest_frame): New function.
11708 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11710 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11711 * jit.c (jit_debug): New variable.
11712 (show_jit_debug): New function.
11713 (struct target_buffer): Use ULONGEST.
11714 (bfd_open_from_target_memory): Likewise.
11715 (jit_register_code, jit_inferior_init): Add debug output.
11716 (_initialize_jit): Register "debug jit" command.
11718 2011-01-06 Tom Tromey <tromey@redhat.com>
11720 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11721 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11724 2011-01-06 Tom Tromey <tromey@redhat.com>
11726 * python/py-frame.c (frapy_block): Use get_frame_block.
11728 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11730 Do not stop on SIGPRIO signals by default
11731 * infrun.c (_initialize_infrun): Unset signal_stop and
11732 signal_print for TARGET_SIGNAL_PRIO.
11734 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11736 * ada-tasks.c: Fix style violation in comment.
11738 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11740 * linespec.c (decode_compound, find_method): Remove trailing \n
11741 at end of error string.
11742 * solib-irix.c (irix_current_sos): Likewise.
11743 * varobj.c (uninstall_variable): Likewise.
11745 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11747 * copyright.py: New script.
11748 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11749 Launch emacs without exec'ing. Call copyright.py afterwards.
11751 2011-01-05 Michael Snyder <msnyder@vmware.com>
11753 * addrmap.c: Shorten lines of >= 80 columns.
11754 * arch-utils.c: Ditto.
11755 * arch-utils.h: Ditto.
11757 * ax-general.c: Ditto.
11759 * blockframe.c: Ditto.
11760 * breakpoint.c: Ditto.
11761 * buildsym.c: Ditto.
11763 * c-typeprint.c: Ditto.
11764 * charset.c: Ditto.
11765 * coffread.c: Ditto.
11766 * command.h: Ditto.
11767 * corelow.c: Ditto.
11769 * cp-namespace.c: Ditto.
11770 * cp-support.c: Ditto.
11771 * dbug-rom.c: Ditto.
11772 * dbxread.c: Ditto.
11776 * dictionary.c: Ditto.
11778 * doublest.c: Ditto.
11779 * dwarf2-frame.c: Ditto.
11780 * dwarf2expr.c: Ditto.
11781 * dwarf2loc.c: Ditto.
11782 * dwarf2read.c: Ditto.
11783 * elfread.c: Ditto.
11785 * event-loop.c: Ditto.
11786 * event-loop.h: Ditto.
11787 * exceptions.h: Ditto.
11789 * expprint.c: Ditto.
11790 * expression.h: Ditto.
11792 * f-valprint.c: Ditto.
11793 * findcmd.c: Ditto.
11794 * frame-base.c: Ditto.
11795 * frame-unwind.c: Ditto.
11796 * frame-unwind.h: Ditto.
11800 * gdb-stabs.h: Ditto.
11801 * gdb_assert.h: Ditto.
11802 * gdb_dirent.h: Ditto.
11803 * gdb_obstack.h: Ditto.
11804 * gdbcore.h: Ditto.
11805 * gdbtypes.c: Ditto.
11806 * gdbtypes.h: Ditto.
11807 * inf-ttrace.c: Ditto.
11808 * infcall.c: Ditto.
11812 * inline-frame.h: Ditto.
11813 * language.c: Ditto.
11814 * language.h: Ditto.
11815 * libunwind-frame.c: Ditto.
11816 * libunwind-frame.h: Ditto.
11817 * linespec.c: Ditto.
11818 * linux-nat.c: Ditto.
11819 * linux-nat.h: Ditto.
11820 * linux-thread-db.c: Ditto.
11821 * machoread.c: Ditto.
11822 * macroexp.c: Ditto.
11823 * macrotab.c: Ditto.
11826 * mdebugread.c: Ditto.
11827 * memattr.c: Ditto.
11828 * minsyms.c: Ditto.
11829 * monitor.c: Ditto.
11830 * monitor.h: Ditto.
11831 * objfiles.c: Ditto.
11832 * objfiles.h: Ditto.
11834 * p-typeprint.c: Ditto.
11835 * p-valprint.c: Ditto.
11837 * printcmd.c: Ditto.
11838 * proc-events.c: Ditto.
11840 * progspace.c: Ditto.
11841 * progspace.h: Ditto.
11842 * psympriv.h: Ditto.
11843 * psymtab.c: Ditto.
11845 * regcache.c: Ditto.
11846 * regcache.h: Ditto.
11847 * remote-fileio.c: Ditto.
11849 * ser-mingw.c: Ditto.
11850 * ser-tcp.c: Ditto.
11851 * ser-unix.c: Ditto.
11854 * solib-frv.c: Ditto.
11855 * solib-irix.c: Ditto.
11856 * solib-osf.c: Ditto.
11857 * solib-pa64.c: Ditto.
11858 * solib-som.c: Ditto.
11859 * solib-sunos.c: Ditto.
11860 * solib-svr4.c: Ditto.
11861 * solib-target.c: Ditto.
11863 * somread.c: Ditto.
11865 * stabsread.c: Ditto.
11866 * stabsread.c: Ditto.
11869 * symfile-mem.c: Ditto.
11870 * symfile.c: Ditto.
11871 * symfile.h: Ditto.
11872 * symmisc.c: Ditto.
11875 * target-descriptions.c: Ditto.
11876 * target-memory.c: Ditto.
11879 * terminal.h: Ditto.
11882 * tracepoint.c: Ditto.
11883 * tracepoint.h: Ditto.
11884 * ui-file.c: Ditto.
11885 * ui-file.h: Ditto.
11887 * user-regs.c: Ditto.
11888 * user-regs.h: Ditto.
11890 * valarith.c: Ditto.
11892 * valprint.c: Ditto.
11893 * valprint.h: Ditto.
11898 * xcoffread.c: Ditto.
11899 * xcoffsolib.c: Ditto.
11900 * xcoffsolib.h: Ditto.
11901 * xml-syscall.c: Ditto.
11902 * xml-tdesc.c: Ditto.
11904 2011-01-05 Michael Snyder <msnyder@vmware.com>
11906 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11907 * cli/cli-decode.c: Ditto.
11908 * cli/cli-dump.c: Ditto.
11909 * cli/cli-logging.c: Ditto.
11910 * cli/cli-script.c: Ditto.
11911 * cli/cli-setshow.c: Ditto.
11912 * common/signals.c: Ditto.
11913 * mi/mi-cmd-break.c: Ditto.
11914 * mi/mi-cmd-disas.c: Ditto.
11915 * mi/mi-cmd-stack.c: Ditto.
11916 * mi/mi-cmd-var.c: Ditto.
11917 * mi/mi-cmds.c: Ditto.
11918 * mi/mi-common.h: Ditto.
11919 * mi/mi-console.c: Ditto.
11920 * mi/mi-interp.c: Ditto.
11921 * mi/mi-main.c: Ditto.
11922 * osf-share/cma_attr.c: Ditto.
11923 * osf-share/cma_deb_core.h: Ditto.
11924 * osf-share/cma_debug_client.h: Ditto.
11925 * osf-share/cma_handle.h: Ditto.
11926 * osf-share/cma_mutex.h: Ditto.
11927 * osf-share/cma_stack_int.h: Ditto.
11928 * osf-share/cma_tcb_defs.h: Ditto.
11929 * python/py-auto-load.c: Ditto.
11930 * python/py-breakpoint.c: Ditto.
11931 * python/py-cmd.c: Ditto.
11932 * python/py-frame.c: Ditto.
11933 * python/py-objfile.c: Ditto.
11934 * python/py-param.c: Ditto.
11935 * python/py-progspace.c: Ditto.
11936 * python/py-symbol.c: Ditto.
11937 * python/py-value.c: Ditto.
11938 * python/python-internal.h: Ditto.
11939 * python/python.c: Ditto.
11940 * tui/tui-data.c: Ditto.
11941 * tui/tui-disasm.c: Ditto.
11942 * tui/tui-hooks.c: Ditto.
11943 * tui/tui-io.c: Ditto.
11944 * tui/tui-layout.c: Ditto.
11945 * tui/tui-regs.c: Ditto.
11946 * tui/tui-source.c: Ditto.
11947 * tui/tui-stack.c: Ditto.
11948 * tui/tui-win.c: Ditto.
11949 * tui/tui-windata.c: Ditto.
11950 * tui/tui-winsource.c: Ditto.
11952 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11954 * configure.ac, gdb.1: Copyright year update.
11956 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11958 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11959 this_pc_in_block, morestack_msym and morestack_name. Check for
11960 "__morestack" minimal symbol there.
11962 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11964 * symfile.c (find_sym_fns): Add call to dont_repeat.
11966 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11968 Copyright year update in most files (performed by copyright.sh).
11970 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11972 * top.c (print_gdb_version): Update copyright year in version output.
11974 For older changes see ChangeLog-2010.
11980 version-control: never