*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
040dff2a
MR
12011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips32_next_pc): Fix floating point condition
4 code mask.
5
754d7c78
MR
62011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
9 of BLTZ* and BGEZ* instructions.
10
91912e4d
MR
112011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12
13 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
14 performed to determine whether an address refers to standard
15 MIPS or MIPS16 code.
16 (mips16_next_pc): Use mips_pc_is_mips16 instead of
17 is_mips16_addr.
18
f0ba3972
PA
192011-12-06 Pedro Alves <pedro@codesourcery.com>
20
21 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
22 (breakpoint_xfer_memory): ... this. Change prototype. Handle
23 memory writes too.
24 * breakpoint.h (breakpoint_restore_shadows): Delete.
25 (breakpoint_xfer_memory): Declare.
26 * mem-break.c (default_memory_insert_breakpoint)
27 (default_memory_remove_breakpoint): Use target_write_raw_memory.
28 (memory_xfer_partial): Rename to ...
29 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
30 here.
31 (memory_xfer_partial): New.
32 (target_write_raw_memory): New.
33 * target.h (target_write_raw_memory): New.
34
31aba06f
DE
352011-12-06 Doug Evans <dje@google.com>
36
37 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
38
f8eba3c6
TT
392011-12-06 Joel Brobecker <brobecker@acacore.com>
40
41 * language.h (struct language_defn): Add new component
42 la_symbol_name_compare.
43 * symfile.h (struct quick_symbol_functions): Update the profile
44 of parameter "name_matcher" for the expand_symtabs_matching
45 method. Update the documentation accordingly.
46 * ada-lang.h (ada_name_for_lookup): Add declaration.
47 * ada-lang.c (ada_name_for_lookup): New function, extracted out
48 from ada_iterate_over_symbols.
49 (ada_iterate_over_symbols): Do not encode symbol name anymore.
50 (ada_expand_partial_symbol_name): Adjust profile.
51 (ada_language_defn): Add value for la_symbol_name_compare field.
52 * linespec.c: #include "ada-lang.h".
53 (iterate_name_matcher): Add language parameter. Replace call
54 to strcmp_iw by call to language->la_symbol_name_compare.
55 (decode_variable): Encode COPY if current language is Ada.
56 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
57 of name_matcher parameter. Adjust call to name_matcher.
58 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
59 (expand_partial_symbol_names): Update profile of parameter "fun".
60 * psymtab.h (expand_partial_symbol_names): Update profile of
61 parameter "fun".
62 * symtab.c (demangle_for_lookup): Update function documentation.
63 (search_symbols_name_matches): Add language parameter.
64 (expand_partial_symbol_name): Likewise.
65 * c-lang.c (c_language_defn, cplus_language_defn)
66 (asm_language_defn, minimal_language_defn): Add value for
67 la_symbol_name_compare field.
68 * d-lang.c (d_language_defn): Likewise.
69 * f-lang.c (f_language_defn): Ditto.
70 * jv-lang.c (java_language_defn): Ditto.
71 * m2-lang.c (m2_language_defn): Ditto.
72 * objc-lang.c (objc_language_defn): Ditto.
73 * opencl-lang.c (opencl_language_defn): Ditto.
74 * p-lang.c (pascal_language_defn): Ditto.
75 * language.c (unknown_language_defn, auto_language_defn)
76 (local_language_defn): Ditto.
77
782011-12-06 Tom Tromey <tromey@redhat.com>
79
80 * linespec.c (iterate_over_all_matching_symtabs): Use
81 LA_ITERATE_OVER_SYMBOLS.
82 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
83 (find_function_symbols, decode_variable): Remove Ada special
84 case.
85 * language.h (struct language_defn) <la_iterate_over_symbols>: New
86 field.
87 (LA_ITERATE_OVER_SYMBOLS): New macro.
88 * language.c (unknown_language_defn, auto_language_defn)
89 (local_language_defn): Update.
90 * c-lang.c (c_language_defn, cplus_language_defn)
91 (asm_language_defn, minimal_language_defn): Update.
92 * d-lang.c (d_language_defn): Update.
93 * f-lang.c (f_language_defn): Update.
94 * jv-lang.c (java_language_defn): Update.
95 * m2-lang.c (m2_language_defn): Update.
96 * objc-lang.c (objc_language_defn): Update.
97 * opencl-lang.c (opencl_language_defn): Update.
98 * p-lang.c (pascal_language_defn): Update.
99 * ada-lang.c (ada_iterate_over_symbols): New function.
100 (ada_language_defn): Update.
101
1022011-12-06 Tom Tromey <tromey@redhat.com>
103 Joel Brobecker <brobecker@acacore.com>
104
105 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
106 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
107 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
108 PR shlibs/8929, PR shlibs/7393:
109 * python/py-type.c (compare_maybe_null_strings): Rename from
110 compare_strings.
111 (check_types_equal): Update.
112 * utils.c (compare_strings): New function.
113 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
114 location changes.
115 * tracepoint.c (scope_info): Update.
116 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
117 * symtab.h (iterate_over_minimal_symbols)
118 (iterate_over_some_symtabs, iterate_over_symtabs)
119 (find_pcs_for_symtab_line, iterate_over_symbols)
120 (demangle_for_lookup): Declare.
121 (expand_line_sal): Remove.
122 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
123 (lookup_symtab_callback): New functions.
124 (lookup_symtab): Rewrite.
125 (demangle_for_lookup): New function, extract from
126 lookup_symbol_in_language.
127 (lookup_symbol_in_language): Use it.
128 (iterate_over_symbols): New function.
129 (find_line_symtab): Update.
130 (find_pcs_for_symtab_line): New functions.
131 (find_line_common): Add 'start' argument.
132 (decode_line_spec): Update. Change argument to 'flags', change
133 interpretation.
134 (append_expanded_sal): Remove.
135 (append_exact_match_to_sals): Remove.
136 (expand_line_sal): Remove.
137 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
138 Remove.
139 <map_symtabs_matching_filename>: New field.
140 * stack.c (func_command): Only look in the current program space.
141 Use DECODE_LINE_FUNFIRSTLINE.
142 * source.c (line_info): Set pspace on sal. Check program space in
143 the loop. Use DECODE_LINE_LIST_MODE.
144 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
145 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
146 * python/python.c (gdbpy_decode_line): Update.
147 * psymtab.c (partial_map_expand_apply): New function.
148 (partial_map_symtabs_matching_filename): Rename from
149 lookup_partial_symbol. Update arguments.
150 (lookup_symtab_via_partial_symtab): Remove.
151 (psym_functions): Update.
152 * objc-lang.h (parse_selector, parse_method): Don't declare.
153 (find_imps): Update.
154 * objc-lang.c (parse_selector, parse_method): Now static.
155 (find_methods): Change arguments. Fill in a vector of symbol
156 names.
157 (uniquify_strings): New function.
158 (find_imps): Change arguments.
159 * minsyms.c (iterate_over_minimal_symbols): New function.
160 * linespec.h (enum decode_line_flags): New.
161 (struct linespec_sals): New.
162 (struct linespec_result) <canonical>: Remove.
163 <pre_expanded, addr_string, sals>: New fields.
164 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
165 (decode_line_full): Declare.
166 (decode_line_1): Update.
167 * linespec.c (struct address_entry, struct linespec_state, struct
168 collect_info): New types.
169 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
170 (eq_address_entry, maybe_add_address): New functions.
171 (total_number_of_methods): Remove.
172 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
173 functions.
174 (find_methods): Change arguments. Don't canonicalize input.
175 Simplify logic.
176 (add_matching_methods, add_constructors)
177 (build_canonical_line_spec): Remove.
178 (filter_results, convert_results_to_lsals): New functions.
179 (decode_line_2): Change arguments. Rewrite for new data
180 structures.
181 (decode_line_internal): Rename from decode_line_1. Change
182 arguments. Add cleanups. Update for new data structures.
183 (linespec_state_constructor, linespec_state_destructor)
184 (decode_line_full, decode_line_1): New functions.
185 (decode_indirect): Change arguments. Update.
186 (locate_first_half): Use skip_spaces.
187 (decode_objc): Change arguments. Update for new data structures.
188 Simplify logic.
189 (decode_compound): Change arguments. Add cleanups. Remove
190 fallback code, replace with error.
191 (struct decode_compound_collector): New type.
192 (collect_one_symbol): New function.
193 (lookup_prefix_sym): Change arguments. Update.
194 (compare_symbol_name, add_all_symbol_names_from_pspace)
195 (find_superclass_methods ): New functions.
196 (find_method): Rewrite.
197 (struct symtab_collector): New type.
198 (add_symtabs_to_list, collect_symtabs_from_filename): New
199 functions.
200 (symtabs_from_filename): Change API. Rename from
201 symtab_from_filename.
202 (collect_function_symbols): New function.
203 (find_function_symbols): Change API. Rename from
204 find_function_symbol. Rewrite.
205 (decode_all_digits): Change arguments. Rewrite.
206 (decode_dollar): Change arguments. Use decode_variable.
207 (decode_label): Change arguments. Rewrite.
208 (collect_symbols): New function.
209 (minsym_found): Change arguments. Rewrite.
210 (check_minsym, search_minsyms_for_name)
211 (add_matching_symbols_to_info): New function.
212 (decode_variable): Change arguments. Iterate over all symbols.
213 (symbol_found): Remove.
214 (symbol_to_sal): New function.
215 (init_linespec_result, destroy_linespec_result)
216 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
217 New functions.
218 (decode_digits_list_mode, decode_digits_ordinary): New functions.
219 * dwarf2read.c (dw2_map_expand_apply): New function.
220 (dw2_map_symtabs_matching_filename): Rename from
221 dw2_lookup_symtab. Change arguments.
222 (dwarf2_gdb_index_functions): Update.
223 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
224 * defs.h (compare_strings): Declare.
225 * cli/cli-cmds.c (compare_strings): Move to utils.c.
226 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
227 filter_sals.
228 (compare_symtabs, filter_sals): New functions.
229 * breakpoint.h (struct bp_location) <line_number, source_file>:
230 New fields.
231 (struct breakpoint) <line_number, source_file>: Remove.
232 <filter>: New field.
233 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
234 (momentary_breakpoint_from_master, add_location_to_breakpoint):
235 Update for changes to locations.
236 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
237 breakpoint.
238 (create_breakpoint_sal): Add 'filter' argument.
239 (remove_sal, expand_line_sal_maybe): Remove.
240 (create_breakpoints_sal): Remove 'sals' argument. Handle
241 pre-expanded sals and the filter.
242 (parse_breakpoint_sals): Use decode_line_full.
243 (check_fast_tracepoint_sals): Use get_sal_arch.
244 (create_breakpoint): Create a linespec_sals. Update.
245 (break_range_command): Use decode_line_full. Update.
246 (until_break_command): Update.
247 (clear_command): Update match conditions for linespec.c changes.
248 Use DECODE_LINE_LIST_MODE.
249 (say_where): Update for changes to locations.
250 (bp_location_dtor): Free 'source_file'.
251 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
252 (update_static_tracepoint): Update for changes to locations.
253 (update_breakpoint_locations): Disable ranged breakpoint if too
254 many locations match. Update.
255 (addr_string_to_sals): Use decode_line_full. Resolve all sal
256 PCs.
257 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
258 (decode_line_spec_1): Update. Change argument name to 'flags',
259 change interpretation.
260 * block.h (block_containing_function): Declare.
261 * block.c (block_containing_function): New function.
262 * skip.c (skip_function_command): Update.
263 (skip_re_set): Update.
264 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
265 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
266 * NEWS: Add entry.
267
2682011-12-06 Tom Tromey <tromey@redhat.com>
269
270 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
271 breakpoint's pspace to be NULL.
272 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
273 * breakpoint.c (init_raw_breakpoint): Conditionally set
274 breakpoint's pspace.
275 (init_breakpoint_sal): Don't set breakpoint's pspace.
276 (prepare_re_set_context): Conditionally switch program space.
277 (addr_string_to_sals): Check executing_startup on location's
278 program space.
279
2802011-12-06 Tom Tromey <tromey@redhat.com>
281
282 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
283 * breakpoint.c (should_be_inserted): Explicitly check if program
284 space is executing startup.
285 (describe_other_breakpoints): Update.
286 (disable_breakpoints_before_startup): Change executing_startup
287 earlier. Remove loop.
288 (enable_breakpoints_after_startup): Likewise.
289 (init_breakpoint_sal): Don't use bp_startup_disabled.
290 (create_breakpoint): Don't use bp_startup_disabled.
291 (update_global_location_list): Use should_be_inserted.
292 (bkpt_re_set): Update.
293
75c8c9d7
TT
2942011-12-06 Tom Tromey <tromey@redhat.com>
295
296 * python/lib/gdb/command/pretty_printers.py
297 (InfoPrettyPrinter.invoke1): Remove extra double quote.
298
7376e450
TT
2992011-12-06 Tom Tromey <tromey@redhat.com>
300
301 * NEWS: Add MI news.
302
c642a434
UW
3032011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
306 (S390_LAST_BREAK_REGNUM): Likewise.
307 (S390_SYSTEM_CALL_REGNUM): Likewise.
308 (S390_NUM_REGS): Update.
309
310 (s390_regmap_last_break): Add declaration.
311 (s390x_regmap_last_break): Likewise.
312 (s390_regmap_system_call): Likewise.
313
314 (tdesc_s390_linux32v1): Add declaration.
315 (tdesc_s390_linux32v2): Likewise.
316 (tdesc_s390_linux64v1): Likewise.
317 (tdesc_s390_linux64v2): Likewise.
318 (tdesc_s390x_linux64v1): Likewise.
319 (tdesc_s390x_linux64v2): Likewise.
320
321 * s390-tdep.c: Include new target description files
322 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
323 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
324 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
325 (s390_cannot_store_register): New function.
326 (s390_write_pc): Likewise.
327 (s390_dwarf_regmap): Add fields for new registers.
328 (s390_regmap_gregset): Likewise.
329 (s390x_regmap_gregset): Likewise.
330 (s390_regmap_fpregset): Likewise.
331 (s390_regmap_upper): Likewise.
332 (s390_regmap_last_break): New variable.
333 (s390x_regmap_last_break): Likewise.
334 (s390_regmap_system_call): Likewise.
335 (s390_last_break_regset): Likewise.
336 (s390x_last_break_regset): Likewise.
337 (s390_system_call_regset): Likewise.
338 (s390_upper_regset_sections): Rename to ...
339 (s390_linux64_regset_sections): ... this.
340 (s390_linux32_regset_sections): New variable.
341 (s390x_linux64_regset_sections): Likewise.
342 (s390_linux32v1_regset_sections): Likewise.
343 (s390_linux32v2_regset_sections): Likewise.
344 (s390_linux64v1_regset_sections): Likewise.
345 (s390_linux64v2_regset_sections): Likewise.
346 (s390x_linux64v1_regset_sections): Likewise.
347 (s390x_linux64v2_regset_sections): Likewise.
348 (s390_regset_from_core_section): Handle .reg-s390-last-break and
349 .reg-s390-system-call core file sections.
350 (s390_core_read_description): Check for presence of
351 .reg-s390-last-break and .reg-s390-system-call core file
352 sections and return appropriate target description.
353 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
354 "last_break" and "system_call" in target description. Install
355 appropriate gdbarch_core_regset_sections array.
356 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
357 (_initialize_s390_tdep): Initialize additional target descriptions.
358
359 * s390-nat.c: Include "elf/common.h".
360 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
361 (have_regset_last_break): New static variable.
362 (have_regset_system_call): Likewise.
363 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
364 (s390_native_collect): Likewise.
365 (fetch_regset, store_regset, check_regset): New functions.
366 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
367 and S390_SYSTEM_CALL_REGNUM.
368 (s390_linux_store_inferior_registers): Likewise.
369 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
370 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
371
372 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
373 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
374 (s390-linux32v1-expedite): Define.
375 (s390-linux32v2-expedite): Likewise.
376 (s390-linux64v1-expedite): Likewise.
377 (s390-linux64v2-expedite): Likewise.
378 (s390x-linux64v1-expedite): Likewise.
379 (s390x-linux64v2-expedite): Likewise.
380
381 * features/s390-linux32.xml: Add orig_r2 register.
382 * features/s390-linux64.xml: Likewise.
383 * features/s390x-linux64.xml: Likewise.
384 * features/s390-linux32v1.xml: New file.
385 * features/s390-linux32v2.xml: Likewise.
386 * features/s390-linux64v1.xml: Likewise.
387 * features/s390-linux64v2.xml: Likewise.
388 * features/s390x-linux64v1.xml: Likewise.
389 * features/s390x-linux64v2.xml: Likewise.
390
391 * features/s390-linux32.c: Regenerate.
392 * features/s390-linux64.c: Likewise.
393 * features/s390x-linux64.c: Likewise.
394 * features/s390-linux32v1.c: New generated file.
395 * features/s390-linux32v2.c: Likewise.
396 * features/s390-linux64v1.c: Likewise.
397 * features/s390-linux64v2.c: Likewise.
398 * features/s390x-linux64v1.c: Likewise.
399 * features/s390x-linux64v2.c: Likewise.
400
401 * regformats/s390-linux32.dat: Regenerate.
402 * regformats/s390-linux64.dat: Regenerate.
403 * regformats/s390x-linux64.dat: Regenerate.
404 * regformats/s390-linux32v1.dat: New generated file.
405 * regformats/s390-linux32v2.dat: Likewise.
406 * regformats/s390-linux64v1.dat: Likewise.
407 * regformats/s390-linux64v2.dat: Likewise.
408 * regformats/s390x-linux64v1.dat: Likewise.
409 * regformats/s390x-linux64v2.dat: Likewise.
410
336060f3
PA
4112011-12-05 Pedro Alves <pedro@codesourcery.com>
412
413 * linux-nat.c (resume_stopped_resumed_lwps): Call
414 registers_changed.
415
049e32d3
PA
4162011-12-05 Pedro Alves <pedro@codesourcery.com>
417
418 * breakpoint.c: Include record.h.
419 (breakpoints_always_inserted_mode): Return false when the record
420 target is in use.
421
5c03c7f9 4222011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
423
424 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
425 Reinstate perror_with_name call on ptrace error. Remove #if 0.
426 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
427 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
428
fbbd034e
AS
4292011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
430
431 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
432 `i'(-Wshadow).
433
a5ff8356 4342011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
435
436 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
437
4382011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
439
a5ff8356
AS
440 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
441 of `tdep'(-Wshadow).
442
93f2a35e
JK
4432011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
444
445 Fix compilation --without-expat.
446 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
447 from ...
448 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
449
2268b414
JK
4502011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
451 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
454 * features/library-list-svr4.dtd: New file.
455 * remote.c (PACKET_qXfer_libraries_svr4): New.
456 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
457 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
458 * solib-svr4.c (struct svr4_library_list): New.
459 [HAVE_LIBEXPAT]: Include xml-support.h.
460 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
461 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
462 [HAVE_LIBEXPAT] (svr4_library_list_children)
463 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
464 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
465 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
466 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
467 (svr4_read_so_list): Extend the corruption message by addresses.
468 (svr4_current_sos): New variable library_list, call
469 svr4_current_sos_via_xfer_libraries.
470 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
471
585861ea
JK
4722011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 PR threads/13448
475 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
476 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
477
9750bca9
JK
4782011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 PR breakpoints/13346
481 * dwarf2read.c (process_psymtab_comp_unit): Set
482 PSYMTABS_ADDRMAP_SUPPORTED.
483 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
484 validity. New field psymtabs_addrmap_supported.
485 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
486 psymtabs_addrmap_supported.
487 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
488 !PSYMTABS_ADDRMAP_SUPPORTED.
489 (dump_psymtab, maintenance_info_psymtabs): Print also
490 psymtabs_addrmap_supported.
491
f28c316a
DE
4922011-12-01 Doug Evans <dje@google.com>
493
494 * python/py-type.c (type_object_methods): Fix "array" doc string.
495
fc0ae648
AB
4962011-12-01 Andrew Burgess <aburgess@broadcom.com>
497
498 * source.c (print_source_lines_base): Fix missing braces on else
499 clause leading to additional output.
500
d6db1fab
UW
5012011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
502
503 * s390-nat.c (SUBOFF): Remove.
504 (s390_native_supply, s390_native_collect): New functions.
505 (supply_gregset, supply_fpregset): Use s390_native_supply.
506 (fill_gregset, fill_fpregset): Use s390_native_collect.
507
508 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
509 (s390_unwind_pseudo_register): New function.
510 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
511 registers instead of PC and CC.
512 (s390_backchain_frame_unwind_cache): Likewise.
513 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
514 full GPR pseudos.
515 (s390_trad_frame_prev_register): New function.
516 (s390_frame_prev_register): Use it.
517 (s390_sigtramp_frame_prev_register): Likewise.
518 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
519 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
520 special callback to unwind any pseudo.
521
522 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
523 * features/s390-core64.xml: Likewise.
524 * features/s390x-core64.xml: Likewise.
525 * features/s390-linux32.c: Regenerate.
526 * features/s390-linux64.c: Likewise.
527 * features/s390x-linux64.c: Likewise.
528
1dd635ac
UW
5292011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
530
531 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
532
0161e4b9
UW
5332011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
534
535 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
536 instruction. Add more diagnostic output.
537
0c36327f
AS
5382011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
539
540 * MAINTAINERS (Write After Approval): Add myself to the list.
541
b4264740
SD
5422011-11-29 Sanjoy Das <sdas@igalia.com>
543
544 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
545 (jit_bfd_try_read_symtab): Fix comments.
546
87326c78
DD
5472011-11-28 DJ Delorie <dj@redhat.com>
548
549 * NEWS: Mention RL78 simulator.
550
1e3a8f45
JB
5512011-11-28 Joel Brobecker <brobecker@adacore.com>
552
553 * symfile.h (struct quick_symbol_functions): Fix the documentation
554 of field map_matching_symbols, as symbols are sorted using
555 strcmp_iw_ordered, not strcmp_iw.
556
265e52c3
JB
5572011-11-28 Paul Hilfinger <hilfinger@adacore.com>
558
559 * symfile.h (struct quick_symbol_functions): Update the
560 documentation for field map_matching_symbols.
561
1a1d5513
JB
5622011-11-28 Joel Brobecker <brobecker@adacore.com>
563
564 * ada-lang.c (compare_names): Fix wrong return value in case
565 string1 starts with the same contents as string2, followed
566 by an underscore that do not start a symbol name suffix.
567
5d9c5995
PM
5682011-11-28 Phil Muldoon <pmuldoon@redhat.com>
569
570 PR python/13369
571 PR python/13374
572
573 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
574 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
575 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
576 exceptions.
577 * python/py-type.c (typy_strip_typedefs): Ditto.
578 (typy_legacy_template_argument): Ditto.
579 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
580 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
581
2bf50f6f
JB
5822011-11-27 Joel Brobecker <brobecker@acacore.com>
583
584 * remote.c (remote_get_tracepoint_status): Delete addrbuf
585 local variable. Avoid use of sprintf_vma.
586
744ab88c
SD
5872011-11-27 Sanjoy Das <sdas@igalia.com>
588
589 Fix regression in jit.exp.
590 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
591 (jit_register_code): Set the jit_objfile_data field to the correct
592 value.
593
46ad3598
UW
5942011-11-25  Uros Bizjak  <ubizjak@gmail.com>
595
596 * alpha-tdep.c (br_opcode): New.
597 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
598 (alpha_deal_with_atomic_sequence): New function.
599 (alpha_gdbarch_init): Handle single stepping of atomic sequences
600 with alpha_deal_with_atomic_sequence.
601
e4c5f296
TG
6022011-11-24 Tristan Gingold <gingold@adacore.com>
603
604 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
605 fields. Add oso_sym, end_sym and nbr_syms.
606 (macho_register_oso): Change interface.
607 (macho_symtab_add_minsym): New function.
608 (macho_symtab_read): Rewritten.
609 (get_archive_prefix_len): Remove trailing blanks.
610 (oso_el_compare_name): Add comment.
611 (struct macho_sym_hash_entry): New structure.
612 (macho_relocate_common_syms): Remove.
613 (macho_sym_hash_newfunc): New function.
614 (macho_resolve_oso_sym_with_minsym): Likewise.
615 (macho_add_oso_symfile): Rewritten.
616 (macho_symfile_read_all_oso): Remove trailing blanks.
617 Adjust code to free oso vector.
618 (macho_symfile_read): Likewise.
619 Move code to initialize minimal symbol
620
130854df
MR
6212011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
622
623 * mips-tdep.c (extended_offset): Fix formatting.
624
3d7bb9d9
DE
6252011-11-23 Doug Evans <dje@google.com>
626
627 * dwarf2read.c (dw2_lookup_symtab): Add comment.
628 (dw2_expand_symtabs_with_filename): Ditto.
629 (dw2_expand_symtabs_matching): Ditto.
630 (dw2_map_symbol_filenames): Ditto.
631
1fbf5ada
JB
6322011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
633
634 * ada-lang.c (assign_aggregate): Minor reformatting.
635
d984108d
JB
6362011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
637
638 * ada-lang.c (assign_aggregate): Remove declaration of local
639 variable `i' which is shadowing another variable with the same
640 name declared in the outer scope.
641
18af8284
JB
6422011-11-23 Joel Brobecker <brobecker@adacore.com>
643
644 * ada-lang.c (get_base_type): Renames base_type. Adjust all
645 calls throughout this file.
646
1fc7b5d7
JB
6472011-11-23 Joel Brobecker <brobecker@adacore.com>
648
649 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
650 FormatMessage.
651
36dfb11c
TT
6522011-11-22 Tom Tromey <tromey@redhat.com>
653
654 PR mi/8444:
655 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
656 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
657 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
658 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
659 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
660 (print_it_catch_syscall, print_it_catch_exec)
661 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
662 (bpstat_print): Add 'kind' argument. Handle
663 TARGET_WAITKIND_LOADED.
664 * infrun.c (normal_stop): Update for bpstat_print change. Don't
665 handle TARGET_WAITKIND_LOADED here.
666 * breakpoint.h (bpstat_print): Update.
667
5bd6aa83
TT
6682011-11-22 Tom Tromey <tromey@redhat.com>
669
670 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
671
f5afdc18
TT
6722011-11-22 Tom Tromey <tromey@redhat.com>
673
674 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
675 Use static_assert to check the size of
676 async_reason_string_lookup.
677 * common/gdb_assert.h (static_assert): New macro.
678
a3769e0c
AM
6792011-11-22 Alan Modra <amodra@gmail.com>
680
681 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
682 destination calculation. Don't expect >> to sign extend. Don't
683 add a break if branch lands inside the sequence anywhere.
684
56767571
KS
6852011-11-21 Keith Seitz <keiths@redhat.com>
686
687 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
688 -var-evaluate-expression of an enumeration and fix expected result.
689 * gdb.mi/mi2-varvdisplay.exp: Likewise.
690
8443c207
KY
6912011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
692
693 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
694 the case where osdata->items is empty. Rename column names to a
695 canonical form to avoid problems with unusual column names.
696
97643830
YQ
6972011-11-21 Yao Qi <yao@codesourcery.com>
698
699 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
700
f196051f
SS
7012011-11-20 Stan Shebs <stan@codesourcery.com>
702
703 * NEWS: Mention tracepoint additions.
704 * breakpoint.h (struct tracepoint): New field traceframe_usage.
705 * breakpoint.c (print_one_breakpoint_location): Identify
706 tracepoints as such when reporting hit counts, report
707 trace buffer usage.
708 (create_tracepoint_from_upload): Copy status info.
709 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
710 add fields user_name, notes, start_time, stop_time.
711 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
712 * tracepoint.c (trace_user): New global.
713 (trace_notes): New global.
714 (trace_stop_notes): New global.
715 (start_tracing): Add argument and trace note handling.
716 (stop_tracing): Ditto.
717 (trace_start_command): Add notes argument.
718 (trace_stop_command): Ditto.
719 (trace_status_command): Report additional status info.
720 (trace_status_mi): Similarly.
721 (trace_save): Update, record tracepoint status.
722 (set_disconnected_tracing): Call target method directly.
723 (send_disconnected_tracing_value): Remove.
724 (set_trace_user): New function.
725 (set_trace_notes): New function.
726 (set_trace_stop_notes): New function.
727 (parse_trace_status): Handle additional status.
728 (parse_tracepoint_status): New function.
729 (parse_tracepoint_definition): Call it.
730 (tfile_get_tracepoint_status): New function.
731 (init_tfile_ops): Use it.
732 (_initialize_tracepoint): Add new setshows.
733 * target.h (struct target_ops): New methods to_get_tracepoint_status
734 and to_set_trace_notes.
735 (target_get_tracepoint_status): New macro.
736 (target_set_trace_notes): New macro.
737 * target.c (update_current_target): Add new methods.
738 * remote.c (remote_get_tracepoint_status): New function.
739 (remote_set_trace_notes): New function.
740 (init_remote_ops): Add them.
741 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
742 (mi_cmd_trace_stop): Ditto.
743
3623dc3a
SD
7442011-11-20 Sanjoy Das <sdas@igalia.com>
745
746 * jit.c: Include regcache.h.
747 (jit_gdbarch_data, jit_frame_unwind): New static variables.
748 (jit_unwind_reg_set_impl, free_reg_value_impl)
749 (jit_unwind_reg_get_impl, jit_frame_sniffer)
750 (jit_frame_unwind_stop_reason, jit_frame_this_id)
751 (jit_frame_prev_register, jit_dealloc_cache)
752 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
753 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
754 jit_prepend_unwinder.
755 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
756
1825a88d
SD
7572011-11-20 Sanjoy Das <sdas@igalia.com>
758
759 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
760 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
761 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
762 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
763 (finalize_symtab, jit_object_close_impl)
764 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
765 (free_objfile_data): New functions.
766 (_initialize_jit): Register jit_objfile_data with a proper cleanup
767 function.
768
784c47ee
SD
7692011-11-20 Sanjoy Das <sdas@igalia.com>
770
771 * jit.c: Include gdb-dlfcn.h.
772 (loaded_jit_reader, reader_init_fn_sym): New static variables.
773 (jit_reader_load, jit_reader_load_command)
774 (jit_reader_unload_command): New functions.
775 (_initialize_jit): Add commands "jit-reader-load" and
776 "jit-reader-unload".
777
a2d08b9e
SD
7782011-11-20 Sanjoy Das <sdas@igalia.com>
779
780 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
781 * config.in: Add new #define HAVE_LIBDL.
782 * configure.ac: Add check for -ldl.
783 * configure: Re-generated by autoconf.
784 * gdb-dlfcn.c: New file.
785 * gdb-dlfcn.h: New file.
786
b8e0a31c
SD
7872011-11-20 Sanjoy Das <sdas@igalia.com>
788
789 * config.in: Add new #defines: JIT_READER_DIR and
790 JIT_READER_DIR_RELOCATABLE.
791 * configure.ac: New GDB directory entry for jit-reader-dir.
792 * configure: Re-generated by autoconf.
793 * jit.c: New static variable: const char *jit_reader_dir.
794 (_initialize_jit): Relocate jit_reader_dir.
795
f997c383
SD
7962011-11-20 Sanjoy Das <sdas@igalia.com>
797
798 * Makefile.in: Add jit-reader.h as a header. Have it installed in
799 $(includedir)/gdb.
800 * configure.ac: Generate a correct value for TARGET_PTR for
801 jit-reader.h. Tell configure to generate jit-reader.h from
802 jit-reader.in.
803 * configure: Re-generated by autoconf.
804 * jit-reader.in: New file.
805 * jit.c: Include jit-reader.h.
806
dc8c0494
SD
8072011-11-20 Sanjoy Das <sdas@igalia.com>
808
809 * MAINTAINERS (Write After Approval): Add myself to the list.
810
01efb936
UW
8112011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
812
813 * findvar.c (read_frame_register_value): Respect value_offset
814 of the register value. Remove big-endian special case.
815
732f3f12
TT
8162011-11-18 Tom Tromey <tromey@redhat.com>
817
818 PR build/7196:
819 * remote.c (putpkt_for_catch_errors): New function.
820 (remote_kill): Use it.
821
bfccc43c
YQ
8222011-11-18 Yao Qi <yao@codesourcery.com>
823
824 * breakpoint.c (create_breakpoint): Produce query message according to
825 breakpoint's type.
826 Allocate tracepoint per correct type.
827 Don't check SALs for pending fast tracepoints.
828 * tracepoint.c (process_tracepoint_on_disconnect): New.
829 (disconnect_tracing): Call process_tracepoint_on_disconnect.
830
3ea46bff
YQ
8312011-11-18 Yao Qi <yao@codesourcery.com>
832
833 * breakpoint.c (install_breakpoint): Add one more parameter so that
834 update_global_location_list is called conditionally.
835 (create_fork_vfork_event_catchpoint): Update.
836 (create_syscall_event_catchpoint): Update.
837 (create_breakpoint_sal): Update.
838 (create_breakpoint_sal): Update. Call do_cleanups before
839 install_breakpoint.
840 * ada-lang.c (create_ada_exception_catchpoint): Update.
841 * breakpoint.h (install_breakpoint): Update declaration.
842
598cfb71
UW
8432011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
844
845 * spu-tdep.c (spu_return_value): Fix handling of
846 TYPE_CALLING_CONVENTION annotation.
847
caf4328c
UW
8482011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
849
850 * skip.c (skip_function_command): Work around uninitialized
851 variable warning.
852
2b54dda2
DM
8532011-11-16 David S. Miller <davem@davemloft.net>
854
855 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
856 'tv_usec' to long for printf since these fields have a type which
857 varies.
858
93bf33fd
DE
8592011-11-15 Doug Evans <dje@google.com>
860
861 * buildsym.c (add_symbol_to_list): Delete outdated comment.
862
9cc10fd1
PK
8632011-11-15 Paul Koning <paul_koning@dell.com>
864
865 * python/py-type.c (typy_get_composite): New function.
866 (typy_nonzero): New function.
867 (typy_values): Rename from typy_fields.
868 (typy_fields): New function.
869 (typy_length): Raise exception if not struct, union, or enum type.
870 (typy_getitem): Ditto.
871 (typy_has_key): Ditto.
872 (typy_make_iter): Ditto.
873
c011a4f4
DE
8742011-11-15 Doug Evans <dje@google.com>
875
876 * NEWS: Mention new parameter basenames-may-differ.
877 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
878 ! basenames_may_differ.
879 * psymtab.c (lookup_partial_symtab): Ditto.
880 * symtab.c (lookup_symtab): Ditto.
881 (basenames_may_differ): New global.
882 (_initialize_symtab): New parameter basenames-may-differ.
883 * symtab.h (basenames_may_differ): Declare.
884
865ecab4
LM
8852011-11-15 Pedro Alves <pedro@codesourcery.com>
886 Luis Machado <lgustavo@codesourcery.com>
887
888 * auxv.c: Include observer.h.
889 (auxv_inferior_data_cleanup): New.
890 (invalidate_auxv_cache_inf): New.
891 (invalidate_auxv_cache): New.
892 (get_auxv_inferior_data): New.
893 (auxv_inferior_data): New static global.
894 (auxv_info): New structure.
895 (target_auxv_search): Use get_auxv_inferior_data instead of
896 target_read_alloc and don't free cached buffers.
897 (fprint_target_auxv): Likewise
898 (_initialize_auxv): Register per-inferior auxv cache and register
899 observers to invalidate auxv cache when needed.
900
ed59ded5
DE
9012011-11-14 Doug Evans <dje@google.com>
902
903 Make "!" an alias for "shell".
904 * NEWS: Add mention.
905 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
906 adding "!" command, always add it.
907 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
908 command of length one.
909
405f8e94
SS
9102011-11-14 Stan Shebs <stan@codesourcery.com>
911 Kwok Cheung Yeung <kcy@codesourcery.com>
912
913 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
914 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
915 the minimum instruction size for fast tracepoints.
916 * target.h (struct target_ops): Add new method
917 to_get_min_fast_tracepoint_insn_len.
918 (target_get_min_fast_tracepoint_insn_len): New.
919 * target.c (update_current_target): Set up new target operation.
920 * remote.c (remote_write_bytes_aux): Fix typo.
921 (remote_get_min_fast_tracepoint_insn_len): New.
922 (init_remote_ops): Initialize new field.
923
3e05895e
TT
9242011-11-14 Tom Tromey <tromey@redhat.com>
925
926 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
927 (encode_actions): Likewise.
928
1e4d1764
YQ
9292011-11-14 Yao Qi <yao@codesourcery.com>
930
931 * remote.c (struct remote_state): <install_in_trace> new field.
932 (PACKET_InstallInTrace): New enum value.
933 (remote_install_in_trace_feature): Support InstallInTrace.
934 (remote_supports_install_in_trace): Likewise.
935 (remote_protocol_features): Likewise.
936 (_initialize_remote): Likewise.
937 (remote_can_download_tracepoint): New.
938 * target.h (struct target): New field
939 `to_can_download_tracepoint'.
940 (target_can_download_tracepoint): New macro.
941 * target.c (update_current_target): Update.
942 * breakpoint.h (struct bp_location): Add comment on field
943 `duplicate'.
3ccd4ac6
YQ
944 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
945 and tracepoint.
1e4d1764
YQ
946 (remove_breakpoints): Don't remove tracepoints.
947 (tracepoint_locations_match ): New.
948 (breakpoint_locations_match): Call it.
949 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
950 (download_tracepoint_locations): New.
951 (update_global_location_list): Call it.
952 * tracepoint.c (find_matching_tracepoint): Delete.
953 (find_matching_tracepoint_location): Renamed from
954 find_matching_tracepoint. Return bp_location rather than
955 tracepoint.
956 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
957 tracepoint is found.
958
e8ba3115
YQ
9592011-11-14 Yao Qi <yao@codesourcery.com>
960
961 * target.h (struct target): <to_download_tracepoint> Change type
962 of parameter from tracepoint to bp_location.
963 * target.c (update_current_target): Update.
964 * tracepoint.c (start_tracing): Update.
965 * remote.c (remote_download_tracepoint): Remove loop for each location
966 of a tracepoint.
967
edcc485a
MR
9682011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
969
970 * i386-nat.c (i386_insert_hw_breakpoint): Call
971 i386_update_inferior_debug_regs.
972 (i386_remove_hw_breakpoint): Likewise.
973
3742cc8b
YQ
9742011-11-14 Yao Qi <yao@codesourcery.com>
975
976 * breakpoint.c (init_raw_breakpoint): Call
977 add_location_to_breakpoint to replace duplicated code.
978 (add_location_to_breakpoint): Adjust the breakpoint's
979 address prior to allocating a location.
980
71eba9c2 9812011-11-12 Matt Rice <ratmice@gmail.com>
982
983 * macrocmd.c (macro_no_macro_info): New function.
984 (macro_expand_command): Use macro_no_macro_info.
985 (macro_expand_once_command): Ditto.
986 (info_macro_command): Add argument processing,
987 move info_definitions_command here.
988 (_initialize_macrocmd): Remove info definitions command.
989 Add arguments to info macro help text.
990 * NEWS: Replace info definitions command with new info macro options.
991
731971ed
KS
9922011-11-11 Keith Seitz <keiths@redhat.com>
993
994 PR gdb/12843
995 * linespec.c (locate_first_half): Keep ':' if it looks
996 like it could be part of a Windows path starting with
997 a drive letter.
998
6953d224
PA
9992011-11-10 Pedro Alves <pedro@codesourcery.com>
1000
1001 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1002 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1003
0c94aa73
PA
10042011-11-10 Pedro Alves <pedro@codesourcery.com>
1005
1006 * target.c (target_waitstatus_to_string): Handle
1007 TARGET_WAITKIND_NO_RESUMED.
1008
f6b47be4
DE
10092011-11-10 Doug Evans <dje@google.com>
1010
74e2f255
DE
1011 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1012 `need_fullname'.
1013 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1014 (map_partial_symbol_filenames): Ditto. All callers updated.
1015 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1016 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1017 parameter need_fullname.
1018
256f06f3
DE
1019 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1020 * source.c (symtab_to_fullname): Ditto.
1021
50f182aa
DE
1022 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1023 * gdb-demangle.h: ... here. New file.
1024 * demangle.c: #include "gdb-demangle.h".
1025 (_initialize_demangler): Use initialize_file_ftype for prototype.
1026 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1027 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1028 from utils.c
1029 * utils.c: Update. #include "gdb-demangle.h".
1030 * symtab.h (asm_demangle): Delete.
1031 (demangle): Move declaration next to use.
1032 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1033 * dwarf2read.c: #include "gdb-demangle.h".
1034 * gnu-v2-abi.c: Ditto.
1035 * jv-typeprint.c: Ditto.
1036 * mdebugread.c: Ditto.
1037 * p-typeprint.c: Ditto.
1038 * stabsread.c: Ditto.
1039 * printcmd.c: Ditto.
1040 (asm_demangle): Delete declaration.
1041 * tui/tui-stack.c: #include "gdb-demangle.h".
1042
f6b47be4
DE
1043 * python/py-type.c (typy_fields_items): Call check_typedef.
1044
22355c90
JB
10452011-11-10 Joel Brobecker <brobecker@adacore.com>
1046
1047 * findvar.c (read_frame_register_value): Read the correct bytes
1048 from registers on big-endian architectures.
1049
bd119cf1 10502011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1051
1052 * procfs.c (load_syscalls): Make a cleanup.
1053 (open_procinfo_files): fd==0 is ok.
1054
0a86f364
JB
10552011-11-10 Joel Brobecker <brobecker@adacore.com>
1056
1057 * procfs.c (iterate_over_mappings): Call do_cleanups before
1058 returning.
1059
9bc118a5
DE
10602011-11-09 Doug Evans <dje@google.com>
1061
1062 * gdbtypes.c (check_typedef): Document that this function can
1063 throw an exception.
1064
a7860e76
TT
10652011-11-09 Tom Tromey <tromey@redhat.com>
1066
1067 PR c++/13342:
1068 * valops.c (value_full_object): Return early if real type is
1069 smaller than the enclosing type.
1070
60965737
YQ
10712011-11-08 Yao Qi <yao@codesourcery.com>
1072
1073 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1074
72a2e3dc
MI
10752011-11-08 Meador Inge <meadori@codesourcery.com>
1076
1077 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1078 register when the frame can't be determined.
1079 * arm-tdep.c (arm_analyze_prologue): Ditto.
1080
ce3b0ff7
SS
10812011-11-07 Stan Shebs <stan@codesourcery.com>
1082
1083 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1084
2b914b52
JB
10852011-11-07 Joel Brobecker <brobecker@adacore.com>
1086
1087 * infrun.c (handle_inferior_event): Minor reformatting.
1088
6f809020
DE
10892011-11-05 Doug Evans <dje@google.com>
1090
1091 * source.c (forget_cached_source_info_for_objfile): Move call to
1092 objfile->sf->qf->forget_cached_source_info outside of
1093 ALL_OBJFILE_SYMTABS loop.
1094 (forget_cached_source_info): Delete unused variable `s'.
1095
75d12218
JK
10962011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1097
1098 * i386-nat.c (dr_ref_count): Remove unused variable.
1099
e565b837
DE
11002011-11-05 Doug Evans <dje@google.com>
1101
1102 * main.c (captured_main): Set lim_at_start before calling
1103 make_command_stats_cleanup.
1104
0a1c4d10
DE
11052011-11-04 Doug Evans <dje@google.com>
1106
1107 * utils.c: #include "timeval-utils.h".
1108 (cmd_stats): Rename start_time to start_cpu_time.
1109 New member start_wall_time.
1110 (report_command_stats): Report wall time.
1111 (make_command_stats_cleanup): Record start wall time.
1112
a1d705ee
TT
11132011-11-04 Tom Tromey <tromey@redhat.com>
1114
1115 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1116
81de56be
RO
11172011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1118
1119 * coff-pe-read.c: Include defs.h before bfd.h.
1120
3ab1ec27
PM
11212011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1122
1123 PR Python/13345
1124
1125 * python/python.c (python_run_simple_file): Expand tilde in path.
1126
cd829959
PM
11272011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1128
1129 PR Python/13363
1130
1131 * python/py-type.c (typy_lookup_type): Do not return a type in
1132 an exception handler.
1133
080ad648
JK
11342011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1135 Eli Zaretskii <eliz@gnu.org>
1136
1137 * linux-nat.c (_initialize_linux_nat): Improve help
1138 for `info proc stat', `info proc status', `info proc cwd',
1139 `info proc cmdline' and `info proc exe'.
1140
3065dfb6
SS
11412011-11-02 Stan Shebs <stan@codesourcery.com>
1142
1143 String collection for tracepoints.
1144 * NEWS: Mention string collection.
1145 * common/ax.def (tracenz): New bytecode.
1146 * ax-gdb.h (trace_string_kludge): Declare.
1147 * ax-gdb.c: Include valprint.h and c-lang.h.
1148 (trace_string_kludge): New global.
1149 (gen_traced_pop): Add string case.
1150 (agent_command): Add string case.
1151 * tracepoint.h (decode_agent_options): Declare.
1152 * tracepoint.c: Include cli-utils.h.
1153 (decode_agent_options): New function.
1154 (validate_actionline): Call it.
1155 (encode_actions_1): Ditto.
1156 * target.h (struct target_ops): New method to_supports_string_tracing.
1157 (target_supports_string_tracing): New macro.
1158 * target.c (update_current_target): Add to_supports_string_tracing.
1159 * remote.c (struct remote_state): New field string_tracing.
1160 (remote_string_tracing_feature): New function.
1161 (remote_protocol_features): New feature tracenz.
1162 (remote_supports_string_tracing): New function.
1163 (init_remote_ops): Set to_supports_string_tracing.
1164
f179e162
JK
11652011-11-02 Pedro Alves <pedro@codesourcery.com>
1166 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 * linux-nat.c: Include cli/cli-utils.h.
1169 (enum info_proc_what): New.
1170 (linux_nat_info_proc_cmd): Rename to ...
1171 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1172 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1173 status_f and stat_f from WHAT. Throw error on extra parameters.
1174 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1175 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1176 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1177 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1178 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1179 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1180 `info proc cmdline', `info proc exe' and `info proc all' as real
1181 subcommands of `info proc'.
1182
7b35ec7f 11832011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1184
1185 * Makefile.in: (SFILES): Add skip.c.
1186 (HFILES_NO_SRCDIR): Add skip.h.
1187 (COMMON_OBS): Add skip.o.
1188 * skip.h, skip.c: New.
1189 * breakpoint.h (set_default_breakpoint): Remove.
1190 (get_sal_arch): Declare.
1191 * breakpoint.c: Remove default_breakpoint_valid,
1192 default_breakpoint_address, default_breakpoint_symtab,
1193 default_breakpoint_line, default_breakpoint_pspace variables.
1194 (get_sal_arch): Make public.
1195 (set_default_breakpoint): Remove.
1196 (parse_breakpoint_sals, create_breakpoint, clear_command,
1197 decode_line_spec_1): Remove uses of default_breakpoint variables;
1198 replaced with function calls into stack.c.
1199 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1200 * cli/cli-cmds.c: Add skiplist.
1201 (init_cmd_lists): Initialize skiplist.
1202 (init_cli_cmds): Fix comment (classes of commands appear in
1203 alphabetical order).
1204 * infrun.c (handle_inferior_event): Add check that we don't step into
1205 a function whose pc is marked for skip.
1206 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1207 last_displayed_addr, last_displayed_symtab, last_displayed_line
1208 variables.
1209 (set_last_displayed_sal): New static function.
1210 (print_frame_info): Switch call to set_default_breakpoint to call to
1211 set_last_displayed_sal.
1212 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1213 get_last_displayed_pspace, get_last_displayed_addr,
1214 get_last_displayed_symtab, get_last_displayed_line,
1215 get_last_displayed_sal): New public functions.
1216 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1217 get_last_displayed_pspace, get_last_displayed_addr,
1218 get_last_displayed_symtab, get_last_displayed_line,
1219 get_last_displayed_sal): Declare.
1220
b60e1588
JL
12212011-11-01 Justin Lebar <justin.lebar@gmail.com>
1222
1223 * MAINTAINERS (Write After Approval): Add myself to the list.
1224
d31647d2
YQ
12252011-10-29 Yao Qi <yao@codesourcery.com>
1226
1227 * infcmd.c (disconnect_command): Call disconnect_tracing.
1228
b1d96efd
JK
12292011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1230
1231 Code cleanup.
1232 * symtab.c (skip_prologue_sal): Code reformatting.
1233
4dfb2365
JK
12342011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 PR symtab/13208
1237 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1238 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1239 SAI.
1240
0e5bf2a8
PA
12412011-10-28 Pedro Alves <pedro@codesourcery.com>
1242
1243 * linux-nat.c (linux_nat_filter_event): Remove `options'
1244 parameter, and dead code that used it. If we're handling a
1245 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1246 in our lwp list, re-add it.
1247 (check_zombie_leaders): New.
1248 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1249 wait for children with WNOHANG, and always wait for all children.
1250 Don't check for no resumed children upfront. Simplify wait loop.
1251 Check for zombie thread group leaders after handling all wait
1252 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1253 unwaited-for children left.
1254 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1255 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1256 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1257 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1258
821296b7
SA
12592011-10-28 Sterling Augustine <saugustine@google.com>
1260
1261 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1262 * symtab.c (free_completion_list): New function.
1263 (do_free_completion_list): Likewise.
1264 (default_make_symbol_completion_list_break_on): New variable
1265 back_to. Call make_cleanup and discard_cleanups.
1266 (make_source_files_completion_list): Likewise.
1267
03c3051a
PK
12682011-10-28 Paul Koning <paul_koning@dell.com>
1269
1270 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1271 * NEWS: Mention deep_items.
1272
8e7ebaf5
PA
12732011-10-28 Alen Skondro <askondro@gmail.com>
1274
8de33dc2 1275 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1276 defined.
1277
e0c6ef61
MI
12782011-10-27 Meador Inge <meadori@codesourcery.com>
1279
1280 * MAINTAINERS (Write After Approval): Add myself to the list.
1281
b56d6f31
JB
12822011-10-27 Joel Brobecker <brobecker@adacore.com>
1283
1284 * value.h (read_frame_register_value): Add declaration.
1285 * findvar.c (read_frame_register_value): New function.
1286 (value_from_register): Use read_frame_register_value
1287 instead of get_frame_register_value + value_contents_copy
1288 to get value contents.
1289
d234ef5c
DE
12902011-10-27 Doug Evans <dje@google.com>
1291
1292 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1293 source_script_from_stream if it may have been found on the search path.
1294 * python/py-auto-load.c (source_section_scripts): Pass full path to
1295 source_python_script_for_objfile.
1296 * python/python.c (source_python_script): Delete stream parameter.
1297 All callers updated.
1298 (source_python_script_for_objfile): Ditto.
1299 * python/python-internal.h (source_python_script_for_objfile): Update.
1300 * python/python.h (source_python_script): Update.
1301
d849d44f
TT
13022011-10-27 Tom Tromey <tromey@redhat.com>
1303
1304 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1305 (ada_sals_for_line): Remove declarations.
1306
2231f1fb
KP
13072011-10-27 Kevin Pouget <kevin.pouget@st.com>
1308
1309 Move unwind reasons to an external .def file
1310 * frame.c (frame_stop_reason_string): Rewrite using
1311 unwind_stop_reasons.def.
1312 * frame.h (enum unwind_stop_reason): Likewise.
1313 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1314 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1315 constants for bound-checking.
1316 * unwind_stop_reasons.def: New file.
1317 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1318 instead of a distinct value.
1319
f77b9a5d
PM
13202011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1321
1322 PR python/13331
1323
1324 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1325 (convert_values_to_python): Return on Python tuple allocation
1326 failure. Return NULL on value conversion error.
1327
76dce0be
PM
13282011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1329
1330 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1331 (bppy_set_task): Ditto.
1332 (bppy_delete_breakpoint): Ditto.
1333 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1334 (gdbpy_lookup_global_symbol): Ditto.
1335 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1336 * python/py-frame.c (frapy_is_valid): Ditto.
1337 (frame_info_to_frame_object): Ditto.
1338 * python/py-type.c (typy_lookup_type): Ditto.
1339 (typy_getitem): Ditto.
1340 (typy_has_key): Ditto.
1341 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1342
f17b6955
JB
13432011-10-26 Joel Brobecker <brobecker@adacore.com>
1344
1345 * gdbarch.h: Regenerate.
1346
86ba1042
JB
13472011-10-26 Meador Inge <meadori@codesourcery.com>
1348
1349 * gdbarch.sh (function_list): Use 'pstring' when printing
1350 'gcore_bfd_target'.
1351 * gdbarch.c: Regenerate.
1352
c34fd852
UW
13532011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1354
1355 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1356 and frame caches if PTID refers to all threads of a process.
1357
931bb47f
UW
13582011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1359
1360 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1361 to create_breakpoint.
1362
88aed45e
UW
13632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1364
1365 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1366 (ppc_sysv_abi_push_dummy_call): Use it.
1367 (do_ppc_sysv_return_value): Likewise.
1368 (ppc64_sysv_abi_push_dummy_call): Likewise.
1369 (ppc64_sysv_abi_return_value): Likewise.
1370
3eaf3fa2
PK
13712011-10-26 Paul Koning <paul_koning@dell.com>
1372
1373 * python/lib/gdb/types.py (deepitems): New function.
1374
913460fc
PK
13752011-10-25 Paul Koning <paul_koning@dell.com>
1376
1377 PR python/13327
1378
1379 * python/py-value.c (value_to_value_object): Remove fetching of
1380 the value if it was lazy.
1381 (valpy_get_is_lazy): New function.
1382 (valpy_fetch_lazy): New function.
1383
2b5b9d09
JB
13842011-10-24 Joel Brobecker <brobecker@adacore.com>
1385
1386 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1387 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1388
e21ffe51
PA
13892011-10-24 Pedro Alves <pedro@codesourcery.com>
1390
1391 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1392 event, in non-stop, if not stopping, make sure the new lwp has
1393 last_resume_kind set to resume_continue. Assert that when we're
1394 resuming the new lwp, its last_resume_kind is resume_continue.
1395
7aee8dc2
PA
13962011-10-24 Pedro Alves <pedro@codesourcery.com>
1397
1398 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1399 already set when marking the event thread as not executing in
1400 non-stop mode.
1401
4b4e080e
PA
14022011-10-24 Pedro Alves <pedro@codesourcery.com>
1403
1404 * infrun.c (handle_inferior_event): Add debug output for
1405 TARGET_WAITKIND_NO_HISTORY.
1406
baacfb07
PM
14072011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1408
1409 * NEWS: Move set/show extended-prompt to "New Options". Expand
1410 description. Fix typos.
1411
8432bc41
PM
14122011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1413
1414 PR python/13310
1415
1416 * python/py-param.c (call_doc_function): Correctly deference on
1417 function exit.
1418
6cda5a20
JB
14192011-10-21 Joel Brobecker <brobecker@adacore.com>
1420
1421 * ada-tasks.c (print_ada_task_info): Fix computation of
1422 number of tasks displayed in command output.
1423
13294f7d
JK
14242011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1425 Ulrich Weigand <uweigand@de.ibm.com>
1426
1427 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1428 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1429 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1430 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1431 gdbarch_unwind_pc.
1432
460c1c54
CC
14332011-10-20 Cary Coutant <ccoutant@google.com>
1434
1435 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1436 section to...
1437 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1438 flag. Adjust all callers.
1439 (process_psymtab_comp_unit): Remove adjustment for type section.
1440
a10964d1
AR
14412011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1442
1443 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1444 arguments by adding OBJFILE. Instead of getting objfile from
1445 symbol's symtab, use new argument OBJFILE.
1446 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1447 arguments by adding OBJFILE.
1448 * gdb/dwarf2read.c (new_symbol_full): Change call to
1449 cp_scan_for_anonymous_namespaces to match new signature.
1450 * gdb/stabsread.c (define_symbol): Change call to
1451 cp_scan_for_anonymous_namespaces to match new signature.
1452
27ca1a5b
PM
14532011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1454
1455 PR python/13308
1456 PR python/13309
1457
1458 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1459 leak.
1460 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1461 leak. Delete unused variables.
1462
9df2fbc4
PM
14632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1464
1465 PR python/12656
1466
1467 * python/py-frame.c (frapy_read_var): Use const struct *block.
1468 * python/py-type.c (typy_lookup_typename): Likewise.
1469 (typy_lookup_type): Likewise.
1470 (typy_legacy_template_argument): Likewise.
1471 (typy_template_argument): Likewise.
1472 (gdbpy_lookup_type): Likewise.
1473 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1474 * python/py-block.c (blpy_block_object): Likewise.
1475 (blpy_iter): Likewise.
1476 (blpy_get_start): Likewise.
1477 (blpy_get_end): Likewise.
1478 (blpy_get_function): Likewise.
1479 (blpy_get_superblock): Likewise.
1480 (set_block): Likewise.
1481 (block_to_block_object): Likewise.
1482 (block_object_to_block): Likewise.
1483 (blpy_is_valid): Likewise.
1484 (blpy_get_global_block): New function.
1485 (blpy_get_static_block): New function.
1486 (blpy_is_global): New function.
1487 (blpy_is_static): New function.
1488 * blockframe.c (block_innermost_frame): Likewise.
1489 * valops.c (value_of_variable): Likewise.
1490 * frame.h: Update prototypes.
1491 * python/python-internal.h: Likewise.
1492 * value.h: Likewise.
1493
4743b735
CC
14942011-10-19 Cary Coutant <ccoutant@google.com>
1495
1496 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1497 type_offset field.
1498
6caca83c
CC
14992011-10-19 Cary Coutant <ccoutant@google.com>
1500
1501 * dwarf2read.c (peek_abbrev_code): New function.
1502 (dw2_get_file_names): Check for dummy compilation units.
1503 (create_debug_types_hash_table): Likewise.
1504 (process_psymtab_comp_unit): Likewise.
1505 (load_partial_comp_unit): Likewise.
1506 (load_full_comp_unit): Likewise.
1507
43136979
AR
15082011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1509
1510 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1511 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1512 pt_phdr if PT_PHDR was found.
1513
0a07729b
TT
15142011-10-17 Joost van der Sluis <joost@cnoc.nl>
1515
1516 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1517 type or "<unnamed type"> when there is no name assigned.
1518 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1519 avoid a sigint when no name is assigned.
1520
21ae7a4d
JK
15212011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1522
1523 Revert:
1524 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 * dwarf2expr.c (ctx_no_read_reg): New function.
1526 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1527 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1528 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1529 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1530
32d1c362
DE
15312011-10-16 Doug Evans <dje@google.com>
1532
1533 * NEWS: Document python gdb.printing.register_pretty_printer's new
1534 `replace' parameter.
1535
da096638
KS
15362011-10-14 Keith Seitz <keiths@redhat.com>
1537
1538 PR c++/13225
1539 * eval.c (evaluate_subexp_standard): Do not construct
1540 an array of types; pass the value array directly to
1541 find_overload_match.
1542 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1543 (rank_function): Take an array of values instead of types.
1544 (rank_one_type): Add struct value * parameter.
1545 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1546 (rank_function): For each argument, pass the argument's
1547 value to rank_one_type.
1548 (rank_one_type): Add VALUE parameter.
1549 If the parameter type is a pointer and the argument type
1550 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1551 VALUE is zero.
1552 Update all calls to rank_one_type, passing NULL for new
1553 VALUE parameter.
1554 * valarith.c (value_user_defined_cpp_op): Do not construct
1555 an array of types; pass the value array directly to
1556 find_overload_match.
1557 * valops.c (find_overload_method_list): Take an array of
1558 values instead of types.
1559 Save the type of OBJP for later use.
1560 Update calls to find_oload_champ, and find_oload_champ_namespace.
1561 (find_oload_champ_namespace): Take an array of values instead
1562 of types.
1563 (find_oload_champ_namespace_loop): Likewise.
1564 (find_oload_champ): Likewise.
1565 (classify_oload_match): Inspect all arguments
1566 until INCOMPATIBLE is found. Return the worst badness found
1567 otherwise.
1568 (compare_parameters): Update call to rank_one_type.
1569 * value.h (find_overload_match): Take an array of values instead
1570 of types.
1571
3957565a
JK
15722011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1573
1574 Drop lazy lm_info reading.
1575 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1576 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1577 (lm_info_read): New function.
1578 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1579 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1580 lm_dynamic_from_link_map.
1581 (lm_next, lm_prev, lm_name): Remove.
1582 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1583 initialization incl. read_memory. No longer use lm_name.
1584 (svr4_free_so): Drop lm_info->lm freeing.
1585 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1586 explicit lm_addr and lm initialization.
1587 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1588 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1589 lm_name.
1590
cb08cc53
JK
15912011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1592 Paul Pluzhnikov <ppluzhnikov@google.com>
1593
1594 * defs.h (struct so_list): New forward declaration.
1595 (make_cleanup_free_so): New declaration.
1596 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1597 (svr4_free_so): Move the function here from downwards. Handle NULL
1598 so->lm_info.
1599 (svr4_free_library_list): New.
1600 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1601 Use more cleanups. Use new parameter ignore_first instead of
1602 ignore_first_link_map_entry.
1603 (svr4_current_sos): New variable ignore_first, initialize it. New
1604 variable back_to, use it for svr4_free_library_list protection.
1605 (svr4_free_so): Remove - move upwards.
1606 * utils.c: Include solist.h.
1607 (do_free_so, make_cleanup_free_so): New functions.
1608
22c05d8a
JK
16092011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1610
1611 Fix internal error regression.
1612 * value.c (value_primitive_field): Handle value_optimized_out. Move
1613 packed bitfields comment.
1614
d930d06e
TT
16152011-10-13 Tom Tromey <tromey@redhat.com>
1616
1617 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1618 always released.
1619
2ff6b080
TT
16202011-10-13 Tom Tromey <tromey@redhat.com>
1621
1622 * python/py-type.c (typy_has_key): Make 'field' const.
1623
d6c5869f
LM
16242011-10-13 Luis Machado <lgustavo@codesourcery.com>
1625
1626 * remote.c (remote_save_trace_data): Invert comparison.
1627
a70633a2
LM
16282011-10-13 Luis Machado <lgustavo@codesourcery.com>
1629
1630 * tracepoint.c (trace_save_command): Use filename instead of
1631 args when printing.
1632
e103e986
JK
16332011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1636 if .size is 0.
1637
db24da6d
YQ
16382011-10-13 Yao Qi <yao@codesourcery.com>
1639
1640 PR gdb/12703
1641 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1642 whether insn is a 32-bit Thumb-2 instruction.
1643 (thumb_in_function_epilogue_p): Likewise.
1644 (thumb_get_next_pc_raw): Likewise.
1645 (arm_breakpoint_from_pc): Likewise.
1646
1d6edc3c
JK
16472011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1648
1649 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1650 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1651 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1652 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1653 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1654 zero DATA.
1655 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1656 validity.
1657 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1658 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1659 clear DATA on zero SIZE.
1660
adabb602
DE
16612011-10-12 Doug Evans <dje@google.com>
1662
1663 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1664 header->first_die_offset here. All callers updated.
1665
5048e516
JK
16662011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1667
1668 Fix compatibility with texinfo versions older than 4.12.
1669 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1670 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1671 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1672 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1673 * configure: Regenerate.
1674 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1675 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1676 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1677
0574c78f
GB
16782011-10-12 Gary Benson <gbenson@redhat.com>
1679
1680 * breakpoint.h (pc_at_non_inline_function): Declare.
1681 * breakpoint.c (is_non_inline_function,
1682 pc_at_non_inline_function): New functions.
1683 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1684 if the stop is at a location where functions cannot be inlined.
1685
12d9289a
PA
16862011-10-12 Pedro Alves <pedro@codesourcery.com>
1687
1688 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1689 the core wanted them stopped, or if they now have a pending event
1690 to report.
ecf8e7f5
PA
1691 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1692 down to stop_and_resume_callback.
1693 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1694 having new pending events after calling linux_nat_filter_event.
12d9289a 1695
96408a79
SA
16962011-10-11 Sterling Augustine <saugustine@google.com>
1697
1698 * dwarf2read.c: Undo inadvertent changes in previous commit.
1699
9c6c53f7
SA
17002011-10-11 Sterling Augustine <saugustine@google.com>
1701
1702 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1703 logic.
1704
0e8aefe7
UW
17052011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1706
1707 * symfile.c (separate_debug_file_exists): Fix condition.
1708
349d1385
DM
17092011-10-11 David S. Miller <davem@davemloft.net>
1710
1711 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1712 static.
1713 * regcache.h (regcache_restore): Remove declaration.
1714
205c306f
DM
1715 * gdbarch.sh: New field 'long_long_align_bit'.
1716 * gdbarch.c, gdbarch.h: Regenerate.
1717 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1718 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1719
941b2081
JK
17202011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 Revert this part of:
1723 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Support @entry in input expressions.
1725 * c-exp.y (ENTRY, unknown_cpp_name): New.
1726 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1727 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1728 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1729 (name_not_typename: ENTRY): New.
1730 (yylex): Recognize ENTRY.
1731
1732 Reimplement @entry in input expressions.
1733 * c-exp.y (ENTRY): New.
1734 (variable: name_not_typename ENTRY): New.
1735 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1736
3c4d7e12
PA
17372011-10-11 Pedro Alves <pedro@codesourcery.com>
1738
1739 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1740 parent and child's pids as soon as we detect a clone event.
1741 Adjust another debug message.
1742
ea23808b
PA
17432011-10-11 Pedro Alves <pedro@codesourcery.com>
1744
1745 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1746 not zombie instead of reading the whole file.
1747
904578ed
JK
17482011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 Fix separate debuginfo warning with "remote:" access.
1751 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1752 * symfile.c (get_file_crc): New function with the code moved from ...
1753 (separate_debug_file_exists): ... this function, specifically variables
1754 buffer and count. New variable verified_as_different, set it. Remove
1755 file_crc initialization. Verify also if both files are not the same
1756 manually, if needed.
1757
51370a33
YQ
17582011-10-11 Yao Qi <yao@codesourcery.com>
1759
1760 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1761 to get address.
1762
0838fb57
DE
17632011-10-10 Doug Evans <dje@google.com>
1764
1765 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1766 libthread_db when we load libpthread or the main symbol file.
1767 (thread_db_inferior_created): New function.
1768 (_initialize_thread_db): Attach inferior_created observer.
1769 * linux-nat.c (linux_child_post_attach): Remove call to
1770 check_for_thread_db.
1771 (linux_child_post_startup_inferior): Ditto.
1772 * objfiles.h (OBJF_MAINLINE): Define.
1773 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1774 allocate_objfile when appropriate.
1775
623bd5b7
UW
17762011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1777
1778 PR gdb/13218
1779 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1780 Remove unused variables.
1781 (get_linux_version): Remove function.
1782 (_initialize_arm_linux_nat): Do not call it.
1783
79395f92
PA
17842011-10-10 Pedro Alves <pedro@codesourcery.com>
1785
1786 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1787 new clone lwp if the core asked it to stop. Don't pass on
1788 unexpected signals to the new clone; leave them pending instead.
1789
eff3df78
PA
17902011-10-10 Pedro Alves <pedro@codesourcery.com>
1791
1792 * linux-nat.c (resume_lwp): Remove redundant debug output.
1793
4b60df3d
PA
17942011-10-10 Pedro Alves <pedro@codesourcery.com>
1795
1796 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1797 last_resume_kind before clearing it, and use the copy instead to
1798 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1799 resume_clear_callback in the non-stop path too.
1800
6501578c
YQ
18012011-10-09 Yao Qi <yao@codesourcery.com>
1802
1803 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1804 Honor OPTIONS and VAL's type.
1805 (common_val_print, value_print): Update to pass one more parameter.
1806
5a56e9c5
DE
18072011-10-09 Doug Evans <dje@google.com>
1808
1809 Add new "alias" command.
1810 * NEWS: Mention new command.
1811 * command.h (valid_user_defined_cmd_name_p): Declare.
1812 * defs.h (make_cleanup_dyn_string_delete): Declare.
1813 * utils.c: #include "dyn-string.h".
1814 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1815 * cli/cli-cmds.c: #include "dyn-string.h".
1816 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1817 (init_cli_cmds): Add new command.
1818 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1819
509f0fd9
JK
18202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 Fix compatibility with older GCCs.
1823 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1824 * stack.c (read_frame_arg): Initialize val_deref.
1825
2bda9cc5
JK
18262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1827
1828 Entry values NEWS entries, DWARF disassembly support.
1829 * NEWS: New entry values entry.
1830 (set print entry-values, show print entry-values)
1831 (set debug entry-values, show debug entry-values): New entries.
1832 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1833 indent. Remove variable start. Move header printing out. Respect
1834 INDENT. Support DW_OP_GNU_entry_value.
1835 (locexpr_describe_location_1): Move the header printing here, extend
1836 the disassemble_dwarf_expression passed parameters.
1837
a471c594
JK
18382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1839
1840 Display @entry parameter values even for references.
1841 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1842 coerce_ref_if_computed.
1843 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1844 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1845 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1846 existing push_dwarf_reg_entry_value call. Add new detection calling
1847 dwarf_block_to_dwarf_reg_deref. Update the error message.
1848 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1849 * dwarf2expr.h
1850 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1851 parameter deref_size, describe it in the comment.
1852 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1853 (dwarf_block_to_dwarf_reg_deref): New declaration.
1854 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1855 deref_size, describe it in the function comment. New variables
1856 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1857 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1858 describe it in the function comment. Fetch the alternative block
1859 accoring to DEREF_SIZE.
1860 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1861 (entry_data_value_free_closure, entry_data_value_funcs): New.
1862 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1863 outer_val, target_val, val and addr. Try to fetch and create also
1864 referenced value content.
1865 (pieced_value_funcs): NULL value for coerce_ref.
1866 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1867 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1868 coerce_ref_if_computed.
1869 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1870 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1871 * stack.c (read_frame_arg): Compare also dereferenced values.
1872 * value.c (value_computed_funcs): Make the parameter v const, use
1873 value_lval_const for it.
1874 (value_lval_const, coerce_ref_if_computed): New function.
1875 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1876 * value.h (struct lval_funcs): New field coerce_ref.
1877 (value_computed_funcs): Make the parameter v const.
1878 (value_lval_const, coerce_ref_if_computed): New declarations.
1879
36b11add
JK
18802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1881
1882 Support @entry in input expressions.
1883 * c-exp.y (ENTRY, unknown_cpp_name): New.
1884 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1885 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1886 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1887 (name_not_typename: ENTRY): New.
1888 (yylex): Recognize ENTRY.
1889 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1890 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1891 Likewise.
1892 * parse.c (operator_length_standard): Likewise.
1893 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1894
3343315b
JK
18952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1896
1897 Display referenced values in backtraces.
1898 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1899 * stack.c (print_frame_arg): Likewise.
1900
ac71a68c
JK
19012011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1902
1903 Make some lval_funcs methods to default on NULL.
1904 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1905 NULL.
1906 (value_assign): Check if lval_computed write method is NULL.
1907 * value.h (struct lval_funcs): Comment NULL values for read and write
1908 methods.
1909
e18b2753
JK
19102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 Display @entry parameter values (without references).
1913 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1914 New functions.
1915 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1916 New declarations.
1917 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1918 entry record.
1919 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1920 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1921 functions.
1922 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1923 (loclist_read_variable_at_entry): New function.
1924 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1925 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1926 DW_AT_location, call dwarf_block_to_sp_offset for it.
1927 * frame.h (print_entry_values_no, print_entry_values_only)
1928 (print_entry_values_preferred, print_entry_values_if_needed)
1929 (print_entry_values_both, print_entry_values_compact)
1930 (print_entry_values_default, print_entry_values): New declarations.
1931 (struct frame_arg): New field entry_kind.
1932 (read_frame_arg): New parameter entryargp.
1933 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1934 arg->entry_kind. Optionally print the `@entry' suffix.
1935 (list_args_or_locals): New variable entryarg, initialize it.
1936 Initialize also entry_kind of arg and entryarg. Conditionalize
1937 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1938 xfree for entryarg.error.
1939 * stack.c (print_entry_values_no, print_entry_values_only)
1940 (print_entry_values_preferred, print_entry_values_if_needed)
1941 (print_entry_values_both, print_entry_values_compact)
1942 (print_entry_values_default, print_entry_values_choices)
1943 (print_entry_values): New variables.
1944 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1945 print the `@entry' suffix, possibly in combination for
1946 print_entry_values_compact.
1947 (read_frame_arg): New parameter entryargp, new variables entryval,
1948 entryval_error and val_equal. Read in also entryargp, respect
1949 print_entry_values, compare the values using val_equal, fill in also
1950 argp->entry_kind (together with entryargp->entry_kind).
1951 (print_frame_args): New variable entryarg, initialize it.
1952 Conditionalize print_frame_arg for arg, add print_frame_arg for
1953 entryarg. Call xfree for entryarg.error.
1954 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1955 * symtab.h (struct symbol_computed_ops): New field
1956 read_variable_at_entry.
1957
93d86cef
JK
19582011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 Code reshuffle.
1961 * frame.h (struct frame_arg): New definition.
1962 (read_frame_arg): New declaration.
1963 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1964 (list_args_or_locals): ... the code here. New variable arg, call
1965 read_frame_arg and list_arg_or_local with it. Unify the
1966 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1967 arg.error.
1968 * stack.c (print_frame_arg): New functiom from the code of
1969 print_frame_args.
1970 (read_frame_arg): New function.
1971 (print_frame_args): Remove variable val. New variable arg, call
1972 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1973
2d6c5dc2
JK
19742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1975
1976 Protect entry values against self tail calls.
1977 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1978 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1979
111c6489
JK
19802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1981
1982 Recognize virtual tail call frames.
1983 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1984 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1985 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1986 * dwarf2-frame-tailcall.c: New file.
1987 * dwarf2-frame-tailcall.h: New file.
1988 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1989 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1990 REGS.PREV only after CIE execution.
1991 (struct dwarf2_frame_cache): New field tailcall_cache.
1992 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1993 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1994 parts, try to find entry_cfa_sp_offset. Call
1995 dwarf2_tailcall_sniffer_first.
1996 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1997 when appropriate.
1998 (dwarf2_frame_dealloc_cache): New function.
1999 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2000 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2001 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2002 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2003 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2004 * dwarf2loc.c (func_addr_to_tail_call_list)
2005 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2006 (call_site_find_chain_1, call_site_find_chain): New.
2007 * dwarf2loc.h (struct call_site_chain): New.
2008 (call_site_find_chain): New declaration.
2009 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2010 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2011 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2012 * stack.c (frame_info): Support also TAILCALL_FRAME.
2013
bb984ff1
JK
20142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 Tail call sites reader implementation.
2017 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2018 fill in TYPE_TAIL_CALL_LIST.
2019 * gdbtypes.h (struct func_type): New field tail_call_list.
2020 (struct call_site): New field tail_call_next.
2021 (TYPE_TAIL_CALL_LIST): New definition.
2022
8e3b41a9
JK
20232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Implement basic support for DW_TAG_GNU_call_site.
2026 * block.c: Include gdbtypes.h and exceptions.h.
2027 (call_site_for_pc): New function.
2028 * block.h (call_site_for_pc): New declaration.
2029 * defs.h: Include hashtab.h.
2030 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2031 declarations.
2032 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2033 ctx_no_push_dwarf_reg_entry_value.
2034 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2035 (dwarf_block_to_dwarf_reg): New function.
2036 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2037 (ctx_no_push_dwarf_reg_entry_value): New function.
2038 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2039 push_dwarf_reg_entry_value.
2040 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2041 declarations.
2042 * dwarf2loc.c: Include gdbcmd.h.
2043 (dwarf_expr_ctx_funcs): New forward declaration.
2044 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2045 (dwarf_expr_reg_to_entry_parameter)
2046 (dwarf_expr_push_dwarf_reg_entry_value): New.
2047 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2048 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2049 (needs_dwarf_reg_entry_value): New function.
2050 (needs_frame_ctx_funcs): Install it.
2051 (_initialize_dwarf2loc): New function.
2052 * dwarf2loc.h (entry_values_debug): New declaration.
2053 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2054 (read_call_site_scope): New forward declaration.
2055 (process_full_comp_unit): Copy call_site_htab.
2056 (process_die): Support DW_TAG_GNU_call_site.
2057 (read_call_site_scope): New function.
2058 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2059 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2060 (cleanup_htab): Delete.
2061 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2062 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2063 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2064 FIELD_LOC_KIND_DWARF_BLOCK.
2065 * gdbtypes.h (enum field_loc_kind): New entry
2066 FIELD_LOC_KIND_DWARF_BLOCK.
2067 (struct main_type): New loc entry dwarf_block.
2068 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2069 (TYPE_FIELD_DWARF_BLOCK): New.
2070 * python/py-type.c: Include dwarf2loc.h.
2071 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2072 internal_error call on unknown FIELD_LOC_KIND.
2073 * symtab.h (struct symtab): New field call_site_htab.
2074 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2075 (core_addr_hash, core_addr_eq): New functions.
2076
b6cdc2c1
JK
20772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 Code reshuffle.
2080 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2081 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2082 calling_convention under func_stuff there.
2083 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2084 (init_type) <TYPE_CODE_FUNC>: Likewise.
2085 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2086 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2087 * gdbtypes.h (enum type_specific_kind): Change
2088 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2089 (struct main_type) <type_specific>: Change calling_convention to
2090 func_stuff. Move calling_convention to ...
2091 (struct func_type): ... this new struct.
2092 (INIT_FUNC_SPECIFIC): New #define.
2093 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2094
181cebd4
JK
20952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2096
2097 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2098 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2099 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2100 ctx->ref_addr_size. Handle its invalid value.
2101 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2102 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2103 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2104 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2105 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2106 (dwarf2_per_cu_ref_addr_size): New function.
2107
c471e790
JK
21082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2109
2110 Code cleanup.
2111 * dwarf2read.c (per_cu_header_read_in): New function.
2112 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2113 variables cu_header_local and cu_headerp.
2114
741f5e3c
JK
21152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 Fix initial language detection with -readnow.
2118 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2119 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2120 searches only for global symbols.
2121
a73d2258
JK
21222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2123
2124 Fix printed anonymous struct name.
2125 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2126 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2127 (anonymous_struct_prefix): New function.
2128 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2129 (dwarf2_name): Strip for anonymous structs any prefixes.
2130
749fd4ea
DE
21312011-10-07 Doug Evans <dje@google.com>
2132
1fa57852
DE
2133 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2134 `replace'.
2135
690a4937
DE
2136 * python/lib/gdb/printing.py: Whitespace cleanup.
2137
749fd4ea
DE
2138 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2139 warning.
2140
4c38200f
PA
21412011-10-07 Pedro Alves <pedro@codesourcery.com>
2142
2143 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2144 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2145 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2146 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2147 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2148 (arm_linux_remove_watchpoint): Adjust.
2149 * i386-linux-nat.c (i386_linux_dr_set_control)
2150 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2151 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2152 (ia64_linux_remove_watchpoint): Adjust.
2153 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2154 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2155 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2156 (ppc_linux_insert_mask_watchpoint)
2157 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2158 (ppc_linux_remove_watchpoint): Adjust.
2159 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2160 Adjust.
2161
b7ff339d
CV
21622011-10-07 Corinna Vinschen <vinschen@redhat.com>
2163
2164 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2165 (clear_win32_environment): New function for Cygwin to clear out
2166 Win32 environment.
2167 (windows_create_inferior): Prepare new environment from in_env
2168 for Cygwin, too.
2169
f287c1f3
PM
21702011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2171
5631e596 2172 PR python/13264
f287c1f3
PM
2173 * python/py-value.c (valpy_call): Check that arguments are
2174 a tuple.
2175 (is_intlike): Remove call to CHECK_TYPEDEF.
2176 (valpy_nonzero): Catch GDB exceptions.
2177 (valpy_absolute): Ditto.
2178 (valpy_lazy_string): Ditto.
2179 (valpy_call): Ditto.
2180 (valpy_get_is_optimized_out): Ditto.
2181 (valpy_long): Ditto.
2182 (valpy_float): Ditto.
2183 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2184 (valpy_richcompare): Ditto.
2185
03583c20
UW
21862011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2187
2188 * inferior.h (disable_randomization): Declare.
2189 * infrun.c (disable_randomization): New global variable.
2190 (show_disable_randomization): New function.
2191 (set_disable_randomization): Likewise.
2192 (_initialize_infrun): Install set/show disable-randomization
2193 commands.
2194 * linux-nat.c (disable_randomization): Remove.
2195 (show_disable_randomization): Likewise.
2196 (set_disable_randomization): Likewise.
2197 (_initialize_linux_nat): No longer install set/show
2198 disable-randomization commands here.
2199 (linux_nat_supports_disable_randomization): New function.
2200 (linux_nat_add_target): Install it.
2201 * remote.c (PACKET_QDisableRandomization): New enum value.
2202 (remote_protocol_packets): Support QDisableRandomization.
2203 (_initialize_remote): Likewise.
2204 (remote_supports_disable_randomization): New function.
2205 (init_remote_ops): Install it.
2206 (extended_remote_supports_disable_randomization): New function.
2207 (init_extended_remote_ops): Install it.
2208 (extended_remote_disable_randomization): New function.
2209 (extended_remote_create_inferior_1): Call it.
2210 * target.h (struct target_ops): Add to_supports_disable_randomization.
2211 (target_supports_disable_randomization): Add prototype.
2212 * target.c (target_supports_disable_randomization): New function.
2213 (find_default_supports_disable_randomization): Likewise.
2214 (init_dummy_target): Install it.
2215
20c168b5
KP
22162011-10-07 Kevin Pouget <kevin.pouget@st.com>
2217
2218 Allow Python notification of new object-file loadings.
2219 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2220 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2221 Add build rule for this file.
2222 * python/py-event.h (emit_new_objfile_event): New prototype.
2223 (newobjfile): New Python event emitter.
2224 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2225 Python event registry.
2226 * python/py-inferior.c: Include objfiles.h
2227 (python_new_objfile): New function.
2228 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2229 observers.
2230 * python/py-newobjfileevent.c: New file.
2231 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2232 prototype.
2233 * python/python.c (_initialize_python): Add
2234 gdbpy_initialize_new_objfile_event call.
2235 * NEWS: Add item for new Python event "gdb.newobjfile"
2236
b1c8db38
TG
22372011-10-05 Tristan Gingold <gingold@adacore.com>
2238
2239 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2240 Extract the ravenscar task name from the symbol for the atcb.
2241
0dab82e9
PK
22422011-10-04 Paul Koning <paul_koning@dell.com>
2243
2244 * python/py-type.c (typy_make_iter): Add forward declaration.
2245 (typy_fields_items): Use the gdb.Type iterator.
2246
84ad80e6
PK
22472011-10-04 Paul Koning <paul_koning@dell.com>
2248
2249 * NEWS: Add entry for Python gdb.Type mapping methods.
2250
cb6be26b
KP
22512011-10-04 Kevin Pouget <kevin.pouget@st.com>
2252
2253 PR python/12691: Add the inferior to Python exited event
2254 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2255 to exited_event.
2256 * python/py-event.h (emit_exited_event): Likewise
2257 * python/-inferior.c (python_inferior_exit): Likewise
2258
6005b210
JB
22592011-10-03 Joel Brobecker <brobecker@adacore.com>
2260
2261 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2262 in output of -ada-task-info GDB/MI command.
2263
75082e8c
JB
22642011-10-03 Joel Brobecker <brobecker@adacore.com>
2265
2266 * ada-lang.h (struct inferior): Declare.
2267 (print_ada_task_info): Add declaration.
2268 * ada-tasks.c (print_ada_task_info): Make non-static.
2269 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2270 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2271 * mi/mi-main.c: #include "ada-lang.h".
2272 (mi_cmd_list_features): Add "ada-task-info" to the list
2273 of supported features.
2274 (mi_cmd_ada_task_info): New function.
2275
7ed7d719
JB
22762011-10-03 Joel Brobecker <brobecker@adacore.com>
2277
2278 * python/python.c (python_run_simple_file): New function.
2279 (source_python_script, source_python_script_for_objfile):
2280 Replace call to PyRun_SimpleFile by call to
2281 python_run_simple_file.
2282
3fcaed38
PK
22832011-10-03 Paul Koning <paul_koning@dell.com>
2284
2285 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2286 (value_to_value_object): Fetch value if it was lazy.
2287
8e5c319d
JK
22882011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2289
2290 Code cleanup.
2291 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2292 Rearrange the code for it.
2293
dd11a36c
JB
22942011-10-02 Joel Brobecker <brobecker@adacore.com>
2295
2296 * breakpoint.c (bkpt_print_recreate): Add call to
2297 print_recreate_thread.
2298
723b724b
MF
22992011-09-29 Mike Frysinger <vapier@gentoo.org>
2300
2301 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2302 PTRACE_GETFDPIC_INTERP): Define.
2303
412946b6
YQ
23042011-09-28 Yao Qi <yao@codesourcery.com>
2305
2306 * symfile.c (add_symbol_file_command): Update message on usage.
2307
a73bb892
PK
23082011-09-28 Paul Koning <paul_koning@dell.com>
2309
2310 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2311 (typy_length, typy_get, typy_has_key, typy_make_iter)
2312 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2313 (typy_iterator_iter, typy_iterator_iternext)
2314 (typy_iterator_dealloc): New functions to implement standard
2315 Python mapping methods on gdb.Type object.
2316 (gdb.TypeIterator): New Python type.
2317 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2318
fe10a582
DM
23192011-09-28 David S. Miller <davem@davemloft.net>
2320
2321 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2322 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2323 * sparc-tdep.c (sparc_complex_floating_p): New function.
2324 (sparc32_store_arguments): Handle complex floats.
2325 (sparc32_extract_return_value): Likewise.
2326 (sparc32_store_return_value): Likewise.
2327 (sparc32_stabs_argument_has_addr): Likewise.
2328 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2329 (sparc64_store_floating_fields): Handle complex floats.
2330 (sparc64_store_arguments): Likewise.
2331 (sparc64_store_return_value): Likewise.
2332
c93dbcba
EZ
23332011-09-28 Eli Zaretskii <eliz@gnu.org>
2334
2335 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2336 before the change on 2006-12-09.
2337 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2338 generates the environment block for CreateProcessA, modulo the
2339 Cygwin-specific parts that are not needed here.
2340
f00c55f8
TG
23412011-09-27 Tristan Gingold <gingold@adacore.com>
2342
2343 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2344 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2345 (darwin_solib_get_all_image_info_addr_at_init): New function.
2346 (darwin_solib_read_all_image_info_addr): Likewise.
2347 (darwin_solib_create_inferior_hook): Use the above two functions.
2348 * darwin-nat.c (darwin_execvp): Renames retval to res.
2349 (darwin_read_write_inferior): Update comment.
2350 (darwin_read_dyld_info): New function.
2351 (darwin_xfer_partial): Handle DYLD_INFO.
2352
6710bf39
SS
23532011-09-27 Stan Shebs <stan@codesourcery.com>
2354
2355 Add return address collection for tracepoints.
2356 * tracepoint.c (encode_actions_1): Add case for $_ret.
2357 (validate_actionline): Check for $_ret.
2358 (trace_dump_actions): Ditto.
2359 * ax-gdb.h (gen_trace_for_return_address): Declare.
2360 * ax-gdb.c: Include arch-utils.h.
2361 (gen_trace_for_return_address): New function.
2362 (agent_command): Add return address special case.
2363 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2364 (amd64_gen_return_address): New function.
2365 (amd64_init_abi): Call it.
2366 * i386-tdep.c: Include ax.h and ax-gdb.h.
2367 (i386_gen_return_address): New function.
2368 (i386_init_abi): Call it.
2369 * arch-utils.h (default_gen_return_address): Declare.
2370 * arch-utils.c (default_gen_return_address): New function.
2371 * gdbarch.sh (gen_return_address): New method.
2372 * gdbarch.h, gdbarch.c: Regenerate.
2373
e04e5beb
JM
23742011-09-23 Joseph Myers <joseph@codesourcery.com>
2375
2376 PR gdb/13079
2377 * i386-tdep.c (i386_frame_align): New.
2378 (i386_gdbarch_init): Use i386_frame_align.
2379
f3d6df6d
YQ
23802011-09-23 Yao Qi <yao@codesourcery.com>
2381
2382 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2383 to get address.
2384
e69860f1
TG
23852011-09-22 Tristan Gingold <gingold@adacore.com>
2386
2387 * fork-child.c (fork_inferior): Add exec_fun parameter.
2388 Call exec_fun or execvp.
2389 * inferior.h: Adjust prototype.
2390 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2391 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2392 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2393 * procfs.c (procfs_create_inferior): Ditto.
2394 * darwin-nat.c (darwin_execvp): New function.
2395 (darwin_create_inferior): Use it.
2396
4b51d87b
YQ
23972011-09-22 Yao Qi <yao@codesourcery.com>
2398
2399 * infrun.c (context_switch): Print debug message when switching to
2400 a different thread.
2401
56b9d9ac
UW
24022011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2403
2404 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2405 complex and vector types.
2406 (s390_return_value_convention): Likewise.
2407
2408 (s390_value_from_register): Call check_typedef.
2409 (extend_simple_arg): Likewise.
2410 (alignment_of): Likewise.
2411 (s390_push_dummy_call): Likewise.
2412 (s390_return_value): Likewise.
2413
b2cd6b29
JM
24142011-09-21 Joseph Myers <joseph@codesourcery.com>
2415
2416 * event-top.c (async_disconnect): If an exception is thrown from
2417 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2418 catch_errors.
2419 * top.c (quit_cover): Return void and take no arguments.
2420 * top.h (quit_cover): Update prototype.
2421
67ba4e42
JM
24222011-09-20 Joseph Myers <joseph@codesourcery.com>
2423
2424 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2425 current_uiout, not uiout.
2426
562f943b
DE
24272011-09-19 Doug Evans <dje@google.com>
2428
2429 * python/py-auto-load.c (source_section_scripts): Fix file
2430 descriptor leak.
2431 * python/python.c (source_python_script_for_objfile): Tweak comments.
2432
34518530
YQ
24332011-09-18 Yao Qi <yao@codesourcery.com>
2434 Ulrich Weigand <ulrich.weigand@linaro.org>
2435
2436 Support displaced stepping for Thumb 16-bit insns.
2437 * arm-tdep.c (THUMB_NOP) Define.
2438 (thumb_copy_unmodified_16bit): New.
2439 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2440 (thumb_copy_alu_reg): New.
2441 (arm_copy_svc): Move some common code to ...
2442 (install_svc): ... here. New.
2443 (thumb_copy_svc): New.
2444 (install_pc_relative): New.
2445 (thumb_copy_pc_relative_16bit): New.
2446 (thumb_decode_pc_relative_16bit): New.
2447 (thumb_copy_16bit_ldr_literal): New.
2448 (thumb_copy_cbnz_cbz): New.
2449 (cleanup_pop_pc_16bit_all): New.
2450 (thumb_copy_pop_pc_16bit): New.
2451 (thumb_process_displaced_16bit_insn): New.
2452 (thumb_process_displaced_32bit_insn): New.
2453 (thumb_process_displaced_insn): process thumb instruction.
2454
2455 Support displaced stepping for Thumb 32-bit insns.
2456 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2457 (thumb2_copy_preload): New.
2458 (thumb2_copy_copro_load_store): New.
2459 (thumb2_copy_b_bl_blx): New.
2460 (thumb2_copy_alu_imm): New.
2461 (thumb2_copy_load_reg_imm): New.
2462 (thumb2_copy_load_literal): New
2463 (thumb2_copy_block_xfer): New.
2464 (thumb_32bit_copy_undef): New.
2465 (thumb_32bit_copy_unpred): New.
2466 (thumb2_decode_ext_reg_ld_st): New.
2467 (thumb2_decode_svc_copro): New.
2468 (decode_thumb_32bit_store_single_data_item): New.
2469 (thumb_copy_pc_relative_32bit): New.
2470 (thumb_decode_pc_relative_32bit): New.
2471 (decode_thumb_32bit_ld_mem_hints): New.
2472 (thumb2_copy_table_branch): New
2473 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2474 instructions.
2475
2b16b2e3
YQ
24762011-09-18 Yao Qi <yao@codesourcery.com>
2477
2478 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2479 (install_b_bl_blx): Likewise.
2480
0f6f04ba
YQ
24812011-09-17 Yao Qi <yao@codesourcery.com>
2482
2483 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2484 (install_load_store): ... this. New.
2485 Change parameter BYTE to SIZE.
2486 (arm_copy_ldr_str_ldrb_strb): Update caller.
2487 (arm_decode_ld_st_word_ubyte): Update caller.
2488
e2d96639
YQ
24892011-09-17 Yao Qi <yao@codesourcery.com>
2490
2491 * infrun.c (displaced_step_fixup): Move some code ...
2492 (displaced_step_restore): ... here. New function.
2493 (handle_inferior_event): Cleanup displaced stepping state for both
2494 child and parent when get forked or vforked event.
2495 * regcache.c (get_thread_arch_aspace_regcache): New function.
2496 get_thread_arch_regcache (): Call it.
2497
a8123151
JB
24982011-09-16 Joel Brobecker <brobecker@adacore.com>
2499
2500 * ada-tasks.c (print_ada_task_info): New function, merging
2501 short_task_info and info_tasks together. Reimplement using
2502 ui-out instead of printing to stdout directly. Move the code
2503 building and checking the task list here, instead of leaving it
2504 in info_tasks_command.
2505 (info_task): Move the code building and checking the task
2506 list here, instead of leaving it in info_tasks_command.
2507 (info_tasks_command): Delete code building and checking
2508 the task list - moved elsewhere. Update calls to info_tasks
2509 and info_task.
2510
fbf06824
JB
25112011-09-16 Joel Brobecker <brobecker@adacore.com>
2512
2513 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2514
34a0bc90
JB
25152011-09-16 Joel Brobecker <brobecker@adacore.com>
2516
2517 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2518
79779fa9
JB
25192011-09-16 Joel Brobecker <brobecker@adacore.com>
2520
2521 * ada-lang.h (ada_build_task_list): Remove parameter
2522 `warn_if_null'.
2523 * ada-tasks.c (ada_build_task_list): Remove parameter
2524 `warn_if_null'. Adjust implementation and documentation.
2525 (valid_task_id, ada_get_environment_task)
2526 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2527 (info_tasks_command): Adjust implementation.
2528 (task_command): Likewise.
2529 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2530 to ada_build_task_list.
2531
e225eb91
JB
25322011-09-16 Joel Brobecker <brobecker@adacore.com>
2533
2534 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2535 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2536 (ada_tasks_inferior_data_handle): New static global.
2537 (get_ada_tasks_inferior_data): New function.
2538 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2539 (ada_get_environment_task, iterate_over_live_ada_tasks)
2540 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2541 Adjust.
2542 (ada_set_current_inferior_known_tasks_addr): New function.
2543 (read_known_tasks, ada_build_task_list, short_task_info)
2544 (info_tasks, info_task, info_tasks_command, task_command_1)
2545 (task_command, ada_task_list_changed): Adjust.
2546 (ada_tasks_invalidate_inferior_data): New function.
2547 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2548 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2549 * ada-lang.h (struct inferior): Add declaration.
2550 (ada_task_list_changed): Update profile.
2551 * remote-wtx-pd.c: #include "inferior.h".
2552 (switch_to_pd_internal): Update call to ada_task_list_changed.
2553
6da9ca05
JB
25542011-09-16 Joel Brobecker <brobecker@adacore.com>
2555
2556 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2557 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2558 (atcb_fieldno): Delete these static globals.
2559 (struct ada_tasks_pspace_data): New struct.
2560 (ada_tasks_pspace_data_handle): New static global.
2561 (get_ada_tasks_pspace_data): New function.
2562 (ada_tasks_invalidate_pspace_data): New function.
2563 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2564 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2565 (_initialize_tasks): Create this module's per-progspace
2566 data handle.
2567
dccd3cbd
JB
25682011-09-16 Joel Brobecker <brobecker@adacore.com>
2569
2570 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2571
f877b031
TG
25722011-09-16 Tristan Gingold <gingold@adacore.com>
2573
2574 * fork-child.c (fork_inferior): Update comment. Use alloca
2575 instead of xmalloc for argv. Move len and shell_command
2576 declarations in the block where they are used.
2577 Only call execvp. Factorize failure code.
2578
ae0c443d
JK
25792011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2580
2581 Code cleanup.
2582 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2583 `exp_element' instead of an element of the same and make the function
2584 static.
2585 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2586 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2587 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2588 Change argument of `write_exp_elt' function call.
2589 Remove extra spaces from comments.
2590 * parser-defs.h (write_exp_elt): Remove prototype.
2591
5af65ec0
PK
25922011-09-15 Paul Koning <paul_koning@dell.com>
2593
2594 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2595 count of item appended to list.
2596 * python/py-type.c (typy_fields): Likewise.
2597
72be8ccc
PK
25982011-09-15 Paul Koning <paul_koning@dell.com>
2599
883640a8 2600 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2601
92f6badc
KP
26022011-09-15 Kevin Pouget <kevin.pouget@st.com>
2603
2604 PR threads/12628
2605 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2606 processes with multiple threads.
2607 (inf_has_multiple_thread_cb): New function.
2608 (inf_has_multiple_threads): New function.
2609
0672bf41 26102011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2611
2612 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2613 * python/py-inferior.c (GdbMethods): New Python method definition.
2614
6839b47f
KP
26152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2616
2617 Handle multiple breakpoint hits in Python interface:
2618 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2619 variable to breakpoints.
2620 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2621 bps instead of single breakpoint. Fix some space typos.
2622 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2623 variable to breakpoints.
2624
672f9b60
KP
26252011-09-15 Kevin Pouget <kevin.pouget@st.com>
2626
2627 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2628 note if the breakpoint is internal.
2629
43675ae4
KP
26302011-09-15 Kevin Pouget <kevin.pouget@st.com>
2631
0672bf41 2632 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2633
15148d6a
PA
26342011-09-14 Pedro Alves <pedro@codesourcery.com>
2635
2636 * infrun.c (prepare_for_detach, wait_for_inferior)
2637 (fetch_inferior_event): Don't flush the register cache.
2638 * remote.c (struct stop_reply) <regcache>: Add comment.
2639
d83e736b
JK
26402011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2641
2642 Remove excessive DWARF expressions memory duplication.
2643 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2644 for block.data.
2645 (indirect_pieced_value): Remove variable result. Remove variable
2646 back_to and its use for baton.data.
2647 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2648 block.data.
2649 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2650 Update the function comment.
2651
c65b3e0d
PA
26522011-09-13 Pedro Alves <pedro@codesourcery.com>
2653
2654 * inferior.h (ALL_INFERIORS): New.
2655 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2656 for a stopped thread.
2657 (thread_db_find_new_threads): Look for threads in all inferiors.
2658
a1398e0c
PA
26592011-09-13 Pedro Alves <pedro@codesourcery.com>
2660
2661 * breakpoint.c (update_watchpoint): Handle the case of the
2662 watchpoint to update not being in the breakpoint list yet.
2663 (hw_watchpoint_use_count): New, factored out from
2664 hw_watchpoint_used_count.
2665 (hw_watchpoint_used_count): Rename to ...
2666 (hw_watchpoint_used_count_others): ... this. Add `except'
2667 parameter. Don't count resources of `except'. Use
2668 hw_watchpoint_use_count.
2669
30596231
PA
26702011-09-13 Pedro Alves <pedro@codesourcery.com>
2671
2672 * gdbthread.h (enum thread_state): Moved here.
2673 (struct thread_info): Rename `executing_' field to `executing' and
2674 `state_' to `state'.
2675 * thread.c (enum thread_state): Moved to gdbthread.h.
2676 (new_thread, add_thread_silent, delete_thread_1)
2677 (any_live_thread_of_process, thread_alive, set_running)
2678 (set_running, is_thread_state, any_running, is_executing)
2679 (set_executing, finish_thread_state, print_thread_info)
2680 (do_captured_thread_select): Adjust.
2681
bede5f5f
JK
26822011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2683
2684 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2685 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2686
4801a9a3
PA
26872011-09-12 Pedro Alves <pedro@codesourcery.com>
2688 Matt Rice <ratmice@gmail.com>
2689
2690 PR gdb/13175
2691
2692 * interps.c (struct interp) <interpreter_out>: Delete field.
2693 (interp_new): Remove the data and uiout parameters and adjust.
2694 (interp_set): Only set the current_uiout from the interpreter's
2695 uiout after initializing the interpreter. Adjust call to
2696 init_proc.
2697 (interp_ui_out): Adjust to call procs->ui_out_proc.
2698 (interp_data, interp_name): New.
2699 * interps.h (interp_init_ftype): Add `self' parameter.
2700 (interp_ui_out_ftype): New typedef.
2701 (struct interp_procs) <ui_out_proc>: New method pointer.
2702 (interp_new): Remove the data and uiout parameters.
2703 (interp_data, interp_name): Declare.
2704 * tui/tui-interp.c (tui_init): Adjust prototype.
2705 (tui_ui_out): New.
2706 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2707 tui_out here. Adjust call to interp_new.
2708 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2709 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2710 (cli_ui_out): New.
2711 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2712 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2713 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2714 Initialize mi->uiout depending on the mi_version as extracted from
2715 the interpreter's name.
2716 (mi_ui_out): New.
2717 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2718 interp_new. Don't allocate the ui_out's of the interpreters here.
2719
d0afda03 27202011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2721
d0afda03 2722 * solib.c (solib_used): New function.
59145f8c
AR
2723 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2724 by another so_list object before freeing it.
2725
bdaf8d4a
JK
27262011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 Code cleanup.
2729 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2730 values.
2731
df15bd07
JK
27322011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2733
2734 Code cleanup.
2735 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2736 (amd64_skip_xmm_prologue): ... this new function. Describe its
2737 parameters. No longer use amd64_prologue_line_bug.
2738 * defs.h (producer_is_gcc_ge_4): New declaration.
2739 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2740 (process_full_comp_unit): Update its caller. Remove
2741 amd64_prologue_line_bug initialization.
2742 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2743 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2744
25289eb2
PA
27452011-09-09 Pedro Alves <pedro@codesourcery.com>
2746
2747 * linux-nat.h (enum resume_kind): New.
2748 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2749 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2750 resume_stop on the new lwp.
25289eb2
PA
2751 (add_lwp): Set last_resume_kind as resume_continue by default.
2752 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2753 (resume_lwp): New, factored out from resume_callback. Also check
2754 for pending status in lp->waitstatus.
2755 (resume_callback): Reimplement.
2756 (resume_clear_callback): Set last_resume_kind as resume_stop.
2757 (resume_set_callback): Set last_resume_kind as resume_continue.
2758 (linux_nat_resume, linux_handle_extended_wait): Set
2759 last_resume_kind.
2760 (running_callback): Also check lp->waitstatus for pending events.
2761 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2762 is resume_step.
2763 (stop_and_resume_callback): Don't re-resume if the core wanted the
2764 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2765 using an invalidated pointer.
2766 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2767 SIGSTOPs if the core wanted the LWP to stop.
2768 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2769 wanted the lwp to stop. If the core wanted the lwp to stop, and
2770 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2771 of TARGET_SIGNAL_STOP.
2772 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2773 here. Instead, signal the lwp, and set the last_resume_kind to
2774 resume_stop.
2775
f687d035
PA
27762011-09-09 Pedro Alves <pedro@codesourcery.com>
2777
2778 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2779 -1 (error), if the lwp exits right after attaching.
2780
bc587a6b
DE
27812011-09-08 Doug Evans <dje@google.com>
2782
63d97a20
DE
2783 * py-cmd.c: Some minor formatting fixes.
2784 (gdbpy_parse_command_name): Rename text arg to name, make const.
2785 All callers updated.
2786 * python-internal.h (gdbpy_parse_command_name): Update.
2787
bc587a6b
DE
2788 * cli/cli-decode.c (add_cmd): Add comment.
2789
08711b9a
JK
27902011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2791
2792 PR breakpoints/12435
2793 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2794 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2795 * dwarf2read.c (process_full_comp_unit): Initialize
2796 amd64_prologue_line_bug.
2797 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2798
b2e7f004
JK
27992011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 Fix TUI screen corruption.
2802 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2803 batch_flag.
2804
8afd712c
JK
28052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2806
2807 * findvar.c (read_var_value): Never return NULL, throw an error
2808 instead. Update the function comment. State symbol name in the error
2809 messages.
2810 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2811 read_var_value.
2812 * stack.c (print_frame_args): Likewise.
2813 * valops.c (value_of_variable): Likewise.
2814
b99b5f66
JK
28152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 * stack.c (print_frame_args): New variable except. Wrap
2818 read_var_value and common_val_print into TRY_CATCH.
2819
85bc8cb7
JK
28202011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2823 caller to value_of_this.
2824 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2825 Twice.
2826 * valops.c (value_of_this): Remove parameter complain and variable ret.
2827 Update function comment. Never return NULL by this code.
2828 (value_of_this_silent): New function.
2829 * value.h (value_of_this): Remove parameter complain.
2830 (value_of_this_silent): New declaration.
2831
ede1849f
YQ
28322011-09-07 Yao Qi <yao@codesourcery.com>
2833
2834 * gdbthread.h (struct thread_info): Remove fields
2835 `stepping_through_solib_after_catch' and
2836 `stepping_through_solib_catchpoints'.
2837 * infrun.c (init_thread_stepping_state): Update.
2838 (process_event_stop_test, currently_stepping): Update.
2839 (currently_stepping_or_nexting_callback): Update.
2840
6aa27652
YQ
28412011-09-07 Yao Qi <yao@codesourcery.com>
2842
2843 * gdbthread.h (struct thread_info): Comment on field
2844 `step_after_step_resume_breakpoint'.
2845
00db5b94
PA
28462011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2847
2848 * remote.c (remote_console_output): Reindent.
2849
861152be
LM
28502011-09-06 Luis Machado <lgustavo@codesourcery.com>
2851
2852 * frame.c (has_stack_frames): Check for currently selected
2853 traceframe.
2854
ab821bc6
PA
28552011-09-06 Pedro Alves <pedro@codesourcery.com>
2856
2857 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2858 (set_async_annotation_level, set_async_prompt, pop_prompt)
2859 (push_prompt, new_async_prompt): Delete declarations.
2860 * top.h (get_prompt, set_prompt): Change prototype.
2861 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2862 declarations.
2863 * top.c (command_loop):
2864 (top_prompt): New global.
2865 (get_prefix, set_prefix, get_suffix, ): Delete.
2866 (get_prompt, set_prompt): Rewrite.
2867 (show_new_async_prompt): Rename to ...
2868 (show_prompt): ... this.
2869 (init_main): Adjust. Don't handle --annotate=2 here.
2870 * event-top.c (new_async_prompt): Delete.
2871 (the_prompts): Delete.
2872 (more_to_come): Make static.
2873 (display_gdb_prompt): Use top_level_prompt() to compute the top
2874 level prompt, and don't notify the before_prompt observers
2875 directly here. Always trick readline into not trying to display
2876 the prompt if sync_execution and displaying the primary prompt.
2877 If displaying a local/secondary prompt, always show it, even if
2878 sync_execution is set.
2879 (change_annotation_level): Delete.
2880 (top_level_prompt): New, based on change_annotation_level.
2881 (push_prompt, pop_prompt): Delete.
2882 (async_disable_stdin): No longer pushes prompt.
2883 (command_line_handler): No longer pushes or pops prompt. If more
2884 input is expected, call display_gdb_prompt with an explicit empty
2885 prompt.
2886 (async_stop_sig): Adjust.
2887 (set_async_annotation_level, set_async_prompt): Delete.
2888 * python/python.c (before_prompt_hook): Adjust.
2889
f1d90504
PA
28902011-09-05 Pedro Alves <pedro@codesourcery.com>
2891
2892 PR cli/13110
2893
2894 * infrun.c (fetch_inferior_event): Check if there's a selected
2895 thread before checking if the selected thread is executing.
2896
0f641c01
PA
28972011-09-05 Pedro Alves <pedro@codesourcery.com>
2898
2899 * inf-loop.c (execute_command): Don't check if the current thread
2900 if running before synchronously waiting for command completion.
2901 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2902 here.
2903 (normal_stop): Call async_enable_stdin here.
2904 * inf-loop.c (inferior_event_handler): Don't call
2905 async_enable_stdin, nor handle "set exec-done-display" here.
2906
30368258 29072011-09-04 Joel Brobecker <brobecker@adacore.com>
2908
2909 GDB 7.3.1 released.
2910
31916278
JB
29112011-09-04 Joel Brobecker <brobecker@adacore.com>
2912
2913 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2914
e8d56f18
JB
29152011-09-04 Joel Brobecker <brobecker@adacore.com>
2916
2917 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2918
5dd05d8c
JK
29192011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2920
2921 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2922
7d8e6458 29232011-09-02 Matt Rice <ratmice@gmail.com>
2924
2925 PR gdb/10720
2926 * event-top.c (cli_command_loop): Replace readline setup with
2927 direct call to display_gdb_prompt.
2928 (display_gdb_prompt): Do not call observer mechanism during
2929 synchronous execution.
2930
84636d28
PA
29312011-09-02 Pedro Alves <pedro@codesourcery.com>
2932
2933 * linux-nat.c (in_pid_list_p): New.
2934 (linux_record_stopped_pid): Delete.
2935 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2936 already attached to the LWP. Return an indication if so.
2937 (linux_nat_filter_event): Adjust.
2938 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2939 returning an indication to ignore this thread.
2940
b4a14fd0
PA
29412011-09-02 Pedro Alves <pedro@codesourcery.com>
2942
2943 * top.c: Include interps.h.
2944 (execute_command): If the target can async, but the interpreter is
2945 in sync mode, synchronously wait for the command to finish before
2946 returning.
2947 (execute_command_to_string): Force the interpreter to sync mode.
2948 * infrun.c: Include interps.h.
2949 (fetch_inferior_event): Don't restore the prompt yet if the
2950 interpreter is in sync mode.
2951 * interps.c (interpreter_async): New global.
2952 * interps.h (interpreter_async): Declare.
2953 * inf-loop.c: Include interps.h.
2954 (inferior_event_handler): Don't print the language change or run
2955 breakpoint commands yet if the interpreter in is sync mode.
2956 * main.c (captured_command_loop): Flip the interpreter to async
2957 mode.
2958 * cli/cli-script.c: Include interps.h.
2959 (execute_user_command, while_command, if_command): Force the
2960 interpreter to sync mode.
2961 * python/python.c: Include interps.h.
2962 (python_command, execute_gdb_command): Force the interpreter to
2963 sync mode.
2964
c709acd1
PA
29652011-09-02 Pedro Alves <pedro@codesourcery.com>
2966
2967 * value.c (show_convenience): Catch errors thrown while printing
2968 each internal variable.
2969 * infrun.c (validate_siginfo_access): New function.
2970 (siginfo_value_read, siginfo_value_write): Call it.
2971
9655e943
JK
29722011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2973
2974 Revert:
2975 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2976 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2977 attribute.
2978
cb457ae2
YQ
29792011-08-29 Yao Qi <yao@codesourcery.com>
2980
2981 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2982 (cmp_name): New.
2983 (enable_break2): Update caller.
2984 * solib-frv.c (bfd_lookup_symbol): Removed.
2985 (cmp_name): New.
2986 (enable_break2): Update caller.
2987 * solib-pa64.c (bfd_lookup_symbol): Removed.
2988 (cmp_name): New.
2989 * solib-svr4.c (bfd_lookup_symbol): Removed.
2990 (cmp_name_and_sec_flags): New.
2991 (enable_break): Update caller.
2992 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2993 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2994 (gdb_bfd_lookup_symbol): New.
2995 * solib.h: Functions declarations.
2996
83d1a36a
YQ
29972011-08-29 Yao Qi <yao@codesourcery.com>
2998
2999 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3000 and solib-dsbt.o.
3001
c04b3e8f
JK
30022011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3003
3004 Fix TUI stepi on code without symbols.
3005 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3006 current PC instead.
3007
cb0fd152
JK
30082011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 Code cleanup.
3011 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3012 and the static keyword.
3013 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3014 Make prefix an array.
3015 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3016 * mi/mi-main.c (get_register): Remove stb initialization and the static
3017 keyword.
3018
91174723
JK
30192011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3020
3021 Code cleanup - make mi_opt const.
3022 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3023 opts const.
3024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3025 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3026 (mi_cmd_env_dir): Likewise.
3027 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3028 (mi_cmd_target_file_put): Likewise.
3029 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3030 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3031 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3032 (mi_valid_noargs): Make opts const.
3033 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3034 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3035 (mi_cmd_data_read_memory): Likewise.
3036 (mi_cmd_data_read_memory_bytes): Likewise.
3037 (mi_cmd_data_write_memory): Likewise.
3038
5068b8e8 30392011-08-26 Matt Rice <ratmice@gmail.com>
3040
3041 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3042 bcache_xmalloc, replace bcache_xmalloc with call to
3043 psymbol_bcache_init for psymbol_cache.
3044 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3045
a4f2ce05
JK
30462011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * inf-loop.c (inferior_event_handler): Add exception_print in
3049 INF_EXEC_COMPLETE.
3050
353d1d73
JK
30512011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3054 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3055 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3056 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3057 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3058 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3059 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3060 * infrun.c (fetch_inferior_event): Call
3061 make_bpstat_clear_actions_cleanup.
3062 * top.c (execute_command): New variable cleanup_if_error, call
3063 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3064 * utils.c (do_bpstat_clear_actions_cleanup)
3065 (make_bpstat_clear_actions_cleanup): New functions.
3066
3ced3da4
PA
30672011-08-26 Pedro Alves <pedro@codesourcery.com>
3068
3069 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3070 either the parent or the child forks. Rename a couple locals.
3071
a9f4bb21
PA
30722011-08-26 Pedro Alves <pedro@codesourcery.com>
3073
3074 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3075 library call. Avoid reading the `status' local if all waitpid
3076 calls failed.
3077
e5798bef
PA
30782011-08-26 Pedro Alves <pedro@codesourcery.com>
3079
3080 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3081 opening /proc/PID/task always succeeds.
3082
edb2aadf
AR
30832011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3084
3085 * linespec.c (symtab_from_filename): Check for the end of string.
3086
0d932b2f
MK
30872011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3088
3089 PR mi/11912
3090 * varobj.c (cplus_describe_child): Add the keyword
3091 'class' to the output of the method when dealing
3092 with a cast to a base class.
3093
e93ca019
JK
30942011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 No functionality change.
3097 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3098 function comment a reference, new variables tp and bs, move here code
3099 from throw_exception.
3100 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3101 describe it in the comment.
3102 * exceptions.c (throw_exception): Remove variable tp, move the code for
3103 bpstat_clear_actions to bpstat_clear_actions.
3104
13da1c97
LM
31052011-08-24 Luis Machado <lgustavo@codesourcery.com>
3106
3107 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3108 * linux-nat.c: Include linux-procfs.h.
3109 (linux_proc_get_tgid): Move to ...
3110 * common/linux-procfs.c: ... here. New file.
3111 * common/linux-procfs.h: New file.
3112 * linux-thread-db.c: Include linux-procfs.h.
3113 * Makefile.in: Update dependencies.
3114 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3115 * config/arm/linux.mh: Likewise.
3116 * config/i386/linux.mh: Likewise.
3117 * config/i386/linux64.mh: Likewise.
3118 * config/ia64/linux.mh: Likewise.
3119 * config/m32r/linux.mh: Likewise.
3120 * config/m68k/linux.mh: Likewise.
3121 * config/mips/linux.mh: Likewise.
3122 * config/pa/linux.mh: Likewise.
3123 * config/pa/linux.mh: Likewise.
3124 * config/powerpc/linux.mh: Likewise.
3125 * config/powerpc/ppc64-linux.mh: Likewise.
3126 * config/powerpc/spu-linux.mh: Likewise.
3127 * config/sparc/linux.mh: Likewise.
3128 * config/sparc/linux64.mh: Likewise.
3129 * config/xtensa/linux.mh: Likewise.
3130
4e5c165d
HZ
31312011-08-24 Hui Zhu <teawater@gmail.com>
3132
3133 * tracepoint.c (cond_string_is_same): New function.
3134 (find_matching_tracepoint): Add condition check
3135 by cond_string_is_same.
3136
6e2f5b22
JK
31372011-08-23 Josh Matthews <josh@joshmatthews.net>
3138
3139 Fix build error in Darwin port.
3140 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3141
abf85f46
JK
31422011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3143
3144 Code cleanup.
3145 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3146 (command_line_is_silent): New function.
3147 (bpstat_do_actions_1): No longer use commands_left, use
3148 command_line_is_silent for commands.
3149 (bpstat_alloc): Remove clearing of commands_left.
3150 (bpstat_stop_status): Remove initialization of commands_left, use
3151 command_line_is_silent.
3152 * breakpoint.h (struct bpstats): Remove commands_left.
3153
3a93a0c2
KS
31542011-08-18 Keith Seitz <keiths@redhat.com>
3155
3156 PR c++/12266
3157 * cp-name-parser.y (struct demangle_info): Remove unused
3158 member PREV.
3159 (d_grab): Likewise.
3160 (allocate_info): Change return type to struct demangle_info *.
3161 Always allocate a new demangle_info.
3162 Remove unused PREV pointer.
3163 (cp_new_demangle_parse_info): New function.
3164 (cp_demangled_name_parse_free): New function.
3165 (do_demangled_name_parse_free_cleanup): New function.
3166 (make_cleanup_cp_demangled_name_parse_free): New function.
3167 (cp_demangled_name_to_comp): Change return type to
3168 struct demangle_parse_info *.
3169 Allocate a new storage for each call.
3170 (main): Update usage for cp_demangled_name_to_comp
3171 API change.
3172 * cp-support.h (struct demangle_parse_info): New structure.
3173 (cp_demangled_name_to_comp): Update API change for
3174 return type.
3175 (cp_new_demangle_parse_info): Declare.
3176 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3177 (cp_demangled_name_parse_free): Declare.
3178 * cp-support.c (cp_canonicalize_string): Update API
3179 change for cp_demangled_name_to_comp.
3180 (mangled_name_to_comp): Likewise.
3181 Return struct demangle_parse_info, too.
3182 (cp_class_name_from_physname): Update mangled_name_to_comp
3183 API change.
3184 (method_name_from_physname): Likewise.
3185 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3186 (cp_remove_params): Likewise.
3187 * python/py-type.c (typy_legacy_template_argument): Likewise.
3188
3189 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3190 (cp_merge_demangle_parse_infos): Declare.
3191 * cp-support.c (ignore_typedefs): New file global.
3192 (copy_string_to_obstack): New function.
3193 (inspect_type): New function.
3194 (replace_typedefs): New function.
3195 (replace_typedefs_qualified_name): New function.
3196 (cp_canonicalize_string_no_typedefs): New function.
3197 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3198 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3199 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3200 instead of cp_canonicalize_string.
3201 (find_method): Likewise.
3202 (decode_compound): Before looking up the name, call
3203 cp_canonicalize_string_no_typedefs.
3204 (decode_variable): Likewise.
3205
fa3a4f15
PM
32062011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3207 Tom Tromey <tromey@redhat.com>
3208 Matt Rice <ratmice@gmail.com>
3209
3210 * python/lib/gdb/prompt.py: New file.
3211 * python/lib/gdb/command/prompt.py: New file.
3212 * NEWS: Document set extended-prompt and gdb.prompt library
3213
85661b1e
YQ
32142011-08-16 Yao Qi <yao@codesourcery.com>
3215
3216 * tic6x-linux-tdep.c: Move const arrays definition from here...
3217 * tic6x-tdep.c: to here ...
3218
11315641
YQ
32192011-08-14 Yao Qi <yao@codesourcery.com>
3220
3221 * NEWS: New port to Texas Instruments TMS320C6x.
3222
8cd64e00
YQ
32232011-08-14 Andrew Jenner <andrew@codesourcery.com>
3224 Bernd Schmidt <bernds@codesourcery.com>
3225 Yao Qi <yao@codesourcery.com>
3226
3227 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3228 * solib-dsbt.c: New file. Support DSBT shared object.
3229 * tic6x-linux-tdep.c: New file.
3230 * tic6x-tdep.c: New file.
3231 * tic6x-tdep.h: New file.
3232
78d85199
YQ
32332011-08-14 Andrew Stubbs <ams@codesourcery.com>
3234 Yao Qi <yao@codesourcery.com>
3235
3236 * remote.c (PACKET_qXfer_fdpic): New enum value.
3237 (remote_protocol_features): Add qXfer:fdpic:read packet.
3238 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3239 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3240 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3241
224bbe49
YQ
32422011-08-14 Yao Qi <yao@codesourcery.com>
3243
3244 Target description for tic6x.
3245 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3246 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3247 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3248 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3249 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3250 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3251 * features/tic6x-c64xp-linux.xml: New.
3252 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3253 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3254 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3255 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3256 * regformats/tic6x-c64xp.dat,
3257 regformats/tic6x-c62x-linux.dat: Generated.
3258 * regformats/tic6x-c64x-linux.dat,
3259 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3260 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3261 features/tic6x-*.c files.
3262 Add regformats/tic6x-*.dat files.
3263
457e09f0
DE
32642011-08-12 Doug Evans <dje@google.com>
3265
3266 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3267 * python/py-symbol.c (sympy_get_type): New function.
3268 (symbol_object_getset): Add "type".
3269
d20c1c3f
PA
32702011-08-12 Pedro Alves <pedro@codesourcery.com>
3271
3272 PR tui/13073
3273
3274 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3275 empty name.
3276 (tui_show_register_group): Don't store a byte buffer in the data
3277 element's value.
3278 (tui_register_format): Skip registers with an empty name.
3279 (tui_get_register): Store a struct value in the data element's
3280 value field instead of a byte buffer holding the raw register
3281 contents. Account for optimized-out and unavailable registers
3282 when comparing register contents.
3283
9d8fa392
PA
32842011-08-09 Pedro Alves <pedro@codesourcery.com>
3285
3286 * printcmd.c (current_display_number): Update comment.
3287 (disable_current_display_cleanup): Delete.
3288 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3289 catch errors thrown while evaluating and printing the display.
3290
401a70b8
TT
32912011-08-09 Tom Tromey <tromey@redhat.com>
3292
3293 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3294
7f86f058
PA
32952011-08-09 Pedro Alves <pedro@codesourcery.com>
3296
94b71cca 3297 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3298 * maint.c (maintenance_command): Ditto.
3299 * somread.c (som_symtab_read): Ditto.
3300 * solib.c (solib_find, solib_map_sections, update_solib_list)
3301 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3302 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3303 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3304 * solib-irix.c (locate_base, disable_break, enable_break)
3305 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3306 (irix_current_sos, irix_open_symbol_file_object)
3307 (irix_special_symbol_handling): Ditto.
3308 * solib-sunos.c (locate_base, first_link_map_member)
3309 (sunos_current_sos, disable_break, enable_break)
3310 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3311 Ditto.
3312 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3313 (open_symbol_file_object, svr4_current_sos, enable_break)
3314 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3315 Ditto.
3316 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3317 (frv_current_sos, enable_break, frv_special_symbol_handling)
3318 (frv_solib_create_inferior_hook): Ditto.
3319 * solist.h (struct target_so_ops): Extend the comments of the
3320 special_symbol_handling, current_sos and open_symbol_file_object
3321 methods.
3322
5e239b84
PM
33232011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3324
3325 * python/lib/gdb/__init__.py: Auto-load files in command and
3326 function directories.
3327 * python/python.c (finish_python_initialization): Use
3328 os.path.join.
3329 * python/lib/gdb/command/pretty_printers.py: Self register
3330 command.
3331 * NEWS: Document auto-loading.
3332
b6cede78
JK
33332011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3334
3335 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3336 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3337 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3338
29d0bb3d
TT
33392011-08-08 Tom Tromey <tromey@redhat.com>
3340
3341 * breakpoint.c (clean_up_filters): Remove.
3342 (catch_syscall_split_args): Use VEC_cleanup.
3343
2f7fb8e4
JK
33442011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3345
3346 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3347 (main): Uncomment "Demangling error\n".
3348
d6c10e95
PP
33492011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3350
3351 * solib-target.c (segment_attributes): Make them static.
3352 (section_attributes, library_children, library_attributes): Likewise.
3353 (library_list_children, library_list_attributes): Likesise.
3354 (library_list_elements): Likewise.
3355
af6e93b2
PA
33562011-08-05 Pedro Alves <pedro@codesourcery.com>
3357
3358 * exceptions.c (throw_exception): Don't disable the current
3359 display.
3360 * printcmd.c (disable_current_display_cleanup): New function.
3361 (do_one_display): Install a cleanup to disable the current display
3362 if doing the display throws.
3363
6a1b1664
EZ
33642011-08-05 Eli Zaretskii <eliz@gnu.org>
3365
3366 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3367 initialization of the tp_new member to the corresponding
3368 gdbpy_initialize_* function.
3369 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3370 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3371 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3372 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3373 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3374
31a0ae49
JK
33752011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3378 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3379 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3380 references to current_uiout.
3381
e0dd0826
PA
33822011-08-04 Pedro Alves <pedro@codesourcery.com>
3383
3384 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3385 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3386 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3387 * top.c (gdb_readline_wrapper): Adjust.
3388 * tui/tui-interp.c (tui_command_loop):
3389 (_initialize_tui_interp): Don't install it.
3390
79a45e25
PA
33912011-08-04 Pedro Alves <pedro@codesourcery.com>
3392
3393 * ui-out.h (uiout): Rename to ...
3394 (current_uiout): ... this.
3395 * ui-out.c (uiout): Rename to ...
3396 (current_uiout): ... this.
3397 * ada-lang.c (print_it_exception, print_one_exception)
3398 (print_mention_exception): Adjust.
3399 * breakpoint.c (watchpoint_check): Adjust.
3400 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3401 (default_collect_info, watchpoints_info, print_one_catch_fork)
3402 (print_one_catch_vfork, print_one_catch_syscall)
3403 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3404 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3405 (print_it_watchpoint, print_mention_watchpoint)
3406 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3407 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3408 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3409 (bkpt_print_mention, momentary_bkpt_print_it)
3410 (tracepoint_print_mention, update_static_tracepoint)
3411 (tracepoints_info, save_breakpoints): Adjust.
3412 * cli-out.c (field_separator): Adjust.
3413 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3414 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3415 * frame.c (get_current_frame): Adjust.
3416 * infcmd.c (run_command_1, print_return_value): Adjust.
3417 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3418 * infrun.c (print_end_stepping_range_reason): Adjust.
3419 (print_signal_exited_reason, print_exited_reason): Adjust.
3420 (print_signal_received_reason, print_no_history_reason): Adjust.
3421 * interps.c (interp_set): Adjust.
3422 * osdata.c (info_osdata_command): Adjust.
3423 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3424 * remote-fileio.c (remote_fileio_request): Adjust.
3425 * remote.c (show_remote_cmd): Adjust.
3426 * solib.c (info_sharedlibrary_command): Adjust.
3427 * source.c (print_source_lines_base): Adjust.
3428 * stack.c (print_stack_frame): Adjust.
3429 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3430 * symfile-mem.c (add_vsyscall_page): Adjust.
3431 * symfile.c (load_progress, generic_load)
3432 (print_transfer_performance): Adjust.
3433 * thread.c (info_threads_command, restore_selected_frame)
3434 (thread_command): Adjust.
3435 * top.c (make_cleanup_restore_ui_file): Adjust.
3436 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3437 (print_one_static_tracepoint_marker): Adjust.
3438 * cli/cli-cmds.c (print_disassembly): Adjust.
3439 * cli/cli-decode.c (print_doc_line): Adjust.
3440 * cli/cli-interp.c (safe_execute_command): Adjust.
3441 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3442 (handle_redirections): Adjust.
3443 * cli/cli-script.c (show_user_1): Adjust.
3444 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3445 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3446 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3447 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3448 (mi_cmd_env_dir): Adjust.
3449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3450 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3451 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3452 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3453 (list_args_or_locals): Adjust.
3454 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3455 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3456 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3457 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3458 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3459 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3460 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3461 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3462 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3463 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3464 (list_available_thread_groups, mi_cmd_list_thread_groups)
3465 (mi_cmd_data_list_register_names)
3466 (mi_cmd_data_list_changed_registers)
3467 (mi_cmd_data_list_register_values, get_register)
3468 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3469 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3470 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3471 (mi_execute_command, mi_load_progress): Adjust.
3472 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3473 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3474 Adjust.
3475 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3476 * tui/tui-interp.c (tui_command_loop): Adjust.
3477 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3478
f9679975
PA
34792011-08-04 Pedro Alves <pedro@codesourcery.com>
3480
3481 * exceptions.c (struct catcher): Remove saved_uiout field.
3482 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3483 no longer save/resvore the global ui_out builder.
3484 (catch_exceptions_with_msg): Save/override/restore the global
3485 ui_out builder manually instead of relying on TRY_CATCH to do it.
3486 (catch_errors): Save/restore the global ui_out builder manually
3487 instead of relying on TRY_CATCH to do it.
3488 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3489 parameter.
3490 (TRY_CATCH): Adjust.
3491 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3492 the global ui_out builder manually instead of relying on TRY_CATCH
3493 to do it.
3494
934709f0
PW
34952011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3496
3497 * breakpoint.c (update_global_location_list): Ensure
3498 invariant 'first loc marked not duplicated and inserted,
3499 following locs marked duplicated/not inserted' is respected
3500 for multiple locations at the same address.
3501 (unduplicated_should_be_inserted) New function.
3502 (swap_insertion) New function.
3503
2421fe6f
JK
35042011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3505
3506 * stack.c (print_frame_arguments_choices): Comment typo fix.
3507
3fbb6ffa
TJB
35082011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3509
3510 Revert:
3511 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3512 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3513 argument. Update callers.
3514
fbe12357
PP
35152011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3516
3517 PR gdb/13045
3518 * doublest.c (convert_doublest_to_floatformat): Pass correct
3519 mantissa length to put_field.
3520
b1d288d3
JK
35212011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3522
3523 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3524 exception_print code path.
3525 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3526 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3527 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3528
311b5970
JK
35292011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 Code cleanup.
3532 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3533 Remove, merge them into ...
3534 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3535 variable args and its initialization.
3536 (struct print_args_args, print_args_stub): Remove, merge them into
3537 print_frame.
3538 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3539 them into ...
3540 (do_gdb_disassembly): ... here. Remove variable args and its
3541 initialization.
3542 (print_frame): Remove variable args and its initialization, new
3543 variable gdbarch and numargs (from print_args_stub), inline here
3544 print_args_stub with a TRY_CATCH.
3545 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3546 them into ...
3547 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3548 New variable e, remove variable btargs and its initialization.
311b5970 3549
484a26a8
TG
35502011-08-01 Tristan Gingold <gingold@adacore.com>
3551
3552 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3553
c30eee59
TJB
35542011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3555
3556 * breakpoint.c (insert_bp_location): Document return value.
3557 (insert_breakpoint_locations): Fix documentation.
3558 (remove_breakpoints): Add documentation.
3559
f116073b
TJB
35602011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3561
3562 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3563 argument. Update callers.
3564
65aa373f
JK
35652011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 * stack.c (print_frame_info): Comment typo fix.
3568
a50242fb
SA
35692011-07-29 Sterling Augustine <saugustine@google.com>
3570
3571 * MAINTAINERS (Write After Approval): Add myself to the list.
3572
267f6504
TT
35732011-07-29 Tom Tromey <tromey@redhat.com>
3574
3575 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3576 (library_list_start_segment): Update.
3577 (library_list_start_section): Update.
3578
00bd41d6
PM
35792011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3580
3581 * varobj.c (value_get_print_value): Move hint check later into the
3582 function. Comment function. Free thevalue before reusing it.
3583
18a46dbe
JK
35842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3585 Pedro Alves <pedro@codesourcery.com>
3586
3587 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3588 value_one.
3589 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3590 Assert the result kind.
3591 * value.h (value_one): Remove parameter lv.
3592
bb7da2bf
JK
35932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3594
3595 Fix crash on lval_computed values.
3596 * valops.c (value_zero): Use not_lval for lval_computed.
3597
2d5213f8
TT
35982011-07-27 Tom Tromey <tromey@redhat.com>
3599
3600 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3601 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3602
11081198
JK
36032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3604
3605 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3606 "ptype" by their typedefs difference.
3607
3c6e0cb3
JK
36082011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 * dwarf2expr.c (ctx_no_read_reg): New function.
3611 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3612 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3613 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3614 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3615
523f3620
JK
36162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3619 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3620 file.
3621 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3622 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3623 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3624 (ctx_no_get_base_type): Move the functions here.
3625 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3626 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3627 (ctx_no_get_base_type): New declarations.
3628
24d3216f
TT
36292011-07-27 Tom Tromey <tromey@redhat.com>
3630
3631 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3632 entries.
3633 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3634 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3635
5005c8a9
PP
36362011-07-26 Sterling Augustine <saugustine@google.com>
3637
3638 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3639 ULONGEST.
3640 (dump_bfd_file): Likewise.
3641
480a3f21
PW
36422011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3643
3644 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3645 (remote_hw_watchpoint_length_limit): New variable.
3646 (_initialize_remote) add set,show cmds for this new variable.
3647 * gdb.texinfo: document these new commands.
3648 * NEWS: Mention these new commands.
3649
efa80663
PA
36502011-07-26 Pedro Alves <pedro@codesourcery.com>
3651
3652 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3653 true for software watchpoints.
3654
dbdaa232 36552011-07-26 Joel Brobecker <brobecker@adacore.com>
3656
3657 GDB 7.3 released.
3658
cf2c3c16
TT
36592011-07-26 Tom Tromey <tromey@redhat.com>
3660
3661 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3662 * dwarf2read.c (read_indirect_string_at_offset): New function.
3663 (read_indirect_string): Use it.
3664 (dwarf_decode_macro_bytes): New function, taken from
3665 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3666 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3667 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3668 New functions.
3669 (struct dwarf2_per_objfile) <macro>: New field.
3670 (dwarf2_elf_names): Add .debug_macro.
3671 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3672 (dwarf2_locate_sections): Handle new section.
3673 (read_file_scope): Handle DW_AT_GNU_macros.
3674 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3675
1a532630
PP
36762011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3677
3678 * NEWS: Mention dcache configuration.
3679 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3680 (dcache_size, dcache_line_size): New variables.
3681 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3682 (struct dcache_block): Make it expandable.
3683 (struct dcache_struct): New field.
3684 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3685 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3686 (dcache_poke_byte, dcache_print_line): Adjust.
3687 (set_dcache_size, set_dcache_line_size): New functions.
3688 (set_dcache_command, show_dcache_command): New functions.
3689 (_initialize_dcache): Add new commands.
3690
2eff07b3
PP
36912011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3692
3693 * progspace.h (struct program_space): Add solib_add_generation.
3694 * infcmd.c (post_create_inferior): Only call solib_add if not
3695 already done.
3696 * solib.c (solib_add): Increment solib_add_generation.
3697
543305c9
JK
36982011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3699
3700 Fix implicit pointer offsets.
3701 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3702 ptr.OFFSET.
3703
c0a91b2b
TT
37042011-07-25 Tom Tromey <tromey@redhat.com>
3705
3706 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3707 const.
3708 (ada_exception_sal): Make 'ops' const.
3709 (ada_decode_exception_location): Likewise.
3710 (ada_decode_assert_location): Likewise.
3711 (catch_assert_command): Update.
3712 (catch_ada_exception_command): Update.
3713 (create_ada_exception_catchpoint): Make 'ops' const.
3714 * breakpoint.c (set_raw_breakpoint_without_location)
3715 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3716 const.
3717 (create_internal_breakpoint): Update.
3718 (init_raw_breakpoint_without_location): Make 'ops' const.
3719 (init_raw_breakpoint, init_catchpoint)
3720 (create_fork_vfork_event_catchpoint)
3721 (create_syscall_event_catchpoint, init_breakpoint_sal)
3722 (create_breakpoint_sal, create_breakpoints_sal)
3723 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3724 * breakpoint.h (struct breakpoint) <ops>: Now const.
3725 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3726 const.
3727
6cb9b55b
PP
37282011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3729
3730 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3731
d9b3f62e
PA
37322011-07-25 Pedro Alves <pedro@codesourcery.com>
3733
3734 * breakpoint.h (print_recreate_thread): Declare.
3735 (struct breakpoint): Move step_count, pass_count,
3736 number_on_target, static_trace_marker_id,
3737 static_trace_marker_id_idx ...
3738 (struct tracepoint): ... to this new struct.
3739 (get_tracepoint, get_tracepoint_by_number_on_target)
3740 (get_tracepoint_by_number): Change return type to struct
3741 tracepoint pointer.
3742 * breakpoint.c (is_tracepoint_type): New, factored out from
3743 is_tracepoint.
3744 (is_tracepoint): Adjust.
3745 (print_one_breakpoint_location): Cast to struct tracepoint as
3746 necessary, and adjust.
3747 (print_recreate_catch_fork, print_recreate_catch_vfork)
3748 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3749 print_recreate_thread.
3750 (init_breakpoint_sal): New, factored out from
3751 create_breakpoint_sal.
3752 (create_breakpoint_sal): Reimplement.
3753 (create_breakpoint): Allocate a struct tracecepoint if the caller
3754 wanted a tracepoint. Use init_breakpoint_sal and
3755 install_breakpoint.
3756 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3757 (print_recreate_masked_watchpoint)
3758 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3759 (tracepoint_print_one_detail): Adjust.
3760 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3761 Dump the pass count here.
3762 (update_static_tracepoint): Adjust.
3763 (addr_string_to_sals): Adjust.
3764 (create_tracepoint_from_upload): Adjust. Change return type to
3765 struct tracepoint pointer.
3766 (trace_pass_set_count): Change parameter type to struct tracepoint
3767 pointer, and adjust.
3768 (trace_pass_command): Adjust.
3769 (get_tracepoint, get_tracepoint_by_number_on_target)
3770 (get_tracepoint_by_number): Change return type to struct
3771 tracepoint pointer, and adjust.
3772 (print_recreate_thread): New, factored out from save_breakpoints.
3773 (save_breakpoints): Don't print thread and task and passcount
3774 recreation here.
3775 * remote.c (remote_download_tracepoint): Adjust.
3776 * tracepoint.c (trace_actions_command, validate_actionline)
3777 (start_tracing, tfind_1, trace_find_tracepoint_command)
3778 (trace_dump_command): Adjust.
3779 (find_matching_tracepoint): Change return type to struct
3780 tracepoint pointer, and adjust.
3781 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3782 (tfile_trace_find, tfile_fetch_registers): Adjust.
3783 * tracepoint.h (create_tracepoint_from_upload): Change return type
3784 to struct tracepoint pointer.
3785 * ada-lang.c (print_recreate_exception): Call
3786 print_recreate_thread.
3787 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3788
3a5c3e22
PA
37892011-07-25 Pedro Alves <pedro@codesourcery.com>
3790
3791 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3792 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3793 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3794 watchpoint_thread, watchpoint_triggered ...
3795 (struct watchpoint): ... to this new struct.
3796 (is_watchpoint): Declare.
3797 (install_breakpoint): Add new `internal' parameter.
3798 * breakpoint.c (is_watchpoint): Delete declaration.
3799 (set_breakpoint_condition): Handle watchpoints.
3800 (is_watchpoint): Make public.
3801 (watchpoint_in_thread_scope): Change parameter type to struct
3802 watchpoint.
3803 (watchpoint_del_at_next_stop): Change parameter type to struct
3804 watchpoint. Remove assertion. Adjust.
3805 (update_watchpoint): Ditto.
3806 (insert_breakpoints, breakpoint_init_inferior)
3807 (watchpoints_triggered, watchpoint_check)
3808 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3809 (bpstat_stop_status, print_one_breakpoint_location)
3810 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3811 to struct watchpoint as necessary, and adjust.
3812 (install_breakpoint): Add `internal' argument. If true, don't
3813 mention the new breakpoint. Use set_breakpoint_number.
3814 (create_fork_vfork_event_catchpoint)
3815 (create_syscall_event_catchpoint): Adjust.
3816 (dtor_watchpoint): New.
3817 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3818 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3819 (print_it_watchpoint, print_mention_watchpoint)
3820 (print_recreate_watchpoint, insert_masked_watchpoint)
3821 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3822 (print_one_detail_masked_watchpoint)
3823 (print_mention_masked_watchpoint)
3824 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3825 necessary, and adjust.
3826 (watch_command_1): Allocate and initialize a struct watchpoint
3827 instead of a struct breakpoint. Use install_breakpoint.
3828 (catch_exec_command_1): Adjust.
3829 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3830 fields.
3831 (delete_breakpoint, enable_breakpoint_disp)
3832 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3833 as necessary, and adjust.
3834 (initialize_breakpoint_ops): Install dtor_watchpoint as
3835 watchpoints' dtor method.
3836 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3837 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3838 to struct watchpoint as necessary, and adjust.
3839
2060206e
PA
38402011-07-25 Pedro Alves <pedro@codesourcery.com>
3841
3842 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3843 the the base class ops table.
3844 (catch_exception_breakpoint_ops)
3845 (catch_exception_unhandled_breakpoint_ops)
3846 (catch_assert_breakpoint_ops): Don't statically initialize.
3847 (initialize_ada_catchpoint_ops): New.
3848 (_initialize_ada_language): Call it.
3849 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3850 (bkpt_breakpoint_ops): Forward declare.
3851 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3852 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3853 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3854 (masked_watchpoint_breakpoint_ops)
3855 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3856 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3857 base class ops table.
3858 (null_re_set, null_check_status, null_works_in_software_mode)
3859 (null_resources_needed, null_print_one_detail): Delete.
3860 (bkpt_dtor): Rename to ...
3861 (base_breakpoint_dtor): ... this. Make static.
3862 (bkpt_allocate_location): Rename to ...
3863 (base_breakpoint_allocate_location): ... this. Make static.
3864 (base_breakpoint_re_set): New.
3865 (internal_error_pure_virtual_called): New.
3866 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3867 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3868 (base_breakpoint_works_in_software_mode)
3869 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3870 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3871 (base_breakpoint_print_recreate): New functions.
3872 (base_breakpoint_ops): New global.
3873 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3874 (bkpt_breakpoint_hit): Make static.
3875 (bkpt_check_status): Delete.
3876 (bkpt_resources_needed): Make static.
3877 (bkpt_works_in_software_mode): Delete.
3878 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3879 static.
3880 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3881 (momentary_breakpoint_ops): Don't statically initialize.
3882 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3883 Delete.
3884 (tracepoint_insert_location, tracepoint_remove_location)
3885 (tracepoint_check_status, tracepoint_works_in_software_mode)
3886 (tracepoint_print_it): Delete.
3887 (tracepoint_breakpoint_ops): Don't statically initialize.
3888 (initialize_breakpoint_ops): New.
3889 (_initialize_breakpoint): Call it.
3890 * breakpoint.h (null_re_set, null_works_in_software_mode)
3891 (null_resources_needed, null_check_status, null_print_one_detail):
3892 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3893 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3894 (bkpt_check_status, bkpt_resources_needed)
3895 (bkpt_works_in_software_mode, bkpt_print_it)
3896 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3897 Delete declarations.
3898 (initialize_breakpoint_ops): Declare.
3899
001c8c33
PA
39002011-07-25 Pedro Alves <pedro@codesourcery.com>
3901
3902 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3903 (momentary_bkpt_print_it): Simplify.
3904
06edf0c0
PA
39052011-07-25 Pedro Alves <pedro@codesourcery.com>
3906
3907 Split internal, momentary and user breakpoints breakpoint_ops
3908 tables.
3909
3910 * breakpoint.c (internal_breakpoint_ops)
3911 (momentary_breakpoint_ops): Forward declare.
3912 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3913 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3914 (create_overlay_event_breakpoint)
3915 (create_std_terminate_master_breakpoint)
3916 (create_exception_master_breakpoint): Create breakpoints with
3917 internal_breakpoint_ops vtable.
3918 (set_longjmp_breakpoint): Create momentary breakpoints with
3919 momentary_breakpoint_ops vtable, using
3920 momentary_breakpoint_from_master.
3921 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3922 (create_solib_event_breakpoint): Create breakpoints with
3923 internal_breakpoint_ops vtable.
3924 (set_momentary_breakpoint): Create breakpoints with
3925 momentary_breakpoint_ops vtable.
3926 (momentary_breakpoint_from_master): New, factored out from
3927 clone_momentary_breakpoint.
3928 (clone_momentary_breakpoint): Adjust.
3929 (watch_command_1): Create scope breakpoints with
3930 momentary_breakpoint_ops vtable.
3931 (bkpt_re_set): Remove handling of internal and momentary
3932 breakpoints.
3933 (bkpt_print_mention, bkpt_print_recreate): New.
3934 (bkpt_breakpoint_ops): Adjust.
3935 (internal_bkpt_re_set, internal_bkpt_check_status)
3936 (internal_bkpt_print_it, internal_bkpt_print_mention)
3937 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3938 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3939 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3940 (momentary_bkpt_print_recreate): New.
3941 (momentary_breakpoint_ops): New.
3942
348d480f
PA
39432011-07-25 Pedro Alves <pedro@codesourcery.com>
3944
3945 Implement most breakpoint_ops methods for all breakpoint types,
3946 and move the default handlings to the proper callbacks.
3947
3948 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3949 works_in_software_mode method.
3950 (insert_bp_location): Go through breakpoint_ops->insert_location
3951 for software and hardware watchpoints.
3952 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3953 breakpoint_ops.
3954 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3955 for software and hardware watchpoints.
3956 (print_it_typical): Delete.
3957 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3958 method.
3959 (watchpoint_check): Adjust comment.
3960 (bpstat_check_location): Simply always call the breakpoint's
3961 breakpoint_hit method.
3962 (bpstat_stop_status): Always call the breakpoint's check_status
3963 method. Remove special cases for watchpoints and internal event
3964 breakpoints from here (moved to the check_status implementations).
3965 (print_one_breakpoint_location): Assume b->ops is never NULL.
3966 Remove static tracepoint marker id printing from here (moved to
3967 the print_one_detail callback implementation of tracepoints).
3968 (init_bp_location): Assert OPS is never NULL.
3969 (allocate_bp_location): Always call the breakpoint's
3970 allocate_location method, and remove the default code from here.
3971 (free_bp_location): Always call the location's dtor method, and
3972 remove the default code from here.
3973 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3974 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3975 parameter. Pass it down.
3976 (set_raw_breakpoint): Ditto.
3977 (print_it_catch_fork): Adjust to take a bpstat as argument.
3978 (catch_fork_breakpoint_ops): Install methods.
3979 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3980 (catch_vfork_breakpoint_ops): Install methods.
3981 (dtor_catch_syscall): Call the base dtor.
3982 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3983 (catch_syscall_breakpoint_ops): Install methods.
3984 (dtor_catch_exec): Call the base dtor.
3985 (print_it_catch_exec): Adjust to take a bpstat as argument.
3986 (catch_exec_breakpoint_ops): Install methods.
3987 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3988 the breakpoint's resources_needed method, and remove the default
3989 code from here.
3990 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3991 breakpoint_ops.
3992 (clone_momentary_breakpoint): Clone the original's ops.
3993 (mention): Always call the breakpoint's print_mention method, and
3994 remove the default code from here.
3995 (create_breakpoint_sal): Adjust to pass the ops to
3996 set_raw_breakpoint rather than setting it manually.
3997 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3998 ops to set_raw_breakpoint_without_location rather than setting it
3999 manually.
4000 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4001 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4002 (ranged_breakpoint_ops): Install methods.
4003 (break_range_command): Adjust to pass the ops to
4004 set_raw_breakpoint rather than setting it manually.
4005 (re_set_watchpoint, breakpoint_hit_watchpoint)
4006 (check_status_watchpoint, resources_needed_watchpoint)
4007 (works_in_software_mode_watchpoint, print_it_watchpoint)
4008 (print_mention_watchpoint, print_recreate_watchpoint): New
4009 functions.
4010 (watchpoint_breakpoint_ops): Install new methods.
4011 (print_it_masked_watchpoint): New function.
4012 (masked_watchpoint_breakpoint_ops): Install new methods.
4013 (watch_command_1): Adjust to pass the right breakpoint_ops to
4014 set_raw_breakpoint_without_location rather than setting it
4015 manually later. Record the current pspace.
4016 (print_it_exception_catchpoint): Adjust to take a bpstat as
4017 argument.
4018 (gnu_v3_exception_catchpoint_ops): Install new methods.
4019 (say_where): New function.
4020 (null_re_set, null_check_status, null_works_in_software_mode)
4021 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4022 New functions.
4023 (bp_location_ops): New global.
4024 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4025 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4026 (bkpt_check_status, bkpt_resources_needed)
4027 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4028 (bkpt_print_recreate): New functions.
4029 (bkpt_breakpoint_ops): New global.
4030 (tracepoint_re_set, tracepoint_insert_location)
4031 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4032 (tracepoint_check_status, tracepoint_works_in_software_mode)
4033 (tracepoint_print_it, tracepoint_print_one_detail)
4034 (tracepoint_print_mention, tracepoint_print_recreate): New
4035 functions.
4036 (tracepoint_breakpoint_ops): New global.
4037 (delete_breakpoint): Always call the breakpoint's dtor method, and
4038 remove the default handling from here.
4039 (breakpoint_re_set_default): Make static.
4040 (breakpoint_re_set_one): Always call the breakpoints re_set
4041 method, and remove the default handling from here.
4042 (trace_command, ftrace_command, strace_command)
4043 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4044 to create_breakpoint.
4045 (save_breakpoints): Always call the breakpoint's print_recreate
4046 method, and remove the default handling from here.
4047
4048 * ada-lang.c (dtor_exception): Call the base dtor.
4049 (re_set_exception): Call the base method.
4050 (print_it_exception, print_it_catch_exception): Adjust to take a
4051 bpstat as argument.
4052 (catch_exception_breakpoint_ops): Install methods.
4053 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4054 argument.
4055 (catch_exception_unhandled_breakpoint_ops): Install methods.
4056 (print_it_catch_assert): Adjust to take a bpstat as argument.
4057 (catch_assert_breakpoint_ops): Install methods.
4058
4059 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4060 to take a bpstat as argument.
4061 (enum print_stop_action): Add describing comments to each enum
4062 value.
4063 (breakpoint_re_set_default): Delete declaration.
4064 (null_re_set, null_works_in_software_mode, null_resources_needed)
4065 (null_check_status, null_print_one_detail): Declare.
4066 (bkpt_breakpoint_ops): Declare.
4067 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4068 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4069 (bkpt_check_status, bkpt_resources_needed)
4070 (bkpt_works_in_software_mode, bkpt_print_it)
4071 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4072 Declare.
4073
4074 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4075 bkpt_breakpoint_ops.
4076 * python/py-breakpoint.c (bppy_init): Ditto.
4077
be8f8133
PW
40782011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4079
4080 * MAINTAINERS (Write After Approval): Add myself to the list.
4081
3807f613
PP
40822011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4083
4084 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4085
1ced966e
PA
40862011-07-22 Pedro Alves <pedro@codesourcery.com>
4087
4088 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4089 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4090 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4091 adjust.
4092 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4093 (struct i386_debug_reg_state): New.
4094 (i386_init_dregs): New.
4095 (dr_mirror): New.
4096 (i386_cleanup_dregs): Use i386_init_dregs.
4097 (i386_show_dr): Add state parameter and adjust.
4098 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4099 the inferior here.
4100 (i386_remove_aligned_watchpoint): Likewise.
4101 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4102 (i386_update_inferior_debug_regs): New.
4103 (i386_insert_watchpoint): Work on a local mirror of the debug
4104 registers, and only update the inferior on success.
4105 (i386_remove_watchpoint): Ditto.
4106 (i386_region_ok_for_watchpoint): Adjust.
4107 (i386_stopped_data_address): Adjust.
4108 (i386_insert_hw_breakpoint): Adjust.
4109 (i386_remove_hw_breakpoint): Adjust.
4110
3543a589
TT
41112011-07-22 Tom Tromey <tromey@redhat.com>
4112
4113 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4114 from amd64_pseudo_register_read. Change arguments. Call
4115 mark_value_bytes_unavailable when needed.
4116 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4117 set_gdbarch_pseudo_register_read.
4118 * sentinel-frame.c (sentinel_frame_prev_register): Use
4119 regcache_cooked_read_value.
4120 * regcache.h (regcache_cooked_read_value): Declare.
4121 * regcache.c (regcache_cooked_read_value): New function.
4122 (regcache_cooked_read): Call
4123 gdbarch_pseudo_register_read_value if available.
4124 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4125 (i386_pseudo_register_read): Remove.
4126 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4127 i386_pseudo_register_read. Change arguments. Call
4128 mark_value_bytes_unavailable when needed.
4129 (i386_pseudo_register_read_value): New function.
4130 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4131 not set_gdbarch_pseudo_register_read.
4132 * gdbarch.sh (pseudo_register_read_value): New method.
4133 * gdbarch.c, gdbarch.h: Rebuild.
4134 * findvar.c (value_from_register): Call get_frame_register_value.
4135
95298e72
PM
41362011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4137
4138 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4139 get_prefix.
4140 (display_gdb_prompt): Likewise.
4141 (change_annotation_level): Likewise.
4142 (push_prompt): Likewise.
4143 (pop_prompt): Likewise.
4144 (handle_stop_sig): Use get_prompt with a level.
4145 * top.c (command_loop): Use get_prompt with a level.
4146 (set_async_annotation_level): Use set_prompt with a level.
4147 (get_prefix): New function.
4148 (set_prefix): Ditto.
4149 (set_suffix): Ditto.
4150 (get_suffix): Ditto.
4151 (get_prompt): Accept a level argument.
4152 (set_prompt): Accept a level argument. Free old prompts. Set
4153 new_async_prompt if level is 0.
4154 (init_main): Use set_prompt with a level. Do not set
4155 new_async_prompt.
4156 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4157 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4158 Modify set_prompt, get_prompt to account for levels.
4159 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4160 level.
4161 * python/python.c (before_prompt_hook): Use set_prompt.
4162
d26e3629
KY
41632011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4164
4165 * defs.h: Add guard against inclusion in gdbserver.
4166 (struct ptid, ptid_t): Move to common/ptid.h.
4167 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4168 xsnprintf, internal_error): Move to common/common-utils.h.
4169 (nomem): Delete.
4170 * gdb_assert.h: Move into common/ sub-directory.
4171 * gdb_locale.h: Ditto.
4172 * gdb_dirent.h: Ditto.
4173 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4174 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4175 Move into common/ptid.h.
4176 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4177 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4178 Change nomem to malloc_failure.
4179 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4180 * utils.c (nomem): Rename to malloc_failure.
4181 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4182 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4183 (gdb_buildargv): Change nomem to malloc_failure.
4184 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4185 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4186 ptid_is_pid): Move into common/ptid.c.
4187 (initialize_infrun): Delete initialization of null_ptid and
4188 minus_one_ptid.
4189 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4190 linux_common_xfer_osdata.
4191 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4192 common/ptid.c and common/buffer.c.
4193 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4194 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4195 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4196 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4197 rules.
4198 * common/gdb_assert.h: New.
4199 * common/gdb_dirent.h: New.
4200 * common/gdb_locale.h: New.
4201 * common/buffer.c: New.
4202 * common/buffer.h: New.
4203 * common/ptid.c: New.
4204 * common/ptid.h: New.
4205 * common/xml-utils.c: New.
4206 * common/xml-utils.h: New.
4207 * common/common-utils.c: New.
4208 * common/common-utils.h: New.
4209 * common/linux-osdata.c: New.
4210 * common/linux-osdata.h: New.
4211 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4212 * config/arm/linux.mh (NATDEPFILES): Ditto.
4213 * config/i386/linux.mh (NATDEPFILES): Ditto.
4214 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4215 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4216 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4217 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4218 * config/mips/linux.mh (NATDEPFILES): Ditto.
4219 * config/pa/linux.mh (NATDEPFILES): Ditto.
4220 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4221 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4222 * config/s390/s390.mh (NATDEPFILES): Ditto.
4223 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4224 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4225 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4226
edc84990 42272011-07-21 Matt Rice <ratmice@gmail.com>
4228
4229 * NEWS: Add info macros and info definitions commands.
4230
3a7bf607
PM
42312011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4232
4233 * NEWS: Document Python prompt substitution hook.
4234
9b158ba0 42352011-07-18 Matt Rice <ratmice@gmail.com>
4236
4237 PR macros/12999
4238 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4239 * macrotab.c (foreach_macro): Ditto.
4240 (foreach_macro_in_scope): Ditto.
4241 * macrocmd.c (print_macro_callback): New function.
4242 (info_macro_command): Move some code to print_macro_definition.
4243 (print_macro_definition): New function.
4244 (print_one_macro): Add new arguments to callback.
4245 (info_definitions_command): New function.
4246 (info_macros_command): Ditto.
4247 (_initialize_macrocmd): Add info macros and info definitions commands.
4248 * symtab.c (add_macro_name): Add new arguments to callback.
4249
d17b6f81
PM
42502011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4251 Tom Tromey <tromey@redhat.com>
4252
4253 * top.c (set_prompt): Rewrite to free previous prompt, free
4254 asynch_new_prompt and set both on new prompts.
4255 * event-top.c (display_gdb_prompt): Add prompt substitution
4256 logic.
4257 * python/python.c (before_prompt_hook): New function.
4258
1364323a 42592011-07-20 Matt Rice <ratmice@gmail.com>
4260
4261 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4262 arguments to store_unsigned_integer.
4263
8b70b953
TT
42642011-07-20 Tom Tromey <tromey@redhat.com>
4265
6c83ed52
TT
4266 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4267 in some declaration-only cases.
4268
42692011-07-18 Tom Tromey <tromey@redhat.com>
4270
8b70b953
TT
4271 PR symtab/12984:
4272 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4273 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4274 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4275 <debug_type_section>: New field.
4276 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4277 (load_cu): Use appropriate section.
4278 (create_signatured_type_table_from_index): Add 'section'
4279 argument.
4280 (dwarf2_read_index): Only allow a single .debug_types section.
4281 (dw2_get_file_names): Use appropriate section.
4282 (read_type_comp_unit_head): Add 'section' argument.
4283 (create_debug_types_hash_table): Loop over all .debug_types
4284 sections.
4285 (init_cu_die_reader): Use appropriate section.
4286 (process_psymtab_comp_unit, load_partial_comp_unit)
4287 (load_full_comp_unit, read_die_and_children, find_partial_die)
4288 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4289 (lookup_signatured_type_at_offset): Add 'section' argument.
4290 (read_signatured_type_at_offset): Add 'sect' argument.
4291 (read_signatured_type): Use appropriate section.
4292 (set_die_type, get_die_type_at_offset): Update.
4293 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4294 VEC.
4295 (write_psymtabs_to_index): Don't allow index with more than one
4296 .debug_types section.
4297
918dd910
JK
42982011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4299
4300 Fix crash if referenced CU is aged out.
4301 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4302 xfree of block.data.
4303 (indirect_pieced_value): New variable back_to, use to for xfree of
4304 baton.data.
4305 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4306 block.data.
4307 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4308 (load_cu): New function from ...
4309 (dw2_do_instantiate_symtab): ... the code here ...
4310 (process_full_comp_unit): ... and here.
4311 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4312 retval.data.
4313
0e37a63c
JK
43142011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4315
4316 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4317 type.
4318
7e324e48
GB
43192011-07-19 Gary Benson <gbenson@redhat.com>
4320
4321 * infrun.c (struct execution_control_state): New member
4322 stop_func_filled_in.
4323 (clear_stop_func, fill_in_stop_func): New functions.
4324 (handle_inferior_event): Call clear_stop_func rather than
4325 manipulating the execution control state directly.
4326 Call fill_in_stop_func lazily as required rather than
4327 directly calling find_pc_partial_function in all cases.
4328
d48323d8
TT
43292011-07-18 Tom Tromey <tromey@redhat.com>
4330
4331 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4332 checking for variable-sized array.
4333
40591b7d
JCD
43342011-07-18 Jean-Charles Delay <delay@adacore.com>
4335
4336 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4337 of supported languages.
4338 * varobj.c: Add top definitions and basic implementation of the
4339 following callbacks: ada_number_of_children, ada_name_of_variable,
4340 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4341 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4342 (languages): Register Ada-specific callbacks.
4343 (variable_language): Add the Ada case in the language setter switch.
4344
2e424e08
JK
43452011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4346
4347 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4348
9e8b7a03
JK
43492011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4350
4351 Code cleanup.
4352 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4353 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4354 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4355 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4356 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4357 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4358 (struct dwarf_expr_context_funcs): New, move here methods from ...
4359 (struct dwarf_expr_context): ... here. New fields funcs.
4360 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4361 (dwarf_expr_ctx_funcs): New.
4362 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4363 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4364 (needs_frame_ctx_funcs): New.
4365 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4366
2b1260ab
FM
43672011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4368
4369 * MAINTAINERS (Write After Approval): Add myself to the list.
4370
8bd90839
FM
43712011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4372
4373 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4374 that CIE pointer of an FDE really points to a CIE .
4375
953b98d1
HZ
43762011-07-15 Hui Zhu <teawater@gmail.com>
4377
4378 * remote.c (remote_get_trace_status): Add comments.
4379
c8f2448a
JK
43802011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 Code cleanup - constify struct lval_funcs.
4383 * dwarf2loc.c (pieced_value_funcs): Make it const.
4384 * infrun.c (siginfo_value_funcs): Likewise.
4385 * opencl-lang.c (opencl_value_funcs): Likewise.
4386 * valops.c (value_assign, value_ind): Make the funcs variable const.
4387 * value.c (struct value): Make location.computed.funcs target const.
4388 Rearrange the comments.
4389 (allocate_computed_value): Make the funcs parameter target const.
4390 (value_computed_funcs): Return the funcs target const.
4391 (value_free, value_copy, set_value_component_location): Make the funcs
4392 variable const.
4393 * value.h (allocate_computed_value): Make the funcs parameter target
4394 const.
4395 (value_computed_funcs): Return the funcs target const.
4396 * windows-tdep.c (tlb_value_funcs): Make it const.
4397
f652de6f
HZ
43982011-07-14 Hui Zhu <teawater@gmail.com>
4399
4400 * remote.c (remote_get_trace_status): Initialize p.
4401
67f41397
JK
44022011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4403
4404 Work around kgdb.
4405 * remote.c (remote_get_trace_status): New variable ex. Put
4406 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4407
d1b66e6d
TT
44082011-07-13 Tom Tromey <tromey@redhat.com>
4409
4410 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4411 value_from_contents for final conversion.
4412
1632a688
JK
44132011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4414
4415 Code cleanup.
4416 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4417 Indent prototypes so they do not get into tags.
4418
a7035dbb
JK
44192011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 Code cleanup making also optimized out values lazy.
4422 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4423 allocate_optimized_out_value. Twice.
4424 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4425 * findvar.c (read_var_value): Likewise.
4426 * value.c (allocate_optimized_out_value): New function.
4427 * value.h (allocate_optimized_out_value): New declaration.
4428
d07ed419
JK
44292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4430
4431 Fix occasional crash of CTRL-C during DWARF read in.
4432 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4433
86d31898
TT
44342011-07-11 Tom Tromey <tromey@redhat.com>
4435
4436 * regcache.c (struct regcache_descr): Fix typo.
4437 * i387-tdep.c (i387_supply_xsave): Fix typo.
4438
2ab95328
TT
44392011-07-11 Tom Tromey <tromey@redhat.com>
4440
4441 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4442 (read_file_scope, read_type_unit_scope): Use it.
4443
04ad99e6
JK
44442011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4445
4446 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4447 `int'.
4448
713389e0
PM
44492011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4450
4451 PR python/12438
4452 * python/python.c: Set gdbpy_should_print_stack default to off.
4453 (set_python): Deprecate maint set python print-stack to
4454 class_deprecate.
4455 (_initialize_python): Deprecate maint set/show python print-stack.
4456 Add new prefix command, python. Add new setting, print-backtrace.
4457 * NEWS: Document set python print-stack. Document default change.
4458
754eadd1
PM
44592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4460
4461 * python/py-inferior.c (infpy_dealloc): New function.
4462 (inferior_to_inferior_object): Return a new object, or a
4463 new reference to the existing object.
4464 (find_thread_object): Cleanup references to inferior.
4465 (delete_thread_object): Ditto.
4466 * python/py-infthread.c (create_thread_object): Do not increment
4467 inferior reference count.
4468
5e44ecb3
TT
44692011-07-08 Tom Tromey <tromey@redhat.com>
4470
4471 * dwarf2loc.c (locexpr_regname): New function.
4472 (locexpr_describe_location_piece): Use it.
4473 (disassemble_dwarf_expression): Add per_cu argument. Use
4474 locexpr_regname.
4475 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4476 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4477 New cases.
4478 (locexpr_describe_location_1): Add per_cu argument.
4479 (locexpr_describe_location): Update.
4480 (loclist_describe_location): Update.
4481
e0e9434c
TT
44822011-07-08 Tom Tromey <tromey@redhat.com>
4483
4484 * dwarf2expr.c (execute_stack_op): Add QUIT.
4485
26afc0d7
HZ
44862011-07-07 Hui Zhu <teawater@gmail.com>
4487
4488 Revert:
4489 2011-07-06 Hui Zhu <teawater@gmail.com>
4490 * remote.c (remote_start_remote): Add TRY_CATCH for
4491 remote_get_trace_status.
4492 * tracepoint.c (disconnect_tracing): Ditto.
4493
a40a111f
AB
44942011-07-07 Andrew Burgess <aburgess@broadcom.com>
4495
4496 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4497 variables as signed, not unsigned.
4498
e2bd3b15
JB
44992011-07-06 Joel Brobecker <brobecker@adacore.com>
4500
4501 * jit.c (jit_inferior_init): Reformat forward declaration.
4502
e3d961fe 45032011-07-06 Matt Rice <ratmice@gmail.com>
4504
4505 * MAINTAINERS (Write After Approval): Add myself to the list.
4506
0f3428f0
HZ
45072011-07-06 Hui Zhu <teawater@gmail.com>
4508
4509 * remote.c (remote_start_remote): Add TRY_CATCH for
4510 remote_get_trace_status.
4511 * tracepoint.c (disconnect_tracing): Ditto.
4512
fc9f3a69
TT
45132011-07-05 Tom Tromey <tromey@redhat.com>
4514
4515 * symtab.c (operator_chars): Now static.
4516 * linespec.c (operator_chars): Don't declare.
4517
26e519b9
TJB
45182011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4519
4520 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4521
eb2a6f42
TT
45222011-07-05 Tom Tromey <tromey@redhat.com>
4523
4524 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4525 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4526 (TYPE_CPLUS_REALLY_JAVA): New macro.
4527 * dwarf2read.c (process_structure_scope): Set
4528 TYPE_CPLUS_REALLY_JAVA.
4529
21083d0f 45302011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4531
4532 * ada-lang.c: Fix typos.
4533 * amd64-tdep.c: Likewise.
4534 * breakpoint.c: Likewise.
4535 * cli/cli-decode.c: Likewise.
4536 * findcmd.c: Likewise.
4537 * inline-frame.c: Likewise.
4538 * mi/mi-main.c: Likewise.
4539 * minsyms.c: Likewise.
4540 * monitor.c: Likewise.
4541 * monitor.h: Likewise.
4542 * prologue-value.c: Likewise.
4543 * reverse.c: Likewise.
4544 * s390-tdep.c: Likewise.
4545
3b2a0cf2
JB
45462011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4547
4548 * jit.c (jit_inferior_init): Forward declare.
4549 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4550
efae1d92
JB
45512011-07-04 Joel Brobecker <brobecker@adacore.com>
4552
4553 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4554
6040a59d
JB
45552011-07-04 Tristan Gingold <gingold@adacore.com>
4556
4557 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4558 (tcb_fieldno): Add activation_link field.
4559 (get_known_tasks_addr): Moved and rewritten.
4560 (get_tcb_types_info): Set activation_link field.
4561 (read_known_tasks_array): Add parameter. Rewritten.
4562 (read_known_tasks_list): New function.
4563 (read_known_tasks): New function.
4564 (ada_build_task_list): Call read_known_tasks instead of
4565 read_known_tasks_array.
4566 * ravenscar-thread.c: Add first_task_name constant.
4567 (has_ravenscar_runtime): Check for task list too.
4568
cb741e45
JB
45692011-07-04 Tristan Gingold <gingold@adacore.com>
4570
4571 * ada-tasks.c: Renames fieldno to actb_fieldno.
4572 (ada_get_task_number): Indentation.
4573 (get_tcb_types_info): Remove all parameters. Write directly
4574 the globals.
4575 (ptid_from_atcb_common): Adjust.
4576 (read_atcb): Adjust.
4577
7475b06c
TJB
45782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4579
4580 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4581
15230f37
TJB
45822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4583
4584 * ui-out.c (ui_out_field_core_addr): Mention that the function
4585 description is in the header file.
4586 * ui-out.h (ui_out_field_core_addr): Document function.
4587
65743aba
TJB
45882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4589
4590 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4591 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4592
c37a5aab
TJB
45932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4594
4595 * symtab.c (expand_line_sal): Remove empty line.
4596
59adf69e
TS
45972011-07-04 Thomas Schwinge <thomas@schwinge.name>
4598
4599 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4600 same way as ELFOSABI_NONE.
4601 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4602
e5dd4106
TJB
46032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4604
4605 * breakpoint.c: Fix typos in comments.
4606 * linespec.c: Likewise.
4607 * symtab.c: Likewise.
4608
d40102a1
JB
46092011-07-04 Joel Brobecker <brobecker@adacore.com>
4610
4611 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4612 section in separate object files.
4613
2f741504
JK
46142011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4615
4616 Fix false GCC warning.
4617 * linespec.c (decode_line_1): Initialize values.
4618
418c7cf7
JK
46192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4620
4621 * linespec.c (find_method): Accept the function type automatically only
4622 if it was specified with parameter types.
4623
3d50dd94
JK
46242011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 Stop on first linespec terminator instead of eating what we can.
4627 * linespec.c (is_linespec_boundary): New function.
4628 (name_end): Remove function.
4629 (keep_name_info): New parameter on_boundary, replace the body.
4630 (decode_line_1): Provide the parameter to keep_name_info.
4631 (decode_compound): Likewise. Drop the trailing java return type
4632 handling. Twice.
4633
dcf9f4ab
JK
46342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4635
4636 Fall back linespec to minimal symbols.
4637 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4638 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4639 (find_method, symbol_found): Change error to cplusplus_error.
4640
3f542ed1
JK
46412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4642
bc68c4e5 4643 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4644
900e11f9
JK
46452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4646 Tom Tromey <tromey@redhat.com>
4647
4648 * dwarf2read.c (check_physname): New variable.
4649 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4650 (show_check_physname): New function.
4651 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4652
2301925d
JB
46532011-07-01 Joel Brobecker <brobecker@adacore.com>
4654
4655 * machoread.c (macho_symfile_read): Delete OBE comment.
4656
38947cca
JB
46572011-07-01 Joel Brobecker <brobecker@adacore.com>
4658
4659 * machoread.c (struct macho_oso_data): Delete.
4660 (current_oso): Delete.
4661 (macho_relocate_common_syms): New function, mostly extracted
4662 out of
4663 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4664 Remove code that sets and unset current_oso.
4665 (macho_symfile_relocate): Delete handling of common symbols,
4666 now moved to macho_relocate_common_syms.
4667
a7aa0d73
JB
46682011-07-01 Joel Brobecker <brobecker@adacore.com>
4669
4670 * darwin-nat.c (darwin_ptrace): Add documentation.
4671 Set errno to zero before calling ptrace. If ptrace returns
4672 -1 and errno is zero, then change then return zero.
4673 (darwin_kill_inferior): Issue a warning instead of triggering
4674 a failed assertion when the PT_KILL ptrace operations returned
4675 nonzero.
4676
5e9bc145
JB
46772011-07-01 Joel Brobecker <brobecker@adacore.com>
4678
4679 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4680 only when inf->private->no_ptrace.
4681
00eb2c4a
JB
46822011-07-01 Joel Brobecker <brobecker@adacore.com>
4683
4684 * ada-lang.c (print_it_exception): Print temporary catchpoints
4685 as "Temporary catchpoint".
4686 (print_mention_exception): Likewise.
4687
127c81bc
TT
46882011-07-01 Tom Tromey <tromey@redhat.com>
4689
4690 * jv-lang.c (java_language_defn): Use java_printchar,
4691 java_printstr.
4692 (java_get_encoding): New function.
4693 (java_emit_char): Use generic_emit_char.
4694 (java_printchar): New function.
4695 (java_printstr): Likewise.
4696
25552254
JB
46972011-07-01 Joel Brobecker <brobecker@adacore.com>
4698
4699 * ada-typeprint.c (print_record_type): If unable to decode
4700 the name of the parent type, use the encoded name.
4701
d2d43431
JB
47022011-07-01 Jean-Charles Delay <delay@adacore.com>
4703
4704 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4705 pointer to constrained packed array type output.
4706 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4707 packed array output.
4708
54ae186f
JB
47092011-07-01 Jean-Charles Delay <delay@adacore.com>
4710
4711 * ada-typeprint.c (print_array_type): removed if condition on show
4712 being negative for bounds printing.
4713
8f17729f
JB
47142011-07-01 Joel Brobecker <brobecker@adacore.com>
4715
4716 * ada-lang.c (ada_identical_enum_types_p): New function.
4717 (symbols_are_identical_enums): New function.
4718 (remove_extra_symbols): Do nothing if NSYMS < 2.
4719 Use symbols_are_identical_enums.
4720
f5aa6869
JB
47212011-07-01 Joel Brobecker <brobecker@adacore.com>
4722
4723 * ada-valprint.c (ada_value_print): Handle typedefs.
4724
8f465ea7
JB
47252011-07-01 Joel Brobecker <brobecker@adacore.com>
4726
4727 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4728
828292f2
JB
47292011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4730
4731 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4732 (decode_constrained_packed_array): Likewise.
4733 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4734
18920c42
JB
47352011-07-01 Joel Brobecker <brobecker@adacore.com>
4736
4737 * ada-exp.y (convert_char_literal): Handle typedef types.
4738
c90092fe
JB
47392011-07-01 Joel Brobecker <brobecker@adacore.com>
4740
4741 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4742
f748fb40
TT
47432011-06-30 Tom Tromey <tromey@redhat.com>
4744
4745 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4746 * valops.c (find_overload_match): Call do_cleanups on early exit
4747 path.
4748 * solib.c (solib_find): Call do_cleanups on early exit path.
4749
3bb47e8b
TT
47502011-06-30 Tom Tromey <tromey@redhat.com>
4751
4752 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4753 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4754 return paths. Defer final do_cleanups until last return.
4755 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4756 early return.
4757
4727bad3
TT
47582011-06-30 Tom Tromey <tromey@redhat.com>
4759
4760 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4761
bb361dbf
AB
47622011-06-30 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * MAINTAINERS (Write After Approval): Add myself to the list.
4765
e0d00bc7
JK
47662011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 Disable epilogue unwinders on recent GCCs.
4769 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4770 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4771 * dwarf2read.c (process_full_comp_unit): Initialize
4772 EPILOGUE_UNWIND_VALID.
4773 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4774 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4775 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4776
4632c0d0
JK
47772011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 Code cleanup - reformatting.
4780 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4781 (producer_is_gcc_ge_4): ... here, change the return value.
4782 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4783 interpretation.
4784
32019081
JK
47852011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4786
4787 Fix non-only rename list for Fortran modules import.
4788 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4789 cp_add_using_directive caller.
4790 (cp_add_using_directive): New parameter excludes, describe it. New
4791 variables ix and param. Compare if also excludes match. Allocate NEW
4792 with variable size, initialize EXCLUDES there.
4793 (cp_lookup_symbol_imports): New variable excludep, test
4794 current->EXCLUDES with it.
4795 * cp-support.h: Include vec.h.
4796 (struct using_direct): New field excludes, describe it.
4797 (DEF_VEC_P (const_char_ptr)): New.
4798 (cp_add_using_directive): New parameter excludes.
4799 * defs.h (const_char_ptr): New typedef.
4800 * dwarf2read.c (read_import_statement): New variables child_die,
4801 excludes and cleanups, read in excludes.
4802 (read_namespace): Adjust the cp_add_using_directive caller.
4803
70c622a3
JK
48042011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4805
4806 Code cleanup.
4807 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4808 negative comparisons.
4809
39c4d40a
TT
48102011-06-29 André Pönitz <andre.poenitz@nokia.com>
4811
4812 * mi/mi-main.c (mi_cmd_list_features): Emit
4813 breakpoint-notifications.
4814
3b2b8fea
TT
48152011-06-29 Tom Tromey <tromey@redhat.com>
4816
4817 PR fortran/10036:
4818 * valprint.h (generic_emit_char, generic_printstr): Declare.
4819 * valprint.c (wchar_printable, append_string_as_wide)
4820 (print_wchar): Move from c-lang.c.
4821 (generic_emit_char): New function; mostly taken from c_emit_char.
4822 (generic_printstr): New function; mostly taken from c_printstr.
4823 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4824 represented as arrays.
4825 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4826 type.
4827 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4828 identically to TYPE_CODE_INT.
4829 * f-lang.c (f_get_encoding): New function.
4830 (f_emit_char): Use generic_emit_char.
4831 (f_printchar): Replace comment.
4832 (f_printstr): Use generic_printstr.
4833 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4834 "character" types specially.
4835 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4836 for Fortran.
4837 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4838 Move to valprint.c
4839 (c_emit_char): Call generic_emit_char.
4840 (c_printstr): Call generic_printstr.
4841
168e6d44
GB
48422011-06-29 Gary Benson <gbenson@redhat.com>
4843
4844 * breakpoint.c (bpstat_what): Removed duplicated case.
4845
1c033f8c
TT
48462011-06-28 Tom Tromey <tromey@redhat.com>
4847
4848 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4849
5fe41fbf
TT
48502011-06-27 Tom Tromey <tromey@redhat.com>
4851
4852 * valops.c (find_overload_match): Call do_cleanups before early
4853 return.
4854 * top.c (execute_command): Call do_cleanups before early return.
4855 (command_loop): Likewise.
4856 * stack.c (backtrace_command): Make a null cleanup early. Don't
4857 conditionally call do_cleanups.
4858 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4859 TRY_CATCH.
4860 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4861 so cleanups are always run.
4862 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4863 * findcmd.c (parse_find_args): Call do_cleanups on early return
4864 path.
4865 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4866 Don't conditionally call do_cleanups.
4867 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4868 later.
4869
e26bd57d
EB
48702011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4871
4872 * MAINTAINERS (Write After Approval): Use default email address.
4873
6c3097fc
JB
48742011-06-27 Joel Brobecker <brobecker@adacore.com>
4875
4876 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4877
369c397b
JB
48782011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4879
4880 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4881 saved_regs_mask and copied_regs_mask fields.
4882 (sparc_record_save_insn): New prototype.
4883 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4884 (sparc_record_save_insn): New function.
4885 (sparc_analyze_prologue): Add head comment. Recognize store insns
4886 of call-saved registers. Use OFFSET consistently. Recognize flat
4887 frames and cache their settings.
4888 (sparc32_skip_prologue): Handle flat frames.
4889 (sparc_frame_cache): Add frame_offset to the base address.
4890 (sparc32_frame_cache): Adjust to new frame description.
4891 (sparc32_frame_prev_register): Likewise.
4892 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4893 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4894 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4895 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4896 frame by calling sparc_record_save_insn.
4897 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4898 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4899 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4900
b315ab21
TG
49012011-06-27 Tristan Gingold <gingold@adacore.com>
4902
4903 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4904 field by map_addr and map_len.
4905 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4906 (munmap_section_buffer): Likewise.
4907
ddd49eee
TT
49082011-06-24 Tom Tromey <tromey@redhat.com>
4909
4910 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4911 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4912 * python/python.c (gdbpy_parameter): Make 'arg' const.
4913 (execute_gdb_command): Likewise.
4914 (gdbpy_decode_line): Likewise. Copy it.
4915 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4916 (gdbpy_write): Make 'arg' const.
4917 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4918 const.
4919 (gdbpy_lookup_type): Likewise.
4920 * python/py-prettyprint.c (print_children): Make 'name' const.
4921 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4922 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4923 Py_ssize_t.
4924 * python/py-function.c (fnpy_init): Make 'name' const.
4925 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4926 (gdbpy_string_to_argv): Make 'input' const.
4927 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4928 it.
4929 * gdbtypes.h (lookup_typename): Update.
4930 * gdbtypes.c (lookup_typename): Make 'name' const.
4931 (lookup_struct): Likewise.
4932 (lookup_union): Likewise.
4933 (lookup_enum): Likewise.
4934
5998129b
TT
49352011-06-24 Tom Tromey <tromey@redhat.com>
4936
4937 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4938 gdb_thread_db.h. Move all common/ entries to be together.
4939 (TAGS): Don't depend on DEPFILES.
4940
6e586cc5
YQ
49412011-06-23 Yao Qi <yao@codesourcery.com>
4942
4943 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4944 * remote.c (remote_start_remote): ... here.
4945 * monitor.c (monitor_open): ... here.
4946
86c3c1fc
AB
49472011-06-23 Andrew Burgess <aburgess@broadcom.com>
4948
4949 * gdbtypes.c (append_composite_type_field_aligned): Fix
4950 calculation of bit position based on alignment.
4951
28010a5d
PA
49522011-06-22 Pedro Alves <pedro@codesourcery.com>
4953
4954 * breakpoint.c (bpstat_stop_status): Call the check_status
4955 breakpoint_ops method.
4956 (print_one_breakpoint_location): Also print the condition for Ada
4957 exception catchpoints.
4958 (allocate_bp_location): New, factored out from
4959 allocate_bp_location.
4960 (allocate_bp_location): Adjust. Call the owner breakpoint's
4961 allocate_location method, if there is one.
4962 (free_bp_location): Call the locations's dtor method, if there is
4963 one.
4964 (init_raw_breakpoint_without_location): New breakpoint_ops
4965 parameter. Use it.
4966 (set_raw_breakpoint_without_location): Adjust.
4967 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4968 (set_raw_breakpoint): Adjust.
4969 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4970 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4971 re_set and check_status methods.
4972 (init_catchpoint): Don't memset, initialize thread, addr_string
4973 and enable_state. Pass the ops down to init_raw_breakpoint.
4974 (install_catchpoint): Rename to ...
4975 (install_breakpoint): ... this, and make extern.
4976 (create_fork_vfork_event_catchpoint): Adjust.
4977 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4978 re_set and check_status methods.
4979 (create_syscall_event_catchpoint): Adjust.
4980 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4981 (masked_watchpoint_breakpoint_ops): Install NULL
4982 allocate_location, re_set and check_status methods.
4983 (catch_exec_command_1): Adjust.
4984 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4985 re_set and check_status methods.
4986 (create_ada_exception_breakpoint): Rename to ...
4987 (init_ada_exception_breakpoint): ... this. Add a struct
4988 breakpoint parameter, and delete the exp_string, cond_string and
4989 cond parameters. Use init_raw_breakpoint, and don't install or
4990 mention the breakpoint yet. Don't clear breakpoint fields that
4991 init_raw_breakpoint already clears.
4992 (re_set_breakpoint): Delete, split into ...
4993 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4994 functions.
4995 (breakpoint_re_set_one): Call the breakpoint's
4996 breakpoint_ops->re_set implementation, if there's one. Adjust.
4997 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4998 (struct bp_location_ops): New type.
4999 (struct bp_location): New field `ops'.
5000 (struct breakpoint_ops): New `allocate_location', `re_set' and
5001 `check_status' fields. Make `breakpoint_hit''s description match
5002 reality.
5003 (init_bp_location): Declare.
5004 (breakpoint_re_set_default): Declare.
5005 (create_ada_exception_breakpoint): Rename to ...
5006 (init_ada_exception_breakpoint): ... this. Add a struct
5007 breakpoint parameter, and delete the exp_string, cond_string and
5008 cond parameters.
5009 (install_breakpoint): Declare.
5010 * ada-lang.c: Include exceptions.h.
5011 <Ada exceptions description>: Update.
5012 (struct ada_catchpoint_location): New type.
5013 (ada_catchpoint_location_dtor): New function.
5014 (ada_catchpoint_location_ops): New global.
5015 (ada_catchpoint): New type.
5016 (create_excep_cond_exprs): New function.
5017 (dtor_exception, allocate_location_exception, re_set_exception)
5018 (should_stop_exception, check_status_exception): New functions.
5019 (print_one_exception, print_mention_exception)
5020 (print_recreate_exception): Adjust.
5021 (dtor_catch_exception, allocate_location_catch_exception)
5022 (re_set_catch_exception, check_status_catch_exception): New
5023 functions.
5024 (catch_exception_breakpoint_ops): Install them.
5025 (dtor_catch_exception_unhandled)
5026 (allocate_location_catch_exception_unhandled)
5027 (re_set_catch_exception_unhandled)
5028 (check_status_catch_exception_unhandled): New functions.
5029 (catch_exception_unhandled_breakpoint_ops): Install them.
5030 (dtor_catch_assert, allocate_location_catch_assert)
5031 (re_set_catch_assert, check_status_catch_assert): New functions.
5032 (catch_assert_breakpoint_ops): Install them.
5033 (ada_exception_catchpoint_p): Delete.
5034 (catch_ada_exception_command_split)
5035 (ada_exception_catchpoint_cond_string): Rename exp_string
5036 parameter to excep_string. Adjust.
5037 (ada_parse_catchpoint_condition): Delete.
5038 (ada_exception_sal): Rename the exp_string parameter to
5039 excep_string. Delete the cond_string and cond parameters.
5040 Adjust.
5041 (ada_decode_exception_location): Rename the exp_string parameter
5042 to excep_string. Delete the cond_string and cond parameters.
5043 Adjust.
5044 (create_ada_exception_catchpoint): New function.
5045 (catch_ada_exception_command, ada_decode_assert_location)
5046 (catch_assert_command): Adjust.
5047 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5048
9ac4176b
PA
50492011-06-22 Pedro Alves <pedro@codesourcery.com>
5050
5051 * ada-lang.c: Include arch-utils.h.
5052 (ada_decode_exception_location): Make static.
5053 (catch_ada_exception_command): Moved here from breakpoint.c.
5054 (ada_decode_assert_location): Make static.
5055 (catch_assert_command): Moved here from breakpoint.c.
5056 (_initialize_ada_lang): Install the exception and assert
5057 catchpoint commands here.
5058 * ada-lang.h (ada_decode_exception_location)
5059 (ada_decode_assert_location): Delete declarations.
5060 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5061 breakpoint.h.
5062 (create_ada_exception_breakpoint): Make extern.
5063 (catch_ada_exception_command, catch_assert_command): Moved to
5064 ada-lang.c.
5065 (add_catch_command): Make extern.
5066 (_initilize_breakpoint): Don't install the exception and assert
5067 catchpoint commands here.
5068 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5069 breakpoint.c
5070 (add_catch_command, create_ada_exception_breakpoint): Declare.
5071
c56053d2
PA
50722011-06-22 Pedro Alves <pedro@codesourcery.com>
5073
5074 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5075 the breakpoint to the breakpoint chain here.
5076 (set_raw_breakpoint_without_location): Add the breakpoint to the
5077 breakpoint chain here.
5078 (init_raw_breakpoint): Adjust comments.
5079 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5080 here.
5081 (init_catchpoint): Don't set the catchpoint's breakpoint number
5082 here.
5083 (install_catchpoint): New function.
5084 (create_fork_vfork_event_catchpoint)
5085 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5086 use install_catchpoint.
5087
d2f3fc74
PA
50882011-06-22 Pedro Alves <pedro@codesourcery.com>
5089
5090 * breakpoint.c (create_catchpoint_without_mention)
5091 (create_catchpoint): Delete.
5092
b4d90040
PA
50932011-06-22 Pedro Alves <pedro@codesourcery.com>
5094
5095 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5096 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5097 reference to exec_pathname.
5098 (struct exec_catchpoint): New type.
5099 (dtor_catch_exec): New function.
5100 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5101 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5102 (catch_exec_command_1): Adjust to use init_catchpoint.
5103 (delete_breakpoint): Remove reference to exec_pathname.
5104
be5c67c1
PA
51052011-06-22 Pedro Alves <pedro@codesourcery.com>
5106
5107 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5108 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5109 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5110 reference to syscalls_to_be_caught.
5111 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5112 NULL `dtor'.
5113 (struct syscall_catchpoint): New type.
5114 (dtor_catch_syscall): New function.
5115 (insert_catch_syscall, remove_catch_syscall)
5116 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5117 (print_recreate_catch_syscall): Adjust.
5118 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5119 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5120 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5121 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5122 (masked_watchpoint_breakpoint_ops)
5123 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5124 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5125 there is one. Remove references to syscalls_to_be_caught.
5126 (catching_syscall_number): Adjust.
5127 * ada-lang.c (catch_exception_breakpoint_ops)
5128 (catch_exception_unhandled_breakpoint_ops)
5129 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5130
e29a4733
PA
51312011-06-22 Pedro Alves <pedro@codesourcery.com>
5132
5133 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5134 field.
5135 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5136 reference to forked_inferior_pid.
5137 (struct fork_catchpoint): New type.
5138 (breakpoint_hit_catch_fork, print_it_catch_fork)
5139 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5140 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5141 (create_fork_vfork_event_catchpoint): Adjust to use
5142 init_catchpoint.
5143
346774a9
PA
51442011-06-22 Pedro Alves <pedro@codesourcery.com>
5145
5146 * breakpoint.c (add_to_breakpoint_chain)
5147 (init_raw_breakpoint_without_location): New functions, factored
5148 out from ...
5149 (set_raw_breakpoint_without_location): ... this one.
5150 (init_raw_breakpoint): New function, factored out from
5151 set_raw_breakpoint and adjusted to use
5152 init_raw_breakpoint_without_location.
5153 (set_raw_breakpoint): Adjust.
5154 (init_catchpoint): New function, factored out from
5155 create_catchpoint_without_mention and adjusted to use
5156 init_raw_breakpoint.
5157 (create_catchpoint_without_mention): Adjust.
5158
c38c4bc5
TT
51592011-06-22 Tom Tromey <tromey@redhat.com>
5160
5161 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5162 argument of 0 specially.
5163
b138ce37
YQ
51642011-06-22 Yao Qi <yao@codesourcery.com>
5165
5166 * infrun.c (handle_inferior_event): Remove write-only local variable
5167 `sw_single_step_trap_p'.
5168
03de6823
TT
51692011-06-20 Tom Tromey <tromey@redhat.com>
5170
5171 * symtab.c (lookup_language_this): End loop if block is NULL.
5172
66a17cb6
TT
51732011-06-17 Tom Tromey <tromey@redhat.com>
5174
5175 * valops.c (value_of_this): Use lookup_language_this.
5176 * symtab.h (lookup_language_this): Declare.
5177 * symtab.c (lookup_language_this): New function.
5178 (lookup_symbol_aux): Use lookup_language_this.
5179 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5180
7518bff5
TT
51812011-06-17 Tom Tromey <tromey@redhat.com>
5182
5183 * value.h (value_of_this): Update.
5184 (value_of_local): Remove.
5185 * valops.c (value_of_this): Rename from value_of_local. Change
5186 parameters.
5187 * p-exp.y (exp): Update.
5188 (variable): Likewise.
5189 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5190
aee28ec6
TT
51912011-06-17 Tom Tromey <tromey@redhat.com>
5192
5193 * valops.c (value_of_local): Complain if NAME is NULL.
5194 * std-operator.def (OP_OBJC_SELF): Remove.
5195 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5196 * objc-exp.y (name_not_typename): Use OP_THIS.
5197 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5198 name for "this".
5199 <OP_OBJC_SELF>: Remove.
5200 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5201
eed8f803
TG
52022011-06-16 Tristan Gingold <gingold@adacore.com>
5203
5204 * python/py-events.h (gdb_py_events): Make it extern.
5205 * python/py-evtregistry.c (gdb_py_events): Declare.
5206
864ac8a7
HZ
52072011-06-16 Hui Zhu <teawater@gmail.com>
5208
5209 * remote.c (remote_trace_set_readonly_regions): Add check for
5210 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5211 output warning.
5212
ef7e8358
UW
52132011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5214
5215 * arm-linux-tdep.c: Include "auxv.h".
5216 (AT_HWCAP): Define.
5217 (ARM_LINUX_SIZEOF_VFP): Define.
5218 (arm_linux_supply_vfp): New function.
5219 (arm_linux_collect_vfp): Likewise.
5220 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5221 (arm_linux_fpa_regset_sections): New variable.
5222 (arm_linux_vfp_regset_sections): Likewise.
5223 (arm_linux_core_read_description): New function.
5224 (arm_linux_init_abi): Install arm_linux_core_read_description and
5225 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5226 appropriate for the architecture.
5227 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5228 (tdesc_arm_with_m): Declare.
5229 (tdesc_arm_with_iwmmxt): Likewise.
5230 (tdesc_arm_with_vfpv2): Likewise.
5231 (tdesc_arm_with_vfpv3): Likewise.
5232 (tdesc_arm_with_neon): Likewise.
5233 * arm-linux-nat.c: Move features/*.c includes ...
5234 * arm-tdep.c: ... here.
5235 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5236 target description data structures ...
5237 * arm-tdep.c (_initialize_arm_tdep): ... here.
5238 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5239 HWCAP_VFPv3D16): Move definitions ...
5240 * arm-linux-tdep.h: ... here.
5241
c2fa21f1
HZ
52422011-06-15 Hui Zhu <teawater@gmail.com>
5243
5244 * remote.c (remote_trace_set_readonly_regions): Add a check for
5245 target_buf_size.
5246
dd707e8e
TT
52472011-06-14 Tom Tromey <tromey@redhat.com>
5248
5249 * coffread.c (coffread_objfile): Rename from current_objfile.
5250 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5251 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5252
86cc0029
TT
52532011-06-14 Tom Tromey <tromey@redhat.com>
5254
5255 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5256 (class_symtab): Remove.
5257 (jv_dynamics_progspace_key): New global.
5258 (jv_per_objfile_free): Reset program space data. Update assert.
5259 Don't clear globals.
5260 (get_dynamics_objfile): Use and set program space data.
5261 (get_java_class_symtab): Use get_dynamics_objfile.
5262 (add_class_symbol): Likewise.
5263 (java_link_class_type): Likewise.
5264 (java_object_type, jv_clear_object_type, set_java_object_type):
5265 Remove.
5266 (get_java_object_type): Update. Don't cache result.
5267 (is_object_type): Don't call set_java_object_type.
5268 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5269 initialize jv_dynamics_progspace_key.
5270
91a81f69
TT
52712011-06-14 Tom Tromey <tromey@redhat.com>
5272
5273 * symtab.h (current_objfile): Don't declare.
5274 * objfiles.h (current_objfile): Don't declare.
5275 * objfiles.c (current_objfile): Remove.
5276 * mdebugread.c (current_objfile): New file-scope global.
5277 * dbxread.c (current_objfile): New file-scope global.
5278 * coffread.c (current_objfile): New file-scope global.
5279
dc7eb48e
PA
52802011-06-13 Pedro Alves <pedro@codesourcery.com>
5281
5282 * top.h (line): Rename to ...
5283 (saved_command_line): ... this.
5284 (linesize): Rename to ...
5285 (saved_command_line_size): ... this.
5286 * top.c (line): Rename to ...
5287 (saved_command_line): ... this.
5288 (linesize): Rename to ...
5289 (saved_command_line_size): ... this.
5290 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5291 * event-top.c (command_line_handler): Adjust.
5292 * main.c (captured_main): Adjust.
5293
0d6c2135
MK
52942011-06-12 Mark Kettenis <kettenis@gnu.org>
5295
5296 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5297 get_frame_func instead of get_frame_pc to determine the code
5298 address used to construct the frame ID.
5299 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5300 (i386_epilogue_frame_this_id): Likewise.
5301 (i386_epilogue_frame_prev_register): New function.
5302 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5303 (i386_stack_tramp_frame_sniffer): Fix coding style.
5304 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5305 (i386_gdbarch_init): Fix comments.
5306
8bbdd3f4
MK
53072011-06-12 Mark Kettenis <kettenis@gnu.org>
5308
5309 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5310 instruction when walking back through the instruction stream.
5311
533a737e
JK
53122011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5315 fullname parameters order.
5316
44b13c5a
JK
53172011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5318
5319 Code cleanup.
5320 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5321 for fun.
5322 * psymtab.c (map_symbol_filenames_psymtab)
5323 (map_partial_symbol_filenames): Likewise.
5324 * psymtab.h: Include symfile.h.
5325 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5326 * symfile.h (symbol_filename_ftype): New.
5327 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5328 map_symbol_filenames, clarify more the naming in comment.
5329
0b5574da
DE
53302011-06-07 Doug Evans <dje@google.com>
5331
5332 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5333 Look for ../../gdb, for fullname.exp.
0b5574da 5334
5be4dfca
JK
53352011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5336 Pedro Alves <pedro@codesourcery.com>
5337
5338 * cli/cli-cmds.c (shell_escape): Use waitpid.
5339 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5340
316a8b21
TG
53412011-06-07 Tristan Gingold <gingold@adacore.com>
5342
5343 * xcoffread.c (dwarf2_xcoff_names): New variable.
5344 (aix_process_linenos): Add a guard.
5345 (xcoff_symfile_finish): Free dwarf2.
5346 (xcoff_initial_scan): Add dwarf2 support.
5347
3dd5b83d
PA
53482011-06-06 Pedro Alves <pedro@codesourcery.com>
5349
5350 * infcall.c (run_inferior_call): Don't mask async. Instead force
5351 a synchronous wait, if the target can async.
5352
5353 * target.h (struct target_ops): Delete to_async_mask.
5354 (target_async_mask): Delete.
5355 * target.c (update_current_target): Delete references to to_async_mask.
5356 * linux-nat.c (linux_nat_async_mask_value): Delete.
5357 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5358 to linux_nat_async_mask_value.
5359 (linux_nat_async_mask): Delete.
5360 (linux_nat_async, linux_nat_close): Remove references to
5361 linux_nat_async_mask_value.
5362 * record.c (record_async_mask_value): Delete.
5363 (record_async): Remove references to record_async_mask_value.
5364 (record_async_mask): Delete.
5365 (record_can_async_p, record_is_async_p): Remove references to
5366 record_async_mask_value.
5367 (init_record_ops, init_record_core_ops): Remove references to
5368 record_async_mask.
5369 * remote.c (remote_async_mask_value): Delete.
5370 (init_remote_ops): Remove reference to remote_async_mask.
5371 (remote_can_async_p, remote_is_async_p): Remove references to
5372 remote_async_mask_value.
5373 (remote_async): Remove references to remote_async_mask_value.
5374 (remote_async_mask): Delete.
5375
5376 * infrun.c (fetch_inferior_event): Don't claim registers changed
5377 if the current thread is already not executing.
5378
64b9b334
JB
53792011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5380
5381 From Stephen Kitt <steve@sk2.org>
5382 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5383 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5384
325663dc
JB
53852011-06-03 Joel Brobecker <brobecker@adacore.com>
5386
5387 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5388 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5389
8cf64490
TT
53902011-06-03 Tom Tromey <tromey@redhat.com>
5391
5392 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5393 code fields.
5394 * python/py-exitedevent.c (create_exited_event_object): Change
5395 type of 'exit_code'. Optionally add exit_code attribute.
5396 (emit_exited_event): Change type of 'exit_code'.
5397 * python/py-event.h (emit_exited_event): Update.
5398 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5399 * infrun.c (handle_inferior_event): Set exit code fields on
5400 inferior.
5401 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5402 fields.
5403 * inferior.c (exit_inferior_1): Initialize new fields.
5404
8ddd9a20
TT
54052011-06-03 Tom Tromey <tromey@redhat.com>
5406
5407 * dwarf2expr.c (get_signed_type): New function.
5408 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5409
8dfd1e6d
KS
54102011-06-02 Keith Seitz <keiths@redhat.com>
5411
5412 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5413
65fdb766
PA
54142011-06-02 Pedro Alves <pedro@codesourcery.com>
5415
5416 * top.h (simplified_command_loop): Delete declaration.
5417
f4b8c29b
MF
54182011-06-01 Mike Frysinger <vapier@gentoo.org>
5419
5420 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5421 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5422
1706c199
YQ
54232011-06-01 Yao Qi <yao@codesourcery.com>
5424
5425 * objfiles.h (obj_section_addr): Update reference to objfile from
5426 `abfd' to `obfd'.
5427 (obj_section_endaddr): Likewise.
5428
d19cd713 54292011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5430
5431 * MAINTAINERS: Update my email address and affiliation. Also
5432 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5433
e8eb7bc5
KS
54342010-05-31 Keith Seitz <keiths@redhat.com>
5435
5436 PR c++/12750
5437 * linespec.c (get_search_block): New function.
5438 (find_methods): Add FILE_SYMTATB parameter and use it and
5439 get_search_block to pass an appropriate block to
5440 lookup_symbol_in_namespace.
5441 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5442 Check if *ARGPTR starts with a filename first.
5443 If it does, call locate_first_half again to locate the next
5444 "first half" of the linespec.
5445 Pass FILE_SYMTATB to decode_objc and decode_compound.
5446 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5447 (locate_first_half): Stop on the first colon seen.
5448 (decode_compound): Add FILE_SYMTAB parameter.
5449 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5450 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5451 get_search_block with lookup_symbol.
5452 (find_method): Add FILE_SYMTAB parameter and pass it to
5453 find_methods.
5454 (decode_objc): Use get_search_block.
5455
2b1dbab0
KS
54562010-05-31 Keith Seitz <keiths@redhat.com>
5457
5458 PR symtab/12704
5459 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5460 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5461 and CP_ANONYMOUS_NAMESPACE_LEN.
5462 (cp_is_anonymous): Likewise.
5463 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5464 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5465 * dwarf2read.c (namespace_name): Likewise.
5466 (fixup_partial_die): Likewise.
5467 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5468 seen in the input, keep it.
5469
6d549500
PA
54702011-05-30 Pedro Alves <pedro@codesourcery.com>
5471
5472 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5473 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5474 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5475 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5476 * remote.c (_initialize_remote): Register
5477 async_remote_interrupt_twice directly as
5478 sigint_remote_twice_token event.
5479
395bff70
PA
54802011-05-30 Pedro Alves <pedro@codesourcery.com>
5481
5482 * target.h (enum inferior_event_type): Delete INF_ERROR.
5483 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5484
97224164
PA
54852011-05-30 Pedro Alves <pedro@codesourcery.com>
5486
5487 * interps.c (interp_set): Don't cancel continuations.
5488
07e78767
JK
54892011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5490
5491 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5492
fa4cd53f
PA
54932011-05-30 Pedro Alves <pedro@codesourcery.com>
5494
5495 * continuations.h (continuation_ftype): Add `err' parameter.
5496 Document parameters.
5497 (do_all_continuations, do_all_continuations_thread)
5498 (do_all_intermediate_continuations)
5499 (do_all_intermediate_continuations_thread)
5500 (do_all_inferior_continuations): Add `err' parameter.
5501 * continuations.c (do_my_continuations_1, do_my_continuations)
5502 (do_all_inferior_continuations, do_all_continuations_ptid)
5503 (do_all_continuations_thread_callback)
5504 (do_all_continuations_thread, do_all_continuations)
5505 (do_all_intermediate_continuations_thread_callback)
5506 (do_all_intermediate_continuations_thread)
5507 (do_all_intermediate_continuations): Add `err' parameter, and pass
5508 it down all the way to the continuations proper.
5509 * inf-loop.c (inferior_event_handler): If fetching an inferior
5510 event throws an error, don't pop the target, and still call the
5511 continuations, but with `err' set. Adjust all other continuation
5512 calls.
5513 * breakpoint.c (until_break_command_continuation): Add `err'
5514 parameter.
5515 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5516 issue another step if `err' is set.
5517 (struct until_next_continuation_args): New.
5518 (until_next_continuation): Add `err' parameter. Adjust.
5519 (until_next_command): Adjust.
5520 (struct finish_command_continuation_args): Add `thread' field.
5521 (finish_command_continuation): Add `err' parameter. Handle it.
5522 (finish_forward): Adjust.
5523 (attach_command_continuation): Add `err' parameter. Handle it.
5524 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5525 cancel the continuations.
5526 * interps.c (interp_set): Adjust to cancel the continuations.
5527 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5528 continuations rather than discarding.
5529 (free_thread): Don't clear thread inferior resources here.
5530 (delete_thread_1): Do it here instead. And do it before removing
5531 the thread from the threads list. Tag the thread as exited before
5532 clearing thread inferior resources.
5533
c2949be0
JB
55342011-05-30 Joel Brobecker <brobecker@adacore.com>
5535
5536 * infcall.c (call_function_by_hand): Rephrase error message.
5537
619cebe8
PA
55382011-05-27 Pedro Alves <pedro@codesourcery.com>
5539
5540 * defs.h (struct thread_info, struct inferior): Delete forward
5541 declarations.
5542 * breakpoint.h (struct thread_info): New forward declaration.
5543 * observer.sh (struct inferior): New forward declaration.
5544 * python/python-internal.h (struct inferior): New forward
5545 declaration.
5546
be34f849
PA
55472011-05-27 Pedro Alves <pedro@codesourcery.com>
5548
5549 * defs.h (struct continuation, continuation_ftype)
5550 (continuation_free_arg_ftype, add_continuation)
5551 (do_all_continuations, do_all_continuations_thread)
5552 (discard_all_continuations, discard_all_continuations_thread)
5553 (add_intermediate_continuation, do_all_intermediate_continuations)
5554 (do_all_intermediate_continuations_thread)
5555 (discard_all_intermediate_continuations)
5556 (discard_all_intermediate_continuations_thread)
5557 (add_inferior_continuation, do_all_inferior_continuations)
5558 (discard_all_inferior_continuations): Move to ...
5559 * continuations.h: ... this new file.
5560 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5561 infcmd.c, inferior.c, infrun.c, interps.c: Include
5562 continuations.h.
5563
432b4d03
JK
55642011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5565 Doug Evans <dje@google.com>
5566
5567 Fix PR 10970, PR 12702.
5568 * linux-nat.c (linux_lwp_is_zombie): New function.
5569 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5570 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5571
b0f260d6
PA
55722011-05-27 Pedro Alves <pedro@codesourcery.com>
5573
5574 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5575 typedefs.
5576 (add_continuation, add_intermediate_continuation)
5577 (add_inferior_continuation): Use them.
5578 * continuations.c (struct continuation): Use them.
5579 (make_continuation_ftype): Delete.
5580 (make_continuation, add_inferior_continuation, add_continuation)
5581 (add_intermediate_continuation): Use continuation_ftype and
5582 continuation_free_arg_ftype. Rename parameters to shorter names.
5583
af1e9a32
PA
55842011-05-27 Pedro Alves <pedro@codesourcery.com>
5585
5586 * continuations.c (make_continuation): Make it return void.
5587 (do_my_continuations): Rename to ...
5588 (do_my_continuations_1): ... this. Remove old_chain parameter and
5589 adjust.
5590 (do_my_continuations): New.
5591 (discard_my_continuations): Rename to ...
5592 (discard_my_continuations_1): ... this. Remove old_chain
5593 parameter and adjust.
5594 (discard_my_continuations): New.
5595 (add_inferior_continuation): Simplify.
5596 (do_all_inferior_continuations): Reimplement on top
5597 do_my_continuations.
5598 (discard_all_inferior_continuations): Simplify.
5599 (add_continuation): Simplify.
5600 (do_all_continuations_ptid): Simplify.
5601 (discard_all_continuations_thread_callback): Simplify.
5602 (add_intermediate_continuation): Simplify.
5603 (discard_all_intermediate_continuations_thread_callback):
5604 Simplify.
5605
50c0c017
PA
56062011-05-27 Pedro Alves <pedro@codesourcery.com>
5607
5608 * utils.c (struct continuation, add_continuation)
5609 (add_inferior_continuation)
5610 (do_all_inferior_continuations, discard_all_inferior_continuations)
5611 (restore_thread_cleanup, do_all_continuations_ptid)
5612 (do_all_continuations_thread_callback)
5613 (do_all_continuations_thread, do_all_continuations)
5614 (discard_all_continuations_thread_callback)
5615 (discard_all_continuations_thread, discard_all_continuations)
5616 (add_intermediate_continuation)
5617 (do_all_intermediate_continuations_thread_callback)
5618 (do_all_intermediate_continuations_thread)
5619 (do_all_intermediate_continuations)
5620 (discard_all_intermediate_continuations_thread_callback)
5621 (discard_all_intermediate_continuations_thread)
5622 (discard_all_intermediate_continuations): Move to ...
5623 * continuations.c: ... this new file, and adjust to no longer
5624 implement continuations on top of cleanups.
5625 * Makefile.in (SFILES): Add continuations.c.
5626 (COMMON_OBS): Add continuations.o.
5627
d8b34453
PA
56282011-05-26 Pedro Alves <pedro@codesourcery.com>
5629
5630 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5631 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5632 Internal error on invalid values.
5633 * reverse.c: Don't handle EXEC_ERROR.
5634 * mi/mi-main.c: Don't handle EXEC_ERROR.
5635
32231432
PA
56362011-05-26 Pedro Alves <pedro@codesourcery.com>
5637
5638 * record.c: Include event-loop.h, inf-loop.h.
5639 (record_beneath_to_async): New global.
5640 (tmp_to_async): New global.
5641 (record_async_inferior_event_token): New global.
5642 (record_open_1): Don't error out if async is enabled.
5643 (record_open): Handle to_async. Create an async event source in
5644 the event loop.
5645 (record_close): Delete the async event source.
5646 (record_resumed): New global.
5647 (record_execution_dir): New global.
5648 (record_resume, record_core_resume): Set them. Register the
5649 target on the event loop.
5650 (record_wait): Rename to ...
5651 (record_wait_1): ... this. Add more debug output. Handle
5652 TARGET_WNOHANG, and the target beneath returning
5653 TARGET_WAITKIND_IGNORE.
5654 (record_wait): Reimplement on top of record_wait_1.
5655 (record_async_mask_value): New global.
5656 (record_async, record_async_mask, record_can_async_p)
5657 (record_is_async_p, record_execution_direction): New functions.
5658 (init_record_ops, init_record_core_ops): Install new methods.
5659 * infrun.c (fetch_inferior_event): Temporarily switch the global
5660 execution direction to the direction the target was going.
5661 (execution_direction): Change type to int.
5662 * target.c (default_execution_direction): New function.
5663 (update_current_target): Inherit and de_fault
5664 to_execution_direction.
5665 * target.h (struct target_ops) <to_execution_direction>: New
5666 field.
5667 (target_execution_direction): New macro.
5668 * inferior.h (execution_direction): Change type to int.
5669
949dc678
PA
56702011-05-26 Pedro Alves <pedro@codesourcery.com>
5671
5672 * infcall.c (call_function_by_hand): Don't allow calling functions
5673 in reverse execution mode.
5674
c13bd2b5
PA
56752011-05-26 Pedro Alves <pedro@codesourcery.com>
5676
5677 * infcmd.c (finish_command): Allow async finish in reverse.
5678
6938fd34
YQ
56792011-05-26 Yao Qi <yao@codesourcery.com>
5680
5681 * gdb_thread_db.h: Delete. Move to ...
5682 * common/gdb_thread_db.h: ... here.
5683
9da8c2a0
PA
56842011-05-26 Pedro Alves <pedro@codesourcery.com>
5685
5686 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5687 function's entry point instead of a manually managed momentary
5688 breakpoint, and only ever issue one proceed call.
5689 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5690 doing a reverse-finish, switch to stepi mode, to do another step.
5691 (insert_step_resume_breakpoint_at_sal): Make public.
5692 (normal_stop): No need to save function value return registers if
5693 going reverse.
5694 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5695
2c03e5be
PA
56962011-05-26 Pedro Alves <pedro@codesourcery.com>
5697
5698 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5699 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5700 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5701 at the end.
5702 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5703 step-resume breakpoints.
5704 (print_it_typical): Handle bp_hp_step_resume.
5705 (bpstat_what): Ditto.
5706 (bptype_string): Ditto.
5707 (print_one_breakpoint_location): Ditto.
5708 (allocate_bp_location): Ditto.
5709 (mention): Ditto.
5710 (breakpoint_re_set_one): Ditto.
5711 * infrun.c (handle_inferior_event): Adjust. Split
5712 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5713 BPSTAT_WHAT_HP_STEP_RESUME.
5714 (insert_step_resume_breakpoint_at_sal): Rename to ...
5715 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5716 parameter. Handle it.
5717 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5718 insert_step_resume_breakpoint_at_sal_1.
5719 (insert_step_resume_breakpoint_at_frame): Rename to ...
5720 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5721 set a high-priority step-resume breakpoint.
5722 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5723 (insert_step_resume_breakpoint_at_caller): Ditto.
5724
51be5b68
PA
57252011-05-26 Pedro Alves <pedro@codesourcery.com>
5726
5727 * breakpoint.c (iterate_over_related_breakpoints): New.
5728 (do_map_delete_breakpoint): New.
5729 (delete_command): Pass do_map_delete_breakpoint to
5730 map_breakpoint_numbers.
5731 (do_disable_breakpoint): New.
5732 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5733 breakpoints.
5734 (do_enable_breakpoint): Rename to ...
5735 (enable_breakpoint_disp): ... this.
5736 (enable_breakpoint): Adjust.
5737 (do_enable_breakpoint): New.
5738 (enable_once_breakpoint): Delete.
5739 (do_map_enable_breakpoint): New.
5740 (do_map_enable_once_breakpoint): New.
5741 (enable_once_command, enable_delete_command)
5742 (delete_trace_command): Iterate over the breakpoint's related
5743 breakpoints.
5744
4a1be8d2
PA
57452011-05-26 Pedro Alves <pedro@codesourcery.com>
5746
5747 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5748 for ALPHA_ZERO_REGNUM.
5749 (alpha_supply_int_regs): Explicitly supply zero as the value for
5750 ALPHA_ZERO_REGNUM in the register cache.
5751 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5752
59d70315
YQ
57532011-05-26 Yao Qi <yao@codesourcery.com>
5754
5755 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5756
251d32d9
TG
57572011-05-26 Tristan Gingold <gingold@adacore.com>
5758
5759 * symfile.h (struct dwarf2_section_names): New type.
5760 (struct dwarf2_debug_sections): New type.
5761 (dwarf2_has_info): Add parameter.
5762 * dwarf2read.c (dwarf2_elf_names): New variable.
5763 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5764 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5765 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5766 (dwarf2_has_info): Add names parameter. Pass names
5767 to dwarf2_locate_sections.
5768 (section_is_p): Rewrite using the names parameter.
5769 (dwarf2_locate_sections): Use section names from the names parameter.
5770 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5771 * elfread.c (read_psyms): Ditto.
5772 * machoread.c (macho_symfile_read): Ditto.
5773
652c71b4
AS
57742011-05-25 Andreas Schwab <schwab@redhat.com>
5775
5776 PR gdb/8677
5777 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5778
f17170e5
KS
57792011-05-24 Keith Seitz <keiths@redhat.com>
5780
5781 PR breakpoint/12803
5782 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5783 (decode_compound): Unconditionally call keep_name_info.
5784
cdac0397
PA
57852011-05-24 Pedro Alves <pedro@codesourcery.com>
5786
5787 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5788 scope, clear its command list.
5789 (map_breakpoint_numbers): Don't walk the related breakpoints list
5790 of each breakpoint.
5791
91d4fe3f
TT
57922011-05-24 Tom Tromey <tromey@redhat.com>
5793
5794 * MAINTAINERS: Move Jim Blandy to past maintainers.
5795
3017a003
TG
57962011-05-24 Tristan Gingold <gingold@adacore.com>
5797
5798 * symfile.h (enum dwarf2_section_enum): New type.
5799 (dwarf2_get_section_info): New prototype.
5800 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5801 section_name by sect. Use a switch to select the info.
5802 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5803 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5804
c91c8c16
PA
58052011-05-24 Pedro Alves <pedro@codesourcery.com>
5806
5807 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5808 shared library event breakpoint if there's no execution.
5809
77bc418a
TJB
58102011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5811
5812 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5813 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5814
c50491a7
TT
58152011-05-23 Tom Tromey <tromey@redhat.com>
5816
5817 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5818 NULL.
5819
6d64e6d4
DE
58202011-05-23 Doug Evans <dje@google.com>
5821
5822 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5823 entry for RuntimeError to doc string.
5824
2067c8d4
JG
58252011-05-23 Jerome Guitton <guitton@adacore.com>
5826
5827 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5828 sequence for probing loops.
5829
b136cd05
PA
58302011-05-23 Pedro Alves <pedro@codesourcery.com>
5831
5832 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5833 comment.
5834
22e74ef9
MK
58352011-05-21 Mark Kettenis <kettenis@gnu.org>
5836
5837 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5838 zero as the value for %g0 in the register cache.
5839 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5840 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5841
842951eb
PA
58422011-05-20 Pedro Alves <pedro@codesourcery.com>
5843
5844 * infrun.c (proceed): Set previous_inferior_ptid here.
5845 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5846 inferior_ptid, not null_ptid.
5847 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5848 (fetch_inferior_event): Nor here.
5849
46cf51e6
PA
58502011-05-20 Pedro Alves <pedro@codesourcery.com>
5851
5852 * inf-loop.c (inferior_event_handler): Only output a message if
5853 verbose.
5854
29ef4c46
LM
58552011-05-20 Luis Machado <lgustavo@codesourcery.com>
5856
5857 * MAINTAINERS: Update my e-mail address.
5858
f148b27e
PA
58592011-05-20 Pedro Alves <pedro@codesourcery.com>
5860
5861 * infrun.c (proceed): Switch the inferior event loop to
5862 INF_EXEC_COMPLETE if the target refused to resume from a
5863 vfork/fork.
5864
09cee04b
PA
58652011-05-20 Pedro Alves <pedro@codesourcery.com>
5866
5867 * infcmd.c: Include "inf-loop.h".
5868 (step_once): When stepping into an inline subroutine, pretend the
5869 target has run. If the target can async, switch the inferior
5870 event loop to INF_EXEC_COMPLETE.
5871 * inferior.h (user_visible_resume_ptid): Declare.
5872 * infrun.c (user_visible_resume_ptid): New function, factored out
5873 from `resume'.
5874 (resume): Use it.
5875 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5876 that the current thread is running. Merge async and sync
5877 branches.
5878
751b8ce1
PA
58792011-05-20 Pedro Alves <pedro@codesourcery.com>
5880
5881 * infcmd.c (step_1): Simplify synchronous case.
5882
e93a69ed
PA
58832011-05-20 Pedro Alves <pedro@codesourcery.com>
5884
5885 * tracepoint.c: Include exceptions.h.
5886 (TFILE_PID): Move higher in file.
5887 (tfile_open): Delay pushing the tfile target until we're assured
5888 the tfile header is present in the file. Wrap reading the initial
5889 newline-terminated lines in TRY_CATCH. Pop the target if the
5890 initial setup failed. Add the tfile's thread immediately
5891 aftwards, before any non-essential setup. Don't skip
5892 post_create_inferior if there are no traceframes present in the
5893 file.
5894 (tfile_close): Remove redundant check for null before xfree call.
5895 (tfile_thread_alive): New function.
5896 (init_tfile_ops): Register it as to_thread_alive callback.
5897
6823e2b1
PA
58982011-05-20 Pedro Alves <pedro@codesourcery.com>
5899
5900 * tracepoint.c (tfile_open): Delete #if 0'd code.
5901
b3c8eb43
JK
59022011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5903
5904 Fix -readnow for -gdwarf-4 unused type units.
5905 * dwarf2read.c (struct signatured_type): Remove the field offset.
5906 (create_signatured_type_table_from_index): Remove its initialization.
5907 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5908 instead. Add a complaint call.
5909 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5910 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5911 (lookup_signatured_type_at_offset, read_signatured_type)
5912 (write_one_signatured_type): Update the field for per_cu.
5913
310afc76
TT
59142011-05-19 Tom Tromey <tromey@redhat.com>
5915
5916 * python/py-inferior.c (python_inferior_exit): Use
5917 target_gdbarch.
5918 (python_on_resume): Likewise.
5919
cf6c5ffb
TT
59202011-05-19 Matt Rice <ratmice@gmail.com>
5921
5922 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5923
fb80a3c5
HZ
59242011-05-19 Hui Zhu <teawater@gmail.com>
5925
5926 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5927
3672b1be
HZ
59282011-05-19 Hui Zhu <teawater@gmail.com>
5929
5930 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5931
ff355380
TT
59322011-05-18 Tom Tromey <tromey@redhat.com>
5933
5934 * dwarf2read.c (dwarf2_add_field): Constify.
5935 * value.c (value_static_field): Constify.
5936 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5937 Now const.
5938 * ax-gdb.c (gen_static_field): Constify
5939
ed731959
JK
59402011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5941
5942 * linux-nat.c (kill_callback): Use SIGKILL first.
5943
967cff16
JB
59442011-05-18 Joel Brobecker <brobecker@adacore.com>
5945
5946 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5947
1d06ead6
TT
59482011-05-18 Tom Tromey <tromey@redhat.com>
5949
5950 * value.c (value_fn_field): Constify.
5951 * symtab.c (gdb_mangle_name): Constify.
5952 * stabsread.c (update_method_name_from_physname): Make 'physname'
5953 argument const.
5954 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5955 const. Use explicit fputc_filtered loop.
5956 (pascal_type_print_base): Constify.
5957 * p-lang.h (pascal_type_print_method_args): Update.
5958 * linespec.c (add_matching_methods): Constify.
5959 (add_constructors): Likewise.
5960 * jv-typeprint.c (java_type_print_base): Constify.
5961 * gdbtypes.h (struct cplus_struct_type)
5962 <fn_fieldlist.fn_field.physname>: Now const.
5963 * dwarf2read.c (compute_delayed_physnames): Constify.
5964 (dwarf2_add_member_fn): Likewise.
5965 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5966
0d9a9a5f
PA
59672011-05-18 Pedro Alves <pedro@codesourcery.com>
5968
5969 * infrun.c (resume): Mention which is the current thread, and its
5970 current PC in debug output.
5971 (prepare_to_proceed): Mention the thread switching in debug
5972 output.
5973
05386e9e
TT
59742011-05-18 Tom Tromey <tromey@redhat.com>
5975
5976 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5977 path check. Use xmalloc and cleanups.
5978 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5979
ee86786c
TT
59802011-05-17 Tom Tromey <tromey@redhat.com>
5981
5982 * cp-valprint.c (cp_print_value_fields): Catch errors from
5983 value_static_field.
5984
9ff3b74f
TT
59852011-05-17 Tom Tromey <tromey@redhat.com>
5986
5987 * dwarf2read.c (dwarf2_get_die_type): Call
5988 get_die_type_at_offset.
5989 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5990 get_base_type function.
5991
cd3da28e
PA
59922011-05-17 Tomas Martinec <fyzmat@gmail.com>
5993
5994 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5995 trap_expected.
5996
fd20d931
DE
59972011-05-16 Doug Evans <dje@google.com>
5998
5999 * python/py-auto-load.c (source_section_scripts): Mention objfile
6000 name in warning.
6001
75fc9810
DE
60022011-05-15 Doug Evans <dje@google.com>
6003
290351b8
DE
6004 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6005 (try_thread_db_load_from_pdir): Call it. If unable to find
6006 libthread_db in directory of libpthread, see if we're looking at
6007 the separate-debug-info copy.
6008
75fc9810
DE
6009 * python/py-autoload.c (print_script): Print "Missing" instead of
6010 "No" for missing scripts.
6011 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6012
9f7bc587
DE
60132011-05-13 Doug Evans <dje@google.com>
6014
6015 * ui-file.c (stdio_file_write_async_safe): Add comment.
6016
093cee7d
HZ
60172011-05-14 Hui Zhu <teawater@gmail.com>
6018
6019 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6020
dbaefcf7
DE
60212011-05-13 Doug Evans <dje@google.com>
6022
98a5dd13
DE
6023 Support $pdir and $sdir in libthread-db-search-path.
6024 * NEWS: Mention $sdir,$pdir.
6025 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6026 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6027 (try_thread_db_load_from_sdir): New function.
6028 (try_thread_db_load_from_dir): New function.
6029 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6030 system directories if search of libthread-db-search-path fails,
6031 that is now done via $sdir.
6032 (has_libpthread): New function.
6033 (thread_db_load): Remove search for libthread_db in directory of
6034 libpthread, that is now done via $pdir.
6035
dbaefcf7
DE
6036 * NEWS: Mention "info auto-load-scripts".
6037 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6038 script_not_found_warning_printed.
6039 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6040 all callers updated. Initialize script_not_found_warning_printed.
6041 (get_auto_load_pspace_data_for_loading): New function.
6042 (maybe_add_script): New function.
6043 (source_section_scripts): Simplify. Only print one warning regardless
6044 of the number of auto-load scripts not found.
6045 (clear_section_scripts): Clear script_not_found_warning_printed.
6046 (auto_load_objfile_script): Record script in hash table.
6047 (count_matching_scripts): New function.
6048 (maybe_print_script): Renamed from maybe_print_section_script, all
6049 callers updated. Rewrite to use ui_out_*.
6050 (info_auto_load_scripts): Renamed from
6051 maintenance_print_section_scripts, all callers updated.
6052 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6053 renamed as "info auto-load-scripts".
6054
9930639c
TT
60552011-05-13 Tom Tromey <tromey@redhat.com>
6056
6057 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6058 (read_sleb128): Likewise.
6059
06826322
TT
60602011-05-13 Tom Tromey <tromey@redhat.com>
6061
6062 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6063 offset display.
6064
01124a23
DE
60652011-05-13 Doug Evans <dje@google.com>
6066
6067 * linux-nat.c (debug_linux_nat_async): Delete.
6068 Replace all references to use debug_linux_nat instead.
6069 (show_debug_linux_nat_async): Delete.
6070 (sigchld_handler): Call ui_file_write_async_safe instead of
6071 fprintf_unfiltered.
6072 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6073 * ui-file.c (struct ui_file): New member to_write_async_safe.
6074 (null_file_write_async_safe): New function.
6075 (ui_file_write_async_safe): New function.
6076 (set_ui_file_write_async_safe): New function.
6077 (ui_file_new): Initialize to_write_async_safe.
6078 (stdio_file_write_async_safe): New function.
6079 (struct stdio_file): New member fd.
6080 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6081 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6082 fileno.
01124a23
DE
6083 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6084 (set_ui_file_write_async_safe): Declare.
6085 (ui_file_write_async_safe): Declare.
6086
72fc29ff
TT
60872011-05-13 Tom Tromey <tromey@redhat.com>
6088
6089 * utils.c (do_value_free): New function.
6090 (make_cleanup_value_free): Likewise.
6091 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6092 freeing correctly.
6093 (dwarf2_loc_desc_needs_frame): Call
6094 make_cleanup_value_free_to_mark.
6095 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6096 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6097 value_free_to_mark.
6098 (new_dwarf_expr_context): Don't call value_mark.
6099 * dwarf2-frame.c (execute_stack_op): Call
6100 make_cleanup_value_free_to_mark.
6101 * defs.h (make_cleanup_value_free): Declare.
6102
028d0ed5
TJB
61032011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6104
6105 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6106 prepare_execute_command.
6107 * top.c (prepare_execute_command): Return cleanup.
6108 (execute_command): Use cleanup from prepare_execute_command.
6109 * top.h (prepare_execute_command): Change prototype to return
6110 cleanup.
6111 * defs.h (struct value): Add opaque declaration.
6112 (make_cleanup_value_free_to_mark): Add prototype.
6113 * utils.c (do_value_free_to_mark): New function.
6114 (make_cleanup_value_free_to_mark): Likewise.
6115
b087e0ed
TT
61162011-05-12 Tom Tromey <tromey@redhat.com>
6117
6118 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6119 cast left-hand-side to unsigned.
6120
8a9b8146
TT
61212011-05-12 Tom Tromey <tromey@redhat.com>
6122
6123 PR gdb/12617:
6124 * value.h (value_from_contents): Declare.
6125 * value.c (value_from_contents): New function.
6126 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6127 (dwarf2_get_die_type): New function.
6128 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6129 (allocate_piece_closure): Acquire reference to values.
6130 (read_pieced_value): Update for value-based expressions.
6131 (write_pieced_value): Likewise.
6132 (free_pieced_value_closure): Call value_free as needed.
6133 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6134 Update for value-based expressions.
6135 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6136 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6137 <get_base_type>: New field.
6138 (struct dwarf_expr_piece) <v.value>: Change type.
6139 <v.regno>: New field.
6140 (struct dwarf_expr_context) <mark>: New field.
6141 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6142 (dwarf_expr_pop, dwarf_expr_push): Remove.
6143 (dwarf_expr_push_address): Declare.
6144 * dwarf2expr.c (dwarf_arch_cookie): New global.
6145 (struct dwarf_gdbarch_types): New.
6146 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6147 functions.
6148 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6149 static.
6150 (dwarf_expr_push_address): New function.
6151 (dwarf_expr_pop): Now static.
6152 (dwarf_expr_fetch): Change return type.
6153 (dwarf_require_integral): New function.
6154 (dwarf_expr_fetch): Simplify.
6155 (add_piece): Update.
6156 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6157 functions.
6158 (execute_stack_op) <sign_ext>: Remove.
6159 Use values for DWARF stack.
6160 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6161 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6162 New cases.
6163 (_initialize_dwarf2expr): New function.
6164 (add_piece): Update.
6165 (new_dwarf_expr_context): Set new field.
6166 (free_dwarf_expr_context): Call value_free_to_mark.
6167 * dwarf2-frame.c (no_base_type): New function.
6168 (execute_stack_op): Set get_base_type field. Update.
6169
e8d28ef4
TT
61702011-05-12 Tom Tromey <tromey@redhat.com>
6171
6172 * dwarf2read.c (read_common_block): Fix formatting.
6173
d248b706
KY
61742011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6175
6176 * breakpoint.c (disable_breakpoint): Disable all locations
6177 associated with a tracepoint on target if a trace experiment is
6178 running.
6179 (disable_command): Disable a specific tracepoint location on target if
6180 a trace experiment is running.
6181 (do_enable_breakpoint): Enable all locations associated with a
6182 tracepoint on target if a trace experiment is running.
6183 (enable_command) Enable a specific tracepoint location on target if a
6184 trace experiment is running.
6185 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6186 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6187 to_disable_tracepoint.
6188 * target.h: Add declaration of struct bp_location.
6189 (struct target_ops): Add new functions
6190 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6191 to_disable_tracepoint to target operations.
6192 (target_supports_enable_disable_tracepoint): New macro.
6193 (target_enable_tracepoint): New macro.
6194 (target_disable_tracepoint): New macro.
6195 * remote.c (struct remote_state): Add new field.
6196 (remote_enable_disable_tracepoint_feature): New.
6197 (remote_protocol_features): Add new entry.
6198 (remote_supports_enable_disable_tracepoint): New.
6199 (remote_enable_tracepoint): New.
6200 (remote_disable_tracepoint): New.
6201 (init_remote_ops): Add remote_enable_tracepoint,
6202 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6203 to remote operations.
6204 * tracepoint.c (start_tracing): Allow tracing to start without any
6205 tracepoints enabled with just a warning if they can be re-enabled
6206 later.
6207 * NEWS: Add news item for the new behaviour of the enable and disable
6208 GDB commands when applied to tracepoints.
6209 Add news items for the new remote packets QTEnable and QTDisable.
6210
cc88a640
JK
62112011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 * config.in: Regenerate.
6214 * configure: Regenerate.
6215 * configure.ac <--with-system-readline> (for readline_echoing_p):
6216 Remove the test.
6217 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6218 (tui_old_rl_echoing_p): ... here.
6219 (tui_setup_io): Rename extern declaration readline_echoing_p to
6220 _rl_echoing_p. Adjust assignments for the both renames.
6221
1f84b619
TJB
62222011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6223
6224 * symtab.c (lookup_symtab): Run cleanup before returning.
6225
74ac6d43
TT
62262011-05-11 Tom Tromey <tromey@redhat.com>
6227
6228 * dwarf2read.c (handle_data_member_location): New function.
6229 (dwarf2_add_field): Use it.
6230 (read_common_block): Likewise.
6231
5488dafb
JK
62322011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6233
6234 Make addrs->SECTINDEX always defined.
6235 * symfile.c (relative_addr_info_to_section_offsets): Check for
6236 SECTINDEX -1, not for zero ADDR.
6237 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6238 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6239 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6240 on its validity.
6241
84e578fb
DE
62422011-05-10 Doug Evans <dje@google.com>
6243
2471d008
DE
6244 * linux-thread-db.c: Whitespace cleanup.
6245 (try_thread_db_load_1): Fix comment.
6246
84e578fb
DE
6247 * linux-thread-db.c (set_libthread_db_search_path): New function.
6248 (_initialize_thread_db): Add setter for libthread-db-search-path.
6249
673c2bbe
DE
62502011-05-09 Doug Evans <dje@google.com>
6251
478aac75
DE
6252 * NEWS: Mention --with-iconv-bin.
6253 * configure.ac: New option --with-iconv-bin.
6254 * configure: Regenerate.
6255 * config.in: Regenerate.
6256 * defs.h (relocate_gdb_directory): Declare.
6257 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6258 removed progname parameter, and exported. All callers updated.
6259 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6260
673c2bbe
DE
6261 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6262 adding missing call to restore_child_signals_mask.
6263
e4c8541f
PA
62642011-05-09 Pedro Alves <pedro@codesourcery.com>
6265
6266 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6267 parameter.
6268 * infrun.c (proceed, start_remote): Adjust.
6269 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6270 and adjust to not handle it.
6271 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6272 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6273 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6274 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6275 * windows-nat.c (do_initial_windows_stuff): Adjust.
6276 * infcmd.c (attach_command): Adjust.
6277 (notice_new_inferior): Adjust.
6278
a536c6d7
UW
62792011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6280
6281 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6282 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6283 * spu-tdep.c (op_selb): Use correct value.
6284
7845b013
UW
62852011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6286
6287 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6288 "parent" parameter to symbol_file_add_from_bfd call.
6289
9c06b0b4
TJB
62902011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6291 Thiago Jung Bauermann <bauerman@br.ibm.com>
6292
6293 Implement support for PowerPC BookE masked watchpoints.
6294 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6295 section.
6296 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6297 method. Initialize to NULL in all existing breakpoint_ops instances.
6298 (struct breakpoint) <hw_wp_mask>: New field.
6299 * breakpoint.c (is_masked_watchpoint): Add prototype.
6300 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6301 breakpoint's breakpoint_ops.works_in_software_mode if available.
6302 (watchpoints_triggered): Handle the case of a hardware masked
6303 watchpoint trigger.
6304 (watchpoint_check): Likewise.
6305 (works_in_software_mode_watchpoint): New function.
6306 (insert_masked_watchpoint, remove_masked_watchpoint)
6307 (resources_needed_masked_watchpoint)
6308 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6309 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6310 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6311 functions.
6312 (masked_watchpoint_breakpoint_ops): New structure.
6313 (watch_command_1): Check for the existence of the `mask' parameter.
6314 Set b->ops according to the type of hardware watchpoint being created.
6315 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6316 (ppc_linux_remove_mask_watchpoint)
6317 (ppc_linux_masked_watch_num_registers): New functions.
6318 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6319 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6320 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6321 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6322 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6323 (target_masked_watch_num_registers): New functions.
6324 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6325 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6326 methods.
6327 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6328 (target_masked_watch_num_registers): Add prototypes.
6329
8be455d7
JK
63302011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6331
6332 PR 12573
6333 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6334 (producer_is_gcc_ge_4_0): New function.
6335 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6336 symtab->language code.
6337 (var_decode_location): Set cu->has_loclist.
6338 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6339 skip. Intialize force_skip from locations_valid. Move the prologue
6340 skipping code into two passes.
6341 * symtab.h (struct symtab): Make the primary field a bitfield. New
6342 field locations_valid.
6343
d8228535
JK
63442011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6345
6346 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6347 (classify_inner_name): Call cp_lookup_nested_type with
6348 yylval.tsym.type.
6349 * cp-namespace.c (cp_lookup_nested_type): New variable
6350 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6351 type_name_no_tag_or_error with saved_parent_type.
6352 * dwarf2read.c (load_partial_dies): Read in any children of
6353 DW_TAG_typedef with complaint in such case.
6354 * gdbtypes.c (type_name_no_tag_or_error): New function.
6355 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6356 * valops.c (destructor_name_p): New comment for parameter type. Remove
6357 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6358 * value.h (destructor_name_p): Remove type const.
6359
1976171a
JK
63602011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6361
6362 * symtab.c (compare_symbol_name): New function.
6363 (completion_list_add_name, expand_partial_symbol_name): Call it,
6364 remove the variable ncmp.
6365 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6366 gdb_assert it.
6367
a9634178
TJB
63682011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6369
6370 Demote to sw watchpoint only in update_watchpoint.
6371 * breakpoint.c (update_watchpoint): Change between software and
6372 hardware watchpoint for all kinds of watchpoints, not just
6373 read/write ones. Determine b->exact value here instead of
6374 in watch_command_1. Error out if there are not enough resources
6375 for a read or access hardware watchpoint.
6376 (watch_command_1): Remove logic of checking whether there are
6377 enough resources available, since update_watchpoint will do that
6378 work now. Don't set b->exact here. Catch exceptions thrown by
6379 update_watchpoint and delete the watchpoint.
6380 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6381 Use target_exact_watchpoints instead.
6382 (delete_breakpoint): Notify observers only if deleted watchpoint
6383 has a breakpoint number assigned to it.
6384
4c67c798
JJ
63852011-05-05 Janis Johnson <janisjo@codesourcery.com>
6386
6387 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6388
a3fcb948
JG
63892011-05-05 Jerome Guitton <guitton@adacore.com>
6390
6391 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6392 New functions.
6393 (i386_stack_tramp_frame_unwind): New static global.
6394 (i386_match_pattern): New function, extracted from i386_match_insn.
6395 (i386_match_insn): Use i386_match_pattern.
6396 (i386_match_insn_block): New function.
6397 (i386_tramp_chain_in_reg_insns)
6398 (i386_tramp_chain_on_stack_insns): New static variables.
6399 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6400 of unwinders.
6401
4d393d60
JM
64022011-05-04 Joseph Myers <joseph@codesourcery.com>
6403
6404 * configure.host (xscale*): Don't handle target.
6405 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6406 handle targets.
6407
f70bd40b
YQ
64082011-05-04 Yao Qi <yao@codesourcery.com>
6409
6410 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6411
dd3295ee
JB
64122011-05-03 Joel Brobecker <brobecker@adacore.com>
6413
6414 Revert:
6415 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6416 | * elfread.c (elf_symtab_read): Stop memory leak.
6417
90375a0e
PM
64182011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6419
6420 * nto-tdep.c (nto_target): Replace deprecated call to
6421 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6422
d07205c2
JK
64232011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6424
6425 Fix false GCC warning.
6426 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6427
1e718ff1
TJB
64282011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6429
6430 * breakpoint.c (update_watchpoint): Move code to change
6431 the enable state of breakpoint from here ...
6432 (do_enable_breakpoint): ... to here.
6433
35bef4fd
TT
64342011-04-26 Andrew Gontarek <andrewg@cray.com>
6435
78290264
PP
6436 * valprint.c (val_print_array_elements): Fixed poor performance
6437 of printing very large arrays with repeat_count_threshold set
6438 to unlimited. New comment.
35bef4fd 6439
38a714bb
TT
64402011-04-29 Tom Tromey <tromey@redhat.com>
6441
6442 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6443 (mi_parse): Likewise.
6444 * breakpoint.c (break_range_command): Use sizeof char*, not
6445 char**.
6446 (create_breakpoint): Likewise.
6447 (parse_breakpoint_sals): Likewise.
6448
eb73ad13
PA
64492011-04-29 Pedro Alves <pedro@codesourcery.com>
6450
6451 * linux-nat.c (linux_child_remove_fork_catchpoint)
6452 (linux_child_remove_vfork_catchpoint)
6453 (linux_child_remove_exec_catchpoint): New functions.
6454 (linux_target_install_ops): Install them.
6455
d65aec65
PM
64562011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6457
6458 PR mi/12531
6459
6460 * varobj.c (install_default_visualizer): Do not install a
6461 visualizer if the varobj is CPLUS_FAKE_CHILD.
6462 (construct_visualizer): Likewise.
6463
165195f4
JK
64642011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6465
6466 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6467 case insensitive comparison.
6468
30852783
UW
64692011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6470
6471 * infrun.c (proceed): Revert previous change.
6472 (resume): Instead, handle the case of signal delivery while stepping
6473 off a breakpoint location here, and only if software single-stepping
6474 is used. Handle nested signals.
6475
7ff120b4
YQ
64762011-04-28 Yao Qi <yao@codesourcery.com>
6477
6478 * arm-tdep.c (copy_unmodified): Rename to ...
6479 (arm_copy_unmodified): .. this. New.
6480 (copy_preload): Move common part to ...
6481 (install_preload): .. this. New.
6482 (arm_copy_preload): New.
6483 (copy_preload_reg): Move common part to ...
6484 (install_preload_reg): ... this. New.
6485 (arm_copy_preload_reg): New.
6486 (copy_b_bl_blx): Move common part to ...
6487 (install_b_bl_blx): .. this. New.
6488 (arm_copy_b_bl_blx): New.
6489 (copy_bx_blx_reg): Move common part to ...
6490 (install_bx_blx_reg): ... this. New.
6491 (arm_copy_bx_blx_reg): New.
6492 (copy_alu_reg): Move common part to ...
6493 (install_alu_reg): ... this. New.
6494 (arm_copy_alu_reg): New.
6495 (copy_alu_shifted_reg): Move common part to ...
6496 (install_alu_shifted_reg): ... this. New.
6497 (copy_ldr_str_ldrb_strb): Move common part to ...
6498 (install_ldr_str_ldrb_strb): ... this. New.
6499 (arm_copy_ldr_str_ldrb_strb): New.
6500 (copy_copro_load_store): Move some common part to ...
6501 (install_copy_copro_load_store): ... this. New.
6502 (arm_copy_copro_load_store): New.
6503 (copy_svc): Delete.
6504 (arm_copy_svc): Renamed from copy_svc.
6505 (copy_undef): Delete.
6506 (arm_copy_undef): Renamed from copy_undef.
6507 (decode_ext_reg_ld_st): Delete.
6508 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6509 (decode_svc_copro): Delete.
6510 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6511 (copy_copro_load_store, copy_alu_imm): update callers.
6512 (copy_extra_ld_st, copy_block_xfer): Likewise.
6513 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6514 (decode_miscellaneous, decode_dp_misc): Likewise.
6515 (decode_ld_st_word_ubyte, decode_media): Likewise.
6516 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6517 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6518 (decode_unconditional, decode_miscellaneous): Likewise.
6519 (decode_media, decode_b_bl_ldmstm): Likewise.
6520 (arm_process_displaced_insn): Likewise..
6521 (decode_misc_memhint_neon): Delete.
6522 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6523 (decode_miscellaneous): Delete.
6524 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6525 (decode_dp_misc): Delete.
6526 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6527 (decode_ld_st_word_ubyte): Delete.
6528 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6529 (decode_media): Delete.
6530 (arm_decode_media): Renamed from decode_media.
6531 (decode_b_bl_ldmstm): Delete.
6532 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6533 (decode_ext_reg_ld_st): Delete.
6534 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6535 (decode_unconditional): Delete.
6536 (arm_decode_unconditional): Renamed from decode_unconditional.
6537
559a7a62
JK
65382011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6539
6540 Case insensitive lookups implementation.
6541 * dwarf2read.c: Include ctype.h.
6542 (struct mapped_index): New field version.
6543 (mapped_index_string_hash): New parameter index_version. New comment
6544 for it. Call tolower appropriately.
6545 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6546 Choose the right index version for mapped_index_string_hash.
6547 (dwarf2_read_index): Support also the index version 5. Initialize the
6548 new struct mapped_index field version.
6549 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6550 (find_slot): Explain the version needs. Pass INT_MAX for the new
6551 parameter.
6552 (write_psymtabs_to_index): Produce version 5.
6553 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6554 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6555 * psymtab.c (lookup_partial_symbol): Find the
6556 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6557 entries.
6558 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6559 NAME lowercasing.
6560 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6561 (completion_list_add_name): New variable ncmp, initialize it, use it.
6562 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6563 * utils.c (strcmp_iw): Support case_sensitive_off.
6564 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6565 New function comment part. New variables saved_string1,
6566 saved_string2 and case_pass. Add a proper second pass.
6567
681bf369
JK
65682011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6569
6570 Replace re_comp/re_exec by regcomp/regexec.
6571 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6572 (search_symbols_name_matches): Use them, use regexec.
6573 (search_symbols): New variable retval_chain, adjust the use of
6574 old_chain against it. Replace re_comp by regcomp. Use the new struct
6575 search_symbols_data fields, use regexec instead of re_exec.
6576
b11b1f88
JK
65772011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6578
6579 Format the code for the next patch.
6580 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6581 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6582 New variables c1 and c2.
6583
2484c66b
UW
65842011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6585
6586 * infrun.c (proceed): Do not single-step into signal delivery
6587 when stepping off a breakpoint location.
6588 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6589 (insert_step_resume_breakpoint_at_caller): Likewise.
6590 (insert_step_resume_breakpoint_at_sal): Likewise.
6591 (insert_longjmp_resume_breakpoint): Likewise.
6592
47423772
YQ
65932011-04-27 Yao Qi <yao@codesourcery.com>
6594
6595 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6596
13bdd2e7
JB
65972011-04-27 Joel Brobecker <brobecker@adacore.com>
6598
6599 * procfs.c (procfs_pass_signals): Fix advance declaration.
6600
2455069d
UW
66012011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6602
6603 * target.h (struct target_ops): Remove to_notice_signals;
6604 add to_pass_signals.
6605 (target_notice_signals): Remove.
6606 (target_pass_signals): Add prototype.
6607 * target.c (update_current_target): Remove to_notice_signals;
6608 mention to_pass_signals.
6609 (target_pass_signals): New function.
6610 (debug_to_notice_signals): Remove.
6611 (setup_target_debug): Do not install debug_to_notice_signals.
6612
6613 * infrun.c (signal_pass): New global.
6614 (resume): Call target_pass_signals.
6615 (handle_inferior_event): Report all signals while stepping over
6616 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6617 are re-inserted when stepping over a signal handler.
6618 (signal_cache_update): New function.
6619 (signal_stop_update): Call it.
6620 (signal_print_update): Likewise.
6621 (signal_pass_update): Likewise.
6622 (handle_command): Call signal_cache_update and target_pass_signals
6623 instead of target_notice_signals.
6624 (_initialize_infrun): Initialize signal_pass.
6625
6626 * linux-nat.c (pass_mask): New global.
6627 (linux_nat_pass_signals): New function.
6628 (linux_nat_create_inferior): Report all signals initially.
6629 (linux_nat_attach): Likewise.
6630 (linux_nat_resume): Use pass_mask to decide whether to directly
6631 handle an inferior signal.
6632 (linux_nat_wait_1): Likewise.
6633 (linux_nat_add_target): Install to_pass_signals callback.
6634
6635 * nto-procfs.c (notice_signals): Remove.
6636 (procfs_resume): Do not call notice_signals.
6637 (procfs_notice_signals): Remove.
6638 (procfs_pass_signals): New function.
6639 (init_procfs_ops): Install to_pass_signals callback instead of
6640 to_notice_signals callback.
6641 (_initialize_procfs): Report all signals initially.
6642
6643 * procfs.c (procfs_notice_signals): Remove.
6644 (procfs_pass_signals): New function.
6645 (procfs_target): Install to_pass_signals callback instead of
6646 to_notice_signals callback.
6647 (register_gdb_signals): Remove.
6648 (procfs_debug_inferior): Report all signals initially.
6649 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6650
6651 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6652 parameters; use them instead of calling signal_..._state routines.
6653 (remote_notice_signals): Remove.
6654 (remote_start_remote): Report all signals initially.
6655 (remote_resume): Do not call remote_pass_signals.
6656 (_initialize_remote): Install to_pass_signals callback instead of
6657 to_notice_signals callback.
6658
46c6471b
PA
66592011-04-27 Pedro Alves <pedro@codesourcery.com>
6660
6661 * breakpoint.c (user_settable_breakpoint): Delete.
6662 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6663 (delete_command): Check user_breakpoint_p instead of looking at
6664 the breakpoint's type.
6665 (disable_command): Ditto.
6666 (enable_command): Ditto.
6667 (delete_trace_command): Use user_breakpoint_p instead of looking
6668 at the breakpoint number directly. When checking if there are
6669 user visible tracepoints, in order to know whether to ask the user
6670 for confirmation, check whether the breakpoint is actually a
6671 tracepoint.
6672
f6d90398
VP
66732011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6674
6675 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6676 compilation.
6677
8d3788bd
VP
66782011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6679
6680 MI breakpoint notifications.
6681
f33edef8
PP
6682 * annotate.c (breakpoint_changed): Adjust parameter type.
6683 * breakpoint.c (set_breakpoint_condition): Adjust to change
6684 in breakpoint_modified type.
6685 (breakpoint_set_commands): Likewise.
6686 (do_map_commands_command): Likewise.
6687 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6688 changed after bumping hit count.
6689 (bpstat_stop_status): Likewise.
6690 (print_one_breakpoint_location): Don't wrap in tuple here.
6691 (print_one_breakpoint): Always print individual locations.
6692 For locations, use unnamed tuple.
6693 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6694 has changed.
6695 (create_catchpoint, create_syscall_event_catchpoint): Call
6696 breakpoint_created obsever.
6697 (mention): Don't call breakpoint_created observer.
6698 (create_breakpoint_sal): Call breakpoint_created observer.
6699 (create_breakpoint, watch_command_1): Likewise.
6700 (create_ada_exception_breakpoint): Likewise.
6701 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6702 (locations_are_equal): New.
6703 (update_breakpoint_locations): If locations were changed, notify.
6704 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6705 Call breakpoint_modified observer.
6706
6707 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6708 (mi_cmd_break_insert): Don't set observers for modify and delete.
6709 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6710 (mi_breakpoint_created, mi_breakpoint_deleted)
6711 (mi_breakpoint_modified): New.
6712 (mi_interpreter_init): Hook the above.
6713 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6714 while -break-* commands are executing.
6715 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6716 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6717 (mi_redirect): New.
6718 (mi_ui_out_impl): Hook in mi_redirect.
6719 (mi_field_skip): True to the name, skip the field, don't output
6720 a field with an empty value.
6721
6722 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6723 (gdbpy_breakpoint_deleted): Adjust.
6724 * tui/tui-hooks.c (tui_event_create_breakpoint)
6725 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6726
a8f42b45
UW
67272011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6728
6729 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6730 (procfs_remove_hw_watchpoint): Likewise.
6731
57e12211
TT
67322011-04-26 Michael Walle <michael@walle.cc>
6733
6734 * remote.c (remote_start_remote): Ack packet after sending the
6735 interrupt sequence.
6736
af96c192
YQ
67372011-04-26 Yao Qi <yao@codesourcery.com>
6738
f33edef8
PP
6739 * linux-nat.c: Move common macros to ...
6740 Include linux-ptrace.h.
6741 * common/linux-ptrace.h: ... here. New.
af96c192 6742
3e03848b
JK
67432011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6744
6745 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6746 !objfile_has_partial_symbols. New comment.
6747 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6748 SYM_READ_PSYMBOLS is not present. Extend the comment.
6749 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6750
1ae0d051
JK
67512011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6752
6753 * defs.h (ENUM_BITFIELD): Remove.
6754
03f2bd59
JK
67552011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 Eli Zaretskii <eliz@gnu.org>
6757
6758 * NEWS: Document the new gdbserver --once option.
6759
4161fbb0
JZ
67602011-04-21 Jie Zhang <jzhang918@gmail.com>
6761
6762 * MAINTAINERS: Update my email address.
6763
bcb28afc
PM
67642011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6765
6766 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6767 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6768 function call if __STDC_ISO_10646__ macro is defined.
6769 (intermediate_encoding): New prototype.
6770 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6771 to generate compile time error for unsupported gdb_wchar_t size.
6772 (ENDIAN_SUFFIX): New macro.
6773 (intermediate_encoding): New function.
6774
7b08b9eb
JK
67752011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6776
6777 * ada-lang.c (struct add_partial_datum): Update the comment for
6778 expand_partial_symbol_name.
6779 (ada_add_partial_symbol_completions): Rename to ...
6780 (ada_expand_partial_symbol_name): ... here, change return type, update
6781 function comment, call symbol_completion_match instead of
6782 symbol_completion_add.
6783 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6784 and ada_expand_partial_symbol_name.
6785 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6786 FILE_MATCHER.
6787 (dw2_map_symbol_names): Remove.
6788 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6789 * psymtab.c (map_symbol_names_psymtab): Remove.
6790 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6791 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6792 order.
6793 (psym_functions): Unlist map_symbol_names_psymtab.
6794 (map_partial_symbol_names): Rename to ...
6795 (expand_partial_symbol_names): ... here, change the FUN type, call
6796 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6797 * psymtab.h (map_partial_symbol_names): Rename to ...
6798 (expand_partial_symbol_names): ... here, change the FUN type.
6799 * symfile.h (struct quick_symbol_functions): Update the description of
6800 expand_symtabs_matching. Remove map_symbol_names.
6801 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6802 (struct add_name_data): Update the comment for
6803 expand_partial_symbol_name.
6804 (add_partial_symbol_name): Rename to ...
6805 (expand_partial_symbol_name): ... here. Replace
6806 completion_list_add_name call by strncmp.
6807 (default_make_symbol_completion_list_break_on): Use now
6808 expand_partial_symbol_names and expand_partial_symbol_name.
6809 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6810
90476074
TT
68112011-04-20 Tom Tromey <tromey@redhat.com>
6812
6813 * dwarf2read.c (save_gdb_index_command): Replace format
6814 documentation with a pointer to the manual.
6815
c21236dc
PA
68162011-04-20 Pedro Alves <pedro@codesourcery.com>
6817
6818 * regcache.c: Include remote.h.
6819 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6820 (regcache_dump): Handle regcache_dump_remote.
6821 (maintenance_print_remote_registers): New function.
6822 (_initialize_regcache): Install "maint print remote-registers"
6823 command.
6824 * remote.c (map_regcache_remote_table): New function, factored out
6825 from ...
6826 (init_remote_state): ... here.
6827 (remote_register_number_and_offset): New.
6828 * remote.h (remote_register_number_and_offset): Declare.
6829
b78974c3
PA
68302011-04-20 Pedro Alves <pedro@codesourcery.com>
6831
6832 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6833 null_ptid, assume and allow a NULL address space, instead of
6834 asking the target for the ptid's address space.
6835 * infrun.c (ptid_is_pid): Remove assertion.
6836
7a9dd1b2
TT
68372011-04-19 Tom Tromey <tromey@redhat.com>
6838
6839 * windows-tdep.c (windows_xfer_shared_library):
6840 * windows-nat.c (get_module_name, windows_make_so):
6841 * v850-tdep.c (v850_handle_pushm):
6842 * utils.c (null_cleanup, gdb_realpath):
6843 * ui-out.c (get_next_header):
6844 * tracepoint.c (clear_traceframe_info):
6845 * symtab.c (lookup_symtab):
6846 * serial.h (struct serial_ops):
6847 * mipsread.c (read_alphacoff_dynamic_symtab):
6848 * infcmd.c (print_return_value):
6849 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6850 * f-exp.y (parse_number):
6851 * exceptions.c (catch_exceptions):
6852 * dummy-frame.c (dummy_frame_this_id):
6853 * defs.h (struct cleanup):
6854 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6855 * arm-tdep.c (arm_push_dummy_call):
6856 * amd64-tdep.h (amd64_collect_xsave):
6857 * amd64-tdep.c (amd64_collect_xsave):
6858 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6859 * README (typing): Remove duplicate words.
6860 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6861 * infrun.c (siginfo_value_read): Fix typo.
6862 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6863 * top.c (source_line_number): Add comma.
6864
9941e0c5
MK
68652011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6866
6867 * thread.c (any_live_thread_of_process): Prioritize threads
6868 that are not executing.
6869 * gdbthread.h (any_live_thread_of_process): Update comment
6870 as per above change.
6871
ed4b0e6a
AS
68722011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6873
6874 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6875 (scan_xcoff_symtab): Likewise.
6876
9b13a2db
PM
68772011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6878
6879 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6880 inside if clause.
6881
1c6e1b0d
PM
68822011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6883 Pedro Alves <pedro@codesourcery.com>
6884
6885 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6886 variables to simplify code and avoid == operator at end of
6887 line as this is against GNU coding standards.
6888
74de0234
PM
68892011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6890
6891 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6892 lm_name to name_lm to avoid conflict with lm_name function.
6893
b23518f0
PM
68942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6895
6896 ARI fixes: Use only lowercase function name for static functions.
6897 * nto-tdep.c (LM_ADDR): Rename to...
6898 (lm_addr): New function name.
6899 (nto_relocate_section_addresses): Adapt to change above.
6900 * solib-sunos.c (LM_ADDR): Rename to...
6901 (lm_addr): New function name.
6902 (LM_NEXT): Rename to...
6903 (lm_next): New function name.
6904 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6905 function name changes above.
6906 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6907 (lm_addr_from_link_map): New function name.
6908 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6909 (has_lm_dynamic_from_link_map): New function name.
6910 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6911 (lm_dynamic_from_link_map): New function name.
6912 (LM_ADDR_CHECK): Rename to...
6913 (lm_addr_check): New function name.
6914 (LM_NEXT): Rename to...
6915 (lm_next): New function name.
6916 (LM_PREV): Rename to...
6917 (lm_prev): New function name.
6918 (LM_NAME): Rename to...
6919 (lm_name): New function name.
6920 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6921 (ignore_first_link_map_entry): New function name.
6922 (svr4_keep_data_in_core): Adapt to function name changes above.
6923 (svr4_current_sos): Likewise.
6924 (enable_break): Likewise.
6925 (svr4_relocate_section_addresses): Likewise.
6926
1448a0a2
PM
69272011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6928
6929 ARI cleanup.
6930 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6931 sprintf. Simplify code and avoid loosing memory.
6932 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6933 (call0_frame_cache): Remove && operator from end of line.
6934
02835898
JK
69352011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6936
6937 Fix libraries displacement if they change whether they were prelinked.
6938 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6939 does not match. Comment why.
6940
9a845ea2
JK
69412011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 * corelow.c: Include wrapper.h.
6944 (core_open): Call now gdb_target_find_new_threads.
6945 * wrapper.c: Include target.h.
6946 (gdb_target_find_new_threads): New.
6947 * wrapper.h (gdb_target_find_new_threads): New declaration.
6948
254f582e
JK
69492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6950
6951 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6952 even if !TARGET_HAS_EXECUTION.
6953
63524580
JK
69542011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6957 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6958 bfd_get_synthetic_symtab.
6959 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6960 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6961 parameter parent, remove the call to add_separate_debug_objfile.
6962 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6963 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6964 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6965 parent, new comment for it, call add_separate_debug_objfile for it.
6966 (symbol_file_add_separate): Pass objfile as the parameter parent,
6967 remove the call to add_separate_debug_objfile.
6968 (symbol_file_add_from_bfd): New parameter parent, pass it.
6969 (symbol_file_add): Pass NULL to the new parameter parent.
6970 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6971
90359a16
JK
69722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6973
6974 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6975 BSF_SYNTHETIC.
6976
626e7282
JK
69772011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6978
6979 Fix Python access to inlined frames.
6980 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6981 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6982
cf31e6f9
TT
69832011-04-15 Tom Tromey <tromey@redhat.com>
6984
6985 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6986
c8d895f1
GB
69872011-04-15 Gary Benson <gbenson@redhat.com>
6988
6989 * MAINTAINERS: Add myself to write-after-approval section.
6990
56a9aa1d
MF
69912011-04-14 Mike Frysinger <vapier@gentoo.org>
6992
6993 * remote-sim.c (sim_command_completer): New function.
6994 (_initialize_remote_sim): Set completer to sim_command_completer.
6995
ba770c9c
TJB
69962011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6997
6998 * breakpoint.c (print_exception_catchpoint): Rename to ...
6999 (print_it_exception_catchpoint): ... this.
7000 (gnu_v3_exception_catchpoint_ops): Update with new name
7001 for print_it_exception_catchpoint.
7002
51bf2553
EBM
70032011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7004
7005 * MAINTAINERS: Add myself for write after approval privileges.
7006
d242658c
MP
70072011-04-13 Marek Polacek <mpolacek@redhat.com>
7008
7009 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7010
4a4106ca
TJB
70112011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7012
7013 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7014
26063d49
TJB
70152011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7016
7017 * breakpoint.c (save_breakpoints): Verify whether
7018 breakpoint_ops.print_recreate is defined before calling it.
7019
7782b183
GB
70202011-04-11 Gary Benson <gbenson@redhat.com>
7021
7022 Fix failure with --enable-maintainer-mode.
7023 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7024
e8930875
JK
70252011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 Code cleanup.
7028 * symtab.c (search_symbols): Reorder the KIND description in the
7029 function comment. Remove the unused 4th element of types, types2,
7030 types3 and types4. New gdb_assert on KIND.
7031 (symtab_symbol_info): Remove the unused 4th element of classnames.
7032 New gdb_assert on KIND.
7033 * symtab.h (enum search_domain): New warning in the enum comment.
7034 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7035 TYPES_DOMAIN.
7036
b4f2f049
JK
70372011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7038
7039 Fix crash of gdb save-index on a STABS file.
7040 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7041 PSYMTABS_ADDRMAP.
7042
60d5a603
JK
70432011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7044
7045 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7046 * dwarf2read.c: Include ctype.h.
7047 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7048 functions.
7049 (dwarf2_add_field): Fix new_field->accessibility by calling
7050 dwarf2_default_access_attribute. Restructure setting accessibility
7051 vs. virtuality.
7052 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7053 is_private and is_protected by calling
7054 dwarf2_default_access_attribute.
7055
e0f68161
KB
70562011-04-08 Kevin Buettner <kevinb@redhat.com>
7057
7058 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7059 to the initialization.
7060
2e1aae43
SE
70612011-04-08 Steve Ellcey <sje@cup.hp.com>
7062
7063 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7064 initalization.
7065
c6ca3dab
PM
70662011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7067
7068 Remove support for old Cygwin 1.5 versions.
7069 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7070 function on old Cygwin version.
7071 * windows-nat.c: Remove cygwin version check and always define
7072 __USEWIDE for Cygwin compilation.
7073
bd18283a
YQ
70742011-04-07 Yao Qi <yao@codesourcery.com>
7075
7076 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7077 and TO.
7078 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7079 (arm_copy_svc): Remove parameters INSN and TO.
7080 (decode_svc_copro): Update caller.
7081 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7082 from function pointer `copy_svc_os'.
7083
8c8dba6d
YQ
70842011-04-07 Yao Qi <yao@codesourcery.com>
7085
7086 * arm-tdep.c (cleanup_branch): Set a correct return address in
7087 LR for ARM and Thumb.
7088
59d7bcaf
JK
70892011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7090
7091 Code cleanup.
7092 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7093 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7094 in the function comment, a new note on values compatibility.
7095 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7096 * symtab.h (SYMBOL_HASH_NEXT): New.
7097
e7db58ea
TJB
70982011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7099
7100 * ppc-linux-nat.c (check_condition): Add len output parameter.
7101 Set it based on the memory region referenced in the condition
7102 expression. Update all callers.
7103
9f743ef6
JK
71042011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 Fix crash regression on systems featuring .gdb_index.
7107 * objfiles.c (free_objfile): Move the
7108 forget_cached_source_info_for_objfile call earlier. Comment it.
7109 Extend the comment for objfile_free_data.
7110
9182c5bc
JK
71112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7112
7113 Fix regression of displaying the debug format.
7114 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7115 subfile.
7116
04bd08de
TT
71172011-04-04 Tom Tromey <tromey@redhat.com>
7118
7119 * cli/cli-interp.c (struct captured_execute_command_args):
7120 Remove.
7121 (do_captured_execute_command): Remove.
7122 (safe_execute_command): Use TRY_CATCH.
7123 * cli/cli-script.c (struct wrapped_read_command_file_args):
7124 Remove.
7125 (wrapped_read_command_file): Remove.
7126 (script_from_file): Use TRY_CATCH.
7127 * exceptions.c (catch_exception): Remove.
7128 * exceptions.h (catch_exception): Remove.
7129 (deprecated_throw_reason): Update comment.
7130 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7131 argument to 'context'.
7132 (mi_execute_command): Use TRY_CATCH.
7133 * remote.c (struct start_remote_args): Remove.
7134 (remote_start_remote): Update; change arguments.
7135 (remote_open_1): Use TRY_CATCH.
7136
58438ac1
TT
71372011-04-04 Tom Tromey <tromey@redhat.com>
7138
7139 * tracepoint.c (scope_info): Update.
7140 * symtab.c (decode_line_spec): Update.
7141 * python/python.c (gdbpy_decode_line): Update.
7142 * linespec.h (decode_line_1): Update.
7143 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7144 (decode_compound, find_method, symtab_from_filename)
7145 (decode_variable): Likewise.
7146 * cli/cli-cmds.c (edit_command): Update.
7147 (list_command): Update.
7148 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7149 argument.
7150 (create_breakpoint): Update.
7151 (until_break_command): Update.
7152 (addr_string_to_sals): Update.
7153 (decode_line_spec_1): Update.
7154
b78a6381
TT
71552011-04-04 Tom Tromey <tromey@redhat.com>
7156
7157 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7158 (do_captured_parse_breakpoint): Remove.
7159 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7160 Use TRY_CATCH directly.
7161
00174a86
TT
71622011-04-04 Tom Tromey <tromey@redhat.com>
7163
7164 * symtab.h (free_symtab): Remove.
7165 (forget_cached_source_info_for_objfile): Declare.
7166 * symmisc.c (free_symtab): Remove.
7167 * source.c (forget_cached_source_info_for_objfile): New function.
7168 (forget_cached_source_info): Use it.
7169 * objfiles.c (free_objfile): Simplify check before calling
7170 clear_current_source_symtab_and_line. Call
7171 forget_cached_source_info_for_objfile.
7172
30cc903e
TT
71732011-04-04 Tom Tromey <tromey@redhat.com>
7174
7175 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7176 (new_symtab): Don't set `free_code' on symtab.
7177 (new_linetable): Properly handle size==0.
7178 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7179 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7180 free_func.
7181 * jv-lang.c (struct jv_per_objfile_data): New.
7182 (jv_per_objfile_free): Free the data.
7183 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7184 (get_java_class_symtab): Set the `dict' field on the
7185 jv_per_objfile_data.
7186 (free_class_block): Remove.
7187 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7188 the symtab.
7189
0c2e6019
TT
71902011-04-04 Tom Tromey <tromey@redhat.com>
7191
7192 * symfile.c (reread_symbols): Update.
7193 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7194 field.
7195 * objfiles.c (allocate_objfile): Update.
7196 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7197 declare.
7198 * cp-namespace.c (lookup_symbol_file): Don't call
7199 lookup_possible_namespace_symbol.
7200 (initialize_namespace_symtab, get_possible_namespace_block)
7201 (free_namespace_block, cp_check_possible_namespace_symbols)
7202 (check_possible_namespace_symbols_loop)
7203 (check_one_possible_namespace_symbol)
7204 (lookup_possible_namespace_symbol): Remove.
7205 (maintenance_cplus_namespace): Replace with notice.
7206 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7207
554d387d
TT
72082011-04-04 Tom Tromey <tromey@redhat.com>
7209
7210 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7211 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7212 * symmisc.c (free_symtab): Don't free debugformat.
7213 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7214 (record_debugformat, record_producer): Document.
7215 * buildsym.c (end_symtab): Don't save debugformat and producer
7216 names on obstack.
7217 (end_symtab): Don't free debugformat and producer fields.
7218 (record_debugformat): Don't call xstrdup.
7219 (record_producer): Likewise.
7220
d4d4db8a
TT
72212011-04-04 Tom Tromey <tromey@redhat.com>
7222
7223 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7224 (source_line_charpos, source_charpos_line): Remove.
7225
8903c50d
TT
72262011-04-04 Tom Tromey <tromey@redhat.com>
7227
7228 * symtab.h (domain_enum): Split in two...
7229 (enum search_domain): New.
7230 (search_symbols): Update.
7231 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7232 redundant declarations.
7233 (search_symbols): Change 'kind' argument to search_domain.
7234 Update.
7235 (print_symbol_info): Likewise.
7236 (symtab_symbol_info): Likewise.
7237 * symfile.h (struct quick_symbol_functions)
7238 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7239 <expand_symtabs_matching>: Likewise.
7240 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7241 (expand_symtabs_matching_via_partial): Update.
7242 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7243 (dw2_expand_symtabs_for_function): Update.
7244 * block.h: Moved anonymous enum...
7245 * defs.h (enum block_enum): ... here. Now named.
7246
d9351f5f 72472011-04-03 Joel Brobecker <brobecker@adacore.com>
7248
7249 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7250 * version.in: Bump version to 7.3.50.20110403-cvs.
7251
d6e00af6
JB
72522011-04-03 Joel Brobecker <brobecker@adacore.com>
7253
7254 * NEWS: Create a new section for the next release branch.
7255 Rename the section of the current branch, now that it has
7256 been cut.
7257
2b9e5ea6
UW
72582011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7259
7260 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7261 for "fpscr" in target description.
7262
0cf03b49
JK
72632011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7264
7265 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7266 initialize it. Delay HASH initialization. Strip the part after open
7267 parenthesis for languages with qualifiers. Call do_cleanups.
7268
5d901a73
TT
72692011-04-01 Tom Tromey <tromey@redhat.com>
7270
7271 * utils.c (report_command_stats): Don't print `-' for negative
7272 number.
7273
b0dd7688
JB
72742011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7275
7276 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7277 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7278 typedefs.
7279
956a9fb9
JB
72802011-04-01 Joel Brobecker <brobecker@adacore.com>
7281
7282 * breakpoint.h (bpdisp_text): Add declaration.
7283 * breakpoint.c (bpdisp_text): Make non-static.
7284 * ada-lang.c: #include "mi/mi-common.h".
7285 (print_it_exception): Rewrite to improve GDB/MI output.
7286
3352110b
PA
72872011-04-01 Pedro Alves <pedro@codesourcery.com>
7288
7289 * arm-tdep.h (struct address_space): Add forward declaration.
7290
18819fa6
UW
72912011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7292
7293 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7294 * arm-tdep.c (arm_override_mode): New global.
7295 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7296 execution mode heuristics.
7297 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7298 second single-step breakpoint if needed, using
7299 arm_insert_single_step_breakpoint.
7300 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7301 ARM execution mode, do not call thumb_get_next_pc_raw.
7302 (arm_get_next_pc): Encode execution mode in return value. Call
7303 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7304 (arm_insert_single_step_breakpoint): New function.
7305 (arm_software_single_step): Call it.
7306 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7307 argument to return execution mode of sigreturn target.
7308 (arm_linux_syscall_next_pc): Use it.
7309 (arm_linux_copy_svc): Update call.
7310 (arm_linux_software_single_step): Call
7311 arm_insert_single_step_breakpoint.
7312
a6e293d1
JK
73132011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7316 the comment.
7317
a4c8e806
TT
73182011-03-31 Tom Tromey <tromey@redhat.com>
7319
7320 * varobj.c (update_dynamic_varobj_children): Properly handle
7321 errors from iterator.
7322
df5c6c50
JK
73232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7324
7325 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7326 struct linkage name twice.
7327
1dae3efc
TT
73282011-03-31 Tom Tromey <tromey@redhat.com>
7329
7330 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7331 missing ">" to message.
7332
f4f7ab05
TT
73332011-03-31 Tom Tromey <tromey@redhat.com>
7334
7335 * varobj.c (instantiate_pretty_printer): Remove duplicate
7336 'return'.
7337
fcf250e2
UW
73382011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7339
7340 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7341 if neither saved value nor register available (e.g. signal frame).
7342
ee6436e3
TJB
73432011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7344
7345 * macroexp.c (expand): Avoid uninitialized variable
7346 compiler warning.
7347
423f41a5
TJB
73482011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7349
7350 * breakpoint.c (break_range_command): Fix typo in comment.
7351
f1310107
TJB
73522011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7353 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7354
7355 Implement support for PowerPC BookE ranged breakpoints.
7356 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7357 * breakpoint.h (struct bp_target_info) <length>: New member
7358 variable.
7359 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7360 instead of struct breakpoint as argument, and also add ASPACE
7361 and BP_ADDR arguments. Update all callers.
7362 (struct breakpoint_ops) <print_one_detail>: New method.
7363 (struct breakpoint) <addr_string_range_end>: New member variable.
7364 * breakpoint.c (breakpoint_location_address_match): Add function
7365 prototype.
7366 (insert_bp_location): Set bl->target_info.length.
7367 (breakpoint_here_p): Call breakpoint_location_address_match.
7368 (moribund_breakpoint_here_p): Likewise.
7369 (regular_breakpoint_inserted_here_p): Likewise.
7370 (breakpoint_thread_match): Likewise.
7371 (bpstat_stop_status): Likewise.
7372 (bpstat_check_location): Move call to
7373 breakpoint_ops.breakpoint_hit to the top.
7374 (print_one_breakpoint_location): Call
7375 breakpoint_ops.print_one_detail if available.
7376 (breakpoint_address_match_range): New function.
7377 (breakpoint_location_address_match): Likewise.
7378 (breakpoint_locations_match): Compare the length field of the
7379 locations too.
7380 (hw_breakpoint_used_count): Count resources used by all locations
7381 in a breakpoint, and use breakpoint_ops.resources_needed if
7382 available.
7383 (breakpoint_hit_ranged_breakpoint): New function.
7384 (resources_needed_ranged_breakpoint): Likewise.
7385 (print_it_ranged_breakpoint): Likewise.
7386 (print_one_ranged_breakpoint): Likewise.
7387 (print_one_detail_ranged_breakpoint): Likewise.
7388 (print_mention_ranged_breakpoint): Likewise.
7389 (print_recreate_ranged_breakpoint): Likewise.
7390 (ranged_breakpoint_ops): New structure.
7391 (find_breakpoint_range_end): New function.
7392 (break_range_command): Likewise.
7393 (delete_breakpoint): Free addr_string_range_end.
7394 (update_breakpoint_locations): Add SALS_END argument. Update
7395 all callers. Calculate breakpoint length if a non-zero SALS_END
7396 is given. Call breakpoint_locations_match instead of
7397 breakpoint_address_match.
7398 (reset_breakpoint): Find SaL of the end of the range if B is a
7399 ranged breakpoint.
7400 (_initialize_breakpoint): Register break-range command.
7401 * defs.h (print_core_address): Add function prototype.
7402 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7403 function.
7404 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7405 (ppc_linux_remove_hw_breakpoint): Likewise.
7406 (_initialize_ppc_linux_nat): Initialize
7407 to_ranged_break_num_registers.
7408 * target.c (update_current_target): Add comment about
7409 to_ranged_break_num_registers.
7410 (target_ranged_break_num_registers): New function.
7411 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7412 New method.
7413 (target_ranged_break_num_registers): Add function prototype.
7414 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7415 * utils.c (print_core_address): ... here.
7416
02d20e4a
UW
74172011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7418
7419 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7420 variable compiler warning.
7421
ef23e705
TJB
74222011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7423
7424 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7425 code from here ...
7426 (re_set_breakpoint): ... to here ...
7427 (addr_string_to_sals): ... and here.
7428
311e6ab3
PM
74292011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7430
7431 * Makefile.in (SFILES): Add missing C sources.
7432 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7433 Add missing headers.
7434
acd1d99c
MF
74352011-03-29 Mike Frysinger <vapier@gentoo.org>
7436
7437 * .gitignore: New file.
7438
66ee2731
MF
74392011-03-29 Mike Frysinger <vapier@gentoo.org>
7440
7441 * NEWS: Mention new cfi device simulation.
7442
53832f31
TT
74432011-03-29 Tom Tromey <tromey@redhat.com>
7444
7445 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7446 otherwise anonymous types.
7447 (dwarf2_name): Likewise.
7448 * valops.c (value_struct_elt_for_reference): Refine artificial
7449 type logic. Call error if j==-1.
7450
09b58708
JK
74512011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7452
7453 Fix false GCC warning.
7454 * infcall.c (find_function_addr): Initialize funaddr.
7455
6023c606
PM
74562011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7457
7458 Fix mingw compilation with --enable-targets=all.
7459 * remote-mips.c (gdb_usleep.h): Include header.
7460 (mips_enter_debug): Use gdb_usleep instead of sleep.
7461
0e30163f
JK
74622011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 Support resolution of STT_GNU_IFUNC via breakpoints.
7465 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7466 bp_gnu_ifunc_resolver_return.
7467 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7468 the loop. Support bp_gnu_ifunc_resolver and
7469 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7470 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7471 breakpoints.
7472 (bptype_string, print_one_breakpoint_location): Support
7473 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7474 (user_settable_breakpoint): Return true also for
7475 bp_gnu_ifunc_resolver.
7476 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7477 bp_gnu_ifunc_resolver_return.
7478 (set_breakpoint_location_function): New parameter explicit_loc,
7479 describe it. Call find_pc_partial_function_gnu_ifunc with new
7480 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7481 EXPLICIT_LOC is not set.
7482 (set_raw_breakpoint): Set EXPLICIT_LOC for
7483 set_breakpoint_location_function.
7484 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7485 set_breakpoint_location_function.
7486 (mention): Support bp_gnu_ifunc_resolver and
7487 bp_gnu_ifunc_resolver_return.
7488 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7489 set_breakpoint_location_function.
7490 (update_breakpoint_locations): Remove static.
7491 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7492 bp_gnu_ifunc_resolver_return.
7493 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7494 bp_gnu_ifunc_resolver_return.
7495 (update_breakpoint_locations): New declaration.
7496 * elfread.c: Include gdbthread.h and regcache.h.
7497 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7498 functions.
7499 (elf_gnu_ifunc_fns): Install them.
7500 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7501 (stub_gnu_ifunc_resolver_return_stop): New functions.
7502 (stub_gnu_ifunc_fns): Install them.
7503 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7504 and gnu_ifunc_resolver_return_stop.
7505 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7506
07be84bf
JK
75072011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7508
7509 STT_GNU_IFUNC reader implementation.
7510 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7511 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7512 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7513 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7514 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7515 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7516 (elf_gnu_ifunc_resolve_addr): New.
7517 (elf_symfile_read): Call elf_rel_plt_read.
7518 (elf_gnu_ifunc_fns): New.
7519 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7520 Install elf_gnu_ifunc_fns.
7521 * infcall.c (find_function_return_type): New function.
7522 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7523 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7524 (stub_gnu_ifunc_resolve_name): New functions.
7525 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7526 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7527 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7528
300f8e10
JK
75292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7530
7531 Code cleanup for later STT_GNU_IFUNC support.
7532 * infcall.c (find_function_addr): Remove variable code, use explicit
7533 dereferences for it. Move VALUE_TYPE initialization later.
7534
11c81455
JK
75352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7536
7537 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7538 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7539 (clear_pc_function_cache): Clear it.
7540 (find_pc_partial_function): Rename to ...
7541 (find_pc_partial_function_gnu_ifunc): ... this function. New
7542 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7543 (find_pc_partial_function): New wrapper for this function.
7544 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7545
0875794a
JK
75462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 GDB internal type support for STT_GNU_IFUNC.
7549 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7550 (elf_symtab_read): Set mst_text_gnu_ifunc for
7551 BSF_GNU_INDIRECT_FUNCTION.
7552 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7553 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7554 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7555 nodebug_got_plt_symbol.
7556 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7557 (TYPE_GNU_IFUNC): New.
7558 (struct main_type): New field flag_gnu_ifunc.
7559 (struct builtin_type): New field builtin_func_func.
7560 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7561 nodebug_got_plt_symbol.
7562 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7563 (in_gnu_ifunc_stub): New.
7564 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7565 mst_text_gnu_ifunc.
7566 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7567 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7568 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7569 in_gnu_ifunc_stub.
7570 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7571 * symtab.c (search_symbols): Likewise.
7572 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7573 and mst_slot_got_plt.
7574 (in_gnu_ifunc_stub): New declaration.
7575
d0fb5eae
JK
75762011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 Support a ring of related breakpoints.
7579 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7580 other functions, add gdb_assert.
7581 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7582 watchpoint_del_at_next_stop.
7583 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7584 (bpstat_stop_status): Handle ring in related_breakpoint.
7585 (set_raw_breakpoint_without_location): Initialize ring in
7586 related_breakpoint.
7587 (delete_breakpoint): Handle ring in related_breakpoint, use
7588 watchpoint_del_at_next_stop.
7589 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7590
9cded63f
TT
75912011-03-28 Tom Tromey <tromey@redhat.com>
7592
7593 PR symtab/12441:
7594 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7595 with `language_minimal'.
7596
467d42c4
UW
75972011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7598
7599 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7600 instead of checking for STT_ARM_TFUNC symbol type.
7601
62853458
TT
76022011-03-25 Tom Tromey <tromey@redhat.com>
7603
7604 * linespec.c (symbol_found): Restore line-based result for
7605 non-LOC_LABEL symbols.
7606
a7417d46
KT
76072011-03-25 Kai Tietz <ktietz@redhat.com>
7608
7609 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7610 instead of strcmp for comparison.
7611 (tui_source_is_displayed): Likewise.
7612 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7613
55f1336d
TT
76142011-03-24 Mark Wielaard <mjw@redhat.com>
7615
f33edef8
PP
7616 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7617 complaint.
7618 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7619 (find_partial_die_in_comp_unit): Likewise in comment.
7620 (read_attribute_value): Likewise.
7621 (lookup_die_type): Likewise.
7622 (dwarf_form_name): Likewise.
7623 (dump_die_shallow): Likewise.
7624 (follow_die_ref_or_sig): Likewise.
55f1336d 7625
9ef07c8c
TT
76262011-03-24 Tom Tromey <tromey@redhat.com>
7627
7628 PR breakpoints/11816:
7629 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7630 (decode_compound): Update.
7631 (find_function_symbol): New function.
7632 (decode_dollar): Update.
7633 (decode_label): Add 'function_symbol' parameter. Handle
7634 function-relative labels.
7635 (decode_variable): Update.
7636 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7637 not its line. Set `special_display' and canonical name for
7638 labels.
7639
56435ebe
TT
76402011-03-24 Tom Tromey <tromey@redhat.com>
7641
7642 * linespec.h (struct linespec_result) <special_display>: New
7643 field.
7644 * breakpoint.h (struct breakpoint) <display_canonical>: New
7645 field.
7646 * breakpoint.c (print_breakpoint_location): Respect
7647 display_canonical.
7648 (create_breakpoint_sal): Add 'display_canonical' parameter.
7649 (create_breakpoints_sal): Update.
7650 (create_breakpoint): Update.
7651
7efd8fc2
TT
76522011-03-24 Tom Tromey <tromey@redhat.com>
7653
7654 * symtab.c (decode_line_spec): Update.
7655 * linespec.c (build_canonical_line_spec): Change type of
7656 'canonical'.
7657 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7658 (find_method, decode_all_digits, decode_dollar, decode_label)
7659 (symbol_found): Likewise.
7660 (init_linespec_result): New function.
7661 * breakpoint.c (struct captured_parse_breakpoint_args)
7662 <canonical_p>: New field, replaces addr_string_p.
7663 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7664 'addr_string'.
7665 (parse_breakpoint_sals): Likewise.
7666 (do_captured_parse_breakpoint): Update.
7667 (create_breakpoint): Use struct linespec_result.
7668 (until_break_command): Update.
7669 (breakpoint_re_set_one): Update.
7670 (decode_line_spec_1): Update.
7671 * linespec.h (struct linespec_result): New.
7672 (init_linespec_result): Declare.
7673
788c8b10
PA
76742011-03-23 Pedro Alves <pedro@codesourcery.com>
7675
7676 * regcache.c (regcache_raw_read): If the target didn't supply a
7677 given raw register, mark it as unavailable.
7678
0ba1096a
KT
76792011-03-23 Kai Tietz <ktietz@redhat.com>
7680
7681 * breakpoint.c (clear_command): Use filename_cmp
7682 instead of strcmp for comparison.
7683 * buildsym.c (watch_main_source_file_lossage): Likewise.
7684 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7685 checking just for slash.
7686 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7687 strrchr and filename_cmp instead of strcmp for filenames.
7688 (add_old_header_file): Use filename_cmp
7689 instead of strcmp for comparison.
7690 * exec.c (exec_set_section_address): Likewise.
7691 * macrotab.c (macro_lookup_inclusion): Likewise.
7692 (macro_lookup_inclusion): Likewise.
7693 * elfread.c (_initialize_elfread): Likewise.
7694 (elfstab_offset_sections): Likewise.
7695 (elfstab_offset_sections): Use lbasename instead of
7696 strrchr.
7697 * mdebugread.c (parse_partial_symbols): Likewise.
7698 (arse_partial_symbols): Use filename_(n)cmp instead of
7699 str(n)cmp for comparison.
7700 * minsyms.c (lookup_minimal_symbol): Likewise.
7701 * psymtab.c (read_psymtabs_with_filename): Likewise.
7702 * solib.c (solib_read_symbols): Likewise.
7703 (reload_shared_libraries_1): Likewise.
7704 * symmisc.c (maintenance_print_symbols): Likewise.
7705 * symfile.c (separate_debug_file_exists): Likewise.
7706 (reread_symbols): Likewise.
7707 (find_separate_debug_file_by_debuglink): Likewise.
7708 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7709 * source.c (add_path): Likewise.
7710 * symtab.c (filename_seen): Likewise.
7711 (file_matches): Likewise.
7712 (print_symbol_info): Likewise.
7713 (maybe_add_partial_symtab_filename): Likewise.
7714 (make_source_files_completion_list): Likewise.
7715 * xml-syscall.c (init_sysinfo): Likewise.
7716 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7717 IS_DIR_SEPARATOR for checking for trailing path separator.
7718
dd90784c
JK
77192011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7722 label abort_expression.
7723 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7724 DWARF_VALUE_OPTIMIZED_OUT.
7725
3167638f
JK
77262011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Code cleanup.
7729 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7730 to linkage_name. Invert its value. Update the function comment.
7731 (c_type_print_varspec_suffix): Invert it at the caller.
7732 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7733
ce406537
PA
77342011-03-22 Pedro Alves <pedro@codesourcery.com>
7735
7736 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7737 errors when reading the `stop_pc'.
7738 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7739 get_frame_pc.
7740
da5d4055
PM
77412011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7742
7743 * NEWS: Document gdb.Write stream keyword.
7744
29e0eb9c
JK
77452011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 Revert:
7748 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7749 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7750 (dwarf2_add_field): Fix new_field->accessibility for
7751 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7752
05775840
PM
77532011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7754
f33edef8 7755 PR python/12183
05775840
PM
7756
7757 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7758 other error classes. Do not print stack trace.
7759
a0cb7835
JK
77602011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7761
7762 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7763 (dwarf2_add_field): Fix new_field->accessibility for
7764 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7765
d19f7eee
UW
77662011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7767
7768 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7769 encountering a load via a non-SP register.
7770
4a2fbb50
UW
77712011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7772
7773 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7774 field in returned unwinder.
7775
3489610d
JB
77762012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7777
7778 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7779
8c1a34e7
JB
77802012-03-21 Joel Brobecker <brobecker@adacore.com>
7781
7782 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7783 of xmalloc.
7784
8fbca658
PA
77852012-03-18 Pedro Alves <pedro@codesourcery.com>
7786
7787 * frame.c (frame_unwind_register): Throw an error if unwinding the
7788 register failed.
7789 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7790 an unwind stop reason.
7791 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7792 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7793 UNWIND_UNAVAILABLE>: New.
7794 * inline-frame.c (inline_frame_unwind): Install
7795 default_frame_unwind_stop_reason.
7796 * frame-unwind.c: Include "exceptions.h".
7797 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7798 (default_frame_unwind_stop_reason): New.
7799 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7800 (default_frame_unwind_stop_reason): Declare.
7801 (struct frame_unwind) <stop_reason>: New function pointer.
7802
7803 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7804 * dwarf2-frame.c: Include exceptions.h.
7805 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7806 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7807 computing the CFA. If such an error was thrown, set
7808 unavailable_retaddr.
7809 (dwarf2_frame_unwind_stop_reason): New.
7810 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7811 unavailable.
7812 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7813 (dwarf2_signal_frame_unwind): Ditto.
7814
7815 * amd64-tdep.c: Include "exceptions.h".
7816 (struct amd64_frame_cache): New field "base_p".
7817 (amd64_init_frame_cache): Clear it.
7818 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7819 Avoid reading registers with functions that throw if the register
7820 is not necessary to compute the frame base.
7821 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7822 swallowing NOT_AVAILABLE_ERROR.
7823 (amd64_frame_unwind_stop_reason): New.
7824 (amd64_frame_this_id): Don't build a frame id if the frame base
7825 was unavailable.
7826 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7827 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7828 base_p if the frame base was computable.
7829 (amd64_sigtramp_frame_unwind_stop_reason): New.
7830 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7831 frame base was unavailable.
7832 (amd64_sigtramp_frame_unwind): Install
7833 amd64_sigtramp_frame_unwind_stop_reason.
7834 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7835 base_p if the frame base was computable.
7836 (amd64_epilogue_frame_unwind_stop_reason): New.
7837 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7838 frame base was unavailable.
7839 (amd64_epilogue_frame_unwind): Install
7840 amd64_epilogue_frame_unwind_stop_reason.
7841 * i386-tdep.c: Include "exceptions.h".
7842 (struct i386_frame_cache): New field "base_p".
7843 (i386_init_frame_cache): Clear it.
7844 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7845 Avoid reading registers with functions that throw if the register
7846 is not necessary to compute the frame base.
7847 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7848 swallowing NOT_AVAILABLE_ERROR.
7849 (i386_frame_unwind_stop_reason): New.
7850 (i386_frame_this_id): Don't build a frame id if the frame base was
7851 unavailable.
7852 (i386_frame_prev_register): Handle unavailable SP.
7853 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7854 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7855 base_p if the frame base was computable.
7856 (i386_epilogue_frame_unwind_stop_reason): New.
7857 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7858 base was unavailable.
7859 (i386_epilogue_frame_unwind): Install
7860 i386_epilogue_frame_unwind_stop_reason.
7861 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7862 base_p if the frame base was computable.
7863 (i386_sigtramp_frame_unwind_stop_reason): New.
7864 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7865 base was unavailable.
7866 (i386_sigtramp_frame_unwind): Install
7867 i386_sigtramp_frame_unwind_stop_reason.
7868 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7869 type's size, not the register's.
7870 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7871
7872 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7873 default_frame_unwind_stop_reason.
7874 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7875 (alpha_heuristic_frame_unwind): Ditto.
7876 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7877 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7878 * avr-tdep.c (avr_frame_unwind): Ditto.
7879 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7880 Ditto.
7881 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7882 * frv-tdep.c (frv_frame_unwind): Ditto.
7883 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7884 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7885 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7886 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7887 (hppa_stub_frame_unwind): Ditto.
7888 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7889 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7890 (ia64_libunwind_frame_unwind)
7891 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7892 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7893 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7894 * m32c-tdep.c (m32c_unwind): Ditto.
7895 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7896 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7897 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7898 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7899 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7900 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7901 * mep-tdep.c (mep_frame_unwind): Ditto.
7902 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7903 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7904 (mips_stub_frame_unwind): Ditto.
7905 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7906 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7907 * mt-tdep.c (mt_frame_unwind): Ditto.
7908 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7909 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7910 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7911 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7912 (s390_sigtramp_frame_unwind): Ditto.
7913 * score-tdep.c (score_prologue_unwind): Ditto.
7914 * sh-tdep.c (sh_frame_unwind): Ditto.
7915 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7916 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7917 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7918 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7919 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7920 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7921 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7922 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7923 (sparc64obsd_trapframe_unwind): Ditto.
7924 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7925 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7926 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7927 * v850-tdep.c (v850_frame_unwind): Ditto.
7928 * vax-tdep.c (vax_frame_unwind): Ditto.
7929 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7930 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7931 * xtensa-tdep.c (xtensa_unwind): Ditto.
7932
f23d1b92
PA
79332011-03-18 Pedro Alves <pedro@codesourcery.com>
7934
7935 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7936 there's always a frame. Use get_frame_pc_if_available instead of
7937 get_frame_pc, and if there's no PC available, don't look up a
7938 symtab.
7939
1d4f5741
PA
79402011-03-18 Pedro Alves <pedro@codesourcery.com>
7941
7942 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7943 unavailable PC.
7944
dba09041
PA
79452011-03-18 Pedro Alves <pedro@codesourcery.com>
7946
7947 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7948 gracefully.
7949
9a26e44c
PA
79502011-03-18 Pedro Alves <pedro@codesourcery.com>
7951
7952 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7953 * frame.c (frame_unwind_caller_pc_if_available): New.
7954 * stack.c (frame_info): Handle unavailable PC.
7955
79562011-03-18 Pedro Alves <pedro@codesourcery.com>
7957
7958 * frame.c (frame_unwind_pc): Rename to ...
7959 (frame_unwind_pc_if_available): ... this. New `pc' output
7960 parameter. Change return type to int. Gracefully handle
7961 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7962 happened, or 1 otherwise.
7963 (frame_unwind_pc): Reimplement on top of
7964 frame_unwind_pc_if_available.
7965 (get_frame_func): Rename to ...
7966 (get_frame_func_if_available): New `pc' output parameter. Change
7967 return type to int. Gracefully handle the PC not being available.
7968 (get_frame_func): Reimplement on top of
7969 get_frame_func_if_available.
7970 (select_frame): Handle the PC being unavailable.
7971 (get_prev_frame): Handle the PC being unavailable.
7972 (get_frame_pc_if_available): New.
7973 (get_frame_address_in_block_if_available): New.
7974 (find_frame_sal): Handle the frame PC not being available.
7975 * frame.h (get_frame_pc_if_available): Declare.
7976 (get_frame_address_in_block_if_available): Declare.
7977 (get_frame_func_if_available): Declare.
7978 * stack.c (print_frame_info): Handle the PC being unavailable.
7979 (find_frame_funname): Ditto.
7980 (print_frame): Handle the PC being unavailable.
7981 (get_frame_language): Ditto.
7982 * blockframe.c (get_frame_block): Ditto.
7983 * macroscope.c (default_macro_scope): Ditto.
7984 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7985
79862011-03-18 Pedro Alves <pedro@codesourcery.com>
7987
7988 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7989 NOT_AVAILABLE_ERROR when evaluating the location expression.
7990
79912011-03-18 Pedro Alves <pedro@codesourcery.com>
7992
7993 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7994 returning that the register piece is unavailable/optimized out.
7995 (write_pieced_value): Handle get_frame_register_bytes returning
7996 that the register piece is unavailable/optimized out when doing a
7997 read-modify write of a bitfield.
7998 * findvar.c (value_from_register): Handle get_frame_register_bytes
7999 returning that the register piece is unavailable/optimized out.
8000 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8001 and `unavailablep'. Throw error on bad debug info. Use
8002 frame_register instead of frame_register_read, to fill in the new
8003 arguments.
8004 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8005 and `unavailablep'.
8006 * valops.c: (value_assign): Adjust, and handle
8007 get_frame_register_bytes failing.
8008 * spu-tdep.c: Include exceptions.h.
8009 (spu_software_single_step): Adjust, and handle
8010 get_frame_register_bytes failing.
8011 (spu_get_longjmp_target): Ditto.
8012 * gdbarch.sh (register_to_value): Change to return int. New
8013 parameters `optimizedp' and `unavailablep'.
8014 * gdbarch.h, gdbarch.c: Regenerate.
8015 * i386-tdep.c (i386_register_to_value): Adjust to new
8016 gdbarch_register_to_value interface.
8017 * i387-tdep.c (i387_register_to_value): Ditto.
8018 * i387-tdep.h (i387_register_to_value): Ditto.
8019 * alpha-tdep.c (alpha_register_to_value): Ditto.
8020 * ia64-tdep.c (ia64_register_to_value): Ditto.
8021 * m68k-tdep.c (m68k_register_to_value): Ditto.
8022 * mips-tdep.c (mips_register_to_value): Ditto.
8023 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8024
0fdb4f18
PA
80252011-03-18 Pedro Alves <pedro@codesourcery.com>
8026
8027 * findvar.c (value_of_register): Mark the value as unavailable, if
8028 the register is unavailable.
8029 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8030 (frame_register): New `unavailablep' parameter.
8031 (frame_register_read): Update comment.
8032 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8033 Set it if the register is unavailable. If the register is
8034 unavailable, clear the output buffer.
8035 (frame_register): New `unavailablep' parameter. Pass it down.
8036 (frame_unwind_register): Adjust.
8037 (put_frame_register): Adjust.
8038 (frame_register_read): Adjust. Also return false if the register
8039 is not available.
8040 (frame_register_unwind_location): Adjust.
8041 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8042 is unavailable, mark the value accordingly.
8043 * stack.c (frame_info): Handle unavailable registers.
8044
e69aa73e
PA
80452011-03-18 Pedro Alves <pedro@codesourcery.com>
8046
8047 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8048 simplify, using regcache_cooked_read.
8049
05d1431c
PA
80502011-03-18 Pedro Alves <pedro@codesourcery.com>
8051
8052 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8053 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8054 (regcache_raw_read_unsigned, regcache_raw_read_part)
8055 (regcache_cooked_read, regcache_cooked_read_signed)
8056 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8057 (regcache_cooked_read_ftype): Change return to enum
8058 register_status.
8059 * regcache.c: Include exceptions.h
8060 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8061 (do_cooked_read): Change return to enum register_status. Always
8062 forward to regcache_cooked_read.
8063 (regcache_raw_read): Change return to enum register_status. If
8064 the register is not REG_VALID, memset the buffer. Return the
8065 register's status.
8066 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8067 return the register's status.
8068 (regcache_raw_read_unsigned): Ditto.
8069 (regcache_cooked_read): Change return to enum register_status.
8070 Assert that with read-only regcaches, the register's status must
8071 be known. If the regcache is read-only, and the register is not
8072 REG_VALID, memset the buffer. Return the register's status.
8073 (regcache_cooked_read_signed): Change return to enum
8074 register_status. Handle non-REG_VALID registers and return the
8075 register's status.
8076 (regcache_cooked_read_unsigned): Change return to enum
8077 register_status. Handle non-REG_VALID registers and return the
8078 register's status.
8079 (regcache_xfer_part, regcache_raw_read_part)
8080 (regcache_cooked_read_part): Change return to enum
8081 register_status. Return the register's status.
8082 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8083 unavailable.
8084 (regcache_dump): Handle unavailable cooked registers.
8085 * frame.c (do_frame_register_read): Adjust interface to match
8086 regcache_cooked_read_ftype.
8087 * gdbarch.sh (pseudo_register_read): Change return to enum
8088 register_status.
8089 * gdbarch.h, gdbarch.c: Regenerate.
8090
8091 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8092 register_status.
8093 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8094 register_status. If reading a raw register indicates the raw
8095 register is not valid, return the raw register's status,
8096 otherwise, return REG_VALID.
8097 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8098 register_status. Handle non-REG_VALID raw registers and return
8099 the register's status.
8100 * arm-tdep.c (arm_neon_quad_read)
8101 (arm_pseudo_read): Change return to enum register_status. Handle
8102 non-REG_VALID raw registers and return the register's status.
8103 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8104 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8105 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8106 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8107 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8108 register_status.
8109 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8110 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8111 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8112 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8113 (m32c_pseudo_register_read): Change return to enum
8114 register_status. Adjust.
8115 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8116 enum register_status. Return the register's status.
8117 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8118 register_status. Return the register's status.
8119 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8120 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8121 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8122 * rs6000-tdep.c (move_ev_register_func): New typedef.
8123 (e500_move_ev_register): Use it. Change return to enum
8124 register_status. Return the register's status.
8125 (do_regcache_raw_read): New function.
8126 (do_regcache_raw_write): New function.
8127 (e500_pseudo_register_read): Change return to enum
8128 register_status. Return the register's status. Use
8129 do_regcache_raw_read.
8130 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8131 (dfp_pseudo_register_read): Change return to enum register_status.
8132 Return the register's status.
8133 (vsx_pseudo_register_read): Ditto.
8134 (efpr_pseudo_register_read): Ditto.
8135 (rs6000_pseudo_register_read): Ditto.
8136 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8137 register_status. Return the register's status.
8138 * sh64-tdep.c (pseudo_register_read_portions): New function.
8139 (sh64_pseudo_register_read): Change return to enum
8140 register_status. Use pseudo_register_read_portions. Return the
8141 register's status.
8142 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8143 register_status. Return the register's status.
8144 * sh-tdep.c (pseudo_register_read_portions): New function.
8145 (sh_pseudo_register_read): Change return to enum register_status.
8146 Use pseudo_register_read_portions. Return the register's status.
8147 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8148 enum register_status. Return the register's status.
8149 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8150 * spu-tdep.c (spu_pseudo_register_read_spu)
8151 (spu_pseudo_register_read): Ditto.
8152 * xtensa-tdep.c (xtensa_register_read_masked)
8153 (xtensa_pseudo_register_read): Ditto.
8154 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8155
e10abd8f
PM
81562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8157
8158 * python/py-value.c (valpy_getitem): Fix formatting of error function
8159 call.
8160
7ea6d463
PM
81612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8162
8163 ARI fixes: Add missing internationalization markups throughout
8164 C source files.
8165 * darwin-nat-info.c: Ditto.
8166 * record.c: Ditto.
8167 * remote.c: Ditto.
8168 * mi/mi-main.c: Ditto.
8169
001083c6
PM
81702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8171
8172 ARI fixes: Add missing internationalization markups throughout
8173 yacc files.
8174 * c-exp.y: Ditto.
8175 * cp-name-parser.y: Ditto.
8176 * f-exp.y: Ditto.
8177 * m2-exp.y: Ditto.
8178 * objc-exp.y: Ditto.
8179 * p-exp.y: Ditto.
8180
4f1cdeec
PM
81812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8182
8183 ARI fixes: Messages should have no trailing new lines.
8184 * darwin-nat.c (mach_check_error): Remove trailing new line from
8185 warning function call message.
8186 * record.c (bfdcore_read): Idem for error call.
8187
28e698f1
PM
81882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8189
8190 * common/signals.c (target_signal_from_host): Add _ markup to error
8191 function call message.
8192 (target_signal_to_host): Add _ markup and remove trailing new line
8193 from warning call message.
8194 (target_signal_from_command): Add _ markup to error function call
8195 message.
8196
99c3dc11
PM
81972011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8198
f33edef8 8199 PR python/12149
99c3dc11
PM
8200
8201 * python/python.c (gdbpy_write): Accept a stream argument and
8202 operate to the appropriate stream.
8203 (gdbpy_flush): Likewise.
8204 (_initialize_python): Add stream constants.
8205 (finish_python_initialization): Add GdbOutputErrorFile class.
8206
c20800be
KY
82072011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8208
8209 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8210
f4a1794a
KY
82112011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8212
8213 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8214 to store_signed_integer. Add debug message when relocating CALL
8215 instructions. Fix formatting of debug message.
8216 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8217
d4862372
JB
82182011-03-17 Joel Brobecker <brobecker@gnat.com>
8219
8220 * target.h (struct target_ops): Remove to_lookup_symbol field.
8221 (target_lookup_symbol): Delete macro.
8222 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8223 (update_current_target, setup_target_debug): Remove handling
8224 of to_lookup_symbol target_ops field.
8225 * ada-tasks.c (get_known_tasks_addr): Remove use of
8226 target_lookup_symbol.
8227 * coffread.c (coff_symtab_read): Likewise.
8228 * dbxread.c (read_dbx_symtab): Ditto.
8229
d645e32e
JB
82302011-03-17 Joel Brobecker <brobecker@gnat.com>
8231
8232 PR gdb/12116:
8233 * configure.ac: Add getthrds declaration check.
8234 * configure, config.in: Regenerate.
8235 * aix-thread.c (getthrds): Declare only if not already declared
8236 in procinfo.h. More declaration out of get_signaled_thread to
8237 global scope.
8238
29703da4
PM
82392011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8240
8241 * python/py-symtab.c: Populate symtab_object_methods,
8242 sal_object_methods.
8243 (stpy_is_valid): New function.
8244 (salpy_is_valid): Ditto.
8245 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8246 (sympy_is_valid): New function.
8247 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8248 (objfpy_is_valid): New function.
8249 * python/py-inferior.c: Populate inferior_object_methods.
8250 (infpy_is_valid): New function.
8251 * python/py-infthread.c: Populate thread_object_methods.
8252 (thpy_is_valid): New function.
8253 * python/py-block.c: Declare block_object_methods. Populate. Declare
8254 block_iterator_object_methods. Populate.
8255 (blpy_is_valid): New function.
8256 (blpy_iter_is_valid): Ditto.
8257
c00f8484
KS
82582011-03-16 Keith Seitz <keiths@redhat.com>
8259
8260 * linespec.c (find_methods): Canonicalize NAME before looking
8261 up the symbol.
8262 (name_end): New function.
8263 (keep_name_info): New function.
8264 (decode_line_1): Use keep_name_info.
8265 (decode_compound): Likewise.
8266 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8267 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8268
8269 PR c++/12273
8270 * linespec.c (locate_first_half): Keep overload information, too.
8271 (decode_compound): Use a string to represent break characters
8272 to escape the loop.
8273 If P points to a break character, do not increment it.
8274 For C++ and Java, keep overload information and relevant keywords.
8275 If we cannot find a symbol, search the minimal symbols.
8276
8277 PR c++/11734
8278 * linespec.c (decode_compound): Rename SAVED_ARG to
8279 THE_REAL_SAVED_ARG.
8280 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8281 single-quotes.
8282 Pass a valid block to lookup_symbol.
8283 (lookup_prefix_sym): Likewise.
8284 (find_method): Construct search name based on SYM_CLASS instead
8285 of SAVED_ARG.
8286 * psymtab.c (lookup_partial_symbol): Add language parameter.
8287 (lookup_symbol_aux_psymtabs): Likewise.
8288 Don't assume that the psymtab we found was the right one. Search
8289 for the desired symbol in the symtab to be certain.
8290 (psymtab_search_name): New function.
8291 (lookup_partial_symbol): Use psymtab_search_name.
8292 Add language parameter.
8293 (read_symtabs_for_function): Add language parameter and pass to
8294 lookup_partial_symbol.
8295 (find_symbol_file_from_partial): Likewise.
8296
c91513d8
PP
82972011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8298
8299 PR gdb/12528
8300 * dwarf2read.c (noop_record_line): New function.
8301 (dwarf_decode_lines): Ignore line tables for GCd functions.
8302
b37520b6
PM
83032011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8304
8305 Fix ARI warnings about new lines at the end of messages, which
8306 are unneeded as there is a new line added at the end of the message
8307 automatically.
8308 * darwin-nat.c (darwin_stop_inferior): Ditto.
8309 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8310 * dfp.c (decimal_to_number): Ditto.
8311 * exec.c (print_section_info): Ditto.
8312 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8313 * osdata.c (get_osdata): Ditto.
8314 * record.c (bfdcore_write): Ditto.
8315 * remote-mips.c (mips_readchar): Ditto.
8316 * remote.c (read_ptid): Ditto.
8317 * ser-mingw.c (ser_windows_raw): Ditto.
8318 * tracepoint.c (add_local_symbols): Ditto.
8319 * windows-nat.c (fake_create_process): Ditto.
8320
b08ee6a2
TT
83212011-03-16 Tom Tromey <tromey@redhat.com>
8322
8323 * tracepoint.c (stop_tracing): Don't declare.
8324 * event-top.c (after_char_processing_hook): Add `(void)'.
8325
9a6f1302
PM
83262011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8327
8328 * NEWS: Add Parameter sub-classing description.
8329
7ceb86b1
KT
83302011-03-16 Kai Tietz <ktietz@redhat.com>
8331
8332 * MAINTAINERS: Update my e-mail address.
8333
efeff6cf
AT
83342011-03-15 Andreas Tobler <andreast@fgznet.ch>
8335
8336 * MAINTAINERS: Add myself for write after approval privileges.
8337
681c238c
MS
83382011-03-15 Michael Snyder <msnyder@vmware.com>
8339
f3df5b08
MS
8340 * frame.c (find_frame_sal): Assert sym is not null.
8341
13f6513c
MS
8342 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8343
50412521
MS
8344 * objc-lang.c (selectors_info): Check strchr for null result.
8345
681c238c
MS
8346 * stabsread.c (define_symbol): Guard against bad stabstring input.
8347
6ced1581
PM
83482011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8349
8350 Remove trailing spaces and tabulations from pascal language
8351 support sources.
8352 p-exp.y: Ditto.
8353 p-lang.c: Ditto.
8354 p-lang.h: Ditto.
8355 p-valprint.c: Ditto.
8356
9373cf26
JK
83572011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8358
8359 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8360 than LOW. Comment it.
8361 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8362 HIGHPC not strictly higher than LOWPC.
8363
9a1edae6
PM
83642011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8365
8366 Fix formatting of function declarations returning a pointer in
8367 previous commit.
8368 * varobj.c (varobj_add_child): Ditto.
8369 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8370 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8371
24e9cda0
UW
83722011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8373
8374 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8375 for the "generic" vector ABI used with GCC 4.3 and later.
8376 (ppc64_sysv_abi_return_value): Likewise.
8377
83782011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8379
8380 * infcall.c (call_function_by_hand): Function return value is
8381 always a non_lval, even when using struct_return.
8382
c9174737
PA
83832011-03-15 Pedro Alves <pedro@codesourcery.com>
8384
8385 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8386 (map_display_numbers): New.
8387 (do_delete_display): New.
8388 (undisplay_command): Use map_display_numbers.
8389 (do_enable_disable_display): New.
8390 (enable_disable_display_command): New function.
8391 (enable_display): Delete.
8392 (enable_display_command): New.
8393 (disable_display_command): Reimplement.
8394 (_initialize_printcmd): Adjust "enable display" command to use
8395 `enable_display_command' as callback.
8396
350c6c65
PM
83972011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8398
8399 * NEWS: Add Python breakpoint 'stop' operation.
8400
824446ad
PM
84012011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8402
8403 * NEWS: Delete duplicate entry. Fix typo.
8404
2021ad3a
PM
84052011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8406
8407 Fix ARI warning about function names in first column.
8408 Put prototype declaration on same line as return type.
8409 * objc-exp.y: Ditto.
8410 * p-exp.y: Ditto.
8411 * python/py-stopevent.h: Ditto.
8412 For long function names, split parameters to
8413 allow function name on same line as return type.
8414 * solib-pa64.c: Ditto.
8415 * varobj.c: Ditto.
8416 * varobj.h: Ditto.
8417 For long function declaration, use single line.
8418 * hppa-tdep.h: Ditto.
8419 * inferior.h: Ditto.
8420
7371cf6d
PM
84212011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8422
8423 * python/python.h: Declare gdbpy_should_stop and
8424 gdbpy_breakpoint_has_py_cond.
8425 * python/python.c: Add python.h to includes. Remove python.h from
8426 HAVE_PYTHON definition
8427 (gdbpy_should_stop): New dummy function.
8428 (gdbpy_breakpoint_has_py_cond): New dummy function.
8429 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8430 sub-classing capabilities.
8431 (gdbpy_should_stop): New function.
8432 (gdbpy_breakpoint_has_py_cond): New function.
8433 (local_setattro): New function.
8434 * breakpoint.c (condition_command): Add check for Python 'stop'
8435 operation.
8436 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8437 operation function as part of stop/continue tests.
8438
37b50a69
TT
84392011-03-14 Tom Tromey <tromey@redhat.com>
8440
8441 PR gdb/12576:
8442 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8443 (needs_frame_dwarf_call): Likewise.
8444
eeae04df
PM
84452011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8446
8447 Fix ARI warning about functions without parameters that do not
8448 use (void).
8449 * breakpoint.c (all_tracepoints): Replace () by (void).
8450 * f-exp.y (match_string_literal): Ditto.
8451 (yylex): Ditto.
8452 * m2-exp.y (yylex): Ditto.
8453 * mep-tdep.c (current_me_module): Ditto.
8454 (current_options): Ditto.
8455 (current_cop_data_bus_width): Ditto.
8456 (current_cr_names): Ditto.
8457 (current_cr_is_float): Ditto.
8458 (current_ccr_names): Ditto.
8459 * objc-exp.y (yylex): Ditto.
8460 * p-exp.y (yylex): Ditto.
8461 * remote.c (send_interrupt_sequence): Ditto.
8462 * tracepoint.c (current_trace_status): Ditto.
8463 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8464 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8465
6dc3565d
MS
84662011-03-11 Michael Snyder <msnyder@vmware.com>
8467
1427fe5e
MS
8468 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8469 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8470 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8471 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8472 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8473
60bc018f
MS
8474 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8475 (delete_async_event_handler): Ditto.
8476
f3be5b64
MS
8477 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8478
4c2d5724
MS
8479 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8480
6dc3565d
MS
8481 * top.c (set_verbose): Assert showcmd was found.
8482
4e6ca6d5
MG
84832011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8484
8485 * xtensa-tdep.c (warning_once): Correct style issues.
8486
815a83e4
YQ
84872011-03-11 Yao Qi <yao@codesourcery.com>
8488
8489 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8490
f2eb0bc8
AS
84912011-03-11 Andreas Schwab <schwab@redhat.com>
8492
8493 * common/aclocal.m4: Remove.
8494
b801de47
MG
84952011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8496
8497 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8498 (xtensa_write_register, xtensa_read_register): Likewise.
8499 (xtensa_hextochar): Removed.
8500 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8501
dbab50de
MG
85022011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8503
8504 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8505 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8506 (xtensa_alloc_frame_cache): Add initialization for new fields.
8507 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8508 (warning_once): New function.
8509 (xtensa_insn_kind): New item c0opc_and.
8510 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8511 (call0_track_op): Change arguments. New local variable litbase.
8512 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8513 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8514 in the prologue.
dbab50de 8515 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8516 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8517 Add the variety of updates to handle extended prologues, which now can
8518 conduct dynamic stack adjustments.
8519 (call0_frame_cache): Likewise.
8520 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8521 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8522
b2c04452
MS
85232011-03-10 Michael Snyder <msnyder@vmware.com>
8524
f8f67713
MS
8525 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8526 (cmd_qtframe): Ditto.
8527 (cmd_qtbuffer): Ditto.
8528 (cmd_bigqtbuffer): Ditto.
8529
197f0a60
TT
85302011-03-10 Tom Tromey <tromey@redhat.com>
8531
8532 * tracepoint.c (trace_actions_command): Update.
8533 * thread.c (thread_apply_command): Update.
8534 * reverse.c (delete_bookmark_command): Update.
8535 (bookmarks_info): Update.
8536 * printcmd.c (undisplay_command): Update.
8537 * memattr.c (mem_enable_command): Update.
8538 (mem_disable_command): Update.
8539 (mem_delete_command): Update.
8540 * inferior.c (detach_inferior_command): Update.
8541 (kill_inferior_command): Update.
8542 (remove_inferior_command): Update.
8543 * cli/cli-utils.h (struct get_number_or_range_state): New.
8544 (init_number_or_range): Declare.
8545 (get_number_or_range): Update.
8546 * cli/cli-utils.c (init_number_or_range): New function.
8547 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8548 static variables.
8549 (number_is_in_list): Update.
8550 * breakpoint.h (get_tracepoint_by_number): Update.
8551 * breakpoint.c (map_breakpoint_numbers): Update for change to
8552 get_number_or_range.
8553 (find_location_by_number): Use get_number, not
8554 get_number_or_range.
8555 (trace_pass_set_count): New function.
8556 (trace_pass_command): Update for change to get_number_or_range.
8557 Rework loop logic.
8558 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8559 'state' parameter.
8560
ecec24e6
PM
85612011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8562
8563 * python/py-param.c (add_setshow_generic): Add set/show callback
8564 parameters. Register Python object context.
8565 (get_show_value): New function.
8566 (get_set_value): New function.
8567 (call_doc_function): New function.
8568 (get_doc_string): Move behind get_show_value/get_set_value.
8569
6d6c6b1f
JK
85702011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8571
8572 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8573
68d6df83
MG
85742011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8575
dbab50de 8576 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8577 (xtensa_write_register): Likewise.
8578 (xtensa_hextochar): Add comment and update to match coding conventions.
8579 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8580 (execute_l32e, execute_s32e, execute_code): Update comments.
8581 (xtensa_exception_handler_t): Update to match coding conventions.
8582 (xtensa_insn_kind): Likewise.
8583
85c9d6a6
MS
85842011-03-09 Michael Snyder <msnyder@vmware.com>
8585
8586 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8587
91495617
PA
85882011-03-09 Pedro Alves <pedro@codesourcery.com>
8589
8590 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8591
eb8c0621
TT
85922011-03-09 Tom Tromey <tromey@redhat.com>
8593
8594 * thread.c (restore_selected_frame): Handle frame_level == -1.
8595 (make_cleanup_restore_current_thread): Use
8596 get_selected_frame_if_set.
8597 * frame.h (get_selected_frame_if_set): Declare.
8598 * frame.c (get_selected_frame_if_set): New function.
8599
9f37bbcc
PA
86002011-03-09 Pedro Alves <pedro@codesourcery.com>
8601
8602 * cli/cli-cmds.c (shell_escape): Use lbasename.
8603 * coffread.c (coff_start_symtab): Constify parameter.
8604 (complete_symtab): Constify `name' parameter.
8605 (coff_symtab_read): Constify `filestring' local.
8606 (coff_getfilename): Constify return and `result' local.
8607 Use lbasename.
8608 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8609 * linux-fork.c (info_checkpoints_command): Use lbasename.
8610 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8611 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8612 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8613 * procfs.c (procfs_make_note_section): Use lbasename.
8614 * tui/tui-io.c (printable_part): Constity return and parameter.
8615 Use lbasename.
8616 (print_filename): Constify parameters, and local `s'.
8617 (tui_rl_display_match_list): Constify local `temp'.
8618
f8de3c55
JK
86192011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8620
8621 Revert:
8622 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8623 Fix DWARF-3+ DW_AT_accessibility default assumption.
8624 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8625 cu->header.version >= 3.
8626
d9837b00
YQ
86272011-03-09 Yao Qi <yao@codesourcery.com>
8628
8629 * common/Makefile.in: Remove.
8630 * common/configure: Remove.
8631 * common/configure.ac: Remove.
8632
e637a4f5
YQ
86332011-03-09 Yao Qi <yao@codesourcery.com>
8634
8635 Revert:
8636 2011-02-11 Yao Qi <yao@codesourcery.com>
8637
8638 * common/Makefile.in: Add copyright header.
8639
8640 2011-02-11 Yao Qi <yao@codesourcery.com>
8641
8642 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8643 libcommon.a.
8644 * configure.ac: Add common to sub dir.
8645 * configure: Regenerate.
8646
f976a05d
MG
86472011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8648
8649 * xtensa-tdep.c (call0_ret): New function.
8650 (xtensa_skip_prologue): Speed up analysis.
8651
57041825
MG
86522011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8653
8654 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8655 while executing MI command -data-list-changed-registers.
8656
08b9c608
MG
86572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8658
8659 * xtensa-tdep.c (xtensa_read_register): New function.
8660 (xtensa_write_register): New function.
8661 (xtensa_find_register_by_name): New function.
8662 (xtensa_windowed_frame_cache): Update comments in type description.
8663 (xtensa_frame_cache): Likewise.
8664 (xtensa_window_interrupt_insn): New function.
8665 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8666 (xtensa_insn_kind): Add new instructions.
8667 (rwx_special_register): New function.
8668 (call0_classify_opcode): Add new instructions to the analysis.
8669 (a0_saved, a7_saved, a11_saved): New variables.
8670 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8671 (execute_l32e): New function.
8672 (execute_s32e): New function.
8673 (xtensa_exception_handler_t): New type.
8674 (execute_code): New function.
8675 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8676 analysis for Xtensa Window Exception handlers.
8677
4d1acb11
MG
86782011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8679
98689b25
MG
8680 * xtensa-tdep.c (TX_PS): New.
8681 (windowing_enabled): Update to count for Call0 ABI.
8682 (xtensa_hextochar): New.
8683 (xtensa_init_reggroups): Make algorithm generic.
8684 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8685
86862011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8687
8688 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8689
d3f323f3
MS
86902011-03-08 Michael Snyder <msnyder@vmware.com>
8691
3dcabaa8
MS
8692 * i386-tdep.c (i386_follow_jump): Check return value of
8693 target_read_memory.
8694 (i386_analyze_struct_return): Ditto.
8695 (i386_skip_probe): Ditto.
8696 (i386_match_insn): Ditto.
8697 (i386_skip_noop): Ditto.
8698 (i386_analyze_frame_setup): Ditto.
8699 (i386_analyze_register_saves): Ditto.
8700 (i386_skip_prologue): Ditto.
8701 (i386_skip_main_prologue): Ditto.
8702
13b3fd9b
MS
8703 * target.c (read_whatever_is_readable): Fix memory leak.
8704
d3f323f3
MS
8705 * i386-tdep.c (i386_process_record): Document fall through.
8706
421d5c74
JK
87072011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8708
8709 Fix DWARF-3+ DW_AT_accessibility default assumption.
8710 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8711 cu->header.version >= 3.
8712
63154eca
PA
87132011-03-08 Pedro Alves <pedro@codesourcery.com>
8714
8715 * remote.c (remote_check_symbols): Skip if the target has no
8716 execution.
8717
f1a507a1
JB
87182011-03-08 Joel Brobecker <brobecker@adacore.com>
8719
8720 * target.c (read_whatever_is_readable): Reformat comment,
8721 with a minor typo fix. Minor reformatting of the code.
8722
36073a92
YQ
87232011-03-08 Yao Qi <yao@codesourcery.com>
8724
8725 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8726 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8727 Use cached result instead of calling displaced_in_arm_mode again.
8728 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8729 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8730 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8731 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8732 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8733 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8734 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8735 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8736 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8737 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8738 (arm_catch_kernel_helper_return): Likewise.
8739 * gdb/arm-tdep.h : Update function declarations.
8740
d3f323f3 87412011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8742
e0e40094
MS
8743 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8744
0b2381f5
MS
8745 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8746
0350914a
MS
8747 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8748
69feea6f
MS
8749 * elfread.c (elf_symtab_read): Stop memory leak.
8750
e6040cbd
MS
8751 * main.c (captured_main): Fix memory leak.
8752
052874e8
AS
87532011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8754
8755 * ada-lang.c (compare_names): Call is_name_suffix with string1
8756 instead of string2.
8757
b11896a5
TT
87582011-03-07 Tom Tromey <tromey@redhat.com>
8759
8760 * xcoffread.c (xcoff_sym_fns): Update.
8761 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8762 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8763 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8764 (symbol_file_add_with_addrs_or_offsets): Likewise.
8765 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8766 * somread.c (som_sym_fns): Update.
8767 * psymtab.h (require_partial_symbols): Declare.
8768 * psymtab.c (require_partial_symbols): New function.
8769 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8770 (ALL_OBJFILE_PSYMTABS): Undef.
8771 (ALL_PSYMTABS): Move from psympriv.h.
8772 (lookup_partial_symtab, find_pc_sect_psymtab)
8773 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8774 (find_last_source_symtab_from_partial)
8775 (forget_cached_source_info_partial)
8776 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8777 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8778 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8779 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8780 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8781 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8782 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8783 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8784 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8785 psymtabs.
8786 * mipsread.c (ecoff_sym_fns): Update.
8787 * machoread.c (macho_sym_fns): Update.
8788 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8789 (read_psyms): New function.
8790 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8791 (elf_sym_fns_lazy_psyms): New global.
8792 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8793 dwarf2_build_psymtabs.
8794 * dbxread.c (aout_sym_fns): Update.
8795 * coffread.c (coff_sym_fns): Update.
8796
fda326dd
TT
87972011-03-07 Tom Tromey <tromey@redhat.com>
8798
8799 * infrun.c (print_exited_reason): Include inferior id and pid in
8800 message.
8801
aeaec162
TT
88022011-03-07 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8805 parameter.
8806 (target_has_execution_1): Update.
8807 (target_has_execution_current): Declare.
8808 (target_has_execution): Call target_has_execution_current.
8809 (default_child_has_execution): Update.
8810 * target.c (default_child_has_execution): Add 'the_ptid'
8811 parameter.
8812 (target_has_execution_1): Likewise.
8813 (target_has_execution_current): New function.
8814 (add_target): Update.
8815 (init_dummy_target): Update.
8816 * remote-m32r-sdi.c (m32r_has_execution): New function.
8817 (init_m32r_ops): Use it.
8818 * record.c (record_core_has_execution): Now static. Add
8819 'the_ptid' parameter.
8820 * inferior.c (have_live_inferiors): Don't save current thread.
8821 Use target_has_execution_1.
8822
08e14083
YQ
88232011-03-07 Yao Qi <yao@codesourcery.com>
8824
8825 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8826
c05d19c5
JB
88272011-03-07 Joel Brobecker <brobecker@adacore.com>
8828
8829 * elfread.c (elf_symtab_read): Minor reformatting.
8830
3e6ef9e4
JB
88312011-03-07 Joel Brobecker <brobecker@adacore.com>
8832
8833 * objc-lang.c (selectors_info): Minor reformatting.
8834
dbb8534f
JB
88352011-03-07 Joel Brobecker <brobecker@adacore.com>
8836
8837 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8838
dd70cc93
JB
88392011-03-07 Joel Brobecker <brobecker@adacore.com>
8840 Michael Snyder <msnyder@vmware.com>
8841
8842 * ada-valprint.c (ada_val_print_array): Move the declaration of
8843 "byte_order" and "elttype" inside the block where these variables
8844 are actually used. Remove some special handling for the case
8845 where "elttype" and "eltlen" are null. Replace by a comment
8846 and a couple of assertion checks.
8847
b27cf2b3
MS
88482011-03-05 Michael Snyder <msnyder@vmware.com>
8849
8850 * source.c (add_path): Replace semicolon at end of block.
8851 * dwarf2expr.c (execute_stack_op): Ditto.
8852
5387a0c6
MF
88532011-03-05 Mike Frysinger <vapier@gentoo.org>
8854
8855 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8856 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8857 (bfin-*-*): Likewise.
8858
e3aa49af
MS
88592011-03-05 Michael Snyder <msnyder@vmware.com>
8860
82ae4854
MS
8861 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8862 * mdebugread.c (parse_symbol): Ditto.
8863 * parse.c (parse_exp_in_context): Ditto.
8864 * source.c (add_path): Ditto.
8865 * utils.c (gnu_debuglink_crc32): Ditto.
8866 * varobj.c (variable_language): Ditto.
8867
e3aa49af
MS
8868 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8869
154f592e
MS
88702011-03-04 Michael Snyder <msnyder@vmware.com>
8871
da3ecdc6
MS
8872 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8873
9cc89665
MS
8874 * symfile.c (simple_overlay_update): Check for null return value
8875 from lookup_minimal_symbol.
8876
154f592e
MS
8877 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8878
63ffa6ee
TJB
88792011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8880
8881 * eval.c (parse_and_eval_address_1): Remove function.
8882 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8883 instead of parse_and_eval_address_1.
8884 * value.h (parse_and_eval_address_1): Remove prototype.
8885
a17d146e
MS
88862011-03-04 Michael Snyder <msnyder@vmware.com>
8887
8888 * remote.c (putpkt_binary): Document that case stmt falls through.
8889
1a6a67de
TJB
88902011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8891
8892 * breakpointc (print_it_typical): Move NULL check from here...
8893 (print_bp_stop_message): ... to here.
8894
488919c4
MS
88952011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8896
8897 * breakpoint.c (enable_command): Use break instead of continue,
8898 and fill in a missing break.
8899 (disable_command): Ditto.
8900
1e182ce8
UW
89012011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8902
8903 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8904 (terminal_save_ours): Remove misleading comment.
8905 (inflow_inferior_data_cleanup): Free ttystate.
8906 (inflow_inferior_exit): Likewise.
8907 (copy_terminal_info): Copy ttystate.
8908
8909 * serial.c (serial_copy_tty_state): New function.
8910 * serial.h (serial_copy_tty_state): Add prototype.
8911 (struct serial_ops): Add copy_tty_state callback.
8912 * ser-base.c (ser_base_copy_tty_state): New function.
8913 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8914 * ser-go32.c (dos_copy_tty_state): New function.
8915 (dos_ops): Install copy_tty_state callback.
8916 * ser-mingw.c (_initialize_ser_windows): Likewise.
8917 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8918 * ser-unix.c (hardwire_copy_tty_state): New function.
8919 (_initialize_ser_hardwire): Install it.
8920
b2c5f112
MS
89212011-03-04 Michael Snyder <msnyder@vmware.com>
8922
2abae994
MS
8923 * breakpoint.c (create_breakpoint): Add missing break statement.
8924
7f5936f9
MS
8925 Reverting this patch:
8926 * infcall.c (call_function_by_hand): Add break statements for lint.
8927
b2c5f112
MS
8928 Reverting this patch:
8929 * cli/cli-script.c (script_from_file): Add break for lint.
8930
42b1321c
MS
89312011-03-04 Michael Snyder <msnyder@vmware.com>
8932
8933 * solib.c (reload_shared_libraries_1): Close memory leak.
8934
3e2a0cee
TT
89352011-03-03 Tom Tromey <tromey@redhat.com>
8936
8937 PR gdb/12538:
8938 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8939 DW_STRING is NULL.
8940
58397cb7
MS
89412011-03-03 Michael Snyder <msnyder@vmware.com>
8942
2e3fd767
MS
8943 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8944 fields of struct 'st' to zero.
8945
58397cb7
MS
8946 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8947 sal.pspace before calling set_current_source_symtab_and_line.
8948
ced54c8f
YQ
89492011-03-03 Yao Qi <yao@codesourcery.com>
8950
8951 * Makefile.in (configure-common): Remove. Let Makefile
8952 in dir common to rebuild itself.
8953 (common/Makefile): Likewise.
8954
3351ea09
JB
89552011-03-03 Joel Brobecker <brobecker@adacore.com>
8956
8957 * utils.c (parse_escape): Add i18n markup in error message.
8958
bf9f652a
YQ
89592011-03-03 Yao Qi <yao@codesourcery.com>
8960
8961 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8962 ARM_PC_REGNUM.
8963 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8964 (displaced_write_reg, displaced_read_reg): Likewise.
8965 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8966 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8967 (cleanup_branch): Replace magic number 14 and 15 with
8968 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8969
d42de051
MS
89702011-03-02 Michael Snyder <msnyder@vmware.com>
8971
240f9570
MS
8972 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8973
10dd8b54
MS
8974 * cli/cli-script.c (script_from_file): Add break for lint.
8975
b98bd911
MS
8976 * mdebugread.c (parse_partial_symbols): Fix indent.
8977
3494b66d
MS
8978 * target-descriptions.c (tdesc_gdb_type): No need to call
8979 xstrdup, callee saves a copy.
8980
daac021a
MS
8981 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8982
c38d16a7
MS
8983 * infcall.c (call_function_by_hand): Add break statements for lint.
8984
905b671b
MS
8985 * utils.c (parse_escape): Escape the escape char.
8986
f2eb0bc8 8987 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8988 PyList_Append fails.
8989 (gdbpy_inferiors): Error out if build_inferior_list fails.
8990
8c6a60d1
MS
8991 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8992 a function call.
8993
d42de051
MS
8994 * record.c (record_restore): Move printf to before error return.
8995
4db71c0b
YQ
89962011-03-02 Yao Qi <yao@codesourcery.com>
8997
8998 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8999 is_thumb and insn_size.
9000 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9001 on both ARM and Thumb mode.
9002 (arm_process_displaced_insn): Set is_thumb and insn_size.
9003 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9004 (arm_displaced_step_fixup): Likewise.
9005
a9dc8dcc
MS
90062011-03-01 Michael Snyder <msnyder@vmware.com>
9007
53624a93
MS
9008 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9009
77766669
MS
9010 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9011
62d5b8da
MS
9012 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9013
5e9e105f
MS
9014 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9015
dc19db01
MS
9016 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9017 with xmalloc.
9018
5ce64950
MS
9019 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9020 which shadows function parameter.
9021
a0aa2878
MS
9022 * tracepoint.c (create_tsv_from_upload): Superfluous call
9023 to xstrdup. Callee already calls xstrdup.
9024
e325fb69
MS
9025 * linespec.c (decode_line_1): Remove unnecessary null check.
9026
21cbba77
MS
9027 * tracepoint.c (scope_info): Fix mem leak, remove underused
9028 variable.
9029
63360adc
MS
9030 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9031 superfluous null check.
9032
18ea20ac 9033 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9034 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9035
d014929c
MS
9036 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9037
6e9130cf
MS
9038 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9039 be null.
9040
5f01dbc0
MS
9041 * linespec.c (decode_line_1): Check for null before dereference.
9042
d684ab85
MS
9043 * reverse.c (record_restore): Move null-check to before pointer
9044 dereference.
9045
bfffb7e3
MS
9046 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9047
a9dc8dcc
MS
9048 * objc-lang.c (selectors_info): Add explanitory comment.
9049 (classes_info): Ditto.
9050
478fd957
UW
90512011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9052
9053 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9054 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9055 versions of the trampoline. Handle Thumb vs. ARM addresses.
9056 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9057 (arm_linux_init_abi): Install it.
9058 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9059 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9060
0480cefa
MS
90612011-02-28 Michael Snyder <msnyder@vmware.com>
9062
ac50ab3b
MS
9063 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9064 a little bigger, to avoid possibility of an overflow.
9065
f63fbe86
MS
9066 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9067 buffers a little bigger, to avoid possibility of an overflow.
9068
9e91a352
MS
9069 * coffread.c (coff_getfilename): Add check to avoid overflow.
9070
f2eb0bc8 9071 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9072 avoid overflow.
9073 (classes_info): Error out on too long REGEXP.
9074
098ab512
MS
9075 * infrun.c (handle_inferior_event): Remove unused function call.
9076
bcbd1de9
MS
9077 * fork-child.c (fork_inferior): Remove ifdef'd code and
9078 unused variable.
9079
2e456570
MS
9080 * linux-thread-db.c (attach_thread): Discard unused value.
9081
14571dad
MS
9082 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9083
a9cbf802
MS
9084 * remote.c (remote_get_noisy_reply): Discard unused value.
9085 (remote_vcont_resume): Ditto.
9086 (remote_stop_ns): Ditto.
9087
5715d26e
MS
9088 * linespec.c (decode_objc): Delete unused variable.
9089
4a9bca80
MS
9090 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9091
f47fb265
MS
9092 * dwarf2read.c (add_partial_symbol): Discard unused values.
9093 (read_base_type): Delete unused variable.
9094
e81cff30
MS
9095 * dbxread.c (read_dbx_symtab): Discard unused value.
9096
262acaeb
MS
9097 * eval.c (evaluate_subexp_standard): Delete unused variable,
9098 and discard unused values.
9099
df983543
MS
9100 * infcmd.c (_initialize_infcmd): Discard unused values.
9101
89acf84d
MS
9102 * stabsread.c (rs6000_builtin_type): Missing break statement.
9103
ab8b8aca
MS
9104 * dbxread.c (process_one_symbol): Discard unused value.
9105
6b4511ab
MS
9106 * coffread.c (coff_end_symtab): Delete unused variable.
9107
e8e80198
MS
9108 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9109 (dwarf2_add_typedef): Delete unused variable.
9110 (read_namespace): Ditto.
9111 (dwarf_decode_macros): Ditto.
9112
976aa66e
MS
9113 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9114
5b92b49f
MS
9115 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9116
91e8df85
MS
9117 * p-valprint.c (pascal_val_print): Discard unused value.
9118
899500d6
MS
9119 * utils.c (nquery): Call va_end before return;
9120 (yquery): Ditto.
9121 (query): Ditto.
9122
0480cefa
MS
9123 * proc-service.c (ps_plog): Call va_end before return.
9124
fb6a3ed3
TT
91252011-02-28 Tom Tromey <tromey@redhat.com>
9126
9127 * python/python.c (gdbpy_value_cst): New global.
9128 (_initialize_python): Initialize it.
9129 * python/python-internal.h (gdbpy_value_cst): Declare.
9130 * python/py-value.c (convert_value_from_python): Use
9131 gdbpy_value_cst.
9132
c05202a1
MS
91332011-02-28 Michael Snyder <msnyder@vmware.com>
9134
e463f587
MS
9135 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9136
c38eea1a
MS
9137 * breakpoint.c (catch_syscall_completer): Free malloced list.
9138
3ef09ab5
MS
9139 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9140
8f9a01ee
MS
9141 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9142 (lval_func_check_synthetic_pointer): Ditto.
9143 (lval_func_free_closure): Fix use-after-free.
c05202a1 9144
477d0d57
TT
91452011-02-28 Tom Tromey <tromey@redhat.com>
9146
9147 * psymtab.c (expand_partial_symbol_tables): Use
9148 ALL_OBJFILE_PSYMTABS.
9149
20937029
JK
91502011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9151
9152 * objc-lang.c (selectors_info): Error on too long REGEXP.
9153
907b7f4f
MS
91542011-02-28 Michael Snyder <msnyder@vmware.com>
9155
92e96192
MS
9156 * python/py-param.c (set_parameter_value): Add missing
9157 break statement.
9158
907b7f4f
MS
9159 * linux-record.c (record_linux_system_call): Add missing
9160 break statement.
9161
12c5a436
UW
91622011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9163
9164 * breakpoint.c (print_one_breakpoint_location): Remove unused
9165 argument PRINT_ADDRESS_BITS. Update callers.
9166 (print_one_breakpoint): Likewise.
9167
170b53b2
UW
91682011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9169
9170 * breakpoint.c (wrap_indent_at_field): New function.
9171 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9172 Allocate ui_stream locally instead of using STB argument.
9173 (print_one_breakpoint_location): Update call.
9174 * ui-out.c (ui_out_query_field): New function.
9175 * ui-out.h (ui_out_query_field): Add prototype.
9176
8ab1f94d
JB
91772011-02-28 Joel Brobecker <brobecker@adacore.com>
9178
9179 From Michael Snyder <msnyder@vmware.com>
9180 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9181
7d488639
MS
91822011-02-27 Michael Snyder <msnyder@vmware.com>
9183
ae179fba
MS
9184 * objc-lang.c (selectors_info): Prevent string overrun.
9185
086dbf66
MS
9186 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9187 error in strncpy.
9188
f2eb0bc8 9189 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9190 outer scope.
9191
7d488639
MS
9192 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9193 param with a local variable of the same name.
9194
3bd0f5ef
MS
91952011-02-27 Michael Snyder <msnyder@vmware.com>
9196
9197 * value.c (value_from_history_ref): New function.
9198 * value.h (value_from_history_ref): Export.
9199 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9200 to parse value history references.
9201 * cli/cli-utils.h (get_number_trailer): Update comment.
9202
92032011-02-27 Michael Snyder <msnyder@vmware.com>
9204
9205 * inferior.c (detach_inferior_command): Use get_number_or_range.
9206 (kill_inferior_command): Ditto.
9207 (remove_inferior_command): Ditto.
9208 (initialize_inferiors): Make command names plural.
9209 Update help strings.
9210
766062f6
MS
92112011-02-27 Michael Snyder <msnyder@vmware.com>
9212
9213 * darwin-nat-info.c: Fix comment typo.
9214 * dwarf2expr.h: Ditto.
9215 * fbsd-nat.c: Ditto.
9216 * fbsd-nat.h: Ditto.
9217 * frame-unwind.h: Ditto.
9218 * frame.h: Ditto.
9219 * hppa-hpux-tdep.c: Ditto.
9220 * i386-linux-nat.c: Ditto.
9221 * linux-nat.c: Ditto.
9222 * nbsd-nat.c: Ditto.
9223 * nbsd-nat.h: Ditto.
9224 * ppc-linux-tdep.c: Ditto.
9225 * serial.c: Ditto.
9226 * ui-file.h: Ditto.
9227 * tui/tui-winsource.c: Ditto.
9228
f2c4ead5
MS
92292011-02-26 Michael Snyder <msnyder@vmware.com>
9230
86b887df
MS
9231 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9232
66fd3b1e
MS
9233 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9234
8c814cdd
MS
9235 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9236 with a local variable of the same name.
9237
6d5e094a 9238 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9239 param with a local variable of the same name.
6d5e094a 9240 (i387_supply_xsave): Ditto.
e5b3d7d6 9241
5eee517d
MS
9242 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9243 that it does not shadow a function parameter.
9244
8fbf6b93
MS
9245 * i386-nat.c (i386_length_and_rw_bits): Document that case
9246 statement is meant to fall through.
9247
cb969d61
MS
9248 * expprint.c (dump_subexp_body_standard): Document that case
9249 statement is meant to fall through.
9250
f2c4ead5
MS
9251 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9252 dead if statement. Condition can't be false.
9253
b021a221
MS
92542011-02-25 Michael Snyder <msnyder@vmware.com>
9255
9256 * arm-tdep.c: Fix typos in comments.
9257 * bsd-uthread.c: Ditto.
9258 * completer.c: Ditto.
9259 * corelow.c: Ditto.
9260 * cp-namespace.c: Ditto.
9261 * cp-support.c: Ditto.
9262 * cris-tdep.c: Ditto.
9263 * dbxread.c: Ditto.
9264 * dwarf2read.c: Ditto.
9265 * frame.h: Ditto.
9266 * gdbtypes.h: Ditto.
9267 * inferior.h: Ditto.
9268 * mdebugread.c: Ditto.
9269 * mips-tdep.c: Ditto.
9270 * ppc-linux-nat.c: Ditto.
9271 * ppc-linux-tdep.c: Ditto.
9272 * printcmd.c: Ditto.
9273 * sol-thread.c: Ditto.
9274 * solib-frv.c: Ditto.
9275 * solist.h: Ditto.
9276 * sparc64-tdep.c: Ditto.
9277 * spu-tdep.c: Ditto.
9278 * stabsread.c: Ditto.
9279 * symfile.c: Ditto.
9280 * valops.c: Ditto.
9281 * varobj.c: Ditto.
9282 * vax-nat.c: Ditto.
9283 * python/py-block.c: Ditto.
9284 * python/py-symbol.c: Ditto.
9285 * python/py-symtab.c: Ditto.
9286 * python/py-value.c: Ditto.
9287 * tui/tui-win.c: Ditto.
9288
c82c0b55
MS
92892011-02-25 Michael Snyder <msnyder@vmware.com>
9290
9291 * inferior.c (print_inferior): Accept a string instead of an int
9292 for requested_inferiors, and use get_number_or_range to parse it.
9293 (info_inferiors_command): Pass args string to print_inferior.
9294 (initialize_inferiors): Change help string for info inferiors.
9295 * inferior.h (print_inferior): Export prototype change.
9296
ee00cd23
TT
92972011-02-25 Tom Tromey <tromey@redhat.com>
9298
9299 * common/ax.def (invalid2): Set to 0x31.
9300
0502ed8c
JK
93012011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9304 L and plongest.
9305 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9306 use L and plongest.
9307 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9308
2c9de912
MS
93092011-02-24 Michael Snyder <msnyder@vmware.com>
9310
9311 * Makefile.in (clean): Make clean should remove generated files
9312 observer.h and observer.inc.
9313
a04b0428
JB
93142011-02-24 Joel Brobecker <brobecker@adacore.com>
9315
9316 Revert the following patch (not approved yet):
9317 2011-02-21 Hui Zhu <teawater@gmail.com>
9318 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9319 * ax-gdb.c (gen_printf_expr_callback): New function.
9320 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9321 * ax-general.c (ax_memcpy): New function.
9322 (ax_print): Handle "printf".
9323 (ax_reqs): Ditto.
9324 * ax.h (ax_memcpy): Forward declare.
9325 * common/ax.def (invalid2): Removed.
9326 (printf): New entry.
9327 * printcmd.c (printcmd.h): New include.
9328 (string_printf): New function.
9329 (ui_printf): Removed.
9330 (printf_command): Remove static. Call string_printf.
9331 (eval_command): Call string_printf.
9332 * printcmd.h: New file.
9333 * tracepoint.c (validate_actionline,
9334 encode_actions_1): handle printf_command.
9335
2b52013f
TT
93362011-02-23 Tom Tromey <tromey@redhat.com>
9337
9338 * ax-general.c (ax_pick): Add missing newline.
9339
e5a67952
MS
93402011-02-23 Michael Snyder <msnyder@vmware.com>
9341
9342 * breakpoint.c (breakpoint_1): Change first argument from an int
9343 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9344 breakpoints rather than just one. Use new function
e5a67952
MS
9345 'number_is_in_list' to implement.
9346 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9347 (watchpoints_info): Ditto.
9348 (tracepoints_info): Ditto.
9349 (maintenance_info_breakpoints): Ditto.
9350 (_initialize_breakpoint): Update help strings to reflect the fact
9351 that these functions can now take more than one argument.
9352 * cli/cli-utils.c (number_is_in_list): New function.
9353 * cli/cli-utils.h (number_is_in_list): Export.
9354
93552011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9356
9357 * memattr.c (mem_enable_command): Use get_number_or_range.
9358 (mem_disable_command): Ditto.
9359 (mem_delete_command): Ditto.
9360 (_initialize_mem): Tweak usage message to reflect multiple
9361 arguments.
9362
6e6fbe60
DE
93632011-02-22 Doug Evans <dje@google.com>
9364
9365 Add gdb.lookup_global_symbol python function.
9366 * NEWS: Add entry.
9367 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9368 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9369 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9370
79b97fa8
TT
93712011-02-22 Tom Tromey <tromey@redhat.com>
9372
9373 * language.c (language_class_name_from_physname): Rename
9374 'curr_language' argument to 'lang'; use in body.
9375
298f437a
MS
93762011-02-22 Michael Snyder <msnyder@vmware.com>
9377
9378 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9379
b7ea3126
PA
93802011-02-22 Pedro Alves <pedro@codesourcery.com>
9381
9382 * frame-unwind.h: Fix comment to mention the this frame, not the
9383 next.
9384
58ee6d60
TT
93852011-02-22 Tom Tromey <tromey@redhat.com>
9386
9387 * symfile.c (auto_solib_limit): Remove.
9388 * symfile.h (auto_solib_limit): Remove.
9389
36238dbc
JB
93902011-02-22 Joel Brobecker <brobecker@adacore.com>
9391
9392 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9393
aea5b279
MS
93942011-02-21 Michael Snyder <msnyder@vmware.com>
9395
9396 * gdbthread.h (print_thread_info): Change prototype.
9397 * thread.c (print_thread_info): Accept char* instead of int for
9398 requested_threads argument. Use new function number_is_in_list
9399 to determine which threads to list.
9400 (info_threads_command): Pass char* to print_thread_info.
9401 * cli/cli-utils.c (number_is_in_list): New function.
9402 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9403 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9404 print_thread_info.
9405 (print_one_inferior): Ditto.
9406 (mi_cmd_list_thread_groups): Ditto.
9407
8caa75ee
JK
94082011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9409
9410 * common/Makefile.in (CFLAGS): New.
9411 (COMPILE): Add $(CFLAGS).
9412
ea666128
TT
94132011-02-21 Tom Tromey <tromey@redhat.com>
9414
9415 * breakpoint.c (catch_syscall_command_1): Fix typo.
9416
e9cafbcc
TT
94172011-02-21 Tom Tromey <tromey@redhat.com>
9418
9419 * reverse.c: Include cli-utils.h.
9420 * printcmd.c: Include cli-utils.h.
9421 (string_printf): Use skip_spaces.
9422 * cli/cli-utils.h: New file.
9423 * cli/cli-utils.c: New file.
9424 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9425 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9426 * breakpoint.h (get_number, get_number_or_range): Move to
9427 cli-utils.h.
9428 * breakpoint.c: Include cli-utils.h.
9429 (get_number_trailer, get_number, get_number_or_range)
9430 (ep_skip_leading_whitespace): Move to cli-utils.c.
9431 (create_breakpoint_sal, find_condition_and_thread)
9432 (decode_static_tracepoint_spec, watch_command_1)
9433 (watch_maybe_just_location, ep_parse_optional_if_clause)
9434 (catch_fork_command_1, catch_exec_command_1)
9435 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9436 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9437 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9438 (HFILES_NO_SRCDIR): Add cli-utils.h.
9439 (cli-utils.o): New target.
9440
f67fd822
PM
94412011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9442
9443 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9444 before calling discard_all_inferiors.
9445
c9def01d
UW
94462011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9447
9448 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9449 (struct builtin_opencl_type): Remove.
9450 (builtin_opencl_type): Change return type to "struct type **".
9451 (lookup_opencl_vector_type): Update caller.
9452 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9453 (build_opencl_types): Install plain array of "struct type *"
9454 instead of "struct builtin_opencl_type".
9455
e3039479
UW
94562011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9457 Ulrich Weigand <uweigand@de.ibm.com>
9458
9459 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9460 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9461 (struct arm_linux_hwbp_cap): New type.
9462 (arm_linux_get_hwbp_cap): New function.
9463 (arm_linux_get_hw_breakpoint_count): Likewise.
9464 (arm_linux_get_hw_watchpoint_count): Likewise.
9465 (arm_linux_can_use_hw_breakpoint): Likewise.
9466 (arm_hwbp_type): New type.
9467 (arm_hwbp_control_t): Likewise.
9468 (struct arm_linux_hw_breakpoint): Likewise.
9469 (struct arm_linux_thread_points): Likewise.
9470 (arm_threads): New global variable.
9471 (arm_linux_find_breakpoints_by_tid): New function.
9472 (arm_hwbp_control_initialize): Likewise.
9473 (arm_hwbp_control_is_enabled): Likewise.
9474 (arm_hwbp_control_disable): Likewise.
9475 (arm_linux_hw_breakpoint_initialize): Likewise.
9476 (arm_linux_get_hwbp_type): Likewise.
9477 (arm_linux_hw_watchpoint_initialize): Likewise.
9478 (arm_linux_hw_breakpoint_equal): Likewise.
9479 (arm_linux_insert_hw_breakpoint1): Likewise.
9480 (arm_linux_remove_hw_breakpoint1): Likewise.
9481 (arm_linux_insert_hw_breakpoint): Likewise.
9482 (arm_linux_remove_hw_breakpoint): Likewise.
9483 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9484 (arm_linux_insert_watchpoint): Likewise.
9485 (arm_linux_remove_watchpoint): Likewise.
9486 (arm_linux_stopped_data_address): Likewise.
9487 (arm_linux_stopped_by_watchpoint): Likewise.
9488 (arm_linux_watchpoint_addr_within_range): Likewise.
9489 (arm_linux_new_thread): Likewise.
9490 (arm_linux_thread_exit): Likewise.
9491 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9492 related target callbacks. Register arm_linux_new_thread and
9493 arm_linux_thread_exit.
9494 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9495 * arm-tdep.c (arm_pc_is_thumb): Make global.
9496 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9497
b5db5dfc
UW
94982011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9499
9500 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9501 per-frame locations while within a function epilogue.
9502
e25b2cfa
PM
95032011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9504
9505 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9506 to GNU coding standards.
9507
4af53f97
PM
95082011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9509
9510 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9511 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9512 (ser_windows_close): Only call CancelIo if function exists.
9513 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9514 to check for existence of CancelIo function in kernel32 DLL.
9515
d0e92d82
HZ
95162011-02-21 Hui Zhu <teawater@gmail.com>
9517
9518 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9519 * ax-gdb.c (gen_printf_expr_callback): New function.
9520 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9521 * ax-general.c (ax_memcpy): New function.
9522 (ax_print): Handle "printf".
9523 (ax_reqs): Ditto.
9524 * ax.h (ax_memcpy): Forward declare.
9525 * common/ax.def (invalid2): Removed.
9526 (printf): New entry.
9527 * printcmd.c (printcmd.h): New include.
9528 (string_printf): New function.
9529 (ui_printf): Removed.
9530 (printf_command): Remove static. Call string_printf.
9531 (eval_command): Call string_printf.
9532 * printcmd.h: New file.
9533 * tracepoint.c (validate_actionline,
9534 encode_actions_1): handle printf_command.
9535
7d357efd
MS
95362011-02-19 Michael Snyder <msnyder@vmware.com>
9537
9538 * reverse.c (delete_one_bookmark): Argument is now bookmark
9539 id rather than pointer to bookmark struct.
9540 (delete_bookmark_command): Use get_number_or_range.
9541 (goto_bookmark_command): Parse with get_number instead of strtoul.
9542 (bookmark_1): New function. Print info for one bookmark.
9543 (bookmarks_info): Use get_number_or_range and bookmark_1.
9544
7a45ebd7
MS
95452011-02-18 Michael Snyder <msnyder@vmware.com>
9546
f2eb0bc8 9547 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9548 get_number_or_range.
65ebfb52 9549 (thread_apply_command): Ditto.
7a45ebd7 9550
94d5e490
TT
95512011-02-18 Tom Tromey <tromey@redhat.com>
9552
9553 * common/ax.def: New file.
9554 * ax.h (enum agent_op): Use ax.def.
9555 * ax-general.c (aop_map): Use ax.def.
9556
c7f96d2b
TT
95572011-02-18 Tom Tromey <tromey@redhat.com>
9558
9559 * ax-general.c (aop_map): Add pick and rot.
9560 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9561 <DW_OP_rot>: Implement.
9562 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9563 (ax_pick): Declare.
9564 * ax-general.c (ax_pick): New function.
9565
66694b75
TT
95662011-02-18 Tom Tromey <tromey@redhat.com>
9567
9568 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9569
eeaafae2
JK
95702011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9571 Tom Tromey <tromey@redhat.com>
9572
9573 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9574 make_symbol_overload_list_block with NULL BLOCK.
9575 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9576
3c3fe74c
PA
95772011-02-18 Pedro Alves <pedro@codesourcery.com>
9578
9579 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9580 * breakpoint.h (get_number_or_range): Declare.
9581 * printcmd.c (ALL_DISPLAYS): Declare.
9582 (delete_display): Reimplement taking a display pointer.
9583 (undisplay_command): Accept a range of displays to delete, using
9584 get_number_or_range.
9585
13163d80
PM
95862011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9587
9588 * c-valprint.c (c_val_print): Add embedded_offset to address
9589 for arrays of unspecified length.
9590 * p-valprint.c (pascal_val_print): Likewise.
9591
b434a28f
YQ
95922011-02-18 Yao Qi <yao@codesourcery.com>
9593
9594 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9595 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9596 (thumb_process_displaced_insn): New.
9597 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9598 call to arm_process_displaced_insn.
9599 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9600
9f6f94ff
TT
96012011-02-17 Tom Tromey <tromey@redhat.com>
9602
9603 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9604 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9605 compile_dwarf_to_ax. No longer static. Call
9606 dwarf2_compile_cfa_to_ax.
9607 (locexpr_tracepoint_var_ref): Update.
9608 (loclist_tracepoint_var_ref): Update.
9609 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9610 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9611 argument; add 'gdbarch' and 'pc'.
9612 (dwarf2_compile_cfa_to_ax): New function.
9613 (dwarf2_frame_cache): Update.
9614
e67ad678
JB
96152011-02-17 Joel Brobecker <brobecker@adacore.com>
9616
9617 * ada-lang.c (ada_type_of_array): Fix the size of the array
9618 in the case of an unconstrained packed array.
9619
946ebb0d
YQ
96202011-02-17 Yao Qi <yao@codesourcery.com>
9621
9622 * common/Makefile.in: Add more targets for make.
9623
1ba1b353
TT
96242011-02-16 Tom Tromey <tromey@redhat.com>
9625
9626 * dwarf2loc.c (unimplemented): Fix typo.
9627
b1bfef65
TT
96282011-02-16 Tom Tromey <tromey@redhat.com>
9629
9630 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9631 (compile_dwarf_to_ax) <default>: Use unimplemented.
9632 <DW_OP_deref>: Update.
9633 (disassemble_dwarf_expression): Update.
9634 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9635 (decode_locdesc): Update.
9636 * dwarf2expr.h (dwarf_stack_op_name): Update.
9637
5f1e6f19
TT
96382011-02-16 Tom Tromey <tromey@redhat.com>
9639
9640 * ax.h (struct aop_map) <name>: Now const.
9641
a0c78a73
PA
96422011-02-16 Tom Tromey <tromey@redhat.com>
9643
9644 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9645 than axs_rvalue.
9646
946ebb0d 96472011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9648
9649 * infrun.c (get_displaced_step_closure_by_addr): New.
9650 * inferior.h: Declare it.
9651 * arm-tdep.c: (arm_pc_is_thumb): Call
9652 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9653 returns non-NULL.
9654
08807d5a
PA
96552011-02-16 Pedro Alves <pedro@codesourcery.com>
9656 Jan Kratochvil <jan.kratochvil@redhat.com>
9657
9658 gdb/
9659 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9660
29976f3f
PA
96612011-02-16 Pedro Alves <pedro@codesourcery.com>
9662 Jan Kratochvil <jan.kratochvil@redhat.com>
9663
9664 * value.c (value_contents_copy_raw): Extend describing comment.
9665 Assert that the destination contents we're overwriting are wholly
9666 available.
fb68ae73 9667 (value_contents_copy): Extend describing comment.
29976f3f 9668
cd24cfaa
PA
96692011-02-16 Pedro Alves <pedro@codesourcery.com>
9670 Jan Kratochvil <jan.kratochvil@redhat.com>
9671
9672 * value.c (value_available_contents_eq): Remove redundant local
9673 variables. Fix available contents comparision.
9674 * value.h (value_available_contents_eq): Extend describing
9675 comment.
9676
60bbf338
YQ
96772011-02-16 Yao Qi <yao@codesourcery.com>
9678
9679 * thread.c (info_threads_command): Add missing i18n markup and remove
9680 trailing newline.
9681
17450429
PP
96822011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9683
9684 * breakpoint.c (longjmp_names): New variable.
9685 (struct breakpoint_objfile_data): New type.
9686 (breakpoint_objfile_key): New variable.
9687 (msym_not_found): New variable.
9688 (msym_not_found_p): New predicate.
9689 (get_breakpoint_objfile_data): New function.
9690 (create_overlay_event_breakpoint): Check per-objfile cache for
9691 symbols first.
9692 (create_longjmp_master_breakpoint): Likewise.
9693 (create_std_terminate_master_breakpoint): Likewise.
9694 (create_exception_master_breakpoint): Likewise.
9695 (_initialize_breakpoint): Register per-objfile data key.
9696
af02033e
PP
96972011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9698
9699 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9700 parameter value.
9701 (create_longjmp_master_breakpoint): Loop over longjmp names.
9702 (create_std_terminate_master_breakpoint): Const-propagate parameter
9703 value.
9704 (update_breakpoints_after_exec): Adjust.
9705 (breakpoint_re_set): Adjust.
9706
60f98dde
MS
97072011-02-15 Michael Snyder <msnyder@vmware.com>
9708
cdf99611
MS
9709 * thread.c (info_threads_command): Process arg as thread id,
9710 or list of thread ids.
9711 (thread_find_command): New command.
9712 (_initialize_thread): Document argument for info threads.
9713 Document 'thread find' command.
9714 * NEWS: Document new command "thread find".
60f98dde 9715
0feedb2c
JK
97162011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9717
9718 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9719 * aclocal.m4: Regenerated with aclocal-1.11.1.
9720 * common/configure: Regenerate with autoconf-2.64.
9721
648cd113
KW
97222011-02-15 Ken Werner <ken.werner@de.ibm.com>
9723
9724 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9725 bool data type to a size of one byte.
9726
5657161f
PA
97272011-02-15 Pedro Alves <pedro@codesourcery.com>
9728 Jan Kratochvil <jan.kratochvil@redhat.com>
9729
9730 * target.c (memory_xfer_live_readonly_partial): Document where to
9731 look for interface description.
9732
494e194e
YQ
97332011-02-15 Yao Qi <yao@codesourcery.com>
9734
9735 PR tdep/12352
9736 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9737 order to store PC value on stack instead of text section.
9738
d9492458
TJB
97392011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9740
9741 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9742 the EFP register set size.
9743 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9744 data from the VMX register.
9745 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9746 and write data from/to the VMX register.
9747
cdf99611
MS
97482011-02-14 Michael Snyder <msnyder@vmware.com>
9749
9750 * command.h (enum command_class): New class 'no_set_class', for
9751 "show" commands without a corresponding "set" command.
9752 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9753 * copying.c (_initialize_copying): Ditto for "show copying" and
9754 "show warranty".
9755 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9756 "show version".
9757 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9758 which there is no corresponding "set" command (eg. "show copying").
9759
424447ee
PA
97602011-02-14 Pedro Alves <pedro@codesourcery.com>
9761 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 * exec.c (section_table_available_memory): Change `len' parameter
9764 type to ULONGEST.
9765 * exec.h (section_table_available_memory): Ditto.
9766 * value.h (read_value_memory): Rename the `offset' parameter to
9767 `embedded_offset'.
9768
c0f61f9c 97692011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9770 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9771
9772 * memrange.c (compare_mem_ranges): Mention sort order in
9773 describing comment.
9774 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9775 * tracepoint.c (traceframe_available_memory): Extend comment to
9776 mention what happens to RESULT when the target does not support
9777 the query.
9778
6bfc80c7
PA
97792011-02-14 Pedro Alves <pedro@codesourcery.com>
9780 Jan Kratochvil <jan.kratochvil@redhat.com>
9781
9782 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9783 range.
9784
e7303042
PA
97852011-02-14 Pedro Alves <pedro@codesourcery.com>
9786
9787 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9788 No longer handle NULL values.
9789
8af8e3bc
PA
97902011-02-14 Pedro Alves <pedro@codesourcery.com>
9791
9792 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9793 * value.c: Include "exceptions.h".
9794 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9795 generic error.
9796 * cp-abi.c: Include gdb_assert.h.
9797 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9798 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9799 errors.
9800 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9801 parameters. No longer returns -1 on error.
9802 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9803 `val' parameters.
9804 * cp-valprint.c: Include exceptions.h.
9805 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9806 the baseclass_offset. Handle unavailable base classes. Use
9807 val_print_invalid_address.
9808 * p-valprint.c: Include exceptions.h.
9809 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9810 when fetching the baseclass_offset. No longer expect
9811 baseclass_offset returning -1. Handle unavailable base classes.
9812 Use val_print_invalid_address.
9813 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9814 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9815 `embedded_offset' and `val' parameters. Adjust.
9816 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9817 parameter, and change its type to gdb_byte pointer. Add
9818 `embedded_offset' and `val' parameters. Adjust. No longer expect
9819 baseclass_offset returning -1.
9820 (value_dynamic_cast): Use value_contents_for_printing rather than
9821 value_contents. Adjust.
9822 (search_struct_field): No longer expect baseclass_offset returning
9823 -1.
9824 (search_struct_method): If reading memory from the target is
9825 necessary, wrap it in a new value to pass to baseclass_offset. No
9826 longer expect baseclass_offset returning -1.
9827 (find_method_list): No longer expect baseclass_offset returning
9828 -1. Use value_contents_for_printing rather than value_contents.
9829 * valprint.c (val_print_invalid_address): New function.
9830 * valprint.h (val_print_invalid_address): Declare.
9831 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9832 and `val' parameters. No longer expect baseclass_offset returning
9833 -1. Adjust.
9834 * gnu-v2-abi.c: Include "exceptions.h".
9835 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9836 parameters. Handle unavailable memory. Recurse through
9837 gnuv2_baseclass_offset directly, rather than through
9838 baseclass_offset. No longer returns -1 on not found, instead
9839 throw an error.
9840 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9841 `val' parameters. Adjust.
9842
1b28d0b3
PA
98432011-02-14 Pedro Alves <pedro@codesourcery.com>
9844
9845 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9846 almost but not quite adjacent.
9847
ec0a52e1
PA
98482011-02-14 Pedro Alves <pedro@codesourcery.com>
9849
9850 * value.h (value_entirely_available): Declare.
9851 * value.c (value_entirely_available): New function.
9852 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9853 real type if the pointer is unavailable.
9854
24e6bcee
PA
98552011-02-14 Pedro Alves <pedro@codesourcery.com>
9856
9857 * valops.c (value_repeat): Use read_value_memory instead of
9858 read_memory.
9859
39d37385
PA
98602011-02-14 Pedro Alves <pedro@codesourcery.com>
9861
9862 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9863 * value.c (value_contents_copy_raw, value_contents_copy): New
9864 functions.
9865 (value_primitive_field): Use value_contents_copy_raw instead of
9866 memcpy.
9867 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9868 memcpy.
9869 (value_array, value_slice): Ditto.
9870 * valarith.c (value_subscripted_rvalue): Use
9871 value_contents_copy_raw instead of memcpy.
9872
a3d34bf4
PA
98732011-02-14 Pedro Alves <pedro@codesourcery.com>
9874
9875 <unavailable> references.
9876
9877 * valops.c (get_value_at): Use value_from_contents_and_address,
9878 avoiding read_memory.
9879
9fc6d940
PA
98802011-02-14 Pedro Alves <pedro@codesourcery.com>
9881
9882 * c-valprint.c (c_val_print): Print a string with unavailable
9883 contents as an array.
9884
5467c6c8
PA
98852011-02-14 Pedro Alves <pedro@codesourcery.com>
9886
9887 * value.h (unpack_bits_as_long): Delete declaration.
9888 (unpack_value_bits_as_long): Declare.
9889 (unpack_value_field_as_long): Declare.
9890 (value_field_bitfield): Declare.
9891 * value.c (unpack_bits_as_long): Rename to...
9892 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9893 value parameters. Return the extracted result in a new output
9894 parameter. If the value contents are unavailable, return false,
9895 otherwise return true.
9896 (unpack_value_bits_as_long): New.
9897 (unpack_field_as_long): Rename to...
9898 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9899 Add embedded_offset and value parameters. Return the extracted
9900 result in a new output parameter. If the value contents are
9901 unavailable, return false, otherwise return true.
9902 (unpack_value_field_as_long): New.
9903 (unpack_field_as_long_1): New.
9904 (unpack_field_as_long): Reimplement as wrapper around
9905 unpack_value_field_as_long_1.
9906 (value_field_bitfield): New function.
9907 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9908 unpack_value_bits_as_long. Mark the value as unavailable, if it
9909 is unavailable.
9910 * jv-valprint.c (java_print_value_fields): Use
9911 value_field_bitfield.
9912 * p-valprint.c (pascal_object_print_value_fields): Use
9913 value_field_bitfield.
9914 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9915
3158c6ed
PA
99162011-02-14 Pedro Alves <pedro@codesourcery.com>
9917
9918 * value.c (get_internalvar_integer): Also return the int value of
9919 TYPE_CODE_INT INTERNALVAR_VALUE values.
9920 (set_internalvar): Don't special case TYPE_CODE_INT.
9921
9fbdca0d
PA
99222011-02-14 Pedro Alves <pedro@codesourcery.com>
9923
9924 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9925 INTERNALVAR_POINTER.
9926 <pointer>: Delete.
9927 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9928 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9929 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9930
c8c1c22f
PA
99312011-02-14 Pedro Alves <pedro@codesourcery.com>
9932
9933 * value.h (value_available_contents_eq): Declare.
9934 * value.c (find_first_range_overlap): New function.
9935 (value_available_contents_eq): New function.
9936 * valprint.c (val_print_array_elements): Use
9937 value_available_contents_eq.
9938 * ada-valprint.c (val_print_packed_array_elements): Use
9939 value_available_contents_eq.
9940 * jv-valprint.c (java_value_print): Use
9941 value_available_contents_eq.
9942
e6e4e701
PA
99432011-02-14 Pedro Alves <pedro@codesourcery.com>
9944
9945 * target.c (target_read_live_memory): New function.
9946 (memory_xfer_live_readonly_partial): New.
9947 (memory_xfer_partial): If reading from a traceframe, fallback to
9948 reading unavailable read-only memory from read-only regions of
9949 live target memory.
9950 * tracepoint.c (disconnect_tracing): Adjust.
9951 (set_current_traceframe): New, factored out from
9952 set_traceframe_number.
9953 (set_traceframe_number): Reimplement to only change the traceframe
9954 number on the GDB side.
9955 (do_restore_current_traceframe_cleanup): Adjust.
9956 (make_cleanup_restore_traceframe_number): New.
9957 (cur_traceframe_number): New global.
9958 (tfile_open): Set cur_traceframe_number to no traceframe.
9959 (set_tfile_traceframe): New function.
9960 (tfile_trace_find): If looking up a traceframe using any method
9961 other than by number, make sure the current tfile traceframe
9962 matches gdb's current traceframe. Update the current tfile
9963 traceframe if the lookup succeeded.
9964 (tfile_fetch_registers, tfile_xfer_partial)
9965 (tfile_get_trace_state_variable_value): Make sure the remote
9966 traceframe matches gdb's current traceframe.
9967 * remote.c (remote_traceframe_number): New global.
9968 (remote_open_1): Set it to -1.
9969 (set_remote_traceframe): New function.
9970 (remote_fetch_registers, remote_store_registers)
9971 (remote_xfer_memory, remote_xfer_partial)
9972 (remote_get_trace_state_variable_value): Make sure the remote
9973 traceframe matches gdb's current traceframe.
9974 (remote_trace_find): If looking up a traceframe using any method
9975 other than by number, make sure the current remote traceframe
9976 matches gdb's current traceframe. Update the current remote
9977 traceframe if the lookup succeeded.
9978 * infrun.c (fetch_inferior_event): Adjust.
9979 * tracepoint.h (set_current_traceframe): Declare.
9980 (get_traceframe_number, set_traceframe_number): Add describing
9981 comments.
9982
e6ca34fc
PA
99832011-02-14 Pedro Alves <pedro@codesourcery.com>
9984
9985 Mark pieces of values as unavailable if the corresponding memory
9986 is unavailable.
9987
9988 * valops.c: Include tracepoint.h.
9989 (value_fetch_lazy): Use read_value_memory.
9990 (read_value_memory): New.
9991 * value.h (read_value_memory): Declare.
9992 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9993 * exec.c (section_table_available_memory): New function.
9994 * exec.h (section_table_available_memory): Declare.
9995
2a7498d8
PA
99962011-02-14 Pedro Alves <pedro@codesourcery.com>
9997
9998 * Makefile.in (SFILES): Add memrange.c.
9999 (HFILES_NO_SRCDIR): Add memrange.h.
10000 (COMMON_OBS): Add memrange.o.
10001 * memrange.c: New file.
10002 * memrange.h: New file.
10003 * tracepoint.c: Include memrange.h.
10004 (struct mem_range): Delete.
10005 (mem_range_s): Delete.
10006 (traceframe_available_memory): New function.
10007 * tracepoint.h (traceframe_available_memory): Declare.
10008
b3b9301e
PA
100092011-02-14 Pedro Alves <pedro@codesourcery.com>
10010
10011 * target.h (struct traceframe_info): Forward declare.
10012 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10013 (struct target_ops) <to_traceframe_info>: New field.
10014 (target_traceframe_info): New.
10015 * target.c (update_current_target): Inherit and default
10016 to_traceframe_info.
10017 * remote.c (PACKET_qXfer_traceframe_info): New.
10018 (remote_protocol_features): Register qXfer:traceframe-info:read.
10019 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10020 (remote_traceframe_info): New.
10021 (init_remote_ops): Install it.
10022 (_initialize_remote): Install "set/show remote traceframe-info"
10023 commands.
10024 * tracepoint.h (parse_traceframe_info): Declare.
10025 * tracepoint.c (struct mem_range): New.
10026 (mem_range_s): New typedef.
10027 (struct traceframe_info): New.
10028 (traceframe_info): New global.
10029 (free_traceframe_info): New function.
10030 (clear_traceframe_info): New function.
10031 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10032 info.
10033 (build_traceframe_info): New function.
10034 (tfile_traceframe_info): New function.
10035 (init_tfile_ops): Install tfile_traceframe_info.
10036 (traceframe_info_start_memory, free_result): New functions.
10037 (memory_attributes, traceframe_info_elements): New globals.
10038 (parse_traceframe_info, get_traceframe_info): New functions.
10039 * features/traceframe-info.dtd: New file.
10040 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10041
4e07d55f
PA
100422011-02-14 Pedro Alves <pedro@codesourcery.com>
10043
10044 Base support for <unavailable> value contents.
10045
4e07d55f
PA
10046 * value.h (value_bytes_available): Declare.
10047 (mark_value_bytes_unavailable): Declare.
10048 * value.c (struct range): New struct.
10049 (range_s): New typedef.
10050 (ranges_overlap): New function.
10051 (range_lessthan): New function.
10052 (ranges_contain_p): New function.
10053 (struct value) <unavailable>: New field.
10054 (value_bytes_available): New function.
10055 (mark_value_bytes_unavailable): New function.
10056 (require_not_optimized_out): Constify parameter.
10057 (require_available): New function.
10058 (value_contents_all, value_contents): Require all bytes be
10059 available.
10060 (value_free): Free `unavailable'.
10061 (value_copy): Copy `unavailable'.
10062 * valprint.h (val_print_unavailable): Declare.
10063 * valprint.c (valprint_check_validity): Rename `offset' parameter
10064 to `embedded_offset'. If printing a scalar, check whether the
10065 value chunk is available.
10066 (val_print_unavailable): New.
10067 (val_print_scalar_formatted): Check whether the value is
10068 available.
10069 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10070 pretty-printing unavailable values.
10071
bc9a5551
JK
100722011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10075 * c-typeprint.c (c_type_print_args): Update the function comment. New
10076 variable param_type, initialize it. Remove const/volatile qualifiers
10077 for language_cplus and !show_artificial. Use param_type.
10078
93b55aa1
JK
100792011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10080
10081 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10082 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10083 * symtab.h (struct symtab) <next>: Comment extension.
10084
181d9476
YQ
100852011-02-12 Yao Qi <yao@codesourcery.com>
10086
10087 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10088
b708a5c7
JK
100892011-02-11 Yao Qi <yao@codesourcery.com>
10090
10091 * common/Makefile.in: Add copyright header.
10092
c5187ac6
PA
100932011-02-11 Pedro Alves <pedro@codesourcery.com>
10094
10095 * infrun.c (proceed): Move switching out and in of tfind mode from
10096 here ...
10097 (fetch_inferior_event): ... to here.
10098
4f3e6fb7
YQ
100992011-02-11 Yao Qi <yao@codesourcery.com>
10100
10101 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10102 libcommon.a.
10103 * configure.ac: Add common to sub dir.
10104 * configure: Regenerate.
10105
b708a5c7
JK
101062011-02-11 Yao Qi <yao@codesourcery.com>
10107
10108 Build libcommon.a.
10109
10110 * common/Makefile.in: New.
10111 * common/configure.ac: New.
10112 * common/aclocal.m4: New.
10113 * common/configure: Generate.
10114
2287cc7e
PA
101152011-02-10 Pedro Alves <pedro@codesourcery.com>
10116
10117 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10118 side of the parenthesis.
10119
10120 Merge from GCC:
10121 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10122 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10123
fd62cb89
MS
101242011-02-08 Michael Snyder <msnyder@vmware.com>
10125
10126 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10127
56d2815c
JK
101282011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10129
10130 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10131 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10132 psubd and paddd.
10133
4f7d61a8
JK
101342011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10135
10136 PR 12361.
10137 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10138 phsubsw.
10139 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10140 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10141
54fcddd0
UW
101422011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10143
10144 * dwarf2read.c (read_subroutine_type): Set special calling
10145 convention flag for functions compiled by IBM XL C for OpenCL.
10146 * ppc-sysv-tdep.c: Include "dwarf2.h"
10147 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10148 calling convention.
10149 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10150 IBM OpenCL vector types calling convention.
10151 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10152 (ppc_sysv_abi_broken_return_value): Likewise.
10153 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10154 types calling convention.
10155 (ppc64_sysv_abi_return_value): Likewise.
10156 * spu-tdep.c: Include "dwarf2.h"
10157 (spu_return_value): Implement IBM OpenCL vector types calling
10158 convention.
10159
d6dafb7c
UW
101602011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10161
10162 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10163 correct ABI for AltiVec vector arguments.
10164
32b72a42
PA
101652011-02-07 Pedro Alves <pedro@codesourcery.com>
10166
10167 * valprint.c (val_print): Extend comment.
10168 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10169 interface explanation to val_print.
10170 (ada_val_print_array): Adjust comment to current interface.
10171 (print_field_values): Adjust comment to current interface.
10172 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10173 explanation to val_print.
10174 * f-valprint.c (f_val_print): Ditto.
10175 * jv-valprint.c (java_val_print): Ditto.
10176 * m2-valprint.c (m2_val_print): Ditto.
10177 * p-valprint.c (pascal_val_print): Ditto.
10178
9998af43
TJB
101792011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10180
10181 * breakpoint.c (parse_breakpoint_sals): Fix description.
10182
505500db 101832011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10184 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10185
10186 * python/py-inferior.c (python_on_normal_stop): New function.
10187 (python_on_resume): New function.
10188 (python_inferior_exit): New function.
10189 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10190 inferior_exit observers.
10191 * python/py-evtregistry.c: New file.
10192 * python/py-threadevent.c : New file.
10193 * python/py-event.c: New file.
10194 * python/py-evts.c: New file.
10195 * python/py-continueevent.c: New file.
10196 * python/py-bpevent.c: New file.
10197 * python/py-signalevent.c: New file.
10198 * python/py-exetiedevent.c: New file.
10199 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10200 Move struct breakpoint_object from here...
10201 * python/python-internal.h: ... to here.
10202 * python/py-event.h: New file.
10203 * python/py-events.h: New file.
10204 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10205 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10206 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10207 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10208 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10209 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10210 Add build rules for all the above.
10211
9e0ac564
TT
102122011-02-04 Tom Tromey <tromey@redhat.com>
10213
10214 * dwarf2read.c (dwarf2_section_empty_p): New function.
10215 (dwarf2_read_section): Use dwarf2_section_empty_p.
10216 (dwarf2_section_size): New function.
10217 (dwarf2_get_section_info): Unconditionally read section.
10218 (dwarf2_read_index): Use dwarf2_section_empty_p.
10219 (partial_read_comp_unit_head): Use dwarf2_section_size.
10220 (dwarf2_symbol_mark_computed): Likewise.
10221
eee5b35e
DD
102222011-02-04 David Daney <ddaney@caviumnetworks.com>
10223
10224 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10225
385203ed
DD
102262011-02-04 David Daney <ddaney@caviumnetworks.com>
10227
10228 * mips-linux-tdep.c: Include xml-syscall.h.
10229 (mips_linux_get_syscall_number): New function.
10230 (mips_linux_init_abi): Add calls to
10231 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10232 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10233 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10234 * syscalls/mips-n32-linux.xml: New file.
10235 * syscalls/mips-n64-linux.xml: New file.
10236 * syscalls/mips-o32-linux.xml: New file.
10237
9277c30c
UW
102382011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10239
10240 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10241 Complain about inverted range entries.
10242 (dwarf2_record_block_ranges): Likewise.
10243
a3be7890
TJB
102442011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10245
10246 Fix some typos.
10247 * breakpoint.c (update_watchpoint): Fix name of the
10248 update_global_location_list function.
10249 (print_one_breakpoint): Fix typo.
10250 (_initialize_breakpoint): Remove extra space in hbreak help
10251 string.
10252 * breakpoint.h (struct bp_location) <length>: Fix field
10253 description.
10254
041274d8
PA
102552011-02-04 Pedro Alves <pedro@codesourcery.com>
10256
10257 * regcache.c (registers_changed_ptid): Don't explictly always
10258 clear `current_regcache'. Only clear current_thread_ptid and
10259 current_thread_arch when PTID matches. Only reinit the frame
10260 cache if PTID matches the current inferior_ptid. Move alloca(0)
10261 call to ...
10262 (registers_changed): ... here.
10263
c1c2ab58
UW
102642011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10265
10266 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10267 starts with __stack_chk_guard as stack guard symbol.
10268
9011945e
AB
102692011-02-03 Andrew Burgess <aburgess@broadcom.com>
10270
10271 * disasm.c (compare_lines): Handle the end of sequence markers
10272 within the line table to better support disassembling over
10273 compilation unit boundaries.
10274
e0634ccf
UW
102752011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10276
10277 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10278 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10279 implementation even if no symbols are available.
10280 (thumb_analyze_prologue): Update call to skip_prologue_function.
10281 (arm_analyze_prologue): Likewise.
10282
0e9e9abd
UW
102832011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10284
10285 * arm-tdep.c: Include "observer.h".
10286 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10287 (arm_exidx_data_key): New static variable.
10288 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10289 (struct arm_exidx_data): Likewise.
10290 (arm_exidx_data_free): New function.
10291 (arm_compare_exidx_entries): Likewise.
10292 (arm_obj_section_from_vma): Likewise.
10293 (arm_exidx_new_objfile): Likewise.
10294 (arm_find_exidx_entry): Likewise.
10295 (arm_exidx_fill_cache): Likewise.
10296 (arm_exidx_unwind_sniffer): Likewise.
10297 (arm_exidx_unwind): New global variable.
10298 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10299 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10300 observer. Register arm_exidx_data_key as objfile data.
10301
2e9e421f
UW
103022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10303
10304 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10305 due to accessing uninitialized variable. Fix indentation.
10306
580688f3
PA
103072011-02-02 Pedro Alves <pedro@codesourcery.com>
10308
10309 * c-valprint.c (c_value_print): When doing virtual base pointer
10310 adjustment, create a new value with adjusted contents rather than
10311 changing the contents of the value being printed (and getting it
10312 wrong).
10313
3d2c1d41
PA
103142011-02-02 Pedro Alves <pedro@codesourcery.com>
10315
10316 * xml-support.c (xml_find_attribute): New.
10317 (xinclude_start_include): Use it.
10318 * xml-support.h (xml_find_attribute): Declare.
10319 * memory-map.c (memory_map_start_memory)
10320 (memory_map_start_property): Use xml_find_attribute.
10321 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10322 xml_find_attribute.
10323 * remote.c (start_thread): Use xml_find_attribute.
10324 * solib-target.c (library_list_start_segment)
10325 (library_list_start_section, library_list_start_library)
10326 (library_list_start_list): Use xml_find_attribute.
10327 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10328 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10329 (tdesc_start_field): Use xml_find_attribute.
10330
0af3e2db
UW
103312011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10332
10333 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10334 (BUILD_OCL_VTYPES): Update.
10335
c1039e3c
JB
103362011-02-02 Joel Brobecker <brobecker@adacore.com>
10337
10338 * configure.ac: Work around non-GNU sed limitation when computing
10339 python version number.
10340 * configure: Regenerate.
10341
600ea1be
JK
103422011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 Fix debug printing of TYPE_INSTANCE.
10345 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10346 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10347
56c12414
JK
103482011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10349
10350 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10351 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10352 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10353 * ada-operator.inc: Rename the file to ...
10354 * ada-operator.def: ... here, wrap all the entries by macro OP.
10355 * expprint.c (op_name_standard): Remove all the entries. Include
10356 "std-operator.def" instead.
10357 * expression.h (enum exp_opcode): Include "std-operator.def" and
10358 "ada-operator.def". Move all the entries ...
10359 * std-operator.def: ... here, wrap all the entries by macro OP.
10360
c52b559d
PP
103612011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10362
10363 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10364 * breakpoint.c (remove_jit_event_breakpoints): New function.
10365 * jit.c (jit_descriptor_addr): Delete.
10366 (registering_code): Delete.
10367 (clear_int): Delete.
10368 (jit_inferior_data): New variable.
10369 (struct jit_inferior_data): New type.
10370 (get_jit_inferior_data): New function.
10371 (jit_inferior_data_cleanup): New function.
10372 (jit_read_descriptor): Adjust.
10373 (jit_register_code): Adjust.
10374 (jit_breakpoint_re_set_internal): New function; move code here ...
10375 (jit_inferior_init): ... from here.
10376 (jit_breakpoint_re_set): Adjust.
10377 (jit_reset_inferior_data_and_breakpoints): New function.
10378 (jit_inferior_created_observer): Adjust.
10379 (jit_inferior_exit_hook): Adjust.
10380 (jit_executable_changed_observer): New function.
10381 (jit_event_handler): Adjust.
10382 (_initialize_jit): Adjust.
10383
e839132d
MS
103842011-01-31 Michael Snyder <msnyder@vmware.com>
10385
10386 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10387 line.
10388
47a80e90
TT
103892011-01-31 Tom Tromey <tromey@redhat.com>
10390
10391 PR python/12216:
10392 * python/python.c (execute_gdb_command): Call
10393 prevent_dont_repeat.
10394 * top.c (suppress_dont_repeat): New global.
10395 (dont_repeat): Use it.
10396 (prevent_dont_repeat): New function.
10397 * command.h (prevent_dont_repeat): Declare.
10398
45a43567
TT
103992011-01-31 Tom Tromey <tromey@redhat.com>
10400
10401 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10402 * python/py-breakpoint.c (bppy_set_silent): Use
10403 breakpoint_set_silent.
10404 (bppy_set_thread): Use breakpoint_set_thread.
10405 (bppy_set_task): Use breakpoint_set_task.
10406 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10407 (breakpoint_set_task): Declare.
10408 (make_breakpoint_silent): Remove.
10409 * breakpoint.c (breakpoint_set_silent): New function.
10410 (breakpoint_set_thread): Likewise.
10411 (breakpoint_set_task): Likewise.
10412 (make_breakpoint_silent): Remove.
10413
09d682a4
TT
104142011-01-31 Tom Tromey <tromey@redhat.com>
10415
10416 * breakpoint.h (user_breakpoint_p): Declare.
10417 * breakpoint.c (user_breakpoint_p): New function.
10418 (breakpoint_1): Use it.
10419 (save_breakpoints): Likewise.
10420
9c4ea6c5
JB
104212011-01-31 Joel Brobecker <brobecker@adacore.com>
10422
10423 * configure.ac: Add handling of Python distribution on Windows.
10424 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10425 sysconfig variables are not defined, then do not use them.
10426 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10427 instead. On Windows, return all paths using forward-slashes
10428 rather than backslashes.
10429
ac534cba
JB
104302011-01-31 Joel Brobecker <brobecker@adacore.com>
10431
10432 * configure.ac: Remove fallback behavior for building
10433 against Python. Remove tweaking of Python include path.
10434 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10435 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10436 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10437 Always restore CPPFLAGS and LIBS after linking test.
10438 * configure: Regenerated.
10439 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10440 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10441 * python/python-internal.h: Adjust includes of Python .h files.
10442
c2f0d045
JB
104432011-01-31 Joel Brobecker <brobecker@adacore.com>
10444
10445 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10446 in error message.
10447
6b0c4c1f
JB
104482011-01-31 Joel Brobecker <brobecker@adacore.com>
10449
10450 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10451 value test.
10452
672c9795
YQ
104532011-01-31 Yao Qi <yao@codesourcery.com>
10454
10455 * arm-linux-nat.c: Update calls to regcache_register_status
10456 instead of regcache_valid_p.
10457 * aix-thread.c: Likewise.
10458 * i386gnu-nat.c: Likewise.
10459
80b23b6a
JK
104602011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10461
10462 Fix crash.
10463 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10464 touching TYPE_FIELD_ARTIFICIAL.
10465
4cd712bd
RE
104662011-01-28 Richard Earnshaw <rearnsha@arm.com>
10467
10468 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10469 Committers.
10470
ffd5ec24
PA
104712011-01-28 Pedro Alves <pedro@codesourcery.com>
10472
10473 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10474 selected, don't try iterating over the traceframe's blocks.
10475 (tfile_has_stack): If there's no traceframe selected, then there's
10476 no stack.
10477 (tfile_has_registers): If there's no traceframe selected, then
10478 there's no registers.
10479
e8c9e0a1
PA
104802011-01-28 Pedro Alves <pedro@codesourcery.com>
10481
10482 * target.c (memory_xfer_partial): No need to restore shadows if we
10483 haven't read anything.
10484
de15c4ab
PA
104852011-01-28 Pedro Alves <pedro@codesourcery.com>
10486
10487 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10488 and val_print_scalar_formatted.
10489
9f41c731
PA
104902011-01-27 Pedro Alves <pedro@codesourcery.com>
10491
10492 * tracepoint.c (tfile_read): New.
10493 (tfile_open): Use it.
10494 (tfile_get_traceframe_address): Use it.
10495 (tfile_trace_find): Use it.
10496 (walk_blocks_callback_func): New typedef.
10497 (match_blocktype): New function.
10498 (traceframe_walk_blocks): New function.
10499 (traceframe_find_block_type): New function.
10500 (tfile_fetch_registers, tfile_xfer_partial)
10501 (tfile_get_trace_state_variable_value): Use
10502 traceframe_find_block_type and tfile_read.
10503
cdefc55d
KB
105042011-01-26 Kevin Buettner <kevinb@redhat.com>
10505
10506 * remote-mips.c: Add internationalization mark ups. Remove
10507 trailing \n from already marked up strings.
10508
a81766d8
TT
105092011-01-26 Tom Tromey <tromey@redhat.com>
10510
10511 * python/py-prettyprint.c (print_string_repr): Clear
10512 'addressprint' option when calling val_print_string.
10513 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10514 option when calling val_print_string.
10515
74aedc46
TT
105162011-01-26 Tom Tromey <tromey@redhat.com>
10517
10518 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10519 GDB_PY_LL_ARG.
10520 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10521 macros.
10522 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10523 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10524 (gdb_py_long_as_ulongest): New defines.
10525 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10526 (gdb_py_int_as_long): Declare.
10527 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10528 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10529 (valpy_long): Add comment.
10530 * python/py-utils.c (get_addr_from_python): Use
10531 gdb_py_long_as_ulongest. Handle overflow properly.
10532 (gdb_py_object_from_longest): New function.
10533 (gdb_py_object_from_ulongest): Likewise.
10534 (gdb_py_int_as_long): Likewise.
10535 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10536 * python/py-symtab.c (salpy_get_pc): Use
10537 gdb_py_long_from_ulongest.
10538 (salpy_get_line): Use PyInt_FromLong.
10539 * python/py-param.c (set_parameter_value): Use
10540 gdb_py_int_as_long.
10541 * python/py-lazy-string.c (stpy_get_address): Use
10542 gdb_py_long_from_ulongest.
10543 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10544 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10545 * python/py-breakpoint.c (bppy_set_thread): Use
10546 gdb_py_int_as_long.
10547 (bppy_set_task): Likewise.
10548 (bppy_set_ignore_count): Likewise.
10549 (bppy_set_hit_count): Likewise.
10550 * python/py-block.c (blpy_get_start): Use
10551 gdb_py_object_from_ulongest.
10552 (blpy_get_end): Likewise.
10553 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10554
e4f6d2ec
TJB
105552011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10556
10557 PR/symtab 11766:
10558 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10559 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10560 equality test for objfile, initialize addr_low if needed.
10561
b30aa278
PA
105622011-01-25 Pedro Alves <pedro@codesourcery.com>
10563
10564 * tui/tui-regs.c (tui_register_format): Remove dead code.
10565
ab2188aa
PA
105662011-01-25 Pedro Alves <pedro@codesourcery.com>
10567
10568 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10569 instead of print_scalar_formatted.
10570 (print_scalar_formatted): Don't handle 's' format strings here,
10571 and add an assertion that we never see such format here.
10572 * valprint.h (val_print_scalar_formatted): Declare.
10573 * valprint.c (val_print_scalar_formatted): New.
10574 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10575 instead of print_scalar_formatted.
10576 * jv-valprint.c (java_val_print): Ditto.
10577 * p-valprint.c (pascal_val_print): Ditto.
10578 * ada-valprint.c (ada_val_print_1): Ditto.
10579 * f-valprint.c (f_val_print): Ditto.
10580 * infcmd.c (registers_info): Ditto.
10581 * m2-valprint.c (m2_val_print): Ditto.
10582
66d61a4c
PA
105832011-01-25 Pedro Alves <pedro@codesourcery.com>
10584
10585 * m2-valprint.c (print_unbounded_array): Pass
10586 value_contents_for_printing rather than value_contents, to
10587 m2_print_array_contents. Also pass in the value.
10588
831adc1f
JK
105892011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10592 (save_gdb_index_command): Switch to .gdb_index version 4.
10593
20622269
PA
105942011-01-25 Pedro Alves <pedro@codesourcery.com>
10595
10596 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10597 than frame_register, and always pass a valid value to val_print.
10598
585fdaa1
PA
105992011-01-25 Pedro Alves <pedro@codesourcery.com>
10600
10601 Centralize printing "<optimized out>".
10602
10603 * valprint.h (val_print_optimized_out): Declare.
10604 * cp-valprint.c (cp_print_value_fields): Use
10605 val_print_optimized_out.
10606 * jv-valprint.c (java_print_value_fields): Ditto.
10607 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10608 * printcmd.c (print_formatted): Ditto.
10609 * valprint.c (valprint_check_validity): Ditto.
10610 (value_check_printable): Ditto.
10611 (val_print_optimized_out): New.
10612
29ec5263
PA
106132011-01-25 Pedro Alves <pedro@codesourcery.com>
10614
10615 * infcmd.c (default_print_registers_info): Allocate values so to
10616 never pass a NULL value to val_print.
10617
de4127a3
PA
106182011-01-25 Pedro Alves <pedro@codesourcery.com>
10619
10620 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10621 boolean. Make sure to always pass a value that matches the
10622 contents buffer to callees. Preserve `address' for following
10623 iterations.
10624 * value.c (value_contents_for_printing_const): New.
10625 (value_address): Constify value argument.
10626 * value.h (value_contents_for_printing_const): Declare.
10627 (value_address): Constify value argument.
10628
ee99023e
PA
106292011-01-25 Pedro Alves <pedro@codesourcery.com>
10630
10631 * regcache.c (struct regcache_descr): Rename
10632 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10633 and sizeof_cooked_register_valid_p to
10634 sizeof_cooked_register_status.
10635 (init_regcache_descr): Adjust.
10636 (struct regcache): Rename register_valid_p field to
10637 register_status.
10638 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10639 (do_cooked_read): Adjust.
10640 (regcache_valid_p): Rename to ...
10641 (regcache_register_status): ... this. Adjust.
10642 (regcache_invalidate): Adjust.
10643 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10644 Adjust.
10645 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10646 as unavailable, not valid.
10647 (regcache_dump): Adjust.
10648 * regcache.h (enum register_status): New.
10649 (regcache_register_status): Declare.
10650 (regcache_invalidate): Delete declaration.
10651 * corelow.c (get_core_registers): Adjust.
10652 * tracepoint.c (tfile_fetch_registers): Adjust.
10653 * trad-frame.c (REG_VALUE): Rename to ...
10654 (TF_REG_VALUE): ... this.
10655 (REG_UNKNOWN): Rename to ...
10656 (TF_REG_UNKNOWN): ... this.
10657 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10658 * mi/mi-main.c (register_changed_p): Adjust.
10659
99e42fd8
PA
106602011-01-25 Pedro Alves <pedro@codesourcery.com>
10661
10662 * regcache.c (struct regcache_descr): Remove outdated comment.
10663 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10664 overallocate hack.
10665 (regcache_xmalloc): Rename to ...
10666 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10667 Allocate the regcache type accordingly.
10668 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10669 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10670 cooked registers, not raw.
10671 (regcache_dup_no_passthrough): Delete.
10672 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10673 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10674 mention obsolete write_register_bytes.
10675 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10676
f7605bc2
PA
106772011-01-25 Pedro Alves <pedro@codesourcery.com>
10678
10679 Stop remote_read_bytes from handling partial reads itself.
10680
10681 * remote-fileio.c: Include target.h.
10682 (remote_fileio_write_bytes): Delete.
10683 (remote_fileio_func_open, remote_fileio_func_write)
10684 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10685 target_read_memory.
10686 (remote_fileio_func_stat): Use target_read_memory and
10687 target_write_memory.
10688 (remote_fileio_func_gettimeofday): Use target_write_memory.
10689 (remote_fileio_func_system): Use target_read_memory.
10690 * remote.c (remote_write_bytes): Make it static.
10691 (remote_read_bytes): Don't handle partial reads here.
10692 * remote.h (remote_read_bytes): Delete declaration.
10693
efc0eabd
PA
106942011-01-25 Pedro Alves <pedro@codesourcery.com>
10695
10696 Simplify XML parsing a bit.
10697
10698 * xml-support.h (gdb_xml_parse_quick): Declare.
10699 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10700 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10701 parameter.
10702 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10703 gdb_xml_create_parser_and_cleanup_1.
10704 (gdb_xml_parse_quick): New.
10705 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10706 * osdata.c (osdata_parse): Ditto.
10707 * remote.c (remote_threads_info): Ditto.
10708 * solib-target.c (solib_target_parse_libraries): Ditto.
10709 * xml-syscall.c (syscall_parse_xml): Ditto.
10710 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10711
314d366a
KB
107122011-01-24 Kevin Buettner <kevinb@redhat.com>
10713
10714 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10715 with remote-mips.o added to gdb_target_obs.
10716 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10717
a491d753
PA
107182011-01-24 Pedro Alves <pedro@codesourcery.com>
10719
10720 * ada-valprint.c (val_print_packed_array_elements): Pass the
10721 correct struct value to val_print.
10722 (ada_val_print_1): Ditto.
10723
490f124f
PA
107242011-01-24 Pedro Alves <pedro@codesourcery.com>
10725
10726 Don't lose embedded_offset in printing routines throughout.
10727
10728 * valprint.h (val_print_array_elements): Change prototype.
10729 * valprint.c (val_print_array_elements): Add `embedded_offset'
10730 parameter, and adjust to pass it down to val_print, while passing
10731 `valaddr' or `address' unmodified. Take embedded_offset into
10732 account when checking repetitions.
10733 * c-valprint.c (c_val_print): Pass embedded_offset to
10734 val_print_array_elements instead of adjusting `valaddr' and
10735 `address'.
10736 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10737 embedded_offset to val_print_array_elements instead of adjusting
10738 `valaddr'.
10739 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10740 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10741 val_print_array_elements and pascal_object_print_value_fields
10742 instead of adjusting `valaddr'.
10743 (pascal_object_print_value_fields): Add `offset' parameter, and
10744 adjust to use it.
10745 (pascal_object_print_value): Add `offset' parameter, and adjust to
10746 use it.
10747 (pascal_object_print_static_field): Use
10748 value_contents_for_printing/value_embedded_offset, rather than
10749 value_contents.
10750 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10751 parameter, and adjust to use it. Use
10752 value_contents_for_printing/value_embedded_offset, rather than
10753 value_contents.
10754 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10755 (ada_val_print_array): Add `offset' parameter, and adjust to use
10756 it.
10757 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10758 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10759 Instead work with offsets. Use
10760 value_contents_for_printing/value_embedded_offset, rather than
10761 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10762 and use value_from_pointer to extract a target pointer, rather
10763 than value_from_longest.
10764 (print_variant_part): Add `offset' parameter. Replace
10765 `outer_valaddr' parameter by a new `outer_offset' parameter.
10766 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10767 (ada_value_print): Use
10768 value_contents_for_printing/value_embedded_offset, rather than
10769 value_contents.
10770 (print_record): Add `offset' parameter, and adjust to pass it
10771 down.
10772 (print_field_values): Add `offset' parameter. Replace
10773 `outer_valaddr' parameter by a new `outer_offset' parameter.
10774 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10775 Use value_contents_for_printing/value_embedded_offset, rather than
10776 value_contents.
10777 * d-valprint.c (dynamic_array_type): Use
10778 value_contents_for_printing/value_embedded_offset, rather than
10779 value_contents.
10780 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10781 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10782 (java_print_value_fields): Take `offset' into account. Don't
10783 re-adjust `valaddr'. Instead pass down adjusted offsets.
10784 (java_val_print): Take `embedded_offset' into account. Pass it to
10785 java_print_value_fields.
10786 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10787 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10788 down adjusted offsets.
10789 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10790 (f_val_print): Take `embedded_offset' into account.
10791
7bfc9434
JB
107922011-01-21 Joel Brobecker <brobecker@adacore.com>
10793
10794 * inflow.c: Include "gdbcmd.h".
10795 (interactive_mode): New static global, moved here from top.c.
10796 (show_interactive_mode): New function, moved here from top.c.
10797 use gdb_has_a_terminal instead of input_from_terminal_p to
10798 determine the current mode.
10799 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10800 setting.
10801 (_initialize_inflow): Add the "set/show interactive-mode"
10802 commands. Moved here from top.c, after having adjusted slightly
10803 the help text.
10804 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10805 to inflow.c.
10806 (input_from_terminal_p): Remove handling of "interactive-mode"
10807 setting, moved to infow.c.
10808 (init_main): Remove creation of the "set/show interactive-mode"
10809 commands, moved to inflow.c.
10810
44603653
JB
108112011-01-19 Joel Brobecker <brobecker@adacore.com>
10812
10813 * NEWS: Add entry for native ia64-hpux support.
10814
4694da01
TT
108152011-01-19 Tom Tromey <tromey@redhat.com>
10816
10817 PR mi/8618:
10818 * thread.c (free_thread): Free 'name'.
10819 (print_thread_info): Emit thread name. Change CLI output.
10820 (thread_name_command): New function.
10821 (do_captured_thread_select): Emit newline.
10822 (_initialize_thread): Register 'thread name' command.
10823 * target.h (struct target_ops) <to_thread_name>: New field.
10824 (target_thread_name): New macro.
10825 * target.c (update_current_target): Handle to_thread_name.
10826 * python/py-infthread.c (thpy_get_name): New function.
10827 (thpy_set_name): Likewise.
10828 (thread_object_getset): Add "name".
10829 * linux-nat.c (linux_nat_thread_name): New function.
10830 (linux_nat_add_target): Set to_thread_name.
10831 * gdbthread.h (struct thread_info) <name>: New field.
10832
10d44370
JB
108332011-01-18 Joel Brobecker <brobecker@adacore.com>
10834
10835 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10836 (ada_val_print_1): Likewise.
10837
e3acb115
JB
108382011-01-18 Joel Brobecker <brobecker@adacore.com>
10839
10840 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10841 upper limit address is not greater than the function end address
10842 when the upper limit could not be computed using the debugging
10843 info.
10844
dc92e161
TT
108452011-01-17 Tom Tromey <tromey@redhat.com>
10846
10847 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10848 get_regcomp_error.
10849 * utils.c: Include gdb_regex.h.
10850 (do_regfree_cleanup): New function.
10851 (make_regfree_cleanup): Likewise.
10852 (get_regcomp_error): Likewise.
10853 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10854
f55af66d
TT
108552011-01-17 Tom Tromey <tromey@redhat.com>
10856
10857 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10858 re_compile_fastmap.
10859
a5a44b53
PM
108602011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10861
10862 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10863 for internal variables.
10864 (last_was_structop): New static variable.
10865 (COMPLETE): New token.
10866 (field_exp): New rule to group all '.' suffix handling.
10867 Add mark_struct_expression calls when approriate to be able
10868 to correctly find fields for completion.
10869 (yylex): Adapt to handle field completion and set INTVAR when
10870 required.
10871
2c291032
YQ
108722011-01-14 Yao Qi <yao@codesourcery.com>
10873
10874 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10875 save_reggroup, restore_reggroup and all_reggroup.
10876
447b483c
JB
108772011-01-14 Joel Brobecker <brobecker@adacore.com>
10878
10879 * ada-valprint. (ada_printchar): Use the correct type length
10880 in call to ada_emit_char.
10881 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10882
7b64a93b
PM
108832011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10884
10885 * solib-som.h (hpux_major_release): Declare variable here.
10886 * solib-som.c: Remove <sys/utsname.h> header.
10887 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10888 (hpux_major_release): Make global, change default value to
10889 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10890 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10891 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10892 Add "solib-som.h" header.
10893 (set_hpux_major_release): New function.
10894 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10895
4e18c053
MF
108962011-01-14 Mike Frysinger <vapier@gentoo.org>
10897
10898 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10899
a9df6b22
JB
109002011-01-14 Joel Brobecker <brobecker@adacore.com>
10901
10902 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10903 new-line at end of warning message.
10904 (ia64_hpux_store_register): Remove trailing new-line at end of
10905 error message.
10906 * ia64-hpux-tdep.c: Rephrase comment.
10907 * solib-ia64-hpux.c (struct dld_info): Change type of field
10908 dld_flags from "long long" to ULONGEST.
10909
ecb956dd
PA
109102011-01-14 Pedro Alves <pedro@codesourcery.com>
10911
10912 * target.h (deprecated_child_ops): Delete declaration.
10913 * target.c (deprecated_child_ops): Delete definition.
10914
76adfcae
PA
109152011-01-14 Pedro Alves <pedro@codesourcery.com>
10916
10917 * Makefile.in (hpux-thread.o): Delete rule.
10918 * configure.ac: Don't check for HPUX DCE threads support.
10919 * configure, config.in: Regenerate.
10920 * hppa-hpux-nat.c (child_suppress_run): Delete.
10921 (hppa_hpux_child_can_run): Delete.
10922 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10923 * hpux-thread.c: Delete.
10924
042e866e
JB
109252011-01-13 Joel Brobecker <brobecker@adacore.com>
10926
10927 * hpux-thread.c (hpux_pid_to_str): Delete.
10928
4ffa5a33
JB
109292011-01-13 Joel Brobecker <brobecker@adacore.com>
10930
10931 * ada-valprint.c (ada_emit_char): Remove strange code.
10932 Check that c is <= UCHAR_MAX before passing it to isascii.
10933 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10934
de8fa76c
JB
109352011-01-13 Joel Brobecker <brobecker@adacore.com>
10936
10937 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10938 to the case where instream is stdin.
10939
c4de7027
JB
109402011-01-13 Joel Brobecker <brobecker@adacore.com>
10941
10942 * ia64-tdep.h (struct regcache): Forward declare.
10943 (struct ia64_infcall_ops): New struct type.
10944 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10945 and "infcall_ops".
10946 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10947 Renames ia64_find_global_pointer.
10948 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10949 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10950 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10951 methods.
10952 (ia64_infcall_ops): New static global constant.
10953 (ia64_gdbarch_init): Set tdep->infcall_ops.
10954 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10955 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10956 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10957 (ia64_hpux_dummy_code): New static global constant.
10958 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10959 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10960 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10961 New function.
10962 (ia64_hpux_infcall_ops): New static global constant.
10963 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10964 for inferior function calls to work properly on ia64-hpux.
10965
77ca787b
JB
109662011-01-13 Joel Brobecker <brobecker@adacore.com>
10967
10968 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10969 * ia64-tdep.h (struct frame_info): forward declaration.
10970 (struct gdbarch_tdep): Add field size_of_register_frame.
10971 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10972 to determine the size of the register frame.
10973 (ia64_size_of_register_frame): New function.
10974 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10975 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10976 (IA64_HPUX_UREG_REASON): New macro.
10977 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10978 New functions.
10979 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10980 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10981 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10982 objects.
10983
92c9a463
JB
109842011-01-13 Joel Brobecker <brobecker@adacore.com>
10985
10986 Add support for ia64-hpux.
10987 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10988 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10989
10990 * configure.host: Add handling for ia64-hpux hosts. Add associated
10991 floatformats.
10992 * configure.tgt: Add handling for ia64-hpux targets.
10993 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10994 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10995 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10996
f688d93f
JB
109972011-01-13 Joel Brobecker <brobecker@adacore.com>
10998
10999 [ttrace] Compute thread list immediately after attach.
11000 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11001 New subprogram.
11002 (inf_ttrace_attach): Use it.
11003
1b89e62f
JB
110042011-01-13 Joel Brobecker <brobecker@adacore.com>
11005
11006 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11007 if we could not determine the frame's function address. Instead,
11008 use the frame's PC, and then continue.
11009
3e5e6e2a
JB
110102011-01-13 Joel Brobecker <brobecker@adacore.com>
11011
11012 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11013 not already defined.
11014
825d6d8a
JB
110152011-01-13 Joel Brobecker <brobecker@adacore.com>
11016
11017 * ia64-tdep.c (ia64_struct_type_p): New function.
11018 (ia64_extract_return_value): Handle integral values that are
11019 less than 8 bytes long.
11020 (ia64_push_dummy_call): Likewise.
11021
7458e667
JB
110222011-01-13 Joel Brobecker <brobecker@adacore.com>
11023
11024 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11025 floatformat_ia64_ext.
11026 (floatformat_ia64_ext_big): New static const.
11027 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11028
1b05df00
TT
110292011-01-12 Tom Tromey <tromey@redhat.com>
11030
11031 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11032 messages.
11033 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11034 (mi_cmd_thread_list_ids): Likewise.
11035 (mi_cmd_data_list_changed_registers): Likewise.
11036 (mi_cmd_data_list_register_values): Likewise.
11037 (mi_cmd_data_write_register_values): Likewise.
11038 (mi_cmd_data_evaluate_expression): Likewise.
11039 (mi_cmd_data_read_memory): Likewise.
11040 (mi_cmd_data_read_memory_bytes): Likewise.
11041 (mi_cmd_data_write_memory): Likewise.
11042 (mi_cmd_enable_timings): Likewise.
11043 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11044 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11045 (mi_cmd_var_delete): Likewise.
11046 (mi_cmd_var_set_format): Likewise.
11047 (mi_cmd_var_show_format): Likewise.
11048 (mi_cmd_var_info_num_children): Likewise.
11049 (mi_cmd_var_list_children): Likewise.
11050 (mi_cmd_var_info_type): Likewise.
11051 (mi_cmd_var_info_expression): Likewise.
11052 (mi_cmd_var_show_attributes): Likewise.
11053 (mi_cmd_var_assign): Likewise.
11054 (mi_cmd_var_update): Likewise.
11055 (mi_cmd_enable_pretty_printing): Likewise.
11056 (mi_cmd_var_set_update_range): Likewise.
11057 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11058 messages.
11059 (mi_cmd_target_file_put): Likewise.
11060 (mi_cmd_target_file_delete): Likewise.
11061 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11062 messages.
11063 (mi_cmd_stack_info_depth): Likewise.
11064 (mi_cmd_stack_list_locals): Likewise.
11065 (mi_cmd_stack_list_args): Likewise.
11066 (mi_cmd_stack_select_frame): Likewise.
11067 (mi_cmd_stack_select_frame): Likewise.
11068 (mi_cmd_stack_info_frame): Likewise.
11069 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11070 messages.
11071 (mi_cmd_file_list_exec_source_files): Likewise.
11072 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11073 (mi_cmd_env_cd): Likewise.
11074 (mi_cmd_env_path): Likewise.
11075 (mi_cmd_env_dir): Likewise.
11076 (mi_cmd_inferior_tty_show): Likewise.
11077 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11078 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11079 (mi_cmd_break_watch): Likewise.
11080
ad422571
TJB
110812011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11082
11083 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11084 (ppc_linux_insert_hw_breakpoint): Likewise.
11085 (ppc_linux_remove_hw_breakpoint): Likewise.
11086 (ppc_linux_insert_watchpoint): Likewise.
11087
c2ff108b
JK
110882011-01-12 Andrew Burgess <aburgess@broadcom.com>
11089 Jan Kratochvil <jan.kratochvil@redhat.com>
11090
11091 PR fortran/11104 and DWARF unbound arrays detection.
11092 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11093 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11094 unspecified upper bound.
11095 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11096 variables array_size_array, tmp_type and offset_item. New variable
11097 array. Remove call to f77_get_upperbound. New variables array_type
11098 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11099 the final call to deprecated_set_value_type.
11100
41e8491f
JK
111012011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11102
11103 Make value allocations more lazy.
11104 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11105 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11106 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11107 instead of allocate_value and set_value_lazy.
11108 * findvar.c (value_of_register_lazy): Likewise.
11109 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11110 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11111 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11112 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11113 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11114 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11115 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11116 the end, remove set_value_lazy there.
11117 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11118 instead of allocate_value and set_value_lazy when possible.
11119 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11120 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11121 of allocate_value and set_value_lazy.
11122 (value_from_contents_and_address): Use allocate_value_lazy instead of
11123 allocate_value and set_value_lazy when possible.
11124
b716877b
AB
111252011-01-12 Andrew Burgess <aburgess@broadcom.com>
11126
11127 * disasm.c (dump_insns): Support dumping opcodes for MI.
11128 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11129 dumping of instruction opcodes.
11130
d5ae309f
JB
111312011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11132
11133 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11134 appropiately.
11135
98871305
TT
111362011-01-11 Tom Tromey <tromey@redhat.com>
11137
11138 * thread.c (do_captured_thread_select): Emit newline before
11139 printing frame.
11140
c378eb4e
MS
111412011-01-11 Michael Snyder <msnyder@vmware.com>
11142
11143 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11144 * score-tdep.c: Ditto.
11145 * score-tdep.h: Ditto.
11146 * ser-base.c: Ditto.
11147 * ser-go32.c: Ditto.
11148 * serial.c: Ditto.
11149 * serial.h: Ditto.
11150 * ser-mingw.c: Ditto.
11151 * ser-pipe.c: Ditto.
11152 * ser-tcp.c: Ditto.
11153 * ser-unix.c: Ditto.
11154 * sh64-tdep.c: Ditto.
11155 * shnbsd-nat.c: Ditto.
11156 * sh-tdep.c: Ditto.
11157 * sh-tdep.h: Ditto.
11158 * solib.c: Ditto.
11159 * solib-darwin.c: Ditto.
11160 * solib-frv.c: Ditto.
11161 * solib.h: Ditto.
11162 * solib-irix.c: Ditto.
11163 * solib-osf.c: Ditto.
11164 * solib-pa64.c: Ditto.
11165 * solib-som.c: Ditto.
11166 * solib-spu.c: Ditto.
11167 * solib-sunos.c: Ditto.
11168 * solib-svr4.c: Ditto.
11169 * solist.h: Ditto.
11170 * sol-thread.c: Ditto.
11171 * somread.c: Ditto.
11172 * source.c: Ditto.
11173 * source.h: Ditto.
11174 * sparc64-linux-tdep.c: Ditto.
11175 * sparc64-tdep.c: Ditto.
11176 * sparc-linux-nat.c: Ditto.
11177 * sparc-linux-tdep.c: Ditto.
11178 * sparc-sol2-nat.c: Ditto.
11179 * sparc-sol2-tdep.c: Ditto.
11180 * sparc-tdep.c: Ditto.
11181 * sparc-tdep.h: Ditto.
11182 * spu-tdep.c: Ditto.
11183 * stabsread.c: Ditto.
11184 * stabsread.h: Ditto.
11185 * stack.c: Ditto.
11186 * symfile.c: Ditto.
11187 * symfile.h: Ditto.
11188 * symmisc.c: Ditto.
11189 * symtab.c: Ditto.
11190 * symtab.h: Ditto.
11191 * target.c: Ditto.
11192 * target-descriptions.c: Ditto.
11193 * target-descriptions.h: Ditto.
11194 * target.h: Ditto.
11195 * target-memory.c: Ditto.
11196 * terminal.h: Ditto.
11197 * thread.c: Ditto.
11198 * top.c: Ditto.
11199 * tracepoint.c: Ditto.
11200 * tracepoint.h: Ditto.
11201 * trad-frame.h: Ditto.
11202 * typeprint.c: Ditto.
11203
581e13c1
MS
112042011-01-11 Michael Snyder <msnyder@vmware.com>
11205
11206 * ui-file.c: Comment cleanup, mostly periods and spaces.
11207 * ui-file.h: Ditto.
11208 * ui-out.c: Ditto.
11209 * ui-out.h: Ditto.
11210 * utils.c: Ditto.
11211 * v850-tdep.c: Ditto.
11212 * valarith.c: Ditto.
11213 * valops.c: Ditto.
11214 * valprint.c: Ditto.
11215 * valprint.h: Ditto.
11216 * value.c: Ditto.
11217 * value.h: Ditto.
11218 * varobj.c: Ditto.
11219 * varobj.h: Ditto.
11220 * vax-tdep.c: Ditto.
11221 * vec.c: Ditto.
11222 * vec.h: Ditto.
11223 * version.h: Ditto.
11224 * windows-nat.c: Ditto.
11225 * windows-tdep.c: Ditto.
11226 * xcoffread.c: Ditto.
11227 * xcoffsolib.c: Ditto.
11228 * xml-support.c: Ditto.
11229 * xstormy16-tdep.c: Ditto.
11230 * xtensa-tdep.c: Ditto.
11231 * xtensa-tdep.h: Ditto.
11232
90e4670f
TJB
112332011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11234
11235 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11236 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11237
e09342b5
TJB
112382011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11239 Thiago Jung Bauermann <bauerman@br.ibm.com>
11240
11241 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11242 * breakpoint.h
e09342b5
TJB
11243 (struct breakpoint_ops) <resources_needed>: New method.
11244 Initialize to NULL in all existing breakpoint_ops instances.
11245 (struct breakpoint) <exact>: New field.
11246 (target_exact_watchpoints): Declare external global.
11247 * breakpoint.c (target_exact_watchpoints): New global flag.
11248 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11249 b->enable_state to bp_enabled before calling
11250 hw_watchpoint_used_count.
11251 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11252 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11253 if available.
11254 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11255 if the watchpoint is exact.
11256 (resources_needed_watchpoint): New function.
11257 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11258 (watch_command_1): Set b->exact if the user asked for an exact
11259 watchpoint and one can be set.
11260 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11261 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11262 the user asks for an exact watchpoint and one can be set. Return
11263 number of needed debug registers to watch the expression.
11264 * gdbtypes.c (is_scalar_type): New function, based on
11265 valprint.c:scalar_type_p.
11266 (is_scalar_type_recursive): New function.
11267 * gdbtypes.h (is_scalar_type_recursive): Declare.
11268 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11269 handle regions when ranged watchpoints are available.
11270 (create_watchpoint_request): New function.
11271 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11272 create_watchpoint_request.
11273 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11274 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11275 `set powerpc' and `show powerpc' commands.
11276 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11277 Mention documentation comment in the target macro.
11278 (target_region_ok_for_hw_watchpoint): Document return value.
11279
9fa40276
TJB
112802011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11281
11282 * breakpoint.c (update_watchpoint): Decide on using a software or
11283 hardware watchpoint after the bp_locations are created.
11284
77b06cd7
TJB
112852010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11286
11287 Convert hardware watchpoints to use breakpoint_ops.
11288 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11289 <insert_location>: ... this. Return int instead of void.
11290 Accept pointer to struct bp_location instead of pointer to
11291 struct breakpoint. Adapt all implementations.
f2eb0bc8 11292 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11293 <remove_location>: ... this. Accept pointer to struct bp_location
11294 instead of pointer to struct breakpoint. Adapt all implementations.
11295 * breakpoint.c (insert_catchpoint): Delete function.
11296 (insert_bp_location): Call the watchpoint or catchpoint's
11297 breakpoint_ops.insert method.
11298 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11299 breakpoint_ops.remove method.
11300 (insert_watchpoint, remove_watchpoint): New functions.
11301 (watchpoint_breakpoint_ops): New structure.
11302 (watch_command_1): Initialize the OPS field.
11303 * inf-child.c (inf_child_insert_fork_catchpoint)
11304 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11305 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11306 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11307 Delete functions.
11308 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11309 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11310 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11311 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11312 * target.c (update_current_target): Change default implementation of
11313 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11314 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11315 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11316 to_set_syscall_catchpoint to return_one.
11317 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11318 (debug_to_insert_exec_catchpoint): Report return value.
11319 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11320 (to_insert_exec_catchpoint): Change declaration to return int instead
11321 of void.
11322
9b20d036
MS
113232011-01-11 Michael Snyder <msnyder@vmware.com>
11324
11325 * arm-tdep.c: Internationalization.
11326 * c-lang.c: Ditto.
11327 * charset.c: Ditto.
11328 * fork-child.c: Ditto.
11329 * nto-procfs.c: Ditto.
11330 * ppc-sysv-tdep.c: Ditto.
11331 * procfs.c: Ditto.
11332 * remote-mips.c: Ditto.
11333 * remote.c: Ditto.
11334 * rs6000-nat.c: Ditto.
11335 * rs6000-tdep.c: Ditto.
11336 * target.c: Ditto.
11337 * valops.c: Ditto.
11338 * value.c: Ditto.
11339 * xml-support.c: Ditto.
11340 * mi/mi-cmd-break.c: Ditto.
11341 * mi/mi-cmd-var.c: Ditto.
11342 * mi/mi-interp.c: Ditto.
11343 * mi/mi-main.c: Ditto.
11344
dae477fe
AB
113452011-01-11 Andrew Burgess <aburgess@broadcom.com>
11346
11347 * remote-sim.c (gdbsim_store_register): Update API to
11348 sim_store_register to check more error conditions.
11349
0df8b418
MS
113502011-01-10 Michael Snyder <msnyder@vmware.com>
11351
11352 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11353 * nto-tdep.c: Ditto.
11354 * nto-tdep.h: Ditto.
11355 * objc-exp.y: Ditto.
11356 * objc-lang.c: Ditto.
11357 * objfiles.c: Ditto.
11358 * objfiles.h: Ditto.
11359 * observer.c: Ditto.
11360 * opencl-lang.c: Ditto.
11361 * osabi.c: Ditto.
11362 * parse.c: Ditto.
11363 * parser-defs.h: Ditto.
11364 * p-exp.y: Ditto.
11365 * p-lang.c: Ditto.
11366 * posix-hdep.c: Ditto.
11367 * ppcbug-rom.c: Ditto.
11368 * ppc-linux-nat.c: Ditto.
11369 * ppc-linux-tdep.c: Ditto.
11370 * ppc-linux-tdep.h: Ditto.
11371 * ppcnbsd-tdep.c: Ditto.
11372 * ppcobsd-tdep.c: Ditto.
11373 * ppcobsd-tdep.h: Ditto.
11374 * ppc-sysv-tdep.c: Ditto.
11375 * ppc-tdep.h: Ditto.
11376 * printcmd.c: Ditto.
11377 * proc-abi.c: Ditto.
11378 * proc-flags.c: Ditto.
11379 * procfs.c: Ditto.
11380 * proc-utils.h: Ditto.
11381 * progspace.h: Ditto.
11382 * prologue-value.c: Ditto.
11383 * prologue-value.h: Ditto.
11384 * psympriv.h: Ditto.
11385 * psymtab.c: Ditto.
11386 * p-typeprint.c: Ditto.
11387 * p-valprint.c: Ditto.
11388 * ravenscar-sparc-thread.c: Ditto.
11389 * ravenscar-thread.c: Ditto.
11390 * ravenscar-thread.h: Ditto.
11391 * record.c: Ditto.
11392 * regcache.c: Ditto.
11393 * regcache.h: Ditto.
11394 * remote.c: Ditto.
11395 * remote-fileio.c: Ditto.
11396 * remote-fileio.h: Ditto.
11397 * remote.h: Ditto.
11398 * remote-m32r-sdi.c: Ditto.
11399 * remote-mips.c: Ditto.
11400 * remote-sim.c: Ditto.
11401 * rs6000-aix-tdep.c: Ditto.
11402 * rs6000-nat.c: Ditto.
11403 * rs6000-tdep.c: Ditto.
11404
0d7a18f7
MS
114052011-01-10 Michael Snyder <msnyder@vmware.com>
11406
11407 * charset.c (validate): Internationalization.
11408 * coffread.c (read_one_sym): Ditto.
11409 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11410 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11411 * inflow.c (new_tty): Ditto.
11412 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11413 * m32c-tdep.c (m32c_return_value): Ditto.
11414 * mep-tdep.c (mep_store_return_value): Ditto.
11415 * score-tdep.c (score7_fetch_insn): Ditto.
11416 * ser-mingw.c (pipe_windows_open): Ditto.
11417 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11418 * spu-tdep.c (spu_register_type): Ditto.
11419 * tracepoint.c (trace_find_command): Ditto.
11420 * valarith.c (value_pos): Ditto.
11421
9a153e0b
JB
114222011-01-10 Joel Brobecker <brobecker@adacore.com>
11423
11424 * ada-valprint.c (printstr): Minor comment reformatting.
11425
35ecd2d6
MS
114262011-01-08 Michael Snyder <msnyder@vmware.com>
11427
11428 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11429 markup.
11430
1777feb0
MS
114312011-01-08 Michael Snyder <msnyder@vmware.com>
11432
11433 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11434 * hppa-hpux-tdep.c: Ditto.
11435 * hppa-linux-nat.c: Ditto.
11436 * hppa-linux-tdep.c: Ditto.
11437 * hppanbsd-tdep.c: Ditto.
11438 * hppa-tdep.c: Ditto.
11439 * hppa-tdep.h: Ditto.
11440 * hpux-thread.c: Ditto.
11441 * i386-cygwin-tdep.c: Ditto.
11442 * i386-darwin-nat.c: Ditto.
11443 * i386gnu-nat.c: Ditto.
11444 * i386-linux-nat.c: Ditto.
11445 * i386-linux-tdep.c: Ditto.
11446 * i386-nat.c: Ditto.
11447 * i386-nat.h: Ditto.
11448 * i386nbsd-tdep.c: Ditto.
11449 * i386-sol2-nat.c: Ditto.
11450 * i386-stub.c: Ditto.
11451 * i386-tdep.c: Ditto.
11452 * i386-tdep.h: Ditto.
11453 * i387-tdep.c: Ditto.
11454 * ia64-linux-nat.c: Ditto.
11455 * ia64-linux-tdep.c: Ditto.
11456 * ia64-tdep.c: Ditto.
11457 * infcall.c: Ditto.
11458 * infcall.h: Ditto.
11459 * infcmd.c: Ditto.
11460 * inferior.c: Ditto.
11461 * inferior.h: Ditto.
11462 * infloop.c: Ditto.
11463 * inflow.c: Ditto.
11464 * infrun.c: Ditto.
11465 * interps.c: Ditto.
11466 * interps.h: Ditto.
11467 * iq2000-tdep.c: Ditto.
11468 * irix5-nat.c: Ditto.
11469 * jit.c: Ditto.
11470 * jit.h: Ditto.
11471 * jv-exp.y: Ditto.
11472 * jv-lang.c: Ditto.
11473 * jv-lang.h: Ditto.
11474 * jv-typeprint.c: Ditto.
11475 * jv-valprint.c: Ditto.
11476 * language.c: Ditto.
11477 * language.h: Ditto.
11478 * linespec.c: Ditto.
11479 * linux-fork.c: Ditto.
11480 * linux-nat.c: Ditto.
11481 * linux-thread-db.c: Ditto.
11482 * lm32-tdep.c: Ditto.
11483
025bb325
MS
114842011-01-08 Michael Snyder <msnyder@vmware.com>
11485
11486 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11487 * m2-lang.c: Ditto.
11488 * m2-typeprint.c: Ditto.
11489 * m2-valprint.c: Ditto.
11490 * m32c-tdep.c: Ditto.
11491 * m32r-linux-nat.c: Ditto.
11492 * m32r-rom.c: Ditto.
11493 * m32r-tdep.c: Ditto.
11494 * m32r-tdep.h: Ditto.
11495 * m68hc11-tdep.c: Ditto.
11496 * m58klinux-nat.c: Ditto.
11497 * m68k-tdep.c: Ditto.
11498 * m88k-tdep.c: Ditto.
11499 * m88k-tdep.h: Ditto.
11500 * machoread.c: Ditto.
11501 * macrocmd.c: Ditto.
11502 * macroexp.c: Ditto.
11503 * macrotab.c: Ditto.
11504 * main.c: Ditto.
11505 * maint.c: Ditto.
11506 * mdebugread.c: Ditto.
11507 * mdebugread.h: Ditto.
11508 * memattr.c: Ditto.
11509 * memattr.h: Ditto.
11510 * memory-map.h: Ditto.
11511 * mep-tdep.c: Ditto.
11512 * microblaze-rom.c: Ditto.
11513 * microblaze-tdep.c: Ditto.
11514 * minsyms.c: Ditto.
11515 * mips-irix-tdep.c: Ditto.
11516 * mips-linux-nat.c: Ditto.
11517 * mips-linux-tdep.c: Ditto.
11518 * mips-linux-tdep.h: Ditto.
11519 * mipsnbsd-nat.c: Ditto.
11520 * mipsnbsd-tdep.c: Ditto.
11521 * mipsread.c: Ditto.
11522 * mips-tdep.c: Ditto.
11523 * mips-tdep.h: Ditto.
11524 * mn10300-linux-tdep.c: Ditto.
11525 * mn10300-tdep.c: Ditto.
11526 * mn10300-tdep.h: Ditto.
11527 * monitor.c: Ditto.
11528 * monitor.h: Ditto.
11529 * moxie-tdep.c: Ditto.
11530 * moxie-tdep.h: Ditto.
11531 * mt-tdep.c: Ditto.
11532
1642781b
MF
115332011-01-08 Mike Frysinger <vapier@gentoo.org>
11534
11535 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11536
394b0adb
JB
115372011-01-08 Robert Millan <rmh@gnu.org>
11538
11539 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11540
b670013c
MS
115412011-01-07 Michael Snyder <msnyder@vmware.com>
11542
11543 * charset.c (_initialize_charset): Fix typo in string.
11544
a743e542
MS
115452011-01-07 Michael Snyder <msnyder@vmware.com>
11546
11547 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11548 for i18n.
f2eb0bc8 11549 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11550 Split line so that operator goes to beginning of line.
11551 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11552 assignment out of if statement.
11553
0963b4bd
MS
115542011-01-07 Michael Snyder <msnyder@vmware.com>
11555
11556 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11557 * ada-lang.h: Ditto.
11558 * ada-tasks.c: Ditto.
11559 * ada-valprint.c: Ditto.
11560 * aix-threads.c: Ditto.
11561 * alpha-linux-nat.c: Ditto.
11562 * alpha-linux-tdep.c: Ditto.
11563 * alpha-mdebug-tdep.c: Ditto.
11564 * alpha-nat.c: Ditto.
11565 * alpha-osf1-tdep.c: Ditto.
11566 * alpha-tdep.c: Ditto.
11567 * alphabsd-nat.c: Ditto.
11568 * alphabsd-tdep.c: Ditto.
11569 * amd64-darwin-tdep.c: Ditto.
11570 * amd64-linux-nat.c: Ditto.
11571 * amd64-linux-tdep.c: Ditto.
11572 * amd64-sol2-tdep.c: Ditto.
11573 * amd64-tdep.c: Ditto.
11574 * amd64-fbsd-tdep.c: Ditto.
11575 * amd64-nbsd-tdep.c: Ditto.
11576 * amd64-obsd-tdep.c: Ditto.
11577 * amd64-linux-nat.c: Ditto.
11578 * amd64-linux-tdep.c: Ditto.
11579 * arm-tdep.c: Ditto.
11580 * arm-tdep.h: Ditto.
11581 * armnbsd-nat.c: Ditto.
11582 * avr-tdep.c: Ditto.
11583 * bfin-tdep.c: Ditto.
11584 * bsd-kvm.c: Ditto.
11585 * c-typeprintc: Ditto.
11586 * c-valprint.c: Ditto.
11587 * coff-pe-read.h: Ditto.
11588 * coffreead.c: Ditto.
11589 * cris-tdep.c: Ditto.
11590 * d-lang.c: Ditto.
11591 * darwin-nat-info.c: Ditto.
11592 * darwin-nat.c: Ditto.
11593 * dbug-rom.c: Ditto.
11594 * dbxread.c: Ditto.
11595 * dcache.c: Ditto.
11596 * dcache.h: Ditto.
11597 * dec-thread.c: Ditto.
11598 * defs.h: Ditto.
11599 * demangle.c: Ditto.
11600 * dicos-tdep.c: Ditto.
11601 * dictionary.c: Ditto.
11602 * dictionary.h: Ditto.
11603 * dink32-rom.c: Ditto.
11604 * disasm.c: Ditto.
11605 * doublest.c: Ditto.
11606 * dsrec.c: Ditto.
11607 * dummy-frame.c: Ditto.
11608 * dwarf2-frame.c: Ditto.
11609 * dwarf2expr.c: Ditto.
11610 * dwarf2loc.c: Ditto.
11611 * dwarf2read.c: Ditto.
11612 * elfread.c: Ditto.
11613 * environ.c: Ditto.
11614 * eval.c: Ditto.
11615 * event-top.h: Ditto.
11616 * exceptions.c: Ditto.
11617 * exceptions.h: Ditto.
11618 * exec.c: Ditto.
11619 * expprint.c: Ditto.
11620 * expression.h: Ditto.
11621 * f-exp.y: Ditto.
11622 * f-lang.c: Ditto.
11623 * f-lang.h: Ditto.
11624 * f-typeprint.c: Ditto.
11625 * f-valprint.c: Ditto.
11626 * fbsd-nat.c: Ditto.
11627 * findvar.c: Ditto.
11628 * fork-child.c: Ditto.
11629 * frame.c: Ditto.
11630 * frame.h: Ditto.
11631 * frv-linux-tdep.c: Ditto.
11632 * frv-tdep.c: Ditto.
11633 * gcore.c: Ditto.
11634 * gdb-stabs.h: Ditto.
11635 * gdb_assert.h: Ditto.
11636 * gdb_string.h: Ditto.
11637 * gdb_thread_db.h: Ditto.
11638 * gdb_wait.h: Ditto.
11639 * gdbarch.sh: Ditto.
11640 * gdbcore.h: Ditto.
11641 * gdbthread.h: Ditto.
11642 * gdbtypes.c: Ditto.
11643 * gdbtypes.h: Ditto.
11644 * gnu-nat.c: Ditto.
11645 * gnu-nat.h: Ditto.
11646 * gnu-v2-abi.c: Ditto.
11647 * gnu-v3-abi.c: Ditto.
11648 * go32-nat.c: Ditto.
11649 * gdbarch.c: Regenerate.
11650 * gdbarch.h: Regenerate.
11651
ac74f770
MS
116522011-01-07 Michael Snyder <msnyder@vmware.com>
11653
11654 * ax-gdb.c: Adjust some long output strings.
11655 * breakpoint.c: Ditto.
11656 * charset.c: Ditto.
11657 * cp-abi.c: Ditto.
11658 * infcall.c: Ditto.
11659 * infrun.c: Ditto.
11660 * linux-nat.c: Ditto.
11661 * solib-pa64.c: Ditto.
11662 * solib-som.c: Ditto.
11663
d8e22779
TT
116642011-01-06 Tom Tromey <tromey@redhat.com>
11665
11666 PR python/12367:
11667 * NEWS: Add item.
11668 * python/python.c (GdbMethods): Add "newest_frame" method.
11669 * python/python-internal.h (gdbpy_newest_frame): Declare.
11670 * python/py-frame.c (gdbpy_newest_frame): New function.
11671
a255712f
PP
116722010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11673
11674 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11675 * jit.c (jit_debug): New variable.
11676 (show_jit_debug): New function.
11677 (struct target_buffer): Use ULONGEST.
11678 (bfd_open_from_target_memory): Likewise.
11679 (jit_register_code, jit_inferior_init): Add debug output.
11680 (_initialize_jit): Register "debug jit" command.
11681
ccfc3d6e
TT
116822011-01-06 Tom Tromey <tromey@redhat.com>
11683
11684 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11685 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11686 and ARCH_FRAME.
11687
57126e4a
TT
116882011-01-06 Tom Tromey <tromey@redhat.com>
11689
11690 * python/py-frame.c (frapy_block): Use get_frame_block.
11691
16dfc9ce
JB
116922011-01-06 Joel Brobecker <brobecker@adacore.com>
11693
11694 Do not stop on SIGPRIO signals by default
11695 * infrun.c (_initialize_infrun): Unset signal_stop and
11696 signal_print for TARGET_SIGNAL_PRIO.
11697
b1ce2347
JB
116982011-01-06 Joel Brobecker <brobecker@adacore.com>
11699
11700 * ada-tasks.c: Fix style violation in comment.
11701
8f7e195f
JB
117022011-01-06 Joel Brobecker <brobecker@adacore.com>
11703
11704 * linespec.c (decode_compound, find_method): Remove trailing \n
11705 at end of error string.
11706 * solib-irix.c (irix_current_sos): Likewise.
11707 * varobj.c (uninstall_variable): Likewise.
11708
e9bdf92c
JB
117092011-01-06 Joel Brobecker <brobecker@adacore.com>
11710
11711 * copyright.py: New script.
11712 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11713 Launch emacs without exec'ing. Call copyright.py afterwards.
11714
3e43a32a
MS
117152011-01-05 Michael Snyder <msnyder@vmware.com>
11716
11717 * addrmap.c: Shorten lines of >= 80 columns.
11718 * arch-utils.c: Ditto.
11719 * arch-utils.h: Ditto.
11720 * ax-gdb.c: Ditto.
11721 * ax-general.c: Ditto.
11722 * bcache.c: Ditto.
11723 * blockframe.c: Ditto.
11724 * breakpoint.c: Ditto.
11725 * buildsym.c: Ditto.
11726 * c-lang.c: Ditto.
11727 * c-typeprint.c: Ditto.
11728 * charset.c: Ditto.
11729 * coffread.c: Ditto.
11730 * command.h: Ditto.
11731 * corelow.c: Ditto.
11732 * cp-abi.c: Ditto.
11733 * cp-namespace.c: Ditto.
11734 * cp-support.c: Ditto.
11735 * dbug-rom.c: Ditto.
11736 * dbxread.c: Ditto.
11737 * defs.h: Ditto.
11738 * dfp.c: Ditto.
11739 * dfp.h: Ditto.
11740 * dictionary.c: Ditto.
11741 * disasm.c: Ditto.
11742 * doublest.c: Ditto.
11743 * dwarf2-frame.c: Ditto.
11744 * dwarf2expr.c: Ditto.
11745 * dwarf2loc.c: Ditto.
11746 * dwarf2read.c: Ditto.
11747 * elfread.c: Ditto.
11748 * eval.c: Ditto.
11749 * event-loop.c: Ditto.
11750 * event-loop.h: Ditto.
11751 * exceptions.h: Ditto.
11752 * exec.c: Ditto.
11753 * expprint.c: Ditto.
11754 * expression.h: Ditto.
11755 * f-lang.c: Ditto.
11756 * f-valprint.c: Ditto.
11757 * findcmd.c: Ditto.
11758 * frame-base.c: Ditto.
11759 * frame-unwind.c: Ditto.
11760 * frame-unwind.h: Ditto.
11761 * frame.c: Ditto.
11762 * frame.h: Ditto.
11763 * gcore.c: Ditto.
11764 * gdb-stabs.h: Ditto.
11765 * gdb_assert.h: Ditto.
11766 * gdb_dirent.h: Ditto.
11767 * gdb_obstack.h: Ditto.
11768 * gdbcore.h: Ditto.
11769 * gdbtypes.c: Ditto.
11770 * gdbtypes.h: Ditto.
11771 * inf-ttrace.c: Ditto.
11772 * infcall.c: Ditto.
11773 * infcmd.c: Ditto.
11774 * inflow.c: Ditto.
11775 * infrun.c: Ditto.
11776 * inline-frame.h: Ditto.
11777 * language.c: Ditto.
11778 * language.h: Ditto.
11779 * libunwind-frame.c: Ditto.
11780 * libunwind-frame.h: Ditto.
11781 * linespec.c: Ditto.
11782 * linux-nat.c: Ditto.
11783 * linux-nat.h: Ditto.
11784 * linux-thread-db.c: Ditto.
11785 * machoread.c: Ditto.
11786 * macroexp.c: Ditto.
11787 * macrotab.c: Ditto.
11788 * main.c: Ditto.
11789 * maint.c: Ditto.
11790 * mdebugread.c: Ditto.
11791 * memattr.c: Ditto.
11792 * minsyms.c: Ditto.
11793 * monitor.c: Ditto.
11794 * monitor.h: Ditto.
11795 * objfiles.c: Ditto.
11796 * objfiles.h: Ditto.
11797 * osabi.c: Ditto.
11798 * p-typeprint.c: Ditto.
11799 * p-valprint.c: Ditto.
11800 * parse.c: Ditto.
11801 * printcmd.c: Ditto.
11802 * proc-events.c: Ditto.
11803 * procfs.c: Ditto.
11804 * progspace.c: Ditto.
11805 * progspace.h: Ditto.
11806 * psympriv.h: Ditto.
11807 * psymtab.c: Ditto.
11808 * record.c: Ditto.
11809 * regcache.c: Ditto.
11810 * regcache.h: Ditto.
11811 * remote-fileio.c: Ditto.
11812 * remote.c: Ditto.
11813 * ser-mingw.c: Ditto.
11814 * ser-tcp.c: Ditto.
11815 * ser-unix.c: Ditto.
11816 * serial.c: Ditto.
11817 * serial.h: Ditto.
11818 * solib-frv.c: Ditto.
11819 * solib-irix.c: Ditto.
11820 * solib-osf.c: Ditto.
11821 * solib-pa64.c: Ditto.
11822 * solib-som.c: Ditto.
11823 * solib-sunos.c: Ditto.
11824 * solib-svr4.c: Ditto.
11825 * solib-target.c: Ditto.
11826 * solib.c: Ditto.
11827 * somread.c: Ditto.
11828 * source.c: Ditto.
11829 * stabsread.c: Ditto.
11830 * stabsread.c: Ditto.
11831 * stack.c: Ditto.
11832 * stack.h: Ditto.
11833 * symfile-mem.c: Ditto.
11834 * symfile.c: Ditto.
11835 * symfile.h: Ditto.
11836 * symmisc.c: Ditto.
11837 * symtab.c: Ditto.
11838 * symtab.h: Ditto.
11839 * target-descriptions.c: Ditto.
11840 * target-memory.c: Ditto.
11841 * target.c: Ditto.
11842 * target.h: Ditto.
11843 * terminal.h: Ditto.
11844 * thread.c: Ditto.
11845 * top.c: Ditto.
11846 * tracepoint.c: Ditto.
11847 * tracepoint.h: Ditto.
11848 * ui-file.c: Ditto.
11849 * ui-file.h: Ditto.
11850 * ui-out.h: Ditto.
11851 * user-regs.c: Ditto.
11852 * user-regs.h: Ditto.
11853 * utils.c: Ditto.
11854 * valarith.c: Ditto.
11855 * valops.c: Ditto.
11856 * valprint.c: Ditto.
11857 * valprint.h: Ditto.
11858 * value.c: Ditto.
11859 * varobj.c: Ditto.
11860 * varobj.h: Ditto.
11861 * vec.h: Ditto.
11862 * xcoffread.c: Ditto.
11863 * xcoffsolib.c: Ditto.
11864 * xcoffsolib.h: Ditto.
11865 * xml-syscall.c: Ditto.
11866 * xml-tdesc.c: Ditto.
11867
9a2b4c1b
MS
118682011-01-05 Michael Snyder <msnyder@vmware.com>
11869
11870 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11871 * cli/cli-decode.c: Ditto.
11872 * cli/cli-dump.c: Ditto.
11873 * cli/cli-logging.c: Ditto.
11874 * cli/cli-script.c: Ditto.
11875 * cli/cli-setshow.c: Ditto.
11876 * common/signals.c: Ditto.
11877 * mi/mi-cmd-break.c: Ditto.
11878 * mi/mi-cmd-disas.c: Ditto.
11879 * mi/mi-cmd-stack.c: Ditto.
11880 * mi/mi-cmd-var.c: Ditto.
11881 * mi/mi-cmds.c: Ditto.
11882 * mi/mi-common.h: Ditto.
11883 * mi/mi-console.c: Ditto.
11884 * mi/mi-interp.c: Ditto.
11885 * mi/mi-main.c: Ditto.
11886 * osf-share/cma_attr.c: Ditto.
11887 * osf-share/cma_deb_core.h: Ditto.
11888 * osf-share/cma_debug_client.h: Ditto.
11889 * osf-share/cma_handle.h: Ditto.
11890 * osf-share/cma_mutex.h: Ditto.
11891 * osf-share/cma_stack_int.h: Ditto.
11892 * osf-share/cma_tcb_defs.h: Ditto.
11893 * python/py-auto-load.c: Ditto.
11894 * python/py-breakpoint.c: Ditto.
11895 * python/py-cmd.c: Ditto.
11896 * python/py-frame.c: Ditto.
11897 * python/py-objfile.c: Ditto.
11898 * python/py-param.c: Ditto.
11899 * python/py-progspace.c: Ditto.
11900 * python/py-symbol.c: Ditto.
11901 * python/py-value.c: Ditto.
11902 * python/python-internal.h: Ditto.
11903 * python/python.c: Ditto.
11904 * tui/tui-data.c: Ditto.
11905 * tui/tui-disasm.c: Ditto.
11906 * tui/tui-hooks.c: Ditto.
11907 * tui/tui-io.c: Ditto.
11908 * tui/tui-layout.c: Ditto.
11909 * tui/tui-regs.c: Ditto.
11910 * tui/tui-source.c: Ditto.
11911 * tui/tui-stack.c: Ditto.
11912 * tui/tui-win.c: Ditto.
11913 * tui/tui-windata.c: Ditto.
11914 * tui/tui-winsource.c: Ditto.
11915
44944448
JB
119162011-01-05 Joel Brobecker <brobecker@adacore.com>
11917
11918 * configure.ac, gdb.1: Copyright year update.
11919
ebedcab5
JK
119202011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11921
11922 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11923 this_pc_in_block, morestack_msym and morestack_name. Check for
11924 "__morestack" minimal symbol there.
11925
e5cc9f32
JB
119262011-01-03 Joel Brobecker <brobecker@adacore.com>
11927
11928 * symfile.c (find_sym_fns): Add call to dont_repeat.
11929
7b6bb8da
JB
119302011-01-01 Joel Brobecker <brobecker@adacore.com>
11931
11932 Copyright year update in most files (performed by copyright.sh).
11933
71ce852c
JB
119342011-01-01 Joel Brobecker <brobecker@adacore.com>
11935
11936 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11937
c3c1ebe8 11938For older changes see ChangeLog-2010.
c906108c
SS
11939\f
11940Local Variables:
11941mode: change-log
11942left-margin: 8
11943fill-column: 74
11944version-control: never
57da7796 11945coding: utf-8
c906108c 11946End:
This page took 1.802278 seconds and 4 git commands to generate.