1 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
3 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
4 load adjustment if still within the prologue.
6 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
8 * mips-tdep.c (mips32_next_pc): Fix floating point condition
11 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
14 of BLTZ* and BGEZ* instructions.
16 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
18 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
19 performed to determine whether an address refers to standard
21 (mips16_next_pc): Use mips_pc_is_mips16 instead of
24 2011-12-06 Pedro Alves <pedro@codesourcery.com>
26 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
27 (breakpoint_xfer_memory): ... this. Change prototype. Handle
29 * breakpoint.h (breakpoint_restore_shadows): Delete.
30 (breakpoint_xfer_memory): Declare.
31 * mem-break.c (default_memory_insert_breakpoint)
32 (default_memory_remove_breakpoint): Use target_write_raw_memory.
33 (memory_xfer_partial): Rename to ...
34 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
36 (memory_xfer_partial): New.
37 (target_write_raw_memory): New.
38 * target.h (target_write_raw_memory): New.
40 2011-12-06 Doug Evans <dje@google.com>
42 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
44 2011-12-06 Joel Brobecker <brobecker@acacore.com>
46 * language.h (struct language_defn): Add new component
47 la_symbol_name_compare.
48 * symfile.h (struct quick_symbol_functions): Update the profile
49 of parameter "name_matcher" for the expand_symtabs_matching
50 method. Update the documentation accordingly.
51 * ada-lang.h (ada_name_for_lookup): Add declaration.
52 * ada-lang.c (ada_name_for_lookup): New function, extracted out
53 from ada_iterate_over_symbols.
54 (ada_iterate_over_symbols): Do not encode symbol name anymore.
55 (ada_expand_partial_symbol_name): Adjust profile.
56 (ada_language_defn): Add value for la_symbol_name_compare field.
57 * linespec.c: #include "ada-lang.h".
58 (iterate_name_matcher): Add language parameter. Replace call
59 to strcmp_iw by call to language->la_symbol_name_compare.
60 (decode_variable): Encode COPY if current language is Ada.
61 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
62 of name_matcher parameter. Adjust call to name_matcher.
63 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
64 (expand_partial_symbol_names): Update profile of parameter "fun".
65 * psymtab.h (expand_partial_symbol_names): Update profile of
67 * symtab.c (demangle_for_lookup): Update function documentation.
68 (search_symbols_name_matches): Add language parameter.
69 (expand_partial_symbol_name): Likewise.
70 * c-lang.c (c_language_defn, cplus_language_defn)
71 (asm_language_defn, minimal_language_defn): Add value for
72 la_symbol_name_compare field.
73 * d-lang.c (d_language_defn): Likewise.
74 * f-lang.c (f_language_defn): Ditto.
75 * jv-lang.c (java_language_defn): Ditto.
76 * m2-lang.c (m2_language_defn): Ditto.
77 * objc-lang.c (objc_language_defn): Ditto.
78 * opencl-lang.c (opencl_language_defn): Ditto.
79 * p-lang.c (pascal_language_defn): Ditto.
80 * language.c (unknown_language_defn, auto_language_defn)
81 (local_language_defn): Ditto.
83 2011-12-06 Tom Tromey <tromey@redhat.com>
85 * linespec.c (iterate_over_all_matching_symtabs): Use
86 LA_ITERATE_OVER_SYMBOLS.
87 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
88 (find_function_symbols, decode_variable): Remove Ada special
90 * language.h (struct language_defn) <la_iterate_over_symbols>: New
92 (LA_ITERATE_OVER_SYMBOLS): New macro.
93 * language.c (unknown_language_defn, auto_language_defn)
94 (local_language_defn): Update.
95 * c-lang.c (c_language_defn, cplus_language_defn)
96 (asm_language_defn, minimal_language_defn): Update.
97 * d-lang.c (d_language_defn): Update.
98 * f-lang.c (f_language_defn): Update.
99 * jv-lang.c (java_language_defn): Update.
100 * m2-lang.c (m2_language_defn): Update.
101 * objc-lang.c (objc_language_defn): Update.
102 * opencl-lang.c (opencl_language_defn): Update.
103 * p-lang.c (pascal_language_defn): Update.
104 * ada-lang.c (ada_iterate_over_symbols): New function.
105 (ada_language_defn): Update.
107 2011-12-06 Tom Tromey <tromey@redhat.com>
108 Joel Brobecker <brobecker@acacore.com>
110 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
111 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
112 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
113 PR shlibs/8929, PR shlibs/7393:
114 * python/py-type.c (compare_maybe_null_strings): Rename from
116 (check_types_equal): Update.
117 * utils.c (compare_strings): New function.
118 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
120 * tracepoint.c (scope_info): Update.
121 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
122 * symtab.h (iterate_over_minimal_symbols)
123 (iterate_over_some_symtabs, iterate_over_symtabs)
124 (find_pcs_for_symtab_line, iterate_over_symbols)
125 (demangle_for_lookup): Declare.
126 (expand_line_sal): Remove.
127 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
128 (lookup_symtab_callback): New functions.
129 (lookup_symtab): Rewrite.
130 (demangle_for_lookup): New function, extract from
131 lookup_symbol_in_language.
132 (lookup_symbol_in_language): Use it.
133 (iterate_over_symbols): New function.
134 (find_line_symtab): Update.
135 (find_pcs_for_symtab_line): New functions.
136 (find_line_common): Add 'start' argument.
137 (decode_line_spec): Update. Change argument to 'flags', change
139 (append_expanded_sal): Remove.
140 (append_exact_match_to_sals): Remove.
141 (expand_line_sal): Remove.
142 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
144 <map_symtabs_matching_filename>: New field.
145 * stack.c (func_command): Only look in the current program space.
146 Use DECODE_LINE_FUNFIRSTLINE.
147 * source.c (line_info): Set pspace on sal. Check program space in
148 the loop. Use DECODE_LINE_LIST_MODE.
149 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
150 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
151 * python/python.c (gdbpy_decode_line): Update.
152 * psymtab.c (partial_map_expand_apply): New function.
153 (partial_map_symtabs_matching_filename): Rename from
154 lookup_partial_symbol. Update arguments.
155 (lookup_symtab_via_partial_symtab): Remove.
156 (psym_functions): Update.
157 * objc-lang.h (parse_selector, parse_method): Don't declare.
159 * objc-lang.c (parse_selector, parse_method): Now static.
160 (find_methods): Change arguments. Fill in a vector of symbol
162 (uniquify_strings): New function.
163 (find_imps): Change arguments.
164 * minsyms.c (iterate_over_minimal_symbols): New function.
165 * linespec.h (enum decode_line_flags): New.
166 (struct linespec_sals): New.
167 (struct linespec_result) <canonical>: Remove.
168 <pre_expanded, addr_string, sals>: New fields.
169 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
170 (decode_line_full): Declare.
171 (decode_line_1): Update.
172 * linespec.c (struct address_entry, struct linespec_state, struct
173 collect_info): New types.
174 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
175 (eq_address_entry, maybe_add_address): New functions.
176 (total_number_of_methods): Remove.
177 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
179 (find_methods): Change arguments. Don't canonicalize input.
181 (add_matching_methods, add_constructors)
182 (build_canonical_line_spec): Remove.
183 (filter_results, convert_results_to_lsals): New functions.
184 (decode_line_2): Change arguments. Rewrite for new data
186 (decode_line_internal): Rename from decode_line_1. Change
187 arguments. Add cleanups. Update for new data structures.
188 (linespec_state_constructor, linespec_state_destructor)
189 (decode_line_full, decode_line_1): New functions.
190 (decode_indirect): Change arguments. Update.
191 (locate_first_half): Use skip_spaces.
192 (decode_objc): Change arguments. Update for new data structures.
194 (decode_compound): Change arguments. Add cleanups. Remove
195 fallback code, replace with error.
196 (struct decode_compound_collector): New type.
197 (collect_one_symbol): New function.
198 (lookup_prefix_sym): Change arguments. Update.
199 (compare_symbol_name, add_all_symbol_names_from_pspace)
200 (find_superclass_methods ): New functions.
201 (find_method): Rewrite.
202 (struct symtab_collector): New type.
203 (add_symtabs_to_list, collect_symtabs_from_filename): New
205 (symtabs_from_filename): Change API. Rename from
206 symtab_from_filename.
207 (collect_function_symbols): New function.
208 (find_function_symbols): Change API. Rename from
209 find_function_symbol. Rewrite.
210 (decode_all_digits): Change arguments. Rewrite.
211 (decode_dollar): Change arguments. Use decode_variable.
212 (decode_label): Change arguments. Rewrite.
213 (collect_symbols): New function.
214 (minsym_found): Change arguments. Rewrite.
215 (check_minsym, search_minsyms_for_name)
216 (add_matching_symbols_to_info): New function.
217 (decode_variable): Change arguments. Iterate over all symbols.
218 (symbol_found): Remove.
219 (symbol_to_sal): New function.
220 (init_linespec_result, destroy_linespec_result)
221 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
223 (decode_digits_list_mode, decode_digits_ordinary): New functions.
224 * dwarf2read.c (dw2_map_expand_apply): New function.
225 (dw2_map_symtabs_matching_filename): Rename from
226 dw2_lookup_symtab. Change arguments.
227 (dwarf2_gdb_index_functions): Update.
228 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
229 * defs.h (compare_strings): Declare.
230 * cli/cli-cmds.c (compare_strings): Move to utils.c.
231 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
233 (compare_symtabs, filter_sals): New functions.
234 * breakpoint.h (struct bp_location) <line_number, source_file>:
236 (struct breakpoint) <line_number, source_file>: Remove.
238 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
239 (momentary_breakpoint_from_master, add_location_to_breakpoint):
240 Update for changes to locations.
241 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
243 (create_breakpoint_sal): Add 'filter' argument.
244 (remove_sal, expand_line_sal_maybe): Remove.
245 (create_breakpoints_sal): Remove 'sals' argument. Handle
246 pre-expanded sals and the filter.
247 (parse_breakpoint_sals): Use decode_line_full.
248 (check_fast_tracepoint_sals): Use get_sal_arch.
249 (create_breakpoint): Create a linespec_sals. Update.
250 (break_range_command): Use decode_line_full. Update.
251 (until_break_command): Update.
252 (clear_command): Update match conditions for linespec.c changes.
253 Use DECODE_LINE_LIST_MODE.
254 (say_where): Update for changes to locations.
255 (bp_location_dtor): Free 'source_file'.
256 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
257 (update_static_tracepoint): Update for changes to locations.
258 (update_breakpoint_locations): Disable ranged breakpoint if too
259 many locations match. Update.
260 (addr_string_to_sals): Use decode_line_full. Resolve all sal
262 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
263 (decode_line_spec_1): Update. Change argument name to 'flags',
264 change interpretation.
265 * block.h (block_containing_function): Declare.
266 * block.c (block_containing_function): New function.
267 * skip.c (skip_function_command): Update.
268 (skip_re_set): Update.
269 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
270 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
273 2011-12-06 Tom Tromey <tromey@redhat.com>
275 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
276 breakpoint's pspace to be NULL.
277 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
278 * breakpoint.c (init_raw_breakpoint): Conditionally set
280 (init_breakpoint_sal): Don't set breakpoint's pspace.
281 (prepare_re_set_context): Conditionally switch program space.
282 (addr_string_to_sals): Check executing_startup on location's
285 2011-12-06 Tom Tromey <tromey@redhat.com>
287 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
288 * breakpoint.c (should_be_inserted): Explicitly check if program
289 space is executing startup.
290 (describe_other_breakpoints): Update.
291 (disable_breakpoints_before_startup): Change executing_startup
292 earlier. Remove loop.
293 (enable_breakpoints_after_startup): Likewise.
294 (init_breakpoint_sal): Don't use bp_startup_disabled.
295 (create_breakpoint): Don't use bp_startup_disabled.
296 (update_global_location_list): Use should_be_inserted.
297 (bkpt_re_set): Update.
299 2011-12-06 Tom Tromey <tromey@redhat.com>
301 * python/lib/gdb/command/pretty_printers.py
302 (InfoPrettyPrinter.invoke1): Remove extra double quote.
304 2011-12-06 Tom Tromey <tromey@redhat.com>
308 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
310 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
311 (S390_LAST_BREAK_REGNUM): Likewise.
312 (S390_SYSTEM_CALL_REGNUM): Likewise.
313 (S390_NUM_REGS): Update.
315 (s390_regmap_last_break): Add declaration.
316 (s390x_regmap_last_break): Likewise.
317 (s390_regmap_system_call): Likewise.
319 (tdesc_s390_linux32v1): Add declaration.
320 (tdesc_s390_linux32v2): Likewise.
321 (tdesc_s390_linux64v1): Likewise.
322 (tdesc_s390_linux64v2): Likewise.
323 (tdesc_s390x_linux64v1): Likewise.
324 (tdesc_s390x_linux64v2): Likewise.
326 * s390-tdep.c: Include new target description files
327 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
328 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
329 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
330 (s390_cannot_store_register): New function.
331 (s390_write_pc): Likewise.
332 (s390_dwarf_regmap): Add fields for new registers.
333 (s390_regmap_gregset): Likewise.
334 (s390x_regmap_gregset): Likewise.
335 (s390_regmap_fpregset): Likewise.
336 (s390_regmap_upper): Likewise.
337 (s390_regmap_last_break): New variable.
338 (s390x_regmap_last_break): Likewise.
339 (s390_regmap_system_call): Likewise.
340 (s390_last_break_regset): Likewise.
341 (s390x_last_break_regset): Likewise.
342 (s390_system_call_regset): Likewise.
343 (s390_upper_regset_sections): Rename to ...
344 (s390_linux64_regset_sections): ... this.
345 (s390_linux32_regset_sections): New variable.
346 (s390x_linux64_regset_sections): Likewise.
347 (s390_linux32v1_regset_sections): Likewise.
348 (s390_linux32v2_regset_sections): Likewise.
349 (s390_linux64v1_regset_sections): Likewise.
350 (s390_linux64v2_regset_sections): Likewise.
351 (s390x_linux64v1_regset_sections): Likewise.
352 (s390x_linux64v2_regset_sections): Likewise.
353 (s390_regset_from_core_section): Handle .reg-s390-last-break and
354 .reg-s390-system-call core file sections.
355 (s390_core_read_description): Check for presence of
356 .reg-s390-last-break and .reg-s390-system-call core file
357 sections and return appropriate target description.
358 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
359 "last_break" and "system_call" in target description. Install
360 appropriate gdbarch_core_regset_sections array.
361 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
362 (_initialize_s390_tdep): Initialize additional target descriptions.
364 * s390-nat.c: Include "elf/common.h".
365 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
366 (have_regset_last_break): New static variable.
367 (have_regset_system_call): Likewise.
368 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
369 (s390_native_collect): Likewise.
370 (fetch_regset, store_regset, check_regset): New functions.
371 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
372 and S390_SYSTEM_CALL_REGNUM.
373 (s390_linux_store_inferior_registers): Likewise.
374 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
375 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
377 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
378 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
379 (s390-linux32v1-expedite): Define.
380 (s390-linux32v2-expedite): Likewise.
381 (s390-linux64v1-expedite): Likewise.
382 (s390-linux64v2-expedite): Likewise.
383 (s390x-linux64v1-expedite): Likewise.
384 (s390x-linux64v2-expedite): Likewise.
386 * features/s390-linux32.xml: Add orig_r2 register.
387 * features/s390-linux64.xml: Likewise.
388 * features/s390x-linux64.xml: Likewise.
389 * features/s390-linux32v1.xml: New file.
390 * features/s390-linux32v2.xml: Likewise.
391 * features/s390-linux64v1.xml: Likewise.
392 * features/s390-linux64v2.xml: Likewise.
393 * features/s390x-linux64v1.xml: Likewise.
394 * features/s390x-linux64v2.xml: Likewise.
396 * features/s390-linux32.c: Regenerate.
397 * features/s390-linux64.c: Likewise.
398 * features/s390x-linux64.c: Likewise.
399 * features/s390-linux32v1.c: New generated file.
400 * features/s390-linux32v2.c: Likewise.
401 * features/s390-linux64v1.c: Likewise.
402 * features/s390-linux64v2.c: Likewise.
403 * features/s390x-linux64v1.c: Likewise.
404 * features/s390x-linux64v2.c: Likewise.
406 * regformats/s390-linux32.dat: Regenerate.
407 * regformats/s390-linux64.dat: Regenerate.
408 * regformats/s390x-linux64.dat: Regenerate.
409 * regformats/s390-linux32v1.dat: New generated file.
410 * regformats/s390-linux32v2.dat: Likewise.
411 * regformats/s390-linux64v1.dat: Likewise.
412 * regformats/s390-linux64v2.dat: Likewise.
413 * regformats/s390x-linux64v1.dat: Likewise.
414 * regformats/s390x-linux64v2.dat: Likewise.
416 2011-12-05 Pedro Alves <pedro@codesourcery.com>
418 * linux-nat.c (resume_stopped_resumed_lwps): Call
421 2011-12-05 Pedro Alves <pedro@codesourcery.com>
423 * breakpoint.c: Include record.h.
424 (breakpoints_always_inserted_mode): Return false when the record
427 2011-12-05 Pedro Alves <pedro@codesourcery.com>
429 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
430 Reinstate perror_with_name call on ptrace error. Remove #if 0.
431 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
432 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
434 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
436 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
439 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
441 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
443 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
445 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
448 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
450 Fix compilation --without-expat.
451 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
453 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
455 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
456 Jan Kratochvil <jan.kratochvil@redhat.com>
458 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
459 * features/library-list-svr4.dtd: New file.
460 * remote.c (PACKET_qXfer_libraries_svr4): New.
461 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
462 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
463 * solib-svr4.c (struct svr4_library_list): New.
464 [HAVE_LIBEXPAT]: Include xml-support.h.
465 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
466 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
467 [HAVE_LIBEXPAT] (svr4_library_list_children)
468 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
469 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
470 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
471 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
472 (svr4_read_so_list): Extend the corruption message by addresses.
473 (svr4_current_sos): New variable library_list, call
474 svr4_current_sos_via_xfer_libraries.
475 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
477 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
480 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
481 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
483 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
486 * dwarf2read.c (process_psymtab_comp_unit): Set
487 PSYMTABS_ADDRMAP_SUPPORTED.
488 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
489 validity. New field psymtabs_addrmap_supported.
490 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
491 psymtabs_addrmap_supported.
492 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
493 !PSYMTABS_ADDRMAP_SUPPORTED.
494 (dump_psymtab, maintenance_info_psymtabs): Print also
495 psymtabs_addrmap_supported.
497 2011-12-01 Doug Evans <dje@google.com>
499 * python/py-type.c (type_object_methods): Fix "array" doc string.
501 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
503 * source.c (print_source_lines_base): Fix missing braces on else
504 clause leading to additional output.
506 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
508 * s390-nat.c (SUBOFF): Remove.
509 (s390_native_supply, s390_native_collect): New functions.
510 (supply_gregset, supply_fpregset): Use s390_native_supply.
511 (fill_gregset, fill_fpregset): Use s390_native_collect.
513 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
514 (s390_unwind_pseudo_register): New function.
515 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
516 registers instead of PC and CC.
517 (s390_backchain_frame_unwind_cache): Likewise.
518 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
520 (s390_trad_frame_prev_register): New function.
521 (s390_frame_prev_register): Use it.
522 (s390_sigtramp_frame_prev_register): Likewise.
523 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
524 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
525 special callback to unwind any pseudo.
527 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
528 * features/s390-core64.xml: Likewise.
529 * features/s390x-core64.xml: Likewise.
530 * features/s390-linux32.c: Regenerate.
531 * features/s390-linux64.c: Likewise.
532 * features/s390x-linux64.c: Likewise.
534 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
536 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
538 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
540 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
541 instruction. Add more diagnostic output.
543 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
545 * MAINTAINERS (Write After Approval): Add myself to the list.
547 2011-11-29 Sanjoy Das <sdas@igalia.com>
549 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
550 (jit_bfd_try_read_symtab): Fix comments.
552 2011-11-28 DJ Delorie <dj@redhat.com>
554 * NEWS: Mention RL78 simulator.
556 2011-11-28 Joel Brobecker <brobecker@adacore.com>
558 * symfile.h (struct quick_symbol_functions): Fix the documentation
559 of field map_matching_symbols, as symbols are sorted using
560 strcmp_iw_ordered, not strcmp_iw.
562 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
564 * symfile.h (struct quick_symbol_functions): Update the
565 documentation for field map_matching_symbols.
567 2011-11-28 Joel Brobecker <brobecker@adacore.com>
569 * ada-lang.c (compare_names): Fix wrong return value in case
570 string1 starts with the same contents as string2, followed
571 by an underscore that do not start a symbol name suffix.
573 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
578 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
579 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
580 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
582 * python/py-type.c (typy_strip_typedefs): Ditto.
583 (typy_legacy_template_argument): Ditto.
584 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
585 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
587 2011-11-27 Joel Brobecker <brobecker@acacore.com>
589 * remote.c (remote_get_tracepoint_status): Delete addrbuf
590 local variable. Avoid use of sprintf_vma.
592 2011-11-27 Sanjoy Das <sdas@igalia.com>
594 Fix regression in jit.exp.
595 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
596 (jit_register_code): Set the jit_objfile_data field to the correct
599 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
601 * alpha-tdep.c (br_opcode): New.
602 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
603 (alpha_deal_with_atomic_sequence): New function.
604 (alpha_gdbarch_init): Handle single stepping of atomic sequences
605 with alpha_deal_with_atomic_sequence.
607 2011-11-24 Tristan Gingold <gingold@adacore.com>
609 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
610 fields. Add oso_sym, end_sym and nbr_syms.
611 (macho_register_oso): Change interface.
612 (macho_symtab_add_minsym): New function.
613 (macho_symtab_read): Rewritten.
614 (get_archive_prefix_len): Remove trailing blanks.
615 (oso_el_compare_name): Add comment.
616 (struct macho_sym_hash_entry): New structure.
617 (macho_relocate_common_syms): Remove.
618 (macho_sym_hash_newfunc): New function.
619 (macho_resolve_oso_sym_with_minsym): Likewise.
620 (macho_add_oso_symfile): Rewritten.
621 (macho_symfile_read_all_oso): Remove trailing blanks.
622 Adjust code to free oso vector.
623 (macho_symfile_read): Likewise.
624 Move code to initialize minimal symbol
626 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
628 * mips-tdep.c (extended_offset): Fix formatting.
630 2011-11-23 Doug Evans <dje@google.com>
632 * dwarf2read.c (dw2_lookup_symtab): Add comment.
633 (dw2_expand_symtabs_with_filename): Ditto.
634 (dw2_expand_symtabs_matching): Ditto.
635 (dw2_map_symbol_filenames): Ditto.
637 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
639 * ada-lang.c (assign_aggregate): Minor reformatting.
641 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
643 * ada-lang.c (assign_aggregate): Remove declaration of local
644 variable `i' which is shadowing another variable with the same
645 name declared in the outer scope.
647 2011-11-23 Joel Brobecker <brobecker@adacore.com>
649 * ada-lang.c (get_base_type): Renames base_type. Adjust all
650 calls throughout this file.
652 2011-11-23 Joel Brobecker <brobecker@adacore.com>
654 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
657 2011-11-22 Tom Tromey <tromey@redhat.com>
660 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
661 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
662 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
663 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
664 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
665 (print_it_catch_syscall, print_it_catch_exec)
666 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
667 (bpstat_print): Add 'kind' argument. Handle
668 TARGET_WAITKIND_LOADED.
669 * infrun.c (normal_stop): Update for bpstat_print change. Don't
670 handle TARGET_WAITKIND_LOADED here.
671 * breakpoint.h (bpstat_print): Update.
673 2011-11-22 Tom Tromey <tromey@redhat.com>
675 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
677 2011-11-22 Tom Tromey <tromey@redhat.com>
679 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
680 Use static_assert to check the size of
681 async_reason_string_lookup.
682 * common/gdb_assert.h (static_assert): New macro.
684 2011-11-22 Alan Modra <amodra@gmail.com>
686 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
687 destination calculation. Don't expect >> to sign extend. Don't
688 add a break if branch lands inside the sequence anywhere.
690 2011-11-21 Keith Seitz <keiths@redhat.com>
692 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
693 -var-evaluate-expression of an enumeration and fix expected result.
694 * gdb.mi/mi2-varvdisplay.exp: Likewise.
696 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
698 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
699 the case where osdata->items is empty. Rename column names to a
700 canonical form to avoid problems with unusual column names.
702 2011-11-21 Yao Qi <yao@codesourcery.com>
704 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
706 2011-11-20 Stan Shebs <stan@codesourcery.com>
708 * NEWS: Mention tracepoint additions.
709 * breakpoint.h (struct tracepoint): New field traceframe_usage.
710 * breakpoint.c (print_one_breakpoint_location): Identify
711 tracepoints as such when reporting hit counts, report
713 (create_tracepoint_from_upload): Copy status info.
714 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
715 add fields user_name, notes, start_time, stop_time.
716 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
717 * tracepoint.c (trace_user): New global.
718 (trace_notes): New global.
719 (trace_stop_notes): New global.
720 (start_tracing): Add argument and trace note handling.
721 (stop_tracing): Ditto.
722 (trace_start_command): Add notes argument.
723 (trace_stop_command): Ditto.
724 (trace_status_command): Report additional status info.
725 (trace_status_mi): Similarly.
726 (trace_save): Update, record tracepoint status.
727 (set_disconnected_tracing): Call target method directly.
728 (send_disconnected_tracing_value): Remove.
729 (set_trace_user): New function.
730 (set_trace_notes): New function.
731 (set_trace_stop_notes): New function.
732 (parse_trace_status): Handle additional status.
733 (parse_tracepoint_status): New function.
734 (parse_tracepoint_definition): Call it.
735 (tfile_get_tracepoint_status): New function.
736 (init_tfile_ops): Use it.
737 (_initialize_tracepoint): Add new setshows.
738 * target.h (struct target_ops): New methods to_get_tracepoint_status
739 and to_set_trace_notes.
740 (target_get_tracepoint_status): New macro.
741 (target_set_trace_notes): New macro.
742 * target.c (update_current_target): Add new methods.
743 * remote.c (remote_get_tracepoint_status): New function.
744 (remote_set_trace_notes): New function.
745 (init_remote_ops): Add them.
746 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
747 (mi_cmd_trace_stop): Ditto.
749 2011-11-20 Sanjoy Das <sdas@igalia.com>
751 * jit.c: Include regcache.h.
752 (jit_gdbarch_data, jit_frame_unwind): New static variables.
753 (jit_unwind_reg_set_impl, free_reg_value_impl)
754 (jit_unwind_reg_get_impl, jit_frame_sniffer)
755 (jit_frame_unwind_stop_reason, jit_frame_this_id)
756 (jit_frame_prev_register, jit_dealloc_cache)
757 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
758 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
759 jit_prepend_unwinder.
760 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
762 2011-11-20 Sanjoy Das <sdas@igalia.com>
764 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
765 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
766 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
767 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
768 (finalize_symtab, jit_object_close_impl)
769 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
770 (free_objfile_data): New functions.
771 (_initialize_jit): Register jit_objfile_data with a proper cleanup
774 2011-11-20 Sanjoy Das <sdas@igalia.com>
776 * jit.c: Include gdb-dlfcn.h.
777 (loaded_jit_reader, reader_init_fn_sym): New static variables.
778 (jit_reader_load, jit_reader_load_command)
779 (jit_reader_unload_command): New functions.
780 (_initialize_jit): Add commands "jit-reader-load" and
783 2011-11-20 Sanjoy Das <sdas@igalia.com>
785 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
786 * config.in: Add new #define HAVE_LIBDL.
787 * configure.ac: Add check for -ldl.
788 * configure: Re-generated by autoconf.
789 * gdb-dlfcn.c: New file.
790 * gdb-dlfcn.h: New file.
792 2011-11-20 Sanjoy Das <sdas@igalia.com>
794 * config.in: Add new #defines: JIT_READER_DIR and
795 JIT_READER_DIR_RELOCATABLE.
796 * configure.ac: New GDB directory entry for jit-reader-dir.
797 * configure: Re-generated by autoconf.
798 * jit.c: New static variable: const char *jit_reader_dir.
799 (_initialize_jit): Relocate jit_reader_dir.
801 2011-11-20 Sanjoy Das <sdas@igalia.com>
803 * Makefile.in: Add jit-reader.h as a header. Have it installed in
805 * configure.ac: Generate a correct value for TARGET_PTR for
806 jit-reader.h. Tell configure to generate jit-reader.h from
808 * configure: Re-generated by autoconf.
809 * jit-reader.in: New file.
810 * jit.c: Include jit-reader.h.
812 2011-11-20 Sanjoy Das <sdas@igalia.com>
814 * MAINTAINERS (Write After Approval): Add myself to the list.
816 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
818 * findvar.c (read_frame_register_value): Respect value_offset
819 of the register value. Remove big-endian special case.
821 2011-11-18 Tom Tromey <tromey@redhat.com>
824 * remote.c (putpkt_for_catch_errors): New function.
825 (remote_kill): Use it.
827 2011-11-18 Yao Qi <yao@codesourcery.com>
829 * breakpoint.c (create_breakpoint): Produce query message according to
831 Allocate tracepoint per correct type.
832 Don't check SALs for pending fast tracepoints.
833 * tracepoint.c (process_tracepoint_on_disconnect): New.
834 (disconnect_tracing): Call process_tracepoint_on_disconnect.
836 2011-11-18 Yao Qi <yao@codesourcery.com>
838 * breakpoint.c (install_breakpoint): Add one more parameter so that
839 update_global_location_list is called conditionally.
840 (create_fork_vfork_event_catchpoint): Update.
841 (create_syscall_event_catchpoint): Update.
842 (create_breakpoint_sal): Update.
843 (create_breakpoint_sal): Update. Call do_cleanups before
845 * ada-lang.c (create_ada_exception_catchpoint): Update.
846 * breakpoint.h (install_breakpoint): Update declaration.
848 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
850 * spu-tdep.c (spu_return_value): Fix handling of
851 TYPE_CALLING_CONVENTION annotation.
853 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
855 * skip.c (skip_function_command): Work around uninitialized
858 2011-11-16 David S. Miller <davem@davemloft.net>
860 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
861 'tv_usec' to long for printf since these fields have a type which
864 2011-11-15 Doug Evans <dje@google.com>
866 * buildsym.c (add_symbol_to_list): Delete outdated comment.
868 2011-11-15 Paul Koning <paul_koning@dell.com>
870 * python/py-type.c (typy_get_composite): New function.
871 (typy_nonzero): New function.
872 (typy_values): Rename from typy_fields.
873 (typy_fields): New function.
874 (typy_length): Raise exception if not struct, union, or enum type.
875 (typy_getitem): Ditto.
876 (typy_has_key): Ditto.
877 (typy_make_iter): Ditto.
879 2011-11-15 Doug Evans <dje@google.com>
881 * NEWS: Mention new parameter basenames-may-differ.
882 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
883 ! basenames_may_differ.
884 * psymtab.c (lookup_partial_symtab): Ditto.
885 * symtab.c (lookup_symtab): Ditto.
886 (basenames_may_differ): New global.
887 (_initialize_symtab): New parameter basenames-may-differ.
888 * symtab.h (basenames_may_differ): Declare.
890 2011-11-15 Pedro Alves <pedro@codesourcery.com>
891 Luis Machado <lgustavo@codesourcery.com>
893 * auxv.c: Include observer.h.
894 (auxv_inferior_data_cleanup): New.
895 (invalidate_auxv_cache_inf): New.
896 (invalidate_auxv_cache): New.
897 (get_auxv_inferior_data): New.
898 (auxv_inferior_data): New static global.
899 (auxv_info): New structure.
900 (target_auxv_search): Use get_auxv_inferior_data instead of
901 target_read_alloc and don't free cached buffers.
902 (fprint_target_auxv): Likewise
903 (_initialize_auxv): Register per-inferior auxv cache and register
904 observers to invalidate auxv cache when needed.
906 2011-11-14 Doug Evans <dje@google.com>
908 Make "!" an alias for "shell".
910 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
911 adding "!" command, always add it.
912 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
913 command of length one.
915 2011-11-14 Stan Shebs <stan@codesourcery.com>
916 Kwok Cheung Yeung <kcy@codesourcery.com>
918 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
919 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
920 the minimum instruction size for fast tracepoints.
921 * target.h (struct target_ops): Add new method
922 to_get_min_fast_tracepoint_insn_len.
923 (target_get_min_fast_tracepoint_insn_len): New.
924 * target.c (update_current_target): Set up new target operation.
925 * remote.c (remote_write_bytes_aux): Fix typo.
926 (remote_get_min_fast_tracepoint_insn_len): New.
927 (init_remote_ops): Initialize new field.
929 2011-11-14 Tom Tromey <tromey@redhat.com>
931 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
932 (encode_actions): Likewise.
934 2011-11-14 Yao Qi <yao@codesourcery.com>
936 * remote.c (struct remote_state): <install_in_trace> new field.
937 (PACKET_InstallInTrace): New enum value.
938 (remote_install_in_trace_feature): Support InstallInTrace.
939 (remote_supports_install_in_trace): Likewise.
940 (remote_protocol_features): Likewise.
941 (_initialize_remote): Likewise.
942 (remote_can_download_tracepoint): New.
943 * target.h (struct target): New field
944 `to_can_download_tracepoint'.
945 (target_can_download_tracepoint): New macro.
946 * target.c (update_current_target): Update.
947 * breakpoint.h (struct bp_location): Add comment on field
949 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
951 (remove_breakpoints): Don't remove tracepoints.
952 (tracepoint_locations_match ): New.
953 (breakpoint_locations_match): Call it.
954 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
955 (download_tracepoint_locations): New.
956 (update_global_location_list): Call it.
957 * tracepoint.c (find_matching_tracepoint): Delete.
958 (find_matching_tracepoint_location): Renamed from
959 find_matching_tracepoint. Return bp_location rather than
961 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
964 2011-11-14 Yao Qi <yao@codesourcery.com>
966 * target.h (struct target): <to_download_tracepoint> Change type
967 of parameter from tracepoint to bp_location.
968 * target.c (update_current_target): Update.
969 * tracepoint.c (start_tracing): Update.
970 * remote.c (remote_download_tracepoint): Remove loop for each location
973 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
975 * i386-nat.c (i386_insert_hw_breakpoint): Call
976 i386_update_inferior_debug_regs.
977 (i386_remove_hw_breakpoint): Likewise.
979 2011-11-14 Yao Qi <yao@codesourcery.com>
981 * breakpoint.c (init_raw_breakpoint): Call
982 add_location_to_breakpoint to replace duplicated code.
983 (add_location_to_breakpoint): Adjust the breakpoint's
984 address prior to allocating a location.
986 2011-11-12 Matt Rice <ratmice@gmail.com>
988 * macrocmd.c (macro_no_macro_info): New function.
989 (macro_expand_command): Use macro_no_macro_info.
990 (macro_expand_once_command): Ditto.
991 (info_macro_command): Add argument processing,
992 move info_definitions_command here.
993 (_initialize_macrocmd): Remove info definitions command.
994 Add arguments to info macro help text.
995 * NEWS: Replace info definitions command with new info macro options.
997 2011-11-11 Keith Seitz <keiths@redhat.com>
1000 * linespec.c (locate_first_half): Keep ':' if it looks
1001 like it could be part of a Windows path starting with
1004 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1006 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1007 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1009 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1011 * target.c (target_waitstatus_to_string): Handle
1012 TARGET_WAITKIND_NO_RESUMED.
1014 2011-11-10 Doug Evans <dje@google.com>
1016 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1018 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1019 (map_partial_symbol_filenames): Ditto. All callers updated.
1020 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1021 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1022 parameter need_fullname.
1024 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1025 * source.c (symtab_to_fullname): Ditto.
1027 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1028 * gdb-demangle.h: ... here. New file.
1029 * demangle.c: #include "gdb-demangle.h".
1030 (_initialize_demangler): Use initialize_file_ftype for prototype.
1031 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1032 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1034 * utils.c: Update. #include "gdb-demangle.h".
1035 * symtab.h (asm_demangle): Delete.
1036 (demangle): Move declaration next to use.
1037 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1038 * dwarf2read.c: #include "gdb-demangle.h".
1039 * gnu-v2-abi.c: Ditto.
1040 * jv-typeprint.c: Ditto.
1041 * mdebugread.c: Ditto.
1042 * p-typeprint.c: Ditto.
1043 * stabsread.c: Ditto.
1044 * printcmd.c: Ditto.
1045 (asm_demangle): Delete declaration.
1046 * tui/tui-stack.c: #include "gdb-demangle.h".
1048 * python/py-type.c (typy_fields_items): Call check_typedef.
1050 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1052 * findvar.c (read_frame_register_value): Read the correct bytes
1053 from registers on big-endian architectures.
1055 2011-11-10 Tom Tromey <tromey@redhat.com>
1057 * procfs.c (load_syscalls): Make a cleanup.
1058 (open_procinfo_files): fd==0 is ok.
1060 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1062 * procfs.c (iterate_over_mappings): Call do_cleanups before
1065 2011-11-09 Doug Evans <dje@google.com>
1067 * gdbtypes.c (check_typedef): Document that this function can
1070 2011-11-09 Tom Tromey <tromey@redhat.com>
1073 * valops.c (value_full_object): Return early if real type is
1074 smaller than the enclosing type.
1076 2011-11-08 Yao Qi <yao@codesourcery.com>
1078 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1080 2011-11-08 Meador Inge <meadori@codesourcery.com>
1082 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1083 register when the frame can't be determined.
1084 * arm-tdep.c (arm_analyze_prologue): Ditto.
1086 2011-11-07 Stan Shebs <stan@codesourcery.com>
1088 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1090 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1092 * infrun.c (handle_inferior_event): Minor reformatting.
1094 2011-11-05 Doug Evans <dje@google.com>
1096 * source.c (forget_cached_source_info_for_objfile): Move call to
1097 objfile->sf->qf->forget_cached_source_info outside of
1098 ALL_OBJFILE_SYMTABS loop.
1099 (forget_cached_source_info): Delete unused variable `s'.
1101 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1103 * i386-nat.c (dr_ref_count): Remove unused variable.
1105 2011-11-05 Doug Evans <dje@google.com>
1107 * main.c (captured_main): Set lim_at_start before calling
1108 make_command_stats_cleanup.
1110 2011-11-04 Doug Evans <dje@google.com>
1112 * utils.c: #include "timeval-utils.h".
1113 (cmd_stats): Rename start_time to start_cpu_time.
1114 New member start_wall_time.
1115 (report_command_stats): Report wall time.
1116 (make_command_stats_cleanup): Record start wall time.
1118 2011-11-04 Tom Tromey <tromey@redhat.com>
1120 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1122 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1124 * coff-pe-read.c: Include defs.h before bfd.h.
1126 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1130 * python/python.c (python_run_simple_file): Expand tilde in path.
1132 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1136 * python/py-type.c (typy_lookup_type): Do not return a type in
1137 an exception handler.
1139 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 Eli Zaretskii <eliz@gnu.org>
1142 * linux-nat.c (_initialize_linux_nat): Improve help
1143 for `info proc stat', `info proc status', `info proc cwd',
1144 `info proc cmdline' and `info proc exe'.
1146 2011-11-02 Stan Shebs <stan@codesourcery.com>
1148 String collection for tracepoints.
1149 * NEWS: Mention string collection.
1150 * common/ax.def (tracenz): New bytecode.
1151 * ax-gdb.h (trace_string_kludge): Declare.
1152 * ax-gdb.c: Include valprint.h and c-lang.h.
1153 (trace_string_kludge): New global.
1154 (gen_traced_pop): Add string case.
1155 (agent_command): Add string case.
1156 * tracepoint.h (decode_agent_options): Declare.
1157 * tracepoint.c: Include cli-utils.h.
1158 (decode_agent_options): New function.
1159 (validate_actionline): Call it.
1160 (encode_actions_1): Ditto.
1161 * target.h (struct target_ops): New method to_supports_string_tracing.
1162 (target_supports_string_tracing): New macro.
1163 * target.c (update_current_target): Add to_supports_string_tracing.
1164 * remote.c (struct remote_state): New field string_tracing.
1165 (remote_string_tracing_feature): New function.
1166 (remote_protocol_features): New feature tracenz.
1167 (remote_supports_string_tracing): New function.
1168 (init_remote_ops): Set to_supports_string_tracing.
1170 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1171 Jan Kratochvil <jan.kratochvil@redhat.com>
1173 * linux-nat.c: Include cli/cli-utils.h.
1174 (enum info_proc_what): New.
1175 (linux_nat_info_proc_cmd): Rename to ...
1176 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1177 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1178 status_f and stat_f from WHAT. Throw error on extra parameters.
1179 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1180 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1181 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1182 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1183 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1184 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1185 `info proc cmdline', `info proc exe' and `info proc all' as real
1186 subcommands of `info proc'.
1188 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1190 * Makefile.in: (SFILES): Add skip.c.
1191 (HFILES_NO_SRCDIR): Add skip.h.
1192 (COMMON_OBS): Add skip.o.
1193 * skip.h, skip.c: New.
1194 * breakpoint.h (set_default_breakpoint): Remove.
1195 (get_sal_arch): Declare.
1196 * breakpoint.c: Remove default_breakpoint_valid,
1197 default_breakpoint_address, default_breakpoint_symtab,
1198 default_breakpoint_line, default_breakpoint_pspace variables.
1199 (get_sal_arch): Make public.
1200 (set_default_breakpoint): Remove.
1201 (parse_breakpoint_sals, create_breakpoint, clear_command,
1202 decode_line_spec_1): Remove uses of default_breakpoint variables;
1203 replaced with function calls into stack.c.
1204 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1205 * cli/cli-cmds.c: Add skiplist.
1206 (init_cmd_lists): Initialize skiplist.
1207 (init_cli_cmds): Fix comment (classes of commands appear in
1208 alphabetical order).
1209 * infrun.c (handle_inferior_event): Add check that we don't step into
1210 a function whose pc is marked for skip.
1211 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1212 last_displayed_addr, last_displayed_symtab, last_displayed_line
1214 (set_last_displayed_sal): New static function.
1215 (print_frame_info): Switch call to set_default_breakpoint to call to
1216 set_last_displayed_sal.
1217 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1218 get_last_displayed_pspace, get_last_displayed_addr,
1219 get_last_displayed_symtab, get_last_displayed_line,
1220 get_last_displayed_sal): New public functions.
1221 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1222 get_last_displayed_pspace, get_last_displayed_addr,
1223 get_last_displayed_symtab, get_last_displayed_line,
1224 get_last_displayed_sal): Declare.
1226 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1228 * MAINTAINERS (Write After Approval): Add myself to the list.
1230 2011-10-29 Yao Qi <yao@codesourcery.com>
1232 * infcmd.c (disconnect_command): Call disconnect_tracing.
1234 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 * symtab.c (skip_prologue_sal): Code reformatting.
1239 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1243 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1246 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1248 * linux-nat.c (linux_nat_filter_event): Remove `options'
1249 parameter, and dead code that used it. If we're handling a
1250 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1251 in our lwp list, re-add it.
1252 (check_zombie_leaders): New.
1253 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1254 wait for children with WNOHANG, and always wait for all children.
1255 Don't check for no resumed children upfront. Simplify wait loop.
1256 Check for zombie thread group leaders after handling all wait
1257 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1258 unwaited-for children left.
1259 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1260 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1261 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1262 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1264 2011-10-28 Sterling Augustine <saugustine@google.com>
1266 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1267 * symtab.c (free_completion_list): New function.
1268 (do_free_completion_list): Likewise.
1269 (default_make_symbol_completion_list_break_on): New variable
1270 back_to. Call make_cleanup and discard_cleanups.
1271 (make_source_files_completion_list): Likewise.
1273 2011-10-28 Paul Koning <paul_koning@dell.com>
1275 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1276 * NEWS: Mention deep_items.
1278 2011-10-28 Alen Skondro <askondro@gmail.com>
1280 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1283 2011-10-27 Meador Inge <meadori@codesourcery.com>
1285 * MAINTAINERS (Write After Approval): Add myself to the list.
1287 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1289 * value.h (read_frame_register_value): Add declaration.
1290 * findvar.c (read_frame_register_value): New function.
1291 (value_from_register): Use read_frame_register_value
1292 instead of get_frame_register_value + value_contents_copy
1293 to get value contents.
1295 2011-10-27 Doug Evans <dje@google.com>
1297 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1298 source_script_from_stream if it may have been found on the search path.
1299 * python/py-auto-load.c (source_section_scripts): Pass full path to
1300 source_python_script_for_objfile.
1301 * python/python.c (source_python_script): Delete stream parameter.
1302 All callers updated.
1303 (source_python_script_for_objfile): Ditto.
1304 * python/python-internal.h (source_python_script_for_objfile): Update.
1305 * python/python.h (source_python_script): Update.
1307 2011-10-27 Tom Tromey <tromey@redhat.com>
1309 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1310 (ada_sals_for_line): Remove declarations.
1312 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1314 Move unwind reasons to an external .def file
1315 * frame.c (frame_stop_reason_string): Rewrite using
1316 unwind_stop_reasons.def.
1317 * frame.h (enum unwind_stop_reason): Likewise.
1318 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1319 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1320 constants for bound-checking.
1321 * unwind_stop_reasons.def: New file.
1322 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1323 instead of a distinct value.
1325 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1329 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1330 (convert_values_to_python): Return on Python tuple allocation
1331 failure. Return NULL on value conversion error.
1333 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1335 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1336 (bppy_set_task): Ditto.
1337 (bppy_delete_breakpoint): Ditto.
1338 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1339 (gdbpy_lookup_global_symbol): Ditto.
1340 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1341 * python/py-frame.c (frapy_is_valid): Ditto.
1342 (frame_info_to_frame_object): Ditto.
1343 * python/py-type.c (typy_lookup_type): Ditto.
1344 (typy_getitem): Ditto.
1345 (typy_has_key): Ditto.
1346 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1348 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1350 * gdbarch.h: Regenerate.
1352 2011-10-26 Meador Inge <meadori@codesourcery.com>
1354 * gdbarch.sh (function_list): Use 'pstring' when printing
1356 * gdbarch.c: Regenerate.
1358 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1360 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1361 and frame caches if PTID refers to all threads of a process.
1363 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1365 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1366 to create_breakpoint.
1368 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1370 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1371 (ppc_sysv_abi_push_dummy_call): Use it.
1372 (do_ppc_sysv_return_value): Likewise.
1373 (ppc64_sysv_abi_push_dummy_call): Likewise.
1374 (ppc64_sysv_abi_return_value): Likewise.
1376 2011-10-26 Paul Koning <paul_koning@dell.com>
1378 * python/lib/gdb/types.py (deepitems): New function.
1380 2011-10-25 Paul Koning <paul_koning@dell.com>
1384 * python/py-value.c (value_to_value_object): Remove fetching of
1385 the value if it was lazy.
1386 (valpy_get_is_lazy): New function.
1387 (valpy_fetch_lazy): New function.
1389 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1391 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1392 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1394 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1396 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1397 event, in non-stop, if not stopping, make sure the new lwp has
1398 last_resume_kind set to resume_continue. Assert that when we're
1399 resuming the new lwp, its last_resume_kind is resume_continue.
1401 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1403 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1404 already set when marking the event thread as not executing in
1407 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1409 * infrun.c (handle_inferior_event): Add debug output for
1410 TARGET_WAITKIND_NO_HISTORY.
1412 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1414 * NEWS: Move set/show extended-prompt to "New Options". Expand
1415 description. Fix typos.
1417 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1421 * python/py-param.c (call_doc_function): Correctly deference on
1424 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1426 * ada-tasks.c (print_ada_task_info): Fix computation of
1427 number of tasks displayed in command output.
1429 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1430 Ulrich Weigand <uweigand@de.ibm.com>
1432 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1433 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1434 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1435 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1438 2011-10-20 Cary Coutant <ccoutant@google.com>
1440 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1442 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1443 flag. Adjust all callers.
1444 (process_psymtab_comp_unit): Remove adjustment for type section.
1446 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1448 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1449 arguments by adding OBJFILE. Instead of getting objfile from
1450 symbol's symtab, use new argument OBJFILE.
1451 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1452 arguments by adding OBJFILE.
1453 * gdb/dwarf2read.c (new_symbol_full): Change call to
1454 cp_scan_for_anonymous_namespaces to match new signature.
1455 * gdb/stabsread.c (define_symbol): Change call to
1456 cp_scan_for_anonymous_namespaces to match new signature.
1458 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1463 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1465 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1466 leak. Delete unused variables.
1468 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1472 * python/py-frame.c (frapy_read_var): Use const struct *block.
1473 * python/py-type.c (typy_lookup_typename): Likewise.
1474 (typy_lookup_type): Likewise.
1475 (typy_legacy_template_argument): Likewise.
1476 (typy_template_argument): Likewise.
1477 (gdbpy_lookup_type): Likewise.
1478 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1479 * python/py-block.c (blpy_block_object): Likewise.
1480 (blpy_iter): Likewise.
1481 (blpy_get_start): Likewise.
1482 (blpy_get_end): Likewise.
1483 (blpy_get_function): Likewise.
1484 (blpy_get_superblock): Likewise.
1485 (set_block): Likewise.
1486 (block_to_block_object): Likewise.
1487 (block_object_to_block): Likewise.
1488 (blpy_is_valid): Likewise.
1489 (blpy_get_global_block): New function.
1490 (blpy_get_static_block): New function.
1491 (blpy_is_global): New function.
1492 (blpy_is_static): New function.
1493 * blockframe.c (block_innermost_frame): Likewise.
1494 * valops.c (value_of_variable): Likewise.
1495 * frame.h: Update prototypes.
1496 * python/python-internal.h: Likewise.
1497 * value.h: Likewise.
1499 2011-10-19 Cary Coutant <ccoutant@google.com>
1501 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1504 2011-10-19 Cary Coutant <ccoutant@google.com>
1506 * dwarf2read.c (peek_abbrev_code): New function.
1507 (dw2_get_file_names): Check for dummy compilation units.
1508 (create_debug_types_hash_table): Likewise.
1509 (process_psymtab_comp_unit): Likewise.
1510 (load_partial_comp_unit): Likewise.
1511 (load_full_comp_unit): Likewise.
1513 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1515 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1516 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1517 pt_phdr if PT_PHDR was found.
1519 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1521 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1522 type or "<unnamed type"> when there is no name assigned.
1523 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1524 avoid a sigint when no name is assigned.
1526 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 * dwarf2expr.c (ctx_no_read_reg): New function.
1531 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1532 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1533 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1534 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1536 2011-10-16 Doug Evans <dje@google.com>
1538 * NEWS: Document python gdb.printing.register_pretty_printer's new
1539 `replace' parameter.
1541 2011-10-14 Keith Seitz <keiths@redhat.com>
1544 * eval.c (evaluate_subexp_standard): Do not construct
1545 an array of types; pass the value array directly to
1546 find_overload_match.
1547 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1548 (rank_function): Take an array of values instead of types.
1549 (rank_one_type): Add struct value * parameter.
1550 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1551 (rank_function): For each argument, pass the argument's
1552 value to rank_one_type.
1553 (rank_one_type): Add VALUE parameter.
1554 If the parameter type is a pointer and the argument type
1555 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1557 Update all calls to rank_one_type, passing NULL for new
1559 * valarith.c (value_user_defined_cpp_op): Do not construct
1560 an array of types; pass the value array directly to
1561 find_overload_match.
1562 * valops.c (find_overload_method_list): Take an array of
1563 values instead of types.
1564 Save the type of OBJP for later use.
1565 Update calls to find_oload_champ, and find_oload_champ_namespace.
1566 (find_oload_champ_namespace): Take an array of values instead
1568 (find_oload_champ_namespace_loop): Likewise.
1569 (find_oload_champ): Likewise.
1570 (classify_oload_match): Inspect all arguments
1571 until INCOMPATIBLE is found. Return the worst badness found
1573 (compare_parameters): Update call to rank_one_type.
1574 * value.h (find_overload_match): Take an array of values instead
1577 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1579 Drop lazy lm_info reading.
1580 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1581 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1582 (lm_info_read): New function.
1583 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1584 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1585 lm_dynamic_from_link_map.
1586 (lm_next, lm_prev, lm_name): Remove.
1587 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1588 initialization incl. read_memory. No longer use lm_name.
1589 (svr4_free_so): Drop lm_info->lm freeing.
1590 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1591 explicit lm_addr and lm initialization.
1592 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1593 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1596 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1597 Paul Pluzhnikov <ppluzhnikov@google.com>
1599 * defs.h (struct so_list): New forward declaration.
1600 (make_cleanup_free_so): New declaration.
1601 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1602 (svr4_free_so): Move the function here from downwards. Handle NULL
1604 (svr4_free_library_list): New.
1605 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1606 Use more cleanups. Use new parameter ignore_first instead of
1607 ignore_first_link_map_entry.
1608 (svr4_current_sos): New variable ignore_first, initialize it. New
1609 variable back_to, use it for svr4_free_library_list protection.
1610 (svr4_free_so): Remove - move upwards.
1611 * utils.c: Include solist.h.
1612 (do_free_so, make_cleanup_free_so): New functions.
1614 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 Fix internal error regression.
1617 * value.c (value_primitive_field): Handle value_optimized_out. Move
1618 packed bitfields comment.
1620 2011-10-13 Tom Tromey <tromey@redhat.com>
1622 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1625 2011-10-13 Tom Tromey <tromey@redhat.com>
1627 * python/py-type.c (typy_has_key): Make 'field' const.
1629 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1631 * remote.c (remote_save_trace_data): Invert comparison.
1633 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1635 * tracepoint.c (trace_save_command): Use filename instead of
1638 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1640 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1643 2011-10-13 Yao Qi <yao@codesourcery.com>
1646 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1647 whether insn is a 32-bit Thumb-2 instruction.
1648 (thumb_in_function_epilogue_p): Likewise.
1649 (thumb_get_next_pc_raw): Likewise.
1650 (arm_breakpoint_from_pc): Likewise.
1652 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1654 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1655 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1656 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1657 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1658 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1660 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1662 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1663 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1664 clear DATA on zero SIZE.
1666 2011-10-12 Doug Evans <dje@google.com>
1668 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1669 header->first_die_offset here. All callers updated.
1671 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1673 Fix compatibility with texinfo versions older than 4.12.
1674 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1675 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1676 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1677 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1678 * configure: Regenerate.
1679 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1680 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1681 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1683 2011-10-12 Gary Benson <gbenson@redhat.com>
1685 * breakpoint.h (pc_at_non_inline_function): Declare.
1686 * breakpoint.c (is_non_inline_function,
1687 pc_at_non_inline_function): New functions.
1688 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1689 if the stop is at a location where functions cannot be inlined.
1691 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1693 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1694 the core wanted them stopped, or if they now have a pending event
1696 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1697 down to stop_and_resume_callback.
1698 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1699 having new pending events after calling linux_nat_filter_event.
1701 2011-10-11 Sterling Augustine <saugustine@google.com>
1703 * dwarf2read.c: Undo inadvertent changes in previous commit.
1705 2011-10-11 Sterling Augustine <saugustine@google.com>
1707 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1710 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1712 * symfile.c (separate_debug_file_exists): Fix condition.
1714 2011-10-11 David S. Miller <davem@davemloft.net>
1716 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1718 * regcache.h (regcache_restore): Remove declaration.
1720 * gdbarch.sh: New field 'long_long_align_bit'.
1721 * gdbarch.c, gdbarch.h: Regenerate.
1722 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1723 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1725 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 Revert this part of:
1728 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1729 Support @entry in input expressions.
1730 * c-exp.y (ENTRY, unknown_cpp_name): New.
1731 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1732 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1733 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1734 (name_not_typename: ENTRY): New.
1735 (yylex): Recognize ENTRY.
1737 Reimplement @entry in input expressions.
1738 * c-exp.y (ENTRY): New.
1739 (variable: name_not_typename ENTRY): New.
1740 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1742 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1744 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1745 parent and child's pids as soon as we detect a clone event.
1746 Adjust another debug message.
1748 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1750 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1751 not zombie instead of reading the whole file.
1753 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Fix separate debuginfo warning with "remote:" access.
1756 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1757 * symfile.c (get_file_crc): New function with the code moved from ...
1758 (separate_debug_file_exists): ... this function, specifically variables
1759 buffer and count. New variable verified_as_different, set it. Remove
1760 file_crc initialization. Verify also if both files are not the same
1761 manually, if needed.
1763 2011-10-11 Yao Qi <yao@codesourcery.com>
1765 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1768 2011-10-10 Doug Evans <dje@google.com>
1770 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1771 libthread_db when we load libpthread or the main symbol file.
1772 (thread_db_inferior_created): New function.
1773 (_initialize_thread_db): Attach inferior_created observer.
1774 * linux-nat.c (linux_child_post_attach): Remove call to
1775 check_for_thread_db.
1776 (linux_child_post_startup_inferior): Ditto.
1777 * objfiles.h (OBJF_MAINLINE): Define.
1778 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1779 allocate_objfile when appropriate.
1781 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1784 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1785 Remove unused variables.
1786 (get_linux_version): Remove function.
1787 (_initialize_arm_linux_nat): Do not call it.
1789 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1791 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1792 new clone lwp if the core asked it to stop. Don't pass on
1793 unexpected signals to the new clone; leave them pending instead.
1795 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1797 * linux-nat.c (resume_lwp): Remove redundant debug output.
1799 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1801 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1802 last_resume_kind before clearing it, and use the copy instead to
1803 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1804 resume_clear_callback in the non-stop path too.
1806 2011-10-09 Yao Qi <yao@codesourcery.com>
1808 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1809 Honor OPTIONS and VAL's type.
1810 (common_val_print, value_print): Update to pass one more parameter.
1812 2011-10-09 Doug Evans <dje@google.com>
1814 Add new "alias" command.
1815 * NEWS: Mention new command.
1816 * command.h (valid_user_defined_cmd_name_p): Declare.
1817 * defs.h (make_cleanup_dyn_string_delete): Declare.
1818 * utils.c: #include "dyn-string.h".
1819 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1820 * cli/cli-cmds.c: #include "dyn-string.h".
1821 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1822 (init_cli_cmds): Add new command.
1823 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1825 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1827 Fix compatibility with older GCCs.
1828 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1829 * stack.c (read_frame_arg): Initialize val_deref.
1831 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1833 Entry values NEWS entries, DWARF disassembly support.
1834 * NEWS: New entry values entry.
1835 (set print entry-values, show print entry-values)
1836 (set debug entry-values, show debug entry-values): New entries.
1837 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1838 indent. Remove variable start. Move header printing out. Respect
1839 INDENT. Support DW_OP_GNU_entry_value.
1840 (locexpr_describe_location_1): Move the header printing here, extend
1841 the disassemble_dwarf_expression passed parameters.
1843 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 Display @entry parameter values even for references.
1846 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1847 coerce_ref_if_computed.
1848 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1849 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1850 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1851 existing push_dwarf_reg_entry_value call. Add new detection calling
1852 dwarf_block_to_dwarf_reg_deref. Update the error message.
1853 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1855 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1856 parameter deref_size, describe it in the comment.
1857 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1858 (dwarf_block_to_dwarf_reg_deref): New declaration.
1859 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1860 deref_size, describe it in the function comment. New variables
1861 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1862 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1863 describe it in the function comment. Fetch the alternative block
1864 accoring to DEREF_SIZE.
1865 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1866 (entry_data_value_free_closure, entry_data_value_funcs): New.
1867 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1868 outer_val, target_val, val and addr. Try to fetch and create also
1869 referenced value content.
1870 (pieced_value_funcs): NULL value for coerce_ref.
1871 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1872 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1873 coerce_ref_if_computed.
1874 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1875 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1876 * stack.c (read_frame_arg): Compare also dereferenced values.
1877 * value.c (value_computed_funcs): Make the parameter v const, use
1878 value_lval_const for it.
1879 (value_lval_const, coerce_ref_if_computed): New function.
1880 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1881 * value.h (struct lval_funcs): New field coerce_ref.
1882 (value_computed_funcs): Make the parameter v const.
1883 (value_lval_const, coerce_ref_if_computed): New declarations.
1885 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 Support @entry in input expressions.
1888 * c-exp.y (ENTRY, unknown_cpp_name): New.
1889 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1890 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1891 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1892 (name_not_typename: ENTRY): New.
1893 (yylex): Recognize ENTRY.
1894 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1895 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1897 * parse.c (operator_length_standard): Likewise.
1898 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1900 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 Display referenced values in backtraces.
1903 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1904 * stack.c (print_frame_arg): Likewise.
1906 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 Make some lval_funcs methods to default on NULL.
1909 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1911 (value_assign): Check if lval_computed write method is NULL.
1912 * value.h (struct lval_funcs): Comment NULL values for read and write
1915 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 Display @entry parameter values (without references).
1918 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1920 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1922 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1924 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1925 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1927 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1928 (loclist_read_variable_at_entry): New function.
1929 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1930 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1931 DW_AT_location, call dwarf_block_to_sp_offset for it.
1932 * frame.h (print_entry_values_no, print_entry_values_only)
1933 (print_entry_values_preferred, print_entry_values_if_needed)
1934 (print_entry_values_both, print_entry_values_compact)
1935 (print_entry_values_default, print_entry_values): New declarations.
1936 (struct frame_arg): New field entry_kind.
1937 (read_frame_arg): New parameter entryargp.
1938 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1939 arg->entry_kind. Optionally print the `@entry' suffix.
1940 (list_args_or_locals): New variable entryarg, initialize it.
1941 Initialize also entry_kind of arg and entryarg. Conditionalize
1942 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1943 xfree for entryarg.error.
1944 * stack.c (print_entry_values_no, print_entry_values_only)
1945 (print_entry_values_preferred, print_entry_values_if_needed)
1946 (print_entry_values_both, print_entry_values_compact)
1947 (print_entry_values_default, print_entry_values_choices)
1948 (print_entry_values): New variables.
1949 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1950 print the `@entry' suffix, possibly in combination for
1951 print_entry_values_compact.
1952 (read_frame_arg): New parameter entryargp, new variables entryval,
1953 entryval_error and val_equal. Read in also entryargp, respect
1954 print_entry_values, compare the values using val_equal, fill in also
1955 argp->entry_kind (together with entryargp->entry_kind).
1956 (print_frame_args): New variable entryarg, initialize it.
1957 Conditionalize print_frame_arg for arg, add print_frame_arg for
1958 entryarg. Call xfree for entryarg.error.
1959 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1960 * symtab.h (struct symbol_computed_ops): New field
1961 read_variable_at_entry.
1963 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1966 * frame.h (struct frame_arg): New definition.
1967 (read_frame_arg): New declaration.
1968 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1969 (list_args_or_locals): ... the code here. New variable arg, call
1970 read_frame_arg and list_arg_or_local with it. Unify the
1971 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1973 * stack.c (print_frame_arg): New functiom from the code of
1975 (read_frame_arg): New function.
1976 (print_frame_args): Remove variable val. New variable arg, call
1977 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1979 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 Protect entry values against self tail calls.
1982 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1983 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1985 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1987 Recognize virtual tail call frames.
1988 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1989 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1990 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1991 * dwarf2-frame-tailcall.c: New file.
1992 * dwarf2-frame-tailcall.h: New file.
1993 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1994 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1995 REGS.PREV only after CIE execution.
1996 (struct dwarf2_frame_cache): New field tailcall_cache.
1997 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1998 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1999 parts, try to find entry_cfa_sp_offset. Call
2000 dwarf2_tailcall_sniffer_first.
2001 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2003 (dwarf2_frame_dealloc_cache): New function.
2004 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2005 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2006 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2007 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2008 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2009 * dwarf2loc.c (func_addr_to_tail_call_list)
2010 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2011 (call_site_find_chain_1, call_site_find_chain): New.
2012 * dwarf2loc.h (struct call_site_chain): New.
2013 (call_site_find_chain): New declaration.
2014 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2015 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2016 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2017 * stack.c (frame_info): Support also TAILCALL_FRAME.
2019 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2021 Tail call sites reader implementation.
2022 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2023 fill in TYPE_TAIL_CALL_LIST.
2024 * gdbtypes.h (struct func_type): New field tail_call_list.
2025 (struct call_site): New field tail_call_next.
2026 (TYPE_TAIL_CALL_LIST): New definition.
2028 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 Implement basic support for DW_TAG_GNU_call_site.
2031 * block.c: Include gdbtypes.h and exceptions.h.
2032 (call_site_for_pc): New function.
2033 * block.h (call_site_for_pc): New declaration.
2034 * defs.h: Include hashtab.h.
2035 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2037 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2038 ctx_no_push_dwarf_reg_entry_value.
2039 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2040 (dwarf_block_to_dwarf_reg): New function.
2041 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2042 (ctx_no_push_dwarf_reg_entry_value): New function.
2043 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2044 push_dwarf_reg_entry_value.
2045 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2047 * dwarf2loc.c: Include gdbcmd.h.
2048 (dwarf_expr_ctx_funcs): New forward declaration.
2049 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2050 (dwarf_expr_reg_to_entry_parameter)
2051 (dwarf_expr_push_dwarf_reg_entry_value): New.
2052 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2053 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2054 (needs_dwarf_reg_entry_value): New function.
2055 (needs_frame_ctx_funcs): Install it.
2056 (_initialize_dwarf2loc): New function.
2057 * dwarf2loc.h (entry_values_debug): New declaration.
2058 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2059 (read_call_site_scope): New forward declaration.
2060 (process_full_comp_unit): Copy call_site_htab.
2061 (process_die): Support DW_TAG_GNU_call_site.
2062 (read_call_site_scope): New function.
2063 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2064 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2065 (cleanup_htab): Delete.
2066 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2067 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2068 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2069 FIELD_LOC_KIND_DWARF_BLOCK.
2070 * gdbtypes.h (enum field_loc_kind): New entry
2071 FIELD_LOC_KIND_DWARF_BLOCK.
2072 (struct main_type): New loc entry dwarf_block.
2073 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2074 (TYPE_FIELD_DWARF_BLOCK): New.
2075 * python/py-type.c: Include dwarf2loc.h.
2076 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2077 internal_error call on unknown FIELD_LOC_KIND.
2078 * symtab.h (struct symtab): New field call_site_htab.
2079 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2080 (core_addr_hash, core_addr_eq): New functions.
2082 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2085 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2086 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2087 calling_convention under func_stuff there.
2088 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2089 (init_type) <TYPE_CODE_FUNC>: Likewise.
2090 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2091 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2092 * gdbtypes.h (enum type_specific_kind): Change
2093 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2094 (struct main_type) <type_specific>: Change calling_convention to
2095 func_stuff. Move calling_convention to ...
2096 (struct func_type): ... this new struct.
2097 (INIT_FUNC_SPECIFIC): New #define.
2098 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2100 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2103 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2104 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2105 ctx->ref_addr_size. Handle its invalid value.
2106 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2107 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2108 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2109 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2110 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2111 (dwarf2_per_cu_ref_addr_size): New function.
2113 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2116 * dwarf2read.c (per_cu_header_read_in): New function.
2117 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2118 variables cu_header_local and cu_headerp.
2120 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Fix initial language detection with -readnow.
2123 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2124 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2125 searches only for global symbols.
2127 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2129 Fix printed anonymous struct name.
2130 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2131 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2132 (anonymous_struct_prefix): New function.
2133 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2134 (dwarf2_name): Strip for anonymous structs any prefixes.
2136 2011-10-07 Doug Evans <dje@google.com>
2138 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2141 * python/lib/gdb/printing.py: Whitespace cleanup.
2143 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2146 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2148 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2149 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2150 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2151 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2152 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2153 (arm_linux_remove_watchpoint): Adjust.
2154 * i386-linux-nat.c (i386_linux_dr_set_control)
2155 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2156 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2157 (ia64_linux_remove_watchpoint): Adjust.
2158 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2159 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2160 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2161 (ppc_linux_insert_mask_watchpoint)
2162 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2163 (ppc_linux_remove_watchpoint): Adjust.
2164 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2167 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2169 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2170 (clear_win32_environment): New function for Cygwin to clear out
2172 (windows_create_inferior): Prepare new environment from in_env
2175 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2178 * python/py-value.c (valpy_call): Check that arguments are
2180 (is_intlike): Remove call to CHECK_TYPEDEF.
2181 (valpy_nonzero): Catch GDB exceptions.
2182 (valpy_absolute): Ditto.
2183 (valpy_lazy_string): Ditto.
2184 (valpy_call): Ditto.
2185 (valpy_get_is_optimized_out): Ditto.
2186 (valpy_long): Ditto.
2187 (valpy_float): Ditto.
2188 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2189 (valpy_richcompare): Ditto.
2191 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2193 * inferior.h (disable_randomization): Declare.
2194 * infrun.c (disable_randomization): New global variable.
2195 (show_disable_randomization): New function.
2196 (set_disable_randomization): Likewise.
2197 (_initialize_infrun): Install set/show disable-randomization
2199 * linux-nat.c (disable_randomization): Remove.
2200 (show_disable_randomization): Likewise.
2201 (set_disable_randomization): Likewise.
2202 (_initialize_linux_nat): No longer install set/show
2203 disable-randomization commands here.
2204 (linux_nat_supports_disable_randomization): New function.
2205 (linux_nat_add_target): Install it.
2206 * remote.c (PACKET_QDisableRandomization): New enum value.
2207 (remote_protocol_packets): Support QDisableRandomization.
2208 (_initialize_remote): Likewise.
2209 (remote_supports_disable_randomization): New function.
2210 (init_remote_ops): Install it.
2211 (extended_remote_supports_disable_randomization): New function.
2212 (init_extended_remote_ops): Install it.
2213 (extended_remote_disable_randomization): New function.
2214 (extended_remote_create_inferior_1): Call it.
2215 * target.h (struct target_ops): Add to_supports_disable_randomization.
2216 (target_supports_disable_randomization): Add prototype.
2217 * target.c (target_supports_disable_randomization): New function.
2218 (find_default_supports_disable_randomization): Likewise.
2219 (init_dummy_target): Install it.
2221 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2223 Allow Python notification of new object-file loadings.
2224 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2225 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2226 Add build rule for this file.
2227 * python/py-event.h (emit_new_objfile_event): New prototype.
2228 (newobjfile): New Python event emitter.
2229 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2230 Python event registry.
2231 * python/py-inferior.c: Include objfiles.h
2232 (python_new_objfile): New function.
2233 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2235 * python/py-newobjfileevent.c: New file.
2236 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2238 * python/python.c (_initialize_python): Add
2239 gdbpy_initialize_new_objfile_event call.
2240 * NEWS: Add item for new Python event "gdb.newobjfile"
2242 2011-10-05 Tristan Gingold <gingold@adacore.com>
2244 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2245 Extract the ravenscar task name from the symbol for the atcb.
2247 2011-10-04 Paul Koning <paul_koning@dell.com>
2249 * python/py-type.c (typy_make_iter): Add forward declaration.
2250 (typy_fields_items): Use the gdb.Type iterator.
2252 2011-10-04 Paul Koning <paul_koning@dell.com>
2254 * NEWS: Add entry for Python gdb.Type mapping methods.
2256 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2258 PR python/12691: Add the inferior to Python exited event
2259 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2261 * python/py-event.h (emit_exited_event): Likewise
2262 * python/-inferior.c (python_inferior_exit): Likewise
2264 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2266 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2267 in output of -ada-task-info GDB/MI command.
2269 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2271 * ada-lang.h (struct inferior): Declare.
2272 (print_ada_task_info): Add declaration.
2273 * ada-tasks.c (print_ada_task_info): Make non-static.
2274 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2275 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2276 * mi/mi-main.c: #include "ada-lang.h".
2277 (mi_cmd_list_features): Add "ada-task-info" to the list
2278 of supported features.
2279 (mi_cmd_ada_task_info): New function.
2281 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2283 * python/python.c (python_run_simple_file): New function.
2284 (source_python_script, source_python_script_for_objfile):
2285 Replace call to PyRun_SimpleFile by call to
2286 python_run_simple_file.
2288 2011-10-03 Paul Koning <paul_koning@dell.com>
2290 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2291 (value_to_value_object): Fetch value if it was lazy.
2293 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2296 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2297 Rearrange the code for it.
2299 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2301 * breakpoint.c (bkpt_print_recreate): Add call to
2302 print_recreate_thread.
2304 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2306 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2307 PTRACE_GETFDPIC_INTERP): Define.
2309 2011-09-28 Yao Qi <yao@codesourcery.com>
2311 * symfile.c (add_symbol_file_command): Update message on usage.
2313 2011-09-28 Paul Koning <paul_koning@dell.com>
2315 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2316 (typy_length, typy_get, typy_has_key, typy_make_iter)
2317 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2318 (typy_iterator_iter, typy_iterator_iternext)
2319 (typy_iterator_dealloc): New functions to implement standard
2320 Python mapping methods on gdb.Type object.
2321 (gdb.TypeIterator): New Python type.
2322 * python/python-internal.h (gdbpy_iter_kind): New enum.
2324 2011-09-28 David S. Miller <davem@davemloft.net>
2326 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2327 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2328 * sparc-tdep.c (sparc_complex_floating_p): New function.
2329 (sparc32_store_arguments): Handle complex floats.
2330 (sparc32_extract_return_value): Likewise.
2331 (sparc32_store_return_value): Likewise.
2332 (sparc32_stabs_argument_has_addr): Likewise.
2333 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2334 (sparc64_store_floating_fields): Handle complex floats.
2335 (sparc64_store_arguments): Likewise.
2336 (sparc64_store_return_value): Likewise.
2338 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2340 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2341 before the change on 2006-12-09.
2342 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2343 generates the environment block for CreateProcessA, modulo the
2344 Cygwin-specific parts that are not needed here.
2346 2011-09-27 Tristan Gingold <gingold@adacore.com>
2348 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2349 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2350 (darwin_solib_get_all_image_info_addr_at_init): New function.
2351 (darwin_solib_read_all_image_info_addr): Likewise.
2352 (darwin_solib_create_inferior_hook): Use the above two functions.
2353 * darwin-nat.c (darwin_execvp): Renames retval to res.
2354 (darwin_read_write_inferior): Update comment.
2355 (darwin_read_dyld_info): New function.
2356 (darwin_xfer_partial): Handle DYLD_INFO.
2358 2011-09-27 Stan Shebs <stan@codesourcery.com>
2360 Add return address collection for tracepoints.
2361 * tracepoint.c (encode_actions_1): Add case for $_ret.
2362 (validate_actionline): Check for $_ret.
2363 (trace_dump_actions): Ditto.
2364 * ax-gdb.h (gen_trace_for_return_address): Declare.
2365 * ax-gdb.c: Include arch-utils.h.
2366 (gen_trace_for_return_address): New function.
2367 (agent_command): Add return address special case.
2368 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2369 (amd64_gen_return_address): New function.
2370 (amd64_init_abi): Call it.
2371 * i386-tdep.c: Include ax.h and ax-gdb.h.
2372 (i386_gen_return_address): New function.
2373 (i386_init_abi): Call it.
2374 * arch-utils.h (default_gen_return_address): Declare.
2375 * arch-utils.c (default_gen_return_address): New function.
2376 * gdbarch.sh (gen_return_address): New method.
2377 * gdbarch.h, gdbarch.c: Regenerate.
2379 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2382 * i386-tdep.c (i386_frame_align): New.
2383 (i386_gdbarch_init): Use i386_frame_align.
2385 2011-09-23 Yao Qi <yao@codesourcery.com>
2387 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2390 2011-09-22 Tristan Gingold <gingold@adacore.com>
2392 * fork-child.c (fork_inferior): Add exec_fun parameter.
2393 Call exec_fun or execvp.
2394 * inferior.h: Adjust prototype.
2395 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2396 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2397 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2398 * procfs.c (procfs_create_inferior): Ditto.
2399 * darwin-nat.c (darwin_execvp): New function.
2400 (darwin_create_inferior): Use it.
2402 2011-09-22 Yao Qi <yao@codesourcery.com>
2404 * infrun.c (context_switch): Print debug message when switching to
2407 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2409 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2410 complex and vector types.
2411 (s390_return_value_convention): Likewise.
2413 (s390_value_from_register): Call check_typedef.
2414 (extend_simple_arg): Likewise.
2415 (alignment_of): Likewise.
2416 (s390_push_dummy_call): Likewise.
2417 (s390_return_value): Likewise.
2419 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2421 * event-top.c (async_disconnect): If an exception is thrown from
2422 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2424 * top.c (quit_cover): Return void and take no arguments.
2425 * top.h (quit_cover): Update prototype.
2427 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2429 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2430 current_uiout, not uiout.
2432 2011-09-19 Doug Evans <dje@google.com>
2434 * python/py-auto-load.c (source_section_scripts): Fix file
2436 * python/python.c (source_python_script_for_objfile): Tweak comments.
2438 2011-09-18 Yao Qi <yao@codesourcery.com>
2439 Ulrich Weigand <ulrich.weigand@linaro.org>
2441 Support displaced stepping for Thumb 16-bit insns.
2442 * arm-tdep.c (THUMB_NOP) Define.
2443 (thumb_copy_unmodified_16bit): New.
2444 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2445 (thumb_copy_alu_reg): New.
2446 (arm_copy_svc): Move some common code to ...
2447 (install_svc): ... here. New.
2448 (thumb_copy_svc): New.
2449 (install_pc_relative): New.
2450 (thumb_copy_pc_relative_16bit): New.
2451 (thumb_decode_pc_relative_16bit): New.
2452 (thumb_copy_16bit_ldr_literal): New.
2453 (thumb_copy_cbnz_cbz): New.
2454 (cleanup_pop_pc_16bit_all): New.
2455 (thumb_copy_pop_pc_16bit): New.
2456 (thumb_process_displaced_16bit_insn): New.
2457 (thumb_process_displaced_32bit_insn): New.
2458 (thumb_process_displaced_insn): process thumb instruction.
2460 Support displaced stepping for Thumb 32-bit insns.
2461 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2462 (thumb2_copy_preload): New.
2463 (thumb2_copy_copro_load_store): New.
2464 (thumb2_copy_b_bl_blx): New.
2465 (thumb2_copy_alu_imm): New.
2466 (thumb2_copy_load_reg_imm): New.
2467 (thumb2_copy_load_literal): New
2468 (thumb2_copy_block_xfer): New.
2469 (thumb_32bit_copy_undef): New.
2470 (thumb_32bit_copy_unpred): New.
2471 (thumb2_decode_ext_reg_ld_st): New.
2472 (thumb2_decode_svc_copro): New.
2473 (decode_thumb_32bit_store_single_data_item): New.
2474 (thumb_copy_pc_relative_32bit): New.
2475 (thumb_decode_pc_relative_32bit): New.
2476 (decode_thumb_32bit_ld_mem_hints): New.
2477 (thumb2_copy_table_branch): New
2478 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2481 2011-09-18 Yao Qi <yao@codesourcery.com>
2483 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2484 (install_b_bl_blx): Likewise.
2486 2011-09-17 Yao Qi <yao@codesourcery.com>
2488 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2489 (install_load_store): ... this. New.
2490 Change parameter BYTE to SIZE.
2491 (arm_copy_ldr_str_ldrb_strb): Update caller.
2492 (arm_decode_ld_st_word_ubyte): Update caller.
2494 2011-09-17 Yao Qi <yao@codesourcery.com>
2496 * infrun.c (displaced_step_fixup): Move some code ...
2497 (displaced_step_restore): ... here. New function.
2498 (handle_inferior_event): Cleanup displaced stepping state for both
2499 child and parent when get forked or vforked event.
2500 * regcache.c (get_thread_arch_aspace_regcache): New function.
2501 get_thread_arch_regcache (): Call it.
2503 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2505 * ada-tasks.c (print_ada_task_info): New function, merging
2506 short_task_info and info_tasks together. Reimplement using
2507 ui-out instead of printing to stdout directly. Move the code
2508 building and checking the task list here, instead of leaving it
2509 in info_tasks_command.
2510 (info_task): Move the code building and checking the task
2511 list here, instead of leaving it in info_tasks_command.
2512 (info_tasks_command): Delete code building and checking
2513 the task list - moved elsewhere. Update calls to info_tasks
2516 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2518 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2520 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2522 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2524 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2526 * ada-lang.h (ada_build_task_list): Remove parameter
2528 * ada-tasks.c (ada_build_task_list): Remove parameter
2529 `warn_if_null'. Adjust implementation and documentation.
2530 (valid_task_id, ada_get_environment_task)
2531 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2532 (info_tasks_command): Adjust implementation.
2533 (task_command): Likewise.
2534 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2535 to ada_build_task_list.
2537 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2539 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2540 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2541 (ada_tasks_inferior_data_handle): New static global.
2542 (get_ada_tasks_inferior_data): New function.
2543 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2544 (ada_get_environment_task, iterate_over_live_ada_tasks)
2545 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2547 (ada_set_current_inferior_known_tasks_addr): New function.
2548 (read_known_tasks, ada_build_task_list, short_task_info)
2549 (info_tasks, info_task, info_tasks_command, task_command_1)
2550 (task_command, ada_task_list_changed): Adjust.
2551 (ada_tasks_invalidate_inferior_data): New function.
2552 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2553 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2554 * ada-lang.h (struct inferior): Add declaration.
2555 (ada_task_list_changed): Update profile.
2556 * remote-wtx-pd.c: #include "inferior.h".
2557 (switch_to_pd_internal): Update call to ada_task_list_changed.
2559 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2561 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2562 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2563 (atcb_fieldno): Delete these static globals.
2564 (struct ada_tasks_pspace_data): New struct.
2565 (ada_tasks_pspace_data_handle): New static global.
2566 (get_ada_tasks_pspace_data): New function.
2567 (ada_tasks_invalidate_pspace_data): New function.
2568 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2569 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2570 (_initialize_tasks): Create this module's per-progspace
2573 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2575 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2577 2011-09-16 Tristan Gingold <gingold@adacore.com>
2579 * fork-child.c (fork_inferior): Update comment. Use alloca
2580 instead of xmalloc for argv. Move len and shell_command
2581 declarations in the block where they are used.
2582 Only call execvp. Factorize failure code.
2584 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2587 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2588 `exp_element' instead of an element of the same and make the function
2590 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2591 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2592 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2593 Change argument of `write_exp_elt' function call.
2594 Remove extra spaces from comments.
2595 * parser-defs.h (write_exp_elt): Remove prototype.
2597 2011-09-15 Paul Koning <paul_koning@dell.com>
2599 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2600 count of item appended to list.
2601 * python/py-type.c (typy_fields): Likewise.
2603 2011-09-15 Paul Koning <paul_koning@dell.com>
2605 * MAINTAINERS (Write After Approval): Add myself to the list.
2607 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2610 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2611 processes with multiple threads.
2612 (inf_has_multiple_thread_cb): New function.
2613 (inf_has_multiple_threads): New function.
2615 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2617 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2618 * python/py-inferior.c (GdbMethods): New Python method definition.
2620 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2622 Handle multiple breakpoint hits in Python interface:
2623 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2624 variable to breakpoints.
2625 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2626 bps instead of single breakpoint. Fix some space typos.
2627 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2628 variable to breakpoints.
2630 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2632 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2633 note if the breakpoint is internal.
2635 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2637 * MAINTAINERS (Write After Approval): Add myself to the list
2639 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2641 * infrun.c (prepare_for_detach, wait_for_inferior)
2642 (fetch_inferior_event): Don't flush the register cache.
2643 * remote.c (struct stop_reply) <regcache>: Add comment.
2645 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2647 Remove excessive DWARF expressions memory duplication.
2648 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2650 (indirect_pieced_value): Remove variable result. Remove variable
2651 back_to and its use for baton.data.
2652 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2654 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2655 Update the function comment.
2657 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2659 * inferior.h (ALL_INFERIORS): New.
2660 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2661 for a stopped thread.
2662 (thread_db_find_new_threads): Look for threads in all inferiors.
2664 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2666 * breakpoint.c (update_watchpoint): Handle the case of the
2667 watchpoint to update not being in the breakpoint list yet.
2668 (hw_watchpoint_use_count): New, factored out from
2669 hw_watchpoint_used_count.
2670 (hw_watchpoint_used_count): Rename to ...
2671 (hw_watchpoint_used_count_others): ... this. Add `except'
2672 parameter. Don't count resources of `except'. Use
2673 hw_watchpoint_use_count.
2675 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2677 * gdbthread.h (enum thread_state): Moved here.
2678 (struct thread_info): Rename `executing_' field to `executing' and
2679 `state_' to `state'.
2680 * thread.c (enum thread_state): Moved to gdbthread.h.
2681 (new_thread, add_thread_silent, delete_thread_1)
2682 (any_live_thread_of_process, thread_alive, set_running)
2683 (set_running, is_thread_state, any_running, is_executing)
2684 (set_executing, finish_thread_state, print_thread_info)
2685 (do_captured_thread_select): Adjust.
2687 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2689 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2690 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2692 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2693 Matt Rice <ratmice@gmail.com>
2697 * interps.c (struct interp) <interpreter_out>: Delete field.
2698 (interp_new): Remove the data and uiout parameters and adjust.
2699 (interp_set): Only set the current_uiout from the interpreter's
2700 uiout after initializing the interpreter. Adjust call to
2702 (interp_ui_out): Adjust to call procs->ui_out_proc.
2703 (interp_data, interp_name): New.
2704 * interps.h (interp_init_ftype): Add `self' parameter.
2705 (interp_ui_out_ftype): New typedef.
2706 (struct interp_procs) <ui_out_proc>: New method pointer.
2707 (interp_new): Remove the data and uiout parameters.
2708 (interp_data, interp_name): Declare.
2709 * tui/tui-interp.c (tui_init): Adjust prototype.
2711 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2712 tui_out here. Adjust call to interp_new.
2713 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2714 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2716 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2717 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2718 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2719 Initialize mi->uiout depending on the mi_version as extracted from
2720 the interpreter's name.
2722 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2723 interp_new. Don't allocate the ui_out's of the interpreters here.
2725 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2727 * solib.c (solib_used): New function.
2728 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2729 by another so_list object before freeing it.
2731 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2737 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2740 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2741 (amd64_skip_xmm_prologue): ... this new function. Describe its
2742 parameters. No longer use amd64_prologue_line_bug.
2743 * defs.h (producer_is_gcc_ge_4): New declaration.
2744 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2745 (process_full_comp_unit): Update its caller. Remove
2746 amd64_prologue_line_bug initialization.
2747 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2748 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2750 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2752 * linux-nat.h (enum resume_kind): New.
2753 (struct lwp_info) <last_resume_kind>: New field.
2754 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2755 resume_stop on the new lwp.
2756 (add_lwp): Set last_resume_kind as resume_continue by default.
2757 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2758 (resume_lwp): New, factored out from resume_callback. Also check
2759 for pending status in lp->waitstatus.
2760 (resume_callback): Reimplement.
2761 (resume_clear_callback): Set last_resume_kind as resume_stop.
2762 (resume_set_callback): Set last_resume_kind as resume_continue.
2763 (linux_nat_resume, linux_handle_extended_wait): Set
2765 (running_callback): Also check lp->waitstatus for pending events.
2766 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2768 (stop_and_resume_callback): Don't re-resume if the core wanted the
2769 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2770 using an invalidated pointer.
2771 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2772 SIGSTOPs if the core wanted the LWP to stop.
2773 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2774 wanted the lwp to stop. If the core wanted the lwp to stop, and
2775 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2776 of TARGET_SIGNAL_STOP.
2777 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2778 here. Instead, signal the lwp, and set the last_resume_kind to
2781 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2783 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2784 -1 (error), if the lwp exits right after attaching.
2786 2011-09-08 Doug Evans <dje@google.com>
2788 * py-cmd.c: Some minor formatting fixes.
2789 (gdbpy_parse_command_name): Rename text arg to name, make const.
2790 All callers updated.
2791 * python-internal.h (gdbpy_parse_command_name): Update.
2793 * cli/cli-decode.c (add_cmd): Add comment.
2795 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 PR breakpoints/12435
2798 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2799 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2800 * dwarf2read.c (process_full_comp_unit): Initialize
2801 amd64_prologue_line_bug.
2802 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2804 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2806 Fix TUI screen corruption.
2807 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2810 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2812 * findvar.c (read_var_value): Never return NULL, throw an error
2813 instead. Update the function comment. State symbol name in the error
2815 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2817 * stack.c (print_frame_args): Likewise.
2818 * valops.c (value_of_variable): Likewise.
2820 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * stack.c (print_frame_args): New variable except. Wrap
2823 read_var_value and common_val_print into TRY_CATCH.
2825 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2828 caller to value_of_this.
2829 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2831 * valops.c (value_of_this): Remove parameter complain and variable ret.
2832 Update function comment. Never return NULL by this code.
2833 (value_of_this_silent): New function.
2834 * value.h (value_of_this): Remove parameter complain.
2835 (value_of_this_silent): New declaration.
2837 2011-09-07 Yao Qi <yao@codesourcery.com>
2839 * gdbthread.h (struct thread_info): Remove fields
2840 `stepping_through_solib_after_catch' and
2841 `stepping_through_solib_catchpoints'.
2842 * infrun.c (init_thread_stepping_state): Update.
2843 (process_event_stop_test, currently_stepping): Update.
2844 (currently_stepping_or_nexting_callback): Update.
2846 2011-09-07 Yao Qi <yao@codesourcery.com>
2848 * gdbthread.h (struct thread_info): Comment on field
2849 `step_after_step_resume_breakpoint'.
2851 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2853 * remote.c (remote_console_output): Reindent.
2855 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2857 * frame.c (has_stack_frames): Check for currently selected
2860 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2862 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2863 (set_async_annotation_level, set_async_prompt, pop_prompt)
2864 (push_prompt, new_async_prompt): Delete declarations.
2865 * top.h (get_prompt, set_prompt): Change prototype.
2866 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2868 * top.c (command_loop):
2869 (top_prompt): New global.
2870 (get_prefix, set_prefix, get_suffix, ): Delete.
2871 (get_prompt, set_prompt): Rewrite.
2872 (show_new_async_prompt): Rename to ...
2873 (show_prompt): ... this.
2874 (init_main): Adjust. Don't handle --annotate=2 here.
2875 * event-top.c (new_async_prompt): Delete.
2876 (the_prompts): Delete.
2877 (more_to_come): Make static.
2878 (display_gdb_prompt): Use top_level_prompt() to compute the top
2879 level prompt, and don't notify the before_prompt observers
2880 directly here. Always trick readline into not trying to display
2881 the prompt if sync_execution and displaying the primary prompt.
2882 If displaying a local/secondary prompt, always show it, even if
2883 sync_execution is set.
2884 (change_annotation_level): Delete.
2885 (top_level_prompt): New, based on change_annotation_level.
2886 (push_prompt, pop_prompt): Delete.
2887 (async_disable_stdin): No longer pushes prompt.
2888 (command_line_handler): No longer pushes or pops prompt. If more
2889 input is expected, call display_gdb_prompt with an explicit empty
2891 (async_stop_sig): Adjust.
2892 (set_async_annotation_level, set_async_prompt): Delete.
2893 * python/python.c (before_prompt_hook): Adjust.
2895 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2899 * infrun.c (fetch_inferior_event): Check if there's a selected
2900 thread before checking if the selected thread is executing.
2902 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2904 * inf-loop.c (execute_command): Don't check if the current thread
2905 if running before synchronously waiting for command completion.
2906 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2908 (normal_stop): Call async_enable_stdin here.
2909 * inf-loop.c (inferior_event_handler): Don't call
2910 async_enable_stdin, nor handle "set exec-done-display" here.
2912 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2916 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2918 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2920 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2922 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2924 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2926 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2928 2011-09-02 Matt Rice <ratmice@gmail.com>
2931 * event-top.c (cli_command_loop): Replace readline setup with
2932 direct call to display_gdb_prompt.
2933 (display_gdb_prompt): Do not call observer mechanism during
2934 synchronous execution.
2936 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2938 * linux-nat.c (in_pid_list_p): New.
2939 (linux_record_stopped_pid): Delete.
2940 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2941 already attached to the LWP. Return an indication if so.
2942 (linux_nat_filter_event): Adjust.
2943 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2944 returning an indication to ignore this thread.
2946 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2948 * top.c: Include interps.h.
2949 (execute_command): If the target can async, but the interpreter is
2950 in sync mode, synchronously wait for the command to finish before
2952 (execute_command_to_string): Force the interpreter to sync mode.
2953 * infrun.c: Include interps.h.
2954 (fetch_inferior_event): Don't restore the prompt yet if the
2955 interpreter is in sync mode.
2956 * interps.c (interpreter_async): New global.
2957 * interps.h (interpreter_async): Declare.
2958 * inf-loop.c: Include interps.h.
2959 (inferior_event_handler): Don't print the language change or run
2960 breakpoint commands yet if the interpreter in is sync mode.
2961 * main.c (captured_command_loop): Flip the interpreter to async
2963 * cli/cli-script.c: Include interps.h.
2964 (execute_user_command, while_command, if_command): Force the
2965 interpreter to sync mode.
2966 * python/python.c: Include interps.h.
2967 (python_command, execute_gdb_command): Force the interpreter to
2970 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2972 * value.c (show_convenience): Catch errors thrown while printing
2973 each internal variable.
2974 * infrun.c (validate_siginfo_access): New function.
2975 (siginfo_value_read, siginfo_value_write): Call it.
2977 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2981 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2984 2011-08-29 Yao Qi <yao@codesourcery.com>
2986 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2988 (enable_break2): Update caller.
2989 * solib-frv.c (bfd_lookup_symbol): Removed.
2991 (enable_break2): Update caller.
2992 * solib-pa64.c (bfd_lookup_symbol): Removed.
2994 * solib-svr4.c (bfd_lookup_symbol): Removed.
2995 (cmp_name_and_sec_flags): New.
2996 (enable_break): Update caller.
2997 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2998 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2999 (gdb_bfd_lookup_symbol): New.
3000 * solib.h: Functions declarations.
3002 2011-08-29 Yao Qi <yao@codesourcery.com>
3004 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3007 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 Fix TUI stepi on code without symbols.
3010 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3013 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3016 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3017 and the static keyword.
3018 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3019 Make prefix an array.
3020 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3021 * mi/mi-main.c (get_register): Remove stb initialization and the static
3024 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 Code cleanup - make mi_opt const.
3027 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3029 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3030 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3031 (mi_cmd_env_dir): Likewise.
3032 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3033 (mi_cmd_target_file_put): Likewise.
3034 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3035 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3036 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3037 (mi_valid_noargs): Make opts const.
3038 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3039 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3040 (mi_cmd_data_read_memory): Likewise.
3041 (mi_cmd_data_read_memory_bytes): Likewise.
3042 (mi_cmd_data_write_memory): Likewise.
3044 2011-08-26 Matt Rice <ratmice@gmail.com>
3046 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3047 bcache_xmalloc, replace bcache_xmalloc with call to
3048 psymbol_bcache_init for psymbol_cache.
3049 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3051 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3053 * inf-loop.c (inferior_event_handler): Add exception_print in
3056 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3058 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3059 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3060 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3061 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3062 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3063 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3064 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3065 * infrun.c (fetch_inferior_event): Call
3066 make_bpstat_clear_actions_cleanup.
3067 * top.c (execute_command): New variable cleanup_if_error, call
3068 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3069 * utils.c (do_bpstat_clear_actions_cleanup)
3070 (make_bpstat_clear_actions_cleanup): New functions.
3072 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3074 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3075 either the parent or the child forks. Rename a couple locals.
3077 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3079 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3080 library call. Avoid reading the `status' local if all waitpid
3083 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3085 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3086 opening /proc/PID/task always succeeds.
3088 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3090 * linespec.c (symtab_from_filename): Check for the end of string.
3092 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3095 * varobj.c (cplus_describe_child): Add the keyword
3096 'class' to the output of the method when dealing
3097 with a cast to a base class.
3099 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3101 No functionality change.
3102 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3103 function comment a reference, new variables tp and bs, move here code
3104 from throw_exception.
3105 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3106 describe it in the comment.
3107 * exceptions.c (throw_exception): Remove variable tp, move the code for
3108 bpstat_clear_actions to bpstat_clear_actions.
3110 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3112 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3113 * linux-nat.c: Include linux-procfs.h.
3114 (linux_proc_get_tgid): Move to ...
3115 * common/linux-procfs.c: ... here. New file.
3116 * common/linux-procfs.h: New file.
3117 * linux-thread-db.c: Include linux-procfs.h.
3118 * Makefile.in: Update dependencies.
3119 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3120 * config/arm/linux.mh: Likewise.
3121 * config/i386/linux.mh: Likewise.
3122 * config/i386/linux64.mh: Likewise.
3123 * config/ia64/linux.mh: Likewise.
3124 * config/m32r/linux.mh: Likewise.
3125 * config/m68k/linux.mh: Likewise.
3126 * config/mips/linux.mh: Likewise.
3127 * config/pa/linux.mh: Likewise.
3128 * config/pa/linux.mh: Likewise.
3129 * config/powerpc/linux.mh: Likewise.
3130 * config/powerpc/ppc64-linux.mh: Likewise.
3131 * config/powerpc/spu-linux.mh: Likewise.
3132 * config/sparc/linux.mh: Likewise.
3133 * config/sparc/linux64.mh: Likewise.
3134 * config/xtensa/linux.mh: Likewise.
3136 2011-08-24 Hui Zhu <teawater@gmail.com>
3138 * tracepoint.c (cond_string_is_same): New function.
3139 (find_matching_tracepoint): Add condition check
3140 by cond_string_is_same.
3142 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3144 Fix build error in Darwin port.
3145 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3147 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3150 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3151 (command_line_is_silent): New function.
3152 (bpstat_do_actions_1): No longer use commands_left, use
3153 command_line_is_silent for commands.
3154 (bpstat_alloc): Remove clearing of commands_left.
3155 (bpstat_stop_status): Remove initialization of commands_left, use
3156 command_line_is_silent.
3157 * breakpoint.h (struct bpstats): Remove commands_left.
3159 2011-08-18 Keith Seitz <keiths@redhat.com>
3162 * cp-name-parser.y (struct demangle_info): Remove unused
3165 (allocate_info): Change return type to struct demangle_info *.
3166 Always allocate a new demangle_info.
3167 Remove unused PREV pointer.
3168 (cp_new_demangle_parse_info): New function.
3169 (cp_demangled_name_parse_free): New function.
3170 (do_demangled_name_parse_free_cleanup): New function.
3171 (make_cleanup_cp_demangled_name_parse_free): New function.
3172 (cp_demangled_name_to_comp): Change return type to
3173 struct demangle_parse_info *.
3174 Allocate a new storage for each call.
3175 (main): Update usage for cp_demangled_name_to_comp
3177 * cp-support.h (struct demangle_parse_info): New structure.
3178 (cp_demangled_name_to_comp): Update API change for
3180 (cp_new_demangle_parse_info): Declare.
3181 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3182 (cp_demangled_name_parse_free): Declare.
3183 * cp-support.c (cp_canonicalize_string): Update API
3184 change for cp_demangled_name_to_comp.
3185 (mangled_name_to_comp): Likewise.
3186 Return struct demangle_parse_info, too.
3187 (cp_class_name_from_physname): Update mangled_name_to_comp
3189 (method_name_from_physname): Likewise.
3190 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3191 (cp_remove_params): Likewise.
3192 * python/py-type.c (typy_legacy_template_argument): Likewise.
3194 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3195 (cp_merge_demangle_parse_infos): Declare.
3196 * cp-support.c (ignore_typedefs): New file global.
3197 (copy_string_to_obstack): New function.
3198 (inspect_type): New function.
3199 (replace_typedefs): New function.
3200 (replace_typedefs_qualified_name): New function.
3201 (cp_canonicalize_string_no_typedefs): New function.
3202 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3203 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3204 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3205 instead of cp_canonicalize_string.
3206 (find_method): Likewise.
3207 (decode_compound): Before looking up the name, call
3208 cp_canonicalize_string_no_typedefs.
3209 (decode_variable): Likewise.
3211 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3212 Tom Tromey <tromey@redhat.com>
3213 Matt Rice <ratmice@gmail.com>
3215 * python/lib/gdb/prompt.py: New file.
3216 * python/lib/gdb/command/prompt.py: New file.
3217 * NEWS: Document set extended-prompt and gdb.prompt library
3219 2011-08-16 Yao Qi <yao@codesourcery.com>
3221 * tic6x-linux-tdep.c: Move const arrays definition from here...
3222 * tic6x-tdep.c: to here ...
3224 2011-08-14 Yao Qi <yao@codesourcery.com>
3226 * NEWS: New port to Texas Instruments TMS320C6x.
3228 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3229 Bernd Schmidt <bernds@codesourcery.com>
3230 Yao Qi <yao@codesourcery.com>
3232 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3233 * solib-dsbt.c: New file. Support DSBT shared object.
3234 * tic6x-linux-tdep.c: New file.
3235 * tic6x-tdep.c: New file.
3236 * tic6x-tdep.h: New file.
3238 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3239 Yao Qi <yao@codesourcery.com>
3241 * remote.c (PACKET_qXfer_fdpic): New enum value.
3242 (remote_protocol_features): Add qXfer:fdpic:read packet.
3243 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3244 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3245 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3247 2011-08-14 Yao Qi <yao@codesourcery.com>
3249 Target description for tic6x.
3250 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3251 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3252 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3253 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3254 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3255 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3256 * features/tic6x-c64xp-linux.xml: New.
3257 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3258 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3259 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3260 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3261 * regformats/tic6x-c64xp.dat,
3262 regformats/tic6x-c62x-linux.dat: Generated.
3263 * regformats/tic6x-c64x-linux.dat,
3264 regformats/tic6x-c64xp-linux.dat: Generated.
3265 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3266 features/tic6x-*.c files.
3267 Add regformats/tic6x-*.dat files.
3269 2011-08-12 Doug Evans <dje@google.com>
3271 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3272 * python/py-symbol.c (sympy_get_type): New function.
3273 (symbol_object_getset): Add "type".
3275 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3279 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3281 (tui_show_register_group): Don't store a byte buffer in the data
3283 (tui_register_format): Skip registers with an empty name.
3284 (tui_get_register): Store a struct value in the data element's
3285 value field instead of a byte buffer holding the raw register
3286 contents. Account for optimized-out and unavailable registers
3287 when comparing register contents.
3289 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3291 * printcmd.c (current_display_number): Update comment.
3292 (disable_current_display_cleanup): Delete.
3293 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3294 catch errors thrown while evaluating and printing the display.
3296 2011-08-09 Tom Tromey <tromey@redhat.com>
3298 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3300 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3302 * elfread.c (elf_symtab_read): Rework comments.
3303 * maint.c (maintenance_command): Ditto.
3304 * somread.c (som_symtab_read): Ditto.
3305 * solib.c (solib_find, solib_map_sections, update_solib_list)
3306 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3307 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3308 (sharedlibrary_command, no_shared_libraries): Ditto.
3309 * solib-irix.c (locate_base, disable_break, enable_break)
3310 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3311 (irix_current_sos, irix_open_symbol_file_object)
3312 (irix_special_symbol_handling): Ditto.
3313 * solib-sunos.c (locate_base, first_link_map_member)
3314 (sunos_current_sos, disable_break, enable_break)
3315 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3317 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3318 (open_symbol_file_object, svr4_current_sos, enable_break)
3319 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3321 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3322 (frv_current_sos, enable_break, frv_special_symbol_handling)
3323 (frv_solib_create_inferior_hook): Ditto.
3324 * solist.h (struct target_so_ops): Extend the comments of the
3325 special_symbol_handling, current_sos and open_symbol_file_object
3328 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3330 * python/lib/gdb/__init__.py: Auto-load files in command and
3331 function directories.
3332 * python/python.c (finish_python_initialization): Use
3334 * python/lib/gdb/command/pretty_printers.py: Self register
3336 * NEWS: Document auto-loading.
3338 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3340 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3341 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3342 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3344 2011-08-08 Tom Tromey <tromey@redhat.com>
3346 * breakpoint.c (clean_up_filters): Remove.
3347 (catch_syscall_split_args): Use VEC_cleanup.
3349 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3351 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3352 (main): Uncomment "Demangling error\n".
3354 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3356 * solib-target.c (segment_attributes): Make them static.
3357 (section_attributes, library_children, library_attributes): Likewise.
3358 (library_list_children, library_list_attributes): Likesise.
3359 (library_list_elements): Likewise.
3361 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3363 * exceptions.c (throw_exception): Don't disable the current
3365 * printcmd.c (disable_current_display_cleanup): New function.
3366 (do_one_display): Install a cleanup to disable the current display
3367 if doing the display throws.
3369 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3371 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3372 initialization of the tp_new member to the corresponding
3373 gdbpy_initialize_* function.
3374 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3375 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3376 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3377 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3378 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3380 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3383 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3384 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3385 references to current_uiout.
3387 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3389 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3390 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3391 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3392 * top.c (gdb_readline_wrapper): Adjust.
3393 * tui/tui-interp.c (tui_command_loop):
3394 (_initialize_tui_interp): Don't install it.
3396 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3398 * ui-out.h (uiout): Rename to ...
3399 (current_uiout): ... this.
3400 * ui-out.c (uiout): Rename to ...
3401 (current_uiout): ... this.
3402 * ada-lang.c (print_it_exception, print_one_exception)
3403 (print_mention_exception): Adjust.
3404 * breakpoint.c (watchpoint_check): Adjust.
3405 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3406 (default_collect_info, watchpoints_info, print_one_catch_fork)
3407 (print_one_catch_vfork, print_one_catch_syscall)
3408 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3409 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3410 (print_it_watchpoint, print_mention_watchpoint)
3411 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3412 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3413 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3414 (bkpt_print_mention, momentary_bkpt_print_it)
3415 (tracepoint_print_mention, update_static_tracepoint)
3416 (tracepoints_info, save_breakpoints): Adjust.
3417 * cli-out.c (field_separator): Adjust.
3418 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3419 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3420 * frame.c (get_current_frame): Adjust.
3421 * infcmd.c (run_command_1, print_return_value): Adjust.
3422 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3423 * infrun.c (print_end_stepping_range_reason): Adjust.
3424 (print_signal_exited_reason, print_exited_reason): Adjust.
3425 (print_signal_received_reason, print_no_history_reason): Adjust.
3426 * interps.c (interp_set): Adjust.
3427 * osdata.c (info_osdata_command): Adjust.
3428 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3429 * remote-fileio.c (remote_fileio_request): Adjust.
3430 * remote.c (show_remote_cmd): Adjust.
3431 * solib.c (info_sharedlibrary_command): Adjust.
3432 * source.c (print_source_lines_base): Adjust.
3433 * stack.c (print_stack_frame): Adjust.
3434 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3435 * symfile-mem.c (add_vsyscall_page): Adjust.
3436 * symfile.c (load_progress, generic_load)
3437 (print_transfer_performance): Adjust.
3438 * thread.c (info_threads_command, restore_selected_frame)
3439 (thread_command): Adjust.
3440 * top.c (make_cleanup_restore_ui_file): Adjust.
3441 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3442 (print_one_static_tracepoint_marker): Adjust.
3443 * cli/cli-cmds.c (print_disassembly): Adjust.
3444 * cli/cli-decode.c (print_doc_line): Adjust.
3445 * cli/cli-interp.c (safe_execute_command): Adjust.
3446 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3447 (handle_redirections): Adjust.
3448 * cli/cli-script.c (show_user_1): Adjust.
3449 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3450 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3451 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3452 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3453 (mi_cmd_env_dir): Adjust.
3454 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3455 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3456 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3457 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3458 (list_args_or_locals): Adjust.
3459 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3460 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3461 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3462 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3463 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3464 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3465 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3466 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3467 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3468 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3469 (list_available_thread_groups, mi_cmd_list_thread_groups)
3470 (mi_cmd_data_list_register_names)
3471 (mi_cmd_data_list_changed_registers)
3472 (mi_cmd_data_list_register_values, get_register)
3473 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3474 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3475 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3476 (mi_execute_command, mi_load_progress): Adjust.
3477 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3478 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3480 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3481 * tui/tui-interp.c (tui_command_loop): Adjust.
3482 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3484 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3486 * exceptions.c (struct catcher): Remove saved_uiout field.
3487 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3488 no longer save/resvore the global ui_out builder.
3489 (catch_exceptions_with_msg): Save/override/restore the global
3490 ui_out builder manually instead of relying on TRY_CATCH to do it.
3491 (catch_errors): Save/restore the global ui_out builder manually
3492 instead of relying on TRY_CATCH to do it.
3493 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3495 (TRY_CATCH): Adjust.
3496 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3497 the global ui_out builder manually instead of relying on TRY_CATCH
3500 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3502 * breakpoint.c (update_global_location_list): Ensure
3503 invariant 'first loc marked not duplicated and inserted,
3504 following locs marked duplicated/not inserted' is respected
3505 for multiple locations at the same address.
3506 (unduplicated_should_be_inserted) New function.
3507 (swap_insertion) New function.
3509 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3511 * stack.c (print_frame_arguments_choices): Comment typo fix.
3513 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3516 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3517 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3518 argument. Update callers.
3520 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3523 * doublest.c (convert_doublest_to_floatformat): Pass correct
3524 mantissa length to put_field.
3526 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3528 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3529 exception_print code path.
3530 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3531 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3532 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3534 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3538 Remove, merge them into ...
3539 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3540 variable args and its initialization.
3541 (struct print_args_args, print_args_stub): Remove, merge them into
3543 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3545 (do_gdb_disassembly): ... here. Remove variable args and its
3547 (print_frame): Remove variable args and its initialization, new
3548 variable gdbarch and numargs (from print_args_stub), inline here
3549 print_args_stub with a TRY_CATCH.
3550 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3552 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3553 New variable e, remove variable btargs and its initialization.
3555 2011-08-01 Tristan Gingold <gingold@adacore.com>
3557 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3559 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3561 * breakpoint.c (insert_bp_location): Document return value.
3562 (insert_breakpoint_locations): Fix documentation.
3563 (remove_breakpoints): Add documentation.
3565 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3567 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3568 argument. Update callers.
3570 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3572 * stack.c (print_frame_info): Comment typo fix.
3574 2011-07-29 Sterling Augustine <saugustine@google.com>
3576 * MAINTAINERS (Write After Approval): Add myself to the list.
3578 2011-07-29 Tom Tromey <tromey@redhat.com>
3580 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3581 (library_list_start_segment): Update.
3582 (library_list_start_section): Update.
3584 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3586 * varobj.c (value_get_print_value): Move hint check later into the
3587 function. Comment function. Free thevalue before reusing it.
3589 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3590 Pedro Alves <pedro@codesourcery.com>
3592 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3594 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3595 Assert the result kind.
3596 * value.h (value_one): Remove parameter lv.
3598 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3600 Fix crash on lval_computed values.
3601 * valops.c (value_zero): Use not_lval for lval_computed.
3603 2011-07-27 Tom Tromey <tromey@redhat.com>
3605 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3606 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3608 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3611 "ptype" by their typedefs difference.
3613 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * dwarf2expr.c (ctx_no_read_reg): New function.
3616 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3617 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3618 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3619 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3621 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3623 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3624 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3626 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3627 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3628 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3629 (ctx_no_get_base_type): Move the functions here.
3630 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3631 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3632 (ctx_no_get_base_type): New declarations.
3634 2011-07-27 Tom Tromey <tromey@redhat.com>
3636 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3638 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3639 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3641 2011-07-26 Sterling Augustine <saugustine@google.com>
3643 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3645 (dump_bfd_file): Likewise.
3647 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3650 (remote_hw_watchpoint_length_limit): New variable.
3651 (_initialize_remote) add set,show cmds for this new variable.
3652 * gdb.texinfo: document these new commands.
3653 * NEWS: Mention these new commands.
3655 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3657 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3658 true for software watchpoints.
3660 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3664 2011-07-26 Tom Tromey <tromey@redhat.com>
3666 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3667 * dwarf2read.c (read_indirect_string_at_offset): New function.
3668 (read_indirect_string): Use it.
3669 (dwarf_decode_macro_bytes): New function, taken from
3670 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3671 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3672 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3674 (struct dwarf2_per_objfile) <macro>: New field.
3675 (dwarf2_elf_names): Add .debug_macro.
3676 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3677 (dwarf2_locate_sections): Handle new section.
3678 (read_file_scope): Handle DW_AT_GNU_macros.
3679 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3681 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3683 * NEWS: Mention dcache configuration.
3684 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3685 (dcache_size, dcache_line_size): New variables.
3686 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3687 (struct dcache_block): Make it expandable.
3688 (struct dcache_struct): New field.
3689 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3690 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3691 (dcache_poke_byte, dcache_print_line): Adjust.
3692 (set_dcache_size, set_dcache_line_size): New functions.
3693 (set_dcache_command, show_dcache_command): New functions.
3694 (_initialize_dcache): Add new commands.
3696 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3698 * progspace.h (struct program_space): Add solib_add_generation.
3699 * infcmd.c (post_create_inferior): Only call solib_add if not
3701 * solib.c (solib_add): Increment solib_add_generation.
3703 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3705 Fix implicit pointer offsets.
3706 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3709 2011-07-25 Tom Tromey <tromey@redhat.com>
3711 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3713 (ada_exception_sal): Make 'ops' const.
3714 (ada_decode_exception_location): Likewise.
3715 (ada_decode_assert_location): Likewise.
3716 (catch_assert_command): Update.
3717 (catch_ada_exception_command): Update.
3718 (create_ada_exception_catchpoint): Make 'ops' const.
3719 * breakpoint.c (set_raw_breakpoint_without_location)
3720 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3722 (create_internal_breakpoint): Update.
3723 (init_raw_breakpoint_without_location): Make 'ops' const.
3724 (init_raw_breakpoint, init_catchpoint)
3725 (create_fork_vfork_event_catchpoint)
3726 (create_syscall_event_catchpoint, init_breakpoint_sal)
3727 (create_breakpoint_sal, create_breakpoints_sal)
3728 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3729 * breakpoint.h (struct breakpoint) <ops>: Now const.
3730 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3733 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3735 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3737 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3739 * breakpoint.h (print_recreate_thread): Declare.
3740 (struct breakpoint): Move step_count, pass_count,
3741 number_on_target, static_trace_marker_id,
3742 static_trace_marker_id_idx ...
3743 (struct tracepoint): ... to this new struct.
3744 (get_tracepoint, get_tracepoint_by_number_on_target)
3745 (get_tracepoint_by_number): Change return type to struct
3747 * breakpoint.c (is_tracepoint_type): New, factored out from
3749 (is_tracepoint): Adjust.
3750 (print_one_breakpoint_location): Cast to struct tracepoint as
3751 necessary, and adjust.
3752 (print_recreate_catch_fork, print_recreate_catch_vfork)
3753 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3754 print_recreate_thread.
3755 (init_breakpoint_sal): New, factored out from
3756 create_breakpoint_sal.
3757 (create_breakpoint_sal): Reimplement.
3758 (create_breakpoint): Allocate a struct tracecepoint if the caller
3759 wanted a tracepoint. Use init_breakpoint_sal and
3761 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3762 (print_recreate_masked_watchpoint)
3763 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3764 (tracepoint_print_one_detail): Adjust.
3765 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3766 Dump the pass count here.
3767 (update_static_tracepoint): Adjust.
3768 (addr_string_to_sals): Adjust.
3769 (create_tracepoint_from_upload): Adjust. Change return type to
3770 struct tracepoint pointer.
3771 (trace_pass_set_count): Change parameter type to struct tracepoint
3772 pointer, and adjust.
3773 (trace_pass_command): Adjust.
3774 (get_tracepoint, get_tracepoint_by_number_on_target)
3775 (get_tracepoint_by_number): Change return type to struct
3776 tracepoint pointer, and adjust.
3777 (print_recreate_thread): New, factored out from save_breakpoints.
3778 (save_breakpoints): Don't print thread and task and passcount
3780 * remote.c (remote_download_tracepoint): Adjust.
3781 * tracepoint.c (trace_actions_command, validate_actionline)
3782 (start_tracing, tfind_1, trace_find_tracepoint_command)
3783 (trace_dump_command): Adjust.
3784 (find_matching_tracepoint): Change return type to struct
3785 tracepoint pointer, and adjust.
3786 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3787 (tfile_trace_find, tfile_fetch_registers): Adjust.
3788 * tracepoint.h (create_tracepoint_from_upload): Change return type
3789 to struct tracepoint pointer.
3790 * ada-lang.c (print_recreate_exception): Call
3791 print_recreate_thread.
3792 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3794 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3796 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3797 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3798 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3799 watchpoint_thread, watchpoint_triggered ...
3800 (struct watchpoint): ... to this new struct.
3801 (is_watchpoint): Declare.
3802 (install_breakpoint): Add new `internal' parameter.
3803 * breakpoint.c (is_watchpoint): Delete declaration.
3804 (set_breakpoint_condition): Handle watchpoints.
3805 (is_watchpoint): Make public.
3806 (watchpoint_in_thread_scope): Change parameter type to struct
3808 (watchpoint_del_at_next_stop): Change parameter type to struct
3809 watchpoint. Remove assertion. Adjust.
3810 (update_watchpoint): Ditto.
3811 (insert_breakpoints, breakpoint_init_inferior)
3812 (watchpoints_triggered, watchpoint_check)
3813 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3814 (bpstat_stop_status, print_one_breakpoint_location)
3815 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3816 to struct watchpoint as necessary, and adjust.
3817 (install_breakpoint): Add `internal' argument. If true, don't
3818 mention the new breakpoint. Use set_breakpoint_number.
3819 (create_fork_vfork_event_catchpoint)
3820 (create_syscall_event_catchpoint): Adjust.
3821 (dtor_watchpoint): New.
3822 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3823 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3824 (print_it_watchpoint, print_mention_watchpoint)
3825 (print_recreate_watchpoint, insert_masked_watchpoint)
3826 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3827 (print_one_detail_masked_watchpoint)
3828 (print_mention_masked_watchpoint)
3829 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3830 necessary, and adjust.
3831 (watch_command_1): Allocate and initialize a struct watchpoint
3832 instead of a struct breakpoint. Use install_breakpoint.
3833 (catch_exec_command_1): Adjust.
3834 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3836 (delete_breakpoint, enable_breakpoint_disp)
3837 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3838 as necessary, and adjust.
3839 (initialize_breakpoint_ops): Install dtor_watchpoint as
3840 watchpoints' dtor method.
3841 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3842 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3843 to struct watchpoint as necessary, and adjust.
3845 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3847 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3848 the the base class ops table.
3849 (catch_exception_breakpoint_ops)
3850 (catch_exception_unhandled_breakpoint_ops)
3851 (catch_assert_breakpoint_ops): Don't statically initialize.
3852 (initialize_ada_catchpoint_ops): New.
3853 (_initialize_ada_language): Call it.
3854 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3855 (bkpt_breakpoint_ops): Forward declare.
3856 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3857 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3858 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3859 (masked_watchpoint_breakpoint_ops)
3860 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3861 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3862 base class ops table.
3863 (null_re_set, null_check_status, null_works_in_software_mode)
3864 (null_resources_needed, null_print_one_detail): Delete.
3865 (bkpt_dtor): Rename to ...
3866 (base_breakpoint_dtor): ... this. Make static.
3867 (bkpt_allocate_location): Rename to ...
3868 (base_breakpoint_allocate_location): ... this. Make static.
3869 (base_breakpoint_re_set): New.
3870 (internal_error_pure_virtual_called): New.
3871 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3872 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3873 (base_breakpoint_works_in_software_mode)
3874 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3875 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3876 (base_breakpoint_print_recreate): New functions.
3877 (base_breakpoint_ops): New global.
3878 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3879 (bkpt_breakpoint_hit): Make static.
3880 (bkpt_check_status): Delete.
3881 (bkpt_resources_needed): Make static.
3882 (bkpt_works_in_software_mode): Delete.
3883 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3885 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3886 (momentary_breakpoint_ops): Don't statically initialize.
3887 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3889 (tracepoint_insert_location, tracepoint_remove_location)
3890 (tracepoint_check_status, tracepoint_works_in_software_mode)
3891 (tracepoint_print_it): Delete.
3892 (tracepoint_breakpoint_ops): Don't statically initialize.
3893 (initialize_breakpoint_ops): New.
3894 (_initialize_breakpoint): Call it.
3895 * breakpoint.h (null_re_set, null_works_in_software_mode)
3896 (null_resources_needed, null_check_status, null_print_one_detail):
3897 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3898 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3899 (bkpt_check_status, bkpt_resources_needed)
3900 (bkpt_works_in_software_mode, bkpt_print_it)
3901 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3902 Delete declarations.
3903 (initialize_breakpoint_ops): Declare.
3905 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3907 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3908 (momentary_bkpt_print_it): Simplify.
3910 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3912 Split internal, momentary and user breakpoints breakpoint_ops
3915 * breakpoint.c (internal_breakpoint_ops)
3916 (momentary_breakpoint_ops): Forward declare.
3917 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3918 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3919 (create_overlay_event_breakpoint)
3920 (create_std_terminate_master_breakpoint)
3921 (create_exception_master_breakpoint): Create breakpoints with
3922 internal_breakpoint_ops vtable.
3923 (set_longjmp_breakpoint): Create momentary breakpoints with
3924 momentary_breakpoint_ops vtable, using
3925 momentary_breakpoint_from_master.
3926 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3927 (create_solib_event_breakpoint): Create breakpoints with
3928 internal_breakpoint_ops vtable.
3929 (set_momentary_breakpoint): Create breakpoints with
3930 momentary_breakpoint_ops vtable.
3931 (momentary_breakpoint_from_master): New, factored out from
3932 clone_momentary_breakpoint.
3933 (clone_momentary_breakpoint): Adjust.
3934 (watch_command_1): Create scope breakpoints with
3935 momentary_breakpoint_ops vtable.
3936 (bkpt_re_set): Remove handling of internal and momentary
3938 (bkpt_print_mention, bkpt_print_recreate): New.
3939 (bkpt_breakpoint_ops): Adjust.
3940 (internal_bkpt_re_set, internal_bkpt_check_status)
3941 (internal_bkpt_print_it, internal_bkpt_print_mention)
3942 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3943 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3944 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3945 (momentary_bkpt_print_recreate): New.
3946 (momentary_breakpoint_ops): New.
3948 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3950 Implement most breakpoint_ops methods for all breakpoint types,
3951 and move the default handlings to the proper callbacks.
3953 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3954 works_in_software_mode method.
3955 (insert_bp_location): Go through breakpoint_ops->insert_location
3956 for software and hardware watchpoints.
3957 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3959 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3960 for software and hardware watchpoints.
3961 (print_it_typical): Delete.
3962 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3964 (watchpoint_check): Adjust comment.
3965 (bpstat_check_location): Simply always call the breakpoint's
3966 breakpoint_hit method.
3967 (bpstat_stop_status): Always call the breakpoint's check_status
3968 method. Remove special cases for watchpoints and internal event
3969 breakpoints from here (moved to the check_status implementations).
3970 (print_one_breakpoint_location): Assume b->ops is never NULL.
3971 Remove static tracepoint marker id printing from here (moved to
3972 the print_one_detail callback implementation of tracepoints).
3973 (init_bp_location): Assert OPS is never NULL.
3974 (allocate_bp_location): Always call the breakpoint's
3975 allocate_location method, and remove the default code from here.
3976 (free_bp_location): Always call the location's dtor method, and
3977 remove the default code from here.
3978 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3979 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3980 parameter. Pass it down.
3981 (set_raw_breakpoint): Ditto.
3982 (print_it_catch_fork): Adjust to take a bpstat as argument.
3983 (catch_fork_breakpoint_ops): Install methods.
3984 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3985 (catch_vfork_breakpoint_ops): Install methods.
3986 (dtor_catch_syscall): Call the base dtor.
3987 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3988 (catch_syscall_breakpoint_ops): Install methods.
3989 (dtor_catch_exec): Call the base dtor.
3990 (print_it_catch_exec): Adjust to take a bpstat as argument.
3991 (catch_exec_breakpoint_ops): Install methods.
3992 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3993 the breakpoint's resources_needed method, and remove the default
3995 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3997 (clone_momentary_breakpoint): Clone the original's ops.
3998 (mention): Always call the breakpoint's print_mention method, and
3999 remove the default code from here.
4000 (create_breakpoint_sal): Adjust to pass the ops to
4001 set_raw_breakpoint rather than setting it manually.
4002 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4003 ops to set_raw_breakpoint_without_location rather than setting it
4005 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4006 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4007 (ranged_breakpoint_ops): Install methods.
4008 (break_range_command): Adjust to pass the ops to
4009 set_raw_breakpoint rather than setting it manually.
4010 (re_set_watchpoint, breakpoint_hit_watchpoint)
4011 (check_status_watchpoint, resources_needed_watchpoint)
4012 (works_in_software_mode_watchpoint, print_it_watchpoint)
4013 (print_mention_watchpoint, print_recreate_watchpoint): New
4015 (watchpoint_breakpoint_ops): Install new methods.
4016 (print_it_masked_watchpoint): New function.
4017 (masked_watchpoint_breakpoint_ops): Install new methods.
4018 (watch_command_1): Adjust to pass the right breakpoint_ops to
4019 set_raw_breakpoint_without_location rather than setting it
4020 manually later. Record the current pspace.
4021 (print_it_exception_catchpoint): Adjust to take a bpstat as
4023 (gnu_v3_exception_catchpoint_ops): Install new methods.
4024 (say_where): New function.
4025 (null_re_set, null_check_status, null_works_in_software_mode)
4026 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4028 (bp_location_ops): New global.
4029 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4030 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4031 (bkpt_check_status, bkpt_resources_needed)
4032 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4033 (bkpt_print_recreate): New functions.
4034 (bkpt_breakpoint_ops): New global.
4035 (tracepoint_re_set, tracepoint_insert_location)
4036 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4037 (tracepoint_check_status, tracepoint_works_in_software_mode)
4038 (tracepoint_print_it, tracepoint_print_one_detail)
4039 (tracepoint_print_mention, tracepoint_print_recreate): New
4041 (tracepoint_breakpoint_ops): New global.
4042 (delete_breakpoint): Always call the breakpoint's dtor method, and
4043 remove the default handling from here.
4044 (breakpoint_re_set_default): Make static.
4045 (breakpoint_re_set_one): Always call the breakpoints re_set
4046 method, and remove the default handling from here.
4047 (trace_command, ftrace_command, strace_command)
4048 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4049 to create_breakpoint.
4050 (save_breakpoints): Always call the breakpoint's print_recreate
4051 method, and remove the default handling from here.
4053 * ada-lang.c (dtor_exception): Call the base dtor.
4054 (re_set_exception): Call the base method.
4055 (print_it_exception, print_it_catch_exception): Adjust to take a
4057 (catch_exception_breakpoint_ops): Install methods.
4058 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4060 (catch_exception_unhandled_breakpoint_ops): Install methods.
4061 (print_it_catch_assert): Adjust to take a bpstat as argument.
4062 (catch_assert_breakpoint_ops): Install methods.
4064 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4065 to take a bpstat as argument.
4066 (enum print_stop_action): Add describing comments to each enum
4068 (breakpoint_re_set_default): Delete declaration.
4069 (null_re_set, null_works_in_software_mode, null_resources_needed)
4070 (null_check_status, null_print_one_detail): Declare.
4071 (bkpt_breakpoint_ops): Declare.
4072 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4073 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4074 (bkpt_check_status, bkpt_resources_needed)
4075 (bkpt_works_in_software_mode, bkpt_print_it)
4076 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4079 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4080 bkpt_breakpoint_ops.
4081 * python/py-breakpoint.c (bppy_init): Ditto.
4083 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4085 * MAINTAINERS (Write After Approval): Add myself to the list.
4087 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4089 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4091 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4093 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4094 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4095 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4097 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4098 (struct i386_debug_reg_state): New.
4099 (i386_init_dregs): New.
4101 (i386_cleanup_dregs): Use i386_init_dregs.
4102 (i386_show_dr): Add state parameter and adjust.
4103 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4105 (i386_remove_aligned_watchpoint): Likewise.
4106 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4107 (i386_update_inferior_debug_regs): New.
4108 (i386_insert_watchpoint): Work on a local mirror of the debug
4109 registers, and only update the inferior on success.
4110 (i386_remove_watchpoint): Ditto.
4111 (i386_region_ok_for_watchpoint): Adjust.
4112 (i386_stopped_data_address): Adjust.
4113 (i386_insert_hw_breakpoint): Adjust.
4114 (i386_remove_hw_breakpoint): Adjust.
4116 2011-07-22 Tom Tromey <tromey@redhat.com>
4118 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4119 from amd64_pseudo_register_read. Change arguments. Call
4120 mark_value_bytes_unavailable when needed.
4121 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4122 set_gdbarch_pseudo_register_read.
4123 * sentinel-frame.c (sentinel_frame_prev_register): Use
4124 regcache_cooked_read_value.
4125 * regcache.h (regcache_cooked_read_value): Declare.
4126 * regcache.c (regcache_cooked_read_value): New function.
4127 (regcache_cooked_read): Call
4128 gdbarch_pseudo_register_read_value if available.
4129 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4130 (i386_pseudo_register_read): Remove.
4131 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4132 i386_pseudo_register_read. Change arguments. Call
4133 mark_value_bytes_unavailable when needed.
4134 (i386_pseudo_register_read_value): New function.
4135 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4136 not set_gdbarch_pseudo_register_read.
4137 * gdbarch.sh (pseudo_register_read_value): New method.
4138 * gdbarch.c, gdbarch.h: Rebuild.
4139 * findvar.c (value_from_register): Call get_frame_register_value.
4141 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4143 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4145 (display_gdb_prompt): Likewise.
4146 (change_annotation_level): Likewise.
4147 (push_prompt): Likewise.
4148 (pop_prompt): Likewise.
4149 (handle_stop_sig): Use get_prompt with a level.
4150 * top.c (command_loop): Use get_prompt with a level.
4151 (set_async_annotation_level): Use set_prompt with a level.
4152 (get_prefix): New function.
4153 (set_prefix): Ditto.
4154 (set_suffix): Ditto.
4155 (get_suffix): Ditto.
4156 (get_prompt): Accept a level argument.
4157 (set_prompt): Accept a level argument. Free old prompts. Set
4158 new_async_prompt if level is 0.
4159 (init_main): Use set_prompt with a level. Do not set
4161 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4162 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4163 Modify set_prompt, get_prompt to account for levels.
4164 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4166 * python/python.c (before_prompt_hook): Use set_prompt.
4168 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4170 * defs.h: Add guard against inclusion in gdbserver.
4171 (struct ptid, ptid_t): Move to common/ptid.h.
4172 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4173 xsnprintf, internal_error): Move to common/common-utils.h.
4175 * gdb_assert.h: Move into common/ sub-directory.
4176 * gdb_locale.h: Ditto.
4177 * gdb_dirent.h: Ditto.
4178 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4179 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4180 Move into common/ptid.h.
4181 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4182 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4183 Change nomem to malloc_failure.
4184 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4185 * utils.c (nomem): Rename to malloc_failure.
4186 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4187 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4188 (gdb_buildargv): Change nomem to malloc_failure.
4189 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4190 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4191 ptid_is_pid): Move into common/ptid.c.
4192 (initialize_infrun): Delete initialization of null_ptid and
4194 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4195 linux_common_xfer_osdata.
4196 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4197 common/ptid.c and common/buffer.c.
4198 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4199 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4200 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4201 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4203 * common/gdb_assert.h: New.
4204 * common/gdb_dirent.h: New.
4205 * common/gdb_locale.h: New.
4206 * common/buffer.c: New.
4207 * common/buffer.h: New.
4208 * common/ptid.c: New.
4209 * common/ptid.h: New.
4210 * common/xml-utils.c: New.
4211 * common/xml-utils.h: New.
4212 * common/common-utils.c: New.
4213 * common/common-utils.h: New.
4214 * common/linux-osdata.c: New.
4215 * common/linux-osdata.h: New.
4216 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4217 * config/arm/linux.mh (NATDEPFILES): Ditto.
4218 * config/i386/linux.mh (NATDEPFILES): Ditto.
4219 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4220 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4221 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4222 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4223 * config/mips/linux.mh (NATDEPFILES): Ditto.
4224 * config/pa/linux.mh (NATDEPFILES): Ditto.
4225 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4226 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4227 * config/s390/s390.mh (NATDEPFILES): Ditto.
4228 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4229 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4230 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4232 2011-07-21 Matt Rice <ratmice@gmail.com>
4234 * NEWS: Add info macros and info definitions commands.
4236 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4238 * NEWS: Document Python prompt substitution hook.
4240 2011-07-18 Matt Rice <ratmice@gmail.com>
4243 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4244 * macrotab.c (foreach_macro): Ditto.
4245 (foreach_macro_in_scope): Ditto.
4246 * macrocmd.c (print_macro_callback): New function.
4247 (info_macro_command): Move some code to print_macro_definition.
4248 (print_macro_definition): New function.
4249 (print_one_macro): Add new arguments to callback.
4250 (info_definitions_command): New function.
4251 (info_macros_command): Ditto.
4252 (_initialize_macrocmd): Add info macros and info definitions commands.
4253 * symtab.c (add_macro_name): Add new arguments to callback.
4255 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4256 Tom Tromey <tromey@redhat.com>
4258 * top.c (set_prompt): Rewrite to free previous prompt, free
4259 asynch_new_prompt and set both on new prompts.
4260 * event-top.c (display_gdb_prompt): Add prompt substitution
4262 * python/python.c (before_prompt_hook): New function.
4264 2011-07-20 Matt Rice <ratmice@gmail.com>
4266 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4267 arguments to store_unsigned_integer.
4269 2011-07-20 Tom Tromey <tromey@redhat.com>
4271 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4272 in some declaration-only cases.
4274 2011-07-18 Tom Tromey <tromey@redhat.com>
4277 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4278 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4279 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4280 <debug_type_section>: New field.
4281 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4282 (load_cu): Use appropriate section.
4283 (create_signatured_type_table_from_index): Add 'section'
4285 (dwarf2_read_index): Only allow a single .debug_types section.
4286 (dw2_get_file_names): Use appropriate section.
4287 (read_type_comp_unit_head): Add 'section' argument.
4288 (create_debug_types_hash_table): Loop over all .debug_types
4290 (init_cu_die_reader): Use appropriate section.
4291 (process_psymtab_comp_unit, load_partial_comp_unit)
4292 (load_full_comp_unit, read_die_and_children, find_partial_die)
4293 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4294 (lookup_signatured_type_at_offset): Add 'section' argument.
4295 (read_signatured_type_at_offset): Add 'sect' argument.
4296 (read_signatured_type): Use appropriate section.
4297 (set_die_type, get_die_type_at_offset): Update.
4298 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4300 (write_psymtabs_to_index): Don't allow index with more than one
4301 .debug_types section.
4303 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4305 Fix crash if referenced CU is aged out.
4306 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4307 xfree of block.data.
4308 (indirect_pieced_value): New variable back_to, use to for xfree of
4310 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4312 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4313 (load_cu): New function from ...
4314 (dw2_do_instantiate_symtab): ... the code here ...
4315 (process_full_comp_unit): ... and here.
4316 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4319 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4321 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4324 2011-07-19 Gary Benson <gbenson@redhat.com>
4326 * infrun.c (struct execution_control_state): New member
4327 stop_func_filled_in.
4328 (clear_stop_func, fill_in_stop_func): New functions.
4329 (handle_inferior_event): Call clear_stop_func rather than
4330 manipulating the execution control state directly.
4331 Call fill_in_stop_func lazily as required rather than
4332 directly calling find_pc_partial_function in all cases.
4334 2011-07-18 Tom Tromey <tromey@redhat.com>
4336 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4337 checking for variable-sized array.
4339 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4341 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4342 of supported languages.
4343 * varobj.c: Add top definitions and basic implementation of the
4344 following callbacks: ada_number_of_children, ada_name_of_variable,
4345 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4346 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4347 (languages): Register Ada-specific callbacks.
4348 (variable_language): Add the Ada case in the language setter switch.
4350 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4354 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4357 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4358 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4359 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4360 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4361 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4362 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4363 (struct dwarf_expr_context_funcs): New, move here methods from ...
4364 (struct dwarf_expr_context): ... here. New fields funcs.
4365 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4366 (dwarf_expr_ctx_funcs): New.
4367 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4368 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4369 (needs_frame_ctx_funcs): New.
4370 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4372 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4374 * MAINTAINERS (Write After Approval): Add myself to the list.
4376 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4378 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4379 that CIE pointer of an FDE really points to a CIE .
4381 2011-07-15 Hui Zhu <teawater@gmail.com>
4383 * remote.c (remote_get_trace_status): Add comments.
4385 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 Code cleanup - constify struct lval_funcs.
4388 * dwarf2loc.c (pieced_value_funcs): Make it const.
4389 * infrun.c (siginfo_value_funcs): Likewise.
4390 * opencl-lang.c (opencl_value_funcs): Likewise.
4391 * valops.c (value_assign, value_ind): Make the funcs variable const.
4392 * value.c (struct value): Make location.computed.funcs target const.
4393 Rearrange the comments.
4394 (allocate_computed_value): Make the funcs parameter target const.
4395 (value_computed_funcs): Return the funcs target const.
4396 (value_free, value_copy, set_value_component_location): Make the funcs
4398 * value.h (allocate_computed_value): Make the funcs parameter target
4400 (value_computed_funcs): Return the funcs target const.
4401 * windows-tdep.c (tlb_value_funcs): Make it const.
4403 2011-07-14 Hui Zhu <teawater@gmail.com>
4405 * remote.c (remote_get_trace_status): Initialize p.
4407 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 * remote.c (remote_get_trace_status): New variable ex. Put
4411 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4413 2011-07-13 Tom Tromey <tromey@redhat.com>
4415 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4416 value_from_contents for final conversion.
4418 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4421 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4422 Indent prototypes so they do not get into tags.
4424 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4426 Code cleanup making also optimized out values lazy.
4427 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4428 allocate_optimized_out_value. Twice.
4429 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4430 * findvar.c (read_var_value): Likewise.
4431 * value.c (allocate_optimized_out_value): New function.
4432 * value.h (allocate_optimized_out_value): New declaration.
4434 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4436 Fix occasional crash of CTRL-C during DWARF read in.
4437 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4439 2011-07-11 Tom Tromey <tromey@redhat.com>
4441 * regcache.c (struct regcache_descr): Fix typo.
4442 * i387-tdep.c (i387_supply_xsave): Fix typo.
4444 2011-07-11 Tom Tromey <tromey@redhat.com>
4446 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4447 (read_file_scope, read_type_unit_scope): Use it.
4449 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4454 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4457 * python/python.c: Set gdbpy_should_print_stack default to off.
4458 (set_python): Deprecate maint set python print-stack to
4460 (_initialize_python): Deprecate maint set/show python print-stack.
4461 Add new prefix command, python. Add new setting, print-backtrace.
4462 * NEWS: Document set python print-stack. Document default change.
4464 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4466 * python/py-inferior.c (infpy_dealloc): New function.
4467 (inferior_to_inferior_object): Return a new object, or a
4468 new reference to the existing object.
4469 (find_thread_object): Cleanup references to inferior.
4470 (delete_thread_object): Ditto.
4471 * python/py-infthread.c (create_thread_object): Do not increment
4472 inferior reference count.
4474 2011-07-08 Tom Tromey <tromey@redhat.com>
4476 * dwarf2loc.c (locexpr_regname): New function.
4477 (locexpr_describe_location_piece): Use it.
4478 (disassemble_dwarf_expression): Add per_cu argument. Use
4480 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4481 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4483 (locexpr_describe_location_1): Add per_cu argument.
4484 (locexpr_describe_location): Update.
4485 (loclist_describe_location): Update.
4487 2011-07-08 Tom Tromey <tromey@redhat.com>
4489 * dwarf2expr.c (execute_stack_op): Add QUIT.
4491 2011-07-07 Hui Zhu <teawater@gmail.com>
4494 2011-07-06 Hui Zhu <teawater@gmail.com>
4495 * remote.c (remote_start_remote): Add TRY_CATCH for
4496 remote_get_trace_status.
4497 * tracepoint.c (disconnect_tracing): Ditto.
4499 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4501 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4502 variables as signed, not unsigned.
4504 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4506 * jit.c (jit_inferior_init): Reformat forward declaration.
4508 2011-07-06 Matt Rice <ratmice@gmail.com>
4510 * MAINTAINERS (Write After Approval): Add myself to the list.
4512 2011-07-06 Hui Zhu <teawater@gmail.com>
4514 * remote.c (remote_start_remote): Add TRY_CATCH for
4515 remote_get_trace_status.
4516 * tracepoint.c (disconnect_tracing): Ditto.
4518 2011-07-05 Tom Tromey <tromey@redhat.com>
4520 * symtab.c (operator_chars): Now static.
4521 * linespec.c (operator_chars): Don't declare.
4523 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4525 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4527 2011-07-05 Tom Tromey <tromey@redhat.com>
4529 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4530 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4531 (TYPE_CPLUS_REALLY_JAVA): New macro.
4532 * dwarf2read.c (process_structure_scope): Set
4533 TYPE_CPLUS_REALLY_JAVA.
4535 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4537 * ada-lang.c: Fix typos.
4538 * amd64-tdep.c: Likewise.
4539 * breakpoint.c: Likewise.
4540 * cli/cli-decode.c: Likewise.
4541 * findcmd.c: Likewise.
4542 * inline-frame.c: Likewise.
4543 * mi/mi-main.c: Likewise.
4544 * minsyms.c: Likewise.
4545 * monitor.c: Likewise.
4546 * monitor.h: Likewise.
4547 * prologue-value.c: Likewise.
4548 * reverse.c: Likewise.
4549 * s390-tdep.c: Likewise.
4551 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4553 * jit.c (jit_inferior_init): Forward declare.
4554 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4556 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4558 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4560 2011-07-04 Tristan Gingold <gingold@adacore.com>
4562 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4563 (tcb_fieldno): Add activation_link field.
4564 (get_known_tasks_addr): Moved and rewritten.
4565 (get_tcb_types_info): Set activation_link field.
4566 (read_known_tasks_array): Add parameter. Rewritten.
4567 (read_known_tasks_list): New function.
4568 (read_known_tasks): New function.
4569 (ada_build_task_list): Call read_known_tasks instead of
4570 read_known_tasks_array.
4571 * ravenscar-thread.c: Add first_task_name constant.
4572 (has_ravenscar_runtime): Check for task list too.
4574 2011-07-04 Tristan Gingold <gingold@adacore.com>
4576 * ada-tasks.c: Renames fieldno to actb_fieldno.
4577 (ada_get_task_number): Indentation.
4578 (get_tcb_types_info): Remove all parameters. Write directly
4580 (ptid_from_atcb_common): Adjust.
4581 (read_atcb): Adjust.
4583 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4585 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4587 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4589 * ui-out.c (ui_out_field_core_addr): Mention that the function
4590 description is in the header file.
4591 * ui-out.h (ui_out_field_core_addr): Document function.
4593 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4595 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4596 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4598 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4600 * symtab.c (expand_line_sal): Remove empty line.
4602 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4604 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4605 same way as ELFOSABI_NONE.
4606 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4608 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4610 * breakpoint.c: Fix typos in comments.
4611 * linespec.c: Likewise.
4612 * symtab.c: Likewise.
4614 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4616 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4617 section in separate object files.
4619 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4621 Fix false GCC warning.
4622 * linespec.c (decode_line_1): Initialize values.
4624 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4626 * linespec.c (find_method): Accept the function type automatically only
4627 if it was specified with parameter types.
4629 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4631 Stop on first linespec terminator instead of eating what we can.
4632 * linespec.c (is_linespec_boundary): New function.
4633 (name_end): Remove function.
4634 (keep_name_info): New parameter on_boundary, replace the body.
4635 (decode_line_1): Provide the parameter to keep_name_info.
4636 (decode_compound): Likewise. Drop the trailing java return type
4639 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4641 Fall back linespec to minimal symbols.
4642 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4643 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4644 (find_method, symbol_found): Change error to cplusplus_error.
4646 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4648 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4650 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4651 Tom Tromey <tromey@redhat.com>
4653 * dwarf2read.c (check_physname): New variable.
4654 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4655 (show_check_physname): New function.
4656 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4658 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4660 * machoread.c (macho_symfile_read): Delete OBE comment.
4662 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4664 * machoread.c (struct macho_oso_data): Delete.
4665 (current_oso): Delete.
4666 (macho_relocate_common_syms): New function, mostly extracted
4668 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4669 Remove code that sets and unset current_oso.
4670 (macho_symfile_relocate): Delete handling of common symbols,
4671 now moved to macho_relocate_common_syms.
4673 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4675 * darwin-nat.c (darwin_ptrace): Add documentation.
4676 Set errno to zero before calling ptrace. If ptrace returns
4677 -1 and errno is zero, then change then return zero.
4678 (darwin_kill_inferior): Issue a warning instead of triggering
4679 a failed assertion when the PT_KILL ptrace operations returned
4682 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4684 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4685 only when inf->private->no_ptrace.
4687 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4689 * ada-lang.c (print_it_exception): Print temporary catchpoints
4690 as "Temporary catchpoint".
4691 (print_mention_exception): Likewise.
4693 2011-07-01 Tom Tromey <tromey@redhat.com>
4695 * jv-lang.c (java_language_defn): Use java_printchar,
4697 (java_get_encoding): New function.
4698 (java_emit_char): Use generic_emit_char.
4699 (java_printchar): New function.
4700 (java_printstr): Likewise.
4702 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4704 * ada-typeprint.c (print_record_type): If unable to decode
4705 the name of the parent type, use the encoded name.
4707 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4709 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4710 pointer to constrained packed array type output.
4711 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4712 packed array output.
4714 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4716 * ada-typeprint.c (print_array_type): removed if condition on show
4717 being negative for bounds printing.
4719 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4721 * ada-lang.c (ada_identical_enum_types_p): New function.
4722 (symbols_are_identical_enums): New function.
4723 (remove_extra_symbols): Do nothing if NSYMS < 2.
4724 Use symbols_are_identical_enums.
4726 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4728 * ada-valprint.c (ada_value_print): Handle typedefs.
4730 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4732 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4734 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4736 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4737 (decode_constrained_packed_array): Likewise.
4738 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4740 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4742 * ada-exp.y (convert_char_literal): Handle typedef types.
4744 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4746 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4748 2011-06-30 Tom Tromey <tromey@redhat.com>
4750 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4751 * valops.c (find_overload_match): Call do_cleanups on early exit
4753 * solib.c (solib_find): Call do_cleanups on early exit path.
4755 2011-06-30 Tom Tromey <tromey@redhat.com>
4757 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4758 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4759 return paths. Defer final do_cleanups until last return.
4760 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4763 2011-06-30 Tom Tromey <tromey@redhat.com>
4765 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4767 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4769 * MAINTAINERS (Write After Approval): Add myself to the list.
4771 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4773 Disable epilogue unwinders on recent GCCs.
4774 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4775 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4776 * dwarf2read.c (process_full_comp_unit): Initialize
4777 EPILOGUE_UNWIND_VALID.
4778 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4779 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4780 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4782 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4784 Code cleanup - reformatting.
4785 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4786 (producer_is_gcc_ge_4): ... here, change the return value.
4787 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4790 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4792 Fix non-only rename list for Fortran modules import.
4793 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4794 cp_add_using_directive caller.
4795 (cp_add_using_directive): New parameter excludes, describe it. New
4796 variables ix and param. Compare if also excludes match. Allocate NEW
4797 with variable size, initialize EXCLUDES there.
4798 (cp_lookup_symbol_imports): New variable excludep, test
4799 current->EXCLUDES with it.
4800 * cp-support.h: Include vec.h.
4801 (struct using_direct): New field excludes, describe it.
4802 (DEF_VEC_P (const_char_ptr)): New.
4803 (cp_add_using_directive): New parameter excludes.
4804 * defs.h (const_char_ptr): New typedef.
4805 * dwarf2read.c (read_import_statement): New variables child_die,
4806 excludes and cleanups, read in excludes.
4807 (read_namespace): Adjust the cp_add_using_directive caller.
4809 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4813 negative comparisons.
4815 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4817 * mi/mi-main.c (mi_cmd_list_features): Emit
4818 breakpoint-notifications.
4820 2011-06-29 Tom Tromey <tromey@redhat.com>
4823 * valprint.h (generic_emit_char, generic_printstr): Declare.
4824 * valprint.c (wchar_printable, append_string_as_wide)
4825 (print_wchar): Move from c-lang.c.
4826 (generic_emit_char): New function; mostly taken from c_emit_char.
4827 (generic_printstr): New function; mostly taken from c_printstr.
4828 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4829 represented as arrays.
4830 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4832 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4833 identically to TYPE_CODE_INT.
4834 * f-lang.c (f_get_encoding): New function.
4835 (f_emit_char): Use generic_emit_char.
4836 (f_printchar): Replace comment.
4837 (f_printstr): Use generic_printstr.
4838 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4839 "character" types specially.
4840 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4842 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4844 (c_emit_char): Call generic_emit_char.
4845 (c_printstr): Call generic_printstr.
4847 2011-06-29 Gary Benson <gbenson@redhat.com>
4849 * breakpoint.c (bpstat_what): Removed duplicated case.
4851 2011-06-28 Tom Tromey <tromey@redhat.com>
4853 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4855 2011-06-27 Tom Tromey <tromey@redhat.com>
4857 * valops.c (find_overload_match): Call do_cleanups before early
4859 * top.c (execute_command): Call do_cleanups before early return.
4860 (command_loop): Likewise.
4861 * stack.c (backtrace_command): Make a null cleanup early. Don't
4862 conditionally call do_cleanups.
4863 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4865 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4866 so cleanups are always run.
4867 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4868 * findcmd.c (parse_find_args): Call do_cleanups on early return
4870 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4871 Don't conditionally call do_cleanups.
4872 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4875 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4877 * MAINTAINERS (Write After Approval): Use default email address.
4879 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4881 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4883 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4885 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4886 saved_regs_mask and copied_regs_mask fields.
4887 (sparc_record_save_insn): New prototype.
4888 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4889 (sparc_record_save_insn): New function.
4890 (sparc_analyze_prologue): Add head comment. Recognize store insns
4891 of call-saved registers. Use OFFSET consistently. Recognize flat
4892 frames and cache their settings.
4893 (sparc32_skip_prologue): Handle flat frames.
4894 (sparc_frame_cache): Add frame_offset to the base address.
4895 (sparc32_frame_cache): Adjust to new frame description.
4896 (sparc32_frame_prev_register): Likewise.
4897 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4898 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4899 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4900 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4901 frame by calling sparc_record_save_insn.
4902 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4903 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4904 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4906 2011-06-27 Tristan Gingold <gingold@adacore.com>
4908 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4909 field by map_addr and map_len.
4910 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4911 (munmap_section_buffer): Likewise.
4913 2011-06-24 Tom Tromey <tromey@redhat.com>
4915 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4916 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4917 * python/python.c (gdbpy_parameter): Make 'arg' const.
4918 (execute_gdb_command): Likewise.
4919 (gdbpy_decode_line): Likewise. Copy it.
4920 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4921 (gdbpy_write): Make 'arg' const.
4922 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4924 (gdbpy_lookup_type): Likewise.
4925 * python/py-prettyprint.c (print_children): Make 'name' const.
4926 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4927 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4929 * python/py-function.c (fnpy_init): Make 'name' const.
4930 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4931 (gdbpy_string_to_argv): Make 'input' const.
4932 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4934 * gdbtypes.h (lookup_typename): Update.
4935 * gdbtypes.c (lookup_typename): Make 'name' const.
4936 (lookup_struct): Likewise.
4937 (lookup_union): Likewise.
4938 (lookup_enum): Likewise.
4940 2011-06-24 Tom Tromey <tromey@redhat.com>
4942 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4943 gdb_thread_db.h. Move all common/ entries to be together.
4944 (TAGS): Don't depend on DEPFILES.
4946 2011-06-23 Yao Qi <yao@codesourcery.com>
4948 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4949 * remote.c (remote_start_remote): ... here.
4950 * monitor.c (monitor_open): ... here.
4952 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4954 * gdbtypes.c (append_composite_type_field_aligned): Fix
4955 calculation of bit position based on alignment.
4957 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4959 * breakpoint.c (bpstat_stop_status): Call the check_status
4960 breakpoint_ops method.
4961 (print_one_breakpoint_location): Also print the condition for Ada
4962 exception catchpoints.
4963 (allocate_bp_location): New, factored out from
4964 allocate_bp_location.
4965 (allocate_bp_location): Adjust. Call the owner breakpoint's
4966 allocate_location method, if there is one.
4967 (free_bp_location): Call the locations's dtor method, if there is
4969 (init_raw_breakpoint_without_location): New breakpoint_ops
4971 (set_raw_breakpoint_without_location): Adjust.
4972 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4973 (set_raw_breakpoint): Adjust.
4974 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4975 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4976 re_set and check_status methods.
4977 (init_catchpoint): Don't memset, initialize thread, addr_string
4978 and enable_state. Pass the ops down to init_raw_breakpoint.
4979 (install_catchpoint): Rename to ...
4980 (install_breakpoint): ... this, and make extern.
4981 (create_fork_vfork_event_catchpoint): Adjust.
4982 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4983 re_set and check_status methods.
4984 (create_syscall_event_catchpoint): Adjust.
4985 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4986 (masked_watchpoint_breakpoint_ops): Install NULL
4987 allocate_location, re_set and check_status methods.
4988 (catch_exec_command_1): Adjust.
4989 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4990 re_set and check_status methods.
4991 (create_ada_exception_breakpoint): Rename to ...
4992 (init_ada_exception_breakpoint): ... this. Add a struct
4993 breakpoint parameter, and delete the exp_string, cond_string and
4994 cond parameters. Use init_raw_breakpoint, and don't install or
4995 mention the breakpoint yet. Don't clear breakpoint fields that
4996 init_raw_breakpoint already clears.
4997 (re_set_breakpoint): Delete, split into ...
4998 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5000 (breakpoint_re_set_one): Call the breakpoint's
5001 breakpoint_ops->re_set implementation, if there's one. Adjust.
5002 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5003 (struct bp_location_ops): New type.
5004 (struct bp_location): New field `ops'.
5005 (struct breakpoint_ops): New `allocate_location', `re_set' and
5006 `check_status' fields. Make `breakpoint_hit''s description match
5008 (init_bp_location): Declare.
5009 (breakpoint_re_set_default): Declare.
5010 (create_ada_exception_breakpoint): Rename to ...
5011 (init_ada_exception_breakpoint): ... this. Add a struct
5012 breakpoint parameter, and delete the exp_string, cond_string and
5014 (install_breakpoint): Declare.
5015 * ada-lang.c: Include exceptions.h.
5016 <Ada exceptions description>: Update.
5017 (struct ada_catchpoint_location): New type.
5018 (ada_catchpoint_location_dtor): New function.
5019 (ada_catchpoint_location_ops): New global.
5020 (ada_catchpoint): New type.
5021 (create_excep_cond_exprs): New function.
5022 (dtor_exception, allocate_location_exception, re_set_exception)
5023 (should_stop_exception, check_status_exception): New functions.
5024 (print_one_exception, print_mention_exception)
5025 (print_recreate_exception): Adjust.
5026 (dtor_catch_exception, allocate_location_catch_exception)
5027 (re_set_catch_exception, check_status_catch_exception): New
5029 (catch_exception_breakpoint_ops): Install them.
5030 (dtor_catch_exception_unhandled)
5031 (allocate_location_catch_exception_unhandled)
5032 (re_set_catch_exception_unhandled)
5033 (check_status_catch_exception_unhandled): New functions.
5034 (catch_exception_unhandled_breakpoint_ops): Install them.
5035 (dtor_catch_assert, allocate_location_catch_assert)
5036 (re_set_catch_assert, check_status_catch_assert): New functions.
5037 (catch_assert_breakpoint_ops): Install them.
5038 (ada_exception_catchpoint_p): Delete.
5039 (catch_ada_exception_command_split)
5040 (ada_exception_catchpoint_cond_string): Rename exp_string
5041 parameter to excep_string. Adjust.
5042 (ada_parse_catchpoint_condition): Delete.
5043 (ada_exception_sal): Rename the exp_string parameter to
5044 excep_string. Delete the cond_string and cond parameters.
5046 (ada_decode_exception_location): Rename the exp_string parameter
5047 to excep_string. Delete the cond_string and cond parameters.
5049 (create_ada_exception_catchpoint): New function.
5050 (catch_ada_exception_command, ada_decode_assert_location)
5051 (catch_assert_command): Adjust.
5052 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5054 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5056 * ada-lang.c: Include arch-utils.h.
5057 (ada_decode_exception_location): Make static.
5058 (catch_ada_exception_command): Moved here from breakpoint.c.
5059 (ada_decode_assert_location): Make static.
5060 (catch_assert_command): Moved here from breakpoint.c.
5061 (_initialize_ada_lang): Install the exception and assert
5062 catchpoint commands here.
5063 * ada-lang.h (ada_decode_exception_location)
5064 (ada_decode_assert_location): Delete declarations.
5065 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5067 (create_ada_exception_breakpoint): Make extern.
5068 (catch_ada_exception_command, catch_assert_command): Moved to
5070 (add_catch_command): Make extern.
5071 (_initilize_breakpoint): Don't install the exception and assert
5072 catchpoint commands here.
5073 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5075 (add_catch_command, create_ada_exception_breakpoint): Declare.
5077 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5079 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5080 the breakpoint to the breakpoint chain here.
5081 (set_raw_breakpoint_without_location): Add the breakpoint to the
5082 breakpoint chain here.
5083 (init_raw_breakpoint): Adjust comments.
5084 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5086 (init_catchpoint): Don't set the catchpoint's breakpoint number
5088 (install_catchpoint): New function.
5089 (create_fork_vfork_event_catchpoint)
5090 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5091 use install_catchpoint.
5093 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5095 * breakpoint.c (create_catchpoint_without_mention)
5096 (create_catchpoint): Delete.
5098 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5100 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5101 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5102 reference to exec_pathname.
5103 (struct exec_catchpoint): New type.
5104 (dtor_catch_exec): New function.
5105 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5106 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5107 (catch_exec_command_1): Adjust to use init_catchpoint.
5108 (delete_breakpoint): Remove reference to exec_pathname.
5110 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5112 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5113 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5114 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5115 reference to syscalls_to_be_caught.
5116 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5118 (struct syscall_catchpoint): New type.
5119 (dtor_catch_syscall): New function.
5120 (insert_catch_syscall, remove_catch_syscall)
5121 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5122 (print_recreate_catch_syscall): Adjust.
5123 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5124 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5125 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5126 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5127 (masked_watchpoint_breakpoint_ops)
5128 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5129 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5130 there is one. Remove references to syscalls_to_be_caught.
5131 (catching_syscall_number): Adjust.
5132 * ada-lang.c (catch_exception_breakpoint_ops)
5133 (catch_exception_unhandled_breakpoint_ops)
5134 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5136 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5138 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5140 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5141 reference to forked_inferior_pid.
5142 (struct fork_catchpoint): New type.
5143 (breakpoint_hit_catch_fork, print_it_catch_fork)
5144 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5145 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5146 (create_fork_vfork_event_catchpoint): Adjust to use
5149 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5151 * breakpoint.c (add_to_breakpoint_chain)
5152 (init_raw_breakpoint_without_location): New functions, factored
5154 (set_raw_breakpoint_without_location): ... this one.
5155 (init_raw_breakpoint): New function, factored out from
5156 set_raw_breakpoint and adjusted to use
5157 init_raw_breakpoint_without_location.
5158 (set_raw_breakpoint): Adjust.
5159 (init_catchpoint): New function, factored out from
5160 create_catchpoint_without_mention and adjusted to use
5161 init_raw_breakpoint.
5162 (create_catchpoint_without_mention): Adjust.
5164 2011-06-22 Tom Tromey <tromey@redhat.com>
5166 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5167 argument of 0 specially.
5169 2011-06-22 Yao Qi <yao@codesourcery.com>
5171 * infrun.c (handle_inferior_event): Remove write-only local variable
5172 `sw_single_step_trap_p'.
5174 2011-06-20 Tom Tromey <tromey@redhat.com>
5176 * symtab.c (lookup_language_this): End loop if block is NULL.
5178 2011-06-17 Tom Tromey <tromey@redhat.com>
5180 * valops.c (value_of_this): Use lookup_language_this.
5181 * symtab.h (lookup_language_this): Declare.
5182 * symtab.c (lookup_language_this): New function.
5183 (lookup_symbol_aux): Use lookup_language_this.
5184 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5186 2011-06-17 Tom Tromey <tromey@redhat.com>
5188 * value.h (value_of_this): Update.
5189 (value_of_local): Remove.
5190 * valops.c (value_of_this): Rename from value_of_local. Change
5192 * p-exp.y (exp): Update.
5193 (variable): Likewise.
5194 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5196 2011-06-17 Tom Tromey <tromey@redhat.com>
5198 * valops.c (value_of_local): Complain if NAME is NULL.
5199 * std-operator.def (OP_OBJC_SELF): Remove.
5200 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5201 * objc-exp.y (name_not_typename): Use OP_THIS.
5202 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5204 <OP_OBJC_SELF>: Remove.
5205 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5207 2011-06-16 Tristan Gingold <gingold@adacore.com>
5209 * python/py-events.h (gdb_py_events): Make it extern.
5210 * python/py-evtregistry.c (gdb_py_events): Declare.
5212 2011-06-16 Hui Zhu <teawater@gmail.com>
5214 * remote.c (remote_trace_set_readonly_regions): Add check for
5215 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5218 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5220 * arm-linux-tdep.c: Include "auxv.h".
5222 (ARM_LINUX_SIZEOF_VFP): Define.
5223 (arm_linux_supply_vfp): New function.
5224 (arm_linux_collect_vfp): Likewise.
5225 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5226 (arm_linux_fpa_regset_sections): New variable.
5227 (arm_linux_vfp_regset_sections): Likewise.
5228 (arm_linux_core_read_description): New function.
5229 (arm_linux_init_abi): Install arm_linux_core_read_description and
5230 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5231 appropriate for the architecture.
5232 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5233 (tdesc_arm_with_m): Declare.
5234 (tdesc_arm_with_iwmmxt): Likewise.
5235 (tdesc_arm_with_vfpv2): Likewise.
5236 (tdesc_arm_with_vfpv3): Likewise.
5237 (tdesc_arm_with_neon): Likewise.
5238 * arm-linux-nat.c: Move features/*.c includes ...
5239 * arm-tdep.c: ... here.
5240 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5241 target description data structures ...
5242 * arm-tdep.c (_initialize_arm_tdep): ... here.
5243 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5244 HWCAP_VFPv3D16): Move definitions ...
5245 * arm-linux-tdep.h: ... here.
5247 2011-06-15 Hui Zhu <teawater@gmail.com>
5249 * remote.c (remote_trace_set_readonly_regions): Add a check for
5252 2011-06-14 Tom Tromey <tromey@redhat.com>
5254 * coffread.c (coffread_objfile): Rename from current_objfile.
5255 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5256 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5258 2011-06-14 Tom Tromey <tromey@redhat.com>
5260 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5261 (class_symtab): Remove.
5262 (jv_dynamics_progspace_key): New global.
5263 (jv_per_objfile_free): Reset program space data. Update assert.
5264 Don't clear globals.
5265 (get_dynamics_objfile): Use and set program space data.
5266 (get_java_class_symtab): Use get_dynamics_objfile.
5267 (add_class_symbol): Likewise.
5268 (java_link_class_type): Likewise.
5269 (java_object_type, jv_clear_object_type, set_java_object_type):
5271 (get_java_object_type): Update. Don't cache result.
5272 (is_object_type): Don't call set_java_object_type.
5273 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5274 initialize jv_dynamics_progspace_key.
5276 2011-06-14 Tom Tromey <tromey@redhat.com>
5278 * symtab.h (current_objfile): Don't declare.
5279 * objfiles.h (current_objfile): Don't declare.
5280 * objfiles.c (current_objfile): Remove.
5281 * mdebugread.c (current_objfile): New file-scope global.
5282 * dbxread.c (current_objfile): New file-scope global.
5283 * coffread.c (current_objfile): New file-scope global.
5285 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5287 * top.h (line): Rename to ...
5288 (saved_command_line): ... this.
5289 (linesize): Rename to ...
5290 (saved_command_line_size): ... this.
5291 * top.c (line): Rename to ...
5292 (saved_command_line): ... this.
5293 (linesize): Rename to ...
5294 (saved_command_line_size): ... this.
5295 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5296 * event-top.c (command_line_handler): Adjust.
5297 * main.c (captured_main): Adjust.
5299 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5301 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5302 get_frame_func instead of get_frame_pc to determine the code
5303 address used to construct the frame ID.
5304 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5305 (i386_epilogue_frame_this_id): Likewise.
5306 (i386_epilogue_frame_prev_register): New function.
5307 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5308 (i386_stack_tramp_frame_sniffer): Fix coding style.
5309 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5310 (i386_gdbarch_init): Fix comments.
5312 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5314 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5315 instruction when walking back through the instruction stream.
5317 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5319 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5320 fullname parameters order.
5322 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5325 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5327 * psymtab.c (map_symbol_filenames_psymtab)
5328 (map_partial_symbol_filenames): Likewise.
5329 * psymtab.h: Include symfile.h.
5330 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5331 * symfile.h (symbol_filename_ftype): New.
5332 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5333 map_symbol_filenames, clarify more the naming in comment.
5335 2011-06-07 Doug Evans <dje@google.com>
5337 * cc-with-index.sh: Fix typos in comment.
5338 Look for ../../gdb, for fullname.exp.
5340 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5341 Pedro Alves <pedro@codesourcery.com>
5343 * cli/cli-cmds.c (shell_escape): Use waitpid.
5344 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5346 2011-06-07 Tristan Gingold <gingold@adacore.com>
5348 * xcoffread.c (dwarf2_xcoff_names): New variable.
5349 (aix_process_linenos): Add a guard.
5350 (xcoff_symfile_finish): Free dwarf2.
5351 (xcoff_initial_scan): Add dwarf2 support.
5353 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5355 * infcall.c (run_inferior_call): Don't mask async. Instead force
5356 a synchronous wait, if the target can async.
5358 * target.h (struct target_ops): Delete to_async_mask.
5359 (target_async_mask): Delete.
5360 * target.c (update_current_target): Delete references to to_async_mask.
5361 * linux-nat.c (linux_nat_async_mask_value): Delete.
5362 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5363 to linux_nat_async_mask_value.
5364 (linux_nat_async_mask): Delete.
5365 (linux_nat_async, linux_nat_close): Remove references to
5366 linux_nat_async_mask_value.
5367 * record.c (record_async_mask_value): Delete.
5368 (record_async): Remove references to record_async_mask_value.
5369 (record_async_mask): Delete.
5370 (record_can_async_p, record_is_async_p): Remove references to
5371 record_async_mask_value.
5372 (init_record_ops, init_record_core_ops): Remove references to
5374 * remote.c (remote_async_mask_value): Delete.
5375 (init_remote_ops): Remove reference to remote_async_mask.
5376 (remote_can_async_p, remote_is_async_p): Remove references to
5377 remote_async_mask_value.
5378 (remote_async): Remove references to remote_async_mask_value.
5379 (remote_async_mask): Delete.
5381 * infrun.c (fetch_inferior_event): Don't claim registers changed
5382 if the current thread is already not executing.
5384 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5386 From Stephen Kitt <steve@sk2.org>
5387 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5388 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5390 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5392 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5393 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5395 2011-06-03 Tom Tromey <tromey@redhat.com>
5397 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5399 * python/py-exitedevent.c (create_exited_event_object): Change
5400 type of 'exit_code'. Optionally add exit_code attribute.
5401 (emit_exited_event): Change type of 'exit_code'.
5402 * python/py-event.h (emit_exited_event): Update.
5403 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5404 * infrun.c (handle_inferior_event): Set exit code fields on
5406 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5408 * inferior.c (exit_inferior_1): Initialize new fields.
5410 2011-06-03 Tom Tromey <tromey@redhat.com>
5412 * dwarf2expr.c (get_signed_type): New function.
5413 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5415 2011-06-02 Keith Seitz <keiths@redhat.com>
5417 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5419 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5421 * top.h (simplified_command_loop): Delete declaration.
5423 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5425 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5426 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5428 2011-06-01 Yao Qi <yao@codesourcery.com>
5430 * objfiles.h (obj_section_addr): Update reference to objfile from
5432 (obj_section_endaddr): Likewise.
5434 2011-06-01 Daniel Jacobowitz <drow@false.org>
5436 * MAINTAINERS: Update my email address and affiliation. Also
5437 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5439 2010-05-31 Keith Seitz <keiths@redhat.com>
5442 * linespec.c (get_search_block): New function.
5443 (find_methods): Add FILE_SYMTATB parameter and use it and
5444 get_search_block to pass an appropriate block to
5445 lookup_symbol_in_namespace.
5446 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5447 Check if *ARGPTR starts with a filename first.
5448 If it does, call locate_first_half again to locate the next
5449 "first half" of the linespec.
5450 Pass FILE_SYMTATB to decode_objc and decode_compound.
5451 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5452 (locate_first_half): Stop on the first colon seen.
5453 (decode_compound): Add FILE_SYMTAB parameter.
5454 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5455 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5456 get_search_block with lookup_symbol.
5457 (find_method): Add FILE_SYMTAB parameter and pass it to
5459 (decode_objc): Use get_search_block.
5461 2010-05-31 Keith Seitz <keiths@redhat.com>
5464 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5465 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5466 and CP_ANONYMOUS_NAMESPACE_LEN.
5467 (cp_is_anonymous): Likewise.
5468 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5469 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5470 * dwarf2read.c (namespace_name): Likewise.
5471 (fixup_partial_die): Likewise.
5472 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5473 seen in the input, keep it.
5475 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5477 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5478 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5479 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5480 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5481 * remote.c (_initialize_remote): Register
5482 async_remote_interrupt_twice directly as
5483 sigint_remote_twice_token event.
5485 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5487 * target.h (enum inferior_event_type): Delete INF_ERROR.
5488 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5490 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5492 * interps.c (interp_set): Don't cancel continuations.
5494 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5498 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5500 * continuations.h (continuation_ftype): Add `err' parameter.
5501 Document parameters.
5502 (do_all_continuations, do_all_continuations_thread)
5503 (do_all_intermediate_continuations)
5504 (do_all_intermediate_continuations_thread)
5505 (do_all_inferior_continuations): Add `err' parameter.
5506 * continuations.c (do_my_continuations_1, do_my_continuations)
5507 (do_all_inferior_continuations, do_all_continuations_ptid)
5508 (do_all_continuations_thread_callback)
5509 (do_all_continuations_thread, do_all_continuations)
5510 (do_all_intermediate_continuations_thread_callback)
5511 (do_all_intermediate_continuations_thread)
5512 (do_all_intermediate_continuations): Add `err' parameter, and pass
5513 it down all the way to the continuations proper.
5514 * inf-loop.c (inferior_event_handler): If fetching an inferior
5515 event throws an error, don't pop the target, and still call the
5516 continuations, but with `err' set. Adjust all other continuation
5518 * breakpoint.c (until_break_command_continuation): Add `err'
5520 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5521 issue another step if `err' is set.
5522 (struct until_next_continuation_args): New.
5523 (until_next_continuation): Add `err' parameter. Adjust.
5524 (until_next_command): Adjust.
5525 (struct finish_command_continuation_args): Add `thread' field.
5526 (finish_command_continuation): Add `err' parameter. Handle it.
5527 (finish_forward): Adjust.
5528 (attach_command_continuation): Add `err' parameter. Handle it.
5529 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5530 cancel the continuations.
5531 * interps.c (interp_set): Adjust to cancel the continuations.
5532 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5533 continuations rather than discarding.
5534 (free_thread): Don't clear thread inferior resources here.
5535 (delete_thread_1): Do it here instead. And do it before removing
5536 the thread from the threads list. Tag the thread as exited before
5537 clearing thread inferior resources.
5539 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5541 * infcall.c (call_function_by_hand): Rephrase error message.
5543 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5545 * defs.h (struct thread_info, struct inferior): Delete forward
5547 * breakpoint.h (struct thread_info): New forward declaration.
5548 * observer.sh (struct inferior): New forward declaration.
5549 * python/python-internal.h (struct inferior): New forward
5552 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5554 * defs.h (struct continuation, continuation_ftype)
5555 (continuation_free_arg_ftype, add_continuation)
5556 (do_all_continuations, do_all_continuations_thread)
5557 (discard_all_continuations, discard_all_continuations_thread)
5558 (add_intermediate_continuation, do_all_intermediate_continuations)
5559 (do_all_intermediate_continuations_thread)
5560 (discard_all_intermediate_continuations)
5561 (discard_all_intermediate_continuations_thread)
5562 (add_inferior_continuation, do_all_inferior_continuations)
5563 (discard_all_inferior_continuations): Move to ...
5564 * continuations.h: ... this new file.
5565 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5566 infcmd.c, inferior.c, infrun.c, interps.c: Include
5569 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5570 Doug Evans <dje@google.com>
5572 Fix PR 10970, PR 12702.
5573 * linux-nat.c (linux_lwp_is_zombie): New function.
5574 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5575 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5577 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5579 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5581 (add_continuation, add_intermediate_continuation)
5582 (add_inferior_continuation): Use them.
5583 * continuations.c (struct continuation): Use them.
5584 (make_continuation_ftype): Delete.
5585 (make_continuation, add_inferior_continuation, add_continuation)
5586 (add_intermediate_continuation): Use continuation_ftype and
5587 continuation_free_arg_ftype. Rename parameters to shorter names.
5589 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5591 * continuations.c (make_continuation): Make it return void.
5592 (do_my_continuations): Rename to ...
5593 (do_my_continuations_1): ... this. Remove old_chain parameter and
5595 (do_my_continuations): New.
5596 (discard_my_continuations): Rename to ...
5597 (discard_my_continuations_1): ... this. Remove old_chain
5598 parameter and adjust.
5599 (discard_my_continuations): New.
5600 (add_inferior_continuation): Simplify.
5601 (do_all_inferior_continuations): Reimplement on top
5602 do_my_continuations.
5603 (discard_all_inferior_continuations): Simplify.
5604 (add_continuation): Simplify.
5605 (do_all_continuations_ptid): Simplify.
5606 (discard_all_continuations_thread_callback): Simplify.
5607 (add_intermediate_continuation): Simplify.
5608 (discard_all_intermediate_continuations_thread_callback):
5611 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5613 * utils.c (struct continuation, add_continuation)
5614 (add_inferior_continuation)
5615 (do_all_inferior_continuations, discard_all_inferior_continuations)
5616 (restore_thread_cleanup, do_all_continuations_ptid)
5617 (do_all_continuations_thread_callback)
5618 (do_all_continuations_thread, do_all_continuations)
5619 (discard_all_continuations_thread_callback)
5620 (discard_all_continuations_thread, discard_all_continuations)
5621 (add_intermediate_continuation)
5622 (do_all_intermediate_continuations_thread_callback)
5623 (do_all_intermediate_continuations_thread)
5624 (do_all_intermediate_continuations)
5625 (discard_all_intermediate_continuations_thread_callback)
5626 (discard_all_intermediate_continuations_thread)
5627 (discard_all_intermediate_continuations): Move to ...
5628 * continuations.c: ... this new file, and adjust to no longer
5629 implement continuations on top of cleanups.
5630 * Makefile.in (SFILES): Add continuations.c.
5631 (COMMON_OBS): Add continuations.o.
5633 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5635 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5636 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5637 Internal error on invalid values.
5638 * reverse.c: Don't handle EXEC_ERROR.
5639 * mi/mi-main.c: Don't handle EXEC_ERROR.
5641 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5643 * record.c: Include event-loop.h, inf-loop.h.
5644 (record_beneath_to_async): New global.
5645 (tmp_to_async): New global.
5646 (record_async_inferior_event_token): New global.
5647 (record_open_1): Don't error out if async is enabled.
5648 (record_open): Handle to_async. Create an async event source in
5650 (record_close): Delete the async event source.
5651 (record_resumed): New global.
5652 (record_execution_dir): New global.
5653 (record_resume, record_core_resume): Set them. Register the
5654 target on the event loop.
5655 (record_wait): Rename to ...
5656 (record_wait_1): ... this. Add more debug output. Handle
5657 TARGET_WNOHANG, and the target beneath returning
5658 TARGET_WAITKIND_IGNORE.
5659 (record_wait): Reimplement on top of record_wait_1.
5660 (record_async_mask_value): New global.
5661 (record_async, record_async_mask, record_can_async_p)
5662 (record_is_async_p, record_execution_direction): New functions.
5663 (init_record_ops, init_record_core_ops): Install new methods.
5664 * infrun.c (fetch_inferior_event): Temporarily switch the global
5665 execution direction to the direction the target was going.
5666 (execution_direction): Change type to int.
5667 * target.c (default_execution_direction): New function.
5668 (update_current_target): Inherit and de_fault
5669 to_execution_direction.
5670 * target.h (struct target_ops) <to_execution_direction>: New
5672 (target_execution_direction): New macro.
5673 * inferior.h (execution_direction): Change type to int.
5675 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5677 * infcall.c (call_function_by_hand): Don't allow calling functions
5678 in reverse execution mode.
5680 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5682 * infcmd.c (finish_command): Allow async finish in reverse.
5684 2011-05-26 Yao Qi <yao@codesourcery.com>
5686 * gdb_thread_db.h: Delete. Move to ...
5687 * common/gdb_thread_db.h: ... here.
5689 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5691 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5692 function's entry point instead of a manually managed momentary
5693 breakpoint, and only ever issue one proceed call.
5694 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5695 doing a reverse-finish, switch to stepi mode, to do another step.
5696 (insert_step_resume_breakpoint_at_sal): Make public.
5697 (normal_stop): No need to save function value return registers if
5699 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5701 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5703 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5704 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5705 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5707 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5708 step-resume breakpoints.
5709 (print_it_typical): Handle bp_hp_step_resume.
5710 (bpstat_what): Ditto.
5711 (bptype_string): Ditto.
5712 (print_one_breakpoint_location): Ditto.
5713 (allocate_bp_location): Ditto.
5715 (breakpoint_re_set_one): Ditto.
5716 * infrun.c (handle_inferior_event): Adjust. Split
5717 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5718 BPSTAT_WHAT_HP_STEP_RESUME.
5719 (insert_step_resume_breakpoint_at_sal): Rename to ...
5720 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5721 parameter. Handle it.
5722 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5723 insert_step_resume_breakpoint_at_sal_1.
5724 (insert_step_resume_breakpoint_at_frame): Rename to ...
5725 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5726 set a high-priority step-resume breakpoint.
5727 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5728 (insert_step_resume_breakpoint_at_caller): Ditto.
5730 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5732 * breakpoint.c (iterate_over_related_breakpoints): New.
5733 (do_map_delete_breakpoint): New.
5734 (delete_command): Pass do_map_delete_breakpoint to
5735 map_breakpoint_numbers.
5736 (do_disable_breakpoint): New.
5737 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5739 (do_enable_breakpoint): Rename to ...
5740 (enable_breakpoint_disp): ... this.
5741 (enable_breakpoint): Adjust.
5742 (do_enable_breakpoint): New.
5743 (enable_once_breakpoint): Delete.
5744 (do_map_enable_breakpoint): New.
5745 (do_map_enable_once_breakpoint): New.
5746 (enable_once_command, enable_delete_command)
5747 (delete_trace_command): Iterate over the breakpoint's related
5750 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5752 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5753 for ALPHA_ZERO_REGNUM.
5754 (alpha_supply_int_regs): Explicitly supply zero as the value for
5755 ALPHA_ZERO_REGNUM in the register cache.
5756 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5758 2011-05-26 Yao Qi <yao@codesourcery.com>
5760 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5762 2011-05-26 Tristan Gingold <gingold@adacore.com>
5764 * symfile.h (struct dwarf2_section_names): New type.
5765 (struct dwarf2_debug_sections): New type.
5766 (dwarf2_has_info): Add parameter.
5767 * dwarf2read.c (dwarf2_elf_names): New variable.
5768 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5769 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5770 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5771 (dwarf2_has_info): Add names parameter. Pass names
5772 to dwarf2_locate_sections.
5773 (section_is_p): Rewrite using the names parameter.
5774 (dwarf2_locate_sections): Use section names from the names parameter.
5775 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5776 * elfread.c (read_psyms): Ditto.
5777 * machoread.c (macho_symfile_read): Ditto.
5779 2011-05-25 Andreas Schwab <schwab@redhat.com>
5782 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5784 2011-05-24 Keith Seitz <keiths@redhat.com>
5787 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5788 (decode_compound): Unconditionally call keep_name_info.
5790 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5792 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5793 scope, clear its command list.
5794 (map_breakpoint_numbers): Don't walk the related breakpoints list
5797 2011-05-24 Tom Tromey <tromey@redhat.com>
5799 * MAINTAINERS: Move Jim Blandy to past maintainers.
5801 2011-05-24 Tristan Gingold <gingold@adacore.com>
5803 * symfile.h (enum dwarf2_section_enum): New type.
5804 (dwarf2_get_section_info): New prototype.
5805 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5806 section_name by sect. Use a switch to select the info.
5807 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5808 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5810 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5812 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5813 shared library event breakpoint if there's no execution.
5815 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5817 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5818 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5820 2011-05-23 Tom Tromey <tromey@redhat.com>
5822 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5825 2011-05-23 Doug Evans <dje@google.com>
5827 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5828 entry for RuntimeError to doc string.
5830 2011-05-23 Jerome Guitton <guitton@adacore.com>
5832 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5833 sequence for probing loops.
5835 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5837 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5840 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5842 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5843 zero as the value for %g0 in the register cache.
5844 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5845 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5847 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5849 * infrun.c (proceed): Set previous_inferior_ptid here.
5850 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5851 inferior_ptid, not null_ptid.
5852 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5853 (fetch_inferior_event): Nor here.
5855 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5857 * inf-loop.c (inferior_event_handler): Only output a message if
5860 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5862 * MAINTAINERS: Update my e-mail address.
5864 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5866 * infrun.c (proceed): Switch the inferior event loop to
5867 INF_EXEC_COMPLETE if the target refused to resume from a
5870 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5872 * infcmd.c: Include "inf-loop.h".
5873 (step_once): When stepping into an inline subroutine, pretend the
5874 target has run. If the target can async, switch the inferior
5875 event loop to INF_EXEC_COMPLETE.
5876 * inferior.h (user_visible_resume_ptid): Declare.
5877 * infrun.c (user_visible_resume_ptid): New function, factored out
5880 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5881 that the current thread is running. Merge async and sync
5884 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5886 * infcmd.c (step_1): Simplify synchronous case.
5888 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5890 * tracepoint.c: Include exceptions.h.
5891 (TFILE_PID): Move higher in file.
5892 (tfile_open): Delay pushing the tfile target until we're assured
5893 the tfile header is present in the file. Wrap reading the initial
5894 newline-terminated lines in TRY_CATCH. Pop the target if the
5895 initial setup failed. Add the tfile's thread immediately
5896 aftwards, before any non-essential setup. Don't skip
5897 post_create_inferior if there are no traceframes present in the
5899 (tfile_close): Remove redundant check for null before xfree call.
5900 (tfile_thread_alive): New function.
5901 (init_tfile_ops): Register it as to_thread_alive callback.
5903 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5905 * tracepoint.c (tfile_open): Delete #if 0'd code.
5907 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 Fix -readnow for -gdwarf-4 unused type units.
5910 * dwarf2read.c (struct signatured_type): Remove the field offset.
5911 (create_signatured_type_table_from_index): Remove its initialization.
5912 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5913 instead. Add a complaint call.
5914 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5915 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5916 (lookup_signatured_type_at_offset, read_signatured_type)
5917 (write_one_signatured_type): Update the field for per_cu.
5919 2011-05-19 Tom Tromey <tromey@redhat.com>
5921 * python/py-inferior.c (python_inferior_exit): Use
5923 (python_on_resume): Likewise.
5925 2011-05-19 Matt Rice <ratmice@gmail.com>
5927 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5929 2011-05-19 Hui Zhu <teawater@gmail.com>
5931 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5933 2011-05-19 Hui Zhu <teawater@gmail.com>
5935 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5937 2011-05-18 Tom Tromey <tromey@redhat.com>
5939 * dwarf2read.c (dwarf2_add_field): Constify.
5940 * value.c (value_static_field): Constify.
5941 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5943 * ax-gdb.c (gen_static_field): Constify
5945 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5947 * linux-nat.c (kill_callback): Use SIGKILL first.
5949 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5951 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5953 2011-05-18 Tom Tromey <tromey@redhat.com>
5955 * value.c (value_fn_field): Constify.
5956 * symtab.c (gdb_mangle_name): Constify.
5957 * stabsread.c (update_method_name_from_physname): Make 'physname'
5959 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5960 const. Use explicit fputc_filtered loop.
5961 (pascal_type_print_base): Constify.
5962 * p-lang.h (pascal_type_print_method_args): Update.
5963 * linespec.c (add_matching_methods): Constify.
5964 (add_constructors): Likewise.
5965 * jv-typeprint.c (java_type_print_base): Constify.
5966 * gdbtypes.h (struct cplus_struct_type)
5967 <fn_fieldlist.fn_field.physname>: Now const.
5968 * dwarf2read.c (compute_delayed_physnames): Constify.
5969 (dwarf2_add_member_fn): Likewise.
5970 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5972 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5974 * infrun.c (resume): Mention which is the current thread, and its
5975 current PC in debug output.
5976 (prepare_to_proceed): Mention the thread switching in debug
5979 2011-05-18 Tom Tromey <tromey@redhat.com>
5981 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5982 path check. Use xmalloc and cleanups.
5983 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5985 2011-05-17 Tom Tromey <tromey@redhat.com>
5987 * cp-valprint.c (cp_print_value_fields): Catch errors from
5990 2011-05-17 Tom Tromey <tromey@redhat.com>
5992 * dwarf2read.c (dwarf2_get_die_type): Call
5993 get_die_type_at_offset.
5994 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5995 get_base_type function.
5997 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5999 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6002 2011-05-16 Doug Evans <dje@google.com>
6004 * python/py-auto-load.c (source_section_scripts): Mention objfile
6007 2011-05-15 Doug Evans <dje@google.com>
6009 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6010 (try_thread_db_load_from_pdir): Call it. If unable to find
6011 libthread_db in directory of libpthread, see if we're looking at
6012 the separate-debug-info copy.
6014 * python/py-autoload.c (print_script): Print "Missing" instead of
6015 "No" for missing scripts.
6016 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6018 2011-05-13 Doug Evans <dje@google.com>
6020 * ui-file.c (stdio_file_write_async_safe): Add comment.
6022 2011-05-14 Hui Zhu <teawater@gmail.com>
6024 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6026 2011-05-13 Doug Evans <dje@google.com>
6028 Support $pdir and $sdir in libthread-db-search-path.
6029 * NEWS: Mention $sdir,$pdir.
6030 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6031 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6032 (try_thread_db_load_from_sdir): New function.
6033 (try_thread_db_load_from_dir): New function.
6034 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6035 system directories if search of libthread-db-search-path fails,
6036 that is now done via $sdir.
6037 (has_libpthread): New function.
6038 (thread_db_load): Remove search for libthread_db in directory of
6039 libpthread, that is now done via $pdir.
6041 * NEWS: Mention "info auto-load-scripts".
6042 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6043 script_not_found_warning_printed.
6044 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6045 all callers updated. Initialize script_not_found_warning_printed.
6046 (get_auto_load_pspace_data_for_loading): New function.
6047 (maybe_add_script): New function.
6048 (source_section_scripts): Simplify. Only print one warning regardless
6049 of the number of auto-load scripts not found.
6050 (clear_section_scripts): Clear script_not_found_warning_printed.
6051 (auto_load_objfile_script): Record script in hash table.
6052 (count_matching_scripts): New function.
6053 (maybe_print_script): Renamed from maybe_print_section_script, all
6054 callers updated. Rewrite to use ui_out_*.
6055 (info_auto_load_scripts): Renamed from
6056 maintenance_print_section_scripts, all callers updated.
6057 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6058 renamed as "info auto-load-scripts".
6060 2011-05-13 Tom Tromey <tromey@redhat.com>
6062 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6063 (read_sleb128): Likewise.
6065 2011-05-13 Tom Tromey <tromey@redhat.com>
6067 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6070 2011-05-13 Doug Evans <dje@google.com>
6072 * linux-nat.c (debug_linux_nat_async): Delete.
6073 Replace all references to use debug_linux_nat instead.
6074 (show_debug_linux_nat_async): Delete.
6075 (sigchld_handler): Call ui_file_write_async_safe instead of
6077 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6078 * ui-file.c (struct ui_file): New member to_write_async_safe.
6079 (null_file_write_async_safe): New function.
6080 (ui_file_write_async_safe): New function.
6081 (set_ui_file_write_async_safe): New function.
6082 (ui_file_new): Initialize to_write_async_safe.
6083 (stdio_file_write_async_safe): New function.
6084 (struct stdio_file): New member fd.
6085 (stdio_file_new): Initialize to_write_async_safe, fd.
6086 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6088 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6089 (set_ui_file_write_async_safe): Declare.
6090 (ui_file_write_async_safe): Declare.
6092 2011-05-13 Tom Tromey <tromey@redhat.com>
6094 * utils.c (do_value_free): New function.
6095 (make_cleanup_value_free): Likewise.
6096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6098 (dwarf2_loc_desc_needs_frame): Call
6099 make_cleanup_value_free_to_mark.
6100 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6101 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6103 (new_dwarf_expr_context): Don't call value_mark.
6104 * dwarf2-frame.c (execute_stack_op): Call
6105 make_cleanup_value_free_to_mark.
6106 * defs.h (make_cleanup_value_free): Declare.
6108 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6110 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6111 prepare_execute_command.
6112 * top.c (prepare_execute_command): Return cleanup.
6113 (execute_command): Use cleanup from prepare_execute_command.
6114 * top.h (prepare_execute_command): Change prototype to return
6116 * defs.h (struct value): Add opaque declaration.
6117 (make_cleanup_value_free_to_mark): Add prototype.
6118 * utils.c (do_value_free_to_mark): New function.
6119 (make_cleanup_value_free_to_mark): Likewise.
6121 2011-05-12 Tom Tromey <tromey@redhat.com>
6123 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6124 cast left-hand-side to unsigned.
6126 2011-05-12 Tom Tromey <tromey@redhat.com>
6129 * value.h (value_from_contents): Declare.
6130 * value.c (value_from_contents): New function.
6131 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6132 (dwarf2_get_die_type): New function.
6133 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6134 (allocate_piece_closure): Acquire reference to values.
6135 (read_pieced_value): Update for value-based expressions.
6136 (write_pieced_value): Likewise.
6137 (free_pieced_value_closure): Call value_free as needed.
6138 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6139 Update for value-based expressions.
6140 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6141 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6142 <get_base_type>: New field.
6143 (struct dwarf_expr_piece) <v.value>: Change type.
6144 <v.regno>: New field.
6145 (struct dwarf_expr_context) <mark>: New field.
6146 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6147 (dwarf_expr_pop, dwarf_expr_push): Remove.
6148 (dwarf_expr_push_address): Declare.
6149 * dwarf2expr.c (dwarf_arch_cookie): New global.
6150 (struct dwarf_gdbarch_types): New.
6151 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6153 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6155 (dwarf_expr_push_address): New function.
6156 (dwarf_expr_pop): Now static.
6157 (dwarf_expr_fetch): Change return type.
6158 (dwarf_require_integral): New function.
6159 (dwarf_expr_fetch): Simplify.
6160 (add_piece): Update.
6161 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6163 (execute_stack_op) <sign_ext>: Remove.
6164 Use values for DWARF stack.
6165 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6166 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6168 (_initialize_dwarf2expr): New function.
6169 (add_piece): Update.
6170 (new_dwarf_expr_context): Set new field.
6171 (free_dwarf_expr_context): Call value_free_to_mark.
6172 * dwarf2-frame.c (no_base_type): New function.
6173 (execute_stack_op): Set get_base_type field. Update.
6175 2011-05-12 Tom Tromey <tromey@redhat.com>
6177 * dwarf2read.c (read_common_block): Fix formatting.
6179 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6181 * breakpoint.c (disable_breakpoint): Disable all locations
6182 associated with a tracepoint on target if a trace experiment is
6184 (disable_command): Disable a specific tracepoint location on target if
6185 a trace experiment is running.
6186 (do_enable_breakpoint): Enable all locations associated with a
6187 tracepoint on target if a trace experiment is running.
6188 (enable_command) Enable a specific tracepoint location on target if a
6189 trace experiment is running.
6190 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6191 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6192 to_disable_tracepoint.
6193 * target.h: Add declaration of struct bp_location.
6194 (struct target_ops): Add new functions
6195 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6196 to_disable_tracepoint to target operations.
6197 (target_supports_enable_disable_tracepoint): New macro.
6198 (target_enable_tracepoint): New macro.
6199 (target_disable_tracepoint): New macro.
6200 * remote.c (struct remote_state): Add new field.
6201 (remote_enable_disable_tracepoint_feature): New.
6202 (remote_protocol_features): Add new entry.
6203 (remote_supports_enable_disable_tracepoint): New.
6204 (remote_enable_tracepoint): New.
6205 (remote_disable_tracepoint): New.
6206 (init_remote_ops): Add remote_enable_tracepoint,
6207 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6208 to remote operations.
6209 * tracepoint.c (start_tracing): Allow tracing to start without any
6210 tracepoints enabled with just a warning if they can be re-enabled
6212 * NEWS: Add news item for the new behaviour of the enable and disable
6213 GDB commands when applied to tracepoints.
6214 Add news items for the new remote packets QTEnable and QTDisable.
6216 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6218 * config.in: Regenerate.
6219 * configure: Regenerate.
6220 * configure.ac <--with-system-readline> (for readline_echoing_p):
6222 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6223 (tui_old_rl_echoing_p): ... here.
6224 (tui_setup_io): Rename extern declaration readline_echoing_p to
6225 _rl_echoing_p. Adjust assignments for the both renames.
6227 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6229 * symtab.c (lookup_symtab): Run cleanup before returning.
6231 2011-05-11 Tom Tromey <tromey@redhat.com>
6233 * dwarf2read.c (handle_data_member_location): New function.
6234 (dwarf2_add_field): Use it.
6235 (read_common_block): Likewise.
6237 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6239 Make addrs->SECTINDEX always defined.
6240 * symfile.c (relative_addr_info_to_section_offsets): Check for
6241 SECTINDEX -1, not for zero ADDR.
6242 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6243 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6244 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6247 2011-05-10 Doug Evans <dje@google.com>
6249 * linux-thread-db.c: Whitespace cleanup.
6250 (try_thread_db_load_1): Fix comment.
6252 * linux-thread-db.c (set_libthread_db_search_path): New function.
6253 (_initialize_thread_db): Add setter for libthread-db-search-path.
6255 2011-05-09 Doug Evans <dje@google.com>
6257 * NEWS: Mention --with-iconv-bin.
6258 * configure.ac: New option --with-iconv-bin.
6259 * configure: Regenerate.
6260 * config.in: Regenerate.
6261 * defs.h (relocate_gdb_directory): Declare.
6262 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6263 removed progname parameter, and exported. All callers updated.
6264 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6266 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6267 adding missing call to restore_child_signals_mask.
6269 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6271 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6273 * infrun.c (proceed, start_remote): Adjust.
6274 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6275 and adjust to not handle it.
6276 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6277 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6278 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6279 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6280 * windows-nat.c (do_initial_windows_stuff): Adjust.
6281 * infcmd.c (attach_command): Adjust.
6282 (notice_new_inferior): Adjust.
6284 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6286 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6287 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6288 * spu-tdep.c (op_selb): Use correct value.
6290 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6292 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6293 "parent" parameter to symbol_file_add_from_bfd call.
6295 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6296 Thiago Jung Bauermann <bauerman@br.ibm.com>
6298 Implement support for PowerPC BookE masked watchpoints.
6299 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6301 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6302 method. Initialize to NULL in all existing breakpoint_ops instances.
6303 (struct breakpoint) <hw_wp_mask>: New field.
6304 * breakpoint.c (is_masked_watchpoint): Add prototype.
6305 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6306 breakpoint's breakpoint_ops.works_in_software_mode if available.
6307 (watchpoints_triggered): Handle the case of a hardware masked
6309 (watchpoint_check): Likewise.
6310 (works_in_software_mode_watchpoint): New function.
6311 (insert_masked_watchpoint, remove_masked_watchpoint)
6312 (resources_needed_masked_watchpoint)
6313 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6314 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6315 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6317 (masked_watchpoint_breakpoint_ops): New structure.
6318 (watch_command_1): Check for the existence of the `mask' parameter.
6319 Set b->ops according to the type of hardware watchpoint being created.
6320 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6321 (ppc_linux_remove_mask_watchpoint)
6322 (ppc_linux_masked_watch_num_registers): New functions.
6323 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6324 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6325 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6326 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6327 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6328 (target_masked_watch_num_registers): New functions.
6329 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6330 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6332 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6333 (target_masked_watch_num_registers): Add prototypes.
6335 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6338 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6339 (producer_is_gcc_ge_4_0): New function.
6340 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6341 symtab->language code.
6342 (var_decode_location): Set cu->has_loclist.
6343 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6344 skip. Intialize force_skip from locations_valid. Move the prologue
6345 skipping code into two passes.
6346 * symtab.h (struct symtab): Make the primary field a bitfield. New
6347 field locations_valid.
6349 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6351 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6352 (classify_inner_name): Call cp_lookup_nested_type with
6354 * cp-namespace.c (cp_lookup_nested_type): New variable
6355 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6356 type_name_no_tag_or_error with saved_parent_type.
6357 * dwarf2read.c (load_partial_dies): Read in any children of
6358 DW_TAG_typedef with complaint in such case.
6359 * gdbtypes.c (type_name_no_tag_or_error): New function.
6360 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6361 * valops.c (destructor_name_p): New comment for parameter type. Remove
6362 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6363 * value.h (destructor_name_p): Remove type const.
6365 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 * symtab.c (compare_symbol_name): New function.
6368 (completion_list_add_name, expand_partial_symbol_name): Call it,
6369 remove the variable ncmp.
6370 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6373 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6375 Demote to sw watchpoint only in update_watchpoint.
6376 * breakpoint.c (update_watchpoint): Change between software and
6377 hardware watchpoint for all kinds of watchpoints, not just
6378 read/write ones. Determine b->exact value here instead of
6379 in watch_command_1. Error out if there are not enough resources
6380 for a read or access hardware watchpoint.
6381 (watch_command_1): Remove logic of checking whether there are
6382 enough resources available, since update_watchpoint will do that
6383 work now. Don't set b->exact here. Catch exceptions thrown by
6384 update_watchpoint and delete the watchpoint.
6385 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6386 Use target_exact_watchpoints instead.
6387 (delete_breakpoint): Notify observers only if deleted watchpoint
6388 has a breakpoint number assigned to it.
6390 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6392 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6394 2011-05-05 Jerome Guitton <guitton@adacore.com>
6396 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6398 (i386_stack_tramp_frame_unwind): New static global.
6399 (i386_match_pattern): New function, extracted from i386_match_insn.
6400 (i386_match_insn): Use i386_match_pattern.
6401 (i386_match_insn_block): New function.
6402 (i386_tramp_chain_in_reg_insns)
6403 (i386_tramp_chain_on_stack_insns): New static variables.
6404 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6407 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6409 * configure.host (xscale*): Don't handle target.
6410 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6413 2011-05-04 Yao Qi <yao@codesourcery.com>
6415 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6417 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6420 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6421 | * elfread.c (elf_symtab_read): Stop memory leak.
6423 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6425 * nto-tdep.c (nto_target): Replace deprecated call to
6426 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6428 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6430 Fix false GCC warning.
6431 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6433 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6435 * breakpoint.c (update_watchpoint): Move code to change
6436 the enable state of breakpoint from here ...
6437 (do_enable_breakpoint): ... to here.
6439 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6441 * valprint.c (val_print_array_elements): Fixed poor performance
6442 of printing very large arrays with repeat_count_threshold set
6443 to unlimited. New comment.
6445 2011-04-29 Tom Tromey <tromey@redhat.com>
6447 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6448 (mi_parse): Likewise.
6449 * breakpoint.c (break_range_command): Use sizeof char*, not
6451 (create_breakpoint): Likewise.
6452 (parse_breakpoint_sals): Likewise.
6454 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6456 * linux-nat.c (linux_child_remove_fork_catchpoint)
6457 (linux_child_remove_vfork_catchpoint)
6458 (linux_child_remove_exec_catchpoint): New functions.
6459 (linux_target_install_ops): Install them.
6461 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6465 * varobj.c (install_default_visualizer): Do not install a
6466 visualizer if the varobj is CPLUS_FAKE_CHILD.
6467 (construct_visualizer): Likewise.
6469 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6471 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6472 case insensitive comparison.
6474 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6476 * infrun.c (proceed): Revert previous change.
6477 (resume): Instead, handle the case of signal delivery while stepping
6478 off a breakpoint location here, and only if software single-stepping
6479 is used. Handle nested signals.
6481 2011-04-28 Yao Qi <yao@codesourcery.com>
6483 * arm-tdep.c (copy_unmodified): Rename to ...
6484 (arm_copy_unmodified): .. this. New.
6485 (copy_preload): Move common part to ...
6486 (install_preload): .. this. New.
6487 (arm_copy_preload): New.
6488 (copy_preload_reg): Move common part to ...
6489 (install_preload_reg): ... this. New.
6490 (arm_copy_preload_reg): New.
6491 (copy_b_bl_blx): Move common part to ...
6492 (install_b_bl_blx): .. this. New.
6493 (arm_copy_b_bl_blx): New.
6494 (copy_bx_blx_reg): Move common part to ...
6495 (install_bx_blx_reg): ... this. New.
6496 (arm_copy_bx_blx_reg): New.
6497 (copy_alu_reg): Move common part to ...
6498 (install_alu_reg): ... this. New.
6499 (arm_copy_alu_reg): New.
6500 (copy_alu_shifted_reg): Move common part to ...
6501 (install_alu_shifted_reg): ... this. New.
6502 (copy_ldr_str_ldrb_strb): Move common part to ...
6503 (install_ldr_str_ldrb_strb): ... this. New.
6504 (arm_copy_ldr_str_ldrb_strb): New.
6505 (copy_copro_load_store): Move some common part to ...
6506 (install_copy_copro_load_store): ... this. New.
6507 (arm_copy_copro_load_store): New.
6509 (arm_copy_svc): Renamed from copy_svc.
6510 (copy_undef): Delete.
6511 (arm_copy_undef): Renamed from copy_undef.
6512 (decode_ext_reg_ld_st): Delete.
6513 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6514 (decode_svc_copro): Delete.
6515 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6516 (copy_copro_load_store, copy_alu_imm): update callers.
6517 (copy_extra_ld_st, copy_block_xfer): Likewise.
6518 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6519 (decode_miscellaneous, decode_dp_misc): Likewise.
6520 (decode_ld_st_word_ubyte, decode_media): Likewise.
6521 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6522 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6523 (decode_unconditional, decode_miscellaneous): Likewise.
6524 (decode_media, decode_b_bl_ldmstm): Likewise.
6525 (arm_process_displaced_insn): Likewise..
6526 (decode_misc_memhint_neon): Delete.
6527 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6528 (decode_miscellaneous): Delete.
6529 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6530 (decode_dp_misc): Delete.
6531 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6532 (decode_ld_st_word_ubyte): Delete.
6533 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6534 (decode_media): Delete.
6535 (arm_decode_media): Renamed from decode_media.
6536 (decode_b_bl_ldmstm): Delete.
6537 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6538 (decode_ext_reg_ld_st): Delete.
6539 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6540 (decode_unconditional): Delete.
6541 (arm_decode_unconditional): Renamed from decode_unconditional.
6543 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6545 Case insensitive lookups implementation.
6546 * dwarf2read.c: Include ctype.h.
6547 (struct mapped_index): New field version.
6548 (mapped_index_string_hash): New parameter index_version. New comment
6549 for it. Call tolower appropriately.
6550 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6551 Choose the right index version for mapped_index_string_hash.
6552 (dwarf2_read_index): Support also the index version 5. Initialize the
6553 new struct mapped_index field version.
6554 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6555 (find_slot): Explain the version needs. Pass INT_MAX for the new
6557 (write_psymtabs_to_index): Produce version 5.
6558 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6559 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6560 * psymtab.c (lookup_partial_symbol): Find the
6561 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6563 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6565 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6566 (completion_list_add_name): New variable ncmp, initialize it, use it.
6567 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6568 * utils.c (strcmp_iw): Support case_sensitive_off.
6569 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6570 New function comment part. New variables saved_string1,
6571 saved_string2 and case_pass. Add a proper second pass.
6573 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6575 Replace re_comp/re_exec by regcomp/regexec.
6576 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6577 (search_symbols_name_matches): Use them, use regexec.
6578 (search_symbols): New variable retval_chain, adjust the use of
6579 old_chain against it. Replace re_comp by regcomp. Use the new struct
6580 search_symbols_data fields, use regexec instead of re_exec.
6582 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6584 Format the code for the next patch.
6585 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6586 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6587 New variables c1 and c2.
6589 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6591 * infrun.c (proceed): Do not single-step into signal delivery
6592 when stepping off a breakpoint location.
6593 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6594 (insert_step_resume_breakpoint_at_caller): Likewise.
6595 (insert_step_resume_breakpoint_at_sal): Likewise.
6596 (insert_longjmp_resume_breakpoint): Likewise.
6598 2011-04-27 Yao Qi <yao@codesourcery.com>
6600 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6602 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6604 * procfs.c (procfs_pass_signals): Fix advance declaration.
6606 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6608 * target.h (struct target_ops): Remove to_notice_signals;
6609 add to_pass_signals.
6610 (target_notice_signals): Remove.
6611 (target_pass_signals): Add prototype.
6612 * target.c (update_current_target): Remove to_notice_signals;
6613 mention to_pass_signals.
6614 (target_pass_signals): New function.
6615 (debug_to_notice_signals): Remove.
6616 (setup_target_debug): Do not install debug_to_notice_signals.
6618 * infrun.c (signal_pass): New global.
6619 (resume): Call target_pass_signals.
6620 (handle_inferior_event): Report all signals while stepping over
6621 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6622 are re-inserted when stepping over a signal handler.
6623 (signal_cache_update): New function.
6624 (signal_stop_update): Call it.
6625 (signal_print_update): Likewise.
6626 (signal_pass_update): Likewise.
6627 (handle_command): Call signal_cache_update and target_pass_signals
6628 instead of target_notice_signals.
6629 (_initialize_infrun): Initialize signal_pass.
6631 * linux-nat.c (pass_mask): New global.
6632 (linux_nat_pass_signals): New function.
6633 (linux_nat_create_inferior): Report all signals initially.
6634 (linux_nat_attach): Likewise.
6635 (linux_nat_resume): Use pass_mask to decide whether to directly
6636 handle an inferior signal.
6637 (linux_nat_wait_1): Likewise.
6638 (linux_nat_add_target): Install to_pass_signals callback.
6640 * nto-procfs.c (notice_signals): Remove.
6641 (procfs_resume): Do not call notice_signals.
6642 (procfs_notice_signals): Remove.
6643 (procfs_pass_signals): New function.
6644 (init_procfs_ops): Install to_pass_signals callback instead of
6645 to_notice_signals callback.
6646 (_initialize_procfs): Report all signals initially.
6648 * procfs.c (procfs_notice_signals): Remove.
6649 (procfs_pass_signals): New function.
6650 (procfs_target): Install to_pass_signals callback instead of
6651 to_notice_signals callback.
6652 (register_gdb_signals): Remove.
6653 (procfs_debug_inferior): Report all signals initially.
6654 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6656 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6657 parameters; use them instead of calling signal_..._state routines.
6658 (remote_notice_signals): Remove.
6659 (remote_start_remote): Report all signals initially.
6660 (remote_resume): Do not call remote_pass_signals.
6661 (_initialize_remote): Install to_pass_signals callback instead of
6662 to_notice_signals callback.
6664 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6666 * breakpoint.c (user_settable_breakpoint): Delete.
6667 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6668 (delete_command): Check user_breakpoint_p instead of looking at
6669 the breakpoint's type.
6670 (disable_command): Ditto.
6671 (enable_command): Ditto.
6672 (delete_trace_command): Use user_breakpoint_p instead of looking
6673 at the breakpoint number directly. When checking if there are
6674 user visible tracepoints, in order to know whether to ask the user
6675 for confirmation, check whether the breakpoint is actually a
6678 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6680 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6683 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6685 MI breakpoint notifications.
6687 * annotate.c (breakpoint_changed): Adjust parameter type.
6688 * breakpoint.c (set_breakpoint_condition): Adjust to change
6689 in breakpoint_modified type.
6690 (breakpoint_set_commands): Likewise.
6691 (do_map_commands_command): Likewise.
6692 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6693 changed after bumping hit count.
6694 (bpstat_stop_status): Likewise.
6695 (print_one_breakpoint_location): Don't wrap in tuple here.
6696 (print_one_breakpoint): Always print individual locations.
6697 For locations, use unnamed tuple.
6698 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6700 (create_catchpoint, create_syscall_event_catchpoint): Call
6701 breakpoint_created obsever.
6702 (mention): Don't call breakpoint_created observer.
6703 (create_breakpoint_sal): Call breakpoint_created observer.
6704 (create_breakpoint, watch_command_1): Likewise.
6705 (create_ada_exception_breakpoint): Likewise.
6706 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6707 (locations_are_equal): New.
6708 (update_breakpoint_locations): If locations were changed, notify.
6709 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6710 Call breakpoint_modified observer.
6712 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6713 (mi_cmd_break_insert): Don't set observers for modify and delete.
6714 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6715 (mi_breakpoint_created, mi_breakpoint_deleted)
6716 (mi_breakpoint_modified): New.
6717 (mi_interpreter_init): Hook the above.
6718 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6719 while -break-* commands are executing.
6720 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6721 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6723 (mi_ui_out_impl): Hook in mi_redirect.
6724 (mi_field_skip): True to the name, skip the field, don't output
6725 a field with an empty value.
6727 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6728 (gdbpy_breakpoint_deleted): Adjust.
6729 * tui/tui-hooks.c (tui_event_create_breakpoint)
6730 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6732 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6734 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6735 (procfs_remove_hw_watchpoint): Likewise.
6737 2011-04-26 Michael Walle <michael@walle.cc>
6739 * remote.c (remote_start_remote): Ack packet after sending the
6742 2011-04-26 Yao Qi <yao@codesourcery.com>
6744 * linux-nat.c: Move common macros to ...
6745 Include linux-ptrace.h.
6746 * common/linux-ptrace.h: ... here. New.
6748 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6750 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6751 !objfile_has_partial_symbols. New comment.
6752 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6753 SYM_READ_PSYMBOLS is not present. Extend the comment.
6754 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6756 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6758 * defs.h (ENUM_BITFIELD): Remove.
6760 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6761 Eli Zaretskii <eliz@gnu.org>
6763 * NEWS: Document the new gdbserver --once option.
6765 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6767 * MAINTAINERS: Update my email address.
6769 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6771 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6772 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6773 function call if __STDC_ISO_10646__ macro is defined.
6774 (intermediate_encoding): New prototype.
6775 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6776 to generate compile time error for unsupported gdb_wchar_t size.
6777 (ENDIAN_SUFFIX): New macro.
6778 (intermediate_encoding): New function.
6780 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6782 * ada-lang.c (struct add_partial_datum): Update the comment for
6783 expand_partial_symbol_name.
6784 (ada_add_partial_symbol_completions): Rename to ...
6785 (ada_expand_partial_symbol_name): ... here, change return type, update
6786 function comment, call symbol_completion_match instead of
6787 symbol_completion_add.
6788 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6789 and ada_expand_partial_symbol_name.
6790 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6792 (dw2_map_symbol_names): Remove.
6793 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6794 * psymtab.c (map_symbol_names_psymtab): Remove.
6795 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6796 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6798 (psym_functions): Unlist map_symbol_names_psymtab.
6799 (map_partial_symbol_names): Rename to ...
6800 (expand_partial_symbol_names): ... here, change the FUN type, call
6801 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6802 * psymtab.h (map_partial_symbol_names): Rename to ...
6803 (expand_partial_symbol_names): ... here, change the FUN type.
6804 * symfile.h (struct quick_symbol_functions): Update the description of
6805 expand_symtabs_matching. Remove map_symbol_names.
6806 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6807 (struct add_name_data): Update the comment for
6808 expand_partial_symbol_name.
6809 (add_partial_symbol_name): Rename to ...
6810 (expand_partial_symbol_name): ... here. Replace
6811 completion_list_add_name call by strncmp.
6812 (default_make_symbol_completion_list_break_on): Use now
6813 expand_partial_symbol_names and expand_partial_symbol_name.
6814 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6816 2011-04-20 Tom Tromey <tromey@redhat.com>
6818 * dwarf2read.c (save_gdb_index_command): Replace format
6819 documentation with a pointer to the manual.
6821 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6823 * regcache.c: Include remote.h.
6824 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6825 (regcache_dump): Handle regcache_dump_remote.
6826 (maintenance_print_remote_registers): New function.
6827 (_initialize_regcache): Install "maint print remote-registers"
6829 * remote.c (map_regcache_remote_table): New function, factored out
6831 (init_remote_state): ... here.
6832 (remote_register_number_and_offset): New.
6833 * remote.h (remote_register_number_and_offset): Declare.
6835 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6837 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6838 null_ptid, assume and allow a NULL address space, instead of
6839 asking the target for the ptid's address space.
6840 * infrun.c (ptid_is_pid): Remove assertion.
6842 2011-04-19 Tom Tromey <tromey@redhat.com>
6844 * windows-tdep.c (windows_xfer_shared_library):
6845 * windows-nat.c (get_module_name, windows_make_so):
6846 * v850-tdep.c (v850_handle_pushm):
6847 * utils.c (null_cleanup, gdb_realpath):
6848 * ui-out.c (get_next_header):
6849 * tracepoint.c (clear_traceframe_info):
6850 * symtab.c (lookup_symtab):
6851 * serial.h (struct serial_ops):
6852 * mipsread.c (read_alphacoff_dynamic_symtab):
6853 * infcmd.c (print_return_value):
6854 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6855 * f-exp.y (parse_number):
6856 * exceptions.c (catch_exceptions):
6857 * dummy-frame.c (dummy_frame_this_id):
6858 * defs.h (struct cleanup):
6859 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6860 * arm-tdep.c (arm_push_dummy_call):
6861 * amd64-tdep.h (amd64_collect_xsave):
6862 * amd64-tdep.c (amd64_collect_xsave):
6863 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6864 * README (typing): Remove duplicate words.
6865 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6866 * infrun.c (siginfo_value_read): Fix typo.
6867 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6868 * top.c (source_line_number): Add comma.
6870 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6872 * thread.c (any_live_thread_of_process): Prioritize threads
6873 that are not executing.
6874 * gdbthread.h (any_live_thread_of_process): Update comment
6875 as per above change.
6877 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6879 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6880 (scan_xcoff_symtab): Likewise.
6882 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6884 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6887 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6888 Pedro Alves <pedro@codesourcery.com>
6890 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6891 variables to simplify code and avoid == operator at end of
6892 line as this is against GNU coding standards.
6894 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6896 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6897 lm_name to name_lm to avoid conflict with lm_name function.
6899 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6901 ARI fixes: Use only lowercase function name for static functions.
6902 * nto-tdep.c (LM_ADDR): Rename to...
6903 (lm_addr): New function name.
6904 (nto_relocate_section_addresses): Adapt to change above.
6905 * solib-sunos.c (LM_ADDR): Rename to...
6906 (lm_addr): New function name.
6907 (LM_NEXT): Rename to...
6908 (lm_next): New function name.
6909 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6910 function name changes above.
6911 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6912 (lm_addr_from_link_map): New function name.
6913 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6914 (has_lm_dynamic_from_link_map): New function name.
6915 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6916 (lm_dynamic_from_link_map): New function name.
6917 (LM_ADDR_CHECK): Rename to...
6918 (lm_addr_check): New function name.
6919 (LM_NEXT): Rename to...
6920 (lm_next): New function name.
6921 (LM_PREV): Rename to...
6922 (lm_prev): New function name.
6923 (LM_NAME): Rename to...
6924 (lm_name): New function name.
6925 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6926 (ignore_first_link_map_entry): New function name.
6927 (svr4_keep_data_in_core): Adapt to function name changes above.
6928 (svr4_current_sos): Likewise.
6929 (enable_break): Likewise.
6930 (svr4_relocate_section_addresses): Likewise.
6932 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6935 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6936 sprintf. Simplify code and avoid loosing memory.
6937 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6938 (call0_frame_cache): Remove && operator from end of line.
6940 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 Fix libraries displacement if they change whether they were prelinked.
6943 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6944 does not match. Comment why.
6946 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6948 * corelow.c: Include wrapper.h.
6949 (core_open): Call now gdb_target_find_new_threads.
6950 * wrapper.c: Include target.h.
6951 (gdb_target_find_new_threads): New.
6952 * wrapper.h (gdb_target_find_new_threads): New declaration.
6954 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6956 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6957 even if !TARGET_HAS_EXECUTION.
6959 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6961 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6962 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6963 bfd_get_synthetic_symtab.
6964 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6965 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6966 parameter parent, remove the call to add_separate_debug_objfile.
6967 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6968 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6969 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6970 parent, new comment for it, call add_separate_debug_objfile for it.
6971 (symbol_file_add_separate): Pass objfile as the parameter parent,
6972 remove the call to add_separate_debug_objfile.
6973 (symbol_file_add_from_bfd): New parameter parent, pass it.
6974 (symbol_file_add): Pass NULL to the new parameter parent.
6975 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6977 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6979 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6982 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6984 Fix Python access to inlined frames.
6985 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6986 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6988 2011-04-15 Tom Tromey <tromey@redhat.com>
6990 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6992 2011-04-15 Gary Benson <gbenson@redhat.com>
6994 * MAINTAINERS: Add myself to write-after-approval section.
6996 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6998 * remote-sim.c (sim_command_completer): New function.
6999 (_initialize_remote_sim): Set completer to sim_command_completer.
7001 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7003 * breakpoint.c (print_exception_catchpoint): Rename to ...
7004 (print_it_exception_catchpoint): ... this.
7005 (gnu_v3_exception_catchpoint_ops): Update with new name
7006 for print_it_exception_catchpoint.
7008 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7010 * MAINTAINERS: Add myself for write after approval privileges.
7012 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7014 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7016 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7018 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7020 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7022 * breakpoint.c (save_breakpoints): Verify whether
7023 breakpoint_ops.print_recreate is defined before calling it.
7025 2011-04-11 Gary Benson <gbenson@redhat.com>
7027 Fix failure with --enable-maintainer-mode.
7028 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7030 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7033 * symtab.c (search_symbols): Reorder the KIND description in the
7034 function comment. Remove the unused 4th element of types, types2,
7035 types3 and types4. New gdb_assert on KIND.
7036 (symtab_symbol_info): Remove the unused 4th element of classnames.
7037 New gdb_assert on KIND.
7038 * symtab.h (enum search_domain): New warning in the enum comment.
7039 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7042 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7044 Fix crash of gdb save-index on a STABS file.
7045 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7048 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7050 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7051 * dwarf2read.c: Include ctype.h.
7052 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7054 (dwarf2_add_field): Fix new_field->accessibility by calling
7055 dwarf2_default_access_attribute. Restructure setting accessibility
7057 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7058 is_private and is_protected by calling
7059 dwarf2_default_access_attribute.
7061 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7063 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7064 to the initialization.
7066 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7068 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7071 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7073 Remove support for old Cygwin 1.5 versions.
7074 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7075 function on old Cygwin version.
7076 * windows-nat.c: Remove cygwin version check and always define
7077 __USEWIDE for Cygwin compilation.
7079 2011-04-07 Yao Qi <yao@codesourcery.com>
7081 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7083 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7084 (arm_copy_svc): Remove parameters INSN and TO.
7085 (decode_svc_copro): Update caller.
7086 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7087 from function pointer `copy_svc_os'.
7089 2011-04-07 Yao Qi <yao@codesourcery.com>
7091 * arm-tdep.c (cleanup_branch): Set a correct return address in
7092 LR for ARM and Thumb.
7094 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7098 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7099 in the function comment, a new note on values compatibility.
7100 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7101 * symtab.h (SYMBOL_HASH_NEXT): New.
7103 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7105 * ppc-linux-nat.c (check_condition): Add len output parameter.
7106 Set it based on the memory region referenced in the condition
7107 expression. Update all callers.
7109 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7111 Fix crash regression on systems featuring .gdb_index.
7112 * objfiles.c (free_objfile): Move the
7113 forget_cached_source_info_for_objfile call earlier. Comment it.
7114 Extend the comment for objfile_free_data.
7116 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7118 Fix regression of displaying the debug format.
7119 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7122 2011-04-04 Tom Tromey <tromey@redhat.com>
7124 * cli/cli-interp.c (struct captured_execute_command_args):
7126 (do_captured_execute_command): Remove.
7127 (safe_execute_command): Use TRY_CATCH.
7128 * cli/cli-script.c (struct wrapped_read_command_file_args):
7130 (wrapped_read_command_file): Remove.
7131 (script_from_file): Use TRY_CATCH.
7132 * exceptions.c (catch_exception): Remove.
7133 * exceptions.h (catch_exception): Remove.
7134 (deprecated_throw_reason): Update comment.
7135 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7136 argument to 'context'.
7137 (mi_execute_command): Use TRY_CATCH.
7138 * remote.c (struct start_remote_args): Remove.
7139 (remote_start_remote): Update; change arguments.
7140 (remote_open_1): Use TRY_CATCH.
7142 2011-04-04 Tom Tromey <tromey@redhat.com>
7144 * tracepoint.c (scope_info): Update.
7145 * symtab.c (decode_line_spec): Update.
7146 * python/python.c (gdbpy_decode_line): Update.
7147 * linespec.h (decode_line_1): Update.
7148 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7149 (decode_compound, find_method, symtab_from_filename)
7150 (decode_variable): Likewise.
7151 * cli/cli-cmds.c (edit_command): Update.
7152 (list_command): Update.
7153 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7155 (create_breakpoint): Update.
7156 (until_break_command): Update.
7157 (addr_string_to_sals): Update.
7158 (decode_line_spec_1): Update.
7160 2011-04-04 Tom Tromey <tromey@redhat.com>
7162 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7163 (do_captured_parse_breakpoint): Remove.
7164 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7165 Use TRY_CATCH directly.
7167 2011-04-04 Tom Tromey <tromey@redhat.com>
7169 * symtab.h (free_symtab): Remove.
7170 (forget_cached_source_info_for_objfile): Declare.
7171 * symmisc.c (free_symtab): Remove.
7172 * source.c (forget_cached_source_info_for_objfile): New function.
7173 (forget_cached_source_info): Use it.
7174 * objfiles.c (free_objfile): Simplify check before calling
7175 clear_current_source_symtab_and_line. Call
7176 forget_cached_source_info_for_objfile.
7178 2011-04-04 Tom Tromey <tromey@redhat.com>
7180 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7181 (new_symtab): Don't set `free_code' on symtab.
7182 (new_linetable): Properly handle size==0.
7183 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7184 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7186 * jv-lang.c (struct jv_per_objfile_data): New.
7187 (jv_per_objfile_free): Free the data.
7188 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7189 (get_java_class_symtab): Set the `dict' field on the
7190 jv_per_objfile_data.
7191 (free_class_block): Remove.
7192 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7195 2011-04-04 Tom Tromey <tromey@redhat.com>
7197 * symfile.c (reread_symbols): Update.
7198 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7200 * objfiles.c (allocate_objfile): Update.
7201 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7203 * cp-namespace.c (lookup_symbol_file): Don't call
7204 lookup_possible_namespace_symbol.
7205 (initialize_namespace_symtab, get_possible_namespace_block)
7206 (free_namespace_block, cp_check_possible_namespace_symbols)
7207 (check_possible_namespace_symbols_loop)
7208 (check_one_possible_namespace_symbol)
7209 (lookup_possible_namespace_symbol): Remove.
7210 (maintenance_cplus_namespace): Replace with notice.
7211 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7213 2011-04-04 Tom Tromey <tromey@redhat.com>
7215 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7216 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7217 * symmisc.c (free_symtab): Don't free debugformat.
7218 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7219 (record_debugformat, record_producer): Document.
7220 * buildsym.c (end_symtab): Don't save debugformat and producer
7222 (end_symtab): Don't free debugformat and producer fields.
7223 (record_debugformat): Don't call xstrdup.
7224 (record_producer): Likewise.
7226 2011-04-04 Tom Tromey <tromey@redhat.com>
7228 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7229 (source_line_charpos, source_charpos_line): Remove.
7231 2011-04-04 Tom Tromey <tromey@redhat.com>
7233 * symtab.h (domain_enum): Split in two...
7234 (enum search_domain): New.
7235 (search_symbols): Update.
7236 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7237 redundant declarations.
7238 (search_symbols): Change 'kind' argument to search_domain.
7240 (print_symbol_info): Likewise.
7241 (symtab_symbol_info): Likewise.
7242 * symfile.h (struct quick_symbol_functions)
7243 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7244 <expand_symtabs_matching>: Likewise.
7245 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7246 (expand_symtabs_matching_via_partial): Update.
7247 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7248 (dw2_expand_symtabs_for_function): Update.
7249 * block.h: Moved anonymous enum...
7250 * defs.h (enum block_enum): ... here. Now named.
7252 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7254 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7255 * version.in: Bump version to 7.3.50.20110403-cvs.
7257 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7259 * NEWS: Create a new section for the next release branch.
7260 Rename the section of the current branch, now that it has
7263 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7265 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7266 for "fpscr" in target description.
7268 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7271 initialize it. Delay HASH initialization. Strip the part after open
7272 parenthesis for languages with qualifiers. Call do_cleanups.
7274 2011-04-01 Tom Tromey <tromey@redhat.com>
7276 * utils.c (report_command_stats): Don't print `-' for negative
7279 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7281 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7282 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7285 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7287 * breakpoint.h (bpdisp_text): Add declaration.
7288 * breakpoint.c (bpdisp_text): Make non-static.
7289 * ada-lang.c: #include "mi/mi-common.h".
7290 (print_it_exception): Rewrite to improve GDB/MI output.
7292 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7294 * arm-tdep.h (struct address_space): Add forward declaration.
7296 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7298 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7299 * arm-tdep.c (arm_override_mode): New global.
7300 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7301 execution mode heuristics.
7302 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7303 second single-step breakpoint if needed, using
7304 arm_insert_single_step_breakpoint.
7305 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7306 ARM execution mode, do not call thumb_get_next_pc_raw.
7307 (arm_get_next_pc): Encode execution mode in return value. Call
7308 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7309 (arm_insert_single_step_breakpoint): New function.
7310 (arm_software_single_step): Call it.
7311 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7312 argument to return execution mode of sigreturn target.
7313 (arm_linux_syscall_next_pc): Use it.
7314 (arm_linux_copy_svc): Update call.
7315 (arm_linux_software_single_step): Call
7316 arm_insert_single_step_breakpoint.
7318 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7320 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7323 2011-03-31 Tom Tromey <tromey@redhat.com>
7325 * varobj.c (update_dynamic_varobj_children): Properly handle
7326 errors from iterator.
7328 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7330 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7331 struct linkage name twice.
7333 2011-03-31 Tom Tromey <tromey@redhat.com>
7335 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7336 missing ">" to message.
7338 2011-03-31 Tom Tromey <tromey@redhat.com>
7340 * varobj.c (instantiate_pretty_printer): Remove duplicate
7343 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7345 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7346 if neither saved value nor register available (e.g. signal frame).
7348 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7350 * macroexp.c (expand): Avoid uninitialized variable
7353 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7355 * breakpoint.c (break_range_command): Fix typo in comment.
7357 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7358 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7360 Implement support for PowerPC BookE ranged breakpoints.
7361 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7362 * breakpoint.h (struct bp_target_info) <length>: New member
7364 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7365 instead of struct breakpoint as argument, and also add ASPACE
7366 and BP_ADDR arguments. Update all callers.
7367 (struct breakpoint_ops) <print_one_detail>: New method.
7368 (struct breakpoint) <addr_string_range_end>: New member variable.
7369 * breakpoint.c (breakpoint_location_address_match): Add function
7371 (insert_bp_location): Set bl->target_info.length.
7372 (breakpoint_here_p): Call breakpoint_location_address_match.
7373 (moribund_breakpoint_here_p): Likewise.
7374 (regular_breakpoint_inserted_here_p): Likewise.
7375 (breakpoint_thread_match): Likewise.
7376 (bpstat_stop_status): Likewise.
7377 (bpstat_check_location): Move call to
7378 breakpoint_ops.breakpoint_hit to the top.
7379 (print_one_breakpoint_location): Call
7380 breakpoint_ops.print_one_detail if available.
7381 (breakpoint_address_match_range): New function.
7382 (breakpoint_location_address_match): Likewise.
7383 (breakpoint_locations_match): Compare the length field of the
7385 (hw_breakpoint_used_count): Count resources used by all locations
7386 in a breakpoint, and use breakpoint_ops.resources_needed if
7388 (breakpoint_hit_ranged_breakpoint): New function.
7389 (resources_needed_ranged_breakpoint): Likewise.
7390 (print_it_ranged_breakpoint): Likewise.
7391 (print_one_ranged_breakpoint): Likewise.
7392 (print_one_detail_ranged_breakpoint): Likewise.
7393 (print_mention_ranged_breakpoint): Likewise.
7394 (print_recreate_ranged_breakpoint): Likewise.
7395 (ranged_breakpoint_ops): New structure.
7396 (find_breakpoint_range_end): New function.
7397 (break_range_command): Likewise.
7398 (delete_breakpoint): Free addr_string_range_end.
7399 (update_breakpoint_locations): Add SALS_END argument. Update
7400 all callers. Calculate breakpoint length if a non-zero SALS_END
7401 is given. Call breakpoint_locations_match instead of
7402 breakpoint_address_match.
7403 (reset_breakpoint): Find SaL of the end of the range if B is a
7405 (_initialize_breakpoint): Register break-range command.
7406 * defs.h (print_core_address): Add function prototype.
7407 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7409 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7410 (ppc_linux_remove_hw_breakpoint): Likewise.
7411 (_initialize_ppc_linux_nat): Initialize
7412 to_ranged_break_num_registers.
7413 * target.c (update_current_target): Add comment about
7414 to_ranged_break_num_registers.
7415 (target_ranged_break_num_registers): New function.
7416 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7418 (target_ranged_break_num_registers): Add function prototype.
7419 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7420 * utils.c (print_core_address): ... here.
7422 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7424 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7425 variable compiler warning.
7427 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7429 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7431 (re_set_breakpoint): ... to here ...
7432 (addr_string_to_sals): ... and here.
7434 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7436 * Makefile.in (SFILES): Add missing C sources.
7437 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7438 Add missing headers.
7440 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7442 * .gitignore: New file.
7444 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7446 * NEWS: Mention new cfi device simulation.
7448 2011-03-29 Tom Tromey <tromey@redhat.com>
7450 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7451 otherwise anonymous types.
7452 (dwarf2_name): Likewise.
7453 * valops.c (value_struct_elt_for_reference): Refine artificial
7454 type logic. Call error if j==-1.
7456 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7458 Fix false GCC warning.
7459 * infcall.c (find_function_addr): Initialize funaddr.
7461 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7463 Fix mingw compilation with --enable-targets=all.
7464 * remote-mips.c (gdb_usleep.h): Include header.
7465 (mips_enter_debug): Use gdb_usleep instead of sleep.
7467 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7469 Support resolution of STT_GNU_IFUNC via breakpoints.
7470 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7471 bp_gnu_ifunc_resolver_return.
7472 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7473 the loop. Support bp_gnu_ifunc_resolver and
7474 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7475 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7477 (bptype_string, print_one_breakpoint_location): Support
7478 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7479 (user_settable_breakpoint): Return true also for
7480 bp_gnu_ifunc_resolver.
7481 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7482 bp_gnu_ifunc_resolver_return.
7483 (set_breakpoint_location_function): New parameter explicit_loc,
7484 describe it. Call find_pc_partial_function_gnu_ifunc with new
7485 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7486 EXPLICIT_LOC is not set.
7487 (set_raw_breakpoint): Set EXPLICIT_LOC for
7488 set_breakpoint_location_function.
7489 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7490 set_breakpoint_location_function.
7491 (mention): Support bp_gnu_ifunc_resolver and
7492 bp_gnu_ifunc_resolver_return.
7493 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7494 set_breakpoint_location_function.
7495 (update_breakpoint_locations): Remove static.
7496 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7497 bp_gnu_ifunc_resolver_return.
7498 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7499 bp_gnu_ifunc_resolver_return.
7500 (update_breakpoint_locations): New declaration.
7501 * elfread.c: Include gdbthread.h and regcache.h.
7502 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7504 (elf_gnu_ifunc_fns): Install them.
7505 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7506 (stub_gnu_ifunc_resolver_return_stop): New functions.
7507 (stub_gnu_ifunc_fns): Install them.
7508 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7509 and gnu_ifunc_resolver_return_stop.
7510 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7512 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 STT_GNU_IFUNC reader implementation.
7515 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7516 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7517 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7518 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7519 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7520 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7521 (elf_gnu_ifunc_resolve_addr): New.
7522 (elf_symfile_read): Call elf_rel_plt_read.
7523 (elf_gnu_ifunc_fns): New.
7524 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7525 Install elf_gnu_ifunc_fns.
7526 * infcall.c (find_function_return_type): New function.
7527 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7528 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7529 (stub_gnu_ifunc_resolve_name): New functions.
7530 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7531 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7532 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7534 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7536 Code cleanup for later STT_GNU_IFUNC support.
7537 * infcall.c (find_function_addr): Remove variable code, use explicit
7538 dereferences for it. Move VALUE_TYPE initialization later.
7540 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7542 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7543 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7544 (clear_pc_function_cache): Clear it.
7545 (find_pc_partial_function): Rename to ...
7546 (find_pc_partial_function_gnu_ifunc): ... this function. New
7547 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7548 (find_pc_partial_function): New wrapper for this function.
7549 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7551 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7553 GDB internal type support for STT_GNU_IFUNC.
7554 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7555 (elf_symtab_read): Set mst_text_gnu_ifunc for
7556 BSF_GNU_INDIRECT_FUNCTION.
7557 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7558 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7559 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7560 nodebug_got_plt_symbol.
7561 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7562 (TYPE_GNU_IFUNC): New.
7563 (struct main_type): New field flag_gnu_ifunc.
7564 (struct builtin_type): New field builtin_func_func.
7565 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7566 nodebug_got_plt_symbol.
7567 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7568 (in_gnu_ifunc_stub): New.
7569 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7571 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7572 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7573 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7575 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7576 * symtab.c (search_symbols): Likewise.
7577 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7578 and mst_slot_got_plt.
7579 (in_gnu_ifunc_stub): New declaration.
7581 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7583 Support a ring of related breakpoints.
7584 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7585 other functions, add gdb_assert.
7586 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7587 watchpoint_del_at_next_stop.
7588 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7589 (bpstat_stop_status): Handle ring in related_breakpoint.
7590 (set_raw_breakpoint_without_location): Initialize ring in
7592 (delete_breakpoint): Handle ring in related_breakpoint, use
7593 watchpoint_del_at_next_stop.
7594 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7596 2011-03-28 Tom Tromey <tromey@redhat.com>
7599 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7600 with `language_minimal'.
7602 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7604 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7605 instead of checking for STT_ARM_TFUNC symbol type.
7607 2011-03-25 Tom Tromey <tromey@redhat.com>
7609 * linespec.c (symbol_found): Restore line-based result for
7610 non-LOC_LABEL symbols.
7612 2011-03-25 Kai Tietz <ktietz@redhat.com>
7614 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7615 instead of strcmp for comparison.
7616 (tui_source_is_displayed): Likewise.
7617 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7619 2011-03-24 Mark Wielaard <mjw@redhat.com>
7621 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7623 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7624 (find_partial_die_in_comp_unit): Likewise in comment.
7625 (read_attribute_value): Likewise.
7626 (lookup_die_type): Likewise.
7627 (dwarf_form_name): Likewise.
7628 (dump_die_shallow): Likewise.
7629 (follow_die_ref_or_sig): Likewise.
7631 2011-03-24 Tom Tromey <tromey@redhat.com>
7633 PR breakpoints/11816:
7634 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7635 (decode_compound): Update.
7636 (find_function_symbol): New function.
7637 (decode_dollar): Update.
7638 (decode_label): Add 'function_symbol' parameter. Handle
7639 function-relative labels.
7640 (decode_variable): Update.
7641 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7642 not its line. Set `special_display' and canonical name for
7645 2011-03-24 Tom Tromey <tromey@redhat.com>
7647 * linespec.h (struct linespec_result) <special_display>: New
7649 * breakpoint.h (struct breakpoint) <display_canonical>: New
7651 * breakpoint.c (print_breakpoint_location): Respect
7653 (create_breakpoint_sal): Add 'display_canonical' parameter.
7654 (create_breakpoints_sal): Update.
7655 (create_breakpoint): Update.
7657 2011-03-24 Tom Tromey <tromey@redhat.com>
7659 * symtab.c (decode_line_spec): Update.
7660 * linespec.c (build_canonical_line_spec): Change type of
7662 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7663 (find_method, decode_all_digits, decode_dollar, decode_label)
7664 (symbol_found): Likewise.
7665 (init_linespec_result): New function.
7666 * breakpoint.c (struct captured_parse_breakpoint_args)
7667 <canonical_p>: New field, replaces addr_string_p.
7668 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7670 (parse_breakpoint_sals): Likewise.
7671 (do_captured_parse_breakpoint): Update.
7672 (create_breakpoint): Use struct linespec_result.
7673 (until_break_command): Update.
7674 (breakpoint_re_set_one): Update.
7675 (decode_line_spec_1): Update.
7676 * linespec.h (struct linespec_result): New.
7677 (init_linespec_result): Declare.
7679 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7681 * regcache.c (regcache_raw_read): If the target didn't supply a
7682 given raw register, mark it as unavailable.
7684 2011-03-23 Kai Tietz <ktietz@redhat.com>
7686 * breakpoint.c (clear_command): Use filename_cmp
7687 instead of strcmp for comparison.
7688 * buildsym.c (watch_main_source_file_lossage): Likewise.
7689 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7690 checking just for slash.
7691 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7692 strrchr and filename_cmp instead of strcmp for filenames.
7693 (add_old_header_file): Use filename_cmp
7694 instead of strcmp for comparison.
7695 * exec.c (exec_set_section_address): Likewise.
7696 * macrotab.c (macro_lookup_inclusion): Likewise.
7697 (macro_lookup_inclusion): Likewise.
7698 * elfread.c (_initialize_elfread): Likewise.
7699 (elfstab_offset_sections): Likewise.
7700 (elfstab_offset_sections): Use lbasename instead of
7702 * mdebugread.c (parse_partial_symbols): Likewise.
7703 (arse_partial_symbols): Use filename_(n)cmp instead of
7704 str(n)cmp for comparison.
7705 * minsyms.c (lookup_minimal_symbol): Likewise.
7706 * psymtab.c (read_psymtabs_with_filename): Likewise.
7707 * solib.c (solib_read_symbols): Likewise.
7708 (reload_shared_libraries_1): Likewise.
7709 * symmisc.c (maintenance_print_symbols): Likewise.
7710 * symfile.c (separate_debug_file_exists): Likewise.
7711 (reread_symbols): Likewise.
7712 (find_separate_debug_file_by_debuglink): Likewise.
7713 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7714 * source.c (add_path): Likewise.
7715 * symtab.c (filename_seen): Likewise.
7716 (file_matches): Likewise.
7717 (print_symbol_info): Likewise.
7718 (maybe_add_partial_symtab_filename): Likewise.
7719 (make_source_files_completion_list): Likewise.
7720 * xml-syscall.c (init_sysinfo): Likewise.
7721 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7722 IS_DIR_SEPARATOR for checking for trailing path separator.
7724 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7726 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7727 label abort_expression.
7728 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7729 DWARF_VALUE_OPTIMIZED_OUT.
7731 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7734 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7735 to linkage_name. Invert its value. Update the function comment.
7736 (c_type_print_varspec_suffix): Invert it at the caller.
7737 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7739 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7741 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7742 errors when reading the `stop_pc'.
7743 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7746 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7748 * NEWS: Document gdb.Write stream keyword.
7750 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7753 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7754 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7755 (dwarf2_add_field): Fix new_field->accessibility for
7756 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7758 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7762 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7763 other error classes. Do not print stack trace.
7765 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7767 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7768 (dwarf2_add_field): Fix new_field->accessibility for
7769 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7771 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7773 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7774 encountering a load via a non-SP register.
7776 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7778 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7779 field in returned unwinder.
7781 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7783 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7785 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7787 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7790 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7792 * frame.c (frame_unwind_register): Throw an error if unwinding the
7794 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7795 an unwind stop reason.
7796 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7797 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7798 UNWIND_UNAVAILABLE>: New.
7799 * inline-frame.c (inline_frame_unwind): Install
7800 default_frame_unwind_stop_reason.
7801 * frame-unwind.c: Include "exceptions.h".
7802 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7803 (default_frame_unwind_stop_reason): New.
7804 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7805 (default_frame_unwind_stop_reason): Declare.
7806 (struct frame_unwind) <stop_reason>: New function pointer.
7808 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7809 * dwarf2-frame.c: Include exceptions.h.
7810 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7811 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7812 computing the CFA. If such an error was thrown, set
7813 unavailable_retaddr.
7814 (dwarf2_frame_unwind_stop_reason): New.
7815 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7817 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7818 (dwarf2_signal_frame_unwind): Ditto.
7820 * amd64-tdep.c: Include "exceptions.h".
7821 (struct amd64_frame_cache): New field "base_p".
7822 (amd64_init_frame_cache): Clear it.
7823 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7824 Avoid reading registers with functions that throw if the register
7825 is not necessary to compute the frame base.
7826 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7827 swallowing NOT_AVAILABLE_ERROR.
7828 (amd64_frame_unwind_stop_reason): New.
7829 (amd64_frame_this_id): Don't build a frame id if the frame base
7831 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7832 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7833 base_p if the frame base was computable.
7834 (amd64_sigtramp_frame_unwind_stop_reason): New.
7835 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7836 frame base was unavailable.
7837 (amd64_sigtramp_frame_unwind): Install
7838 amd64_sigtramp_frame_unwind_stop_reason.
7839 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7840 base_p if the frame base was computable.
7841 (amd64_epilogue_frame_unwind_stop_reason): New.
7842 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7843 frame base was unavailable.
7844 (amd64_epilogue_frame_unwind): Install
7845 amd64_epilogue_frame_unwind_stop_reason.
7846 * i386-tdep.c: Include "exceptions.h".
7847 (struct i386_frame_cache): New field "base_p".
7848 (i386_init_frame_cache): Clear it.
7849 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7850 Avoid reading registers with functions that throw if the register
7851 is not necessary to compute the frame base.
7852 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7853 swallowing NOT_AVAILABLE_ERROR.
7854 (i386_frame_unwind_stop_reason): New.
7855 (i386_frame_this_id): Don't build a frame id if the frame base was
7857 (i386_frame_prev_register): Handle unavailable SP.
7858 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7859 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7860 base_p if the frame base was computable.
7861 (i386_epilogue_frame_unwind_stop_reason): New.
7862 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7863 base was unavailable.
7864 (i386_epilogue_frame_unwind): Install
7865 i386_epilogue_frame_unwind_stop_reason.
7866 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7867 base_p if the frame base was computable.
7868 (i386_sigtramp_frame_unwind_stop_reason): New.
7869 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7870 base was unavailable.
7871 (i386_sigtramp_frame_unwind): Install
7872 i386_sigtramp_frame_unwind_stop_reason.
7873 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7874 type's size, not the register's.
7875 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7877 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7878 default_frame_unwind_stop_reason.
7879 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7880 (alpha_heuristic_frame_unwind): Ditto.
7881 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7882 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7883 * avr-tdep.c (avr_frame_unwind): Ditto.
7884 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7886 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7887 * frv-tdep.c (frv_frame_unwind): Ditto.
7888 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7889 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7890 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7891 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7892 (hppa_stub_frame_unwind): Ditto.
7893 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7894 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7895 (ia64_libunwind_frame_unwind)
7896 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7897 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7898 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7899 * m32c-tdep.c (m32c_unwind): Ditto.
7900 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7901 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7902 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7903 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7904 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7905 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7906 * mep-tdep.c (mep_frame_unwind): Ditto.
7907 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7908 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7909 (mips_stub_frame_unwind): Ditto.
7910 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7911 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7912 * mt-tdep.c (mt_frame_unwind): Ditto.
7913 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7914 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7915 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7916 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7917 (s390_sigtramp_frame_unwind): Ditto.
7918 * score-tdep.c (score_prologue_unwind): Ditto.
7919 * sh-tdep.c (sh_frame_unwind): Ditto.
7920 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7921 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7922 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7923 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7924 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7925 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7926 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7927 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7928 (sparc64obsd_trapframe_unwind): Ditto.
7929 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7930 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7931 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7932 * v850-tdep.c (v850_frame_unwind): Ditto.
7933 * vax-tdep.c (vax_frame_unwind): Ditto.
7934 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7935 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7936 * xtensa-tdep.c (xtensa_unwind): Ditto.
7938 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7940 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7941 there's always a frame. Use get_frame_pc_if_available instead of
7942 get_frame_pc, and if there's no PC available, don't look up a
7945 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7947 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7950 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7952 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7955 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7957 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7958 * frame.c (frame_unwind_caller_pc_if_available): New.
7959 * stack.c (frame_info): Handle unavailable PC.
7961 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7963 * frame.c (frame_unwind_pc): Rename to ...
7964 (frame_unwind_pc_if_available): ... this. New `pc' output
7965 parameter. Change return type to int. Gracefully handle
7966 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7967 happened, or 1 otherwise.
7968 (frame_unwind_pc): Reimplement on top of
7969 frame_unwind_pc_if_available.
7970 (get_frame_func): Rename to ...
7971 (get_frame_func_if_available): New `pc' output parameter. Change
7972 return type to int. Gracefully handle the PC not being available.
7973 (get_frame_func): Reimplement on top of
7974 get_frame_func_if_available.
7975 (select_frame): Handle the PC being unavailable.
7976 (get_prev_frame): Handle the PC being unavailable.
7977 (get_frame_pc_if_available): New.
7978 (get_frame_address_in_block_if_available): New.
7979 (find_frame_sal): Handle the frame PC not being available.
7980 * frame.h (get_frame_pc_if_available): Declare.
7981 (get_frame_address_in_block_if_available): Declare.
7982 (get_frame_func_if_available): Declare.
7983 * stack.c (print_frame_info): Handle the PC being unavailable.
7984 (find_frame_funname): Ditto.
7985 (print_frame): Handle the PC being unavailable.
7986 (get_frame_language): Ditto.
7987 * blockframe.c (get_frame_block): Ditto.
7988 * macroscope.c (default_macro_scope): Ditto.
7989 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7991 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7993 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7994 NOT_AVAILABLE_ERROR when evaluating the location expression.
7996 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7998 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7999 returning that the register piece is unavailable/optimized out.
8000 (write_pieced_value): Handle get_frame_register_bytes returning
8001 that the register piece is unavailable/optimized out when doing a
8002 read-modify write of a bitfield.
8003 * findvar.c (value_from_register): Handle get_frame_register_bytes
8004 returning that the register piece is unavailable/optimized out.
8005 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8006 and `unavailablep'. Throw error on bad debug info. Use
8007 frame_register instead of frame_register_read, to fill in the new
8009 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8011 * valops.c: (value_assign): Adjust, and handle
8012 get_frame_register_bytes failing.
8013 * spu-tdep.c: Include exceptions.h.
8014 (spu_software_single_step): Adjust, and handle
8015 get_frame_register_bytes failing.
8016 (spu_get_longjmp_target): Ditto.
8017 * gdbarch.sh (register_to_value): Change to return int. New
8018 parameters `optimizedp' and `unavailablep'.
8019 * gdbarch.h, gdbarch.c: Regenerate.
8020 * i386-tdep.c (i386_register_to_value): Adjust to new
8021 gdbarch_register_to_value interface.
8022 * i387-tdep.c (i387_register_to_value): Ditto.
8023 * i387-tdep.h (i387_register_to_value): Ditto.
8024 * alpha-tdep.c (alpha_register_to_value): Ditto.
8025 * ia64-tdep.c (ia64_register_to_value): Ditto.
8026 * m68k-tdep.c (m68k_register_to_value): Ditto.
8027 * mips-tdep.c (mips_register_to_value): Ditto.
8028 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8030 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8032 * findvar.c (value_of_register): Mark the value as unavailable, if
8033 the register is unavailable.
8034 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8035 (frame_register): New `unavailablep' parameter.
8036 (frame_register_read): Update comment.
8037 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8038 Set it if the register is unavailable. If the register is
8039 unavailable, clear the output buffer.
8040 (frame_register): New `unavailablep' parameter. Pass it down.
8041 (frame_unwind_register): Adjust.
8042 (put_frame_register): Adjust.
8043 (frame_register_read): Adjust. Also return false if the register
8045 (frame_register_unwind_location): Adjust.
8046 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8047 is unavailable, mark the value accordingly.
8048 * stack.c (frame_info): Handle unavailable registers.
8050 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8052 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8053 simplify, using regcache_cooked_read.
8055 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8057 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8058 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8059 (regcache_raw_read_unsigned, regcache_raw_read_part)
8060 (regcache_cooked_read, regcache_cooked_read_signed)
8061 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8062 (regcache_cooked_read_ftype): Change return to enum
8064 * regcache.c: Include exceptions.h
8065 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8066 (do_cooked_read): Change return to enum register_status. Always
8067 forward to regcache_cooked_read.
8068 (regcache_raw_read): Change return to enum register_status. If
8069 the register is not REG_VALID, memset the buffer. Return the
8071 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8072 return the register's status.
8073 (regcache_raw_read_unsigned): Ditto.
8074 (regcache_cooked_read): Change return to enum register_status.
8075 Assert that with read-only regcaches, the register's status must
8076 be known. If the regcache is read-only, and the register is not
8077 REG_VALID, memset the buffer. Return the register's status.
8078 (regcache_cooked_read_signed): Change return to enum
8079 register_status. Handle non-REG_VALID registers and return the
8081 (regcache_cooked_read_unsigned): Change return to enum
8082 register_status. Handle non-REG_VALID registers and return the
8084 (regcache_xfer_part, regcache_raw_read_part)
8085 (regcache_cooked_read_part): Change return to enum
8086 register_status. Return the register's status.
8087 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8089 (regcache_dump): Handle unavailable cooked registers.
8090 * frame.c (do_frame_register_read): Adjust interface to match
8091 regcache_cooked_read_ftype.
8092 * gdbarch.sh (pseudo_register_read): Change return to enum
8094 * gdbarch.h, gdbarch.c: Regenerate.
8096 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8098 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8099 register_status. If reading a raw register indicates the raw
8100 register is not valid, return the raw register's status,
8101 otherwise, return REG_VALID.
8102 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8103 register_status. Handle non-REG_VALID raw registers and return
8104 the register's status.
8105 * arm-tdep.c (arm_neon_quad_read)
8106 (arm_pseudo_read): Change return to enum register_status. Handle
8107 non-REG_VALID raw registers and return the register's status.
8108 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8109 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8110 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8111 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8112 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8114 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8115 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8116 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8117 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8118 (m32c_pseudo_register_read): Change return to enum
8119 register_status. Adjust.
8120 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8121 enum register_status. Return the register's status.
8122 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8123 register_status. Return the register's status.
8124 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8125 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8126 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8127 * rs6000-tdep.c (move_ev_register_func): New typedef.
8128 (e500_move_ev_register): Use it. Change return to enum
8129 register_status. Return the register's status.
8130 (do_regcache_raw_read): New function.
8131 (do_regcache_raw_write): New function.
8132 (e500_pseudo_register_read): Change return to enum
8133 register_status. Return the register's status. Use
8134 do_regcache_raw_read.
8135 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8136 (dfp_pseudo_register_read): Change return to enum register_status.
8137 Return the register's status.
8138 (vsx_pseudo_register_read): Ditto.
8139 (efpr_pseudo_register_read): Ditto.
8140 (rs6000_pseudo_register_read): Ditto.
8141 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8142 register_status. Return the register's status.
8143 * sh64-tdep.c (pseudo_register_read_portions): New function.
8144 (sh64_pseudo_register_read): Change return to enum
8145 register_status. Use pseudo_register_read_portions. Return the
8147 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8148 register_status. Return the register's status.
8149 * sh-tdep.c (pseudo_register_read_portions): New function.
8150 (sh_pseudo_register_read): Change return to enum register_status.
8151 Use pseudo_register_read_portions. Return the register's status.
8152 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8153 enum register_status. Return the register's status.
8154 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8155 * spu-tdep.c (spu_pseudo_register_read_spu)
8156 (spu_pseudo_register_read): Ditto.
8157 * xtensa-tdep.c (xtensa_register_read_masked)
8158 (xtensa_pseudo_register_read): Ditto.
8159 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8161 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8163 * python/py-value.c (valpy_getitem): Fix formatting of error function
8166 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8168 ARI fixes: Add missing internationalization markups throughout
8170 * darwin-nat-info.c: Ditto.
8173 * mi/mi-main.c: Ditto.
8175 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8177 ARI fixes: Add missing internationalization markups throughout
8180 * cp-name-parser.y: Ditto.
8183 * objc-exp.y: Ditto.
8186 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8188 ARI fixes: Messages should have no trailing new lines.
8189 * darwin-nat.c (mach_check_error): Remove trailing new line from
8190 warning function call message.
8191 * record.c (bfdcore_read): Idem for error call.
8193 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8195 * common/signals.c (target_signal_from_host): Add _ markup to error
8196 function call message.
8197 (target_signal_to_host): Add _ markup and remove trailing new line
8198 from warning call message.
8199 (target_signal_from_command): Add _ markup to error function call
8202 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8206 * python/python.c (gdbpy_write): Accept a stream argument and
8207 operate to the appropriate stream.
8208 (gdbpy_flush): Likewise.
8209 (_initialize_python): Add stream constants.
8210 (finish_python_initialization): Add GdbOutputErrorFile class.
8212 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8214 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8216 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8218 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8219 to store_signed_integer. Add debug message when relocating CALL
8220 instructions. Fix formatting of debug message.
8221 * i386-tdep.c (i386_relocate_instruction): Ditto.
8223 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8225 * target.h (struct target_ops): Remove to_lookup_symbol field.
8226 (target_lookup_symbol): Delete macro.
8227 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8228 (update_current_target, setup_target_debug): Remove handling
8229 of to_lookup_symbol target_ops field.
8230 * ada-tasks.c (get_known_tasks_addr): Remove use of
8231 target_lookup_symbol.
8232 * coffread.c (coff_symtab_read): Likewise.
8233 * dbxread.c (read_dbx_symtab): Ditto.
8235 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8238 * configure.ac: Add getthrds declaration check.
8239 * configure, config.in: Regenerate.
8240 * aix-thread.c (getthrds): Declare only if not already declared
8241 in procinfo.h. More declaration out of get_signaled_thread to
8244 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8246 * python/py-symtab.c: Populate symtab_object_methods,
8248 (stpy_is_valid): New function.
8249 (salpy_is_valid): Ditto.
8250 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8251 (sympy_is_valid): New function.
8252 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8253 (objfpy_is_valid): New function.
8254 * python/py-inferior.c: Populate inferior_object_methods.
8255 (infpy_is_valid): New function.
8256 * python/py-infthread.c: Populate thread_object_methods.
8257 (thpy_is_valid): New function.
8258 * python/py-block.c: Declare block_object_methods. Populate. Declare
8259 block_iterator_object_methods. Populate.
8260 (blpy_is_valid): New function.
8261 (blpy_iter_is_valid): Ditto.
8263 2011-03-16 Keith Seitz <keiths@redhat.com>
8265 * linespec.c (find_methods): Canonicalize NAME before looking
8267 (name_end): New function.
8268 (keep_name_info): New function.
8269 (decode_line_1): Use keep_name_info.
8270 (decode_compound): Likewise.
8271 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8272 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8275 * linespec.c (locate_first_half): Keep overload information, too.
8276 (decode_compound): Use a string to represent break characters
8278 If P points to a break character, do not increment it.
8279 For C++ and Java, keep overload information and relevant keywords.
8280 If we cannot find a symbol, search the minimal symbols.
8283 * linespec.c (decode_compound): Rename SAVED_ARG to
8285 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8287 Pass a valid block to lookup_symbol.
8288 (lookup_prefix_sym): Likewise.
8289 (find_method): Construct search name based on SYM_CLASS instead
8291 * psymtab.c (lookup_partial_symbol): Add language parameter.
8292 (lookup_symbol_aux_psymtabs): Likewise.
8293 Don't assume that the psymtab we found was the right one. Search
8294 for the desired symbol in the symtab to be certain.
8295 (psymtab_search_name): New function.
8296 (lookup_partial_symbol): Use psymtab_search_name.
8297 Add language parameter.
8298 (read_symtabs_for_function): Add language parameter and pass to
8299 lookup_partial_symbol.
8300 (find_symbol_file_from_partial): Likewise.
8302 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8305 * dwarf2read.c (noop_record_line): New function.
8306 (dwarf_decode_lines): Ignore line tables for GCd functions.
8308 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8310 Fix ARI warnings about new lines at the end of messages, which
8311 are unneeded as there is a new line added at the end of the message
8313 * darwin-nat.c (darwin_stop_inferior): Ditto.
8314 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8315 * dfp.c (decimal_to_number): Ditto.
8316 * exec.c (print_section_info): Ditto.
8317 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8318 * osdata.c (get_osdata): Ditto.
8319 * record.c (bfdcore_write): Ditto.
8320 * remote-mips.c (mips_readchar): Ditto.
8321 * remote.c (read_ptid): Ditto.
8322 * ser-mingw.c (ser_windows_raw): Ditto.
8323 * tracepoint.c (add_local_symbols): Ditto.
8324 * windows-nat.c (fake_create_process): Ditto.
8326 2011-03-16 Tom Tromey <tromey@redhat.com>
8328 * tracepoint.c (stop_tracing): Don't declare.
8329 * event-top.c (after_char_processing_hook): Add `(void)'.
8331 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8333 * NEWS: Add Parameter sub-classing description.
8335 2011-03-16 Kai Tietz <ktietz@redhat.com>
8337 * MAINTAINERS: Update my e-mail address.
8339 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8341 * MAINTAINERS: Add myself for write after approval privileges.
8343 2011-03-15 Michael Snyder <msnyder@vmware.com>
8345 * frame.c (find_frame_sal): Assert sym is not null.
8347 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8349 * objc-lang.c (selectors_info): Check strchr for null result.
8351 * stabsread.c (define_symbol): Guard against bad stabstring input.
8353 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8355 Remove trailing spaces and tabulations from pascal language
8360 p-valprint.c: Ditto.
8362 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8364 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8365 than LOW. Comment it.
8366 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8367 HIGHPC not strictly higher than LOWPC.
8369 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8371 Fix formatting of function declarations returning a pointer in
8373 * varobj.c (varobj_add_child): Ditto.
8374 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8375 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8377 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8380 for the "generic" vector ABI used with GCC 4.3 and later.
8381 (ppc64_sysv_abi_return_value): Likewise.
8383 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8385 * infcall.c (call_function_by_hand): Function return value is
8386 always a non_lval, even when using struct_return.
8388 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8390 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8391 (map_display_numbers): New.
8392 (do_delete_display): New.
8393 (undisplay_command): Use map_display_numbers.
8394 (do_enable_disable_display): New.
8395 (enable_disable_display_command): New function.
8396 (enable_display): Delete.
8397 (enable_display_command): New.
8398 (disable_display_command): Reimplement.
8399 (_initialize_printcmd): Adjust "enable display" command to use
8400 `enable_display_command' as callback.
8402 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8404 * NEWS: Add Python breakpoint 'stop' operation.
8406 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8408 * NEWS: Delete duplicate entry. Fix typo.
8410 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8412 Fix ARI warning about function names in first column.
8413 Put prototype declaration on same line as return type.
8414 * objc-exp.y: Ditto.
8416 * python/py-stopevent.h: Ditto.
8417 For long function names, split parameters to
8418 allow function name on same line as return type.
8419 * solib-pa64.c: Ditto.
8422 For long function declaration, use single line.
8423 * hppa-tdep.h: Ditto.
8424 * inferior.h: Ditto.
8426 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8428 * python/python.h: Declare gdbpy_should_stop and
8429 gdbpy_breakpoint_has_py_cond.
8430 * python/python.c: Add python.h to includes. Remove python.h from
8431 HAVE_PYTHON definition
8432 (gdbpy_should_stop): New dummy function.
8433 (gdbpy_breakpoint_has_py_cond): New dummy function.
8434 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8435 sub-classing capabilities.
8436 (gdbpy_should_stop): New function.
8437 (gdbpy_breakpoint_has_py_cond): New function.
8438 (local_setattro): New function.
8439 * breakpoint.c (condition_command): Add check for Python 'stop'
8441 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8442 operation function as part of stop/continue tests.
8444 2011-03-14 Tom Tromey <tromey@redhat.com>
8447 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8448 (needs_frame_dwarf_call): Likewise.
8450 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8452 Fix ARI warning about functions without parameters that do not
8454 * breakpoint.c (all_tracepoints): Replace () by (void).
8455 * f-exp.y (match_string_literal): Ditto.
8457 * m2-exp.y (yylex): Ditto.
8458 * mep-tdep.c (current_me_module): Ditto.
8459 (current_options): Ditto.
8460 (current_cop_data_bus_width): Ditto.
8461 (current_cr_names): Ditto.
8462 (current_cr_is_float): Ditto.
8463 (current_ccr_names): Ditto.
8464 * objc-exp.y (yylex): Ditto.
8465 * p-exp.y (yylex): Ditto.
8466 * remote.c (send_interrupt_sequence): Ditto.
8467 * tracepoint.c (current_trace_status): Ditto.
8468 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8469 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8471 2011-03-11 Michael Snyder <msnyder@vmware.com>
8473 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8474 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8475 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8476 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8477 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8479 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8480 (delete_async_event_handler): Ditto.
8482 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8484 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8486 * top.c (set_verbose): Assert showcmd was found.
8488 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8490 * xtensa-tdep.c (warning_once): Correct style issues.
8492 2011-03-11 Yao Qi <yao@codesourcery.com>
8494 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8496 2011-03-11 Andreas Schwab <schwab@redhat.com>
8498 * common/aclocal.m4: Remove.
8500 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8502 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8503 (xtensa_write_register, xtensa_read_register): Likewise.
8504 (xtensa_hextochar): Removed.
8505 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8507 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8509 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8510 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8511 (xtensa_alloc_frame_cache): Add initialization for new fields.
8512 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8513 (warning_once): New function.
8514 (xtensa_insn_kind): New item c0opc_and.
8515 (call0_classify_opcode): Add the case for AND instruction.
8516 (call0_track_op): Change arguments. New local variable litbase.
8517 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8518 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8520 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8521 (call0_analyze_prologue): Update the comments. Change arguments.
8522 Add the variety of updates to handle extended prologues, which now can
8523 conduct dynamic stack adjustments.
8524 (call0_frame_cache): Likewise.
8525 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8526 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8528 2011-03-10 Michael Snyder <msnyder@vmware.com>
8530 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8531 (cmd_qtframe): Ditto.
8532 (cmd_qtbuffer): Ditto.
8533 (cmd_bigqtbuffer): Ditto.
8535 2011-03-10 Tom Tromey <tromey@redhat.com>
8537 * tracepoint.c (trace_actions_command): Update.
8538 * thread.c (thread_apply_command): Update.
8539 * reverse.c (delete_bookmark_command): Update.
8540 (bookmarks_info): Update.
8541 * printcmd.c (undisplay_command): Update.
8542 * memattr.c (mem_enable_command): Update.
8543 (mem_disable_command): Update.
8544 (mem_delete_command): Update.
8545 * inferior.c (detach_inferior_command): Update.
8546 (kill_inferior_command): Update.
8547 (remove_inferior_command): Update.
8548 * cli/cli-utils.h (struct get_number_or_range_state): New.
8549 (init_number_or_range): Declare.
8550 (get_number_or_range): Update.
8551 * cli/cli-utils.c (init_number_or_range): New function.
8552 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8554 (number_is_in_list): Update.
8555 * breakpoint.h (get_tracepoint_by_number): Update.
8556 * breakpoint.c (map_breakpoint_numbers): Update for change to
8557 get_number_or_range.
8558 (find_location_by_number): Use get_number, not
8559 get_number_or_range.
8560 (trace_pass_set_count): New function.
8561 (trace_pass_command): Update for change to get_number_or_range.
8563 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8566 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8568 * python/py-param.c (add_setshow_generic): Add set/show callback
8569 parameters. Register Python object context.
8570 (get_show_value): New function.
8571 (get_set_value): New function.
8572 (call_doc_function): New function.
8573 (get_doc_string): Move behind get_show_value/get_set_value.
8575 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8577 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8579 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8581 * xtensa-tdep.c (xtensa_read_register): Add comment.
8582 (xtensa_write_register): Likewise.
8583 (xtensa_hextochar): Add comment and update to match coding conventions.
8584 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8585 (execute_l32e, execute_s32e, execute_code): Update comments.
8586 (xtensa_exception_handler_t): Update to match coding conventions.
8587 (xtensa_insn_kind): Likewise.
8589 2011-03-09 Michael Snyder <msnyder@vmware.com>
8591 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8593 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8595 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8597 2011-03-09 Tom Tromey <tromey@redhat.com>
8599 * thread.c (restore_selected_frame): Handle frame_level == -1.
8600 (make_cleanup_restore_current_thread): Use
8601 get_selected_frame_if_set.
8602 * frame.h (get_selected_frame_if_set): Declare.
8603 * frame.c (get_selected_frame_if_set): New function.
8605 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8607 * cli/cli-cmds.c (shell_escape): Use lbasename.
8608 * coffread.c (coff_start_symtab): Constify parameter.
8609 (complete_symtab): Constify `name' parameter.
8610 (coff_symtab_read): Constify `filestring' local.
8611 (coff_getfilename): Constify return and `result' local.
8613 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8614 * linux-fork.c (info_checkpoints_command): Use lbasename.
8615 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8616 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8617 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8618 * procfs.c (procfs_make_note_section): Use lbasename.
8619 * tui/tui-io.c (printable_part): Constity return and parameter.
8621 (print_filename): Constify parameters, and local `s'.
8622 (tui_rl_display_match_list): Constify local `temp'.
8624 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8627 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8628 Fix DWARF-3+ DW_AT_accessibility default assumption.
8629 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8630 cu->header.version >= 3.
8632 2011-03-09 Yao Qi <yao@codesourcery.com>
8634 * common/Makefile.in: Remove.
8635 * common/configure: Remove.
8636 * common/configure.ac: Remove.
8638 2011-03-09 Yao Qi <yao@codesourcery.com>
8641 2011-02-11 Yao Qi <yao@codesourcery.com>
8643 * common/Makefile.in: Add copyright header.
8645 2011-02-11 Yao Qi <yao@codesourcery.com>
8647 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8649 * configure.ac: Add common to sub dir.
8650 * configure: Regenerate.
8652 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8654 * xtensa-tdep.c (call0_ret): New function.
8655 (xtensa_skip_prologue): Speed up analysis.
8657 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8659 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8660 while executing MI command -data-list-changed-registers.
8662 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8664 * xtensa-tdep.c (xtensa_read_register): New function.
8665 (xtensa_write_register): New function.
8666 (xtensa_find_register_by_name): New function.
8667 (xtensa_windowed_frame_cache): Update comments in type description.
8668 (xtensa_frame_cache): Likewise.
8669 (xtensa_window_interrupt_insn): New function.
8670 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8671 (xtensa_insn_kind): Add new instructions.
8672 (rwx_special_register): New function.
8673 (call0_classify_opcode): Add new instructions to the analysis.
8674 (a0_saved, a7_saved, a11_saved): New variables.
8675 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8676 (execute_l32e): New function.
8677 (execute_s32e): New function.
8678 (xtensa_exception_handler_t): New type.
8679 (execute_code): New function.
8680 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8681 analysis for Xtensa Window Exception handlers.
8683 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8685 * xtensa-tdep.c (TX_PS): New.
8686 (windowing_enabled): Update to count for Call0 ABI.
8687 (xtensa_hextochar): New.
8688 (xtensa_init_reggroups): Make algorithm generic.
8689 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8691 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8693 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8695 2011-03-08 Michael Snyder <msnyder@vmware.com>
8697 * i386-tdep.c (i386_follow_jump): Check return value of
8699 (i386_analyze_struct_return): Ditto.
8700 (i386_skip_probe): Ditto.
8701 (i386_match_insn): Ditto.
8702 (i386_skip_noop): Ditto.
8703 (i386_analyze_frame_setup): Ditto.
8704 (i386_analyze_register_saves): Ditto.
8705 (i386_skip_prologue): Ditto.
8706 (i386_skip_main_prologue): Ditto.
8708 * target.c (read_whatever_is_readable): Fix memory leak.
8710 * i386-tdep.c (i386_process_record): Document fall through.
8712 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8714 Fix DWARF-3+ DW_AT_accessibility default assumption.
8715 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8716 cu->header.version >= 3.
8718 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8720 * remote.c (remote_check_symbols): Skip if the target has no
8723 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8725 * target.c (read_whatever_is_readable): Reformat comment,
8726 with a minor typo fix. Minor reformatting of the code.
8728 2011-03-08 Yao Qi <yao@codesourcery.com>
8730 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8731 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8732 Use cached result instead of calling displaced_in_arm_mode again.
8733 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8734 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8735 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8736 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8737 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8738 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8739 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8740 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8741 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8742 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8743 (arm_catch_kernel_helper_return): Likewise.
8744 * gdb/arm-tdep.h : Update function declarations.
8746 2011-03-07 Michael Snyder <msnyder@vmware.com>
8748 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8750 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8752 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8754 * elfread.c (elf_symtab_read): Stop memory leak.
8756 * main.c (captured_main): Fix memory leak.
8758 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8760 * ada-lang.c (compare_names): Call is_name_suffix with string1
8763 2011-03-07 Tom Tromey <tromey@redhat.com>
8765 * xcoffread.c (xcoff_sym_fns): Update.
8766 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8767 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8768 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8769 (symbol_file_add_with_addrs_or_offsets): Likewise.
8770 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8771 * somread.c (som_sym_fns): Update.
8772 * psymtab.h (require_partial_symbols): Declare.
8773 * psymtab.c (require_partial_symbols): New function.
8774 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8775 (ALL_OBJFILE_PSYMTABS): Undef.
8776 (ALL_PSYMTABS): Move from psympriv.h.
8777 (lookup_partial_symtab, find_pc_sect_psymtab)
8778 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8779 (find_last_source_symtab_from_partial)
8780 (forget_cached_source_info_partial)
8781 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8782 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8783 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8784 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8785 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8786 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8787 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8788 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8789 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8791 * mipsread.c (ecoff_sym_fns): Update.
8792 * machoread.c (macho_sym_fns): Update.
8793 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8794 (read_psyms): New function.
8795 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8796 (elf_sym_fns_lazy_psyms): New global.
8797 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8798 dwarf2_build_psymtabs.
8799 * dbxread.c (aout_sym_fns): Update.
8800 * coffread.c (coff_sym_fns): Update.
8802 2011-03-07 Tom Tromey <tromey@redhat.com>
8804 * infrun.c (print_exited_reason): Include inferior id and pid in
8807 2011-03-07 Tom Tromey <tromey@redhat.com>
8809 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8811 (target_has_execution_1): Update.
8812 (target_has_execution_current): Declare.
8813 (target_has_execution): Call target_has_execution_current.
8814 (default_child_has_execution): Update.
8815 * target.c (default_child_has_execution): Add 'the_ptid'
8817 (target_has_execution_1): Likewise.
8818 (target_has_execution_current): New function.
8819 (add_target): Update.
8820 (init_dummy_target): Update.
8821 * remote-m32r-sdi.c (m32r_has_execution): New function.
8822 (init_m32r_ops): Use it.
8823 * record.c (record_core_has_execution): Now static. Add
8824 'the_ptid' parameter.
8825 * inferior.c (have_live_inferiors): Don't save current thread.
8826 Use target_has_execution_1.
8828 2011-03-07 Yao Qi <yao@codesourcery.com>
8830 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8832 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8834 * elfread.c (elf_symtab_read): Minor reformatting.
8836 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8838 * objc-lang.c (selectors_info): Minor reformatting.
8840 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8842 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8844 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8845 Michael Snyder <msnyder@vmware.com>
8847 * ada-valprint.c (ada_val_print_array): Move the declaration of
8848 "byte_order" and "elttype" inside the block where these variables
8849 are actually used. Remove some special handling for the case
8850 where "elttype" and "eltlen" are null. Replace by a comment
8851 and a couple of assertion checks.
8853 2011-03-05 Michael Snyder <msnyder@vmware.com>
8855 * source.c (add_path): Replace semicolon at end of block.
8856 * dwarf2expr.c (execute_stack_op): Ditto.
8858 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8860 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8861 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8862 (bfin-*-*): Likewise.
8864 2011-03-05 Michael Snyder <msnyder@vmware.com>
8866 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8867 * mdebugread.c (parse_symbol): Ditto.
8868 * parse.c (parse_exp_in_context): Ditto.
8869 * source.c (add_path): Ditto.
8870 * utils.c (gnu_debuglink_crc32): Ditto.
8871 * varobj.c (variable_language): Ditto.
8873 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8875 2011-03-04 Michael Snyder <msnyder@vmware.com>
8877 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8879 * symfile.c (simple_overlay_update): Check for null return value
8880 from lookup_minimal_symbol.
8882 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8884 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8886 * eval.c (parse_and_eval_address_1): Remove function.
8887 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8888 instead of parse_and_eval_address_1.
8889 * value.h (parse_and_eval_address_1): Remove prototype.
8891 2011-03-04 Michael Snyder <msnyder@vmware.com>
8893 * remote.c (putpkt_binary): Document that case stmt falls through.
8895 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8897 * breakpointc (print_it_typical): Move NULL check from here...
8898 (print_bp_stop_message): ... to here.
8900 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8902 * breakpoint.c (enable_command): Use break instead of continue,
8903 and fill in a missing break.
8904 (disable_command): Ditto.
8906 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8908 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8909 (terminal_save_ours): Remove misleading comment.
8910 (inflow_inferior_data_cleanup): Free ttystate.
8911 (inflow_inferior_exit): Likewise.
8912 (copy_terminal_info): Copy ttystate.
8914 * serial.c (serial_copy_tty_state): New function.
8915 * serial.h (serial_copy_tty_state): Add prototype.
8916 (struct serial_ops): Add copy_tty_state callback.
8917 * ser-base.c (ser_base_copy_tty_state): New function.
8918 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8919 * ser-go32.c (dos_copy_tty_state): New function.
8920 (dos_ops): Install copy_tty_state callback.
8921 * ser-mingw.c (_initialize_ser_windows): Likewise.
8922 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8923 * ser-unix.c (hardwire_copy_tty_state): New function.
8924 (_initialize_ser_hardwire): Install it.
8926 2011-03-04 Michael Snyder <msnyder@vmware.com>
8928 * breakpoint.c (create_breakpoint): Add missing break statement.
8930 Reverting this patch:
8931 * infcall.c (call_function_by_hand): Add break statements for lint.
8933 Reverting this patch:
8934 * cli/cli-script.c (script_from_file): Add break for lint.
8936 2011-03-04 Michael Snyder <msnyder@vmware.com>
8938 * solib.c (reload_shared_libraries_1): Close memory leak.
8940 2011-03-03 Tom Tromey <tromey@redhat.com>
8943 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8946 2011-03-03 Michael Snyder <msnyder@vmware.com>
8948 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8949 fields of struct 'st' to zero.
8951 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8952 sal.pspace before calling set_current_source_symtab_and_line.
8954 2011-03-03 Yao Qi <yao@codesourcery.com>
8956 * Makefile.in (configure-common): Remove. Let Makefile
8957 in dir common to rebuild itself.
8958 (common/Makefile): Likewise.
8960 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8962 * utils.c (parse_escape): Add i18n markup in error message.
8964 2011-03-03 Yao Qi <yao@codesourcery.com>
8966 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8968 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8969 (displaced_write_reg, displaced_read_reg): Likewise.
8970 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8971 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8972 (cleanup_branch): Replace magic number 14 and 15 with
8973 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8975 2011-03-02 Michael Snyder <msnyder@vmware.com>
8977 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8979 * cli/cli-script.c (script_from_file): Add break for lint.
8981 * mdebugread.c (parse_partial_symbols): Fix indent.
8983 * target-descriptions.c (tdesc_gdb_type): No need to call
8984 xstrdup, callee saves a copy.
8986 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8988 * infcall.c (call_function_by_hand): Add break statements for lint.
8990 * utils.c (parse_escape): Escape the escape char.
8992 * python/py-inferior.c (build_inferior_list): Error out if
8993 PyList_Append fails.
8994 (gdbpy_inferiors): Error out if build_inferior_list fails.
8996 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8999 * record.c (record_restore): Move printf to before error return.
9001 2011-03-02 Yao Qi <yao@codesourcery.com>
9003 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9004 is_thumb and insn_size.
9005 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9006 on both ARM and Thumb mode.
9007 (arm_process_displaced_insn): Set is_thumb and insn_size.
9008 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9009 (arm_displaced_step_fixup): Likewise.
9011 2011-03-01 Michael Snyder <msnyder@vmware.com>
9013 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9015 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9017 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9019 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9021 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9024 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9025 which shadows function parameter.
9027 * tracepoint.c (create_tsv_from_upload): Superfluous call
9028 to xstrdup. Callee already calls xstrdup.
9030 * linespec.c (decode_line_1): Remove unnecessary null check.
9032 * tracepoint.c (scope_info): Fix mem leak, remove underused
9035 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9036 superfluous null check.
9038 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9039 (value_of_builtin_frame_fp_reg): Ditto.
9041 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9043 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9046 * linespec.c (decode_line_1): Check for null before dereference.
9048 * reverse.c (record_restore): Move null-check to before pointer
9051 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9053 * objc-lang.c (selectors_info): Add explanitory comment.
9054 (classes_info): Ditto.
9056 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9058 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9059 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9060 versions of the trampoline. Handle Thumb vs. ARM addresses.
9061 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9062 (arm_linux_init_abi): Install it.
9063 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9064 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9066 2011-02-28 Michael Snyder <msnyder@vmware.com>
9068 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9069 a little bigger, to avoid possibility of an overflow.
9071 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9072 buffers a little bigger, to avoid possibility of an overflow.
9074 * coffread.c (coff_getfilename): Add check to avoid overflow.
9076 * objc-lang.c (selectors_info): Add a small safety margin to
9078 (classes_info): Error out on too long REGEXP.
9080 * infrun.c (handle_inferior_event): Remove unused function call.
9082 * fork-child.c (fork_inferior): Remove ifdef'd code and
9085 * linux-thread-db.c (attach_thread): Discard unused value.
9087 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9089 * remote.c (remote_get_noisy_reply): Discard unused value.
9090 (remote_vcont_resume): Ditto.
9091 (remote_stop_ns): Ditto.
9093 * linespec.c (decode_objc): Delete unused variable.
9095 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9097 * dwarf2read.c (add_partial_symbol): Discard unused values.
9098 (read_base_type): Delete unused variable.
9100 * dbxread.c (read_dbx_symtab): Discard unused value.
9102 * eval.c (evaluate_subexp_standard): Delete unused variable,
9103 and discard unused values.
9105 * infcmd.c (_initialize_infcmd): Discard unused values.
9107 * stabsread.c (rs6000_builtin_type): Missing break statement.
9109 * dbxread.c (process_one_symbol): Discard unused value.
9111 * coffread.c (coff_end_symtab): Delete unused variable.
9113 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9114 (dwarf2_add_typedef): Delete unused variable.
9115 (read_namespace): Ditto.
9116 (dwarf_decode_macros): Ditto.
9118 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9120 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9122 * p-valprint.c (pascal_val_print): Discard unused value.
9124 * utils.c (nquery): Call va_end before return;
9128 * proc-service.c (ps_plog): Call va_end before return.
9130 2011-02-28 Tom Tromey <tromey@redhat.com>
9132 * python/python.c (gdbpy_value_cst): New global.
9133 (_initialize_python): Initialize it.
9134 * python/python-internal.h (gdbpy_value_cst): Declare.
9135 * python/py-value.c (convert_value_from_python): Use
9138 2011-02-28 Michael Snyder <msnyder@vmware.com>
9140 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9142 * breakpoint.c (catch_syscall_completer): Free malloced list.
9144 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9146 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9147 (lval_func_check_synthetic_pointer): Ditto.
9148 (lval_func_free_closure): Fix use-after-free.
9150 2011-02-28 Tom Tromey <tromey@redhat.com>
9152 * psymtab.c (expand_partial_symbol_tables): Use
9153 ALL_OBJFILE_PSYMTABS.
9155 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9157 * objc-lang.c (selectors_info): Error on too long REGEXP.
9159 2011-02-28 Michael Snyder <msnyder@vmware.com>
9161 * python/py-param.c (set_parameter_value): Add missing
9164 * linux-record.c (record_linux_system_call): Add missing
9167 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9169 * breakpoint.c (print_one_breakpoint_location): Remove unused
9170 argument PRINT_ADDRESS_BITS. Update callers.
9171 (print_one_breakpoint): Likewise.
9173 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9175 * breakpoint.c (wrap_indent_at_field): New function.
9176 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9177 Allocate ui_stream locally instead of using STB argument.
9178 (print_one_breakpoint_location): Update call.
9179 * ui-out.c (ui_out_query_field): New function.
9180 * ui-out.h (ui_out_query_field): Add prototype.
9182 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9184 From Michael Snyder <msnyder@vmware.com>
9185 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9187 2011-02-27 Michael Snyder <msnyder@vmware.com>
9189 * objc-lang.c (selectors_info): Prevent string overrun.
9191 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9194 * symtab.c (rbreak_command): Move variable 'file_name' to
9197 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9198 param with a local variable of the same name.
9200 2011-02-27 Michael Snyder <msnyder@vmware.com>
9202 * value.c (value_from_history_ref): New function.
9203 * value.h (value_from_history_ref): Export.
9204 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9205 to parse value history references.
9206 * cli/cli-utils.h (get_number_trailer): Update comment.
9208 2011-02-27 Michael Snyder <msnyder@vmware.com>
9210 * inferior.c (detach_inferior_command): Use get_number_or_range.
9211 (kill_inferior_command): Ditto.
9212 (remove_inferior_command): Ditto.
9213 (initialize_inferiors): Make command names plural.
9214 Update help strings.
9216 2011-02-27 Michael Snyder <msnyder@vmware.com>
9218 * darwin-nat-info.c: Fix comment typo.
9219 * dwarf2expr.h: Ditto.
9220 * fbsd-nat.c: Ditto.
9221 * fbsd-nat.h: Ditto.
9222 * frame-unwind.h: Ditto.
9224 * hppa-hpux-tdep.c: Ditto.
9225 * i386-linux-nat.c: Ditto.
9226 * linux-nat.c: Ditto.
9227 * nbsd-nat.c: Ditto.
9228 * nbsd-nat.h: Ditto.
9229 * ppc-linux-tdep.c: Ditto.
9232 * tui/tui-winsource.c: Ditto.
9234 2011-02-26 Michael Snyder <msnyder@vmware.com>
9236 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9238 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9240 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9241 with a local variable of the same name.
9243 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9244 param with a local variable of the same name.
9245 (i387_supply_xsave): Ditto.
9247 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9248 that it does not shadow a function parameter.
9250 * i386-nat.c (i386_length_and_rw_bits): Document that case
9251 statement is meant to fall through.
9253 * expprint.c (dump_subexp_body_standard): Document that case
9254 statement is meant to fall through.
9256 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9257 dead if statement. Condition can't be false.
9259 2011-02-25 Michael Snyder <msnyder@vmware.com>
9261 * arm-tdep.c: Fix typos in comments.
9262 * bsd-uthread.c: Ditto.
9263 * completer.c: Ditto.
9265 * cp-namespace.c: Ditto.
9266 * cp-support.c: Ditto.
9267 * cris-tdep.c: Ditto.
9269 * dwarf2read.c: Ditto.
9271 * gdbtypes.h: Ditto.
9272 * inferior.h: Ditto.
9273 * mdebugread.c: Ditto.
9274 * mips-tdep.c: Ditto.
9275 * ppc-linux-nat.c: Ditto.
9276 * ppc-linux-tdep.c: Ditto.
9277 * printcmd.c: Ditto.
9278 * sol-thread.c: Ditto.
9279 * solib-frv.c: Ditto.
9281 * sparc64-tdep.c: Ditto.
9282 * spu-tdep.c: Ditto.
9283 * stabsread.c: Ditto.
9288 * python/py-block.c: Ditto.
9289 * python/py-symbol.c: Ditto.
9290 * python/py-symtab.c: Ditto.
9291 * python/py-value.c: Ditto.
9292 * tui/tui-win.c: Ditto.
9294 2011-02-25 Michael Snyder <msnyder@vmware.com>
9296 * inferior.c (print_inferior): Accept a string instead of an int
9297 for requested_inferiors, and use get_number_or_range to parse it.
9298 (info_inferiors_command): Pass args string to print_inferior.
9299 (initialize_inferiors): Change help string for info inferiors.
9300 * inferior.h (print_inferior): Export prototype change.
9302 2011-02-25 Tom Tromey <tromey@redhat.com>
9304 * common/ax.def (invalid2): Set to 0x31.
9306 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9308 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9310 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9312 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9314 2011-02-24 Michael Snyder <msnyder@vmware.com>
9316 * Makefile.in (clean): Make clean should remove generated files
9317 observer.h and observer.inc.
9319 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9321 Revert the following patch (not approved yet):
9322 2011-02-21 Hui Zhu <teawater@gmail.com>
9323 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9324 * ax-gdb.c (gen_printf_expr_callback): New function.
9325 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9326 * ax-general.c (ax_memcpy): New function.
9327 (ax_print): Handle "printf".
9329 * ax.h (ax_memcpy): Forward declare.
9330 * common/ax.def (invalid2): Removed.
9331 (printf): New entry.
9332 * printcmd.c (printcmd.h): New include.
9333 (string_printf): New function.
9334 (ui_printf): Removed.
9335 (printf_command): Remove static. Call string_printf.
9336 (eval_command): Call string_printf.
9337 * printcmd.h: New file.
9338 * tracepoint.c (validate_actionline,
9339 encode_actions_1): handle printf_command.
9341 2011-02-23 Tom Tromey <tromey@redhat.com>
9343 * ax-general.c (ax_pick): Add missing newline.
9345 2011-02-23 Michael Snyder <msnyder@vmware.com>
9347 * breakpoint.c (breakpoint_1): Change first argument from an int
9348 to a char pointer, so that the function now accepts a list of
9349 breakpoints rather than just one. Use new function
9350 'number_is_in_list' to implement.
9351 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9352 (watchpoints_info): Ditto.
9353 (tracepoints_info): Ditto.
9354 (maintenance_info_breakpoints): Ditto.
9355 (_initialize_breakpoint): Update help strings to reflect the fact
9356 that these functions can now take more than one argument.
9357 * cli/cli-utils.c (number_is_in_list): New function.
9358 * cli/cli-utils.h (number_is_in_list): Export.
9360 2011-02-23 Michael Snyder <msnyder@vmware.com>
9362 * memattr.c (mem_enable_command): Use get_number_or_range.
9363 (mem_disable_command): Ditto.
9364 (mem_delete_command): Ditto.
9365 (_initialize_mem): Tweak usage message to reflect multiple
9368 2011-02-22 Doug Evans <dje@google.com>
9370 Add gdb.lookup_global_symbol python function.
9372 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9373 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9374 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9376 2011-02-22 Tom Tromey <tromey@redhat.com>
9378 * language.c (language_class_name_from_physname): Rename
9379 'curr_language' argument to 'lang'; use in body.
9381 2011-02-22 Michael Snyder <msnyder@vmware.com>
9383 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9385 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9387 * frame-unwind.h: Fix comment to mention the this frame, not the
9390 2011-02-22 Tom Tromey <tromey@redhat.com>
9392 * symfile.c (auto_solib_limit): Remove.
9393 * symfile.h (auto_solib_limit): Remove.
9395 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9397 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9399 2011-02-21 Michael Snyder <msnyder@vmware.com>
9401 * gdbthread.h (print_thread_info): Change prototype.
9402 * thread.c (print_thread_info): Accept char* instead of int for
9403 requested_threads argument. Use new function number_is_in_list
9404 to determine which threads to list.
9405 (info_threads_command): Pass char* to print_thread_info.
9406 * cli/cli-utils.c (number_is_in_list): New function.
9407 * cli/cli-utils.h (number_is_in_list): Export.
9408 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9410 (print_one_inferior): Ditto.
9411 (mi_cmd_list_thread_groups): Ditto.
9413 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9415 * common/Makefile.in (CFLAGS): New.
9416 (COMPILE): Add $(CFLAGS).
9418 2011-02-21 Tom Tromey <tromey@redhat.com>
9420 * breakpoint.c (catch_syscall_command_1): Fix typo.
9422 2011-02-21 Tom Tromey <tromey@redhat.com>
9424 * reverse.c: Include cli-utils.h.
9425 * printcmd.c: Include cli-utils.h.
9426 (string_printf): Use skip_spaces.
9427 * cli/cli-utils.h: New file.
9428 * cli/cli-utils.c: New file.
9429 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9430 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9431 * breakpoint.h (get_number, get_number_or_range): Move to
9433 * breakpoint.c: Include cli-utils.h.
9434 (get_number_trailer, get_number, get_number_or_range)
9435 (ep_skip_leading_whitespace): Move to cli-utils.c.
9436 (create_breakpoint_sal, find_condition_and_thread)
9437 (decode_static_tracepoint_spec, watch_command_1)
9438 (watch_maybe_just_location, ep_parse_optional_if_clause)
9439 (catch_fork_command_1, catch_exec_command_1)
9440 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9441 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9442 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9443 (HFILES_NO_SRCDIR): Add cli-utils.h.
9444 (cli-utils.o): New target.
9446 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9448 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9449 before calling discard_all_inferiors.
9451 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9453 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9454 (struct builtin_opencl_type): Remove.
9455 (builtin_opencl_type): Change return type to "struct type **".
9456 (lookup_opencl_vector_type): Update caller.
9457 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9458 (build_opencl_types): Install plain array of "struct type *"
9459 instead of "struct builtin_opencl_type".
9461 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9462 Ulrich Weigand <uweigand@de.ibm.com>
9464 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9465 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9466 (struct arm_linux_hwbp_cap): New type.
9467 (arm_linux_get_hwbp_cap): New function.
9468 (arm_linux_get_hw_breakpoint_count): Likewise.
9469 (arm_linux_get_hw_watchpoint_count): Likewise.
9470 (arm_linux_can_use_hw_breakpoint): Likewise.
9471 (arm_hwbp_type): New type.
9472 (arm_hwbp_control_t): Likewise.
9473 (struct arm_linux_hw_breakpoint): Likewise.
9474 (struct arm_linux_thread_points): Likewise.
9475 (arm_threads): New global variable.
9476 (arm_linux_find_breakpoints_by_tid): New function.
9477 (arm_hwbp_control_initialize): Likewise.
9478 (arm_hwbp_control_is_enabled): Likewise.
9479 (arm_hwbp_control_disable): Likewise.
9480 (arm_linux_hw_breakpoint_initialize): Likewise.
9481 (arm_linux_get_hwbp_type): Likewise.
9482 (arm_linux_hw_watchpoint_initialize): Likewise.
9483 (arm_linux_hw_breakpoint_equal): Likewise.
9484 (arm_linux_insert_hw_breakpoint1): Likewise.
9485 (arm_linux_remove_hw_breakpoint1): Likewise.
9486 (arm_linux_insert_hw_breakpoint): Likewise.
9487 (arm_linux_remove_hw_breakpoint): Likewise.
9488 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9489 (arm_linux_insert_watchpoint): Likewise.
9490 (arm_linux_remove_watchpoint): Likewise.
9491 (arm_linux_stopped_data_address): Likewise.
9492 (arm_linux_stopped_by_watchpoint): Likewise.
9493 (arm_linux_watchpoint_addr_within_range): Likewise.
9494 (arm_linux_new_thread): Likewise.
9495 (arm_linux_thread_exit): Likewise.
9496 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9497 related target callbacks. Register arm_linux_new_thread and
9498 arm_linux_thread_exit.
9499 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9500 * arm-tdep.c (arm_pc_is_thumb): Make global.
9501 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9503 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9505 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9506 per-frame locations while within a function epilogue.
9508 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9510 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9511 to GNU coding standards.
9513 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9515 Allow use of mingw native on Windows 95 OS.
9516 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9517 (ser_windows_close): Only call CancelIo if function exists.
9518 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9519 to check for existence of CancelIo function in kernel32 DLL.
9521 2011-02-21 Hui Zhu <teawater@gmail.com>
9523 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9524 * ax-gdb.c (gen_printf_expr_callback): New function.
9525 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9526 * ax-general.c (ax_memcpy): New function.
9527 (ax_print): Handle "printf".
9529 * ax.h (ax_memcpy): Forward declare.
9530 * common/ax.def (invalid2): Removed.
9531 (printf): New entry.
9532 * printcmd.c (printcmd.h): New include.
9533 (string_printf): New function.
9534 (ui_printf): Removed.
9535 (printf_command): Remove static. Call string_printf.
9536 (eval_command): Call string_printf.
9537 * printcmd.h: New file.
9538 * tracepoint.c (validate_actionline,
9539 encode_actions_1): handle printf_command.
9541 2011-02-19 Michael Snyder <msnyder@vmware.com>
9543 * reverse.c (delete_one_bookmark): Argument is now bookmark
9544 id rather than pointer to bookmark struct.
9545 (delete_bookmark_command): Use get_number_or_range.
9546 (goto_bookmark_command): Parse with get_number instead of strtoul.
9547 (bookmark_1): New function. Print info for one bookmark.
9548 (bookmarks_info): Use get_number_or_range and bookmark_1.
9550 2011-02-18 Michael Snyder <msnyder@vmware.com>
9552 * thread.c (info_threads_command): Re-implement using
9553 get_number_or_range.
9554 (thread_apply_command): Ditto.
9556 2011-02-18 Tom Tromey <tromey@redhat.com>
9558 * common/ax.def: New file.
9559 * ax.h (enum agent_op): Use ax.def.
9560 * ax-general.c (aop_map): Use ax.def.
9562 2011-02-18 Tom Tromey <tromey@redhat.com>
9564 * ax-general.c (aop_map): Add pick and rot.
9565 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9566 <DW_OP_rot>: Implement.
9567 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9569 * ax-general.c (ax_pick): New function.
9571 2011-02-18 Tom Tromey <tromey@redhat.com>
9573 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9575 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9576 Tom Tromey <tromey@redhat.com>
9578 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9579 make_symbol_overload_list_block with NULL BLOCK.
9580 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9582 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9584 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9585 * breakpoint.h (get_number_or_range): Declare.
9586 * printcmd.c (ALL_DISPLAYS): Declare.
9587 (delete_display): Reimplement taking a display pointer.
9588 (undisplay_command): Accept a range of displays to delete, using
9589 get_number_or_range.
9591 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9593 * c-valprint.c (c_val_print): Add embedded_offset to address
9594 for arrays of unspecified length.
9595 * p-valprint.c (pascal_val_print): Likewise.
9597 2011-02-18 Yao Qi <yao@codesourcery.com>
9599 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9600 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9601 (thumb_process_displaced_insn): New.
9602 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9603 call to arm_process_displaced_insn.
9604 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9606 2011-02-17 Tom Tromey <tromey@redhat.com>
9608 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9609 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9610 compile_dwarf_to_ax. No longer static. Call
9611 dwarf2_compile_cfa_to_ax.
9612 (locexpr_tracepoint_var_ref): Update.
9613 (loclist_tracepoint_var_ref): Update.
9614 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9615 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9616 argument; add 'gdbarch' and 'pc'.
9617 (dwarf2_compile_cfa_to_ax): New function.
9618 (dwarf2_frame_cache): Update.
9620 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9622 * ada-lang.c (ada_type_of_array): Fix the size of the array
9623 in the case of an unconstrained packed array.
9625 2011-02-17 Yao Qi <yao@codesourcery.com>
9627 * common/Makefile.in: Add more targets for make.
9629 2011-02-16 Tom Tromey <tromey@redhat.com>
9631 * dwarf2loc.c (unimplemented): Fix typo.
9633 2011-02-16 Tom Tromey <tromey@redhat.com>
9635 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9636 (compile_dwarf_to_ax) <default>: Use unimplemented.
9637 <DW_OP_deref>: Update.
9638 (disassemble_dwarf_expression): Update.
9639 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9640 (decode_locdesc): Update.
9641 * dwarf2expr.h (dwarf_stack_op_name): Update.
9643 2011-02-16 Tom Tromey <tromey@redhat.com>
9645 * ax.h (struct aop_map) <name>: Now const.
9647 2011-02-16 Tom Tromey <tromey@redhat.com>
9649 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9652 2011-02-16 Yao Qi <yao@codesourcery.com>
9654 * infrun.c (get_displaced_step_closure_by_addr): New.
9655 * inferior.h: Declare it.
9656 * arm-tdep.c: (arm_pc_is_thumb): Call
9657 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9660 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9661 Jan Kratochvil <jan.kratochvil@redhat.com>
9664 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9666 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9667 Jan Kratochvil <jan.kratochvil@redhat.com>
9669 * value.c (value_contents_copy_raw): Extend describing comment.
9670 Assert that the destination contents we're overwriting are wholly
9672 (value_contents_copy): Extend describing comment.
9674 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9675 Jan Kratochvil <jan.kratochvil@redhat.com>
9677 * value.c (value_available_contents_eq): Remove redundant local
9678 variables. Fix available contents comparision.
9679 * value.h (value_available_contents_eq): Extend describing
9682 2011-02-16 Yao Qi <yao@codesourcery.com>
9684 * thread.c (info_threads_command): Add missing i18n markup and remove
9687 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9689 * breakpoint.c (longjmp_names): New variable.
9690 (struct breakpoint_objfile_data): New type.
9691 (breakpoint_objfile_key): New variable.
9692 (msym_not_found): New variable.
9693 (msym_not_found_p): New predicate.
9694 (get_breakpoint_objfile_data): New function.
9695 (create_overlay_event_breakpoint): Check per-objfile cache for
9697 (create_longjmp_master_breakpoint): Likewise.
9698 (create_std_terminate_master_breakpoint): Likewise.
9699 (create_exception_master_breakpoint): Likewise.
9700 (_initialize_breakpoint): Register per-objfile data key.
9702 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9704 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9706 (create_longjmp_master_breakpoint): Loop over longjmp names.
9707 (create_std_terminate_master_breakpoint): Const-propagate parameter
9709 (update_breakpoints_after_exec): Adjust.
9710 (breakpoint_re_set): Adjust.
9712 2011-02-15 Michael Snyder <msnyder@vmware.com>
9714 * thread.c (info_threads_command): Process arg as thread id,
9715 or list of thread ids.
9716 (thread_find_command): New command.
9717 (_initialize_thread): Document argument for info threads.
9718 Document 'thread find' command.
9719 * NEWS: Document new command "thread find".
9721 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9723 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9724 * aclocal.m4: Regenerated with aclocal-1.11.1.
9725 * common/configure: Regenerate with autoconf-2.64.
9727 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9729 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9730 bool data type to a size of one byte.
9732 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9733 Jan Kratochvil <jan.kratochvil@redhat.com>
9735 * target.c (memory_xfer_live_readonly_partial): Document where to
9736 look for interface description.
9738 2011-02-15 Yao Qi <yao@codesourcery.com>
9741 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9742 order to store PC value on stack instead of text section.
9744 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9746 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9747 the EFP register set size.
9748 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9749 data from the VMX register.
9750 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9751 and write data from/to the VMX register.
9753 2011-02-14 Michael Snyder <msnyder@vmware.com>
9755 * command.h (enum command_class): New class 'no_set_class', for
9756 "show" commands without a corresponding "set" command.
9757 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9758 * copying.c (_initialize_copying): Ditto for "show copying" and
9760 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9762 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9763 which there is no corresponding "set" command (eg. "show copying").
9765 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9766 Jan Kratochvil <jan.kratochvil@redhat.com>
9768 * exec.c (section_table_available_memory): Change `len' parameter
9770 * exec.h (section_table_available_memory): Ditto.
9771 * value.h (read_value_memory): Rename the `offset' parameter to
9774 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9775 Jan Kratochvil <jan.kratochvil@redhat.com>
9777 * memrange.c (compare_mem_ranges): Mention sort order in
9779 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9780 * tracepoint.c (traceframe_available_memory): Extend comment to
9781 mention what happens to RESULT when the target does not support
9784 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9785 Jan Kratochvil <jan.kratochvil@redhat.com>
9787 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9790 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9792 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9793 No longer handle NULL values.
9795 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9797 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9798 * value.c: Include "exceptions.h".
9799 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9801 * cp-abi.c: Include gdb_assert.h.
9802 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9803 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9805 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9806 parameters. No longer returns -1 on error.
9807 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9809 * cp-valprint.c: Include exceptions.h.
9810 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9811 the baseclass_offset. Handle unavailable base classes. Use
9812 val_print_invalid_address.
9813 * p-valprint.c: Include exceptions.h.
9814 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9815 when fetching the baseclass_offset. No longer expect
9816 baseclass_offset returning -1. Handle unavailable base classes.
9817 Use val_print_invalid_address.
9818 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9819 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9820 `embedded_offset' and `val' parameters. Adjust.
9821 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9822 parameter, and change its type to gdb_byte pointer. Add
9823 `embedded_offset' and `val' parameters. Adjust. No longer expect
9824 baseclass_offset returning -1.
9825 (value_dynamic_cast): Use value_contents_for_printing rather than
9826 value_contents. Adjust.
9827 (search_struct_field): No longer expect baseclass_offset returning
9829 (search_struct_method): If reading memory from the target is
9830 necessary, wrap it in a new value to pass to baseclass_offset. No
9831 longer expect baseclass_offset returning -1.
9832 (find_method_list): No longer expect baseclass_offset returning
9833 -1. Use value_contents_for_printing rather than value_contents.
9834 * valprint.c (val_print_invalid_address): New function.
9835 * valprint.h (val_print_invalid_address): Declare.
9836 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9837 and `val' parameters. No longer expect baseclass_offset returning
9839 * gnu-v2-abi.c: Include "exceptions.h".
9840 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9841 parameters. Handle unavailable memory. Recurse through
9842 gnuv2_baseclass_offset directly, rather than through
9843 baseclass_offset. No longer returns -1 on not found, instead
9845 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9846 `val' parameters. Adjust.
9848 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9850 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9851 almost but not quite adjacent.
9853 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9855 * value.h (value_entirely_available): Declare.
9856 * value.c (value_entirely_available): New function.
9857 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9858 real type if the pointer is unavailable.
9860 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9862 * valops.c (value_repeat): Use read_value_memory instead of
9865 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9867 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9868 * value.c (value_contents_copy_raw, value_contents_copy): New
9870 (value_primitive_field): Use value_contents_copy_raw instead of
9872 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9874 (value_array, value_slice): Ditto.
9875 * valarith.c (value_subscripted_rvalue): Use
9876 value_contents_copy_raw instead of memcpy.
9878 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9880 <unavailable> references.
9882 * valops.c (get_value_at): Use value_from_contents_and_address,
9883 avoiding read_memory.
9885 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9887 * c-valprint.c (c_val_print): Print a string with unavailable
9888 contents as an array.
9890 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9892 * value.h (unpack_bits_as_long): Delete declaration.
9893 (unpack_value_bits_as_long): Declare.
9894 (unpack_value_field_as_long): Declare.
9895 (value_field_bitfield): Declare.
9896 * value.c (unpack_bits_as_long): Rename to...
9897 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9898 value parameters. Return the extracted result in a new output
9899 parameter. If the value contents are unavailable, return false,
9900 otherwise return true.
9901 (unpack_value_bits_as_long): New.
9902 (unpack_field_as_long): Rename to...
9903 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9904 Add embedded_offset and value parameters. Return the extracted
9905 result in a new output parameter. If the value contents are
9906 unavailable, return false, otherwise return true.
9907 (unpack_value_field_as_long): New.
9908 (unpack_field_as_long_1): New.
9909 (unpack_field_as_long): Reimplement as wrapper around
9910 unpack_value_field_as_long_1.
9911 (value_field_bitfield): New function.
9912 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9913 unpack_value_bits_as_long. Mark the value as unavailable, if it
9915 * jv-valprint.c (java_print_value_fields): Use
9916 value_field_bitfield.
9917 * p-valprint.c (pascal_object_print_value_fields): Use
9918 value_field_bitfield.
9919 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9923 * value.c (get_internalvar_integer): Also return the int value of
9924 TYPE_CODE_INT INTERNALVAR_VALUE values.
9925 (set_internalvar): Don't special case TYPE_CODE_INT.
9927 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9929 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9930 INTERNALVAR_POINTER.
9932 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9933 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9934 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9936 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9938 * value.h (value_available_contents_eq): Declare.
9939 * value.c (find_first_range_overlap): New function.
9940 (value_available_contents_eq): New function.
9941 * valprint.c (val_print_array_elements): Use
9942 value_available_contents_eq.
9943 * ada-valprint.c (val_print_packed_array_elements): Use
9944 value_available_contents_eq.
9945 * jv-valprint.c (java_value_print): Use
9946 value_available_contents_eq.
9948 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9950 * target.c (target_read_live_memory): New function.
9951 (memory_xfer_live_readonly_partial): New.
9952 (memory_xfer_partial): If reading from a traceframe, fallback to
9953 reading unavailable read-only memory from read-only regions of
9955 * tracepoint.c (disconnect_tracing): Adjust.
9956 (set_current_traceframe): New, factored out from
9957 set_traceframe_number.
9958 (set_traceframe_number): Reimplement to only change the traceframe
9959 number on the GDB side.
9960 (do_restore_current_traceframe_cleanup): Adjust.
9961 (make_cleanup_restore_traceframe_number): New.
9962 (cur_traceframe_number): New global.
9963 (tfile_open): Set cur_traceframe_number to no traceframe.
9964 (set_tfile_traceframe): New function.
9965 (tfile_trace_find): If looking up a traceframe using any method
9966 other than by number, make sure the current tfile traceframe
9967 matches gdb's current traceframe. Update the current tfile
9968 traceframe if the lookup succeeded.
9969 (tfile_fetch_registers, tfile_xfer_partial)
9970 (tfile_get_trace_state_variable_value): Make sure the remote
9971 traceframe matches gdb's current traceframe.
9972 * remote.c (remote_traceframe_number): New global.
9973 (remote_open_1): Set it to -1.
9974 (set_remote_traceframe): New function.
9975 (remote_fetch_registers, remote_store_registers)
9976 (remote_xfer_memory, remote_xfer_partial)
9977 (remote_get_trace_state_variable_value): Make sure the remote
9978 traceframe matches gdb's current traceframe.
9979 (remote_trace_find): If looking up a traceframe using any method
9980 other than by number, make sure the current remote traceframe
9981 matches gdb's current traceframe. Update the current remote
9982 traceframe if the lookup succeeded.
9983 * infrun.c (fetch_inferior_event): Adjust.
9984 * tracepoint.h (set_current_traceframe): Declare.
9985 (get_traceframe_number, set_traceframe_number): Add describing
9988 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9990 Mark pieces of values as unavailable if the corresponding memory
9993 * valops.c: Include tracepoint.h.
9994 (value_fetch_lazy): Use read_value_memory.
9995 (read_value_memory): New.
9996 * value.h (read_value_memory): Declare.
9997 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9998 * exec.c (section_table_available_memory): New function.
9999 * exec.h (section_table_available_memory): Declare.
10001 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10003 * Makefile.in (SFILES): Add memrange.c.
10004 (HFILES_NO_SRCDIR): Add memrange.h.
10005 (COMMON_OBS): Add memrange.o.
10006 * memrange.c: New file.
10007 * memrange.h: New file.
10008 * tracepoint.c: Include memrange.h.
10009 (struct mem_range): Delete.
10010 (mem_range_s): Delete.
10011 (traceframe_available_memory): New function.
10012 * tracepoint.h (traceframe_available_memory): Declare.
10014 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10016 * target.h (struct traceframe_info): Forward declare.
10017 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10018 (struct target_ops) <to_traceframe_info>: New field.
10019 (target_traceframe_info): New.
10020 * target.c (update_current_target): Inherit and default
10021 to_traceframe_info.
10022 * remote.c (PACKET_qXfer_traceframe_info): New.
10023 (remote_protocol_features): Register qXfer:traceframe-info:read.
10024 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10025 (remote_traceframe_info): New.
10026 (init_remote_ops): Install it.
10027 (_initialize_remote): Install "set/show remote traceframe-info"
10029 * tracepoint.h (parse_traceframe_info): Declare.
10030 * tracepoint.c (struct mem_range): New.
10031 (mem_range_s): New typedef.
10032 (struct traceframe_info): New.
10033 (traceframe_info): New global.
10034 (free_traceframe_info): New function.
10035 (clear_traceframe_info): New function.
10036 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10038 (build_traceframe_info): New function.
10039 (tfile_traceframe_info): New function.
10040 (init_tfile_ops): Install tfile_traceframe_info.
10041 (traceframe_info_start_memory, free_result): New functions.
10042 (memory_attributes, traceframe_info_elements): New globals.
10043 (parse_traceframe_info, get_traceframe_info): New functions.
10044 * features/traceframe-info.dtd: New file.
10045 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10047 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10049 Base support for <unavailable> value contents.
10051 * value.h (value_bytes_available): Declare.
10052 (mark_value_bytes_unavailable): Declare.
10053 * value.c (struct range): New struct.
10054 (range_s): New typedef.
10055 (ranges_overlap): New function.
10056 (range_lessthan): New function.
10057 (ranges_contain_p): New function.
10058 (struct value) <unavailable>: New field.
10059 (value_bytes_available): New function.
10060 (mark_value_bytes_unavailable): New function.
10061 (require_not_optimized_out): Constify parameter.
10062 (require_available): New function.
10063 (value_contents_all, value_contents): Require all bytes be
10065 (value_free): Free `unavailable'.
10066 (value_copy): Copy `unavailable'.
10067 * valprint.h (val_print_unavailable): Declare.
10068 * valprint.c (valprint_check_validity): Rename `offset' parameter
10069 to `embedded_offset'. If printing a scalar, check whether the
10070 value chunk is available.
10071 (val_print_unavailable): New.
10072 (val_print_scalar_formatted): Check whether the value is
10074 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10075 pretty-printing unavailable values.
10077 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10079 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10080 * c-typeprint.c (c_type_print_args): Update the function comment. New
10081 variable param_type, initialize it. Remove const/volatile qualifiers
10082 for language_cplus and !show_artificial. Use param_type.
10084 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10086 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10087 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10088 * symtab.h (struct symtab) <next>: Comment extension.
10090 2011-02-12 Yao Qi <yao@codesourcery.com>
10092 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10094 2011-02-11 Yao Qi <yao@codesourcery.com>
10096 * common/Makefile.in: Add copyright header.
10098 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10100 * infrun.c (proceed): Move switching out and in of tfind mode from
10102 (fetch_inferior_event): ... to here.
10104 2011-02-11 Yao Qi <yao@codesourcery.com>
10106 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10108 * configure.ac: Add common to sub dir.
10109 * configure: Regenerate.
10111 2011-02-11 Yao Qi <yao@codesourcery.com>
10115 * common/Makefile.in: New.
10116 * common/configure.ac: New.
10117 * common/aclocal.m4: New.
10118 * common/configure: Generate.
10120 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10122 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10123 side of the parenthesis.
10126 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10127 * vec.h (VEC_block_remove): Fix comment.
10129 2011-02-08 Michael Snyder <msnyder@vmware.com>
10131 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10133 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10135 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10136 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10139 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10142 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10144 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10145 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10147 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10149 * dwarf2read.c (read_subroutine_type): Set special calling
10150 convention flag for functions compiled by IBM XL C for OpenCL.
10151 * ppc-sysv-tdep.c: Include "dwarf2.h"
10152 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10153 calling convention.
10154 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10155 IBM OpenCL vector types calling convention.
10156 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10157 (ppc_sysv_abi_broken_return_value): Likewise.
10158 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10159 types calling convention.
10160 (ppc64_sysv_abi_return_value): Likewise.
10161 * spu-tdep.c: Include "dwarf2.h"
10162 (spu_return_value): Implement IBM OpenCL vector types calling
10165 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10167 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10168 correct ABI for AltiVec vector arguments.
10170 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10172 * valprint.c (val_print): Extend comment.
10173 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10174 interface explanation to val_print.
10175 (ada_val_print_array): Adjust comment to current interface.
10176 (print_field_values): Adjust comment to current interface.
10177 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10178 explanation to val_print.
10179 * f-valprint.c (f_val_print): Ditto.
10180 * jv-valprint.c (java_val_print): Ditto.
10181 * m2-valprint.c (m2_val_print): Ditto.
10182 * p-valprint.c (pascal_val_print): Ditto.
10184 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10186 * breakpoint.c (parse_breakpoint_sals): Fix description.
10188 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10189 Oguz Kayral <oguzkayral@gmail.com>
10191 * python/py-inferior.c (python_on_normal_stop): New function.
10192 (python_on_resume): New function.
10193 (python_inferior_exit): New function.
10194 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10195 inferior_exit observers.
10196 * python/py-evtregistry.c: New file.
10197 * python/py-threadevent.c : New file.
10198 * python/py-event.c: New file.
10199 * python/py-evts.c: New file.
10200 * python/py-continueevent.c: New file.
10201 * python/py-bpevent.c: New file.
10202 * python/py-signalevent.c: New file.
10203 * python/py-exetiedevent.c: New file.
10204 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10205 Move struct breakpoint_object from here...
10206 * python/python-internal.h: ... to here.
10207 * python/py-event.h: New file.
10208 * python/py-events.h: New file.
10209 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10210 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10211 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10212 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10213 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10214 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10215 Add build rules for all the above.
10217 2011-02-04 Tom Tromey <tromey@redhat.com>
10219 * dwarf2read.c (dwarf2_section_empty_p): New function.
10220 (dwarf2_read_section): Use dwarf2_section_empty_p.
10221 (dwarf2_section_size): New function.
10222 (dwarf2_get_section_info): Unconditionally read section.
10223 (dwarf2_read_index): Use dwarf2_section_empty_p.
10224 (partial_read_comp_unit_head): Use dwarf2_section_size.
10225 (dwarf2_symbol_mark_computed): Likewise.
10227 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10229 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10231 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10233 * mips-linux-tdep.c: Include xml-syscall.h.
10234 (mips_linux_get_syscall_number): New function.
10235 (mips_linux_init_abi): Add calls to
10236 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10237 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10238 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10239 * syscalls/mips-n32-linux.xml: New file.
10240 * syscalls/mips-n64-linux.xml: New file.
10241 * syscalls/mips-o32-linux.xml: New file.
10243 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10245 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10246 Complain about inverted range entries.
10247 (dwarf2_record_block_ranges): Likewise.
10249 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10252 * breakpoint.c (update_watchpoint): Fix name of the
10253 update_global_location_list function.
10254 (print_one_breakpoint): Fix typo.
10255 (_initialize_breakpoint): Remove extra space in hbreak help
10257 * breakpoint.h (struct bp_location) <length>: Fix field
10260 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10262 * regcache.c (registers_changed_ptid): Don't explictly always
10263 clear `current_regcache'. Only clear current_thread_ptid and
10264 current_thread_arch when PTID matches. Only reinit the frame
10265 cache if PTID matches the current inferior_ptid. Move alloca(0)
10267 (registers_changed): ... here.
10269 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10271 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10272 starts with __stack_chk_guard as stack guard symbol.
10274 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10276 * disasm.c (compare_lines): Handle the end of sequence markers
10277 within the line table to better support disassembling over
10278 compilation unit boundaries.
10280 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10282 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10283 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10284 implementation even if no symbols are available.
10285 (thumb_analyze_prologue): Update call to skip_prologue_function.
10286 (arm_analyze_prologue): Likewise.
10288 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10290 * arm-tdep.c: Include "observer.h".
10291 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10292 (arm_exidx_data_key): New static variable.
10293 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10294 (struct arm_exidx_data): Likewise.
10295 (arm_exidx_data_free): New function.
10296 (arm_compare_exidx_entries): Likewise.
10297 (arm_obj_section_from_vma): Likewise.
10298 (arm_exidx_new_objfile): Likewise.
10299 (arm_find_exidx_entry): Likewise.
10300 (arm_exidx_fill_cache): Likewise.
10301 (arm_exidx_unwind_sniffer): Likewise.
10302 (arm_exidx_unwind): New global variable.
10303 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10304 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10305 observer. Register arm_exidx_data_key as objfile data.
10307 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10309 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10310 due to accessing uninitialized variable. Fix indentation.
10312 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10314 * c-valprint.c (c_value_print): When doing virtual base pointer
10315 adjustment, create a new value with adjusted contents rather than
10316 changing the contents of the value being printed (and getting it
10319 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10321 * xml-support.c (xml_find_attribute): New.
10322 (xinclude_start_include): Use it.
10323 * xml-support.h (xml_find_attribute): Declare.
10324 * memory-map.c (memory_map_start_memory)
10325 (memory_map_start_property): Use xml_find_attribute.
10326 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10327 xml_find_attribute.
10328 * remote.c (start_thread): Use xml_find_attribute.
10329 * solib-target.c (library_list_start_segment)
10330 (library_list_start_section, library_list_start_library)
10331 (library_list_start_list): Use xml_find_attribute.
10332 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10333 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10334 (tdesc_start_field): Use xml_find_attribute.
10336 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10338 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10339 (BUILD_OCL_VTYPES): Update.
10341 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10343 * configure.ac: Work around non-GNU sed limitation when computing
10344 python version number.
10345 * configure: Regenerate.
10347 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10349 Fix debug printing of TYPE_INSTANCE.
10350 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10351 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10353 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10355 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10356 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10357 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10358 * ada-operator.inc: Rename the file to ...
10359 * ada-operator.def: ... here, wrap all the entries by macro OP.
10360 * expprint.c (op_name_standard): Remove all the entries. Include
10361 "std-operator.def" instead.
10362 * expression.h (enum exp_opcode): Include "std-operator.def" and
10363 "ada-operator.def". Move all the entries ...
10364 * std-operator.def: ... here, wrap all the entries by macro OP.
10366 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10368 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10369 * breakpoint.c (remove_jit_event_breakpoints): New function.
10370 * jit.c (jit_descriptor_addr): Delete.
10371 (registering_code): Delete.
10372 (clear_int): Delete.
10373 (jit_inferior_data): New variable.
10374 (struct jit_inferior_data): New type.
10375 (get_jit_inferior_data): New function.
10376 (jit_inferior_data_cleanup): New function.
10377 (jit_read_descriptor): Adjust.
10378 (jit_register_code): Adjust.
10379 (jit_breakpoint_re_set_internal): New function; move code here ...
10380 (jit_inferior_init): ... from here.
10381 (jit_breakpoint_re_set): Adjust.
10382 (jit_reset_inferior_data_and_breakpoints): New function.
10383 (jit_inferior_created_observer): Adjust.
10384 (jit_inferior_exit_hook): Adjust.
10385 (jit_executable_changed_observer): New function.
10386 (jit_event_handler): Adjust.
10387 (_initialize_jit): Adjust.
10389 2011-01-31 Michael Snyder <msnyder@vmware.com>
10391 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10394 2011-01-31 Tom Tromey <tromey@redhat.com>
10397 * python/python.c (execute_gdb_command): Call
10398 prevent_dont_repeat.
10399 * top.c (suppress_dont_repeat): New global.
10400 (dont_repeat): Use it.
10401 (prevent_dont_repeat): New function.
10402 * command.h (prevent_dont_repeat): Declare.
10404 2011-01-31 Tom Tromey <tromey@redhat.com>
10406 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10407 * python/py-breakpoint.c (bppy_set_silent): Use
10408 breakpoint_set_silent.
10409 (bppy_set_thread): Use breakpoint_set_thread.
10410 (bppy_set_task): Use breakpoint_set_task.
10411 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10412 (breakpoint_set_task): Declare.
10413 (make_breakpoint_silent): Remove.
10414 * breakpoint.c (breakpoint_set_silent): New function.
10415 (breakpoint_set_thread): Likewise.
10416 (breakpoint_set_task): Likewise.
10417 (make_breakpoint_silent): Remove.
10419 2011-01-31 Tom Tromey <tromey@redhat.com>
10421 * breakpoint.h (user_breakpoint_p): Declare.
10422 * breakpoint.c (user_breakpoint_p): New function.
10423 (breakpoint_1): Use it.
10424 (save_breakpoints): Likewise.
10426 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10428 * configure.ac: Add handling of Python distribution on Windows.
10429 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10430 sysconfig variables are not defined, then do not use them.
10431 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10432 instead. On Windows, return all paths using forward-slashes
10433 rather than backslashes.
10435 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10437 * configure.ac: Remove fallback behavior for building
10438 against Python. Remove tweaking of Python include path.
10439 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10440 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10441 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10442 Always restore CPPFLAGS and LIBS after linking test.
10443 * configure: Regenerated.
10444 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10445 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10446 * python/python-internal.h: Adjust includes of Python .h files.
10448 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10450 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10453 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10455 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10458 2011-01-31 Yao Qi <yao@codesourcery.com>
10460 * arm-linux-nat.c: Update calls to regcache_register_status
10461 instead of regcache_valid_p.
10462 * aix-thread.c: Likewise.
10463 * i386gnu-nat.c: Likewise.
10465 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10468 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10469 touching TYPE_FIELD_ARTIFICIAL.
10471 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10473 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10476 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10478 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10479 selected, don't try iterating over the traceframe's blocks.
10480 (tfile_has_stack): If there's no traceframe selected, then there's
10482 (tfile_has_registers): If there's no traceframe selected, then
10483 there's no registers.
10485 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10487 * target.c (memory_xfer_partial): No need to restore shadows if we
10488 haven't read anything.
10490 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10492 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10493 and val_print_scalar_formatted.
10495 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10497 * tracepoint.c (tfile_read): New.
10498 (tfile_open): Use it.
10499 (tfile_get_traceframe_address): Use it.
10500 (tfile_trace_find): Use it.
10501 (walk_blocks_callback_func): New typedef.
10502 (match_blocktype): New function.
10503 (traceframe_walk_blocks): New function.
10504 (traceframe_find_block_type): New function.
10505 (tfile_fetch_registers, tfile_xfer_partial)
10506 (tfile_get_trace_state_variable_value): Use
10507 traceframe_find_block_type and tfile_read.
10509 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10511 * remote-mips.c: Add internationalization mark ups. Remove
10512 trailing \n from already marked up strings.
10514 2011-01-26 Tom Tromey <tromey@redhat.com>
10516 * python/py-prettyprint.c (print_string_repr): Clear
10517 'addressprint' option when calling val_print_string.
10518 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10519 option when calling val_print_string.
10521 2011-01-26 Tom Tromey <tromey@redhat.com>
10523 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10525 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10527 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10528 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10529 (gdb_py_long_as_ulongest): New defines.
10530 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10531 (gdb_py_int_as_long): Declare.
10532 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10533 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10534 (valpy_long): Add comment.
10535 * python/py-utils.c (get_addr_from_python): Use
10536 gdb_py_long_as_ulongest. Handle overflow properly.
10537 (gdb_py_object_from_longest): New function.
10538 (gdb_py_object_from_ulongest): Likewise.
10539 (gdb_py_int_as_long): Likewise.
10540 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10541 * python/py-symtab.c (salpy_get_pc): Use
10542 gdb_py_long_from_ulongest.
10543 (salpy_get_line): Use PyInt_FromLong.
10544 * python/py-param.c (set_parameter_value): Use
10545 gdb_py_int_as_long.
10546 * python/py-lazy-string.c (stpy_get_address): Use
10547 gdb_py_long_from_ulongest.
10548 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10549 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10550 * python/py-breakpoint.c (bppy_set_thread): Use
10551 gdb_py_int_as_long.
10552 (bppy_set_task): Likewise.
10553 (bppy_set_ignore_count): Likewise.
10554 (bppy_set_hit_count): Likewise.
10555 * python/py-block.c (blpy_get_start): Use
10556 gdb_py_object_from_ulongest.
10557 (blpy_get_end): Likewise.
10558 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10560 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10563 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10564 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10565 equality test for objfile, initialize addr_low if needed.
10567 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10569 * tui/tui-regs.c (tui_register_format): Remove dead code.
10571 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10573 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10574 instead of print_scalar_formatted.
10575 (print_scalar_formatted): Don't handle 's' format strings here,
10576 and add an assertion that we never see such format here.
10577 * valprint.h (val_print_scalar_formatted): Declare.
10578 * valprint.c (val_print_scalar_formatted): New.
10579 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10580 instead of print_scalar_formatted.
10581 * jv-valprint.c (java_val_print): Ditto.
10582 * p-valprint.c (pascal_val_print): Ditto.
10583 * ada-valprint.c (ada_val_print_1): Ditto.
10584 * f-valprint.c (f_val_print): Ditto.
10585 * infcmd.c (registers_info): Ditto.
10586 * m2-valprint.c (m2_val_print): Ditto.
10588 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10590 * m2-valprint.c (print_unbounded_array): Pass
10591 value_contents_for_printing rather than value_contents, to
10592 m2_print_array_contents. Also pass in the value.
10594 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10596 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10597 (save_gdb_index_command): Switch to .gdb_index version 4.
10599 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10601 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10602 than frame_register, and always pass a valid value to val_print.
10604 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10606 Centralize printing "<optimized out>".
10608 * valprint.h (val_print_optimized_out): Declare.
10609 * cp-valprint.c (cp_print_value_fields): Use
10610 val_print_optimized_out.
10611 * jv-valprint.c (java_print_value_fields): Ditto.
10612 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10613 * printcmd.c (print_formatted): Ditto.
10614 * valprint.c (valprint_check_validity): Ditto.
10615 (value_check_printable): Ditto.
10616 (val_print_optimized_out): New.
10618 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10620 * infcmd.c (default_print_registers_info): Allocate values so to
10621 never pass a NULL value to val_print.
10623 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10625 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10626 boolean. Make sure to always pass a value that matches the
10627 contents buffer to callees. Preserve `address' for following
10629 * value.c (value_contents_for_printing_const): New.
10630 (value_address): Constify value argument.
10631 * value.h (value_contents_for_printing_const): Declare.
10632 (value_address): Constify value argument.
10634 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10636 * regcache.c (struct regcache_descr): Rename
10637 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10638 and sizeof_cooked_register_valid_p to
10639 sizeof_cooked_register_status.
10640 (init_regcache_descr): Adjust.
10641 (struct regcache): Rename register_valid_p field to
10643 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10644 (do_cooked_read): Adjust.
10645 (regcache_valid_p): Rename to ...
10646 (regcache_register_status): ... this. Adjust.
10647 (regcache_invalidate): Adjust.
10648 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10650 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10651 as unavailable, not valid.
10652 (regcache_dump): Adjust.
10653 * regcache.h (enum register_status): New.
10654 (regcache_register_status): Declare.
10655 (regcache_invalidate): Delete declaration.
10656 * corelow.c (get_core_registers): Adjust.
10657 * tracepoint.c (tfile_fetch_registers): Adjust.
10658 * trad-frame.c (REG_VALUE): Rename to ...
10659 (TF_REG_VALUE): ... this.
10660 (REG_UNKNOWN): Rename to ...
10661 (TF_REG_UNKNOWN): ... this.
10662 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10663 * mi/mi-main.c (register_changed_p): Adjust.
10665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10667 * regcache.c (struct regcache_descr): Remove outdated comment.
10668 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10670 (regcache_xmalloc): Rename to ...
10671 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10672 Allocate the regcache type accordingly.
10673 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10674 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10675 cooked registers, not raw.
10676 (regcache_dup_no_passthrough): Delete.
10677 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10678 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10679 mention obsolete write_register_bytes.
10680 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10682 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10684 Stop remote_read_bytes from handling partial reads itself.
10686 * remote-fileio.c: Include target.h.
10687 (remote_fileio_write_bytes): Delete.
10688 (remote_fileio_func_open, remote_fileio_func_write)
10689 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10690 target_read_memory.
10691 (remote_fileio_func_stat): Use target_read_memory and
10692 target_write_memory.
10693 (remote_fileio_func_gettimeofday): Use target_write_memory.
10694 (remote_fileio_func_system): Use target_read_memory.
10695 * remote.c (remote_write_bytes): Make it static.
10696 (remote_read_bytes): Don't handle partial reads here.
10697 * remote.h (remote_read_bytes): Delete declaration.
10699 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10701 Simplify XML parsing a bit.
10703 * xml-support.h (gdb_xml_parse_quick): Declare.
10704 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10705 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10707 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10708 gdb_xml_create_parser_and_cleanup_1.
10709 (gdb_xml_parse_quick): New.
10710 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10711 * osdata.c (osdata_parse): Ditto.
10712 * remote.c (remote_threads_info): Ditto.
10713 * solib-target.c (solib_target_parse_libraries): Ditto.
10714 * xml-syscall.c (syscall_parse_xml): Ditto.
10715 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10717 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10719 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10720 with remote-mips.o added to gdb_target_obs.
10721 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10723 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10725 * ada-valprint.c (val_print_packed_array_elements): Pass the
10726 correct struct value to val_print.
10727 (ada_val_print_1): Ditto.
10729 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10731 Don't lose embedded_offset in printing routines throughout.
10733 * valprint.h (val_print_array_elements): Change prototype.
10734 * valprint.c (val_print_array_elements): Add `embedded_offset'
10735 parameter, and adjust to pass it down to val_print, while passing
10736 `valaddr' or `address' unmodified. Take embedded_offset into
10737 account when checking repetitions.
10738 * c-valprint.c (c_val_print): Pass embedded_offset to
10739 val_print_array_elements instead of adjusting `valaddr' and
10741 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10742 embedded_offset to val_print_array_elements instead of adjusting
10744 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10745 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10746 val_print_array_elements and pascal_object_print_value_fields
10747 instead of adjusting `valaddr'.
10748 (pascal_object_print_value_fields): Add `offset' parameter, and
10750 (pascal_object_print_value): Add `offset' parameter, and adjust to
10752 (pascal_object_print_static_field): Use
10753 value_contents_for_printing/value_embedded_offset, rather than
10755 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10756 parameter, and adjust to use it. Use
10757 value_contents_for_printing/value_embedded_offset, rather than
10759 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10760 (ada_val_print_array): Add `offset' parameter, and adjust to use
10762 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10763 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10764 Instead work with offsets. Use
10765 value_contents_for_printing/value_embedded_offset, rather than
10766 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10767 and use value_from_pointer to extract a target pointer, rather
10768 than value_from_longest.
10769 (print_variant_part): Add `offset' parameter. Replace
10770 `outer_valaddr' parameter by a new `outer_offset' parameter.
10771 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10772 (ada_value_print): Use
10773 value_contents_for_printing/value_embedded_offset, rather than
10775 (print_record): Add `offset' parameter, and adjust to pass it
10777 (print_field_values): Add `offset' parameter. Replace
10778 `outer_valaddr' parameter by a new `outer_offset' parameter.
10779 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10780 Use value_contents_for_printing/value_embedded_offset, rather than
10782 * d-valprint.c (dynamic_array_type): Use
10783 value_contents_for_printing/value_embedded_offset, rather than
10785 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10786 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10787 (java_print_value_fields): Take `offset' into account. Don't
10788 re-adjust `valaddr'. Instead pass down adjusted offsets.
10789 (java_val_print): Take `embedded_offset' into account. Pass it to
10790 java_print_value_fields.
10791 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10792 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10793 down adjusted offsets.
10794 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10795 (f_val_print): Take `embedded_offset' into account.
10797 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10799 * inflow.c: Include "gdbcmd.h".
10800 (interactive_mode): New static global, moved here from top.c.
10801 (show_interactive_mode): New function, moved here from top.c.
10802 use gdb_has_a_terminal instead of input_from_terminal_p to
10803 determine the current mode.
10804 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10806 (_initialize_inflow): Add the "set/show interactive-mode"
10807 commands. Moved here from top.c, after having adjusted slightly
10809 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10811 (input_from_terminal_p): Remove handling of "interactive-mode"
10812 setting, moved to infow.c.
10813 (init_main): Remove creation of the "set/show interactive-mode"
10814 commands, moved to inflow.c.
10816 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10818 * NEWS: Add entry for native ia64-hpux support.
10820 2011-01-19 Tom Tromey <tromey@redhat.com>
10823 * thread.c (free_thread): Free 'name'.
10824 (print_thread_info): Emit thread name. Change CLI output.
10825 (thread_name_command): New function.
10826 (do_captured_thread_select): Emit newline.
10827 (_initialize_thread): Register 'thread name' command.
10828 * target.h (struct target_ops) <to_thread_name>: New field.
10829 (target_thread_name): New macro.
10830 * target.c (update_current_target): Handle to_thread_name.
10831 * python/py-infthread.c (thpy_get_name): New function.
10832 (thpy_set_name): Likewise.
10833 (thread_object_getset): Add "name".
10834 * linux-nat.c (linux_nat_thread_name): New function.
10835 (linux_nat_add_target): Set to_thread_name.
10836 * gdbthread.h (struct thread_info) <name>: New field.
10838 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10840 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10841 (ada_val_print_1): Likewise.
10843 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10845 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10846 upper limit address is not greater than the function end address
10847 when the upper limit could not be computed using the debugging
10850 2011-01-17 Tom Tromey <tromey@redhat.com>
10852 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10854 * utils.c: Include gdb_regex.h.
10855 (do_regfree_cleanup): New function.
10856 (make_regfree_cleanup): Likewise.
10857 (get_regcomp_error): Likewise.
10858 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10860 2011-01-17 Tom Tromey <tromey@redhat.com>
10862 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10863 re_compile_fastmap.
10865 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10867 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10868 for internal variables.
10869 (last_was_structop): New static variable.
10870 (COMPLETE): New token.
10871 (field_exp): New rule to group all '.' suffix handling.
10872 Add mark_struct_expression calls when approriate to be able
10873 to correctly find fields for completion.
10874 (yylex): Adapt to handle field completion and set INTVAR when
10877 2011-01-14 Yao Qi <yao@codesourcery.com>
10879 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10880 save_reggroup, restore_reggroup and all_reggroup.
10882 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10884 * ada-valprint. (ada_printchar): Use the correct type length
10885 in call to ada_emit_char.
10886 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10888 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10890 * solib-som.h (hpux_major_release): Declare variable here.
10891 * solib-som.c: Remove <sys/utsname.h> header.
10892 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10893 (hpux_major_release): Make global, change default value to
10894 DEFAULT_HPUX_MAJOR_RELEASE.
10895 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10896 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10897 Add "solib-som.h" header.
10898 (set_hpux_major_release): New function.
10899 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10901 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10903 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10905 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10907 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10908 new-line at end of warning message.
10909 (ia64_hpux_store_register): Remove trailing new-line at end of
10911 * ia64-hpux-tdep.c: Rephrase comment.
10912 * solib-ia64-hpux.c (struct dld_info): Change type of field
10913 dld_flags from "long long" to ULONGEST.
10915 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10917 * target.h (deprecated_child_ops): Delete declaration.
10918 * target.c (deprecated_child_ops): Delete definition.
10920 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10922 * Makefile.in (hpux-thread.o): Delete rule.
10923 * configure.ac: Don't check for HPUX DCE threads support.
10924 * configure, config.in: Regenerate.
10925 * hppa-hpux-nat.c (child_suppress_run): Delete.
10926 (hppa_hpux_child_can_run): Delete.
10927 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10928 * hpux-thread.c: Delete.
10930 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10932 * hpux-thread.c (hpux_pid_to_str): Delete.
10934 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10936 * ada-valprint.c (ada_emit_char): Remove strange code.
10937 Check that c is <= UCHAR_MAX before passing it to isascii.
10938 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10940 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10942 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10943 to the case where instream is stdin.
10945 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10947 * ia64-tdep.h (struct regcache): Forward declare.
10948 (struct ia64_infcall_ops): New struct type.
10949 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10951 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10952 Renames ia64_find_global_pointer.
10953 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10954 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10955 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10957 (ia64_infcall_ops): New static global constant.
10958 (ia64_gdbarch_init): Set tdep->infcall_ops.
10959 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10960 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10961 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10962 (ia64_hpux_dummy_code): New static global constant.
10963 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10964 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10965 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10967 (ia64_hpux_infcall_ops): New static global constant.
10968 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10969 for inferior function calls to work properly on ia64-hpux.
10971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10973 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10974 * ia64-tdep.h (struct frame_info): forward declaration.
10975 (struct gdbarch_tdep): Add field size_of_register_frame.
10976 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10977 to determine the size of the register frame.
10978 (ia64_size_of_register_frame): New function.
10979 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10980 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10981 (IA64_HPUX_UREG_REASON): New macro.
10982 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10984 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10985 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10986 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10989 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10991 Add support for ia64-hpux.
10992 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10993 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10995 * configure.host: Add handling for ia64-hpux hosts. Add associated
10997 * configure.tgt: Add handling for ia64-hpux targets.
10998 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10999 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11000 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11002 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11004 [ttrace] Compute thread list immediately after attach.
11005 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11007 (inf_ttrace_attach): Use it.
11009 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11011 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11012 if we could not determine the frame's function address. Instead,
11013 use the frame's PC, and then continue.
11015 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11017 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11018 not already defined.
11020 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11022 * ia64-tdep.c (ia64_struct_type_p): New function.
11023 (ia64_extract_return_value): Handle integral values that are
11024 less than 8 bytes long.
11025 (ia64_push_dummy_call): Likewise.
11027 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11029 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11030 floatformat_ia64_ext.
11031 (floatformat_ia64_ext_big): New static const.
11032 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11034 2011-01-12 Tom Tromey <tromey@redhat.com>
11036 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11038 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11039 (mi_cmd_thread_list_ids): Likewise.
11040 (mi_cmd_data_list_changed_registers): Likewise.
11041 (mi_cmd_data_list_register_values): Likewise.
11042 (mi_cmd_data_write_register_values): Likewise.
11043 (mi_cmd_data_evaluate_expression): Likewise.
11044 (mi_cmd_data_read_memory): Likewise.
11045 (mi_cmd_data_read_memory_bytes): Likewise.
11046 (mi_cmd_data_write_memory): Likewise.
11047 (mi_cmd_enable_timings): Likewise.
11048 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11049 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11050 (mi_cmd_var_delete): Likewise.
11051 (mi_cmd_var_set_format): Likewise.
11052 (mi_cmd_var_show_format): Likewise.
11053 (mi_cmd_var_info_num_children): Likewise.
11054 (mi_cmd_var_list_children): Likewise.
11055 (mi_cmd_var_info_type): Likewise.
11056 (mi_cmd_var_info_expression): Likewise.
11057 (mi_cmd_var_show_attributes): Likewise.
11058 (mi_cmd_var_assign): Likewise.
11059 (mi_cmd_var_update): Likewise.
11060 (mi_cmd_enable_pretty_printing): Likewise.
11061 (mi_cmd_var_set_update_range): Likewise.
11062 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11064 (mi_cmd_target_file_put): Likewise.
11065 (mi_cmd_target_file_delete): Likewise.
11066 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11068 (mi_cmd_stack_info_depth): Likewise.
11069 (mi_cmd_stack_list_locals): Likewise.
11070 (mi_cmd_stack_list_args): Likewise.
11071 (mi_cmd_stack_select_frame): Likewise.
11072 (mi_cmd_stack_select_frame): Likewise.
11073 (mi_cmd_stack_info_frame): Likewise.
11074 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11076 (mi_cmd_file_list_exec_source_files): Likewise.
11077 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11078 (mi_cmd_env_cd): Likewise.
11079 (mi_cmd_env_path): Likewise.
11080 (mi_cmd_env_dir): Likewise.
11081 (mi_cmd_inferior_tty_show): Likewise.
11082 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11083 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11084 (mi_cmd_break_watch): Likewise.
11086 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11088 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11089 (ppc_linux_insert_hw_breakpoint): Likewise.
11090 (ppc_linux_remove_hw_breakpoint): Likewise.
11091 (ppc_linux_insert_watchpoint): Likewise.
11093 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11094 Jan Kratochvil <jan.kratochvil@redhat.com>
11096 PR fortran/11104 and DWARF unbound arrays detection.
11097 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11098 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11099 unspecified upper bound.
11100 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11101 variables array_size_array, tmp_type and offset_item. New variable
11102 array. Remove call to f77_get_upperbound. New variables array_type
11103 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11104 the final call to deprecated_set_value_type.
11106 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11108 Make value allocations more lazy.
11109 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11110 instead of allocate_value and set_value_lazy when possible.
11111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11112 instead of allocate_value and set_value_lazy.
11113 * findvar.c (value_of_register_lazy): Likewise.
11114 (read_var_value): Remove V preallocation, call just check_typedef in
11115 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11116 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11117 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11118 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11119 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11120 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11121 the end, remove set_value_lazy there.
11122 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11123 instead of allocate_value and set_value_lazy when possible.
11124 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11125 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11126 of allocate_value and set_value_lazy.
11127 (value_from_contents_and_address): Use allocate_value_lazy instead of
11128 allocate_value and set_value_lazy when possible.
11130 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11132 * disasm.c (dump_insns): Support dumping opcodes for MI.
11133 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11134 dumping of instruction opcodes.
11136 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11138 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11141 2011-01-11 Tom Tromey <tromey@redhat.com>
11143 * thread.c (do_captured_thread_select): Emit newline before
11146 2011-01-11 Michael Snyder <msnyder@vmware.com>
11148 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11149 * score-tdep.c: Ditto.
11150 * score-tdep.h: Ditto.
11151 * ser-base.c: Ditto.
11152 * ser-go32.c: Ditto.
11155 * ser-mingw.c: Ditto.
11156 * ser-pipe.c: Ditto.
11157 * ser-tcp.c: Ditto.
11158 * ser-unix.c: Ditto.
11159 * sh64-tdep.c: Ditto.
11160 * shnbsd-nat.c: Ditto.
11161 * sh-tdep.c: Ditto.
11162 * sh-tdep.h: Ditto.
11164 * solib-darwin.c: Ditto.
11165 * solib-frv.c: Ditto.
11167 * solib-irix.c: Ditto.
11168 * solib-osf.c: Ditto.
11169 * solib-pa64.c: Ditto.
11170 * solib-som.c: Ditto.
11171 * solib-spu.c: Ditto.
11172 * solib-sunos.c: Ditto.
11173 * solib-svr4.c: Ditto.
11175 * sol-thread.c: Ditto.
11176 * somread.c: Ditto.
11179 * sparc64-linux-tdep.c: Ditto.
11180 * sparc64-tdep.c: Ditto.
11181 * sparc-linux-nat.c: Ditto.
11182 * sparc-linux-tdep.c: Ditto.
11183 * sparc-sol2-nat.c: Ditto.
11184 * sparc-sol2-tdep.c: Ditto.
11185 * sparc-tdep.c: Ditto.
11186 * sparc-tdep.h: Ditto.
11187 * spu-tdep.c: Ditto.
11188 * stabsread.c: Ditto.
11189 * stabsread.h: Ditto.
11191 * symfile.c: Ditto.
11192 * symfile.h: Ditto.
11193 * symmisc.c: Ditto.
11197 * target-descriptions.c: Ditto.
11198 * target-descriptions.h: Ditto.
11200 * target-memory.c: Ditto.
11201 * terminal.h: Ditto.
11204 * tracepoint.c: Ditto.
11205 * tracepoint.h: Ditto.
11206 * trad-frame.h: Ditto.
11207 * typeprint.c: Ditto.
11209 2011-01-11 Michael Snyder <msnyder@vmware.com>
11211 * ui-file.c: Comment cleanup, mostly periods and spaces.
11212 * ui-file.h: Ditto.
11216 * v850-tdep.c: Ditto.
11217 * valarith.c: Ditto.
11219 * valprint.c: Ditto.
11220 * valprint.h: Ditto.
11225 * vax-tdep.c: Ditto.
11228 * version.h: Ditto.
11229 * windows-nat.c: Ditto.
11230 * windows-tdep.c: Ditto.
11231 * xcoffread.c: Ditto.
11232 * xcoffsolib.c: Ditto.
11233 * xml-support.c: Ditto.
11234 * xstormy16-tdep.c: Ditto.
11235 * xtensa-tdep.c: Ditto.
11236 * xtensa-tdep.h: Ditto.
11238 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11240 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11241 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11243 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11244 Thiago Jung Bauermann <bauerman@br.ibm.com>
11246 Implement support for PowerPC BookE ranged watchpoints.
11248 (struct breakpoint_ops) <resources_needed>: New method.
11249 Initialize to NULL in all existing breakpoint_ops instances.
11250 (struct breakpoint) <exact>: New field.
11251 (target_exact_watchpoints): Declare external global.
11252 * breakpoint.c (target_exact_watchpoints): New global flag.
11253 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11254 b->enable_state to bp_enabled before calling
11255 hw_watchpoint_used_count.
11256 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11257 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11259 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11260 if the watchpoint is exact.
11261 (resources_needed_watchpoint): New function.
11262 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11263 (watch_command_1): Set b->exact if the user asked for an exact
11264 watchpoint and one can be set.
11265 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11266 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11267 the user asks for an exact watchpoint and one can be set. Return
11268 number of needed debug registers to watch the expression.
11269 * gdbtypes.c (is_scalar_type): New function, based on
11270 valprint.c:scalar_type_p.
11271 (is_scalar_type_recursive): New function.
11272 * gdbtypes.h (is_scalar_type_recursive): Declare.
11273 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11274 handle regions when ranged watchpoints are available.
11275 (create_watchpoint_request): New function.
11276 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11277 create_watchpoint_request.
11278 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11279 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11280 `set powerpc' and `show powerpc' commands.
11281 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11282 Mention documentation comment in the target macro.
11283 (target_region_ok_for_hw_watchpoint): Document return value.
11285 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11287 * breakpoint.c (update_watchpoint): Decide on using a software or
11288 hardware watchpoint after the bp_locations are created.
11290 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11292 Convert hardware watchpoints to use breakpoint_ops.
11293 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11294 <insert_location>: ... this. Return int instead of void.
11295 Accept pointer to struct bp_location instead of pointer to
11296 struct breakpoint. Adapt all implementations.
11297 (breakpoint_ops) <remove>: Rename to...
11298 <remove_location>: ... this. Accept pointer to struct bp_location
11299 instead of pointer to struct breakpoint. Adapt all implementations.
11300 * breakpoint.c (insert_catchpoint): Delete function.
11301 (insert_bp_location): Call the watchpoint or catchpoint's
11302 breakpoint_ops.insert method.
11303 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11304 breakpoint_ops.remove method.
11305 (insert_watchpoint, remove_watchpoint): New functions.
11306 (watchpoint_breakpoint_ops): New structure.
11307 (watch_command_1): Initialize the OPS field.
11308 * inf-child.c (inf_child_insert_fork_catchpoint)
11309 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11310 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11311 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11313 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11314 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11315 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11316 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11317 * target.c (update_current_target): Change default implementation of
11318 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11319 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11320 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11321 to_set_syscall_catchpoint to return_one.
11322 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11323 (debug_to_insert_exec_catchpoint): Report return value.
11324 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11325 (to_insert_exec_catchpoint): Change declaration to return int instead
11328 2011-01-11 Michael Snyder <msnyder@vmware.com>
11330 * arm-tdep.c: Internationalization.
11332 * charset.c: Ditto.
11333 * fork-child.c: Ditto.
11334 * nto-procfs.c: Ditto.
11335 * ppc-sysv-tdep.c: Ditto.
11337 * remote-mips.c: Ditto.
11339 * rs6000-nat.c: Ditto.
11340 * rs6000-tdep.c: Ditto.
11344 * xml-support.c: Ditto.
11345 * mi/mi-cmd-break.c: Ditto.
11346 * mi/mi-cmd-var.c: Ditto.
11347 * mi/mi-interp.c: Ditto.
11348 * mi/mi-main.c: Ditto.
11350 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11352 * remote-sim.c (gdbsim_store_register): Update API to
11353 sim_store_register to check more error conditions.
11355 2011-01-10 Michael Snyder <msnyder@vmware.com>
11357 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11358 * nto-tdep.c: Ditto.
11359 * nto-tdep.h: Ditto.
11360 * objc-exp.y: Ditto.
11361 * objc-lang.c: Ditto.
11362 * objfiles.c: Ditto.
11363 * objfiles.h: Ditto.
11364 * observer.c: Ditto.
11365 * opencl-lang.c: Ditto.
11368 * parser-defs.h: Ditto.
11371 * posix-hdep.c: Ditto.
11372 * ppcbug-rom.c: Ditto.
11373 * ppc-linux-nat.c: Ditto.
11374 * ppc-linux-tdep.c: Ditto.
11375 * ppc-linux-tdep.h: Ditto.
11376 * ppcnbsd-tdep.c: Ditto.
11377 * ppcobsd-tdep.c: Ditto.
11378 * ppcobsd-tdep.h: Ditto.
11379 * ppc-sysv-tdep.c: Ditto.
11380 * ppc-tdep.h: Ditto.
11381 * printcmd.c: Ditto.
11382 * proc-abi.c: Ditto.
11383 * proc-flags.c: Ditto.
11385 * proc-utils.h: Ditto.
11386 * progspace.h: Ditto.
11387 * prologue-value.c: Ditto.
11388 * prologue-value.h: Ditto.
11389 * psympriv.h: Ditto.
11390 * psymtab.c: Ditto.
11391 * p-typeprint.c: Ditto.
11392 * p-valprint.c: Ditto.
11393 * ravenscar-sparc-thread.c: Ditto.
11394 * ravenscar-thread.c: Ditto.
11395 * ravenscar-thread.h: Ditto.
11397 * regcache.c: Ditto.
11398 * regcache.h: Ditto.
11400 * remote-fileio.c: Ditto.
11401 * remote-fileio.h: Ditto.
11403 * remote-m32r-sdi.c: Ditto.
11404 * remote-mips.c: Ditto.
11405 * remote-sim.c: Ditto.
11406 * rs6000-aix-tdep.c: Ditto.
11407 * rs6000-nat.c: Ditto.
11408 * rs6000-tdep.c: Ditto.
11410 2011-01-10 Michael Snyder <msnyder@vmware.com>
11412 * charset.c (validate): Internationalization.
11413 * coffread.c (read_one_sym): Ditto.
11414 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11415 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11416 * inflow.c (new_tty): Ditto.
11417 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11418 * m32c-tdep.c (m32c_return_value): Ditto.
11419 * mep-tdep.c (mep_store_return_value): Ditto.
11420 * score-tdep.c (score7_fetch_insn): Ditto.
11421 * ser-mingw.c (pipe_windows_open): Ditto.
11422 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11423 * spu-tdep.c (spu_register_type): Ditto.
11424 * tracepoint.c (trace_find_command): Ditto.
11425 * valarith.c (value_pos): Ditto.
11427 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11429 * ada-valprint.c (printstr): Minor comment reformatting.
11431 2011-01-08 Michael Snyder <msnyder@vmware.com>
11433 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11436 2011-01-08 Michael Snyder <msnyder@vmware.com>
11438 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11439 * hppa-hpux-tdep.c: Ditto.
11440 * hppa-linux-nat.c: Ditto.
11441 * hppa-linux-tdep.c: Ditto.
11442 * hppanbsd-tdep.c: Ditto.
11443 * hppa-tdep.c: Ditto.
11444 * hppa-tdep.h: Ditto.
11445 * hpux-thread.c: Ditto.
11446 * i386-cygwin-tdep.c: Ditto.
11447 * i386-darwin-nat.c: Ditto.
11448 * i386gnu-nat.c: Ditto.
11449 * i386-linux-nat.c: Ditto.
11450 * i386-linux-tdep.c: Ditto.
11451 * i386-nat.c: Ditto.
11452 * i386-nat.h: Ditto.
11453 * i386nbsd-tdep.c: Ditto.
11454 * i386-sol2-nat.c: Ditto.
11455 * i386-stub.c: Ditto.
11456 * i386-tdep.c: Ditto.
11457 * i386-tdep.h: Ditto.
11458 * i387-tdep.c: Ditto.
11459 * ia64-linux-nat.c: Ditto.
11460 * ia64-linux-tdep.c: Ditto.
11461 * ia64-tdep.c: Ditto.
11462 * infcall.c: Ditto.
11463 * infcall.h: Ditto.
11465 * inferior.c: Ditto.
11466 * inferior.h: Ditto.
11467 * infloop.c: Ditto.
11470 * interps.c: Ditto.
11471 * interps.h: Ditto.
11472 * iq2000-tdep.c: Ditto.
11473 * irix5-nat.c: Ditto.
11477 * jv-lang.c: Ditto.
11478 * jv-lang.h: Ditto.
11479 * jv-typeprint.c: Ditto.
11480 * jv-valprint.c: Ditto.
11481 * language.c: Ditto.
11482 * language.h: Ditto.
11483 * linespec.c: Ditto.
11484 * linux-fork.c: Ditto.
11485 * linux-nat.c: Ditto.
11486 * linux-thread-db.c: Ditto.
11487 * lm32-tdep.c: Ditto.
11489 2011-01-08 Michael Snyder <msnyder@vmware.com>
11491 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11492 * m2-lang.c: Ditto.
11493 * m2-typeprint.c: Ditto.
11494 * m2-valprint.c: Ditto.
11495 * m32c-tdep.c: Ditto.
11496 * m32r-linux-nat.c: Ditto.
11497 * m32r-rom.c: Ditto.
11498 * m32r-tdep.c: Ditto.
11499 * m32r-tdep.h: Ditto.
11500 * m68hc11-tdep.c: Ditto.
11501 * m58klinux-nat.c: Ditto.
11502 * m68k-tdep.c: Ditto.
11503 * m88k-tdep.c: Ditto.
11504 * m88k-tdep.h: Ditto.
11505 * machoread.c: Ditto.
11506 * macrocmd.c: Ditto.
11507 * macroexp.c: Ditto.
11508 * macrotab.c: Ditto.
11511 * mdebugread.c: Ditto.
11512 * mdebugread.h: Ditto.
11513 * memattr.c: Ditto.
11514 * memattr.h: Ditto.
11515 * memory-map.h: Ditto.
11516 * mep-tdep.c: Ditto.
11517 * microblaze-rom.c: Ditto.
11518 * microblaze-tdep.c: Ditto.
11519 * minsyms.c: Ditto.
11520 * mips-irix-tdep.c: Ditto.
11521 * mips-linux-nat.c: Ditto.
11522 * mips-linux-tdep.c: Ditto.
11523 * mips-linux-tdep.h: Ditto.
11524 * mipsnbsd-nat.c: Ditto.
11525 * mipsnbsd-tdep.c: Ditto.
11526 * mipsread.c: Ditto.
11527 * mips-tdep.c: Ditto.
11528 * mips-tdep.h: Ditto.
11529 * mn10300-linux-tdep.c: Ditto.
11530 * mn10300-tdep.c: Ditto.
11531 * mn10300-tdep.h: Ditto.
11532 * monitor.c: Ditto.
11533 * monitor.h: Ditto.
11534 * moxie-tdep.c: Ditto.
11535 * moxie-tdep.h: Ditto.
11536 * mt-tdep.c: Ditto.
11538 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11540 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11542 2011-01-08 Robert Millan <rmh@gnu.org>
11544 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11546 2011-01-07 Michael Snyder <msnyder@vmware.com>
11548 * charset.c (_initialize_charset): Fix typo in string.
11550 2011-01-07 Michael Snyder <msnyder@vmware.com>
11552 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11554 * tui/tui-layout.c (tui_set_layout_for_display_command):
11555 Split line so that operator goes to beginning of line.
11556 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11557 assignment out of if statement.
11559 2011-01-07 Michael Snyder <msnyder@vmware.com>
11561 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11562 * ada-lang.h: Ditto.
11563 * ada-tasks.c: Ditto.
11564 * ada-valprint.c: Ditto.
11565 * aix-threads.c: Ditto.
11566 * alpha-linux-nat.c: Ditto.
11567 * alpha-linux-tdep.c: Ditto.
11568 * alpha-mdebug-tdep.c: Ditto.
11569 * alpha-nat.c: Ditto.
11570 * alpha-osf1-tdep.c: Ditto.
11571 * alpha-tdep.c: Ditto.
11572 * alphabsd-nat.c: Ditto.
11573 * alphabsd-tdep.c: Ditto.
11574 * amd64-darwin-tdep.c: Ditto.
11575 * amd64-linux-nat.c: Ditto.
11576 * amd64-linux-tdep.c: Ditto.
11577 * amd64-sol2-tdep.c: Ditto.
11578 * amd64-tdep.c: Ditto.
11579 * amd64-fbsd-tdep.c: Ditto.
11580 * amd64-nbsd-tdep.c: Ditto.
11581 * amd64-obsd-tdep.c: Ditto.
11582 * amd64-linux-nat.c: Ditto.
11583 * amd64-linux-tdep.c: Ditto.
11584 * arm-tdep.c: Ditto.
11585 * arm-tdep.h: Ditto.
11586 * armnbsd-nat.c: Ditto.
11587 * avr-tdep.c: Ditto.
11588 * bfin-tdep.c: Ditto.
11589 * bsd-kvm.c: Ditto.
11590 * c-typeprintc: Ditto.
11591 * c-valprint.c: Ditto.
11592 * coff-pe-read.h: Ditto.
11593 * coffreead.c: Ditto.
11594 * cris-tdep.c: Ditto.
11596 * darwin-nat-info.c: Ditto.
11597 * darwin-nat.c: Ditto.
11598 * dbug-rom.c: Ditto.
11599 * dbxread.c: Ditto.
11602 * dec-thread.c: Ditto.
11604 * demangle.c: Ditto.
11605 * dicos-tdep.c: Ditto.
11606 * dictionary.c: Ditto.
11607 * dictionary.h: Ditto.
11608 * dink32-rom.c: Ditto.
11610 * doublest.c: Ditto.
11612 * dummy-frame.c: Ditto.
11613 * dwarf2-frame.c: Ditto.
11614 * dwarf2expr.c: Ditto.
11615 * dwarf2loc.c: Ditto.
11616 * dwarf2read.c: Ditto.
11617 * elfread.c: Ditto.
11618 * environ.c: Ditto.
11620 * event-top.h: Ditto.
11621 * exceptions.c: Ditto.
11622 * exceptions.h: Ditto.
11624 * expprint.c: Ditto.
11625 * expression.h: Ditto.
11629 * f-typeprint.c: Ditto.
11630 * f-valprint.c: Ditto.
11631 * fbsd-nat.c: Ditto.
11632 * findvar.c: Ditto.
11633 * fork-child.c: Ditto.
11636 * frv-linux-tdep.c: Ditto.
11637 * frv-tdep.c: Ditto.
11639 * gdb-stabs.h: Ditto.
11640 * gdb_assert.h: Ditto.
11641 * gdb_string.h: Ditto.
11642 * gdb_thread_db.h: Ditto.
11643 * gdb_wait.h: Ditto.
11644 * gdbarch.sh: Ditto.
11645 * gdbcore.h: Ditto.
11646 * gdbthread.h: Ditto.
11647 * gdbtypes.c: Ditto.
11648 * gdbtypes.h: Ditto.
11649 * gnu-nat.c: Ditto.
11650 * gnu-nat.h: Ditto.
11651 * gnu-v2-abi.c: Ditto.
11652 * gnu-v3-abi.c: Ditto.
11653 * go32-nat.c: Ditto.
11654 * gdbarch.c: Regenerate.
11655 * gdbarch.h: Regenerate.
11657 2011-01-07 Michael Snyder <msnyder@vmware.com>
11659 * ax-gdb.c: Adjust some long output strings.
11660 * breakpoint.c: Ditto.
11661 * charset.c: Ditto.
11663 * infcall.c: Ditto.
11665 * linux-nat.c: Ditto.
11666 * solib-pa64.c: Ditto.
11667 * solib-som.c: Ditto.
11669 2011-01-06 Tom Tromey <tromey@redhat.com>
11673 * python/python.c (GdbMethods): Add "newest_frame" method.
11674 * python/python-internal.h (gdbpy_newest_frame): Declare.
11675 * python/py-frame.c (gdbpy_newest_frame): New function.
11677 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11679 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11680 * jit.c (jit_debug): New variable.
11681 (show_jit_debug): New function.
11682 (struct target_buffer): Use ULONGEST.
11683 (bfd_open_from_target_memory): Likewise.
11684 (jit_register_code, jit_inferior_init): Add debug output.
11685 (_initialize_jit): Register "debug jit" command.
11687 2011-01-06 Tom Tromey <tromey@redhat.com>
11689 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11690 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11693 2011-01-06 Tom Tromey <tromey@redhat.com>
11695 * python/py-frame.c (frapy_block): Use get_frame_block.
11697 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11699 Do not stop on SIGPRIO signals by default
11700 * infrun.c (_initialize_infrun): Unset signal_stop and
11701 signal_print for TARGET_SIGNAL_PRIO.
11703 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11705 * ada-tasks.c: Fix style violation in comment.
11707 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11709 * linespec.c (decode_compound, find_method): Remove trailing \n
11710 at end of error string.
11711 * solib-irix.c (irix_current_sos): Likewise.
11712 * varobj.c (uninstall_variable): Likewise.
11714 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11716 * copyright.py: New script.
11717 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11718 Launch emacs without exec'ing. Call copyright.py afterwards.
11720 2011-01-05 Michael Snyder <msnyder@vmware.com>
11722 * addrmap.c: Shorten lines of >= 80 columns.
11723 * arch-utils.c: Ditto.
11724 * arch-utils.h: Ditto.
11726 * ax-general.c: Ditto.
11728 * blockframe.c: Ditto.
11729 * breakpoint.c: Ditto.
11730 * buildsym.c: Ditto.
11732 * c-typeprint.c: Ditto.
11733 * charset.c: Ditto.
11734 * coffread.c: Ditto.
11735 * command.h: Ditto.
11736 * corelow.c: Ditto.
11738 * cp-namespace.c: Ditto.
11739 * cp-support.c: Ditto.
11740 * dbug-rom.c: Ditto.
11741 * dbxread.c: Ditto.
11745 * dictionary.c: Ditto.
11747 * doublest.c: Ditto.
11748 * dwarf2-frame.c: Ditto.
11749 * dwarf2expr.c: Ditto.
11750 * dwarf2loc.c: Ditto.
11751 * dwarf2read.c: Ditto.
11752 * elfread.c: Ditto.
11754 * event-loop.c: Ditto.
11755 * event-loop.h: Ditto.
11756 * exceptions.h: Ditto.
11758 * expprint.c: Ditto.
11759 * expression.h: Ditto.
11761 * f-valprint.c: Ditto.
11762 * findcmd.c: Ditto.
11763 * frame-base.c: Ditto.
11764 * frame-unwind.c: Ditto.
11765 * frame-unwind.h: Ditto.
11769 * gdb-stabs.h: Ditto.
11770 * gdb_assert.h: Ditto.
11771 * gdb_dirent.h: Ditto.
11772 * gdb_obstack.h: Ditto.
11773 * gdbcore.h: Ditto.
11774 * gdbtypes.c: Ditto.
11775 * gdbtypes.h: Ditto.
11776 * inf-ttrace.c: Ditto.
11777 * infcall.c: Ditto.
11781 * inline-frame.h: Ditto.
11782 * language.c: Ditto.
11783 * language.h: Ditto.
11784 * libunwind-frame.c: Ditto.
11785 * libunwind-frame.h: Ditto.
11786 * linespec.c: Ditto.
11787 * linux-nat.c: Ditto.
11788 * linux-nat.h: Ditto.
11789 * linux-thread-db.c: Ditto.
11790 * machoread.c: Ditto.
11791 * macroexp.c: Ditto.
11792 * macrotab.c: Ditto.
11795 * mdebugread.c: Ditto.
11796 * memattr.c: Ditto.
11797 * minsyms.c: Ditto.
11798 * monitor.c: Ditto.
11799 * monitor.h: Ditto.
11800 * objfiles.c: Ditto.
11801 * objfiles.h: Ditto.
11803 * p-typeprint.c: Ditto.
11804 * p-valprint.c: Ditto.
11806 * printcmd.c: Ditto.
11807 * proc-events.c: Ditto.
11809 * progspace.c: Ditto.
11810 * progspace.h: Ditto.
11811 * psympriv.h: Ditto.
11812 * psymtab.c: Ditto.
11814 * regcache.c: Ditto.
11815 * regcache.h: Ditto.
11816 * remote-fileio.c: Ditto.
11818 * ser-mingw.c: Ditto.
11819 * ser-tcp.c: Ditto.
11820 * ser-unix.c: Ditto.
11823 * solib-frv.c: Ditto.
11824 * solib-irix.c: Ditto.
11825 * solib-osf.c: Ditto.
11826 * solib-pa64.c: Ditto.
11827 * solib-som.c: Ditto.
11828 * solib-sunos.c: Ditto.
11829 * solib-svr4.c: Ditto.
11830 * solib-target.c: Ditto.
11832 * somread.c: Ditto.
11834 * stabsread.c: Ditto.
11835 * stabsread.c: Ditto.
11838 * symfile-mem.c: Ditto.
11839 * symfile.c: Ditto.
11840 * symfile.h: Ditto.
11841 * symmisc.c: Ditto.
11844 * target-descriptions.c: Ditto.
11845 * target-memory.c: Ditto.
11848 * terminal.h: Ditto.
11851 * tracepoint.c: Ditto.
11852 * tracepoint.h: Ditto.
11853 * ui-file.c: Ditto.
11854 * ui-file.h: Ditto.
11856 * user-regs.c: Ditto.
11857 * user-regs.h: Ditto.
11859 * valarith.c: Ditto.
11861 * valprint.c: Ditto.
11862 * valprint.h: Ditto.
11867 * xcoffread.c: Ditto.
11868 * xcoffsolib.c: Ditto.
11869 * xcoffsolib.h: Ditto.
11870 * xml-syscall.c: Ditto.
11871 * xml-tdesc.c: Ditto.
11873 2011-01-05 Michael Snyder <msnyder@vmware.com>
11875 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11876 * cli/cli-decode.c: Ditto.
11877 * cli/cli-dump.c: Ditto.
11878 * cli/cli-logging.c: Ditto.
11879 * cli/cli-script.c: Ditto.
11880 * cli/cli-setshow.c: Ditto.
11881 * common/signals.c: Ditto.
11882 * mi/mi-cmd-break.c: Ditto.
11883 * mi/mi-cmd-disas.c: Ditto.
11884 * mi/mi-cmd-stack.c: Ditto.
11885 * mi/mi-cmd-var.c: Ditto.
11886 * mi/mi-cmds.c: Ditto.
11887 * mi/mi-common.h: Ditto.
11888 * mi/mi-console.c: Ditto.
11889 * mi/mi-interp.c: Ditto.
11890 * mi/mi-main.c: Ditto.
11891 * osf-share/cma_attr.c: Ditto.
11892 * osf-share/cma_deb_core.h: Ditto.
11893 * osf-share/cma_debug_client.h: Ditto.
11894 * osf-share/cma_handle.h: Ditto.
11895 * osf-share/cma_mutex.h: Ditto.
11896 * osf-share/cma_stack_int.h: Ditto.
11897 * osf-share/cma_tcb_defs.h: Ditto.
11898 * python/py-auto-load.c: Ditto.
11899 * python/py-breakpoint.c: Ditto.
11900 * python/py-cmd.c: Ditto.
11901 * python/py-frame.c: Ditto.
11902 * python/py-objfile.c: Ditto.
11903 * python/py-param.c: Ditto.
11904 * python/py-progspace.c: Ditto.
11905 * python/py-symbol.c: Ditto.
11906 * python/py-value.c: Ditto.
11907 * python/python-internal.h: Ditto.
11908 * python/python.c: Ditto.
11909 * tui/tui-data.c: Ditto.
11910 * tui/tui-disasm.c: Ditto.
11911 * tui/tui-hooks.c: Ditto.
11912 * tui/tui-io.c: Ditto.
11913 * tui/tui-layout.c: Ditto.
11914 * tui/tui-regs.c: Ditto.
11915 * tui/tui-source.c: Ditto.
11916 * tui/tui-stack.c: Ditto.
11917 * tui/tui-win.c: Ditto.
11918 * tui/tui-windata.c: Ditto.
11919 * tui/tui-winsource.c: Ditto.
11921 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11923 * configure.ac, gdb.1: Copyright year update.
11925 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11927 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11928 this_pc_in_block, morestack_msym and morestack_name. Check for
11929 "__morestack" minimal symbol there.
11931 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11933 * symfile.c (find_sym_fns): Add call to dont_repeat.
11935 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11937 Copyright year update in most files (performed by copyright.sh).
11939 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11941 * top.c (print_gdb_version): Update copyright year in version output.
11943 For older changes see ChangeLog-2010.
11949 version-control: never