gdb/gdbserver/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91912e4d
MR
12011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
4 performed to determine whether an address refers to standard
5 MIPS or MIPS16 code.
6 (mips16_next_pc): Use mips_pc_is_mips16 instead of
7 is_mips16_addr.
8
f0ba3972
PA
92011-12-06 Pedro Alves <pedro@codesourcery.com>
10
11 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
12 (breakpoint_xfer_memory): ... this. Change prototype. Handle
13 memory writes too.
14 * breakpoint.h (breakpoint_restore_shadows): Delete.
15 (breakpoint_xfer_memory): Declare.
16 * mem-break.c (default_memory_insert_breakpoint)
17 (default_memory_remove_breakpoint): Use target_write_raw_memory.
18 (memory_xfer_partial): Rename to ...
19 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
20 here.
21 (memory_xfer_partial): New.
22 (target_write_raw_memory): New.
23 * target.h (target_write_raw_memory): New.
24
31aba06f
DE
252011-12-06 Doug Evans <dje@google.com>
26
27 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
28
f8eba3c6
TT
292011-12-06 Joel Brobecker <brobecker@acacore.com>
30
31 * language.h (struct language_defn): Add new component
32 la_symbol_name_compare.
33 * symfile.h (struct quick_symbol_functions): Update the profile
34 of parameter "name_matcher" for the expand_symtabs_matching
35 method. Update the documentation accordingly.
36 * ada-lang.h (ada_name_for_lookup): Add declaration.
37 * ada-lang.c (ada_name_for_lookup): New function, extracted out
38 from ada_iterate_over_symbols.
39 (ada_iterate_over_symbols): Do not encode symbol name anymore.
40 (ada_expand_partial_symbol_name): Adjust profile.
41 (ada_language_defn): Add value for la_symbol_name_compare field.
42 * linespec.c: #include "ada-lang.h".
43 (iterate_name_matcher): Add language parameter. Replace call
44 to strcmp_iw by call to language->la_symbol_name_compare.
45 (decode_variable): Encode COPY if current language is Ada.
46 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
47 of name_matcher parameter. Adjust call to name_matcher.
48 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
49 (expand_partial_symbol_names): Update profile of parameter "fun".
50 * psymtab.h (expand_partial_symbol_names): Update profile of
51 parameter "fun".
52 * symtab.c (demangle_for_lookup): Update function documentation.
53 (search_symbols_name_matches): Add language parameter.
54 (expand_partial_symbol_name): Likewise.
55 * c-lang.c (c_language_defn, cplus_language_defn)
56 (asm_language_defn, minimal_language_defn): Add value for
57 la_symbol_name_compare field.
58 * d-lang.c (d_language_defn): Likewise.
59 * f-lang.c (f_language_defn): Ditto.
60 * jv-lang.c (java_language_defn): Ditto.
61 * m2-lang.c (m2_language_defn): Ditto.
62 * objc-lang.c (objc_language_defn): Ditto.
63 * opencl-lang.c (opencl_language_defn): Ditto.
64 * p-lang.c (pascal_language_defn): Ditto.
65 * language.c (unknown_language_defn, auto_language_defn)
66 (local_language_defn): Ditto.
67
682011-12-06 Tom Tromey <tromey@redhat.com>
69
70 * linespec.c (iterate_over_all_matching_symtabs): Use
71 LA_ITERATE_OVER_SYMBOLS.
72 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
73 (find_function_symbols, decode_variable): Remove Ada special
74 case.
75 * language.h (struct language_defn) <la_iterate_over_symbols>: New
76 field.
77 (LA_ITERATE_OVER_SYMBOLS): New macro.
78 * language.c (unknown_language_defn, auto_language_defn)
79 (local_language_defn): Update.
80 * c-lang.c (c_language_defn, cplus_language_defn)
81 (asm_language_defn, minimal_language_defn): Update.
82 * d-lang.c (d_language_defn): Update.
83 * f-lang.c (f_language_defn): Update.
84 * jv-lang.c (java_language_defn): Update.
85 * m2-lang.c (m2_language_defn): Update.
86 * objc-lang.c (objc_language_defn): Update.
87 * opencl-lang.c (opencl_language_defn): Update.
88 * p-lang.c (pascal_language_defn): Update.
89 * ada-lang.c (ada_iterate_over_symbols): New function.
90 (ada_language_defn): Update.
91
922011-12-06 Tom Tromey <tromey@redhat.com>
93 Joel Brobecker <brobecker@acacore.com>
94
95 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
96 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
97 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
98 PR shlibs/8929, PR shlibs/7393:
99 * python/py-type.c (compare_maybe_null_strings): Rename from
100 compare_strings.
101 (check_types_equal): Update.
102 * utils.c (compare_strings): New function.
103 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
104 location changes.
105 * tracepoint.c (scope_info): Update.
106 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
107 * symtab.h (iterate_over_minimal_symbols)
108 (iterate_over_some_symtabs, iterate_over_symtabs)
109 (find_pcs_for_symtab_line, iterate_over_symbols)
110 (demangle_for_lookup): Declare.
111 (expand_line_sal): Remove.
112 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
113 (lookup_symtab_callback): New functions.
114 (lookup_symtab): Rewrite.
115 (demangle_for_lookup): New function, extract from
116 lookup_symbol_in_language.
117 (lookup_symbol_in_language): Use it.
118 (iterate_over_symbols): New function.
119 (find_line_symtab): Update.
120 (find_pcs_for_symtab_line): New functions.
121 (find_line_common): Add 'start' argument.
122 (decode_line_spec): Update. Change argument to 'flags', change
123 interpretation.
124 (append_expanded_sal): Remove.
125 (append_exact_match_to_sals): Remove.
126 (expand_line_sal): Remove.
127 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
128 Remove.
129 <map_symtabs_matching_filename>: New field.
130 * stack.c (func_command): Only look in the current program space.
131 Use DECODE_LINE_FUNFIRSTLINE.
132 * source.c (line_info): Set pspace on sal. Check program space in
133 the loop. Use DECODE_LINE_LIST_MODE.
134 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
135 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
136 * python/python.c (gdbpy_decode_line): Update.
137 * psymtab.c (partial_map_expand_apply): New function.
138 (partial_map_symtabs_matching_filename): Rename from
139 lookup_partial_symbol. Update arguments.
140 (lookup_symtab_via_partial_symtab): Remove.
141 (psym_functions): Update.
142 * objc-lang.h (parse_selector, parse_method): Don't declare.
143 (find_imps): Update.
144 * objc-lang.c (parse_selector, parse_method): Now static.
145 (find_methods): Change arguments. Fill in a vector of symbol
146 names.
147 (uniquify_strings): New function.
148 (find_imps): Change arguments.
149 * minsyms.c (iterate_over_minimal_symbols): New function.
150 * linespec.h (enum decode_line_flags): New.
151 (struct linespec_sals): New.
152 (struct linespec_result) <canonical>: Remove.
153 <pre_expanded, addr_string, sals>: New fields.
154 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
155 (decode_line_full): Declare.
156 (decode_line_1): Update.
157 * linespec.c (struct address_entry, struct linespec_state, struct
158 collect_info): New types.
159 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
160 (eq_address_entry, maybe_add_address): New functions.
161 (total_number_of_methods): Remove.
162 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
163 functions.
164 (find_methods): Change arguments. Don't canonicalize input.
165 Simplify logic.
166 (add_matching_methods, add_constructors)
167 (build_canonical_line_spec): Remove.
168 (filter_results, convert_results_to_lsals): New functions.
169 (decode_line_2): Change arguments. Rewrite for new data
170 structures.
171 (decode_line_internal): Rename from decode_line_1. Change
172 arguments. Add cleanups. Update for new data structures.
173 (linespec_state_constructor, linespec_state_destructor)
174 (decode_line_full, decode_line_1): New functions.
175 (decode_indirect): Change arguments. Update.
176 (locate_first_half): Use skip_spaces.
177 (decode_objc): Change arguments. Update for new data structures.
178 Simplify logic.
179 (decode_compound): Change arguments. Add cleanups. Remove
180 fallback code, replace with error.
181 (struct decode_compound_collector): New type.
182 (collect_one_symbol): New function.
183 (lookup_prefix_sym): Change arguments. Update.
184 (compare_symbol_name, add_all_symbol_names_from_pspace)
185 (find_superclass_methods ): New functions.
186 (find_method): Rewrite.
187 (struct symtab_collector): New type.
188 (add_symtabs_to_list, collect_symtabs_from_filename): New
189 functions.
190 (symtabs_from_filename): Change API. Rename from
191 symtab_from_filename.
192 (collect_function_symbols): New function.
193 (find_function_symbols): Change API. Rename from
194 find_function_symbol. Rewrite.
195 (decode_all_digits): Change arguments. Rewrite.
196 (decode_dollar): Change arguments. Use decode_variable.
197 (decode_label): Change arguments. Rewrite.
198 (collect_symbols): New function.
199 (minsym_found): Change arguments. Rewrite.
200 (check_minsym, search_minsyms_for_name)
201 (add_matching_symbols_to_info): New function.
202 (decode_variable): Change arguments. Iterate over all symbols.
203 (symbol_found): Remove.
204 (symbol_to_sal): New function.
205 (init_linespec_result, destroy_linespec_result)
206 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
207 New functions.
208 (decode_digits_list_mode, decode_digits_ordinary): New functions.
209 * dwarf2read.c (dw2_map_expand_apply): New function.
210 (dw2_map_symtabs_matching_filename): Rename from
211 dw2_lookup_symtab. Change arguments.
212 (dwarf2_gdb_index_functions): Update.
213 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
214 * defs.h (compare_strings): Declare.
215 * cli/cli-cmds.c (compare_strings): Move to utils.c.
216 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
217 filter_sals.
218 (compare_symtabs, filter_sals): New functions.
219 * breakpoint.h (struct bp_location) <line_number, source_file>:
220 New fields.
221 (struct breakpoint) <line_number, source_file>: Remove.
222 <filter>: New field.
223 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
224 (momentary_breakpoint_from_master, add_location_to_breakpoint):
225 Update for changes to locations.
226 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
227 breakpoint.
228 (create_breakpoint_sal): Add 'filter' argument.
229 (remove_sal, expand_line_sal_maybe): Remove.
230 (create_breakpoints_sal): Remove 'sals' argument. Handle
231 pre-expanded sals and the filter.
232 (parse_breakpoint_sals): Use decode_line_full.
233 (check_fast_tracepoint_sals): Use get_sal_arch.
234 (create_breakpoint): Create a linespec_sals. Update.
235 (break_range_command): Use decode_line_full. Update.
236 (until_break_command): Update.
237 (clear_command): Update match conditions for linespec.c changes.
238 Use DECODE_LINE_LIST_MODE.
239 (say_where): Update for changes to locations.
240 (bp_location_dtor): Free 'source_file'.
241 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
242 (update_static_tracepoint): Update for changes to locations.
243 (update_breakpoint_locations): Disable ranged breakpoint if too
244 many locations match. Update.
245 (addr_string_to_sals): Use decode_line_full. Resolve all sal
246 PCs.
247 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
248 (decode_line_spec_1): Update. Change argument name to 'flags',
249 change interpretation.
250 * block.h (block_containing_function): Declare.
251 * block.c (block_containing_function): New function.
252 * skip.c (skip_function_command): Update.
253 (skip_re_set): Update.
254 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
255 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
256 * NEWS: Add entry.
257
2582011-12-06 Tom Tromey <tromey@redhat.com>
259
260 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
261 breakpoint's pspace to be NULL.
262 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
263 * breakpoint.c (init_raw_breakpoint): Conditionally set
264 breakpoint's pspace.
265 (init_breakpoint_sal): Don't set breakpoint's pspace.
266 (prepare_re_set_context): Conditionally switch program space.
267 (addr_string_to_sals): Check executing_startup on location's
268 program space.
269
2702011-12-06 Tom Tromey <tromey@redhat.com>
271
272 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
273 * breakpoint.c (should_be_inserted): Explicitly check if program
274 space is executing startup.
275 (describe_other_breakpoints): Update.
276 (disable_breakpoints_before_startup): Change executing_startup
277 earlier. Remove loop.
278 (enable_breakpoints_after_startup): Likewise.
279 (init_breakpoint_sal): Don't use bp_startup_disabled.
280 (create_breakpoint): Don't use bp_startup_disabled.
281 (update_global_location_list): Use should_be_inserted.
282 (bkpt_re_set): Update.
283
75c8c9d7
TT
2842011-12-06 Tom Tromey <tromey@redhat.com>
285
286 * python/lib/gdb/command/pretty_printers.py
287 (InfoPrettyPrinter.invoke1): Remove extra double quote.
288
7376e450
TT
2892011-12-06 Tom Tromey <tromey@redhat.com>
290
291 * NEWS: Add MI news.
292
c642a434
UW
2932011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
294
295 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
296 (S390_LAST_BREAK_REGNUM): Likewise.
297 (S390_SYSTEM_CALL_REGNUM): Likewise.
298 (S390_NUM_REGS): Update.
299
300 (s390_regmap_last_break): Add declaration.
301 (s390x_regmap_last_break): Likewise.
302 (s390_regmap_system_call): Likewise.
303
304 (tdesc_s390_linux32v1): Add declaration.
305 (tdesc_s390_linux32v2): Likewise.
306 (tdesc_s390_linux64v1): Likewise.
307 (tdesc_s390_linux64v2): Likewise.
308 (tdesc_s390x_linux64v1): Likewise.
309 (tdesc_s390x_linux64v2): Likewise.
310
311 * s390-tdep.c: Include new target description files
312 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
313 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
314 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
315 (s390_cannot_store_register): New function.
316 (s390_write_pc): Likewise.
317 (s390_dwarf_regmap): Add fields for new registers.
318 (s390_regmap_gregset): Likewise.
319 (s390x_regmap_gregset): Likewise.
320 (s390_regmap_fpregset): Likewise.
321 (s390_regmap_upper): Likewise.
322 (s390_regmap_last_break): New variable.
323 (s390x_regmap_last_break): Likewise.
324 (s390_regmap_system_call): Likewise.
325 (s390_last_break_regset): Likewise.
326 (s390x_last_break_regset): Likewise.
327 (s390_system_call_regset): Likewise.
328 (s390_upper_regset_sections): Rename to ...
329 (s390_linux64_regset_sections): ... this.
330 (s390_linux32_regset_sections): New variable.
331 (s390x_linux64_regset_sections): Likewise.
332 (s390_linux32v1_regset_sections): Likewise.
333 (s390_linux32v2_regset_sections): Likewise.
334 (s390_linux64v1_regset_sections): Likewise.
335 (s390_linux64v2_regset_sections): Likewise.
336 (s390x_linux64v1_regset_sections): Likewise.
337 (s390x_linux64v2_regset_sections): Likewise.
338 (s390_regset_from_core_section): Handle .reg-s390-last-break and
339 .reg-s390-system-call core file sections.
340 (s390_core_read_description): Check for presence of
341 .reg-s390-last-break and .reg-s390-system-call core file
342 sections and return appropriate target description.
343 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
344 "last_break" and "system_call" in target description. Install
345 appropriate gdbarch_core_regset_sections array.
346 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
347 (_initialize_s390_tdep): Initialize additional target descriptions.
348
349 * s390-nat.c: Include "elf/common.h".
350 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
351 (have_regset_last_break): New static variable.
352 (have_regset_system_call): Likewise.
353 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
354 (s390_native_collect): Likewise.
355 (fetch_regset, store_regset, check_regset): New functions.
356 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
357 and S390_SYSTEM_CALL_REGNUM.
358 (s390_linux_store_inferior_registers): Likewise.
359 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
360 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
361
362 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
363 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
364 (s390-linux32v1-expedite): Define.
365 (s390-linux32v2-expedite): Likewise.
366 (s390-linux64v1-expedite): Likewise.
367 (s390-linux64v2-expedite): Likewise.
368 (s390x-linux64v1-expedite): Likewise.
369 (s390x-linux64v2-expedite): Likewise.
370
371 * features/s390-linux32.xml: Add orig_r2 register.
372 * features/s390-linux64.xml: Likewise.
373 * features/s390x-linux64.xml: Likewise.
374 * features/s390-linux32v1.xml: New file.
375 * features/s390-linux32v2.xml: Likewise.
376 * features/s390-linux64v1.xml: Likewise.
377 * features/s390-linux64v2.xml: Likewise.
378 * features/s390x-linux64v1.xml: Likewise.
379 * features/s390x-linux64v2.xml: Likewise.
380
381 * features/s390-linux32.c: Regenerate.
382 * features/s390-linux64.c: Likewise.
383 * features/s390x-linux64.c: Likewise.
384 * features/s390-linux32v1.c: New generated file.
385 * features/s390-linux32v2.c: Likewise.
386 * features/s390-linux64v1.c: Likewise.
387 * features/s390-linux64v2.c: Likewise.
388 * features/s390x-linux64v1.c: Likewise.
389 * features/s390x-linux64v2.c: Likewise.
390
391 * regformats/s390-linux32.dat: Regenerate.
392 * regformats/s390-linux64.dat: Regenerate.
393 * regformats/s390x-linux64.dat: Regenerate.
394 * regformats/s390-linux32v1.dat: New generated file.
395 * regformats/s390-linux32v2.dat: Likewise.
396 * regformats/s390-linux64v1.dat: Likewise.
397 * regformats/s390-linux64v2.dat: Likewise.
398 * regformats/s390x-linux64v1.dat: Likewise.
399 * regformats/s390x-linux64v2.dat: Likewise.
400
336060f3
PA
4012011-12-05 Pedro Alves <pedro@codesourcery.com>
402
403 * linux-nat.c (resume_stopped_resumed_lwps): Call
404 registers_changed.
405
049e32d3
PA
4062011-12-05 Pedro Alves <pedro@codesourcery.com>
407
408 * breakpoint.c: Include record.h.
409 (breakpoints_always_inserted_mode): Return false when the record
410 target is in use.
411
5c03c7f9 4122011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
413
414 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
415 Reinstate perror_with_name call on ptrace error. Remove #if 0.
416 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
417 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
418
fbbd034e
AS
4192011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
420
421 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
422 `i'(-Wshadow).
423
a5ff8356 4242011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
425
426 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
427
4282011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
429
a5ff8356
AS
430 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
431 of `tdep'(-Wshadow).
432
93f2a35e
JK
4332011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 Fix compilation --without-expat.
436 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
437 from ...
438 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
439
2268b414
JK
4402011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
441 Jan Kratochvil <jan.kratochvil@redhat.com>
442
443 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
444 * features/library-list-svr4.dtd: New file.
445 * remote.c (PACKET_qXfer_libraries_svr4): New.
446 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
447 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
448 * solib-svr4.c (struct svr4_library_list): New.
449 [HAVE_LIBEXPAT]: Include xml-support.h.
450 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
451 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
452 [HAVE_LIBEXPAT] (svr4_library_list_children)
453 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
454 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
455 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
456 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
457 (svr4_read_so_list): Extend the corruption message by addresses.
458 (svr4_current_sos): New variable library_list, call
459 svr4_current_sos_via_xfer_libraries.
460 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
461
585861ea
JK
4622011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
463
464 PR threads/13448
465 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
466 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
467
9750bca9
JK
4682011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 PR breakpoints/13346
471 * dwarf2read.c (process_psymtab_comp_unit): Set
472 PSYMTABS_ADDRMAP_SUPPORTED.
473 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
474 validity. New field psymtabs_addrmap_supported.
475 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
476 psymtabs_addrmap_supported.
477 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
478 !PSYMTABS_ADDRMAP_SUPPORTED.
479 (dump_psymtab, maintenance_info_psymtabs): Print also
480 psymtabs_addrmap_supported.
481
f28c316a
DE
4822011-12-01 Doug Evans <dje@google.com>
483
484 * python/py-type.c (type_object_methods): Fix "array" doc string.
485
fc0ae648
AB
4862011-12-01 Andrew Burgess <aburgess@broadcom.com>
487
488 * source.c (print_source_lines_base): Fix missing braces on else
489 clause leading to additional output.
490
d6db1fab
UW
4912011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
492
493 * s390-nat.c (SUBOFF): Remove.
494 (s390_native_supply, s390_native_collect): New functions.
495 (supply_gregset, supply_fpregset): Use s390_native_supply.
496 (fill_gregset, fill_fpregset): Use s390_native_collect.
497
498 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
499 (s390_unwind_pseudo_register): New function.
500 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
501 registers instead of PC and CC.
502 (s390_backchain_frame_unwind_cache): Likewise.
503 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
504 full GPR pseudos.
505 (s390_trad_frame_prev_register): New function.
506 (s390_frame_prev_register): Use it.
507 (s390_sigtramp_frame_prev_register): Likewise.
508 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
509 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
510 special callback to unwind any pseudo.
511
512 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
513 * features/s390-core64.xml: Likewise.
514 * features/s390x-core64.xml: Likewise.
515 * features/s390-linux32.c: Regenerate.
516 * features/s390-linux64.c: Likewise.
517 * features/s390x-linux64.c: Likewise.
518
1dd635ac
UW
5192011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
520
521 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
522
0161e4b9
UW
5232011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
524
525 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
526 instruction. Add more diagnostic output.
527
0c36327f
AS
5282011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
529
530 * MAINTAINERS (Write After Approval): Add myself to the list.
531
b4264740
SD
5322011-11-29 Sanjoy Das <sdas@igalia.com>
533
534 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
535 (jit_bfd_try_read_symtab): Fix comments.
536
87326c78
DD
5372011-11-28 DJ Delorie <dj@redhat.com>
538
539 * NEWS: Mention RL78 simulator.
540
1e3a8f45
JB
5412011-11-28 Joel Brobecker <brobecker@adacore.com>
542
543 * symfile.h (struct quick_symbol_functions): Fix the documentation
544 of field map_matching_symbols, as symbols are sorted using
545 strcmp_iw_ordered, not strcmp_iw.
546
265e52c3
JB
5472011-11-28 Paul Hilfinger <hilfinger@adacore.com>
548
549 * symfile.h (struct quick_symbol_functions): Update the
550 documentation for field map_matching_symbols.
551
1a1d5513
JB
5522011-11-28 Joel Brobecker <brobecker@adacore.com>
553
554 * ada-lang.c (compare_names): Fix wrong return value in case
555 string1 starts with the same contents as string2, followed
556 by an underscore that do not start a symbol name suffix.
557
5d9c5995
PM
5582011-11-28 Phil Muldoon <pmuldoon@redhat.com>
559
560 PR python/13369
561 PR python/13374
562
563 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
564 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
565 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
566 exceptions.
567 * python/py-type.c (typy_strip_typedefs): Ditto.
568 (typy_legacy_template_argument): Ditto.
569 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
570 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
571
2bf50f6f
JB
5722011-11-27 Joel Brobecker <brobecker@acacore.com>
573
574 * remote.c (remote_get_tracepoint_status): Delete addrbuf
575 local variable. Avoid use of sprintf_vma.
576
744ab88c
SD
5772011-11-27 Sanjoy Das <sdas@igalia.com>
578
579 Fix regression in jit.exp.
580 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
581 (jit_register_code): Set the jit_objfile_data field to the correct
582 value.
583
46ad3598
UW
5842011-11-25  Uros Bizjak  <ubizjak@gmail.com>
585
586 * alpha-tdep.c (br_opcode): New.
587 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
588 (alpha_deal_with_atomic_sequence): New function.
589 (alpha_gdbarch_init): Handle single stepping of atomic sequences
590 with alpha_deal_with_atomic_sequence.
591
e4c5f296
TG
5922011-11-24 Tristan Gingold <gingold@adacore.com>
593
594 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
595 fields. Add oso_sym, end_sym and nbr_syms.
596 (macho_register_oso): Change interface.
597 (macho_symtab_add_minsym): New function.
598 (macho_symtab_read): Rewritten.
599 (get_archive_prefix_len): Remove trailing blanks.
600 (oso_el_compare_name): Add comment.
601 (struct macho_sym_hash_entry): New structure.
602 (macho_relocate_common_syms): Remove.
603 (macho_sym_hash_newfunc): New function.
604 (macho_resolve_oso_sym_with_minsym): Likewise.
605 (macho_add_oso_symfile): Rewritten.
606 (macho_symfile_read_all_oso): Remove trailing blanks.
607 Adjust code to free oso vector.
608 (macho_symfile_read): Likewise.
609 Move code to initialize minimal symbol
610
130854df
MR
6112011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
612
613 * mips-tdep.c (extended_offset): Fix formatting.
614
3d7bb9d9
DE
6152011-11-23 Doug Evans <dje@google.com>
616
617 * dwarf2read.c (dw2_lookup_symtab): Add comment.
618 (dw2_expand_symtabs_with_filename): Ditto.
619 (dw2_expand_symtabs_matching): Ditto.
620 (dw2_map_symbol_filenames): Ditto.
621
1fbf5ada
JB
6222011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
623
624 * ada-lang.c (assign_aggregate): Minor reformatting.
625
d984108d
JB
6262011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
627
628 * ada-lang.c (assign_aggregate): Remove declaration of local
629 variable `i' which is shadowing another variable with the same
630 name declared in the outer scope.
631
18af8284
JB
6322011-11-23 Joel Brobecker <brobecker@adacore.com>
633
634 * ada-lang.c (get_base_type): Renames base_type. Adjust all
635 calls throughout this file.
636
1fc7b5d7
JB
6372011-11-23 Joel Brobecker <brobecker@adacore.com>
638
639 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
640 FormatMessage.
641
36dfb11c
TT
6422011-11-22 Tom Tromey <tromey@redhat.com>
643
644 PR mi/8444:
645 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
646 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
647 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
648 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
649 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
650 (print_it_catch_syscall, print_it_catch_exec)
651 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
652 (bpstat_print): Add 'kind' argument. Handle
653 TARGET_WAITKIND_LOADED.
654 * infrun.c (normal_stop): Update for bpstat_print change. Don't
655 handle TARGET_WAITKIND_LOADED here.
656 * breakpoint.h (bpstat_print): Update.
657
5bd6aa83
TT
6582011-11-22 Tom Tromey <tromey@redhat.com>
659
660 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
661
f5afdc18
TT
6622011-11-22 Tom Tromey <tromey@redhat.com>
663
664 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
665 Use static_assert to check the size of
666 async_reason_string_lookup.
667 * common/gdb_assert.h (static_assert): New macro.
668
a3769e0c
AM
6692011-11-22 Alan Modra <amodra@gmail.com>
670
671 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
672 destination calculation. Don't expect >> to sign extend. Don't
673 add a break if branch lands inside the sequence anywhere.
674
56767571
KS
6752011-11-21 Keith Seitz <keiths@redhat.com>
676
677 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
678 -var-evaluate-expression of an enumeration and fix expected result.
679 * gdb.mi/mi2-varvdisplay.exp: Likewise.
680
8443c207
KY
6812011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
682
683 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
684 the case where osdata->items is empty. Rename column names to a
685 canonical form to avoid problems with unusual column names.
686
97643830
YQ
6872011-11-21 Yao Qi <yao@codesourcery.com>
688
689 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
690
f196051f
SS
6912011-11-20 Stan Shebs <stan@codesourcery.com>
692
693 * NEWS: Mention tracepoint additions.
694 * breakpoint.h (struct tracepoint): New field traceframe_usage.
695 * breakpoint.c (print_one_breakpoint_location): Identify
696 tracepoints as such when reporting hit counts, report
697 trace buffer usage.
698 (create_tracepoint_from_upload): Copy status info.
699 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
700 add fields user_name, notes, start_time, stop_time.
701 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
702 * tracepoint.c (trace_user): New global.
703 (trace_notes): New global.
704 (trace_stop_notes): New global.
705 (start_tracing): Add argument and trace note handling.
706 (stop_tracing): Ditto.
707 (trace_start_command): Add notes argument.
708 (trace_stop_command): Ditto.
709 (trace_status_command): Report additional status info.
710 (trace_status_mi): Similarly.
711 (trace_save): Update, record tracepoint status.
712 (set_disconnected_tracing): Call target method directly.
713 (send_disconnected_tracing_value): Remove.
714 (set_trace_user): New function.
715 (set_trace_notes): New function.
716 (set_trace_stop_notes): New function.
717 (parse_trace_status): Handle additional status.
718 (parse_tracepoint_status): New function.
719 (parse_tracepoint_definition): Call it.
720 (tfile_get_tracepoint_status): New function.
721 (init_tfile_ops): Use it.
722 (_initialize_tracepoint): Add new setshows.
723 * target.h (struct target_ops): New methods to_get_tracepoint_status
724 and to_set_trace_notes.
725 (target_get_tracepoint_status): New macro.
726 (target_set_trace_notes): New macro.
727 * target.c (update_current_target): Add new methods.
728 * remote.c (remote_get_tracepoint_status): New function.
729 (remote_set_trace_notes): New function.
730 (init_remote_ops): Add them.
731 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
732 (mi_cmd_trace_stop): Ditto.
733
3623dc3a
SD
7342011-11-20 Sanjoy Das <sdas@igalia.com>
735
736 * jit.c: Include regcache.h.
737 (jit_gdbarch_data, jit_frame_unwind): New static variables.
738 (jit_unwind_reg_set_impl, free_reg_value_impl)
739 (jit_unwind_reg_get_impl, jit_frame_sniffer)
740 (jit_frame_unwind_stop_reason, jit_frame_this_id)
741 (jit_frame_prev_register, jit_dealloc_cache)
742 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
743 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
744 jit_prepend_unwinder.
745 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
746
1825a88d
SD
7472011-11-20 Sanjoy Das <sdas@igalia.com>
748
749 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
750 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
751 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
752 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
753 (finalize_symtab, jit_object_close_impl)
754 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
755 (free_objfile_data): New functions.
756 (_initialize_jit): Register jit_objfile_data with a proper cleanup
757 function.
758
784c47ee
SD
7592011-11-20 Sanjoy Das <sdas@igalia.com>
760
761 * jit.c: Include gdb-dlfcn.h.
762 (loaded_jit_reader, reader_init_fn_sym): New static variables.
763 (jit_reader_load, jit_reader_load_command)
764 (jit_reader_unload_command): New functions.
765 (_initialize_jit): Add commands "jit-reader-load" and
766 "jit-reader-unload".
767
a2d08b9e
SD
7682011-11-20 Sanjoy Das <sdas@igalia.com>
769
770 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
771 * config.in: Add new #define HAVE_LIBDL.
772 * configure.ac: Add check for -ldl.
773 * configure: Re-generated by autoconf.
774 * gdb-dlfcn.c: New file.
775 * gdb-dlfcn.h: New file.
776
b8e0a31c
SD
7772011-11-20 Sanjoy Das <sdas@igalia.com>
778
779 * config.in: Add new #defines: JIT_READER_DIR and
780 JIT_READER_DIR_RELOCATABLE.
781 * configure.ac: New GDB directory entry for jit-reader-dir.
782 * configure: Re-generated by autoconf.
783 * jit.c: New static variable: const char *jit_reader_dir.
784 (_initialize_jit): Relocate jit_reader_dir.
785
f997c383
SD
7862011-11-20 Sanjoy Das <sdas@igalia.com>
787
788 * Makefile.in: Add jit-reader.h as a header. Have it installed in
789 $(includedir)/gdb.
790 * configure.ac: Generate a correct value for TARGET_PTR for
791 jit-reader.h. Tell configure to generate jit-reader.h from
792 jit-reader.in.
793 * configure: Re-generated by autoconf.
794 * jit-reader.in: New file.
795 * jit.c: Include jit-reader.h.
796
dc8c0494
SD
7972011-11-20 Sanjoy Das <sdas@igalia.com>
798
799 * MAINTAINERS (Write After Approval): Add myself to the list.
800
01efb936
UW
8012011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
802
803 * findvar.c (read_frame_register_value): Respect value_offset
804 of the register value. Remove big-endian special case.
805
732f3f12
TT
8062011-11-18 Tom Tromey <tromey@redhat.com>
807
808 PR build/7196:
809 * remote.c (putpkt_for_catch_errors): New function.
810 (remote_kill): Use it.
811
bfccc43c
YQ
8122011-11-18 Yao Qi <yao@codesourcery.com>
813
814 * breakpoint.c (create_breakpoint): Produce query message according to
815 breakpoint's type.
816 Allocate tracepoint per correct type.
817 Don't check SALs for pending fast tracepoints.
818 * tracepoint.c (process_tracepoint_on_disconnect): New.
819 (disconnect_tracing): Call process_tracepoint_on_disconnect.
820
3ea46bff
YQ
8212011-11-18 Yao Qi <yao@codesourcery.com>
822
823 * breakpoint.c (install_breakpoint): Add one more parameter so that
824 update_global_location_list is called conditionally.
825 (create_fork_vfork_event_catchpoint): Update.
826 (create_syscall_event_catchpoint): Update.
827 (create_breakpoint_sal): Update.
828 (create_breakpoint_sal): Update. Call do_cleanups before
829 install_breakpoint.
830 * ada-lang.c (create_ada_exception_catchpoint): Update.
831 * breakpoint.h (install_breakpoint): Update declaration.
832
598cfb71
UW
8332011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
834
835 * spu-tdep.c (spu_return_value): Fix handling of
836 TYPE_CALLING_CONVENTION annotation.
837
caf4328c
UW
8382011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
839
840 * skip.c (skip_function_command): Work around uninitialized
841 variable warning.
842
2b54dda2
DM
8432011-11-16 David S. Miller <davem@davemloft.net>
844
845 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
846 'tv_usec' to long for printf since these fields have a type which
847 varies.
848
93bf33fd
DE
8492011-11-15 Doug Evans <dje@google.com>
850
851 * buildsym.c (add_symbol_to_list): Delete outdated comment.
852
9cc10fd1
PK
8532011-11-15 Paul Koning <paul_koning@dell.com>
854
855 * python/py-type.c (typy_get_composite): New function.
856 (typy_nonzero): New function.
857 (typy_values): Rename from typy_fields.
858 (typy_fields): New function.
859 (typy_length): Raise exception if not struct, union, or enum type.
860 (typy_getitem): Ditto.
861 (typy_has_key): Ditto.
862 (typy_make_iter): Ditto.
863
c011a4f4
DE
8642011-11-15 Doug Evans <dje@google.com>
865
866 * NEWS: Mention new parameter basenames-may-differ.
867 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
868 ! basenames_may_differ.
869 * psymtab.c (lookup_partial_symtab): Ditto.
870 * symtab.c (lookup_symtab): Ditto.
871 (basenames_may_differ): New global.
872 (_initialize_symtab): New parameter basenames-may-differ.
873 * symtab.h (basenames_may_differ): Declare.
874
865ecab4
LM
8752011-11-15 Pedro Alves <pedro@codesourcery.com>
876 Luis Machado <lgustavo@codesourcery.com>
877
878 * auxv.c: Include observer.h.
879 (auxv_inferior_data_cleanup): New.
880 (invalidate_auxv_cache_inf): New.
881 (invalidate_auxv_cache): New.
882 (get_auxv_inferior_data): New.
883 (auxv_inferior_data): New static global.
884 (auxv_info): New structure.
885 (target_auxv_search): Use get_auxv_inferior_data instead of
886 target_read_alloc and don't free cached buffers.
887 (fprint_target_auxv): Likewise
888 (_initialize_auxv): Register per-inferior auxv cache and register
889 observers to invalidate auxv cache when needed.
890
ed59ded5
DE
8912011-11-14 Doug Evans <dje@google.com>
892
893 Make "!" an alias for "shell".
894 * NEWS: Add mention.
895 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
896 adding "!" command, always add it.
897 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
898 command of length one.
899
405f8e94
SS
9002011-11-14 Stan Shebs <stan@codesourcery.com>
901 Kwok Cheung Yeung <kcy@codesourcery.com>
902
903 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
904 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
905 the minimum instruction size for fast tracepoints.
906 * target.h (struct target_ops): Add new method
907 to_get_min_fast_tracepoint_insn_len.
908 (target_get_min_fast_tracepoint_insn_len): New.
909 * target.c (update_current_target): Set up new target operation.
910 * remote.c (remote_write_bytes_aux): Fix typo.
911 (remote_get_min_fast_tracepoint_insn_len): New.
912 (init_remote_ops): Initialize new field.
913
3e05895e
TT
9142011-11-14 Tom Tromey <tromey@redhat.com>
915
916 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
917 (encode_actions): Likewise.
918
1e4d1764
YQ
9192011-11-14 Yao Qi <yao@codesourcery.com>
920
921 * remote.c (struct remote_state): <install_in_trace> new field.
922 (PACKET_InstallInTrace): New enum value.
923 (remote_install_in_trace_feature): Support InstallInTrace.
924 (remote_supports_install_in_trace): Likewise.
925 (remote_protocol_features): Likewise.
926 (_initialize_remote): Likewise.
927 (remote_can_download_tracepoint): New.
928 * target.h (struct target): New field
929 `to_can_download_tracepoint'.
930 (target_can_download_tracepoint): New macro.
931 * target.c (update_current_target): Update.
932 * breakpoint.h (struct bp_location): Add comment on field
933 `duplicate'.
3ccd4ac6
YQ
934 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
935 and tracepoint.
1e4d1764
YQ
936 (remove_breakpoints): Don't remove tracepoints.
937 (tracepoint_locations_match ): New.
938 (breakpoint_locations_match): Call it.
939 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
940 (download_tracepoint_locations): New.
941 (update_global_location_list): Call it.
942 * tracepoint.c (find_matching_tracepoint): Delete.
943 (find_matching_tracepoint_location): Renamed from
944 find_matching_tracepoint. Return bp_location rather than
945 tracepoint.
946 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
947 tracepoint is found.
948
e8ba3115
YQ
9492011-11-14 Yao Qi <yao@codesourcery.com>
950
951 * target.h (struct target): <to_download_tracepoint> Change type
952 of parameter from tracepoint to bp_location.
953 * target.c (update_current_target): Update.
954 * tracepoint.c (start_tracing): Update.
955 * remote.c (remote_download_tracepoint): Remove loop for each location
956 of a tracepoint.
957
edcc485a
MR
9582011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
959
960 * i386-nat.c (i386_insert_hw_breakpoint): Call
961 i386_update_inferior_debug_regs.
962 (i386_remove_hw_breakpoint): Likewise.
963
3742cc8b
YQ
9642011-11-14 Yao Qi <yao@codesourcery.com>
965
966 * breakpoint.c (init_raw_breakpoint): Call
967 add_location_to_breakpoint to replace duplicated code.
968 (add_location_to_breakpoint): Adjust the breakpoint's
969 address prior to allocating a location.
970
71eba9c2 9712011-11-12 Matt Rice <ratmice@gmail.com>
972
973 * macrocmd.c (macro_no_macro_info): New function.
974 (macro_expand_command): Use macro_no_macro_info.
975 (macro_expand_once_command): Ditto.
976 (info_macro_command): Add argument processing,
977 move info_definitions_command here.
978 (_initialize_macrocmd): Remove info definitions command.
979 Add arguments to info macro help text.
980 * NEWS: Replace info definitions command with new info macro options.
981
731971ed
KS
9822011-11-11 Keith Seitz <keiths@redhat.com>
983
984 PR gdb/12843
985 * linespec.c (locate_first_half): Keep ':' if it looks
986 like it could be part of a Windows path starting with
987 a drive letter.
988
6953d224
PA
9892011-11-10 Pedro Alves <pedro@codesourcery.com>
990
991 * linux-nat.c (linux_nat_wait): Don't force waking up the event
992 loop when returning a TARGET_WAITKIND_NO_RESUMED.
993
0c94aa73
PA
9942011-11-10 Pedro Alves <pedro@codesourcery.com>
995
996 * target.c (target_waitstatus_to_string): Handle
997 TARGET_WAITKIND_NO_RESUMED.
998
f6b47be4
DE
9992011-11-10 Doug Evans <dje@google.com>
1000
74e2f255
DE
1001 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1002 `need_fullname'.
1003 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1004 (map_partial_symbol_filenames): Ditto. All callers updated.
1005 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1006 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1007 parameter need_fullname.
1008
256f06f3
DE
1009 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1010 * source.c (symtab_to_fullname): Ditto.
1011
50f182aa
DE
1012 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1013 * gdb-demangle.h: ... here. New file.
1014 * demangle.c: #include "gdb-demangle.h".
1015 (_initialize_demangler): Use initialize_file_ftype for prototype.
1016 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1017 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1018 from utils.c
1019 * utils.c: Update. #include "gdb-demangle.h".
1020 * symtab.h (asm_demangle): Delete.
1021 (demangle): Move declaration next to use.
1022 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1023 * dwarf2read.c: #include "gdb-demangle.h".
1024 * gnu-v2-abi.c: Ditto.
1025 * jv-typeprint.c: Ditto.
1026 * mdebugread.c: Ditto.
1027 * p-typeprint.c: Ditto.
1028 * stabsread.c: Ditto.
1029 * printcmd.c: Ditto.
1030 (asm_demangle): Delete declaration.
1031 * tui/tui-stack.c: #include "gdb-demangle.h".
1032
f6b47be4
DE
1033 * python/py-type.c (typy_fields_items): Call check_typedef.
1034
22355c90
JB
10352011-11-10 Joel Brobecker <brobecker@adacore.com>
1036
1037 * findvar.c (read_frame_register_value): Read the correct bytes
1038 from registers on big-endian architectures.
1039
bd119cf1 10402011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1041
1042 * procfs.c (load_syscalls): Make a cleanup.
1043 (open_procinfo_files): fd==0 is ok.
1044
0a86f364
JB
10452011-11-10 Joel Brobecker <brobecker@adacore.com>
1046
1047 * procfs.c (iterate_over_mappings): Call do_cleanups before
1048 returning.
1049
9bc118a5
DE
10502011-11-09 Doug Evans <dje@google.com>
1051
1052 * gdbtypes.c (check_typedef): Document that this function can
1053 throw an exception.
1054
a7860e76
TT
10552011-11-09 Tom Tromey <tromey@redhat.com>
1056
1057 PR c++/13342:
1058 * valops.c (value_full_object): Return early if real type is
1059 smaller than the enclosing type.
1060
60965737
YQ
10612011-11-08 Yao Qi <yao@codesourcery.com>
1062
1063 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1064
72a2e3dc
MI
10652011-11-08 Meador Inge <meadori@codesourcery.com>
1066
1067 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1068 register when the frame can't be determined.
1069 * arm-tdep.c (arm_analyze_prologue): Ditto.
1070
ce3b0ff7
SS
10712011-11-07 Stan Shebs <stan@codesourcery.com>
1072
1073 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1074
2b914b52
JB
10752011-11-07 Joel Brobecker <brobecker@adacore.com>
1076
1077 * infrun.c (handle_inferior_event): Minor reformatting.
1078
6f809020
DE
10792011-11-05 Doug Evans <dje@google.com>
1080
1081 * source.c (forget_cached_source_info_for_objfile): Move call to
1082 objfile->sf->qf->forget_cached_source_info outside of
1083 ALL_OBJFILE_SYMTABS loop.
1084 (forget_cached_source_info): Delete unused variable `s'.
1085
75d12218
JK
10862011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 * i386-nat.c (dr_ref_count): Remove unused variable.
1089
e565b837
DE
10902011-11-05 Doug Evans <dje@google.com>
1091
1092 * main.c (captured_main): Set lim_at_start before calling
1093 make_command_stats_cleanup.
1094
0a1c4d10
DE
10952011-11-04 Doug Evans <dje@google.com>
1096
1097 * utils.c: #include "timeval-utils.h".
1098 (cmd_stats): Rename start_time to start_cpu_time.
1099 New member start_wall_time.
1100 (report_command_stats): Report wall time.
1101 (make_command_stats_cleanup): Record start wall time.
1102
a1d705ee
TT
11032011-11-04 Tom Tromey <tromey@redhat.com>
1104
1105 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1106
81de56be
RO
11072011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108
1109 * coff-pe-read.c: Include defs.h before bfd.h.
1110
3ab1ec27
PM
11112011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1112
1113 PR Python/13345
1114
1115 * python/python.c (python_run_simple_file): Expand tilde in path.
1116
cd829959
PM
11172011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1118
1119 PR Python/13363
1120
1121 * python/py-type.c (typy_lookup_type): Do not return a type in
1122 an exception handler.
1123
080ad648
JK
11242011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1125 Eli Zaretskii <eliz@gnu.org>
1126
1127 * linux-nat.c (_initialize_linux_nat): Improve help
1128 for `info proc stat', `info proc status', `info proc cwd',
1129 `info proc cmdline' and `info proc exe'.
1130
3065dfb6
SS
11312011-11-02 Stan Shebs <stan@codesourcery.com>
1132
1133 String collection for tracepoints.
1134 * NEWS: Mention string collection.
1135 * common/ax.def (tracenz): New bytecode.
1136 * ax-gdb.h (trace_string_kludge): Declare.
1137 * ax-gdb.c: Include valprint.h and c-lang.h.
1138 (trace_string_kludge): New global.
1139 (gen_traced_pop): Add string case.
1140 (agent_command): Add string case.
1141 * tracepoint.h (decode_agent_options): Declare.
1142 * tracepoint.c: Include cli-utils.h.
1143 (decode_agent_options): New function.
1144 (validate_actionline): Call it.
1145 (encode_actions_1): Ditto.
1146 * target.h (struct target_ops): New method to_supports_string_tracing.
1147 (target_supports_string_tracing): New macro.
1148 * target.c (update_current_target): Add to_supports_string_tracing.
1149 * remote.c (struct remote_state): New field string_tracing.
1150 (remote_string_tracing_feature): New function.
1151 (remote_protocol_features): New feature tracenz.
1152 (remote_supports_string_tracing): New function.
1153 (init_remote_ops): Set to_supports_string_tracing.
1154
f179e162
JK
11552011-11-02 Pedro Alves <pedro@codesourcery.com>
1156 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 * linux-nat.c: Include cli/cli-utils.h.
1159 (enum info_proc_what): New.
1160 (linux_nat_info_proc_cmd): Rename to ...
1161 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1162 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1163 status_f and stat_f from WHAT. Throw error on extra parameters.
1164 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1165 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1166 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1167 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1168 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1169 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1170 `info proc cmdline', `info proc exe' and `info proc all' as real
1171 subcommands of `info proc'.
1172
7b35ec7f 11732011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1174
1175 * Makefile.in: (SFILES): Add skip.c.
1176 (HFILES_NO_SRCDIR): Add skip.h.
1177 (COMMON_OBS): Add skip.o.
1178 * skip.h, skip.c: New.
1179 * breakpoint.h (set_default_breakpoint): Remove.
1180 (get_sal_arch): Declare.
1181 * breakpoint.c: Remove default_breakpoint_valid,
1182 default_breakpoint_address, default_breakpoint_symtab,
1183 default_breakpoint_line, default_breakpoint_pspace variables.
1184 (get_sal_arch): Make public.
1185 (set_default_breakpoint): Remove.
1186 (parse_breakpoint_sals, create_breakpoint, clear_command,
1187 decode_line_spec_1): Remove uses of default_breakpoint variables;
1188 replaced with function calls into stack.c.
1189 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1190 * cli/cli-cmds.c: Add skiplist.
1191 (init_cmd_lists): Initialize skiplist.
1192 (init_cli_cmds): Fix comment (classes of commands appear in
1193 alphabetical order).
1194 * infrun.c (handle_inferior_event): Add check that we don't step into
1195 a function whose pc is marked for skip.
1196 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1197 last_displayed_addr, last_displayed_symtab, last_displayed_line
1198 variables.
1199 (set_last_displayed_sal): New static function.
1200 (print_frame_info): Switch call to set_default_breakpoint to call to
1201 set_last_displayed_sal.
1202 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1203 get_last_displayed_pspace, get_last_displayed_addr,
1204 get_last_displayed_symtab, get_last_displayed_line,
1205 get_last_displayed_sal): New public functions.
1206 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1207 get_last_displayed_pspace, get_last_displayed_addr,
1208 get_last_displayed_symtab, get_last_displayed_line,
1209 get_last_displayed_sal): Declare.
1210
b60e1588
JL
12112011-11-01 Justin Lebar <justin.lebar@gmail.com>
1212
1213 * MAINTAINERS (Write After Approval): Add myself to the list.
1214
d31647d2
YQ
12152011-10-29 Yao Qi <yao@codesourcery.com>
1216
1217 * infcmd.c (disconnect_command): Call disconnect_tracing.
1218
b1d96efd
JK
12192011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1220
1221 Code cleanup.
1222 * symtab.c (skip_prologue_sal): Code reformatting.
1223
4dfb2365
JK
12242011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1225
1226 PR symtab/13208
1227 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1228 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1229 SAI.
1230
0e5bf2a8
PA
12312011-10-28 Pedro Alves <pedro@codesourcery.com>
1232
1233 * linux-nat.c (linux_nat_filter_event): Remove `options'
1234 parameter, and dead code that used it. If we're handling a
1235 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1236 in our lwp list, re-add it.
1237 (check_zombie_leaders): New.
1238 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1239 wait for children with WNOHANG, and always wait for all children.
1240 Don't check for no resumed children upfront. Simplify wait loop.
1241 Check for zombie thread group leaders after handling all wait
1242 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1243 unwaited-for children left.
1244 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1245 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1246 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1247 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1248
821296b7
SA
12492011-10-28 Sterling Augustine <saugustine@google.com>
1250
1251 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1252 * symtab.c (free_completion_list): New function.
1253 (do_free_completion_list): Likewise.
1254 (default_make_symbol_completion_list_break_on): New variable
1255 back_to. Call make_cleanup and discard_cleanups.
1256 (make_source_files_completion_list): Likewise.
1257
03c3051a
PK
12582011-10-28 Paul Koning <paul_koning@dell.com>
1259
1260 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1261 * NEWS: Mention deep_items.
1262
8e7ebaf5
PA
12632011-10-28 Alen Skondro <askondro@gmail.com>
1264
8de33dc2 1265 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1266 defined.
1267
e0c6ef61
MI
12682011-10-27 Meador Inge <meadori@codesourcery.com>
1269
1270 * MAINTAINERS (Write After Approval): Add myself to the list.
1271
b56d6f31
JB
12722011-10-27 Joel Brobecker <brobecker@adacore.com>
1273
1274 * value.h (read_frame_register_value): Add declaration.
1275 * findvar.c (read_frame_register_value): New function.
1276 (value_from_register): Use read_frame_register_value
1277 instead of get_frame_register_value + value_contents_copy
1278 to get value contents.
1279
d234ef5c
DE
12802011-10-27 Doug Evans <dje@google.com>
1281
1282 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1283 source_script_from_stream if it may have been found on the search path.
1284 * python/py-auto-load.c (source_section_scripts): Pass full path to
1285 source_python_script_for_objfile.
1286 * python/python.c (source_python_script): Delete stream parameter.
1287 All callers updated.
1288 (source_python_script_for_objfile): Ditto.
1289 * python/python-internal.h (source_python_script_for_objfile): Update.
1290 * python/python.h (source_python_script): Update.
1291
d849d44f
TT
12922011-10-27 Tom Tromey <tromey@redhat.com>
1293
1294 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1295 (ada_sals_for_line): Remove declarations.
1296
2231f1fb
KP
12972011-10-27 Kevin Pouget <kevin.pouget@st.com>
1298
1299 Move unwind reasons to an external .def file
1300 * frame.c (frame_stop_reason_string): Rewrite using
1301 unwind_stop_reasons.def.
1302 * frame.h (enum unwind_stop_reason): Likewise.
1303 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1304 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1305 constants for bound-checking.
1306 * unwind_stop_reasons.def: New file.
1307 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1308 instead of a distinct value.
1309
f77b9a5d
PM
13102011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1311
1312 PR python/13331
1313
1314 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1315 (convert_values_to_python): Return on Python tuple allocation
1316 failure. Return NULL on value conversion error.
1317
76dce0be
PM
13182011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1319
1320 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1321 (bppy_set_task): Ditto.
1322 (bppy_delete_breakpoint): Ditto.
1323 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1324 (gdbpy_lookup_global_symbol): Ditto.
1325 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1326 * python/py-frame.c (frapy_is_valid): Ditto.
1327 (frame_info_to_frame_object): Ditto.
1328 * python/py-type.c (typy_lookup_type): Ditto.
1329 (typy_getitem): Ditto.
1330 (typy_has_key): Ditto.
1331 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1332
f17b6955
JB
13332011-10-26 Joel Brobecker <brobecker@adacore.com>
1334
1335 * gdbarch.h: Regenerate.
1336
86ba1042
JB
13372011-10-26 Meador Inge <meadori@codesourcery.com>
1338
1339 * gdbarch.sh (function_list): Use 'pstring' when printing
1340 'gcore_bfd_target'.
1341 * gdbarch.c: Regenerate.
1342
c34fd852
UW
13432011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1344
1345 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1346 and frame caches if PTID refers to all threads of a process.
1347
931bb47f
UW
13482011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1349
1350 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1351 to create_breakpoint.
1352
88aed45e
UW
13532011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1354
1355 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1356 (ppc_sysv_abi_push_dummy_call): Use it.
1357 (do_ppc_sysv_return_value): Likewise.
1358 (ppc64_sysv_abi_push_dummy_call): Likewise.
1359 (ppc64_sysv_abi_return_value): Likewise.
1360
3eaf3fa2
PK
13612011-10-26 Paul Koning <paul_koning@dell.com>
1362
1363 * python/lib/gdb/types.py (deepitems): New function.
1364
913460fc
PK
13652011-10-25 Paul Koning <paul_koning@dell.com>
1366
1367 PR python/13327
1368
1369 * python/py-value.c (value_to_value_object): Remove fetching of
1370 the value if it was lazy.
1371 (valpy_get_is_lazy): New function.
1372 (valpy_fetch_lazy): New function.
1373
2b5b9d09
JB
13742011-10-24 Joel Brobecker <brobecker@adacore.com>
1375
1376 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1377 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1378
e21ffe51
PA
13792011-10-24 Pedro Alves <pedro@codesourcery.com>
1380
1381 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1382 event, in non-stop, if not stopping, make sure the new lwp has
1383 last_resume_kind set to resume_continue. Assert that when we're
1384 resuming the new lwp, its last_resume_kind is resume_continue.
1385
7aee8dc2
PA
13862011-10-24 Pedro Alves <pedro@codesourcery.com>
1387
1388 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1389 already set when marking the event thread as not executing in
1390 non-stop mode.
1391
4b4e080e
PA
13922011-10-24 Pedro Alves <pedro@codesourcery.com>
1393
1394 * infrun.c (handle_inferior_event): Add debug output for
1395 TARGET_WAITKIND_NO_HISTORY.
1396
baacfb07
PM
13972011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1398
1399 * NEWS: Move set/show extended-prompt to "New Options". Expand
1400 description. Fix typos.
1401
8432bc41
PM
14022011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1403
1404 PR python/13310
1405
1406 * python/py-param.c (call_doc_function): Correctly deference on
1407 function exit.
1408
6cda5a20
JB
14092011-10-21 Joel Brobecker <brobecker@adacore.com>
1410
1411 * ada-tasks.c (print_ada_task_info): Fix computation of
1412 number of tasks displayed in command output.
1413
13294f7d
JK
14142011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1415 Ulrich Weigand <uweigand@de.ibm.com>
1416
1417 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1418 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1419 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1420 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1421 gdbarch_unwind_pc.
1422
460c1c54
CC
14232011-10-20 Cary Coutant <ccoutant@google.com>
1424
1425 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1426 section to...
1427 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1428 flag. Adjust all callers.
1429 (process_psymtab_comp_unit): Remove adjustment for type section.
1430
a10964d1
AR
14312011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1432
1433 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1434 arguments by adding OBJFILE. Instead of getting objfile from
1435 symbol's symtab, use new argument OBJFILE.
1436 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1437 arguments by adding OBJFILE.
1438 * gdb/dwarf2read.c (new_symbol_full): Change call to
1439 cp_scan_for_anonymous_namespaces to match new signature.
1440 * gdb/stabsread.c (define_symbol): Change call to
1441 cp_scan_for_anonymous_namespaces to match new signature.
1442
27ca1a5b
PM
14432011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1444
1445 PR python/13308
1446 PR python/13309
1447
1448 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1449 leak.
1450 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1451 leak. Delete unused variables.
1452
9df2fbc4
PM
14532011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1454
1455 PR python/12656
1456
1457 * python/py-frame.c (frapy_read_var): Use const struct *block.
1458 * python/py-type.c (typy_lookup_typename): Likewise.
1459 (typy_lookup_type): Likewise.
1460 (typy_legacy_template_argument): Likewise.
1461 (typy_template_argument): Likewise.
1462 (gdbpy_lookup_type): Likewise.
1463 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1464 * python/py-block.c (blpy_block_object): Likewise.
1465 (blpy_iter): Likewise.
1466 (blpy_get_start): Likewise.
1467 (blpy_get_end): Likewise.
1468 (blpy_get_function): Likewise.
1469 (blpy_get_superblock): Likewise.
1470 (set_block): Likewise.
1471 (block_to_block_object): Likewise.
1472 (block_object_to_block): Likewise.
1473 (blpy_is_valid): Likewise.
1474 (blpy_get_global_block): New function.
1475 (blpy_get_static_block): New function.
1476 (blpy_is_global): New function.
1477 (blpy_is_static): New function.
1478 * blockframe.c (block_innermost_frame): Likewise.
1479 * valops.c (value_of_variable): Likewise.
1480 * frame.h: Update prototypes.
1481 * python/python-internal.h: Likewise.
1482 * value.h: Likewise.
1483
4743b735
CC
14842011-10-19 Cary Coutant <ccoutant@google.com>
1485
1486 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1487 type_offset field.
1488
6caca83c
CC
14892011-10-19 Cary Coutant <ccoutant@google.com>
1490
1491 * dwarf2read.c (peek_abbrev_code): New function.
1492 (dw2_get_file_names): Check for dummy compilation units.
1493 (create_debug_types_hash_table): Likewise.
1494 (process_psymtab_comp_unit): Likewise.
1495 (load_partial_comp_unit): Likewise.
1496 (load_full_comp_unit): Likewise.
1497
43136979
AR
14982011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1499
1500 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1501 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1502 pt_phdr if PT_PHDR was found.
1503
0a07729b
TT
15042011-10-17 Joost van der Sluis <joost@cnoc.nl>
1505
1506 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1507 type or "<unnamed type"> when there is no name assigned.
1508 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1509 avoid a sigint when no name is assigned.
1510
21ae7a4d
JK
15112011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1512
1513 Revert:
1514 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 * dwarf2expr.c (ctx_no_read_reg): New function.
1516 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1517 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1518 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1519 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1520
32d1c362
DE
15212011-10-16 Doug Evans <dje@google.com>
1522
1523 * NEWS: Document python gdb.printing.register_pretty_printer's new
1524 `replace' parameter.
1525
da096638
KS
15262011-10-14 Keith Seitz <keiths@redhat.com>
1527
1528 PR c++/13225
1529 * eval.c (evaluate_subexp_standard): Do not construct
1530 an array of types; pass the value array directly to
1531 find_overload_match.
1532 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1533 (rank_function): Take an array of values instead of types.
1534 (rank_one_type): Add struct value * parameter.
1535 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1536 (rank_function): For each argument, pass the argument's
1537 value to rank_one_type.
1538 (rank_one_type): Add VALUE parameter.
1539 If the parameter type is a pointer and the argument type
1540 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1541 VALUE is zero.
1542 Update all calls to rank_one_type, passing NULL for new
1543 VALUE parameter.
1544 * valarith.c (value_user_defined_cpp_op): Do not construct
1545 an array of types; pass the value array directly to
1546 find_overload_match.
1547 * valops.c (find_overload_method_list): Take an array of
1548 values instead of types.
1549 Save the type of OBJP for later use.
1550 Update calls to find_oload_champ, and find_oload_champ_namespace.
1551 (find_oload_champ_namespace): Take an array of values instead
1552 of types.
1553 (find_oload_champ_namespace_loop): Likewise.
1554 (find_oload_champ): Likewise.
1555 (classify_oload_match): Inspect all arguments
1556 until INCOMPATIBLE is found. Return the worst badness found
1557 otherwise.
1558 (compare_parameters): Update call to rank_one_type.
1559 * value.h (find_overload_match): Take an array of values instead
1560 of types.
1561
3957565a
JK
15622011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1563
1564 Drop lazy lm_info reading.
1565 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1566 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1567 (lm_info_read): New function.
1568 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1569 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1570 lm_dynamic_from_link_map.
1571 (lm_next, lm_prev, lm_name): Remove.
1572 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1573 initialization incl. read_memory. No longer use lm_name.
1574 (svr4_free_so): Drop lm_info->lm freeing.
1575 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1576 explicit lm_addr and lm initialization.
1577 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1578 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1579 lm_name.
1580
cb08cc53
JK
15812011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1582 Paul Pluzhnikov <ppluzhnikov@google.com>
1583
1584 * defs.h (struct so_list): New forward declaration.
1585 (make_cleanup_free_so): New declaration.
1586 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1587 (svr4_free_so): Move the function here from downwards. Handle NULL
1588 so->lm_info.
1589 (svr4_free_library_list): New.
1590 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1591 Use more cleanups. Use new parameter ignore_first instead of
1592 ignore_first_link_map_entry.
1593 (svr4_current_sos): New variable ignore_first, initialize it. New
1594 variable back_to, use it for svr4_free_library_list protection.
1595 (svr4_free_so): Remove - move upwards.
1596 * utils.c: Include solist.h.
1597 (do_free_so, make_cleanup_free_so): New functions.
1598
22c05d8a
JK
15992011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1600
1601 Fix internal error regression.
1602 * value.c (value_primitive_field): Handle value_optimized_out. Move
1603 packed bitfields comment.
1604
d930d06e
TT
16052011-10-13 Tom Tromey <tromey@redhat.com>
1606
1607 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1608 always released.
1609
2ff6b080
TT
16102011-10-13 Tom Tromey <tromey@redhat.com>
1611
1612 * python/py-type.c (typy_has_key): Make 'field' const.
1613
d6c5869f
LM
16142011-10-13 Luis Machado <lgustavo@codesourcery.com>
1615
1616 * remote.c (remote_save_trace_data): Invert comparison.
1617
a70633a2
LM
16182011-10-13 Luis Machado <lgustavo@codesourcery.com>
1619
1620 * tracepoint.c (trace_save_command): Use filename instead of
1621 args when printing.
1622
e103e986
JK
16232011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1624
1625 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1626 if .size is 0.
1627
db24da6d
YQ
16282011-10-13 Yao Qi <yao@codesourcery.com>
1629
1630 PR gdb/12703
1631 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1632 whether insn is a 32-bit Thumb-2 instruction.
1633 (thumb_in_function_epilogue_p): Likewise.
1634 (thumb_get_next_pc_raw): Likewise.
1635 (arm_breakpoint_from_pc): Likewise.
1636
1d6edc3c
JK
16372011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1638
1639 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1640 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1641 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1642 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1643 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1644 zero DATA.
1645 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1646 validity.
1647 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1648 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1649 clear DATA on zero SIZE.
1650
adabb602
DE
16512011-10-12 Doug Evans <dje@google.com>
1652
1653 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1654 header->first_die_offset here. All callers updated.
1655
5048e516
JK
16562011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 Fix compatibility with texinfo versions older than 4.12.
1659 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1660 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1661 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1662 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1663 * configure: Regenerate.
1664 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1665 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1666 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1667
0574c78f
GB
16682011-10-12 Gary Benson <gbenson@redhat.com>
1669
1670 * breakpoint.h (pc_at_non_inline_function): Declare.
1671 * breakpoint.c (is_non_inline_function,
1672 pc_at_non_inline_function): New functions.
1673 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1674 if the stop is at a location where functions cannot be inlined.
1675
12d9289a
PA
16762011-10-12 Pedro Alves <pedro@codesourcery.com>
1677
1678 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1679 the core wanted them stopped, or if they now have a pending event
1680 to report.
ecf8e7f5
PA
1681 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1682 down to stop_and_resume_callback.
1683 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1684 having new pending events after calling linux_nat_filter_event.
12d9289a 1685
96408a79
SA
16862011-10-11 Sterling Augustine <saugustine@google.com>
1687
1688 * dwarf2read.c: Undo inadvertent changes in previous commit.
1689
9c6c53f7
SA
16902011-10-11 Sterling Augustine <saugustine@google.com>
1691
1692 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1693 logic.
1694
0e8aefe7
UW
16952011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1696
1697 * symfile.c (separate_debug_file_exists): Fix condition.
1698
349d1385
DM
16992011-10-11 David S. Miller <davem@davemloft.net>
1700
1701 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1702 static.
1703 * regcache.h (regcache_restore): Remove declaration.
1704
205c306f
DM
1705 * gdbarch.sh: New field 'long_long_align_bit'.
1706 * gdbarch.c, gdbarch.h: Regenerate.
1707 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1708 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1709
941b2081
JK
17102011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 Revert this part of:
1713 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 Support @entry in input expressions.
1715 * c-exp.y (ENTRY, unknown_cpp_name): New.
1716 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1717 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1718 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1719 (name_not_typename: ENTRY): New.
1720 (yylex): Recognize ENTRY.
1721
1722 Reimplement @entry in input expressions.
1723 * c-exp.y (ENTRY): New.
1724 (variable: name_not_typename ENTRY): New.
1725 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1726
3c4d7e12
PA
17272011-10-11 Pedro Alves <pedro@codesourcery.com>
1728
1729 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1730 parent and child's pids as soon as we detect a clone event.
1731 Adjust another debug message.
1732
ea23808b
PA
17332011-10-11 Pedro Alves <pedro@codesourcery.com>
1734
1735 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1736 not zombie instead of reading the whole file.
1737
904578ed
JK
17382011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 Fix separate debuginfo warning with "remote:" access.
1741 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1742 * symfile.c (get_file_crc): New function with the code moved from ...
1743 (separate_debug_file_exists): ... this function, specifically variables
1744 buffer and count. New variable verified_as_different, set it. Remove
1745 file_crc initialization. Verify also if both files are not the same
1746 manually, if needed.
1747
51370a33
YQ
17482011-10-11 Yao Qi <yao@codesourcery.com>
1749
1750 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1751 to get address.
1752
0838fb57
DE
17532011-10-10 Doug Evans <dje@google.com>
1754
1755 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1756 libthread_db when we load libpthread or the main symbol file.
1757 (thread_db_inferior_created): New function.
1758 (_initialize_thread_db): Attach inferior_created observer.
1759 * linux-nat.c (linux_child_post_attach): Remove call to
1760 check_for_thread_db.
1761 (linux_child_post_startup_inferior): Ditto.
1762 * objfiles.h (OBJF_MAINLINE): Define.
1763 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1764 allocate_objfile when appropriate.
1765
623bd5b7
UW
17662011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1767
1768 PR gdb/13218
1769 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1770 Remove unused variables.
1771 (get_linux_version): Remove function.
1772 (_initialize_arm_linux_nat): Do not call it.
1773
79395f92
PA
17742011-10-10 Pedro Alves <pedro@codesourcery.com>
1775
1776 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1777 new clone lwp if the core asked it to stop. Don't pass on
1778 unexpected signals to the new clone; leave them pending instead.
1779
eff3df78
PA
17802011-10-10 Pedro Alves <pedro@codesourcery.com>
1781
1782 * linux-nat.c (resume_lwp): Remove redundant debug output.
1783
4b60df3d
PA
17842011-10-10 Pedro Alves <pedro@codesourcery.com>
1785
1786 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1787 last_resume_kind before clearing it, and use the copy instead to
1788 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1789 resume_clear_callback in the non-stop path too.
1790
6501578c
YQ
17912011-10-09 Yao Qi <yao@codesourcery.com>
1792
1793 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1794 Honor OPTIONS and VAL's type.
1795 (common_val_print, value_print): Update to pass one more parameter.
1796
5a56e9c5
DE
17972011-10-09 Doug Evans <dje@google.com>
1798
1799 Add new "alias" command.
1800 * NEWS: Mention new command.
1801 * command.h (valid_user_defined_cmd_name_p): Declare.
1802 * defs.h (make_cleanup_dyn_string_delete): Declare.
1803 * utils.c: #include "dyn-string.h".
1804 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1805 * cli/cli-cmds.c: #include "dyn-string.h".
1806 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1807 (init_cli_cmds): Add new command.
1808 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1809
509f0fd9
JK
18102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1811
1812 Fix compatibility with older GCCs.
1813 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1814 * stack.c (read_frame_arg): Initialize val_deref.
1815
2bda9cc5
JK
18162011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1817
1818 Entry values NEWS entries, DWARF disassembly support.
1819 * NEWS: New entry values entry.
1820 (set print entry-values, show print entry-values)
1821 (set debug entry-values, show debug entry-values): New entries.
1822 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1823 indent. Remove variable start. Move header printing out. Respect
1824 INDENT. Support DW_OP_GNU_entry_value.
1825 (locexpr_describe_location_1): Move the header printing here, extend
1826 the disassemble_dwarf_expression passed parameters.
1827
a471c594
JK
18282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1829
1830 Display @entry parameter values even for references.
1831 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1832 coerce_ref_if_computed.
1833 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1834 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1835 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1836 existing push_dwarf_reg_entry_value call. Add new detection calling
1837 dwarf_block_to_dwarf_reg_deref. Update the error message.
1838 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1839 * dwarf2expr.h
1840 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1841 parameter deref_size, describe it in the comment.
1842 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1843 (dwarf_block_to_dwarf_reg_deref): New declaration.
1844 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1845 deref_size, describe it in the function comment. New variables
1846 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1847 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1848 describe it in the function comment. Fetch the alternative block
1849 accoring to DEREF_SIZE.
1850 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1851 (entry_data_value_free_closure, entry_data_value_funcs): New.
1852 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1853 outer_val, target_val, val and addr. Try to fetch and create also
1854 referenced value content.
1855 (pieced_value_funcs): NULL value for coerce_ref.
1856 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1857 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1858 coerce_ref_if_computed.
1859 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1860 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1861 * stack.c (read_frame_arg): Compare also dereferenced values.
1862 * value.c (value_computed_funcs): Make the parameter v const, use
1863 value_lval_const for it.
1864 (value_lval_const, coerce_ref_if_computed): New function.
1865 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1866 * value.h (struct lval_funcs): New field coerce_ref.
1867 (value_computed_funcs): Make the parameter v const.
1868 (value_lval_const, coerce_ref_if_computed): New declarations.
1869
36b11add
JK
18702011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 Support @entry in input expressions.
1873 * c-exp.y (ENTRY, unknown_cpp_name): New.
1874 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1875 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1876 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1877 (name_not_typename: ENTRY): New.
1878 (yylex): Recognize ENTRY.
1879 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1880 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1881 Likewise.
1882 * parse.c (operator_length_standard): Likewise.
1883 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1884
3343315b
JK
18852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 Display referenced values in backtraces.
1888 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1889 * stack.c (print_frame_arg): Likewise.
1890
ac71a68c
JK
18912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1892
1893 Make some lval_funcs methods to default on NULL.
1894 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1895 NULL.
1896 (value_assign): Check if lval_computed write method is NULL.
1897 * value.h (struct lval_funcs): Comment NULL values for read and write
1898 methods.
1899
e18b2753
JK
19002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1901
1902 Display @entry parameter values (without references).
1903 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1904 New functions.
1905 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1906 New declarations.
1907 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1908 entry record.
1909 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1910 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1911 functions.
1912 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1913 (loclist_read_variable_at_entry): New function.
1914 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1915 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1916 DW_AT_location, call dwarf_block_to_sp_offset for it.
1917 * frame.h (print_entry_values_no, print_entry_values_only)
1918 (print_entry_values_preferred, print_entry_values_if_needed)
1919 (print_entry_values_both, print_entry_values_compact)
1920 (print_entry_values_default, print_entry_values): New declarations.
1921 (struct frame_arg): New field entry_kind.
1922 (read_frame_arg): New parameter entryargp.
1923 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1924 arg->entry_kind. Optionally print the `@entry' suffix.
1925 (list_args_or_locals): New variable entryarg, initialize it.
1926 Initialize also entry_kind of arg and entryarg. Conditionalize
1927 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1928 xfree for entryarg.error.
1929 * stack.c (print_entry_values_no, print_entry_values_only)
1930 (print_entry_values_preferred, print_entry_values_if_needed)
1931 (print_entry_values_both, print_entry_values_compact)
1932 (print_entry_values_default, print_entry_values_choices)
1933 (print_entry_values): New variables.
1934 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1935 print the `@entry' suffix, possibly in combination for
1936 print_entry_values_compact.
1937 (read_frame_arg): New parameter entryargp, new variables entryval,
1938 entryval_error and val_equal. Read in also entryargp, respect
1939 print_entry_values, compare the values using val_equal, fill in also
1940 argp->entry_kind (together with entryargp->entry_kind).
1941 (print_frame_args): New variable entryarg, initialize it.
1942 Conditionalize print_frame_arg for arg, add print_frame_arg for
1943 entryarg. Call xfree for entryarg.error.
1944 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1945 * symtab.h (struct symbol_computed_ops): New field
1946 read_variable_at_entry.
1947
93d86cef
JK
19482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1949
1950 Code reshuffle.
1951 * frame.h (struct frame_arg): New definition.
1952 (read_frame_arg): New declaration.
1953 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1954 (list_args_or_locals): ... the code here. New variable arg, call
1955 read_frame_arg and list_arg_or_local with it. Unify the
1956 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1957 arg.error.
1958 * stack.c (print_frame_arg): New functiom from the code of
1959 print_frame_args.
1960 (read_frame_arg): New function.
1961 (print_frame_args): Remove variable val. New variable arg, call
1962 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1963
2d6c5dc2
JK
19642011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1965
1966 Protect entry values against self tail calls.
1967 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1968 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1969
111c6489
JK
19702011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 Recognize virtual tail call frames.
1973 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1974 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1975 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1976 * dwarf2-frame-tailcall.c: New file.
1977 * dwarf2-frame-tailcall.h: New file.
1978 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1979 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1980 REGS.PREV only after CIE execution.
1981 (struct dwarf2_frame_cache): New field tailcall_cache.
1982 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1983 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1984 parts, try to find entry_cfa_sp_offset. Call
1985 dwarf2_tailcall_sniffer_first.
1986 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1987 when appropriate.
1988 (dwarf2_frame_dealloc_cache): New function.
1989 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1990 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1991 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1992 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1993 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1994 * dwarf2loc.c (func_addr_to_tail_call_list)
1995 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1996 (call_site_find_chain_1, call_site_find_chain): New.
1997 * dwarf2loc.h (struct call_site_chain): New.
1998 (call_site_find_chain): New declaration.
1999 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2000 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2001 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2002 * stack.c (frame_info): Support also TAILCALL_FRAME.
2003
bb984ff1
JK
20042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 Tail call sites reader implementation.
2007 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2008 fill in TYPE_TAIL_CALL_LIST.
2009 * gdbtypes.h (struct func_type): New field tail_call_list.
2010 (struct call_site): New field tail_call_next.
2011 (TYPE_TAIL_CALL_LIST): New definition.
2012
8e3b41a9
JK
20132011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 Implement basic support for DW_TAG_GNU_call_site.
2016 * block.c: Include gdbtypes.h and exceptions.h.
2017 (call_site_for_pc): New function.
2018 * block.h (call_site_for_pc): New declaration.
2019 * defs.h: Include hashtab.h.
2020 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2021 declarations.
2022 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2023 ctx_no_push_dwarf_reg_entry_value.
2024 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2025 (dwarf_block_to_dwarf_reg): New function.
2026 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2027 (ctx_no_push_dwarf_reg_entry_value): New function.
2028 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2029 push_dwarf_reg_entry_value.
2030 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2031 declarations.
2032 * dwarf2loc.c: Include gdbcmd.h.
2033 (dwarf_expr_ctx_funcs): New forward declaration.
2034 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2035 (dwarf_expr_reg_to_entry_parameter)
2036 (dwarf_expr_push_dwarf_reg_entry_value): New.
2037 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2038 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2039 (needs_dwarf_reg_entry_value): New function.
2040 (needs_frame_ctx_funcs): Install it.
2041 (_initialize_dwarf2loc): New function.
2042 * dwarf2loc.h (entry_values_debug): New declaration.
2043 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2044 (read_call_site_scope): New forward declaration.
2045 (process_full_comp_unit): Copy call_site_htab.
2046 (process_die): Support DW_TAG_GNU_call_site.
2047 (read_call_site_scope): New function.
2048 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2049 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2050 (cleanup_htab): Delete.
2051 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2052 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2053 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2054 FIELD_LOC_KIND_DWARF_BLOCK.
2055 * gdbtypes.h (enum field_loc_kind): New entry
2056 FIELD_LOC_KIND_DWARF_BLOCK.
2057 (struct main_type): New loc entry dwarf_block.
2058 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2059 (TYPE_FIELD_DWARF_BLOCK): New.
2060 * python/py-type.c: Include dwarf2loc.h.
2061 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2062 internal_error call on unknown FIELD_LOC_KIND.
2063 * symtab.h (struct symtab): New field call_site_htab.
2064 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2065 (core_addr_hash, core_addr_eq): New functions.
2066
b6cdc2c1
JK
20672011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 Code reshuffle.
2070 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2071 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2072 calling_convention under func_stuff there.
2073 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2074 (init_type) <TYPE_CODE_FUNC>: Likewise.
2075 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2076 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2077 * gdbtypes.h (enum type_specific_kind): Change
2078 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2079 (struct main_type) <type_specific>: Change calling_convention to
2080 func_stuff. Move calling_convention to ...
2081 (struct func_type): ... this new struct.
2082 (INIT_FUNC_SPECIFIC): New #define.
2083 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2084
181cebd4
JK
20852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2086
2087 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2088 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2089 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2090 ctx->ref_addr_size. Handle its invalid value.
2091 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2092 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2093 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2094 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2095 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2096 (dwarf2_per_cu_ref_addr_size): New function.
2097
c471e790
JK
20982011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2099
2100 Code cleanup.
2101 * dwarf2read.c (per_cu_header_read_in): New function.
2102 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2103 variables cu_header_local and cu_headerp.
2104
741f5e3c
JK
21052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 Fix initial language detection with -readnow.
2108 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2109 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2110 searches only for global symbols.
2111
a73d2258
JK
21122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2113
2114 Fix printed anonymous struct name.
2115 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2116 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2117 (anonymous_struct_prefix): New function.
2118 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2119 (dwarf2_name): Strip for anonymous structs any prefixes.
2120
749fd4ea
DE
21212011-10-07 Doug Evans <dje@google.com>
2122
1fa57852
DE
2123 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2124 `replace'.
2125
690a4937
DE
2126 * python/lib/gdb/printing.py: Whitespace cleanup.
2127
749fd4ea
DE
2128 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2129 warning.
2130
4c38200f
PA
21312011-10-07 Pedro Alves <pedro@codesourcery.com>
2132
2133 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2134 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2135 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2136 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2137 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2138 (arm_linux_remove_watchpoint): Adjust.
2139 * i386-linux-nat.c (i386_linux_dr_set_control)
2140 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2141 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2142 (ia64_linux_remove_watchpoint): Adjust.
2143 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2144 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2145 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2146 (ppc_linux_insert_mask_watchpoint)
2147 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2148 (ppc_linux_remove_watchpoint): Adjust.
2149 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2150 Adjust.
2151
b7ff339d
CV
21522011-10-07 Corinna Vinschen <vinschen@redhat.com>
2153
2154 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2155 (clear_win32_environment): New function for Cygwin to clear out
2156 Win32 environment.
2157 (windows_create_inferior): Prepare new environment from in_env
2158 for Cygwin, too.
2159
f287c1f3
PM
21602011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2161
5631e596 2162 PR python/13264
f287c1f3
PM
2163 * python/py-value.c (valpy_call): Check that arguments are
2164 a tuple.
2165 (is_intlike): Remove call to CHECK_TYPEDEF.
2166 (valpy_nonzero): Catch GDB exceptions.
2167 (valpy_absolute): Ditto.
2168 (valpy_lazy_string): Ditto.
2169 (valpy_call): Ditto.
2170 (valpy_get_is_optimized_out): Ditto.
2171 (valpy_long): Ditto.
2172 (valpy_float): Ditto.
2173 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2174 (valpy_richcompare): Ditto.
2175
03583c20
UW
21762011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2177
2178 * inferior.h (disable_randomization): Declare.
2179 * infrun.c (disable_randomization): New global variable.
2180 (show_disable_randomization): New function.
2181 (set_disable_randomization): Likewise.
2182 (_initialize_infrun): Install set/show disable-randomization
2183 commands.
2184 * linux-nat.c (disable_randomization): Remove.
2185 (show_disable_randomization): Likewise.
2186 (set_disable_randomization): Likewise.
2187 (_initialize_linux_nat): No longer install set/show
2188 disable-randomization commands here.
2189 (linux_nat_supports_disable_randomization): New function.
2190 (linux_nat_add_target): Install it.
2191 * remote.c (PACKET_QDisableRandomization): New enum value.
2192 (remote_protocol_packets): Support QDisableRandomization.
2193 (_initialize_remote): Likewise.
2194 (remote_supports_disable_randomization): New function.
2195 (init_remote_ops): Install it.
2196 (extended_remote_supports_disable_randomization): New function.
2197 (init_extended_remote_ops): Install it.
2198 (extended_remote_disable_randomization): New function.
2199 (extended_remote_create_inferior_1): Call it.
2200 * target.h (struct target_ops): Add to_supports_disable_randomization.
2201 (target_supports_disable_randomization): Add prototype.
2202 * target.c (target_supports_disable_randomization): New function.
2203 (find_default_supports_disable_randomization): Likewise.
2204 (init_dummy_target): Install it.
2205
20c168b5
KP
22062011-10-07 Kevin Pouget <kevin.pouget@st.com>
2207
2208 Allow Python notification of new object-file loadings.
2209 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2210 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2211 Add build rule for this file.
2212 * python/py-event.h (emit_new_objfile_event): New prototype.
2213 (newobjfile): New Python event emitter.
2214 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2215 Python event registry.
2216 * python/py-inferior.c: Include objfiles.h
2217 (python_new_objfile): New function.
2218 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2219 observers.
2220 * python/py-newobjfileevent.c: New file.
2221 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2222 prototype.
2223 * python/python.c (_initialize_python): Add
2224 gdbpy_initialize_new_objfile_event call.
2225 * NEWS: Add item for new Python event "gdb.newobjfile"
2226
b1c8db38
TG
22272011-10-05 Tristan Gingold <gingold@adacore.com>
2228
2229 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2230 Extract the ravenscar task name from the symbol for the atcb.
2231
0dab82e9
PK
22322011-10-04 Paul Koning <paul_koning@dell.com>
2233
2234 * python/py-type.c (typy_make_iter): Add forward declaration.
2235 (typy_fields_items): Use the gdb.Type iterator.
2236
84ad80e6
PK
22372011-10-04 Paul Koning <paul_koning@dell.com>
2238
2239 * NEWS: Add entry for Python gdb.Type mapping methods.
2240
cb6be26b
KP
22412011-10-04 Kevin Pouget <kevin.pouget@st.com>
2242
2243 PR python/12691: Add the inferior to Python exited event
2244 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2245 to exited_event.
2246 * python/py-event.h (emit_exited_event): Likewise
2247 * python/-inferior.c (python_inferior_exit): Likewise
2248
6005b210
JB
22492011-10-03 Joel Brobecker <brobecker@adacore.com>
2250
2251 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2252 in output of -ada-task-info GDB/MI command.
2253
75082e8c
JB
22542011-10-03 Joel Brobecker <brobecker@adacore.com>
2255
2256 * ada-lang.h (struct inferior): Declare.
2257 (print_ada_task_info): Add declaration.
2258 * ada-tasks.c (print_ada_task_info): Make non-static.
2259 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2260 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2261 * mi/mi-main.c: #include "ada-lang.h".
2262 (mi_cmd_list_features): Add "ada-task-info" to the list
2263 of supported features.
2264 (mi_cmd_ada_task_info): New function.
2265
7ed7d719
JB
22662011-10-03 Joel Brobecker <brobecker@adacore.com>
2267
2268 * python/python.c (python_run_simple_file): New function.
2269 (source_python_script, source_python_script_for_objfile):
2270 Replace call to PyRun_SimpleFile by call to
2271 python_run_simple_file.
2272
3fcaed38
PK
22732011-10-03 Paul Koning <paul_koning@dell.com>
2274
2275 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2276 (value_to_value_object): Fetch value if it was lazy.
2277
8e5c319d
JK
22782011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2279
2280 Code cleanup.
2281 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2282 Rearrange the code for it.
2283
dd11a36c
JB
22842011-10-02 Joel Brobecker <brobecker@adacore.com>
2285
2286 * breakpoint.c (bkpt_print_recreate): Add call to
2287 print_recreate_thread.
2288
723b724b
MF
22892011-09-29 Mike Frysinger <vapier@gentoo.org>
2290
2291 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2292 PTRACE_GETFDPIC_INTERP): Define.
2293
412946b6
YQ
22942011-09-28 Yao Qi <yao@codesourcery.com>
2295
2296 * symfile.c (add_symbol_file_command): Update message on usage.
2297
a73bb892
PK
22982011-09-28 Paul Koning <paul_koning@dell.com>
2299
2300 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2301 (typy_length, typy_get, typy_has_key, typy_make_iter)
2302 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2303 (typy_iterator_iter, typy_iterator_iternext)
2304 (typy_iterator_dealloc): New functions to implement standard
2305 Python mapping methods on gdb.Type object.
2306 (gdb.TypeIterator): New Python type.
2307 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2308
fe10a582
DM
23092011-09-28 David S. Miller <davem@davemloft.net>
2310
2311 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2312 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2313 * sparc-tdep.c (sparc_complex_floating_p): New function.
2314 (sparc32_store_arguments): Handle complex floats.
2315 (sparc32_extract_return_value): Likewise.
2316 (sparc32_store_return_value): Likewise.
2317 (sparc32_stabs_argument_has_addr): Likewise.
2318 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2319 (sparc64_store_floating_fields): Handle complex floats.
2320 (sparc64_store_arguments): Likewise.
2321 (sparc64_store_return_value): Likewise.
2322
c93dbcba
EZ
23232011-09-28 Eli Zaretskii <eliz@gnu.org>
2324
2325 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2326 before the change on 2006-12-09.
2327 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2328 generates the environment block for CreateProcessA, modulo the
2329 Cygwin-specific parts that are not needed here.
2330
f00c55f8
TG
23312011-09-27 Tristan Gingold <gingold@adacore.com>
2332
2333 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2334 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2335 (darwin_solib_get_all_image_info_addr_at_init): New function.
2336 (darwin_solib_read_all_image_info_addr): Likewise.
2337 (darwin_solib_create_inferior_hook): Use the above two functions.
2338 * darwin-nat.c (darwin_execvp): Renames retval to res.
2339 (darwin_read_write_inferior): Update comment.
2340 (darwin_read_dyld_info): New function.
2341 (darwin_xfer_partial): Handle DYLD_INFO.
2342
6710bf39
SS
23432011-09-27 Stan Shebs <stan@codesourcery.com>
2344
2345 Add return address collection for tracepoints.
2346 * tracepoint.c (encode_actions_1): Add case for $_ret.
2347 (validate_actionline): Check for $_ret.
2348 (trace_dump_actions): Ditto.
2349 * ax-gdb.h (gen_trace_for_return_address): Declare.
2350 * ax-gdb.c: Include arch-utils.h.
2351 (gen_trace_for_return_address): New function.
2352 (agent_command): Add return address special case.
2353 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2354 (amd64_gen_return_address): New function.
2355 (amd64_init_abi): Call it.
2356 * i386-tdep.c: Include ax.h and ax-gdb.h.
2357 (i386_gen_return_address): New function.
2358 (i386_init_abi): Call it.
2359 * arch-utils.h (default_gen_return_address): Declare.
2360 * arch-utils.c (default_gen_return_address): New function.
2361 * gdbarch.sh (gen_return_address): New method.
2362 * gdbarch.h, gdbarch.c: Regenerate.
2363
e04e5beb
JM
23642011-09-23 Joseph Myers <joseph@codesourcery.com>
2365
2366 PR gdb/13079
2367 * i386-tdep.c (i386_frame_align): New.
2368 (i386_gdbarch_init): Use i386_frame_align.
2369
f3d6df6d
YQ
23702011-09-23 Yao Qi <yao@codesourcery.com>
2371
2372 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2373 to get address.
2374
e69860f1
TG
23752011-09-22 Tristan Gingold <gingold@adacore.com>
2376
2377 * fork-child.c (fork_inferior): Add exec_fun parameter.
2378 Call exec_fun or execvp.
2379 * inferior.h: Adjust prototype.
2380 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2381 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2382 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2383 * procfs.c (procfs_create_inferior): Ditto.
2384 * darwin-nat.c (darwin_execvp): New function.
2385 (darwin_create_inferior): Use it.
2386
4b51d87b
YQ
23872011-09-22 Yao Qi <yao@codesourcery.com>
2388
2389 * infrun.c (context_switch): Print debug message when switching to
2390 a different thread.
2391
56b9d9ac
UW
23922011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2393
2394 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2395 complex and vector types.
2396 (s390_return_value_convention): Likewise.
2397
2398 (s390_value_from_register): Call check_typedef.
2399 (extend_simple_arg): Likewise.
2400 (alignment_of): Likewise.
2401 (s390_push_dummy_call): Likewise.
2402 (s390_return_value): Likewise.
2403
b2cd6b29
JM
24042011-09-21 Joseph Myers <joseph@codesourcery.com>
2405
2406 * event-top.c (async_disconnect): If an exception is thrown from
2407 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2408 catch_errors.
2409 * top.c (quit_cover): Return void and take no arguments.
2410 * top.h (quit_cover): Update prototype.
2411
67ba4e42
JM
24122011-09-20 Joseph Myers <joseph@codesourcery.com>
2413
2414 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2415 current_uiout, not uiout.
2416
562f943b
DE
24172011-09-19 Doug Evans <dje@google.com>
2418
2419 * python/py-auto-load.c (source_section_scripts): Fix file
2420 descriptor leak.
2421 * python/python.c (source_python_script_for_objfile): Tweak comments.
2422
34518530
YQ
24232011-09-18 Yao Qi <yao@codesourcery.com>
2424 Ulrich Weigand <ulrich.weigand@linaro.org>
2425
2426 Support displaced stepping for Thumb 16-bit insns.
2427 * arm-tdep.c (THUMB_NOP) Define.
2428 (thumb_copy_unmodified_16bit): New.
2429 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2430 (thumb_copy_alu_reg): New.
2431 (arm_copy_svc): Move some common code to ...
2432 (install_svc): ... here. New.
2433 (thumb_copy_svc): New.
2434 (install_pc_relative): New.
2435 (thumb_copy_pc_relative_16bit): New.
2436 (thumb_decode_pc_relative_16bit): New.
2437 (thumb_copy_16bit_ldr_literal): New.
2438 (thumb_copy_cbnz_cbz): New.
2439 (cleanup_pop_pc_16bit_all): New.
2440 (thumb_copy_pop_pc_16bit): New.
2441 (thumb_process_displaced_16bit_insn): New.
2442 (thumb_process_displaced_32bit_insn): New.
2443 (thumb_process_displaced_insn): process thumb instruction.
2444
2445 Support displaced stepping for Thumb 32-bit insns.
2446 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2447 (thumb2_copy_preload): New.
2448 (thumb2_copy_copro_load_store): New.
2449 (thumb2_copy_b_bl_blx): New.
2450 (thumb2_copy_alu_imm): New.
2451 (thumb2_copy_load_reg_imm): New.
2452 (thumb2_copy_load_literal): New
2453 (thumb2_copy_block_xfer): New.
2454 (thumb_32bit_copy_undef): New.
2455 (thumb_32bit_copy_unpred): New.
2456 (thumb2_decode_ext_reg_ld_st): New.
2457 (thumb2_decode_svc_copro): New.
2458 (decode_thumb_32bit_store_single_data_item): New.
2459 (thumb_copy_pc_relative_32bit): New.
2460 (thumb_decode_pc_relative_32bit): New.
2461 (decode_thumb_32bit_ld_mem_hints): New.
2462 (thumb2_copy_table_branch): New
2463 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2464 instructions.
2465
2b16b2e3
YQ
24662011-09-18 Yao Qi <yao@codesourcery.com>
2467
2468 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2469 (install_b_bl_blx): Likewise.
2470
0f6f04ba
YQ
24712011-09-17 Yao Qi <yao@codesourcery.com>
2472
2473 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2474 (install_load_store): ... this. New.
2475 Change parameter BYTE to SIZE.
2476 (arm_copy_ldr_str_ldrb_strb): Update caller.
2477 (arm_decode_ld_st_word_ubyte): Update caller.
2478
e2d96639
YQ
24792011-09-17 Yao Qi <yao@codesourcery.com>
2480
2481 * infrun.c (displaced_step_fixup): Move some code ...
2482 (displaced_step_restore): ... here. New function.
2483 (handle_inferior_event): Cleanup displaced stepping state for both
2484 child and parent when get forked or vforked event.
2485 * regcache.c (get_thread_arch_aspace_regcache): New function.
2486 get_thread_arch_regcache (): Call it.
2487
a8123151
JB
24882011-09-16 Joel Brobecker <brobecker@adacore.com>
2489
2490 * ada-tasks.c (print_ada_task_info): New function, merging
2491 short_task_info and info_tasks together. Reimplement using
2492 ui-out instead of printing to stdout directly. Move the code
2493 building and checking the task list here, instead of leaving it
2494 in info_tasks_command.
2495 (info_task): Move the code building and checking the task
2496 list here, instead of leaving it in info_tasks_command.
2497 (info_tasks_command): Delete code building and checking
2498 the task list - moved elsewhere. Update calls to info_tasks
2499 and info_task.
2500
fbf06824
JB
25012011-09-16 Joel Brobecker <brobecker@adacore.com>
2502
2503 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2504
34a0bc90
JB
25052011-09-16 Joel Brobecker <brobecker@adacore.com>
2506
2507 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2508
79779fa9
JB
25092011-09-16 Joel Brobecker <brobecker@adacore.com>
2510
2511 * ada-lang.h (ada_build_task_list): Remove parameter
2512 `warn_if_null'.
2513 * ada-tasks.c (ada_build_task_list): Remove parameter
2514 `warn_if_null'. Adjust implementation and documentation.
2515 (valid_task_id, ada_get_environment_task)
2516 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2517 (info_tasks_command): Adjust implementation.
2518 (task_command): Likewise.
2519 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2520 to ada_build_task_list.
2521
e225eb91
JB
25222011-09-16 Joel Brobecker <brobecker@adacore.com>
2523
2524 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2525 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2526 (ada_tasks_inferior_data_handle): New static global.
2527 (get_ada_tasks_inferior_data): New function.
2528 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2529 (ada_get_environment_task, iterate_over_live_ada_tasks)
2530 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2531 Adjust.
2532 (ada_set_current_inferior_known_tasks_addr): New function.
2533 (read_known_tasks, ada_build_task_list, short_task_info)
2534 (info_tasks, info_task, info_tasks_command, task_command_1)
2535 (task_command, ada_task_list_changed): Adjust.
2536 (ada_tasks_invalidate_inferior_data): New function.
2537 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2538 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2539 * ada-lang.h (struct inferior): Add declaration.
2540 (ada_task_list_changed): Update profile.
2541 * remote-wtx-pd.c: #include "inferior.h".
2542 (switch_to_pd_internal): Update call to ada_task_list_changed.
2543
6da9ca05
JB
25442011-09-16 Joel Brobecker <brobecker@adacore.com>
2545
2546 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2547 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2548 (atcb_fieldno): Delete these static globals.
2549 (struct ada_tasks_pspace_data): New struct.
2550 (ada_tasks_pspace_data_handle): New static global.
2551 (get_ada_tasks_pspace_data): New function.
2552 (ada_tasks_invalidate_pspace_data): New function.
2553 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2554 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2555 (_initialize_tasks): Create this module's per-progspace
2556 data handle.
2557
dccd3cbd
JB
25582011-09-16 Joel Brobecker <brobecker@adacore.com>
2559
2560 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2561
f877b031
TG
25622011-09-16 Tristan Gingold <gingold@adacore.com>
2563
2564 * fork-child.c (fork_inferior): Update comment. Use alloca
2565 instead of xmalloc for argv. Move len and shell_command
2566 declarations in the block where they are used.
2567 Only call execvp. Factorize failure code.
2568
ae0c443d
JK
25692011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2570
2571 Code cleanup.
2572 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2573 `exp_element' instead of an element of the same and make the function
2574 static.
2575 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2576 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2577 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2578 Change argument of `write_exp_elt' function call.
2579 Remove extra spaces from comments.
2580 * parser-defs.h (write_exp_elt): Remove prototype.
2581
5af65ec0
PK
25822011-09-15 Paul Koning <paul_koning@dell.com>
2583
2584 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2585 count of item appended to list.
2586 * python/py-type.c (typy_fields): Likewise.
2587
72be8ccc
PK
25882011-09-15 Paul Koning <paul_koning@dell.com>
2589
883640a8 2590 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2591
92f6badc
KP
25922011-09-15 Kevin Pouget <kevin.pouget@st.com>
2593
2594 PR threads/12628
2595 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2596 processes with multiple threads.
2597 (inf_has_multiple_thread_cb): New function.
2598 (inf_has_multiple_threads): New function.
2599
0672bf41 26002011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2601
2602 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2603 * python/py-inferior.c (GdbMethods): New Python method definition.
2604
6839b47f
KP
26052011-09-15 Kevin Pouget <kevin.pouget@st.com>
2606
2607 Handle multiple breakpoint hits in Python interface:
2608 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2609 variable to breakpoints.
2610 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2611 bps instead of single breakpoint. Fix some space typos.
2612 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2613 variable to breakpoints.
2614
672f9b60
KP
26152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2616
2617 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2618 note if the breakpoint is internal.
2619
43675ae4
KP
26202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2621
0672bf41 2622 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2623
15148d6a
PA
26242011-09-14 Pedro Alves <pedro@codesourcery.com>
2625
2626 * infrun.c (prepare_for_detach, wait_for_inferior)
2627 (fetch_inferior_event): Don't flush the register cache.
2628 * remote.c (struct stop_reply) <regcache>: Add comment.
2629
d83e736b
JK
26302011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 Remove excessive DWARF expressions memory duplication.
2633 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2634 for block.data.
2635 (indirect_pieced_value): Remove variable result. Remove variable
2636 back_to and its use for baton.data.
2637 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2638 block.data.
2639 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2640 Update the function comment.
2641
c65b3e0d
PA
26422011-09-13 Pedro Alves <pedro@codesourcery.com>
2643
2644 * inferior.h (ALL_INFERIORS): New.
2645 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2646 for a stopped thread.
2647 (thread_db_find_new_threads): Look for threads in all inferiors.
2648
a1398e0c
PA
26492011-09-13 Pedro Alves <pedro@codesourcery.com>
2650
2651 * breakpoint.c (update_watchpoint): Handle the case of the
2652 watchpoint to update not being in the breakpoint list yet.
2653 (hw_watchpoint_use_count): New, factored out from
2654 hw_watchpoint_used_count.
2655 (hw_watchpoint_used_count): Rename to ...
2656 (hw_watchpoint_used_count_others): ... this. Add `except'
2657 parameter. Don't count resources of `except'. Use
2658 hw_watchpoint_use_count.
2659
30596231
PA
26602011-09-13 Pedro Alves <pedro@codesourcery.com>
2661
2662 * gdbthread.h (enum thread_state): Moved here.
2663 (struct thread_info): Rename `executing_' field to `executing' and
2664 `state_' to `state'.
2665 * thread.c (enum thread_state): Moved to gdbthread.h.
2666 (new_thread, add_thread_silent, delete_thread_1)
2667 (any_live_thread_of_process, thread_alive, set_running)
2668 (set_running, is_thread_state, any_running, is_executing)
2669 (set_executing, finish_thread_state, print_thread_info)
2670 (do_captured_thread_select): Adjust.
2671
bede5f5f
JK
26722011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2673
2674 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2675 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2676
4801a9a3
PA
26772011-09-12 Pedro Alves <pedro@codesourcery.com>
2678 Matt Rice <ratmice@gmail.com>
2679
2680 PR gdb/13175
2681
2682 * interps.c (struct interp) <interpreter_out>: Delete field.
2683 (interp_new): Remove the data and uiout parameters and adjust.
2684 (interp_set): Only set the current_uiout from the interpreter's
2685 uiout after initializing the interpreter. Adjust call to
2686 init_proc.
2687 (interp_ui_out): Adjust to call procs->ui_out_proc.
2688 (interp_data, interp_name): New.
2689 * interps.h (interp_init_ftype): Add `self' parameter.
2690 (interp_ui_out_ftype): New typedef.
2691 (struct interp_procs) <ui_out_proc>: New method pointer.
2692 (interp_new): Remove the data and uiout parameters.
2693 (interp_data, interp_name): Declare.
2694 * tui/tui-interp.c (tui_init): Adjust prototype.
2695 (tui_ui_out): New.
2696 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2697 tui_out here. Adjust call to interp_new.
2698 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2699 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2700 (cli_ui_out): New.
2701 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2702 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2703 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2704 Initialize mi->uiout depending on the mi_version as extracted from
2705 the interpreter's name.
2706 (mi_ui_out): New.
2707 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2708 interp_new. Don't allocate the ui_out's of the interpreters here.
2709
d0afda03 27102011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2711
d0afda03 2712 * solib.c (solib_used): New function.
59145f8c
AR
2713 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2714 by another so_list object before freeing it.
2715
bdaf8d4a
JK
27162011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2717
2718 Code cleanup.
2719 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2720 values.
2721
df15bd07
JK
27222011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2723
2724 Code cleanup.
2725 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2726 (amd64_skip_xmm_prologue): ... this new function. Describe its
2727 parameters. No longer use amd64_prologue_line_bug.
2728 * defs.h (producer_is_gcc_ge_4): New declaration.
2729 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2730 (process_full_comp_unit): Update its caller. Remove
2731 amd64_prologue_line_bug initialization.
2732 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2733 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2734
25289eb2
PA
27352011-09-09 Pedro Alves <pedro@codesourcery.com>
2736
2737 * linux-nat.h (enum resume_kind): New.
2738 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2739 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2740 resume_stop on the new lwp.
25289eb2
PA
2741 (add_lwp): Set last_resume_kind as resume_continue by default.
2742 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2743 (resume_lwp): New, factored out from resume_callback. Also check
2744 for pending status in lp->waitstatus.
2745 (resume_callback): Reimplement.
2746 (resume_clear_callback): Set last_resume_kind as resume_stop.
2747 (resume_set_callback): Set last_resume_kind as resume_continue.
2748 (linux_nat_resume, linux_handle_extended_wait): Set
2749 last_resume_kind.
2750 (running_callback): Also check lp->waitstatus for pending events.
2751 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2752 is resume_step.
2753 (stop_and_resume_callback): Don't re-resume if the core wanted the
2754 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2755 using an invalidated pointer.
2756 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2757 SIGSTOPs if the core wanted the LWP to stop.
2758 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2759 wanted the lwp to stop. If the core wanted the lwp to stop, and
2760 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2761 of TARGET_SIGNAL_STOP.
2762 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2763 here. Instead, signal the lwp, and set the last_resume_kind to
2764 resume_stop.
2765
f687d035
PA
27662011-09-09 Pedro Alves <pedro@codesourcery.com>
2767
2768 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2769 -1 (error), if the lwp exits right after attaching.
2770
bc587a6b
DE
27712011-09-08 Doug Evans <dje@google.com>
2772
63d97a20
DE
2773 * py-cmd.c: Some minor formatting fixes.
2774 (gdbpy_parse_command_name): Rename text arg to name, make const.
2775 All callers updated.
2776 * python-internal.h (gdbpy_parse_command_name): Update.
2777
bc587a6b
DE
2778 * cli/cli-decode.c (add_cmd): Add comment.
2779
08711b9a
JK
27802011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2781
2782 PR breakpoints/12435
2783 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2784 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2785 * dwarf2read.c (process_full_comp_unit): Initialize
2786 amd64_prologue_line_bug.
2787 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2788
b2e7f004
JK
27892011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 Fix TUI screen corruption.
2792 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2793 batch_flag.
2794
8afd712c
JK
27952011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2796
2797 * findvar.c (read_var_value): Never return NULL, throw an error
2798 instead. Update the function comment. State symbol name in the error
2799 messages.
2800 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2801 read_var_value.
2802 * stack.c (print_frame_args): Likewise.
2803 * valops.c (value_of_variable): Likewise.
2804
b99b5f66
JK
28052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2806
2807 * stack.c (print_frame_args): New variable except. Wrap
2808 read_var_value and common_val_print into TRY_CATCH.
2809
85bc8cb7
JK
28102011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2811
2812 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2813 caller to value_of_this.
2814 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2815 Twice.
2816 * valops.c (value_of_this): Remove parameter complain and variable ret.
2817 Update function comment. Never return NULL by this code.
2818 (value_of_this_silent): New function.
2819 * value.h (value_of_this): Remove parameter complain.
2820 (value_of_this_silent): New declaration.
2821
ede1849f
YQ
28222011-09-07 Yao Qi <yao@codesourcery.com>
2823
2824 * gdbthread.h (struct thread_info): Remove fields
2825 `stepping_through_solib_after_catch' and
2826 `stepping_through_solib_catchpoints'.
2827 * infrun.c (init_thread_stepping_state): Update.
2828 (process_event_stop_test, currently_stepping): Update.
2829 (currently_stepping_or_nexting_callback): Update.
2830
6aa27652
YQ
28312011-09-07 Yao Qi <yao@codesourcery.com>
2832
2833 * gdbthread.h (struct thread_info): Comment on field
2834 `step_after_step_resume_breakpoint'.
2835
00db5b94
PA
28362011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2837
2838 * remote.c (remote_console_output): Reindent.
2839
861152be
LM
28402011-09-06 Luis Machado <lgustavo@codesourcery.com>
2841
2842 * frame.c (has_stack_frames): Check for currently selected
2843 traceframe.
2844
ab821bc6
PA
28452011-09-06 Pedro Alves <pedro@codesourcery.com>
2846
2847 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2848 (set_async_annotation_level, set_async_prompt, pop_prompt)
2849 (push_prompt, new_async_prompt): Delete declarations.
2850 * top.h (get_prompt, set_prompt): Change prototype.
2851 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2852 declarations.
2853 * top.c (command_loop):
2854 (top_prompt): New global.
2855 (get_prefix, set_prefix, get_suffix, ): Delete.
2856 (get_prompt, set_prompt): Rewrite.
2857 (show_new_async_prompt): Rename to ...
2858 (show_prompt): ... this.
2859 (init_main): Adjust. Don't handle --annotate=2 here.
2860 * event-top.c (new_async_prompt): Delete.
2861 (the_prompts): Delete.
2862 (more_to_come): Make static.
2863 (display_gdb_prompt): Use top_level_prompt() to compute the top
2864 level prompt, and don't notify the before_prompt observers
2865 directly here. Always trick readline into not trying to display
2866 the prompt if sync_execution and displaying the primary prompt.
2867 If displaying a local/secondary prompt, always show it, even if
2868 sync_execution is set.
2869 (change_annotation_level): Delete.
2870 (top_level_prompt): New, based on change_annotation_level.
2871 (push_prompt, pop_prompt): Delete.
2872 (async_disable_stdin): No longer pushes prompt.
2873 (command_line_handler): No longer pushes or pops prompt. If more
2874 input is expected, call display_gdb_prompt with an explicit empty
2875 prompt.
2876 (async_stop_sig): Adjust.
2877 (set_async_annotation_level, set_async_prompt): Delete.
2878 * python/python.c (before_prompt_hook): Adjust.
2879
f1d90504
PA
28802011-09-05 Pedro Alves <pedro@codesourcery.com>
2881
2882 PR cli/13110
2883
2884 * infrun.c (fetch_inferior_event): Check if there's a selected
2885 thread before checking if the selected thread is executing.
2886
0f641c01
PA
28872011-09-05 Pedro Alves <pedro@codesourcery.com>
2888
2889 * inf-loop.c (execute_command): Don't check if the current thread
2890 if running before synchronously waiting for command completion.
2891 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2892 here.
2893 (normal_stop): Call async_enable_stdin here.
2894 * inf-loop.c (inferior_event_handler): Don't call
2895 async_enable_stdin, nor handle "set exec-done-display" here.
2896
30368258 28972011-09-04 Joel Brobecker <brobecker@adacore.com>
2898
2899 GDB 7.3.1 released.
2900
31916278
JB
29012011-09-04 Joel Brobecker <brobecker@adacore.com>
2902
2903 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2904
e8d56f18
JB
29052011-09-04 Joel Brobecker <brobecker@adacore.com>
2906
2907 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2908
5dd05d8c
JK
29092011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2912
7d8e6458 29132011-09-02 Matt Rice <ratmice@gmail.com>
2914
2915 PR gdb/10720
2916 * event-top.c (cli_command_loop): Replace readline setup with
2917 direct call to display_gdb_prompt.
2918 (display_gdb_prompt): Do not call observer mechanism during
2919 synchronous execution.
2920
84636d28
PA
29212011-09-02 Pedro Alves <pedro@codesourcery.com>
2922
2923 * linux-nat.c (in_pid_list_p): New.
2924 (linux_record_stopped_pid): Delete.
2925 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2926 already attached to the LWP. Return an indication if so.
2927 (linux_nat_filter_event): Adjust.
2928 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2929 returning an indication to ignore this thread.
2930
b4a14fd0
PA
29312011-09-02 Pedro Alves <pedro@codesourcery.com>
2932
2933 * top.c: Include interps.h.
2934 (execute_command): If the target can async, but the interpreter is
2935 in sync mode, synchronously wait for the command to finish before
2936 returning.
2937 (execute_command_to_string): Force the interpreter to sync mode.
2938 * infrun.c: Include interps.h.
2939 (fetch_inferior_event): Don't restore the prompt yet if the
2940 interpreter is in sync mode.
2941 * interps.c (interpreter_async): New global.
2942 * interps.h (interpreter_async): Declare.
2943 * inf-loop.c: Include interps.h.
2944 (inferior_event_handler): Don't print the language change or run
2945 breakpoint commands yet if the interpreter in is sync mode.
2946 * main.c (captured_command_loop): Flip the interpreter to async
2947 mode.
2948 * cli/cli-script.c: Include interps.h.
2949 (execute_user_command, while_command, if_command): Force the
2950 interpreter to sync mode.
2951 * python/python.c: Include interps.h.
2952 (python_command, execute_gdb_command): Force the interpreter to
2953 sync mode.
2954
c709acd1
PA
29552011-09-02 Pedro Alves <pedro@codesourcery.com>
2956
2957 * value.c (show_convenience): Catch errors thrown while printing
2958 each internal variable.
2959 * infrun.c (validate_siginfo_access): New function.
2960 (siginfo_value_read, siginfo_value_write): Call it.
2961
9655e943
JK
29622011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2963
2964 Revert:
2965 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2966 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2967 attribute.
2968
cb457ae2
YQ
29692011-08-29 Yao Qi <yao@codesourcery.com>
2970
2971 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2972 (cmp_name): New.
2973 (enable_break2): Update caller.
2974 * solib-frv.c (bfd_lookup_symbol): Removed.
2975 (cmp_name): New.
2976 (enable_break2): Update caller.
2977 * solib-pa64.c (bfd_lookup_symbol): Removed.
2978 (cmp_name): New.
2979 * solib-svr4.c (bfd_lookup_symbol): Removed.
2980 (cmp_name_and_sec_flags): New.
2981 (enable_break): Update caller.
2982 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2983 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2984 (gdb_bfd_lookup_symbol): New.
2985 * solib.h: Functions declarations.
2986
83d1a36a
YQ
29872011-08-29 Yao Qi <yao@codesourcery.com>
2988
2989 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2990 and solib-dsbt.o.
2991
c04b3e8f
JK
29922011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 Fix TUI stepi on code without symbols.
2995 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2996 current PC instead.
2997
cb0fd152
JK
29982011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 Code cleanup.
3001 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3002 and the static keyword.
3003 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3004 Make prefix an array.
3005 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3006 * mi/mi-main.c (get_register): Remove stb initialization and the static
3007 keyword.
3008
91174723
JK
30092011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3010
3011 Code cleanup - make mi_opt const.
3012 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3013 opts const.
3014 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3015 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3016 (mi_cmd_env_dir): Likewise.
3017 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3018 (mi_cmd_target_file_put): Likewise.
3019 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3020 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3021 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3022 (mi_valid_noargs): Make opts const.
3023 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3024 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3025 (mi_cmd_data_read_memory): Likewise.
3026 (mi_cmd_data_read_memory_bytes): Likewise.
3027 (mi_cmd_data_write_memory): Likewise.
3028
5068b8e8 30292011-08-26 Matt Rice <ratmice@gmail.com>
3030
3031 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3032 bcache_xmalloc, replace bcache_xmalloc with call to
3033 psymbol_bcache_init for psymbol_cache.
3034 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3035
a4f2ce05
JK
30362011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 * inf-loop.c (inferior_event_handler): Add exception_print in
3039 INF_EXEC_COMPLETE.
3040
353d1d73
JK
30412011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3042
3043 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3044 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3045 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3046 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3047 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3048 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3049 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3050 * infrun.c (fetch_inferior_event): Call
3051 make_bpstat_clear_actions_cleanup.
3052 * top.c (execute_command): New variable cleanup_if_error, call
3053 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3054 * utils.c (do_bpstat_clear_actions_cleanup)
3055 (make_bpstat_clear_actions_cleanup): New functions.
3056
3ced3da4
PA
30572011-08-26 Pedro Alves <pedro@codesourcery.com>
3058
3059 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3060 either the parent or the child forks. Rename a couple locals.
3061
a9f4bb21
PA
30622011-08-26 Pedro Alves <pedro@codesourcery.com>
3063
3064 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3065 library call. Avoid reading the `status' local if all waitpid
3066 calls failed.
3067
e5798bef
PA
30682011-08-26 Pedro Alves <pedro@codesourcery.com>
3069
3070 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3071 opening /proc/PID/task always succeeds.
3072
edb2aadf
AR
30732011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3074
3075 * linespec.c (symtab_from_filename): Check for the end of string.
3076
0d932b2f
MK
30772011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3078
3079 PR mi/11912
3080 * varobj.c (cplus_describe_child): Add the keyword
3081 'class' to the output of the method when dealing
3082 with a cast to a base class.
3083
e93ca019
JK
30842011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 No functionality change.
3087 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3088 function comment a reference, new variables tp and bs, move here code
3089 from throw_exception.
3090 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3091 describe it in the comment.
3092 * exceptions.c (throw_exception): Remove variable tp, move the code for
3093 bpstat_clear_actions to bpstat_clear_actions.
3094
13da1c97
LM
30952011-08-24 Luis Machado <lgustavo@codesourcery.com>
3096
3097 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3098 * linux-nat.c: Include linux-procfs.h.
3099 (linux_proc_get_tgid): Move to ...
3100 * common/linux-procfs.c: ... here. New file.
3101 * common/linux-procfs.h: New file.
3102 * linux-thread-db.c: Include linux-procfs.h.
3103 * Makefile.in: Update dependencies.
3104 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3105 * config/arm/linux.mh: Likewise.
3106 * config/i386/linux.mh: Likewise.
3107 * config/i386/linux64.mh: Likewise.
3108 * config/ia64/linux.mh: Likewise.
3109 * config/m32r/linux.mh: Likewise.
3110 * config/m68k/linux.mh: Likewise.
3111 * config/mips/linux.mh: Likewise.
3112 * config/pa/linux.mh: Likewise.
3113 * config/pa/linux.mh: Likewise.
3114 * config/powerpc/linux.mh: Likewise.
3115 * config/powerpc/ppc64-linux.mh: Likewise.
3116 * config/powerpc/spu-linux.mh: Likewise.
3117 * config/sparc/linux.mh: Likewise.
3118 * config/sparc/linux64.mh: Likewise.
3119 * config/xtensa/linux.mh: Likewise.
3120
4e5c165d
HZ
31212011-08-24 Hui Zhu <teawater@gmail.com>
3122
3123 * tracepoint.c (cond_string_is_same): New function.
3124 (find_matching_tracepoint): Add condition check
3125 by cond_string_is_same.
3126
6e2f5b22
JK
31272011-08-23 Josh Matthews <josh@joshmatthews.net>
3128
3129 Fix build error in Darwin port.
3130 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3131
abf85f46
JK
31322011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 Code cleanup.
3135 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3136 (command_line_is_silent): New function.
3137 (bpstat_do_actions_1): No longer use commands_left, use
3138 command_line_is_silent for commands.
3139 (bpstat_alloc): Remove clearing of commands_left.
3140 (bpstat_stop_status): Remove initialization of commands_left, use
3141 command_line_is_silent.
3142 * breakpoint.h (struct bpstats): Remove commands_left.
3143
3a93a0c2
KS
31442011-08-18 Keith Seitz <keiths@redhat.com>
3145
3146 PR c++/12266
3147 * cp-name-parser.y (struct demangle_info): Remove unused
3148 member PREV.
3149 (d_grab): Likewise.
3150 (allocate_info): Change return type to struct demangle_info *.
3151 Always allocate a new demangle_info.
3152 Remove unused PREV pointer.
3153 (cp_new_demangle_parse_info): New function.
3154 (cp_demangled_name_parse_free): New function.
3155 (do_demangled_name_parse_free_cleanup): New function.
3156 (make_cleanup_cp_demangled_name_parse_free): New function.
3157 (cp_demangled_name_to_comp): Change return type to
3158 struct demangle_parse_info *.
3159 Allocate a new storage for each call.
3160 (main): Update usage for cp_demangled_name_to_comp
3161 API change.
3162 * cp-support.h (struct demangle_parse_info): New structure.
3163 (cp_demangled_name_to_comp): Update API change for
3164 return type.
3165 (cp_new_demangle_parse_info): Declare.
3166 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3167 (cp_demangled_name_parse_free): Declare.
3168 * cp-support.c (cp_canonicalize_string): Update API
3169 change for cp_demangled_name_to_comp.
3170 (mangled_name_to_comp): Likewise.
3171 Return struct demangle_parse_info, too.
3172 (cp_class_name_from_physname): Update mangled_name_to_comp
3173 API change.
3174 (method_name_from_physname): Likewise.
3175 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3176 (cp_remove_params): Likewise.
3177 * python/py-type.c (typy_legacy_template_argument): Likewise.
3178
3179 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3180 (cp_merge_demangle_parse_infos): Declare.
3181 * cp-support.c (ignore_typedefs): New file global.
3182 (copy_string_to_obstack): New function.
3183 (inspect_type): New function.
3184 (replace_typedefs): New function.
3185 (replace_typedefs_qualified_name): New function.
3186 (cp_canonicalize_string_no_typedefs): New function.
3187 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3188 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3189 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3190 instead of cp_canonicalize_string.
3191 (find_method): Likewise.
3192 (decode_compound): Before looking up the name, call
3193 cp_canonicalize_string_no_typedefs.
3194 (decode_variable): Likewise.
3195
fa3a4f15
PM
31962011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3197 Tom Tromey <tromey@redhat.com>
3198 Matt Rice <ratmice@gmail.com>
3199
3200 * python/lib/gdb/prompt.py: New file.
3201 * python/lib/gdb/command/prompt.py: New file.
3202 * NEWS: Document set extended-prompt and gdb.prompt library
3203
85661b1e
YQ
32042011-08-16 Yao Qi <yao@codesourcery.com>
3205
3206 * tic6x-linux-tdep.c: Move const arrays definition from here...
3207 * tic6x-tdep.c: to here ...
3208
11315641
YQ
32092011-08-14 Yao Qi <yao@codesourcery.com>
3210
3211 * NEWS: New port to Texas Instruments TMS320C6x.
3212
8cd64e00
YQ
32132011-08-14 Andrew Jenner <andrew@codesourcery.com>
3214 Bernd Schmidt <bernds@codesourcery.com>
3215 Yao Qi <yao@codesourcery.com>
3216
3217 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3218 * solib-dsbt.c: New file. Support DSBT shared object.
3219 * tic6x-linux-tdep.c: New file.
3220 * tic6x-tdep.c: New file.
3221 * tic6x-tdep.h: New file.
3222
78d85199
YQ
32232011-08-14 Andrew Stubbs <ams@codesourcery.com>
3224 Yao Qi <yao@codesourcery.com>
3225
3226 * remote.c (PACKET_qXfer_fdpic): New enum value.
3227 (remote_protocol_features): Add qXfer:fdpic:read packet.
3228 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3229 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3230 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3231
224bbe49
YQ
32322011-08-14 Yao Qi <yao@codesourcery.com>
3233
3234 Target description for tic6x.
3235 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3236 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3237 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3238 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3239 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3240 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3241 * features/tic6x-c64xp-linux.xml: New.
3242 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3243 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3244 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3245 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3246 * regformats/tic6x-c64xp.dat,
3247 regformats/tic6x-c62x-linux.dat: Generated.
3248 * regformats/tic6x-c64x-linux.dat,
3249 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3250 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3251 features/tic6x-*.c files.
3252 Add regformats/tic6x-*.dat files.
3253
457e09f0
DE
32542011-08-12 Doug Evans <dje@google.com>
3255
3256 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3257 * python/py-symbol.c (sympy_get_type): New function.
3258 (symbol_object_getset): Add "type".
3259
d20c1c3f
PA
32602011-08-12 Pedro Alves <pedro@codesourcery.com>
3261
3262 PR tui/13073
3263
3264 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3265 empty name.
3266 (tui_show_register_group): Don't store a byte buffer in the data
3267 element's value.
3268 (tui_register_format): Skip registers with an empty name.
3269 (tui_get_register): Store a struct value in the data element's
3270 value field instead of a byte buffer holding the raw register
3271 contents. Account for optimized-out and unavailable registers
3272 when comparing register contents.
3273
9d8fa392
PA
32742011-08-09 Pedro Alves <pedro@codesourcery.com>
3275
3276 * printcmd.c (current_display_number): Update comment.
3277 (disable_current_display_cleanup): Delete.
3278 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3279 catch errors thrown while evaluating and printing the display.
3280
401a70b8
TT
32812011-08-09 Tom Tromey <tromey@redhat.com>
3282
3283 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3284
7f86f058
PA
32852011-08-09 Pedro Alves <pedro@codesourcery.com>
3286
94b71cca 3287 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3288 * maint.c (maintenance_command): Ditto.
3289 * somread.c (som_symtab_read): Ditto.
3290 * solib.c (solib_find, solib_map_sections, update_solib_list)
3291 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3292 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3293 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3294 * solib-irix.c (locate_base, disable_break, enable_break)
3295 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3296 (irix_current_sos, irix_open_symbol_file_object)
3297 (irix_special_symbol_handling): Ditto.
3298 * solib-sunos.c (locate_base, first_link_map_member)
3299 (sunos_current_sos, disable_break, enable_break)
3300 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3301 Ditto.
3302 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3303 (open_symbol_file_object, svr4_current_sos, enable_break)
3304 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3305 Ditto.
3306 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3307 (frv_current_sos, enable_break, frv_special_symbol_handling)
3308 (frv_solib_create_inferior_hook): Ditto.
3309 * solist.h (struct target_so_ops): Extend the comments of the
3310 special_symbol_handling, current_sos and open_symbol_file_object
3311 methods.
3312
5e239b84
PM
33132011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3314
3315 * python/lib/gdb/__init__.py: Auto-load files in command and
3316 function directories.
3317 * python/python.c (finish_python_initialization): Use
3318 os.path.join.
3319 * python/lib/gdb/command/pretty_printers.py: Self register
3320 command.
3321 * NEWS: Document auto-loading.
3322
b6cede78
JK
33232011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3326 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3327 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3328
29d0bb3d
TT
33292011-08-08 Tom Tromey <tromey@redhat.com>
3330
3331 * breakpoint.c (clean_up_filters): Remove.
3332 (catch_syscall_split_args): Use VEC_cleanup.
3333
2f7fb8e4
JK
33342011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3337 (main): Uncomment "Demangling error\n".
3338
d6c10e95
PP
33392011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3340
3341 * solib-target.c (segment_attributes): Make them static.
3342 (section_attributes, library_children, library_attributes): Likewise.
3343 (library_list_children, library_list_attributes): Likesise.
3344 (library_list_elements): Likewise.
3345
af6e93b2
PA
33462011-08-05 Pedro Alves <pedro@codesourcery.com>
3347
3348 * exceptions.c (throw_exception): Don't disable the current
3349 display.
3350 * printcmd.c (disable_current_display_cleanup): New function.
3351 (do_one_display): Install a cleanup to disable the current display
3352 if doing the display throws.
3353
6a1b1664
EZ
33542011-08-05 Eli Zaretskii <eliz@gnu.org>
3355
3356 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3357 initialization of the tp_new member to the corresponding
3358 gdbpy_initialize_* function.
3359 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3360 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3361 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3362 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3363 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3364
31a0ae49
JK
33652011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3366
3367 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3368 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3369 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3370 references to current_uiout.
3371
e0dd0826
PA
33722011-08-04 Pedro Alves <pedro@codesourcery.com>
3373
3374 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3375 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3376 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3377 * top.c (gdb_readline_wrapper): Adjust.
3378 * tui/tui-interp.c (tui_command_loop):
3379 (_initialize_tui_interp): Don't install it.
3380
79a45e25
PA
33812011-08-04 Pedro Alves <pedro@codesourcery.com>
3382
3383 * ui-out.h (uiout): Rename to ...
3384 (current_uiout): ... this.
3385 * ui-out.c (uiout): Rename to ...
3386 (current_uiout): ... this.
3387 * ada-lang.c (print_it_exception, print_one_exception)
3388 (print_mention_exception): Adjust.
3389 * breakpoint.c (watchpoint_check): Adjust.
3390 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3391 (default_collect_info, watchpoints_info, print_one_catch_fork)
3392 (print_one_catch_vfork, print_one_catch_syscall)
3393 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3394 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3395 (print_it_watchpoint, print_mention_watchpoint)
3396 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3397 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3398 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3399 (bkpt_print_mention, momentary_bkpt_print_it)
3400 (tracepoint_print_mention, update_static_tracepoint)
3401 (tracepoints_info, save_breakpoints): Adjust.
3402 * cli-out.c (field_separator): Adjust.
3403 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3404 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3405 * frame.c (get_current_frame): Adjust.
3406 * infcmd.c (run_command_1, print_return_value): Adjust.
3407 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3408 * infrun.c (print_end_stepping_range_reason): Adjust.
3409 (print_signal_exited_reason, print_exited_reason): Adjust.
3410 (print_signal_received_reason, print_no_history_reason): Adjust.
3411 * interps.c (interp_set): Adjust.
3412 * osdata.c (info_osdata_command): Adjust.
3413 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3414 * remote-fileio.c (remote_fileio_request): Adjust.
3415 * remote.c (show_remote_cmd): Adjust.
3416 * solib.c (info_sharedlibrary_command): Adjust.
3417 * source.c (print_source_lines_base): Adjust.
3418 * stack.c (print_stack_frame): Adjust.
3419 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3420 * symfile-mem.c (add_vsyscall_page): Adjust.
3421 * symfile.c (load_progress, generic_load)
3422 (print_transfer_performance): Adjust.
3423 * thread.c (info_threads_command, restore_selected_frame)
3424 (thread_command): Adjust.
3425 * top.c (make_cleanup_restore_ui_file): Adjust.
3426 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3427 (print_one_static_tracepoint_marker): Adjust.
3428 * cli/cli-cmds.c (print_disassembly): Adjust.
3429 * cli/cli-decode.c (print_doc_line): Adjust.
3430 * cli/cli-interp.c (safe_execute_command): Adjust.
3431 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3432 (handle_redirections): Adjust.
3433 * cli/cli-script.c (show_user_1): Adjust.
3434 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3435 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3436 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3437 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3438 (mi_cmd_env_dir): Adjust.
3439 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3440 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3441 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3442 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3443 (list_args_or_locals): Adjust.
3444 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3445 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3446 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3447 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3448 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3449 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3450 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3451 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3452 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3453 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3454 (list_available_thread_groups, mi_cmd_list_thread_groups)
3455 (mi_cmd_data_list_register_names)
3456 (mi_cmd_data_list_changed_registers)
3457 (mi_cmd_data_list_register_values, get_register)
3458 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3459 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3460 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3461 (mi_execute_command, mi_load_progress): Adjust.
3462 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3463 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3464 Adjust.
3465 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3466 * tui/tui-interp.c (tui_command_loop): Adjust.
3467 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3468
f9679975
PA
34692011-08-04 Pedro Alves <pedro@codesourcery.com>
3470
3471 * exceptions.c (struct catcher): Remove saved_uiout field.
3472 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3473 no longer save/resvore the global ui_out builder.
3474 (catch_exceptions_with_msg): Save/override/restore the global
3475 ui_out builder manually instead of relying on TRY_CATCH to do it.
3476 (catch_errors): Save/restore the global ui_out builder manually
3477 instead of relying on TRY_CATCH to do it.
3478 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3479 parameter.
3480 (TRY_CATCH): Adjust.
3481 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3482 the global ui_out builder manually instead of relying on TRY_CATCH
3483 to do it.
3484
934709f0
PW
34852011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3486
3487 * breakpoint.c (update_global_location_list): Ensure
3488 invariant 'first loc marked not duplicated and inserted,
3489 following locs marked duplicated/not inserted' is respected
3490 for multiple locations at the same address.
3491 (unduplicated_should_be_inserted) New function.
3492 (swap_insertion) New function.
3493
2421fe6f
JK
34942011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3495
3496 * stack.c (print_frame_arguments_choices): Comment typo fix.
3497
3fbb6ffa
TJB
34982011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3499
3500 Revert:
3501 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3502 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3503 argument. Update callers.
3504
fbe12357
PP
35052011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3506
3507 PR gdb/13045
3508 * doublest.c (convert_doublest_to_floatformat): Pass correct
3509 mantissa length to put_field.
3510
b1d288d3
JK
35112011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3514 exception_print code path.
3515 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3516 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3517 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3518
311b5970
JK
35192011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 Code cleanup.
3522 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3523 Remove, merge them into ...
3524 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3525 variable args and its initialization.
3526 (struct print_args_args, print_args_stub): Remove, merge them into
3527 print_frame.
3528 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3529 them into ...
3530 (do_gdb_disassembly): ... here. Remove variable args and its
3531 initialization.
3532 (print_frame): Remove variable args and its initialization, new
3533 variable gdbarch and numargs (from print_args_stub), inline here
3534 print_args_stub with a TRY_CATCH.
3535 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3536 them into ...
3537 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3538 New variable e, remove variable btargs and its initialization.
311b5970 3539
484a26a8
TG
35402011-08-01 Tristan Gingold <gingold@adacore.com>
3541
3542 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3543
c30eee59
TJB
35442011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3545
3546 * breakpoint.c (insert_bp_location): Document return value.
3547 (insert_breakpoint_locations): Fix documentation.
3548 (remove_breakpoints): Add documentation.
3549
f116073b
TJB
35502011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3551
3552 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3553 argument. Update callers.
3554
65aa373f
JK
35552011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 * stack.c (print_frame_info): Comment typo fix.
3558
a50242fb
SA
35592011-07-29 Sterling Augustine <saugustine@google.com>
3560
3561 * MAINTAINERS (Write After Approval): Add myself to the list.
3562
267f6504
TT
35632011-07-29 Tom Tromey <tromey@redhat.com>
3564
3565 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3566 (library_list_start_segment): Update.
3567 (library_list_start_section): Update.
3568
00bd41d6
PM
35692011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3570
3571 * varobj.c (value_get_print_value): Move hint check later into the
3572 function. Comment function. Free thevalue before reusing it.
3573
18a46dbe
JK
35742011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3575 Pedro Alves <pedro@codesourcery.com>
3576
3577 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3578 value_one.
3579 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3580 Assert the result kind.
3581 * value.h (value_one): Remove parameter lv.
3582
bb7da2bf
JK
35832011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3584
3585 Fix crash on lval_computed values.
3586 * valops.c (value_zero): Use not_lval for lval_computed.
3587
2d5213f8
TT
35882011-07-27 Tom Tromey <tromey@redhat.com>
3589
3590 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3591 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3592
11081198
JK
35932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3594
3595 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3596 "ptype" by their typedefs difference.
3597
3c6e0cb3
JK
35982011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 * dwarf2expr.c (ctx_no_read_reg): New function.
3601 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3602 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3603 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3604 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3605
523f3620
JK
36062011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3607
3608 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3609 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3610 file.
3611 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3612 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3613 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3614 (ctx_no_get_base_type): Move the functions here.
3615 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3616 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3617 (ctx_no_get_base_type): New declarations.
3618
24d3216f
TT
36192011-07-27 Tom Tromey <tromey@redhat.com>
3620
3621 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3622 entries.
3623 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3624 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3625
5005c8a9
PP
36262011-07-26 Sterling Augustine <saugustine@google.com>
3627
3628 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3629 ULONGEST.
3630 (dump_bfd_file): Likewise.
3631
480a3f21
PW
36322011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3633
3634 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3635 (remote_hw_watchpoint_length_limit): New variable.
3636 (_initialize_remote) add set,show cmds for this new variable.
3637 * gdb.texinfo: document these new commands.
3638 * NEWS: Mention these new commands.
3639
efa80663
PA
36402011-07-26 Pedro Alves <pedro@codesourcery.com>
3641
3642 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3643 true for software watchpoints.
3644
dbdaa232 36452011-07-26 Joel Brobecker <brobecker@adacore.com>
3646
3647 GDB 7.3 released.
3648
cf2c3c16
TT
36492011-07-26 Tom Tromey <tromey@redhat.com>
3650
3651 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3652 * dwarf2read.c (read_indirect_string_at_offset): New function.
3653 (read_indirect_string): Use it.
3654 (dwarf_decode_macro_bytes): New function, taken from
3655 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3656 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3657 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3658 New functions.
3659 (struct dwarf2_per_objfile) <macro>: New field.
3660 (dwarf2_elf_names): Add .debug_macro.
3661 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3662 (dwarf2_locate_sections): Handle new section.
3663 (read_file_scope): Handle DW_AT_GNU_macros.
3664 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3665
1a532630
PP
36662011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3667
3668 * NEWS: Mention dcache configuration.
3669 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3670 (dcache_size, dcache_line_size): New variables.
3671 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3672 (struct dcache_block): Make it expandable.
3673 (struct dcache_struct): New field.
3674 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3675 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3676 (dcache_poke_byte, dcache_print_line): Adjust.
3677 (set_dcache_size, set_dcache_line_size): New functions.
3678 (set_dcache_command, show_dcache_command): New functions.
3679 (_initialize_dcache): Add new commands.
3680
2eff07b3
PP
36812011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3682
3683 * progspace.h (struct program_space): Add solib_add_generation.
3684 * infcmd.c (post_create_inferior): Only call solib_add if not
3685 already done.
3686 * solib.c (solib_add): Increment solib_add_generation.
3687
543305c9
JK
36882011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3689
3690 Fix implicit pointer offsets.
3691 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3692 ptr.OFFSET.
3693
c0a91b2b
TT
36942011-07-25 Tom Tromey <tromey@redhat.com>
3695
3696 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3697 const.
3698 (ada_exception_sal): Make 'ops' const.
3699 (ada_decode_exception_location): Likewise.
3700 (ada_decode_assert_location): Likewise.
3701 (catch_assert_command): Update.
3702 (catch_ada_exception_command): Update.
3703 (create_ada_exception_catchpoint): Make 'ops' const.
3704 * breakpoint.c (set_raw_breakpoint_without_location)
3705 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3706 const.
3707 (create_internal_breakpoint): Update.
3708 (init_raw_breakpoint_without_location): Make 'ops' const.
3709 (init_raw_breakpoint, init_catchpoint)
3710 (create_fork_vfork_event_catchpoint)
3711 (create_syscall_event_catchpoint, init_breakpoint_sal)
3712 (create_breakpoint_sal, create_breakpoints_sal)
3713 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3714 * breakpoint.h (struct breakpoint) <ops>: Now const.
3715 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3716 const.
3717
6cb9b55b
PP
37182011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3719
3720 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3721
d9b3f62e
PA
37222011-07-25 Pedro Alves <pedro@codesourcery.com>
3723
3724 * breakpoint.h (print_recreate_thread): Declare.
3725 (struct breakpoint): Move step_count, pass_count,
3726 number_on_target, static_trace_marker_id,
3727 static_trace_marker_id_idx ...
3728 (struct tracepoint): ... to this new struct.
3729 (get_tracepoint, get_tracepoint_by_number_on_target)
3730 (get_tracepoint_by_number): Change return type to struct
3731 tracepoint pointer.
3732 * breakpoint.c (is_tracepoint_type): New, factored out from
3733 is_tracepoint.
3734 (is_tracepoint): Adjust.
3735 (print_one_breakpoint_location): Cast to struct tracepoint as
3736 necessary, and adjust.
3737 (print_recreate_catch_fork, print_recreate_catch_vfork)
3738 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3739 print_recreate_thread.
3740 (init_breakpoint_sal): New, factored out from
3741 create_breakpoint_sal.
3742 (create_breakpoint_sal): Reimplement.
3743 (create_breakpoint): Allocate a struct tracecepoint if the caller
3744 wanted a tracepoint. Use init_breakpoint_sal and
3745 install_breakpoint.
3746 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3747 (print_recreate_masked_watchpoint)
3748 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3749 (tracepoint_print_one_detail): Adjust.
3750 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3751 Dump the pass count here.
3752 (update_static_tracepoint): Adjust.
3753 (addr_string_to_sals): Adjust.
3754 (create_tracepoint_from_upload): Adjust. Change return type to
3755 struct tracepoint pointer.
3756 (trace_pass_set_count): Change parameter type to struct tracepoint
3757 pointer, and adjust.
3758 (trace_pass_command): Adjust.
3759 (get_tracepoint, get_tracepoint_by_number_on_target)
3760 (get_tracepoint_by_number): Change return type to struct
3761 tracepoint pointer, and adjust.
3762 (print_recreate_thread): New, factored out from save_breakpoints.
3763 (save_breakpoints): Don't print thread and task and passcount
3764 recreation here.
3765 * remote.c (remote_download_tracepoint): Adjust.
3766 * tracepoint.c (trace_actions_command, validate_actionline)
3767 (start_tracing, tfind_1, trace_find_tracepoint_command)
3768 (trace_dump_command): Adjust.
3769 (find_matching_tracepoint): Change return type to struct
3770 tracepoint pointer, and adjust.
3771 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3772 (tfile_trace_find, tfile_fetch_registers): Adjust.
3773 * tracepoint.h (create_tracepoint_from_upload): Change return type
3774 to struct tracepoint pointer.
3775 * ada-lang.c (print_recreate_exception): Call
3776 print_recreate_thread.
3777 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3778
3a5c3e22
PA
37792011-07-25 Pedro Alves <pedro@codesourcery.com>
3780
3781 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3782 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3783 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3784 watchpoint_thread, watchpoint_triggered ...
3785 (struct watchpoint): ... to this new struct.
3786 (is_watchpoint): Declare.
3787 (install_breakpoint): Add new `internal' parameter.
3788 * breakpoint.c (is_watchpoint): Delete declaration.
3789 (set_breakpoint_condition): Handle watchpoints.
3790 (is_watchpoint): Make public.
3791 (watchpoint_in_thread_scope): Change parameter type to struct
3792 watchpoint.
3793 (watchpoint_del_at_next_stop): Change parameter type to struct
3794 watchpoint. Remove assertion. Adjust.
3795 (update_watchpoint): Ditto.
3796 (insert_breakpoints, breakpoint_init_inferior)
3797 (watchpoints_triggered, watchpoint_check)
3798 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3799 (bpstat_stop_status, print_one_breakpoint_location)
3800 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3801 to struct watchpoint as necessary, and adjust.
3802 (install_breakpoint): Add `internal' argument. If true, don't
3803 mention the new breakpoint. Use set_breakpoint_number.
3804 (create_fork_vfork_event_catchpoint)
3805 (create_syscall_event_catchpoint): Adjust.
3806 (dtor_watchpoint): New.
3807 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3808 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3809 (print_it_watchpoint, print_mention_watchpoint)
3810 (print_recreate_watchpoint, insert_masked_watchpoint)
3811 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3812 (print_one_detail_masked_watchpoint)
3813 (print_mention_masked_watchpoint)
3814 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3815 necessary, and adjust.
3816 (watch_command_1): Allocate and initialize a struct watchpoint
3817 instead of a struct breakpoint. Use install_breakpoint.
3818 (catch_exec_command_1): Adjust.
3819 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3820 fields.
3821 (delete_breakpoint, enable_breakpoint_disp)
3822 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3823 as necessary, and adjust.
3824 (initialize_breakpoint_ops): Install dtor_watchpoint as
3825 watchpoints' dtor method.
3826 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3827 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3828 to struct watchpoint as necessary, and adjust.
3829
2060206e
PA
38302011-07-25 Pedro Alves <pedro@codesourcery.com>
3831
3832 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3833 the the base class ops table.
3834 (catch_exception_breakpoint_ops)
3835 (catch_exception_unhandled_breakpoint_ops)
3836 (catch_assert_breakpoint_ops): Don't statically initialize.
3837 (initialize_ada_catchpoint_ops): New.
3838 (_initialize_ada_language): Call it.
3839 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3840 (bkpt_breakpoint_ops): Forward declare.
3841 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3842 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3843 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3844 (masked_watchpoint_breakpoint_ops)
3845 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3846 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3847 base class ops table.
3848 (null_re_set, null_check_status, null_works_in_software_mode)
3849 (null_resources_needed, null_print_one_detail): Delete.
3850 (bkpt_dtor): Rename to ...
3851 (base_breakpoint_dtor): ... this. Make static.
3852 (bkpt_allocate_location): Rename to ...
3853 (base_breakpoint_allocate_location): ... this. Make static.
3854 (base_breakpoint_re_set): New.
3855 (internal_error_pure_virtual_called): New.
3856 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3857 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3858 (base_breakpoint_works_in_software_mode)
3859 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3860 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3861 (base_breakpoint_print_recreate): New functions.
3862 (base_breakpoint_ops): New global.
3863 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3864 (bkpt_breakpoint_hit): Make static.
3865 (bkpt_check_status): Delete.
3866 (bkpt_resources_needed): Make static.
3867 (bkpt_works_in_software_mode): Delete.
3868 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3869 static.
3870 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3871 (momentary_breakpoint_ops): Don't statically initialize.
3872 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3873 Delete.
3874 (tracepoint_insert_location, tracepoint_remove_location)
3875 (tracepoint_check_status, tracepoint_works_in_software_mode)
3876 (tracepoint_print_it): Delete.
3877 (tracepoint_breakpoint_ops): Don't statically initialize.
3878 (initialize_breakpoint_ops): New.
3879 (_initialize_breakpoint): Call it.
3880 * breakpoint.h (null_re_set, null_works_in_software_mode)
3881 (null_resources_needed, null_check_status, null_print_one_detail):
3882 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3883 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3884 (bkpt_check_status, bkpt_resources_needed)
3885 (bkpt_works_in_software_mode, bkpt_print_it)
3886 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3887 Delete declarations.
3888 (initialize_breakpoint_ops): Declare.
3889
001c8c33
PA
38902011-07-25 Pedro Alves <pedro@codesourcery.com>
3891
3892 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3893 (momentary_bkpt_print_it): Simplify.
3894
06edf0c0
PA
38952011-07-25 Pedro Alves <pedro@codesourcery.com>
3896
3897 Split internal, momentary and user breakpoints breakpoint_ops
3898 tables.
3899
3900 * breakpoint.c (internal_breakpoint_ops)
3901 (momentary_breakpoint_ops): Forward declare.
3902 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3903 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3904 (create_overlay_event_breakpoint)
3905 (create_std_terminate_master_breakpoint)
3906 (create_exception_master_breakpoint): Create breakpoints with
3907 internal_breakpoint_ops vtable.
3908 (set_longjmp_breakpoint): Create momentary breakpoints with
3909 momentary_breakpoint_ops vtable, using
3910 momentary_breakpoint_from_master.
3911 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3912 (create_solib_event_breakpoint): Create breakpoints with
3913 internal_breakpoint_ops vtable.
3914 (set_momentary_breakpoint): Create breakpoints with
3915 momentary_breakpoint_ops vtable.
3916 (momentary_breakpoint_from_master): New, factored out from
3917 clone_momentary_breakpoint.
3918 (clone_momentary_breakpoint): Adjust.
3919 (watch_command_1): Create scope breakpoints with
3920 momentary_breakpoint_ops vtable.
3921 (bkpt_re_set): Remove handling of internal and momentary
3922 breakpoints.
3923 (bkpt_print_mention, bkpt_print_recreate): New.
3924 (bkpt_breakpoint_ops): Adjust.
3925 (internal_bkpt_re_set, internal_bkpt_check_status)
3926 (internal_bkpt_print_it, internal_bkpt_print_mention)
3927 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3928 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3929 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3930 (momentary_bkpt_print_recreate): New.
3931 (momentary_breakpoint_ops): New.
3932
348d480f
PA
39332011-07-25 Pedro Alves <pedro@codesourcery.com>
3934
3935 Implement most breakpoint_ops methods for all breakpoint types,
3936 and move the default handlings to the proper callbacks.
3937
3938 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3939 works_in_software_mode method.
3940 (insert_bp_location): Go through breakpoint_ops->insert_location
3941 for software and hardware watchpoints.
3942 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3943 breakpoint_ops.
3944 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3945 for software and hardware watchpoints.
3946 (print_it_typical): Delete.
3947 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3948 method.
3949 (watchpoint_check): Adjust comment.
3950 (bpstat_check_location): Simply always call the breakpoint's
3951 breakpoint_hit method.
3952 (bpstat_stop_status): Always call the breakpoint's check_status
3953 method. Remove special cases for watchpoints and internal event
3954 breakpoints from here (moved to the check_status implementations).
3955 (print_one_breakpoint_location): Assume b->ops is never NULL.
3956 Remove static tracepoint marker id printing from here (moved to
3957 the print_one_detail callback implementation of tracepoints).
3958 (init_bp_location): Assert OPS is never NULL.
3959 (allocate_bp_location): Always call the breakpoint's
3960 allocate_location method, and remove the default code from here.
3961 (free_bp_location): Always call the location's dtor method, and
3962 remove the default code from here.
3963 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3964 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3965 parameter. Pass it down.
3966 (set_raw_breakpoint): Ditto.
3967 (print_it_catch_fork): Adjust to take a bpstat as argument.
3968 (catch_fork_breakpoint_ops): Install methods.
3969 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3970 (catch_vfork_breakpoint_ops): Install methods.
3971 (dtor_catch_syscall): Call the base dtor.
3972 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3973 (catch_syscall_breakpoint_ops): Install methods.
3974 (dtor_catch_exec): Call the base dtor.
3975 (print_it_catch_exec): Adjust to take a bpstat as argument.
3976 (catch_exec_breakpoint_ops): Install methods.
3977 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3978 the breakpoint's resources_needed method, and remove the default
3979 code from here.
3980 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3981 breakpoint_ops.
3982 (clone_momentary_breakpoint): Clone the original's ops.
3983 (mention): Always call the breakpoint's print_mention method, and
3984 remove the default code from here.
3985 (create_breakpoint_sal): Adjust to pass the ops to
3986 set_raw_breakpoint rather than setting it manually.
3987 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3988 ops to set_raw_breakpoint_without_location rather than setting it
3989 manually.
3990 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3991 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3992 (ranged_breakpoint_ops): Install methods.
3993 (break_range_command): Adjust to pass the ops to
3994 set_raw_breakpoint rather than setting it manually.
3995 (re_set_watchpoint, breakpoint_hit_watchpoint)
3996 (check_status_watchpoint, resources_needed_watchpoint)
3997 (works_in_software_mode_watchpoint, print_it_watchpoint)
3998 (print_mention_watchpoint, print_recreate_watchpoint): New
3999 functions.
4000 (watchpoint_breakpoint_ops): Install new methods.
4001 (print_it_masked_watchpoint): New function.
4002 (masked_watchpoint_breakpoint_ops): Install new methods.
4003 (watch_command_1): Adjust to pass the right breakpoint_ops to
4004 set_raw_breakpoint_without_location rather than setting it
4005 manually later. Record the current pspace.
4006 (print_it_exception_catchpoint): Adjust to take a bpstat as
4007 argument.
4008 (gnu_v3_exception_catchpoint_ops): Install new methods.
4009 (say_where): New function.
4010 (null_re_set, null_check_status, null_works_in_software_mode)
4011 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4012 New functions.
4013 (bp_location_ops): New global.
4014 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4015 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4016 (bkpt_check_status, bkpt_resources_needed)
4017 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4018 (bkpt_print_recreate): New functions.
4019 (bkpt_breakpoint_ops): New global.
4020 (tracepoint_re_set, tracepoint_insert_location)
4021 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4022 (tracepoint_check_status, tracepoint_works_in_software_mode)
4023 (tracepoint_print_it, tracepoint_print_one_detail)
4024 (tracepoint_print_mention, tracepoint_print_recreate): New
4025 functions.
4026 (tracepoint_breakpoint_ops): New global.
4027 (delete_breakpoint): Always call the breakpoint's dtor method, and
4028 remove the default handling from here.
4029 (breakpoint_re_set_default): Make static.
4030 (breakpoint_re_set_one): Always call the breakpoints re_set
4031 method, and remove the default handling from here.
4032 (trace_command, ftrace_command, strace_command)
4033 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4034 to create_breakpoint.
4035 (save_breakpoints): Always call the breakpoint's print_recreate
4036 method, and remove the default handling from here.
4037
4038 * ada-lang.c (dtor_exception): Call the base dtor.
4039 (re_set_exception): Call the base method.
4040 (print_it_exception, print_it_catch_exception): Adjust to take a
4041 bpstat as argument.
4042 (catch_exception_breakpoint_ops): Install methods.
4043 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4044 argument.
4045 (catch_exception_unhandled_breakpoint_ops): Install methods.
4046 (print_it_catch_assert): Adjust to take a bpstat as argument.
4047 (catch_assert_breakpoint_ops): Install methods.
4048
4049 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4050 to take a bpstat as argument.
4051 (enum print_stop_action): Add describing comments to each enum
4052 value.
4053 (breakpoint_re_set_default): Delete declaration.
4054 (null_re_set, null_works_in_software_mode, null_resources_needed)
4055 (null_check_status, null_print_one_detail): Declare.
4056 (bkpt_breakpoint_ops): Declare.
4057 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4058 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4059 (bkpt_check_status, bkpt_resources_needed)
4060 (bkpt_works_in_software_mode, bkpt_print_it)
4061 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4062 Declare.
4063
4064 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4065 bkpt_breakpoint_ops.
4066 * python/py-breakpoint.c (bppy_init): Ditto.
4067
be8f8133
PW
40682011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4069
4070 * MAINTAINERS (Write After Approval): Add myself to the list.
4071
3807f613
PP
40722011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4073
4074 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4075
1ced966e
PA
40762011-07-22 Pedro Alves <pedro@codesourcery.com>
4077
4078 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4079 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4080 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4081 adjust.
4082 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4083 (struct i386_debug_reg_state): New.
4084 (i386_init_dregs): New.
4085 (dr_mirror): New.
4086 (i386_cleanup_dregs): Use i386_init_dregs.
4087 (i386_show_dr): Add state parameter and adjust.
4088 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4089 the inferior here.
4090 (i386_remove_aligned_watchpoint): Likewise.
4091 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4092 (i386_update_inferior_debug_regs): New.
4093 (i386_insert_watchpoint): Work on a local mirror of the debug
4094 registers, and only update the inferior on success.
4095 (i386_remove_watchpoint): Ditto.
4096 (i386_region_ok_for_watchpoint): Adjust.
4097 (i386_stopped_data_address): Adjust.
4098 (i386_insert_hw_breakpoint): Adjust.
4099 (i386_remove_hw_breakpoint): Adjust.
4100
3543a589
TT
41012011-07-22 Tom Tromey <tromey@redhat.com>
4102
4103 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4104 from amd64_pseudo_register_read. Change arguments. Call
4105 mark_value_bytes_unavailable when needed.
4106 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4107 set_gdbarch_pseudo_register_read.
4108 * sentinel-frame.c (sentinel_frame_prev_register): Use
4109 regcache_cooked_read_value.
4110 * regcache.h (regcache_cooked_read_value): Declare.
4111 * regcache.c (regcache_cooked_read_value): New function.
4112 (regcache_cooked_read): Call
4113 gdbarch_pseudo_register_read_value if available.
4114 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4115 (i386_pseudo_register_read): Remove.
4116 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4117 i386_pseudo_register_read. Change arguments. Call
4118 mark_value_bytes_unavailable when needed.
4119 (i386_pseudo_register_read_value): New function.
4120 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4121 not set_gdbarch_pseudo_register_read.
4122 * gdbarch.sh (pseudo_register_read_value): New method.
4123 * gdbarch.c, gdbarch.h: Rebuild.
4124 * findvar.c (value_from_register): Call get_frame_register_value.
4125
95298e72
PM
41262011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4127
4128 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4129 get_prefix.
4130 (display_gdb_prompt): Likewise.
4131 (change_annotation_level): Likewise.
4132 (push_prompt): Likewise.
4133 (pop_prompt): Likewise.
4134 (handle_stop_sig): Use get_prompt with a level.
4135 * top.c (command_loop): Use get_prompt with a level.
4136 (set_async_annotation_level): Use set_prompt with a level.
4137 (get_prefix): New function.
4138 (set_prefix): Ditto.
4139 (set_suffix): Ditto.
4140 (get_suffix): Ditto.
4141 (get_prompt): Accept a level argument.
4142 (set_prompt): Accept a level argument. Free old prompts. Set
4143 new_async_prompt if level is 0.
4144 (init_main): Use set_prompt with a level. Do not set
4145 new_async_prompt.
4146 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4147 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4148 Modify set_prompt, get_prompt to account for levels.
4149 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4150 level.
4151 * python/python.c (before_prompt_hook): Use set_prompt.
4152
d26e3629
KY
41532011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4154
4155 * defs.h: Add guard against inclusion in gdbserver.
4156 (struct ptid, ptid_t): Move to common/ptid.h.
4157 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4158 xsnprintf, internal_error): Move to common/common-utils.h.
4159 (nomem): Delete.
4160 * gdb_assert.h: Move into common/ sub-directory.
4161 * gdb_locale.h: Ditto.
4162 * gdb_dirent.h: Ditto.
4163 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4164 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4165 Move into common/ptid.h.
4166 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4167 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4168 Change nomem to malloc_failure.
4169 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4170 * utils.c (nomem): Rename to malloc_failure.
4171 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4172 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4173 (gdb_buildargv): Change nomem to malloc_failure.
4174 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4175 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4176 ptid_is_pid): Move into common/ptid.c.
4177 (initialize_infrun): Delete initialization of null_ptid and
4178 minus_one_ptid.
4179 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4180 linux_common_xfer_osdata.
4181 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4182 common/ptid.c and common/buffer.c.
4183 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4184 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4185 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4186 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4187 rules.
4188 * common/gdb_assert.h: New.
4189 * common/gdb_dirent.h: New.
4190 * common/gdb_locale.h: New.
4191 * common/buffer.c: New.
4192 * common/buffer.h: New.
4193 * common/ptid.c: New.
4194 * common/ptid.h: New.
4195 * common/xml-utils.c: New.
4196 * common/xml-utils.h: New.
4197 * common/common-utils.c: New.
4198 * common/common-utils.h: New.
4199 * common/linux-osdata.c: New.
4200 * common/linux-osdata.h: New.
4201 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4202 * config/arm/linux.mh (NATDEPFILES): Ditto.
4203 * config/i386/linux.mh (NATDEPFILES): Ditto.
4204 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4205 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4206 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4207 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4208 * config/mips/linux.mh (NATDEPFILES): Ditto.
4209 * config/pa/linux.mh (NATDEPFILES): Ditto.
4210 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4211 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4212 * config/s390/s390.mh (NATDEPFILES): Ditto.
4213 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4214 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4215 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4216
edc84990 42172011-07-21 Matt Rice <ratmice@gmail.com>
4218
4219 * NEWS: Add info macros and info definitions commands.
4220
3a7bf607
PM
42212011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4222
4223 * NEWS: Document Python prompt substitution hook.
4224
9b158ba0 42252011-07-18 Matt Rice <ratmice@gmail.com>
4226
4227 PR macros/12999
4228 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4229 * macrotab.c (foreach_macro): Ditto.
4230 (foreach_macro_in_scope): Ditto.
4231 * macrocmd.c (print_macro_callback): New function.
4232 (info_macro_command): Move some code to print_macro_definition.
4233 (print_macro_definition): New function.
4234 (print_one_macro): Add new arguments to callback.
4235 (info_definitions_command): New function.
4236 (info_macros_command): Ditto.
4237 (_initialize_macrocmd): Add info macros and info definitions commands.
4238 * symtab.c (add_macro_name): Add new arguments to callback.
4239
d17b6f81
PM
42402011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4241 Tom Tromey <tromey@redhat.com>
4242
4243 * top.c (set_prompt): Rewrite to free previous prompt, free
4244 asynch_new_prompt and set both on new prompts.
4245 * event-top.c (display_gdb_prompt): Add prompt substitution
4246 logic.
4247 * python/python.c (before_prompt_hook): New function.
4248
1364323a 42492011-07-20 Matt Rice <ratmice@gmail.com>
4250
4251 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4252 arguments to store_unsigned_integer.
4253
8b70b953
TT
42542011-07-20 Tom Tromey <tromey@redhat.com>
4255
6c83ed52
TT
4256 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4257 in some declaration-only cases.
4258
42592011-07-18 Tom Tromey <tromey@redhat.com>
4260
8b70b953
TT
4261 PR symtab/12984:
4262 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4263 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4264 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4265 <debug_type_section>: New field.
4266 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4267 (load_cu): Use appropriate section.
4268 (create_signatured_type_table_from_index): Add 'section'
4269 argument.
4270 (dwarf2_read_index): Only allow a single .debug_types section.
4271 (dw2_get_file_names): Use appropriate section.
4272 (read_type_comp_unit_head): Add 'section' argument.
4273 (create_debug_types_hash_table): Loop over all .debug_types
4274 sections.
4275 (init_cu_die_reader): Use appropriate section.
4276 (process_psymtab_comp_unit, load_partial_comp_unit)
4277 (load_full_comp_unit, read_die_and_children, find_partial_die)
4278 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4279 (lookup_signatured_type_at_offset): Add 'section' argument.
4280 (read_signatured_type_at_offset): Add 'sect' argument.
4281 (read_signatured_type): Use appropriate section.
4282 (set_die_type, get_die_type_at_offset): Update.
4283 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4284 VEC.
4285 (write_psymtabs_to_index): Don't allow index with more than one
4286 .debug_types section.
4287
918dd910
JK
42882011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4289
4290 Fix crash if referenced CU is aged out.
4291 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4292 xfree of block.data.
4293 (indirect_pieced_value): New variable back_to, use to for xfree of
4294 baton.data.
4295 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4296 block.data.
4297 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4298 (load_cu): New function from ...
4299 (dw2_do_instantiate_symtab): ... the code here ...
4300 (process_full_comp_unit): ... and here.
4301 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4302 retval.data.
4303
0e37a63c
JK
43042011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4305
4306 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4307 type.
4308
7e324e48
GB
43092011-07-19 Gary Benson <gbenson@redhat.com>
4310
4311 * infrun.c (struct execution_control_state): New member
4312 stop_func_filled_in.
4313 (clear_stop_func, fill_in_stop_func): New functions.
4314 (handle_inferior_event): Call clear_stop_func rather than
4315 manipulating the execution control state directly.
4316 Call fill_in_stop_func lazily as required rather than
4317 directly calling find_pc_partial_function in all cases.
4318
d48323d8
TT
43192011-07-18 Tom Tromey <tromey@redhat.com>
4320
4321 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4322 checking for variable-sized array.
4323
40591b7d
JCD
43242011-07-18 Jean-Charles Delay <delay@adacore.com>
4325
4326 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4327 of supported languages.
4328 * varobj.c: Add top definitions and basic implementation of the
4329 following callbacks: ada_number_of_children, ada_name_of_variable,
4330 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4331 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4332 (languages): Register Ada-specific callbacks.
4333 (variable_language): Add the Ada case in the language setter switch.
4334
2e424e08
JK
43352011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4336
4337 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4338
9e8b7a03
JK
43392011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
4341 Code cleanup.
4342 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4343 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4344 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4345 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4346 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4347 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4348 (struct dwarf_expr_context_funcs): New, move here methods from ...
4349 (struct dwarf_expr_context): ... here. New fields funcs.
4350 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4351 (dwarf_expr_ctx_funcs): New.
4352 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4353 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4354 (needs_frame_ctx_funcs): New.
4355 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4356
2b1260ab
FM
43572011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4358
4359 * MAINTAINERS (Write After Approval): Add myself to the list.
4360
8bd90839
FM
43612011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4362
4363 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4364 that CIE pointer of an FDE really points to a CIE .
4365
953b98d1
HZ
43662011-07-15 Hui Zhu <teawater@gmail.com>
4367
4368 * remote.c (remote_get_trace_status): Add comments.
4369
c8f2448a
JK
43702011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4371
4372 Code cleanup - constify struct lval_funcs.
4373 * dwarf2loc.c (pieced_value_funcs): Make it const.
4374 * infrun.c (siginfo_value_funcs): Likewise.
4375 * opencl-lang.c (opencl_value_funcs): Likewise.
4376 * valops.c (value_assign, value_ind): Make the funcs variable const.
4377 * value.c (struct value): Make location.computed.funcs target const.
4378 Rearrange the comments.
4379 (allocate_computed_value): Make the funcs parameter target const.
4380 (value_computed_funcs): Return the funcs target const.
4381 (value_free, value_copy, set_value_component_location): Make the funcs
4382 variable const.
4383 * value.h (allocate_computed_value): Make the funcs parameter target
4384 const.
4385 (value_computed_funcs): Return the funcs target const.
4386 * windows-tdep.c (tlb_value_funcs): Make it const.
4387
f652de6f
HZ
43882011-07-14 Hui Zhu <teawater@gmail.com>
4389
4390 * remote.c (remote_get_trace_status): Initialize p.
4391
67f41397
JK
43922011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4393
4394 Work around kgdb.
4395 * remote.c (remote_get_trace_status): New variable ex. Put
4396 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4397
d1b66e6d
TT
43982011-07-13 Tom Tromey <tromey@redhat.com>
4399
4400 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4401 value_from_contents for final conversion.
4402
1632a688
JK
44032011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4404
4405 Code cleanup.
4406 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4407 Indent prototypes so they do not get into tags.
4408
a7035dbb
JK
44092011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4410
4411 Code cleanup making also optimized out values lazy.
4412 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4413 allocate_optimized_out_value. Twice.
4414 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4415 * findvar.c (read_var_value): Likewise.
4416 * value.c (allocate_optimized_out_value): New function.
4417 * value.h (allocate_optimized_out_value): New declaration.
4418
d07ed419
JK
44192011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 Fix occasional crash of CTRL-C during DWARF read in.
4422 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4423
86d31898
TT
44242011-07-11 Tom Tromey <tromey@redhat.com>
4425
4426 * regcache.c (struct regcache_descr): Fix typo.
4427 * i387-tdep.c (i387_supply_xsave): Fix typo.
4428
2ab95328
TT
44292011-07-11 Tom Tromey <tromey@redhat.com>
4430
4431 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4432 (read_file_scope, read_type_unit_scope): Use it.
4433
04ad99e6
JK
44342011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4437 `int'.
4438
713389e0
PM
44392011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4440
4441 PR python/12438
4442 * python/python.c: Set gdbpy_should_print_stack default to off.
4443 (set_python): Deprecate maint set python print-stack to
4444 class_deprecate.
4445 (_initialize_python): Deprecate maint set/show python print-stack.
4446 Add new prefix command, python. Add new setting, print-backtrace.
4447 * NEWS: Document set python print-stack. Document default change.
4448
754eadd1
PM
44492011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4450
4451 * python/py-inferior.c (infpy_dealloc): New function.
4452 (inferior_to_inferior_object): Return a new object, or a
4453 new reference to the existing object.
4454 (find_thread_object): Cleanup references to inferior.
4455 (delete_thread_object): Ditto.
4456 * python/py-infthread.c (create_thread_object): Do not increment
4457 inferior reference count.
4458
5e44ecb3
TT
44592011-07-08 Tom Tromey <tromey@redhat.com>
4460
4461 * dwarf2loc.c (locexpr_regname): New function.
4462 (locexpr_describe_location_piece): Use it.
4463 (disassemble_dwarf_expression): Add per_cu argument. Use
4464 locexpr_regname.
4465 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4466 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4467 New cases.
4468 (locexpr_describe_location_1): Add per_cu argument.
4469 (locexpr_describe_location): Update.
4470 (loclist_describe_location): Update.
4471
e0e9434c
TT
44722011-07-08 Tom Tromey <tromey@redhat.com>
4473
4474 * dwarf2expr.c (execute_stack_op): Add QUIT.
4475
26afc0d7
HZ
44762011-07-07 Hui Zhu <teawater@gmail.com>
4477
4478 Revert:
4479 2011-07-06 Hui Zhu <teawater@gmail.com>
4480 * remote.c (remote_start_remote): Add TRY_CATCH for
4481 remote_get_trace_status.
4482 * tracepoint.c (disconnect_tracing): Ditto.
4483
a40a111f
AB
44842011-07-07 Andrew Burgess <aburgess@broadcom.com>
4485
4486 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4487 variables as signed, not unsigned.
4488
e2bd3b15
JB
44892011-07-06 Joel Brobecker <brobecker@adacore.com>
4490
4491 * jit.c (jit_inferior_init): Reformat forward declaration.
4492
e3d961fe 44932011-07-06 Matt Rice <ratmice@gmail.com>
4494
4495 * MAINTAINERS (Write After Approval): Add myself to the list.
4496
0f3428f0
HZ
44972011-07-06 Hui Zhu <teawater@gmail.com>
4498
4499 * remote.c (remote_start_remote): Add TRY_CATCH for
4500 remote_get_trace_status.
4501 * tracepoint.c (disconnect_tracing): Ditto.
4502
fc9f3a69
TT
45032011-07-05 Tom Tromey <tromey@redhat.com>
4504
4505 * symtab.c (operator_chars): Now static.
4506 * linespec.c (operator_chars): Don't declare.
4507
26e519b9
TJB
45082011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4509
4510 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4511
eb2a6f42
TT
45122011-07-05 Tom Tromey <tromey@redhat.com>
4513
4514 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4515 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4516 (TYPE_CPLUS_REALLY_JAVA): New macro.
4517 * dwarf2read.c (process_structure_scope): Set
4518 TYPE_CPLUS_REALLY_JAVA.
4519
21083d0f 45202011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4521
4522 * ada-lang.c: Fix typos.
4523 * amd64-tdep.c: Likewise.
4524 * breakpoint.c: Likewise.
4525 * cli/cli-decode.c: Likewise.
4526 * findcmd.c: Likewise.
4527 * inline-frame.c: Likewise.
4528 * mi/mi-main.c: Likewise.
4529 * minsyms.c: Likewise.
4530 * monitor.c: Likewise.
4531 * monitor.h: Likewise.
4532 * prologue-value.c: Likewise.
4533 * reverse.c: Likewise.
4534 * s390-tdep.c: Likewise.
4535
3b2a0cf2
JB
45362011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4537
4538 * jit.c (jit_inferior_init): Forward declare.
4539 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4540
efae1d92
JB
45412011-07-04 Joel Brobecker <brobecker@adacore.com>
4542
4543 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4544
6040a59d
JB
45452011-07-04 Tristan Gingold <gingold@adacore.com>
4546
4547 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4548 (tcb_fieldno): Add activation_link field.
4549 (get_known_tasks_addr): Moved and rewritten.
4550 (get_tcb_types_info): Set activation_link field.
4551 (read_known_tasks_array): Add parameter. Rewritten.
4552 (read_known_tasks_list): New function.
4553 (read_known_tasks): New function.
4554 (ada_build_task_list): Call read_known_tasks instead of
4555 read_known_tasks_array.
4556 * ravenscar-thread.c: Add first_task_name constant.
4557 (has_ravenscar_runtime): Check for task list too.
4558
cb741e45
JB
45592011-07-04 Tristan Gingold <gingold@adacore.com>
4560
4561 * ada-tasks.c: Renames fieldno to actb_fieldno.
4562 (ada_get_task_number): Indentation.
4563 (get_tcb_types_info): Remove all parameters. Write directly
4564 the globals.
4565 (ptid_from_atcb_common): Adjust.
4566 (read_atcb): Adjust.
4567
7475b06c
TJB
45682011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4569
4570 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4571
15230f37
TJB
45722011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4573
4574 * ui-out.c (ui_out_field_core_addr): Mention that the function
4575 description is in the header file.
4576 * ui-out.h (ui_out_field_core_addr): Document function.
4577
65743aba
TJB
45782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4579
4580 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4581 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4582
c37a5aab
TJB
45832011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4584
4585 * symtab.c (expand_line_sal): Remove empty line.
4586
59adf69e
TS
45872011-07-04 Thomas Schwinge <thomas@schwinge.name>
4588
4589 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4590 same way as ELFOSABI_NONE.
4591 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4592
e5dd4106
TJB
45932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4594
4595 * breakpoint.c: Fix typos in comments.
4596 * linespec.c: Likewise.
4597 * symtab.c: Likewise.
4598
d40102a1
JB
45992011-07-04 Joel Brobecker <brobecker@adacore.com>
4600
4601 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4602 section in separate object files.
4603
2f741504
JK
46042011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4605
4606 Fix false GCC warning.
4607 * linespec.c (decode_line_1): Initialize values.
4608
418c7cf7
JK
46092011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4610
4611 * linespec.c (find_method): Accept the function type automatically only
4612 if it was specified with parameter types.
4613
3d50dd94
JK
46142011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4615
4616 Stop on first linespec terminator instead of eating what we can.
4617 * linespec.c (is_linespec_boundary): New function.
4618 (name_end): Remove function.
4619 (keep_name_info): New parameter on_boundary, replace the body.
4620 (decode_line_1): Provide the parameter to keep_name_info.
4621 (decode_compound): Likewise. Drop the trailing java return type
4622 handling. Twice.
4623
dcf9f4ab
JK
46242011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 Fall back linespec to minimal symbols.
4627 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4628 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4629 (find_method, symbol_found): Change error to cplusplus_error.
4630
3f542ed1
JK
46312011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4632
bc68c4e5 4633 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4634
900e11f9
JK
46352011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 Tom Tromey <tromey@redhat.com>
4637
4638 * dwarf2read.c (check_physname): New variable.
4639 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4640 (show_check_physname): New function.
4641 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4642
2301925d
JB
46432011-07-01 Joel Brobecker <brobecker@adacore.com>
4644
4645 * machoread.c (macho_symfile_read): Delete OBE comment.
4646
38947cca
JB
46472011-07-01 Joel Brobecker <brobecker@adacore.com>
4648
4649 * machoread.c (struct macho_oso_data): Delete.
4650 (current_oso): Delete.
4651 (macho_relocate_common_syms): New function, mostly extracted
4652 out of
4653 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4654 Remove code that sets and unset current_oso.
4655 (macho_symfile_relocate): Delete handling of common symbols,
4656 now moved to macho_relocate_common_syms.
4657
a7aa0d73
JB
46582011-07-01 Joel Brobecker <brobecker@adacore.com>
4659
4660 * darwin-nat.c (darwin_ptrace): Add documentation.
4661 Set errno to zero before calling ptrace. If ptrace returns
4662 -1 and errno is zero, then change then return zero.
4663 (darwin_kill_inferior): Issue a warning instead of triggering
4664 a failed assertion when the PT_KILL ptrace operations returned
4665 nonzero.
4666
5e9bc145
JB
46672011-07-01 Joel Brobecker <brobecker@adacore.com>
4668
4669 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4670 only when inf->private->no_ptrace.
4671
00eb2c4a
JB
46722011-07-01 Joel Brobecker <brobecker@adacore.com>
4673
4674 * ada-lang.c (print_it_exception): Print temporary catchpoints
4675 as "Temporary catchpoint".
4676 (print_mention_exception): Likewise.
4677
127c81bc
TT
46782011-07-01 Tom Tromey <tromey@redhat.com>
4679
4680 * jv-lang.c (java_language_defn): Use java_printchar,
4681 java_printstr.
4682 (java_get_encoding): New function.
4683 (java_emit_char): Use generic_emit_char.
4684 (java_printchar): New function.
4685 (java_printstr): Likewise.
4686
25552254
JB
46872011-07-01 Joel Brobecker <brobecker@adacore.com>
4688
4689 * ada-typeprint.c (print_record_type): If unable to decode
4690 the name of the parent type, use the encoded name.
4691
d2d43431
JB
46922011-07-01 Jean-Charles Delay <delay@adacore.com>
4693
4694 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4695 pointer to constrained packed array type output.
4696 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4697 packed array output.
4698
54ae186f
JB
46992011-07-01 Jean-Charles Delay <delay@adacore.com>
4700
4701 * ada-typeprint.c (print_array_type): removed if condition on show
4702 being negative for bounds printing.
4703
8f17729f
JB
47042011-07-01 Joel Brobecker <brobecker@adacore.com>
4705
4706 * ada-lang.c (ada_identical_enum_types_p): New function.
4707 (symbols_are_identical_enums): New function.
4708 (remove_extra_symbols): Do nothing if NSYMS < 2.
4709 Use symbols_are_identical_enums.
4710
f5aa6869
JB
47112011-07-01 Joel Brobecker <brobecker@adacore.com>
4712
4713 * ada-valprint.c (ada_value_print): Handle typedefs.
4714
8f465ea7
JB
47152011-07-01 Joel Brobecker <brobecker@adacore.com>
4716
4717 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4718
828292f2
JB
47192011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4720
4721 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4722 (decode_constrained_packed_array): Likewise.
4723 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4724
18920c42
JB
47252011-07-01 Joel Brobecker <brobecker@adacore.com>
4726
4727 * ada-exp.y (convert_char_literal): Handle typedef types.
4728
c90092fe
JB
47292011-07-01 Joel Brobecker <brobecker@adacore.com>
4730
4731 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4732
f748fb40
TT
47332011-06-30 Tom Tromey <tromey@redhat.com>
4734
4735 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4736 * valops.c (find_overload_match): Call do_cleanups on early exit
4737 path.
4738 * solib.c (solib_find): Call do_cleanups on early exit path.
4739
3bb47e8b
TT
47402011-06-30 Tom Tromey <tromey@redhat.com>
4741
4742 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4743 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4744 return paths. Defer final do_cleanups until last return.
4745 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4746 early return.
4747
4727bad3
TT
47482011-06-30 Tom Tromey <tromey@redhat.com>
4749
4750 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4751
bb361dbf
AB
47522011-06-30 Andrew Burgess <aburgess@broadcom.com>
4753
4754 * MAINTAINERS (Write After Approval): Add myself to the list.
4755
e0d00bc7
JK
47562011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4757
4758 Disable epilogue unwinders on recent GCCs.
4759 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4760 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4761 * dwarf2read.c (process_full_comp_unit): Initialize
4762 EPILOGUE_UNWIND_VALID.
4763 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4764 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4765 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4766
4632c0d0
JK
47672011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Code cleanup - reformatting.
4770 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4771 (producer_is_gcc_ge_4): ... here, change the return value.
4772 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4773 interpretation.
4774
32019081
JK
47752011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4776
4777 Fix non-only rename list for Fortran modules import.
4778 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4779 cp_add_using_directive caller.
4780 (cp_add_using_directive): New parameter excludes, describe it. New
4781 variables ix and param. Compare if also excludes match. Allocate NEW
4782 with variable size, initialize EXCLUDES there.
4783 (cp_lookup_symbol_imports): New variable excludep, test
4784 current->EXCLUDES with it.
4785 * cp-support.h: Include vec.h.
4786 (struct using_direct): New field excludes, describe it.
4787 (DEF_VEC_P (const_char_ptr)): New.
4788 (cp_add_using_directive): New parameter excludes.
4789 * defs.h (const_char_ptr): New typedef.
4790 * dwarf2read.c (read_import_statement): New variables child_die,
4791 excludes and cleanups, read in excludes.
4792 (read_namespace): Adjust the cp_add_using_directive caller.
4793
70c622a3
JK
47942011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4795
4796 Code cleanup.
4797 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4798 negative comparisons.
4799
39c4d40a
TT
48002011-06-29 André Pönitz <andre.poenitz@nokia.com>
4801
4802 * mi/mi-main.c (mi_cmd_list_features): Emit
4803 breakpoint-notifications.
4804
3b2b8fea
TT
48052011-06-29 Tom Tromey <tromey@redhat.com>
4806
4807 PR fortran/10036:
4808 * valprint.h (generic_emit_char, generic_printstr): Declare.
4809 * valprint.c (wchar_printable, append_string_as_wide)
4810 (print_wchar): Move from c-lang.c.
4811 (generic_emit_char): New function; mostly taken from c_emit_char.
4812 (generic_printstr): New function; mostly taken from c_printstr.
4813 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4814 represented as arrays.
4815 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4816 type.
4817 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4818 identically to TYPE_CODE_INT.
4819 * f-lang.c (f_get_encoding): New function.
4820 (f_emit_char): Use generic_emit_char.
4821 (f_printchar): Replace comment.
4822 (f_printstr): Use generic_printstr.
4823 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4824 "character" types specially.
4825 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4826 for Fortran.
4827 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4828 Move to valprint.c
4829 (c_emit_char): Call generic_emit_char.
4830 (c_printstr): Call generic_printstr.
4831
168e6d44
GB
48322011-06-29 Gary Benson <gbenson@redhat.com>
4833
4834 * breakpoint.c (bpstat_what): Removed duplicated case.
4835
1c033f8c
TT
48362011-06-28 Tom Tromey <tromey@redhat.com>
4837
4838 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4839
5fe41fbf
TT
48402011-06-27 Tom Tromey <tromey@redhat.com>
4841
4842 * valops.c (find_overload_match): Call do_cleanups before early
4843 return.
4844 * top.c (execute_command): Call do_cleanups before early return.
4845 (command_loop): Likewise.
4846 * stack.c (backtrace_command): Make a null cleanup early. Don't
4847 conditionally call do_cleanups.
4848 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4849 TRY_CATCH.
4850 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4851 so cleanups are always run.
4852 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4853 * findcmd.c (parse_find_args): Call do_cleanups on early return
4854 path.
4855 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4856 Don't conditionally call do_cleanups.
4857 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4858 later.
4859
e26bd57d
EB
48602011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4861
4862 * MAINTAINERS (Write After Approval): Use default email address.
4863
6c3097fc
JB
48642011-06-27 Joel Brobecker <brobecker@adacore.com>
4865
4866 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4867
369c397b
JB
48682011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4869
4870 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4871 saved_regs_mask and copied_regs_mask fields.
4872 (sparc_record_save_insn): New prototype.
4873 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4874 (sparc_record_save_insn): New function.
4875 (sparc_analyze_prologue): Add head comment. Recognize store insns
4876 of call-saved registers. Use OFFSET consistently. Recognize flat
4877 frames and cache their settings.
4878 (sparc32_skip_prologue): Handle flat frames.
4879 (sparc_frame_cache): Add frame_offset to the base address.
4880 (sparc32_frame_cache): Adjust to new frame description.
4881 (sparc32_frame_prev_register): Likewise.
4882 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4883 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4884 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4885 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4886 frame by calling sparc_record_save_insn.
4887 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4888 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4889 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4890
b315ab21
TG
48912011-06-27 Tristan Gingold <gingold@adacore.com>
4892
4893 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4894 field by map_addr and map_len.
4895 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4896 (munmap_section_buffer): Likewise.
4897
ddd49eee
TT
48982011-06-24 Tom Tromey <tromey@redhat.com>
4899
4900 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4901 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4902 * python/python.c (gdbpy_parameter): Make 'arg' const.
4903 (execute_gdb_command): Likewise.
4904 (gdbpy_decode_line): Likewise. Copy it.
4905 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4906 (gdbpy_write): Make 'arg' const.
4907 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4908 const.
4909 (gdbpy_lookup_type): Likewise.
4910 * python/py-prettyprint.c (print_children): Make 'name' const.
4911 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4912 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4913 Py_ssize_t.
4914 * python/py-function.c (fnpy_init): Make 'name' const.
4915 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4916 (gdbpy_string_to_argv): Make 'input' const.
4917 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4918 it.
4919 * gdbtypes.h (lookup_typename): Update.
4920 * gdbtypes.c (lookup_typename): Make 'name' const.
4921 (lookup_struct): Likewise.
4922 (lookup_union): Likewise.
4923 (lookup_enum): Likewise.
4924
5998129b
TT
49252011-06-24 Tom Tromey <tromey@redhat.com>
4926
4927 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4928 gdb_thread_db.h. Move all common/ entries to be together.
4929 (TAGS): Don't depend on DEPFILES.
4930
6e586cc5
YQ
49312011-06-23 Yao Qi <yao@codesourcery.com>
4932
4933 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4934 * remote.c (remote_start_remote): ... here.
4935 * monitor.c (monitor_open): ... here.
4936
86c3c1fc
AB
49372011-06-23 Andrew Burgess <aburgess@broadcom.com>
4938
4939 * gdbtypes.c (append_composite_type_field_aligned): Fix
4940 calculation of bit position based on alignment.
4941
28010a5d
PA
49422011-06-22 Pedro Alves <pedro@codesourcery.com>
4943
4944 * breakpoint.c (bpstat_stop_status): Call the check_status
4945 breakpoint_ops method.
4946 (print_one_breakpoint_location): Also print the condition for Ada
4947 exception catchpoints.
4948 (allocate_bp_location): New, factored out from
4949 allocate_bp_location.
4950 (allocate_bp_location): Adjust. Call the owner breakpoint's
4951 allocate_location method, if there is one.
4952 (free_bp_location): Call the locations's dtor method, if there is
4953 one.
4954 (init_raw_breakpoint_without_location): New breakpoint_ops
4955 parameter. Use it.
4956 (set_raw_breakpoint_without_location): Adjust.
4957 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4958 (set_raw_breakpoint): Adjust.
4959 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4960 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4961 re_set and check_status methods.
4962 (init_catchpoint): Don't memset, initialize thread, addr_string
4963 and enable_state. Pass the ops down to init_raw_breakpoint.
4964 (install_catchpoint): Rename to ...
4965 (install_breakpoint): ... this, and make extern.
4966 (create_fork_vfork_event_catchpoint): Adjust.
4967 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4968 re_set and check_status methods.
4969 (create_syscall_event_catchpoint): Adjust.
4970 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4971 (masked_watchpoint_breakpoint_ops): Install NULL
4972 allocate_location, re_set and check_status methods.
4973 (catch_exec_command_1): Adjust.
4974 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4975 re_set and check_status methods.
4976 (create_ada_exception_breakpoint): Rename to ...
4977 (init_ada_exception_breakpoint): ... this. Add a struct
4978 breakpoint parameter, and delete the exp_string, cond_string and
4979 cond parameters. Use init_raw_breakpoint, and don't install or
4980 mention the breakpoint yet. Don't clear breakpoint fields that
4981 init_raw_breakpoint already clears.
4982 (re_set_breakpoint): Delete, split into ...
4983 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4984 functions.
4985 (breakpoint_re_set_one): Call the breakpoint's
4986 breakpoint_ops->re_set implementation, if there's one. Adjust.
4987 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4988 (struct bp_location_ops): New type.
4989 (struct bp_location): New field `ops'.
4990 (struct breakpoint_ops): New `allocate_location', `re_set' and
4991 `check_status' fields. Make `breakpoint_hit''s description match
4992 reality.
4993 (init_bp_location): Declare.
4994 (breakpoint_re_set_default): Declare.
4995 (create_ada_exception_breakpoint): Rename to ...
4996 (init_ada_exception_breakpoint): ... this. Add a struct
4997 breakpoint parameter, and delete the exp_string, cond_string and
4998 cond parameters.
4999 (install_breakpoint): Declare.
5000 * ada-lang.c: Include exceptions.h.
5001 <Ada exceptions description>: Update.
5002 (struct ada_catchpoint_location): New type.
5003 (ada_catchpoint_location_dtor): New function.
5004 (ada_catchpoint_location_ops): New global.
5005 (ada_catchpoint): New type.
5006 (create_excep_cond_exprs): New function.
5007 (dtor_exception, allocate_location_exception, re_set_exception)
5008 (should_stop_exception, check_status_exception): New functions.
5009 (print_one_exception, print_mention_exception)
5010 (print_recreate_exception): Adjust.
5011 (dtor_catch_exception, allocate_location_catch_exception)
5012 (re_set_catch_exception, check_status_catch_exception): New
5013 functions.
5014 (catch_exception_breakpoint_ops): Install them.
5015 (dtor_catch_exception_unhandled)
5016 (allocate_location_catch_exception_unhandled)
5017 (re_set_catch_exception_unhandled)
5018 (check_status_catch_exception_unhandled): New functions.
5019 (catch_exception_unhandled_breakpoint_ops): Install them.
5020 (dtor_catch_assert, allocate_location_catch_assert)
5021 (re_set_catch_assert, check_status_catch_assert): New functions.
5022 (catch_assert_breakpoint_ops): Install them.
5023 (ada_exception_catchpoint_p): Delete.
5024 (catch_ada_exception_command_split)
5025 (ada_exception_catchpoint_cond_string): Rename exp_string
5026 parameter to excep_string. Adjust.
5027 (ada_parse_catchpoint_condition): Delete.
5028 (ada_exception_sal): Rename the exp_string parameter to
5029 excep_string. Delete the cond_string and cond parameters.
5030 Adjust.
5031 (ada_decode_exception_location): Rename the exp_string parameter
5032 to excep_string. Delete the cond_string and cond parameters.
5033 Adjust.
5034 (create_ada_exception_catchpoint): New function.
5035 (catch_ada_exception_command, ada_decode_assert_location)
5036 (catch_assert_command): Adjust.
5037 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5038
9ac4176b
PA
50392011-06-22 Pedro Alves <pedro@codesourcery.com>
5040
5041 * ada-lang.c: Include arch-utils.h.
5042 (ada_decode_exception_location): Make static.
5043 (catch_ada_exception_command): Moved here from breakpoint.c.
5044 (ada_decode_assert_location): Make static.
5045 (catch_assert_command): Moved here from breakpoint.c.
5046 (_initialize_ada_lang): Install the exception and assert
5047 catchpoint commands here.
5048 * ada-lang.h (ada_decode_exception_location)
5049 (ada_decode_assert_location): Delete declarations.
5050 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5051 breakpoint.h.
5052 (create_ada_exception_breakpoint): Make extern.
5053 (catch_ada_exception_command, catch_assert_command): Moved to
5054 ada-lang.c.
5055 (add_catch_command): Make extern.
5056 (_initilize_breakpoint): Don't install the exception and assert
5057 catchpoint commands here.
5058 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5059 breakpoint.c
5060 (add_catch_command, create_ada_exception_breakpoint): Declare.
5061
c56053d2
PA
50622011-06-22 Pedro Alves <pedro@codesourcery.com>
5063
5064 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5065 the breakpoint to the breakpoint chain here.
5066 (set_raw_breakpoint_without_location): Add the breakpoint to the
5067 breakpoint chain here.
5068 (init_raw_breakpoint): Adjust comments.
5069 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5070 here.
5071 (init_catchpoint): Don't set the catchpoint's breakpoint number
5072 here.
5073 (install_catchpoint): New function.
5074 (create_fork_vfork_event_catchpoint)
5075 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5076 use install_catchpoint.
5077
d2f3fc74
PA
50782011-06-22 Pedro Alves <pedro@codesourcery.com>
5079
5080 * breakpoint.c (create_catchpoint_without_mention)
5081 (create_catchpoint): Delete.
5082
b4d90040
PA
50832011-06-22 Pedro Alves <pedro@codesourcery.com>
5084
5085 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5086 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5087 reference to exec_pathname.
5088 (struct exec_catchpoint): New type.
5089 (dtor_catch_exec): New function.
5090 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5091 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5092 (catch_exec_command_1): Adjust to use init_catchpoint.
5093 (delete_breakpoint): Remove reference to exec_pathname.
5094
be5c67c1
PA
50952011-06-22 Pedro Alves <pedro@codesourcery.com>
5096
5097 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5098 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5099 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5100 reference to syscalls_to_be_caught.
5101 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5102 NULL `dtor'.
5103 (struct syscall_catchpoint): New type.
5104 (dtor_catch_syscall): New function.
5105 (insert_catch_syscall, remove_catch_syscall)
5106 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5107 (print_recreate_catch_syscall): Adjust.
5108 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5109 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5110 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5111 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5112 (masked_watchpoint_breakpoint_ops)
5113 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5114 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5115 there is one. Remove references to syscalls_to_be_caught.
5116 (catching_syscall_number): Adjust.
5117 * ada-lang.c (catch_exception_breakpoint_ops)
5118 (catch_exception_unhandled_breakpoint_ops)
5119 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5120
e29a4733
PA
51212011-06-22 Pedro Alves <pedro@codesourcery.com>
5122
5123 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5124 field.
5125 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5126 reference to forked_inferior_pid.
5127 (struct fork_catchpoint): New type.
5128 (breakpoint_hit_catch_fork, print_it_catch_fork)
5129 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5130 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5131 (create_fork_vfork_event_catchpoint): Adjust to use
5132 init_catchpoint.
5133
346774a9
PA
51342011-06-22 Pedro Alves <pedro@codesourcery.com>
5135
5136 * breakpoint.c (add_to_breakpoint_chain)
5137 (init_raw_breakpoint_without_location): New functions, factored
5138 out from ...
5139 (set_raw_breakpoint_without_location): ... this one.
5140 (init_raw_breakpoint): New function, factored out from
5141 set_raw_breakpoint and adjusted to use
5142 init_raw_breakpoint_without_location.
5143 (set_raw_breakpoint): Adjust.
5144 (init_catchpoint): New function, factored out from
5145 create_catchpoint_without_mention and adjusted to use
5146 init_raw_breakpoint.
5147 (create_catchpoint_without_mention): Adjust.
5148
c38c4bc5
TT
51492011-06-22 Tom Tromey <tromey@redhat.com>
5150
5151 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5152 argument of 0 specially.
5153
b138ce37
YQ
51542011-06-22 Yao Qi <yao@codesourcery.com>
5155
5156 * infrun.c (handle_inferior_event): Remove write-only local variable
5157 `sw_single_step_trap_p'.
5158
03de6823
TT
51592011-06-20 Tom Tromey <tromey@redhat.com>
5160
5161 * symtab.c (lookup_language_this): End loop if block is NULL.
5162
66a17cb6
TT
51632011-06-17 Tom Tromey <tromey@redhat.com>
5164
5165 * valops.c (value_of_this): Use lookup_language_this.
5166 * symtab.h (lookup_language_this): Declare.
5167 * symtab.c (lookup_language_this): New function.
5168 (lookup_symbol_aux): Use lookup_language_this.
5169 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5170
7518bff5
TT
51712011-06-17 Tom Tromey <tromey@redhat.com>
5172
5173 * value.h (value_of_this): Update.
5174 (value_of_local): Remove.
5175 * valops.c (value_of_this): Rename from value_of_local. Change
5176 parameters.
5177 * p-exp.y (exp): Update.
5178 (variable): Likewise.
5179 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5180
aee28ec6
TT
51812011-06-17 Tom Tromey <tromey@redhat.com>
5182
5183 * valops.c (value_of_local): Complain if NAME is NULL.
5184 * std-operator.def (OP_OBJC_SELF): Remove.
5185 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5186 * objc-exp.y (name_not_typename): Use OP_THIS.
5187 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5188 name for "this".
5189 <OP_OBJC_SELF>: Remove.
5190 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5191
eed8f803
TG
51922011-06-16 Tristan Gingold <gingold@adacore.com>
5193
5194 * python/py-events.h (gdb_py_events): Make it extern.
5195 * python/py-evtregistry.c (gdb_py_events): Declare.
5196
864ac8a7
HZ
51972011-06-16 Hui Zhu <teawater@gmail.com>
5198
5199 * remote.c (remote_trace_set_readonly_regions): Add check for
5200 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5201 output warning.
5202
ef7e8358
UW
52032011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5204
5205 * arm-linux-tdep.c: Include "auxv.h".
5206 (AT_HWCAP): Define.
5207 (ARM_LINUX_SIZEOF_VFP): Define.
5208 (arm_linux_supply_vfp): New function.
5209 (arm_linux_collect_vfp): Likewise.
5210 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5211 (arm_linux_fpa_regset_sections): New variable.
5212 (arm_linux_vfp_regset_sections): Likewise.
5213 (arm_linux_core_read_description): New function.
5214 (arm_linux_init_abi): Install arm_linux_core_read_description and
5215 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5216 appropriate for the architecture.
5217 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5218 (tdesc_arm_with_m): Declare.
5219 (tdesc_arm_with_iwmmxt): Likewise.
5220 (tdesc_arm_with_vfpv2): Likewise.
5221 (tdesc_arm_with_vfpv3): Likewise.
5222 (tdesc_arm_with_neon): Likewise.
5223 * arm-linux-nat.c: Move features/*.c includes ...
5224 * arm-tdep.c: ... here.
5225 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5226 target description data structures ...
5227 * arm-tdep.c (_initialize_arm_tdep): ... here.
5228 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5229 HWCAP_VFPv3D16): Move definitions ...
5230 * arm-linux-tdep.h: ... here.
5231
c2fa21f1
HZ
52322011-06-15 Hui Zhu <teawater@gmail.com>
5233
5234 * remote.c (remote_trace_set_readonly_regions): Add a check for
5235 target_buf_size.
5236
dd707e8e
TT
52372011-06-14 Tom Tromey <tromey@redhat.com>
5238
5239 * coffread.c (coffread_objfile): Rename from current_objfile.
5240 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5241 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5242
86cc0029
TT
52432011-06-14 Tom Tromey <tromey@redhat.com>
5244
5245 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5246 (class_symtab): Remove.
5247 (jv_dynamics_progspace_key): New global.
5248 (jv_per_objfile_free): Reset program space data. Update assert.
5249 Don't clear globals.
5250 (get_dynamics_objfile): Use and set program space data.
5251 (get_java_class_symtab): Use get_dynamics_objfile.
5252 (add_class_symbol): Likewise.
5253 (java_link_class_type): Likewise.
5254 (java_object_type, jv_clear_object_type, set_java_object_type):
5255 Remove.
5256 (get_java_object_type): Update. Don't cache result.
5257 (is_object_type): Don't call set_java_object_type.
5258 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5259 initialize jv_dynamics_progspace_key.
5260
91a81f69
TT
52612011-06-14 Tom Tromey <tromey@redhat.com>
5262
5263 * symtab.h (current_objfile): Don't declare.
5264 * objfiles.h (current_objfile): Don't declare.
5265 * objfiles.c (current_objfile): Remove.
5266 * mdebugread.c (current_objfile): New file-scope global.
5267 * dbxread.c (current_objfile): New file-scope global.
5268 * coffread.c (current_objfile): New file-scope global.
5269
dc7eb48e
PA
52702011-06-13 Pedro Alves <pedro@codesourcery.com>
5271
5272 * top.h (line): Rename to ...
5273 (saved_command_line): ... this.
5274 (linesize): Rename to ...
5275 (saved_command_line_size): ... this.
5276 * top.c (line): Rename to ...
5277 (saved_command_line): ... this.
5278 (linesize): Rename to ...
5279 (saved_command_line_size): ... this.
5280 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5281 * event-top.c (command_line_handler): Adjust.
5282 * main.c (captured_main): Adjust.
5283
0d6c2135
MK
52842011-06-12 Mark Kettenis <kettenis@gnu.org>
5285
5286 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5287 get_frame_func instead of get_frame_pc to determine the code
5288 address used to construct the frame ID.
5289 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5290 (i386_epilogue_frame_this_id): Likewise.
5291 (i386_epilogue_frame_prev_register): New function.
5292 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5293 (i386_stack_tramp_frame_sniffer): Fix coding style.
5294 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5295 (i386_gdbarch_init): Fix comments.
5296
8bbdd3f4
MK
52972011-06-12 Mark Kettenis <kettenis@gnu.org>
5298
5299 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5300 instruction when walking back through the instruction stream.
5301
533a737e
JK
53022011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5303
5304 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5305 fullname parameters order.
5306
44b13c5a
JK
53072011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5308
5309 Code cleanup.
5310 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5311 for fun.
5312 * psymtab.c (map_symbol_filenames_psymtab)
5313 (map_partial_symbol_filenames): Likewise.
5314 * psymtab.h: Include symfile.h.
5315 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5316 * symfile.h (symbol_filename_ftype): New.
5317 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5318 map_symbol_filenames, clarify more the naming in comment.
5319
0b5574da
DE
53202011-06-07 Doug Evans <dje@google.com>
5321
5322 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5323 Look for ../../gdb, for fullname.exp.
0b5574da 5324
5be4dfca
JK
53252011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5326 Pedro Alves <pedro@codesourcery.com>
5327
5328 * cli/cli-cmds.c (shell_escape): Use waitpid.
5329 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5330
316a8b21
TG
53312011-06-07 Tristan Gingold <gingold@adacore.com>
5332
5333 * xcoffread.c (dwarf2_xcoff_names): New variable.
5334 (aix_process_linenos): Add a guard.
5335 (xcoff_symfile_finish): Free dwarf2.
5336 (xcoff_initial_scan): Add dwarf2 support.
5337
3dd5b83d
PA
53382011-06-06 Pedro Alves <pedro@codesourcery.com>
5339
5340 * infcall.c (run_inferior_call): Don't mask async. Instead force
5341 a synchronous wait, if the target can async.
5342
5343 * target.h (struct target_ops): Delete to_async_mask.
5344 (target_async_mask): Delete.
5345 * target.c (update_current_target): Delete references to to_async_mask.
5346 * linux-nat.c (linux_nat_async_mask_value): Delete.
5347 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5348 to linux_nat_async_mask_value.
5349 (linux_nat_async_mask): Delete.
5350 (linux_nat_async, linux_nat_close): Remove references to
5351 linux_nat_async_mask_value.
5352 * record.c (record_async_mask_value): Delete.
5353 (record_async): Remove references to record_async_mask_value.
5354 (record_async_mask): Delete.
5355 (record_can_async_p, record_is_async_p): Remove references to
5356 record_async_mask_value.
5357 (init_record_ops, init_record_core_ops): Remove references to
5358 record_async_mask.
5359 * remote.c (remote_async_mask_value): Delete.
5360 (init_remote_ops): Remove reference to remote_async_mask.
5361 (remote_can_async_p, remote_is_async_p): Remove references to
5362 remote_async_mask_value.
5363 (remote_async): Remove references to remote_async_mask_value.
5364 (remote_async_mask): Delete.
5365
5366 * infrun.c (fetch_inferior_event): Don't claim registers changed
5367 if the current thread is already not executing.
5368
64b9b334
JB
53692011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5370
5371 From Stephen Kitt <steve@sk2.org>
5372 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5373 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5374
325663dc
JB
53752011-06-03 Joel Brobecker <brobecker@adacore.com>
5376
5377 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5378 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5379
8cf64490
TT
53802011-06-03 Tom Tromey <tromey@redhat.com>
5381
5382 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5383 code fields.
5384 * python/py-exitedevent.c (create_exited_event_object): Change
5385 type of 'exit_code'. Optionally add exit_code attribute.
5386 (emit_exited_event): Change type of 'exit_code'.
5387 * python/py-event.h (emit_exited_event): Update.
5388 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5389 * infrun.c (handle_inferior_event): Set exit code fields on
5390 inferior.
5391 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5392 fields.
5393 * inferior.c (exit_inferior_1): Initialize new fields.
5394
8ddd9a20
TT
53952011-06-03 Tom Tromey <tromey@redhat.com>
5396
5397 * dwarf2expr.c (get_signed_type): New function.
5398 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5399
8dfd1e6d
KS
54002011-06-02 Keith Seitz <keiths@redhat.com>
5401
5402 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5403
65fdb766
PA
54042011-06-02 Pedro Alves <pedro@codesourcery.com>
5405
5406 * top.h (simplified_command_loop): Delete declaration.
5407
f4b8c29b
MF
54082011-06-01 Mike Frysinger <vapier@gentoo.org>
5409
5410 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5411 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5412
1706c199
YQ
54132011-06-01 Yao Qi <yao@codesourcery.com>
5414
5415 * objfiles.h (obj_section_addr): Update reference to objfile from
5416 `abfd' to `obfd'.
5417 (obj_section_endaddr): Likewise.
5418
d19cd713 54192011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5420
5421 * MAINTAINERS: Update my email address and affiliation. Also
5422 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5423
e8eb7bc5
KS
54242010-05-31 Keith Seitz <keiths@redhat.com>
5425
5426 PR c++/12750
5427 * linespec.c (get_search_block): New function.
5428 (find_methods): Add FILE_SYMTATB parameter and use it and
5429 get_search_block to pass an appropriate block to
5430 lookup_symbol_in_namespace.
5431 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5432 Check if *ARGPTR starts with a filename first.
5433 If it does, call locate_first_half again to locate the next
5434 "first half" of the linespec.
5435 Pass FILE_SYMTATB to decode_objc and decode_compound.
5436 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5437 (locate_first_half): Stop on the first colon seen.
5438 (decode_compound): Add FILE_SYMTAB parameter.
5439 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5440 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5441 get_search_block with lookup_symbol.
5442 (find_method): Add FILE_SYMTAB parameter and pass it to
5443 find_methods.
5444 (decode_objc): Use get_search_block.
5445
2b1dbab0
KS
54462010-05-31 Keith Seitz <keiths@redhat.com>
5447
5448 PR symtab/12704
5449 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5450 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5451 and CP_ANONYMOUS_NAMESPACE_LEN.
5452 (cp_is_anonymous): Likewise.
5453 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5454 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5455 * dwarf2read.c (namespace_name): Likewise.
5456 (fixup_partial_die): Likewise.
5457 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5458 seen in the input, keep it.
5459
6d549500
PA
54602011-05-30 Pedro Alves <pedro@codesourcery.com>
5461
5462 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5463 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5464 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5465 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5466 * remote.c (_initialize_remote): Register
5467 async_remote_interrupt_twice directly as
5468 sigint_remote_twice_token event.
5469
395bff70
PA
54702011-05-30 Pedro Alves <pedro@codesourcery.com>
5471
5472 * target.h (enum inferior_event_type): Delete INF_ERROR.
5473 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5474
97224164
PA
54752011-05-30 Pedro Alves <pedro@codesourcery.com>
5476
5477 * interps.c (interp_set): Don't cancel continuations.
5478
07e78767
JK
54792011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5482
fa4cd53f
PA
54832011-05-30 Pedro Alves <pedro@codesourcery.com>
5484
5485 * continuations.h (continuation_ftype): Add `err' parameter.
5486 Document parameters.
5487 (do_all_continuations, do_all_continuations_thread)
5488 (do_all_intermediate_continuations)
5489 (do_all_intermediate_continuations_thread)
5490 (do_all_inferior_continuations): Add `err' parameter.
5491 * continuations.c (do_my_continuations_1, do_my_continuations)
5492 (do_all_inferior_continuations, do_all_continuations_ptid)
5493 (do_all_continuations_thread_callback)
5494 (do_all_continuations_thread, do_all_continuations)
5495 (do_all_intermediate_continuations_thread_callback)
5496 (do_all_intermediate_continuations_thread)
5497 (do_all_intermediate_continuations): Add `err' parameter, and pass
5498 it down all the way to the continuations proper.
5499 * inf-loop.c (inferior_event_handler): If fetching an inferior
5500 event throws an error, don't pop the target, and still call the
5501 continuations, but with `err' set. Adjust all other continuation
5502 calls.
5503 * breakpoint.c (until_break_command_continuation): Add `err'
5504 parameter.
5505 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5506 issue another step if `err' is set.
5507 (struct until_next_continuation_args): New.
5508 (until_next_continuation): Add `err' parameter. Adjust.
5509 (until_next_command): Adjust.
5510 (struct finish_command_continuation_args): Add `thread' field.
5511 (finish_command_continuation): Add `err' parameter. Handle it.
5512 (finish_forward): Adjust.
5513 (attach_command_continuation): Add `err' parameter. Handle it.
5514 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5515 cancel the continuations.
5516 * interps.c (interp_set): Adjust to cancel the continuations.
5517 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5518 continuations rather than discarding.
5519 (free_thread): Don't clear thread inferior resources here.
5520 (delete_thread_1): Do it here instead. And do it before removing
5521 the thread from the threads list. Tag the thread as exited before
5522 clearing thread inferior resources.
5523
c2949be0
JB
55242011-05-30 Joel Brobecker <brobecker@adacore.com>
5525
5526 * infcall.c (call_function_by_hand): Rephrase error message.
5527
619cebe8
PA
55282011-05-27 Pedro Alves <pedro@codesourcery.com>
5529
5530 * defs.h (struct thread_info, struct inferior): Delete forward
5531 declarations.
5532 * breakpoint.h (struct thread_info): New forward declaration.
5533 * observer.sh (struct inferior): New forward declaration.
5534 * python/python-internal.h (struct inferior): New forward
5535 declaration.
5536
be34f849
PA
55372011-05-27 Pedro Alves <pedro@codesourcery.com>
5538
5539 * defs.h (struct continuation, continuation_ftype)
5540 (continuation_free_arg_ftype, add_continuation)
5541 (do_all_continuations, do_all_continuations_thread)
5542 (discard_all_continuations, discard_all_continuations_thread)
5543 (add_intermediate_continuation, do_all_intermediate_continuations)
5544 (do_all_intermediate_continuations_thread)
5545 (discard_all_intermediate_continuations)
5546 (discard_all_intermediate_continuations_thread)
5547 (add_inferior_continuation, do_all_inferior_continuations)
5548 (discard_all_inferior_continuations): Move to ...
5549 * continuations.h: ... this new file.
5550 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5551 infcmd.c, inferior.c, infrun.c, interps.c: Include
5552 continuations.h.
5553
432b4d03
JK
55542011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5555 Doug Evans <dje@google.com>
5556
5557 Fix PR 10970, PR 12702.
5558 * linux-nat.c (linux_lwp_is_zombie): New function.
5559 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5560 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5561
b0f260d6
PA
55622011-05-27 Pedro Alves <pedro@codesourcery.com>
5563
5564 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5565 typedefs.
5566 (add_continuation, add_intermediate_continuation)
5567 (add_inferior_continuation): Use them.
5568 * continuations.c (struct continuation): Use them.
5569 (make_continuation_ftype): Delete.
5570 (make_continuation, add_inferior_continuation, add_continuation)
5571 (add_intermediate_continuation): Use continuation_ftype and
5572 continuation_free_arg_ftype. Rename parameters to shorter names.
5573
af1e9a32
PA
55742011-05-27 Pedro Alves <pedro@codesourcery.com>
5575
5576 * continuations.c (make_continuation): Make it return void.
5577 (do_my_continuations): Rename to ...
5578 (do_my_continuations_1): ... this. Remove old_chain parameter and
5579 adjust.
5580 (do_my_continuations): New.
5581 (discard_my_continuations): Rename to ...
5582 (discard_my_continuations_1): ... this. Remove old_chain
5583 parameter and adjust.
5584 (discard_my_continuations): New.
5585 (add_inferior_continuation): Simplify.
5586 (do_all_inferior_continuations): Reimplement on top
5587 do_my_continuations.
5588 (discard_all_inferior_continuations): Simplify.
5589 (add_continuation): Simplify.
5590 (do_all_continuations_ptid): Simplify.
5591 (discard_all_continuations_thread_callback): Simplify.
5592 (add_intermediate_continuation): Simplify.
5593 (discard_all_intermediate_continuations_thread_callback):
5594 Simplify.
5595
50c0c017
PA
55962011-05-27 Pedro Alves <pedro@codesourcery.com>
5597
5598 * utils.c (struct continuation, add_continuation)
5599 (add_inferior_continuation)
5600 (do_all_inferior_continuations, discard_all_inferior_continuations)
5601 (restore_thread_cleanup, do_all_continuations_ptid)
5602 (do_all_continuations_thread_callback)
5603 (do_all_continuations_thread, do_all_continuations)
5604 (discard_all_continuations_thread_callback)
5605 (discard_all_continuations_thread, discard_all_continuations)
5606 (add_intermediate_continuation)
5607 (do_all_intermediate_continuations_thread_callback)
5608 (do_all_intermediate_continuations_thread)
5609 (do_all_intermediate_continuations)
5610 (discard_all_intermediate_continuations_thread_callback)
5611 (discard_all_intermediate_continuations_thread)
5612 (discard_all_intermediate_continuations): Move to ...
5613 * continuations.c: ... this new file, and adjust to no longer
5614 implement continuations on top of cleanups.
5615 * Makefile.in (SFILES): Add continuations.c.
5616 (COMMON_OBS): Add continuations.o.
5617
d8b34453
PA
56182011-05-26 Pedro Alves <pedro@codesourcery.com>
5619
5620 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5621 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5622 Internal error on invalid values.
5623 * reverse.c: Don't handle EXEC_ERROR.
5624 * mi/mi-main.c: Don't handle EXEC_ERROR.
5625
32231432
PA
56262011-05-26 Pedro Alves <pedro@codesourcery.com>
5627
5628 * record.c: Include event-loop.h, inf-loop.h.
5629 (record_beneath_to_async): New global.
5630 (tmp_to_async): New global.
5631 (record_async_inferior_event_token): New global.
5632 (record_open_1): Don't error out if async is enabled.
5633 (record_open): Handle to_async. Create an async event source in
5634 the event loop.
5635 (record_close): Delete the async event source.
5636 (record_resumed): New global.
5637 (record_execution_dir): New global.
5638 (record_resume, record_core_resume): Set them. Register the
5639 target on the event loop.
5640 (record_wait): Rename to ...
5641 (record_wait_1): ... this. Add more debug output. Handle
5642 TARGET_WNOHANG, and the target beneath returning
5643 TARGET_WAITKIND_IGNORE.
5644 (record_wait): Reimplement on top of record_wait_1.
5645 (record_async_mask_value): New global.
5646 (record_async, record_async_mask, record_can_async_p)
5647 (record_is_async_p, record_execution_direction): New functions.
5648 (init_record_ops, init_record_core_ops): Install new methods.
5649 * infrun.c (fetch_inferior_event): Temporarily switch the global
5650 execution direction to the direction the target was going.
5651 (execution_direction): Change type to int.
5652 * target.c (default_execution_direction): New function.
5653 (update_current_target): Inherit and de_fault
5654 to_execution_direction.
5655 * target.h (struct target_ops) <to_execution_direction>: New
5656 field.
5657 (target_execution_direction): New macro.
5658 * inferior.h (execution_direction): Change type to int.
5659
949dc678
PA
56602011-05-26 Pedro Alves <pedro@codesourcery.com>
5661
5662 * infcall.c (call_function_by_hand): Don't allow calling functions
5663 in reverse execution mode.
5664
c13bd2b5
PA
56652011-05-26 Pedro Alves <pedro@codesourcery.com>
5666
5667 * infcmd.c (finish_command): Allow async finish in reverse.
5668
6938fd34
YQ
56692011-05-26 Yao Qi <yao@codesourcery.com>
5670
5671 * gdb_thread_db.h: Delete. Move to ...
5672 * common/gdb_thread_db.h: ... here.
5673
9da8c2a0
PA
56742011-05-26 Pedro Alves <pedro@codesourcery.com>
5675
5676 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5677 function's entry point instead of a manually managed momentary
5678 breakpoint, and only ever issue one proceed call.
5679 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5680 doing a reverse-finish, switch to stepi mode, to do another step.
5681 (insert_step_resume_breakpoint_at_sal): Make public.
5682 (normal_stop): No need to save function value return registers if
5683 going reverse.
5684 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5685
2c03e5be
PA
56862011-05-26 Pedro Alves <pedro@codesourcery.com>
5687
5688 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5689 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5690 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5691 at the end.
5692 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5693 step-resume breakpoints.
5694 (print_it_typical): Handle bp_hp_step_resume.
5695 (bpstat_what): Ditto.
5696 (bptype_string): Ditto.
5697 (print_one_breakpoint_location): Ditto.
5698 (allocate_bp_location): Ditto.
5699 (mention): Ditto.
5700 (breakpoint_re_set_one): Ditto.
5701 * infrun.c (handle_inferior_event): Adjust. Split
5702 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5703 BPSTAT_WHAT_HP_STEP_RESUME.
5704 (insert_step_resume_breakpoint_at_sal): Rename to ...
5705 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5706 parameter. Handle it.
5707 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5708 insert_step_resume_breakpoint_at_sal_1.
5709 (insert_step_resume_breakpoint_at_frame): Rename to ...
5710 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5711 set a high-priority step-resume breakpoint.
5712 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5713 (insert_step_resume_breakpoint_at_caller): Ditto.
5714
51be5b68
PA
57152011-05-26 Pedro Alves <pedro@codesourcery.com>
5716
5717 * breakpoint.c (iterate_over_related_breakpoints): New.
5718 (do_map_delete_breakpoint): New.
5719 (delete_command): Pass do_map_delete_breakpoint to
5720 map_breakpoint_numbers.
5721 (do_disable_breakpoint): New.
5722 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5723 breakpoints.
5724 (do_enable_breakpoint): Rename to ...
5725 (enable_breakpoint_disp): ... this.
5726 (enable_breakpoint): Adjust.
5727 (do_enable_breakpoint): New.
5728 (enable_once_breakpoint): Delete.
5729 (do_map_enable_breakpoint): New.
5730 (do_map_enable_once_breakpoint): New.
5731 (enable_once_command, enable_delete_command)
5732 (delete_trace_command): Iterate over the breakpoint's related
5733 breakpoints.
5734
4a1be8d2
PA
57352011-05-26 Pedro Alves <pedro@codesourcery.com>
5736
5737 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5738 for ALPHA_ZERO_REGNUM.
5739 (alpha_supply_int_regs): Explicitly supply zero as the value for
5740 ALPHA_ZERO_REGNUM in the register cache.
5741 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5742
59d70315
YQ
57432011-05-26 Yao Qi <yao@codesourcery.com>
5744
5745 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5746
251d32d9
TG
57472011-05-26 Tristan Gingold <gingold@adacore.com>
5748
5749 * symfile.h (struct dwarf2_section_names): New type.
5750 (struct dwarf2_debug_sections): New type.
5751 (dwarf2_has_info): Add parameter.
5752 * dwarf2read.c (dwarf2_elf_names): New variable.
5753 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5754 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5755 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5756 (dwarf2_has_info): Add names parameter. Pass names
5757 to dwarf2_locate_sections.
5758 (section_is_p): Rewrite using the names parameter.
5759 (dwarf2_locate_sections): Use section names from the names parameter.
5760 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5761 * elfread.c (read_psyms): Ditto.
5762 * machoread.c (macho_symfile_read): Ditto.
5763
652c71b4
AS
57642011-05-25 Andreas Schwab <schwab@redhat.com>
5765
5766 PR gdb/8677
5767 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5768
f17170e5
KS
57692011-05-24 Keith Seitz <keiths@redhat.com>
5770
5771 PR breakpoint/12803
5772 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5773 (decode_compound): Unconditionally call keep_name_info.
5774
cdac0397
PA
57752011-05-24 Pedro Alves <pedro@codesourcery.com>
5776
5777 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5778 scope, clear its command list.
5779 (map_breakpoint_numbers): Don't walk the related breakpoints list
5780 of each breakpoint.
5781
91d4fe3f
TT
57822011-05-24 Tom Tromey <tromey@redhat.com>
5783
5784 * MAINTAINERS: Move Jim Blandy to past maintainers.
5785
3017a003
TG
57862011-05-24 Tristan Gingold <gingold@adacore.com>
5787
5788 * symfile.h (enum dwarf2_section_enum): New type.
5789 (dwarf2_get_section_info): New prototype.
5790 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5791 section_name by sect. Use a switch to select the info.
5792 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5793 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5794
c91c8c16
PA
57952011-05-24 Pedro Alves <pedro@codesourcery.com>
5796
5797 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5798 shared library event breakpoint if there's no execution.
5799
77bc418a
TJB
58002011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5801
5802 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5803 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5804
c50491a7
TT
58052011-05-23 Tom Tromey <tromey@redhat.com>
5806
5807 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5808 NULL.
5809
6d64e6d4
DE
58102011-05-23 Doug Evans <dje@google.com>
5811
5812 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5813 entry for RuntimeError to doc string.
5814
2067c8d4
JG
58152011-05-23 Jerome Guitton <guitton@adacore.com>
5816
5817 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5818 sequence for probing loops.
5819
b136cd05
PA
58202011-05-23 Pedro Alves <pedro@codesourcery.com>
5821
5822 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5823 comment.
5824
22e74ef9
MK
58252011-05-21 Mark Kettenis <kettenis@gnu.org>
5826
5827 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5828 zero as the value for %g0 in the register cache.
5829 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5830 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5831
842951eb
PA
58322011-05-20 Pedro Alves <pedro@codesourcery.com>
5833
5834 * infrun.c (proceed): Set previous_inferior_ptid here.
5835 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5836 inferior_ptid, not null_ptid.
5837 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5838 (fetch_inferior_event): Nor here.
5839
46cf51e6
PA
58402011-05-20 Pedro Alves <pedro@codesourcery.com>
5841
5842 * inf-loop.c (inferior_event_handler): Only output a message if
5843 verbose.
5844
29ef4c46
LM
58452011-05-20 Luis Machado <lgustavo@codesourcery.com>
5846
5847 * MAINTAINERS: Update my e-mail address.
5848
f148b27e
PA
58492011-05-20 Pedro Alves <pedro@codesourcery.com>
5850
5851 * infrun.c (proceed): Switch the inferior event loop to
5852 INF_EXEC_COMPLETE if the target refused to resume from a
5853 vfork/fork.
5854
09cee04b
PA
58552011-05-20 Pedro Alves <pedro@codesourcery.com>
5856
5857 * infcmd.c: Include "inf-loop.h".
5858 (step_once): When stepping into an inline subroutine, pretend the
5859 target has run. If the target can async, switch the inferior
5860 event loop to INF_EXEC_COMPLETE.
5861 * inferior.h (user_visible_resume_ptid): Declare.
5862 * infrun.c (user_visible_resume_ptid): New function, factored out
5863 from `resume'.
5864 (resume): Use it.
5865 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5866 that the current thread is running. Merge async and sync
5867 branches.
5868
751b8ce1
PA
58692011-05-20 Pedro Alves <pedro@codesourcery.com>
5870
5871 * infcmd.c (step_1): Simplify synchronous case.
5872
e93a69ed
PA
58732011-05-20 Pedro Alves <pedro@codesourcery.com>
5874
5875 * tracepoint.c: Include exceptions.h.
5876 (TFILE_PID): Move higher in file.
5877 (tfile_open): Delay pushing the tfile target until we're assured
5878 the tfile header is present in the file. Wrap reading the initial
5879 newline-terminated lines in TRY_CATCH. Pop the target if the
5880 initial setup failed. Add the tfile's thread immediately
5881 aftwards, before any non-essential setup. Don't skip
5882 post_create_inferior if there are no traceframes present in the
5883 file.
5884 (tfile_close): Remove redundant check for null before xfree call.
5885 (tfile_thread_alive): New function.
5886 (init_tfile_ops): Register it as to_thread_alive callback.
5887
6823e2b1
PA
58882011-05-20 Pedro Alves <pedro@codesourcery.com>
5889
5890 * tracepoint.c (tfile_open): Delete #if 0'd code.
5891
b3c8eb43
JK
58922011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5893
5894 Fix -readnow for -gdwarf-4 unused type units.
5895 * dwarf2read.c (struct signatured_type): Remove the field offset.
5896 (create_signatured_type_table_from_index): Remove its initialization.
5897 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5898 instead. Add a complaint call.
5899 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5900 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5901 (lookup_signatured_type_at_offset, read_signatured_type)
5902 (write_one_signatured_type): Update the field for per_cu.
5903
310afc76
TT
59042011-05-19 Tom Tromey <tromey@redhat.com>
5905
5906 * python/py-inferior.c (python_inferior_exit): Use
5907 target_gdbarch.
5908 (python_on_resume): Likewise.
5909
cf6c5ffb
TT
59102011-05-19 Matt Rice <ratmice@gmail.com>
5911
5912 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5913
fb80a3c5
HZ
59142011-05-19 Hui Zhu <teawater@gmail.com>
5915
5916 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5917
3672b1be
HZ
59182011-05-19 Hui Zhu <teawater@gmail.com>
5919
5920 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5921
ff355380
TT
59222011-05-18 Tom Tromey <tromey@redhat.com>
5923
5924 * dwarf2read.c (dwarf2_add_field): Constify.
5925 * value.c (value_static_field): Constify.
5926 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5927 Now const.
5928 * ax-gdb.c (gen_static_field): Constify
5929
ed731959
JK
59302011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5931
5932 * linux-nat.c (kill_callback): Use SIGKILL first.
5933
967cff16
JB
59342011-05-18 Joel Brobecker <brobecker@adacore.com>
5935
5936 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5937
1d06ead6
TT
59382011-05-18 Tom Tromey <tromey@redhat.com>
5939
5940 * value.c (value_fn_field): Constify.
5941 * symtab.c (gdb_mangle_name): Constify.
5942 * stabsread.c (update_method_name_from_physname): Make 'physname'
5943 argument const.
5944 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5945 const. Use explicit fputc_filtered loop.
5946 (pascal_type_print_base): Constify.
5947 * p-lang.h (pascal_type_print_method_args): Update.
5948 * linespec.c (add_matching_methods): Constify.
5949 (add_constructors): Likewise.
5950 * jv-typeprint.c (java_type_print_base): Constify.
5951 * gdbtypes.h (struct cplus_struct_type)
5952 <fn_fieldlist.fn_field.physname>: Now const.
5953 * dwarf2read.c (compute_delayed_physnames): Constify.
5954 (dwarf2_add_member_fn): Likewise.
5955 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5956
0d9a9a5f
PA
59572011-05-18 Pedro Alves <pedro@codesourcery.com>
5958
5959 * infrun.c (resume): Mention which is the current thread, and its
5960 current PC in debug output.
5961 (prepare_to_proceed): Mention the thread switching in debug
5962 output.
5963
05386e9e
TT
59642011-05-18 Tom Tromey <tromey@redhat.com>
5965
5966 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5967 path check. Use xmalloc and cleanups.
5968 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5969
ee86786c
TT
59702011-05-17 Tom Tromey <tromey@redhat.com>
5971
5972 * cp-valprint.c (cp_print_value_fields): Catch errors from
5973 value_static_field.
5974
9ff3b74f
TT
59752011-05-17 Tom Tromey <tromey@redhat.com>
5976
5977 * dwarf2read.c (dwarf2_get_die_type): Call
5978 get_die_type_at_offset.
5979 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5980 get_base_type function.
5981
cd3da28e
PA
59822011-05-17 Tomas Martinec <fyzmat@gmail.com>
5983
5984 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5985 trap_expected.
5986
fd20d931
DE
59872011-05-16 Doug Evans <dje@google.com>
5988
5989 * python/py-auto-load.c (source_section_scripts): Mention objfile
5990 name in warning.
5991
75fc9810
DE
59922011-05-15 Doug Evans <dje@google.com>
5993
290351b8
DE
5994 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5995 (try_thread_db_load_from_pdir): Call it. If unable to find
5996 libthread_db in directory of libpthread, see if we're looking at
5997 the separate-debug-info copy.
5998
75fc9810
DE
5999 * python/py-autoload.c (print_script): Print "Missing" instead of
6000 "No" for missing scripts.
6001 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6002
9f7bc587
DE
60032011-05-13 Doug Evans <dje@google.com>
6004
6005 * ui-file.c (stdio_file_write_async_safe): Add comment.
6006
093cee7d
HZ
60072011-05-14 Hui Zhu <teawater@gmail.com>
6008
6009 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6010
dbaefcf7
DE
60112011-05-13 Doug Evans <dje@google.com>
6012
98a5dd13
DE
6013 Support $pdir and $sdir in libthread-db-search-path.
6014 * NEWS: Mention $sdir,$pdir.
6015 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6016 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6017 (try_thread_db_load_from_sdir): New function.
6018 (try_thread_db_load_from_dir): New function.
6019 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6020 system directories if search of libthread-db-search-path fails,
6021 that is now done via $sdir.
6022 (has_libpthread): New function.
6023 (thread_db_load): Remove search for libthread_db in directory of
6024 libpthread, that is now done via $pdir.
6025
dbaefcf7
DE
6026 * NEWS: Mention "info auto-load-scripts".
6027 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6028 script_not_found_warning_printed.
6029 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6030 all callers updated. Initialize script_not_found_warning_printed.
6031 (get_auto_load_pspace_data_for_loading): New function.
6032 (maybe_add_script): New function.
6033 (source_section_scripts): Simplify. Only print one warning regardless
6034 of the number of auto-load scripts not found.
6035 (clear_section_scripts): Clear script_not_found_warning_printed.
6036 (auto_load_objfile_script): Record script in hash table.
6037 (count_matching_scripts): New function.
6038 (maybe_print_script): Renamed from maybe_print_section_script, all
6039 callers updated. Rewrite to use ui_out_*.
6040 (info_auto_load_scripts): Renamed from
6041 maintenance_print_section_scripts, all callers updated.
6042 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6043 renamed as "info auto-load-scripts".
6044
9930639c
TT
60452011-05-13 Tom Tromey <tromey@redhat.com>
6046
6047 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6048 (read_sleb128): Likewise.
6049
06826322
TT
60502011-05-13 Tom Tromey <tromey@redhat.com>
6051
6052 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6053 offset display.
6054
01124a23
DE
60552011-05-13 Doug Evans <dje@google.com>
6056
6057 * linux-nat.c (debug_linux_nat_async): Delete.
6058 Replace all references to use debug_linux_nat instead.
6059 (show_debug_linux_nat_async): Delete.
6060 (sigchld_handler): Call ui_file_write_async_safe instead of
6061 fprintf_unfiltered.
6062 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6063 * ui-file.c (struct ui_file): New member to_write_async_safe.
6064 (null_file_write_async_safe): New function.
6065 (ui_file_write_async_safe): New function.
6066 (set_ui_file_write_async_safe): New function.
6067 (ui_file_new): Initialize to_write_async_safe.
6068 (stdio_file_write_async_safe): New function.
6069 (struct stdio_file): New member fd.
6070 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6071 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6072 fileno.
01124a23
DE
6073 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6074 (set_ui_file_write_async_safe): Declare.
6075 (ui_file_write_async_safe): Declare.
6076
72fc29ff
TT
60772011-05-13 Tom Tromey <tromey@redhat.com>
6078
6079 * utils.c (do_value_free): New function.
6080 (make_cleanup_value_free): Likewise.
6081 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6082 freeing correctly.
6083 (dwarf2_loc_desc_needs_frame): Call
6084 make_cleanup_value_free_to_mark.
6085 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6086 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6087 value_free_to_mark.
6088 (new_dwarf_expr_context): Don't call value_mark.
6089 * dwarf2-frame.c (execute_stack_op): Call
6090 make_cleanup_value_free_to_mark.
6091 * defs.h (make_cleanup_value_free): Declare.
6092
028d0ed5
TJB
60932011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6094
6095 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6096 prepare_execute_command.
6097 * top.c (prepare_execute_command): Return cleanup.
6098 (execute_command): Use cleanup from prepare_execute_command.
6099 * top.h (prepare_execute_command): Change prototype to return
6100 cleanup.
6101 * defs.h (struct value): Add opaque declaration.
6102 (make_cleanup_value_free_to_mark): Add prototype.
6103 * utils.c (do_value_free_to_mark): New function.
6104 (make_cleanup_value_free_to_mark): Likewise.
6105
b087e0ed
TT
61062011-05-12 Tom Tromey <tromey@redhat.com>
6107
6108 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6109 cast left-hand-side to unsigned.
6110
8a9b8146
TT
61112011-05-12 Tom Tromey <tromey@redhat.com>
6112
6113 PR gdb/12617:
6114 * value.h (value_from_contents): Declare.
6115 * value.c (value_from_contents): New function.
6116 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6117 (dwarf2_get_die_type): New function.
6118 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6119 (allocate_piece_closure): Acquire reference to values.
6120 (read_pieced_value): Update for value-based expressions.
6121 (write_pieced_value): Likewise.
6122 (free_pieced_value_closure): Call value_free as needed.
6123 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6124 Update for value-based expressions.
6125 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6126 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6127 <get_base_type>: New field.
6128 (struct dwarf_expr_piece) <v.value>: Change type.
6129 <v.regno>: New field.
6130 (struct dwarf_expr_context) <mark>: New field.
6131 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6132 (dwarf_expr_pop, dwarf_expr_push): Remove.
6133 (dwarf_expr_push_address): Declare.
6134 * dwarf2expr.c (dwarf_arch_cookie): New global.
6135 (struct dwarf_gdbarch_types): New.
6136 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6137 functions.
6138 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6139 static.
6140 (dwarf_expr_push_address): New function.
6141 (dwarf_expr_pop): Now static.
6142 (dwarf_expr_fetch): Change return type.
6143 (dwarf_require_integral): New function.
6144 (dwarf_expr_fetch): Simplify.
6145 (add_piece): Update.
6146 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6147 functions.
6148 (execute_stack_op) <sign_ext>: Remove.
6149 Use values for DWARF stack.
6150 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6151 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6152 New cases.
6153 (_initialize_dwarf2expr): New function.
6154 (add_piece): Update.
6155 (new_dwarf_expr_context): Set new field.
6156 (free_dwarf_expr_context): Call value_free_to_mark.
6157 * dwarf2-frame.c (no_base_type): New function.
6158 (execute_stack_op): Set get_base_type field. Update.
6159
e8d28ef4
TT
61602011-05-12 Tom Tromey <tromey@redhat.com>
6161
6162 * dwarf2read.c (read_common_block): Fix formatting.
6163
d248b706
KY
61642011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6165
6166 * breakpoint.c (disable_breakpoint): Disable all locations
6167 associated with a tracepoint on target if a trace experiment is
6168 running.
6169 (disable_command): Disable a specific tracepoint location on target if
6170 a trace experiment is running.
6171 (do_enable_breakpoint): Enable all locations associated with a
6172 tracepoint on target if a trace experiment is running.
6173 (enable_command) Enable a specific tracepoint location on target if a
6174 trace experiment is running.
6175 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6176 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6177 to_disable_tracepoint.
6178 * target.h: Add declaration of struct bp_location.
6179 (struct target_ops): Add new functions
6180 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6181 to_disable_tracepoint to target operations.
6182 (target_supports_enable_disable_tracepoint): New macro.
6183 (target_enable_tracepoint): New macro.
6184 (target_disable_tracepoint): New macro.
6185 * remote.c (struct remote_state): Add new field.
6186 (remote_enable_disable_tracepoint_feature): New.
6187 (remote_protocol_features): Add new entry.
6188 (remote_supports_enable_disable_tracepoint): New.
6189 (remote_enable_tracepoint): New.
6190 (remote_disable_tracepoint): New.
6191 (init_remote_ops): Add remote_enable_tracepoint,
6192 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6193 to remote operations.
6194 * tracepoint.c (start_tracing): Allow tracing to start without any
6195 tracepoints enabled with just a warning if they can be re-enabled
6196 later.
6197 * NEWS: Add news item for the new behaviour of the enable and disable
6198 GDB commands when applied to tracepoints.
6199 Add news items for the new remote packets QTEnable and QTDisable.
6200
cc88a640
JK
62012011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6202
6203 * config.in: Regenerate.
6204 * configure: Regenerate.
6205 * configure.ac <--with-system-readline> (for readline_echoing_p):
6206 Remove the test.
6207 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6208 (tui_old_rl_echoing_p): ... here.
6209 (tui_setup_io): Rename extern declaration readline_echoing_p to
6210 _rl_echoing_p. Adjust assignments for the both renames.
6211
1f84b619
TJB
62122011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6213
6214 * symtab.c (lookup_symtab): Run cleanup before returning.
6215
74ac6d43
TT
62162011-05-11 Tom Tromey <tromey@redhat.com>
6217
6218 * dwarf2read.c (handle_data_member_location): New function.
6219 (dwarf2_add_field): Use it.
6220 (read_common_block): Likewise.
6221
5488dafb
JK
62222011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6223
6224 Make addrs->SECTINDEX always defined.
6225 * symfile.c (relative_addr_info_to_section_offsets): Check for
6226 SECTINDEX -1, not for zero ADDR.
6227 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6228 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6229 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6230 on its validity.
6231
84e578fb
DE
62322011-05-10 Doug Evans <dje@google.com>
6233
2471d008
DE
6234 * linux-thread-db.c: Whitespace cleanup.
6235 (try_thread_db_load_1): Fix comment.
6236
84e578fb
DE
6237 * linux-thread-db.c (set_libthread_db_search_path): New function.
6238 (_initialize_thread_db): Add setter for libthread-db-search-path.
6239
673c2bbe
DE
62402011-05-09 Doug Evans <dje@google.com>
6241
478aac75
DE
6242 * NEWS: Mention --with-iconv-bin.
6243 * configure.ac: New option --with-iconv-bin.
6244 * configure: Regenerate.
6245 * config.in: Regenerate.
6246 * defs.h (relocate_gdb_directory): Declare.
6247 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6248 removed progname parameter, and exported. All callers updated.
6249 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6250
673c2bbe
DE
6251 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6252 adding missing call to restore_child_signals_mask.
6253
e4c8541f
PA
62542011-05-09 Pedro Alves <pedro@codesourcery.com>
6255
6256 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6257 parameter.
6258 * infrun.c (proceed, start_remote): Adjust.
6259 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6260 and adjust to not handle it.
6261 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6262 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6263 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6264 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6265 * windows-nat.c (do_initial_windows_stuff): Adjust.
6266 * infcmd.c (attach_command): Adjust.
6267 (notice_new_inferior): Adjust.
6268
a536c6d7
UW
62692011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6270
6271 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6272 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6273 * spu-tdep.c (op_selb): Use correct value.
6274
7845b013
UW
62752011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6276
6277 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6278 "parent" parameter to symbol_file_add_from_bfd call.
6279
9c06b0b4
TJB
62802011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6281 Thiago Jung Bauermann <bauerman@br.ibm.com>
6282
6283 Implement support for PowerPC BookE masked watchpoints.
6284 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6285 section.
6286 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6287 method. Initialize to NULL in all existing breakpoint_ops instances.
6288 (struct breakpoint) <hw_wp_mask>: New field.
6289 * breakpoint.c (is_masked_watchpoint): Add prototype.
6290 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6291 breakpoint's breakpoint_ops.works_in_software_mode if available.
6292 (watchpoints_triggered): Handle the case of a hardware masked
6293 watchpoint trigger.
6294 (watchpoint_check): Likewise.
6295 (works_in_software_mode_watchpoint): New function.
6296 (insert_masked_watchpoint, remove_masked_watchpoint)
6297 (resources_needed_masked_watchpoint)
6298 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6299 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6300 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6301 functions.
6302 (masked_watchpoint_breakpoint_ops): New structure.
6303 (watch_command_1): Check for the existence of the `mask' parameter.
6304 Set b->ops according to the type of hardware watchpoint being created.
6305 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6306 (ppc_linux_remove_mask_watchpoint)
6307 (ppc_linux_masked_watch_num_registers): New functions.
6308 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6309 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6310 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6311 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6312 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6313 (target_masked_watch_num_registers): New functions.
6314 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6315 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6316 methods.
6317 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6318 (target_masked_watch_num_registers): Add prototypes.
6319
8be455d7
JK
63202011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6321
6322 PR 12573
6323 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6324 (producer_is_gcc_ge_4_0): New function.
6325 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6326 symtab->language code.
6327 (var_decode_location): Set cu->has_loclist.
6328 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6329 skip. Intialize force_skip from locations_valid. Move the prologue
6330 skipping code into two passes.
6331 * symtab.h (struct symtab): Make the primary field a bitfield. New
6332 field locations_valid.
6333
d8228535
JK
63342011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6335
6336 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6337 (classify_inner_name): Call cp_lookup_nested_type with
6338 yylval.tsym.type.
6339 * cp-namespace.c (cp_lookup_nested_type): New variable
6340 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6341 type_name_no_tag_or_error with saved_parent_type.
6342 * dwarf2read.c (load_partial_dies): Read in any children of
6343 DW_TAG_typedef with complaint in such case.
6344 * gdbtypes.c (type_name_no_tag_or_error): New function.
6345 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6346 * valops.c (destructor_name_p): New comment for parameter type. Remove
6347 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6348 * value.h (destructor_name_p): Remove type const.
6349
1976171a
JK
63502011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6351
6352 * symtab.c (compare_symbol_name): New function.
6353 (completion_list_add_name, expand_partial_symbol_name): Call it,
6354 remove the variable ncmp.
6355 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6356 gdb_assert it.
6357
a9634178
TJB
63582011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6359
6360 Demote to sw watchpoint only in update_watchpoint.
6361 * breakpoint.c (update_watchpoint): Change between software and
6362 hardware watchpoint for all kinds of watchpoints, not just
6363 read/write ones. Determine b->exact value here instead of
6364 in watch_command_1. Error out if there are not enough resources
6365 for a read or access hardware watchpoint.
6366 (watch_command_1): Remove logic of checking whether there are
6367 enough resources available, since update_watchpoint will do that
6368 work now. Don't set b->exact here. Catch exceptions thrown by
6369 update_watchpoint and delete the watchpoint.
6370 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6371 Use target_exact_watchpoints instead.
6372 (delete_breakpoint): Notify observers only if deleted watchpoint
6373 has a breakpoint number assigned to it.
6374
4c67c798
JJ
63752011-05-05 Janis Johnson <janisjo@codesourcery.com>
6376
6377 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6378
a3fcb948
JG
63792011-05-05 Jerome Guitton <guitton@adacore.com>
6380
6381 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6382 New functions.
6383 (i386_stack_tramp_frame_unwind): New static global.
6384 (i386_match_pattern): New function, extracted from i386_match_insn.
6385 (i386_match_insn): Use i386_match_pattern.
6386 (i386_match_insn_block): New function.
6387 (i386_tramp_chain_in_reg_insns)
6388 (i386_tramp_chain_on_stack_insns): New static variables.
6389 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6390 of unwinders.
6391
4d393d60
JM
63922011-05-04 Joseph Myers <joseph@codesourcery.com>
6393
6394 * configure.host (xscale*): Don't handle target.
6395 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6396 handle targets.
6397
f70bd40b
YQ
63982011-05-04 Yao Qi <yao@codesourcery.com>
6399
6400 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6401
dd3295ee
JB
64022011-05-03 Joel Brobecker <brobecker@adacore.com>
6403
6404 Revert:
6405 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6406 | * elfread.c (elf_symtab_read): Stop memory leak.
6407
90375a0e
PM
64082011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6409
6410 * nto-tdep.c (nto_target): Replace deprecated call to
6411 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6412
d07205c2
JK
64132011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6414
6415 Fix false GCC warning.
6416 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6417
1e718ff1
TJB
64182011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6419
6420 * breakpoint.c (update_watchpoint): Move code to change
6421 the enable state of breakpoint from here ...
6422 (do_enable_breakpoint): ... to here.
6423
35bef4fd
TT
64242011-04-26 Andrew Gontarek <andrewg@cray.com>
6425
78290264
PP
6426 * valprint.c (val_print_array_elements): Fixed poor performance
6427 of printing very large arrays with repeat_count_threshold set
6428 to unlimited. New comment.
35bef4fd 6429
38a714bb
TT
64302011-04-29 Tom Tromey <tromey@redhat.com>
6431
6432 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6433 (mi_parse): Likewise.
6434 * breakpoint.c (break_range_command): Use sizeof char*, not
6435 char**.
6436 (create_breakpoint): Likewise.
6437 (parse_breakpoint_sals): Likewise.
6438
eb73ad13
PA
64392011-04-29 Pedro Alves <pedro@codesourcery.com>
6440
6441 * linux-nat.c (linux_child_remove_fork_catchpoint)
6442 (linux_child_remove_vfork_catchpoint)
6443 (linux_child_remove_exec_catchpoint): New functions.
6444 (linux_target_install_ops): Install them.
6445
d65aec65
PM
64462011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6447
6448 PR mi/12531
6449
6450 * varobj.c (install_default_visualizer): Do not install a
6451 visualizer if the varobj is CPLUS_FAKE_CHILD.
6452 (construct_visualizer): Likewise.
6453
165195f4
JK
64542011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6455
6456 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6457 case insensitive comparison.
6458
30852783
UW
64592011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6460
6461 * infrun.c (proceed): Revert previous change.
6462 (resume): Instead, handle the case of signal delivery while stepping
6463 off a breakpoint location here, and only if software single-stepping
6464 is used. Handle nested signals.
6465
7ff120b4
YQ
64662011-04-28 Yao Qi <yao@codesourcery.com>
6467
6468 * arm-tdep.c (copy_unmodified): Rename to ...
6469 (arm_copy_unmodified): .. this. New.
6470 (copy_preload): Move common part to ...
6471 (install_preload): .. this. New.
6472 (arm_copy_preload): New.
6473 (copy_preload_reg): Move common part to ...
6474 (install_preload_reg): ... this. New.
6475 (arm_copy_preload_reg): New.
6476 (copy_b_bl_blx): Move common part to ...
6477 (install_b_bl_blx): .. this. New.
6478 (arm_copy_b_bl_blx): New.
6479 (copy_bx_blx_reg): Move common part to ...
6480 (install_bx_blx_reg): ... this. New.
6481 (arm_copy_bx_blx_reg): New.
6482 (copy_alu_reg): Move common part to ...
6483 (install_alu_reg): ... this. New.
6484 (arm_copy_alu_reg): New.
6485 (copy_alu_shifted_reg): Move common part to ...
6486 (install_alu_shifted_reg): ... this. New.
6487 (copy_ldr_str_ldrb_strb): Move common part to ...
6488 (install_ldr_str_ldrb_strb): ... this. New.
6489 (arm_copy_ldr_str_ldrb_strb): New.
6490 (copy_copro_load_store): Move some common part to ...
6491 (install_copy_copro_load_store): ... this. New.
6492 (arm_copy_copro_load_store): New.
6493 (copy_svc): Delete.
6494 (arm_copy_svc): Renamed from copy_svc.
6495 (copy_undef): Delete.
6496 (arm_copy_undef): Renamed from copy_undef.
6497 (decode_ext_reg_ld_st): Delete.
6498 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6499 (decode_svc_copro): Delete.
6500 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6501 (copy_copro_load_store, copy_alu_imm): update callers.
6502 (copy_extra_ld_st, copy_block_xfer): Likewise.
6503 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6504 (decode_miscellaneous, decode_dp_misc): Likewise.
6505 (decode_ld_st_word_ubyte, decode_media): Likewise.
6506 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6507 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6508 (decode_unconditional, decode_miscellaneous): Likewise.
6509 (decode_media, decode_b_bl_ldmstm): Likewise.
6510 (arm_process_displaced_insn): Likewise..
6511 (decode_misc_memhint_neon): Delete.
6512 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6513 (decode_miscellaneous): Delete.
6514 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6515 (decode_dp_misc): Delete.
6516 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6517 (decode_ld_st_word_ubyte): Delete.
6518 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6519 (decode_media): Delete.
6520 (arm_decode_media): Renamed from decode_media.
6521 (decode_b_bl_ldmstm): Delete.
6522 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6523 (decode_ext_reg_ld_st): Delete.
6524 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6525 (decode_unconditional): Delete.
6526 (arm_decode_unconditional): Renamed from decode_unconditional.
6527
559a7a62
JK
65282011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 Case insensitive lookups implementation.
6531 * dwarf2read.c: Include ctype.h.
6532 (struct mapped_index): New field version.
6533 (mapped_index_string_hash): New parameter index_version. New comment
6534 for it. Call tolower appropriately.
6535 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6536 Choose the right index version for mapped_index_string_hash.
6537 (dwarf2_read_index): Support also the index version 5. Initialize the
6538 new struct mapped_index field version.
6539 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6540 (find_slot): Explain the version needs. Pass INT_MAX for the new
6541 parameter.
6542 (write_psymtabs_to_index): Produce version 5.
6543 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6544 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6545 * psymtab.c (lookup_partial_symbol): Find the
6546 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6547 entries.
6548 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6549 NAME lowercasing.
6550 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6551 (completion_list_add_name): New variable ncmp, initialize it, use it.
6552 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6553 * utils.c (strcmp_iw): Support case_sensitive_off.
6554 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6555 New function comment part. New variables saved_string1,
6556 saved_string2 and case_pass. Add a proper second pass.
6557
681bf369
JK
65582011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6559
6560 Replace re_comp/re_exec by regcomp/regexec.
6561 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6562 (search_symbols_name_matches): Use them, use regexec.
6563 (search_symbols): New variable retval_chain, adjust the use of
6564 old_chain against it. Replace re_comp by regcomp. Use the new struct
6565 search_symbols_data fields, use regexec instead of re_exec.
6566
b11b1f88
JK
65672011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6568
6569 Format the code for the next patch.
6570 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6571 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6572 New variables c1 and c2.
6573
2484c66b
UW
65742011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6575
6576 * infrun.c (proceed): Do not single-step into signal delivery
6577 when stepping off a breakpoint location.
6578 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6579 (insert_step_resume_breakpoint_at_caller): Likewise.
6580 (insert_step_resume_breakpoint_at_sal): Likewise.
6581 (insert_longjmp_resume_breakpoint): Likewise.
6582
47423772
YQ
65832011-04-27 Yao Qi <yao@codesourcery.com>
6584
6585 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6586
13bdd2e7
JB
65872011-04-27 Joel Brobecker <brobecker@adacore.com>
6588
6589 * procfs.c (procfs_pass_signals): Fix advance declaration.
6590
2455069d
UW
65912011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6592
6593 * target.h (struct target_ops): Remove to_notice_signals;
6594 add to_pass_signals.
6595 (target_notice_signals): Remove.
6596 (target_pass_signals): Add prototype.
6597 * target.c (update_current_target): Remove to_notice_signals;
6598 mention to_pass_signals.
6599 (target_pass_signals): New function.
6600 (debug_to_notice_signals): Remove.
6601 (setup_target_debug): Do not install debug_to_notice_signals.
6602
6603 * infrun.c (signal_pass): New global.
6604 (resume): Call target_pass_signals.
6605 (handle_inferior_event): Report all signals while stepping over
6606 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6607 are re-inserted when stepping over a signal handler.
6608 (signal_cache_update): New function.
6609 (signal_stop_update): Call it.
6610 (signal_print_update): Likewise.
6611 (signal_pass_update): Likewise.
6612 (handle_command): Call signal_cache_update and target_pass_signals
6613 instead of target_notice_signals.
6614 (_initialize_infrun): Initialize signal_pass.
6615
6616 * linux-nat.c (pass_mask): New global.
6617 (linux_nat_pass_signals): New function.
6618 (linux_nat_create_inferior): Report all signals initially.
6619 (linux_nat_attach): Likewise.
6620 (linux_nat_resume): Use pass_mask to decide whether to directly
6621 handle an inferior signal.
6622 (linux_nat_wait_1): Likewise.
6623 (linux_nat_add_target): Install to_pass_signals callback.
6624
6625 * nto-procfs.c (notice_signals): Remove.
6626 (procfs_resume): Do not call notice_signals.
6627 (procfs_notice_signals): Remove.
6628 (procfs_pass_signals): New function.
6629 (init_procfs_ops): Install to_pass_signals callback instead of
6630 to_notice_signals callback.
6631 (_initialize_procfs): Report all signals initially.
6632
6633 * procfs.c (procfs_notice_signals): Remove.
6634 (procfs_pass_signals): New function.
6635 (procfs_target): Install to_pass_signals callback instead of
6636 to_notice_signals callback.
6637 (register_gdb_signals): Remove.
6638 (procfs_debug_inferior): Report all signals initially.
6639 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6640
6641 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6642 parameters; use them instead of calling signal_..._state routines.
6643 (remote_notice_signals): Remove.
6644 (remote_start_remote): Report all signals initially.
6645 (remote_resume): Do not call remote_pass_signals.
6646 (_initialize_remote): Install to_pass_signals callback instead of
6647 to_notice_signals callback.
6648
46c6471b
PA
66492011-04-27 Pedro Alves <pedro@codesourcery.com>
6650
6651 * breakpoint.c (user_settable_breakpoint): Delete.
6652 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6653 (delete_command): Check user_breakpoint_p instead of looking at
6654 the breakpoint's type.
6655 (disable_command): Ditto.
6656 (enable_command): Ditto.
6657 (delete_trace_command): Use user_breakpoint_p instead of looking
6658 at the breakpoint number directly. When checking if there are
6659 user visible tracepoints, in order to know whether to ask the user
6660 for confirmation, check whether the breakpoint is actually a
6661 tracepoint.
6662
f6d90398
VP
66632011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6664
6665 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6666 compilation.
6667
8d3788bd
VP
66682011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6669
6670 MI breakpoint notifications.
6671
f33edef8
PP
6672 * annotate.c (breakpoint_changed): Adjust parameter type.
6673 * breakpoint.c (set_breakpoint_condition): Adjust to change
6674 in breakpoint_modified type.
6675 (breakpoint_set_commands): Likewise.
6676 (do_map_commands_command): Likewise.
6677 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6678 changed after bumping hit count.
6679 (bpstat_stop_status): Likewise.
6680 (print_one_breakpoint_location): Don't wrap in tuple here.
6681 (print_one_breakpoint): Always print individual locations.
6682 For locations, use unnamed tuple.
6683 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6684 has changed.
6685 (create_catchpoint, create_syscall_event_catchpoint): Call
6686 breakpoint_created obsever.
6687 (mention): Don't call breakpoint_created observer.
6688 (create_breakpoint_sal): Call breakpoint_created observer.
6689 (create_breakpoint, watch_command_1): Likewise.
6690 (create_ada_exception_breakpoint): Likewise.
6691 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6692 (locations_are_equal): New.
6693 (update_breakpoint_locations): If locations were changed, notify.
6694 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6695 Call breakpoint_modified observer.
6696
6697 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6698 (mi_cmd_break_insert): Don't set observers for modify and delete.
6699 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6700 (mi_breakpoint_created, mi_breakpoint_deleted)
6701 (mi_breakpoint_modified): New.
6702 (mi_interpreter_init): Hook the above.
6703 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6704 while -break-* commands are executing.
6705 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6706 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6707 (mi_redirect): New.
6708 (mi_ui_out_impl): Hook in mi_redirect.
6709 (mi_field_skip): True to the name, skip the field, don't output
6710 a field with an empty value.
6711
6712 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6713 (gdbpy_breakpoint_deleted): Adjust.
6714 * tui/tui-hooks.c (tui_event_create_breakpoint)
6715 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6716
a8f42b45
UW
67172011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6718
6719 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6720 (procfs_remove_hw_watchpoint): Likewise.
6721
57e12211
TT
67222011-04-26 Michael Walle <michael@walle.cc>
6723
6724 * remote.c (remote_start_remote): Ack packet after sending the
6725 interrupt sequence.
6726
af96c192
YQ
67272011-04-26 Yao Qi <yao@codesourcery.com>
6728
f33edef8
PP
6729 * linux-nat.c: Move common macros to ...
6730 Include linux-ptrace.h.
6731 * common/linux-ptrace.h: ... here. New.
af96c192 6732
3e03848b
JK
67332011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6736 !objfile_has_partial_symbols. New comment.
6737 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6738 SYM_READ_PSYMBOLS is not present. Extend the comment.
6739 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6740
1ae0d051
JK
67412011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6742
6743 * defs.h (ENUM_BITFIELD): Remove.
6744
03f2bd59
JK
67452011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6746 Eli Zaretskii <eliz@gnu.org>
6747
6748 * NEWS: Document the new gdbserver --once option.
6749
4161fbb0
JZ
67502011-04-21 Jie Zhang <jzhang918@gmail.com>
6751
6752 * MAINTAINERS: Update my email address.
6753
bcb28afc
PM
67542011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6755
6756 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6757 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6758 function call if __STDC_ISO_10646__ macro is defined.
6759 (intermediate_encoding): New prototype.
6760 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6761 to generate compile time error for unsupported gdb_wchar_t size.
6762 (ENDIAN_SUFFIX): New macro.
6763 (intermediate_encoding): New function.
6764
7b08b9eb
JK
67652011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6766
6767 * ada-lang.c (struct add_partial_datum): Update the comment for
6768 expand_partial_symbol_name.
6769 (ada_add_partial_symbol_completions): Rename to ...
6770 (ada_expand_partial_symbol_name): ... here, change return type, update
6771 function comment, call symbol_completion_match instead of
6772 symbol_completion_add.
6773 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6774 and ada_expand_partial_symbol_name.
6775 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6776 FILE_MATCHER.
6777 (dw2_map_symbol_names): Remove.
6778 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6779 * psymtab.c (map_symbol_names_psymtab): Remove.
6780 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6781 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6782 order.
6783 (psym_functions): Unlist map_symbol_names_psymtab.
6784 (map_partial_symbol_names): Rename to ...
6785 (expand_partial_symbol_names): ... here, change the FUN type, call
6786 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6787 * psymtab.h (map_partial_symbol_names): Rename to ...
6788 (expand_partial_symbol_names): ... here, change the FUN type.
6789 * symfile.h (struct quick_symbol_functions): Update the description of
6790 expand_symtabs_matching. Remove map_symbol_names.
6791 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6792 (struct add_name_data): Update the comment for
6793 expand_partial_symbol_name.
6794 (add_partial_symbol_name): Rename to ...
6795 (expand_partial_symbol_name): ... here. Replace
6796 completion_list_add_name call by strncmp.
6797 (default_make_symbol_completion_list_break_on): Use now
6798 expand_partial_symbol_names and expand_partial_symbol_name.
6799 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6800
90476074
TT
68012011-04-20 Tom Tromey <tromey@redhat.com>
6802
6803 * dwarf2read.c (save_gdb_index_command): Replace format
6804 documentation with a pointer to the manual.
6805
c21236dc
PA
68062011-04-20 Pedro Alves <pedro@codesourcery.com>
6807
6808 * regcache.c: Include remote.h.
6809 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6810 (regcache_dump): Handle regcache_dump_remote.
6811 (maintenance_print_remote_registers): New function.
6812 (_initialize_regcache): Install "maint print remote-registers"
6813 command.
6814 * remote.c (map_regcache_remote_table): New function, factored out
6815 from ...
6816 (init_remote_state): ... here.
6817 (remote_register_number_and_offset): New.
6818 * remote.h (remote_register_number_and_offset): Declare.
6819
b78974c3
PA
68202011-04-20 Pedro Alves <pedro@codesourcery.com>
6821
6822 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6823 null_ptid, assume and allow a NULL address space, instead of
6824 asking the target for the ptid's address space.
6825 * infrun.c (ptid_is_pid): Remove assertion.
6826
7a9dd1b2
TT
68272011-04-19 Tom Tromey <tromey@redhat.com>
6828
6829 * windows-tdep.c (windows_xfer_shared_library):
6830 * windows-nat.c (get_module_name, windows_make_so):
6831 * v850-tdep.c (v850_handle_pushm):
6832 * utils.c (null_cleanup, gdb_realpath):
6833 * ui-out.c (get_next_header):
6834 * tracepoint.c (clear_traceframe_info):
6835 * symtab.c (lookup_symtab):
6836 * serial.h (struct serial_ops):
6837 * mipsread.c (read_alphacoff_dynamic_symtab):
6838 * infcmd.c (print_return_value):
6839 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6840 * f-exp.y (parse_number):
6841 * exceptions.c (catch_exceptions):
6842 * dummy-frame.c (dummy_frame_this_id):
6843 * defs.h (struct cleanup):
6844 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6845 * arm-tdep.c (arm_push_dummy_call):
6846 * amd64-tdep.h (amd64_collect_xsave):
6847 * amd64-tdep.c (amd64_collect_xsave):
6848 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6849 * README (typing): Remove duplicate words.
6850 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6851 * infrun.c (siginfo_value_read): Fix typo.
6852 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6853 * top.c (source_line_number): Add comma.
6854
9941e0c5
MK
68552011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6856
6857 * thread.c (any_live_thread_of_process): Prioritize threads
6858 that are not executing.
6859 * gdbthread.h (any_live_thread_of_process): Update comment
6860 as per above change.
6861
ed4b0e6a
AS
68622011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6863
6864 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6865 (scan_xcoff_symtab): Likewise.
6866
9b13a2db
PM
68672011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6868
6869 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6870 inside if clause.
6871
1c6e1b0d
PM
68722011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6873 Pedro Alves <pedro@codesourcery.com>
6874
6875 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6876 variables to simplify code and avoid == operator at end of
6877 line as this is against GNU coding standards.
6878
74de0234
PM
68792011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6880
6881 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6882 lm_name to name_lm to avoid conflict with lm_name function.
6883
b23518f0
PM
68842011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6885
6886 ARI fixes: Use only lowercase function name for static functions.
6887 * nto-tdep.c (LM_ADDR): Rename to...
6888 (lm_addr): New function name.
6889 (nto_relocate_section_addresses): Adapt to change above.
6890 * solib-sunos.c (LM_ADDR): Rename to...
6891 (lm_addr): New function name.
6892 (LM_NEXT): Rename to...
6893 (lm_next): New function name.
6894 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6895 function name changes above.
6896 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6897 (lm_addr_from_link_map): New function name.
6898 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6899 (has_lm_dynamic_from_link_map): New function name.
6900 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6901 (lm_dynamic_from_link_map): New function name.
6902 (LM_ADDR_CHECK): Rename to...
6903 (lm_addr_check): New function name.
6904 (LM_NEXT): Rename to...
6905 (lm_next): New function name.
6906 (LM_PREV): Rename to...
6907 (lm_prev): New function name.
6908 (LM_NAME): Rename to...
6909 (lm_name): New function name.
6910 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6911 (ignore_first_link_map_entry): New function name.
6912 (svr4_keep_data_in_core): Adapt to function name changes above.
6913 (svr4_current_sos): Likewise.
6914 (enable_break): Likewise.
6915 (svr4_relocate_section_addresses): Likewise.
6916
1448a0a2
PM
69172011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6918
6919 ARI cleanup.
6920 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6921 sprintf. Simplify code and avoid loosing memory.
6922 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6923 (call0_frame_cache): Remove && operator from end of line.
6924
02835898
JK
69252011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6926
6927 Fix libraries displacement if they change whether they were prelinked.
6928 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6929 does not match. Comment why.
6930
9a845ea2
JK
69312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6932
6933 * corelow.c: Include wrapper.h.
6934 (core_open): Call now gdb_target_find_new_threads.
6935 * wrapper.c: Include target.h.
6936 (gdb_target_find_new_threads): New.
6937 * wrapper.h (gdb_target_find_new_threads): New declaration.
6938
254f582e
JK
69392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6940
6941 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6942 even if !TARGET_HAS_EXECUTION.
6943
63524580
JK
69442011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6945
6946 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6947 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6948 bfd_get_synthetic_symtab.
6949 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6950 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6951 parameter parent, remove the call to add_separate_debug_objfile.
6952 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6953 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6954 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6955 parent, new comment for it, call add_separate_debug_objfile for it.
6956 (symbol_file_add_separate): Pass objfile as the parameter parent,
6957 remove the call to add_separate_debug_objfile.
6958 (symbol_file_add_from_bfd): New parameter parent, pass it.
6959 (symbol_file_add): Pass NULL to the new parameter parent.
6960 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6961
90359a16
JK
69622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6963
6964 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6965 BSF_SYNTHETIC.
6966
626e7282
JK
69672011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6968
6969 Fix Python access to inlined frames.
6970 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6971 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6972
cf31e6f9
TT
69732011-04-15 Tom Tromey <tromey@redhat.com>
6974
6975 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6976
c8d895f1
GB
69772011-04-15 Gary Benson <gbenson@redhat.com>
6978
6979 * MAINTAINERS: Add myself to write-after-approval section.
6980
56a9aa1d
MF
69812011-04-14 Mike Frysinger <vapier@gentoo.org>
6982
6983 * remote-sim.c (sim_command_completer): New function.
6984 (_initialize_remote_sim): Set completer to sim_command_completer.
6985
ba770c9c
TJB
69862011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6987
6988 * breakpoint.c (print_exception_catchpoint): Rename to ...
6989 (print_it_exception_catchpoint): ... this.
6990 (gnu_v3_exception_catchpoint_ops): Update with new name
6991 for print_it_exception_catchpoint.
6992
51bf2553
EBM
69932011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6994
6995 * MAINTAINERS: Add myself for write after approval privileges.
6996
d242658c
MP
69972011-04-13 Marek Polacek <mpolacek@redhat.com>
6998
6999 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7000
4a4106ca
TJB
70012011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7002
7003 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7004
26063d49
TJB
70052011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7006
7007 * breakpoint.c (save_breakpoints): Verify whether
7008 breakpoint_ops.print_recreate is defined before calling it.
7009
7782b183
GB
70102011-04-11 Gary Benson <gbenson@redhat.com>
7011
7012 Fix failure with --enable-maintainer-mode.
7013 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7014
e8930875
JK
70152011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7016
7017 Code cleanup.
7018 * symtab.c (search_symbols): Reorder the KIND description in the
7019 function comment. Remove the unused 4th element of types, types2,
7020 types3 and types4. New gdb_assert on KIND.
7021 (symtab_symbol_info): Remove the unused 4th element of classnames.
7022 New gdb_assert on KIND.
7023 * symtab.h (enum search_domain): New warning in the enum comment.
7024 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7025 TYPES_DOMAIN.
7026
b4f2f049
JK
70272011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7028
7029 Fix crash of gdb save-index on a STABS file.
7030 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7031 PSYMTABS_ADDRMAP.
7032
60d5a603
JK
70332011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7034
7035 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7036 * dwarf2read.c: Include ctype.h.
7037 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7038 functions.
7039 (dwarf2_add_field): Fix new_field->accessibility by calling
7040 dwarf2_default_access_attribute. Restructure setting accessibility
7041 vs. virtuality.
7042 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7043 is_private and is_protected by calling
7044 dwarf2_default_access_attribute.
7045
e0f68161
KB
70462011-04-08 Kevin Buettner <kevinb@redhat.com>
7047
7048 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7049 to the initialization.
7050
2e1aae43
SE
70512011-04-08 Steve Ellcey <sje@cup.hp.com>
7052
7053 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7054 initalization.
7055
c6ca3dab
PM
70562011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7057
7058 Remove support for old Cygwin 1.5 versions.
7059 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7060 function on old Cygwin version.
7061 * windows-nat.c: Remove cygwin version check and always define
7062 __USEWIDE for Cygwin compilation.
7063
bd18283a
YQ
70642011-04-07 Yao Qi <yao@codesourcery.com>
7065
7066 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7067 and TO.
7068 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7069 (arm_copy_svc): Remove parameters INSN and TO.
7070 (decode_svc_copro): Update caller.
7071 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7072 from function pointer `copy_svc_os'.
7073
8c8dba6d
YQ
70742011-04-07 Yao Qi <yao@codesourcery.com>
7075
7076 * arm-tdep.c (cleanup_branch): Set a correct return address in
7077 LR for ARM and Thumb.
7078
59d7bcaf
JK
70792011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 Code cleanup.
7082 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7083 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7084 in the function comment, a new note on values compatibility.
7085 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7086 * symtab.h (SYMBOL_HASH_NEXT): New.
7087
e7db58ea
TJB
70882011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7089
7090 * ppc-linux-nat.c (check_condition): Add len output parameter.
7091 Set it based on the memory region referenced in the condition
7092 expression. Update all callers.
7093
9f743ef6
JK
70942011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 Fix crash regression on systems featuring .gdb_index.
7097 * objfiles.c (free_objfile): Move the
7098 forget_cached_source_info_for_objfile call earlier. Comment it.
7099 Extend the comment for objfile_free_data.
7100
9182c5bc
JK
71012011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 Fix regression of displaying the debug format.
7104 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7105 subfile.
7106
04bd08de
TT
71072011-04-04 Tom Tromey <tromey@redhat.com>
7108
7109 * cli/cli-interp.c (struct captured_execute_command_args):
7110 Remove.
7111 (do_captured_execute_command): Remove.
7112 (safe_execute_command): Use TRY_CATCH.
7113 * cli/cli-script.c (struct wrapped_read_command_file_args):
7114 Remove.
7115 (wrapped_read_command_file): Remove.
7116 (script_from_file): Use TRY_CATCH.
7117 * exceptions.c (catch_exception): Remove.
7118 * exceptions.h (catch_exception): Remove.
7119 (deprecated_throw_reason): Update comment.
7120 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7121 argument to 'context'.
7122 (mi_execute_command): Use TRY_CATCH.
7123 * remote.c (struct start_remote_args): Remove.
7124 (remote_start_remote): Update; change arguments.
7125 (remote_open_1): Use TRY_CATCH.
7126
58438ac1
TT
71272011-04-04 Tom Tromey <tromey@redhat.com>
7128
7129 * tracepoint.c (scope_info): Update.
7130 * symtab.c (decode_line_spec): Update.
7131 * python/python.c (gdbpy_decode_line): Update.
7132 * linespec.h (decode_line_1): Update.
7133 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7134 (decode_compound, find_method, symtab_from_filename)
7135 (decode_variable): Likewise.
7136 * cli/cli-cmds.c (edit_command): Update.
7137 (list_command): Update.
7138 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7139 argument.
7140 (create_breakpoint): Update.
7141 (until_break_command): Update.
7142 (addr_string_to_sals): Update.
7143 (decode_line_spec_1): Update.
7144
b78a6381
TT
71452011-04-04 Tom Tromey <tromey@redhat.com>
7146
7147 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7148 (do_captured_parse_breakpoint): Remove.
7149 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7150 Use TRY_CATCH directly.
7151
00174a86
TT
71522011-04-04 Tom Tromey <tromey@redhat.com>
7153
7154 * symtab.h (free_symtab): Remove.
7155 (forget_cached_source_info_for_objfile): Declare.
7156 * symmisc.c (free_symtab): Remove.
7157 * source.c (forget_cached_source_info_for_objfile): New function.
7158 (forget_cached_source_info): Use it.
7159 * objfiles.c (free_objfile): Simplify check before calling
7160 clear_current_source_symtab_and_line. Call
7161 forget_cached_source_info_for_objfile.
7162
30cc903e
TT
71632011-04-04 Tom Tromey <tromey@redhat.com>
7164
7165 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7166 (new_symtab): Don't set `free_code' on symtab.
7167 (new_linetable): Properly handle size==0.
7168 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7169 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7170 free_func.
7171 * jv-lang.c (struct jv_per_objfile_data): New.
7172 (jv_per_objfile_free): Free the data.
7173 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7174 (get_java_class_symtab): Set the `dict' field on the
7175 jv_per_objfile_data.
7176 (free_class_block): Remove.
7177 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7178 the symtab.
7179
0c2e6019
TT
71802011-04-04 Tom Tromey <tromey@redhat.com>
7181
7182 * symfile.c (reread_symbols): Update.
7183 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7184 field.
7185 * objfiles.c (allocate_objfile): Update.
7186 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7187 declare.
7188 * cp-namespace.c (lookup_symbol_file): Don't call
7189 lookup_possible_namespace_symbol.
7190 (initialize_namespace_symtab, get_possible_namespace_block)
7191 (free_namespace_block, cp_check_possible_namespace_symbols)
7192 (check_possible_namespace_symbols_loop)
7193 (check_one_possible_namespace_symbol)
7194 (lookup_possible_namespace_symbol): Remove.
7195 (maintenance_cplus_namespace): Replace with notice.
7196 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7197
554d387d
TT
71982011-04-04 Tom Tromey <tromey@redhat.com>
7199
7200 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7201 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7202 * symmisc.c (free_symtab): Don't free debugformat.
7203 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7204 (record_debugformat, record_producer): Document.
7205 * buildsym.c (end_symtab): Don't save debugformat and producer
7206 names on obstack.
7207 (end_symtab): Don't free debugformat and producer fields.
7208 (record_debugformat): Don't call xstrdup.
7209 (record_producer): Likewise.
7210
d4d4db8a
TT
72112011-04-04 Tom Tromey <tromey@redhat.com>
7212
7213 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7214 (source_line_charpos, source_charpos_line): Remove.
7215
8903c50d
TT
72162011-04-04 Tom Tromey <tromey@redhat.com>
7217
7218 * symtab.h (domain_enum): Split in two...
7219 (enum search_domain): New.
7220 (search_symbols): Update.
7221 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7222 redundant declarations.
7223 (search_symbols): Change 'kind' argument to search_domain.
7224 Update.
7225 (print_symbol_info): Likewise.
7226 (symtab_symbol_info): Likewise.
7227 * symfile.h (struct quick_symbol_functions)
7228 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7229 <expand_symtabs_matching>: Likewise.
7230 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7231 (expand_symtabs_matching_via_partial): Update.
7232 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7233 (dw2_expand_symtabs_for_function): Update.
7234 * block.h: Moved anonymous enum...
7235 * defs.h (enum block_enum): ... here. Now named.
7236
d9351f5f 72372011-04-03 Joel Brobecker <brobecker@adacore.com>
7238
7239 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7240 * version.in: Bump version to 7.3.50.20110403-cvs.
7241
d6e00af6
JB
72422011-04-03 Joel Brobecker <brobecker@adacore.com>
7243
7244 * NEWS: Create a new section for the next release branch.
7245 Rename the section of the current branch, now that it has
7246 been cut.
7247
2b9e5ea6
UW
72482011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7249
7250 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7251 for "fpscr" in target description.
7252
0cf03b49
JK
72532011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7254
7255 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7256 initialize it. Delay HASH initialization. Strip the part after open
7257 parenthesis for languages with qualifiers. Call do_cleanups.
7258
5d901a73
TT
72592011-04-01 Tom Tromey <tromey@redhat.com>
7260
7261 * utils.c (report_command_stats): Don't print `-' for negative
7262 number.
7263
b0dd7688
JB
72642011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7265
7266 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7267 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7268 typedefs.
7269
956a9fb9
JB
72702011-04-01 Joel Brobecker <brobecker@adacore.com>
7271
7272 * breakpoint.h (bpdisp_text): Add declaration.
7273 * breakpoint.c (bpdisp_text): Make non-static.
7274 * ada-lang.c: #include "mi/mi-common.h".
7275 (print_it_exception): Rewrite to improve GDB/MI output.
7276
3352110b
PA
72772011-04-01 Pedro Alves <pedro@codesourcery.com>
7278
7279 * arm-tdep.h (struct address_space): Add forward declaration.
7280
18819fa6
UW
72812011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7282
7283 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7284 * arm-tdep.c (arm_override_mode): New global.
7285 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7286 execution mode heuristics.
7287 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7288 second single-step breakpoint if needed, using
7289 arm_insert_single_step_breakpoint.
7290 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7291 ARM execution mode, do not call thumb_get_next_pc_raw.
7292 (arm_get_next_pc): Encode execution mode in return value. Call
7293 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7294 (arm_insert_single_step_breakpoint): New function.
7295 (arm_software_single_step): Call it.
7296 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7297 argument to return execution mode of sigreturn target.
7298 (arm_linux_syscall_next_pc): Use it.
7299 (arm_linux_copy_svc): Update call.
7300 (arm_linux_software_single_step): Call
7301 arm_insert_single_step_breakpoint.
7302
a6e293d1
JK
73032011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7304
7305 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7306 the comment.
7307
a4c8e806
TT
73082011-03-31 Tom Tromey <tromey@redhat.com>
7309
7310 * varobj.c (update_dynamic_varobj_children): Properly handle
7311 errors from iterator.
7312
df5c6c50
JK
73132011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7316 struct linkage name twice.
7317
1dae3efc
TT
73182011-03-31 Tom Tromey <tromey@redhat.com>
7319
7320 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7321 missing ">" to message.
7322
f4f7ab05
TT
73232011-03-31 Tom Tromey <tromey@redhat.com>
7324
7325 * varobj.c (instantiate_pretty_printer): Remove duplicate
7326 'return'.
7327
fcf250e2
UW
73282011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7329
7330 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7331 if neither saved value nor register available (e.g. signal frame).
7332
ee6436e3
TJB
73332011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7334
7335 * macroexp.c (expand): Avoid uninitialized variable
7336 compiler warning.
7337
423f41a5
TJB
73382011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7339
7340 * breakpoint.c (break_range_command): Fix typo in comment.
7341
f1310107
TJB
73422011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7343 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7344
7345 Implement support for PowerPC BookE ranged breakpoints.
7346 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7347 * breakpoint.h (struct bp_target_info) <length>: New member
7348 variable.
7349 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7350 instead of struct breakpoint as argument, and also add ASPACE
7351 and BP_ADDR arguments. Update all callers.
7352 (struct breakpoint_ops) <print_one_detail>: New method.
7353 (struct breakpoint) <addr_string_range_end>: New member variable.
7354 * breakpoint.c (breakpoint_location_address_match): Add function
7355 prototype.
7356 (insert_bp_location): Set bl->target_info.length.
7357 (breakpoint_here_p): Call breakpoint_location_address_match.
7358 (moribund_breakpoint_here_p): Likewise.
7359 (regular_breakpoint_inserted_here_p): Likewise.
7360 (breakpoint_thread_match): Likewise.
7361 (bpstat_stop_status): Likewise.
7362 (bpstat_check_location): Move call to
7363 breakpoint_ops.breakpoint_hit to the top.
7364 (print_one_breakpoint_location): Call
7365 breakpoint_ops.print_one_detail if available.
7366 (breakpoint_address_match_range): New function.
7367 (breakpoint_location_address_match): Likewise.
7368 (breakpoint_locations_match): Compare the length field of the
7369 locations too.
7370 (hw_breakpoint_used_count): Count resources used by all locations
7371 in a breakpoint, and use breakpoint_ops.resources_needed if
7372 available.
7373 (breakpoint_hit_ranged_breakpoint): New function.
7374 (resources_needed_ranged_breakpoint): Likewise.
7375 (print_it_ranged_breakpoint): Likewise.
7376 (print_one_ranged_breakpoint): Likewise.
7377 (print_one_detail_ranged_breakpoint): Likewise.
7378 (print_mention_ranged_breakpoint): Likewise.
7379 (print_recreate_ranged_breakpoint): Likewise.
7380 (ranged_breakpoint_ops): New structure.
7381 (find_breakpoint_range_end): New function.
7382 (break_range_command): Likewise.
7383 (delete_breakpoint): Free addr_string_range_end.
7384 (update_breakpoint_locations): Add SALS_END argument. Update
7385 all callers. Calculate breakpoint length if a non-zero SALS_END
7386 is given. Call breakpoint_locations_match instead of
7387 breakpoint_address_match.
7388 (reset_breakpoint): Find SaL of the end of the range if B is a
7389 ranged breakpoint.
7390 (_initialize_breakpoint): Register break-range command.
7391 * defs.h (print_core_address): Add function prototype.
7392 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7393 function.
7394 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7395 (ppc_linux_remove_hw_breakpoint): Likewise.
7396 (_initialize_ppc_linux_nat): Initialize
7397 to_ranged_break_num_registers.
7398 * target.c (update_current_target): Add comment about
7399 to_ranged_break_num_registers.
7400 (target_ranged_break_num_registers): New function.
7401 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7402 New method.
7403 (target_ranged_break_num_registers): Add function prototype.
7404 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7405 * utils.c (print_core_address): ... here.
7406
02d20e4a
UW
74072011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7408
7409 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7410 variable compiler warning.
7411
ef23e705
TJB
74122011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7413
7414 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7415 code from here ...
7416 (re_set_breakpoint): ... to here ...
7417 (addr_string_to_sals): ... and here.
7418
311e6ab3
PM
74192011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7420
7421 * Makefile.in (SFILES): Add missing C sources.
7422 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7423 Add missing headers.
7424
acd1d99c
MF
74252011-03-29 Mike Frysinger <vapier@gentoo.org>
7426
7427 * .gitignore: New file.
7428
66ee2731
MF
74292011-03-29 Mike Frysinger <vapier@gentoo.org>
7430
7431 * NEWS: Mention new cfi device simulation.
7432
53832f31
TT
74332011-03-29 Tom Tromey <tromey@redhat.com>
7434
7435 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7436 otherwise anonymous types.
7437 (dwarf2_name): Likewise.
7438 * valops.c (value_struct_elt_for_reference): Refine artificial
7439 type logic. Call error if j==-1.
7440
09b58708
JK
74412011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7442
7443 Fix false GCC warning.
7444 * infcall.c (find_function_addr): Initialize funaddr.
7445
6023c606
PM
74462011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7447
7448 Fix mingw compilation with --enable-targets=all.
7449 * remote-mips.c (gdb_usleep.h): Include header.
7450 (mips_enter_debug): Use gdb_usleep instead of sleep.
7451
0e30163f
JK
74522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7453
7454 Support resolution of STT_GNU_IFUNC via breakpoints.
7455 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7456 bp_gnu_ifunc_resolver_return.
7457 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7458 the loop. Support bp_gnu_ifunc_resolver and
7459 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7460 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7461 breakpoints.
7462 (bptype_string, print_one_breakpoint_location): Support
7463 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7464 (user_settable_breakpoint): Return true also for
7465 bp_gnu_ifunc_resolver.
7466 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7467 bp_gnu_ifunc_resolver_return.
7468 (set_breakpoint_location_function): New parameter explicit_loc,
7469 describe it. Call find_pc_partial_function_gnu_ifunc with new
7470 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7471 EXPLICIT_LOC is not set.
7472 (set_raw_breakpoint): Set EXPLICIT_LOC for
7473 set_breakpoint_location_function.
7474 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7475 set_breakpoint_location_function.
7476 (mention): Support bp_gnu_ifunc_resolver and
7477 bp_gnu_ifunc_resolver_return.
7478 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7479 set_breakpoint_location_function.
7480 (update_breakpoint_locations): Remove static.
7481 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7482 bp_gnu_ifunc_resolver_return.
7483 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7484 bp_gnu_ifunc_resolver_return.
7485 (update_breakpoint_locations): New declaration.
7486 * elfread.c: Include gdbthread.h and regcache.h.
7487 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7488 functions.
7489 (elf_gnu_ifunc_fns): Install them.
7490 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7491 (stub_gnu_ifunc_resolver_return_stop): New functions.
7492 (stub_gnu_ifunc_fns): Install them.
7493 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7494 and gnu_ifunc_resolver_return_stop.
7495 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7496
07be84bf
JK
74972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7498
7499 STT_GNU_IFUNC reader implementation.
7500 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7501 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7502 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7503 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7504 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7505 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7506 (elf_gnu_ifunc_resolve_addr): New.
7507 (elf_symfile_read): Call elf_rel_plt_read.
7508 (elf_gnu_ifunc_fns): New.
7509 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7510 Install elf_gnu_ifunc_fns.
7511 * infcall.c (find_function_return_type): New function.
7512 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7513 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7514 (stub_gnu_ifunc_resolve_name): New functions.
7515 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7516 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7517 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7518
300f8e10
JK
75192011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 Code cleanup for later STT_GNU_IFUNC support.
7522 * infcall.c (find_function_addr): Remove variable code, use explicit
7523 dereferences for it. Move VALUE_TYPE initialization later.
7524
11c81455
JK
75252011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7528 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7529 (clear_pc_function_cache): Clear it.
7530 (find_pc_partial_function): Rename to ...
7531 (find_pc_partial_function_gnu_ifunc): ... this function. New
7532 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7533 (find_pc_partial_function): New wrapper for this function.
7534 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7535
0875794a
JK
75362011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7537
7538 GDB internal type support for STT_GNU_IFUNC.
7539 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7540 (elf_symtab_read): Set mst_text_gnu_ifunc for
7541 BSF_GNU_INDIRECT_FUNCTION.
7542 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7543 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7544 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7545 nodebug_got_plt_symbol.
7546 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7547 (TYPE_GNU_IFUNC): New.
7548 (struct main_type): New field flag_gnu_ifunc.
7549 (struct builtin_type): New field builtin_func_func.
7550 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7551 nodebug_got_plt_symbol.
7552 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7553 (in_gnu_ifunc_stub): New.
7554 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7555 mst_text_gnu_ifunc.
7556 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7557 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7558 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7559 in_gnu_ifunc_stub.
7560 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7561 * symtab.c (search_symbols): Likewise.
7562 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7563 and mst_slot_got_plt.
7564 (in_gnu_ifunc_stub): New declaration.
7565
d0fb5eae
JK
75662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 Support a ring of related breakpoints.
7569 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7570 other functions, add gdb_assert.
7571 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7572 watchpoint_del_at_next_stop.
7573 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7574 (bpstat_stop_status): Handle ring in related_breakpoint.
7575 (set_raw_breakpoint_without_location): Initialize ring in
7576 related_breakpoint.
7577 (delete_breakpoint): Handle ring in related_breakpoint, use
7578 watchpoint_del_at_next_stop.
7579 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7580
9cded63f
TT
75812011-03-28 Tom Tromey <tromey@redhat.com>
7582
7583 PR symtab/12441:
7584 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7585 with `language_minimal'.
7586
467d42c4
UW
75872011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7588
7589 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7590 instead of checking for STT_ARM_TFUNC symbol type.
7591
62853458
TT
75922011-03-25 Tom Tromey <tromey@redhat.com>
7593
7594 * linespec.c (symbol_found): Restore line-based result for
7595 non-LOC_LABEL symbols.
7596
a7417d46
KT
75972011-03-25 Kai Tietz <ktietz@redhat.com>
7598
7599 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7600 instead of strcmp for comparison.
7601 (tui_source_is_displayed): Likewise.
7602 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7603
55f1336d
TT
76042011-03-24 Mark Wielaard <mjw@redhat.com>
7605
f33edef8
PP
7606 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7607 complaint.
7608 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7609 (find_partial_die_in_comp_unit): Likewise in comment.
7610 (read_attribute_value): Likewise.
7611 (lookup_die_type): Likewise.
7612 (dwarf_form_name): Likewise.
7613 (dump_die_shallow): Likewise.
7614 (follow_die_ref_or_sig): Likewise.
55f1336d 7615
9ef07c8c
TT
76162011-03-24 Tom Tromey <tromey@redhat.com>
7617
7618 PR breakpoints/11816:
7619 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7620 (decode_compound): Update.
7621 (find_function_symbol): New function.
7622 (decode_dollar): Update.
7623 (decode_label): Add 'function_symbol' parameter. Handle
7624 function-relative labels.
7625 (decode_variable): Update.
7626 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7627 not its line. Set `special_display' and canonical name for
7628 labels.
7629
56435ebe
TT
76302011-03-24 Tom Tromey <tromey@redhat.com>
7631
7632 * linespec.h (struct linespec_result) <special_display>: New
7633 field.
7634 * breakpoint.h (struct breakpoint) <display_canonical>: New
7635 field.
7636 * breakpoint.c (print_breakpoint_location): Respect
7637 display_canonical.
7638 (create_breakpoint_sal): Add 'display_canonical' parameter.
7639 (create_breakpoints_sal): Update.
7640 (create_breakpoint): Update.
7641
7efd8fc2
TT
76422011-03-24 Tom Tromey <tromey@redhat.com>
7643
7644 * symtab.c (decode_line_spec): Update.
7645 * linespec.c (build_canonical_line_spec): Change type of
7646 'canonical'.
7647 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7648 (find_method, decode_all_digits, decode_dollar, decode_label)
7649 (symbol_found): Likewise.
7650 (init_linespec_result): New function.
7651 * breakpoint.c (struct captured_parse_breakpoint_args)
7652 <canonical_p>: New field, replaces addr_string_p.
7653 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7654 'addr_string'.
7655 (parse_breakpoint_sals): Likewise.
7656 (do_captured_parse_breakpoint): Update.
7657 (create_breakpoint): Use struct linespec_result.
7658 (until_break_command): Update.
7659 (breakpoint_re_set_one): Update.
7660 (decode_line_spec_1): Update.
7661 * linespec.h (struct linespec_result): New.
7662 (init_linespec_result): Declare.
7663
788c8b10
PA
76642011-03-23 Pedro Alves <pedro@codesourcery.com>
7665
7666 * regcache.c (regcache_raw_read): If the target didn't supply a
7667 given raw register, mark it as unavailable.
7668
0ba1096a
KT
76692011-03-23 Kai Tietz <ktietz@redhat.com>
7670
7671 * breakpoint.c (clear_command): Use filename_cmp
7672 instead of strcmp for comparison.
7673 * buildsym.c (watch_main_source_file_lossage): Likewise.
7674 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7675 checking just for slash.
7676 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7677 strrchr and filename_cmp instead of strcmp for filenames.
7678 (add_old_header_file): Use filename_cmp
7679 instead of strcmp for comparison.
7680 * exec.c (exec_set_section_address): Likewise.
7681 * macrotab.c (macro_lookup_inclusion): Likewise.
7682 (macro_lookup_inclusion): Likewise.
7683 * elfread.c (_initialize_elfread): Likewise.
7684 (elfstab_offset_sections): Likewise.
7685 (elfstab_offset_sections): Use lbasename instead of
7686 strrchr.
7687 * mdebugread.c (parse_partial_symbols): Likewise.
7688 (arse_partial_symbols): Use filename_(n)cmp instead of
7689 str(n)cmp for comparison.
7690 * minsyms.c (lookup_minimal_symbol): Likewise.
7691 * psymtab.c (read_psymtabs_with_filename): Likewise.
7692 * solib.c (solib_read_symbols): Likewise.
7693 (reload_shared_libraries_1): Likewise.
7694 * symmisc.c (maintenance_print_symbols): Likewise.
7695 * symfile.c (separate_debug_file_exists): Likewise.
7696 (reread_symbols): Likewise.
7697 (find_separate_debug_file_by_debuglink): Likewise.
7698 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7699 * source.c (add_path): Likewise.
7700 * symtab.c (filename_seen): Likewise.
7701 (file_matches): Likewise.
7702 (print_symbol_info): Likewise.
7703 (maybe_add_partial_symtab_filename): Likewise.
7704 (make_source_files_completion_list): Likewise.
7705 * xml-syscall.c (init_sysinfo): Likewise.
7706 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7707 IS_DIR_SEPARATOR for checking for trailing path separator.
7708
dd90784c
JK
77092011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7712 label abort_expression.
7713 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7714 DWARF_VALUE_OPTIMIZED_OUT.
7715
3167638f
JK
77162011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7717
7718 Code cleanup.
7719 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7720 to linkage_name. Invert its value. Update the function comment.
7721 (c_type_print_varspec_suffix): Invert it at the caller.
7722 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7723
ce406537
PA
77242011-03-22 Pedro Alves <pedro@codesourcery.com>
7725
7726 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7727 errors when reading the `stop_pc'.
7728 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7729 get_frame_pc.
7730
da5d4055
PM
77312011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7732
7733 * NEWS: Document gdb.Write stream keyword.
7734
29e0eb9c
JK
77352011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7736
7737 Revert:
7738 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7739 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7740 (dwarf2_add_field): Fix new_field->accessibility for
7741 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7742
05775840
PM
77432011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7744
f33edef8 7745 PR python/12183
05775840
PM
7746
7747 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7748 other error classes. Do not print stack trace.
7749
a0cb7835
JK
77502011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7751
7752 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7753 (dwarf2_add_field): Fix new_field->accessibility for
7754 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7755
d19f7eee
UW
77562011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7757
7758 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7759 encountering a load via a non-SP register.
7760
4a2fbb50
UW
77612011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7762
7763 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7764 field in returned unwinder.
7765
3489610d
JB
77662012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7769
8c1a34e7
JB
77702012-03-21 Joel Brobecker <brobecker@adacore.com>
7771
7772 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7773 of xmalloc.
7774
8fbca658
PA
77752012-03-18 Pedro Alves <pedro@codesourcery.com>
7776
7777 * frame.c (frame_unwind_register): Throw an error if unwinding the
7778 register failed.
7779 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7780 an unwind stop reason.
7781 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7782 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7783 UNWIND_UNAVAILABLE>: New.
7784 * inline-frame.c (inline_frame_unwind): Install
7785 default_frame_unwind_stop_reason.
7786 * frame-unwind.c: Include "exceptions.h".
7787 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7788 (default_frame_unwind_stop_reason): New.
7789 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7790 (default_frame_unwind_stop_reason): Declare.
7791 (struct frame_unwind) <stop_reason>: New function pointer.
7792
7793 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7794 * dwarf2-frame.c: Include exceptions.h.
7795 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7796 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7797 computing the CFA. If such an error was thrown, set
7798 unavailable_retaddr.
7799 (dwarf2_frame_unwind_stop_reason): New.
7800 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7801 unavailable.
7802 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7803 (dwarf2_signal_frame_unwind): Ditto.
7804
7805 * amd64-tdep.c: Include "exceptions.h".
7806 (struct amd64_frame_cache): New field "base_p".
7807 (amd64_init_frame_cache): Clear it.
7808 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7809 Avoid reading registers with functions that throw if the register
7810 is not necessary to compute the frame base.
7811 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7812 swallowing NOT_AVAILABLE_ERROR.
7813 (amd64_frame_unwind_stop_reason): New.
7814 (amd64_frame_this_id): Don't build a frame id if the frame base
7815 was unavailable.
7816 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7817 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7818 base_p if the frame base was computable.
7819 (amd64_sigtramp_frame_unwind_stop_reason): New.
7820 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7821 frame base was unavailable.
7822 (amd64_sigtramp_frame_unwind): Install
7823 amd64_sigtramp_frame_unwind_stop_reason.
7824 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7825 base_p if the frame base was computable.
7826 (amd64_epilogue_frame_unwind_stop_reason): New.
7827 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7828 frame base was unavailable.
7829 (amd64_epilogue_frame_unwind): Install
7830 amd64_epilogue_frame_unwind_stop_reason.
7831 * i386-tdep.c: Include "exceptions.h".
7832 (struct i386_frame_cache): New field "base_p".
7833 (i386_init_frame_cache): Clear it.
7834 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7835 Avoid reading registers with functions that throw if the register
7836 is not necessary to compute the frame base.
7837 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7838 swallowing NOT_AVAILABLE_ERROR.
7839 (i386_frame_unwind_stop_reason): New.
7840 (i386_frame_this_id): Don't build a frame id if the frame base was
7841 unavailable.
7842 (i386_frame_prev_register): Handle unavailable SP.
7843 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7844 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7845 base_p if the frame base was computable.
7846 (i386_epilogue_frame_unwind_stop_reason): New.
7847 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7848 base was unavailable.
7849 (i386_epilogue_frame_unwind): Install
7850 i386_epilogue_frame_unwind_stop_reason.
7851 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7852 base_p if the frame base was computable.
7853 (i386_sigtramp_frame_unwind_stop_reason): New.
7854 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7855 base was unavailable.
7856 (i386_sigtramp_frame_unwind): Install
7857 i386_sigtramp_frame_unwind_stop_reason.
7858 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7859 type's size, not the register's.
7860 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7861
7862 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7863 default_frame_unwind_stop_reason.
7864 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7865 (alpha_heuristic_frame_unwind): Ditto.
7866 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7867 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7868 * avr-tdep.c (avr_frame_unwind): Ditto.
7869 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7870 Ditto.
7871 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7872 * frv-tdep.c (frv_frame_unwind): Ditto.
7873 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7874 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7875 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7876 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7877 (hppa_stub_frame_unwind): Ditto.
7878 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7879 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7880 (ia64_libunwind_frame_unwind)
7881 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7882 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7883 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7884 * m32c-tdep.c (m32c_unwind): Ditto.
7885 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7886 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7887 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7888 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7889 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7890 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7891 * mep-tdep.c (mep_frame_unwind): Ditto.
7892 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7893 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7894 (mips_stub_frame_unwind): Ditto.
7895 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7896 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7897 * mt-tdep.c (mt_frame_unwind): Ditto.
7898 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7899 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7900 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7901 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7902 (s390_sigtramp_frame_unwind): Ditto.
7903 * score-tdep.c (score_prologue_unwind): Ditto.
7904 * sh-tdep.c (sh_frame_unwind): Ditto.
7905 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7906 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7907 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7908 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7909 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7910 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7911 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7912 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7913 (sparc64obsd_trapframe_unwind): Ditto.
7914 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7915 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7916 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7917 * v850-tdep.c (v850_frame_unwind): Ditto.
7918 * vax-tdep.c (vax_frame_unwind): Ditto.
7919 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7920 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7921 * xtensa-tdep.c (xtensa_unwind): Ditto.
7922
f23d1b92
PA
79232011-03-18 Pedro Alves <pedro@codesourcery.com>
7924
7925 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7926 there's always a frame. Use get_frame_pc_if_available instead of
7927 get_frame_pc, and if there's no PC available, don't look up a
7928 symtab.
7929
1d4f5741
PA
79302011-03-18 Pedro Alves <pedro@codesourcery.com>
7931
7932 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7933 unavailable PC.
7934
dba09041
PA
79352011-03-18 Pedro Alves <pedro@codesourcery.com>
7936
7937 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7938 gracefully.
7939
9a26e44c
PA
79402011-03-18 Pedro Alves <pedro@codesourcery.com>
7941
7942 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7943 * frame.c (frame_unwind_caller_pc_if_available): New.
7944 * stack.c (frame_info): Handle unavailable PC.
7945
79462011-03-18 Pedro Alves <pedro@codesourcery.com>
7947
7948 * frame.c (frame_unwind_pc): Rename to ...
7949 (frame_unwind_pc_if_available): ... this. New `pc' output
7950 parameter. Change return type to int. Gracefully handle
7951 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7952 happened, or 1 otherwise.
7953 (frame_unwind_pc): Reimplement on top of
7954 frame_unwind_pc_if_available.
7955 (get_frame_func): Rename to ...
7956 (get_frame_func_if_available): New `pc' output parameter. Change
7957 return type to int. Gracefully handle the PC not being available.
7958 (get_frame_func): Reimplement on top of
7959 get_frame_func_if_available.
7960 (select_frame): Handle the PC being unavailable.
7961 (get_prev_frame): Handle the PC being unavailable.
7962 (get_frame_pc_if_available): New.
7963 (get_frame_address_in_block_if_available): New.
7964 (find_frame_sal): Handle the frame PC not being available.
7965 * frame.h (get_frame_pc_if_available): Declare.
7966 (get_frame_address_in_block_if_available): Declare.
7967 (get_frame_func_if_available): Declare.
7968 * stack.c (print_frame_info): Handle the PC being unavailable.
7969 (find_frame_funname): Ditto.
7970 (print_frame): Handle the PC being unavailable.
7971 (get_frame_language): Ditto.
7972 * blockframe.c (get_frame_block): Ditto.
7973 * macroscope.c (default_macro_scope): Ditto.
7974 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7975
79762011-03-18 Pedro Alves <pedro@codesourcery.com>
7977
7978 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7979 NOT_AVAILABLE_ERROR when evaluating the location expression.
7980
79812011-03-18 Pedro Alves <pedro@codesourcery.com>
7982
7983 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7984 returning that the register piece is unavailable/optimized out.
7985 (write_pieced_value): Handle get_frame_register_bytes returning
7986 that the register piece is unavailable/optimized out when doing a
7987 read-modify write of a bitfield.
7988 * findvar.c (value_from_register): Handle get_frame_register_bytes
7989 returning that the register piece is unavailable/optimized out.
7990 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7991 and `unavailablep'. Throw error on bad debug info. Use
7992 frame_register instead of frame_register_read, to fill in the new
7993 arguments.
7994 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7995 and `unavailablep'.
7996 * valops.c: (value_assign): Adjust, and handle
7997 get_frame_register_bytes failing.
7998 * spu-tdep.c: Include exceptions.h.
7999 (spu_software_single_step): Adjust, and handle
8000 get_frame_register_bytes failing.
8001 (spu_get_longjmp_target): Ditto.
8002 * gdbarch.sh (register_to_value): Change to return int. New
8003 parameters `optimizedp' and `unavailablep'.
8004 * gdbarch.h, gdbarch.c: Regenerate.
8005 * i386-tdep.c (i386_register_to_value): Adjust to new
8006 gdbarch_register_to_value interface.
8007 * i387-tdep.c (i387_register_to_value): Ditto.
8008 * i387-tdep.h (i387_register_to_value): Ditto.
8009 * alpha-tdep.c (alpha_register_to_value): Ditto.
8010 * ia64-tdep.c (ia64_register_to_value): Ditto.
8011 * m68k-tdep.c (m68k_register_to_value): Ditto.
8012 * mips-tdep.c (mips_register_to_value): Ditto.
8013 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8014
0fdb4f18
PA
80152011-03-18 Pedro Alves <pedro@codesourcery.com>
8016
8017 * findvar.c (value_of_register): Mark the value as unavailable, if
8018 the register is unavailable.
8019 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8020 (frame_register): New `unavailablep' parameter.
8021 (frame_register_read): Update comment.
8022 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8023 Set it if the register is unavailable. If the register is
8024 unavailable, clear the output buffer.
8025 (frame_register): New `unavailablep' parameter. Pass it down.
8026 (frame_unwind_register): Adjust.
8027 (put_frame_register): Adjust.
8028 (frame_register_read): Adjust. Also return false if the register
8029 is not available.
8030 (frame_register_unwind_location): Adjust.
8031 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8032 is unavailable, mark the value accordingly.
8033 * stack.c (frame_info): Handle unavailable registers.
8034
e69aa73e
PA
80352011-03-18 Pedro Alves <pedro@codesourcery.com>
8036
8037 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8038 simplify, using regcache_cooked_read.
8039
05d1431c
PA
80402011-03-18 Pedro Alves <pedro@codesourcery.com>
8041
8042 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8043 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8044 (regcache_raw_read_unsigned, regcache_raw_read_part)
8045 (regcache_cooked_read, regcache_cooked_read_signed)
8046 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8047 (regcache_cooked_read_ftype): Change return to enum
8048 register_status.
8049 * regcache.c: Include exceptions.h
8050 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8051 (do_cooked_read): Change return to enum register_status. Always
8052 forward to regcache_cooked_read.
8053 (regcache_raw_read): Change return to enum register_status. If
8054 the register is not REG_VALID, memset the buffer. Return the
8055 register's status.
8056 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8057 return the register's status.
8058 (regcache_raw_read_unsigned): Ditto.
8059 (regcache_cooked_read): Change return to enum register_status.
8060 Assert that with read-only regcaches, the register's status must
8061 be known. If the regcache is read-only, and the register is not
8062 REG_VALID, memset the buffer. Return the register's status.
8063 (regcache_cooked_read_signed): Change return to enum
8064 register_status. Handle non-REG_VALID registers and return the
8065 register's status.
8066 (regcache_cooked_read_unsigned): Change return to enum
8067 register_status. Handle non-REG_VALID registers and return the
8068 register's status.
8069 (regcache_xfer_part, regcache_raw_read_part)
8070 (regcache_cooked_read_part): Change return to enum
8071 register_status. Return the register's status.
8072 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8073 unavailable.
8074 (regcache_dump): Handle unavailable cooked registers.
8075 * frame.c (do_frame_register_read): Adjust interface to match
8076 regcache_cooked_read_ftype.
8077 * gdbarch.sh (pseudo_register_read): Change return to enum
8078 register_status.
8079 * gdbarch.h, gdbarch.c: Regenerate.
8080
8081 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8082 register_status.
8083 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8084 register_status. If reading a raw register indicates the raw
8085 register is not valid, return the raw register's status,
8086 otherwise, return REG_VALID.
8087 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8088 register_status. Handle non-REG_VALID raw registers and return
8089 the register's status.
8090 * arm-tdep.c (arm_neon_quad_read)
8091 (arm_pseudo_read): Change return to enum register_status. Handle
8092 non-REG_VALID raw registers and return the register's status.
8093 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8094 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8095 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8096 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8097 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8098 register_status.
8099 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8100 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8101 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8102 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8103 (m32c_pseudo_register_read): Change return to enum
8104 register_status. Adjust.
8105 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8106 enum register_status. Return the register's status.
8107 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8108 register_status. Return the register's status.
8109 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8110 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8111 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8112 * rs6000-tdep.c (move_ev_register_func): New typedef.
8113 (e500_move_ev_register): Use it. Change return to enum
8114 register_status. Return the register's status.
8115 (do_regcache_raw_read): New function.
8116 (do_regcache_raw_write): New function.
8117 (e500_pseudo_register_read): Change return to enum
8118 register_status. Return the register's status. Use
8119 do_regcache_raw_read.
8120 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8121 (dfp_pseudo_register_read): Change return to enum register_status.
8122 Return the register's status.
8123 (vsx_pseudo_register_read): Ditto.
8124 (efpr_pseudo_register_read): Ditto.
8125 (rs6000_pseudo_register_read): Ditto.
8126 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8127 register_status. Return the register's status.
8128 * sh64-tdep.c (pseudo_register_read_portions): New function.
8129 (sh64_pseudo_register_read): Change return to enum
8130 register_status. Use pseudo_register_read_portions. Return the
8131 register's status.
8132 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8133 register_status. Return the register's status.
8134 * sh-tdep.c (pseudo_register_read_portions): New function.
8135 (sh_pseudo_register_read): Change return to enum register_status.
8136 Use pseudo_register_read_portions. Return the register's status.
8137 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8138 enum register_status. Return the register's status.
8139 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8140 * spu-tdep.c (spu_pseudo_register_read_spu)
8141 (spu_pseudo_register_read): Ditto.
8142 * xtensa-tdep.c (xtensa_register_read_masked)
8143 (xtensa_pseudo_register_read): Ditto.
8144 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8145
e10abd8f
PM
81462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8147
8148 * python/py-value.c (valpy_getitem): Fix formatting of error function
8149 call.
8150
7ea6d463
PM
81512011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8152
8153 ARI fixes: Add missing internationalization markups throughout
8154 C source files.
8155 * darwin-nat-info.c: Ditto.
8156 * record.c: Ditto.
8157 * remote.c: Ditto.
8158 * mi/mi-main.c: Ditto.
8159
001083c6
PM
81602011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8161
8162 ARI fixes: Add missing internationalization markups throughout
8163 yacc files.
8164 * c-exp.y: Ditto.
8165 * cp-name-parser.y: Ditto.
8166 * f-exp.y: Ditto.
8167 * m2-exp.y: Ditto.
8168 * objc-exp.y: Ditto.
8169 * p-exp.y: Ditto.
8170
4f1cdeec
PM
81712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8172
8173 ARI fixes: Messages should have no trailing new lines.
8174 * darwin-nat.c (mach_check_error): Remove trailing new line from
8175 warning function call message.
8176 * record.c (bfdcore_read): Idem for error call.
8177
28e698f1
PM
81782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8179
8180 * common/signals.c (target_signal_from_host): Add _ markup to error
8181 function call message.
8182 (target_signal_to_host): Add _ markup and remove trailing new line
8183 from warning call message.
8184 (target_signal_from_command): Add _ markup to error function call
8185 message.
8186
99c3dc11
PM
81872011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8188
f33edef8 8189 PR python/12149
99c3dc11
PM
8190
8191 * python/python.c (gdbpy_write): Accept a stream argument and
8192 operate to the appropriate stream.
8193 (gdbpy_flush): Likewise.
8194 (_initialize_python): Add stream constants.
8195 (finish_python_initialization): Add GdbOutputErrorFile class.
8196
c20800be
KY
81972011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8198
8199 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8200
f4a1794a
KY
82012011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8202
8203 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8204 to store_signed_integer. Add debug message when relocating CALL
8205 instructions. Fix formatting of debug message.
8206 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8207
d4862372
JB
82082011-03-17 Joel Brobecker <brobecker@gnat.com>
8209
8210 * target.h (struct target_ops): Remove to_lookup_symbol field.
8211 (target_lookup_symbol): Delete macro.
8212 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8213 (update_current_target, setup_target_debug): Remove handling
8214 of to_lookup_symbol target_ops field.
8215 * ada-tasks.c (get_known_tasks_addr): Remove use of
8216 target_lookup_symbol.
8217 * coffread.c (coff_symtab_read): Likewise.
8218 * dbxread.c (read_dbx_symtab): Ditto.
8219
d645e32e
JB
82202011-03-17 Joel Brobecker <brobecker@gnat.com>
8221
8222 PR gdb/12116:
8223 * configure.ac: Add getthrds declaration check.
8224 * configure, config.in: Regenerate.
8225 * aix-thread.c (getthrds): Declare only if not already declared
8226 in procinfo.h. More declaration out of get_signaled_thread to
8227 global scope.
8228
29703da4
PM
82292011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8230
8231 * python/py-symtab.c: Populate symtab_object_methods,
8232 sal_object_methods.
8233 (stpy_is_valid): New function.
8234 (salpy_is_valid): Ditto.
8235 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8236 (sympy_is_valid): New function.
8237 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8238 (objfpy_is_valid): New function.
8239 * python/py-inferior.c: Populate inferior_object_methods.
8240 (infpy_is_valid): New function.
8241 * python/py-infthread.c: Populate thread_object_methods.
8242 (thpy_is_valid): New function.
8243 * python/py-block.c: Declare block_object_methods. Populate. Declare
8244 block_iterator_object_methods. Populate.
8245 (blpy_is_valid): New function.
8246 (blpy_iter_is_valid): Ditto.
8247
c00f8484
KS
82482011-03-16 Keith Seitz <keiths@redhat.com>
8249
8250 * linespec.c (find_methods): Canonicalize NAME before looking
8251 up the symbol.
8252 (name_end): New function.
8253 (keep_name_info): New function.
8254 (decode_line_1): Use keep_name_info.
8255 (decode_compound): Likewise.
8256 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8257 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8258
8259 PR c++/12273
8260 * linespec.c (locate_first_half): Keep overload information, too.
8261 (decode_compound): Use a string to represent break characters
8262 to escape the loop.
8263 If P points to a break character, do not increment it.
8264 For C++ and Java, keep overload information and relevant keywords.
8265 If we cannot find a symbol, search the minimal symbols.
8266
8267 PR c++/11734
8268 * linespec.c (decode_compound): Rename SAVED_ARG to
8269 THE_REAL_SAVED_ARG.
8270 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8271 single-quotes.
8272 Pass a valid block to lookup_symbol.
8273 (lookup_prefix_sym): Likewise.
8274 (find_method): Construct search name based on SYM_CLASS instead
8275 of SAVED_ARG.
8276 * psymtab.c (lookup_partial_symbol): Add language parameter.
8277 (lookup_symbol_aux_psymtabs): Likewise.
8278 Don't assume that the psymtab we found was the right one. Search
8279 for the desired symbol in the symtab to be certain.
8280 (psymtab_search_name): New function.
8281 (lookup_partial_symbol): Use psymtab_search_name.
8282 Add language parameter.
8283 (read_symtabs_for_function): Add language parameter and pass to
8284 lookup_partial_symbol.
8285 (find_symbol_file_from_partial): Likewise.
8286
c91513d8
PP
82872011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8288
8289 PR gdb/12528
8290 * dwarf2read.c (noop_record_line): New function.
8291 (dwarf_decode_lines): Ignore line tables for GCd functions.
8292
b37520b6
PM
82932011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8294
8295 Fix ARI warnings about new lines at the end of messages, which
8296 are unneeded as there is a new line added at the end of the message
8297 automatically.
8298 * darwin-nat.c (darwin_stop_inferior): Ditto.
8299 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8300 * dfp.c (decimal_to_number): Ditto.
8301 * exec.c (print_section_info): Ditto.
8302 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8303 * osdata.c (get_osdata): Ditto.
8304 * record.c (bfdcore_write): Ditto.
8305 * remote-mips.c (mips_readchar): Ditto.
8306 * remote.c (read_ptid): Ditto.
8307 * ser-mingw.c (ser_windows_raw): Ditto.
8308 * tracepoint.c (add_local_symbols): Ditto.
8309 * windows-nat.c (fake_create_process): Ditto.
8310
b08ee6a2
TT
83112011-03-16 Tom Tromey <tromey@redhat.com>
8312
8313 * tracepoint.c (stop_tracing): Don't declare.
8314 * event-top.c (after_char_processing_hook): Add `(void)'.
8315
9a6f1302
PM
83162011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8317
8318 * NEWS: Add Parameter sub-classing description.
8319
7ceb86b1
KT
83202011-03-16 Kai Tietz <ktietz@redhat.com>
8321
8322 * MAINTAINERS: Update my e-mail address.
8323
efeff6cf
AT
83242011-03-15 Andreas Tobler <andreast@fgznet.ch>
8325
8326 * MAINTAINERS: Add myself for write after approval privileges.
8327
681c238c
MS
83282011-03-15 Michael Snyder <msnyder@vmware.com>
8329
f3df5b08
MS
8330 * frame.c (find_frame_sal): Assert sym is not null.
8331
13f6513c
MS
8332 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8333
50412521
MS
8334 * objc-lang.c (selectors_info): Check strchr for null result.
8335
681c238c
MS
8336 * stabsread.c (define_symbol): Guard against bad stabstring input.
8337
6ced1581
PM
83382011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8339
8340 Remove trailing spaces and tabulations from pascal language
8341 support sources.
8342 p-exp.y: Ditto.
8343 p-lang.c: Ditto.
8344 p-lang.h: Ditto.
8345 p-valprint.c: Ditto.
8346
9373cf26
JK
83472011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8350 than LOW. Comment it.
8351 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8352 HIGHPC not strictly higher than LOWPC.
8353
9a1edae6
PM
83542011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8355
8356 Fix formatting of function declarations returning a pointer in
8357 previous commit.
8358 * varobj.c (varobj_add_child): Ditto.
8359 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8360 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8361
24e9cda0
UW
83622011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8363
8364 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8365 for the "generic" vector ABI used with GCC 4.3 and later.
8366 (ppc64_sysv_abi_return_value): Likewise.
8367
83682011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8369
8370 * infcall.c (call_function_by_hand): Function return value is
8371 always a non_lval, even when using struct_return.
8372
c9174737
PA
83732011-03-15 Pedro Alves <pedro@codesourcery.com>
8374
8375 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8376 (map_display_numbers): New.
8377 (do_delete_display): New.
8378 (undisplay_command): Use map_display_numbers.
8379 (do_enable_disable_display): New.
8380 (enable_disable_display_command): New function.
8381 (enable_display): Delete.
8382 (enable_display_command): New.
8383 (disable_display_command): Reimplement.
8384 (_initialize_printcmd): Adjust "enable display" command to use
8385 `enable_display_command' as callback.
8386
350c6c65
PM
83872011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8388
8389 * NEWS: Add Python breakpoint 'stop' operation.
8390
824446ad
PM
83912011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8392
8393 * NEWS: Delete duplicate entry. Fix typo.
8394
2021ad3a
PM
83952011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8396
8397 Fix ARI warning about function names in first column.
8398 Put prototype declaration on same line as return type.
8399 * objc-exp.y: Ditto.
8400 * p-exp.y: Ditto.
8401 * python/py-stopevent.h: Ditto.
8402 For long function names, split parameters to
8403 allow function name on same line as return type.
8404 * solib-pa64.c: Ditto.
8405 * varobj.c: Ditto.
8406 * varobj.h: Ditto.
8407 For long function declaration, use single line.
8408 * hppa-tdep.h: Ditto.
8409 * inferior.h: Ditto.
8410
7371cf6d
PM
84112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8412
8413 * python/python.h: Declare gdbpy_should_stop and
8414 gdbpy_breakpoint_has_py_cond.
8415 * python/python.c: Add python.h to includes. Remove python.h from
8416 HAVE_PYTHON definition
8417 (gdbpy_should_stop): New dummy function.
8418 (gdbpy_breakpoint_has_py_cond): New dummy function.
8419 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8420 sub-classing capabilities.
8421 (gdbpy_should_stop): New function.
8422 (gdbpy_breakpoint_has_py_cond): New function.
8423 (local_setattro): New function.
8424 * breakpoint.c (condition_command): Add check for Python 'stop'
8425 operation.
8426 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8427 operation function as part of stop/continue tests.
8428
37b50a69
TT
84292011-03-14 Tom Tromey <tromey@redhat.com>
8430
8431 PR gdb/12576:
8432 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8433 (needs_frame_dwarf_call): Likewise.
8434
eeae04df
PM
84352011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8436
8437 Fix ARI warning about functions without parameters that do not
8438 use (void).
8439 * breakpoint.c (all_tracepoints): Replace () by (void).
8440 * f-exp.y (match_string_literal): Ditto.
8441 (yylex): Ditto.
8442 * m2-exp.y (yylex): Ditto.
8443 * mep-tdep.c (current_me_module): Ditto.
8444 (current_options): Ditto.
8445 (current_cop_data_bus_width): Ditto.
8446 (current_cr_names): Ditto.
8447 (current_cr_is_float): Ditto.
8448 (current_ccr_names): Ditto.
8449 * objc-exp.y (yylex): Ditto.
8450 * p-exp.y (yylex): Ditto.
8451 * remote.c (send_interrupt_sequence): Ditto.
8452 * tracepoint.c (current_trace_status): Ditto.
8453 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8454 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8455
6dc3565d
MS
84562011-03-11 Michael Snyder <msnyder@vmware.com>
8457
1427fe5e
MS
8458 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8459 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8460 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8461 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8462 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8463
60bc018f
MS
8464 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8465 (delete_async_event_handler): Ditto.
8466
f3be5b64
MS
8467 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8468
4c2d5724
MS
8469 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8470
6dc3565d
MS
8471 * top.c (set_verbose): Assert showcmd was found.
8472
4e6ca6d5
MG
84732011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8474
8475 * xtensa-tdep.c (warning_once): Correct style issues.
8476
815a83e4
YQ
84772011-03-11 Yao Qi <yao@codesourcery.com>
8478
8479 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8480
f2eb0bc8
AS
84812011-03-11 Andreas Schwab <schwab@redhat.com>
8482
8483 * common/aclocal.m4: Remove.
8484
b801de47
MG
84852011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8486
8487 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8488 (xtensa_write_register, xtensa_read_register): Likewise.
8489 (xtensa_hextochar): Removed.
8490 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8491
dbab50de
MG
84922011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8493
8494 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8495 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8496 (xtensa_alloc_frame_cache): Add initialization for new fields.
8497 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8498 (warning_once): New function.
8499 (xtensa_insn_kind): New item c0opc_and.
8500 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8501 (call0_track_op): Change arguments. New local variable litbase.
8502 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8503 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8504 in the prologue.
dbab50de 8505 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8506 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8507 Add the variety of updates to handle extended prologues, which now can
8508 conduct dynamic stack adjustments.
8509 (call0_frame_cache): Likewise.
8510 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8511 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8512
b2c04452
MS
85132011-03-10 Michael Snyder <msnyder@vmware.com>
8514
f8f67713
MS
8515 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8516 (cmd_qtframe): Ditto.
8517 (cmd_qtbuffer): Ditto.
8518 (cmd_bigqtbuffer): Ditto.
8519
197f0a60
TT
85202011-03-10 Tom Tromey <tromey@redhat.com>
8521
8522 * tracepoint.c (trace_actions_command): Update.
8523 * thread.c (thread_apply_command): Update.
8524 * reverse.c (delete_bookmark_command): Update.
8525 (bookmarks_info): Update.
8526 * printcmd.c (undisplay_command): Update.
8527 * memattr.c (mem_enable_command): Update.
8528 (mem_disable_command): Update.
8529 (mem_delete_command): Update.
8530 * inferior.c (detach_inferior_command): Update.
8531 (kill_inferior_command): Update.
8532 (remove_inferior_command): Update.
8533 * cli/cli-utils.h (struct get_number_or_range_state): New.
8534 (init_number_or_range): Declare.
8535 (get_number_or_range): Update.
8536 * cli/cli-utils.c (init_number_or_range): New function.
8537 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8538 static variables.
8539 (number_is_in_list): Update.
8540 * breakpoint.h (get_tracepoint_by_number): Update.
8541 * breakpoint.c (map_breakpoint_numbers): Update for change to
8542 get_number_or_range.
8543 (find_location_by_number): Use get_number, not
8544 get_number_or_range.
8545 (trace_pass_set_count): New function.
8546 (trace_pass_command): Update for change to get_number_or_range.
8547 Rework loop logic.
8548 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8549 'state' parameter.
8550
ecec24e6
PM
85512011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8552
8553 * python/py-param.c (add_setshow_generic): Add set/show callback
8554 parameters. Register Python object context.
8555 (get_show_value): New function.
8556 (get_set_value): New function.
8557 (call_doc_function): New function.
8558 (get_doc_string): Move behind get_show_value/get_set_value.
8559
6d6c6b1f
JK
85602011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8561
8562 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8563
68d6df83
MG
85642011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8565
dbab50de 8566 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8567 (xtensa_write_register): Likewise.
8568 (xtensa_hextochar): Add comment and update to match coding conventions.
8569 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8570 (execute_l32e, execute_s32e, execute_code): Update comments.
8571 (xtensa_exception_handler_t): Update to match coding conventions.
8572 (xtensa_insn_kind): Likewise.
8573
85c9d6a6
MS
85742011-03-09 Michael Snyder <msnyder@vmware.com>
8575
8576 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8577
91495617
PA
85782011-03-09 Pedro Alves <pedro@codesourcery.com>
8579
8580 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8581
eb8c0621
TT
85822011-03-09 Tom Tromey <tromey@redhat.com>
8583
8584 * thread.c (restore_selected_frame): Handle frame_level == -1.
8585 (make_cleanup_restore_current_thread): Use
8586 get_selected_frame_if_set.
8587 * frame.h (get_selected_frame_if_set): Declare.
8588 * frame.c (get_selected_frame_if_set): New function.
8589
9f37bbcc
PA
85902011-03-09 Pedro Alves <pedro@codesourcery.com>
8591
8592 * cli/cli-cmds.c (shell_escape): Use lbasename.
8593 * coffread.c (coff_start_symtab): Constify parameter.
8594 (complete_symtab): Constify `name' parameter.
8595 (coff_symtab_read): Constify `filestring' local.
8596 (coff_getfilename): Constify return and `result' local.
8597 Use lbasename.
8598 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8599 * linux-fork.c (info_checkpoints_command): Use lbasename.
8600 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8601 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8602 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8603 * procfs.c (procfs_make_note_section): Use lbasename.
8604 * tui/tui-io.c (printable_part): Constity return and parameter.
8605 Use lbasename.
8606 (print_filename): Constify parameters, and local `s'.
8607 (tui_rl_display_match_list): Constify local `temp'.
8608
f8de3c55
JK
86092011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 Revert:
8612 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8613 Fix DWARF-3+ DW_AT_accessibility default assumption.
8614 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8615 cu->header.version >= 3.
8616
d9837b00
YQ
86172011-03-09 Yao Qi <yao@codesourcery.com>
8618
8619 * common/Makefile.in: Remove.
8620 * common/configure: Remove.
8621 * common/configure.ac: Remove.
8622
e637a4f5
YQ
86232011-03-09 Yao Qi <yao@codesourcery.com>
8624
8625 Revert:
8626 2011-02-11 Yao Qi <yao@codesourcery.com>
8627
8628 * common/Makefile.in: Add copyright header.
8629
8630 2011-02-11 Yao Qi <yao@codesourcery.com>
8631
8632 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8633 libcommon.a.
8634 * configure.ac: Add common to sub dir.
8635 * configure: Regenerate.
8636
f976a05d
MG
86372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8638
8639 * xtensa-tdep.c (call0_ret): New function.
8640 (xtensa_skip_prologue): Speed up analysis.
8641
57041825
MG
86422011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8643
8644 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8645 while executing MI command -data-list-changed-registers.
8646
08b9c608
MG
86472011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8648
8649 * xtensa-tdep.c (xtensa_read_register): New function.
8650 (xtensa_write_register): New function.
8651 (xtensa_find_register_by_name): New function.
8652 (xtensa_windowed_frame_cache): Update comments in type description.
8653 (xtensa_frame_cache): Likewise.
8654 (xtensa_window_interrupt_insn): New function.
8655 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8656 (xtensa_insn_kind): Add new instructions.
8657 (rwx_special_register): New function.
8658 (call0_classify_opcode): Add new instructions to the analysis.
8659 (a0_saved, a7_saved, a11_saved): New variables.
8660 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8661 (execute_l32e): New function.
8662 (execute_s32e): New function.
8663 (xtensa_exception_handler_t): New type.
8664 (execute_code): New function.
8665 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8666 analysis for Xtensa Window Exception handlers.
8667
4d1acb11
MG
86682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8669
98689b25
MG
8670 * xtensa-tdep.c (TX_PS): New.
8671 (windowing_enabled): Update to count for Call0 ABI.
8672 (xtensa_hextochar): New.
8673 (xtensa_init_reggroups): Make algorithm generic.
8674 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8675
86762011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8677
8678 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8679
d3f323f3
MS
86802011-03-08 Michael Snyder <msnyder@vmware.com>
8681
3dcabaa8
MS
8682 * i386-tdep.c (i386_follow_jump): Check return value of
8683 target_read_memory.
8684 (i386_analyze_struct_return): Ditto.
8685 (i386_skip_probe): Ditto.
8686 (i386_match_insn): Ditto.
8687 (i386_skip_noop): Ditto.
8688 (i386_analyze_frame_setup): Ditto.
8689 (i386_analyze_register_saves): Ditto.
8690 (i386_skip_prologue): Ditto.
8691 (i386_skip_main_prologue): Ditto.
8692
13b3fd9b
MS
8693 * target.c (read_whatever_is_readable): Fix memory leak.
8694
d3f323f3
MS
8695 * i386-tdep.c (i386_process_record): Document fall through.
8696
421d5c74
JK
86972011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8698
8699 Fix DWARF-3+ DW_AT_accessibility default assumption.
8700 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8701 cu->header.version >= 3.
8702
63154eca
PA
87032011-03-08 Pedro Alves <pedro@codesourcery.com>
8704
8705 * remote.c (remote_check_symbols): Skip if the target has no
8706 execution.
8707
f1a507a1
JB
87082011-03-08 Joel Brobecker <brobecker@adacore.com>
8709
8710 * target.c (read_whatever_is_readable): Reformat comment,
8711 with a minor typo fix. Minor reformatting of the code.
8712
36073a92
YQ
87132011-03-08 Yao Qi <yao@codesourcery.com>
8714
8715 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8716 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8717 Use cached result instead of calling displaced_in_arm_mode again.
8718 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8719 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8720 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8721 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8722 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8723 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8724 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8725 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8726 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8727 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8728 (arm_catch_kernel_helper_return): Likewise.
8729 * gdb/arm-tdep.h : Update function declarations.
8730
d3f323f3 87312011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8732
e0e40094
MS
8733 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8734
0b2381f5
MS
8735 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8736
0350914a
MS
8737 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8738
69feea6f
MS
8739 * elfread.c (elf_symtab_read): Stop memory leak.
8740
e6040cbd
MS
8741 * main.c (captured_main): Fix memory leak.
8742
052874e8
AS
87432011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8744
8745 * ada-lang.c (compare_names): Call is_name_suffix with string1
8746 instead of string2.
8747
b11896a5
TT
87482011-03-07 Tom Tromey <tromey@redhat.com>
8749
8750 * xcoffread.c (xcoff_sym_fns): Update.
8751 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8752 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8753 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8754 (symbol_file_add_with_addrs_or_offsets): Likewise.
8755 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8756 * somread.c (som_sym_fns): Update.
8757 * psymtab.h (require_partial_symbols): Declare.
8758 * psymtab.c (require_partial_symbols): New function.
8759 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8760 (ALL_OBJFILE_PSYMTABS): Undef.
8761 (ALL_PSYMTABS): Move from psympriv.h.
8762 (lookup_partial_symtab, find_pc_sect_psymtab)
8763 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8764 (find_last_source_symtab_from_partial)
8765 (forget_cached_source_info_partial)
8766 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8767 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8768 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8769 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8770 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8771 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8772 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8773 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8774 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8775 psymtabs.
8776 * mipsread.c (ecoff_sym_fns): Update.
8777 * machoread.c (macho_sym_fns): Update.
8778 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8779 (read_psyms): New function.
8780 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8781 (elf_sym_fns_lazy_psyms): New global.
8782 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8783 dwarf2_build_psymtabs.
8784 * dbxread.c (aout_sym_fns): Update.
8785 * coffread.c (coff_sym_fns): Update.
8786
fda326dd
TT
87872011-03-07 Tom Tromey <tromey@redhat.com>
8788
8789 * infrun.c (print_exited_reason): Include inferior id and pid in
8790 message.
8791
aeaec162
TT
87922011-03-07 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8795 parameter.
8796 (target_has_execution_1): Update.
8797 (target_has_execution_current): Declare.
8798 (target_has_execution): Call target_has_execution_current.
8799 (default_child_has_execution): Update.
8800 * target.c (default_child_has_execution): Add 'the_ptid'
8801 parameter.
8802 (target_has_execution_1): Likewise.
8803 (target_has_execution_current): New function.
8804 (add_target): Update.
8805 (init_dummy_target): Update.
8806 * remote-m32r-sdi.c (m32r_has_execution): New function.
8807 (init_m32r_ops): Use it.
8808 * record.c (record_core_has_execution): Now static. Add
8809 'the_ptid' parameter.
8810 * inferior.c (have_live_inferiors): Don't save current thread.
8811 Use target_has_execution_1.
8812
08e14083
YQ
88132011-03-07 Yao Qi <yao@codesourcery.com>
8814
8815 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8816
c05d19c5
JB
88172011-03-07 Joel Brobecker <brobecker@adacore.com>
8818
8819 * elfread.c (elf_symtab_read): Minor reformatting.
8820
3e6ef9e4
JB
88212011-03-07 Joel Brobecker <brobecker@adacore.com>
8822
8823 * objc-lang.c (selectors_info): Minor reformatting.
8824
dbb8534f
JB
88252011-03-07 Joel Brobecker <brobecker@adacore.com>
8826
8827 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8828
dd70cc93
JB
88292011-03-07 Joel Brobecker <brobecker@adacore.com>
8830 Michael Snyder <msnyder@vmware.com>
8831
8832 * ada-valprint.c (ada_val_print_array): Move the declaration of
8833 "byte_order" and "elttype" inside the block where these variables
8834 are actually used. Remove some special handling for the case
8835 where "elttype" and "eltlen" are null. Replace by a comment
8836 and a couple of assertion checks.
8837
b27cf2b3
MS
88382011-03-05 Michael Snyder <msnyder@vmware.com>
8839
8840 * source.c (add_path): Replace semicolon at end of block.
8841 * dwarf2expr.c (execute_stack_op): Ditto.
8842
5387a0c6
MF
88432011-03-05 Mike Frysinger <vapier@gentoo.org>
8844
8845 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8846 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8847 (bfin-*-*): Likewise.
8848
e3aa49af
MS
88492011-03-05 Michael Snyder <msnyder@vmware.com>
8850
82ae4854
MS
8851 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8852 * mdebugread.c (parse_symbol): Ditto.
8853 * parse.c (parse_exp_in_context): Ditto.
8854 * source.c (add_path): Ditto.
8855 * utils.c (gnu_debuglink_crc32): Ditto.
8856 * varobj.c (variable_language): Ditto.
8857
e3aa49af
MS
8858 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8859
154f592e
MS
88602011-03-04 Michael Snyder <msnyder@vmware.com>
8861
da3ecdc6
MS
8862 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8863
9cc89665
MS
8864 * symfile.c (simple_overlay_update): Check for null return value
8865 from lookup_minimal_symbol.
8866
154f592e
MS
8867 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8868
63ffa6ee
TJB
88692011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8870
8871 * eval.c (parse_and_eval_address_1): Remove function.
8872 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8873 instead of parse_and_eval_address_1.
8874 * value.h (parse_and_eval_address_1): Remove prototype.
8875
a17d146e
MS
88762011-03-04 Michael Snyder <msnyder@vmware.com>
8877
8878 * remote.c (putpkt_binary): Document that case stmt falls through.
8879
1a6a67de
TJB
88802011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8881
8882 * breakpointc (print_it_typical): Move NULL check from here...
8883 (print_bp_stop_message): ... to here.
8884
488919c4
MS
88852011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8886
8887 * breakpoint.c (enable_command): Use break instead of continue,
8888 and fill in a missing break.
8889 (disable_command): Ditto.
8890
1e182ce8
UW
88912011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8892
8893 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8894 (terminal_save_ours): Remove misleading comment.
8895 (inflow_inferior_data_cleanup): Free ttystate.
8896 (inflow_inferior_exit): Likewise.
8897 (copy_terminal_info): Copy ttystate.
8898
8899 * serial.c (serial_copy_tty_state): New function.
8900 * serial.h (serial_copy_tty_state): Add prototype.
8901 (struct serial_ops): Add copy_tty_state callback.
8902 * ser-base.c (ser_base_copy_tty_state): New function.
8903 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8904 * ser-go32.c (dos_copy_tty_state): New function.
8905 (dos_ops): Install copy_tty_state callback.
8906 * ser-mingw.c (_initialize_ser_windows): Likewise.
8907 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8908 * ser-unix.c (hardwire_copy_tty_state): New function.
8909 (_initialize_ser_hardwire): Install it.
8910
b2c5f112
MS
89112011-03-04 Michael Snyder <msnyder@vmware.com>
8912
2abae994
MS
8913 * breakpoint.c (create_breakpoint): Add missing break statement.
8914
7f5936f9
MS
8915 Reverting this patch:
8916 * infcall.c (call_function_by_hand): Add break statements for lint.
8917
b2c5f112
MS
8918 Reverting this patch:
8919 * cli/cli-script.c (script_from_file): Add break for lint.
8920
42b1321c
MS
89212011-03-04 Michael Snyder <msnyder@vmware.com>
8922
8923 * solib.c (reload_shared_libraries_1): Close memory leak.
8924
3e2a0cee
TT
89252011-03-03 Tom Tromey <tromey@redhat.com>
8926
8927 PR gdb/12538:
8928 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8929 DW_STRING is NULL.
8930
58397cb7
MS
89312011-03-03 Michael Snyder <msnyder@vmware.com>
8932
2e3fd767
MS
8933 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8934 fields of struct 'st' to zero.
8935
58397cb7
MS
8936 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8937 sal.pspace before calling set_current_source_symtab_and_line.
8938
ced54c8f
YQ
89392011-03-03 Yao Qi <yao@codesourcery.com>
8940
8941 * Makefile.in (configure-common): Remove. Let Makefile
8942 in dir common to rebuild itself.
8943 (common/Makefile): Likewise.
8944
3351ea09
JB
89452011-03-03 Joel Brobecker <brobecker@adacore.com>
8946
8947 * utils.c (parse_escape): Add i18n markup in error message.
8948
bf9f652a
YQ
89492011-03-03 Yao Qi <yao@codesourcery.com>
8950
8951 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8952 ARM_PC_REGNUM.
8953 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8954 (displaced_write_reg, displaced_read_reg): Likewise.
8955 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8956 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8957 (cleanup_branch): Replace magic number 14 and 15 with
8958 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8959
d42de051
MS
89602011-03-02 Michael Snyder <msnyder@vmware.com>
8961
240f9570
MS
8962 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8963
10dd8b54
MS
8964 * cli/cli-script.c (script_from_file): Add break for lint.
8965
b98bd911
MS
8966 * mdebugread.c (parse_partial_symbols): Fix indent.
8967
3494b66d
MS
8968 * target-descriptions.c (tdesc_gdb_type): No need to call
8969 xstrdup, callee saves a copy.
8970
daac021a
MS
8971 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8972
c38d16a7
MS
8973 * infcall.c (call_function_by_hand): Add break statements for lint.
8974
905b671b
MS
8975 * utils.c (parse_escape): Escape the escape char.
8976
f2eb0bc8 8977 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8978 PyList_Append fails.
8979 (gdbpy_inferiors): Error out if build_inferior_list fails.
8980
8c6a60d1
MS
8981 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8982 a function call.
8983
d42de051
MS
8984 * record.c (record_restore): Move printf to before error return.
8985
4db71c0b
YQ
89862011-03-02 Yao Qi <yao@codesourcery.com>
8987
8988 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8989 is_thumb and insn_size.
8990 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8991 on both ARM and Thumb mode.
8992 (arm_process_displaced_insn): Set is_thumb and insn_size.
8993 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8994 (arm_displaced_step_fixup): Likewise.
8995
a9dc8dcc
MS
89962011-03-01 Michael Snyder <msnyder@vmware.com>
8997
53624a93
MS
8998 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8999
77766669
MS
9000 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9001
62d5b8da
MS
9002 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9003
5e9e105f
MS
9004 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9005
dc19db01
MS
9006 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9007 with xmalloc.
9008
5ce64950
MS
9009 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9010 which shadows function parameter.
9011
a0aa2878
MS
9012 * tracepoint.c (create_tsv_from_upload): Superfluous call
9013 to xstrdup. Callee already calls xstrdup.
9014
e325fb69
MS
9015 * linespec.c (decode_line_1): Remove unnecessary null check.
9016
21cbba77
MS
9017 * tracepoint.c (scope_info): Fix mem leak, remove underused
9018 variable.
9019
63360adc
MS
9020 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9021 superfluous null check.
9022
18ea20ac 9023 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9024 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9025
d014929c
MS
9026 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9027
6e9130cf
MS
9028 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9029 be null.
9030
5f01dbc0
MS
9031 * linespec.c (decode_line_1): Check for null before dereference.
9032
d684ab85
MS
9033 * reverse.c (record_restore): Move null-check to before pointer
9034 dereference.
9035
bfffb7e3
MS
9036 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9037
a9dc8dcc
MS
9038 * objc-lang.c (selectors_info): Add explanitory comment.
9039 (classes_info): Ditto.
9040
478fd957
UW
90412011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9042
9043 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9044 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9045 versions of the trampoline. Handle Thumb vs. ARM addresses.
9046 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9047 (arm_linux_init_abi): Install it.
9048 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9049 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9050
0480cefa
MS
90512011-02-28 Michael Snyder <msnyder@vmware.com>
9052
ac50ab3b
MS
9053 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9054 a little bigger, to avoid possibility of an overflow.
9055
f63fbe86
MS
9056 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9057 buffers a little bigger, to avoid possibility of an overflow.
9058
9e91a352
MS
9059 * coffread.c (coff_getfilename): Add check to avoid overflow.
9060
f2eb0bc8 9061 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9062 avoid overflow.
9063 (classes_info): Error out on too long REGEXP.
9064
098ab512
MS
9065 * infrun.c (handle_inferior_event): Remove unused function call.
9066
bcbd1de9
MS
9067 * fork-child.c (fork_inferior): Remove ifdef'd code and
9068 unused variable.
9069
2e456570
MS
9070 * linux-thread-db.c (attach_thread): Discard unused value.
9071
14571dad
MS
9072 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9073
a9cbf802
MS
9074 * remote.c (remote_get_noisy_reply): Discard unused value.
9075 (remote_vcont_resume): Ditto.
9076 (remote_stop_ns): Ditto.
9077
5715d26e
MS
9078 * linespec.c (decode_objc): Delete unused variable.
9079
4a9bca80
MS
9080 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9081
f47fb265
MS
9082 * dwarf2read.c (add_partial_symbol): Discard unused values.
9083 (read_base_type): Delete unused variable.
9084
e81cff30
MS
9085 * dbxread.c (read_dbx_symtab): Discard unused value.
9086
262acaeb
MS
9087 * eval.c (evaluate_subexp_standard): Delete unused variable,
9088 and discard unused values.
9089
df983543
MS
9090 * infcmd.c (_initialize_infcmd): Discard unused values.
9091
89acf84d
MS
9092 * stabsread.c (rs6000_builtin_type): Missing break statement.
9093
ab8b8aca
MS
9094 * dbxread.c (process_one_symbol): Discard unused value.
9095
6b4511ab
MS
9096 * coffread.c (coff_end_symtab): Delete unused variable.
9097
e8e80198
MS
9098 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9099 (dwarf2_add_typedef): Delete unused variable.
9100 (read_namespace): Ditto.
9101 (dwarf_decode_macros): Ditto.
9102
976aa66e
MS
9103 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9104
5b92b49f
MS
9105 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9106
91e8df85
MS
9107 * p-valprint.c (pascal_val_print): Discard unused value.
9108
899500d6
MS
9109 * utils.c (nquery): Call va_end before return;
9110 (yquery): Ditto.
9111 (query): Ditto.
9112
0480cefa
MS
9113 * proc-service.c (ps_plog): Call va_end before return.
9114
fb6a3ed3
TT
91152011-02-28 Tom Tromey <tromey@redhat.com>
9116
9117 * python/python.c (gdbpy_value_cst): New global.
9118 (_initialize_python): Initialize it.
9119 * python/python-internal.h (gdbpy_value_cst): Declare.
9120 * python/py-value.c (convert_value_from_python): Use
9121 gdbpy_value_cst.
9122
c05202a1
MS
91232011-02-28 Michael Snyder <msnyder@vmware.com>
9124
e463f587
MS
9125 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9126
c38eea1a
MS
9127 * breakpoint.c (catch_syscall_completer): Free malloced list.
9128
3ef09ab5
MS
9129 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9130
8f9a01ee
MS
9131 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9132 (lval_func_check_synthetic_pointer): Ditto.
9133 (lval_func_free_closure): Fix use-after-free.
c05202a1 9134
477d0d57
TT
91352011-02-28 Tom Tromey <tromey@redhat.com>
9136
9137 * psymtab.c (expand_partial_symbol_tables): Use
9138 ALL_OBJFILE_PSYMTABS.
9139
20937029
JK
91402011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9141
9142 * objc-lang.c (selectors_info): Error on too long REGEXP.
9143
907b7f4f
MS
91442011-02-28 Michael Snyder <msnyder@vmware.com>
9145
92e96192
MS
9146 * python/py-param.c (set_parameter_value): Add missing
9147 break statement.
9148
907b7f4f
MS
9149 * linux-record.c (record_linux_system_call): Add missing
9150 break statement.
9151
12c5a436
UW
91522011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9153
9154 * breakpoint.c (print_one_breakpoint_location): Remove unused
9155 argument PRINT_ADDRESS_BITS. Update callers.
9156 (print_one_breakpoint): Likewise.
9157
170b53b2
UW
91582011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9159
9160 * breakpoint.c (wrap_indent_at_field): New function.
9161 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9162 Allocate ui_stream locally instead of using STB argument.
9163 (print_one_breakpoint_location): Update call.
9164 * ui-out.c (ui_out_query_field): New function.
9165 * ui-out.h (ui_out_query_field): Add prototype.
9166
8ab1f94d
JB
91672011-02-28 Joel Brobecker <brobecker@adacore.com>
9168
9169 From Michael Snyder <msnyder@vmware.com>
9170 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9171
7d488639
MS
91722011-02-27 Michael Snyder <msnyder@vmware.com>
9173
ae179fba
MS
9174 * objc-lang.c (selectors_info): Prevent string overrun.
9175
086dbf66
MS
9176 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9177 error in strncpy.
9178
f2eb0bc8 9179 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9180 outer scope.
9181
7d488639
MS
9182 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9183 param with a local variable of the same name.
9184
3bd0f5ef
MS
91852011-02-27 Michael Snyder <msnyder@vmware.com>
9186
9187 * value.c (value_from_history_ref): New function.
9188 * value.h (value_from_history_ref): Export.
9189 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9190 to parse value history references.
9191 * cli/cli-utils.h (get_number_trailer): Update comment.
9192
91932011-02-27 Michael Snyder <msnyder@vmware.com>
9194
9195 * inferior.c (detach_inferior_command): Use get_number_or_range.
9196 (kill_inferior_command): Ditto.
9197 (remove_inferior_command): Ditto.
9198 (initialize_inferiors): Make command names plural.
9199 Update help strings.
9200
766062f6
MS
92012011-02-27 Michael Snyder <msnyder@vmware.com>
9202
9203 * darwin-nat-info.c: Fix comment typo.
9204 * dwarf2expr.h: Ditto.
9205 * fbsd-nat.c: Ditto.
9206 * fbsd-nat.h: Ditto.
9207 * frame-unwind.h: Ditto.
9208 * frame.h: Ditto.
9209 * hppa-hpux-tdep.c: Ditto.
9210 * i386-linux-nat.c: Ditto.
9211 * linux-nat.c: Ditto.
9212 * nbsd-nat.c: Ditto.
9213 * nbsd-nat.h: Ditto.
9214 * ppc-linux-tdep.c: Ditto.
9215 * serial.c: Ditto.
9216 * ui-file.h: Ditto.
9217 * tui/tui-winsource.c: Ditto.
9218
f2c4ead5
MS
92192011-02-26 Michael Snyder <msnyder@vmware.com>
9220
86b887df
MS
9221 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9222
66fd3b1e
MS
9223 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9224
8c814cdd
MS
9225 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9226 with a local variable of the same name.
9227
6d5e094a 9228 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9229 param with a local variable of the same name.
6d5e094a 9230 (i387_supply_xsave): Ditto.
e5b3d7d6 9231
5eee517d
MS
9232 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9233 that it does not shadow a function parameter.
9234
8fbf6b93
MS
9235 * i386-nat.c (i386_length_and_rw_bits): Document that case
9236 statement is meant to fall through.
9237
cb969d61
MS
9238 * expprint.c (dump_subexp_body_standard): Document that case
9239 statement is meant to fall through.
9240
f2c4ead5
MS
9241 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9242 dead if statement. Condition can't be false.
9243
b021a221
MS
92442011-02-25 Michael Snyder <msnyder@vmware.com>
9245
9246 * arm-tdep.c: Fix typos in comments.
9247 * bsd-uthread.c: Ditto.
9248 * completer.c: Ditto.
9249 * corelow.c: Ditto.
9250 * cp-namespace.c: Ditto.
9251 * cp-support.c: Ditto.
9252 * cris-tdep.c: Ditto.
9253 * dbxread.c: Ditto.
9254 * dwarf2read.c: Ditto.
9255 * frame.h: Ditto.
9256 * gdbtypes.h: Ditto.
9257 * inferior.h: Ditto.
9258 * mdebugread.c: Ditto.
9259 * mips-tdep.c: Ditto.
9260 * ppc-linux-nat.c: Ditto.
9261 * ppc-linux-tdep.c: Ditto.
9262 * printcmd.c: Ditto.
9263 * sol-thread.c: Ditto.
9264 * solib-frv.c: Ditto.
9265 * solist.h: Ditto.
9266 * sparc64-tdep.c: Ditto.
9267 * spu-tdep.c: Ditto.
9268 * stabsread.c: Ditto.
9269 * symfile.c: Ditto.
9270 * valops.c: Ditto.
9271 * varobj.c: Ditto.
9272 * vax-nat.c: Ditto.
9273 * python/py-block.c: Ditto.
9274 * python/py-symbol.c: Ditto.
9275 * python/py-symtab.c: Ditto.
9276 * python/py-value.c: Ditto.
9277 * tui/tui-win.c: Ditto.
9278
c82c0b55
MS
92792011-02-25 Michael Snyder <msnyder@vmware.com>
9280
9281 * inferior.c (print_inferior): Accept a string instead of an int
9282 for requested_inferiors, and use get_number_or_range to parse it.
9283 (info_inferiors_command): Pass args string to print_inferior.
9284 (initialize_inferiors): Change help string for info inferiors.
9285 * inferior.h (print_inferior): Export prototype change.
9286
ee00cd23
TT
92872011-02-25 Tom Tromey <tromey@redhat.com>
9288
9289 * common/ax.def (invalid2): Set to 0x31.
9290
0502ed8c
JK
92912011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9292
9293 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9294 L and plongest.
9295 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9296 use L and plongest.
9297 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9298
2c9de912
MS
92992011-02-24 Michael Snyder <msnyder@vmware.com>
9300
9301 * Makefile.in (clean): Make clean should remove generated files
9302 observer.h and observer.inc.
9303
a04b0428
JB
93042011-02-24 Joel Brobecker <brobecker@adacore.com>
9305
9306 Revert the following patch (not approved yet):
9307 2011-02-21 Hui Zhu <teawater@gmail.com>
9308 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9309 * ax-gdb.c (gen_printf_expr_callback): New function.
9310 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9311 * ax-general.c (ax_memcpy): New function.
9312 (ax_print): Handle "printf".
9313 (ax_reqs): Ditto.
9314 * ax.h (ax_memcpy): Forward declare.
9315 * common/ax.def (invalid2): Removed.
9316 (printf): New entry.
9317 * printcmd.c (printcmd.h): New include.
9318 (string_printf): New function.
9319 (ui_printf): Removed.
9320 (printf_command): Remove static. Call string_printf.
9321 (eval_command): Call string_printf.
9322 * printcmd.h: New file.
9323 * tracepoint.c (validate_actionline,
9324 encode_actions_1): handle printf_command.
9325
2b52013f
TT
93262011-02-23 Tom Tromey <tromey@redhat.com>
9327
9328 * ax-general.c (ax_pick): Add missing newline.
9329
e5a67952
MS
93302011-02-23 Michael Snyder <msnyder@vmware.com>
9331
9332 * breakpoint.c (breakpoint_1): Change first argument from an int
9333 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9334 breakpoints rather than just one. Use new function
e5a67952
MS
9335 'number_is_in_list' to implement.
9336 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9337 (watchpoints_info): Ditto.
9338 (tracepoints_info): Ditto.
9339 (maintenance_info_breakpoints): Ditto.
9340 (_initialize_breakpoint): Update help strings to reflect the fact
9341 that these functions can now take more than one argument.
9342 * cli/cli-utils.c (number_is_in_list): New function.
9343 * cli/cli-utils.h (number_is_in_list): Export.
9344
93452011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9346
9347 * memattr.c (mem_enable_command): Use get_number_or_range.
9348 (mem_disable_command): Ditto.
9349 (mem_delete_command): Ditto.
9350 (_initialize_mem): Tweak usage message to reflect multiple
9351 arguments.
9352
6e6fbe60
DE
93532011-02-22 Doug Evans <dje@google.com>
9354
9355 Add gdb.lookup_global_symbol python function.
9356 * NEWS: Add entry.
9357 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9358 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9359 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9360
79b97fa8
TT
93612011-02-22 Tom Tromey <tromey@redhat.com>
9362
9363 * language.c (language_class_name_from_physname): Rename
9364 'curr_language' argument to 'lang'; use in body.
9365
298f437a
MS
93662011-02-22 Michael Snyder <msnyder@vmware.com>
9367
9368 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9369
b7ea3126
PA
93702011-02-22 Pedro Alves <pedro@codesourcery.com>
9371
9372 * frame-unwind.h: Fix comment to mention the this frame, not the
9373 next.
9374
58ee6d60
TT
93752011-02-22 Tom Tromey <tromey@redhat.com>
9376
9377 * symfile.c (auto_solib_limit): Remove.
9378 * symfile.h (auto_solib_limit): Remove.
9379
36238dbc
JB
93802011-02-22 Joel Brobecker <brobecker@adacore.com>
9381
9382 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9383
aea5b279
MS
93842011-02-21 Michael Snyder <msnyder@vmware.com>
9385
9386 * gdbthread.h (print_thread_info): Change prototype.
9387 * thread.c (print_thread_info): Accept char* instead of int for
9388 requested_threads argument. Use new function number_is_in_list
9389 to determine which threads to list.
9390 (info_threads_command): Pass char* to print_thread_info.
9391 * cli/cli-utils.c (number_is_in_list): New function.
9392 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9393 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9394 print_thread_info.
9395 (print_one_inferior): Ditto.
9396 (mi_cmd_list_thread_groups): Ditto.
9397
8caa75ee
JK
93982011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9399
9400 * common/Makefile.in (CFLAGS): New.
9401 (COMPILE): Add $(CFLAGS).
9402
ea666128
TT
94032011-02-21 Tom Tromey <tromey@redhat.com>
9404
9405 * breakpoint.c (catch_syscall_command_1): Fix typo.
9406
e9cafbcc
TT
94072011-02-21 Tom Tromey <tromey@redhat.com>
9408
9409 * reverse.c: Include cli-utils.h.
9410 * printcmd.c: Include cli-utils.h.
9411 (string_printf): Use skip_spaces.
9412 * cli/cli-utils.h: New file.
9413 * cli/cli-utils.c: New file.
9414 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9415 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9416 * breakpoint.h (get_number, get_number_or_range): Move to
9417 cli-utils.h.
9418 * breakpoint.c: Include cli-utils.h.
9419 (get_number_trailer, get_number, get_number_or_range)
9420 (ep_skip_leading_whitespace): Move to cli-utils.c.
9421 (create_breakpoint_sal, find_condition_and_thread)
9422 (decode_static_tracepoint_spec, watch_command_1)
9423 (watch_maybe_just_location, ep_parse_optional_if_clause)
9424 (catch_fork_command_1, catch_exec_command_1)
9425 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9426 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9427 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9428 (HFILES_NO_SRCDIR): Add cli-utils.h.
9429 (cli-utils.o): New target.
9430
f67fd822
PM
94312011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9432
9433 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9434 before calling discard_all_inferiors.
9435
c9def01d
UW
94362011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9437
9438 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9439 (struct builtin_opencl_type): Remove.
9440 (builtin_opencl_type): Change return type to "struct type **".
9441 (lookup_opencl_vector_type): Update caller.
9442 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9443 (build_opencl_types): Install plain array of "struct type *"
9444 instead of "struct builtin_opencl_type".
9445
e3039479
UW
94462011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9447 Ulrich Weigand <uweigand@de.ibm.com>
9448
9449 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9450 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9451 (struct arm_linux_hwbp_cap): New type.
9452 (arm_linux_get_hwbp_cap): New function.
9453 (arm_linux_get_hw_breakpoint_count): Likewise.
9454 (arm_linux_get_hw_watchpoint_count): Likewise.
9455 (arm_linux_can_use_hw_breakpoint): Likewise.
9456 (arm_hwbp_type): New type.
9457 (arm_hwbp_control_t): Likewise.
9458 (struct arm_linux_hw_breakpoint): Likewise.
9459 (struct arm_linux_thread_points): Likewise.
9460 (arm_threads): New global variable.
9461 (arm_linux_find_breakpoints_by_tid): New function.
9462 (arm_hwbp_control_initialize): Likewise.
9463 (arm_hwbp_control_is_enabled): Likewise.
9464 (arm_hwbp_control_disable): Likewise.
9465 (arm_linux_hw_breakpoint_initialize): Likewise.
9466 (arm_linux_get_hwbp_type): Likewise.
9467 (arm_linux_hw_watchpoint_initialize): Likewise.
9468 (arm_linux_hw_breakpoint_equal): Likewise.
9469 (arm_linux_insert_hw_breakpoint1): Likewise.
9470 (arm_linux_remove_hw_breakpoint1): Likewise.
9471 (arm_linux_insert_hw_breakpoint): Likewise.
9472 (arm_linux_remove_hw_breakpoint): Likewise.
9473 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9474 (arm_linux_insert_watchpoint): Likewise.
9475 (arm_linux_remove_watchpoint): Likewise.
9476 (arm_linux_stopped_data_address): Likewise.
9477 (arm_linux_stopped_by_watchpoint): Likewise.
9478 (arm_linux_watchpoint_addr_within_range): Likewise.
9479 (arm_linux_new_thread): Likewise.
9480 (arm_linux_thread_exit): Likewise.
9481 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9482 related target callbacks. Register arm_linux_new_thread and
9483 arm_linux_thread_exit.
9484 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9485 * arm-tdep.c (arm_pc_is_thumb): Make global.
9486 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9487
b5db5dfc
UW
94882011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9489
9490 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9491 per-frame locations while within a function epilogue.
9492
e25b2cfa
PM
94932011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9494
9495 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9496 to GNU coding standards.
9497
4af53f97
PM
94982011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9499
9500 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9501 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9502 (ser_windows_close): Only call CancelIo if function exists.
9503 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9504 to check for existence of CancelIo function in kernel32 DLL.
9505
d0e92d82
HZ
95062011-02-21 Hui Zhu <teawater@gmail.com>
9507
9508 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9509 * ax-gdb.c (gen_printf_expr_callback): New function.
9510 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9511 * ax-general.c (ax_memcpy): New function.
9512 (ax_print): Handle "printf".
9513 (ax_reqs): Ditto.
9514 * ax.h (ax_memcpy): Forward declare.
9515 * common/ax.def (invalid2): Removed.
9516 (printf): New entry.
9517 * printcmd.c (printcmd.h): New include.
9518 (string_printf): New function.
9519 (ui_printf): Removed.
9520 (printf_command): Remove static. Call string_printf.
9521 (eval_command): Call string_printf.
9522 * printcmd.h: New file.
9523 * tracepoint.c (validate_actionline,
9524 encode_actions_1): handle printf_command.
9525
7d357efd
MS
95262011-02-19 Michael Snyder <msnyder@vmware.com>
9527
9528 * reverse.c (delete_one_bookmark): Argument is now bookmark
9529 id rather than pointer to bookmark struct.
9530 (delete_bookmark_command): Use get_number_or_range.
9531 (goto_bookmark_command): Parse with get_number instead of strtoul.
9532 (bookmark_1): New function. Print info for one bookmark.
9533 (bookmarks_info): Use get_number_or_range and bookmark_1.
9534
7a45ebd7
MS
95352011-02-18 Michael Snyder <msnyder@vmware.com>
9536
f2eb0bc8 9537 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9538 get_number_or_range.
65ebfb52 9539 (thread_apply_command): Ditto.
7a45ebd7 9540
94d5e490
TT
95412011-02-18 Tom Tromey <tromey@redhat.com>
9542
9543 * common/ax.def: New file.
9544 * ax.h (enum agent_op): Use ax.def.
9545 * ax-general.c (aop_map): Use ax.def.
9546
c7f96d2b
TT
95472011-02-18 Tom Tromey <tromey@redhat.com>
9548
9549 * ax-general.c (aop_map): Add pick and rot.
9550 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9551 <DW_OP_rot>: Implement.
9552 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9553 (ax_pick): Declare.
9554 * ax-general.c (ax_pick): New function.
9555
66694b75
TT
95562011-02-18 Tom Tromey <tromey@redhat.com>
9557
9558 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9559
eeaafae2
JK
95602011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9561 Tom Tromey <tromey@redhat.com>
9562
9563 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9564 make_symbol_overload_list_block with NULL BLOCK.
9565 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9566
3c3fe74c
PA
95672011-02-18 Pedro Alves <pedro@codesourcery.com>
9568
9569 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9570 * breakpoint.h (get_number_or_range): Declare.
9571 * printcmd.c (ALL_DISPLAYS): Declare.
9572 (delete_display): Reimplement taking a display pointer.
9573 (undisplay_command): Accept a range of displays to delete, using
9574 get_number_or_range.
9575
13163d80
PM
95762011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9577
9578 * c-valprint.c (c_val_print): Add embedded_offset to address
9579 for arrays of unspecified length.
9580 * p-valprint.c (pascal_val_print): Likewise.
9581
b434a28f
YQ
95822011-02-18 Yao Qi <yao@codesourcery.com>
9583
9584 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9585 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9586 (thumb_process_displaced_insn): New.
9587 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9588 call to arm_process_displaced_insn.
9589 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9590
9f6f94ff
TT
95912011-02-17 Tom Tromey <tromey@redhat.com>
9592
9593 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9594 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9595 compile_dwarf_to_ax. No longer static. Call
9596 dwarf2_compile_cfa_to_ax.
9597 (locexpr_tracepoint_var_ref): Update.
9598 (loclist_tracepoint_var_ref): Update.
9599 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9600 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9601 argument; add 'gdbarch' and 'pc'.
9602 (dwarf2_compile_cfa_to_ax): New function.
9603 (dwarf2_frame_cache): Update.
9604
e67ad678
JB
96052011-02-17 Joel Brobecker <brobecker@adacore.com>
9606
9607 * ada-lang.c (ada_type_of_array): Fix the size of the array
9608 in the case of an unconstrained packed array.
9609
946ebb0d
YQ
96102011-02-17 Yao Qi <yao@codesourcery.com>
9611
9612 * common/Makefile.in: Add more targets for make.
9613
1ba1b353
TT
96142011-02-16 Tom Tromey <tromey@redhat.com>
9615
9616 * dwarf2loc.c (unimplemented): Fix typo.
9617
b1bfef65
TT
96182011-02-16 Tom Tromey <tromey@redhat.com>
9619
9620 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9621 (compile_dwarf_to_ax) <default>: Use unimplemented.
9622 <DW_OP_deref>: Update.
9623 (disassemble_dwarf_expression): Update.
9624 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9625 (decode_locdesc): Update.
9626 * dwarf2expr.h (dwarf_stack_op_name): Update.
9627
5f1e6f19
TT
96282011-02-16 Tom Tromey <tromey@redhat.com>
9629
9630 * ax.h (struct aop_map) <name>: Now const.
9631
a0c78a73
PA
96322011-02-16 Tom Tromey <tromey@redhat.com>
9633
9634 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9635 than axs_rvalue.
9636
946ebb0d 96372011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9638
9639 * infrun.c (get_displaced_step_closure_by_addr): New.
9640 * inferior.h: Declare it.
9641 * arm-tdep.c: (arm_pc_is_thumb): Call
9642 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9643 returns non-NULL.
9644
08807d5a
PA
96452011-02-16 Pedro Alves <pedro@codesourcery.com>
9646 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 gdb/
9649 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9650
29976f3f
PA
96512011-02-16 Pedro Alves <pedro@codesourcery.com>
9652 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 * value.c (value_contents_copy_raw): Extend describing comment.
9655 Assert that the destination contents we're overwriting are wholly
9656 available.
fb68ae73 9657 (value_contents_copy): Extend describing comment.
29976f3f 9658
cd24cfaa
PA
96592011-02-16 Pedro Alves <pedro@codesourcery.com>
9660 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 * value.c (value_available_contents_eq): Remove redundant local
9663 variables. Fix available contents comparision.
9664 * value.h (value_available_contents_eq): Extend describing
9665 comment.
9666
60bbf338
YQ
96672011-02-16 Yao Qi <yao@codesourcery.com>
9668
9669 * thread.c (info_threads_command): Add missing i18n markup and remove
9670 trailing newline.
9671
17450429
PP
96722011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9673
9674 * breakpoint.c (longjmp_names): New variable.
9675 (struct breakpoint_objfile_data): New type.
9676 (breakpoint_objfile_key): New variable.
9677 (msym_not_found): New variable.
9678 (msym_not_found_p): New predicate.
9679 (get_breakpoint_objfile_data): New function.
9680 (create_overlay_event_breakpoint): Check per-objfile cache for
9681 symbols first.
9682 (create_longjmp_master_breakpoint): Likewise.
9683 (create_std_terminate_master_breakpoint): Likewise.
9684 (create_exception_master_breakpoint): Likewise.
9685 (_initialize_breakpoint): Register per-objfile data key.
9686
af02033e
PP
96872011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9688
9689 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9690 parameter value.
9691 (create_longjmp_master_breakpoint): Loop over longjmp names.
9692 (create_std_terminate_master_breakpoint): Const-propagate parameter
9693 value.
9694 (update_breakpoints_after_exec): Adjust.
9695 (breakpoint_re_set): Adjust.
9696
60f98dde
MS
96972011-02-15 Michael Snyder <msnyder@vmware.com>
9698
cdf99611
MS
9699 * thread.c (info_threads_command): Process arg as thread id,
9700 or list of thread ids.
9701 (thread_find_command): New command.
9702 (_initialize_thread): Document argument for info threads.
9703 Document 'thread find' command.
9704 * NEWS: Document new command "thread find".
60f98dde 9705
0feedb2c
JK
97062011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9707
9708 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9709 * aclocal.m4: Regenerated with aclocal-1.11.1.
9710 * common/configure: Regenerate with autoconf-2.64.
9711
648cd113
KW
97122011-02-15 Ken Werner <ken.werner@de.ibm.com>
9713
9714 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9715 bool data type to a size of one byte.
9716
5657161f
PA
97172011-02-15 Pedro Alves <pedro@codesourcery.com>
9718 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * target.c (memory_xfer_live_readonly_partial): Document where to
9721 look for interface description.
9722
494e194e
YQ
97232011-02-15 Yao Qi <yao@codesourcery.com>
9724
9725 PR tdep/12352
9726 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9727 order to store PC value on stack instead of text section.
9728
d9492458
TJB
97292011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9730
9731 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9732 the EFP register set size.
9733 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9734 data from the VMX register.
9735 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9736 and write data from/to the VMX register.
9737
cdf99611
MS
97382011-02-14 Michael Snyder <msnyder@vmware.com>
9739
9740 * command.h (enum command_class): New class 'no_set_class', for
9741 "show" commands without a corresponding "set" command.
9742 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9743 * copying.c (_initialize_copying): Ditto for "show copying" and
9744 "show warranty".
9745 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9746 "show version".
9747 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9748 which there is no corresponding "set" command (eg. "show copying").
9749
424447ee
PA
97502011-02-14 Pedro Alves <pedro@codesourcery.com>
9751 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 * exec.c (section_table_available_memory): Change `len' parameter
9754 type to ULONGEST.
9755 * exec.h (section_table_available_memory): Ditto.
9756 * value.h (read_value_memory): Rename the `offset' parameter to
9757 `embedded_offset'.
9758
c0f61f9c 97592011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9760 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9761
9762 * memrange.c (compare_mem_ranges): Mention sort order in
9763 describing comment.
9764 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9765 * tracepoint.c (traceframe_available_memory): Extend comment to
9766 mention what happens to RESULT when the target does not support
9767 the query.
9768
6bfc80c7
PA
97692011-02-14 Pedro Alves <pedro@codesourcery.com>
9770 Jan Kratochvil <jan.kratochvil@redhat.com>
9771
9772 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9773 range.
9774
e7303042
PA
97752011-02-14 Pedro Alves <pedro@codesourcery.com>
9776
9777 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9778 No longer handle NULL values.
9779
8af8e3bc
PA
97802011-02-14 Pedro Alves <pedro@codesourcery.com>
9781
9782 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9783 * value.c: Include "exceptions.h".
9784 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9785 generic error.
9786 * cp-abi.c: Include gdb_assert.h.
9787 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9788 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9789 errors.
9790 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9791 parameters. No longer returns -1 on error.
9792 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9793 `val' parameters.
9794 * cp-valprint.c: Include exceptions.h.
9795 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9796 the baseclass_offset. Handle unavailable base classes. Use
9797 val_print_invalid_address.
9798 * p-valprint.c: Include exceptions.h.
9799 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9800 when fetching the baseclass_offset. No longer expect
9801 baseclass_offset returning -1. Handle unavailable base classes.
9802 Use val_print_invalid_address.
9803 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9804 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9805 `embedded_offset' and `val' parameters. Adjust.
9806 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9807 parameter, and change its type to gdb_byte pointer. Add
9808 `embedded_offset' and `val' parameters. Adjust. No longer expect
9809 baseclass_offset returning -1.
9810 (value_dynamic_cast): Use value_contents_for_printing rather than
9811 value_contents. Adjust.
9812 (search_struct_field): No longer expect baseclass_offset returning
9813 -1.
9814 (search_struct_method): If reading memory from the target is
9815 necessary, wrap it in a new value to pass to baseclass_offset. No
9816 longer expect baseclass_offset returning -1.
9817 (find_method_list): No longer expect baseclass_offset returning
9818 -1. Use value_contents_for_printing rather than value_contents.
9819 * valprint.c (val_print_invalid_address): New function.
9820 * valprint.h (val_print_invalid_address): Declare.
9821 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9822 and `val' parameters. No longer expect baseclass_offset returning
9823 -1. Adjust.
9824 * gnu-v2-abi.c: Include "exceptions.h".
9825 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9826 parameters. Handle unavailable memory. Recurse through
9827 gnuv2_baseclass_offset directly, rather than through
9828 baseclass_offset. No longer returns -1 on not found, instead
9829 throw an error.
9830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9831 `val' parameters. Adjust.
9832
1b28d0b3
PA
98332011-02-14 Pedro Alves <pedro@codesourcery.com>
9834
9835 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9836 almost but not quite adjacent.
9837
ec0a52e1
PA
98382011-02-14 Pedro Alves <pedro@codesourcery.com>
9839
9840 * value.h (value_entirely_available): Declare.
9841 * value.c (value_entirely_available): New function.
9842 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9843 real type if the pointer is unavailable.
9844
24e6bcee
PA
98452011-02-14 Pedro Alves <pedro@codesourcery.com>
9846
9847 * valops.c (value_repeat): Use read_value_memory instead of
9848 read_memory.
9849
39d37385
PA
98502011-02-14 Pedro Alves <pedro@codesourcery.com>
9851
9852 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9853 * value.c (value_contents_copy_raw, value_contents_copy): New
9854 functions.
9855 (value_primitive_field): Use value_contents_copy_raw instead of
9856 memcpy.
9857 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9858 memcpy.
9859 (value_array, value_slice): Ditto.
9860 * valarith.c (value_subscripted_rvalue): Use
9861 value_contents_copy_raw instead of memcpy.
9862
a3d34bf4
PA
98632011-02-14 Pedro Alves <pedro@codesourcery.com>
9864
9865 <unavailable> references.
9866
9867 * valops.c (get_value_at): Use value_from_contents_and_address,
9868 avoiding read_memory.
9869
9fc6d940
PA
98702011-02-14 Pedro Alves <pedro@codesourcery.com>
9871
9872 * c-valprint.c (c_val_print): Print a string with unavailable
9873 contents as an array.
9874
5467c6c8
PA
98752011-02-14 Pedro Alves <pedro@codesourcery.com>
9876
9877 * value.h (unpack_bits_as_long): Delete declaration.
9878 (unpack_value_bits_as_long): Declare.
9879 (unpack_value_field_as_long): Declare.
9880 (value_field_bitfield): Declare.
9881 * value.c (unpack_bits_as_long): Rename to...
9882 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9883 value parameters. Return the extracted result in a new output
9884 parameter. If the value contents are unavailable, return false,
9885 otherwise return true.
9886 (unpack_value_bits_as_long): New.
9887 (unpack_field_as_long): Rename to...
9888 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9889 Add embedded_offset and value parameters. Return the extracted
9890 result in a new output parameter. If the value contents are
9891 unavailable, return false, otherwise return true.
9892 (unpack_value_field_as_long): New.
9893 (unpack_field_as_long_1): New.
9894 (unpack_field_as_long): Reimplement as wrapper around
9895 unpack_value_field_as_long_1.
9896 (value_field_bitfield): New function.
9897 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9898 unpack_value_bits_as_long. Mark the value as unavailable, if it
9899 is unavailable.
9900 * jv-valprint.c (java_print_value_fields): Use
9901 value_field_bitfield.
9902 * p-valprint.c (pascal_object_print_value_fields): Use
9903 value_field_bitfield.
9904 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9905
3158c6ed
PA
99062011-02-14 Pedro Alves <pedro@codesourcery.com>
9907
9908 * value.c (get_internalvar_integer): Also return the int value of
9909 TYPE_CODE_INT INTERNALVAR_VALUE values.
9910 (set_internalvar): Don't special case TYPE_CODE_INT.
9911
9fbdca0d
PA
99122011-02-14 Pedro Alves <pedro@codesourcery.com>
9913
9914 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9915 INTERNALVAR_POINTER.
9916 <pointer>: Delete.
9917 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9918 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9919 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9920
c8c1c22f
PA
99212011-02-14 Pedro Alves <pedro@codesourcery.com>
9922
9923 * value.h (value_available_contents_eq): Declare.
9924 * value.c (find_first_range_overlap): New function.
9925 (value_available_contents_eq): New function.
9926 * valprint.c (val_print_array_elements): Use
9927 value_available_contents_eq.
9928 * ada-valprint.c (val_print_packed_array_elements): Use
9929 value_available_contents_eq.
9930 * jv-valprint.c (java_value_print): Use
9931 value_available_contents_eq.
9932
e6e4e701
PA
99332011-02-14 Pedro Alves <pedro@codesourcery.com>
9934
9935 * target.c (target_read_live_memory): New function.
9936 (memory_xfer_live_readonly_partial): New.
9937 (memory_xfer_partial): If reading from a traceframe, fallback to
9938 reading unavailable read-only memory from read-only regions of
9939 live target memory.
9940 * tracepoint.c (disconnect_tracing): Adjust.
9941 (set_current_traceframe): New, factored out from
9942 set_traceframe_number.
9943 (set_traceframe_number): Reimplement to only change the traceframe
9944 number on the GDB side.
9945 (do_restore_current_traceframe_cleanup): Adjust.
9946 (make_cleanup_restore_traceframe_number): New.
9947 (cur_traceframe_number): New global.
9948 (tfile_open): Set cur_traceframe_number to no traceframe.
9949 (set_tfile_traceframe): New function.
9950 (tfile_trace_find): If looking up a traceframe using any method
9951 other than by number, make sure the current tfile traceframe
9952 matches gdb's current traceframe. Update the current tfile
9953 traceframe if the lookup succeeded.
9954 (tfile_fetch_registers, tfile_xfer_partial)
9955 (tfile_get_trace_state_variable_value): Make sure the remote
9956 traceframe matches gdb's current traceframe.
9957 * remote.c (remote_traceframe_number): New global.
9958 (remote_open_1): Set it to -1.
9959 (set_remote_traceframe): New function.
9960 (remote_fetch_registers, remote_store_registers)
9961 (remote_xfer_memory, remote_xfer_partial)
9962 (remote_get_trace_state_variable_value): Make sure the remote
9963 traceframe matches gdb's current traceframe.
9964 (remote_trace_find): If looking up a traceframe using any method
9965 other than by number, make sure the current remote traceframe
9966 matches gdb's current traceframe. Update the current remote
9967 traceframe if the lookup succeeded.
9968 * infrun.c (fetch_inferior_event): Adjust.
9969 * tracepoint.h (set_current_traceframe): Declare.
9970 (get_traceframe_number, set_traceframe_number): Add describing
9971 comments.
9972
e6ca34fc
PA
99732011-02-14 Pedro Alves <pedro@codesourcery.com>
9974
9975 Mark pieces of values as unavailable if the corresponding memory
9976 is unavailable.
9977
9978 * valops.c: Include tracepoint.h.
9979 (value_fetch_lazy): Use read_value_memory.
9980 (read_value_memory): New.
9981 * value.h (read_value_memory): Declare.
9982 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9983 * exec.c (section_table_available_memory): New function.
9984 * exec.h (section_table_available_memory): Declare.
9985
2a7498d8
PA
99862011-02-14 Pedro Alves <pedro@codesourcery.com>
9987
9988 * Makefile.in (SFILES): Add memrange.c.
9989 (HFILES_NO_SRCDIR): Add memrange.h.
9990 (COMMON_OBS): Add memrange.o.
9991 * memrange.c: New file.
9992 * memrange.h: New file.
9993 * tracepoint.c: Include memrange.h.
9994 (struct mem_range): Delete.
9995 (mem_range_s): Delete.
9996 (traceframe_available_memory): New function.
9997 * tracepoint.h (traceframe_available_memory): Declare.
9998
b3b9301e
PA
99992011-02-14 Pedro Alves <pedro@codesourcery.com>
10000
10001 * target.h (struct traceframe_info): Forward declare.
10002 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10003 (struct target_ops) <to_traceframe_info>: New field.
10004 (target_traceframe_info): New.
10005 * target.c (update_current_target): Inherit and default
10006 to_traceframe_info.
10007 * remote.c (PACKET_qXfer_traceframe_info): New.
10008 (remote_protocol_features): Register qXfer:traceframe-info:read.
10009 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10010 (remote_traceframe_info): New.
10011 (init_remote_ops): Install it.
10012 (_initialize_remote): Install "set/show remote traceframe-info"
10013 commands.
10014 * tracepoint.h (parse_traceframe_info): Declare.
10015 * tracepoint.c (struct mem_range): New.
10016 (mem_range_s): New typedef.
10017 (struct traceframe_info): New.
10018 (traceframe_info): New global.
10019 (free_traceframe_info): New function.
10020 (clear_traceframe_info): New function.
10021 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10022 info.
10023 (build_traceframe_info): New function.
10024 (tfile_traceframe_info): New function.
10025 (init_tfile_ops): Install tfile_traceframe_info.
10026 (traceframe_info_start_memory, free_result): New functions.
10027 (memory_attributes, traceframe_info_elements): New globals.
10028 (parse_traceframe_info, get_traceframe_info): New functions.
10029 * features/traceframe-info.dtd: New file.
10030 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10031
4e07d55f
PA
100322011-02-14 Pedro Alves <pedro@codesourcery.com>
10033
10034 Base support for <unavailable> value contents.
10035
4e07d55f
PA
10036 * value.h (value_bytes_available): Declare.
10037 (mark_value_bytes_unavailable): Declare.
10038 * value.c (struct range): New struct.
10039 (range_s): New typedef.
10040 (ranges_overlap): New function.
10041 (range_lessthan): New function.
10042 (ranges_contain_p): New function.
10043 (struct value) <unavailable>: New field.
10044 (value_bytes_available): New function.
10045 (mark_value_bytes_unavailable): New function.
10046 (require_not_optimized_out): Constify parameter.
10047 (require_available): New function.
10048 (value_contents_all, value_contents): Require all bytes be
10049 available.
10050 (value_free): Free `unavailable'.
10051 (value_copy): Copy `unavailable'.
10052 * valprint.h (val_print_unavailable): Declare.
10053 * valprint.c (valprint_check_validity): Rename `offset' parameter
10054 to `embedded_offset'. If printing a scalar, check whether the
10055 value chunk is available.
10056 (val_print_unavailable): New.
10057 (val_print_scalar_formatted): Check whether the value is
10058 available.
10059 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10060 pretty-printing unavailable values.
10061
bc9a5551
JK
100622011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10063
10064 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10065 * c-typeprint.c (c_type_print_args): Update the function comment. New
10066 variable param_type, initialize it. Remove const/volatile qualifiers
10067 for language_cplus and !show_artificial. Use param_type.
10068
93b55aa1
JK
100692011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10072 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10073 * symtab.h (struct symtab) <next>: Comment extension.
10074
181d9476
YQ
100752011-02-12 Yao Qi <yao@codesourcery.com>
10076
10077 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10078
b708a5c7
JK
100792011-02-11 Yao Qi <yao@codesourcery.com>
10080
10081 * common/Makefile.in: Add copyright header.
10082
c5187ac6
PA
100832011-02-11 Pedro Alves <pedro@codesourcery.com>
10084
10085 * infrun.c (proceed): Move switching out and in of tfind mode from
10086 here ...
10087 (fetch_inferior_event): ... to here.
10088
4f3e6fb7
YQ
100892011-02-11 Yao Qi <yao@codesourcery.com>
10090
10091 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10092 libcommon.a.
10093 * configure.ac: Add common to sub dir.
10094 * configure: Regenerate.
10095
b708a5c7
JK
100962011-02-11 Yao Qi <yao@codesourcery.com>
10097
10098 Build libcommon.a.
10099
10100 * common/Makefile.in: New.
10101 * common/configure.ac: New.
10102 * common/aclocal.m4: New.
10103 * common/configure: Generate.
10104
2287cc7e
PA
101052011-02-10 Pedro Alves <pedro@codesourcery.com>
10106
10107 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10108 side of the parenthesis.
10109
10110 Merge from GCC:
10111 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10112 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10113
fd62cb89
MS
101142011-02-08 Michael Snyder <msnyder@vmware.com>
10115
10116 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10117
56d2815c
JK
101182011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10121 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10122 psubd and paddd.
10123
4f7d61a8
JK
101242011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10125
10126 PR 12361.
10127 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10128 phsubsw.
10129 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10130 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10131
54fcddd0
UW
101322011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10133
10134 * dwarf2read.c (read_subroutine_type): Set special calling
10135 convention flag for functions compiled by IBM XL C for OpenCL.
10136 * ppc-sysv-tdep.c: Include "dwarf2.h"
10137 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10138 calling convention.
10139 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10140 IBM OpenCL vector types calling convention.
10141 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10142 (ppc_sysv_abi_broken_return_value): Likewise.
10143 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10144 types calling convention.
10145 (ppc64_sysv_abi_return_value): Likewise.
10146 * spu-tdep.c: Include "dwarf2.h"
10147 (spu_return_value): Implement IBM OpenCL vector types calling
10148 convention.
10149
d6dafb7c
UW
101502011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10151
10152 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10153 correct ABI for AltiVec vector arguments.
10154
32b72a42
PA
101552011-02-07 Pedro Alves <pedro@codesourcery.com>
10156
10157 * valprint.c (val_print): Extend comment.
10158 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10159 interface explanation to val_print.
10160 (ada_val_print_array): Adjust comment to current interface.
10161 (print_field_values): Adjust comment to current interface.
10162 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10163 explanation to val_print.
10164 * f-valprint.c (f_val_print): Ditto.
10165 * jv-valprint.c (java_val_print): Ditto.
10166 * m2-valprint.c (m2_val_print): Ditto.
10167 * p-valprint.c (pascal_val_print): Ditto.
10168
9998af43
TJB
101692011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10170
10171 * breakpoint.c (parse_breakpoint_sals): Fix description.
10172
505500db 101732011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10174 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10175
10176 * python/py-inferior.c (python_on_normal_stop): New function.
10177 (python_on_resume): New function.
10178 (python_inferior_exit): New function.
10179 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10180 inferior_exit observers.
10181 * python/py-evtregistry.c: New file.
10182 * python/py-threadevent.c : New file.
10183 * python/py-event.c: New file.
10184 * python/py-evts.c: New file.
10185 * python/py-continueevent.c: New file.
10186 * python/py-bpevent.c: New file.
10187 * python/py-signalevent.c: New file.
10188 * python/py-exetiedevent.c: New file.
10189 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10190 Move struct breakpoint_object from here...
10191 * python/python-internal.h: ... to here.
10192 * python/py-event.h: New file.
10193 * python/py-events.h: New file.
10194 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10195 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10196 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10197 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10198 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10199 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10200 Add build rules for all the above.
10201
9e0ac564
TT
102022011-02-04 Tom Tromey <tromey@redhat.com>
10203
10204 * dwarf2read.c (dwarf2_section_empty_p): New function.
10205 (dwarf2_read_section): Use dwarf2_section_empty_p.
10206 (dwarf2_section_size): New function.
10207 (dwarf2_get_section_info): Unconditionally read section.
10208 (dwarf2_read_index): Use dwarf2_section_empty_p.
10209 (partial_read_comp_unit_head): Use dwarf2_section_size.
10210 (dwarf2_symbol_mark_computed): Likewise.
10211
eee5b35e
DD
102122011-02-04 David Daney <ddaney@caviumnetworks.com>
10213
10214 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10215
385203ed
DD
102162011-02-04 David Daney <ddaney@caviumnetworks.com>
10217
10218 * mips-linux-tdep.c: Include xml-syscall.h.
10219 (mips_linux_get_syscall_number): New function.
10220 (mips_linux_init_abi): Add calls to
10221 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10222 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10223 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10224 * syscalls/mips-n32-linux.xml: New file.
10225 * syscalls/mips-n64-linux.xml: New file.
10226 * syscalls/mips-o32-linux.xml: New file.
10227
9277c30c
UW
102282011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10229
10230 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10231 Complain about inverted range entries.
10232 (dwarf2_record_block_ranges): Likewise.
10233
a3be7890
TJB
102342011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10235
10236 Fix some typos.
10237 * breakpoint.c (update_watchpoint): Fix name of the
10238 update_global_location_list function.
10239 (print_one_breakpoint): Fix typo.
10240 (_initialize_breakpoint): Remove extra space in hbreak help
10241 string.
10242 * breakpoint.h (struct bp_location) <length>: Fix field
10243 description.
10244
041274d8
PA
102452011-02-04 Pedro Alves <pedro@codesourcery.com>
10246
10247 * regcache.c (registers_changed_ptid): Don't explictly always
10248 clear `current_regcache'. Only clear current_thread_ptid and
10249 current_thread_arch when PTID matches. Only reinit the frame
10250 cache if PTID matches the current inferior_ptid. Move alloca(0)
10251 call to ...
10252 (registers_changed): ... here.
10253
c1c2ab58
UW
102542011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10255
10256 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10257 starts with __stack_chk_guard as stack guard symbol.
10258
9011945e
AB
102592011-02-03 Andrew Burgess <aburgess@broadcom.com>
10260
10261 * disasm.c (compare_lines): Handle the end of sequence markers
10262 within the line table to better support disassembling over
10263 compilation unit boundaries.
10264
e0634ccf
UW
102652011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10266
10267 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10268 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10269 implementation even if no symbols are available.
10270 (thumb_analyze_prologue): Update call to skip_prologue_function.
10271 (arm_analyze_prologue): Likewise.
10272
0e9e9abd
UW
102732011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10274
10275 * arm-tdep.c: Include "observer.h".
10276 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10277 (arm_exidx_data_key): New static variable.
10278 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10279 (struct arm_exidx_data): Likewise.
10280 (arm_exidx_data_free): New function.
10281 (arm_compare_exidx_entries): Likewise.
10282 (arm_obj_section_from_vma): Likewise.
10283 (arm_exidx_new_objfile): Likewise.
10284 (arm_find_exidx_entry): Likewise.
10285 (arm_exidx_fill_cache): Likewise.
10286 (arm_exidx_unwind_sniffer): Likewise.
10287 (arm_exidx_unwind): New global variable.
10288 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10289 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10290 observer. Register arm_exidx_data_key as objfile data.
10291
2e9e421f
UW
102922011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10293
10294 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10295 due to accessing uninitialized variable. Fix indentation.
10296
580688f3
PA
102972011-02-02 Pedro Alves <pedro@codesourcery.com>
10298
10299 * c-valprint.c (c_value_print): When doing virtual base pointer
10300 adjustment, create a new value with adjusted contents rather than
10301 changing the contents of the value being printed (and getting it
10302 wrong).
10303
3d2c1d41
PA
103042011-02-02 Pedro Alves <pedro@codesourcery.com>
10305
10306 * xml-support.c (xml_find_attribute): New.
10307 (xinclude_start_include): Use it.
10308 * xml-support.h (xml_find_attribute): Declare.
10309 * memory-map.c (memory_map_start_memory)
10310 (memory_map_start_property): Use xml_find_attribute.
10311 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10312 xml_find_attribute.
10313 * remote.c (start_thread): Use xml_find_attribute.
10314 * solib-target.c (library_list_start_segment)
10315 (library_list_start_section, library_list_start_library)
10316 (library_list_start_list): Use xml_find_attribute.
10317 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10318 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10319 (tdesc_start_field): Use xml_find_attribute.
10320
0af3e2db
UW
103212011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10322
10323 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10324 (BUILD_OCL_VTYPES): Update.
10325
c1039e3c
JB
103262011-02-02 Joel Brobecker <brobecker@adacore.com>
10327
10328 * configure.ac: Work around non-GNU sed limitation when computing
10329 python version number.
10330 * configure: Regenerate.
10331
600ea1be
JK
103322011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10333
10334 Fix debug printing of TYPE_INSTANCE.
10335 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10336 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10337
56c12414
JK
103382011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10341 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10342 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10343 * ada-operator.inc: Rename the file to ...
10344 * ada-operator.def: ... here, wrap all the entries by macro OP.
10345 * expprint.c (op_name_standard): Remove all the entries. Include
10346 "std-operator.def" instead.
10347 * expression.h (enum exp_opcode): Include "std-operator.def" and
10348 "ada-operator.def". Move all the entries ...
10349 * std-operator.def: ... here, wrap all the entries by macro OP.
10350
c52b559d
PP
103512011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10352
10353 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10354 * breakpoint.c (remove_jit_event_breakpoints): New function.
10355 * jit.c (jit_descriptor_addr): Delete.
10356 (registering_code): Delete.
10357 (clear_int): Delete.
10358 (jit_inferior_data): New variable.
10359 (struct jit_inferior_data): New type.
10360 (get_jit_inferior_data): New function.
10361 (jit_inferior_data_cleanup): New function.
10362 (jit_read_descriptor): Adjust.
10363 (jit_register_code): Adjust.
10364 (jit_breakpoint_re_set_internal): New function; move code here ...
10365 (jit_inferior_init): ... from here.
10366 (jit_breakpoint_re_set): Adjust.
10367 (jit_reset_inferior_data_and_breakpoints): New function.
10368 (jit_inferior_created_observer): Adjust.
10369 (jit_inferior_exit_hook): Adjust.
10370 (jit_executable_changed_observer): New function.
10371 (jit_event_handler): Adjust.
10372 (_initialize_jit): Adjust.
10373
e839132d
MS
103742011-01-31 Michael Snyder <msnyder@vmware.com>
10375
10376 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10377 line.
10378
47a80e90
TT
103792011-01-31 Tom Tromey <tromey@redhat.com>
10380
10381 PR python/12216:
10382 * python/python.c (execute_gdb_command): Call
10383 prevent_dont_repeat.
10384 * top.c (suppress_dont_repeat): New global.
10385 (dont_repeat): Use it.
10386 (prevent_dont_repeat): New function.
10387 * command.h (prevent_dont_repeat): Declare.
10388
45a43567
TT
103892011-01-31 Tom Tromey <tromey@redhat.com>
10390
10391 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10392 * python/py-breakpoint.c (bppy_set_silent): Use
10393 breakpoint_set_silent.
10394 (bppy_set_thread): Use breakpoint_set_thread.
10395 (bppy_set_task): Use breakpoint_set_task.
10396 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10397 (breakpoint_set_task): Declare.
10398 (make_breakpoint_silent): Remove.
10399 * breakpoint.c (breakpoint_set_silent): New function.
10400 (breakpoint_set_thread): Likewise.
10401 (breakpoint_set_task): Likewise.
10402 (make_breakpoint_silent): Remove.
10403
09d682a4
TT
104042011-01-31 Tom Tromey <tromey@redhat.com>
10405
10406 * breakpoint.h (user_breakpoint_p): Declare.
10407 * breakpoint.c (user_breakpoint_p): New function.
10408 (breakpoint_1): Use it.
10409 (save_breakpoints): Likewise.
10410
9c4ea6c5
JB
104112011-01-31 Joel Brobecker <brobecker@adacore.com>
10412
10413 * configure.ac: Add handling of Python distribution on Windows.
10414 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10415 sysconfig variables are not defined, then do not use them.
10416 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10417 instead. On Windows, return all paths using forward-slashes
10418 rather than backslashes.
10419
ac534cba
JB
104202011-01-31 Joel Brobecker <brobecker@adacore.com>
10421
10422 * configure.ac: Remove fallback behavior for building
10423 against Python. Remove tweaking of Python include path.
10424 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10425 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10426 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10427 Always restore CPPFLAGS and LIBS after linking test.
10428 * configure: Regenerated.
10429 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10430 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10431 * python/python-internal.h: Adjust includes of Python .h files.
10432
c2f0d045
JB
104332011-01-31 Joel Brobecker <brobecker@adacore.com>
10434
10435 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10436 in error message.
10437
6b0c4c1f
JB
104382011-01-31 Joel Brobecker <brobecker@adacore.com>
10439
10440 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10441 value test.
10442
672c9795
YQ
104432011-01-31 Yao Qi <yao@codesourcery.com>
10444
10445 * arm-linux-nat.c: Update calls to regcache_register_status
10446 instead of regcache_valid_p.
10447 * aix-thread.c: Likewise.
10448 * i386gnu-nat.c: Likewise.
10449
80b23b6a
JK
104502011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10451
10452 Fix crash.
10453 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10454 touching TYPE_FIELD_ARTIFICIAL.
10455
4cd712bd
RE
104562011-01-28 Richard Earnshaw <rearnsha@arm.com>
10457
10458 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10459 Committers.
10460
ffd5ec24
PA
104612011-01-28 Pedro Alves <pedro@codesourcery.com>
10462
10463 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10464 selected, don't try iterating over the traceframe's blocks.
10465 (tfile_has_stack): If there's no traceframe selected, then there's
10466 no stack.
10467 (tfile_has_registers): If there's no traceframe selected, then
10468 there's no registers.
10469
e8c9e0a1
PA
104702011-01-28 Pedro Alves <pedro@codesourcery.com>
10471
10472 * target.c (memory_xfer_partial): No need to restore shadows if we
10473 haven't read anything.
10474
de15c4ab
PA
104752011-01-28 Pedro Alves <pedro@codesourcery.com>
10476
10477 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10478 and val_print_scalar_formatted.
10479
9f41c731
PA
104802011-01-27 Pedro Alves <pedro@codesourcery.com>
10481
10482 * tracepoint.c (tfile_read): New.
10483 (tfile_open): Use it.
10484 (tfile_get_traceframe_address): Use it.
10485 (tfile_trace_find): Use it.
10486 (walk_blocks_callback_func): New typedef.
10487 (match_blocktype): New function.
10488 (traceframe_walk_blocks): New function.
10489 (traceframe_find_block_type): New function.
10490 (tfile_fetch_registers, tfile_xfer_partial)
10491 (tfile_get_trace_state_variable_value): Use
10492 traceframe_find_block_type and tfile_read.
10493
cdefc55d
KB
104942011-01-26 Kevin Buettner <kevinb@redhat.com>
10495
10496 * remote-mips.c: Add internationalization mark ups. Remove
10497 trailing \n from already marked up strings.
10498
a81766d8
TT
104992011-01-26 Tom Tromey <tromey@redhat.com>
10500
10501 * python/py-prettyprint.c (print_string_repr): Clear
10502 'addressprint' option when calling val_print_string.
10503 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10504 option when calling val_print_string.
10505
74aedc46
TT
105062011-01-26 Tom Tromey <tromey@redhat.com>
10507
10508 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10509 GDB_PY_LL_ARG.
10510 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10511 macros.
10512 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10513 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10514 (gdb_py_long_as_ulongest): New defines.
10515 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10516 (gdb_py_int_as_long): Declare.
10517 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10518 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10519 (valpy_long): Add comment.
10520 * python/py-utils.c (get_addr_from_python): Use
10521 gdb_py_long_as_ulongest. Handle overflow properly.
10522 (gdb_py_object_from_longest): New function.
10523 (gdb_py_object_from_ulongest): Likewise.
10524 (gdb_py_int_as_long): Likewise.
10525 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10526 * python/py-symtab.c (salpy_get_pc): Use
10527 gdb_py_long_from_ulongest.
10528 (salpy_get_line): Use PyInt_FromLong.
10529 * python/py-param.c (set_parameter_value): Use
10530 gdb_py_int_as_long.
10531 * python/py-lazy-string.c (stpy_get_address): Use
10532 gdb_py_long_from_ulongest.
10533 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10534 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10535 * python/py-breakpoint.c (bppy_set_thread): Use
10536 gdb_py_int_as_long.
10537 (bppy_set_task): Likewise.
10538 (bppy_set_ignore_count): Likewise.
10539 (bppy_set_hit_count): Likewise.
10540 * python/py-block.c (blpy_get_start): Use
10541 gdb_py_object_from_ulongest.
10542 (blpy_get_end): Likewise.
10543 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10544
e4f6d2ec
TJB
105452011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10546
10547 PR/symtab 11766:
10548 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10549 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10550 equality test for objfile, initialize addr_low if needed.
10551
b30aa278
PA
105522011-01-25 Pedro Alves <pedro@codesourcery.com>
10553
10554 * tui/tui-regs.c (tui_register_format): Remove dead code.
10555
ab2188aa
PA
105562011-01-25 Pedro Alves <pedro@codesourcery.com>
10557
10558 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10559 instead of print_scalar_formatted.
10560 (print_scalar_formatted): Don't handle 's' format strings here,
10561 and add an assertion that we never see such format here.
10562 * valprint.h (val_print_scalar_formatted): Declare.
10563 * valprint.c (val_print_scalar_formatted): New.
10564 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10565 instead of print_scalar_formatted.
10566 * jv-valprint.c (java_val_print): Ditto.
10567 * p-valprint.c (pascal_val_print): Ditto.
10568 * ada-valprint.c (ada_val_print_1): Ditto.
10569 * f-valprint.c (f_val_print): Ditto.
10570 * infcmd.c (registers_info): Ditto.
10571 * m2-valprint.c (m2_val_print): Ditto.
10572
66d61a4c
PA
105732011-01-25 Pedro Alves <pedro@codesourcery.com>
10574
10575 * m2-valprint.c (print_unbounded_array): Pass
10576 value_contents_for_printing rather than value_contents, to
10577 m2_print_array_contents. Also pass in the value.
10578
831adc1f
JK
105792011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10582 (save_gdb_index_command): Switch to .gdb_index version 4.
10583
20622269
PA
105842011-01-25 Pedro Alves <pedro@codesourcery.com>
10585
10586 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10587 than frame_register, and always pass a valid value to val_print.
10588
585fdaa1
PA
105892011-01-25 Pedro Alves <pedro@codesourcery.com>
10590
10591 Centralize printing "<optimized out>".
10592
10593 * valprint.h (val_print_optimized_out): Declare.
10594 * cp-valprint.c (cp_print_value_fields): Use
10595 val_print_optimized_out.
10596 * jv-valprint.c (java_print_value_fields): Ditto.
10597 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10598 * printcmd.c (print_formatted): Ditto.
10599 * valprint.c (valprint_check_validity): Ditto.
10600 (value_check_printable): Ditto.
10601 (val_print_optimized_out): New.
10602
29ec5263
PA
106032011-01-25 Pedro Alves <pedro@codesourcery.com>
10604
10605 * infcmd.c (default_print_registers_info): Allocate values so to
10606 never pass a NULL value to val_print.
10607
de4127a3
PA
106082011-01-25 Pedro Alves <pedro@codesourcery.com>
10609
10610 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10611 boolean. Make sure to always pass a value that matches the
10612 contents buffer to callees. Preserve `address' for following
10613 iterations.
10614 * value.c (value_contents_for_printing_const): New.
10615 (value_address): Constify value argument.
10616 * value.h (value_contents_for_printing_const): Declare.
10617 (value_address): Constify value argument.
10618
ee99023e
PA
106192011-01-25 Pedro Alves <pedro@codesourcery.com>
10620
10621 * regcache.c (struct regcache_descr): Rename
10622 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10623 and sizeof_cooked_register_valid_p to
10624 sizeof_cooked_register_status.
10625 (init_regcache_descr): Adjust.
10626 (struct regcache): Rename register_valid_p field to
10627 register_status.
10628 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10629 (do_cooked_read): Adjust.
10630 (regcache_valid_p): Rename to ...
10631 (regcache_register_status): ... this. Adjust.
10632 (regcache_invalidate): Adjust.
10633 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10634 Adjust.
10635 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10636 as unavailable, not valid.
10637 (regcache_dump): Adjust.
10638 * regcache.h (enum register_status): New.
10639 (regcache_register_status): Declare.
10640 (regcache_invalidate): Delete declaration.
10641 * corelow.c (get_core_registers): Adjust.
10642 * tracepoint.c (tfile_fetch_registers): Adjust.
10643 * trad-frame.c (REG_VALUE): Rename to ...
10644 (TF_REG_VALUE): ... this.
10645 (REG_UNKNOWN): Rename to ...
10646 (TF_REG_UNKNOWN): ... this.
10647 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10648 * mi/mi-main.c (register_changed_p): Adjust.
10649
99e42fd8
PA
106502011-01-25 Pedro Alves <pedro@codesourcery.com>
10651
10652 * regcache.c (struct regcache_descr): Remove outdated comment.
10653 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10654 overallocate hack.
10655 (regcache_xmalloc): Rename to ...
10656 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10657 Allocate the regcache type accordingly.
10658 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10659 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10660 cooked registers, not raw.
10661 (regcache_dup_no_passthrough): Delete.
10662 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10663 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10664 mention obsolete write_register_bytes.
10665 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10666
f7605bc2
PA
106672011-01-25 Pedro Alves <pedro@codesourcery.com>
10668
10669 Stop remote_read_bytes from handling partial reads itself.
10670
10671 * remote-fileio.c: Include target.h.
10672 (remote_fileio_write_bytes): Delete.
10673 (remote_fileio_func_open, remote_fileio_func_write)
10674 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10675 target_read_memory.
10676 (remote_fileio_func_stat): Use target_read_memory and
10677 target_write_memory.
10678 (remote_fileio_func_gettimeofday): Use target_write_memory.
10679 (remote_fileio_func_system): Use target_read_memory.
10680 * remote.c (remote_write_bytes): Make it static.
10681 (remote_read_bytes): Don't handle partial reads here.
10682 * remote.h (remote_read_bytes): Delete declaration.
10683
efc0eabd
PA
106842011-01-25 Pedro Alves <pedro@codesourcery.com>
10685
10686 Simplify XML parsing a bit.
10687
10688 * xml-support.h (gdb_xml_parse_quick): Declare.
10689 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10690 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10691 parameter.
10692 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10693 gdb_xml_create_parser_and_cleanup_1.
10694 (gdb_xml_parse_quick): New.
10695 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10696 * osdata.c (osdata_parse): Ditto.
10697 * remote.c (remote_threads_info): Ditto.
10698 * solib-target.c (solib_target_parse_libraries): Ditto.
10699 * xml-syscall.c (syscall_parse_xml): Ditto.
10700 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10701
314d366a
KB
107022011-01-24 Kevin Buettner <kevinb@redhat.com>
10703
10704 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10705 with remote-mips.o added to gdb_target_obs.
10706 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10707
a491d753
PA
107082011-01-24 Pedro Alves <pedro@codesourcery.com>
10709
10710 * ada-valprint.c (val_print_packed_array_elements): Pass the
10711 correct struct value to val_print.
10712 (ada_val_print_1): Ditto.
10713
490f124f
PA
107142011-01-24 Pedro Alves <pedro@codesourcery.com>
10715
10716 Don't lose embedded_offset in printing routines throughout.
10717
10718 * valprint.h (val_print_array_elements): Change prototype.
10719 * valprint.c (val_print_array_elements): Add `embedded_offset'
10720 parameter, and adjust to pass it down to val_print, while passing
10721 `valaddr' or `address' unmodified. Take embedded_offset into
10722 account when checking repetitions.
10723 * c-valprint.c (c_val_print): Pass embedded_offset to
10724 val_print_array_elements instead of adjusting `valaddr' and
10725 `address'.
10726 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10727 embedded_offset to val_print_array_elements instead of adjusting
10728 `valaddr'.
10729 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10730 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10731 val_print_array_elements and pascal_object_print_value_fields
10732 instead of adjusting `valaddr'.
10733 (pascal_object_print_value_fields): Add `offset' parameter, and
10734 adjust to use it.
10735 (pascal_object_print_value): Add `offset' parameter, and adjust to
10736 use it.
10737 (pascal_object_print_static_field): Use
10738 value_contents_for_printing/value_embedded_offset, rather than
10739 value_contents.
10740 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10741 parameter, and adjust to use it. Use
10742 value_contents_for_printing/value_embedded_offset, rather than
10743 value_contents.
10744 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10745 (ada_val_print_array): Add `offset' parameter, and adjust to use
10746 it.
10747 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10748 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10749 Instead work with offsets. Use
10750 value_contents_for_printing/value_embedded_offset, rather than
10751 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10752 and use value_from_pointer to extract a target pointer, rather
10753 than value_from_longest.
10754 (print_variant_part): 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 (ada_value_print): Use
10758 value_contents_for_printing/value_embedded_offset, rather than
10759 value_contents.
10760 (print_record): Add `offset' parameter, and adjust to pass it
10761 down.
10762 (print_field_values): Add `offset' parameter. Replace
10763 `outer_valaddr' parameter by a new `outer_offset' parameter.
10764 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10765 Use value_contents_for_printing/value_embedded_offset, rather than
10766 value_contents.
10767 * d-valprint.c (dynamic_array_type): Use
10768 value_contents_for_printing/value_embedded_offset, rather than
10769 value_contents.
10770 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10771 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10772 (java_print_value_fields): Take `offset' into account. Don't
10773 re-adjust `valaddr'. Instead pass down adjusted offsets.
10774 (java_val_print): Take `embedded_offset' into account. Pass it to
10775 java_print_value_fields.
10776 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10777 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10778 down adjusted offsets.
10779 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10780 (f_val_print): Take `embedded_offset' into account.
10781
7bfc9434
JB
107822011-01-21 Joel Brobecker <brobecker@adacore.com>
10783
10784 * inflow.c: Include "gdbcmd.h".
10785 (interactive_mode): New static global, moved here from top.c.
10786 (show_interactive_mode): New function, moved here from top.c.
10787 use gdb_has_a_terminal instead of input_from_terminal_p to
10788 determine the current mode.
10789 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10790 setting.
10791 (_initialize_inflow): Add the "set/show interactive-mode"
10792 commands. Moved here from top.c, after having adjusted slightly
10793 the help text.
10794 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10795 to inflow.c.
10796 (input_from_terminal_p): Remove handling of "interactive-mode"
10797 setting, moved to infow.c.
10798 (init_main): Remove creation of the "set/show interactive-mode"
10799 commands, moved to inflow.c.
10800
44603653
JB
108012011-01-19 Joel Brobecker <brobecker@adacore.com>
10802
10803 * NEWS: Add entry for native ia64-hpux support.
10804
4694da01
TT
108052011-01-19 Tom Tromey <tromey@redhat.com>
10806
10807 PR mi/8618:
10808 * thread.c (free_thread): Free 'name'.
10809 (print_thread_info): Emit thread name. Change CLI output.
10810 (thread_name_command): New function.
10811 (do_captured_thread_select): Emit newline.
10812 (_initialize_thread): Register 'thread name' command.
10813 * target.h (struct target_ops) <to_thread_name>: New field.
10814 (target_thread_name): New macro.
10815 * target.c (update_current_target): Handle to_thread_name.
10816 * python/py-infthread.c (thpy_get_name): New function.
10817 (thpy_set_name): Likewise.
10818 (thread_object_getset): Add "name".
10819 * linux-nat.c (linux_nat_thread_name): New function.
10820 (linux_nat_add_target): Set to_thread_name.
10821 * gdbthread.h (struct thread_info) <name>: New field.
10822
10d44370
JB
108232011-01-18 Joel Brobecker <brobecker@adacore.com>
10824
10825 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10826 (ada_val_print_1): Likewise.
10827
e3acb115
JB
108282011-01-18 Joel Brobecker <brobecker@adacore.com>
10829
10830 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10831 upper limit address is not greater than the function end address
10832 when the upper limit could not be computed using the debugging
10833 info.
10834
dc92e161
TT
108352011-01-17 Tom Tromey <tromey@redhat.com>
10836
10837 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10838 get_regcomp_error.
10839 * utils.c: Include gdb_regex.h.
10840 (do_regfree_cleanup): New function.
10841 (make_regfree_cleanup): Likewise.
10842 (get_regcomp_error): Likewise.
10843 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10844
f55af66d
TT
108452011-01-17 Tom Tromey <tromey@redhat.com>
10846
10847 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10848 re_compile_fastmap.
10849
a5a44b53
PM
108502011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10851
10852 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10853 for internal variables.
10854 (last_was_structop): New static variable.
10855 (COMPLETE): New token.
10856 (field_exp): New rule to group all '.' suffix handling.
10857 Add mark_struct_expression calls when approriate to be able
10858 to correctly find fields for completion.
10859 (yylex): Adapt to handle field completion and set INTVAR when
10860 required.
10861
2c291032
YQ
108622011-01-14 Yao Qi <yao@codesourcery.com>
10863
10864 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10865 save_reggroup, restore_reggroup and all_reggroup.
10866
447b483c
JB
108672011-01-14 Joel Brobecker <brobecker@adacore.com>
10868
10869 * ada-valprint. (ada_printchar): Use the correct type length
10870 in call to ada_emit_char.
10871 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10872
7b64a93b
PM
108732011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10874
10875 * solib-som.h (hpux_major_release): Declare variable here.
10876 * solib-som.c: Remove <sys/utsname.h> header.
10877 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10878 (hpux_major_release): Make global, change default value to
10879 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10880 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10881 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10882 Add "solib-som.h" header.
10883 (set_hpux_major_release): New function.
10884 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10885
4e18c053
MF
108862011-01-14 Mike Frysinger <vapier@gentoo.org>
10887
10888 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10889
a9df6b22
JB
108902011-01-14 Joel Brobecker <brobecker@adacore.com>
10891
10892 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10893 new-line at end of warning message.
10894 (ia64_hpux_store_register): Remove trailing new-line at end of
10895 error message.
10896 * ia64-hpux-tdep.c: Rephrase comment.
10897 * solib-ia64-hpux.c (struct dld_info): Change type of field
10898 dld_flags from "long long" to ULONGEST.
10899
ecb956dd
PA
109002011-01-14 Pedro Alves <pedro@codesourcery.com>
10901
10902 * target.h (deprecated_child_ops): Delete declaration.
10903 * target.c (deprecated_child_ops): Delete definition.
10904
76adfcae
PA
109052011-01-14 Pedro Alves <pedro@codesourcery.com>
10906
10907 * Makefile.in (hpux-thread.o): Delete rule.
10908 * configure.ac: Don't check for HPUX DCE threads support.
10909 * configure, config.in: Regenerate.
10910 * hppa-hpux-nat.c (child_suppress_run): Delete.
10911 (hppa_hpux_child_can_run): Delete.
10912 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10913 * hpux-thread.c: Delete.
10914
042e866e
JB
109152011-01-13 Joel Brobecker <brobecker@adacore.com>
10916
10917 * hpux-thread.c (hpux_pid_to_str): Delete.
10918
4ffa5a33
JB
109192011-01-13 Joel Brobecker <brobecker@adacore.com>
10920
10921 * ada-valprint.c (ada_emit_char): Remove strange code.
10922 Check that c is <= UCHAR_MAX before passing it to isascii.
10923 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10924
de8fa76c
JB
109252011-01-13 Joel Brobecker <brobecker@adacore.com>
10926
10927 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10928 to the case where instream is stdin.
10929
c4de7027
JB
109302011-01-13 Joel Brobecker <brobecker@adacore.com>
10931
10932 * ia64-tdep.h (struct regcache): Forward declare.
10933 (struct ia64_infcall_ops): New struct type.
10934 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10935 and "infcall_ops".
10936 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10937 Renames ia64_find_global_pointer.
10938 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10939 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10940 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10941 methods.
10942 (ia64_infcall_ops): New static global constant.
10943 (ia64_gdbarch_init): Set tdep->infcall_ops.
10944 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10945 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10946 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10947 (ia64_hpux_dummy_code): New static global constant.
10948 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10949 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10950 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10951 New function.
10952 (ia64_hpux_infcall_ops): New static global constant.
10953 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10954 for inferior function calls to work properly on ia64-hpux.
10955
77ca787b
JB
109562011-01-13 Joel Brobecker <brobecker@adacore.com>
10957
10958 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10959 * ia64-tdep.h (struct frame_info): forward declaration.
10960 (struct gdbarch_tdep): Add field size_of_register_frame.
10961 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10962 to determine the size of the register frame.
10963 (ia64_size_of_register_frame): New function.
10964 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10965 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10966 (IA64_HPUX_UREG_REASON): New macro.
10967 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10968 New functions.
10969 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10970 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10971 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10972 objects.
10973
92c9a463
JB
109742011-01-13 Joel Brobecker <brobecker@adacore.com>
10975
10976 Add support for ia64-hpux.
10977 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10978 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10979
10980 * configure.host: Add handling for ia64-hpux hosts. Add associated
10981 floatformats.
10982 * configure.tgt: Add handling for ia64-hpux targets.
10983 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10984 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10985 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10986
f688d93f
JB
109872011-01-13 Joel Brobecker <brobecker@adacore.com>
10988
10989 [ttrace] Compute thread list immediately after attach.
10990 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10991 New subprogram.
10992 (inf_ttrace_attach): Use it.
10993
1b89e62f
JB
109942011-01-13 Joel Brobecker <brobecker@adacore.com>
10995
10996 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10997 if we could not determine the frame's function address. Instead,
10998 use the frame's PC, and then continue.
10999
3e5e6e2a
JB
110002011-01-13 Joel Brobecker <brobecker@adacore.com>
11001
11002 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11003 not already defined.
11004
825d6d8a
JB
110052011-01-13 Joel Brobecker <brobecker@adacore.com>
11006
11007 * ia64-tdep.c (ia64_struct_type_p): New function.
11008 (ia64_extract_return_value): Handle integral values that are
11009 less than 8 bytes long.
11010 (ia64_push_dummy_call): Likewise.
11011
7458e667
JB
110122011-01-13 Joel Brobecker <brobecker@adacore.com>
11013
11014 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11015 floatformat_ia64_ext.
11016 (floatformat_ia64_ext_big): New static const.
11017 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11018
1b05df00
TT
110192011-01-12 Tom Tromey <tromey@redhat.com>
11020
11021 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11022 messages.
11023 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11024 (mi_cmd_thread_list_ids): Likewise.
11025 (mi_cmd_data_list_changed_registers): Likewise.
11026 (mi_cmd_data_list_register_values): Likewise.
11027 (mi_cmd_data_write_register_values): Likewise.
11028 (mi_cmd_data_evaluate_expression): Likewise.
11029 (mi_cmd_data_read_memory): Likewise.
11030 (mi_cmd_data_read_memory_bytes): Likewise.
11031 (mi_cmd_data_write_memory): Likewise.
11032 (mi_cmd_enable_timings): Likewise.
11033 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11034 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11035 (mi_cmd_var_delete): Likewise.
11036 (mi_cmd_var_set_format): Likewise.
11037 (mi_cmd_var_show_format): Likewise.
11038 (mi_cmd_var_info_num_children): Likewise.
11039 (mi_cmd_var_list_children): Likewise.
11040 (mi_cmd_var_info_type): Likewise.
11041 (mi_cmd_var_info_expression): Likewise.
11042 (mi_cmd_var_show_attributes): Likewise.
11043 (mi_cmd_var_assign): Likewise.
11044 (mi_cmd_var_update): Likewise.
11045 (mi_cmd_enable_pretty_printing): Likewise.
11046 (mi_cmd_var_set_update_range): Likewise.
11047 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11048 messages.
11049 (mi_cmd_target_file_put): Likewise.
11050 (mi_cmd_target_file_delete): Likewise.
11051 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11052 messages.
11053 (mi_cmd_stack_info_depth): Likewise.
11054 (mi_cmd_stack_list_locals): Likewise.
11055 (mi_cmd_stack_list_args): Likewise.
11056 (mi_cmd_stack_select_frame): Likewise.
11057 (mi_cmd_stack_select_frame): Likewise.
11058 (mi_cmd_stack_info_frame): Likewise.
11059 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11060 messages.
11061 (mi_cmd_file_list_exec_source_files): Likewise.
11062 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11063 (mi_cmd_env_cd): Likewise.
11064 (mi_cmd_env_path): Likewise.
11065 (mi_cmd_env_dir): Likewise.
11066 (mi_cmd_inferior_tty_show): Likewise.
11067 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11068 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11069 (mi_cmd_break_watch): Likewise.
11070
ad422571
TJB
110712011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11072
11073 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11074 (ppc_linux_insert_hw_breakpoint): Likewise.
11075 (ppc_linux_remove_hw_breakpoint): Likewise.
11076 (ppc_linux_insert_watchpoint): Likewise.
11077
c2ff108b
JK
110782011-01-12 Andrew Burgess <aburgess@broadcom.com>
11079 Jan Kratochvil <jan.kratochvil@redhat.com>
11080
11081 PR fortran/11104 and DWARF unbound arrays detection.
11082 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11083 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11084 unspecified upper bound.
11085 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11086 variables array_size_array, tmp_type and offset_item. New variable
11087 array. Remove call to f77_get_upperbound. New variables array_type
11088 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11089 the final call to deprecated_set_value_type.
11090
41e8491f
JK
110912011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11092
11093 Make value allocations more lazy.
11094 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11095 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11097 instead of allocate_value and set_value_lazy.
11098 * findvar.c (value_of_register_lazy): Likewise.
11099 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11100 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11101 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11102 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11103 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11104 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11105 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11106 the end, remove set_value_lazy there.
11107 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11108 instead of allocate_value and set_value_lazy when possible.
11109 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11110 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11111 of allocate_value and set_value_lazy.
11112 (value_from_contents_and_address): Use allocate_value_lazy instead of
11113 allocate_value and set_value_lazy when possible.
11114
b716877b
AB
111152011-01-12 Andrew Burgess <aburgess@broadcom.com>
11116
11117 * disasm.c (dump_insns): Support dumping opcodes for MI.
11118 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11119 dumping of instruction opcodes.
11120
d5ae309f
JB
111212011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11122
11123 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11124 appropiately.
11125
98871305
TT
111262011-01-11 Tom Tromey <tromey@redhat.com>
11127
11128 * thread.c (do_captured_thread_select): Emit newline before
11129 printing frame.
11130
c378eb4e
MS
111312011-01-11 Michael Snyder <msnyder@vmware.com>
11132
11133 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11134 * score-tdep.c: Ditto.
11135 * score-tdep.h: Ditto.
11136 * ser-base.c: Ditto.
11137 * ser-go32.c: Ditto.
11138 * serial.c: Ditto.
11139 * serial.h: Ditto.
11140 * ser-mingw.c: Ditto.
11141 * ser-pipe.c: Ditto.
11142 * ser-tcp.c: Ditto.
11143 * ser-unix.c: Ditto.
11144 * sh64-tdep.c: Ditto.
11145 * shnbsd-nat.c: Ditto.
11146 * sh-tdep.c: Ditto.
11147 * sh-tdep.h: Ditto.
11148 * solib.c: Ditto.
11149 * solib-darwin.c: Ditto.
11150 * solib-frv.c: Ditto.
11151 * solib.h: Ditto.
11152 * solib-irix.c: Ditto.
11153 * solib-osf.c: Ditto.
11154 * solib-pa64.c: Ditto.
11155 * solib-som.c: Ditto.
11156 * solib-spu.c: Ditto.
11157 * solib-sunos.c: Ditto.
11158 * solib-svr4.c: Ditto.
11159 * solist.h: Ditto.
11160 * sol-thread.c: Ditto.
11161 * somread.c: Ditto.
11162 * source.c: Ditto.
11163 * source.h: Ditto.
11164 * sparc64-linux-tdep.c: Ditto.
11165 * sparc64-tdep.c: Ditto.
11166 * sparc-linux-nat.c: Ditto.
11167 * sparc-linux-tdep.c: Ditto.
11168 * sparc-sol2-nat.c: Ditto.
11169 * sparc-sol2-tdep.c: Ditto.
11170 * sparc-tdep.c: Ditto.
11171 * sparc-tdep.h: Ditto.
11172 * spu-tdep.c: Ditto.
11173 * stabsread.c: Ditto.
11174 * stabsread.h: Ditto.
11175 * stack.c: Ditto.
11176 * symfile.c: Ditto.
11177 * symfile.h: Ditto.
11178 * symmisc.c: Ditto.
11179 * symtab.c: Ditto.
11180 * symtab.h: Ditto.
11181 * target.c: Ditto.
11182 * target-descriptions.c: Ditto.
11183 * target-descriptions.h: Ditto.
11184 * target.h: Ditto.
11185 * target-memory.c: Ditto.
11186 * terminal.h: Ditto.
11187 * thread.c: Ditto.
11188 * top.c: Ditto.
11189 * tracepoint.c: Ditto.
11190 * tracepoint.h: Ditto.
11191 * trad-frame.h: Ditto.
11192 * typeprint.c: Ditto.
11193
581e13c1
MS
111942011-01-11 Michael Snyder <msnyder@vmware.com>
11195
11196 * ui-file.c: Comment cleanup, mostly periods and spaces.
11197 * ui-file.h: Ditto.
11198 * ui-out.c: Ditto.
11199 * ui-out.h: Ditto.
11200 * utils.c: Ditto.
11201 * v850-tdep.c: Ditto.
11202 * valarith.c: Ditto.
11203 * valops.c: Ditto.
11204 * valprint.c: Ditto.
11205 * valprint.h: Ditto.
11206 * value.c: Ditto.
11207 * value.h: Ditto.
11208 * varobj.c: Ditto.
11209 * varobj.h: Ditto.
11210 * vax-tdep.c: Ditto.
11211 * vec.c: Ditto.
11212 * vec.h: Ditto.
11213 * version.h: Ditto.
11214 * windows-nat.c: Ditto.
11215 * windows-tdep.c: Ditto.
11216 * xcoffread.c: Ditto.
11217 * xcoffsolib.c: Ditto.
11218 * xml-support.c: Ditto.
11219 * xstormy16-tdep.c: Ditto.
11220 * xtensa-tdep.c: Ditto.
11221 * xtensa-tdep.h: Ditto.
11222
90e4670f
TJB
112232011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11224
11225 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11226 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11227
e09342b5
TJB
112282011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11229 Thiago Jung Bauermann <bauerman@br.ibm.com>
11230
11231 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11232 * breakpoint.h
e09342b5
TJB
11233 (struct breakpoint_ops) <resources_needed>: New method.
11234 Initialize to NULL in all existing breakpoint_ops instances.
11235 (struct breakpoint) <exact>: New field.
11236 (target_exact_watchpoints): Declare external global.
11237 * breakpoint.c (target_exact_watchpoints): New global flag.
11238 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11239 b->enable_state to bp_enabled before calling
11240 hw_watchpoint_used_count.
11241 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11242 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11243 if available.
11244 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11245 if the watchpoint is exact.
11246 (resources_needed_watchpoint): New function.
11247 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11248 (watch_command_1): Set b->exact if the user asked for an exact
11249 watchpoint and one can be set.
11250 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11251 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11252 the user asks for an exact watchpoint and one can be set. Return
11253 number of needed debug registers to watch the expression.
11254 * gdbtypes.c (is_scalar_type): New function, based on
11255 valprint.c:scalar_type_p.
11256 (is_scalar_type_recursive): New function.
11257 * gdbtypes.h (is_scalar_type_recursive): Declare.
11258 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11259 handle regions when ranged watchpoints are available.
11260 (create_watchpoint_request): New function.
11261 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11262 create_watchpoint_request.
11263 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11264 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11265 `set powerpc' and `show powerpc' commands.
11266 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11267 Mention documentation comment in the target macro.
11268 (target_region_ok_for_hw_watchpoint): Document return value.
11269
9fa40276
TJB
112702011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11271
11272 * breakpoint.c (update_watchpoint): Decide on using a software or
11273 hardware watchpoint after the bp_locations are created.
11274
77b06cd7
TJB
112752010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11276
11277 Convert hardware watchpoints to use breakpoint_ops.
11278 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11279 <insert_location>: ... this. Return int instead of void.
11280 Accept pointer to struct bp_location instead of pointer to
11281 struct breakpoint. Adapt all implementations.
f2eb0bc8 11282 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11283 <remove_location>: ... this. Accept pointer to struct bp_location
11284 instead of pointer to struct breakpoint. Adapt all implementations.
11285 * breakpoint.c (insert_catchpoint): Delete function.
11286 (insert_bp_location): Call the watchpoint or catchpoint's
11287 breakpoint_ops.insert method.
11288 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11289 breakpoint_ops.remove method.
11290 (insert_watchpoint, remove_watchpoint): New functions.
11291 (watchpoint_breakpoint_ops): New structure.
11292 (watch_command_1): Initialize the OPS field.
11293 * inf-child.c (inf_child_insert_fork_catchpoint)
11294 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11295 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11296 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11297 Delete functions.
11298 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11299 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11300 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11301 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11302 * target.c (update_current_target): Change default implementation of
11303 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11304 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11305 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11306 to_set_syscall_catchpoint to return_one.
11307 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11308 (debug_to_insert_exec_catchpoint): Report return value.
11309 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11310 (to_insert_exec_catchpoint): Change declaration to return int instead
11311 of void.
11312
9b20d036
MS
113132011-01-11 Michael Snyder <msnyder@vmware.com>
11314
11315 * arm-tdep.c: Internationalization.
11316 * c-lang.c: Ditto.
11317 * charset.c: Ditto.
11318 * fork-child.c: Ditto.
11319 * nto-procfs.c: Ditto.
11320 * ppc-sysv-tdep.c: Ditto.
11321 * procfs.c: Ditto.
11322 * remote-mips.c: Ditto.
11323 * remote.c: Ditto.
11324 * rs6000-nat.c: Ditto.
11325 * rs6000-tdep.c: Ditto.
11326 * target.c: Ditto.
11327 * valops.c: Ditto.
11328 * value.c: Ditto.
11329 * xml-support.c: Ditto.
11330 * mi/mi-cmd-break.c: Ditto.
11331 * mi/mi-cmd-var.c: Ditto.
11332 * mi/mi-interp.c: Ditto.
11333 * mi/mi-main.c: Ditto.
11334
dae477fe
AB
113352011-01-11 Andrew Burgess <aburgess@broadcom.com>
11336
11337 * remote-sim.c (gdbsim_store_register): Update API to
11338 sim_store_register to check more error conditions.
11339
0df8b418
MS
113402011-01-10 Michael Snyder <msnyder@vmware.com>
11341
11342 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11343 * nto-tdep.c: Ditto.
11344 * nto-tdep.h: Ditto.
11345 * objc-exp.y: Ditto.
11346 * objc-lang.c: Ditto.
11347 * objfiles.c: Ditto.
11348 * objfiles.h: Ditto.
11349 * observer.c: Ditto.
11350 * opencl-lang.c: Ditto.
11351 * osabi.c: Ditto.
11352 * parse.c: Ditto.
11353 * parser-defs.h: Ditto.
11354 * p-exp.y: Ditto.
11355 * p-lang.c: Ditto.
11356 * posix-hdep.c: Ditto.
11357 * ppcbug-rom.c: Ditto.
11358 * ppc-linux-nat.c: Ditto.
11359 * ppc-linux-tdep.c: Ditto.
11360 * ppc-linux-tdep.h: Ditto.
11361 * ppcnbsd-tdep.c: Ditto.
11362 * ppcobsd-tdep.c: Ditto.
11363 * ppcobsd-tdep.h: Ditto.
11364 * ppc-sysv-tdep.c: Ditto.
11365 * ppc-tdep.h: Ditto.
11366 * printcmd.c: Ditto.
11367 * proc-abi.c: Ditto.
11368 * proc-flags.c: Ditto.
11369 * procfs.c: Ditto.
11370 * proc-utils.h: Ditto.
11371 * progspace.h: Ditto.
11372 * prologue-value.c: Ditto.
11373 * prologue-value.h: Ditto.
11374 * psympriv.h: Ditto.
11375 * psymtab.c: Ditto.
11376 * p-typeprint.c: Ditto.
11377 * p-valprint.c: Ditto.
11378 * ravenscar-sparc-thread.c: Ditto.
11379 * ravenscar-thread.c: Ditto.
11380 * ravenscar-thread.h: Ditto.
11381 * record.c: Ditto.
11382 * regcache.c: Ditto.
11383 * regcache.h: Ditto.
11384 * remote.c: Ditto.
11385 * remote-fileio.c: Ditto.
11386 * remote-fileio.h: Ditto.
11387 * remote.h: Ditto.
11388 * remote-m32r-sdi.c: Ditto.
11389 * remote-mips.c: Ditto.
11390 * remote-sim.c: Ditto.
11391 * rs6000-aix-tdep.c: Ditto.
11392 * rs6000-nat.c: Ditto.
11393 * rs6000-tdep.c: Ditto.
11394
0d7a18f7
MS
113952011-01-10 Michael Snyder <msnyder@vmware.com>
11396
11397 * charset.c (validate): Internationalization.
11398 * coffread.c (read_one_sym): Ditto.
11399 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11400 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11401 * inflow.c (new_tty): Ditto.
11402 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11403 * m32c-tdep.c (m32c_return_value): Ditto.
11404 * mep-tdep.c (mep_store_return_value): Ditto.
11405 * score-tdep.c (score7_fetch_insn): Ditto.
11406 * ser-mingw.c (pipe_windows_open): Ditto.
11407 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11408 * spu-tdep.c (spu_register_type): Ditto.
11409 * tracepoint.c (trace_find_command): Ditto.
11410 * valarith.c (value_pos): Ditto.
11411
9a153e0b
JB
114122011-01-10 Joel Brobecker <brobecker@adacore.com>
11413
11414 * ada-valprint.c (printstr): Minor comment reformatting.
11415
35ecd2d6
MS
114162011-01-08 Michael Snyder <msnyder@vmware.com>
11417
11418 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11419 markup.
11420
1777feb0
MS
114212011-01-08 Michael Snyder <msnyder@vmware.com>
11422
11423 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11424 * hppa-hpux-tdep.c: Ditto.
11425 * hppa-linux-nat.c: Ditto.
11426 * hppa-linux-tdep.c: Ditto.
11427 * hppanbsd-tdep.c: Ditto.
11428 * hppa-tdep.c: Ditto.
11429 * hppa-tdep.h: Ditto.
11430 * hpux-thread.c: Ditto.
11431 * i386-cygwin-tdep.c: Ditto.
11432 * i386-darwin-nat.c: Ditto.
11433 * i386gnu-nat.c: Ditto.
11434 * i386-linux-nat.c: Ditto.
11435 * i386-linux-tdep.c: Ditto.
11436 * i386-nat.c: Ditto.
11437 * i386-nat.h: Ditto.
11438 * i386nbsd-tdep.c: Ditto.
11439 * i386-sol2-nat.c: Ditto.
11440 * i386-stub.c: Ditto.
11441 * i386-tdep.c: Ditto.
11442 * i386-tdep.h: Ditto.
11443 * i387-tdep.c: Ditto.
11444 * ia64-linux-nat.c: Ditto.
11445 * ia64-linux-tdep.c: Ditto.
11446 * ia64-tdep.c: Ditto.
11447 * infcall.c: Ditto.
11448 * infcall.h: Ditto.
11449 * infcmd.c: Ditto.
11450 * inferior.c: Ditto.
11451 * inferior.h: Ditto.
11452 * infloop.c: Ditto.
11453 * inflow.c: Ditto.
11454 * infrun.c: Ditto.
11455 * interps.c: Ditto.
11456 * interps.h: Ditto.
11457 * iq2000-tdep.c: Ditto.
11458 * irix5-nat.c: Ditto.
11459 * jit.c: Ditto.
11460 * jit.h: Ditto.
11461 * jv-exp.y: Ditto.
11462 * jv-lang.c: Ditto.
11463 * jv-lang.h: Ditto.
11464 * jv-typeprint.c: Ditto.
11465 * jv-valprint.c: Ditto.
11466 * language.c: Ditto.
11467 * language.h: Ditto.
11468 * linespec.c: Ditto.
11469 * linux-fork.c: Ditto.
11470 * linux-nat.c: Ditto.
11471 * linux-thread-db.c: Ditto.
11472 * lm32-tdep.c: Ditto.
11473
025bb325
MS
114742011-01-08 Michael Snyder <msnyder@vmware.com>
11475
11476 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11477 * m2-lang.c: Ditto.
11478 * m2-typeprint.c: Ditto.
11479 * m2-valprint.c: Ditto.
11480 * m32c-tdep.c: Ditto.
11481 * m32r-linux-nat.c: Ditto.
11482 * m32r-rom.c: Ditto.
11483 * m32r-tdep.c: Ditto.
11484 * m32r-tdep.h: Ditto.
11485 * m68hc11-tdep.c: Ditto.
11486 * m58klinux-nat.c: Ditto.
11487 * m68k-tdep.c: Ditto.
11488 * m88k-tdep.c: Ditto.
11489 * m88k-tdep.h: Ditto.
11490 * machoread.c: Ditto.
11491 * macrocmd.c: Ditto.
11492 * macroexp.c: Ditto.
11493 * macrotab.c: Ditto.
11494 * main.c: Ditto.
11495 * maint.c: Ditto.
11496 * mdebugread.c: Ditto.
11497 * mdebugread.h: Ditto.
11498 * memattr.c: Ditto.
11499 * memattr.h: Ditto.
11500 * memory-map.h: Ditto.
11501 * mep-tdep.c: Ditto.
11502 * microblaze-rom.c: Ditto.
11503 * microblaze-tdep.c: Ditto.
11504 * minsyms.c: Ditto.
11505 * mips-irix-tdep.c: Ditto.
11506 * mips-linux-nat.c: Ditto.
11507 * mips-linux-tdep.c: Ditto.
11508 * mips-linux-tdep.h: Ditto.
11509 * mipsnbsd-nat.c: Ditto.
11510 * mipsnbsd-tdep.c: Ditto.
11511 * mipsread.c: Ditto.
11512 * mips-tdep.c: Ditto.
11513 * mips-tdep.h: Ditto.
11514 * mn10300-linux-tdep.c: Ditto.
11515 * mn10300-tdep.c: Ditto.
11516 * mn10300-tdep.h: Ditto.
11517 * monitor.c: Ditto.
11518 * monitor.h: Ditto.
11519 * moxie-tdep.c: Ditto.
11520 * moxie-tdep.h: Ditto.
11521 * mt-tdep.c: Ditto.
11522
1642781b
MF
115232011-01-08 Mike Frysinger <vapier@gentoo.org>
11524
11525 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11526
394b0adb
JB
115272011-01-08 Robert Millan <rmh@gnu.org>
11528
11529 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11530
b670013c
MS
115312011-01-07 Michael Snyder <msnyder@vmware.com>
11532
11533 * charset.c (_initialize_charset): Fix typo in string.
11534
a743e542
MS
115352011-01-07 Michael Snyder <msnyder@vmware.com>
11536
11537 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11538 for i18n.
f2eb0bc8 11539 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11540 Split line so that operator goes to beginning of line.
11541 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11542 assignment out of if statement.
11543
0963b4bd
MS
115442011-01-07 Michael Snyder <msnyder@vmware.com>
11545
11546 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11547 * ada-lang.h: Ditto.
11548 * ada-tasks.c: Ditto.
11549 * ada-valprint.c: Ditto.
11550 * aix-threads.c: Ditto.
11551 * alpha-linux-nat.c: Ditto.
11552 * alpha-linux-tdep.c: Ditto.
11553 * alpha-mdebug-tdep.c: Ditto.
11554 * alpha-nat.c: Ditto.
11555 * alpha-osf1-tdep.c: Ditto.
11556 * alpha-tdep.c: Ditto.
11557 * alphabsd-nat.c: Ditto.
11558 * alphabsd-tdep.c: Ditto.
11559 * amd64-darwin-tdep.c: Ditto.
11560 * amd64-linux-nat.c: Ditto.
11561 * amd64-linux-tdep.c: Ditto.
11562 * amd64-sol2-tdep.c: Ditto.
11563 * amd64-tdep.c: Ditto.
11564 * amd64-fbsd-tdep.c: Ditto.
11565 * amd64-nbsd-tdep.c: Ditto.
11566 * amd64-obsd-tdep.c: Ditto.
11567 * amd64-linux-nat.c: Ditto.
11568 * amd64-linux-tdep.c: Ditto.
11569 * arm-tdep.c: Ditto.
11570 * arm-tdep.h: Ditto.
11571 * armnbsd-nat.c: Ditto.
11572 * avr-tdep.c: Ditto.
11573 * bfin-tdep.c: Ditto.
11574 * bsd-kvm.c: Ditto.
11575 * c-typeprintc: Ditto.
11576 * c-valprint.c: Ditto.
11577 * coff-pe-read.h: Ditto.
11578 * coffreead.c: Ditto.
11579 * cris-tdep.c: Ditto.
11580 * d-lang.c: Ditto.
11581 * darwin-nat-info.c: Ditto.
11582 * darwin-nat.c: Ditto.
11583 * dbug-rom.c: Ditto.
11584 * dbxread.c: Ditto.
11585 * dcache.c: Ditto.
11586 * dcache.h: Ditto.
11587 * dec-thread.c: Ditto.
11588 * defs.h: Ditto.
11589 * demangle.c: Ditto.
11590 * dicos-tdep.c: Ditto.
11591 * dictionary.c: Ditto.
11592 * dictionary.h: Ditto.
11593 * dink32-rom.c: Ditto.
11594 * disasm.c: Ditto.
11595 * doublest.c: Ditto.
11596 * dsrec.c: Ditto.
11597 * dummy-frame.c: Ditto.
11598 * dwarf2-frame.c: Ditto.
11599 * dwarf2expr.c: Ditto.
11600 * dwarf2loc.c: Ditto.
11601 * dwarf2read.c: Ditto.
11602 * elfread.c: Ditto.
11603 * environ.c: Ditto.
11604 * eval.c: Ditto.
11605 * event-top.h: Ditto.
11606 * exceptions.c: Ditto.
11607 * exceptions.h: Ditto.
11608 * exec.c: Ditto.
11609 * expprint.c: Ditto.
11610 * expression.h: Ditto.
11611 * f-exp.y: Ditto.
11612 * f-lang.c: Ditto.
11613 * f-lang.h: Ditto.
11614 * f-typeprint.c: Ditto.
11615 * f-valprint.c: Ditto.
11616 * fbsd-nat.c: Ditto.
11617 * findvar.c: Ditto.
11618 * fork-child.c: Ditto.
11619 * frame.c: Ditto.
11620 * frame.h: Ditto.
11621 * frv-linux-tdep.c: Ditto.
11622 * frv-tdep.c: Ditto.
11623 * gcore.c: Ditto.
11624 * gdb-stabs.h: Ditto.
11625 * gdb_assert.h: Ditto.
11626 * gdb_string.h: Ditto.
11627 * gdb_thread_db.h: Ditto.
11628 * gdb_wait.h: Ditto.
11629 * gdbarch.sh: Ditto.
11630 * gdbcore.h: Ditto.
11631 * gdbthread.h: Ditto.
11632 * gdbtypes.c: Ditto.
11633 * gdbtypes.h: Ditto.
11634 * gnu-nat.c: Ditto.
11635 * gnu-nat.h: Ditto.
11636 * gnu-v2-abi.c: Ditto.
11637 * gnu-v3-abi.c: Ditto.
11638 * go32-nat.c: Ditto.
11639 * gdbarch.c: Regenerate.
11640 * gdbarch.h: Regenerate.
11641
ac74f770
MS
116422011-01-07 Michael Snyder <msnyder@vmware.com>
11643
11644 * ax-gdb.c: Adjust some long output strings.
11645 * breakpoint.c: Ditto.
11646 * charset.c: Ditto.
11647 * cp-abi.c: Ditto.
11648 * infcall.c: Ditto.
11649 * infrun.c: Ditto.
11650 * linux-nat.c: Ditto.
11651 * solib-pa64.c: Ditto.
11652 * solib-som.c: Ditto.
11653
d8e22779
TT
116542011-01-06 Tom Tromey <tromey@redhat.com>
11655
11656 PR python/12367:
11657 * NEWS: Add item.
11658 * python/python.c (GdbMethods): Add "newest_frame" method.
11659 * python/python-internal.h (gdbpy_newest_frame): Declare.
11660 * python/py-frame.c (gdbpy_newest_frame): New function.
11661
a255712f
PP
116622010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11663
11664 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11665 * jit.c (jit_debug): New variable.
11666 (show_jit_debug): New function.
11667 (struct target_buffer): Use ULONGEST.
11668 (bfd_open_from_target_memory): Likewise.
11669 (jit_register_code, jit_inferior_init): Add debug output.
11670 (_initialize_jit): Register "debug jit" command.
11671
ccfc3d6e
TT
116722011-01-06 Tom Tromey <tromey@redhat.com>
11673
11674 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11675 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11676 and ARCH_FRAME.
11677
57126e4a
TT
116782011-01-06 Tom Tromey <tromey@redhat.com>
11679
11680 * python/py-frame.c (frapy_block): Use get_frame_block.
11681
16dfc9ce
JB
116822011-01-06 Joel Brobecker <brobecker@adacore.com>
11683
11684 Do not stop on SIGPRIO signals by default
11685 * infrun.c (_initialize_infrun): Unset signal_stop and
11686 signal_print for TARGET_SIGNAL_PRIO.
11687
b1ce2347
JB
116882011-01-06 Joel Brobecker <brobecker@adacore.com>
11689
11690 * ada-tasks.c: Fix style violation in comment.
11691
8f7e195f
JB
116922011-01-06 Joel Brobecker <brobecker@adacore.com>
11693
11694 * linespec.c (decode_compound, find_method): Remove trailing \n
11695 at end of error string.
11696 * solib-irix.c (irix_current_sos): Likewise.
11697 * varobj.c (uninstall_variable): Likewise.
11698
e9bdf92c
JB
116992011-01-06 Joel Brobecker <brobecker@adacore.com>
11700
11701 * copyright.py: New script.
11702 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11703 Launch emacs without exec'ing. Call copyright.py afterwards.
11704
3e43a32a
MS
117052011-01-05 Michael Snyder <msnyder@vmware.com>
11706
11707 * addrmap.c: Shorten lines of >= 80 columns.
11708 * arch-utils.c: Ditto.
11709 * arch-utils.h: Ditto.
11710 * ax-gdb.c: Ditto.
11711 * ax-general.c: Ditto.
11712 * bcache.c: Ditto.
11713 * blockframe.c: Ditto.
11714 * breakpoint.c: Ditto.
11715 * buildsym.c: Ditto.
11716 * c-lang.c: Ditto.
11717 * c-typeprint.c: Ditto.
11718 * charset.c: Ditto.
11719 * coffread.c: Ditto.
11720 * command.h: Ditto.
11721 * corelow.c: Ditto.
11722 * cp-abi.c: Ditto.
11723 * cp-namespace.c: Ditto.
11724 * cp-support.c: Ditto.
11725 * dbug-rom.c: Ditto.
11726 * dbxread.c: Ditto.
11727 * defs.h: Ditto.
11728 * dfp.c: Ditto.
11729 * dfp.h: Ditto.
11730 * dictionary.c: Ditto.
11731 * disasm.c: Ditto.
11732 * doublest.c: Ditto.
11733 * dwarf2-frame.c: Ditto.
11734 * dwarf2expr.c: Ditto.
11735 * dwarf2loc.c: Ditto.
11736 * dwarf2read.c: Ditto.
11737 * elfread.c: Ditto.
11738 * eval.c: Ditto.
11739 * event-loop.c: Ditto.
11740 * event-loop.h: Ditto.
11741 * exceptions.h: Ditto.
11742 * exec.c: Ditto.
11743 * expprint.c: Ditto.
11744 * expression.h: Ditto.
11745 * f-lang.c: Ditto.
11746 * f-valprint.c: Ditto.
11747 * findcmd.c: Ditto.
11748 * frame-base.c: Ditto.
11749 * frame-unwind.c: Ditto.
11750 * frame-unwind.h: Ditto.
11751 * frame.c: Ditto.
11752 * frame.h: Ditto.
11753 * gcore.c: Ditto.
11754 * gdb-stabs.h: Ditto.
11755 * gdb_assert.h: Ditto.
11756 * gdb_dirent.h: Ditto.
11757 * gdb_obstack.h: Ditto.
11758 * gdbcore.h: Ditto.
11759 * gdbtypes.c: Ditto.
11760 * gdbtypes.h: Ditto.
11761 * inf-ttrace.c: Ditto.
11762 * infcall.c: Ditto.
11763 * infcmd.c: Ditto.
11764 * inflow.c: Ditto.
11765 * infrun.c: Ditto.
11766 * inline-frame.h: Ditto.
11767 * language.c: Ditto.
11768 * language.h: Ditto.
11769 * libunwind-frame.c: Ditto.
11770 * libunwind-frame.h: Ditto.
11771 * linespec.c: Ditto.
11772 * linux-nat.c: Ditto.
11773 * linux-nat.h: Ditto.
11774 * linux-thread-db.c: Ditto.
11775 * machoread.c: Ditto.
11776 * macroexp.c: Ditto.
11777 * macrotab.c: Ditto.
11778 * main.c: Ditto.
11779 * maint.c: Ditto.
11780 * mdebugread.c: Ditto.
11781 * memattr.c: Ditto.
11782 * minsyms.c: Ditto.
11783 * monitor.c: Ditto.
11784 * monitor.h: Ditto.
11785 * objfiles.c: Ditto.
11786 * objfiles.h: Ditto.
11787 * osabi.c: Ditto.
11788 * p-typeprint.c: Ditto.
11789 * p-valprint.c: Ditto.
11790 * parse.c: Ditto.
11791 * printcmd.c: Ditto.
11792 * proc-events.c: Ditto.
11793 * procfs.c: Ditto.
11794 * progspace.c: Ditto.
11795 * progspace.h: Ditto.
11796 * psympriv.h: Ditto.
11797 * psymtab.c: Ditto.
11798 * record.c: Ditto.
11799 * regcache.c: Ditto.
11800 * regcache.h: Ditto.
11801 * remote-fileio.c: Ditto.
11802 * remote.c: Ditto.
11803 * ser-mingw.c: Ditto.
11804 * ser-tcp.c: Ditto.
11805 * ser-unix.c: Ditto.
11806 * serial.c: Ditto.
11807 * serial.h: Ditto.
11808 * solib-frv.c: Ditto.
11809 * solib-irix.c: Ditto.
11810 * solib-osf.c: Ditto.
11811 * solib-pa64.c: Ditto.
11812 * solib-som.c: Ditto.
11813 * solib-sunos.c: Ditto.
11814 * solib-svr4.c: Ditto.
11815 * solib-target.c: Ditto.
11816 * solib.c: Ditto.
11817 * somread.c: Ditto.
11818 * source.c: Ditto.
11819 * stabsread.c: Ditto.
11820 * stabsread.c: Ditto.
11821 * stack.c: Ditto.
11822 * stack.h: Ditto.
11823 * symfile-mem.c: Ditto.
11824 * symfile.c: Ditto.
11825 * symfile.h: Ditto.
11826 * symmisc.c: Ditto.
11827 * symtab.c: Ditto.
11828 * symtab.h: Ditto.
11829 * target-descriptions.c: Ditto.
11830 * target-memory.c: Ditto.
11831 * target.c: Ditto.
11832 * target.h: Ditto.
11833 * terminal.h: Ditto.
11834 * thread.c: Ditto.
11835 * top.c: Ditto.
11836 * tracepoint.c: Ditto.
11837 * tracepoint.h: Ditto.
11838 * ui-file.c: Ditto.
11839 * ui-file.h: Ditto.
11840 * ui-out.h: Ditto.
11841 * user-regs.c: Ditto.
11842 * user-regs.h: Ditto.
11843 * utils.c: Ditto.
11844 * valarith.c: Ditto.
11845 * valops.c: Ditto.
11846 * valprint.c: Ditto.
11847 * valprint.h: Ditto.
11848 * value.c: Ditto.
11849 * varobj.c: Ditto.
11850 * varobj.h: Ditto.
11851 * vec.h: Ditto.
11852 * xcoffread.c: Ditto.
11853 * xcoffsolib.c: Ditto.
11854 * xcoffsolib.h: Ditto.
11855 * xml-syscall.c: Ditto.
11856 * xml-tdesc.c: Ditto.
11857
9a2b4c1b
MS
118582011-01-05 Michael Snyder <msnyder@vmware.com>
11859
11860 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11861 * cli/cli-decode.c: Ditto.
11862 * cli/cli-dump.c: Ditto.
11863 * cli/cli-logging.c: Ditto.
11864 * cli/cli-script.c: Ditto.
11865 * cli/cli-setshow.c: Ditto.
11866 * common/signals.c: Ditto.
11867 * mi/mi-cmd-break.c: Ditto.
11868 * mi/mi-cmd-disas.c: Ditto.
11869 * mi/mi-cmd-stack.c: Ditto.
11870 * mi/mi-cmd-var.c: Ditto.
11871 * mi/mi-cmds.c: Ditto.
11872 * mi/mi-common.h: Ditto.
11873 * mi/mi-console.c: Ditto.
11874 * mi/mi-interp.c: Ditto.
11875 * mi/mi-main.c: Ditto.
11876 * osf-share/cma_attr.c: Ditto.
11877 * osf-share/cma_deb_core.h: Ditto.
11878 * osf-share/cma_debug_client.h: Ditto.
11879 * osf-share/cma_handle.h: Ditto.
11880 * osf-share/cma_mutex.h: Ditto.
11881 * osf-share/cma_stack_int.h: Ditto.
11882 * osf-share/cma_tcb_defs.h: Ditto.
11883 * python/py-auto-load.c: Ditto.
11884 * python/py-breakpoint.c: Ditto.
11885 * python/py-cmd.c: Ditto.
11886 * python/py-frame.c: Ditto.
11887 * python/py-objfile.c: Ditto.
11888 * python/py-param.c: Ditto.
11889 * python/py-progspace.c: Ditto.
11890 * python/py-symbol.c: Ditto.
11891 * python/py-value.c: Ditto.
11892 * python/python-internal.h: Ditto.
11893 * python/python.c: Ditto.
11894 * tui/tui-data.c: Ditto.
11895 * tui/tui-disasm.c: Ditto.
11896 * tui/tui-hooks.c: Ditto.
11897 * tui/tui-io.c: Ditto.
11898 * tui/tui-layout.c: Ditto.
11899 * tui/tui-regs.c: Ditto.
11900 * tui/tui-source.c: Ditto.
11901 * tui/tui-stack.c: Ditto.
11902 * tui/tui-win.c: Ditto.
11903 * tui/tui-windata.c: Ditto.
11904 * tui/tui-winsource.c: Ditto.
11905
44944448
JB
119062011-01-05 Joel Brobecker <brobecker@adacore.com>
11907
11908 * configure.ac, gdb.1: Copyright year update.
11909
ebedcab5
JK
119102011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11911
11912 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11913 this_pc_in_block, morestack_msym and morestack_name. Check for
11914 "__morestack" minimal symbol there.
11915
e5cc9f32
JB
119162011-01-03 Joel Brobecker <brobecker@adacore.com>
11917
11918 * symfile.c (find_sym_fns): Add call to dont_repeat.
11919
7b6bb8da
JB
119202011-01-01 Joel Brobecker <brobecker@adacore.com>
11921
11922 Copyright year update in most files (performed by copyright.sh).
11923
71ce852c
JB
119242011-01-01 Joel Brobecker <brobecker@adacore.com>
11925
11926 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11927
c3c1ebe8 11928For older changes see ChangeLog-2010.
c906108c
SS
11929\f
11930Local Variables:
11931mode: change-log
11932left-margin: 8
11933fill-column: 74
11934version-control: never
57da7796 11935coding: utf-8
c906108c 11936End:
This page took 1.762376 seconds and 4 git commands to generate.