]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2011-12-06 Pedro Alves <pedro@codesourcery.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f0ba3972
PA
12011-12-06 Pedro Alves <pedro@codesourcery.com>
2
3 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
4 (breakpoint_xfer_memory): ... this. Change prototype. Handle
5 memory writes too.
6 * breakpoint.h (breakpoint_restore_shadows): Delete.
7 (breakpoint_xfer_memory): Declare.
8 * mem-break.c (default_memory_insert_breakpoint)
9 (default_memory_remove_breakpoint): Use target_write_raw_memory.
10 (memory_xfer_partial): Rename to ...
11 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
12 here.
13 (memory_xfer_partial): New.
14 (target_write_raw_memory): New.
15 * target.h (target_write_raw_memory): New.
16
31aba06f
DE
172011-12-06 Doug Evans <dje@google.com>
18
19 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
20
f8eba3c6
TT
212011-12-06 Joel Brobecker <brobecker@acacore.com>
22
23 * language.h (struct language_defn): Add new component
24 la_symbol_name_compare.
25 * symfile.h (struct quick_symbol_functions): Update the profile
26 of parameter "name_matcher" for the expand_symtabs_matching
27 method. Update the documentation accordingly.
28 * ada-lang.h (ada_name_for_lookup): Add declaration.
29 * ada-lang.c (ada_name_for_lookup): New function, extracted out
30 from ada_iterate_over_symbols.
31 (ada_iterate_over_symbols): Do not encode symbol name anymore.
32 (ada_expand_partial_symbol_name): Adjust profile.
33 (ada_language_defn): Add value for la_symbol_name_compare field.
34 * linespec.c: #include "ada-lang.h".
35 (iterate_name_matcher): Add language parameter. Replace call
36 to strcmp_iw by call to language->la_symbol_name_compare.
37 (decode_variable): Encode COPY if current language is Ada.
38 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
39 of name_matcher parameter. Adjust call to name_matcher.
40 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
41 (expand_partial_symbol_names): Update profile of parameter "fun".
42 * psymtab.h (expand_partial_symbol_names): Update profile of
43 parameter "fun".
44 * symtab.c (demangle_for_lookup): Update function documentation.
45 (search_symbols_name_matches): Add language parameter.
46 (expand_partial_symbol_name): Likewise.
47 * c-lang.c (c_language_defn, cplus_language_defn)
48 (asm_language_defn, minimal_language_defn): Add value for
49 la_symbol_name_compare field.
50 * d-lang.c (d_language_defn): Likewise.
51 * f-lang.c (f_language_defn): Ditto.
52 * jv-lang.c (java_language_defn): Ditto.
53 * m2-lang.c (m2_language_defn): Ditto.
54 * objc-lang.c (objc_language_defn): Ditto.
55 * opencl-lang.c (opencl_language_defn): Ditto.
56 * p-lang.c (pascal_language_defn): Ditto.
57 * language.c (unknown_language_defn, auto_language_defn)
58 (local_language_defn): Ditto.
59
602011-12-06 Tom Tromey <tromey@redhat.com>
61
62 * linespec.c (iterate_over_all_matching_symtabs): Use
63 LA_ITERATE_OVER_SYMBOLS.
64 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
65 (find_function_symbols, decode_variable): Remove Ada special
66 case.
67 * language.h (struct language_defn) <la_iterate_over_symbols>: New
68 field.
69 (LA_ITERATE_OVER_SYMBOLS): New macro.
70 * language.c (unknown_language_defn, auto_language_defn)
71 (local_language_defn): Update.
72 * c-lang.c (c_language_defn, cplus_language_defn)
73 (asm_language_defn, minimal_language_defn): Update.
74 * d-lang.c (d_language_defn): Update.
75 * f-lang.c (f_language_defn): Update.
76 * jv-lang.c (java_language_defn): Update.
77 * m2-lang.c (m2_language_defn): Update.
78 * objc-lang.c (objc_language_defn): Update.
79 * opencl-lang.c (opencl_language_defn): Update.
80 * p-lang.c (pascal_language_defn): Update.
81 * ada-lang.c (ada_iterate_over_symbols): New function.
82 (ada_language_defn): Update.
83
842011-12-06 Tom Tromey <tromey@redhat.com>
85 Joel Brobecker <brobecker@acacore.com>
86
87 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
88 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
89 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
90 PR shlibs/8929, PR shlibs/7393:
91 * python/py-type.c (compare_maybe_null_strings): Rename from
92 compare_strings.
93 (check_types_equal): Update.
94 * utils.c (compare_strings): New function.
95 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
96 location changes.
97 * tracepoint.c (scope_info): Update.
98 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
99 * symtab.h (iterate_over_minimal_symbols)
100 (iterate_over_some_symtabs, iterate_over_symtabs)
101 (find_pcs_for_symtab_line, iterate_over_symbols)
102 (demangle_for_lookup): Declare.
103 (expand_line_sal): Remove.
104 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
105 (lookup_symtab_callback): New functions.
106 (lookup_symtab): Rewrite.
107 (demangle_for_lookup): New function, extract from
108 lookup_symbol_in_language.
109 (lookup_symbol_in_language): Use it.
110 (iterate_over_symbols): New function.
111 (find_line_symtab): Update.
112 (find_pcs_for_symtab_line): New functions.
113 (find_line_common): Add 'start' argument.
114 (decode_line_spec): Update. Change argument to 'flags', change
115 interpretation.
116 (append_expanded_sal): Remove.
117 (append_exact_match_to_sals): Remove.
118 (expand_line_sal): Remove.
119 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
120 Remove.
121 <map_symtabs_matching_filename>: New field.
122 * stack.c (func_command): Only look in the current program space.
123 Use DECODE_LINE_FUNFIRSTLINE.
124 * source.c (line_info): Set pspace on sal. Check program space in
125 the loop. Use DECODE_LINE_LIST_MODE.
126 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
127 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
128 * python/python.c (gdbpy_decode_line): Update.
129 * psymtab.c (partial_map_expand_apply): New function.
130 (partial_map_symtabs_matching_filename): Rename from
131 lookup_partial_symbol. Update arguments.
132 (lookup_symtab_via_partial_symtab): Remove.
133 (psym_functions): Update.
134 * objc-lang.h (parse_selector, parse_method): Don't declare.
135 (find_imps): Update.
136 * objc-lang.c (parse_selector, parse_method): Now static.
137 (find_methods): Change arguments. Fill in a vector of symbol
138 names.
139 (uniquify_strings): New function.
140 (find_imps): Change arguments.
141 * minsyms.c (iterate_over_minimal_symbols): New function.
142 * linespec.h (enum decode_line_flags): New.
143 (struct linespec_sals): New.
144 (struct linespec_result) <canonical>: Remove.
145 <pre_expanded, addr_string, sals>: New fields.
146 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
147 (decode_line_full): Declare.
148 (decode_line_1): Update.
149 * linespec.c (struct address_entry, struct linespec_state, struct
150 collect_info): New types.
151 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
152 (eq_address_entry, maybe_add_address): New functions.
153 (total_number_of_methods): Remove.
154 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
155 functions.
156 (find_methods): Change arguments. Don't canonicalize input.
157 Simplify logic.
158 (add_matching_methods, add_constructors)
159 (build_canonical_line_spec): Remove.
160 (filter_results, convert_results_to_lsals): New functions.
161 (decode_line_2): Change arguments. Rewrite for new data
162 structures.
163 (decode_line_internal): Rename from decode_line_1. Change
164 arguments. Add cleanups. Update for new data structures.
165 (linespec_state_constructor, linespec_state_destructor)
166 (decode_line_full, decode_line_1): New functions.
167 (decode_indirect): Change arguments. Update.
168 (locate_first_half): Use skip_spaces.
169 (decode_objc): Change arguments. Update for new data structures.
170 Simplify logic.
171 (decode_compound): Change arguments. Add cleanups. Remove
172 fallback code, replace with error.
173 (struct decode_compound_collector): New type.
174 (collect_one_symbol): New function.
175 (lookup_prefix_sym): Change arguments. Update.
176 (compare_symbol_name, add_all_symbol_names_from_pspace)
177 (find_superclass_methods ): New functions.
178 (find_method): Rewrite.
179 (struct symtab_collector): New type.
180 (add_symtabs_to_list, collect_symtabs_from_filename): New
181 functions.
182 (symtabs_from_filename): Change API. Rename from
183 symtab_from_filename.
184 (collect_function_symbols): New function.
185 (find_function_symbols): Change API. Rename from
186 find_function_symbol. Rewrite.
187 (decode_all_digits): Change arguments. Rewrite.
188 (decode_dollar): Change arguments. Use decode_variable.
189 (decode_label): Change arguments. Rewrite.
190 (collect_symbols): New function.
191 (minsym_found): Change arguments. Rewrite.
192 (check_minsym, search_minsyms_for_name)
193 (add_matching_symbols_to_info): New function.
194 (decode_variable): Change arguments. Iterate over all symbols.
195 (symbol_found): Remove.
196 (symbol_to_sal): New function.
197 (init_linespec_result, destroy_linespec_result)
198 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
199 New functions.
200 (decode_digits_list_mode, decode_digits_ordinary): New functions.
201 * dwarf2read.c (dw2_map_expand_apply): New function.
202 (dw2_map_symtabs_matching_filename): Rename from
203 dw2_lookup_symtab. Change arguments.
204 (dwarf2_gdb_index_functions): Update.
205 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
206 * defs.h (compare_strings): Declare.
207 * cli/cli-cmds.c (compare_strings): Move to utils.c.
208 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
209 filter_sals.
210 (compare_symtabs, filter_sals): New functions.
211 * breakpoint.h (struct bp_location) <line_number, source_file>:
212 New fields.
213 (struct breakpoint) <line_number, source_file>: Remove.
214 <filter>: New field.
215 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
216 (momentary_breakpoint_from_master, add_location_to_breakpoint):
217 Update for changes to locations.
218 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
219 breakpoint.
220 (create_breakpoint_sal): Add 'filter' argument.
221 (remove_sal, expand_line_sal_maybe): Remove.
222 (create_breakpoints_sal): Remove 'sals' argument. Handle
223 pre-expanded sals and the filter.
224 (parse_breakpoint_sals): Use decode_line_full.
225 (check_fast_tracepoint_sals): Use get_sal_arch.
226 (create_breakpoint): Create a linespec_sals. Update.
227 (break_range_command): Use decode_line_full. Update.
228 (until_break_command): Update.
229 (clear_command): Update match conditions for linespec.c changes.
230 Use DECODE_LINE_LIST_MODE.
231 (say_where): Update for changes to locations.
232 (bp_location_dtor): Free 'source_file'.
233 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
234 (update_static_tracepoint): Update for changes to locations.
235 (update_breakpoint_locations): Disable ranged breakpoint if too
236 many locations match. Update.
237 (addr_string_to_sals): Use decode_line_full. Resolve all sal
238 PCs.
239 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
240 (decode_line_spec_1): Update. Change argument name to 'flags',
241 change interpretation.
242 * block.h (block_containing_function): Declare.
243 * block.c (block_containing_function): New function.
244 * skip.c (skip_function_command): Update.
245 (skip_re_set): Update.
246 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
247 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
248 * NEWS: Add entry.
249
2502011-12-06 Tom Tromey <tromey@redhat.com>
251
252 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
253 breakpoint's pspace to be NULL.
254 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
255 * breakpoint.c (init_raw_breakpoint): Conditionally set
256 breakpoint's pspace.
257 (init_breakpoint_sal): Don't set breakpoint's pspace.
258 (prepare_re_set_context): Conditionally switch program space.
259 (addr_string_to_sals): Check executing_startup on location's
260 program space.
261
2622011-12-06 Tom Tromey <tromey@redhat.com>
263
264 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
265 * breakpoint.c (should_be_inserted): Explicitly check if program
266 space is executing startup.
267 (describe_other_breakpoints): Update.
268 (disable_breakpoints_before_startup): Change executing_startup
269 earlier. Remove loop.
270 (enable_breakpoints_after_startup): Likewise.
271 (init_breakpoint_sal): Don't use bp_startup_disabled.
272 (create_breakpoint): Don't use bp_startup_disabled.
273 (update_global_location_list): Use should_be_inserted.
274 (bkpt_re_set): Update.
275
75c8c9d7
TT
2762011-12-06 Tom Tromey <tromey@redhat.com>
277
278 * python/lib/gdb/command/pretty_printers.py
279 (InfoPrettyPrinter.invoke1): Remove extra double quote.
280
7376e450
TT
2812011-12-06 Tom Tromey <tromey@redhat.com>
282
283 * NEWS: Add MI news.
284
c642a434
UW
2852011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
286
287 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
288 (S390_LAST_BREAK_REGNUM): Likewise.
289 (S390_SYSTEM_CALL_REGNUM): Likewise.
290 (S390_NUM_REGS): Update.
291
292 (s390_regmap_last_break): Add declaration.
293 (s390x_regmap_last_break): Likewise.
294 (s390_regmap_system_call): Likewise.
295
296 (tdesc_s390_linux32v1): Add declaration.
297 (tdesc_s390_linux32v2): Likewise.
298 (tdesc_s390_linux64v1): Likewise.
299 (tdesc_s390_linux64v2): Likewise.
300 (tdesc_s390x_linux64v1): Likewise.
301 (tdesc_s390x_linux64v2): Likewise.
302
303 * s390-tdep.c: Include new target description files
304 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
305 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
306 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
307 (s390_cannot_store_register): New function.
308 (s390_write_pc): Likewise.
309 (s390_dwarf_regmap): Add fields for new registers.
310 (s390_regmap_gregset): Likewise.
311 (s390x_regmap_gregset): Likewise.
312 (s390_regmap_fpregset): Likewise.
313 (s390_regmap_upper): Likewise.
314 (s390_regmap_last_break): New variable.
315 (s390x_regmap_last_break): Likewise.
316 (s390_regmap_system_call): Likewise.
317 (s390_last_break_regset): Likewise.
318 (s390x_last_break_regset): Likewise.
319 (s390_system_call_regset): Likewise.
320 (s390_upper_regset_sections): Rename to ...
321 (s390_linux64_regset_sections): ... this.
322 (s390_linux32_regset_sections): New variable.
323 (s390x_linux64_regset_sections): Likewise.
324 (s390_linux32v1_regset_sections): Likewise.
325 (s390_linux32v2_regset_sections): Likewise.
326 (s390_linux64v1_regset_sections): Likewise.
327 (s390_linux64v2_regset_sections): Likewise.
328 (s390x_linux64v1_regset_sections): Likewise.
329 (s390x_linux64v2_regset_sections): Likewise.
330 (s390_regset_from_core_section): Handle .reg-s390-last-break and
331 .reg-s390-system-call core file sections.
332 (s390_core_read_description): Check for presence of
333 .reg-s390-last-break and .reg-s390-system-call core file
334 sections and return appropriate target description.
335 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
336 "last_break" and "system_call" in target description. Install
337 appropriate gdbarch_core_regset_sections array.
338 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
339 (_initialize_s390_tdep): Initialize additional target descriptions.
340
341 * s390-nat.c: Include "elf/common.h".
342 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
343 (have_regset_last_break): New static variable.
344 (have_regset_system_call): Likewise.
345 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
346 (s390_native_collect): Likewise.
347 (fetch_regset, store_regset, check_regset): New functions.
348 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
349 and S390_SYSTEM_CALL_REGNUM.
350 (s390_linux_store_inferior_registers): Likewise.
351 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
352 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
353
354 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
355 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
356 (s390-linux32v1-expedite): Define.
357 (s390-linux32v2-expedite): Likewise.
358 (s390-linux64v1-expedite): Likewise.
359 (s390-linux64v2-expedite): Likewise.
360 (s390x-linux64v1-expedite): Likewise.
361 (s390x-linux64v2-expedite): Likewise.
362
363 * features/s390-linux32.xml: Add orig_r2 register.
364 * features/s390-linux64.xml: Likewise.
365 * features/s390x-linux64.xml: Likewise.
366 * features/s390-linux32v1.xml: New file.
367 * features/s390-linux32v2.xml: Likewise.
368 * features/s390-linux64v1.xml: Likewise.
369 * features/s390-linux64v2.xml: Likewise.
370 * features/s390x-linux64v1.xml: Likewise.
371 * features/s390x-linux64v2.xml: Likewise.
372
373 * features/s390-linux32.c: Regenerate.
374 * features/s390-linux64.c: Likewise.
375 * features/s390x-linux64.c: Likewise.
376 * features/s390-linux32v1.c: New generated file.
377 * features/s390-linux32v2.c: Likewise.
378 * features/s390-linux64v1.c: Likewise.
379 * features/s390-linux64v2.c: Likewise.
380 * features/s390x-linux64v1.c: Likewise.
381 * features/s390x-linux64v2.c: Likewise.
382
383 * regformats/s390-linux32.dat: Regenerate.
384 * regformats/s390-linux64.dat: Regenerate.
385 * regformats/s390x-linux64.dat: Regenerate.
386 * regformats/s390-linux32v1.dat: New generated file.
387 * regformats/s390-linux32v2.dat: Likewise.
388 * regformats/s390-linux64v1.dat: Likewise.
389 * regformats/s390-linux64v2.dat: Likewise.
390 * regformats/s390x-linux64v1.dat: Likewise.
391 * regformats/s390x-linux64v2.dat: Likewise.
392
336060f3
PA
3932011-12-05 Pedro Alves <pedro@codesourcery.com>
394
395 * linux-nat.c (resume_stopped_resumed_lwps): Call
396 registers_changed.
397
049e32d3
PA
3982011-12-05 Pedro Alves <pedro@codesourcery.com>
399
400 * breakpoint.c: Include record.h.
401 (breakpoints_always_inserted_mode): Return false when the record
402 target is in use.
403
5c03c7f9 4042011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
405
406 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
407 Reinstate perror_with_name call on ptrace error. Remove #if 0.
408 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
409 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
410
fbbd034e
AS
4112011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
412
413 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
414 `i'(-Wshadow).
415
a5ff8356 4162011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
417
418 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
419
4202011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
421
a5ff8356
AS
422 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
423 of `tdep'(-Wshadow).
424
93f2a35e
JK
4252011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 Fix compilation --without-expat.
428 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
429 from ...
430 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
431
2268b414
JK
4322011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
433 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
436 * features/library-list-svr4.dtd: New file.
437 * remote.c (PACKET_qXfer_libraries_svr4): New.
438 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
439 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
440 * solib-svr4.c (struct svr4_library_list): New.
441 [HAVE_LIBEXPAT]: Include xml-support.h.
442 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
443 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
444 [HAVE_LIBEXPAT] (svr4_library_list_children)
445 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
446 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
447 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
448 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
449 (svr4_read_so_list): Extend the corruption message by addresses.
450 (svr4_current_sos): New variable library_list, call
451 svr4_current_sos_via_xfer_libraries.
452 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
453
585861ea
JK
4542011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 PR threads/13448
457 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
458 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
459
9750bca9
JK
4602011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
461
462 PR breakpoints/13346
463 * dwarf2read.c (process_psymtab_comp_unit): Set
464 PSYMTABS_ADDRMAP_SUPPORTED.
465 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
466 validity. New field psymtabs_addrmap_supported.
467 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
468 psymtabs_addrmap_supported.
469 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
470 !PSYMTABS_ADDRMAP_SUPPORTED.
471 (dump_psymtab, maintenance_info_psymtabs): Print also
472 psymtabs_addrmap_supported.
473
f28c316a
DE
4742011-12-01 Doug Evans <dje@google.com>
475
476 * python/py-type.c (type_object_methods): Fix "array" doc string.
477
fc0ae648
AB
4782011-12-01 Andrew Burgess <aburgess@broadcom.com>
479
480 * source.c (print_source_lines_base): Fix missing braces on else
481 clause leading to additional output.
482
d6db1fab
UW
4832011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
484
485 * s390-nat.c (SUBOFF): Remove.
486 (s390_native_supply, s390_native_collect): New functions.
487 (supply_gregset, supply_fpregset): Use s390_native_supply.
488 (fill_gregset, fill_fpregset): Use s390_native_collect.
489
490 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
491 (s390_unwind_pseudo_register): New function.
492 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
493 registers instead of PC and CC.
494 (s390_backchain_frame_unwind_cache): Likewise.
495 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
496 full GPR pseudos.
497 (s390_trad_frame_prev_register): New function.
498 (s390_frame_prev_register): Use it.
499 (s390_sigtramp_frame_prev_register): Likewise.
500 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
501 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
502 special callback to unwind any pseudo.
503
504 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
505 * features/s390-core64.xml: Likewise.
506 * features/s390x-core64.xml: Likewise.
507 * features/s390-linux32.c: Regenerate.
508 * features/s390-linux64.c: Likewise.
509 * features/s390x-linux64.c: Likewise.
510
1dd635ac
UW
5112011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
512
513 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
514
0161e4b9
UW
5152011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
516
517 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
518 instruction. Add more diagnostic output.
519
0c36327f
AS
5202011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
521
522 * MAINTAINERS (Write After Approval): Add myself to the list.
523
b4264740
SD
5242011-11-29 Sanjoy Das <sdas@igalia.com>
525
526 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
527 (jit_bfd_try_read_symtab): Fix comments.
528
87326c78
DD
5292011-11-28 DJ Delorie <dj@redhat.com>
530
531 * NEWS: Mention RL78 simulator.
532
1e3a8f45
JB
5332011-11-28 Joel Brobecker <brobecker@adacore.com>
534
535 * symfile.h (struct quick_symbol_functions): Fix the documentation
536 of field map_matching_symbols, as symbols are sorted using
537 strcmp_iw_ordered, not strcmp_iw.
538
265e52c3
JB
5392011-11-28 Paul Hilfinger <hilfinger@adacore.com>
540
541 * symfile.h (struct quick_symbol_functions): Update the
542 documentation for field map_matching_symbols.
543
1a1d5513
JB
5442011-11-28 Joel Brobecker <brobecker@adacore.com>
545
546 * ada-lang.c (compare_names): Fix wrong return value in case
547 string1 starts with the same contents as string2, followed
548 by an underscore that do not start a symbol name suffix.
549
5d9c5995
PM
5502011-11-28 Phil Muldoon <pmuldoon@redhat.com>
551
552 PR python/13369
553 PR python/13374
554
555 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
556 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
557 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
558 exceptions.
559 * python/py-type.c (typy_strip_typedefs): Ditto.
560 (typy_legacy_template_argument): Ditto.
561 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
562 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
563
2bf50f6f
JB
5642011-11-27 Joel Brobecker <brobecker@acacore.com>
565
566 * remote.c (remote_get_tracepoint_status): Delete addrbuf
567 local variable. Avoid use of sprintf_vma.
568
744ab88c
SD
5692011-11-27 Sanjoy Das <sdas@igalia.com>
570
571 Fix regression in jit.exp.
572 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
573 (jit_register_code): Set the jit_objfile_data field to the correct
574 value.
575
46ad3598
UW
5762011-11-25  Uros Bizjak  <ubizjak@gmail.com>
577
578 * alpha-tdep.c (br_opcode): New.
579 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
580 (alpha_deal_with_atomic_sequence): New function.
581 (alpha_gdbarch_init): Handle single stepping of atomic sequences
582 with alpha_deal_with_atomic_sequence.
583
e4c5f296
TG
5842011-11-24 Tristan Gingold <gingold@adacore.com>
585
586 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
587 fields. Add oso_sym, end_sym and nbr_syms.
588 (macho_register_oso): Change interface.
589 (macho_symtab_add_minsym): New function.
590 (macho_symtab_read): Rewritten.
591 (get_archive_prefix_len): Remove trailing blanks.
592 (oso_el_compare_name): Add comment.
593 (struct macho_sym_hash_entry): New structure.
594 (macho_relocate_common_syms): Remove.
595 (macho_sym_hash_newfunc): New function.
596 (macho_resolve_oso_sym_with_minsym): Likewise.
597 (macho_add_oso_symfile): Rewritten.
598 (macho_symfile_read_all_oso): Remove trailing blanks.
599 Adjust code to free oso vector.
600 (macho_symfile_read): Likewise.
601 Move code to initialize minimal symbol
602
130854df
MR
6032011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
604
605 * mips-tdep.c (extended_offset): Fix formatting.
606
3d7bb9d9
DE
6072011-11-23 Doug Evans <dje@google.com>
608
609 * dwarf2read.c (dw2_lookup_symtab): Add comment.
610 (dw2_expand_symtabs_with_filename): Ditto.
611 (dw2_expand_symtabs_matching): Ditto.
612 (dw2_map_symbol_filenames): Ditto.
613
1fbf5ada
JB
6142011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
615
616 * ada-lang.c (assign_aggregate): Minor reformatting.
617
d984108d
JB
6182011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
619
620 * ada-lang.c (assign_aggregate): Remove declaration of local
621 variable `i' which is shadowing another variable with the same
622 name declared in the outer scope.
623
18af8284
JB
6242011-11-23 Joel Brobecker <brobecker@adacore.com>
625
626 * ada-lang.c (get_base_type): Renames base_type. Adjust all
627 calls throughout this file.
628
1fc7b5d7
JB
6292011-11-23 Joel Brobecker <brobecker@adacore.com>
630
631 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
632 FormatMessage.
633
36dfb11c
TT
6342011-11-22 Tom Tromey <tromey@redhat.com>
635
636 PR mi/8444:
637 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
638 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
639 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
640 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
641 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
642 (print_it_catch_syscall, print_it_catch_exec)
643 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
644 (bpstat_print): Add 'kind' argument. Handle
645 TARGET_WAITKIND_LOADED.
646 * infrun.c (normal_stop): Update for bpstat_print change. Don't
647 handle TARGET_WAITKIND_LOADED here.
648 * breakpoint.h (bpstat_print): Update.
649
5bd6aa83
TT
6502011-11-22 Tom Tromey <tromey@redhat.com>
651
652 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
653
f5afdc18
TT
6542011-11-22 Tom Tromey <tromey@redhat.com>
655
656 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
657 Use static_assert to check the size of
658 async_reason_string_lookup.
659 * common/gdb_assert.h (static_assert): New macro.
660
a3769e0c
AM
6612011-11-22 Alan Modra <amodra@gmail.com>
662
663 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
664 destination calculation. Don't expect >> to sign extend. Don't
665 add a break if branch lands inside the sequence anywhere.
666
56767571
KS
6672011-11-21 Keith Seitz <keiths@redhat.com>
668
669 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
670 -var-evaluate-expression of an enumeration and fix expected result.
671 * gdb.mi/mi2-varvdisplay.exp: Likewise.
672
8443c207
KY
6732011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
674
675 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
676 the case where osdata->items is empty. Rename column names to a
677 canonical form to avoid problems with unusual column names.
678
97643830
YQ
6792011-11-21 Yao Qi <yao@codesourcery.com>
680
681 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
682
f196051f
SS
6832011-11-20 Stan Shebs <stan@codesourcery.com>
684
685 * NEWS: Mention tracepoint additions.
686 * breakpoint.h (struct tracepoint): New field traceframe_usage.
687 * breakpoint.c (print_one_breakpoint_location): Identify
688 tracepoints as such when reporting hit counts, report
689 trace buffer usage.
690 (create_tracepoint_from_upload): Copy status info.
691 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
692 add fields user_name, notes, start_time, stop_time.
693 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
694 * tracepoint.c (trace_user): New global.
695 (trace_notes): New global.
696 (trace_stop_notes): New global.
697 (start_tracing): Add argument and trace note handling.
698 (stop_tracing): Ditto.
699 (trace_start_command): Add notes argument.
700 (trace_stop_command): Ditto.
701 (trace_status_command): Report additional status info.
702 (trace_status_mi): Similarly.
703 (trace_save): Update, record tracepoint status.
704 (set_disconnected_tracing): Call target method directly.
705 (send_disconnected_tracing_value): Remove.
706 (set_trace_user): New function.
707 (set_trace_notes): New function.
708 (set_trace_stop_notes): New function.
709 (parse_trace_status): Handle additional status.
710 (parse_tracepoint_status): New function.
711 (parse_tracepoint_definition): Call it.
712 (tfile_get_tracepoint_status): New function.
713 (init_tfile_ops): Use it.
714 (_initialize_tracepoint): Add new setshows.
715 * target.h (struct target_ops): New methods to_get_tracepoint_status
716 and to_set_trace_notes.
717 (target_get_tracepoint_status): New macro.
718 (target_set_trace_notes): New macro.
719 * target.c (update_current_target): Add new methods.
720 * remote.c (remote_get_tracepoint_status): New function.
721 (remote_set_trace_notes): New function.
722 (init_remote_ops): Add them.
723 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
724 (mi_cmd_trace_stop): Ditto.
725
3623dc3a
SD
7262011-11-20 Sanjoy Das <sdas@igalia.com>
727
728 * jit.c: Include regcache.h.
729 (jit_gdbarch_data, jit_frame_unwind): New static variables.
730 (jit_unwind_reg_set_impl, free_reg_value_impl)
731 (jit_unwind_reg_get_impl, jit_frame_sniffer)
732 (jit_frame_unwind_stop_reason, jit_frame_this_id)
733 (jit_frame_prev_register, jit_dealloc_cache)
734 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
735 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
736 jit_prepend_unwinder.
737 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
738
1825a88d
SD
7392011-11-20 Sanjoy Das <sdas@igalia.com>
740
741 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
742 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
743 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
744 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
745 (finalize_symtab, jit_object_close_impl)
746 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
747 (free_objfile_data): New functions.
748 (_initialize_jit): Register jit_objfile_data with a proper cleanup
749 function.
750
784c47ee
SD
7512011-11-20 Sanjoy Das <sdas@igalia.com>
752
753 * jit.c: Include gdb-dlfcn.h.
754 (loaded_jit_reader, reader_init_fn_sym): New static variables.
755 (jit_reader_load, jit_reader_load_command)
756 (jit_reader_unload_command): New functions.
757 (_initialize_jit): Add commands "jit-reader-load" and
758 "jit-reader-unload".
759
a2d08b9e
SD
7602011-11-20 Sanjoy Das <sdas@igalia.com>
761
762 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
763 * config.in: Add new #define HAVE_LIBDL.
764 * configure.ac: Add check for -ldl.
765 * configure: Re-generated by autoconf.
766 * gdb-dlfcn.c: New file.
767 * gdb-dlfcn.h: New file.
768
b8e0a31c
SD
7692011-11-20 Sanjoy Das <sdas@igalia.com>
770
771 * config.in: Add new #defines: JIT_READER_DIR and
772 JIT_READER_DIR_RELOCATABLE.
773 * configure.ac: New GDB directory entry for jit-reader-dir.
774 * configure: Re-generated by autoconf.
775 * jit.c: New static variable: const char *jit_reader_dir.
776 (_initialize_jit): Relocate jit_reader_dir.
777
f997c383
SD
7782011-11-20 Sanjoy Das <sdas@igalia.com>
779
780 * Makefile.in: Add jit-reader.h as a header. Have it installed in
781 $(includedir)/gdb.
782 * configure.ac: Generate a correct value for TARGET_PTR for
783 jit-reader.h. Tell configure to generate jit-reader.h from
784 jit-reader.in.
785 * configure: Re-generated by autoconf.
786 * jit-reader.in: New file.
787 * jit.c: Include jit-reader.h.
788
dc8c0494
SD
7892011-11-20 Sanjoy Das <sdas@igalia.com>
790
791 * MAINTAINERS (Write After Approval): Add myself to the list.
792
01efb936
UW
7932011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
794
795 * findvar.c (read_frame_register_value): Respect value_offset
796 of the register value. Remove big-endian special case.
797
732f3f12
TT
7982011-11-18 Tom Tromey <tromey@redhat.com>
799
800 PR build/7196:
801 * remote.c (putpkt_for_catch_errors): New function.
802 (remote_kill): Use it.
803
bfccc43c
YQ
8042011-11-18 Yao Qi <yao@codesourcery.com>
805
806 * breakpoint.c (create_breakpoint): Produce query message according to
807 breakpoint's type.
808 Allocate tracepoint per correct type.
809 Don't check SALs for pending fast tracepoints.
810 * tracepoint.c (process_tracepoint_on_disconnect): New.
811 (disconnect_tracing): Call process_tracepoint_on_disconnect.
812
3ea46bff
YQ
8132011-11-18 Yao Qi <yao@codesourcery.com>
814
815 * breakpoint.c (install_breakpoint): Add one more parameter so that
816 update_global_location_list is called conditionally.
817 (create_fork_vfork_event_catchpoint): Update.
818 (create_syscall_event_catchpoint): Update.
819 (create_breakpoint_sal): Update.
820 (create_breakpoint_sal): Update. Call do_cleanups before
821 install_breakpoint.
822 * ada-lang.c (create_ada_exception_catchpoint): Update.
823 * breakpoint.h (install_breakpoint): Update declaration.
824
598cfb71
UW
8252011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
826
827 * spu-tdep.c (spu_return_value): Fix handling of
828 TYPE_CALLING_CONVENTION annotation.
829
caf4328c
UW
8302011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
831
832 * skip.c (skip_function_command): Work around uninitialized
833 variable warning.
834
2b54dda2
DM
8352011-11-16 David S. Miller <davem@davemloft.net>
836
837 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
838 'tv_usec' to long for printf since these fields have a type which
839 varies.
840
93bf33fd
DE
8412011-11-15 Doug Evans <dje@google.com>
842
843 * buildsym.c (add_symbol_to_list): Delete outdated comment.
844
9cc10fd1
PK
8452011-11-15 Paul Koning <paul_koning@dell.com>
846
847 * python/py-type.c (typy_get_composite): New function.
848 (typy_nonzero): New function.
849 (typy_values): Rename from typy_fields.
850 (typy_fields): New function.
851 (typy_length): Raise exception if not struct, union, or enum type.
852 (typy_getitem): Ditto.
853 (typy_has_key): Ditto.
854 (typy_make_iter): Ditto.
855
c011a4f4
DE
8562011-11-15 Doug Evans <dje@google.com>
857
858 * NEWS: Mention new parameter basenames-may-differ.
859 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
860 ! basenames_may_differ.
861 * psymtab.c (lookup_partial_symtab): Ditto.
862 * symtab.c (lookup_symtab): Ditto.
863 (basenames_may_differ): New global.
864 (_initialize_symtab): New parameter basenames-may-differ.
865 * symtab.h (basenames_may_differ): Declare.
866
865ecab4
LM
8672011-11-15 Pedro Alves <pedro@codesourcery.com>
868 Luis Machado <lgustavo@codesourcery.com>
869
870 * auxv.c: Include observer.h.
871 (auxv_inferior_data_cleanup): New.
872 (invalidate_auxv_cache_inf): New.
873 (invalidate_auxv_cache): New.
874 (get_auxv_inferior_data): New.
875 (auxv_inferior_data): New static global.
876 (auxv_info): New structure.
877 (target_auxv_search): Use get_auxv_inferior_data instead of
878 target_read_alloc and don't free cached buffers.
879 (fprint_target_auxv): Likewise
880 (_initialize_auxv): Register per-inferior auxv cache and register
881 observers to invalidate auxv cache when needed.
882
ed59ded5
DE
8832011-11-14 Doug Evans <dje@google.com>
884
885 Make "!" an alias for "shell".
886 * NEWS: Add mention.
887 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
888 adding "!" command, always add it.
889 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
890 command of length one.
891
405f8e94
SS
8922011-11-14 Stan Shebs <stan@codesourcery.com>
893 Kwok Cheung Yeung <kcy@codesourcery.com>
894
895 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
896 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
897 the minimum instruction size for fast tracepoints.
898 * target.h (struct target_ops): Add new method
899 to_get_min_fast_tracepoint_insn_len.
900 (target_get_min_fast_tracepoint_insn_len): New.
901 * target.c (update_current_target): Set up new target operation.
902 * remote.c (remote_write_bytes_aux): Fix typo.
903 (remote_get_min_fast_tracepoint_insn_len): New.
904 (init_remote_ops): Initialize new field.
905
3e05895e
TT
9062011-11-14 Tom Tromey <tromey@redhat.com>
907
908 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
909 (encode_actions): Likewise.
910
1e4d1764
YQ
9112011-11-14 Yao Qi <yao@codesourcery.com>
912
913 * remote.c (struct remote_state): <install_in_trace> new field.
914 (PACKET_InstallInTrace): New enum value.
915 (remote_install_in_trace_feature): Support InstallInTrace.
916 (remote_supports_install_in_trace): Likewise.
917 (remote_protocol_features): Likewise.
918 (_initialize_remote): Likewise.
919 (remote_can_download_tracepoint): New.
920 * target.h (struct target): New field
921 `to_can_download_tracepoint'.
922 (target_can_download_tracepoint): New macro.
923 * target.c (update_current_target): Update.
924 * breakpoint.h (struct bp_location): Add comment on field
925 `duplicate'.
3ccd4ac6
YQ
926 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
927 and tracepoint.
1e4d1764
YQ
928 (remove_breakpoints): Don't remove tracepoints.
929 (tracepoint_locations_match ): New.
930 (breakpoint_locations_match): Call it.
931 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
932 (download_tracepoint_locations): New.
933 (update_global_location_list): Call it.
934 * tracepoint.c (find_matching_tracepoint): Delete.
935 (find_matching_tracepoint_location): Renamed from
936 find_matching_tracepoint. Return bp_location rather than
937 tracepoint.
938 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
939 tracepoint is found.
940
e8ba3115
YQ
9412011-11-14 Yao Qi <yao@codesourcery.com>
942
943 * target.h (struct target): <to_download_tracepoint> Change type
944 of parameter from tracepoint to bp_location.
945 * target.c (update_current_target): Update.
946 * tracepoint.c (start_tracing): Update.
947 * remote.c (remote_download_tracepoint): Remove loop for each location
948 of a tracepoint.
949
edcc485a
MR
9502011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
951
952 * i386-nat.c (i386_insert_hw_breakpoint): Call
953 i386_update_inferior_debug_regs.
954 (i386_remove_hw_breakpoint): Likewise.
955
3742cc8b
YQ
9562011-11-14 Yao Qi <yao@codesourcery.com>
957
958 * breakpoint.c (init_raw_breakpoint): Call
959 add_location_to_breakpoint to replace duplicated code.
960 (add_location_to_breakpoint): Adjust the breakpoint's
961 address prior to allocating a location.
962
71eba9c2 9632011-11-12 Matt Rice <ratmice@gmail.com>
964
965 * macrocmd.c (macro_no_macro_info): New function.
966 (macro_expand_command): Use macro_no_macro_info.
967 (macro_expand_once_command): Ditto.
968 (info_macro_command): Add argument processing,
969 move info_definitions_command here.
970 (_initialize_macrocmd): Remove info definitions command.
971 Add arguments to info macro help text.
972 * NEWS: Replace info definitions command with new info macro options.
973
731971ed
KS
9742011-11-11 Keith Seitz <keiths@redhat.com>
975
976 PR gdb/12843
977 * linespec.c (locate_first_half): Keep ':' if it looks
978 like it could be part of a Windows path starting with
979 a drive letter.
980
6953d224
PA
9812011-11-10 Pedro Alves <pedro@codesourcery.com>
982
983 * linux-nat.c (linux_nat_wait): Don't force waking up the event
984 loop when returning a TARGET_WAITKIND_NO_RESUMED.
985
0c94aa73
PA
9862011-11-10 Pedro Alves <pedro@codesourcery.com>
987
988 * target.c (target_waitstatus_to_string): Handle
989 TARGET_WAITKIND_NO_RESUMED.
990
f6b47be4
DE
9912011-11-10 Doug Evans <dje@google.com>
992
74e2f255
DE
993 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
994 `need_fullname'.
995 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
996 (map_partial_symbol_filenames): Ditto. All callers updated.
997 * psymtab.h (map_partial_symbol_filenames): Update prototype.
998 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
999 parameter need_fullname.
1000
256f06f3
DE
1001 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1002 * source.c (symtab_to_fullname): Ditto.
1003
50f182aa
DE
1004 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1005 * gdb-demangle.h: ... here. New file.
1006 * demangle.c: #include "gdb-demangle.h".
1007 (_initialize_demangler): Use initialize_file_ftype for prototype.
1008 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1009 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1010 from utils.c
1011 * utils.c: Update. #include "gdb-demangle.h".
1012 * symtab.h (asm_demangle): Delete.
1013 (demangle): Move declaration next to use.
1014 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1015 * dwarf2read.c: #include "gdb-demangle.h".
1016 * gnu-v2-abi.c: Ditto.
1017 * jv-typeprint.c: Ditto.
1018 * mdebugread.c: Ditto.
1019 * p-typeprint.c: Ditto.
1020 * stabsread.c: Ditto.
1021 * printcmd.c: Ditto.
1022 (asm_demangle): Delete declaration.
1023 * tui/tui-stack.c: #include "gdb-demangle.h".
1024
f6b47be4
DE
1025 * python/py-type.c (typy_fields_items): Call check_typedef.
1026
22355c90
JB
10272011-11-10 Joel Brobecker <brobecker@adacore.com>
1028
1029 * findvar.c (read_frame_register_value): Read the correct bytes
1030 from registers on big-endian architectures.
1031
bd119cf1 10322011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1033
1034 * procfs.c (load_syscalls): Make a cleanup.
1035 (open_procinfo_files): fd==0 is ok.
1036
0a86f364
JB
10372011-11-10 Joel Brobecker <brobecker@adacore.com>
1038
1039 * procfs.c (iterate_over_mappings): Call do_cleanups before
1040 returning.
1041
9bc118a5
DE
10422011-11-09 Doug Evans <dje@google.com>
1043
1044 * gdbtypes.c (check_typedef): Document that this function can
1045 throw an exception.
1046
a7860e76
TT
10472011-11-09 Tom Tromey <tromey@redhat.com>
1048
1049 PR c++/13342:
1050 * valops.c (value_full_object): Return early if real type is
1051 smaller than the enclosing type.
1052
60965737
YQ
10532011-11-08 Yao Qi <yao@codesourcery.com>
1054
1055 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1056
72a2e3dc
MI
10572011-11-08 Meador Inge <meadori@codesourcery.com>
1058
1059 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1060 register when the frame can't be determined.
1061 * arm-tdep.c (arm_analyze_prologue): Ditto.
1062
ce3b0ff7
SS
10632011-11-07 Stan Shebs <stan@codesourcery.com>
1064
1065 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1066
2b914b52
JB
10672011-11-07 Joel Brobecker <brobecker@adacore.com>
1068
1069 * infrun.c (handle_inferior_event): Minor reformatting.
1070
6f809020
DE
10712011-11-05 Doug Evans <dje@google.com>
1072
1073 * source.c (forget_cached_source_info_for_objfile): Move call to
1074 objfile->sf->qf->forget_cached_source_info outside of
1075 ALL_OBJFILE_SYMTABS loop.
1076 (forget_cached_source_info): Delete unused variable `s'.
1077
75d12218
JK
10782011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1079
1080 * i386-nat.c (dr_ref_count): Remove unused variable.
1081
e565b837
DE
10822011-11-05 Doug Evans <dje@google.com>
1083
1084 * main.c (captured_main): Set lim_at_start before calling
1085 make_command_stats_cleanup.
1086
0a1c4d10
DE
10872011-11-04 Doug Evans <dje@google.com>
1088
1089 * utils.c: #include "timeval-utils.h".
1090 (cmd_stats): Rename start_time to start_cpu_time.
1091 New member start_wall_time.
1092 (report_command_stats): Report wall time.
1093 (make_command_stats_cleanup): Record start wall time.
1094
a1d705ee
TT
10952011-11-04 Tom Tromey <tromey@redhat.com>
1096
1097 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1098
81de56be
RO
10992011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1100
1101 * coff-pe-read.c: Include defs.h before bfd.h.
1102
3ab1ec27
PM
11032011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1104
1105 PR Python/13345
1106
1107 * python/python.c (python_run_simple_file): Expand tilde in path.
1108
cd829959
PM
11092011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1110
1111 PR Python/13363
1112
1113 * python/py-type.c (typy_lookup_type): Do not return a type in
1114 an exception handler.
1115
080ad648
JK
11162011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 Eli Zaretskii <eliz@gnu.org>
1118
1119 * linux-nat.c (_initialize_linux_nat): Improve help
1120 for `info proc stat', `info proc status', `info proc cwd',
1121 `info proc cmdline' and `info proc exe'.
1122
3065dfb6
SS
11232011-11-02 Stan Shebs <stan@codesourcery.com>
1124
1125 String collection for tracepoints.
1126 * NEWS: Mention string collection.
1127 * common/ax.def (tracenz): New bytecode.
1128 * ax-gdb.h (trace_string_kludge): Declare.
1129 * ax-gdb.c: Include valprint.h and c-lang.h.
1130 (trace_string_kludge): New global.
1131 (gen_traced_pop): Add string case.
1132 (agent_command): Add string case.
1133 * tracepoint.h (decode_agent_options): Declare.
1134 * tracepoint.c: Include cli-utils.h.
1135 (decode_agent_options): New function.
1136 (validate_actionline): Call it.
1137 (encode_actions_1): Ditto.
1138 * target.h (struct target_ops): New method to_supports_string_tracing.
1139 (target_supports_string_tracing): New macro.
1140 * target.c (update_current_target): Add to_supports_string_tracing.
1141 * remote.c (struct remote_state): New field string_tracing.
1142 (remote_string_tracing_feature): New function.
1143 (remote_protocol_features): New feature tracenz.
1144 (remote_supports_string_tracing): New function.
1145 (init_remote_ops): Set to_supports_string_tracing.
1146
f179e162
JK
11472011-11-02 Pedro Alves <pedro@codesourcery.com>
1148 Jan Kratochvil <jan.kratochvil@redhat.com>
1149
1150 * linux-nat.c: Include cli/cli-utils.h.
1151 (enum info_proc_what): New.
1152 (linux_nat_info_proc_cmd): Rename to ...
1153 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1154 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1155 status_f and stat_f from WHAT. Throw error on extra parameters.
1156 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1157 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1158 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1159 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1160 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1161 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1162 `info proc cmdline', `info proc exe' and `info proc all' as real
1163 subcommands of `info proc'.
1164
7b35ec7f 11652011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1166
1167 * Makefile.in: (SFILES): Add skip.c.
1168 (HFILES_NO_SRCDIR): Add skip.h.
1169 (COMMON_OBS): Add skip.o.
1170 * skip.h, skip.c: New.
1171 * breakpoint.h (set_default_breakpoint): Remove.
1172 (get_sal_arch): Declare.
1173 * breakpoint.c: Remove default_breakpoint_valid,
1174 default_breakpoint_address, default_breakpoint_symtab,
1175 default_breakpoint_line, default_breakpoint_pspace variables.
1176 (get_sal_arch): Make public.
1177 (set_default_breakpoint): Remove.
1178 (parse_breakpoint_sals, create_breakpoint, clear_command,
1179 decode_line_spec_1): Remove uses of default_breakpoint variables;
1180 replaced with function calls into stack.c.
1181 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1182 * cli/cli-cmds.c: Add skiplist.
1183 (init_cmd_lists): Initialize skiplist.
1184 (init_cli_cmds): Fix comment (classes of commands appear in
1185 alphabetical order).
1186 * infrun.c (handle_inferior_event): Add check that we don't step into
1187 a function whose pc is marked for skip.
1188 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1189 last_displayed_addr, last_displayed_symtab, last_displayed_line
1190 variables.
1191 (set_last_displayed_sal): New static function.
1192 (print_frame_info): Switch call to set_default_breakpoint to call to
1193 set_last_displayed_sal.
1194 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1195 get_last_displayed_pspace, get_last_displayed_addr,
1196 get_last_displayed_symtab, get_last_displayed_line,
1197 get_last_displayed_sal): New public functions.
1198 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1199 get_last_displayed_pspace, get_last_displayed_addr,
1200 get_last_displayed_symtab, get_last_displayed_line,
1201 get_last_displayed_sal): Declare.
1202
b60e1588
JL
12032011-11-01 Justin Lebar <justin.lebar@gmail.com>
1204
1205 * MAINTAINERS (Write After Approval): Add myself to the list.
1206
d31647d2
YQ
12072011-10-29 Yao Qi <yao@codesourcery.com>
1208
1209 * infcmd.c (disconnect_command): Call disconnect_tracing.
1210
b1d96efd
JK
12112011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 Code cleanup.
1214 * symtab.c (skip_prologue_sal): Code reformatting.
1215
4dfb2365
JK
12162011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1217
1218 PR symtab/13208
1219 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1220 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1221 SAI.
1222
0e5bf2a8
PA
12232011-10-28 Pedro Alves <pedro@codesourcery.com>
1224
1225 * linux-nat.c (linux_nat_filter_event): Remove `options'
1226 parameter, and dead code that used it. If we're handling a
1227 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1228 in our lwp list, re-add it.
1229 (check_zombie_leaders): New.
1230 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1231 wait for children with WNOHANG, and always wait for all children.
1232 Don't check for no resumed children upfront. Simplify wait loop.
1233 Check for zombie thread group leaders after handling all wait
1234 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1235 unwaited-for children left.
1236 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1237 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1238 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1239 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1240
821296b7
SA
12412011-10-28 Sterling Augustine <saugustine@google.com>
1242
1243 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1244 * symtab.c (free_completion_list): New function.
1245 (do_free_completion_list): Likewise.
1246 (default_make_symbol_completion_list_break_on): New variable
1247 back_to. Call make_cleanup and discard_cleanups.
1248 (make_source_files_completion_list): Likewise.
1249
03c3051a
PK
12502011-10-28 Paul Koning <paul_koning@dell.com>
1251
1252 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1253 * NEWS: Mention deep_items.
1254
8e7ebaf5
PA
12552011-10-28 Alen Skondro <askondro@gmail.com>
1256
8de33dc2 1257 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1258 defined.
1259
e0c6ef61
MI
12602011-10-27 Meador Inge <meadori@codesourcery.com>
1261
1262 * MAINTAINERS (Write After Approval): Add myself to the list.
1263
b56d6f31
JB
12642011-10-27 Joel Brobecker <brobecker@adacore.com>
1265
1266 * value.h (read_frame_register_value): Add declaration.
1267 * findvar.c (read_frame_register_value): New function.
1268 (value_from_register): Use read_frame_register_value
1269 instead of get_frame_register_value + value_contents_copy
1270 to get value contents.
1271
d234ef5c
DE
12722011-10-27 Doug Evans <dje@google.com>
1273
1274 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1275 source_script_from_stream if it may have been found on the search path.
1276 * python/py-auto-load.c (source_section_scripts): Pass full path to
1277 source_python_script_for_objfile.
1278 * python/python.c (source_python_script): Delete stream parameter.
1279 All callers updated.
1280 (source_python_script_for_objfile): Ditto.
1281 * python/python-internal.h (source_python_script_for_objfile): Update.
1282 * python/python.h (source_python_script): Update.
1283
d849d44f
TT
12842011-10-27 Tom Tromey <tromey@redhat.com>
1285
1286 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1287 (ada_sals_for_line): Remove declarations.
1288
2231f1fb
KP
12892011-10-27 Kevin Pouget <kevin.pouget@st.com>
1290
1291 Move unwind reasons to an external .def file
1292 * frame.c (frame_stop_reason_string): Rewrite using
1293 unwind_stop_reasons.def.
1294 * frame.h (enum unwind_stop_reason): Likewise.
1295 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1296 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1297 constants for bound-checking.
1298 * unwind_stop_reasons.def: New file.
1299 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1300 instead of a distinct value.
1301
f77b9a5d
PM
13022011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1303
1304 PR python/13331
1305
1306 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1307 (convert_values_to_python): Return on Python tuple allocation
1308 failure. Return NULL on value conversion error.
1309
76dce0be
PM
13102011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1311
1312 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1313 (bppy_set_task): Ditto.
1314 (bppy_delete_breakpoint): Ditto.
1315 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1316 (gdbpy_lookup_global_symbol): Ditto.
1317 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1318 * python/py-frame.c (frapy_is_valid): Ditto.
1319 (frame_info_to_frame_object): Ditto.
1320 * python/py-type.c (typy_lookup_type): Ditto.
1321 (typy_getitem): Ditto.
1322 (typy_has_key): Ditto.
1323 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1324
f17b6955
JB
13252011-10-26 Joel Brobecker <brobecker@adacore.com>
1326
1327 * gdbarch.h: Regenerate.
1328
86ba1042
JB
13292011-10-26 Meador Inge <meadori@codesourcery.com>
1330
1331 * gdbarch.sh (function_list): Use 'pstring' when printing
1332 'gcore_bfd_target'.
1333 * gdbarch.c: Regenerate.
1334
c34fd852
UW
13352011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1336
1337 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1338 and frame caches if PTID refers to all threads of a process.
1339
931bb47f
UW
13402011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1341
1342 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1343 to create_breakpoint.
1344
88aed45e
UW
13452011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1346
1347 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1348 (ppc_sysv_abi_push_dummy_call): Use it.
1349 (do_ppc_sysv_return_value): Likewise.
1350 (ppc64_sysv_abi_push_dummy_call): Likewise.
1351 (ppc64_sysv_abi_return_value): Likewise.
1352
3eaf3fa2
PK
13532011-10-26 Paul Koning <paul_koning@dell.com>
1354
1355 * python/lib/gdb/types.py (deepitems): New function.
1356
913460fc
PK
13572011-10-25 Paul Koning <paul_koning@dell.com>
1358
1359 PR python/13327
1360
1361 * python/py-value.c (value_to_value_object): Remove fetching of
1362 the value if it was lazy.
1363 (valpy_get_is_lazy): New function.
1364 (valpy_fetch_lazy): New function.
1365
2b5b9d09
JB
13662011-10-24 Joel Brobecker <brobecker@adacore.com>
1367
1368 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1369 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1370
e21ffe51
PA
13712011-10-24 Pedro Alves <pedro@codesourcery.com>
1372
1373 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1374 event, in non-stop, if not stopping, make sure the new lwp has
1375 last_resume_kind set to resume_continue. Assert that when we're
1376 resuming the new lwp, its last_resume_kind is resume_continue.
1377
7aee8dc2
PA
13782011-10-24 Pedro Alves <pedro@codesourcery.com>
1379
1380 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1381 already set when marking the event thread as not executing in
1382 non-stop mode.
1383
4b4e080e
PA
13842011-10-24 Pedro Alves <pedro@codesourcery.com>
1385
1386 * infrun.c (handle_inferior_event): Add debug output for
1387 TARGET_WAITKIND_NO_HISTORY.
1388
baacfb07
PM
13892011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1390
1391 * NEWS: Move set/show extended-prompt to "New Options". Expand
1392 description. Fix typos.
1393
8432bc41
PM
13942011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1395
1396 PR python/13310
1397
1398 * python/py-param.c (call_doc_function): Correctly deference on
1399 function exit.
1400
6cda5a20
JB
14012011-10-21 Joel Brobecker <brobecker@adacore.com>
1402
1403 * ada-tasks.c (print_ada_task_info): Fix computation of
1404 number of tasks displayed in command output.
1405
13294f7d
JK
14062011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 Ulrich Weigand <uweigand@de.ibm.com>
1408
1409 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1410 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1411 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1412 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1413 gdbarch_unwind_pc.
1414
460c1c54
CC
14152011-10-20 Cary Coutant <ccoutant@google.com>
1416
1417 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1418 section to...
1419 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1420 flag. Adjust all callers.
1421 (process_psymtab_comp_unit): Remove adjustment for type section.
1422
a10964d1
AR
14232011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1424
1425 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1426 arguments by adding OBJFILE. Instead of getting objfile from
1427 symbol's symtab, use new argument OBJFILE.
1428 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1429 arguments by adding OBJFILE.
1430 * gdb/dwarf2read.c (new_symbol_full): Change call to
1431 cp_scan_for_anonymous_namespaces to match new signature.
1432 * gdb/stabsread.c (define_symbol): Change call to
1433 cp_scan_for_anonymous_namespaces to match new signature.
1434
27ca1a5b
PM
14352011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1436
1437 PR python/13308
1438 PR python/13309
1439
1440 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1441 leak.
1442 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1443 leak. Delete unused variables.
1444
9df2fbc4
PM
14452011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1446
1447 PR python/12656
1448
1449 * python/py-frame.c (frapy_read_var): Use const struct *block.
1450 * python/py-type.c (typy_lookup_typename): Likewise.
1451 (typy_lookup_type): Likewise.
1452 (typy_legacy_template_argument): Likewise.
1453 (typy_template_argument): Likewise.
1454 (gdbpy_lookup_type): Likewise.
1455 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1456 * python/py-block.c (blpy_block_object): Likewise.
1457 (blpy_iter): Likewise.
1458 (blpy_get_start): Likewise.
1459 (blpy_get_end): Likewise.
1460 (blpy_get_function): Likewise.
1461 (blpy_get_superblock): Likewise.
1462 (set_block): Likewise.
1463 (block_to_block_object): Likewise.
1464 (block_object_to_block): Likewise.
1465 (blpy_is_valid): Likewise.
1466 (blpy_get_global_block): New function.
1467 (blpy_get_static_block): New function.
1468 (blpy_is_global): New function.
1469 (blpy_is_static): New function.
1470 * blockframe.c (block_innermost_frame): Likewise.
1471 * valops.c (value_of_variable): Likewise.
1472 * frame.h: Update prototypes.
1473 * python/python-internal.h: Likewise.
1474 * value.h: Likewise.
1475
4743b735
CC
14762011-10-19 Cary Coutant <ccoutant@google.com>
1477
1478 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1479 type_offset field.
1480
6caca83c
CC
14812011-10-19 Cary Coutant <ccoutant@google.com>
1482
1483 * dwarf2read.c (peek_abbrev_code): New function.
1484 (dw2_get_file_names): Check for dummy compilation units.
1485 (create_debug_types_hash_table): Likewise.
1486 (process_psymtab_comp_unit): Likewise.
1487 (load_partial_comp_unit): Likewise.
1488 (load_full_comp_unit): Likewise.
1489
43136979
AR
14902011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1491
1492 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1493 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1494 pt_phdr if PT_PHDR was found.
1495
0a07729b
TT
14962011-10-17 Joost van der Sluis <joost@cnoc.nl>
1497
1498 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1499 type or "<unnamed type"> when there is no name assigned.
1500 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1501 avoid a sigint when no name is assigned.
1502
21ae7a4d
JK
15032011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 Revert:
1506 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 * dwarf2expr.c (ctx_no_read_reg): New function.
1508 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1509 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1510 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1511 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1512
32d1c362
DE
15132011-10-16 Doug Evans <dje@google.com>
1514
1515 * NEWS: Document python gdb.printing.register_pretty_printer's new
1516 `replace' parameter.
1517
da096638
KS
15182011-10-14 Keith Seitz <keiths@redhat.com>
1519
1520 PR c++/13225
1521 * eval.c (evaluate_subexp_standard): Do not construct
1522 an array of types; pass the value array directly to
1523 find_overload_match.
1524 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1525 (rank_function): Take an array of values instead of types.
1526 (rank_one_type): Add struct value * parameter.
1527 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1528 (rank_function): For each argument, pass the argument's
1529 value to rank_one_type.
1530 (rank_one_type): Add VALUE parameter.
1531 If the parameter type is a pointer and the argument type
1532 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1533 VALUE is zero.
1534 Update all calls to rank_one_type, passing NULL for new
1535 VALUE parameter.
1536 * valarith.c (value_user_defined_cpp_op): Do not construct
1537 an array of types; pass the value array directly to
1538 find_overload_match.
1539 * valops.c (find_overload_method_list): Take an array of
1540 values instead of types.
1541 Save the type of OBJP for later use.
1542 Update calls to find_oload_champ, and find_oload_champ_namespace.
1543 (find_oload_champ_namespace): Take an array of values instead
1544 of types.
1545 (find_oload_champ_namespace_loop): Likewise.
1546 (find_oload_champ): Likewise.
1547 (classify_oload_match): Inspect all arguments
1548 until INCOMPATIBLE is found. Return the worst badness found
1549 otherwise.
1550 (compare_parameters): Update call to rank_one_type.
1551 * value.h (find_overload_match): Take an array of values instead
1552 of types.
1553
3957565a
JK
15542011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1555
1556 Drop lazy lm_info reading.
1557 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1558 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1559 (lm_info_read): New function.
1560 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1561 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1562 lm_dynamic_from_link_map.
1563 (lm_next, lm_prev, lm_name): Remove.
1564 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1565 initialization incl. read_memory. No longer use lm_name.
1566 (svr4_free_so): Drop lm_info->lm freeing.
1567 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1568 explicit lm_addr and lm initialization.
1569 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1570 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1571 lm_name.
1572
cb08cc53
JK
15732011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1574 Paul Pluzhnikov <ppluzhnikov@google.com>
1575
1576 * defs.h (struct so_list): New forward declaration.
1577 (make_cleanup_free_so): New declaration.
1578 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1579 (svr4_free_so): Move the function here from downwards. Handle NULL
1580 so->lm_info.
1581 (svr4_free_library_list): New.
1582 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1583 Use more cleanups. Use new parameter ignore_first instead of
1584 ignore_first_link_map_entry.
1585 (svr4_current_sos): New variable ignore_first, initialize it. New
1586 variable back_to, use it for svr4_free_library_list protection.
1587 (svr4_free_so): Remove - move upwards.
1588 * utils.c: Include solist.h.
1589 (do_free_so, make_cleanup_free_so): New functions.
1590
22c05d8a
JK
15912011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1592
1593 Fix internal error regression.
1594 * value.c (value_primitive_field): Handle value_optimized_out. Move
1595 packed bitfields comment.
1596
d930d06e
TT
15972011-10-13 Tom Tromey <tromey@redhat.com>
1598
1599 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1600 always released.
1601
2ff6b080
TT
16022011-10-13 Tom Tromey <tromey@redhat.com>
1603
1604 * python/py-type.c (typy_has_key): Make 'field' const.
1605
d6c5869f
LM
16062011-10-13 Luis Machado <lgustavo@codesourcery.com>
1607
1608 * remote.c (remote_save_trace_data): Invert comparison.
1609
a70633a2
LM
16102011-10-13 Luis Machado <lgustavo@codesourcery.com>
1611
1612 * tracepoint.c (trace_save_command): Use filename instead of
1613 args when printing.
1614
e103e986
JK
16152011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1616
1617 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1618 if .size is 0.
1619
db24da6d
YQ
16202011-10-13 Yao Qi <yao@codesourcery.com>
1621
1622 PR gdb/12703
1623 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1624 whether insn is a 32-bit Thumb-2 instruction.
1625 (thumb_in_function_epilogue_p): Likewise.
1626 (thumb_get_next_pc_raw): Likewise.
1627 (arm_breakpoint_from_pc): Likewise.
1628
1d6edc3c
JK
16292011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1630
1631 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1632 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1633 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1634 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1635 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1636 zero DATA.
1637 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1638 validity.
1639 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1640 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1641 clear DATA on zero SIZE.
1642
adabb602
DE
16432011-10-12 Doug Evans <dje@google.com>
1644
1645 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1646 header->first_die_offset here. All callers updated.
1647
5048e516
JK
16482011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1649
1650 Fix compatibility with texinfo versions older than 4.12.
1651 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1652 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1653 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1654 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1655 * configure: Regenerate.
1656 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1657 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1658 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1659
0574c78f
GB
16602011-10-12 Gary Benson <gbenson@redhat.com>
1661
1662 * breakpoint.h (pc_at_non_inline_function): Declare.
1663 * breakpoint.c (is_non_inline_function,
1664 pc_at_non_inline_function): New functions.
1665 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1666 if the stop is at a location where functions cannot be inlined.
1667
12d9289a
PA
16682011-10-12 Pedro Alves <pedro@codesourcery.com>
1669
1670 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1671 the core wanted them stopped, or if they now have a pending event
1672 to report.
ecf8e7f5
PA
1673 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1674 down to stop_and_resume_callback.
1675 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1676 having new pending events after calling linux_nat_filter_event.
12d9289a 1677
96408a79
SA
16782011-10-11 Sterling Augustine <saugustine@google.com>
1679
1680 * dwarf2read.c: Undo inadvertent changes in previous commit.
1681
9c6c53f7
SA
16822011-10-11 Sterling Augustine <saugustine@google.com>
1683
1684 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1685 logic.
1686
0e8aefe7
UW
16872011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1688
1689 * symfile.c (separate_debug_file_exists): Fix condition.
1690
349d1385
DM
16912011-10-11 David S. Miller <davem@davemloft.net>
1692
1693 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1694 static.
1695 * regcache.h (regcache_restore): Remove declaration.
1696
205c306f
DM
1697 * gdbarch.sh: New field 'long_long_align_bit'.
1698 * gdbarch.c, gdbarch.h: Regenerate.
1699 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1700 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1701
941b2081
JK
17022011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 Revert this part of:
1705 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1706 Support @entry in input expressions.
1707 * c-exp.y (ENTRY, unknown_cpp_name): New.
1708 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1709 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1710 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1711 (name_not_typename: ENTRY): New.
1712 (yylex): Recognize ENTRY.
1713
1714 Reimplement @entry in input expressions.
1715 * c-exp.y (ENTRY): New.
1716 (variable: name_not_typename ENTRY): New.
1717 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1718
3c4d7e12
PA
17192011-10-11 Pedro Alves <pedro@codesourcery.com>
1720
1721 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1722 parent and child's pids as soon as we detect a clone event.
1723 Adjust another debug message.
1724
ea23808b
PA
17252011-10-11 Pedro Alves <pedro@codesourcery.com>
1726
1727 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1728 not zombie instead of reading the whole file.
1729
904578ed
JK
17302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Fix separate debuginfo warning with "remote:" access.
1733 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1734 * symfile.c (get_file_crc): New function with the code moved from ...
1735 (separate_debug_file_exists): ... this function, specifically variables
1736 buffer and count. New variable verified_as_different, set it. Remove
1737 file_crc initialization. Verify also if both files are not the same
1738 manually, if needed.
1739
51370a33
YQ
17402011-10-11 Yao Qi <yao@codesourcery.com>
1741
1742 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1743 to get address.
1744
0838fb57
DE
17452011-10-10 Doug Evans <dje@google.com>
1746
1747 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1748 libthread_db when we load libpthread or the main symbol file.
1749 (thread_db_inferior_created): New function.
1750 (_initialize_thread_db): Attach inferior_created observer.
1751 * linux-nat.c (linux_child_post_attach): Remove call to
1752 check_for_thread_db.
1753 (linux_child_post_startup_inferior): Ditto.
1754 * objfiles.h (OBJF_MAINLINE): Define.
1755 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1756 allocate_objfile when appropriate.
1757
623bd5b7
UW
17582011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1759
1760 PR gdb/13218
1761 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1762 Remove unused variables.
1763 (get_linux_version): Remove function.
1764 (_initialize_arm_linux_nat): Do not call it.
1765
79395f92
PA
17662011-10-10 Pedro Alves <pedro@codesourcery.com>
1767
1768 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1769 new clone lwp if the core asked it to stop. Don't pass on
1770 unexpected signals to the new clone; leave them pending instead.
1771
eff3df78
PA
17722011-10-10 Pedro Alves <pedro@codesourcery.com>
1773
1774 * linux-nat.c (resume_lwp): Remove redundant debug output.
1775
4b60df3d
PA
17762011-10-10 Pedro Alves <pedro@codesourcery.com>
1777
1778 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1779 last_resume_kind before clearing it, and use the copy instead to
1780 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1781 resume_clear_callback in the non-stop path too.
1782
6501578c
YQ
17832011-10-09 Yao Qi <yao@codesourcery.com>
1784
1785 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1786 Honor OPTIONS and VAL's type.
1787 (common_val_print, value_print): Update to pass one more parameter.
1788
5a56e9c5
DE
17892011-10-09 Doug Evans <dje@google.com>
1790
1791 Add new "alias" command.
1792 * NEWS: Mention new command.
1793 * command.h (valid_user_defined_cmd_name_p): Declare.
1794 * defs.h (make_cleanup_dyn_string_delete): Declare.
1795 * utils.c: #include "dyn-string.h".
1796 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1797 * cli/cli-cmds.c: #include "dyn-string.h".
1798 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1799 (init_cli_cmds): Add new command.
1800 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1801
509f0fd9
JK
18022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 Fix compatibility with older GCCs.
1805 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1806 * stack.c (read_frame_arg): Initialize val_deref.
1807
2bda9cc5
JK
18082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1809
1810 Entry values NEWS entries, DWARF disassembly support.
1811 * NEWS: New entry values entry.
1812 (set print entry-values, show print entry-values)
1813 (set debug entry-values, show debug entry-values): New entries.
1814 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1815 indent. Remove variable start. Move header printing out. Respect
1816 INDENT. Support DW_OP_GNU_entry_value.
1817 (locexpr_describe_location_1): Move the header printing here, extend
1818 the disassemble_dwarf_expression passed parameters.
1819
a471c594
JK
18202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 Display @entry parameter values even for references.
1823 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1824 coerce_ref_if_computed.
1825 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1826 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1827 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1828 existing push_dwarf_reg_entry_value call. Add new detection calling
1829 dwarf_block_to_dwarf_reg_deref. Update the error message.
1830 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1831 * dwarf2expr.h
1832 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1833 parameter deref_size, describe it in the comment.
1834 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1835 (dwarf_block_to_dwarf_reg_deref): New declaration.
1836 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1837 deref_size, describe it in the function comment. New variables
1838 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1839 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1840 describe it in the function comment. Fetch the alternative block
1841 accoring to DEREF_SIZE.
1842 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1843 (entry_data_value_free_closure, entry_data_value_funcs): New.
1844 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1845 outer_val, target_val, val and addr. Try to fetch and create also
1846 referenced value content.
1847 (pieced_value_funcs): NULL value for coerce_ref.
1848 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1849 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1850 coerce_ref_if_computed.
1851 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1852 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1853 * stack.c (read_frame_arg): Compare also dereferenced values.
1854 * value.c (value_computed_funcs): Make the parameter v const, use
1855 value_lval_const for it.
1856 (value_lval_const, coerce_ref_if_computed): New function.
1857 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1858 * value.h (struct lval_funcs): New field coerce_ref.
1859 (value_computed_funcs): Make the parameter v const.
1860 (value_lval_const, coerce_ref_if_computed): New declarations.
1861
36b11add
JK
18622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1863
1864 Support @entry in input expressions.
1865 * c-exp.y (ENTRY, unknown_cpp_name): New.
1866 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1867 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1868 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1869 (name_not_typename: ENTRY): New.
1870 (yylex): Recognize ENTRY.
1871 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1872 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1873 Likewise.
1874 * parse.c (operator_length_standard): Likewise.
1875 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1876
3343315b
JK
18772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 Display referenced values in backtraces.
1880 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1881 * stack.c (print_frame_arg): Likewise.
1882
ac71a68c
JK
18832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1884
1885 Make some lval_funcs methods to default on NULL.
1886 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1887 NULL.
1888 (value_assign): Check if lval_computed write method is NULL.
1889 * value.h (struct lval_funcs): Comment NULL values for read and write
1890 methods.
1891
e18b2753
JK
18922011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 Display @entry parameter values (without references).
1895 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1896 New functions.
1897 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1898 New declarations.
1899 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1900 entry record.
1901 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1902 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1903 functions.
1904 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1905 (loclist_read_variable_at_entry): New function.
1906 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1907 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1908 DW_AT_location, call dwarf_block_to_sp_offset for it.
1909 * frame.h (print_entry_values_no, print_entry_values_only)
1910 (print_entry_values_preferred, print_entry_values_if_needed)
1911 (print_entry_values_both, print_entry_values_compact)
1912 (print_entry_values_default, print_entry_values): New declarations.
1913 (struct frame_arg): New field entry_kind.
1914 (read_frame_arg): New parameter entryargp.
1915 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1916 arg->entry_kind. Optionally print the `@entry' suffix.
1917 (list_args_or_locals): New variable entryarg, initialize it.
1918 Initialize also entry_kind of arg and entryarg. Conditionalize
1919 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1920 xfree for entryarg.error.
1921 * stack.c (print_entry_values_no, print_entry_values_only)
1922 (print_entry_values_preferred, print_entry_values_if_needed)
1923 (print_entry_values_both, print_entry_values_compact)
1924 (print_entry_values_default, print_entry_values_choices)
1925 (print_entry_values): New variables.
1926 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1927 print the `@entry' suffix, possibly in combination for
1928 print_entry_values_compact.
1929 (read_frame_arg): New parameter entryargp, new variables entryval,
1930 entryval_error and val_equal. Read in also entryargp, respect
1931 print_entry_values, compare the values using val_equal, fill in also
1932 argp->entry_kind (together with entryargp->entry_kind).
1933 (print_frame_args): New variable entryarg, initialize it.
1934 Conditionalize print_frame_arg for arg, add print_frame_arg for
1935 entryarg. Call xfree for entryarg.error.
1936 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1937 * symtab.h (struct symbol_computed_ops): New field
1938 read_variable_at_entry.
1939
93d86cef
JK
19402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 Code reshuffle.
1943 * frame.h (struct frame_arg): New definition.
1944 (read_frame_arg): New declaration.
1945 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1946 (list_args_or_locals): ... the code here. New variable arg, call
1947 read_frame_arg and list_arg_or_local with it. Unify the
1948 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1949 arg.error.
1950 * stack.c (print_frame_arg): New functiom from the code of
1951 print_frame_args.
1952 (read_frame_arg): New function.
1953 (print_frame_args): Remove variable val. New variable arg, call
1954 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1955
2d6c5dc2
JK
19562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1957
1958 Protect entry values against self tail calls.
1959 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1960 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1961
111c6489
JK
19622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 Recognize virtual tail call frames.
1965 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1966 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1967 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1968 * dwarf2-frame-tailcall.c: New file.
1969 * dwarf2-frame-tailcall.h: New file.
1970 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1971 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1972 REGS.PREV only after CIE execution.
1973 (struct dwarf2_frame_cache): New field tailcall_cache.
1974 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1975 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1976 parts, try to find entry_cfa_sp_offset. Call
1977 dwarf2_tailcall_sniffer_first.
1978 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1979 when appropriate.
1980 (dwarf2_frame_dealloc_cache): New function.
1981 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1982 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1983 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1984 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1985 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1986 * dwarf2loc.c (func_addr_to_tail_call_list)
1987 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1988 (call_site_find_chain_1, call_site_find_chain): New.
1989 * dwarf2loc.h (struct call_site_chain): New.
1990 (call_site_find_chain): New declaration.
1991 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1992 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1993 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1994 * stack.c (frame_info): Support also TAILCALL_FRAME.
1995
bb984ff1
JK
19962011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1997
1998 Tail call sites reader implementation.
1999 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2000 fill in TYPE_TAIL_CALL_LIST.
2001 * gdbtypes.h (struct func_type): New field tail_call_list.
2002 (struct call_site): New field tail_call_next.
2003 (TYPE_TAIL_CALL_LIST): New definition.
2004
8e3b41a9
JK
20052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2006
2007 Implement basic support for DW_TAG_GNU_call_site.
2008 * block.c: Include gdbtypes.h and exceptions.h.
2009 (call_site_for_pc): New function.
2010 * block.h (call_site_for_pc): New declaration.
2011 * defs.h: Include hashtab.h.
2012 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2013 declarations.
2014 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2015 ctx_no_push_dwarf_reg_entry_value.
2016 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2017 (dwarf_block_to_dwarf_reg): New function.
2018 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2019 (ctx_no_push_dwarf_reg_entry_value): New function.
2020 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2021 push_dwarf_reg_entry_value.
2022 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2023 declarations.
2024 * dwarf2loc.c: Include gdbcmd.h.
2025 (dwarf_expr_ctx_funcs): New forward declaration.
2026 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2027 (dwarf_expr_reg_to_entry_parameter)
2028 (dwarf_expr_push_dwarf_reg_entry_value): New.
2029 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2030 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2031 (needs_dwarf_reg_entry_value): New function.
2032 (needs_frame_ctx_funcs): Install it.
2033 (_initialize_dwarf2loc): New function.
2034 * dwarf2loc.h (entry_values_debug): New declaration.
2035 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2036 (read_call_site_scope): New forward declaration.
2037 (process_full_comp_unit): Copy call_site_htab.
2038 (process_die): Support DW_TAG_GNU_call_site.
2039 (read_call_site_scope): New function.
2040 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2041 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2042 (cleanup_htab): Delete.
2043 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2044 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2045 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2046 FIELD_LOC_KIND_DWARF_BLOCK.
2047 * gdbtypes.h (enum field_loc_kind): New entry
2048 FIELD_LOC_KIND_DWARF_BLOCK.
2049 (struct main_type): New loc entry dwarf_block.
2050 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2051 (TYPE_FIELD_DWARF_BLOCK): New.
2052 * python/py-type.c: Include dwarf2loc.h.
2053 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2054 internal_error call on unknown FIELD_LOC_KIND.
2055 * symtab.h (struct symtab): New field call_site_htab.
2056 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2057 (core_addr_hash, core_addr_eq): New functions.
2058
b6cdc2c1
JK
20592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 Code reshuffle.
2062 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2063 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2064 calling_convention under func_stuff there.
2065 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2066 (init_type) <TYPE_CODE_FUNC>: Likewise.
2067 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2068 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2069 * gdbtypes.h (enum type_specific_kind): Change
2070 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2071 (struct main_type) <type_specific>: Change calling_convention to
2072 func_stuff. Move calling_convention to ...
2073 (struct func_type): ... this new struct.
2074 (INIT_FUNC_SPECIFIC): New #define.
2075 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2076
181cebd4
JK
20772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2080 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2081 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2082 ctx->ref_addr_size. Handle its invalid value.
2083 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2084 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2085 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2086 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2087 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2088 (dwarf2_per_cu_ref_addr_size): New function.
2089
c471e790
JK
20902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2091
2092 Code cleanup.
2093 * dwarf2read.c (per_cu_header_read_in): New function.
2094 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2095 variables cu_header_local and cu_headerp.
2096
741f5e3c
JK
20972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2098
2099 Fix initial language detection with -readnow.
2100 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2101 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2102 searches only for global symbols.
2103
a73d2258
JK
21042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2105
2106 Fix printed anonymous struct name.
2107 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2108 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2109 (anonymous_struct_prefix): New function.
2110 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2111 (dwarf2_name): Strip for anonymous structs any prefixes.
2112
749fd4ea
DE
21132011-10-07 Doug Evans <dje@google.com>
2114
1fa57852
DE
2115 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2116 `replace'.
2117
690a4937
DE
2118 * python/lib/gdb/printing.py: Whitespace cleanup.
2119
749fd4ea
DE
2120 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2121 warning.
2122
4c38200f
PA
21232011-10-07 Pedro Alves <pedro@codesourcery.com>
2124
2125 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2126 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2127 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2128 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2129 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2130 (arm_linux_remove_watchpoint): Adjust.
2131 * i386-linux-nat.c (i386_linux_dr_set_control)
2132 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2133 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2134 (ia64_linux_remove_watchpoint): Adjust.
2135 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2136 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2137 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2138 (ppc_linux_insert_mask_watchpoint)
2139 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2140 (ppc_linux_remove_watchpoint): Adjust.
2141 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2142 Adjust.
2143
b7ff339d
CV
21442011-10-07 Corinna Vinschen <vinschen@redhat.com>
2145
2146 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2147 (clear_win32_environment): New function for Cygwin to clear out
2148 Win32 environment.
2149 (windows_create_inferior): Prepare new environment from in_env
2150 for Cygwin, too.
2151
f287c1f3
PM
21522011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2153
5631e596 2154 PR python/13264
f287c1f3
PM
2155 * python/py-value.c (valpy_call): Check that arguments are
2156 a tuple.
2157 (is_intlike): Remove call to CHECK_TYPEDEF.
2158 (valpy_nonzero): Catch GDB exceptions.
2159 (valpy_absolute): Ditto.
2160 (valpy_lazy_string): Ditto.
2161 (valpy_call): Ditto.
2162 (valpy_get_is_optimized_out): Ditto.
2163 (valpy_long): Ditto.
2164 (valpy_float): Ditto.
2165 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2166 (valpy_richcompare): Ditto.
2167
03583c20
UW
21682011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2169
2170 * inferior.h (disable_randomization): Declare.
2171 * infrun.c (disable_randomization): New global variable.
2172 (show_disable_randomization): New function.
2173 (set_disable_randomization): Likewise.
2174 (_initialize_infrun): Install set/show disable-randomization
2175 commands.
2176 * linux-nat.c (disable_randomization): Remove.
2177 (show_disable_randomization): Likewise.
2178 (set_disable_randomization): Likewise.
2179 (_initialize_linux_nat): No longer install set/show
2180 disable-randomization commands here.
2181 (linux_nat_supports_disable_randomization): New function.
2182 (linux_nat_add_target): Install it.
2183 * remote.c (PACKET_QDisableRandomization): New enum value.
2184 (remote_protocol_packets): Support QDisableRandomization.
2185 (_initialize_remote): Likewise.
2186 (remote_supports_disable_randomization): New function.
2187 (init_remote_ops): Install it.
2188 (extended_remote_supports_disable_randomization): New function.
2189 (init_extended_remote_ops): Install it.
2190 (extended_remote_disable_randomization): New function.
2191 (extended_remote_create_inferior_1): Call it.
2192 * target.h (struct target_ops): Add to_supports_disable_randomization.
2193 (target_supports_disable_randomization): Add prototype.
2194 * target.c (target_supports_disable_randomization): New function.
2195 (find_default_supports_disable_randomization): Likewise.
2196 (init_dummy_target): Install it.
2197
20c168b5
KP
21982011-10-07 Kevin Pouget <kevin.pouget@st.com>
2199
2200 Allow Python notification of new object-file loadings.
2201 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2202 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2203 Add build rule for this file.
2204 * python/py-event.h (emit_new_objfile_event): New prototype.
2205 (newobjfile): New Python event emitter.
2206 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2207 Python event registry.
2208 * python/py-inferior.c: Include objfiles.h
2209 (python_new_objfile): New function.
2210 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2211 observers.
2212 * python/py-newobjfileevent.c: New file.
2213 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2214 prototype.
2215 * python/python.c (_initialize_python): Add
2216 gdbpy_initialize_new_objfile_event call.
2217 * NEWS: Add item for new Python event "gdb.newobjfile"
2218
b1c8db38
TG
22192011-10-05 Tristan Gingold <gingold@adacore.com>
2220
2221 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2222 Extract the ravenscar task name from the symbol for the atcb.
2223
0dab82e9
PK
22242011-10-04 Paul Koning <paul_koning@dell.com>
2225
2226 * python/py-type.c (typy_make_iter): Add forward declaration.
2227 (typy_fields_items): Use the gdb.Type iterator.
2228
84ad80e6
PK
22292011-10-04 Paul Koning <paul_koning@dell.com>
2230
2231 * NEWS: Add entry for Python gdb.Type mapping methods.
2232
cb6be26b
KP
22332011-10-04 Kevin Pouget <kevin.pouget@st.com>
2234
2235 PR python/12691: Add the inferior to Python exited event
2236 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2237 to exited_event.
2238 * python/py-event.h (emit_exited_event): Likewise
2239 * python/-inferior.c (python_inferior_exit): Likewise
2240
6005b210
JB
22412011-10-03 Joel Brobecker <brobecker@adacore.com>
2242
2243 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2244 in output of -ada-task-info GDB/MI command.
2245
75082e8c
JB
22462011-10-03 Joel Brobecker <brobecker@adacore.com>
2247
2248 * ada-lang.h (struct inferior): Declare.
2249 (print_ada_task_info): Add declaration.
2250 * ada-tasks.c (print_ada_task_info): Make non-static.
2251 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2252 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2253 * mi/mi-main.c: #include "ada-lang.h".
2254 (mi_cmd_list_features): Add "ada-task-info" to the list
2255 of supported features.
2256 (mi_cmd_ada_task_info): New function.
2257
7ed7d719
JB
22582011-10-03 Joel Brobecker <brobecker@adacore.com>
2259
2260 * python/python.c (python_run_simple_file): New function.
2261 (source_python_script, source_python_script_for_objfile):
2262 Replace call to PyRun_SimpleFile by call to
2263 python_run_simple_file.
2264
3fcaed38
PK
22652011-10-03 Paul Koning <paul_koning@dell.com>
2266
2267 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2268 (value_to_value_object): Fetch value if it was lazy.
2269
8e5c319d
JK
22702011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2271
2272 Code cleanup.
2273 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2274 Rearrange the code for it.
2275
dd11a36c
JB
22762011-10-02 Joel Brobecker <brobecker@adacore.com>
2277
2278 * breakpoint.c (bkpt_print_recreate): Add call to
2279 print_recreate_thread.
2280
723b724b
MF
22812011-09-29 Mike Frysinger <vapier@gentoo.org>
2282
2283 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2284 PTRACE_GETFDPIC_INTERP): Define.
2285
412946b6
YQ
22862011-09-28 Yao Qi <yao@codesourcery.com>
2287
2288 * symfile.c (add_symbol_file_command): Update message on usage.
2289
a73bb892
PK
22902011-09-28 Paul Koning <paul_koning@dell.com>
2291
2292 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2293 (typy_length, typy_get, typy_has_key, typy_make_iter)
2294 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2295 (typy_iterator_iter, typy_iterator_iternext)
2296 (typy_iterator_dealloc): New functions to implement standard
2297 Python mapping methods on gdb.Type object.
2298 (gdb.TypeIterator): New Python type.
2299 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2300
fe10a582
DM
23012011-09-28 David S. Miller <davem@davemloft.net>
2302
2303 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2304 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2305 * sparc-tdep.c (sparc_complex_floating_p): New function.
2306 (sparc32_store_arguments): Handle complex floats.
2307 (sparc32_extract_return_value): Likewise.
2308 (sparc32_store_return_value): Likewise.
2309 (sparc32_stabs_argument_has_addr): Likewise.
2310 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2311 (sparc64_store_floating_fields): Handle complex floats.
2312 (sparc64_store_arguments): Likewise.
2313 (sparc64_store_return_value): Likewise.
2314
c93dbcba
EZ
23152011-09-28 Eli Zaretskii <eliz@gnu.org>
2316
2317 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2318 before the change on 2006-12-09.
2319 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2320 generates the environment block for CreateProcessA, modulo the
2321 Cygwin-specific parts that are not needed here.
2322
f00c55f8
TG
23232011-09-27 Tristan Gingold <gingold@adacore.com>
2324
2325 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2326 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2327 (darwin_solib_get_all_image_info_addr_at_init): New function.
2328 (darwin_solib_read_all_image_info_addr): Likewise.
2329 (darwin_solib_create_inferior_hook): Use the above two functions.
2330 * darwin-nat.c (darwin_execvp): Renames retval to res.
2331 (darwin_read_write_inferior): Update comment.
2332 (darwin_read_dyld_info): New function.
2333 (darwin_xfer_partial): Handle DYLD_INFO.
2334
6710bf39
SS
23352011-09-27 Stan Shebs <stan@codesourcery.com>
2336
2337 Add return address collection for tracepoints.
2338 * tracepoint.c (encode_actions_1): Add case for $_ret.
2339 (validate_actionline): Check for $_ret.
2340 (trace_dump_actions): Ditto.
2341 * ax-gdb.h (gen_trace_for_return_address): Declare.
2342 * ax-gdb.c: Include arch-utils.h.
2343 (gen_trace_for_return_address): New function.
2344 (agent_command): Add return address special case.
2345 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2346 (amd64_gen_return_address): New function.
2347 (amd64_init_abi): Call it.
2348 * i386-tdep.c: Include ax.h and ax-gdb.h.
2349 (i386_gen_return_address): New function.
2350 (i386_init_abi): Call it.
2351 * arch-utils.h (default_gen_return_address): Declare.
2352 * arch-utils.c (default_gen_return_address): New function.
2353 * gdbarch.sh (gen_return_address): New method.
2354 * gdbarch.h, gdbarch.c: Regenerate.
2355
e04e5beb
JM
23562011-09-23 Joseph Myers <joseph@codesourcery.com>
2357
2358 PR gdb/13079
2359 * i386-tdep.c (i386_frame_align): New.
2360 (i386_gdbarch_init): Use i386_frame_align.
2361
f3d6df6d
YQ
23622011-09-23 Yao Qi <yao@codesourcery.com>
2363
2364 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2365 to get address.
2366
e69860f1
TG
23672011-09-22 Tristan Gingold <gingold@adacore.com>
2368
2369 * fork-child.c (fork_inferior): Add exec_fun parameter.
2370 Call exec_fun or execvp.
2371 * inferior.h: Adjust prototype.
2372 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2373 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2374 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2375 * procfs.c (procfs_create_inferior): Ditto.
2376 * darwin-nat.c (darwin_execvp): New function.
2377 (darwin_create_inferior): Use it.
2378
4b51d87b
YQ
23792011-09-22 Yao Qi <yao@codesourcery.com>
2380
2381 * infrun.c (context_switch): Print debug message when switching to
2382 a different thread.
2383
56b9d9ac
UW
23842011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2385
2386 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2387 complex and vector types.
2388 (s390_return_value_convention): Likewise.
2389
2390 (s390_value_from_register): Call check_typedef.
2391 (extend_simple_arg): Likewise.
2392 (alignment_of): Likewise.
2393 (s390_push_dummy_call): Likewise.
2394 (s390_return_value): Likewise.
2395
b2cd6b29
JM
23962011-09-21 Joseph Myers <joseph@codesourcery.com>
2397
2398 * event-top.c (async_disconnect): If an exception is thrown from
2399 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2400 catch_errors.
2401 * top.c (quit_cover): Return void and take no arguments.
2402 * top.h (quit_cover): Update prototype.
2403
67ba4e42
JM
24042011-09-20 Joseph Myers <joseph@codesourcery.com>
2405
2406 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2407 current_uiout, not uiout.
2408
562f943b
DE
24092011-09-19 Doug Evans <dje@google.com>
2410
2411 * python/py-auto-load.c (source_section_scripts): Fix file
2412 descriptor leak.
2413 * python/python.c (source_python_script_for_objfile): Tweak comments.
2414
34518530
YQ
24152011-09-18 Yao Qi <yao@codesourcery.com>
2416 Ulrich Weigand <ulrich.weigand@linaro.org>
2417
2418 Support displaced stepping for Thumb 16-bit insns.
2419 * arm-tdep.c (THUMB_NOP) Define.
2420 (thumb_copy_unmodified_16bit): New.
2421 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2422 (thumb_copy_alu_reg): New.
2423 (arm_copy_svc): Move some common code to ...
2424 (install_svc): ... here. New.
2425 (thumb_copy_svc): New.
2426 (install_pc_relative): New.
2427 (thumb_copy_pc_relative_16bit): New.
2428 (thumb_decode_pc_relative_16bit): New.
2429 (thumb_copy_16bit_ldr_literal): New.
2430 (thumb_copy_cbnz_cbz): New.
2431 (cleanup_pop_pc_16bit_all): New.
2432 (thumb_copy_pop_pc_16bit): New.
2433 (thumb_process_displaced_16bit_insn): New.
2434 (thumb_process_displaced_32bit_insn): New.
2435 (thumb_process_displaced_insn): process thumb instruction.
2436
2437 Support displaced stepping for Thumb 32-bit insns.
2438 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2439 (thumb2_copy_preload): New.
2440 (thumb2_copy_copro_load_store): New.
2441 (thumb2_copy_b_bl_blx): New.
2442 (thumb2_copy_alu_imm): New.
2443 (thumb2_copy_load_reg_imm): New.
2444 (thumb2_copy_load_literal): New
2445 (thumb2_copy_block_xfer): New.
2446 (thumb_32bit_copy_undef): New.
2447 (thumb_32bit_copy_unpred): New.
2448 (thumb2_decode_ext_reg_ld_st): New.
2449 (thumb2_decode_svc_copro): New.
2450 (decode_thumb_32bit_store_single_data_item): New.
2451 (thumb_copy_pc_relative_32bit): New.
2452 (thumb_decode_pc_relative_32bit): New.
2453 (decode_thumb_32bit_ld_mem_hints): New.
2454 (thumb2_copy_table_branch): New
2455 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2456 instructions.
2457
2b16b2e3
YQ
24582011-09-18 Yao Qi <yao@codesourcery.com>
2459
2460 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2461 (install_b_bl_blx): Likewise.
2462
0f6f04ba
YQ
24632011-09-17 Yao Qi <yao@codesourcery.com>
2464
2465 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2466 (install_load_store): ... this. New.
2467 Change parameter BYTE to SIZE.
2468 (arm_copy_ldr_str_ldrb_strb): Update caller.
2469 (arm_decode_ld_st_word_ubyte): Update caller.
2470
e2d96639
YQ
24712011-09-17 Yao Qi <yao@codesourcery.com>
2472
2473 * infrun.c (displaced_step_fixup): Move some code ...
2474 (displaced_step_restore): ... here. New function.
2475 (handle_inferior_event): Cleanup displaced stepping state for both
2476 child and parent when get forked or vforked event.
2477 * regcache.c (get_thread_arch_aspace_regcache): New function.
2478 get_thread_arch_regcache (): Call it.
2479
a8123151
JB
24802011-09-16 Joel Brobecker <brobecker@adacore.com>
2481
2482 * ada-tasks.c (print_ada_task_info): New function, merging
2483 short_task_info and info_tasks together. Reimplement using
2484 ui-out instead of printing to stdout directly. Move the code
2485 building and checking the task list here, instead of leaving it
2486 in info_tasks_command.
2487 (info_task): Move the code building and checking the task
2488 list here, instead of leaving it in info_tasks_command.
2489 (info_tasks_command): Delete code building and checking
2490 the task list - moved elsewhere. Update calls to info_tasks
2491 and info_task.
2492
fbf06824
JB
24932011-09-16 Joel Brobecker <brobecker@adacore.com>
2494
2495 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2496
34a0bc90
JB
24972011-09-16 Joel Brobecker <brobecker@adacore.com>
2498
2499 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2500
79779fa9
JB
25012011-09-16 Joel Brobecker <brobecker@adacore.com>
2502
2503 * ada-lang.h (ada_build_task_list): Remove parameter
2504 `warn_if_null'.
2505 * ada-tasks.c (ada_build_task_list): Remove parameter
2506 `warn_if_null'. Adjust implementation and documentation.
2507 (valid_task_id, ada_get_environment_task)
2508 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2509 (info_tasks_command): Adjust implementation.
2510 (task_command): Likewise.
2511 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2512 to ada_build_task_list.
2513
e225eb91
JB
25142011-09-16 Joel Brobecker <brobecker@adacore.com>
2515
2516 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2517 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2518 (ada_tasks_inferior_data_handle): New static global.
2519 (get_ada_tasks_inferior_data): New function.
2520 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2521 (ada_get_environment_task, iterate_over_live_ada_tasks)
2522 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2523 Adjust.
2524 (ada_set_current_inferior_known_tasks_addr): New function.
2525 (read_known_tasks, ada_build_task_list, short_task_info)
2526 (info_tasks, info_task, info_tasks_command, task_command_1)
2527 (task_command, ada_task_list_changed): Adjust.
2528 (ada_tasks_invalidate_inferior_data): New function.
2529 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2530 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2531 * ada-lang.h (struct inferior): Add declaration.
2532 (ada_task_list_changed): Update profile.
2533 * remote-wtx-pd.c: #include "inferior.h".
2534 (switch_to_pd_internal): Update call to ada_task_list_changed.
2535
6da9ca05
JB
25362011-09-16 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2539 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2540 (atcb_fieldno): Delete these static globals.
2541 (struct ada_tasks_pspace_data): New struct.
2542 (ada_tasks_pspace_data_handle): New static global.
2543 (get_ada_tasks_pspace_data): New function.
2544 (ada_tasks_invalidate_pspace_data): New function.
2545 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2546 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2547 (_initialize_tasks): Create this module's per-progspace
2548 data handle.
2549
dccd3cbd
JB
25502011-09-16 Joel Brobecker <brobecker@adacore.com>
2551
2552 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2553
f877b031
TG
25542011-09-16 Tristan Gingold <gingold@adacore.com>
2555
2556 * fork-child.c (fork_inferior): Update comment. Use alloca
2557 instead of xmalloc for argv. Move len and shell_command
2558 declarations in the block where they are used.
2559 Only call execvp. Factorize failure code.
2560
ae0c443d
JK
25612011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2562
2563 Code cleanup.
2564 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2565 `exp_element' instead of an element of the same and make the function
2566 static.
2567 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2568 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2569 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2570 Change argument of `write_exp_elt' function call.
2571 Remove extra spaces from comments.
2572 * parser-defs.h (write_exp_elt): Remove prototype.
2573
5af65ec0
PK
25742011-09-15 Paul Koning <paul_koning@dell.com>
2575
2576 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2577 count of item appended to list.
2578 * python/py-type.c (typy_fields): Likewise.
2579
72be8ccc
PK
25802011-09-15 Paul Koning <paul_koning@dell.com>
2581
883640a8 2582 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2583
92f6badc
KP
25842011-09-15 Kevin Pouget <kevin.pouget@st.com>
2585
2586 PR threads/12628
2587 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2588 processes with multiple threads.
2589 (inf_has_multiple_thread_cb): New function.
2590 (inf_has_multiple_threads): New function.
2591
0672bf41 25922011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2593
2594 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2595 * python/py-inferior.c (GdbMethods): New Python method definition.
2596
6839b47f
KP
25972011-09-15 Kevin Pouget <kevin.pouget@st.com>
2598
2599 Handle multiple breakpoint hits in Python interface:
2600 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2601 variable to breakpoints.
2602 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2603 bps instead of single breakpoint. Fix some space typos.
2604 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2605 variable to breakpoints.
2606
672f9b60
KP
26072011-09-15 Kevin Pouget <kevin.pouget@st.com>
2608
2609 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2610 note if the breakpoint is internal.
2611
43675ae4
KP
26122011-09-15 Kevin Pouget <kevin.pouget@st.com>
2613
0672bf41 2614 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2615
15148d6a
PA
26162011-09-14 Pedro Alves <pedro@codesourcery.com>
2617
2618 * infrun.c (prepare_for_detach, wait_for_inferior)
2619 (fetch_inferior_event): Don't flush the register cache.
2620 * remote.c (struct stop_reply) <regcache>: Add comment.
2621
d83e736b
JK
26222011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 Remove excessive DWARF expressions memory duplication.
2625 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2626 for block.data.
2627 (indirect_pieced_value): Remove variable result. Remove variable
2628 back_to and its use for baton.data.
2629 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2630 block.data.
2631 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2632 Update the function comment.
2633
c65b3e0d
PA
26342011-09-13 Pedro Alves <pedro@codesourcery.com>
2635
2636 * inferior.h (ALL_INFERIORS): New.
2637 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2638 for a stopped thread.
2639 (thread_db_find_new_threads): Look for threads in all inferiors.
2640
a1398e0c
PA
26412011-09-13 Pedro Alves <pedro@codesourcery.com>
2642
2643 * breakpoint.c (update_watchpoint): Handle the case of the
2644 watchpoint to update not being in the breakpoint list yet.
2645 (hw_watchpoint_use_count): New, factored out from
2646 hw_watchpoint_used_count.
2647 (hw_watchpoint_used_count): Rename to ...
2648 (hw_watchpoint_used_count_others): ... this. Add `except'
2649 parameter. Don't count resources of `except'. Use
2650 hw_watchpoint_use_count.
2651
30596231
PA
26522011-09-13 Pedro Alves <pedro@codesourcery.com>
2653
2654 * gdbthread.h (enum thread_state): Moved here.
2655 (struct thread_info): Rename `executing_' field to `executing' and
2656 `state_' to `state'.
2657 * thread.c (enum thread_state): Moved to gdbthread.h.
2658 (new_thread, add_thread_silent, delete_thread_1)
2659 (any_live_thread_of_process, thread_alive, set_running)
2660 (set_running, is_thread_state, any_running, is_executing)
2661 (set_executing, finish_thread_state, print_thread_info)
2662 (do_captured_thread_select): Adjust.
2663
bede5f5f
JK
26642011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2665
2666 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2667 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2668
4801a9a3
PA
26692011-09-12 Pedro Alves <pedro@codesourcery.com>
2670 Matt Rice <ratmice@gmail.com>
2671
2672 PR gdb/13175
2673
2674 * interps.c (struct interp) <interpreter_out>: Delete field.
2675 (interp_new): Remove the data and uiout parameters and adjust.
2676 (interp_set): Only set the current_uiout from the interpreter's
2677 uiout after initializing the interpreter. Adjust call to
2678 init_proc.
2679 (interp_ui_out): Adjust to call procs->ui_out_proc.
2680 (interp_data, interp_name): New.
2681 * interps.h (interp_init_ftype): Add `self' parameter.
2682 (interp_ui_out_ftype): New typedef.
2683 (struct interp_procs) <ui_out_proc>: New method pointer.
2684 (interp_new): Remove the data and uiout parameters.
2685 (interp_data, interp_name): Declare.
2686 * tui/tui-interp.c (tui_init): Adjust prototype.
2687 (tui_ui_out): New.
2688 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2689 tui_out here. Adjust call to interp_new.
2690 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2691 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2692 (cli_ui_out): New.
2693 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2694 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2695 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2696 Initialize mi->uiout depending on the mi_version as extracted from
2697 the interpreter's name.
2698 (mi_ui_out): New.
2699 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2700 interp_new. Don't allocate the ui_out's of the interpreters here.
2701
d0afda03 27022011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2703
d0afda03 2704 * solib.c (solib_used): New function.
59145f8c
AR
2705 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2706 by another so_list object before freeing it.
2707
bdaf8d4a
JK
27082011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
2710 Code cleanup.
2711 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2712 values.
2713
df15bd07
JK
27142011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 Code cleanup.
2717 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2718 (amd64_skip_xmm_prologue): ... this new function. Describe its
2719 parameters. No longer use amd64_prologue_line_bug.
2720 * defs.h (producer_is_gcc_ge_4): New declaration.
2721 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2722 (process_full_comp_unit): Update its caller. Remove
2723 amd64_prologue_line_bug initialization.
2724 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2725 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2726
25289eb2
PA
27272011-09-09 Pedro Alves <pedro@codesourcery.com>
2728
2729 * linux-nat.h (enum resume_kind): New.
2730 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2731 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2732 resume_stop on the new lwp.
25289eb2
PA
2733 (add_lwp): Set last_resume_kind as resume_continue by default.
2734 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2735 (resume_lwp): New, factored out from resume_callback. Also check
2736 for pending status in lp->waitstatus.
2737 (resume_callback): Reimplement.
2738 (resume_clear_callback): Set last_resume_kind as resume_stop.
2739 (resume_set_callback): Set last_resume_kind as resume_continue.
2740 (linux_nat_resume, linux_handle_extended_wait): Set
2741 last_resume_kind.
2742 (running_callback): Also check lp->waitstatus for pending events.
2743 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2744 is resume_step.
2745 (stop_and_resume_callback): Don't re-resume if the core wanted the
2746 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2747 using an invalidated pointer.
2748 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2749 SIGSTOPs if the core wanted the LWP to stop.
2750 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2751 wanted the lwp to stop. If the core wanted the lwp to stop, and
2752 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2753 of TARGET_SIGNAL_STOP.
2754 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2755 here. Instead, signal the lwp, and set the last_resume_kind to
2756 resume_stop.
2757
f687d035
PA
27582011-09-09 Pedro Alves <pedro@codesourcery.com>
2759
2760 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2761 -1 (error), if the lwp exits right after attaching.
2762
bc587a6b
DE
27632011-09-08 Doug Evans <dje@google.com>
2764
63d97a20
DE
2765 * py-cmd.c: Some minor formatting fixes.
2766 (gdbpy_parse_command_name): Rename text arg to name, make const.
2767 All callers updated.
2768 * python-internal.h (gdbpy_parse_command_name): Update.
2769
bc587a6b
DE
2770 * cli/cli-decode.c (add_cmd): Add comment.
2771
08711b9a
JK
27722011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2773
2774 PR breakpoints/12435
2775 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2776 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2777 * dwarf2read.c (process_full_comp_unit): Initialize
2778 amd64_prologue_line_bug.
2779 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2780
b2e7f004
JK
27812011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 Fix TUI screen corruption.
2784 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2785 batch_flag.
2786
8afd712c
JK
27872011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2788
2789 * findvar.c (read_var_value): Never return NULL, throw an error
2790 instead. Update the function comment. State symbol name in the error
2791 messages.
2792 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2793 read_var_value.
2794 * stack.c (print_frame_args): Likewise.
2795 * valops.c (value_of_variable): Likewise.
2796
b99b5f66
JK
27972011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 * stack.c (print_frame_args): New variable except. Wrap
2800 read_var_value and common_val_print into TRY_CATCH.
2801
85bc8cb7
JK
28022011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2803
2804 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2805 caller to value_of_this.
2806 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2807 Twice.
2808 * valops.c (value_of_this): Remove parameter complain and variable ret.
2809 Update function comment. Never return NULL by this code.
2810 (value_of_this_silent): New function.
2811 * value.h (value_of_this): Remove parameter complain.
2812 (value_of_this_silent): New declaration.
2813
ede1849f
YQ
28142011-09-07 Yao Qi <yao@codesourcery.com>
2815
2816 * gdbthread.h (struct thread_info): Remove fields
2817 `stepping_through_solib_after_catch' and
2818 `stepping_through_solib_catchpoints'.
2819 * infrun.c (init_thread_stepping_state): Update.
2820 (process_event_stop_test, currently_stepping): Update.
2821 (currently_stepping_or_nexting_callback): Update.
2822
6aa27652
YQ
28232011-09-07 Yao Qi <yao@codesourcery.com>
2824
2825 * gdbthread.h (struct thread_info): Comment on field
2826 `step_after_step_resume_breakpoint'.
2827
00db5b94
PA
28282011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2829
2830 * remote.c (remote_console_output): Reindent.
2831
861152be
LM
28322011-09-06 Luis Machado <lgustavo@codesourcery.com>
2833
2834 * frame.c (has_stack_frames): Check for currently selected
2835 traceframe.
2836
ab821bc6
PA
28372011-09-06 Pedro Alves <pedro@codesourcery.com>
2838
2839 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2840 (set_async_annotation_level, set_async_prompt, pop_prompt)
2841 (push_prompt, new_async_prompt): Delete declarations.
2842 * top.h (get_prompt, set_prompt): Change prototype.
2843 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2844 declarations.
2845 * top.c (command_loop):
2846 (top_prompt): New global.
2847 (get_prefix, set_prefix, get_suffix, ): Delete.
2848 (get_prompt, set_prompt): Rewrite.
2849 (show_new_async_prompt): Rename to ...
2850 (show_prompt): ... this.
2851 (init_main): Adjust. Don't handle --annotate=2 here.
2852 * event-top.c (new_async_prompt): Delete.
2853 (the_prompts): Delete.
2854 (more_to_come): Make static.
2855 (display_gdb_prompt): Use top_level_prompt() to compute the top
2856 level prompt, and don't notify the before_prompt observers
2857 directly here. Always trick readline into not trying to display
2858 the prompt if sync_execution and displaying the primary prompt.
2859 If displaying a local/secondary prompt, always show it, even if
2860 sync_execution is set.
2861 (change_annotation_level): Delete.
2862 (top_level_prompt): New, based on change_annotation_level.
2863 (push_prompt, pop_prompt): Delete.
2864 (async_disable_stdin): No longer pushes prompt.
2865 (command_line_handler): No longer pushes or pops prompt. If more
2866 input is expected, call display_gdb_prompt with an explicit empty
2867 prompt.
2868 (async_stop_sig): Adjust.
2869 (set_async_annotation_level, set_async_prompt): Delete.
2870 * python/python.c (before_prompt_hook): Adjust.
2871
f1d90504
PA
28722011-09-05 Pedro Alves <pedro@codesourcery.com>
2873
2874 PR cli/13110
2875
2876 * infrun.c (fetch_inferior_event): Check if there's a selected
2877 thread before checking if the selected thread is executing.
2878
0f641c01
PA
28792011-09-05 Pedro Alves <pedro@codesourcery.com>
2880
2881 * inf-loop.c (execute_command): Don't check if the current thread
2882 if running before synchronously waiting for command completion.
2883 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2884 here.
2885 (normal_stop): Call async_enable_stdin here.
2886 * inf-loop.c (inferior_event_handler): Don't call
2887 async_enable_stdin, nor handle "set exec-done-display" here.
2888
30368258 28892011-09-04 Joel Brobecker <brobecker@adacore.com>
2890
2891 GDB 7.3.1 released.
2892
31916278
JB
28932011-09-04 Joel Brobecker <brobecker@adacore.com>
2894
2895 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2896
e8d56f18
JB
28972011-09-04 Joel Brobecker <brobecker@adacore.com>
2898
2899 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2900
5dd05d8c
JK
29012011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2902
2903 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2904
7d8e6458 29052011-09-02 Matt Rice <ratmice@gmail.com>
2906
2907 PR gdb/10720
2908 * event-top.c (cli_command_loop): Replace readline setup with
2909 direct call to display_gdb_prompt.
2910 (display_gdb_prompt): Do not call observer mechanism during
2911 synchronous execution.
2912
84636d28
PA
29132011-09-02 Pedro Alves <pedro@codesourcery.com>
2914
2915 * linux-nat.c (in_pid_list_p): New.
2916 (linux_record_stopped_pid): Delete.
2917 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2918 already attached to the LWP. Return an indication if so.
2919 (linux_nat_filter_event): Adjust.
2920 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2921 returning an indication to ignore this thread.
2922
b4a14fd0
PA
29232011-09-02 Pedro Alves <pedro@codesourcery.com>
2924
2925 * top.c: Include interps.h.
2926 (execute_command): If the target can async, but the interpreter is
2927 in sync mode, synchronously wait for the command to finish before
2928 returning.
2929 (execute_command_to_string): Force the interpreter to sync mode.
2930 * infrun.c: Include interps.h.
2931 (fetch_inferior_event): Don't restore the prompt yet if the
2932 interpreter is in sync mode.
2933 * interps.c (interpreter_async): New global.
2934 * interps.h (interpreter_async): Declare.
2935 * inf-loop.c: Include interps.h.
2936 (inferior_event_handler): Don't print the language change or run
2937 breakpoint commands yet if the interpreter in is sync mode.
2938 * main.c (captured_command_loop): Flip the interpreter to async
2939 mode.
2940 * cli/cli-script.c: Include interps.h.
2941 (execute_user_command, while_command, if_command): Force the
2942 interpreter to sync mode.
2943 * python/python.c: Include interps.h.
2944 (python_command, execute_gdb_command): Force the interpreter to
2945 sync mode.
2946
c709acd1
PA
29472011-09-02 Pedro Alves <pedro@codesourcery.com>
2948
2949 * value.c (show_convenience): Catch errors thrown while printing
2950 each internal variable.
2951 * infrun.c (validate_siginfo_access): New function.
2952 (siginfo_value_read, siginfo_value_write): Call it.
2953
9655e943
JK
29542011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2955
2956 Revert:
2957 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2958 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2959 attribute.
2960
cb457ae2
YQ
29612011-08-29 Yao Qi <yao@codesourcery.com>
2962
2963 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2964 (cmp_name): New.
2965 (enable_break2): Update caller.
2966 * solib-frv.c (bfd_lookup_symbol): Removed.
2967 (cmp_name): New.
2968 (enable_break2): Update caller.
2969 * solib-pa64.c (bfd_lookup_symbol): Removed.
2970 (cmp_name): New.
2971 * solib-svr4.c (bfd_lookup_symbol): Removed.
2972 (cmp_name_and_sec_flags): New.
2973 (enable_break): Update caller.
2974 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2975 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2976 (gdb_bfd_lookup_symbol): New.
2977 * solib.h: Functions declarations.
2978
83d1a36a
YQ
29792011-08-29 Yao Qi <yao@codesourcery.com>
2980
2981 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2982 and solib-dsbt.o.
2983
c04b3e8f
JK
29842011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 Fix TUI stepi on code without symbols.
2987 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2988 current PC instead.
2989
cb0fd152
JK
29902011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2991
2992 Code cleanup.
2993 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2994 and the static keyword.
2995 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2996 Make prefix an array.
2997 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2998 * mi/mi-main.c (get_register): Remove stb initialization and the static
2999 keyword.
3000
91174723
JK
30012011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3002
3003 Code cleanup - make mi_opt const.
3004 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3005 opts const.
3006 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3007 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3008 (mi_cmd_env_dir): Likewise.
3009 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3010 (mi_cmd_target_file_put): Likewise.
3011 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3012 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3013 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3014 (mi_valid_noargs): Make opts const.
3015 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3016 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3017 (mi_cmd_data_read_memory): Likewise.
3018 (mi_cmd_data_read_memory_bytes): Likewise.
3019 (mi_cmd_data_write_memory): Likewise.
3020
5068b8e8 30212011-08-26 Matt Rice <ratmice@gmail.com>
3022
3023 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3024 bcache_xmalloc, replace bcache_xmalloc with call to
3025 psymbol_bcache_init for psymbol_cache.
3026 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3027
a4f2ce05
JK
30282011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * inf-loop.c (inferior_event_handler): Add exception_print in
3031 INF_EXEC_COMPLETE.
3032
353d1d73
JK
30332011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3036 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3037 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3038 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3039 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3040 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3041 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3042 * infrun.c (fetch_inferior_event): Call
3043 make_bpstat_clear_actions_cleanup.
3044 * top.c (execute_command): New variable cleanup_if_error, call
3045 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3046 * utils.c (do_bpstat_clear_actions_cleanup)
3047 (make_bpstat_clear_actions_cleanup): New functions.
3048
3ced3da4
PA
30492011-08-26 Pedro Alves <pedro@codesourcery.com>
3050
3051 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3052 either the parent or the child forks. Rename a couple locals.
3053
a9f4bb21
PA
30542011-08-26 Pedro Alves <pedro@codesourcery.com>
3055
3056 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3057 library call. Avoid reading the `status' local if all waitpid
3058 calls failed.
3059
e5798bef
PA
30602011-08-26 Pedro Alves <pedro@codesourcery.com>
3061
3062 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3063 opening /proc/PID/task always succeeds.
3064
edb2aadf
AR
30652011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3066
3067 * linespec.c (symtab_from_filename): Check for the end of string.
3068
0d932b2f
MK
30692011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3070
3071 PR mi/11912
3072 * varobj.c (cplus_describe_child): Add the keyword
3073 'class' to the output of the method when dealing
3074 with a cast to a base class.
3075
e93ca019
JK
30762011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 No functionality change.
3079 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3080 function comment a reference, new variables tp and bs, move here code
3081 from throw_exception.
3082 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3083 describe it in the comment.
3084 * exceptions.c (throw_exception): Remove variable tp, move the code for
3085 bpstat_clear_actions to bpstat_clear_actions.
3086
13da1c97
LM
30872011-08-24 Luis Machado <lgustavo@codesourcery.com>
3088
3089 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3090 * linux-nat.c: Include linux-procfs.h.
3091 (linux_proc_get_tgid): Move to ...
3092 * common/linux-procfs.c: ... here. New file.
3093 * common/linux-procfs.h: New file.
3094 * linux-thread-db.c: Include linux-procfs.h.
3095 * Makefile.in: Update dependencies.
3096 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3097 * config/arm/linux.mh: Likewise.
3098 * config/i386/linux.mh: Likewise.
3099 * config/i386/linux64.mh: Likewise.
3100 * config/ia64/linux.mh: Likewise.
3101 * config/m32r/linux.mh: Likewise.
3102 * config/m68k/linux.mh: Likewise.
3103 * config/mips/linux.mh: Likewise.
3104 * config/pa/linux.mh: Likewise.
3105 * config/pa/linux.mh: Likewise.
3106 * config/powerpc/linux.mh: Likewise.
3107 * config/powerpc/ppc64-linux.mh: Likewise.
3108 * config/powerpc/spu-linux.mh: Likewise.
3109 * config/sparc/linux.mh: Likewise.
3110 * config/sparc/linux64.mh: Likewise.
3111 * config/xtensa/linux.mh: Likewise.
3112
4e5c165d
HZ
31132011-08-24 Hui Zhu <teawater@gmail.com>
3114
3115 * tracepoint.c (cond_string_is_same): New function.
3116 (find_matching_tracepoint): Add condition check
3117 by cond_string_is_same.
3118
6e2f5b22
JK
31192011-08-23 Josh Matthews <josh@joshmatthews.net>
3120
3121 Fix build error in Darwin port.
3122 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3123
abf85f46
JK
31242011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Code cleanup.
3127 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3128 (command_line_is_silent): New function.
3129 (bpstat_do_actions_1): No longer use commands_left, use
3130 command_line_is_silent for commands.
3131 (bpstat_alloc): Remove clearing of commands_left.
3132 (bpstat_stop_status): Remove initialization of commands_left, use
3133 command_line_is_silent.
3134 * breakpoint.h (struct bpstats): Remove commands_left.
3135
3a93a0c2
KS
31362011-08-18 Keith Seitz <keiths@redhat.com>
3137
3138 PR c++/12266
3139 * cp-name-parser.y (struct demangle_info): Remove unused
3140 member PREV.
3141 (d_grab): Likewise.
3142 (allocate_info): Change return type to struct demangle_info *.
3143 Always allocate a new demangle_info.
3144 Remove unused PREV pointer.
3145 (cp_new_demangle_parse_info): New function.
3146 (cp_demangled_name_parse_free): New function.
3147 (do_demangled_name_parse_free_cleanup): New function.
3148 (make_cleanup_cp_demangled_name_parse_free): New function.
3149 (cp_demangled_name_to_comp): Change return type to
3150 struct demangle_parse_info *.
3151 Allocate a new storage for each call.
3152 (main): Update usage for cp_demangled_name_to_comp
3153 API change.
3154 * cp-support.h (struct demangle_parse_info): New structure.
3155 (cp_demangled_name_to_comp): Update API change for
3156 return type.
3157 (cp_new_demangle_parse_info): Declare.
3158 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3159 (cp_demangled_name_parse_free): Declare.
3160 * cp-support.c (cp_canonicalize_string): Update API
3161 change for cp_demangled_name_to_comp.
3162 (mangled_name_to_comp): Likewise.
3163 Return struct demangle_parse_info, too.
3164 (cp_class_name_from_physname): Update mangled_name_to_comp
3165 API change.
3166 (method_name_from_physname): Likewise.
3167 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3168 (cp_remove_params): Likewise.
3169 * python/py-type.c (typy_legacy_template_argument): Likewise.
3170
3171 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3172 (cp_merge_demangle_parse_infos): Declare.
3173 * cp-support.c (ignore_typedefs): New file global.
3174 (copy_string_to_obstack): New function.
3175 (inspect_type): New function.
3176 (replace_typedefs): New function.
3177 (replace_typedefs_qualified_name): New function.
3178 (cp_canonicalize_string_no_typedefs): New function.
3179 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3180 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3181 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3182 instead of cp_canonicalize_string.
3183 (find_method): Likewise.
3184 (decode_compound): Before looking up the name, call
3185 cp_canonicalize_string_no_typedefs.
3186 (decode_variable): Likewise.
3187
fa3a4f15
PM
31882011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3189 Tom Tromey <tromey@redhat.com>
3190 Matt Rice <ratmice@gmail.com>
3191
3192 * python/lib/gdb/prompt.py: New file.
3193 * python/lib/gdb/command/prompt.py: New file.
3194 * NEWS: Document set extended-prompt and gdb.prompt library
3195
85661b1e
YQ
31962011-08-16 Yao Qi <yao@codesourcery.com>
3197
3198 * tic6x-linux-tdep.c: Move const arrays definition from here...
3199 * tic6x-tdep.c: to here ...
3200
11315641
YQ
32012011-08-14 Yao Qi <yao@codesourcery.com>
3202
3203 * NEWS: New port to Texas Instruments TMS320C6x.
3204
8cd64e00
YQ
32052011-08-14 Andrew Jenner <andrew@codesourcery.com>
3206 Bernd Schmidt <bernds@codesourcery.com>
3207 Yao Qi <yao@codesourcery.com>
3208
3209 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3210 * solib-dsbt.c: New file. Support DSBT shared object.
3211 * tic6x-linux-tdep.c: New file.
3212 * tic6x-tdep.c: New file.
3213 * tic6x-tdep.h: New file.
3214
78d85199
YQ
32152011-08-14 Andrew Stubbs <ams@codesourcery.com>
3216 Yao Qi <yao@codesourcery.com>
3217
3218 * remote.c (PACKET_qXfer_fdpic): New enum value.
3219 (remote_protocol_features): Add qXfer:fdpic:read packet.
3220 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3221 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3222 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3223
224bbe49
YQ
32242011-08-14 Yao Qi <yao@codesourcery.com>
3225
3226 Target description for tic6x.
3227 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3228 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3229 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3230 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3231 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3232 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3233 * features/tic6x-c64xp-linux.xml: New.
3234 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3235 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3236 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3237 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3238 * regformats/tic6x-c64xp.dat,
3239 regformats/tic6x-c62x-linux.dat: Generated.
3240 * regformats/tic6x-c64x-linux.dat,
3241 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3242 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3243 features/tic6x-*.c files.
3244 Add regformats/tic6x-*.dat files.
3245
457e09f0
DE
32462011-08-12 Doug Evans <dje@google.com>
3247
3248 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3249 * python/py-symbol.c (sympy_get_type): New function.
3250 (symbol_object_getset): Add "type".
3251
d20c1c3f
PA
32522011-08-12 Pedro Alves <pedro@codesourcery.com>
3253
3254 PR tui/13073
3255
3256 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3257 empty name.
3258 (tui_show_register_group): Don't store a byte buffer in the data
3259 element's value.
3260 (tui_register_format): Skip registers with an empty name.
3261 (tui_get_register): Store a struct value in the data element's
3262 value field instead of a byte buffer holding the raw register
3263 contents. Account for optimized-out and unavailable registers
3264 when comparing register contents.
3265
9d8fa392
PA
32662011-08-09 Pedro Alves <pedro@codesourcery.com>
3267
3268 * printcmd.c (current_display_number): Update comment.
3269 (disable_current_display_cleanup): Delete.
3270 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3271 catch errors thrown while evaluating and printing the display.
3272
401a70b8
TT
32732011-08-09 Tom Tromey <tromey@redhat.com>
3274
3275 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3276
7f86f058
PA
32772011-08-09 Pedro Alves <pedro@codesourcery.com>
3278
94b71cca 3279 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3280 * maint.c (maintenance_command): Ditto.
3281 * somread.c (som_symtab_read): Ditto.
3282 * solib.c (solib_find, solib_map_sections, update_solib_list)
3283 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3284 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3285 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3286 * solib-irix.c (locate_base, disable_break, enable_break)
3287 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3288 (irix_current_sos, irix_open_symbol_file_object)
3289 (irix_special_symbol_handling): Ditto.
3290 * solib-sunos.c (locate_base, first_link_map_member)
3291 (sunos_current_sos, disable_break, enable_break)
3292 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3293 Ditto.
3294 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3295 (open_symbol_file_object, svr4_current_sos, enable_break)
3296 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3297 Ditto.
3298 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3299 (frv_current_sos, enable_break, frv_special_symbol_handling)
3300 (frv_solib_create_inferior_hook): Ditto.
3301 * solist.h (struct target_so_ops): Extend the comments of the
3302 special_symbol_handling, current_sos and open_symbol_file_object
3303 methods.
3304
5e239b84
PM
33052011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3306
3307 * python/lib/gdb/__init__.py: Auto-load files in command and
3308 function directories.
3309 * python/python.c (finish_python_initialization): Use
3310 os.path.join.
3311 * python/lib/gdb/command/pretty_printers.py: Self register
3312 command.
3313 * NEWS: Document auto-loading.
3314
b6cede78
JK
33152011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3318 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3319 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3320
29d0bb3d
TT
33212011-08-08 Tom Tromey <tromey@redhat.com>
3322
3323 * breakpoint.c (clean_up_filters): Remove.
3324 (catch_syscall_split_args): Use VEC_cleanup.
3325
2f7fb8e4
JK
33262011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3329 (main): Uncomment "Demangling error\n".
3330
d6c10e95
PP
33312011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3332
3333 * solib-target.c (segment_attributes): Make them static.
3334 (section_attributes, library_children, library_attributes): Likewise.
3335 (library_list_children, library_list_attributes): Likesise.
3336 (library_list_elements): Likewise.
3337
af6e93b2
PA
33382011-08-05 Pedro Alves <pedro@codesourcery.com>
3339
3340 * exceptions.c (throw_exception): Don't disable the current
3341 display.
3342 * printcmd.c (disable_current_display_cleanup): New function.
3343 (do_one_display): Install a cleanup to disable the current display
3344 if doing the display throws.
3345
6a1b1664
EZ
33462011-08-05 Eli Zaretskii <eliz@gnu.org>
3347
3348 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3349 initialization of the tp_new member to the corresponding
3350 gdbpy_initialize_* function.
3351 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3352 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3353 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3354 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3355 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3356
31a0ae49
JK
33572011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3358
3359 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3360 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3361 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3362 references to current_uiout.
3363
e0dd0826
PA
33642011-08-04 Pedro Alves <pedro@codesourcery.com>
3365
3366 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3367 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3368 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3369 * top.c (gdb_readline_wrapper): Adjust.
3370 * tui/tui-interp.c (tui_command_loop):
3371 (_initialize_tui_interp): Don't install it.
3372
79a45e25
PA
33732011-08-04 Pedro Alves <pedro@codesourcery.com>
3374
3375 * ui-out.h (uiout): Rename to ...
3376 (current_uiout): ... this.
3377 * ui-out.c (uiout): Rename to ...
3378 (current_uiout): ... this.
3379 * ada-lang.c (print_it_exception, print_one_exception)
3380 (print_mention_exception): Adjust.
3381 * breakpoint.c (watchpoint_check): Adjust.
3382 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3383 (default_collect_info, watchpoints_info, print_one_catch_fork)
3384 (print_one_catch_vfork, print_one_catch_syscall)
3385 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3386 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3387 (print_it_watchpoint, print_mention_watchpoint)
3388 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3389 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3390 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3391 (bkpt_print_mention, momentary_bkpt_print_it)
3392 (tracepoint_print_mention, update_static_tracepoint)
3393 (tracepoints_info, save_breakpoints): Adjust.
3394 * cli-out.c (field_separator): Adjust.
3395 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3396 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3397 * frame.c (get_current_frame): Adjust.
3398 * infcmd.c (run_command_1, print_return_value): Adjust.
3399 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3400 * infrun.c (print_end_stepping_range_reason): Adjust.
3401 (print_signal_exited_reason, print_exited_reason): Adjust.
3402 (print_signal_received_reason, print_no_history_reason): Adjust.
3403 * interps.c (interp_set): Adjust.
3404 * osdata.c (info_osdata_command): Adjust.
3405 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3406 * remote-fileio.c (remote_fileio_request): Adjust.
3407 * remote.c (show_remote_cmd): Adjust.
3408 * solib.c (info_sharedlibrary_command): Adjust.
3409 * source.c (print_source_lines_base): Adjust.
3410 * stack.c (print_stack_frame): Adjust.
3411 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3412 * symfile-mem.c (add_vsyscall_page): Adjust.
3413 * symfile.c (load_progress, generic_load)
3414 (print_transfer_performance): Adjust.
3415 * thread.c (info_threads_command, restore_selected_frame)
3416 (thread_command): Adjust.
3417 * top.c (make_cleanup_restore_ui_file): Adjust.
3418 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3419 (print_one_static_tracepoint_marker): Adjust.
3420 * cli/cli-cmds.c (print_disassembly): Adjust.
3421 * cli/cli-decode.c (print_doc_line): Adjust.
3422 * cli/cli-interp.c (safe_execute_command): Adjust.
3423 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3424 (handle_redirections): Adjust.
3425 * cli/cli-script.c (show_user_1): Adjust.
3426 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3427 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3428 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3429 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3430 (mi_cmd_env_dir): Adjust.
3431 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3432 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3433 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3434 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3435 (list_args_or_locals): Adjust.
3436 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3437 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3438 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3439 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3440 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3441 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3442 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3443 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3444 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3445 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3446 (list_available_thread_groups, mi_cmd_list_thread_groups)
3447 (mi_cmd_data_list_register_names)
3448 (mi_cmd_data_list_changed_registers)
3449 (mi_cmd_data_list_register_values, get_register)
3450 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3451 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3452 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3453 (mi_execute_command, mi_load_progress): Adjust.
3454 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3455 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3456 Adjust.
3457 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3458 * tui/tui-interp.c (tui_command_loop): Adjust.
3459 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3460
f9679975
PA
34612011-08-04 Pedro Alves <pedro@codesourcery.com>
3462
3463 * exceptions.c (struct catcher): Remove saved_uiout field.
3464 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3465 no longer save/resvore the global ui_out builder.
3466 (catch_exceptions_with_msg): Save/override/restore the global
3467 ui_out builder manually instead of relying on TRY_CATCH to do it.
3468 (catch_errors): Save/restore the global ui_out builder manually
3469 instead of relying on TRY_CATCH to do it.
3470 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3471 parameter.
3472 (TRY_CATCH): Adjust.
3473 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3474 the global ui_out builder manually instead of relying on TRY_CATCH
3475 to do it.
3476
934709f0
PW
34772011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3478
3479 * breakpoint.c (update_global_location_list): Ensure
3480 invariant 'first loc marked not duplicated and inserted,
3481 following locs marked duplicated/not inserted' is respected
3482 for multiple locations at the same address.
3483 (unduplicated_should_be_inserted) New function.
3484 (swap_insertion) New function.
3485
2421fe6f
JK
34862011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3487
3488 * stack.c (print_frame_arguments_choices): Comment typo fix.
3489
3fbb6ffa
TJB
34902011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3491
3492 Revert:
3493 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3494 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3495 argument. Update callers.
3496
fbe12357
PP
34972011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3498
3499 PR gdb/13045
3500 * doublest.c (convert_doublest_to_floatformat): Pass correct
3501 mantissa length to put_field.
3502
b1d288d3
JK
35032011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3504
3505 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3506 exception_print code path.
3507 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3508 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3509 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3510
311b5970
JK
35112011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 Code cleanup.
3514 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3515 Remove, merge them into ...
3516 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3517 variable args and its initialization.
3518 (struct print_args_args, print_args_stub): Remove, merge them into
3519 print_frame.
3520 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3521 them into ...
3522 (do_gdb_disassembly): ... here. Remove variable args and its
3523 initialization.
3524 (print_frame): Remove variable args and its initialization, new
3525 variable gdbarch and numargs (from print_args_stub), inline here
3526 print_args_stub with a TRY_CATCH.
3527 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3528 them into ...
3529 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3530 New variable e, remove variable btargs and its initialization.
311b5970 3531
484a26a8
TG
35322011-08-01 Tristan Gingold <gingold@adacore.com>
3533
3534 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3535
c30eee59
TJB
35362011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3537
3538 * breakpoint.c (insert_bp_location): Document return value.
3539 (insert_breakpoint_locations): Fix documentation.
3540 (remove_breakpoints): Add documentation.
3541
f116073b
TJB
35422011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3543
3544 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3545 argument. Update callers.
3546
65aa373f
JK
35472011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 * stack.c (print_frame_info): Comment typo fix.
3550
a50242fb
SA
35512011-07-29 Sterling Augustine <saugustine@google.com>
3552
3553 * MAINTAINERS (Write After Approval): Add myself to the list.
3554
267f6504
TT
35552011-07-29 Tom Tromey <tromey@redhat.com>
3556
3557 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3558 (library_list_start_segment): Update.
3559 (library_list_start_section): Update.
3560
00bd41d6
PM
35612011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3562
3563 * varobj.c (value_get_print_value): Move hint check later into the
3564 function. Comment function. Free thevalue before reusing it.
3565
18a46dbe
JK
35662011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3567 Pedro Alves <pedro@codesourcery.com>
3568
3569 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3570 value_one.
3571 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3572 Assert the result kind.
3573 * value.h (value_one): Remove parameter lv.
3574
bb7da2bf
JK
35752011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3576
3577 Fix crash on lval_computed values.
3578 * valops.c (value_zero): Use not_lval for lval_computed.
3579
2d5213f8
TT
35802011-07-27 Tom Tromey <tromey@redhat.com>
3581
3582 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3583 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3584
11081198
JK
35852011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3588 "ptype" by their typedefs difference.
3589
3c6e0cb3
JK
35902011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3591
3592 * dwarf2expr.c (ctx_no_read_reg): New function.
3593 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3594 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3595 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3596 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3597
523f3620
JK
35982011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3601 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3602 file.
3603 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3604 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3605 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3606 (ctx_no_get_base_type): Move the functions here.
3607 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3608 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3609 (ctx_no_get_base_type): New declarations.
3610
24d3216f
TT
36112011-07-27 Tom Tromey <tromey@redhat.com>
3612
3613 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3614 entries.
3615 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3616 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3617
5005c8a9
PP
36182011-07-26 Sterling Augustine <saugustine@google.com>
3619
3620 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3621 ULONGEST.
3622 (dump_bfd_file): Likewise.
3623
480a3f21
PW
36242011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3625
3626 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3627 (remote_hw_watchpoint_length_limit): New variable.
3628 (_initialize_remote) add set,show cmds for this new variable.
3629 * gdb.texinfo: document these new commands.
3630 * NEWS: Mention these new commands.
3631
efa80663
PA
36322011-07-26 Pedro Alves <pedro@codesourcery.com>
3633
3634 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3635 true for software watchpoints.
3636
dbdaa232 36372011-07-26 Joel Brobecker <brobecker@adacore.com>
3638
3639 GDB 7.3 released.
3640
cf2c3c16
TT
36412011-07-26 Tom Tromey <tromey@redhat.com>
3642
3643 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3644 * dwarf2read.c (read_indirect_string_at_offset): New function.
3645 (read_indirect_string): Use it.
3646 (dwarf_decode_macro_bytes): New function, taken from
3647 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3648 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3649 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3650 New functions.
3651 (struct dwarf2_per_objfile) <macro>: New field.
3652 (dwarf2_elf_names): Add .debug_macro.
3653 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3654 (dwarf2_locate_sections): Handle new section.
3655 (read_file_scope): Handle DW_AT_GNU_macros.
3656 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3657
1a532630
PP
36582011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3659
3660 * NEWS: Mention dcache configuration.
3661 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3662 (dcache_size, dcache_line_size): New variables.
3663 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3664 (struct dcache_block): Make it expandable.
3665 (struct dcache_struct): New field.
3666 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3667 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3668 (dcache_poke_byte, dcache_print_line): Adjust.
3669 (set_dcache_size, set_dcache_line_size): New functions.
3670 (set_dcache_command, show_dcache_command): New functions.
3671 (_initialize_dcache): Add new commands.
3672
2eff07b3
PP
36732011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3674
3675 * progspace.h (struct program_space): Add solib_add_generation.
3676 * infcmd.c (post_create_inferior): Only call solib_add if not
3677 already done.
3678 * solib.c (solib_add): Increment solib_add_generation.
3679
543305c9
JK
36802011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 Fix implicit pointer offsets.
3683 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3684 ptr.OFFSET.
3685
c0a91b2b
TT
36862011-07-25 Tom Tromey <tromey@redhat.com>
3687
3688 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3689 const.
3690 (ada_exception_sal): Make 'ops' const.
3691 (ada_decode_exception_location): Likewise.
3692 (ada_decode_assert_location): Likewise.
3693 (catch_assert_command): Update.
3694 (catch_ada_exception_command): Update.
3695 (create_ada_exception_catchpoint): Make 'ops' const.
3696 * breakpoint.c (set_raw_breakpoint_without_location)
3697 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3698 const.
3699 (create_internal_breakpoint): Update.
3700 (init_raw_breakpoint_without_location): Make 'ops' const.
3701 (init_raw_breakpoint, init_catchpoint)
3702 (create_fork_vfork_event_catchpoint)
3703 (create_syscall_event_catchpoint, init_breakpoint_sal)
3704 (create_breakpoint_sal, create_breakpoints_sal)
3705 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3706 * breakpoint.h (struct breakpoint) <ops>: Now const.
3707 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3708 const.
3709
6cb9b55b
PP
37102011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3711
3712 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3713
d9b3f62e
PA
37142011-07-25 Pedro Alves <pedro@codesourcery.com>
3715
3716 * breakpoint.h (print_recreate_thread): Declare.
3717 (struct breakpoint): Move step_count, pass_count,
3718 number_on_target, static_trace_marker_id,
3719 static_trace_marker_id_idx ...
3720 (struct tracepoint): ... to this new struct.
3721 (get_tracepoint, get_tracepoint_by_number_on_target)
3722 (get_tracepoint_by_number): Change return type to struct
3723 tracepoint pointer.
3724 * breakpoint.c (is_tracepoint_type): New, factored out from
3725 is_tracepoint.
3726 (is_tracepoint): Adjust.
3727 (print_one_breakpoint_location): Cast to struct tracepoint as
3728 necessary, and adjust.
3729 (print_recreate_catch_fork, print_recreate_catch_vfork)
3730 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3731 print_recreate_thread.
3732 (init_breakpoint_sal): New, factored out from
3733 create_breakpoint_sal.
3734 (create_breakpoint_sal): Reimplement.
3735 (create_breakpoint): Allocate a struct tracecepoint if the caller
3736 wanted a tracepoint. Use init_breakpoint_sal and
3737 install_breakpoint.
3738 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3739 (print_recreate_masked_watchpoint)
3740 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3741 (tracepoint_print_one_detail): Adjust.
3742 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3743 Dump the pass count here.
3744 (update_static_tracepoint): Adjust.
3745 (addr_string_to_sals): Adjust.
3746 (create_tracepoint_from_upload): Adjust. Change return type to
3747 struct tracepoint pointer.
3748 (trace_pass_set_count): Change parameter type to struct tracepoint
3749 pointer, and adjust.
3750 (trace_pass_command): Adjust.
3751 (get_tracepoint, get_tracepoint_by_number_on_target)
3752 (get_tracepoint_by_number): Change return type to struct
3753 tracepoint pointer, and adjust.
3754 (print_recreate_thread): New, factored out from save_breakpoints.
3755 (save_breakpoints): Don't print thread and task and passcount
3756 recreation here.
3757 * remote.c (remote_download_tracepoint): Adjust.
3758 * tracepoint.c (trace_actions_command, validate_actionline)
3759 (start_tracing, tfind_1, trace_find_tracepoint_command)
3760 (trace_dump_command): Adjust.
3761 (find_matching_tracepoint): Change return type to struct
3762 tracepoint pointer, and adjust.
3763 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3764 (tfile_trace_find, tfile_fetch_registers): Adjust.
3765 * tracepoint.h (create_tracepoint_from_upload): Change return type
3766 to struct tracepoint pointer.
3767 * ada-lang.c (print_recreate_exception): Call
3768 print_recreate_thread.
3769 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3770
3a5c3e22
PA
37712011-07-25 Pedro Alves <pedro@codesourcery.com>
3772
3773 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3774 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3775 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3776 watchpoint_thread, watchpoint_triggered ...
3777 (struct watchpoint): ... to this new struct.
3778 (is_watchpoint): Declare.
3779 (install_breakpoint): Add new `internal' parameter.
3780 * breakpoint.c (is_watchpoint): Delete declaration.
3781 (set_breakpoint_condition): Handle watchpoints.
3782 (is_watchpoint): Make public.
3783 (watchpoint_in_thread_scope): Change parameter type to struct
3784 watchpoint.
3785 (watchpoint_del_at_next_stop): Change parameter type to struct
3786 watchpoint. Remove assertion. Adjust.
3787 (update_watchpoint): Ditto.
3788 (insert_breakpoints, breakpoint_init_inferior)
3789 (watchpoints_triggered, watchpoint_check)
3790 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3791 (bpstat_stop_status, print_one_breakpoint_location)
3792 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3793 to struct watchpoint as necessary, and adjust.
3794 (install_breakpoint): Add `internal' argument. If true, don't
3795 mention the new breakpoint. Use set_breakpoint_number.
3796 (create_fork_vfork_event_catchpoint)
3797 (create_syscall_event_catchpoint): Adjust.
3798 (dtor_watchpoint): New.
3799 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3800 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3801 (print_it_watchpoint, print_mention_watchpoint)
3802 (print_recreate_watchpoint, insert_masked_watchpoint)
3803 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3804 (print_one_detail_masked_watchpoint)
3805 (print_mention_masked_watchpoint)
3806 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3807 necessary, and adjust.
3808 (watch_command_1): Allocate and initialize a struct watchpoint
3809 instead of a struct breakpoint. Use install_breakpoint.
3810 (catch_exec_command_1): Adjust.
3811 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3812 fields.
3813 (delete_breakpoint, enable_breakpoint_disp)
3814 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3815 as necessary, and adjust.
3816 (initialize_breakpoint_ops): Install dtor_watchpoint as
3817 watchpoints' dtor method.
3818 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3819 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3820 to struct watchpoint as necessary, and adjust.
3821
2060206e
PA
38222011-07-25 Pedro Alves <pedro@codesourcery.com>
3823
3824 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3825 the the base class ops table.
3826 (catch_exception_breakpoint_ops)
3827 (catch_exception_unhandled_breakpoint_ops)
3828 (catch_assert_breakpoint_ops): Don't statically initialize.
3829 (initialize_ada_catchpoint_ops): New.
3830 (_initialize_ada_language): Call it.
3831 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3832 (bkpt_breakpoint_ops): Forward declare.
3833 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3834 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3835 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3836 (masked_watchpoint_breakpoint_ops)
3837 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3838 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3839 base class ops table.
3840 (null_re_set, null_check_status, null_works_in_software_mode)
3841 (null_resources_needed, null_print_one_detail): Delete.
3842 (bkpt_dtor): Rename to ...
3843 (base_breakpoint_dtor): ... this. Make static.
3844 (bkpt_allocate_location): Rename to ...
3845 (base_breakpoint_allocate_location): ... this. Make static.
3846 (base_breakpoint_re_set): New.
3847 (internal_error_pure_virtual_called): New.
3848 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3849 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3850 (base_breakpoint_works_in_software_mode)
3851 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3852 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3853 (base_breakpoint_print_recreate): New functions.
3854 (base_breakpoint_ops): New global.
3855 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3856 (bkpt_breakpoint_hit): Make static.
3857 (bkpt_check_status): Delete.
3858 (bkpt_resources_needed): Make static.
3859 (bkpt_works_in_software_mode): Delete.
3860 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3861 static.
3862 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3863 (momentary_breakpoint_ops): Don't statically initialize.
3864 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3865 Delete.
3866 (tracepoint_insert_location, tracepoint_remove_location)
3867 (tracepoint_check_status, tracepoint_works_in_software_mode)
3868 (tracepoint_print_it): Delete.
3869 (tracepoint_breakpoint_ops): Don't statically initialize.
3870 (initialize_breakpoint_ops): New.
3871 (_initialize_breakpoint): Call it.
3872 * breakpoint.h (null_re_set, null_works_in_software_mode)
3873 (null_resources_needed, null_check_status, null_print_one_detail):
3874 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3875 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3876 (bkpt_check_status, bkpt_resources_needed)
3877 (bkpt_works_in_software_mode, bkpt_print_it)
3878 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3879 Delete declarations.
3880 (initialize_breakpoint_ops): Declare.
3881
001c8c33
PA
38822011-07-25 Pedro Alves <pedro@codesourcery.com>
3883
3884 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3885 (momentary_bkpt_print_it): Simplify.
3886
06edf0c0
PA
38872011-07-25 Pedro Alves <pedro@codesourcery.com>
3888
3889 Split internal, momentary and user breakpoints breakpoint_ops
3890 tables.
3891
3892 * breakpoint.c (internal_breakpoint_ops)
3893 (momentary_breakpoint_ops): Forward declare.
3894 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3895 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3896 (create_overlay_event_breakpoint)
3897 (create_std_terminate_master_breakpoint)
3898 (create_exception_master_breakpoint): Create breakpoints with
3899 internal_breakpoint_ops vtable.
3900 (set_longjmp_breakpoint): Create momentary breakpoints with
3901 momentary_breakpoint_ops vtable, using
3902 momentary_breakpoint_from_master.
3903 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3904 (create_solib_event_breakpoint): Create breakpoints with
3905 internal_breakpoint_ops vtable.
3906 (set_momentary_breakpoint): Create breakpoints with
3907 momentary_breakpoint_ops vtable.
3908 (momentary_breakpoint_from_master): New, factored out from
3909 clone_momentary_breakpoint.
3910 (clone_momentary_breakpoint): Adjust.
3911 (watch_command_1): Create scope breakpoints with
3912 momentary_breakpoint_ops vtable.
3913 (bkpt_re_set): Remove handling of internal and momentary
3914 breakpoints.
3915 (bkpt_print_mention, bkpt_print_recreate): New.
3916 (bkpt_breakpoint_ops): Adjust.
3917 (internal_bkpt_re_set, internal_bkpt_check_status)
3918 (internal_bkpt_print_it, internal_bkpt_print_mention)
3919 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3920 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3921 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3922 (momentary_bkpt_print_recreate): New.
3923 (momentary_breakpoint_ops): New.
3924
348d480f
PA
39252011-07-25 Pedro Alves <pedro@codesourcery.com>
3926
3927 Implement most breakpoint_ops methods for all breakpoint types,
3928 and move the default handlings to the proper callbacks.
3929
3930 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3931 works_in_software_mode method.
3932 (insert_bp_location): Go through breakpoint_ops->insert_location
3933 for software and hardware watchpoints.
3934 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3935 breakpoint_ops.
3936 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3937 for software and hardware watchpoints.
3938 (print_it_typical): Delete.
3939 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3940 method.
3941 (watchpoint_check): Adjust comment.
3942 (bpstat_check_location): Simply always call the breakpoint's
3943 breakpoint_hit method.
3944 (bpstat_stop_status): Always call the breakpoint's check_status
3945 method. Remove special cases for watchpoints and internal event
3946 breakpoints from here (moved to the check_status implementations).
3947 (print_one_breakpoint_location): Assume b->ops is never NULL.
3948 Remove static tracepoint marker id printing from here (moved to
3949 the print_one_detail callback implementation of tracepoints).
3950 (init_bp_location): Assert OPS is never NULL.
3951 (allocate_bp_location): Always call the breakpoint's
3952 allocate_location method, and remove the default code from here.
3953 (free_bp_location): Always call the location's dtor method, and
3954 remove the default code from here.
3955 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3956 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3957 parameter. Pass it down.
3958 (set_raw_breakpoint): Ditto.
3959 (print_it_catch_fork): Adjust to take a bpstat as argument.
3960 (catch_fork_breakpoint_ops): Install methods.
3961 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3962 (catch_vfork_breakpoint_ops): Install methods.
3963 (dtor_catch_syscall): Call the base dtor.
3964 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3965 (catch_syscall_breakpoint_ops): Install methods.
3966 (dtor_catch_exec): Call the base dtor.
3967 (print_it_catch_exec): Adjust to take a bpstat as argument.
3968 (catch_exec_breakpoint_ops): Install methods.
3969 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3970 the breakpoint's resources_needed method, and remove the default
3971 code from here.
3972 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3973 breakpoint_ops.
3974 (clone_momentary_breakpoint): Clone the original's ops.
3975 (mention): Always call the breakpoint's print_mention method, and
3976 remove the default code from here.
3977 (create_breakpoint_sal): Adjust to pass the ops to
3978 set_raw_breakpoint rather than setting it manually.
3979 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3980 ops to set_raw_breakpoint_without_location rather than setting it
3981 manually.
3982 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3983 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3984 (ranged_breakpoint_ops): Install methods.
3985 (break_range_command): Adjust to pass the ops to
3986 set_raw_breakpoint rather than setting it manually.
3987 (re_set_watchpoint, breakpoint_hit_watchpoint)
3988 (check_status_watchpoint, resources_needed_watchpoint)
3989 (works_in_software_mode_watchpoint, print_it_watchpoint)
3990 (print_mention_watchpoint, print_recreate_watchpoint): New
3991 functions.
3992 (watchpoint_breakpoint_ops): Install new methods.
3993 (print_it_masked_watchpoint): New function.
3994 (masked_watchpoint_breakpoint_ops): Install new methods.
3995 (watch_command_1): Adjust to pass the right breakpoint_ops to
3996 set_raw_breakpoint_without_location rather than setting it
3997 manually later. Record the current pspace.
3998 (print_it_exception_catchpoint): Adjust to take a bpstat as
3999 argument.
4000 (gnu_v3_exception_catchpoint_ops): Install new methods.
4001 (say_where): New function.
4002 (null_re_set, null_check_status, null_works_in_software_mode)
4003 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4004 New functions.
4005 (bp_location_ops): New global.
4006 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4007 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4008 (bkpt_check_status, bkpt_resources_needed)
4009 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4010 (bkpt_print_recreate): New functions.
4011 (bkpt_breakpoint_ops): New global.
4012 (tracepoint_re_set, tracepoint_insert_location)
4013 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4014 (tracepoint_check_status, tracepoint_works_in_software_mode)
4015 (tracepoint_print_it, tracepoint_print_one_detail)
4016 (tracepoint_print_mention, tracepoint_print_recreate): New
4017 functions.
4018 (tracepoint_breakpoint_ops): New global.
4019 (delete_breakpoint): Always call the breakpoint's dtor method, and
4020 remove the default handling from here.
4021 (breakpoint_re_set_default): Make static.
4022 (breakpoint_re_set_one): Always call the breakpoints re_set
4023 method, and remove the default handling from here.
4024 (trace_command, ftrace_command, strace_command)
4025 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4026 to create_breakpoint.
4027 (save_breakpoints): Always call the breakpoint's print_recreate
4028 method, and remove the default handling from here.
4029
4030 * ada-lang.c (dtor_exception): Call the base dtor.
4031 (re_set_exception): Call the base method.
4032 (print_it_exception, print_it_catch_exception): Adjust to take a
4033 bpstat as argument.
4034 (catch_exception_breakpoint_ops): Install methods.
4035 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4036 argument.
4037 (catch_exception_unhandled_breakpoint_ops): Install methods.
4038 (print_it_catch_assert): Adjust to take a bpstat as argument.
4039 (catch_assert_breakpoint_ops): Install methods.
4040
4041 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4042 to take a bpstat as argument.
4043 (enum print_stop_action): Add describing comments to each enum
4044 value.
4045 (breakpoint_re_set_default): Delete declaration.
4046 (null_re_set, null_works_in_software_mode, null_resources_needed)
4047 (null_check_status, null_print_one_detail): Declare.
4048 (bkpt_breakpoint_ops): Declare.
4049 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4050 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4051 (bkpt_check_status, bkpt_resources_needed)
4052 (bkpt_works_in_software_mode, bkpt_print_it)
4053 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4054 Declare.
4055
4056 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4057 bkpt_breakpoint_ops.
4058 * python/py-breakpoint.c (bppy_init): Ditto.
4059
be8f8133
PW
40602011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4061
4062 * MAINTAINERS (Write After Approval): Add myself to the list.
4063
3807f613
PP
40642011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4065
4066 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4067
1ced966e
PA
40682011-07-22 Pedro Alves <pedro@codesourcery.com>
4069
4070 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4071 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4072 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4073 adjust.
4074 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4075 (struct i386_debug_reg_state): New.
4076 (i386_init_dregs): New.
4077 (dr_mirror): New.
4078 (i386_cleanup_dregs): Use i386_init_dregs.
4079 (i386_show_dr): Add state parameter and adjust.
4080 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4081 the inferior here.
4082 (i386_remove_aligned_watchpoint): Likewise.
4083 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4084 (i386_update_inferior_debug_regs): New.
4085 (i386_insert_watchpoint): Work on a local mirror of the debug
4086 registers, and only update the inferior on success.
4087 (i386_remove_watchpoint): Ditto.
4088 (i386_region_ok_for_watchpoint): Adjust.
4089 (i386_stopped_data_address): Adjust.
4090 (i386_insert_hw_breakpoint): Adjust.
4091 (i386_remove_hw_breakpoint): Adjust.
4092
3543a589
TT
40932011-07-22 Tom Tromey <tromey@redhat.com>
4094
4095 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4096 from amd64_pseudo_register_read. Change arguments. Call
4097 mark_value_bytes_unavailable when needed.
4098 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4099 set_gdbarch_pseudo_register_read.
4100 * sentinel-frame.c (sentinel_frame_prev_register): Use
4101 regcache_cooked_read_value.
4102 * regcache.h (regcache_cooked_read_value): Declare.
4103 * regcache.c (regcache_cooked_read_value): New function.
4104 (regcache_cooked_read): Call
4105 gdbarch_pseudo_register_read_value if available.
4106 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4107 (i386_pseudo_register_read): Remove.
4108 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4109 i386_pseudo_register_read. Change arguments. Call
4110 mark_value_bytes_unavailable when needed.
4111 (i386_pseudo_register_read_value): New function.
4112 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4113 not set_gdbarch_pseudo_register_read.
4114 * gdbarch.sh (pseudo_register_read_value): New method.
4115 * gdbarch.c, gdbarch.h: Rebuild.
4116 * findvar.c (value_from_register): Call get_frame_register_value.
4117
95298e72
PM
41182011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4119
4120 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4121 get_prefix.
4122 (display_gdb_prompt): Likewise.
4123 (change_annotation_level): Likewise.
4124 (push_prompt): Likewise.
4125 (pop_prompt): Likewise.
4126 (handle_stop_sig): Use get_prompt with a level.
4127 * top.c (command_loop): Use get_prompt with a level.
4128 (set_async_annotation_level): Use set_prompt with a level.
4129 (get_prefix): New function.
4130 (set_prefix): Ditto.
4131 (set_suffix): Ditto.
4132 (get_suffix): Ditto.
4133 (get_prompt): Accept a level argument.
4134 (set_prompt): Accept a level argument. Free old prompts. Set
4135 new_async_prompt if level is 0.
4136 (init_main): Use set_prompt with a level. Do not set
4137 new_async_prompt.
4138 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4139 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4140 Modify set_prompt, get_prompt to account for levels.
4141 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4142 level.
4143 * python/python.c (before_prompt_hook): Use set_prompt.
4144
d26e3629
KY
41452011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4146
4147 * defs.h: Add guard against inclusion in gdbserver.
4148 (struct ptid, ptid_t): Move to common/ptid.h.
4149 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4150 xsnprintf, internal_error): Move to common/common-utils.h.
4151 (nomem): Delete.
4152 * gdb_assert.h: Move into common/ sub-directory.
4153 * gdb_locale.h: Ditto.
4154 * gdb_dirent.h: Ditto.
4155 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4156 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4157 Move into common/ptid.h.
4158 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4159 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4160 Change nomem to malloc_failure.
4161 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4162 * utils.c (nomem): Rename to malloc_failure.
4163 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4164 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4165 (gdb_buildargv): Change nomem to malloc_failure.
4166 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4167 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4168 ptid_is_pid): Move into common/ptid.c.
4169 (initialize_infrun): Delete initialization of null_ptid and
4170 minus_one_ptid.
4171 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4172 linux_common_xfer_osdata.
4173 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4174 common/ptid.c and common/buffer.c.
4175 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4176 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4177 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4178 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4179 rules.
4180 * common/gdb_assert.h: New.
4181 * common/gdb_dirent.h: New.
4182 * common/gdb_locale.h: New.
4183 * common/buffer.c: New.
4184 * common/buffer.h: New.
4185 * common/ptid.c: New.
4186 * common/ptid.h: New.
4187 * common/xml-utils.c: New.
4188 * common/xml-utils.h: New.
4189 * common/common-utils.c: New.
4190 * common/common-utils.h: New.
4191 * common/linux-osdata.c: New.
4192 * common/linux-osdata.h: New.
4193 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4194 * config/arm/linux.mh (NATDEPFILES): Ditto.
4195 * config/i386/linux.mh (NATDEPFILES): Ditto.
4196 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4197 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4198 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4199 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4200 * config/mips/linux.mh (NATDEPFILES): Ditto.
4201 * config/pa/linux.mh (NATDEPFILES): Ditto.
4202 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4203 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4204 * config/s390/s390.mh (NATDEPFILES): Ditto.
4205 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4206 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4207 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4208
edc84990 42092011-07-21 Matt Rice <ratmice@gmail.com>
4210
4211 * NEWS: Add info macros and info definitions commands.
4212
3a7bf607
PM
42132011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4214
4215 * NEWS: Document Python prompt substitution hook.
4216
9b158ba0 42172011-07-18 Matt Rice <ratmice@gmail.com>
4218
4219 PR macros/12999
4220 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4221 * macrotab.c (foreach_macro): Ditto.
4222 (foreach_macro_in_scope): Ditto.
4223 * macrocmd.c (print_macro_callback): New function.
4224 (info_macro_command): Move some code to print_macro_definition.
4225 (print_macro_definition): New function.
4226 (print_one_macro): Add new arguments to callback.
4227 (info_definitions_command): New function.
4228 (info_macros_command): Ditto.
4229 (_initialize_macrocmd): Add info macros and info definitions commands.
4230 * symtab.c (add_macro_name): Add new arguments to callback.
4231
d17b6f81
PM
42322011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4233 Tom Tromey <tromey@redhat.com>
4234
4235 * top.c (set_prompt): Rewrite to free previous prompt, free
4236 asynch_new_prompt and set both on new prompts.
4237 * event-top.c (display_gdb_prompt): Add prompt substitution
4238 logic.
4239 * python/python.c (before_prompt_hook): New function.
4240
1364323a 42412011-07-20 Matt Rice <ratmice@gmail.com>
4242
4243 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4244 arguments to store_unsigned_integer.
4245
8b70b953
TT
42462011-07-20 Tom Tromey <tromey@redhat.com>
4247
6c83ed52
TT
4248 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4249 in some declaration-only cases.
4250
42512011-07-18 Tom Tromey <tromey@redhat.com>
4252
8b70b953
TT
4253 PR symtab/12984:
4254 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4255 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4256 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4257 <debug_type_section>: New field.
4258 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4259 (load_cu): Use appropriate section.
4260 (create_signatured_type_table_from_index): Add 'section'
4261 argument.
4262 (dwarf2_read_index): Only allow a single .debug_types section.
4263 (dw2_get_file_names): Use appropriate section.
4264 (read_type_comp_unit_head): Add 'section' argument.
4265 (create_debug_types_hash_table): Loop over all .debug_types
4266 sections.
4267 (init_cu_die_reader): Use appropriate section.
4268 (process_psymtab_comp_unit, load_partial_comp_unit)
4269 (load_full_comp_unit, read_die_and_children, find_partial_die)
4270 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4271 (lookup_signatured_type_at_offset): Add 'section' argument.
4272 (read_signatured_type_at_offset): Add 'sect' argument.
4273 (read_signatured_type): Use appropriate section.
4274 (set_die_type, get_die_type_at_offset): Update.
4275 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4276 VEC.
4277 (write_psymtabs_to_index): Don't allow index with more than one
4278 .debug_types section.
4279
918dd910
JK
42802011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4281
4282 Fix crash if referenced CU is aged out.
4283 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4284 xfree of block.data.
4285 (indirect_pieced_value): New variable back_to, use to for xfree of
4286 baton.data.
4287 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4288 block.data.
4289 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4290 (load_cu): New function from ...
4291 (dw2_do_instantiate_symtab): ... the code here ...
4292 (process_full_comp_unit): ... and here.
4293 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4294 retval.data.
4295
0e37a63c
JK
42962011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4297
4298 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4299 type.
4300
7e324e48
GB
43012011-07-19 Gary Benson <gbenson@redhat.com>
4302
4303 * infrun.c (struct execution_control_state): New member
4304 stop_func_filled_in.
4305 (clear_stop_func, fill_in_stop_func): New functions.
4306 (handle_inferior_event): Call clear_stop_func rather than
4307 manipulating the execution control state directly.
4308 Call fill_in_stop_func lazily as required rather than
4309 directly calling find_pc_partial_function in all cases.
4310
d48323d8
TT
43112011-07-18 Tom Tromey <tromey@redhat.com>
4312
4313 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4314 checking for variable-sized array.
4315
40591b7d
JCD
43162011-07-18 Jean-Charles Delay <delay@adacore.com>
4317
4318 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4319 of supported languages.
4320 * varobj.c: Add top definitions and basic implementation of the
4321 following callbacks: ada_number_of_children, ada_name_of_variable,
4322 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4323 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4324 (languages): Register Ada-specific callbacks.
4325 (variable_language): Add the Ada case in the language setter switch.
4326
2e424e08
JK
43272011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4328
4329 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4330
9e8b7a03
JK
43312011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4332
4333 Code cleanup.
4334 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4335 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4336 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4337 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4338 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4339 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4340 (struct dwarf_expr_context_funcs): New, move here methods from ...
4341 (struct dwarf_expr_context): ... here. New fields funcs.
4342 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4343 (dwarf_expr_ctx_funcs): New.
4344 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4345 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4346 (needs_frame_ctx_funcs): New.
4347 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4348
2b1260ab
FM
43492011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4350
4351 * MAINTAINERS (Write After Approval): Add myself to the list.
4352
8bd90839
FM
43532011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4354
4355 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4356 that CIE pointer of an FDE really points to a CIE .
4357
953b98d1
HZ
43582011-07-15 Hui Zhu <teawater@gmail.com>
4359
4360 * remote.c (remote_get_trace_status): Add comments.
4361
c8f2448a
JK
43622011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4363
4364 Code cleanup - constify struct lval_funcs.
4365 * dwarf2loc.c (pieced_value_funcs): Make it const.
4366 * infrun.c (siginfo_value_funcs): Likewise.
4367 * opencl-lang.c (opencl_value_funcs): Likewise.
4368 * valops.c (value_assign, value_ind): Make the funcs variable const.
4369 * value.c (struct value): Make location.computed.funcs target const.
4370 Rearrange the comments.
4371 (allocate_computed_value): Make the funcs parameter target const.
4372 (value_computed_funcs): Return the funcs target const.
4373 (value_free, value_copy, set_value_component_location): Make the funcs
4374 variable const.
4375 * value.h (allocate_computed_value): Make the funcs parameter target
4376 const.
4377 (value_computed_funcs): Return the funcs target const.
4378 * windows-tdep.c (tlb_value_funcs): Make it const.
4379
f652de6f
HZ
43802011-07-14 Hui Zhu <teawater@gmail.com>
4381
4382 * remote.c (remote_get_trace_status): Initialize p.
4383
67f41397
JK
43842011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 Work around kgdb.
4387 * remote.c (remote_get_trace_status): New variable ex. Put
4388 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4389
d1b66e6d
TT
43902011-07-13 Tom Tromey <tromey@redhat.com>
4391
4392 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4393 value_from_contents for final conversion.
4394
1632a688
JK
43952011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4396
4397 Code cleanup.
4398 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4399 Indent prototypes so they do not get into tags.
4400
a7035dbb
JK
44012011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4402
4403 Code cleanup making also optimized out values lazy.
4404 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4405 allocate_optimized_out_value. Twice.
4406 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4407 * findvar.c (read_var_value): Likewise.
4408 * value.c (allocate_optimized_out_value): New function.
4409 * value.h (allocate_optimized_out_value): New declaration.
4410
d07ed419
JK
44112011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4412
4413 Fix occasional crash of CTRL-C during DWARF read in.
4414 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4415
86d31898
TT
44162011-07-11 Tom Tromey <tromey@redhat.com>
4417
4418 * regcache.c (struct regcache_descr): Fix typo.
4419 * i387-tdep.c (i387_supply_xsave): Fix typo.
4420
2ab95328
TT
44212011-07-11 Tom Tromey <tromey@redhat.com>
4422
4423 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4424 (read_file_scope, read_type_unit_scope): Use it.
4425
04ad99e6
JK
44262011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4427
4428 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4429 `int'.
4430
713389e0
PM
44312011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4432
4433 PR python/12438
4434 * python/python.c: Set gdbpy_should_print_stack default to off.
4435 (set_python): Deprecate maint set python print-stack to
4436 class_deprecate.
4437 (_initialize_python): Deprecate maint set/show python print-stack.
4438 Add new prefix command, python. Add new setting, print-backtrace.
4439 * NEWS: Document set python print-stack. Document default change.
4440
754eadd1
PM
44412011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4442
4443 * python/py-inferior.c (infpy_dealloc): New function.
4444 (inferior_to_inferior_object): Return a new object, or a
4445 new reference to the existing object.
4446 (find_thread_object): Cleanup references to inferior.
4447 (delete_thread_object): Ditto.
4448 * python/py-infthread.c (create_thread_object): Do not increment
4449 inferior reference count.
4450
5e44ecb3
TT
44512011-07-08 Tom Tromey <tromey@redhat.com>
4452
4453 * dwarf2loc.c (locexpr_regname): New function.
4454 (locexpr_describe_location_piece): Use it.
4455 (disassemble_dwarf_expression): Add per_cu argument. Use
4456 locexpr_regname.
4457 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4458 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4459 New cases.
4460 (locexpr_describe_location_1): Add per_cu argument.
4461 (locexpr_describe_location): Update.
4462 (loclist_describe_location): Update.
4463
e0e9434c
TT
44642011-07-08 Tom Tromey <tromey@redhat.com>
4465
4466 * dwarf2expr.c (execute_stack_op): Add QUIT.
4467
26afc0d7
HZ
44682011-07-07 Hui Zhu <teawater@gmail.com>
4469
4470 Revert:
4471 2011-07-06 Hui Zhu <teawater@gmail.com>
4472 * remote.c (remote_start_remote): Add TRY_CATCH for
4473 remote_get_trace_status.
4474 * tracepoint.c (disconnect_tracing): Ditto.
4475
a40a111f
AB
44762011-07-07 Andrew Burgess <aburgess@broadcom.com>
4477
4478 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4479 variables as signed, not unsigned.
4480
e2bd3b15
JB
44812011-07-06 Joel Brobecker <brobecker@adacore.com>
4482
4483 * jit.c (jit_inferior_init): Reformat forward declaration.
4484
e3d961fe 44852011-07-06 Matt Rice <ratmice@gmail.com>
4486
4487 * MAINTAINERS (Write After Approval): Add myself to the list.
4488
0f3428f0
HZ
44892011-07-06 Hui Zhu <teawater@gmail.com>
4490
4491 * remote.c (remote_start_remote): Add TRY_CATCH for
4492 remote_get_trace_status.
4493 * tracepoint.c (disconnect_tracing): Ditto.
4494
fc9f3a69
TT
44952011-07-05 Tom Tromey <tromey@redhat.com>
4496
4497 * symtab.c (operator_chars): Now static.
4498 * linespec.c (operator_chars): Don't declare.
4499
26e519b9
TJB
45002011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4501
4502 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4503
eb2a6f42
TT
45042011-07-05 Tom Tromey <tromey@redhat.com>
4505
4506 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4507 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4508 (TYPE_CPLUS_REALLY_JAVA): New macro.
4509 * dwarf2read.c (process_structure_scope): Set
4510 TYPE_CPLUS_REALLY_JAVA.
4511
21083d0f 45122011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4513
4514 * ada-lang.c: Fix typos.
4515 * amd64-tdep.c: Likewise.
4516 * breakpoint.c: Likewise.
4517 * cli/cli-decode.c: Likewise.
4518 * findcmd.c: Likewise.
4519 * inline-frame.c: Likewise.
4520 * mi/mi-main.c: Likewise.
4521 * minsyms.c: Likewise.
4522 * monitor.c: Likewise.
4523 * monitor.h: Likewise.
4524 * prologue-value.c: Likewise.
4525 * reverse.c: Likewise.
4526 * s390-tdep.c: Likewise.
4527
3b2a0cf2
JB
45282011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4529
4530 * jit.c (jit_inferior_init): Forward declare.
4531 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4532
efae1d92
JB
45332011-07-04 Joel Brobecker <brobecker@adacore.com>
4534
4535 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4536
6040a59d
JB
45372011-07-04 Tristan Gingold <gingold@adacore.com>
4538
4539 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4540 (tcb_fieldno): Add activation_link field.
4541 (get_known_tasks_addr): Moved and rewritten.
4542 (get_tcb_types_info): Set activation_link field.
4543 (read_known_tasks_array): Add parameter. Rewritten.
4544 (read_known_tasks_list): New function.
4545 (read_known_tasks): New function.
4546 (ada_build_task_list): Call read_known_tasks instead of
4547 read_known_tasks_array.
4548 * ravenscar-thread.c: Add first_task_name constant.
4549 (has_ravenscar_runtime): Check for task list too.
4550
cb741e45
JB
45512011-07-04 Tristan Gingold <gingold@adacore.com>
4552
4553 * ada-tasks.c: Renames fieldno to actb_fieldno.
4554 (ada_get_task_number): Indentation.
4555 (get_tcb_types_info): Remove all parameters. Write directly
4556 the globals.
4557 (ptid_from_atcb_common): Adjust.
4558 (read_atcb): Adjust.
4559
7475b06c
TJB
45602011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4561
4562 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4563
15230f37
TJB
45642011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4565
4566 * ui-out.c (ui_out_field_core_addr): Mention that the function
4567 description is in the header file.
4568 * ui-out.h (ui_out_field_core_addr): Document function.
4569
65743aba
TJB
45702011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4571
4572 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4573 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4574
c37a5aab
TJB
45752011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4576
4577 * symtab.c (expand_line_sal): Remove empty line.
4578
59adf69e
TS
45792011-07-04 Thomas Schwinge <thomas@schwinge.name>
4580
4581 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4582 same way as ELFOSABI_NONE.
4583 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4584
e5dd4106
TJB
45852011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4586
4587 * breakpoint.c: Fix typos in comments.
4588 * linespec.c: Likewise.
4589 * symtab.c: Likewise.
4590
d40102a1
JB
45912011-07-04 Joel Brobecker <brobecker@adacore.com>
4592
4593 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4594 section in separate object files.
4595
2f741504
JK
45962011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4597
4598 Fix false GCC warning.
4599 * linespec.c (decode_line_1): Initialize values.
4600
418c7cf7
JK
46012011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4602
4603 * linespec.c (find_method): Accept the function type automatically only
4604 if it was specified with parameter types.
4605
3d50dd94
JK
46062011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4607
4608 Stop on first linespec terminator instead of eating what we can.
4609 * linespec.c (is_linespec_boundary): New function.
4610 (name_end): Remove function.
4611 (keep_name_info): New parameter on_boundary, replace the body.
4612 (decode_line_1): Provide the parameter to keep_name_info.
4613 (decode_compound): Likewise. Drop the trailing java return type
4614 handling. Twice.
4615
dcf9f4ab
JK
46162011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4617
4618 Fall back linespec to minimal symbols.
4619 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4620 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4621 (find_method, symbol_found): Change error to cplusplus_error.
4622
3f542ed1
JK
46232011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
bc68c4e5 4625 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4626
900e11f9
JK
46272011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 Tom Tromey <tromey@redhat.com>
4629
4630 * dwarf2read.c (check_physname): New variable.
4631 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4632 (show_check_physname): New function.
4633 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4634
2301925d
JB
46352011-07-01 Joel Brobecker <brobecker@adacore.com>
4636
4637 * machoread.c (macho_symfile_read): Delete OBE comment.
4638
38947cca
JB
46392011-07-01 Joel Brobecker <brobecker@adacore.com>
4640
4641 * machoread.c (struct macho_oso_data): Delete.
4642 (current_oso): Delete.
4643 (macho_relocate_common_syms): New function, mostly extracted
4644 out of
4645 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4646 Remove code that sets and unset current_oso.
4647 (macho_symfile_relocate): Delete handling of common symbols,
4648 now moved to macho_relocate_common_syms.
4649
a7aa0d73
JB
46502011-07-01 Joel Brobecker <brobecker@adacore.com>
4651
4652 * darwin-nat.c (darwin_ptrace): Add documentation.
4653 Set errno to zero before calling ptrace. If ptrace returns
4654 -1 and errno is zero, then change then return zero.
4655 (darwin_kill_inferior): Issue a warning instead of triggering
4656 a failed assertion when the PT_KILL ptrace operations returned
4657 nonzero.
4658
5e9bc145
JB
46592011-07-01 Joel Brobecker <brobecker@adacore.com>
4660
4661 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4662 only when inf->private->no_ptrace.
4663
00eb2c4a
JB
46642011-07-01 Joel Brobecker <brobecker@adacore.com>
4665
4666 * ada-lang.c (print_it_exception): Print temporary catchpoints
4667 as "Temporary catchpoint".
4668 (print_mention_exception): Likewise.
4669
127c81bc
TT
46702011-07-01 Tom Tromey <tromey@redhat.com>
4671
4672 * jv-lang.c (java_language_defn): Use java_printchar,
4673 java_printstr.
4674 (java_get_encoding): New function.
4675 (java_emit_char): Use generic_emit_char.
4676 (java_printchar): New function.
4677 (java_printstr): Likewise.
4678
25552254
JB
46792011-07-01 Joel Brobecker <brobecker@adacore.com>
4680
4681 * ada-typeprint.c (print_record_type): If unable to decode
4682 the name of the parent type, use the encoded name.
4683
d2d43431
JB
46842011-07-01 Jean-Charles Delay <delay@adacore.com>
4685
4686 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4687 pointer to constrained packed array type output.
4688 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4689 packed array output.
4690
54ae186f
JB
46912011-07-01 Jean-Charles Delay <delay@adacore.com>
4692
4693 * ada-typeprint.c (print_array_type): removed if condition on show
4694 being negative for bounds printing.
4695
8f17729f
JB
46962011-07-01 Joel Brobecker <brobecker@adacore.com>
4697
4698 * ada-lang.c (ada_identical_enum_types_p): New function.
4699 (symbols_are_identical_enums): New function.
4700 (remove_extra_symbols): Do nothing if NSYMS < 2.
4701 Use symbols_are_identical_enums.
4702
f5aa6869
JB
47032011-07-01 Joel Brobecker <brobecker@adacore.com>
4704
4705 * ada-valprint.c (ada_value_print): Handle typedefs.
4706
8f465ea7
JB
47072011-07-01 Joel Brobecker <brobecker@adacore.com>
4708
4709 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4710
828292f2
JB
47112011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4712
4713 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4714 (decode_constrained_packed_array): Likewise.
4715 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4716
18920c42
JB
47172011-07-01 Joel Brobecker <brobecker@adacore.com>
4718
4719 * ada-exp.y (convert_char_literal): Handle typedef types.
4720
c90092fe
JB
47212011-07-01 Joel Brobecker <brobecker@adacore.com>
4722
4723 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4724
f748fb40
TT
47252011-06-30 Tom Tromey <tromey@redhat.com>
4726
4727 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4728 * valops.c (find_overload_match): Call do_cleanups on early exit
4729 path.
4730 * solib.c (solib_find): Call do_cleanups on early exit path.
4731
3bb47e8b
TT
47322011-06-30 Tom Tromey <tromey@redhat.com>
4733
4734 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4735 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4736 return paths. Defer final do_cleanups until last return.
4737 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4738 early return.
4739
4727bad3
TT
47402011-06-30 Tom Tromey <tromey@redhat.com>
4741
4742 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4743
bb361dbf
AB
47442011-06-30 Andrew Burgess <aburgess@broadcom.com>
4745
4746 * MAINTAINERS (Write After Approval): Add myself to the list.
4747
e0d00bc7
JK
47482011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4749
4750 Disable epilogue unwinders on recent GCCs.
4751 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4752 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4753 * dwarf2read.c (process_full_comp_unit): Initialize
4754 EPILOGUE_UNWIND_VALID.
4755 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4756 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4757 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4758
4632c0d0
JK
47592011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4760
4761 Code cleanup - reformatting.
4762 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4763 (producer_is_gcc_ge_4): ... here, change the return value.
4764 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4765 interpretation.
4766
32019081
JK
47672011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Fix non-only rename list for Fortran modules import.
4770 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4771 cp_add_using_directive caller.
4772 (cp_add_using_directive): New parameter excludes, describe it. New
4773 variables ix and param. Compare if also excludes match. Allocate NEW
4774 with variable size, initialize EXCLUDES there.
4775 (cp_lookup_symbol_imports): New variable excludep, test
4776 current->EXCLUDES with it.
4777 * cp-support.h: Include vec.h.
4778 (struct using_direct): New field excludes, describe it.
4779 (DEF_VEC_P (const_char_ptr)): New.
4780 (cp_add_using_directive): New parameter excludes.
4781 * defs.h (const_char_ptr): New typedef.
4782 * dwarf2read.c (read_import_statement): New variables child_die,
4783 excludes and cleanups, read in excludes.
4784 (read_namespace): Adjust the cp_add_using_directive caller.
4785
70c622a3
JK
47862011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4787
4788 Code cleanup.
4789 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4790 negative comparisons.
4791
39c4d40a
TT
47922011-06-29 André Pönitz <andre.poenitz@nokia.com>
4793
4794 * mi/mi-main.c (mi_cmd_list_features): Emit
4795 breakpoint-notifications.
4796
3b2b8fea
TT
47972011-06-29 Tom Tromey <tromey@redhat.com>
4798
4799 PR fortran/10036:
4800 * valprint.h (generic_emit_char, generic_printstr): Declare.
4801 * valprint.c (wchar_printable, append_string_as_wide)
4802 (print_wchar): Move from c-lang.c.
4803 (generic_emit_char): New function; mostly taken from c_emit_char.
4804 (generic_printstr): New function; mostly taken from c_printstr.
4805 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4806 represented as arrays.
4807 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4808 type.
4809 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4810 identically to TYPE_CODE_INT.
4811 * f-lang.c (f_get_encoding): New function.
4812 (f_emit_char): Use generic_emit_char.
4813 (f_printchar): Replace comment.
4814 (f_printstr): Use generic_printstr.
4815 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4816 "character" types specially.
4817 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4818 for Fortran.
4819 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4820 Move to valprint.c
4821 (c_emit_char): Call generic_emit_char.
4822 (c_printstr): Call generic_printstr.
4823
168e6d44
GB
48242011-06-29 Gary Benson <gbenson@redhat.com>
4825
4826 * breakpoint.c (bpstat_what): Removed duplicated case.
4827
1c033f8c
TT
48282011-06-28 Tom Tromey <tromey@redhat.com>
4829
4830 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4831
5fe41fbf
TT
48322011-06-27 Tom Tromey <tromey@redhat.com>
4833
4834 * valops.c (find_overload_match): Call do_cleanups before early
4835 return.
4836 * top.c (execute_command): Call do_cleanups before early return.
4837 (command_loop): Likewise.
4838 * stack.c (backtrace_command): Make a null cleanup early. Don't
4839 conditionally call do_cleanups.
4840 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4841 TRY_CATCH.
4842 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4843 so cleanups are always run.
4844 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4845 * findcmd.c (parse_find_args): Call do_cleanups on early return
4846 path.
4847 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4848 Don't conditionally call do_cleanups.
4849 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4850 later.
4851
e26bd57d
EB
48522011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4853
4854 * MAINTAINERS (Write After Approval): Use default email address.
4855
6c3097fc
JB
48562011-06-27 Joel Brobecker <brobecker@adacore.com>
4857
4858 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4859
369c397b
JB
48602011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4861
4862 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4863 saved_regs_mask and copied_regs_mask fields.
4864 (sparc_record_save_insn): New prototype.
4865 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4866 (sparc_record_save_insn): New function.
4867 (sparc_analyze_prologue): Add head comment. Recognize store insns
4868 of call-saved registers. Use OFFSET consistently. Recognize flat
4869 frames and cache their settings.
4870 (sparc32_skip_prologue): Handle flat frames.
4871 (sparc_frame_cache): Add frame_offset to the base address.
4872 (sparc32_frame_cache): Adjust to new frame description.
4873 (sparc32_frame_prev_register): Likewise.
4874 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4875 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4876 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4877 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4878 frame by calling sparc_record_save_insn.
4879 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4880 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4881 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4882
b315ab21
TG
48832011-06-27 Tristan Gingold <gingold@adacore.com>
4884
4885 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4886 field by map_addr and map_len.
4887 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4888 (munmap_section_buffer): Likewise.
4889
ddd49eee
TT
48902011-06-24 Tom Tromey <tromey@redhat.com>
4891
4892 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4893 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4894 * python/python.c (gdbpy_parameter): Make 'arg' const.
4895 (execute_gdb_command): Likewise.
4896 (gdbpy_decode_line): Likewise. Copy it.
4897 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4898 (gdbpy_write): Make 'arg' const.
4899 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4900 const.
4901 (gdbpy_lookup_type): Likewise.
4902 * python/py-prettyprint.c (print_children): Make 'name' const.
4903 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4904 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4905 Py_ssize_t.
4906 * python/py-function.c (fnpy_init): Make 'name' const.
4907 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4908 (gdbpy_string_to_argv): Make 'input' const.
4909 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4910 it.
4911 * gdbtypes.h (lookup_typename): Update.
4912 * gdbtypes.c (lookup_typename): Make 'name' const.
4913 (lookup_struct): Likewise.
4914 (lookup_union): Likewise.
4915 (lookup_enum): Likewise.
4916
5998129b
TT
49172011-06-24 Tom Tromey <tromey@redhat.com>
4918
4919 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4920 gdb_thread_db.h. Move all common/ entries to be together.
4921 (TAGS): Don't depend on DEPFILES.
4922
6e586cc5
YQ
49232011-06-23 Yao Qi <yao@codesourcery.com>
4924
4925 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4926 * remote.c (remote_start_remote): ... here.
4927 * monitor.c (monitor_open): ... here.
4928
86c3c1fc
AB
49292011-06-23 Andrew Burgess <aburgess@broadcom.com>
4930
4931 * gdbtypes.c (append_composite_type_field_aligned): Fix
4932 calculation of bit position based on alignment.
4933
28010a5d
PA
49342011-06-22 Pedro Alves <pedro@codesourcery.com>
4935
4936 * breakpoint.c (bpstat_stop_status): Call the check_status
4937 breakpoint_ops method.
4938 (print_one_breakpoint_location): Also print the condition for Ada
4939 exception catchpoints.
4940 (allocate_bp_location): New, factored out from
4941 allocate_bp_location.
4942 (allocate_bp_location): Adjust. Call the owner breakpoint's
4943 allocate_location method, if there is one.
4944 (free_bp_location): Call the locations's dtor method, if there is
4945 one.
4946 (init_raw_breakpoint_without_location): New breakpoint_ops
4947 parameter. Use it.
4948 (set_raw_breakpoint_without_location): Adjust.
4949 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4950 (set_raw_breakpoint): Adjust.
4951 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4952 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4953 re_set and check_status methods.
4954 (init_catchpoint): Don't memset, initialize thread, addr_string
4955 and enable_state. Pass the ops down to init_raw_breakpoint.
4956 (install_catchpoint): Rename to ...
4957 (install_breakpoint): ... this, and make extern.
4958 (create_fork_vfork_event_catchpoint): Adjust.
4959 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4960 re_set and check_status methods.
4961 (create_syscall_event_catchpoint): Adjust.
4962 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4963 (masked_watchpoint_breakpoint_ops): Install NULL
4964 allocate_location, re_set and check_status methods.
4965 (catch_exec_command_1): Adjust.
4966 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4967 re_set and check_status methods.
4968 (create_ada_exception_breakpoint): Rename to ...
4969 (init_ada_exception_breakpoint): ... this. Add a struct
4970 breakpoint parameter, and delete the exp_string, cond_string and
4971 cond parameters. Use init_raw_breakpoint, and don't install or
4972 mention the breakpoint yet. Don't clear breakpoint fields that
4973 init_raw_breakpoint already clears.
4974 (re_set_breakpoint): Delete, split into ...
4975 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4976 functions.
4977 (breakpoint_re_set_one): Call the breakpoint's
4978 breakpoint_ops->re_set implementation, if there's one. Adjust.
4979 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4980 (struct bp_location_ops): New type.
4981 (struct bp_location): New field `ops'.
4982 (struct breakpoint_ops): New `allocate_location', `re_set' and
4983 `check_status' fields. Make `breakpoint_hit''s description match
4984 reality.
4985 (init_bp_location): Declare.
4986 (breakpoint_re_set_default): Declare.
4987 (create_ada_exception_breakpoint): Rename to ...
4988 (init_ada_exception_breakpoint): ... this. Add a struct
4989 breakpoint parameter, and delete the exp_string, cond_string and
4990 cond parameters.
4991 (install_breakpoint): Declare.
4992 * ada-lang.c: Include exceptions.h.
4993 <Ada exceptions description>: Update.
4994 (struct ada_catchpoint_location): New type.
4995 (ada_catchpoint_location_dtor): New function.
4996 (ada_catchpoint_location_ops): New global.
4997 (ada_catchpoint): New type.
4998 (create_excep_cond_exprs): New function.
4999 (dtor_exception, allocate_location_exception, re_set_exception)
5000 (should_stop_exception, check_status_exception): New functions.
5001 (print_one_exception, print_mention_exception)
5002 (print_recreate_exception): Adjust.
5003 (dtor_catch_exception, allocate_location_catch_exception)
5004 (re_set_catch_exception, check_status_catch_exception): New
5005 functions.
5006 (catch_exception_breakpoint_ops): Install them.
5007 (dtor_catch_exception_unhandled)
5008 (allocate_location_catch_exception_unhandled)
5009 (re_set_catch_exception_unhandled)
5010 (check_status_catch_exception_unhandled): New functions.
5011 (catch_exception_unhandled_breakpoint_ops): Install them.
5012 (dtor_catch_assert, allocate_location_catch_assert)
5013 (re_set_catch_assert, check_status_catch_assert): New functions.
5014 (catch_assert_breakpoint_ops): Install them.
5015 (ada_exception_catchpoint_p): Delete.
5016 (catch_ada_exception_command_split)
5017 (ada_exception_catchpoint_cond_string): Rename exp_string
5018 parameter to excep_string. Adjust.
5019 (ada_parse_catchpoint_condition): Delete.
5020 (ada_exception_sal): Rename the exp_string parameter to
5021 excep_string. Delete the cond_string and cond parameters.
5022 Adjust.
5023 (ada_decode_exception_location): Rename the exp_string parameter
5024 to excep_string. Delete the cond_string and cond parameters.
5025 Adjust.
5026 (create_ada_exception_catchpoint): New function.
5027 (catch_ada_exception_command, ada_decode_assert_location)
5028 (catch_assert_command): Adjust.
5029 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5030
9ac4176b
PA
50312011-06-22 Pedro Alves <pedro@codesourcery.com>
5032
5033 * ada-lang.c: Include arch-utils.h.
5034 (ada_decode_exception_location): Make static.
5035 (catch_ada_exception_command): Moved here from breakpoint.c.
5036 (ada_decode_assert_location): Make static.
5037 (catch_assert_command): Moved here from breakpoint.c.
5038 (_initialize_ada_lang): Install the exception and assert
5039 catchpoint commands here.
5040 * ada-lang.h (ada_decode_exception_location)
5041 (ada_decode_assert_location): Delete declarations.
5042 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5043 breakpoint.h.
5044 (create_ada_exception_breakpoint): Make extern.
5045 (catch_ada_exception_command, catch_assert_command): Moved to
5046 ada-lang.c.
5047 (add_catch_command): Make extern.
5048 (_initilize_breakpoint): Don't install the exception and assert
5049 catchpoint commands here.
5050 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5051 breakpoint.c
5052 (add_catch_command, create_ada_exception_breakpoint): Declare.
5053
c56053d2
PA
50542011-06-22 Pedro Alves <pedro@codesourcery.com>
5055
5056 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5057 the breakpoint to the breakpoint chain here.
5058 (set_raw_breakpoint_without_location): Add the breakpoint to the
5059 breakpoint chain here.
5060 (init_raw_breakpoint): Adjust comments.
5061 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5062 here.
5063 (init_catchpoint): Don't set the catchpoint's breakpoint number
5064 here.
5065 (install_catchpoint): New function.
5066 (create_fork_vfork_event_catchpoint)
5067 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5068 use install_catchpoint.
5069
d2f3fc74
PA
50702011-06-22 Pedro Alves <pedro@codesourcery.com>
5071
5072 * breakpoint.c (create_catchpoint_without_mention)
5073 (create_catchpoint): Delete.
5074
b4d90040
PA
50752011-06-22 Pedro Alves <pedro@codesourcery.com>
5076
5077 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5078 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5079 reference to exec_pathname.
5080 (struct exec_catchpoint): New type.
5081 (dtor_catch_exec): New function.
5082 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5083 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5084 (catch_exec_command_1): Adjust to use init_catchpoint.
5085 (delete_breakpoint): Remove reference to exec_pathname.
5086
be5c67c1
PA
50872011-06-22 Pedro Alves <pedro@codesourcery.com>
5088
5089 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5090 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5091 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5092 reference to syscalls_to_be_caught.
5093 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5094 NULL `dtor'.
5095 (struct syscall_catchpoint): New type.
5096 (dtor_catch_syscall): New function.
5097 (insert_catch_syscall, remove_catch_syscall)
5098 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5099 (print_recreate_catch_syscall): Adjust.
5100 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5101 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5102 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5103 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5104 (masked_watchpoint_breakpoint_ops)
5105 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5106 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5107 there is one. Remove references to syscalls_to_be_caught.
5108 (catching_syscall_number): Adjust.
5109 * ada-lang.c (catch_exception_breakpoint_ops)
5110 (catch_exception_unhandled_breakpoint_ops)
5111 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5112
e29a4733
PA
51132011-06-22 Pedro Alves <pedro@codesourcery.com>
5114
5115 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5116 field.
5117 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5118 reference to forked_inferior_pid.
5119 (struct fork_catchpoint): New type.
5120 (breakpoint_hit_catch_fork, print_it_catch_fork)
5121 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5122 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5123 (create_fork_vfork_event_catchpoint): Adjust to use
5124 init_catchpoint.
5125
346774a9
PA
51262011-06-22 Pedro Alves <pedro@codesourcery.com>
5127
5128 * breakpoint.c (add_to_breakpoint_chain)
5129 (init_raw_breakpoint_without_location): New functions, factored
5130 out from ...
5131 (set_raw_breakpoint_without_location): ... this one.
5132 (init_raw_breakpoint): New function, factored out from
5133 set_raw_breakpoint and adjusted to use
5134 init_raw_breakpoint_without_location.
5135 (set_raw_breakpoint): Adjust.
5136 (init_catchpoint): New function, factored out from
5137 create_catchpoint_without_mention and adjusted to use
5138 init_raw_breakpoint.
5139 (create_catchpoint_without_mention): Adjust.
5140
c38c4bc5
TT
51412011-06-22 Tom Tromey <tromey@redhat.com>
5142
5143 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5144 argument of 0 specially.
5145
b138ce37
YQ
51462011-06-22 Yao Qi <yao@codesourcery.com>
5147
5148 * infrun.c (handle_inferior_event): Remove write-only local variable
5149 `sw_single_step_trap_p'.
5150
03de6823
TT
51512011-06-20 Tom Tromey <tromey@redhat.com>
5152
5153 * symtab.c (lookup_language_this): End loop if block is NULL.
5154
66a17cb6
TT
51552011-06-17 Tom Tromey <tromey@redhat.com>
5156
5157 * valops.c (value_of_this): Use lookup_language_this.
5158 * symtab.h (lookup_language_this): Declare.
5159 * symtab.c (lookup_language_this): New function.
5160 (lookup_symbol_aux): Use lookup_language_this.
5161 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5162
7518bff5
TT
51632011-06-17 Tom Tromey <tromey@redhat.com>
5164
5165 * value.h (value_of_this): Update.
5166 (value_of_local): Remove.
5167 * valops.c (value_of_this): Rename from value_of_local. Change
5168 parameters.
5169 * p-exp.y (exp): Update.
5170 (variable): Likewise.
5171 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5172
aee28ec6
TT
51732011-06-17 Tom Tromey <tromey@redhat.com>
5174
5175 * valops.c (value_of_local): Complain if NAME is NULL.
5176 * std-operator.def (OP_OBJC_SELF): Remove.
5177 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5178 * objc-exp.y (name_not_typename): Use OP_THIS.
5179 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5180 name for "this".
5181 <OP_OBJC_SELF>: Remove.
5182 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5183
eed8f803
TG
51842011-06-16 Tristan Gingold <gingold@adacore.com>
5185
5186 * python/py-events.h (gdb_py_events): Make it extern.
5187 * python/py-evtregistry.c (gdb_py_events): Declare.
5188
864ac8a7
HZ
51892011-06-16 Hui Zhu <teawater@gmail.com>
5190
5191 * remote.c (remote_trace_set_readonly_regions): Add check for
5192 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5193 output warning.
5194
ef7e8358
UW
51952011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5196
5197 * arm-linux-tdep.c: Include "auxv.h".
5198 (AT_HWCAP): Define.
5199 (ARM_LINUX_SIZEOF_VFP): Define.
5200 (arm_linux_supply_vfp): New function.
5201 (arm_linux_collect_vfp): Likewise.
5202 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5203 (arm_linux_fpa_regset_sections): New variable.
5204 (arm_linux_vfp_regset_sections): Likewise.
5205 (arm_linux_core_read_description): New function.
5206 (arm_linux_init_abi): Install arm_linux_core_read_description and
5207 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5208 appropriate for the architecture.
5209 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5210 (tdesc_arm_with_m): Declare.
5211 (tdesc_arm_with_iwmmxt): Likewise.
5212 (tdesc_arm_with_vfpv2): Likewise.
5213 (tdesc_arm_with_vfpv3): Likewise.
5214 (tdesc_arm_with_neon): Likewise.
5215 * arm-linux-nat.c: Move features/*.c includes ...
5216 * arm-tdep.c: ... here.
5217 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5218 target description data structures ...
5219 * arm-tdep.c (_initialize_arm_tdep): ... here.
5220 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5221 HWCAP_VFPv3D16): Move definitions ...
5222 * arm-linux-tdep.h: ... here.
5223
c2fa21f1
HZ
52242011-06-15 Hui Zhu <teawater@gmail.com>
5225
5226 * remote.c (remote_trace_set_readonly_regions): Add a check for
5227 target_buf_size.
5228
dd707e8e
TT
52292011-06-14 Tom Tromey <tromey@redhat.com>
5230
5231 * coffread.c (coffread_objfile): Rename from current_objfile.
5232 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5233 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5234
86cc0029
TT
52352011-06-14 Tom Tromey <tromey@redhat.com>
5236
5237 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5238 (class_symtab): Remove.
5239 (jv_dynamics_progspace_key): New global.
5240 (jv_per_objfile_free): Reset program space data. Update assert.
5241 Don't clear globals.
5242 (get_dynamics_objfile): Use and set program space data.
5243 (get_java_class_symtab): Use get_dynamics_objfile.
5244 (add_class_symbol): Likewise.
5245 (java_link_class_type): Likewise.
5246 (java_object_type, jv_clear_object_type, set_java_object_type):
5247 Remove.
5248 (get_java_object_type): Update. Don't cache result.
5249 (is_object_type): Don't call set_java_object_type.
5250 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5251 initialize jv_dynamics_progspace_key.
5252
91a81f69
TT
52532011-06-14 Tom Tromey <tromey@redhat.com>
5254
5255 * symtab.h (current_objfile): Don't declare.
5256 * objfiles.h (current_objfile): Don't declare.
5257 * objfiles.c (current_objfile): Remove.
5258 * mdebugread.c (current_objfile): New file-scope global.
5259 * dbxread.c (current_objfile): New file-scope global.
5260 * coffread.c (current_objfile): New file-scope global.
5261
dc7eb48e
PA
52622011-06-13 Pedro Alves <pedro@codesourcery.com>
5263
5264 * top.h (line): Rename to ...
5265 (saved_command_line): ... this.
5266 (linesize): Rename to ...
5267 (saved_command_line_size): ... this.
5268 * top.c (line): Rename to ...
5269 (saved_command_line): ... this.
5270 (linesize): Rename to ...
5271 (saved_command_line_size): ... this.
5272 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5273 * event-top.c (command_line_handler): Adjust.
5274 * main.c (captured_main): Adjust.
5275
0d6c2135
MK
52762011-06-12 Mark Kettenis <kettenis@gnu.org>
5277
5278 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5279 get_frame_func instead of get_frame_pc to determine the code
5280 address used to construct the frame ID.
5281 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5282 (i386_epilogue_frame_this_id): Likewise.
5283 (i386_epilogue_frame_prev_register): New function.
5284 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5285 (i386_stack_tramp_frame_sniffer): Fix coding style.
5286 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5287 (i386_gdbarch_init): Fix comments.
5288
8bbdd3f4
MK
52892011-06-12 Mark Kettenis <kettenis@gnu.org>
5290
5291 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5292 instruction when walking back through the instruction stream.
5293
533a737e
JK
52942011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5295
5296 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5297 fullname parameters order.
5298
44b13c5a
JK
52992011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5300
5301 Code cleanup.
5302 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5303 for fun.
5304 * psymtab.c (map_symbol_filenames_psymtab)
5305 (map_partial_symbol_filenames): Likewise.
5306 * psymtab.h: Include symfile.h.
5307 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5308 * symfile.h (symbol_filename_ftype): New.
5309 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5310 map_symbol_filenames, clarify more the naming in comment.
5311
0b5574da
DE
53122011-06-07 Doug Evans <dje@google.com>
5313
5314 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5315 Look for ../../gdb, for fullname.exp.
0b5574da 5316
5be4dfca
JK
53172011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5318 Pedro Alves <pedro@codesourcery.com>
5319
5320 * cli/cli-cmds.c (shell_escape): Use waitpid.
5321 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5322
316a8b21
TG
53232011-06-07 Tristan Gingold <gingold@adacore.com>
5324
5325 * xcoffread.c (dwarf2_xcoff_names): New variable.
5326 (aix_process_linenos): Add a guard.
5327 (xcoff_symfile_finish): Free dwarf2.
5328 (xcoff_initial_scan): Add dwarf2 support.
5329
3dd5b83d
PA
53302011-06-06 Pedro Alves <pedro@codesourcery.com>
5331
5332 * infcall.c (run_inferior_call): Don't mask async. Instead force
5333 a synchronous wait, if the target can async.
5334
5335 * target.h (struct target_ops): Delete to_async_mask.
5336 (target_async_mask): Delete.
5337 * target.c (update_current_target): Delete references to to_async_mask.
5338 * linux-nat.c (linux_nat_async_mask_value): Delete.
5339 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5340 to linux_nat_async_mask_value.
5341 (linux_nat_async_mask): Delete.
5342 (linux_nat_async, linux_nat_close): Remove references to
5343 linux_nat_async_mask_value.
5344 * record.c (record_async_mask_value): Delete.
5345 (record_async): Remove references to record_async_mask_value.
5346 (record_async_mask): Delete.
5347 (record_can_async_p, record_is_async_p): Remove references to
5348 record_async_mask_value.
5349 (init_record_ops, init_record_core_ops): Remove references to
5350 record_async_mask.
5351 * remote.c (remote_async_mask_value): Delete.
5352 (init_remote_ops): Remove reference to remote_async_mask.
5353 (remote_can_async_p, remote_is_async_p): Remove references to
5354 remote_async_mask_value.
5355 (remote_async): Remove references to remote_async_mask_value.
5356 (remote_async_mask): Delete.
5357
5358 * infrun.c (fetch_inferior_event): Don't claim registers changed
5359 if the current thread is already not executing.
5360
64b9b334
JB
53612011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5362
5363 From Stephen Kitt <steve@sk2.org>
5364 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5365 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5366
325663dc
JB
53672011-06-03 Joel Brobecker <brobecker@adacore.com>
5368
5369 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5370 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5371
8cf64490
TT
53722011-06-03 Tom Tromey <tromey@redhat.com>
5373
5374 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5375 code fields.
5376 * python/py-exitedevent.c (create_exited_event_object): Change
5377 type of 'exit_code'. Optionally add exit_code attribute.
5378 (emit_exited_event): Change type of 'exit_code'.
5379 * python/py-event.h (emit_exited_event): Update.
5380 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5381 * infrun.c (handle_inferior_event): Set exit code fields on
5382 inferior.
5383 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5384 fields.
5385 * inferior.c (exit_inferior_1): Initialize new fields.
5386
8ddd9a20
TT
53872011-06-03 Tom Tromey <tromey@redhat.com>
5388
5389 * dwarf2expr.c (get_signed_type): New function.
5390 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5391
8dfd1e6d
KS
53922011-06-02 Keith Seitz <keiths@redhat.com>
5393
5394 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5395
65fdb766
PA
53962011-06-02 Pedro Alves <pedro@codesourcery.com>
5397
5398 * top.h (simplified_command_loop): Delete declaration.
5399
f4b8c29b
MF
54002011-06-01 Mike Frysinger <vapier@gentoo.org>
5401
5402 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5403 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5404
1706c199
YQ
54052011-06-01 Yao Qi <yao@codesourcery.com>
5406
5407 * objfiles.h (obj_section_addr): Update reference to objfile from
5408 `abfd' to `obfd'.
5409 (obj_section_endaddr): Likewise.
5410
d19cd713 54112011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5412
5413 * MAINTAINERS: Update my email address and affiliation. Also
5414 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5415
e8eb7bc5
KS
54162010-05-31 Keith Seitz <keiths@redhat.com>
5417
5418 PR c++/12750
5419 * linespec.c (get_search_block): New function.
5420 (find_methods): Add FILE_SYMTATB parameter and use it and
5421 get_search_block to pass an appropriate block to
5422 lookup_symbol_in_namespace.
5423 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5424 Check if *ARGPTR starts with a filename first.
5425 If it does, call locate_first_half again to locate the next
5426 "first half" of the linespec.
5427 Pass FILE_SYMTATB to decode_objc and decode_compound.
5428 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5429 (locate_first_half): Stop on the first colon seen.
5430 (decode_compound): Add FILE_SYMTAB parameter.
5431 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5432 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5433 get_search_block with lookup_symbol.
5434 (find_method): Add FILE_SYMTAB parameter and pass it to
5435 find_methods.
5436 (decode_objc): Use get_search_block.
5437
2b1dbab0
KS
54382010-05-31 Keith Seitz <keiths@redhat.com>
5439
5440 PR symtab/12704
5441 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5442 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5443 and CP_ANONYMOUS_NAMESPACE_LEN.
5444 (cp_is_anonymous): Likewise.
5445 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5446 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5447 * dwarf2read.c (namespace_name): Likewise.
5448 (fixup_partial_die): Likewise.
5449 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5450 seen in the input, keep it.
5451
6d549500
PA
54522011-05-30 Pedro Alves <pedro@codesourcery.com>
5453
5454 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5455 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5456 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5457 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5458 * remote.c (_initialize_remote): Register
5459 async_remote_interrupt_twice directly as
5460 sigint_remote_twice_token event.
5461
395bff70
PA
54622011-05-30 Pedro Alves <pedro@codesourcery.com>
5463
5464 * target.h (enum inferior_event_type): Delete INF_ERROR.
5465 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5466
97224164
PA
54672011-05-30 Pedro Alves <pedro@codesourcery.com>
5468
5469 * interps.c (interp_set): Don't cancel continuations.
5470
07e78767
JK
54712011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5472
5473 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5474
fa4cd53f
PA
54752011-05-30 Pedro Alves <pedro@codesourcery.com>
5476
5477 * continuations.h (continuation_ftype): Add `err' parameter.
5478 Document parameters.
5479 (do_all_continuations, do_all_continuations_thread)
5480 (do_all_intermediate_continuations)
5481 (do_all_intermediate_continuations_thread)
5482 (do_all_inferior_continuations): Add `err' parameter.
5483 * continuations.c (do_my_continuations_1, do_my_continuations)
5484 (do_all_inferior_continuations, do_all_continuations_ptid)
5485 (do_all_continuations_thread_callback)
5486 (do_all_continuations_thread, do_all_continuations)
5487 (do_all_intermediate_continuations_thread_callback)
5488 (do_all_intermediate_continuations_thread)
5489 (do_all_intermediate_continuations): Add `err' parameter, and pass
5490 it down all the way to the continuations proper.
5491 * inf-loop.c (inferior_event_handler): If fetching an inferior
5492 event throws an error, don't pop the target, and still call the
5493 continuations, but with `err' set. Adjust all other continuation
5494 calls.
5495 * breakpoint.c (until_break_command_continuation): Add `err'
5496 parameter.
5497 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5498 issue another step if `err' is set.
5499 (struct until_next_continuation_args): New.
5500 (until_next_continuation): Add `err' parameter. Adjust.
5501 (until_next_command): Adjust.
5502 (struct finish_command_continuation_args): Add `thread' field.
5503 (finish_command_continuation): Add `err' parameter. Handle it.
5504 (finish_forward): Adjust.
5505 (attach_command_continuation): Add `err' parameter. Handle it.
5506 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5507 cancel the continuations.
5508 * interps.c (interp_set): Adjust to cancel the continuations.
5509 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5510 continuations rather than discarding.
5511 (free_thread): Don't clear thread inferior resources here.
5512 (delete_thread_1): Do it here instead. And do it before removing
5513 the thread from the threads list. Tag the thread as exited before
5514 clearing thread inferior resources.
5515
c2949be0
JB
55162011-05-30 Joel Brobecker <brobecker@adacore.com>
5517
5518 * infcall.c (call_function_by_hand): Rephrase error message.
5519
619cebe8
PA
55202011-05-27 Pedro Alves <pedro@codesourcery.com>
5521
5522 * defs.h (struct thread_info, struct inferior): Delete forward
5523 declarations.
5524 * breakpoint.h (struct thread_info): New forward declaration.
5525 * observer.sh (struct inferior): New forward declaration.
5526 * python/python-internal.h (struct inferior): New forward
5527 declaration.
5528
be34f849
PA
55292011-05-27 Pedro Alves <pedro@codesourcery.com>
5530
5531 * defs.h (struct continuation, continuation_ftype)
5532 (continuation_free_arg_ftype, add_continuation)
5533 (do_all_continuations, do_all_continuations_thread)
5534 (discard_all_continuations, discard_all_continuations_thread)
5535 (add_intermediate_continuation, do_all_intermediate_continuations)
5536 (do_all_intermediate_continuations_thread)
5537 (discard_all_intermediate_continuations)
5538 (discard_all_intermediate_continuations_thread)
5539 (add_inferior_continuation, do_all_inferior_continuations)
5540 (discard_all_inferior_continuations): Move to ...
5541 * continuations.h: ... this new file.
5542 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5543 infcmd.c, inferior.c, infrun.c, interps.c: Include
5544 continuations.h.
5545
432b4d03
JK
55462011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5547 Doug Evans <dje@google.com>
5548
5549 Fix PR 10970, PR 12702.
5550 * linux-nat.c (linux_lwp_is_zombie): New function.
5551 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5552 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5553
b0f260d6
PA
55542011-05-27 Pedro Alves <pedro@codesourcery.com>
5555
5556 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5557 typedefs.
5558 (add_continuation, add_intermediate_continuation)
5559 (add_inferior_continuation): Use them.
5560 * continuations.c (struct continuation): Use them.
5561 (make_continuation_ftype): Delete.
5562 (make_continuation, add_inferior_continuation, add_continuation)
5563 (add_intermediate_continuation): Use continuation_ftype and
5564 continuation_free_arg_ftype. Rename parameters to shorter names.
5565
af1e9a32
PA
55662011-05-27 Pedro Alves <pedro@codesourcery.com>
5567
5568 * continuations.c (make_continuation): Make it return void.
5569 (do_my_continuations): Rename to ...
5570 (do_my_continuations_1): ... this. Remove old_chain parameter and
5571 adjust.
5572 (do_my_continuations): New.
5573 (discard_my_continuations): Rename to ...
5574 (discard_my_continuations_1): ... this. Remove old_chain
5575 parameter and adjust.
5576 (discard_my_continuations): New.
5577 (add_inferior_continuation): Simplify.
5578 (do_all_inferior_continuations): Reimplement on top
5579 do_my_continuations.
5580 (discard_all_inferior_continuations): Simplify.
5581 (add_continuation): Simplify.
5582 (do_all_continuations_ptid): Simplify.
5583 (discard_all_continuations_thread_callback): Simplify.
5584 (add_intermediate_continuation): Simplify.
5585 (discard_all_intermediate_continuations_thread_callback):
5586 Simplify.
5587
50c0c017
PA
55882011-05-27 Pedro Alves <pedro@codesourcery.com>
5589
5590 * utils.c (struct continuation, add_continuation)
5591 (add_inferior_continuation)
5592 (do_all_inferior_continuations, discard_all_inferior_continuations)
5593 (restore_thread_cleanup, do_all_continuations_ptid)
5594 (do_all_continuations_thread_callback)
5595 (do_all_continuations_thread, do_all_continuations)
5596 (discard_all_continuations_thread_callback)
5597 (discard_all_continuations_thread, discard_all_continuations)
5598 (add_intermediate_continuation)
5599 (do_all_intermediate_continuations_thread_callback)
5600 (do_all_intermediate_continuations_thread)
5601 (do_all_intermediate_continuations)
5602 (discard_all_intermediate_continuations_thread_callback)
5603 (discard_all_intermediate_continuations_thread)
5604 (discard_all_intermediate_continuations): Move to ...
5605 * continuations.c: ... this new file, and adjust to no longer
5606 implement continuations on top of cleanups.
5607 * Makefile.in (SFILES): Add continuations.c.
5608 (COMMON_OBS): Add continuations.o.
5609
d8b34453
PA
56102011-05-26 Pedro Alves <pedro@codesourcery.com>
5611
5612 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5613 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5614 Internal error on invalid values.
5615 * reverse.c: Don't handle EXEC_ERROR.
5616 * mi/mi-main.c: Don't handle EXEC_ERROR.
5617
32231432
PA
56182011-05-26 Pedro Alves <pedro@codesourcery.com>
5619
5620 * record.c: Include event-loop.h, inf-loop.h.
5621 (record_beneath_to_async): New global.
5622 (tmp_to_async): New global.
5623 (record_async_inferior_event_token): New global.
5624 (record_open_1): Don't error out if async is enabled.
5625 (record_open): Handle to_async. Create an async event source in
5626 the event loop.
5627 (record_close): Delete the async event source.
5628 (record_resumed): New global.
5629 (record_execution_dir): New global.
5630 (record_resume, record_core_resume): Set them. Register the
5631 target on the event loop.
5632 (record_wait): Rename to ...
5633 (record_wait_1): ... this. Add more debug output. Handle
5634 TARGET_WNOHANG, and the target beneath returning
5635 TARGET_WAITKIND_IGNORE.
5636 (record_wait): Reimplement on top of record_wait_1.
5637 (record_async_mask_value): New global.
5638 (record_async, record_async_mask, record_can_async_p)
5639 (record_is_async_p, record_execution_direction): New functions.
5640 (init_record_ops, init_record_core_ops): Install new methods.
5641 * infrun.c (fetch_inferior_event): Temporarily switch the global
5642 execution direction to the direction the target was going.
5643 (execution_direction): Change type to int.
5644 * target.c (default_execution_direction): New function.
5645 (update_current_target): Inherit and de_fault
5646 to_execution_direction.
5647 * target.h (struct target_ops) <to_execution_direction>: New
5648 field.
5649 (target_execution_direction): New macro.
5650 * inferior.h (execution_direction): Change type to int.
5651
949dc678
PA
56522011-05-26 Pedro Alves <pedro@codesourcery.com>
5653
5654 * infcall.c (call_function_by_hand): Don't allow calling functions
5655 in reverse execution mode.
5656
c13bd2b5
PA
56572011-05-26 Pedro Alves <pedro@codesourcery.com>
5658
5659 * infcmd.c (finish_command): Allow async finish in reverse.
5660
6938fd34
YQ
56612011-05-26 Yao Qi <yao@codesourcery.com>
5662
5663 * gdb_thread_db.h: Delete. Move to ...
5664 * common/gdb_thread_db.h: ... here.
5665
9da8c2a0
PA
56662011-05-26 Pedro Alves <pedro@codesourcery.com>
5667
5668 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5669 function's entry point instead of a manually managed momentary
5670 breakpoint, and only ever issue one proceed call.
5671 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5672 doing a reverse-finish, switch to stepi mode, to do another step.
5673 (insert_step_resume_breakpoint_at_sal): Make public.
5674 (normal_stop): No need to save function value return registers if
5675 going reverse.
5676 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5677
2c03e5be
PA
56782011-05-26 Pedro Alves <pedro@codesourcery.com>
5679
5680 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5681 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5682 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5683 at the end.
5684 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5685 step-resume breakpoints.
5686 (print_it_typical): Handle bp_hp_step_resume.
5687 (bpstat_what): Ditto.
5688 (bptype_string): Ditto.
5689 (print_one_breakpoint_location): Ditto.
5690 (allocate_bp_location): Ditto.
5691 (mention): Ditto.
5692 (breakpoint_re_set_one): Ditto.
5693 * infrun.c (handle_inferior_event): Adjust. Split
5694 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5695 BPSTAT_WHAT_HP_STEP_RESUME.
5696 (insert_step_resume_breakpoint_at_sal): Rename to ...
5697 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5698 parameter. Handle it.
5699 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5700 insert_step_resume_breakpoint_at_sal_1.
5701 (insert_step_resume_breakpoint_at_frame): Rename to ...
5702 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5703 set a high-priority step-resume breakpoint.
5704 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5705 (insert_step_resume_breakpoint_at_caller): Ditto.
5706
51be5b68
PA
57072011-05-26 Pedro Alves <pedro@codesourcery.com>
5708
5709 * breakpoint.c (iterate_over_related_breakpoints): New.
5710 (do_map_delete_breakpoint): New.
5711 (delete_command): Pass do_map_delete_breakpoint to
5712 map_breakpoint_numbers.
5713 (do_disable_breakpoint): New.
5714 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5715 breakpoints.
5716 (do_enable_breakpoint): Rename to ...
5717 (enable_breakpoint_disp): ... this.
5718 (enable_breakpoint): Adjust.
5719 (do_enable_breakpoint): New.
5720 (enable_once_breakpoint): Delete.
5721 (do_map_enable_breakpoint): New.
5722 (do_map_enable_once_breakpoint): New.
5723 (enable_once_command, enable_delete_command)
5724 (delete_trace_command): Iterate over the breakpoint's related
5725 breakpoints.
5726
4a1be8d2
PA
57272011-05-26 Pedro Alves <pedro@codesourcery.com>
5728
5729 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5730 for ALPHA_ZERO_REGNUM.
5731 (alpha_supply_int_regs): Explicitly supply zero as the value for
5732 ALPHA_ZERO_REGNUM in the register cache.
5733 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5734
59d70315
YQ
57352011-05-26 Yao Qi <yao@codesourcery.com>
5736
5737 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5738
251d32d9
TG
57392011-05-26 Tristan Gingold <gingold@adacore.com>
5740
5741 * symfile.h (struct dwarf2_section_names): New type.
5742 (struct dwarf2_debug_sections): New type.
5743 (dwarf2_has_info): Add parameter.
5744 * dwarf2read.c (dwarf2_elf_names): New variable.
5745 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5746 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5747 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5748 (dwarf2_has_info): Add names parameter. Pass names
5749 to dwarf2_locate_sections.
5750 (section_is_p): Rewrite using the names parameter.
5751 (dwarf2_locate_sections): Use section names from the names parameter.
5752 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5753 * elfread.c (read_psyms): Ditto.
5754 * machoread.c (macho_symfile_read): Ditto.
5755
652c71b4
AS
57562011-05-25 Andreas Schwab <schwab@redhat.com>
5757
5758 PR gdb/8677
5759 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5760
f17170e5
KS
57612011-05-24 Keith Seitz <keiths@redhat.com>
5762
5763 PR breakpoint/12803
5764 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5765 (decode_compound): Unconditionally call keep_name_info.
5766
cdac0397
PA
57672011-05-24 Pedro Alves <pedro@codesourcery.com>
5768
5769 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5770 scope, clear its command list.
5771 (map_breakpoint_numbers): Don't walk the related breakpoints list
5772 of each breakpoint.
5773
91d4fe3f
TT
57742011-05-24 Tom Tromey <tromey@redhat.com>
5775
5776 * MAINTAINERS: Move Jim Blandy to past maintainers.
5777
3017a003
TG
57782011-05-24 Tristan Gingold <gingold@adacore.com>
5779
5780 * symfile.h (enum dwarf2_section_enum): New type.
5781 (dwarf2_get_section_info): New prototype.
5782 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5783 section_name by sect. Use a switch to select the info.
5784 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5785 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5786
c91c8c16
PA
57872011-05-24 Pedro Alves <pedro@codesourcery.com>
5788
5789 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5790 shared library event breakpoint if there's no execution.
5791
77bc418a
TJB
57922011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5793
5794 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5795 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5796
c50491a7
TT
57972011-05-23 Tom Tromey <tromey@redhat.com>
5798
5799 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5800 NULL.
5801
6d64e6d4
DE
58022011-05-23 Doug Evans <dje@google.com>
5803
5804 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5805 entry for RuntimeError to doc string.
5806
2067c8d4
JG
58072011-05-23 Jerome Guitton <guitton@adacore.com>
5808
5809 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5810 sequence for probing loops.
5811
b136cd05
PA
58122011-05-23 Pedro Alves <pedro@codesourcery.com>
5813
5814 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5815 comment.
5816
22e74ef9
MK
58172011-05-21 Mark Kettenis <kettenis@gnu.org>
5818
5819 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5820 zero as the value for %g0 in the register cache.
5821 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5822 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5823
842951eb
PA
58242011-05-20 Pedro Alves <pedro@codesourcery.com>
5825
5826 * infrun.c (proceed): Set previous_inferior_ptid here.
5827 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5828 inferior_ptid, not null_ptid.
5829 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5830 (fetch_inferior_event): Nor here.
5831
46cf51e6
PA
58322011-05-20 Pedro Alves <pedro@codesourcery.com>
5833
5834 * inf-loop.c (inferior_event_handler): Only output a message if
5835 verbose.
5836
29ef4c46
LM
58372011-05-20 Luis Machado <lgustavo@codesourcery.com>
5838
5839 * MAINTAINERS: Update my e-mail address.
5840
f148b27e
PA
58412011-05-20 Pedro Alves <pedro@codesourcery.com>
5842
5843 * infrun.c (proceed): Switch the inferior event loop to
5844 INF_EXEC_COMPLETE if the target refused to resume from a
5845 vfork/fork.
5846
09cee04b
PA
58472011-05-20 Pedro Alves <pedro@codesourcery.com>
5848
5849 * infcmd.c: Include "inf-loop.h".
5850 (step_once): When stepping into an inline subroutine, pretend the
5851 target has run. If the target can async, switch the inferior
5852 event loop to INF_EXEC_COMPLETE.
5853 * inferior.h (user_visible_resume_ptid): Declare.
5854 * infrun.c (user_visible_resume_ptid): New function, factored out
5855 from `resume'.
5856 (resume): Use it.
5857 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5858 that the current thread is running. Merge async and sync
5859 branches.
5860
751b8ce1
PA
58612011-05-20 Pedro Alves <pedro@codesourcery.com>
5862
5863 * infcmd.c (step_1): Simplify synchronous case.
5864
e93a69ed
PA
58652011-05-20 Pedro Alves <pedro@codesourcery.com>
5866
5867 * tracepoint.c: Include exceptions.h.
5868 (TFILE_PID): Move higher in file.
5869 (tfile_open): Delay pushing the tfile target until we're assured
5870 the tfile header is present in the file. Wrap reading the initial
5871 newline-terminated lines in TRY_CATCH. Pop the target if the
5872 initial setup failed. Add the tfile's thread immediately
5873 aftwards, before any non-essential setup. Don't skip
5874 post_create_inferior if there are no traceframes present in the
5875 file.
5876 (tfile_close): Remove redundant check for null before xfree call.
5877 (tfile_thread_alive): New function.
5878 (init_tfile_ops): Register it as to_thread_alive callback.
5879
6823e2b1
PA
58802011-05-20 Pedro Alves <pedro@codesourcery.com>
5881
5882 * tracepoint.c (tfile_open): Delete #if 0'd code.
5883
b3c8eb43
JK
58842011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5885
5886 Fix -readnow for -gdwarf-4 unused type units.
5887 * dwarf2read.c (struct signatured_type): Remove the field offset.
5888 (create_signatured_type_table_from_index): Remove its initialization.
5889 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5890 instead. Add a complaint call.
5891 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5892 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5893 (lookup_signatured_type_at_offset, read_signatured_type)
5894 (write_one_signatured_type): Update the field for per_cu.
5895
310afc76
TT
58962011-05-19 Tom Tromey <tromey@redhat.com>
5897
5898 * python/py-inferior.c (python_inferior_exit): Use
5899 target_gdbarch.
5900 (python_on_resume): Likewise.
5901
cf6c5ffb
TT
59022011-05-19 Matt Rice <ratmice@gmail.com>
5903
5904 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5905
fb80a3c5
HZ
59062011-05-19 Hui Zhu <teawater@gmail.com>
5907
5908 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5909
3672b1be
HZ
59102011-05-19 Hui Zhu <teawater@gmail.com>
5911
5912 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5913
ff355380
TT
59142011-05-18 Tom Tromey <tromey@redhat.com>
5915
5916 * dwarf2read.c (dwarf2_add_field): Constify.
5917 * value.c (value_static_field): Constify.
5918 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5919 Now const.
5920 * ax-gdb.c (gen_static_field): Constify
5921
ed731959
JK
59222011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5923
5924 * linux-nat.c (kill_callback): Use SIGKILL first.
5925
967cff16
JB
59262011-05-18 Joel Brobecker <brobecker@adacore.com>
5927
5928 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5929
1d06ead6
TT
59302011-05-18 Tom Tromey <tromey@redhat.com>
5931
5932 * value.c (value_fn_field): Constify.
5933 * symtab.c (gdb_mangle_name): Constify.
5934 * stabsread.c (update_method_name_from_physname): Make 'physname'
5935 argument const.
5936 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5937 const. Use explicit fputc_filtered loop.
5938 (pascal_type_print_base): Constify.
5939 * p-lang.h (pascal_type_print_method_args): Update.
5940 * linespec.c (add_matching_methods): Constify.
5941 (add_constructors): Likewise.
5942 * jv-typeprint.c (java_type_print_base): Constify.
5943 * gdbtypes.h (struct cplus_struct_type)
5944 <fn_fieldlist.fn_field.physname>: Now const.
5945 * dwarf2read.c (compute_delayed_physnames): Constify.
5946 (dwarf2_add_member_fn): Likewise.
5947 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5948
0d9a9a5f
PA
59492011-05-18 Pedro Alves <pedro@codesourcery.com>
5950
5951 * infrun.c (resume): Mention which is the current thread, and its
5952 current PC in debug output.
5953 (prepare_to_proceed): Mention the thread switching in debug
5954 output.
5955
05386e9e
TT
59562011-05-18 Tom Tromey <tromey@redhat.com>
5957
5958 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5959 path check. Use xmalloc and cleanups.
5960 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5961
ee86786c
TT
59622011-05-17 Tom Tromey <tromey@redhat.com>
5963
5964 * cp-valprint.c (cp_print_value_fields): Catch errors from
5965 value_static_field.
5966
9ff3b74f
TT
59672011-05-17 Tom Tromey <tromey@redhat.com>
5968
5969 * dwarf2read.c (dwarf2_get_die_type): Call
5970 get_die_type_at_offset.
5971 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5972 get_base_type function.
5973
cd3da28e
PA
59742011-05-17 Tomas Martinec <fyzmat@gmail.com>
5975
5976 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5977 trap_expected.
5978
fd20d931
DE
59792011-05-16 Doug Evans <dje@google.com>
5980
5981 * python/py-auto-load.c (source_section_scripts): Mention objfile
5982 name in warning.
5983
75fc9810
DE
59842011-05-15 Doug Evans <dje@google.com>
5985
290351b8
DE
5986 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5987 (try_thread_db_load_from_pdir): Call it. If unable to find
5988 libthread_db in directory of libpthread, see if we're looking at
5989 the separate-debug-info copy.
5990
75fc9810
DE
5991 * python/py-autoload.c (print_script): Print "Missing" instead of
5992 "No" for missing scripts.
5993 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5994
9f7bc587
DE
59952011-05-13 Doug Evans <dje@google.com>
5996
5997 * ui-file.c (stdio_file_write_async_safe): Add comment.
5998
093cee7d
HZ
59992011-05-14 Hui Zhu <teawater@gmail.com>
6000
6001 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6002
dbaefcf7
DE
60032011-05-13 Doug Evans <dje@google.com>
6004
98a5dd13
DE
6005 Support $pdir and $sdir in libthread-db-search-path.
6006 * NEWS: Mention $sdir,$pdir.
6007 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6008 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6009 (try_thread_db_load_from_sdir): New function.
6010 (try_thread_db_load_from_dir): New function.
6011 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6012 system directories if search of libthread-db-search-path fails,
6013 that is now done via $sdir.
6014 (has_libpthread): New function.
6015 (thread_db_load): Remove search for libthread_db in directory of
6016 libpthread, that is now done via $pdir.
6017
dbaefcf7
DE
6018 * NEWS: Mention "info auto-load-scripts".
6019 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6020 script_not_found_warning_printed.
6021 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6022 all callers updated. Initialize script_not_found_warning_printed.
6023 (get_auto_load_pspace_data_for_loading): New function.
6024 (maybe_add_script): New function.
6025 (source_section_scripts): Simplify. Only print one warning regardless
6026 of the number of auto-load scripts not found.
6027 (clear_section_scripts): Clear script_not_found_warning_printed.
6028 (auto_load_objfile_script): Record script in hash table.
6029 (count_matching_scripts): New function.
6030 (maybe_print_script): Renamed from maybe_print_section_script, all
6031 callers updated. Rewrite to use ui_out_*.
6032 (info_auto_load_scripts): Renamed from
6033 maintenance_print_section_scripts, all callers updated.
6034 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6035 renamed as "info auto-load-scripts".
6036
9930639c
TT
60372011-05-13 Tom Tromey <tromey@redhat.com>
6038
6039 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6040 (read_sleb128): Likewise.
6041
06826322
TT
60422011-05-13 Tom Tromey <tromey@redhat.com>
6043
6044 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6045 offset display.
6046
01124a23
DE
60472011-05-13 Doug Evans <dje@google.com>
6048
6049 * linux-nat.c (debug_linux_nat_async): Delete.
6050 Replace all references to use debug_linux_nat instead.
6051 (show_debug_linux_nat_async): Delete.
6052 (sigchld_handler): Call ui_file_write_async_safe instead of
6053 fprintf_unfiltered.
6054 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6055 * ui-file.c (struct ui_file): New member to_write_async_safe.
6056 (null_file_write_async_safe): New function.
6057 (ui_file_write_async_safe): New function.
6058 (set_ui_file_write_async_safe): New function.
6059 (ui_file_new): Initialize to_write_async_safe.
6060 (stdio_file_write_async_safe): New function.
6061 (struct stdio_file): New member fd.
6062 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6063 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6064 fileno.
01124a23
DE
6065 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6066 (set_ui_file_write_async_safe): Declare.
6067 (ui_file_write_async_safe): Declare.
6068
72fc29ff
TT
60692011-05-13 Tom Tromey <tromey@redhat.com>
6070
6071 * utils.c (do_value_free): New function.
6072 (make_cleanup_value_free): Likewise.
6073 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6074 freeing correctly.
6075 (dwarf2_loc_desc_needs_frame): Call
6076 make_cleanup_value_free_to_mark.
6077 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6078 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6079 value_free_to_mark.
6080 (new_dwarf_expr_context): Don't call value_mark.
6081 * dwarf2-frame.c (execute_stack_op): Call
6082 make_cleanup_value_free_to_mark.
6083 * defs.h (make_cleanup_value_free): Declare.
6084
028d0ed5
TJB
60852011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6086
6087 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6088 prepare_execute_command.
6089 * top.c (prepare_execute_command): Return cleanup.
6090 (execute_command): Use cleanup from prepare_execute_command.
6091 * top.h (prepare_execute_command): Change prototype to return
6092 cleanup.
6093 * defs.h (struct value): Add opaque declaration.
6094 (make_cleanup_value_free_to_mark): Add prototype.
6095 * utils.c (do_value_free_to_mark): New function.
6096 (make_cleanup_value_free_to_mark): Likewise.
6097
b087e0ed
TT
60982011-05-12 Tom Tromey <tromey@redhat.com>
6099
6100 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6101 cast left-hand-side to unsigned.
6102
8a9b8146
TT
61032011-05-12 Tom Tromey <tromey@redhat.com>
6104
6105 PR gdb/12617:
6106 * value.h (value_from_contents): Declare.
6107 * value.c (value_from_contents): New function.
6108 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6109 (dwarf2_get_die_type): New function.
6110 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6111 (allocate_piece_closure): Acquire reference to values.
6112 (read_pieced_value): Update for value-based expressions.
6113 (write_pieced_value): Likewise.
6114 (free_pieced_value_closure): Call value_free as needed.
6115 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6116 Update for value-based expressions.
6117 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6118 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6119 <get_base_type>: New field.
6120 (struct dwarf_expr_piece) <v.value>: Change type.
6121 <v.regno>: New field.
6122 (struct dwarf_expr_context) <mark>: New field.
6123 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6124 (dwarf_expr_pop, dwarf_expr_push): Remove.
6125 (dwarf_expr_push_address): Declare.
6126 * dwarf2expr.c (dwarf_arch_cookie): New global.
6127 (struct dwarf_gdbarch_types): New.
6128 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6129 functions.
6130 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6131 static.
6132 (dwarf_expr_push_address): New function.
6133 (dwarf_expr_pop): Now static.
6134 (dwarf_expr_fetch): Change return type.
6135 (dwarf_require_integral): New function.
6136 (dwarf_expr_fetch): Simplify.
6137 (add_piece): Update.
6138 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6139 functions.
6140 (execute_stack_op) <sign_ext>: Remove.
6141 Use values for DWARF stack.
6142 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6143 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6144 New cases.
6145 (_initialize_dwarf2expr): New function.
6146 (add_piece): Update.
6147 (new_dwarf_expr_context): Set new field.
6148 (free_dwarf_expr_context): Call value_free_to_mark.
6149 * dwarf2-frame.c (no_base_type): New function.
6150 (execute_stack_op): Set get_base_type field. Update.
6151
e8d28ef4
TT
61522011-05-12 Tom Tromey <tromey@redhat.com>
6153
6154 * dwarf2read.c (read_common_block): Fix formatting.
6155
d248b706
KY
61562011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6157
6158 * breakpoint.c (disable_breakpoint): Disable all locations
6159 associated with a tracepoint on target if a trace experiment is
6160 running.
6161 (disable_command): Disable a specific tracepoint location on target if
6162 a trace experiment is running.
6163 (do_enable_breakpoint): Enable all locations associated with a
6164 tracepoint on target if a trace experiment is running.
6165 (enable_command) Enable a specific tracepoint location on target if a
6166 trace experiment is running.
6167 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6168 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6169 to_disable_tracepoint.
6170 * target.h: Add declaration of struct bp_location.
6171 (struct target_ops): Add new functions
6172 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6173 to_disable_tracepoint to target operations.
6174 (target_supports_enable_disable_tracepoint): New macro.
6175 (target_enable_tracepoint): New macro.
6176 (target_disable_tracepoint): New macro.
6177 * remote.c (struct remote_state): Add new field.
6178 (remote_enable_disable_tracepoint_feature): New.
6179 (remote_protocol_features): Add new entry.
6180 (remote_supports_enable_disable_tracepoint): New.
6181 (remote_enable_tracepoint): New.
6182 (remote_disable_tracepoint): New.
6183 (init_remote_ops): Add remote_enable_tracepoint,
6184 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6185 to remote operations.
6186 * tracepoint.c (start_tracing): Allow tracing to start without any
6187 tracepoints enabled with just a warning if they can be re-enabled
6188 later.
6189 * NEWS: Add news item for the new behaviour of the enable and disable
6190 GDB commands when applied to tracepoints.
6191 Add news items for the new remote packets QTEnable and QTDisable.
6192
cc88a640
JK
61932011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * config.in: Regenerate.
6196 * configure: Regenerate.
6197 * configure.ac <--with-system-readline> (for readline_echoing_p):
6198 Remove the test.
6199 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6200 (tui_old_rl_echoing_p): ... here.
6201 (tui_setup_io): Rename extern declaration readline_echoing_p to
6202 _rl_echoing_p. Adjust assignments for the both renames.
6203
1f84b619
TJB
62042011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6205
6206 * symtab.c (lookup_symtab): Run cleanup before returning.
6207
74ac6d43
TT
62082011-05-11 Tom Tromey <tromey@redhat.com>
6209
6210 * dwarf2read.c (handle_data_member_location): New function.
6211 (dwarf2_add_field): Use it.
6212 (read_common_block): Likewise.
6213
5488dafb
JK
62142011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6215
6216 Make addrs->SECTINDEX always defined.
6217 * symfile.c (relative_addr_info_to_section_offsets): Check for
6218 SECTINDEX -1, not for zero ADDR.
6219 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6220 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6221 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6222 on its validity.
6223
84e578fb
DE
62242011-05-10 Doug Evans <dje@google.com>
6225
2471d008
DE
6226 * linux-thread-db.c: Whitespace cleanup.
6227 (try_thread_db_load_1): Fix comment.
6228
84e578fb
DE
6229 * linux-thread-db.c (set_libthread_db_search_path): New function.
6230 (_initialize_thread_db): Add setter for libthread-db-search-path.
6231
673c2bbe
DE
62322011-05-09 Doug Evans <dje@google.com>
6233
478aac75
DE
6234 * NEWS: Mention --with-iconv-bin.
6235 * configure.ac: New option --with-iconv-bin.
6236 * configure: Regenerate.
6237 * config.in: Regenerate.
6238 * defs.h (relocate_gdb_directory): Declare.
6239 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6240 removed progname parameter, and exported. All callers updated.
6241 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6242
673c2bbe
DE
6243 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6244 adding missing call to restore_child_signals_mask.
6245
e4c8541f
PA
62462011-05-09 Pedro Alves <pedro@codesourcery.com>
6247
6248 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6249 parameter.
6250 * infrun.c (proceed, start_remote): Adjust.
6251 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6252 and adjust to not handle it.
6253 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6254 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6255 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6256 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6257 * windows-nat.c (do_initial_windows_stuff): Adjust.
6258 * infcmd.c (attach_command): Adjust.
6259 (notice_new_inferior): Adjust.
6260
a536c6d7
UW
62612011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6262
6263 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6264 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6265 * spu-tdep.c (op_selb): Use correct value.
6266
7845b013
UW
62672011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6268
6269 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6270 "parent" parameter to symbol_file_add_from_bfd call.
6271
9c06b0b4
TJB
62722011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6273 Thiago Jung Bauermann <bauerman@br.ibm.com>
6274
6275 Implement support for PowerPC BookE masked watchpoints.
6276 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6277 section.
6278 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6279 method. Initialize to NULL in all existing breakpoint_ops instances.
6280 (struct breakpoint) <hw_wp_mask>: New field.
6281 * breakpoint.c (is_masked_watchpoint): Add prototype.
6282 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6283 breakpoint's breakpoint_ops.works_in_software_mode if available.
6284 (watchpoints_triggered): Handle the case of a hardware masked
6285 watchpoint trigger.
6286 (watchpoint_check): Likewise.
6287 (works_in_software_mode_watchpoint): New function.
6288 (insert_masked_watchpoint, remove_masked_watchpoint)
6289 (resources_needed_masked_watchpoint)
6290 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6291 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6292 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6293 functions.
6294 (masked_watchpoint_breakpoint_ops): New structure.
6295 (watch_command_1): Check for the existence of the `mask' parameter.
6296 Set b->ops according to the type of hardware watchpoint being created.
6297 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6298 (ppc_linux_remove_mask_watchpoint)
6299 (ppc_linux_masked_watch_num_registers): New functions.
6300 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6301 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6302 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6303 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6304 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6305 (target_masked_watch_num_registers): New functions.
6306 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6307 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6308 methods.
6309 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6310 (target_masked_watch_num_registers): Add prototypes.
6311
8be455d7
JK
63122011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6313
6314 PR 12573
6315 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6316 (producer_is_gcc_ge_4_0): New function.
6317 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6318 symtab->language code.
6319 (var_decode_location): Set cu->has_loclist.
6320 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6321 skip. Intialize force_skip from locations_valid. Move the prologue
6322 skipping code into two passes.
6323 * symtab.h (struct symtab): Make the primary field a bitfield. New
6324 field locations_valid.
6325
d8228535
JK
63262011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6329 (classify_inner_name): Call cp_lookup_nested_type with
6330 yylval.tsym.type.
6331 * cp-namespace.c (cp_lookup_nested_type): New variable
6332 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6333 type_name_no_tag_or_error with saved_parent_type.
6334 * dwarf2read.c (load_partial_dies): Read in any children of
6335 DW_TAG_typedef with complaint in such case.
6336 * gdbtypes.c (type_name_no_tag_or_error): New function.
6337 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6338 * valops.c (destructor_name_p): New comment for parameter type. Remove
6339 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6340 * value.h (destructor_name_p): Remove type const.
6341
1976171a
JK
63422011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 * symtab.c (compare_symbol_name): New function.
6345 (completion_list_add_name, expand_partial_symbol_name): Call it,
6346 remove the variable ncmp.
6347 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6348 gdb_assert it.
6349
a9634178
TJB
63502011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6351
6352 Demote to sw watchpoint only in update_watchpoint.
6353 * breakpoint.c (update_watchpoint): Change between software and
6354 hardware watchpoint for all kinds of watchpoints, not just
6355 read/write ones. Determine b->exact value here instead of
6356 in watch_command_1. Error out if there are not enough resources
6357 for a read or access hardware watchpoint.
6358 (watch_command_1): Remove logic of checking whether there are
6359 enough resources available, since update_watchpoint will do that
6360 work now. Don't set b->exact here. Catch exceptions thrown by
6361 update_watchpoint and delete the watchpoint.
6362 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6363 Use target_exact_watchpoints instead.
6364 (delete_breakpoint): Notify observers only if deleted watchpoint
6365 has a breakpoint number assigned to it.
6366
4c67c798
JJ
63672011-05-05 Janis Johnson <janisjo@codesourcery.com>
6368
6369 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6370
a3fcb948
JG
63712011-05-05 Jerome Guitton <guitton@adacore.com>
6372
6373 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6374 New functions.
6375 (i386_stack_tramp_frame_unwind): New static global.
6376 (i386_match_pattern): New function, extracted from i386_match_insn.
6377 (i386_match_insn): Use i386_match_pattern.
6378 (i386_match_insn_block): New function.
6379 (i386_tramp_chain_in_reg_insns)
6380 (i386_tramp_chain_on_stack_insns): New static variables.
6381 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6382 of unwinders.
6383
4d393d60
JM
63842011-05-04 Joseph Myers <joseph@codesourcery.com>
6385
6386 * configure.host (xscale*): Don't handle target.
6387 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6388 handle targets.
6389
f70bd40b
YQ
63902011-05-04 Yao Qi <yao@codesourcery.com>
6391
6392 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6393
dd3295ee
JB
63942011-05-03 Joel Brobecker <brobecker@adacore.com>
6395
6396 Revert:
6397 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6398 | * elfread.c (elf_symtab_read): Stop memory leak.
6399
90375a0e
PM
64002011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6401
6402 * nto-tdep.c (nto_target): Replace deprecated call to
6403 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6404
d07205c2
JK
64052011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6406
6407 Fix false GCC warning.
6408 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6409
1e718ff1
TJB
64102011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6411
6412 * breakpoint.c (update_watchpoint): Move code to change
6413 the enable state of breakpoint from here ...
6414 (do_enable_breakpoint): ... to here.
6415
35bef4fd
TT
64162011-04-26 Andrew Gontarek <andrewg@cray.com>
6417
78290264
PP
6418 * valprint.c (val_print_array_elements): Fixed poor performance
6419 of printing very large arrays with repeat_count_threshold set
6420 to unlimited. New comment.
35bef4fd 6421
38a714bb
TT
64222011-04-29 Tom Tromey <tromey@redhat.com>
6423
6424 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6425 (mi_parse): Likewise.
6426 * breakpoint.c (break_range_command): Use sizeof char*, not
6427 char**.
6428 (create_breakpoint): Likewise.
6429 (parse_breakpoint_sals): Likewise.
6430
eb73ad13
PA
64312011-04-29 Pedro Alves <pedro@codesourcery.com>
6432
6433 * linux-nat.c (linux_child_remove_fork_catchpoint)
6434 (linux_child_remove_vfork_catchpoint)
6435 (linux_child_remove_exec_catchpoint): New functions.
6436 (linux_target_install_ops): Install them.
6437
d65aec65
PM
64382011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6439
6440 PR mi/12531
6441
6442 * varobj.c (install_default_visualizer): Do not install a
6443 visualizer if the varobj is CPLUS_FAKE_CHILD.
6444 (construct_visualizer): Likewise.
6445
165195f4
JK
64462011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6447
6448 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6449 case insensitive comparison.
6450
30852783
UW
64512011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6452
6453 * infrun.c (proceed): Revert previous change.
6454 (resume): Instead, handle the case of signal delivery while stepping
6455 off a breakpoint location here, and only if software single-stepping
6456 is used. Handle nested signals.
6457
7ff120b4
YQ
64582011-04-28 Yao Qi <yao@codesourcery.com>
6459
6460 * arm-tdep.c (copy_unmodified): Rename to ...
6461 (arm_copy_unmodified): .. this. New.
6462 (copy_preload): Move common part to ...
6463 (install_preload): .. this. New.
6464 (arm_copy_preload): New.
6465 (copy_preload_reg): Move common part to ...
6466 (install_preload_reg): ... this. New.
6467 (arm_copy_preload_reg): New.
6468 (copy_b_bl_blx): Move common part to ...
6469 (install_b_bl_blx): .. this. New.
6470 (arm_copy_b_bl_blx): New.
6471 (copy_bx_blx_reg): Move common part to ...
6472 (install_bx_blx_reg): ... this. New.
6473 (arm_copy_bx_blx_reg): New.
6474 (copy_alu_reg): Move common part to ...
6475 (install_alu_reg): ... this. New.
6476 (arm_copy_alu_reg): New.
6477 (copy_alu_shifted_reg): Move common part to ...
6478 (install_alu_shifted_reg): ... this. New.
6479 (copy_ldr_str_ldrb_strb): Move common part to ...
6480 (install_ldr_str_ldrb_strb): ... this. New.
6481 (arm_copy_ldr_str_ldrb_strb): New.
6482 (copy_copro_load_store): Move some common part to ...
6483 (install_copy_copro_load_store): ... this. New.
6484 (arm_copy_copro_load_store): New.
6485 (copy_svc): Delete.
6486 (arm_copy_svc): Renamed from copy_svc.
6487 (copy_undef): Delete.
6488 (arm_copy_undef): Renamed from copy_undef.
6489 (decode_ext_reg_ld_st): Delete.
6490 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6491 (decode_svc_copro): Delete.
6492 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6493 (copy_copro_load_store, copy_alu_imm): update callers.
6494 (copy_extra_ld_st, copy_block_xfer): Likewise.
6495 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6496 (decode_miscellaneous, decode_dp_misc): Likewise.
6497 (decode_ld_st_word_ubyte, decode_media): Likewise.
6498 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6499 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6500 (decode_unconditional, decode_miscellaneous): Likewise.
6501 (decode_media, decode_b_bl_ldmstm): Likewise.
6502 (arm_process_displaced_insn): Likewise..
6503 (decode_misc_memhint_neon): Delete.
6504 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6505 (decode_miscellaneous): Delete.
6506 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6507 (decode_dp_misc): Delete.
6508 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6509 (decode_ld_st_word_ubyte): Delete.
6510 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6511 (decode_media): Delete.
6512 (arm_decode_media): Renamed from decode_media.
6513 (decode_b_bl_ldmstm): Delete.
6514 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6515 (decode_ext_reg_ld_st): Delete.
6516 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6517 (decode_unconditional): Delete.
6518 (arm_decode_unconditional): Renamed from decode_unconditional.
6519
559a7a62
JK
65202011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 Case insensitive lookups implementation.
6523 * dwarf2read.c: Include ctype.h.
6524 (struct mapped_index): New field version.
6525 (mapped_index_string_hash): New parameter index_version. New comment
6526 for it. Call tolower appropriately.
6527 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6528 Choose the right index version for mapped_index_string_hash.
6529 (dwarf2_read_index): Support also the index version 5. Initialize the
6530 new struct mapped_index field version.
6531 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6532 (find_slot): Explain the version needs. Pass INT_MAX for the new
6533 parameter.
6534 (write_psymtabs_to_index): Produce version 5.
6535 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6536 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6537 * psymtab.c (lookup_partial_symbol): Find the
6538 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6539 entries.
6540 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6541 NAME lowercasing.
6542 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6543 (completion_list_add_name): New variable ncmp, initialize it, use it.
6544 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6545 * utils.c (strcmp_iw): Support case_sensitive_off.
6546 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6547 New function comment part. New variables saved_string1,
6548 saved_string2 and case_pass. Add a proper second pass.
6549
681bf369
JK
65502011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 Replace re_comp/re_exec by regcomp/regexec.
6553 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6554 (search_symbols_name_matches): Use them, use regexec.
6555 (search_symbols): New variable retval_chain, adjust the use of
6556 old_chain against it. Replace re_comp by regcomp. Use the new struct
6557 search_symbols_data fields, use regexec instead of re_exec.
6558
b11b1f88
JK
65592011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6560
6561 Format the code for the next patch.
6562 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6563 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6564 New variables c1 and c2.
6565
2484c66b
UW
65662011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6567
6568 * infrun.c (proceed): Do not single-step into signal delivery
6569 when stepping off a breakpoint location.
6570 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6571 (insert_step_resume_breakpoint_at_caller): Likewise.
6572 (insert_step_resume_breakpoint_at_sal): Likewise.
6573 (insert_longjmp_resume_breakpoint): Likewise.
6574
47423772
YQ
65752011-04-27 Yao Qi <yao@codesourcery.com>
6576
6577 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6578
13bdd2e7
JB
65792011-04-27 Joel Brobecker <brobecker@adacore.com>
6580
6581 * procfs.c (procfs_pass_signals): Fix advance declaration.
6582
2455069d
UW
65832011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6584
6585 * target.h (struct target_ops): Remove to_notice_signals;
6586 add to_pass_signals.
6587 (target_notice_signals): Remove.
6588 (target_pass_signals): Add prototype.
6589 * target.c (update_current_target): Remove to_notice_signals;
6590 mention to_pass_signals.
6591 (target_pass_signals): New function.
6592 (debug_to_notice_signals): Remove.
6593 (setup_target_debug): Do not install debug_to_notice_signals.
6594
6595 * infrun.c (signal_pass): New global.
6596 (resume): Call target_pass_signals.
6597 (handle_inferior_event): Report all signals while stepping over
6598 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6599 are re-inserted when stepping over a signal handler.
6600 (signal_cache_update): New function.
6601 (signal_stop_update): Call it.
6602 (signal_print_update): Likewise.
6603 (signal_pass_update): Likewise.
6604 (handle_command): Call signal_cache_update and target_pass_signals
6605 instead of target_notice_signals.
6606 (_initialize_infrun): Initialize signal_pass.
6607
6608 * linux-nat.c (pass_mask): New global.
6609 (linux_nat_pass_signals): New function.
6610 (linux_nat_create_inferior): Report all signals initially.
6611 (linux_nat_attach): Likewise.
6612 (linux_nat_resume): Use pass_mask to decide whether to directly
6613 handle an inferior signal.
6614 (linux_nat_wait_1): Likewise.
6615 (linux_nat_add_target): Install to_pass_signals callback.
6616
6617 * nto-procfs.c (notice_signals): Remove.
6618 (procfs_resume): Do not call notice_signals.
6619 (procfs_notice_signals): Remove.
6620 (procfs_pass_signals): New function.
6621 (init_procfs_ops): Install to_pass_signals callback instead of
6622 to_notice_signals callback.
6623 (_initialize_procfs): Report all signals initially.
6624
6625 * procfs.c (procfs_notice_signals): Remove.
6626 (procfs_pass_signals): New function.
6627 (procfs_target): Install to_pass_signals callback instead of
6628 to_notice_signals callback.
6629 (register_gdb_signals): Remove.
6630 (procfs_debug_inferior): Report all signals initially.
6631 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6632
6633 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6634 parameters; use them instead of calling signal_..._state routines.
6635 (remote_notice_signals): Remove.
6636 (remote_start_remote): Report all signals initially.
6637 (remote_resume): Do not call remote_pass_signals.
6638 (_initialize_remote): Install to_pass_signals callback instead of
6639 to_notice_signals callback.
6640
46c6471b
PA
66412011-04-27 Pedro Alves <pedro@codesourcery.com>
6642
6643 * breakpoint.c (user_settable_breakpoint): Delete.
6644 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6645 (delete_command): Check user_breakpoint_p instead of looking at
6646 the breakpoint's type.
6647 (disable_command): Ditto.
6648 (enable_command): Ditto.
6649 (delete_trace_command): Use user_breakpoint_p instead of looking
6650 at the breakpoint number directly. When checking if there are
6651 user visible tracepoints, in order to know whether to ask the user
6652 for confirmation, check whether the breakpoint is actually a
6653 tracepoint.
6654
f6d90398
VP
66552011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6656
6657 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6658 compilation.
6659
8d3788bd
VP
66602011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6661
6662 MI breakpoint notifications.
6663
f33edef8
PP
6664 * annotate.c (breakpoint_changed): Adjust parameter type.
6665 * breakpoint.c (set_breakpoint_condition): Adjust to change
6666 in breakpoint_modified type.
6667 (breakpoint_set_commands): Likewise.
6668 (do_map_commands_command): Likewise.
6669 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6670 changed after bumping hit count.
6671 (bpstat_stop_status): Likewise.
6672 (print_one_breakpoint_location): Don't wrap in tuple here.
6673 (print_one_breakpoint): Always print individual locations.
6674 For locations, use unnamed tuple.
6675 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6676 has changed.
6677 (create_catchpoint, create_syscall_event_catchpoint): Call
6678 breakpoint_created obsever.
6679 (mention): Don't call breakpoint_created observer.
6680 (create_breakpoint_sal): Call breakpoint_created observer.
6681 (create_breakpoint, watch_command_1): Likewise.
6682 (create_ada_exception_breakpoint): Likewise.
6683 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6684 (locations_are_equal): New.
6685 (update_breakpoint_locations): If locations were changed, notify.
6686 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6687 Call breakpoint_modified observer.
6688
6689 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6690 (mi_cmd_break_insert): Don't set observers for modify and delete.
6691 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6692 (mi_breakpoint_created, mi_breakpoint_deleted)
6693 (mi_breakpoint_modified): New.
6694 (mi_interpreter_init): Hook the above.
6695 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6696 while -break-* commands are executing.
6697 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6698 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6699 (mi_redirect): New.
6700 (mi_ui_out_impl): Hook in mi_redirect.
6701 (mi_field_skip): True to the name, skip the field, don't output
6702 a field with an empty value.
6703
6704 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6705 (gdbpy_breakpoint_deleted): Adjust.
6706 * tui/tui-hooks.c (tui_event_create_breakpoint)
6707 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6708
a8f42b45
UW
67092011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6710
6711 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6712 (procfs_remove_hw_watchpoint): Likewise.
6713
57e12211
TT
67142011-04-26 Michael Walle <michael@walle.cc>
6715
6716 * remote.c (remote_start_remote): Ack packet after sending the
6717 interrupt sequence.
6718
af96c192
YQ
67192011-04-26 Yao Qi <yao@codesourcery.com>
6720
f33edef8
PP
6721 * linux-nat.c: Move common macros to ...
6722 Include linux-ptrace.h.
6723 * common/linux-ptrace.h: ... here. New.
af96c192 6724
3e03848b
JK
67252011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6728 !objfile_has_partial_symbols. New comment.
6729 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6730 SYM_READ_PSYMBOLS is not present. Extend the comment.
6731 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6732
1ae0d051
JK
67332011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 * defs.h (ENUM_BITFIELD): Remove.
6736
03f2bd59
JK
67372011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6738 Eli Zaretskii <eliz@gnu.org>
6739
6740 * NEWS: Document the new gdbserver --once option.
6741
4161fbb0
JZ
67422011-04-21 Jie Zhang <jzhang918@gmail.com>
6743
6744 * MAINTAINERS: Update my email address.
6745
bcb28afc
PM
67462011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6747
6748 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6749 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6750 function call if __STDC_ISO_10646__ macro is defined.
6751 (intermediate_encoding): New prototype.
6752 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6753 to generate compile time error for unsupported gdb_wchar_t size.
6754 (ENDIAN_SUFFIX): New macro.
6755 (intermediate_encoding): New function.
6756
7b08b9eb
JK
67572011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 * ada-lang.c (struct add_partial_datum): Update the comment for
6760 expand_partial_symbol_name.
6761 (ada_add_partial_symbol_completions): Rename to ...
6762 (ada_expand_partial_symbol_name): ... here, change return type, update
6763 function comment, call symbol_completion_match instead of
6764 symbol_completion_add.
6765 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6766 and ada_expand_partial_symbol_name.
6767 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6768 FILE_MATCHER.
6769 (dw2_map_symbol_names): Remove.
6770 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6771 * psymtab.c (map_symbol_names_psymtab): Remove.
6772 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6773 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6774 order.
6775 (psym_functions): Unlist map_symbol_names_psymtab.
6776 (map_partial_symbol_names): Rename to ...
6777 (expand_partial_symbol_names): ... here, change the FUN type, call
6778 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6779 * psymtab.h (map_partial_symbol_names): Rename to ...
6780 (expand_partial_symbol_names): ... here, change the FUN type.
6781 * symfile.h (struct quick_symbol_functions): Update the description of
6782 expand_symtabs_matching. Remove map_symbol_names.
6783 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6784 (struct add_name_data): Update the comment for
6785 expand_partial_symbol_name.
6786 (add_partial_symbol_name): Rename to ...
6787 (expand_partial_symbol_name): ... here. Replace
6788 completion_list_add_name call by strncmp.
6789 (default_make_symbol_completion_list_break_on): Use now
6790 expand_partial_symbol_names and expand_partial_symbol_name.
6791 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6792
90476074
TT
67932011-04-20 Tom Tromey <tromey@redhat.com>
6794
6795 * dwarf2read.c (save_gdb_index_command): Replace format
6796 documentation with a pointer to the manual.
6797
c21236dc
PA
67982011-04-20 Pedro Alves <pedro@codesourcery.com>
6799
6800 * regcache.c: Include remote.h.
6801 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6802 (regcache_dump): Handle regcache_dump_remote.
6803 (maintenance_print_remote_registers): New function.
6804 (_initialize_regcache): Install "maint print remote-registers"
6805 command.
6806 * remote.c (map_regcache_remote_table): New function, factored out
6807 from ...
6808 (init_remote_state): ... here.
6809 (remote_register_number_and_offset): New.
6810 * remote.h (remote_register_number_and_offset): Declare.
6811
b78974c3
PA
68122011-04-20 Pedro Alves <pedro@codesourcery.com>
6813
6814 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6815 null_ptid, assume and allow a NULL address space, instead of
6816 asking the target for the ptid's address space.
6817 * infrun.c (ptid_is_pid): Remove assertion.
6818
7a9dd1b2
TT
68192011-04-19 Tom Tromey <tromey@redhat.com>
6820
6821 * windows-tdep.c (windows_xfer_shared_library):
6822 * windows-nat.c (get_module_name, windows_make_so):
6823 * v850-tdep.c (v850_handle_pushm):
6824 * utils.c (null_cleanup, gdb_realpath):
6825 * ui-out.c (get_next_header):
6826 * tracepoint.c (clear_traceframe_info):
6827 * symtab.c (lookup_symtab):
6828 * serial.h (struct serial_ops):
6829 * mipsread.c (read_alphacoff_dynamic_symtab):
6830 * infcmd.c (print_return_value):
6831 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6832 * f-exp.y (parse_number):
6833 * exceptions.c (catch_exceptions):
6834 * dummy-frame.c (dummy_frame_this_id):
6835 * defs.h (struct cleanup):
6836 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6837 * arm-tdep.c (arm_push_dummy_call):
6838 * amd64-tdep.h (amd64_collect_xsave):
6839 * amd64-tdep.c (amd64_collect_xsave):
6840 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6841 * README (typing): Remove duplicate words.
6842 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6843 * infrun.c (siginfo_value_read): Fix typo.
6844 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6845 * top.c (source_line_number): Add comma.
6846
9941e0c5
MK
68472011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6848
6849 * thread.c (any_live_thread_of_process): Prioritize threads
6850 that are not executing.
6851 * gdbthread.h (any_live_thread_of_process): Update comment
6852 as per above change.
6853
ed4b0e6a
AS
68542011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6855
6856 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6857 (scan_xcoff_symtab): Likewise.
6858
9b13a2db
PM
68592011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6860
6861 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6862 inside if clause.
6863
1c6e1b0d
PM
68642011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6865 Pedro Alves <pedro@codesourcery.com>
6866
6867 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6868 variables to simplify code and avoid == operator at end of
6869 line as this is against GNU coding standards.
6870
74de0234
PM
68712011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6872
6873 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6874 lm_name to name_lm to avoid conflict with lm_name function.
6875
b23518f0
PM
68762011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6877
6878 ARI fixes: Use only lowercase function name for static functions.
6879 * nto-tdep.c (LM_ADDR): Rename to...
6880 (lm_addr): New function name.
6881 (nto_relocate_section_addresses): Adapt to change above.
6882 * solib-sunos.c (LM_ADDR): Rename to...
6883 (lm_addr): New function name.
6884 (LM_NEXT): Rename to...
6885 (lm_next): New function name.
6886 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6887 function name changes above.
6888 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6889 (lm_addr_from_link_map): New function name.
6890 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6891 (has_lm_dynamic_from_link_map): New function name.
6892 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6893 (lm_dynamic_from_link_map): New function name.
6894 (LM_ADDR_CHECK): Rename to...
6895 (lm_addr_check): New function name.
6896 (LM_NEXT): Rename to...
6897 (lm_next): New function name.
6898 (LM_PREV): Rename to...
6899 (lm_prev): New function name.
6900 (LM_NAME): Rename to...
6901 (lm_name): New function name.
6902 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6903 (ignore_first_link_map_entry): New function name.
6904 (svr4_keep_data_in_core): Adapt to function name changes above.
6905 (svr4_current_sos): Likewise.
6906 (enable_break): Likewise.
6907 (svr4_relocate_section_addresses): Likewise.
6908
1448a0a2
PM
69092011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6910
6911 ARI cleanup.
6912 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6913 sprintf. Simplify code and avoid loosing memory.
6914 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6915 (call0_frame_cache): Remove && operator from end of line.
6916
02835898
JK
69172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6918
6919 Fix libraries displacement if they change whether they were prelinked.
6920 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6921 does not match. Comment why.
6922
9a845ea2
JK
69232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6924
6925 * corelow.c: Include wrapper.h.
6926 (core_open): Call now gdb_target_find_new_threads.
6927 * wrapper.c: Include target.h.
6928 (gdb_target_find_new_threads): New.
6929 * wrapper.h (gdb_target_find_new_threads): New declaration.
6930
254f582e
JK
69312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6932
6933 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6934 even if !TARGET_HAS_EXECUTION.
6935
63524580
JK
69362011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6939 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6940 bfd_get_synthetic_symtab.
6941 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6942 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6943 parameter parent, remove the call to add_separate_debug_objfile.
6944 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6945 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6946 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6947 parent, new comment for it, call add_separate_debug_objfile for it.
6948 (symbol_file_add_separate): Pass objfile as the parameter parent,
6949 remove the call to add_separate_debug_objfile.
6950 (symbol_file_add_from_bfd): New parameter parent, pass it.
6951 (symbol_file_add): Pass NULL to the new parameter parent.
6952 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6953
90359a16
JK
69542011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6957 BSF_SYNTHETIC.
6958
626e7282
JK
69592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6960
6961 Fix Python access to inlined frames.
6962 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6963 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6964
cf31e6f9
TT
69652011-04-15 Tom Tromey <tromey@redhat.com>
6966
6967 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6968
c8d895f1
GB
69692011-04-15 Gary Benson <gbenson@redhat.com>
6970
6971 * MAINTAINERS: Add myself to write-after-approval section.
6972
56a9aa1d
MF
69732011-04-14 Mike Frysinger <vapier@gentoo.org>
6974
6975 * remote-sim.c (sim_command_completer): New function.
6976 (_initialize_remote_sim): Set completer to sim_command_completer.
6977
ba770c9c
TJB
69782011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6979
6980 * breakpoint.c (print_exception_catchpoint): Rename to ...
6981 (print_it_exception_catchpoint): ... this.
6982 (gnu_v3_exception_catchpoint_ops): Update with new name
6983 for print_it_exception_catchpoint.
6984
51bf2553
EBM
69852011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6986
6987 * MAINTAINERS: Add myself for write after approval privileges.
6988
d242658c
MP
69892011-04-13 Marek Polacek <mpolacek@redhat.com>
6990
6991 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6992
4a4106ca
TJB
69932011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6994
6995 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6996
26063d49
TJB
69972011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6998
6999 * breakpoint.c (save_breakpoints): Verify whether
7000 breakpoint_ops.print_recreate is defined before calling it.
7001
7782b183
GB
70022011-04-11 Gary Benson <gbenson@redhat.com>
7003
7004 Fix failure with --enable-maintainer-mode.
7005 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7006
e8930875
JK
70072011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7008
7009 Code cleanup.
7010 * symtab.c (search_symbols): Reorder the KIND description in the
7011 function comment. Remove the unused 4th element of types, types2,
7012 types3 and types4. New gdb_assert on KIND.
7013 (symtab_symbol_info): Remove the unused 4th element of classnames.
7014 New gdb_assert on KIND.
7015 * symtab.h (enum search_domain): New warning in the enum comment.
7016 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7017 TYPES_DOMAIN.
7018
b4f2f049
JK
70192011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 Fix crash of gdb save-index on a STABS file.
7022 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7023 PSYMTABS_ADDRMAP.
7024
60d5a603
JK
70252011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7028 * dwarf2read.c: Include ctype.h.
7029 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7030 functions.
7031 (dwarf2_add_field): Fix new_field->accessibility by calling
7032 dwarf2_default_access_attribute. Restructure setting accessibility
7033 vs. virtuality.
7034 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7035 is_private and is_protected by calling
7036 dwarf2_default_access_attribute.
7037
e0f68161
KB
70382011-04-08 Kevin Buettner <kevinb@redhat.com>
7039
7040 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7041 to the initialization.
7042
2e1aae43
SE
70432011-04-08 Steve Ellcey <sje@cup.hp.com>
7044
7045 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7046 initalization.
7047
c6ca3dab
PM
70482011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7049
7050 Remove support for old Cygwin 1.5 versions.
7051 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7052 function on old Cygwin version.
7053 * windows-nat.c: Remove cygwin version check and always define
7054 __USEWIDE for Cygwin compilation.
7055
bd18283a
YQ
70562011-04-07 Yao Qi <yao@codesourcery.com>
7057
7058 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7059 and TO.
7060 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7061 (arm_copy_svc): Remove parameters INSN and TO.
7062 (decode_svc_copro): Update caller.
7063 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7064 from function pointer `copy_svc_os'.
7065
8c8dba6d
YQ
70662011-04-07 Yao Qi <yao@codesourcery.com>
7067
7068 * arm-tdep.c (cleanup_branch): Set a correct return address in
7069 LR for ARM and Thumb.
7070
59d7bcaf
JK
70712011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7072
7073 Code cleanup.
7074 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7075 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7076 in the function comment, a new note on values compatibility.
7077 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7078 * symtab.h (SYMBOL_HASH_NEXT): New.
7079
e7db58ea
TJB
70802011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7081
7082 * ppc-linux-nat.c (check_condition): Add len output parameter.
7083 Set it based on the memory region referenced in the condition
7084 expression. Update all callers.
7085
9f743ef6
JK
70862011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 Fix crash regression on systems featuring .gdb_index.
7089 * objfiles.c (free_objfile): Move the
7090 forget_cached_source_info_for_objfile call earlier. Comment it.
7091 Extend the comment for objfile_free_data.
7092
9182c5bc
JK
70932011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 Fix regression of displaying the debug format.
7096 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7097 subfile.
7098
04bd08de
TT
70992011-04-04 Tom Tromey <tromey@redhat.com>
7100
7101 * cli/cli-interp.c (struct captured_execute_command_args):
7102 Remove.
7103 (do_captured_execute_command): Remove.
7104 (safe_execute_command): Use TRY_CATCH.
7105 * cli/cli-script.c (struct wrapped_read_command_file_args):
7106 Remove.
7107 (wrapped_read_command_file): Remove.
7108 (script_from_file): Use TRY_CATCH.
7109 * exceptions.c (catch_exception): Remove.
7110 * exceptions.h (catch_exception): Remove.
7111 (deprecated_throw_reason): Update comment.
7112 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7113 argument to 'context'.
7114 (mi_execute_command): Use TRY_CATCH.
7115 * remote.c (struct start_remote_args): Remove.
7116 (remote_start_remote): Update; change arguments.
7117 (remote_open_1): Use TRY_CATCH.
7118
58438ac1
TT
71192011-04-04 Tom Tromey <tromey@redhat.com>
7120
7121 * tracepoint.c (scope_info): Update.
7122 * symtab.c (decode_line_spec): Update.
7123 * python/python.c (gdbpy_decode_line): Update.
7124 * linespec.h (decode_line_1): Update.
7125 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7126 (decode_compound, find_method, symtab_from_filename)
7127 (decode_variable): Likewise.
7128 * cli/cli-cmds.c (edit_command): Update.
7129 (list_command): Update.
7130 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7131 argument.
7132 (create_breakpoint): Update.
7133 (until_break_command): Update.
7134 (addr_string_to_sals): Update.
7135 (decode_line_spec_1): Update.
7136
b78a6381
TT
71372011-04-04 Tom Tromey <tromey@redhat.com>
7138
7139 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7140 (do_captured_parse_breakpoint): Remove.
7141 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7142 Use TRY_CATCH directly.
7143
00174a86
TT
71442011-04-04 Tom Tromey <tromey@redhat.com>
7145
7146 * symtab.h (free_symtab): Remove.
7147 (forget_cached_source_info_for_objfile): Declare.
7148 * symmisc.c (free_symtab): Remove.
7149 * source.c (forget_cached_source_info_for_objfile): New function.
7150 (forget_cached_source_info): Use it.
7151 * objfiles.c (free_objfile): Simplify check before calling
7152 clear_current_source_symtab_and_line. Call
7153 forget_cached_source_info_for_objfile.
7154
30cc903e
TT
71552011-04-04 Tom Tromey <tromey@redhat.com>
7156
7157 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7158 (new_symtab): Don't set `free_code' on symtab.
7159 (new_linetable): Properly handle size==0.
7160 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7161 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7162 free_func.
7163 * jv-lang.c (struct jv_per_objfile_data): New.
7164 (jv_per_objfile_free): Free the data.
7165 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7166 (get_java_class_symtab): Set the `dict' field on the
7167 jv_per_objfile_data.
7168 (free_class_block): Remove.
7169 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7170 the symtab.
7171
0c2e6019
TT
71722011-04-04 Tom Tromey <tromey@redhat.com>
7173
7174 * symfile.c (reread_symbols): Update.
7175 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7176 field.
7177 * objfiles.c (allocate_objfile): Update.
7178 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7179 declare.
7180 * cp-namespace.c (lookup_symbol_file): Don't call
7181 lookup_possible_namespace_symbol.
7182 (initialize_namespace_symtab, get_possible_namespace_block)
7183 (free_namespace_block, cp_check_possible_namespace_symbols)
7184 (check_possible_namespace_symbols_loop)
7185 (check_one_possible_namespace_symbol)
7186 (lookup_possible_namespace_symbol): Remove.
7187 (maintenance_cplus_namespace): Replace with notice.
7188 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7189
554d387d
TT
71902011-04-04 Tom Tromey <tromey@redhat.com>
7191
7192 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7193 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7194 * symmisc.c (free_symtab): Don't free debugformat.
7195 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7196 (record_debugformat, record_producer): Document.
7197 * buildsym.c (end_symtab): Don't save debugformat and producer
7198 names on obstack.
7199 (end_symtab): Don't free debugformat and producer fields.
7200 (record_debugformat): Don't call xstrdup.
7201 (record_producer): Likewise.
7202
d4d4db8a
TT
72032011-04-04 Tom Tromey <tromey@redhat.com>
7204
7205 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7206 (source_line_charpos, source_charpos_line): Remove.
7207
8903c50d
TT
72082011-04-04 Tom Tromey <tromey@redhat.com>
7209
7210 * symtab.h (domain_enum): Split in two...
7211 (enum search_domain): New.
7212 (search_symbols): Update.
7213 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7214 redundant declarations.
7215 (search_symbols): Change 'kind' argument to search_domain.
7216 Update.
7217 (print_symbol_info): Likewise.
7218 (symtab_symbol_info): Likewise.
7219 * symfile.h (struct quick_symbol_functions)
7220 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7221 <expand_symtabs_matching>: Likewise.
7222 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7223 (expand_symtabs_matching_via_partial): Update.
7224 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7225 (dw2_expand_symtabs_for_function): Update.
7226 * block.h: Moved anonymous enum...
7227 * defs.h (enum block_enum): ... here. Now named.
7228
d9351f5f 72292011-04-03 Joel Brobecker <brobecker@adacore.com>
7230
7231 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7232 * version.in: Bump version to 7.3.50.20110403-cvs.
7233
d6e00af6
JB
72342011-04-03 Joel Brobecker <brobecker@adacore.com>
7235
7236 * NEWS: Create a new section for the next release branch.
7237 Rename the section of the current branch, now that it has
7238 been cut.
7239
2b9e5ea6
UW
72402011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7241
7242 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7243 for "fpscr" in target description.
7244
0cf03b49
JK
72452011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7246
7247 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7248 initialize it. Delay HASH initialization. Strip the part after open
7249 parenthesis for languages with qualifiers. Call do_cleanups.
7250
5d901a73
TT
72512011-04-01 Tom Tromey <tromey@redhat.com>
7252
7253 * utils.c (report_command_stats): Don't print `-' for negative
7254 number.
7255
b0dd7688
JB
72562011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7257
7258 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7259 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7260 typedefs.
7261
956a9fb9
JB
72622011-04-01 Joel Brobecker <brobecker@adacore.com>
7263
7264 * breakpoint.h (bpdisp_text): Add declaration.
7265 * breakpoint.c (bpdisp_text): Make non-static.
7266 * ada-lang.c: #include "mi/mi-common.h".
7267 (print_it_exception): Rewrite to improve GDB/MI output.
7268
3352110b
PA
72692011-04-01 Pedro Alves <pedro@codesourcery.com>
7270
7271 * arm-tdep.h (struct address_space): Add forward declaration.
7272
18819fa6
UW
72732011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7274
7275 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7276 * arm-tdep.c (arm_override_mode): New global.
7277 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7278 execution mode heuristics.
7279 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7280 second single-step breakpoint if needed, using
7281 arm_insert_single_step_breakpoint.
7282 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7283 ARM execution mode, do not call thumb_get_next_pc_raw.
7284 (arm_get_next_pc): Encode execution mode in return value. Call
7285 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7286 (arm_insert_single_step_breakpoint): New function.
7287 (arm_software_single_step): Call it.
7288 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7289 argument to return execution mode of sigreturn target.
7290 (arm_linux_syscall_next_pc): Use it.
7291 (arm_linux_copy_svc): Update call.
7292 (arm_linux_software_single_step): Call
7293 arm_insert_single_step_breakpoint.
7294
a6e293d1
JK
72952011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7296
7297 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7298 the comment.
7299
a4c8e806
TT
73002011-03-31 Tom Tromey <tromey@redhat.com>
7301
7302 * varobj.c (update_dynamic_varobj_children): Properly handle
7303 errors from iterator.
7304
df5c6c50
JK
73052011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7308 struct linkage name twice.
7309
1dae3efc
TT
73102011-03-31 Tom Tromey <tromey@redhat.com>
7311
7312 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7313 missing ">" to message.
7314
f4f7ab05
TT
73152011-03-31 Tom Tromey <tromey@redhat.com>
7316
7317 * varobj.c (instantiate_pretty_printer): Remove duplicate
7318 'return'.
7319
fcf250e2
UW
73202011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7321
7322 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7323 if neither saved value nor register available (e.g. signal frame).
7324
ee6436e3
TJB
73252011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7326
7327 * macroexp.c (expand): Avoid uninitialized variable
7328 compiler warning.
7329
423f41a5
TJB
73302011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7331
7332 * breakpoint.c (break_range_command): Fix typo in comment.
7333
f1310107
TJB
73342011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7335 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7336
7337 Implement support for PowerPC BookE ranged breakpoints.
7338 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7339 * breakpoint.h (struct bp_target_info) <length>: New member
7340 variable.
7341 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7342 instead of struct breakpoint as argument, and also add ASPACE
7343 and BP_ADDR arguments. Update all callers.
7344 (struct breakpoint_ops) <print_one_detail>: New method.
7345 (struct breakpoint) <addr_string_range_end>: New member variable.
7346 * breakpoint.c (breakpoint_location_address_match): Add function
7347 prototype.
7348 (insert_bp_location): Set bl->target_info.length.
7349 (breakpoint_here_p): Call breakpoint_location_address_match.
7350 (moribund_breakpoint_here_p): Likewise.
7351 (regular_breakpoint_inserted_here_p): Likewise.
7352 (breakpoint_thread_match): Likewise.
7353 (bpstat_stop_status): Likewise.
7354 (bpstat_check_location): Move call to
7355 breakpoint_ops.breakpoint_hit to the top.
7356 (print_one_breakpoint_location): Call
7357 breakpoint_ops.print_one_detail if available.
7358 (breakpoint_address_match_range): New function.
7359 (breakpoint_location_address_match): Likewise.
7360 (breakpoint_locations_match): Compare the length field of the
7361 locations too.
7362 (hw_breakpoint_used_count): Count resources used by all locations
7363 in a breakpoint, and use breakpoint_ops.resources_needed if
7364 available.
7365 (breakpoint_hit_ranged_breakpoint): New function.
7366 (resources_needed_ranged_breakpoint): Likewise.
7367 (print_it_ranged_breakpoint): Likewise.
7368 (print_one_ranged_breakpoint): Likewise.
7369 (print_one_detail_ranged_breakpoint): Likewise.
7370 (print_mention_ranged_breakpoint): Likewise.
7371 (print_recreate_ranged_breakpoint): Likewise.
7372 (ranged_breakpoint_ops): New structure.
7373 (find_breakpoint_range_end): New function.
7374 (break_range_command): Likewise.
7375 (delete_breakpoint): Free addr_string_range_end.
7376 (update_breakpoint_locations): Add SALS_END argument. Update
7377 all callers. Calculate breakpoint length if a non-zero SALS_END
7378 is given. Call breakpoint_locations_match instead of
7379 breakpoint_address_match.
7380 (reset_breakpoint): Find SaL of the end of the range if B is a
7381 ranged breakpoint.
7382 (_initialize_breakpoint): Register break-range command.
7383 * defs.h (print_core_address): Add function prototype.
7384 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7385 function.
7386 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7387 (ppc_linux_remove_hw_breakpoint): Likewise.
7388 (_initialize_ppc_linux_nat): Initialize
7389 to_ranged_break_num_registers.
7390 * target.c (update_current_target): Add comment about
7391 to_ranged_break_num_registers.
7392 (target_ranged_break_num_registers): New function.
7393 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7394 New method.
7395 (target_ranged_break_num_registers): Add function prototype.
7396 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7397 * utils.c (print_core_address): ... here.
7398
02d20e4a
UW
73992011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7400
7401 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7402 variable compiler warning.
7403
ef23e705
TJB
74042011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7405
7406 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7407 code from here ...
7408 (re_set_breakpoint): ... to here ...
7409 (addr_string_to_sals): ... and here.
7410
311e6ab3
PM
74112011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7412
7413 * Makefile.in (SFILES): Add missing C sources.
7414 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7415 Add missing headers.
7416
acd1d99c
MF
74172011-03-29 Mike Frysinger <vapier@gentoo.org>
7418
7419 * .gitignore: New file.
7420
66ee2731
MF
74212011-03-29 Mike Frysinger <vapier@gentoo.org>
7422
7423 * NEWS: Mention new cfi device simulation.
7424
53832f31
TT
74252011-03-29 Tom Tromey <tromey@redhat.com>
7426
7427 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7428 otherwise anonymous types.
7429 (dwarf2_name): Likewise.
7430 * valops.c (value_struct_elt_for_reference): Refine artificial
7431 type logic. Call error if j==-1.
7432
09b58708
JK
74332011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7434
7435 Fix false GCC warning.
7436 * infcall.c (find_function_addr): Initialize funaddr.
7437
6023c606
PM
74382011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7439
7440 Fix mingw compilation with --enable-targets=all.
7441 * remote-mips.c (gdb_usleep.h): Include header.
7442 (mips_enter_debug): Use gdb_usleep instead of sleep.
7443
0e30163f
JK
74442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7445
7446 Support resolution of STT_GNU_IFUNC via breakpoints.
7447 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7448 bp_gnu_ifunc_resolver_return.
7449 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7450 the loop. Support bp_gnu_ifunc_resolver and
7451 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7452 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7453 breakpoints.
7454 (bptype_string, print_one_breakpoint_location): Support
7455 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7456 (user_settable_breakpoint): Return true also for
7457 bp_gnu_ifunc_resolver.
7458 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7459 bp_gnu_ifunc_resolver_return.
7460 (set_breakpoint_location_function): New parameter explicit_loc,
7461 describe it. Call find_pc_partial_function_gnu_ifunc with new
7462 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7463 EXPLICIT_LOC is not set.
7464 (set_raw_breakpoint): Set EXPLICIT_LOC for
7465 set_breakpoint_location_function.
7466 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7467 set_breakpoint_location_function.
7468 (mention): Support bp_gnu_ifunc_resolver and
7469 bp_gnu_ifunc_resolver_return.
7470 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7471 set_breakpoint_location_function.
7472 (update_breakpoint_locations): Remove static.
7473 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7474 bp_gnu_ifunc_resolver_return.
7475 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7476 bp_gnu_ifunc_resolver_return.
7477 (update_breakpoint_locations): New declaration.
7478 * elfread.c: Include gdbthread.h and regcache.h.
7479 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7480 functions.
7481 (elf_gnu_ifunc_fns): Install them.
7482 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7483 (stub_gnu_ifunc_resolver_return_stop): New functions.
7484 (stub_gnu_ifunc_fns): Install them.
7485 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7486 and gnu_ifunc_resolver_return_stop.
7487 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7488
07be84bf
JK
74892011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7490
7491 STT_GNU_IFUNC reader implementation.
7492 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7493 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7494 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7495 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7496 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7497 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7498 (elf_gnu_ifunc_resolve_addr): New.
7499 (elf_symfile_read): Call elf_rel_plt_read.
7500 (elf_gnu_ifunc_fns): New.
7501 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7502 Install elf_gnu_ifunc_fns.
7503 * infcall.c (find_function_return_type): New function.
7504 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7505 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7506 (stub_gnu_ifunc_resolve_name): New functions.
7507 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7508 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7509 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7510
300f8e10
JK
75112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7512
7513 Code cleanup for later STT_GNU_IFUNC support.
7514 * infcall.c (find_function_addr): Remove variable code, use explicit
7515 dereferences for it. Move VALUE_TYPE initialization later.
7516
11c81455
JK
75172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7520 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7521 (clear_pc_function_cache): Clear it.
7522 (find_pc_partial_function): Rename to ...
7523 (find_pc_partial_function_gnu_ifunc): ... this function. New
7524 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7525 (find_pc_partial_function): New wrapper for this function.
7526 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7527
0875794a
JK
75282011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 GDB internal type support for STT_GNU_IFUNC.
7531 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7532 (elf_symtab_read): Set mst_text_gnu_ifunc for
7533 BSF_GNU_INDIRECT_FUNCTION.
7534 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7535 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7536 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7537 nodebug_got_plt_symbol.
7538 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7539 (TYPE_GNU_IFUNC): New.
7540 (struct main_type): New field flag_gnu_ifunc.
7541 (struct builtin_type): New field builtin_func_func.
7542 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7543 nodebug_got_plt_symbol.
7544 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7545 (in_gnu_ifunc_stub): New.
7546 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7547 mst_text_gnu_ifunc.
7548 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7549 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7550 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7551 in_gnu_ifunc_stub.
7552 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7553 * symtab.c (search_symbols): Likewise.
7554 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7555 and mst_slot_got_plt.
7556 (in_gnu_ifunc_stub): New declaration.
7557
d0fb5eae
JK
75582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 Support a ring of related breakpoints.
7561 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7562 other functions, add gdb_assert.
7563 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7564 watchpoint_del_at_next_stop.
7565 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7566 (bpstat_stop_status): Handle ring in related_breakpoint.
7567 (set_raw_breakpoint_without_location): Initialize ring in
7568 related_breakpoint.
7569 (delete_breakpoint): Handle ring in related_breakpoint, use
7570 watchpoint_del_at_next_stop.
7571 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7572
9cded63f
TT
75732011-03-28 Tom Tromey <tromey@redhat.com>
7574
7575 PR symtab/12441:
7576 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7577 with `language_minimal'.
7578
467d42c4
UW
75792011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7580
7581 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7582 instead of checking for STT_ARM_TFUNC symbol type.
7583
62853458
TT
75842011-03-25 Tom Tromey <tromey@redhat.com>
7585
7586 * linespec.c (symbol_found): Restore line-based result for
7587 non-LOC_LABEL symbols.
7588
a7417d46
KT
75892011-03-25 Kai Tietz <ktietz@redhat.com>
7590
7591 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7592 instead of strcmp for comparison.
7593 (tui_source_is_displayed): Likewise.
7594 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7595
55f1336d
TT
75962011-03-24 Mark Wielaard <mjw@redhat.com>
7597
f33edef8
PP
7598 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7599 complaint.
7600 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7601 (find_partial_die_in_comp_unit): Likewise in comment.
7602 (read_attribute_value): Likewise.
7603 (lookup_die_type): Likewise.
7604 (dwarf_form_name): Likewise.
7605 (dump_die_shallow): Likewise.
7606 (follow_die_ref_or_sig): Likewise.
55f1336d 7607
9ef07c8c
TT
76082011-03-24 Tom Tromey <tromey@redhat.com>
7609
7610 PR breakpoints/11816:
7611 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7612 (decode_compound): Update.
7613 (find_function_symbol): New function.
7614 (decode_dollar): Update.
7615 (decode_label): Add 'function_symbol' parameter. Handle
7616 function-relative labels.
7617 (decode_variable): Update.
7618 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7619 not its line. Set `special_display' and canonical name for
7620 labels.
7621
56435ebe
TT
76222011-03-24 Tom Tromey <tromey@redhat.com>
7623
7624 * linespec.h (struct linespec_result) <special_display>: New
7625 field.
7626 * breakpoint.h (struct breakpoint) <display_canonical>: New
7627 field.
7628 * breakpoint.c (print_breakpoint_location): Respect
7629 display_canonical.
7630 (create_breakpoint_sal): Add 'display_canonical' parameter.
7631 (create_breakpoints_sal): Update.
7632 (create_breakpoint): Update.
7633
7efd8fc2
TT
76342011-03-24 Tom Tromey <tromey@redhat.com>
7635
7636 * symtab.c (decode_line_spec): Update.
7637 * linespec.c (build_canonical_line_spec): Change type of
7638 'canonical'.
7639 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7640 (find_method, decode_all_digits, decode_dollar, decode_label)
7641 (symbol_found): Likewise.
7642 (init_linespec_result): New function.
7643 * breakpoint.c (struct captured_parse_breakpoint_args)
7644 <canonical_p>: New field, replaces addr_string_p.
7645 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7646 'addr_string'.
7647 (parse_breakpoint_sals): Likewise.
7648 (do_captured_parse_breakpoint): Update.
7649 (create_breakpoint): Use struct linespec_result.
7650 (until_break_command): Update.
7651 (breakpoint_re_set_one): Update.
7652 (decode_line_spec_1): Update.
7653 * linespec.h (struct linespec_result): New.
7654 (init_linespec_result): Declare.
7655
788c8b10
PA
76562011-03-23 Pedro Alves <pedro@codesourcery.com>
7657
7658 * regcache.c (regcache_raw_read): If the target didn't supply a
7659 given raw register, mark it as unavailable.
7660
0ba1096a
KT
76612011-03-23 Kai Tietz <ktietz@redhat.com>
7662
7663 * breakpoint.c (clear_command): Use filename_cmp
7664 instead of strcmp for comparison.
7665 * buildsym.c (watch_main_source_file_lossage): Likewise.
7666 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7667 checking just for slash.
7668 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7669 strrchr and filename_cmp instead of strcmp for filenames.
7670 (add_old_header_file): Use filename_cmp
7671 instead of strcmp for comparison.
7672 * exec.c (exec_set_section_address): Likewise.
7673 * macrotab.c (macro_lookup_inclusion): Likewise.
7674 (macro_lookup_inclusion): Likewise.
7675 * elfread.c (_initialize_elfread): Likewise.
7676 (elfstab_offset_sections): Likewise.
7677 (elfstab_offset_sections): Use lbasename instead of
7678 strrchr.
7679 * mdebugread.c (parse_partial_symbols): Likewise.
7680 (arse_partial_symbols): Use filename_(n)cmp instead of
7681 str(n)cmp for comparison.
7682 * minsyms.c (lookup_minimal_symbol): Likewise.
7683 * psymtab.c (read_psymtabs_with_filename): Likewise.
7684 * solib.c (solib_read_symbols): Likewise.
7685 (reload_shared_libraries_1): Likewise.
7686 * symmisc.c (maintenance_print_symbols): Likewise.
7687 * symfile.c (separate_debug_file_exists): Likewise.
7688 (reread_symbols): Likewise.
7689 (find_separate_debug_file_by_debuglink): Likewise.
7690 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7691 * source.c (add_path): Likewise.
7692 * symtab.c (filename_seen): Likewise.
7693 (file_matches): Likewise.
7694 (print_symbol_info): Likewise.
7695 (maybe_add_partial_symtab_filename): Likewise.
7696 (make_source_files_completion_list): Likewise.
7697 * xml-syscall.c (init_sysinfo): Likewise.
7698 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7699 IS_DIR_SEPARATOR for checking for trailing path separator.
7700
dd90784c
JK
77012011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7704 label abort_expression.
7705 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7706 DWARF_VALUE_OPTIMIZED_OUT.
7707
3167638f
JK
77082011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7709
7710 Code cleanup.
7711 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7712 to linkage_name. Invert its value. Update the function comment.
7713 (c_type_print_varspec_suffix): Invert it at the caller.
7714 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7715
ce406537
PA
77162011-03-22 Pedro Alves <pedro@codesourcery.com>
7717
7718 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7719 errors when reading the `stop_pc'.
7720 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7721 get_frame_pc.
7722
da5d4055
PM
77232011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7724
7725 * NEWS: Document gdb.Write stream keyword.
7726
29e0eb9c
JK
77272011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7728
7729 Revert:
7730 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7731 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7732 (dwarf2_add_field): Fix new_field->accessibility for
7733 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7734
05775840
PM
77352011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7736
f33edef8 7737 PR python/12183
05775840
PM
7738
7739 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7740 other error classes. Do not print stack trace.
7741
a0cb7835
JK
77422011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7743
7744 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7745 (dwarf2_add_field): Fix new_field->accessibility for
7746 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7747
d19f7eee
UW
77482011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7749
7750 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7751 encountering a load via a non-SP register.
7752
4a2fbb50
UW
77532011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7754
7755 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7756 field in returned unwinder.
7757
3489610d
JB
77582012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7759
7760 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7761
8c1a34e7
JB
77622012-03-21 Joel Brobecker <brobecker@adacore.com>
7763
7764 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7765 of xmalloc.
7766
8fbca658
PA
77672012-03-18 Pedro Alves <pedro@codesourcery.com>
7768
7769 * frame.c (frame_unwind_register): Throw an error if unwinding the
7770 register failed.
7771 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7772 an unwind stop reason.
7773 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7774 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7775 UNWIND_UNAVAILABLE>: New.
7776 * inline-frame.c (inline_frame_unwind): Install
7777 default_frame_unwind_stop_reason.
7778 * frame-unwind.c: Include "exceptions.h".
7779 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7780 (default_frame_unwind_stop_reason): New.
7781 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7782 (default_frame_unwind_stop_reason): Declare.
7783 (struct frame_unwind) <stop_reason>: New function pointer.
7784
7785 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7786 * dwarf2-frame.c: Include exceptions.h.
7787 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7788 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7789 computing the CFA. If such an error was thrown, set
7790 unavailable_retaddr.
7791 (dwarf2_frame_unwind_stop_reason): New.
7792 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7793 unavailable.
7794 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7795 (dwarf2_signal_frame_unwind): Ditto.
7796
7797 * amd64-tdep.c: Include "exceptions.h".
7798 (struct amd64_frame_cache): New field "base_p".
7799 (amd64_init_frame_cache): Clear it.
7800 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7801 Avoid reading registers with functions that throw if the register
7802 is not necessary to compute the frame base.
7803 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7804 swallowing NOT_AVAILABLE_ERROR.
7805 (amd64_frame_unwind_stop_reason): New.
7806 (amd64_frame_this_id): Don't build a frame id if the frame base
7807 was unavailable.
7808 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7809 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7810 base_p if the frame base was computable.
7811 (amd64_sigtramp_frame_unwind_stop_reason): New.
7812 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7813 frame base was unavailable.
7814 (amd64_sigtramp_frame_unwind): Install
7815 amd64_sigtramp_frame_unwind_stop_reason.
7816 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7817 base_p if the frame base was computable.
7818 (amd64_epilogue_frame_unwind_stop_reason): New.
7819 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7820 frame base was unavailable.
7821 (amd64_epilogue_frame_unwind): Install
7822 amd64_epilogue_frame_unwind_stop_reason.
7823 * i386-tdep.c: Include "exceptions.h".
7824 (struct i386_frame_cache): New field "base_p".
7825 (i386_init_frame_cache): Clear it.
7826 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7827 Avoid reading registers with functions that throw if the register
7828 is not necessary to compute the frame base.
7829 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7830 swallowing NOT_AVAILABLE_ERROR.
7831 (i386_frame_unwind_stop_reason): New.
7832 (i386_frame_this_id): Don't build a frame id if the frame base was
7833 unavailable.
7834 (i386_frame_prev_register): Handle unavailable SP.
7835 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7836 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7837 base_p if the frame base was computable.
7838 (i386_epilogue_frame_unwind_stop_reason): New.
7839 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7840 base was unavailable.
7841 (i386_epilogue_frame_unwind): Install
7842 i386_epilogue_frame_unwind_stop_reason.
7843 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7844 base_p if the frame base was computable.
7845 (i386_sigtramp_frame_unwind_stop_reason): New.
7846 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7847 base was unavailable.
7848 (i386_sigtramp_frame_unwind): Install
7849 i386_sigtramp_frame_unwind_stop_reason.
7850 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7851 type's size, not the register's.
7852 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7853
7854 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7855 default_frame_unwind_stop_reason.
7856 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7857 (alpha_heuristic_frame_unwind): Ditto.
7858 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7859 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7860 * avr-tdep.c (avr_frame_unwind): Ditto.
7861 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7862 Ditto.
7863 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7864 * frv-tdep.c (frv_frame_unwind): Ditto.
7865 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7866 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7867 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7868 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7869 (hppa_stub_frame_unwind): Ditto.
7870 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7871 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7872 (ia64_libunwind_frame_unwind)
7873 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7874 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7875 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7876 * m32c-tdep.c (m32c_unwind): Ditto.
7877 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7878 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7879 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7880 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7881 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7882 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7883 * mep-tdep.c (mep_frame_unwind): Ditto.
7884 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7885 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7886 (mips_stub_frame_unwind): Ditto.
7887 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7888 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7889 * mt-tdep.c (mt_frame_unwind): Ditto.
7890 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7891 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7892 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7893 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7894 (s390_sigtramp_frame_unwind): Ditto.
7895 * score-tdep.c (score_prologue_unwind): Ditto.
7896 * sh-tdep.c (sh_frame_unwind): Ditto.
7897 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7898 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7899 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7900 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7901 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7902 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7903 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7904 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7905 (sparc64obsd_trapframe_unwind): Ditto.
7906 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7907 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7908 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7909 * v850-tdep.c (v850_frame_unwind): Ditto.
7910 * vax-tdep.c (vax_frame_unwind): Ditto.
7911 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7912 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7913 * xtensa-tdep.c (xtensa_unwind): Ditto.
7914
f23d1b92
PA
79152011-03-18 Pedro Alves <pedro@codesourcery.com>
7916
7917 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7918 there's always a frame. Use get_frame_pc_if_available instead of
7919 get_frame_pc, and if there's no PC available, don't look up a
7920 symtab.
7921
1d4f5741
PA
79222011-03-18 Pedro Alves <pedro@codesourcery.com>
7923
7924 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7925 unavailable PC.
7926
dba09041
PA
79272011-03-18 Pedro Alves <pedro@codesourcery.com>
7928
7929 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7930 gracefully.
7931
9a26e44c
PA
79322011-03-18 Pedro Alves <pedro@codesourcery.com>
7933
7934 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7935 * frame.c (frame_unwind_caller_pc_if_available): New.
7936 * stack.c (frame_info): Handle unavailable PC.
7937
79382011-03-18 Pedro Alves <pedro@codesourcery.com>
7939
7940 * frame.c (frame_unwind_pc): Rename to ...
7941 (frame_unwind_pc_if_available): ... this. New `pc' output
7942 parameter. Change return type to int. Gracefully handle
7943 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7944 happened, or 1 otherwise.
7945 (frame_unwind_pc): Reimplement on top of
7946 frame_unwind_pc_if_available.
7947 (get_frame_func): Rename to ...
7948 (get_frame_func_if_available): New `pc' output parameter. Change
7949 return type to int. Gracefully handle the PC not being available.
7950 (get_frame_func): Reimplement on top of
7951 get_frame_func_if_available.
7952 (select_frame): Handle the PC being unavailable.
7953 (get_prev_frame): Handle the PC being unavailable.
7954 (get_frame_pc_if_available): New.
7955 (get_frame_address_in_block_if_available): New.
7956 (find_frame_sal): Handle the frame PC not being available.
7957 * frame.h (get_frame_pc_if_available): Declare.
7958 (get_frame_address_in_block_if_available): Declare.
7959 (get_frame_func_if_available): Declare.
7960 * stack.c (print_frame_info): Handle the PC being unavailable.
7961 (find_frame_funname): Ditto.
7962 (print_frame): Handle the PC being unavailable.
7963 (get_frame_language): Ditto.
7964 * blockframe.c (get_frame_block): Ditto.
7965 * macroscope.c (default_macro_scope): Ditto.
7966 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7967
79682011-03-18 Pedro Alves <pedro@codesourcery.com>
7969
7970 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7971 NOT_AVAILABLE_ERROR when evaluating the location expression.
7972
79732011-03-18 Pedro Alves <pedro@codesourcery.com>
7974
7975 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7976 returning that the register piece is unavailable/optimized out.
7977 (write_pieced_value): Handle get_frame_register_bytes returning
7978 that the register piece is unavailable/optimized out when doing a
7979 read-modify write of a bitfield.
7980 * findvar.c (value_from_register): Handle get_frame_register_bytes
7981 returning that the register piece is unavailable/optimized out.
7982 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7983 and `unavailablep'. Throw error on bad debug info. Use
7984 frame_register instead of frame_register_read, to fill in the new
7985 arguments.
7986 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7987 and `unavailablep'.
7988 * valops.c: (value_assign): Adjust, and handle
7989 get_frame_register_bytes failing.
7990 * spu-tdep.c: Include exceptions.h.
7991 (spu_software_single_step): Adjust, and handle
7992 get_frame_register_bytes failing.
7993 (spu_get_longjmp_target): Ditto.
7994 * gdbarch.sh (register_to_value): Change to return int. New
7995 parameters `optimizedp' and `unavailablep'.
7996 * gdbarch.h, gdbarch.c: Regenerate.
7997 * i386-tdep.c (i386_register_to_value): Adjust to new
7998 gdbarch_register_to_value interface.
7999 * i387-tdep.c (i387_register_to_value): Ditto.
8000 * i387-tdep.h (i387_register_to_value): Ditto.
8001 * alpha-tdep.c (alpha_register_to_value): Ditto.
8002 * ia64-tdep.c (ia64_register_to_value): Ditto.
8003 * m68k-tdep.c (m68k_register_to_value): Ditto.
8004 * mips-tdep.c (mips_register_to_value): Ditto.
8005 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8006
0fdb4f18
PA
80072011-03-18 Pedro Alves <pedro@codesourcery.com>
8008
8009 * findvar.c (value_of_register): Mark the value as unavailable, if
8010 the register is unavailable.
8011 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8012 (frame_register): New `unavailablep' parameter.
8013 (frame_register_read): Update comment.
8014 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8015 Set it if the register is unavailable. If the register is
8016 unavailable, clear the output buffer.
8017 (frame_register): New `unavailablep' parameter. Pass it down.
8018 (frame_unwind_register): Adjust.
8019 (put_frame_register): Adjust.
8020 (frame_register_read): Adjust. Also return false if the register
8021 is not available.
8022 (frame_register_unwind_location): Adjust.
8023 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8024 is unavailable, mark the value accordingly.
8025 * stack.c (frame_info): Handle unavailable registers.
8026
e69aa73e
PA
80272011-03-18 Pedro Alves <pedro@codesourcery.com>
8028
8029 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8030 simplify, using regcache_cooked_read.
8031
05d1431c
PA
80322011-03-18 Pedro Alves <pedro@codesourcery.com>
8033
8034 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8035 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8036 (regcache_raw_read_unsigned, regcache_raw_read_part)
8037 (regcache_cooked_read, regcache_cooked_read_signed)
8038 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8039 (regcache_cooked_read_ftype): Change return to enum
8040 register_status.
8041 * regcache.c: Include exceptions.h
8042 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8043 (do_cooked_read): Change return to enum register_status. Always
8044 forward to regcache_cooked_read.
8045 (regcache_raw_read): Change return to enum register_status. If
8046 the register is not REG_VALID, memset the buffer. Return the
8047 register's status.
8048 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8049 return the register's status.
8050 (regcache_raw_read_unsigned): Ditto.
8051 (regcache_cooked_read): Change return to enum register_status.
8052 Assert that with read-only regcaches, the register's status must
8053 be known. If the regcache is read-only, and the register is not
8054 REG_VALID, memset the buffer. Return the register's status.
8055 (regcache_cooked_read_signed): Change return to enum
8056 register_status. Handle non-REG_VALID registers and return the
8057 register's status.
8058 (regcache_cooked_read_unsigned): Change return to enum
8059 register_status. Handle non-REG_VALID registers and return the
8060 register's status.
8061 (regcache_xfer_part, regcache_raw_read_part)
8062 (regcache_cooked_read_part): Change return to enum
8063 register_status. Return the register's status.
8064 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8065 unavailable.
8066 (regcache_dump): Handle unavailable cooked registers.
8067 * frame.c (do_frame_register_read): Adjust interface to match
8068 regcache_cooked_read_ftype.
8069 * gdbarch.sh (pseudo_register_read): Change return to enum
8070 register_status.
8071 * gdbarch.h, gdbarch.c: Regenerate.
8072
8073 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8074 register_status.
8075 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8076 register_status. If reading a raw register indicates the raw
8077 register is not valid, return the raw register's status,
8078 otherwise, return REG_VALID.
8079 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8080 register_status. Handle non-REG_VALID raw registers and return
8081 the register's status.
8082 * arm-tdep.c (arm_neon_quad_read)
8083 (arm_pseudo_read): Change return to enum register_status. Handle
8084 non-REG_VALID raw registers and return the register's status.
8085 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8086 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8087 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8088 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8089 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8090 register_status.
8091 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8092 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8093 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8094 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8095 (m32c_pseudo_register_read): Change return to enum
8096 register_status. Adjust.
8097 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8098 enum register_status. Return the register's status.
8099 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8100 register_status. Return the register's status.
8101 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8102 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8103 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8104 * rs6000-tdep.c (move_ev_register_func): New typedef.
8105 (e500_move_ev_register): Use it. Change return to enum
8106 register_status. Return the register's status.
8107 (do_regcache_raw_read): New function.
8108 (do_regcache_raw_write): New function.
8109 (e500_pseudo_register_read): Change return to enum
8110 register_status. Return the register's status. Use
8111 do_regcache_raw_read.
8112 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8113 (dfp_pseudo_register_read): Change return to enum register_status.
8114 Return the register's status.
8115 (vsx_pseudo_register_read): Ditto.
8116 (efpr_pseudo_register_read): Ditto.
8117 (rs6000_pseudo_register_read): Ditto.
8118 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8119 register_status. Return the register's status.
8120 * sh64-tdep.c (pseudo_register_read_portions): New function.
8121 (sh64_pseudo_register_read): Change return to enum
8122 register_status. Use pseudo_register_read_portions. Return the
8123 register's status.
8124 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8125 register_status. Return the register's status.
8126 * sh-tdep.c (pseudo_register_read_portions): New function.
8127 (sh_pseudo_register_read): Change return to enum register_status.
8128 Use pseudo_register_read_portions. Return the register's status.
8129 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8130 enum register_status. Return the register's status.
8131 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8132 * spu-tdep.c (spu_pseudo_register_read_spu)
8133 (spu_pseudo_register_read): Ditto.
8134 * xtensa-tdep.c (xtensa_register_read_masked)
8135 (xtensa_pseudo_register_read): Ditto.
8136 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8137
e10abd8f
PM
81382011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8139
8140 * python/py-value.c (valpy_getitem): Fix formatting of error function
8141 call.
8142
7ea6d463
PM
81432011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8144
8145 ARI fixes: Add missing internationalization markups throughout
8146 C source files.
8147 * darwin-nat-info.c: Ditto.
8148 * record.c: Ditto.
8149 * remote.c: Ditto.
8150 * mi/mi-main.c: Ditto.
8151
001083c6
PM
81522011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8153
8154 ARI fixes: Add missing internationalization markups throughout
8155 yacc files.
8156 * c-exp.y: Ditto.
8157 * cp-name-parser.y: Ditto.
8158 * f-exp.y: Ditto.
8159 * m2-exp.y: Ditto.
8160 * objc-exp.y: Ditto.
8161 * p-exp.y: Ditto.
8162
4f1cdeec
PM
81632011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8164
8165 ARI fixes: Messages should have no trailing new lines.
8166 * darwin-nat.c (mach_check_error): Remove trailing new line from
8167 warning function call message.
8168 * record.c (bfdcore_read): Idem for error call.
8169
28e698f1
PM
81702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8171
8172 * common/signals.c (target_signal_from_host): Add _ markup to error
8173 function call message.
8174 (target_signal_to_host): Add _ markup and remove trailing new line
8175 from warning call message.
8176 (target_signal_from_command): Add _ markup to error function call
8177 message.
8178
99c3dc11
PM
81792011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8180
f33edef8 8181 PR python/12149
99c3dc11
PM
8182
8183 * python/python.c (gdbpy_write): Accept a stream argument and
8184 operate to the appropriate stream.
8185 (gdbpy_flush): Likewise.
8186 (_initialize_python): Add stream constants.
8187 (finish_python_initialization): Add GdbOutputErrorFile class.
8188
c20800be
KY
81892011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8190
8191 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8192
f4a1794a
KY
81932011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8194
8195 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8196 to store_signed_integer. Add debug message when relocating CALL
8197 instructions. Fix formatting of debug message.
8198 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8199
d4862372
JB
82002011-03-17 Joel Brobecker <brobecker@gnat.com>
8201
8202 * target.h (struct target_ops): Remove to_lookup_symbol field.
8203 (target_lookup_symbol): Delete macro.
8204 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8205 (update_current_target, setup_target_debug): Remove handling
8206 of to_lookup_symbol target_ops field.
8207 * ada-tasks.c (get_known_tasks_addr): Remove use of
8208 target_lookup_symbol.
8209 * coffread.c (coff_symtab_read): Likewise.
8210 * dbxread.c (read_dbx_symtab): Ditto.
8211
d645e32e
JB
82122011-03-17 Joel Brobecker <brobecker@gnat.com>
8213
8214 PR gdb/12116:
8215 * configure.ac: Add getthrds declaration check.
8216 * configure, config.in: Regenerate.
8217 * aix-thread.c (getthrds): Declare only if not already declared
8218 in procinfo.h. More declaration out of get_signaled_thread to
8219 global scope.
8220
29703da4
PM
82212011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8222
8223 * python/py-symtab.c: Populate symtab_object_methods,
8224 sal_object_methods.
8225 (stpy_is_valid): New function.
8226 (salpy_is_valid): Ditto.
8227 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8228 (sympy_is_valid): New function.
8229 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8230 (objfpy_is_valid): New function.
8231 * python/py-inferior.c: Populate inferior_object_methods.
8232 (infpy_is_valid): New function.
8233 * python/py-infthread.c: Populate thread_object_methods.
8234 (thpy_is_valid): New function.
8235 * python/py-block.c: Declare block_object_methods. Populate. Declare
8236 block_iterator_object_methods. Populate.
8237 (blpy_is_valid): New function.
8238 (blpy_iter_is_valid): Ditto.
8239
c00f8484
KS
82402011-03-16 Keith Seitz <keiths@redhat.com>
8241
8242 * linespec.c (find_methods): Canonicalize NAME before looking
8243 up the symbol.
8244 (name_end): New function.
8245 (keep_name_info): New function.
8246 (decode_line_1): Use keep_name_info.
8247 (decode_compound): Likewise.
8248 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8249 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8250
8251 PR c++/12273
8252 * linespec.c (locate_first_half): Keep overload information, too.
8253 (decode_compound): Use a string to represent break characters
8254 to escape the loop.
8255 If P points to a break character, do not increment it.
8256 For C++ and Java, keep overload information and relevant keywords.
8257 If we cannot find a symbol, search the minimal symbols.
8258
8259 PR c++/11734
8260 * linespec.c (decode_compound): Rename SAVED_ARG to
8261 THE_REAL_SAVED_ARG.
8262 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8263 single-quotes.
8264 Pass a valid block to lookup_symbol.
8265 (lookup_prefix_sym): Likewise.
8266 (find_method): Construct search name based on SYM_CLASS instead
8267 of SAVED_ARG.
8268 * psymtab.c (lookup_partial_symbol): Add language parameter.
8269 (lookup_symbol_aux_psymtabs): Likewise.
8270 Don't assume that the psymtab we found was the right one. Search
8271 for the desired symbol in the symtab to be certain.
8272 (psymtab_search_name): New function.
8273 (lookup_partial_symbol): Use psymtab_search_name.
8274 Add language parameter.
8275 (read_symtabs_for_function): Add language parameter and pass to
8276 lookup_partial_symbol.
8277 (find_symbol_file_from_partial): Likewise.
8278
c91513d8
PP
82792011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8280
8281 PR gdb/12528
8282 * dwarf2read.c (noop_record_line): New function.
8283 (dwarf_decode_lines): Ignore line tables for GCd functions.
8284
b37520b6
PM
82852011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8286
8287 Fix ARI warnings about new lines at the end of messages, which
8288 are unneeded as there is a new line added at the end of the message
8289 automatically.
8290 * darwin-nat.c (darwin_stop_inferior): Ditto.
8291 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8292 * dfp.c (decimal_to_number): Ditto.
8293 * exec.c (print_section_info): Ditto.
8294 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8295 * osdata.c (get_osdata): Ditto.
8296 * record.c (bfdcore_write): Ditto.
8297 * remote-mips.c (mips_readchar): Ditto.
8298 * remote.c (read_ptid): Ditto.
8299 * ser-mingw.c (ser_windows_raw): Ditto.
8300 * tracepoint.c (add_local_symbols): Ditto.
8301 * windows-nat.c (fake_create_process): Ditto.
8302
b08ee6a2
TT
83032011-03-16 Tom Tromey <tromey@redhat.com>
8304
8305 * tracepoint.c (stop_tracing): Don't declare.
8306 * event-top.c (after_char_processing_hook): Add `(void)'.
8307
9a6f1302
PM
83082011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8309
8310 * NEWS: Add Parameter sub-classing description.
8311
7ceb86b1
KT
83122011-03-16 Kai Tietz <ktietz@redhat.com>
8313
8314 * MAINTAINERS: Update my e-mail address.
8315
efeff6cf
AT
83162011-03-15 Andreas Tobler <andreast@fgznet.ch>
8317
8318 * MAINTAINERS: Add myself for write after approval privileges.
8319
681c238c
MS
83202011-03-15 Michael Snyder <msnyder@vmware.com>
8321
f3df5b08
MS
8322 * frame.c (find_frame_sal): Assert sym is not null.
8323
13f6513c
MS
8324 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8325
50412521
MS
8326 * objc-lang.c (selectors_info): Check strchr for null result.
8327
681c238c
MS
8328 * stabsread.c (define_symbol): Guard against bad stabstring input.
8329
6ced1581
PM
83302011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8331
8332 Remove trailing spaces and tabulations from pascal language
8333 support sources.
8334 p-exp.y: Ditto.
8335 p-lang.c: Ditto.
8336 p-lang.h: Ditto.
8337 p-valprint.c: Ditto.
8338
9373cf26
JK
83392011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8340
8341 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8342 than LOW. Comment it.
8343 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8344 HIGHPC not strictly higher than LOWPC.
8345
9a1edae6
PM
83462011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8347
8348 Fix formatting of function declarations returning a pointer in
8349 previous commit.
8350 * varobj.c (varobj_add_child): Ditto.
8351 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8352 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8353
24e9cda0
UW
83542011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8355
8356 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8357 for the "generic" vector ABI used with GCC 4.3 and later.
8358 (ppc64_sysv_abi_return_value): Likewise.
8359
83602011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8361
8362 * infcall.c (call_function_by_hand): Function return value is
8363 always a non_lval, even when using struct_return.
8364
c9174737
PA
83652011-03-15 Pedro Alves <pedro@codesourcery.com>
8366
8367 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8368 (map_display_numbers): New.
8369 (do_delete_display): New.
8370 (undisplay_command): Use map_display_numbers.
8371 (do_enable_disable_display): New.
8372 (enable_disable_display_command): New function.
8373 (enable_display): Delete.
8374 (enable_display_command): New.
8375 (disable_display_command): Reimplement.
8376 (_initialize_printcmd): Adjust "enable display" command to use
8377 `enable_display_command' as callback.
8378
350c6c65
PM
83792011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8380
8381 * NEWS: Add Python breakpoint 'stop' operation.
8382
824446ad
PM
83832011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8384
8385 * NEWS: Delete duplicate entry. Fix typo.
8386
2021ad3a
PM
83872011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8388
8389 Fix ARI warning about function names in first column.
8390 Put prototype declaration on same line as return type.
8391 * objc-exp.y: Ditto.
8392 * p-exp.y: Ditto.
8393 * python/py-stopevent.h: Ditto.
8394 For long function names, split parameters to
8395 allow function name on same line as return type.
8396 * solib-pa64.c: Ditto.
8397 * varobj.c: Ditto.
8398 * varobj.h: Ditto.
8399 For long function declaration, use single line.
8400 * hppa-tdep.h: Ditto.
8401 * inferior.h: Ditto.
8402
7371cf6d
PM
84032011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8404
8405 * python/python.h: Declare gdbpy_should_stop and
8406 gdbpy_breakpoint_has_py_cond.
8407 * python/python.c: Add python.h to includes. Remove python.h from
8408 HAVE_PYTHON definition
8409 (gdbpy_should_stop): New dummy function.
8410 (gdbpy_breakpoint_has_py_cond): New dummy function.
8411 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8412 sub-classing capabilities.
8413 (gdbpy_should_stop): New function.
8414 (gdbpy_breakpoint_has_py_cond): New function.
8415 (local_setattro): New function.
8416 * breakpoint.c (condition_command): Add check for Python 'stop'
8417 operation.
8418 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8419 operation function as part of stop/continue tests.
8420
37b50a69
TT
84212011-03-14 Tom Tromey <tromey@redhat.com>
8422
8423 PR gdb/12576:
8424 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8425 (needs_frame_dwarf_call): Likewise.
8426
eeae04df
PM
84272011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8428
8429 Fix ARI warning about functions without parameters that do not
8430 use (void).
8431 * breakpoint.c (all_tracepoints): Replace () by (void).
8432 * f-exp.y (match_string_literal): Ditto.
8433 (yylex): Ditto.
8434 * m2-exp.y (yylex): Ditto.
8435 * mep-tdep.c (current_me_module): Ditto.
8436 (current_options): Ditto.
8437 (current_cop_data_bus_width): Ditto.
8438 (current_cr_names): Ditto.
8439 (current_cr_is_float): Ditto.
8440 (current_ccr_names): Ditto.
8441 * objc-exp.y (yylex): Ditto.
8442 * p-exp.y (yylex): Ditto.
8443 * remote.c (send_interrupt_sequence): Ditto.
8444 * tracepoint.c (current_trace_status): Ditto.
8445 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8446 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8447
6dc3565d
MS
84482011-03-11 Michael Snyder <msnyder@vmware.com>
8449
1427fe5e
MS
8450 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8451 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8452 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8453 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8454 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8455
60bc018f
MS
8456 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8457 (delete_async_event_handler): Ditto.
8458
f3be5b64
MS
8459 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8460
4c2d5724
MS
8461 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8462
6dc3565d
MS
8463 * top.c (set_verbose): Assert showcmd was found.
8464
4e6ca6d5
MG
84652011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8466
8467 * xtensa-tdep.c (warning_once): Correct style issues.
8468
815a83e4
YQ
84692011-03-11 Yao Qi <yao@codesourcery.com>
8470
8471 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8472
f2eb0bc8
AS
84732011-03-11 Andreas Schwab <schwab@redhat.com>
8474
8475 * common/aclocal.m4: Remove.
8476
b801de47
MG
84772011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8478
8479 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8480 (xtensa_write_register, xtensa_read_register): Likewise.
8481 (xtensa_hextochar): Removed.
8482 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8483
dbab50de
MG
84842011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8485
8486 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8487 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8488 (xtensa_alloc_frame_cache): Add initialization for new fields.
8489 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8490 (warning_once): New function.
8491 (xtensa_insn_kind): New item c0opc_and.
8492 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8493 (call0_track_op): Change arguments. New local variable litbase.
8494 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8495 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8496 in the prologue.
dbab50de 8497 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8498 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8499 Add the variety of updates to handle extended prologues, which now can
8500 conduct dynamic stack adjustments.
8501 (call0_frame_cache): Likewise.
8502 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8503 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8504
b2c04452
MS
85052011-03-10 Michael Snyder <msnyder@vmware.com>
8506
f8f67713
MS
8507 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8508 (cmd_qtframe): Ditto.
8509 (cmd_qtbuffer): Ditto.
8510 (cmd_bigqtbuffer): Ditto.
8511
197f0a60
TT
85122011-03-10 Tom Tromey <tromey@redhat.com>
8513
8514 * tracepoint.c (trace_actions_command): Update.
8515 * thread.c (thread_apply_command): Update.
8516 * reverse.c (delete_bookmark_command): Update.
8517 (bookmarks_info): Update.
8518 * printcmd.c (undisplay_command): Update.
8519 * memattr.c (mem_enable_command): Update.
8520 (mem_disable_command): Update.
8521 (mem_delete_command): Update.
8522 * inferior.c (detach_inferior_command): Update.
8523 (kill_inferior_command): Update.
8524 (remove_inferior_command): Update.
8525 * cli/cli-utils.h (struct get_number_or_range_state): New.
8526 (init_number_or_range): Declare.
8527 (get_number_or_range): Update.
8528 * cli/cli-utils.c (init_number_or_range): New function.
8529 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8530 static variables.
8531 (number_is_in_list): Update.
8532 * breakpoint.h (get_tracepoint_by_number): Update.
8533 * breakpoint.c (map_breakpoint_numbers): Update for change to
8534 get_number_or_range.
8535 (find_location_by_number): Use get_number, not
8536 get_number_or_range.
8537 (trace_pass_set_count): New function.
8538 (trace_pass_command): Update for change to get_number_or_range.
8539 Rework loop logic.
8540 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8541 'state' parameter.
8542
ecec24e6
PM
85432011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8544
8545 * python/py-param.c (add_setshow_generic): Add set/show callback
8546 parameters. Register Python object context.
8547 (get_show_value): New function.
8548 (get_set_value): New function.
8549 (call_doc_function): New function.
8550 (get_doc_string): Move behind get_show_value/get_set_value.
8551
6d6c6b1f
JK
85522011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8553
8554 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8555
68d6df83
MG
85562011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8557
dbab50de 8558 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8559 (xtensa_write_register): Likewise.
8560 (xtensa_hextochar): Add comment and update to match coding conventions.
8561 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8562 (execute_l32e, execute_s32e, execute_code): Update comments.
8563 (xtensa_exception_handler_t): Update to match coding conventions.
8564 (xtensa_insn_kind): Likewise.
8565
85c9d6a6
MS
85662011-03-09 Michael Snyder <msnyder@vmware.com>
8567
8568 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8569
91495617
PA
85702011-03-09 Pedro Alves <pedro@codesourcery.com>
8571
8572 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8573
eb8c0621
TT
85742011-03-09 Tom Tromey <tromey@redhat.com>
8575
8576 * thread.c (restore_selected_frame): Handle frame_level == -1.
8577 (make_cleanup_restore_current_thread): Use
8578 get_selected_frame_if_set.
8579 * frame.h (get_selected_frame_if_set): Declare.
8580 * frame.c (get_selected_frame_if_set): New function.
8581
9f37bbcc
PA
85822011-03-09 Pedro Alves <pedro@codesourcery.com>
8583
8584 * cli/cli-cmds.c (shell_escape): Use lbasename.
8585 * coffread.c (coff_start_symtab): Constify parameter.
8586 (complete_symtab): Constify `name' parameter.
8587 (coff_symtab_read): Constify `filestring' local.
8588 (coff_getfilename): Constify return and `result' local.
8589 Use lbasename.
8590 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8591 * linux-fork.c (info_checkpoints_command): Use lbasename.
8592 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8593 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8594 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8595 * procfs.c (procfs_make_note_section): Use lbasename.
8596 * tui/tui-io.c (printable_part): Constity return and parameter.
8597 Use lbasename.
8598 (print_filename): Constify parameters, and local `s'.
8599 (tui_rl_display_match_list): Constify local `temp'.
8600
f8de3c55
JK
86012011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8602
8603 Revert:
8604 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8605 Fix DWARF-3+ DW_AT_accessibility default assumption.
8606 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8607 cu->header.version >= 3.
8608
d9837b00
YQ
86092011-03-09 Yao Qi <yao@codesourcery.com>
8610
8611 * common/Makefile.in: Remove.
8612 * common/configure: Remove.
8613 * common/configure.ac: Remove.
8614
e637a4f5
YQ
86152011-03-09 Yao Qi <yao@codesourcery.com>
8616
8617 Revert:
8618 2011-02-11 Yao Qi <yao@codesourcery.com>
8619
8620 * common/Makefile.in: Add copyright header.
8621
8622 2011-02-11 Yao Qi <yao@codesourcery.com>
8623
8624 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8625 libcommon.a.
8626 * configure.ac: Add common to sub dir.
8627 * configure: Regenerate.
8628
f976a05d
MG
86292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8630
8631 * xtensa-tdep.c (call0_ret): New function.
8632 (xtensa_skip_prologue): Speed up analysis.
8633
57041825
MG
86342011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8635
8636 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8637 while executing MI command -data-list-changed-registers.
8638
08b9c608
MG
86392011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8640
8641 * xtensa-tdep.c (xtensa_read_register): New function.
8642 (xtensa_write_register): New function.
8643 (xtensa_find_register_by_name): New function.
8644 (xtensa_windowed_frame_cache): Update comments in type description.
8645 (xtensa_frame_cache): Likewise.
8646 (xtensa_window_interrupt_insn): New function.
8647 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8648 (xtensa_insn_kind): Add new instructions.
8649 (rwx_special_register): New function.
8650 (call0_classify_opcode): Add new instructions to the analysis.
8651 (a0_saved, a7_saved, a11_saved): New variables.
8652 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8653 (execute_l32e): New function.
8654 (execute_s32e): New function.
8655 (xtensa_exception_handler_t): New type.
8656 (execute_code): New function.
8657 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8658 analysis for Xtensa Window Exception handlers.
8659
4d1acb11
MG
86602011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8661
98689b25
MG
8662 * xtensa-tdep.c (TX_PS): New.
8663 (windowing_enabled): Update to count for Call0 ABI.
8664 (xtensa_hextochar): New.
8665 (xtensa_init_reggroups): Make algorithm generic.
8666 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8667
86682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8669
8670 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8671
d3f323f3
MS
86722011-03-08 Michael Snyder <msnyder@vmware.com>
8673
3dcabaa8
MS
8674 * i386-tdep.c (i386_follow_jump): Check return value of
8675 target_read_memory.
8676 (i386_analyze_struct_return): Ditto.
8677 (i386_skip_probe): Ditto.
8678 (i386_match_insn): Ditto.
8679 (i386_skip_noop): Ditto.
8680 (i386_analyze_frame_setup): Ditto.
8681 (i386_analyze_register_saves): Ditto.
8682 (i386_skip_prologue): Ditto.
8683 (i386_skip_main_prologue): Ditto.
8684
13b3fd9b
MS
8685 * target.c (read_whatever_is_readable): Fix memory leak.
8686
d3f323f3
MS
8687 * i386-tdep.c (i386_process_record): Document fall through.
8688
421d5c74
JK
86892011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8690
8691 Fix DWARF-3+ DW_AT_accessibility default assumption.
8692 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8693 cu->header.version >= 3.
8694
63154eca
PA
86952011-03-08 Pedro Alves <pedro@codesourcery.com>
8696
8697 * remote.c (remote_check_symbols): Skip if the target has no
8698 execution.
8699
f1a507a1
JB
87002011-03-08 Joel Brobecker <brobecker@adacore.com>
8701
8702 * target.c (read_whatever_is_readable): Reformat comment,
8703 with a minor typo fix. Minor reformatting of the code.
8704
36073a92
YQ
87052011-03-08 Yao Qi <yao@codesourcery.com>
8706
8707 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8708 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8709 Use cached result instead of calling displaced_in_arm_mode again.
8710 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8711 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8712 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8713 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8714 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8715 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8716 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8717 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8718 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8719 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8720 (arm_catch_kernel_helper_return): Likewise.
8721 * gdb/arm-tdep.h : Update function declarations.
8722
d3f323f3 87232011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8724
e0e40094
MS
8725 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8726
0b2381f5
MS
8727 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8728
0350914a
MS
8729 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8730
69feea6f
MS
8731 * elfread.c (elf_symtab_read): Stop memory leak.
8732
e6040cbd
MS
8733 * main.c (captured_main): Fix memory leak.
8734
052874e8
AS
87352011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8736
8737 * ada-lang.c (compare_names): Call is_name_suffix with string1
8738 instead of string2.
8739
b11896a5
TT
87402011-03-07 Tom Tromey <tromey@redhat.com>
8741
8742 * xcoffread.c (xcoff_sym_fns): Update.
8743 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8744 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8745 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8746 (symbol_file_add_with_addrs_or_offsets): Likewise.
8747 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8748 * somread.c (som_sym_fns): Update.
8749 * psymtab.h (require_partial_symbols): Declare.
8750 * psymtab.c (require_partial_symbols): New function.
8751 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8752 (ALL_OBJFILE_PSYMTABS): Undef.
8753 (ALL_PSYMTABS): Move from psympriv.h.
8754 (lookup_partial_symtab, find_pc_sect_psymtab)
8755 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8756 (find_last_source_symtab_from_partial)
8757 (forget_cached_source_info_partial)
8758 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8759 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8760 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8761 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8762 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8763 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8764 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8765 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8766 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8767 psymtabs.
8768 * mipsread.c (ecoff_sym_fns): Update.
8769 * machoread.c (macho_sym_fns): Update.
8770 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8771 (read_psyms): New function.
8772 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8773 (elf_sym_fns_lazy_psyms): New global.
8774 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8775 dwarf2_build_psymtabs.
8776 * dbxread.c (aout_sym_fns): Update.
8777 * coffread.c (coff_sym_fns): Update.
8778
fda326dd
TT
87792011-03-07 Tom Tromey <tromey@redhat.com>
8780
8781 * infrun.c (print_exited_reason): Include inferior id and pid in
8782 message.
8783
aeaec162
TT
87842011-03-07 Tom Tromey <tromey@redhat.com>
8785
8786 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8787 parameter.
8788 (target_has_execution_1): Update.
8789 (target_has_execution_current): Declare.
8790 (target_has_execution): Call target_has_execution_current.
8791 (default_child_has_execution): Update.
8792 * target.c (default_child_has_execution): Add 'the_ptid'
8793 parameter.
8794 (target_has_execution_1): Likewise.
8795 (target_has_execution_current): New function.
8796 (add_target): Update.
8797 (init_dummy_target): Update.
8798 * remote-m32r-sdi.c (m32r_has_execution): New function.
8799 (init_m32r_ops): Use it.
8800 * record.c (record_core_has_execution): Now static. Add
8801 'the_ptid' parameter.
8802 * inferior.c (have_live_inferiors): Don't save current thread.
8803 Use target_has_execution_1.
8804
08e14083
YQ
88052011-03-07 Yao Qi <yao@codesourcery.com>
8806
8807 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8808
c05d19c5
JB
88092011-03-07 Joel Brobecker <brobecker@adacore.com>
8810
8811 * elfread.c (elf_symtab_read): Minor reformatting.
8812
3e6ef9e4
JB
88132011-03-07 Joel Brobecker <brobecker@adacore.com>
8814
8815 * objc-lang.c (selectors_info): Minor reformatting.
8816
dbb8534f
JB
88172011-03-07 Joel Brobecker <brobecker@adacore.com>
8818
8819 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8820
dd70cc93
JB
88212011-03-07 Joel Brobecker <brobecker@adacore.com>
8822 Michael Snyder <msnyder@vmware.com>
8823
8824 * ada-valprint.c (ada_val_print_array): Move the declaration of
8825 "byte_order" and "elttype" inside the block where these variables
8826 are actually used. Remove some special handling for the case
8827 where "elttype" and "eltlen" are null. Replace by a comment
8828 and a couple of assertion checks.
8829
b27cf2b3
MS
88302011-03-05 Michael Snyder <msnyder@vmware.com>
8831
8832 * source.c (add_path): Replace semicolon at end of block.
8833 * dwarf2expr.c (execute_stack_op): Ditto.
8834
5387a0c6
MF
88352011-03-05 Mike Frysinger <vapier@gentoo.org>
8836
8837 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8838 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8839 (bfin-*-*): Likewise.
8840
e3aa49af
MS
88412011-03-05 Michael Snyder <msnyder@vmware.com>
8842
82ae4854
MS
8843 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8844 * mdebugread.c (parse_symbol): Ditto.
8845 * parse.c (parse_exp_in_context): Ditto.
8846 * source.c (add_path): Ditto.
8847 * utils.c (gnu_debuglink_crc32): Ditto.
8848 * varobj.c (variable_language): Ditto.
8849
e3aa49af
MS
8850 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8851
154f592e
MS
88522011-03-04 Michael Snyder <msnyder@vmware.com>
8853
da3ecdc6
MS
8854 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8855
9cc89665
MS
8856 * symfile.c (simple_overlay_update): Check for null return value
8857 from lookup_minimal_symbol.
8858
154f592e
MS
8859 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8860
63ffa6ee
TJB
88612011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8862
8863 * eval.c (parse_and_eval_address_1): Remove function.
8864 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8865 instead of parse_and_eval_address_1.
8866 * value.h (parse_and_eval_address_1): Remove prototype.
8867
a17d146e
MS
88682011-03-04 Michael Snyder <msnyder@vmware.com>
8869
8870 * remote.c (putpkt_binary): Document that case stmt falls through.
8871
1a6a67de
TJB
88722011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8873
8874 * breakpointc (print_it_typical): Move NULL check from here...
8875 (print_bp_stop_message): ... to here.
8876
488919c4
MS
88772011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8878
8879 * breakpoint.c (enable_command): Use break instead of continue,
8880 and fill in a missing break.
8881 (disable_command): Ditto.
8882
1e182ce8
UW
88832011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8884
8885 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8886 (terminal_save_ours): Remove misleading comment.
8887 (inflow_inferior_data_cleanup): Free ttystate.
8888 (inflow_inferior_exit): Likewise.
8889 (copy_terminal_info): Copy ttystate.
8890
8891 * serial.c (serial_copy_tty_state): New function.
8892 * serial.h (serial_copy_tty_state): Add prototype.
8893 (struct serial_ops): Add copy_tty_state callback.
8894 * ser-base.c (ser_base_copy_tty_state): New function.
8895 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8896 * ser-go32.c (dos_copy_tty_state): New function.
8897 (dos_ops): Install copy_tty_state callback.
8898 * ser-mingw.c (_initialize_ser_windows): Likewise.
8899 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8900 * ser-unix.c (hardwire_copy_tty_state): New function.
8901 (_initialize_ser_hardwire): Install it.
8902
b2c5f112
MS
89032011-03-04 Michael Snyder <msnyder@vmware.com>
8904
2abae994
MS
8905 * breakpoint.c (create_breakpoint): Add missing break statement.
8906
7f5936f9
MS
8907 Reverting this patch:
8908 * infcall.c (call_function_by_hand): Add break statements for lint.
8909
b2c5f112
MS
8910 Reverting this patch:
8911 * cli/cli-script.c (script_from_file): Add break for lint.
8912
42b1321c
MS
89132011-03-04 Michael Snyder <msnyder@vmware.com>
8914
8915 * solib.c (reload_shared_libraries_1): Close memory leak.
8916
3e2a0cee
TT
89172011-03-03 Tom Tromey <tromey@redhat.com>
8918
8919 PR gdb/12538:
8920 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8921 DW_STRING is NULL.
8922
58397cb7
MS
89232011-03-03 Michael Snyder <msnyder@vmware.com>
8924
2e3fd767
MS
8925 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8926 fields of struct 'st' to zero.
8927
58397cb7
MS
8928 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8929 sal.pspace before calling set_current_source_symtab_and_line.
8930
ced54c8f
YQ
89312011-03-03 Yao Qi <yao@codesourcery.com>
8932
8933 * Makefile.in (configure-common): Remove. Let Makefile
8934 in dir common to rebuild itself.
8935 (common/Makefile): Likewise.
8936
3351ea09
JB
89372011-03-03 Joel Brobecker <brobecker@adacore.com>
8938
8939 * utils.c (parse_escape): Add i18n markup in error message.
8940
bf9f652a
YQ
89412011-03-03 Yao Qi <yao@codesourcery.com>
8942
8943 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8944 ARM_PC_REGNUM.
8945 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8946 (displaced_write_reg, displaced_read_reg): Likewise.
8947 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8948 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8949 (cleanup_branch): Replace magic number 14 and 15 with
8950 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8951
d42de051
MS
89522011-03-02 Michael Snyder <msnyder@vmware.com>
8953
240f9570
MS
8954 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8955
10dd8b54
MS
8956 * cli/cli-script.c (script_from_file): Add break for lint.
8957
b98bd911
MS
8958 * mdebugread.c (parse_partial_symbols): Fix indent.
8959
3494b66d
MS
8960 * target-descriptions.c (tdesc_gdb_type): No need to call
8961 xstrdup, callee saves a copy.
8962
daac021a
MS
8963 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8964
c38d16a7
MS
8965 * infcall.c (call_function_by_hand): Add break statements for lint.
8966
905b671b
MS
8967 * utils.c (parse_escape): Escape the escape char.
8968
f2eb0bc8 8969 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8970 PyList_Append fails.
8971 (gdbpy_inferiors): Error out if build_inferior_list fails.
8972
8c6a60d1
MS
8973 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8974 a function call.
8975
d42de051
MS
8976 * record.c (record_restore): Move printf to before error return.
8977
4db71c0b
YQ
89782011-03-02 Yao Qi <yao@codesourcery.com>
8979
8980 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8981 is_thumb and insn_size.
8982 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8983 on both ARM and Thumb mode.
8984 (arm_process_displaced_insn): Set is_thumb and insn_size.
8985 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8986 (arm_displaced_step_fixup): Likewise.
8987
a9dc8dcc
MS
89882011-03-01 Michael Snyder <msnyder@vmware.com>
8989
53624a93
MS
8990 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8991
77766669
MS
8992 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8993
62d5b8da
MS
8994 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8995
5e9e105f
MS
8996 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8997
dc19db01
MS
8998 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8999 with xmalloc.
9000
5ce64950
MS
9001 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9002 which shadows function parameter.
9003
a0aa2878
MS
9004 * tracepoint.c (create_tsv_from_upload): Superfluous call
9005 to xstrdup. Callee already calls xstrdup.
9006
e325fb69
MS
9007 * linespec.c (decode_line_1): Remove unnecessary null check.
9008
21cbba77
MS
9009 * tracepoint.c (scope_info): Fix mem leak, remove underused
9010 variable.
9011
63360adc
MS
9012 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9013 superfluous null check.
9014
18ea20ac 9015 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9016 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9017
d014929c
MS
9018 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9019
6e9130cf
MS
9020 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9021 be null.
9022
5f01dbc0
MS
9023 * linespec.c (decode_line_1): Check for null before dereference.
9024
d684ab85
MS
9025 * reverse.c (record_restore): Move null-check to before pointer
9026 dereference.
9027
bfffb7e3
MS
9028 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9029
a9dc8dcc
MS
9030 * objc-lang.c (selectors_info): Add explanitory comment.
9031 (classes_info): Ditto.
9032
478fd957
UW
90332011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9034
9035 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9036 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9037 versions of the trampoline. Handle Thumb vs. ARM addresses.
9038 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9039 (arm_linux_init_abi): Install it.
9040 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9041 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9042
0480cefa
MS
90432011-02-28 Michael Snyder <msnyder@vmware.com>
9044
ac50ab3b
MS
9045 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9046 a little bigger, to avoid possibility of an overflow.
9047
f63fbe86
MS
9048 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9049 buffers a little bigger, to avoid possibility of an overflow.
9050
9e91a352
MS
9051 * coffread.c (coff_getfilename): Add check to avoid overflow.
9052
f2eb0bc8 9053 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9054 avoid overflow.
9055 (classes_info): Error out on too long REGEXP.
9056
098ab512
MS
9057 * infrun.c (handle_inferior_event): Remove unused function call.
9058
bcbd1de9
MS
9059 * fork-child.c (fork_inferior): Remove ifdef'd code and
9060 unused variable.
9061
2e456570
MS
9062 * linux-thread-db.c (attach_thread): Discard unused value.
9063
14571dad
MS
9064 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9065
a9cbf802
MS
9066 * remote.c (remote_get_noisy_reply): Discard unused value.
9067 (remote_vcont_resume): Ditto.
9068 (remote_stop_ns): Ditto.
9069
5715d26e
MS
9070 * linespec.c (decode_objc): Delete unused variable.
9071
4a9bca80
MS
9072 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9073
f47fb265
MS
9074 * dwarf2read.c (add_partial_symbol): Discard unused values.
9075 (read_base_type): Delete unused variable.
9076
e81cff30
MS
9077 * dbxread.c (read_dbx_symtab): Discard unused value.
9078
262acaeb
MS
9079 * eval.c (evaluate_subexp_standard): Delete unused variable,
9080 and discard unused values.
9081
df983543
MS
9082 * infcmd.c (_initialize_infcmd): Discard unused values.
9083
89acf84d
MS
9084 * stabsread.c (rs6000_builtin_type): Missing break statement.
9085
ab8b8aca
MS
9086 * dbxread.c (process_one_symbol): Discard unused value.
9087
6b4511ab
MS
9088 * coffread.c (coff_end_symtab): Delete unused variable.
9089
e8e80198
MS
9090 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9091 (dwarf2_add_typedef): Delete unused variable.
9092 (read_namespace): Ditto.
9093 (dwarf_decode_macros): Ditto.
9094
976aa66e
MS
9095 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9096
5b92b49f
MS
9097 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9098
91e8df85
MS
9099 * p-valprint.c (pascal_val_print): Discard unused value.
9100
899500d6
MS
9101 * utils.c (nquery): Call va_end before return;
9102 (yquery): Ditto.
9103 (query): Ditto.
9104
0480cefa
MS
9105 * proc-service.c (ps_plog): Call va_end before return.
9106
fb6a3ed3
TT
91072011-02-28 Tom Tromey <tromey@redhat.com>
9108
9109 * python/python.c (gdbpy_value_cst): New global.
9110 (_initialize_python): Initialize it.
9111 * python/python-internal.h (gdbpy_value_cst): Declare.
9112 * python/py-value.c (convert_value_from_python): Use
9113 gdbpy_value_cst.
9114
c05202a1
MS
91152011-02-28 Michael Snyder <msnyder@vmware.com>
9116
e463f587
MS
9117 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9118
c38eea1a
MS
9119 * breakpoint.c (catch_syscall_completer): Free malloced list.
9120
3ef09ab5
MS
9121 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9122
8f9a01ee
MS
9123 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9124 (lval_func_check_synthetic_pointer): Ditto.
9125 (lval_func_free_closure): Fix use-after-free.
c05202a1 9126
477d0d57
TT
91272011-02-28 Tom Tromey <tromey@redhat.com>
9128
9129 * psymtab.c (expand_partial_symbol_tables): Use
9130 ALL_OBJFILE_PSYMTABS.
9131
20937029
JK
91322011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9133
9134 * objc-lang.c (selectors_info): Error on too long REGEXP.
9135
907b7f4f
MS
91362011-02-28 Michael Snyder <msnyder@vmware.com>
9137
92e96192
MS
9138 * python/py-param.c (set_parameter_value): Add missing
9139 break statement.
9140
907b7f4f
MS
9141 * linux-record.c (record_linux_system_call): Add missing
9142 break statement.
9143
12c5a436
UW
91442011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9145
9146 * breakpoint.c (print_one_breakpoint_location): Remove unused
9147 argument PRINT_ADDRESS_BITS. Update callers.
9148 (print_one_breakpoint): Likewise.
9149
170b53b2
UW
91502011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9151
9152 * breakpoint.c (wrap_indent_at_field): New function.
9153 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9154 Allocate ui_stream locally instead of using STB argument.
9155 (print_one_breakpoint_location): Update call.
9156 * ui-out.c (ui_out_query_field): New function.
9157 * ui-out.h (ui_out_query_field): Add prototype.
9158
8ab1f94d
JB
91592011-02-28 Joel Brobecker <brobecker@adacore.com>
9160
9161 From Michael Snyder <msnyder@vmware.com>
9162 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9163
7d488639
MS
91642011-02-27 Michael Snyder <msnyder@vmware.com>
9165
ae179fba
MS
9166 * objc-lang.c (selectors_info): Prevent string overrun.
9167
086dbf66
MS
9168 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9169 error in strncpy.
9170
f2eb0bc8 9171 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9172 outer scope.
9173
7d488639
MS
9174 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9175 param with a local variable of the same name.
9176
3bd0f5ef
MS
91772011-02-27 Michael Snyder <msnyder@vmware.com>
9178
9179 * value.c (value_from_history_ref): New function.
9180 * value.h (value_from_history_ref): Export.
9181 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9182 to parse value history references.
9183 * cli/cli-utils.h (get_number_trailer): Update comment.
9184
91852011-02-27 Michael Snyder <msnyder@vmware.com>
9186
9187 * inferior.c (detach_inferior_command): Use get_number_or_range.
9188 (kill_inferior_command): Ditto.
9189 (remove_inferior_command): Ditto.
9190 (initialize_inferiors): Make command names plural.
9191 Update help strings.
9192
766062f6
MS
91932011-02-27 Michael Snyder <msnyder@vmware.com>
9194
9195 * darwin-nat-info.c: Fix comment typo.
9196 * dwarf2expr.h: Ditto.
9197 * fbsd-nat.c: Ditto.
9198 * fbsd-nat.h: Ditto.
9199 * frame-unwind.h: Ditto.
9200 * frame.h: Ditto.
9201 * hppa-hpux-tdep.c: Ditto.
9202 * i386-linux-nat.c: Ditto.
9203 * linux-nat.c: Ditto.
9204 * nbsd-nat.c: Ditto.
9205 * nbsd-nat.h: Ditto.
9206 * ppc-linux-tdep.c: Ditto.
9207 * serial.c: Ditto.
9208 * ui-file.h: Ditto.
9209 * tui/tui-winsource.c: Ditto.
9210
f2c4ead5
MS
92112011-02-26 Michael Snyder <msnyder@vmware.com>
9212
86b887df
MS
9213 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9214
66fd3b1e
MS
9215 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9216
8c814cdd
MS
9217 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9218 with a local variable of the same name.
9219
6d5e094a 9220 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9221 param with a local variable of the same name.
6d5e094a 9222 (i387_supply_xsave): Ditto.
e5b3d7d6 9223
5eee517d
MS
9224 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9225 that it does not shadow a function parameter.
9226
8fbf6b93
MS
9227 * i386-nat.c (i386_length_and_rw_bits): Document that case
9228 statement is meant to fall through.
9229
cb969d61
MS
9230 * expprint.c (dump_subexp_body_standard): Document that case
9231 statement is meant to fall through.
9232
f2c4ead5
MS
9233 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9234 dead if statement. Condition can't be false.
9235
b021a221
MS
92362011-02-25 Michael Snyder <msnyder@vmware.com>
9237
9238 * arm-tdep.c: Fix typos in comments.
9239 * bsd-uthread.c: Ditto.
9240 * completer.c: Ditto.
9241 * corelow.c: Ditto.
9242 * cp-namespace.c: Ditto.
9243 * cp-support.c: Ditto.
9244 * cris-tdep.c: Ditto.
9245 * dbxread.c: Ditto.
9246 * dwarf2read.c: Ditto.
9247 * frame.h: Ditto.
9248 * gdbtypes.h: Ditto.
9249 * inferior.h: Ditto.
9250 * mdebugread.c: Ditto.
9251 * mips-tdep.c: Ditto.
9252 * ppc-linux-nat.c: Ditto.
9253 * ppc-linux-tdep.c: Ditto.
9254 * printcmd.c: Ditto.
9255 * sol-thread.c: Ditto.
9256 * solib-frv.c: Ditto.
9257 * solist.h: Ditto.
9258 * sparc64-tdep.c: Ditto.
9259 * spu-tdep.c: Ditto.
9260 * stabsread.c: Ditto.
9261 * symfile.c: Ditto.
9262 * valops.c: Ditto.
9263 * varobj.c: Ditto.
9264 * vax-nat.c: Ditto.
9265 * python/py-block.c: Ditto.
9266 * python/py-symbol.c: Ditto.
9267 * python/py-symtab.c: Ditto.
9268 * python/py-value.c: Ditto.
9269 * tui/tui-win.c: Ditto.
9270
c82c0b55
MS
92712011-02-25 Michael Snyder <msnyder@vmware.com>
9272
9273 * inferior.c (print_inferior): Accept a string instead of an int
9274 for requested_inferiors, and use get_number_or_range to parse it.
9275 (info_inferiors_command): Pass args string to print_inferior.
9276 (initialize_inferiors): Change help string for info inferiors.
9277 * inferior.h (print_inferior): Export prototype change.
9278
ee00cd23
TT
92792011-02-25 Tom Tromey <tromey@redhat.com>
9280
9281 * common/ax.def (invalid2): Set to 0x31.
9282
0502ed8c
JK
92832011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9284
9285 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9286 L and plongest.
9287 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9288 use L and plongest.
9289 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9290
2c9de912
MS
92912011-02-24 Michael Snyder <msnyder@vmware.com>
9292
9293 * Makefile.in (clean): Make clean should remove generated files
9294 observer.h and observer.inc.
9295
a04b0428
JB
92962011-02-24 Joel Brobecker <brobecker@adacore.com>
9297
9298 Revert the following patch (not approved yet):
9299 2011-02-21 Hui Zhu <teawater@gmail.com>
9300 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9301 * ax-gdb.c (gen_printf_expr_callback): New function.
9302 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9303 * ax-general.c (ax_memcpy): New function.
9304 (ax_print): Handle "printf".
9305 (ax_reqs): Ditto.
9306 * ax.h (ax_memcpy): Forward declare.
9307 * common/ax.def (invalid2): Removed.
9308 (printf): New entry.
9309 * printcmd.c (printcmd.h): New include.
9310 (string_printf): New function.
9311 (ui_printf): Removed.
9312 (printf_command): Remove static. Call string_printf.
9313 (eval_command): Call string_printf.
9314 * printcmd.h: New file.
9315 * tracepoint.c (validate_actionline,
9316 encode_actions_1): handle printf_command.
9317
2b52013f
TT
93182011-02-23 Tom Tromey <tromey@redhat.com>
9319
9320 * ax-general.c (ax_pick): Add missing newline.
9321
e5a67952
MS
93222011-02-23 Michael Snyder <msnyder@vmware.com>
9323
9324 * breakpoint.c (breakpoint_1): Change first argument from an int
9325 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9326 breakpoints rather than just one. Use new function
e5a67952
MS
9327 'number_is_in_list' to implement.
9328 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9329 (watchpoints_info): Ditto.
9330 (tracepoints_info): Ditto.
9331 (maintenance_info_breakpoints): Ditto.
9332 (_initialize_breakpoint): Update help strings to reflect the fact
9333 that these functions can now take more than one argument.
9334 * cli/cli-utils.c (number_is_in_list): New function.
9335 * cli/cli-utils.h (number_is_in_list): Export.
9336
93372011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9338
9339 * memattr.c (mem_enable_command): Use get_number_or_range.
9340 (mem_disable_command): Ditto.
9341 (mem_delete_command): Ditto.
9342 (_initialize_mem): Tweak usage message to reflect multiple
9343 arguments.
9344
6e6fbe60
DE
93452011-02-22 Doug Evans <dje@google.com>
9346
9347 Add gdb.lookup_global_symbol python function.
9348 * NEWS: Add entry.
9349 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9350 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9351 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9352
79b97fa8
TT
93532011-02-22 Tom Tromey <tromey@redhat.com>
9354
9355 * language.c (language_class_name_from_physname): Rename
9356 'curr_language' argument to 'lang'; use in body.
9357
298f437a
MS
93582011-02-22 Michael Snyder <msnyder@vmware.com>
9359
9360 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9361
b7ea3126
PA
93622011-02-22 Pedro Alves <pedro@codesourcery.com>
9363
9364 * frame-unwind.h: Fix comment to mention the this frame, not the
9365 next.
9366
58ee6d60
TT
93672011-02-22 Tom Tromey <tromey@redhat.com>
9368
9369 * symfile.c (auto_solib_limit): Remove.
9370 * symfile.h (auto_solib_limit): Remove.
9371
36238dbc
JB
93722011-02-22 Joel Brobecker <brobecker@adacore.com>
9373
9374 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9375
aea5b279
MS
93762011-02-21 Michael Snyder <msnyder@vmware.com>
9377
9378 * gdbthread.h (print_thread_info): Change prototype.
9379 * thread.c (print_thread_info): Accept char* instead of int for
9380 requested_threads argument. Use new function number_is_in_list
9381 to determine which threads to list.
9382 (info_threads_command): Pass char* to print_thread_info.
9383 * cli/cli-utils.c (number_is_in_list): New function.
9384 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9385 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9386 print_thread_info.
9387 (print_one_inferior): Ditto.
9388 (mi_cmd_list_thread_groups): Ditto.
9389
8caa75ee
JK
93902011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9391
9392 * common/Makefile.in (CFLAGS): New.
9393 (COMPILE): Add $(CFLAGS).
9394
ea666128
TT
93952011-02-21 Tom Tromey <tromey@redhat.com>
9396
9397 * breakpoint.c (catch_syscall_command_1): Fix typo.
9398
e9cafbcc
TT
93992011-02-21 Tom Tromey <tromey@redhat.com>
9400
9401 * reverse.c: Include cli-utils.h.
9402 * printcmd.c: Include cli-utils.h.
9403 (string_printf): Use skip_spaces.
9404 * cli/cli-utils.h: New file.
9405 * cli/cli-utils.c: New file.
9406 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9407 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9408 * breakpoint.h (get_number, get_number_or_range): Move to
9409 cli-utils.h.
9410 * breakpoint.c: Include cli-utils.h.
9411 (get_number_trailer, get_number, get_number_or_range)
9412 (ep_skip_leading_whitespace): Move to cli-utils.c.
9413 (create_breakpoint_sal, find_condition_and_thread)
9414 (decode_static_tracepoint_spec, watch_command_1)
9415 (watch_maybe_just_location, ep_parse_optional_if_clause)
9416 (catch_fork_command_1, catch_exec_command_1)
9417 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9418 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9419 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9420 (HFILES_NO_SRCDIR): Add cli-utils.h.
9421 (cli-utils.o): New target.
9422
f67fd822
PM
94232011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9424
9425 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9426 before calling discard_all_inferiors.
9427
c9def01d
UW
94282011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9429
9430 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9431 (struct builtin_opencl_type): Remove.
9432 (builtin_opencl_type): Change return type to "struct type **".
9433 (lookup_opencl_vector_type): Update caller.
9434 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9435 (build_opencl_types): Install plain array of "struct type *"
9436 instead of "struct builtin_opencl_type".
9437
e3039479
UW
94382011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9439 Ulrich Weigand <uweigand@de.ibm.com>
9440
9441 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9442 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9443 (struct arm_linux_hwbp_cap): New type.
9444 (arm_linux_get_hwbp_cap): New function.
9445 (arm_linux_get_hw_breakpoint_count): Likewise.
9446 (arm_linux_get_hw_watchpoint_count): Likewise.
9447 (arm_linux_can_use_hw_breakpoint): Likewise.
9448 (arm_hwbp_type): New type.
9449 (arm_hwbp_control_t): Likewise.
9450 (struct arm_linux_hw_breakpoint): Likewise.
9451 (struct arm_linux_thread_points): Likewise.
9452 (arm_threads): New global variable.
9453 (arm_linux_find_breakpoints_by_tid): New function.
9454 (arm_hwbp_control_initialize): Likewise.
9455 (arm_hwbp_control_is_enabled): Likewise.
9456 (arm_hwbp_control_disable): Likewise.
9457 (arm_linux_hw_breakpoint_initialize): Likewise.
9458 (arm_linux_get_hwbp_type): Likewise.
9459 (arm_linux_hw_watchpoint_initialize): Likewise.
9460 (arm_linux_hw_breakpoint_equal): Likewise.
9461 (arm_linux_insert_hw_breakpoint1): Likewise.
9462 (arm_linux_remove_hw_breakpoint1): Likewise.
9463 (arm_linux_insert_hw_breakpoint): Likewise.
9464 (arm_linux_remove_hw_breakpoint): Likewise.
9465 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9466 (arm_linux_insert_watchpoint): Likewise.
9467 (arm_linux_remove_watchpoint): Likewise.
9468 (arm_linux_stopped_data_address): Likewise.
9469 (arm_linux_stopped_by_watchpoint): Likewise.
9470 (arm_linux_watchpoint_addr_within_range): Likewise.
9471 (arm_linux_new_thread): Likewise.
9472 (arm_linux_thread_exit): Likewise.
9473 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9474 related target callbacks. Register arm_linux_new_thread and
9475 arm_linux_thread_exit.
9476 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9477 * arm-tdep.c (arm_pc_is_thumb): Make global.
9478 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9479
b5db5dfc
UW
94802011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9481
9482 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9483 per-frame locations while within a function epilogue.
9484
e25b2cfa
PM
94852011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9486
9487 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9488 to GNU coding standards.
9489
4af53f97
PM
94902011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9491
9492 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9493 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9494 (ser_windows_close): Only call CancelIo if function exists.
9495 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9496 to check for existence of CancelIo function in kernel32 DLL.
9497
d0e92d82
HZ
94982011-02-21 Hui Zhu <teawater@gmail.com>
9499
9500 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9501 * ax-gdb.c (gen_printf_expr_callback): New function.
9502 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9503 * ax-general.c (ax_memcpy): New function.
9504 (ax_print): Handle "printf".
9505 (ax_reqs): Ditto.
9506 * ax.h (ax_memcpy): Forward declare.
9507 * common/ax.def (invalid2): Removed.
9508 (printf): New entry.
9509 * printcmd.c (printcmd.h): New include.
9510 (string_printf): New function.
9511 (ui_printf): Removed.
9512 (printf_command): Remove static. Call string_printf.
9513 (eval_command): Call string_printf.
9514 * printcmd.h: New file.
9515 * tracepoint.c (validate_actionline,
9516 encode_actions_1): handle printf_command.
9517
7d357efd
MS
95182011-02-19 Michael Snyder <msnyder@vmware.com>
9519
9520 * reverse.c (delete_one_bookmark): Argument is now bookmark
9521 id rather than pointer to bookmark struct.
9522 (delete_bookmark_command): Use get_number_or_range.
9523 (goto_bookmark_command): Parse with get_number instead of strtoul.
9524 (bookmark_1): New function. Print info for one bookmark.
9525 (bookmarks_info): Use get_number_or_range and bookmark_1.
9526
7a45ebd7
MS
95272011-02-18 Michael Snyder <msnyder@vmware.com>
9528
f2eb0bc8 9529 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9530 get_number_or_range.
65ebfb52 9531 (thread_apply_command): Ditto.
7a45ebd7 9532
94d5e490
TT
95332011-02-18 Tom Tromey <tromey@redhat.com>
9534
9535 * common/ax.def: New file.
9536 * ax.h (enum agent_op): Use ax.def.
9537 * ax-general.c (aop_map): Use ax.def.
9538
c7f96d2b
TT
95392011-02-18 Tom Tromey <tromey@redhat.com>
9540
9541 * ax-general.c (aop_map): Add pick and rot.
9542 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9543 <DW_OP_rot>: Implement.
9544 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9545 (ax_pick): Declare.
9546 * ax-general.c (ax_pick): New function.
9547
66694b75
TT
95482011-02-18 Tom Tromey <tromey@redhat.com>
9549
9550 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9551
eeaafae2
JK
95522011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9553 Tom Tromey <tromey@redhat.com>
9554
9555 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9556 make_symbol_overload_list_block with NULL BLOCK.
9557 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9558
3c3fe74c
PA
95592011-02-18 Pedro Alves <pedro@codesourcery.com>
9560
9561 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9562 * breakpoint.h (get_number_or_range): Declare.
9563 * printcmd.c (ALL_DISPLAYS): Declare.
9564 (delete_display): Reimplement taking a display pointer.
9565 (undisplay_command): Accept a range of displays to delete, using
9566 get_number_or_range.
9567
13163d80
PM
95682011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9569
9570 * c-valprint.c (c_val_print): Add embedded_offset to address
9571 for arrays of unspecified length.
9572 * p-valprint.c (pascal_val_print): Likewise.
9573
b434a28f
YQ
95742011-02-18 Yao Qi <yao@codesourcery.com>
9575
9576 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9577 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9578 (thumb_process_displaced_insn): New.
9579 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9580 call to arm_process_displaced_insn.
9581 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9582
9f6f94ff
TT
95832011-02-17 Tom Tromey <tromey@redhat.com>
9584
9585 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9586 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9587 compile_dwarf_to_ax. No longer static. Call
9588 dwarf2_compile_cfa_to_ax.
9589 (locexpr_tracepoint_var_ref): Update.
9590 (loclist_tracepoint_var_ref): Update.
9591 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9592 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9593 argument; add 'gdbarch' and 'pc'.
9594 (dwarf2_compile_cfa_to_ax): New function.
9595 (dwarf2_frame_cache): Update.
9596
e67ad678
JB
95972011-02-17 Joel Brobecker <brobecker@adacore.com>
9598
9599 * ada-lang.c (ada_type_of_array): Fix the size of the array
9600 in the case of an unconstrained packed array.
9601
946ebb0d
YQ
96022011-02-17 Yao Qi <yao@codesourcery.com>
9603
9604 * common/Makefile.in: Add more targets for make.
9605
1ba1b353
TT
96062011-02-16 Tom Tromey <tromey@redhat.com>
9607
9608 * dwarf2loc.c (unimplemented): Fix typo.
9609
b1bfef65
TT
96102011-02-16 Tom Tromey <tromey@redhat.com>
9611
9612 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9613 (compile_dwarf_to_ax) <default>: Use unimplemented.
9614 <DW_OP_deref>: Update.
9615 (disassemble_dwarf_expression): Update.
9616 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9617 (decode_locdesc): Update.
9618 * dwarf2expr.h (dwarf_stack_op_name): Update.
9619
5f1e6f19
TT
96202011-02-16 Tom Tromey <tromey@redhat.com>
9621
9622 * ax.h (struct aop_map) <name>: Now const.
9623
a0c78a73
PA
96242011-02-16 Tom Tromey <tromey@redhat.com>
9625
9626 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9627 than axs_rvalue.
9628
946ebb0d 96292011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9630
9631 * infrun.c (get_displaced_step_closure_by_addr): New.
9632 * inferior.h: Declare it.
9633 * arm-tdep.c: (arm_pc_is_thumb): Call
9634 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9635 returns non-NULL.
9636
08807d5a
PA
96372011-02-16 Pedro Alves <pedro@codesourcery.com>
9638 Jan Kratochvil <jan.kratochvil@redhat.com>
9639
9640 gdb/
9641 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9642
29976f3f
PA
96432011-02-16 Pedro Alves <pedro@codesourcery.com>
9644 Jan Kratochvil <jan.kratochvil@redhat.com>
9645
9646 * value.c (value_contents_copy_raw): Extend describing comment.
9647 Assert that the destination contents we're overwriting are wholly
9648 available.
fb68ae73 9649 (value_contents_copy): Extend describing comment.
29976f3f 9650
cd24cfaa
PA
96512011-02-16 Pedro Alves <pedro@codesourcery.com>
9652 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 * value.c (value_available_contents_eq): Remove redundant local
9655 variables. Fix available contents comparision.
9656 * value.h (value_available_contents_eq): Extend describing
9657 comment.
9658
60bbf338
YQ
96592011-02-16 Yao Qi <yao@codesourcery.com>
9660
9661 * thread.c (info_threads_command): Add missing i18n markup and remove
9662 trailing newline.
9663
17450429
PP
96642011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9665
9666 * breakpoint.c (longjmp_names): New variable.
9667 (struct breakpoint_objfile_data): New type.
9668 (breakpoint_objfile_key): New variable.
9669 (msym_not_found): New variable.
9670 (msym_not_found_p): New predicate.
9671 (get_breakpoint_objfile_data): New function.
9672 (create_overlay_event_breakpoint): Check per-objfile cache for
9673 symbols first.
9674 (create_longjmp_master_breakpoint): Likewise.
9675 (create_std_terminate_master_breakpoint): Likewise.
9676 (create_exception_master_breakpoint): Likewise.
9677 (_initialize_breakpoint): Register per-objfile data key.
9678
af02033e
PP
96792011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9680
9681 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9682 parameter value.
9683 (create_longjmp_master_breakpoint): Loop over longjmp names.
9684 (create_std_terminate_master_breakpoint): Const-propagate parameter
9685 value.
9686 (update_breakpoints_after_exec): Adjust.
9687 (breakpoint_re_set): Adjust.
9688
60f98dde
MS
96892011-02-15 Michael Snyder <msnyder@vmware.com>
9690
cdf99611
MS
9691 * thread.c (info_threads_command): Process arg as thread id,
9692 or list of thread ids.
9693 (thread_find_command): New command.
9694 (_initialize_thread): Document argument for info threads.
9695 Document 'thread find' command.
9696 * NEWS: Document new command "thread find".
60f98dde 9697
0feedb2c
JK
96982011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9699
9700 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9701 * aclocal.m4: Regenerated with aclocal-1.11.1.
9702 * common/configure: Regenerate with autoconf-2.64.
9703
648cd113
KW
97042011-02-15 Ken Werner <ken.werner@de.ibm.com>
9705
9706 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9707 bool data type to a size of one byte.
9708
5657161f
PA
97092011-02-15 Pedro Alves <pedro@codesourcery.com>
9710 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 * target.c (memory_xfer_live_readonly_partial): Document where to
9713 look for interface description.
9714
494e194e
YQ
97152011-02-15 Yao Qi <yao@codesourcery.com>
9716
9717 PR tdep/12352
9718 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9719 order to store PC value on stack instead of text section.
9720
d9492458
TJB
97212011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9722
9723 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9724 the EFP register set size.
9725 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9726 data from the VMX register.
9727 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9728 and write data from/to the VMX register.
9729
cdf99611
MS
97302011-02-14 Michael Snyder <msnyder@vmware.com>
9731
9732 * command.h (enum command_class): New class 'no_set_class', for
9733 "show" commands without a corresponding "set" command.
9734 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9735 * copying.c (_initialize_copying): Ditto for "show copying" and
9736 "show warranty".
9737 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9738 "show version".
9739 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9740 which there is no corresponding "set" command (eg. "show copying").
9741
424447ee
PA
97422011-02-14 Pedro Alves <pedro@codesourcery.com>
9743 Jan Kratochvil <jan.kratochvil@redhat.com>
9744
9745 * exec.c (section_table_available_memory): Change `len' parameter
9746 type to ULONGEST.
9747 * exec.h (section_table_available_memory): Ditto.
9748 * value.h (read_value_memory): Rename the `offset' parameter to
9749 `embedded_offset'.
9750
c0f61f9c 97512011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9752 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9753
9754 * memrange.c (compare_mem_ranges): Mention sort order in
9755 describing comment.
9756 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9757 * tracepoint.c (traceframe_available_memory): Extend comment to
9758 mention what happens to RESULT when the target does not support
9759 the query.
9760
6bfc80c7
PA
97612011-02-14 Pedro Alves <pedro@codesourcery.com>
9762 Jan Kratochvil <jan.kratochvil@redhat.com>
9763
9764 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9765 range.
9766
e7303042
PA
97672011-02-14 Pedro Alves <pedro@codesourcery.com>
9768
9769 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9770 No longer handle NULL values.
9771
8af8e3bc
PA
97722011-02-14 Pedro Alves <pedro@codesourcery.com>
9773
9774 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9775 * value.c: Include "exceptions.h".
9776 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9777 generic error.
9778 * cp-abi.c: Include gdb_assert.h.
9779 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9780 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9781 errors.
9782 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9783 parameters. No longer returns -1 on error.
9784 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9785 `val' parameters.
9786 * cp-valprint.c: Include exceptions.h.
9787 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9788 the baseclass_offset. Handle unavailable base classes. Use
9789 val_print_invalid_address.
9790 * p-valprint.c: Include exceptions.h.
9791 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9792 when fetching the baseclass_offset. No longer expect
9793 baseclass_offset returning -1. Handle unavailable base classes.
9794 Use val_print_invalid_address.
9795 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9796 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9797 `embedded_offset' and `val' parameters. Adjust.
9798 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9799 parameter, and change its type to gdb_byte pointer. Add
9800 `embedded_offset' and `val' parameters. Adjust. No longer expect
9801 baseclass_offset returning -1.
9802 (value_dynamic_cast): Use value_contents_for_printing rather than
9803 value_contents. Adjust.
9804 (search_struct_field): No longer expect baseclass_offset returning
9805 -1.
9806 (search_struct_method): If reading memory from the target is
9807 necessary, wrap it in a new value to pass to baseclass_offset. No
9808 longer expect baseclass_offset returning -1.
9809 (find_method_list): No longer expect baseclass_offset returning
9810 -1. Use value_contents_for_printing rather than value_contents.
9811 * valprint.c (val_print_invalid_address): New function.
9812 * valprint.h (val_print_invalid_address): Declare.
9813 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9814 and `val' parameters. No longer expect baseclass_offset returning
9815 -1. Adjust.
9816 * gnu-v2-abi.c: Include "exceptions.h".
9817 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9818 parameters. Handle unavailable memory. Recurse through
9819 gnuv2_baseclass_offset directly, rather than through
9820 baseclass_offset. No longer returns -1 on not found, instead
9821 throw an error.
9822 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9823 `val' parameters. Adjust.
9824
1b28d0b3
PA
98252011-02-14 Pedro Alves <pedro@codesourcery.com>
9826
9827 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9828 almost but not quite adjacent.
9829
ec0a52e1
PA
98302011-02-14 Pedro Alves <pedro@codesourcery.com>
9831
9832 * value.h (value_entirely_available): Declare.
9833 * value.c (value_entirely_available): New function.
9834 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9835 real type if the pointer is unavailable.
9836
24e6bcee
PA
98372011-02-14 Pedro Alves <pedro@codesourcery.com>
9838
9839 * valops.c (value_repeat): Use read_value_memory instead of
9840 read_memory.
9841
39d37385
PA
98422011-02-14 Pedro Alves <pedro@codesourcery.com>
9843
9844 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9845 * value.c (value_contents_copy_raw, value_contents_copy): New
9846 functions.
9847 (value_primitive_field): Use value_contents_copy_raw instead of
9848 memcpy.
9849 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9850 memcpy.
9851 (value_array, value_slice): Ditto.
9852 * valarith.c (value_subscripted_rvalue): Use
9853 value_contents_copy_raw instead of memcpy.
9854
a3d34bf4
PA
98552011-02-14 Pedro Alves <pedro@codesourcery.com>
9856
9857 <unavailable> references.
9858
9859 * valops.c (get_value_at): Use value_from_contents_and_address,
9860 avoiding read_memory.
9861
9fc6d940
PA
98622011-02-14 Pedro Alves <pedro@codesourcery.com>
9863
9864 * c-valprint.c (c_val_print): Print a string with unavailable
9865 contents as an array.
9866
5467c6c8
PA
98672011-02-14 Pedro Alves <pedro@codesourcery.com>
9868
9869 * value.h (unpack_bits_as_long): Delete declaration.
9870 (unpack_value_bits_as_long): Declare.
9871 (unpack_value_field_as_long): Declare.
9872 (value_field_bitfield): Declare.
9873 * value.c (unpack_bits_as_long): Rename to...
9874 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9875 value parameters. Return the extracted result in a new output
9876 parameter. If the value contents are unavailable, return false,
9877 otherwise return true.
9878 (unpack_value_bits_as_long): New.
9879 (unpack_field_as_long): Rename to...
9880 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9881 Add embedded_offset and value parameters. Return the extracted
9882 result in a new output parameter. If the value contents are
9883 unavailable, return false, otherwise return true.
9884 (unpack_value_field_as_long): New.
9885 (unpack_field_as_long_1): New.
9886 (unpack_field_as_long): Reimplement as wrapper around
9887 unpack_value_field_as_long_1.
9888 (value_field_bitfield): New function.
9889 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9890 unpack_value_bits_as_long. Mark the value as unavailable, if it
9891 is unavailable.
9892 * jv-valprint.c (java_print_value_fields): Use
9893 value_field_bitfield.
9894 * p-valprint.c (pascal_object_print_value_fields): Use
9895 value_field_bitfield.
9896 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9897
3158c6ed
PA
98982011-02-14 Pedro Alves <pedro@codesourcery.com>
9899
9900 * value.c (get_internalvar_integer): Also return the int value of
9901 TYPE_CODE_INT INTERNALVAR_VALUE values.
9902 (set_internalvar): Don't special case TYPE_CODE_INT.
9903
9fbdca0d
PA
99042011-02-14 Pedro Alves <pedro@codesourcery.com>
9905
9906 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9907 INTERNALVAR_POINTER.
9908 <pointer>: Delete.
9909 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9910 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9911 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9912
c8c1c22f
PA
99132011-02-14 Pedro Alves <pedro@codesourcery.com>
9914
9915 * value.h (value_available_contents_eq): Declare.
9916 * value.c (find_first_range_overlap): New function.
9917 (value_available_contents_eq): New function.
9918 * valprint.c (val_print_array_elements): Use
9919 value_available_contents_eq.
9920 * ada-valprint.c (val_print_packed_array_elements): Use
9921 value_available_contents_eq.
9922 * jv-valprint.c (java_value_print): Use
9923 value_available_contents_eq.
9924
e6e4e701
PA
99252011-02-14 Pedro Alves <pedro@codesourcery.com>
9926
9927 * target.c (target_read_live_memory): New function.
9928 (memory_xfer_live_readonly_partial): New.
9929 (memory_xfer_partial): If reading from a traceframe, fallback to
9930 reading unavailable read-only memory from read-only regions of
9931 live target memory.
9932 * tracepoint.c (disconnect_tracing): Adjust.
9933 (set_current_traceframe): New, factored out from
9934 set_traceframe_number.
9935 (set_traceframe_number): Reimplement to only change the traceframe
9936 number on the GDB side.
9937 (do_restore_current_traceframe_cleanup): Adjust.
9938 (make_cleanup_restore_traceframe_number): New.
9939 (cur_traceframe_number): New global.
9940 (tfile_open): Set cur_traceframe_number to no traceframe.
9941 (set_tfile_traceframe): New function.
9942 (tfile_trace_find): If looking up a traceframe using any method
9943 other than by number, make sure the current tfile traceframe
9944 matches gdb's current traceframe. Update the current tfile
9945 traceframe if the lookup succeeded.
9946 (tfile_fetch_registers, tfile_xfer_partial)
9947 (tfile_get_trace_state_variable_value): Make sure the remote
9948 traceframe matches gdb's current traceframe.
9949 * remote.c (remote_traceframe_number): New global.
9950 (remote_open_1): Set it to -1.
9951 (set_remote_traceframe): New function.
9952 (remote_fetch_registers, remote_store_registers)
9953 (remote_xfer_memory, remote_xfer_partial)
9954 (remote_get_trace_state_variable_value): Make sure the remote
9955 traceframe matches gdb's current traceframe.
9956 (remote_trace_find): If looking up a traceframe using any method
9957 other than by number, make sure the current remote traceframe
9958 matches gdb's current traceframe. Update the current remote
9959 traceframe if the lookup succeeded.
9960 * infrun.c (fetch_inferior_event): Adjust.
9961 * tracepoint.h (set_current_traceframe): Declare.
9962 (get_traceframe_number, set_traceframe_number): Add describing
9963 comments.
9964
e6ca34fc
PA
99652011-02-14 Pedro Alves <pedro@codesourcery.com>
9966
9967 Mark pieces of values as unavailable if the corresponding memory
9968 is unavailable.
9969
9970 * valops.c: Include tracepoint.h.
9971 (value_fetch_lazy): Use read_value_memory.
9972 (read_value_memory): New.
9973 * value.h (read_value_memory): Declare.
9974 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9975 * exec.c (section_table_available_memory): New function.
9976 * exec.h (section_table_available_memory): Declare.
9977
2a7498d8
PA
99782011-02-14 Pedro Alves <pedro@codesourcery.com>
9979
9980 * Makefile.in (SFILES): Add memrange.c.
9981 (HFILES_NO_SRCDIR): Add memrange.h.
9982 (COMMON_OBS): Add memrange.o.
9983 * memrange.c: New file.
9984 * memrange.h: New file.
9985 * tracepoint.c: Include memrange.h.
9986 (struct mem_range): Delete.
9987 (mem_range_s): Delete.
9988 (traceframe_available_memory): New function.
9989 * tracepoint.h (traceframe_available_memory): Declare.
9990
b3b9301e
PA
99912011-02-14 Pedro Alves <pedro@codesourcery.com>
9992
9993 * target.h (struct traceframe_info): Forward declare.
9994 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9995 (struct target_ops) <to_traceframe_info>: New field.
9996 (target_traceframe_info): New.
9997 * target.c (update_current_target): Inherit and default
9998 to_traceframe_info.
9999 * remote.c (PACKET_qXfer_traceframe_info): New.
10000 (remote_protocol_features): Register qXfer:traceframe-info:read.
10001 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10002 (remote_traceframe_info): New.
10003 (init_remote_ops): Install it.
10004 (_initialize_remote): Install "set/show remote traceframe-info"
10005 commands.
10006 * tracepoint.h (parse_traceframe_info): Declare.
10007 * tracepoint.c (struct mem_range): New.
10008 (mem_range_s): New typedef.
10009 (struct traceframe_info): New.
10010 (traceframe_info): New global.
10011 (free_traceframe_info): New function.
10012 (clear_traceframe_info): New function.
10013 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10014 info.
10015 (build_traceframe_info): New function.
10016 (tfile_traceframe_info): New function.
10017 (init_tfile_ops): Install tfile_traceframe_info.
10018 (traceframe_info_start_memory, free_result): New functions.
10019 (memory_attributes, traceframe_info_elements): New globals.
10020 (parse_traceframe_info, get_traceframe_info): New functions.
10021 * features/traceframe-info.dtd: New file.
10022 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10023
4e07d55f
PA
100242011-02-14 Pedro Alves <pedro@codesourcery.com>
10025
10026 Base support for <unavailable> value contents.
10027
4e07d55f
PA
10028 * value.h (value_bytes_available): Declare.
10029 (mark_value_bytes_unavailable): Declare.
10030 * value.c (struct range): New struct.
10031 (range_s): New typedef.
10032 (ranges_overlap): New function.
10033 (range_lessthan): New function.
10034 (ranges_contain_p): New function.
10035 (struct value) <unavailable>: New field.
10036 (value_bytes_available): New function.
10037 (mark_value_bytes_unavailable): New function.
10038 (require_not_optimized_out): Constify parameter.
10039 (require_available): New function.
10040 (value_contents_all, value_contents): Require all bytes be
10041 available.
10042 (value_free): Free `unavailable'.
10043 (value_copy): Copy `unavailable'.
10044 * valprint.h (val_print_unavailable): Declare.
10045 * valprint.c (valprint_check_validity): Rename `offset' parameter
10046 to `embedded_offset'. If printing a scalar, check whether the
10047 value chunk is available.
10048 (val_print_unavailable): New.
10049 (val_print_scalar_formatted): Check whether the value is
10050 available.
10051 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10052 pretty-printing unavailable values.
10053
bc9a5551
JK
100542011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10055
10056 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10057 * c-typeprint.c (c_type_print_args): Update the function comment. New
10058 variable param_type, initialize it. Remove const/volatile qualifiers
10059 for language_cplus and !show_artificial. Use param_type.
10060
93b55aa1
JK
100612011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10062
10063 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10064 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10065 * symtab.h (struct symtab) <next>: Comment extension.
10066
181d9476
YQ
100672011-02-12 Yao Qi <yao@codesourcery.com>
10068
10069 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10070
b708a5c7
JK
100712011-02-11 Yao Qi <yao@codesourcery.com>
10072
10073 * common/Makefile.in: Add copyright header.
10074
c5187ac6
PA
100752011-02-11 Pedro Alves <pedro@codesourcery.com>
10076
10077 * infrun.c (proceed): Move switching out and in of tfind mode from
10078 here ...
10079 (fetch_inferior_event): ... to here.
10080
4f3e6fb7
YQ
100812011-02-11 Yao Qi <yao@codesourcery.com>
10082
10083 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10084 libcommon.a.
10085 * configure.ac: Add common to sub dir.
10086 * configure: Regenerate.
10087
b708a5c7
JK
100882011-02-11 Yao Qi <yao@codesourcery.com>
10089
10090 Build libcommon.a.
10091
10092 * common/Makefile.in: New.
10093 * common/configure.ac: New.
10094 * common/aclocal.m4: New.
10095 * common/configure: Generate.
10096
2287cc7e
PA
100972011-02-10 Pedro Alves <pedro@codesourcery.com>
10098
10099 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10100 side of the parenthesis.
10101
10102 Merge from GCC:
10103 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10104 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10105
fd62cb89
MS
101062011-02-08 Michael Snyder <msnyder@vmware.com>
10107
10108 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10109
56d2815c
JK
101102011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10113 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10114 psubd and paddd.
10115
4f7d61a8
JK
101162011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10117
10118 PR 12361.
10119 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10120 phsubsw.
10121 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10122 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10123
54fcddd0
UW
101242011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10125
10126 * dwarf2read.c (read_subroutine_type): Set special calling
10127 convention flag for functions compiled by IBM XL C for OpenCL.
10128 * ppc-sysv-tdep.c: Include "dwarf2.h"
10129 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10130 calling convention.
10131 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10132 IBM OpenCL vector types calling convention.
10133 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10134 (ppc_sysv_abi_broken_return_value): Likewise.
10135 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10136 types calling convention.
10137 (ppc64_sysv_abi_return_value): Likewise.
10138 * spu-tdep.c: Include "dwarf2.h"
10139 (spu_return_value): Implement IBM OpenCL vector types calling
10140 convention.
10141
d6dafb7c
UW
101422011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10143
10144 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10145 correct ABI for AltiVec vector arguments.
10146
32b72a42
PA
101472011-02-07 Pedro Alves <pedro@codesourcery.com>
10148
10149 * valprint.c (val_print): Extend comment.
10150 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10151 interface explanation to val_print.
10152 (ada_val_print_array): Adjust comment to current interface.
10153 (print_field_values): Adjust comment to current interface.
10154 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10155 explanation to val_print.
10156 * f-valprint.c (f_val_print): Ditto.
10157 * jv-valprint.c (java_val_print): Ditto.
10158 * m2-valprint.c (m2_val_print): Ditto.
10159 * p-valprint.c (pascal_val_print): Ditto.
10160
9998af43
TJB
101612011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10162
10163 * breakpoint.c (parse_breakpoint_sals): Fix description.
10164
505500db 101652011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10166 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10167
10168 * python/py-inferior.c (python_on_normal_stop): New function.
10169 (python_on_resume): New function.
10170 (python_inferior_exit): New function.
10171 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10172 inferior_exit observers.
10173 * python/py-evtregistry.c: New file.
10174 * python/py-threadevent.c : New file.
10175 * python/py-event.c: New file.
10176 * python/py-evts.c: New file.
10177 * python/py-continueevent.c: New file.
10178 * python/py-bpevent.c: New file.
10179 * python/py-signalevent.c: New file.
10180 * python/py-exetiedevent.c: New file.
10181 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10182 Move struct breakpoint_object from here...
10183 * python/python-internal.h: ... to here.
10184 * python/py-event.h: New file.
10185 * python/py-events.h: New file.
10186 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10187 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10188 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10189 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10190 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10191 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10192 Add build rules for all the above.
10193
9e0ac564
TT
101942011-02-04 Tom Tromey <tromey@redhat.com>
10195
10196 * dwarf2read.c (dwarf2_section_empty_p): New function.
10197 (dwarf2_read_section): Use dwarf2_section_empty_p.
10198 (dwarf2_section_size): New function.
10199 (dwarf2_get_section_info): Unconditionally read section.
10200 (dwarf2_read_index): Use dwarf2_section_empty_p.
10201 (partial_read_comp_unit_head): Use dwarf2_section_size.
10202 (dwarf2_symbol_mark_computed): Likewise.
10203
eee5b35e
DD
102042011-02-04 David Daney <ddaney@caviumnetworks.com>
10205
10206 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10207
385203ed
DD
102082011-02-04 David Daney <ddaney@caviumnetworks.com>
10209
10210 * mips-linux-tdep.c: Include xml-syscall.h.
10211 (mips_linux_get_syscall_number): New function.
10212 (mips_linux_init_abi): Add calls to
10213 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10214 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10215 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10216 * syscalls/mips-n32-linux.xml: New file.
10217 * syscalls/mips-n64-linux.xml: New file.
10218 * syscalls/mips-o32-linux.xml: New file.
10219
9277c30c
UW
102202011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10221
10222 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10223 Complain about inverted range entries.
10224 (dwarf2_record_block_ranges): Likewise.
10225
a3be7890
TJB
102262011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10227
10228 Fix some typos.
10229 * breakpoint.c (update_watchpoint): Fix name of the
10230 update_global_location_list function.
10231 (print_one_breakpoint): Fix typo.
10232 (_initialize_breakpoint): Remove extra space in hbreak help
10233 string.
10234 * breakpoint.h (struct bp_location) <length>: Fix field
10235 description.
10236
041274d8
PA
102372011-02-04 Pedro Alves <pedro@codesourcery.com>
10238
10239 * regcache.c (registers_changed_ptid): Don't explictly always
10240 clear `current_regcache'. Only clear current_thread_ptid and
10241 current_thread_arch when PTID matches. Only reinit the frame
10242 cache if PTID matches the current inferior_ptid. Move alloca(0)
10243 call to ...
10244 (registers_changed): ... here.
10245
c1c2ab58
UW
102462011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10247
10248 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10249 starts with __stack_chk_guard as stack guard symbol.
10250
9011945e
AB
102512011-02-03 Andrew Burgess <aburgess@broadcom.com>
10252
10253 * disasm.c (compare_lines): Handle the end of sequence markers
10254 within the line table to better support disassembling over
10255 compilation unit boundaries.
10256
e0634ccf
UW
102572011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10258
10259 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10260 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10261 implementation even if no symbols are available.
10262 (thumb_analyze_prologue): Update call to skip_prologue_function.
10263 (arm_analyze_prologue): Likewise.
10264
0e9e9abd
UW
102652011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10266
10267 * arm-tdep.c: Include "observer.h".
10268 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10269 (arm_exidx_data_key): New static variable.
10270 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10271 (struct arm_exidx_data): Likewise.
10272 (arm_exidx_data_free): New function.
10273 (arm_compare_exidx_entries): Likewise.
10274 (arm_obj_section_from_vma): Likewise.
10275 (arm_exidx_new_objfile): Likewise.
10276 (arm_find_exidx_entry): Likewise.
10277 (arm_exidx_fill_cache): Likewise.
10278 (arm_exidx_unwind_sniffer): Likewise.
10279 (arm_exidx_unwind): New global variable.
10280 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10281 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10282 observer. Register arm_exidx_data_key as objfile data.
10283
2e9e421f
UW
102842011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10285
10286 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10287 due to accessing uninitialized variable. Fix indentation.
10288
580688f3
PA
102892011-02-02 Pedro Alves <pedro@codesourcery.com>
10290
10291 * c-valprint.c (c_value_print): When doing virtual base pointer
10292 adjustment, create a new value with adjusted contents rather than
10293 changing the contents of the value being printed (and getting it
10294 wrong).
10295
3d2c1d41
PA
102962011-02-02 Pedro Alves <pedro@codesourcery.com>
10297
10298 * xml-support.c (xml_find_attribute): New.
10299 (xinclude_start_include): Use it.
10300 * xml-support.h (xml_find_attribute): Declare.
10301 * memory-map.c (memory_map_start_memory)
10302 (memory_map_start_property): Use xml_find_attribute.
10303 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10304 xml_find_attribute.
10305 * remote.c (start_thread): Use xml_find_attribute.
10306 * solib-target.c (library_list_start_segment)
10307 (library_list_start_section, library_list_start_library)
10308 (library_list_start_list): Use xml_find_attribute.
10309 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10310 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10311 (tdesc_start_field): Use xml_find_attribute.
10312
0af3e2db
UW
103132011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10314
10315 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10316 (BUILD_OCL_VTYPES): Update.
10317
c1039e3c
JB
103182011-02-02 Joel Brobecker <brobecker@adacore.com>
10319
10320 * configure.ac: Work around non-GNU sed limitation when computing
10321 python version number.
10322 * configure: Regenerate.
10323
600ea1be
JK
103242011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 Fix debug printing of TYPE_INSTANCE.
10327 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10328 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10329
56c12414
JK
103302011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10331
10332 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10333 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10334 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10335 * ada-operator.inc: Rename the file to ...
10336 * ada-operator.def: ... here, wrap all the entries by macro OP.
10337 * expprint.c (op_name_standard): Remove all the entries. Include
10338 "std-operator.def" instead.
10339 * expression.h (enum exp_opcode): Include "std-operator.def" and
10340 "ada-operator.def". Move all the entries ...
10341 * std-operator.def: ... here, wrap all the entries by macro OP.
10342
c52b559d
PP
103432011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10344
10345 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10346 * breakpoint.c (remove_jit_event_breakpoints): New function.
10347 * jit.c (jit_descriptor_addr): Delete.
10348 (registering_code): Delete.
10349 (clear_int): Delete.
10350 (jit_inferior_data): New variable.
10351 (struct jit_inferior_data): New type.
10352 (get_jit_inferior_data): New function.
10353 (jit_inferior_data_cleanup): New function.
10354 (jit_read_descriptor): Adjust.
10355 (jit_register_code): Adjust.
10356 (jit_breakpoint_re_set_internal): New function; move code here ...
10357 (jit_inferior_init): ... from here.
10358 (jit_breakpoint_re_set): Adjust.
10359 (jit_reset_inferior_data_and_breakpoints): New function.
10360 (jit_inferior_created_observer): Adjust.
10361 (jit_inferior_exit_hook): Adjust.
10362 (jit_executable_changed_observer): New function.
10363 (jit_event_handler): Adjust.
10364 (_initialize_jit): Adjust.
10365
e839132d
MS
103662011-01-31 Michael Snyder <msnyder@vmware.com>
10367
10368 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10369 line.
10370
47a80e90
TT
103712011-01-31 Tom Tromey <tromey@redhat.com>
10372
10373 PR python/12216:
10374 * python/python.c (execute_gdb_command): Call
10375 prevent_dont_repeat.
10376 * top.c (suppress_dont_repeat): New global.
10377 (dont_repeat): Use it.
10378 (prevent_dont_repeat): New function.
10379 * command.h (prevent_dont_repeat): Declare.
10380
45a43567
TT
103812011-01-31 Tom Tromey <tromey@redhat.com>
10382
10383 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10384 * python/py-breakpoint.c (bppy_set_silent): Use
10385 breakpoint_set_silent.
10386 (bppy_set_thread): Use breakpoint_set_thread.
10387 (bppy_set_task): Use breakpoint_set_task.
10388 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10389 (breakpoint_set_task): Declare.
10390 (make_breakpoint_silent): Remove.
10391 * breakpoint.c (breakpoint_set_silent): New function.
10392 (breakpoint_set_thread): Likewise.
10393 (breakpoint_set_task): Likewise.
10394 (make_breakpoint_silent): Remove.
10395
09d682a4
TT
103962011-01-31 Tom Tromey <tromey@redhat.com>
10397
10398 * breakpoint.h (user_breakpoint_p): Declare.
10399 * breakpoint.c (user_breakpoint_p): New function.
10400 (breakpoint_1): Use it.
10401 (save_breakpoints): Likewise.
10402
9c4ea6c5
JB
104032011-01-31 Joel Brobecker <brobecker@adacore.com>
10404
10405 * configure.ac: Add handling of Python distribution on Windows.
10406 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10407 sysconfig variables are not defined, then do not use them.
10408 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10409 instead. On Windows, return all paths using forward-slashes
10410 rather than backslashes.
10411
ac534cba
JB
104122011-01-31 Joel Brobecker <brobecker@adacore.com>
10413
10414 * configure.ac: Remove fallback behavior for building
10415 against Python. Remove tweaking of Python include path.
10416 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10417 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10418 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10419 Always restore CPPFLAGS and LIBS after linking test.
10420 * configure: Regenerated.
10421 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10422 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10423 * python/python-internal.h: Adjust includes of Python .h files.
10424
c2f0d045
JB
104252011-01-31 Joel Brobecker <brobecker@adacore.com>
10426
10427 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10428 in error message.
10429
6b0c4c1f
JB
104302011-01-31 Joel Brobecker <brobecker@adacore.com>
10431
10432 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10433 value test.
10434
672c9795
YQ
104352011-01-31 Yao Qi <yao@codesourcery.com>
10436
10437 * arm-linux-nat.c: Update calls to regcache_register_status
10438 instead of regcache_valid_p.
10439 * aix-thread.c: Likewise.
10440 * i386gnu-nat.c: Likewise.
10441
80b23b6a
JK
104422011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10443
10444 Fix crash.
10445 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10446 touching TYPE_FIELD_ARTIFICIAL.
10447
4cd712bd
RE
104482011-01-28 Richard Earnshaw <rearnsha@arm.com>
10449
10450 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10451 Committers.
10452
ffd5ec24
PA
104532011-01-28 Pedro Alves <pedro@codesourcery.com>
10454
10455 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10456 selected, don't try iterating over the traceframe's blocks.
10457 (tfile_has_stack): If there's no traceframe selected, then there's
10458 no stack.
10459 (tfile_has_registers): If there's no traceframe selected, then
10460 there's no registers.
10461
e8c9e0a1
PA
104622011-01-28 Pedro Alves <pedro@codesourcery.com>
10463
10464 * target.c (memory_xfer_partial): No need to restore shadows if we
10465 haven't read anything.
10466
de15c4ab
PA
104672011-01-28 Pedro Alves <pedro@codesourcery.com>
10468
10469 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10470 and val_print_scalar_formatted.
10471
9f41c731
PA
104722011-01-27 Pedro Alves <pedro@codesourcery.com>
10473
10474 * tracepoint.c (tfile_read): New.
10475 (tfile_open): Use it.
10476 (tfile_get_traceframe_address): Use it.
10477 (tfile_trace_find): Use it.
10478 (walk_blocks_callback_func): New typedef.
10479 (match_blocktype): New function.
10480 (traceframe_walk_blocks): New function.
10481 (traceframe_find_block_type): New function.
10482 (tfile_fetch_registers, tfile_xfer_partial)
10483 (tfile_get_trace_state_variable_value): Use
10484 traceframe_find_block_type and tfile_read.
10485
cdefc55d
KB
104862011-01-26 Kevin Buettner <kevinb@redhat.com>
10487
10488 * remote-mips.c: Add internationalization mark ups. Remove
10489 trailing \n from already marked up strings.
10490
a81766d8
TT
104912011-01-26 Tom Tromey <tromey@redhat.com>
10492
10493 * python/py-prettyprint.c (print_string_repr): Clear
10494 'addressprint' option when calling val_print_string.
10495 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10496 option when calling val_print_string.
10497
74aedc46
TT
104982011-01-26 Tom Tromey <tromey@redhat.com>
10499
10500 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10501 GDB_PY_LL_ARG.
10502 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10503 macros.
10504 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10505 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10506 (gdb_py_long_as_ulongest): New defines.
10507 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10508 (gdb_py_int_as_long): Declare.
10509 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10510 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10511 (valpy_long): Add comment.
10512 * python/py-utils.c (get_addr_from_python): Use
10513 gdb_py_long_as_ulongest. Handle overflow properly.
10514 (gdb_py_object_from_longest): New function.
10515 (gdb_py_object_from_ulongest): Likewise.
10516 (gdb_py_int_as_long): Likewise.
10517 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10518 * python/py-symtab.c (salpy_get_pc): Use
10519 gdb_py_long_from_ulongest.
10520 (salpy_get_line): Use PyInt_FromLong.
10521 * python/py-param.c (set_parameter_value): Use
10522 gdb_py_int_as_long.
10523 * python/py-lazy-string.c (stpy_get_address): Use
10524 gdb_py_long_from_ulongest.
10525 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10526 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10527 * python/py-breakpoint.c (bppy_set_thread): Use
10528 gdb_py_int_as_long.
10529 (bppy_set_task): Likewise.
10530 (bppy_set_ignore_count): Likewise.
10531 (bppy_set_hit_count): Likewise.
10532 * python/py-block.c (blpy_get_start): Use
10533 gdb_py_object_from_ulongest.
10534 (blpy_get_end): Likewise.
10535 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10536
e4f6d2ec
TJB
105372011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10538
10539 PR/symtab 11766:
10540 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10541 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10542 equality test for objfile, initialize addr_low if needed.
10543
b30aa278
PA
105442011-01-25 Pedro Alves <pedro@codesourcery.com>
10545
10546 * tui/tui-regs.c (tui_register_format): Remove dead code.
10547
ab2188aa
PA
105482011-01-25 Pedro Alves <pedro@codesourcery.com>
10549
10550 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10551 instead of print_scalar_formatted.
10552 (print_scalar_formatted): Don't handle 's' format strings here,
10553 and add an assertion that we never see such format here.
10554 * valprint.h (val_print_scalar_formatted): Declare.
10555 * valprint.c (val_print_scalar_formatted): New.
10556 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10557 instead of print_scalar_formatted.
10558 * jv-valprint.c (java_val_print): Ditto.
10559 * p-valprint.c (pascal_val_print): Ditto.
10560 * ada-valprint.c (ada_val_print_1): Ditto.
10561 * f-valprint.c (f_val_print): Ditto.
10562 * infcmd.c (registers_info): Ditto.
10563 * m2-valprint.c (m2_val_print): Ditto.
10564
66d61a4c
PA
105652011-01-25 Pedro Alves <pedro@codesourcery.com>
10566
10567 * m2-valprint.c (print_unbounded_array): Pass
10568 value_contents_for_printing rather than value_contents, to
10569 m2_print_array_contents. Also pass in the value.
10570
831adc1f
JK
105712011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10574 (save_gdb_index_command): Switch to .gdb_index version 4.
10575
20622269
PA
105762011-01-25 Pedro Alves <pedro@codesourcery.com>
10577
10578 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10579 than frame_register, and always pass a valid value to val_print.
10580
585fdaa1
PA
105812011-01-25 Pedro Alves <pedro@codesourcery.com>
10582
10583 Centralize printing "<optimized out>".
10584
10585 * valprint.h (val_print_optimized_out): Declare.
10586 * cp-valprint.c (cp_print_value_fields): Use
10587 val_print_optimized_out.
10588 * jv-valprint.c (java_print_value_fields): Ditto.
10589 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10590 * printcmd.c (print_formatted): Ditto.
10591 * valprint.c (valprint_check_validity): Ditto.
10592 (value_check_printable): Ditto.
10593 (val_print_optimized_out): New.
10594
29ec5263
PA
105952011-01-25 Pedro Alves <pedro@codesourcery.com>
10596
10597 * infcmd.c (default_print_registers_info): Allocate values so to
10598 never pass a NULL value to val_print.
10599
de4127a3
PA
106002011-01-25 Pedro Alves <pedro@codesourcery.com>
10601
10602 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10603 boolean. Make sure to always pass a value that matches the
10604 contents buffer to callees. Preserve `address' for following
10605 iterations.
10606 * value.c (value_contents_for_printing_const): New.
10607 (value_address): Constify value argument.
10608 * value.h (value_contents_for_printing_const): Declare.
10609 (value_address): Constify value argument.
10610
ee99023e
PA
106112011-01-25 Pedro Alves <pedro@codesourcery.com>
10612
10613 * regcache.c (struct regcache_descr): Rename
10614 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10615 and sizeof_cooked_register_valid_p to
10616 sizeof_cooked_register_status.
10617 (init_regcache_descr): Adjust.
10618 (struct regcache): Rename register_valid_p field to
10619 register_status.
10620 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10621 (do_cooked_read): Adjust.
10622 (regcache_valid_p): Rename to ...
10623 (regcache_register_status): ... this. Adjust.
10624 (regcache_invalidate): Adjust.
10625 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10626 Adjust.
10627 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10628 as unavailable, not valid.
10629 (regcache_dump): Adjust.
10630 * regcache.h (enum register_status): New.
10631 (regcache_register_status): Declare.
10632 (regcache_invalidate): Delete declaration.
10633 * corelow.c (get_core_registers): Adjust.
10634 * tracepoint.c (tfile_fetch_registers): Adjust.
10635 * trad-frame.c (REG_VALUE): Rename to ...
10636 (TF_REG_VALUE): ... this.
10637 (REG_UNKNOWN): Rename to ...
10638 (TF_REG_UNKNOWN): ... this.
10639 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10640 * mi/mi-main.c (register_changed_p): Adjust.
10641
99e42fd8
PA
106422011-01-25 Pedro Alves <pedro@codesourcery.com>
10643
10644 * regcache.c (struct regcache_descr): Remove outdated comment.
10645 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10646 overallocate hack.
10647 (regcache_xmalloc): Rename to ...
10648 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10649 Allocate the regcache type accordingly.
10650 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10651 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10652 cooked registers, not raw.
10653 (regcache_dup_no_passthrough): Delete.
10654 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10655 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10656 mention obsolete write_register_bytes.
10657 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10658
f7605bc2
PA
106592011-01-25 Pedro Alves <pedro@codesourcery.com>
10660
10661 Stop remote_read_bytes from handling partial reads itself.
10662
10663 * remote-fileio.c: Include target.h.
10664 (remote_fileio_write_bytes): Delete.
10665 (remote_fileio_func_open, remote_fileio_func_write)
10666 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10667 target_read_memory.
10668 (remote_fileio_func_stat): Use target_read_memory and
10669 target_write_memory.
10670 (remote_fileio_func_gettimeofday): Use target_write_memory.
10671 (remote_fileio_func_system): Use target_read_memory.
10672 * remote.c (remote_write_bytes): Make it static.
10673 (remote_read_bytes): Don't handle partial reads here.
10674 * remote.h (remote_read_bytes): Delete declaration.
10675
efc0eabd
PA
106762011-01-25 Pedro Alves <pedro@codesourcery.com>
10677
10678 Simplify XML parsing a bit.
10679
10680 * xml-support.h (gdb_xml_parse_quick): Declare.
10681 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10682 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10683 parameter.
10684 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10685 gdb_xml_create_parser_and_cleanup_1.
10686 (gdb_xml_parse_quick): New.
10687 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10688 * osdata.c (osdata_parse): Ditto.
10689 * remote.c (remote_threads_info): Ditto.
10690 * solib-target.c (solib_target_parse_libraries): Ditto.
10691 * xml-syscall.c (syscall_parse_xml): Ditto.
10692 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10693
314d366a
KB
106942011-01-24 Kevin Buettner <kevinb@redhat.com>
10695
10696 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10697 with remote-mips.o added to gdb_target_obs.
10698 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10699
a491d753
PA
107002011-01-24 Pedro Alves <pedro@codesourcery.com>
10701
10702 * ada-valprint.c (val_print_packed_array_elements): Pass the
10703 correct struct value to val_print.
10704 (ada_val_print_1): Ditto.
10705
490f124f
PA
107062011-01-24 Pedro Alves <pedro@codesourcery.com>
10707
10708 Don't lose embedded_offset in printing routines throughout.
10709
10710 * valprint.h (val_print_array_elements): Change prototype.
10711 * valprint.c (val_print_array_elements): Add `embedded_offset'
10712 parameter, and adjust to pass it down to val_print, while passing
10713 `valaddr' or `address' unmodified. Take embedded_offset into
10714 account when checking repetitions.
10715 * c-valprint.c (c_val_print): Pass embedded_offset to
10716 val_print_array_elements instead of adjusting `valaddr' and
10717 `address'.
10718 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10719 embedded_offset to val_print_array_elements instead of adjusting
10720 `valaddr'.
10721 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10722 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10723 val_print_array_elements and pascal_object_print_value_fields
10724 instead of adjusting `valaddr'.
10725 (pascal_object_print_value_fields): Add `offset' parameter, and
10726 adjust to use it.
10727 (pascal_object_print_value): Add `offset' parameter, and adjust to
10728 use it.
10729 (pascal_object_print_static_field): Use
10730 value_contents_for_printing/value_embedded_offset, rather than
10731 value_contents.
10732 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10733 parameter, and adjust to use it. Use
10734 value_contents_for_printing/value_embedded_offset, rather than
10735 value_contents.
10736 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10737 (ada_val_print_array): Add `offset' parameter, and adjust to use
10738 it.
10739 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10740 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10741 Instead work with offsets. Use
10742 value_contents_for_printing/value_embedded_offset, rather than
10743 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10744 and use value_from_pointer to extract a target pointer, rather
10745 than value_from_longest.
10746 (print_variant_part): Add `offset' parameter. Replace
10747 `outer_valaddr' parameter by a new `outer_offset' parameter.
10748 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10749 (ada_value_print): Use
10750 value_contents_for_printing/value_embedded_offset, rather than
10751 value_contents.
10752 (print_record): Add `offset' parameter, and adjust to pass it
10753 down.
10754 (print_field_values): Add `offset' parameter. Replace
10755 `outer_valaddr' parameter by a new `outer_offset' parameter.
10756 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10757 Use value_contents_for_printing/value_embedded_offset, rather than
10758 value_contents.
10759 * d-valprint.c (dynamic_array_type): Use
10760 value_contents_for_printing/value_embedded_offset, rather than
10761 value_contents.
10762 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10763 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10764 (java_print_value_fields): Take `offset' into account. Don't
10765 re-adjust `valaddr'. Instead pass down adjusted offsets.
10766 (java_val_print): Take `embedded_offset' into account. Pass it to
10767 java_print_value_fields.
10768 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10769 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10770 down adjusted offsets.
10771 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10772 (f_val_print): Take `embedded_offset' into account.
10773
7bfc9434
JB
107742011-01-21 Joel Brobecker <brobecker@adacore.com>
10775
10776 * inflow.c: Include "gdbcmd.h".
10777 (interactive_mode): New static global, moved here from top.c.
10778 (show_interactive_mode): New function, moved here from top.c.
10779 use gdb_has_a_terminal instead of input_from_terminal_p to
10780 determine the current mode.
10781 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10782 setting.
10783 (_initialize_inflow): Add the "set/show interactive-mode"
10784 commands. Moved here from top.c, after having adjusted slightly
10785 the help text.
10786 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10787 to inflow.c.
10788 (input_from_terminal_p): Remove handling of "interactive-mode"
10789 setting, moved to infow.c.
10790 (init_main): Remove creation of the "set/show interactive-mode"
10791 commands, moved to inflow.c.
10792
44603653
JB
107932011-01-19 Joel Brobecker <brobecker@adacore.com>
10794
10795 * NEWS: Add entry for native ia64-hpux support.
10796
4694da01
TT
107972011-01-19 Tom Tromey <tromey@redhat.com>
10798
10799 PR mi/8618:
10800 * thread.c (free_thread): Free 'name'.
10801 (print_thread_info): Emit thread name. Change CLI output.
10802 (thread_name_command): New function.
10803 (do_captured_thread_select): Emit newline.
10804 (_initialize_thread): Register 'thread name' command.
10805 * target.h (struct target_ops) <to_thread_name>: New field.
10806 (target_thread_name): New macro.
10807 * target.c (update_current_target): Handle to_thread_name.
10808 * python/py-infthread.c (thpy_get_name): New function.
10809 (thpy_set_name): Likewise.
10810 (thread_object_getset): Add "name".
10811 * linux-nat.c (linux_nat_thread_name): New function.
10812 (linux_nat_add_target): Set to_thread_name.
10813 * gdbthread.h (struct thread_info) <name>: New field.
10814
10d44370
JB
108152011-01-18 Joel Brobecker <brobecker@adacore.com>
10816
10817 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10818 (ada_val_print_1): Likewise.
10819
e3acb115
JB
108202011-01-18 Joel Brobecker <brobecker@adacore.com>
10821
10822 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10823 upper limit address is not greater than the function end address
10824 when the upper limit could not be computed using the debugging
10825 info.
10826
dc92e161
TT
108272011-01-17 Tom Tromey <tromey@redhat.com>
10828
10829 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10830 get_regcomp_error.
10831 * utils.c: Include gdb_regex.h.
10832 (do_regfree_cleanup): New function.
10833 (make_regfree_cleanup): Likewise.
10834 (get_regcomp_error): Likewise.
10835 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10836
f55af66d
TT
108372011-01-17 Tom Tromey <tromey@redhat.com>
10838
10839 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10840 re_compile_fastmap.
10841
a5a44b53
PM
108422011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10843
10844 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10845 for internal variables.
10846 (last_was_structop): New static variable.
10847 (COMPLETE): New token.
10848 (field_exp): New rule to group all '.' suffix handling.
10849 Add mark_struct_expression calls when approriate to be able
10850 to correctly find fields for completion.
10851 (yylex): Adapt to handle field completion and set INTVAR when
10852 required.
10853
2c291032
YQ
108542011-01-14 Yao Qi <yao@codesourcery.com>
10855
10856 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10857 save_reggroup, restore_reggroup and all_reggroup.
10858
447b483c
JB
108592011-01-14 Joel Brobecker <brobecker@adacore.com>
10860
10861 * ada-valprint. (ada_printchar): Use the correct type length
10862 in call to ada_emit_char.
10863 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10864
7b64a93b
PM
108652011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10866
10867 * solib-som.h (hpux_major_release): Declare variable here.
10868 * solib-som.c: Remove <sys/utsname.h> header.
10869 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10870 (hpux_major_release): Make global, change default value to
10871 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10872 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10873 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10874 Add "solib-som.h" header.
10875 (set_hpux_major_release): New function.
10876 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10877
4e18c053
MF
108782011-01-14 Mike Frysinger <vapier@gentoo.org>
10879
10880 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10881
a9df6b22
JB
108822011-01-14 Joel Brobecker <brobecker@adacore.com>
10883
10884 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10885 new-line at end of warning message.
10886 (ia64_hpux_store_register): Remove trailing new-line at end of
10887 error message.
10888 * ia64-hpux-tdep.c: Rephrase comment.
10889 * solib-ia64-hpux.c (struct dld_info): Change type of field
10890 dld_flags from "long long" to ULONGEST.
10891
ecb956dd
PA
108922011-01-14 Pedro Alves <pedro@codesourcery.com>
10893
10894 * target.h (deprecated_child_ops): Delete declaration.
10895 * target.c (deprecated_child_ops): Delete definition.
10896
76adfcae
PA
108972011-01-14 Pedro Alves <pedro@codesourcery.com>
10898
10899 * Makefile.in (hpux-thread.o): Delete rule.
10900 * configure.ac: Don't check for HPUX DCE threads support.
10901 * configure, config.in: Regenerate.
10902 * hppa-hpux-nat.c (child_suppress_run): Delete.
10903 (hppa_hpux_child_can_run): Delete.
10904 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10905 * hpux-thread.c: Delete.
10906
042e866e
JB
109072011-01-13 Joel Brobecker <brobecker@adacore.com>
10908
10909 * hpux-thread.c (hpux_pid_to_str): Delete.
10910
4ffa5a33
JB
109112011-01-13 Joel Brobecker <brobecker@adacore.com>
10912
10913 * ada-valprint.c (ada_emit_char): Remove strange code.
10914 Check that c is <= UCHAR_MAX before passing it to isascii.
10915 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10916
de8fa76c
JB
109172011-01-13 Joel Brobecker <brobecker@adacore.com>
10918
10919 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10920 to the case where instream is stdin.
10921
c4de7027
JB
109222011-01-13 Joel Brobecker <brobecker@adacore.com>
10923
10924 * ia64-tdep.h (struct regcache): Forward declare.
10925 (struct ia64_infcall_ops): New struct type.
10926 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10927 and "infcall_ops".
10928 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10929 Renames ia64_find_global_pointer.
10930 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10931 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10932 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10933 methods.
10934 (ia64_infcall_ops): New static global constant.
10935 (ia64_gdbarch_init): Set tdep->infcall_ops.
10936 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10937 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10938 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10939 (ia64_hpux_dummy_code): New static global constant.
10940 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10941 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10942 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10943 New function.
10944 (ia64_hpux_infcall_ops): New static global constant.
10945 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10946 for inferior function calls to work properly on ia64-hpux.
10947
77ca787b
JB
109482011-01-13 Joel Brobecker <brobecker@adacore.com>
10949
10950 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10951 * ia64-tdep.h (struct frame_info): forward declaration.
10952 (struct gdbarch_tdep): Add field size_of_register_frame.
10953 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10954 to determine the size of the register frame.
10955 (ia64_size_of_register_frame): New function.
10956 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10957 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10958 (IA64_HPUX_UREG_REASON): New macro.
10959 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10960 New functions.
10961 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10962 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10963 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10964 objects.
10965
92c9a463
JB
109662011-01-13 Joel Brobecker <brobecker@adacore.com>
10967
10968 Add support for ia64-hpux.
10969 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10970 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10971
10972 * configure.host: Add handling for ia64-hpux hosts. Add associated
10973 floatformats.
10974 * configure.tgt: Add handling for ia64-hpux targets.
10975 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10976 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10977 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10978
f688d93f
JB
109792011-01-13 Joel Brobecker <brobecker@adacore.com>
10980
10981 [ttrace] Compute thread list immediately after attach.
10982 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10983 New subprogram.
10984 (inf_ttrace_attach): Use it.
10985
1b89e62f
JB
109862011-01-13 Joel Brobecker <brobecker@adacore.com>
10987
10988 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10989 if we could not determine the frame's function address. Instead,
10990 use the frame's PC, and then continue.
10991
3e5e6e2a
JB
109922011-01-13 Joel Brobecker <brobecker@adacore.com>
10993
10994 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10995 not already defined.
10996
825d6d8a
JB
109972011-01-13 Joel Brobecker <brobecker@adacore.com>
10998
10999 * ia64-tdep.c (ia64_struct_type_p): New function.
11000 (ia64_extract_return_value): Handle integral values that are
11001 less than 8 bytes long.
11002 (ia64_push_dummy_call): Likewise.
11003
7458e667
JB
110042011-01-13 Joel Brobecker <brobecker@adacore.com>
11005
11006 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11007 floatformat_ia64_ext.
11008 (floatformat_ia64_ext_big): New static const.
11009 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11010
1b05df00
TT
110112011-01-12 Tom Tromey <tromey@redhat.com>
11012
11013 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11014 messages.
11015 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11016 (mi_cmd_thread_list_ids): Likewise.
11017 (mi_cmd_data_list_changed_registers): Likewise.
11018 (mi_cmd_data_list_register_values): Likewise.
11019 (mi_cmd_data_write_register_values): Likewise.
11020 (mi_cmd_data_evaluate_expression): Likewise.
11021 (mi_cmd_data_read_memory): Likewise.
11022 (mi_cmd_data_read_memory_bytes): Likewise.
11023 (mi_cmd_data_write_memory): Likewise.
11024 (mi_cmd_enable_timings): Likewise.
11025 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11026 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11027 (mi_cmd_var_delete): Likewise.
11028 (mi_cmd_var_set_format): Likewise.
11029 (mi_cmd_var_show_format): Likewise.
11030 (mi_cmd_var_info_num_children): Likewise.
11031 (mi_cmd_var_list_children): Likewise.
11032 (mi_cmd_var_info_type): Likewise.
11033 (mi_cmd_var_info_expression): Likewise.
11034 (mi_cmd_var_show_attributes): Likewise.
11035 (mi_cmd_var_assign): Likewise.
11036 (mi_cmd_var_update): Likewise.
11037 (mi_cmd_enable_pretty_printing): Likewise.
11038 (mi_cmd_var_set_update_range): Likewise.
11039 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11040 messages.
11041 (mi_cmd_target_file_put): Likewise.
11042 (mi_cmd_target_file_delete): Likewise.
11043 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11044 messages.
11045 (mi_cmd_stack_info_depth): Likewise.
11046 (mi_cmd_stack_list_locals): Likewise.
11047 (mi_cmd_stack_list_args): Likewise.
11048 (mi_cmd_stack_select_frame): Likewise.
11049 (mi_cmd_stack_select_frame): Likewise.
11050 (mi_cmd_stack_info_frame): Likewise.
11051 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11052 messages.
11053 (mi_cmd_file_list_exec_source_files): Likewise.
11054 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11055 (mi_cmd_env_cd): Likewise.
11056 (mi_cmd_env_path): Likewise.
11057 (mi_cmd_env_dir): Likewise.
11058 (mi_cmd_inferior_tty_show): Likewise.
11059 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11060 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11061 (mi_cmd_break_watch): Likewise.
11062
ad422571
TJB
110632011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11064
11065 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11066 (ppc_linux_insert_hw_breakpoint): Likewise.
11067 (ppc_linux_remove_hw_breakpoint): Likewise.
11068 (ppc_linux_insert_watchpoint): Likewise.
11069
c2ff108b
JK
110702011-01-12 Andrew Burgess <aburgess@broadcom.com>
11071 Jan Kratochvil <jan.kratochvil@redhat.com>
11072
11073 PR fortran/11104 and DWARF unbound arrays detection.
11074 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11075 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11076 unspecified upper bound.
11077 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11078 variables array_size_array, tmp_type and offset_item. New variable
11079 array. Remove call to f77_get_upperbound. New variables array_type
11080 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11081 the final call to deprecated_set_value_type.
11082
41e8491f
JK
110832011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11084
11085 Make value allocations more lazy.
11086 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11087 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11088 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11089 instead of allocate_value and set_value_lazy.
11090 * findvar.c (value_of_register_lazy): Likewise.
11091 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11092 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11093 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11094 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11095 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11096 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11097 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11098 the end, remove set_value_lazy there.
11099 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11100 instead of allocate_value and set_value_lazy when possible.
11101 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11102 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11103 of allocate_value and set_value_lazy.
11104 (value_from_contents_and_address): Use allocate_value_lazy instead of
11105 allocate_value and set_value_lazy when possible.
11106
b716877b
AB
111072011-01-12 Andrew Burgess <aburgess@broadcom.com>
11108
11109 * disasm.c (dump_insns): Support dumping opcodes for MI.
11110 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11111 dumping of instruction opcodes.
11112
d5ae309f
JB
111132011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11114
11115 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11116 appropiately.
11117
98871305
TT
111182011-01-11 Tom Tromey <tromey@redhat.com>
11119
11120 * thread.c (do_captured_thread_select): Emit newline before
11121 printing frame.
11122
c378eb4e
MS
111232011-01-11 Michael Snyder <msnyder@vmware.com>
11124
11125 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11126 * score-tdep.c: Ditto.
11127 * score-tdep.h: Ditto.
11128 * ser-base.c: Ditto.
11129 * ser-go32.c: Ditto.
11130 * serial.c: Ditto.
11131 * serial.h: Ditto.
11132 * ser-mingw.c: Ditto.
11133 * ser-pipe.c: Ditto.
11134 * ser-tcp.c: Ditto.
11135 * ser-unix.c: Ditto.
11136 * sh64-tdep.c: Ditto.
11137 * shnbsd-nat.c: Ditto.
11138 * sh-tdep.c: Ditto.
11139 * sh-tdep.h: Ditto.
11140 * solib.c: Ditto.
11141 * solib-darwin.c: Ditto.
11142 * solib-frv.c: Ditto.
11143 * solib.h: Ditto.
11144 * solib-irix.c: Ditto.
11145 * solib-osf.c: Ditto.
11146 * solib-pa64.c: Ditto.
11147 * solib-som.c: Ditto.
11148 * solib-spu.c: Ditto.
11149 * solib-sunos.c: Ditto.
11150 * solib-svr4.c: Ditto.
11151 * solist.h: Ditto.
11152 * sol-thread.c: Ditto.
11153 * somread.c: Ditto.
11154 * source.c: Ditto.
11155 * source.h: Ditto.
11156 * sparc64-linux-tdep.c: Ditto.
11157 * sparc64-tdep.c: Ditto.
11158 * sparc-linux-nat.c: Ditto.
11159 * sparc-linux-tdep.c: Ditto.
11160 * sparc-sol2-nat.c: Ditto.
11161 * sparc-sol2-tdep.c: Ditto.
11162 * sparc-tdep.c: Ditto.
11163 * sparc-tdep.h: Ditto.
11164 * spu-tdep.c: Ditto.
11165 * stabsread.c: Ditto.
11166 * stabsread.h: Ditto.
11167 * stack.c: Ditto.
11168 * symfile.c: Ditto.
11169 * symfile.h: Ditto.
11170 * symmisc.c: Ditto.
11171 * symtab.c: Ditto.
11172 * symtab.h: Ditto.
11173 * target.c: Ditto.
11174 * target-descriptions.c: Ditto.
11175 * target-descriptions.h: Ditto.
11176 * target.h: Ditto.
11177 * target-memory.c: Ditto.
11178 * terminal.h: Ditto.
11179 * thread.c: Ditto.
11180 * top.c: Ditto.
11181 * tracepoint.c: Ditto.
11182 * tracepoint.h: Ditto.
11183 * trad-frame.h: Ditto.
11184 * typeprint.c: Ditto.
11185
581e13c1
MS
111862011-01-11 Michael Snyder <msnyder@vmware.com>
11187
11188 * ui-file.c: Comment cleanup, mostly periods and spaces.
11189 * ui-file.h: Ditto.
11190 * ui-out.c: Ditto.
11191 * ui-out.h: Ditto.
11192 * utils.c: Ditto.
11193 * v850-tdep.c: Ditto.
11194 * valarith.c: Ditto.
11195 * valops.c: Ditto.
11196 * valprint.c: Ditto.
11197 * valprint.h: Ditto.
11198 * value.c: Ditto.
11199 * value.h: Ditto.
11200 * varobj.c: Ditto.
11201 * varobj.h: Ditto.
11202 * vax-tdep.c: Ditto.
11203 * vec.c: Ditto.
11204 * vec.h: Ditto.
11205 * version.h: Ditto.
11206 * windows-nat.c: Ditto.
11207 * windows-tdep.c: Ditto.
11208 * xcoffread.c: Ditto.
11209 * xcoffsolib.c: Ditto.
11210 * xml-support.c: Ditto.
11211 * xstormy16-tdep.c: Ditto.
11212 * xtensa-tdep.c: Ditto.
11213 * xtensa-tdep.h: Ditto.
11214
90e4670f
TJB
112152011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11216
11217 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11218 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11219
e09342b5
TJB
112202011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11221 Thiago Jung Bauermann <bauerman@br.ibm.com>
11222
11223 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11224 * breakpoint.h
e09342b5
TJB
11225 (struct breakpoint_ops) <resources_needed>: New method.
11226 Initialize to NULL in all existing breakpoint_ops instances.
11227 (struct breakpoint) <exact>: New field.
11228 (target_exact_watchpoints): Declare external global.
11229 * breakpoint.c (target_exact_watchpoints): New global flag.
11230 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11231 b->enable_state to bp_enabled before calling
11232 hw_watchpoint_used_count.
11233 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11234 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11235 if available.
11236 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11237 if the watchpoint is exact.
11238 (resources_needed_watchpoint): New function.
11239 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11240 (watch_command_1): Set b->exact if the user asked for an exact
11241 watchpoint and one can be set.
11242 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11243 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11244 the user asks for an exact watchpoint and one can be set. Return
11245 number of needed debug registers to watch the expression.
11246 * gdbtypes.c (is_scalar_type): New function, based on
11247 valprint.c:scalar_type_p.
11248 (is_scalar_type_recursive): New function.
11249 * gdbtypes.h (is_scalar_type_recursive): Declare.
11250 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11251 handle regions when ranged watchpoints are available.
11252 (create_watchpoint_request): New function.
11253 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11254 create_watchpoint_request.
11255 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11256 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11257 `set powerpc' and `show powerpc' commands.
11258 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11259 Mention documentation comment in the target macro.
11260 (target_region_ok_for_hw_watchpoint): Document return value.
11261
9fa40276
TJB
112622011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11263
11264 * breakpoint.c (update_watchpoint): Decide on using a software or
11265 hardware watchpoint after the bp_locations are created.
11266
77b06cd7
TJB
112672010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11268
11269 Convert hardware watchpoints to use breakpoint_ops.
11270 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11271 <insert_location>: ... this. Return int instead of void.
11272 Accept pointer to struct bp_location instead of pointer to
11273 struct breakpoint. Adapt all implementations.
f2eb0bc8 11274 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11275 <remove_location>: ... this. Accept pointer to struct bp_location
11276 instead of pointer to struct breakpoint. Adapt all implementations.
11277 * breakpoint.c (insert_catchpoint): Delete function.
11278 (insert_bp_location): Call the watchpoint or catchpoint's
11279 breakpoint_ops.insert method.
11280 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11281 breakpoint_ops.remove method.
11282 (insert_watchpoint, remove_watchpoint): New functions.
11283 (watchpoint_breakpoint_ops): New structure.
11284 (watch_command_1): Initialize the OPS field.
11285 * inf-child.c (inf_child_insert_fork_catchpoint)
11286 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11287 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11288 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11289 Delete functions.
11290 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11291 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11292 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11293 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11294 * target.c (update_current_target): Change default implementation of
11295 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11296 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11297 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11298 to_set_syscall_catchpoint to return_one.
11299 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11300 (debug_to_insert_exec_catchpoint): Report return value.
11301 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11302 (to_insert_exec_catchpoint): Change declaration to return int instead
11303 of void.
11304
9b20d036
MS
113052011-01-11 Michael Snyder <msnyder@vmware.com>
11306
11307 * arm-tdep.c: Internationalization.
11308 * c-lang.c: Ditto.
11309 * charset.c: Ditto.
11310 * fork-child.c: Ditto.
11311 * nto-procfs.c: Ditto.
11312 * ppc-sysv-tdep.c: Ditto.
11313 * procfs.c: Ditto.
11314 * remote-mips.c: Ditto.
11315 * remote.c: Ditto.
11316 * rs6000-nat.c: Ditto.
11317 * rs6000-tdep.c: Ditto.
11318 * target.c: Ditto.
11319 * valops.c: Ditto.
11320 * value.c: Ditto.
11321 * xml-support.c: Ditto.
11322 * mi/mi-cmd-break.c: Ditto.
11323 * mi/mi-cmd-var.c: Ditto.
11324 * mi/mi-interp.c: Ditto.
11325 * mi/mi-main.c: Ditto.
11326
dae477fe
AB
113272011-01-11 Andrew Burgess <aburgess@broadcom.com>
11328
11329 * remote-sim.c (gdbsim_store_register): Update API to
11330 sim_store_register to check more error conditions.
11331
0df8b418
MS
113322011-01-10 Michael Snyder <msnyder@vmware.com>
11333
11334 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11335 * nto-tdep.c: Ditto.
11336 * nto-tdep.h: Ditto.
11337 * objc-exp.y: Ditto.
11338 * objc-lang.c: Ditto.
11339 * objfiles.c: Ditto.
11340 * objfiles.h: Ditto.
11341 * observer.c: Ditto.
11342 * opencl-lang.c: Ditto.
11343 * osabi.c: Ditto.
11344 * parse.c: Ditto.
11345 * parser-defs.h: Ditto.
11346 * p-exp.y: Ditto.
11347 * p-lang.c: Ditto.
11348 * posix-hdep.c: Ditto.
11349 * ppcbug-rom.c: Ditto.
11350 * ppc-linux-nat.c: Ditto.
11351 * ppc-linux-tdep.c: Ditto.
11352 * ppc-linux-tdep.h: Ditto.
11353 * ppcnbsd-tdep.c: Ditto.
11354 * ppcobsd-tdep.c: Ditto.
11355 * ppcobsd-tdep.h: Ditto.
11356 * ppc-sysv-tdep.c: Ditto.
11357 * ppc-tdep.h: Ditto.
11358 * printcmd.c: Ditto.
11359 * proc-abi.c: Ditto.
11360 * proc-flags.c: Ditto.
11361 * procfs.c: Ditto.
11362 * proc-utils.h: Ditto.
11363 * progspace.h: Ditto.
11364 * prologue-value.c: Ditto.
11365 * prologue-value.h: Ditto.
11366 * psympriv.h: Ditto.
11367 * psymtab.c: Ditto.
11368 * p-typeprint.c: Ditto.
11369 * p-valprint.c: Ditto.
11370 * ravenscar-sparc-thread.c: Ditto.
11371 * ravenscar-thread.c: Ditto.
11372 * ravenscar-thread.h: Ditto.
11373 * record.c: Ditto.
11374 * regcache.c: Ditto.
11375 * regcache.h: Ditto.
11376 * remote.c: Ditto.
11377 * remote-fileio.c: Ditto.
11378 * remote-fileio.h: Ditto.
11379 * remote.h: Ditto.
11380 * remote-m32r-sdi.c: Ditto.
11381 * remote-mips.c: Ditto.
11382 * remote-sim.c: Ditto.
11383 * rs6000-aix-tdep.c: Ditto.
11384 * rs6000-nat.c: Ditto.
11385 * rs6000-tdep.c: Ditto.
11386
0d7a18f7
MS
113872011-01-10 Michael Snyder <msnyder@vmware.com>
11388
11389 * charset.c (validate): Internationalization.
11390 * coffread.c (read_one_sym): Ditto.
11391 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11392 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11393 * inflow.c (new_tty): Ditto.
11394 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11395 * m32c-tdep.c (m32c_return_value): Ditto.
11396 * mep-tdep.c (mep_store_return_value): Ditto.
11397 * score-tdep.c (score7_fetch_insn): Ditto.
11398 * ser-mingw.c (pipe_windows_open): Ditto.
11399 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11400 * spu-tdep.c (spu_register_type): Ditto.
11401 * tracepoint.c (trace_find_command): Ditto.
11402 * valarith.c (value_pos): Ditto.
11403
9a153e0b
JB
114042011-01-10 Joel Brobecker <brobecker@adacore.com>
11405
11406 * ada-valprint.c (printstr): Minor comment reformatting.
11407
35ecd2d6
MS
114082011-01-08 Michael Snyder <msnyder@vmware.com>
11409
11410 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11411 markup.
11412
1777feb0
MS
114132011-01-08 Michael Snyder <msnyder@vmware.com>
11414
11415 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11416 * hppa-hpux-tdep.c: Ditto.
11417 * hppa-linux-nat.c: Ditto.
11418 * hppa-linux-tdep.c: Ditto.
11419 * hppanbsd-tdep.c: Ditto.
11420 * hppa-tdep.c: Ditto.
11421 * hppa-tdep.h: Ditto.
11422 * hpux-thread.c: Ditto.
11423 * i386-cygwin-tdep.c: Ditto.
11424 * i386-darwin-nat.c: Ditto.
11425 * i386gnu-nat.c: Ditto.
11426 * i386-linux-nat.c: Ditto.
11427 * i386-linux-tdep.c: Ditto.
11428 * i386-nat.c: Ditto.
11429 * i386-nat.h: Ditto.
11430 * i386nbsd-tdep.c: Ditto.
11431 * i386-sol2-nat.c: Ditto.
11432 * i386-stub.c: Ditto.
11433 * i386-tdep.c: Ditto.
11434 * i386-tdep.h: Ditto.
11435 * i387-tdep.c: Ditto.
11436 * ia64-linux-nat.c: Ditto.
11437 * ia64-linux-tdep.c: Ditto.
11438 * ia64-tdep.c: Ditto.
11439 * infcall.c: Ditto.
11440 * infcall.h: Ditto.
11441 * infcmd.c: Ditto.
11442 * inferior.c: Ditto.
11443 * inferior.h: Ditto.
11444 * infloop.c: Ditto.
11445 * inflow.c: Ditto.
11446 * infrun.c: Ditto.
11447 * interps.c: Ditto.
11448 * interps.h: Ditto.
11449 * iq2000-tdep.c: Ditto.
11450 * irix5-nat.c: Ditto.
11451 * jit.c: Ditto.
11452 * jit.h: Ditto.
11453 * jv-exp.y: Ditto.
11454 * jv-lang.c: Ditto.
11455 * jv-lang.h: Ditto.
11456 * jv-typeprint.c: Ditto.
11457 * jv-valprint.c: Ditto.
11458 * language.c: Ditto.
11459 * language.h: Ditto.
11460 * linespec.c: Ditto.
11461 * linux-fork.c: Ditto.
11462 * linux-nat.c: Ditto.
11463 * linux-thread-db.c: Ditto.
11464 * lm32-tdep.c: Ditto.
11465
025bb325
MS
114662011-01-08 Michael Snyder <msnyder@vmware.com>
11467
11468 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11469 * m2-lang.c: Ditto.
11470 * m2-typeprint.c: Ditto.
11471 * m2-valprint.c: Ditto.
11472 * m32c-tdep.c: Ditto.
11473 * m32r-linux-nat.c: Ditto.
11474 * m32r-rom.c: Ditto.
11475 * m32r-tdep.c: Ditto.
11476 * m32r-tdep.h: Ditto.
11477 * m68hc11-tdep.c: Ditto.
11478 * m58klinux-nat.c: Ditto.
11479 * m68k-tdep.c: Ditto.
11480 * m88k-tdep.c: Ditto.
11481 * m88k-tdep.h: Ditto.
11482 * machoread.c: Ditto.
11483 * macrocmd.c: Ditto.
11484 * macroexp.c: Ditto.
11485 * macrotab.c: Ditto.
11486 * main.c: Ditto.
11487 * maint.c: Ditto.
11488 * mdebugread.c: Ditto.
11489 * mdebugread.h: Ditto.
11490 * memattr.c: Ditto.
11491 * memattr.h: Ditto.
11492 * memory-map.h: Ditto.
11493 * mep-tdep.c: Ditto.
11494 * microblaze-rom.c: Ditto.
11495 * microblaze-tdep.c: Ditto.
11496 * minsyms.c: Ditto.
11497 * mips-irix-tdep.c: Ditto.
11498 * mips-linux-nat.c: Ditto.
11499 * mips-linux-tdep.c: Ditto.
11500 * mips-linux-tdep.h: Ditto.
11501 * mipsnbsd-nat.c: Ditto.
11502 * mipsnbsd-tdep.c: Ditto.
11503 * mipsread.c: Ditto.
11504 * mips-tdep.c: Ditto.
11505 * mips-tdep.h: Ditto.
11506 * mn10300-linux-tdep.c: Ditto.
11507 * mn10300-tdep.c: Ditto.
11508 * mn10300-tdep.h: Ditto.
11509 * monitor.c: Ditto.
11510 * monitor.h: Ditto.
11511 * moxie-tdep.c: Ditto.
11512 * moxie-tdep.h: Ditto.
11513 * mt-tdep.c: Ditto.
11514
1642781b
MF
115152011-01-08 Mike Frysinger <vapier@gentoo.org>
11516
11517 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11518
394b0adb
JB
115192011-01-08 Robert Millan <rmh@gnu.org>
11520
11521 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11522
b670013c
MS
115232011-01-07 Michael Snyder <msnyder@vmware.com>
11524
11525 * charset.c (_initialize_charset): Fix typo in string.
11526
a743e542
MS
115272011-01-07 Michael Snyder <msnyder@vmware.com>
11528
11529 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11530 for i18n.
f2eb0bc8 11531 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11532 Split line so that operator goes to beginning of line.
11533 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11534 assignment out of if statement.
11535
0963b4bd
MS
115362011-01-07 Michael Snyder <msnyder@vmware.com>
11537
11538 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11539 * ada-lang.h: Ditto.
11540 * ada-tasks.c: Ditto.
11541 * ada-valprint.c: Ditto.
11542 * aix-threads.c: Ditto.
11543 * alpha-linux-nat.c: Ditto.
11544 * alpha-linux-tdep.c: Ditto.
11545 * alpha-mdebug-tdep.c: Ditto.
11546 * alpha-nat.c: Ditto.
11547 * alpha-osf1-tdep.c: Ditto.
11548 * alpha-tdep.c: Ditto.
11549 * alphabsd-nat.c: Ditto.
11550 * alphabsd-tdep.c: Ditto.
11551 * amd64-darwin-tdep.c: Ditto.
11552 * amd64-linux-nat.c: Ditto.
11553 * amd64-linux-tdep.c: Ditto.
11554 * amd64-sol2-tdep.c: Ditto.
11555 * amd64-tdep.c: Ditto.
11556 * amd64-fbsd-tdep.c: Ditto.
11557 * amd64-nbsd-tdep.c: Ditto.
11558 * amd64-obsd-tdep.c: Ditto.
11559 * amd64-linux-nat.c: Ditto.
11560 * amd64-linux-tdep.c: Ditto.
11561 * arm-tdep.c: Ditto.
11562 * arm-tdep.h: Ditto.
11563 * armnbsd-nat.c: Ditto.
11564 * avr-tdep.c: Ditto.
11565 * bfin-tdep.c: Ditto.
11566 * bsd-kvm.c: Ditto.
11567 * c-typeprintc: Ditto.
11568 * c-valprint.c: Ditto.
11569 * coff-pe-read.h: Ditto.
11570 * coffreead.c: Ditto.
11571 * cris-tdep.c: Ditto.
11572 * d-lang.c: Ditto.
11573 * darwin-nat-info.c: Ditto.
11574 * darwin-nat.c: Ditto.
11575 * dbug-rom.c: Ditto.
11576 * dbxread.c: Ditto.
11577 * dcache.c: Ditto.
11578 * dcache.h: Ditto.
11579 * dec-thread.c: Ditto.
11580 * defs.h: Ditto.
11581 * demangle.c: Ditto.
11582 * dicos-tdep.c: Ditto.
11583 * dictionary.c: Ditto.
11584 * dictionary.h: Ditto.
11585 * dink32-rom.c: Ditto.
11586 * disasm.c: Ditto.
11587 * doublest.c: Ditto.
11588 * dsrec.c: Ditto.
11589 * dummy-frame.c: Ditto.
11590 * dwarf2-frame.c: Ditto.
11591 * dwarf2expr.c: Ditto.
11592 * dwarf2loc.c: Ditto.
11593 * dwarf2read.c: Ditto.
11594 * elfread.c: Ditto.
11595 * environ.c: Ditto.
11596 * eval.c: Ditto.
11597 * event-top.h: Ditto.
11598 * exceptions.c: Ditto.
11599 * exceptions.h: Ditto.
11600 * exec.c: Ditto.
11601 * expprint.c: Ditto.
11602 * expression.h: Ditto.
11603 * f-exp.y: Ditto.
11604 * f-lang.c: Ditto.
11605 * f-lang.h: Ditto.
11606 * f-typeprint.c: Ditto.
11607 * f-valprint.c: Ditto.
11608 * fbsd-nat.c: Ditto.
11609 * findvar.c: Ditto.
11610 * fork-child.c: Ditto.
11611 * frame.c: Ditto.
11612 * frame.h: Ditto.
11613 * frv-linux-tdep.c: Ditto.
11614 * frv-tdep.c: Ditto.
11615 * gcore.c: Ditto.
11616 * gdb-stabs.h: Ditto.
11617 * gdb_assert.h: Ditto.
11618 * gdb_string.h: Ditto.
11619 * gdb_thread_db.h: Ditto.
11620 * gdb_wait.h: Ditto.
11621 * gdbarch.sh: Ditto.
11622 * gdbcore.h: Ditto.
11623 * gdbthread.h: Ditto.
11624 * gdbtypes.c: Ditto.
11625 * gdbtypes.h: Ditto.
11626 * gnu-nat.c: Ditto.
11627 * gnu-nat.h: Ditto.
11628 * gnu-v2-abi.c: Ditto.
11629 * gnu-v3-abi.c: Ditto.
11630 * go32-nat.c: Ditto.
11631 * gdbarch.c: Regenerate.
11632 * gdbarch.h: Regenerate.
11633
ac74f770
MS
116342011-01-07 Michael Snyder <msnyder@vmware.com>
11635
11636 * ax-gdb.c: Adjust some long output strings.
11637 * breakpoint.c: Ditto.
11638 * charset.c: Ditto.
11639 * cp-abi.c: Ditto.
11640 * infcall.c: Ditto.
11641 * infrun.c: Ditto.
11642 * linux-nat.c: Ditto.
11643 * solib-pa64.c: Ditto.
11644 * solib-som.c: Ditto.
11645
d8e22779
TT
116462011-01-06 Tom Tromey <tromey@redhat.com>
11647
11648 PR python/12367:
11649 * NEWS: Add item.
11650 * python/python.c (GdbMethods): Add "newest_frame" method.
11651 * python/python-internal.h (gdbpy_newest_frame): Declare.
11652 * python/py-frame.c (gdbpy_newest_frame): New function.
11653
a255712f
PP
116542010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11655
11656 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11657 * jit.c (jit_debug): New variable.
11658 (show_jit_debug): New function.
11659 (struct target_buffer): Use ULONGEST.
11660 (bfd_open_from_target_memory): Likewise.
11661 (jit_register_code, jit_inferior_init): Add debug output.
11662 (_initialize_jit): Register "debug jit" command.
11663
ccfc3d6e
TT
116642011-01-06 Tom Tromey <tromey@redhat.com>
11665
11666 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11667 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11668 and ARCH_FRAME.
11669
57126e4a
TT
116702011-01-06 Tom Tromey <tromey@redhat.com>
11671
11672 * python/py-frame.c (frapy_block): Use get_frame_block.
11673
16dfc9ce
JB
116742011-01-06 Joel Brobecker <brobecker@adacore.com>
11675
11676 Do not stop on SIGPRIO signals by default
11677 * infrun.c (_initialize_infrun): Unset signal_stop and
11678 signal_print for TARGET_SIGNAL_PRIO.
11679
b1ce2347
JB
116802011-01-06 Joel Brobecker <brobecker@adacore.com>
11681
11682 * ada-tasks.c: Fix style violation in comment.
11683
8f7e195f
JB
116842011-01-06 Joel Brobecker <brobecker@adacore.com>
11685
11686 * linespec.c (decode_compound, find_method): Remove trailing \n
11687 at end of error string.
11688 * solib-irix.c (irix_current_sos): Likewise.
11689 * varobj.c (uninstall_variable): Likewise.
11690
e9bdf92c
JB
116912011-01-06 Joel Brobecker <brobecker@adacore.com>
11692
11693 * copyright.py: New script.
11694 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11695 Launch emacs without exec'ing. Call copyright.py afterwards.
11696
3e43a32a
MS
116972011-01-05 Michael Snyder <msnyder@vmware.com>
11698
11699 * addrmap.c: Shorten lines of >= 80 columns.
11700 * arch-utils.c: Ditto.
11701 * arch-utils.h: Ditto.
11702 * ax-gdb.c: Ditto.
11703 * ax-general.c: Ditto.
11704 * bcache.c: Ditto.
11705 * blockframe.c: Ditto.
11706 * breakpoint.c: Ditto.
11707 * buildsym.c: Ditto.
11708 * c-lang.c: Ditto.
11709 * c-typeprint.c: Ditto.
11710 * charset.c: Ditto.
11711 * coffread.c: Ditto.
11712 * command.h: Ditto.
11713 * corelow.c: Ditto.
11714 * cp-abi.c: Ditto.
11715 * cp-namespace.c: Ditto.
11716 * cp-support.c: Ditto.
11717 * dbug-rom.c: Ditto.
11718 * dbxread.c: Ditto.
11719 * defs.h: Ditto.
11720 * dfp.c: Ditto.
11721 * dfp.h: Ditto.
11722 * dictionary.c: Ditto.
11723 * disasm.c: Ditto.
11724 * doublest.c: Ditto.
11725 * dwarf2-frame.c: Ditto.
11726 * dwarf2expr.c: Ditto.
11727 * dwarf2loc.c: Ditto.
11728 * dwarf2read.c: Ditto.
11729 * elfread.c: Ditto.
11730 * eval.c: Ditto.
11731 * event-loop.c: Ditto.
11732 * event-loop.h: Ditto.
11733 * exceptions.h: Ditto.
11734 * exec.c: Ditto.
11735 * expprint.c: Ditto.
11736 * expression.h: Ditto.
11737 * f-lang.c: Ditto.
11738 * f-valprint.c: Ditto.
11739 * findcmd.c: Ditto.
11740 * frame-base.c: Ditto.
11741 * frame-unwind.c: Ditto.
11742 * frame-unwind.h: Ditto.
11743 * frame.c: Ditto.
11744 * frame.h: Ditto.
11745 * gcore.c: Ditto.
11746 * gdb-stabs.h: Ditto.
11747 * gdb_assert.h: Ditto.
11748 * gdb_dirent.h: Ditto.
11749 * gdb_obstack.h: Ditto.
11750 * gdbcore.h: Ditto.
11751 * gdbtypes.c: Ditto.
11752 * gdbtypes.h: Ditto.
11753 * inf-ttrace.c: Ditto.
11754 * infcall.c: Ditto.
11755 * infcmd.c: Ditto.
11756 * inflow.c: Ditto.
11757 * infrun.c: Ditto.
11758 * inline-frame.h: Ditto.
11759 * language.c: Ditto.
11760 * language.h: Ditto.
11761 * libunwind-frame.c: Ditto.
11762 * libunwind-frame.h: Ditto.
11763 * linespec.c: Ditto.
11764 * linux-nat.c: Ditto.
11765 * linux-nat.h: Ditto.
11766 * linux-thread-db.c: Ditto.
11767 * machoread.c: Ditto.
11768 * macroexp.c: Ditto.
11769 * macrotab.c: Ditto.
11770 * main.c: Ditto.
11771 * maint.c: Ditto.
11772 * mdebugread.c: Ditto.
11773 * memattr.c: Ditto.
11774 * minsyms.c: Ditto.
11775 * monitor.c: Ditto.
11776 * monitor.h: Ditto.
11777 * objfiles.c: Ditto.
11778 * objfiles.h: Ditto.
11779 * osabi.c: Ditto.
11780 * p-typeprint.c: Ditto.
11781 * p-valprint.c: Ditto.
11782 * parse.c: Ditto.
11783 * printcmd.c: Ditto.
11784 * proc-events.c: Ditto.
11785 * procfs.c: Ditto.
11786 * progspace.c: Ditto.
11787 * progspace.h: Ditto.
11788 * psympriv.h: Ditto.
11789 * psymtab.c: Ditto.
11790 * record.c: Ditto.
11791 * regcache.c: Ditto.
11792 * regcache.h: Ditto.
11793 * remote-fileio.c: Ditto.
11794 * remote.c: Ditto.
11795 * ser-mingw.c: Ditto.
11796 * ser-tcp.c: Ditto.
11797 * ser-unix.c: Ditto.
11798 * serial.c: Ditto.
11799 * serial.h: Ditto.
11800 * solib-frv.c: Ditto.
11801 * solib-irix.c: Ditto.
11802 * solib-osf.c: Ditto.
11803 * solib-pa64.c: Ditto.
11804 * solib-som.c: Ditto.
11805 * solib-sunos.c: Ditto.
11806 * solib-svr4.c: Ditto.
11807 * solib-target.c: Ditto.
11808 * solib.c: Ditto.
11809 * somread.c: Ditto.
11810 * source.c: Ditto.
11811 * stabsread.c: Ditto.
11812 * stabsread.c: Ditto.
11813 * stack.c: Ditto.
11814 * stack.h: Ditto.
11815 * symfile-mem.c: Ditto.
11816 * symfile.c: Ditto.
11817 * symfile.h: Ditto.
11818 * symmisc.c: Ditto.
11819 * symtab.c: Ditto.
11820 * symtab.h: Ditto.
11821 * target-descriptions.c: Ditto.
11822 * target-memory.c: Ditto.
11823 * target.c: Ditto.
11824 * target.h: Ditto.
11825 * terminal.h: Ditto.
11826 * thread.c: Ditto.
11827 * top.c: Ditto.
11828 * tracepoint.c: Ditto.
11829 * tracepoint.h: Ditto.
11830 * ui-file.c: Ditto.
11831 * ui-file.h: Ditto.
11832 * ui-out.h: Ditto.
11833 * user-regs.c: Ditto.
11834 * user-regs.h: Ditto.
11835 * utils.c: Ditto.
11836 * valarith.c: Ditto.
11837 * valops.c: Ditto.
11838 * valprint.c: Ditto.
11839 * valprint.h: Ditto.
11840 * value.c: Ditto.
11841 * varobj.c: Ditto.
11842 * varobj.h: Ditto.
11843 * vec.h: Ditto.
11844 * xcoffread.c: Ditto.
11845 * xcoffsolib.c: Ditto.
11846 * xcoffsolib.h: Ditto.
11847 * xml-syscall.c: Ditto.
11848 * xml-tdesc.c: Ditto.
11849
9a2b4c1b
MS
118502011-01-05 Michael Snyder <msnyder@vmware.com>
11851
11852 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11853 * cli/cli-decode.c: Ditto.
11854 * cli/cli-dump.c: Ditto.
11855 * cli/cli-logging.c: Ditto.
11856 * cli/cli-script.c: Ditto.
11857 * cli/cli-setshow.c: Ditto.
11858 * common/signals.c: Ditto.
11859 * mi/mi-cmd-break.c: Ditto.
11860 * mi/mi-cmd-disas.c: Ditto.
11861 * mi/mi-cmd-stack.c: Ditto.
11862 * mi/mi-cmd-var.c: Ditto.
11863 * mi/mi-cmds.c: Ditto.
11864 * mi/mi-common.h: Ditto.
11865 * mi/mi-console.c: Ditto.
11866 * mi/mi-interp.c: Ditto.
11867 * mi/mi-main.c: Ditto.
11868 * osf-share/cma_attr.c: Ditto.
11869 * osf-share/cma_deb_core.h: Ditto.
11870 * osf-share/cma_debug_client.h: Ditto.
11871 * osf-share/cma_handle.h: Ditto.
11872 * osf-share/cma_mutex.h: Ditto.
11873 * osf-share/cma_stack_int.h: Ditto.
11874 * osf-share/cma_tcb_defs.h: Ditto.
11875 * python/py-auto-load.c: Ditto.
11876 * python/py-breakpoint.c: Ditto.
11877 * python/py-cmd.c: Ditto.
11878 * python/py-frame.c: Ditto.
11879 * python/py-objfile.c: Ditto.
11880 * python/py-param.c: Ditto.
11881 * python/py-progspace.c: Ditto.
11882 * python/py-symbol.c: Ditto.
11883 * python/py-value.c: Ditto.
11884 * python/python-internal.h: Ditto.
11885 * python/python.c: Ditto.
11886 * tui/tui-data.c: Ditto.
11887 * tui/tui-disasm.c: Ditto.
11888 * tui/tui-hooks.c: Ditto.
11889 * tui/tui-io.c: Ditto.
11890 * tui/tui-layout.c: Ditto.
11891 * tui/tui-regs.c: Ditto.
11892 * tui/tui-source.c: Ditto.
11893 * tui/tui-stack.c: Ditto.
11894 * tui/tui-win.c: Ditto.
11895 * tui/tui-windata.c: Ditto.
11896 * tui/tui-winsource.c: Ditto.
11897
44944448
JB
118982011-01-05 Joel Brobecker <brobecker@adacore.com>
11899
11900 * configure.ac, gdb.1: Copyright year update.
11901
ebedcab5
JK
119022011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11903
11904 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11905 this_pc_in_block, morestack_msym and morestack_name. Check for
11906 "__morestack" minimal symbol there.
11907
e5cc9f32
JB
119082011-01-03 Joel Brobecker <brobecker@adacore.com>
11909
11910 * symfile.c (find_sym_fns): Add call to dont_repeat.
11911
7b6bb8da
JB
119122011-01-01 Joel Brobecker <brobecker@adacore.com>
11913
11914 Copyright year update in most files (performed by copyright.sh).
11915
71ce852c
JB
119162011-01-01 Joel Brobecker <brobecker@adacore.com>
11917
11918 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11919
c3c1ebe8 11920For older changes see ChangeLog-2010.
c906108c
SS
11921\f
11922Local Variables:
11923mode: change-log
11924left-margin: 8
11925fill-column: 74
11926version-control: never
57da7796 11927coding: utf-8
c906108c 11928End: