PR ld/12772
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
13b8d0c6
TG
12011-12-07 Tristan Gingold <gingold@adacore.com>
2
3 * machoread.c (macho_symtab_read): Do not consider N_OPT as
4 a debugging stab. Improve complaint message.
5
5436df95
MR
62011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
9 load adjustment if still within the prologue.
10
040dff2a
MR
112011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12
13 * mips-tdep.c (mips32_next_pc): Fix floating point condition
14 code mask.
15
754d7c78
MR
162011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
17
18 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
19 of BLTZ* and BGEZ* instructions.
20
91912e4d
MR
212011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
22
23 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
24 performed to determine whether an address refers to standard
25 MIPS or MIPS16 code.
26 (mips16_next_pc): Use mips_pc_is_mips16 instead of
27 is_mips16_addr.
28
f0ba3972
PA
292011-12-06 Pedro Alves <pedro@codesourcery.com>
30
31 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
32 (breakpoint_xfer_memory): ... this. Change prototype. Handle
33 memory writes too.
34 * breakpoint.h (breakpoint_restore_shadows): Delete.
35 (breakpoint_xfer_memory): Declare.
36 * mem-break.c (default_memory_insert_breakpoint)
37 (default_memory_remove_breakpoint): Use target_write_raw_memory.
38 (memory_xfer_partial): Rename to ...
39 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
40 here.
41 (memory_xfer_partial): New.
42 (target_write_raw_memory): New.
43 * target.h (target_write_raw_memory): New.
44
31aba06f
DE
452011-12-06 Doug Evans <dje@google.com>
46
47 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
48
f8eba3c6
TT
492011-12-06 Joel Brobecker <brobecker@acacore.com>
50
51 * language.h (struct language_defn): Add new component
52 la_symbol_name_compare.
53 * symfile.h (struct quick_symbol_functions): Update the profile
54 of parameter "name_matcher" for the expand_symtabs_matching
55 method. Update the documentation accordingly.
56 * ada-lang.h (ada_name_for_lookup): Add declaration.
57 * ada-lang.c (ada_name_for_lookup): New function, extracted out
58 from ada_iterate_over_symbols.
59 (ada_iterate_over_symbols): Do not encode symbol name anymore.
60 (ada_expand_partial_symbol_name): Adjust profile.
61 (ada_language_defn): Add value for la_symbol_name_compare field.
62 * linespec.c: #include "ada-lang.h".
63 (iterate_name_matcher): Add language parameter. Replace call
64 to strcmp_iw by call to language->la_symbol_name_compare.
65 (decode_variable): Encode COPY if current language is Ada.
66 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
67 of name_matcher parameter. Adjust call to name_matcher.
68 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
69 (expand_partial_symbol_names): Update profile of parameter "fun".
70 * psymtab.h (expand_partial_symbol_names): Update profile of
71 parameter "fun".
72 * symtab.c (demangle_for_lookup): Update function documentation.
73 (search_symbols_name_matches): Add language parameter.
74 (expand_partial_symbol_name): Likewise.
75 * c-lang.c (c_language_defn, cplus_language_defn)
76 (asm_language_defn, minimal_language_defn): Add value for
77 la_symbol_name_compare field.
78 * d-lang.c (d_language_defn): Likewise.
79 * f-lang.c (f_language_defn): Ditto.
80 * jv-lang.c (java_language_defn): Ditto.
81 * m2-lang.c (m2_language_defn): Ditto.
82 * objc-lang.c (objc_language_defn): Ditto.
83 * opencl-lang.c (opencl_language_defn): Ditto.
84 * p-lang.c (pascal_language_defn): Ditto.
85 * language.c (unknown_language_defn, auto_language_defn)
86 (local_language_defn): Ditto.
87
882011-12-06 Tom Tromey <tromey@redhat.com>
89
90 * linespec.c (iterate_over_all_matching_symtabs): Use
91 LA_ITERATE_OVER_SYMBOLS.
92 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
93 (find_function_symbols, decode_variable): Remove Ada special
94 case.
95 * language.h (struct language_defn) <la_iterate_over_symbols>: New
96 field.
97 (LA_ITERATE_OVER_SYMBOLS): New macro.
98 * language.c (unknown_language_defn, auto_language_defn)
99 (local_language_defn): Update.
100 * c-lang.c (c_language_defn, cplus_language_defn)
101 (asm_language_defn, minimal_language_defn): Update.
102 * d-lang.c (d_language_defn): Update.
103 * f-lang.c (f_language_defn): Update.
104 * jv-lang.c (java_language_defn): Update.
105 * m2-lang.c (m2_language_defn): Update.
106 * objc-lang.c (objc_language_defn): Update.
107 * opencl-lang.c (opencl_language_defn): Update.
108 * p-lang.c (pascal_language_defn): Update.
109 * ada-lang.c (ada_iterate_over_symbols): New function.
110 (ada_language_defn): Update.
111
1122011-12-06 Tom Tromey <tromey@redhat.com>
113 Joel Brobecker <brobecker@acacore.com>
114
115 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
116 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
117 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
118 PR shlibs/8929, PR shlibs/7393:
119 * python/py-type.c (compare_maybe_null_strings): Rename from
120 compare_strings.
121 (check_types_equal): Update.
122 * utils.c (compare_strings): New function.
123 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
124 location changes.
125 * tracepoint.c (scope_info): Update.
126 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
127 * symtab.h (iterate_over_minimal_symbols)
128 (iterate_over_some_symtabs, iterate_over_symtabs)
129 (find_pcs_for_symtab_line, iterate_over_symbols)
130 (demangle_for_lookup): Declare.
131 (expand_line_sal): Remove.
132 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
133 (lookup_symtab_callback): New functions.
134 (lookup_symtab): Rewrite.
135 (demangle_for_lookup): New function, extract from
136 lookup_symbol_in_language.
137 (lookup_symbol_in_language): Use it.
138 (iterate_over_symbols): New function.
139 (find_line_symtab): Update.
140 (find_pcs_for_symtab_line): New functions.
141 (find_line_common): Add 'start' argument.
142 (decode_line_spec): Update. Change argument to 'flags', change
143 interpretation.
144 (append_expanded_sal): Remove.
145 (append_exact_match_to_sals): Remove.
146 (expand_line_sal): Remove.
147 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
148 Remove.
149 <map_symtabs_matching_filename>: New field.
150 * stack.c (func_command): Only look in the current program space.
151 Use DECODE_LINE_FUNFIRSTLINE.
152 * source.c (line_info): Set pspace on sal. Check program space in
153 the loop. Use DECODE_LINE_LIST_MODE.
154 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
155 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
156 * python/python.c (gdbpy_decode_line): Update.
157 * psymtab.c (partial_map_expand_apply): New function.
158 (partial_map_symtabs_matching_filename): Rename from
159 lookup_partial_symbol. Update arguments.
160 (lookup_symtab_via_partial_symtab): Remove.
161 (psym_functions): Update.
162 * objc-lang.h (parse_selector, parse_method): Don't declare.
163 (find_imps): Update.
164 * objc-lang.c (parse_selector, parse_method): Now static.
165 (find_methods): Change arguments. Fill in a vector of symbol
166 names.
167 (uniquify_strings): New function.
168 (find_imps): Change arguments.
169 * minsyms.c (iterate_over_minimal_symbols): New function.
170 * linespec.h (enum decode_line_flags): New.
171 (struct linespec_sals): New.
172 (struct linespec_result) <canonical>: Remove.
173 <pre_expanded, addr_string, sals>: New fields.
174 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
175 (decode_line_full): Declare.
176 (decode_line_1): Update.
177 * linespec.c (struct address_entry, struct linespec_state, struct
178 collect_info): New types.
179 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
180 (eq_address_entry, maybe_add_address): New functions.
181 (total_number_of_methods): Remove.
182 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
183 functions.
184 (find_methods): Change arguments. Don't canonicalize input.
185 Simplify logic.
186 (add_matching_methods, add_constructors)
187 (build_canonical_line_spec): Remove.
188 (filter_results, convert_results_to_lsals): New functions.
189 (decode_line_2): Change arguments. Rewrite for new data
190 structures.
191 (decode_line_internal): Rename from decode_line_1. Change
192 arguments. Add cleanups. Update for new data structures.
193 (linespec_state_constructor, linespec_state_destructor)
194 (decode_line_full, decode_line_1): New functions.
195 (decode_indirect): Change arguments. Update.
196 (locate_first_half): Use skip_spaces.
197 (decode_objc): Change arguments. Update for new data structures.
198 Simplify logic.
199 (decode_compound): Change arguments. Add cleanups. Remove
200 fallback code, replace with error.
201 (struct decode_compound_collector): New type.
202 (collect_one_symbol): New function.
203 (lookup_prefix_sym): Change arguments. Update.
204 (compare_symbol_name, add_all_symbol_names_from_pspace)
205 (find_superclass_methods ): New functions.
206 (find_method): Rewrite.
207 (struct symtab_collector): New type.
208 (add_symtabs_to_list, collect_symtabs_from_filename): New
209 functions.
210 (symtabs_from_filename): Change API. Rename from
211 symtab_from_filename.
212 (collect_function_symbols): New function.
213 (find_function_symbols): Change API. Rename from
214 find_function_symbol. Rewrite.
215 (decode_all_digits): Change arguments. Rewrite.
216 (decode_dollar): Change arguments. Use decode_variable.
217 (decode_label): Change arguments. Rewrite.
218 (collect_symbols): New function.
219 (minsym_found): Change arguments. Rewrite.
220 (check_minsym, search_minsyms_for_name)
221 (add_matching_symbols_to_info): New function.
222 (decode_variable): Change arguments. Iterate over all symbols.
223 (symbol_found): Remove.
224 (symbol_to_sal): New function.
225 (init_linespec_result, destroy_linespec_result)
226 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
227 New functions.
228 (decode_digits_list_mode, decode_digits_ordinary): New functions.
229 * dwarf2read.c (dw2_map_expand_apply): New function.
230 (dw2_map_symtabs_matching_filename): Rename from
231 dw2_lookup_symtab. Change arguments.
232 (dwarf2_gdb_index_functions): Update.
233 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
234 * defs.h (compare_strings): Declare.
235 * cli/cli-cmds.c (compare_strings): Move to utils.c.
236 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
237 filter_sals.
238 (compare_symtabs, filter_sals): New functions.
239 * breakpoint.h (struct bp_location) <line_number, source_file>:
240 New fields.
241 (struct breakpoint) <line_number, source_file>: Remove.
242 <filter>: New field.
243 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
244 (momentary_breakpoint_from_master, add_location_to_breakpoint):
245 Update for changes to locations.
246 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
247 breakpoint.
248 (create_breakpoint_sal): Add 'filter' argument.
249 (remove_sal, expand_line_sal_maybe): Remove.
250 (create_breakpoints_sal): Remove 'sals' argument. Handle
251 pre-expanded sals and the filter.
252 (parse_breakpoint_sals): Use decode_line_full.
253 (check_fast_tracepoint_sals): Use get_sal_arch.
254 (create_breakpoint): Create a linespec_sals. Update.
255 (break_range_command): Use decode_line_full. Update.
256 (until_break_command): Update.
257 (clear_command): Update match conditions for linespec.c changes.
258 Use DECODE_LINE_LIST_MODE.
259 (say_where): Update for changes to locations.
260 (bp_location_dtor): Free 'source_file'.
261 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
262 (update_static_tracepoint): Update for changes to locations.
263 (update_breakpoint_locations): Disable ranged breakpoint if too
264 many locations match. Update.
265 (addr_string_to_sals): Use decode_line_full. Resolve all sal
266 PCs.
267 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
268 (decode_line_spec_1): Update. Change argument name to 'flags',
269 change interpretation.
270 * block.h (block_containing_function): Declare.
271 * block.c (block_containing_function): New function.
272 * skip.c (skip_function_command): Update.
273 (skip_re_set): Update.
274 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
275 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
276 * NEWS: Add entry.
277
2782011-12-06 Tom Tromey <tromey@redhat.com>
279
280 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
281 breakpoint's pspace to be NULL.
282 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
283 * breakpoint.c (init_raw_breakpoint): Conditionally set
284 breakpoint's pspace.
285 (init_breakpoint_sal): Don't set breakpoint's pspace.
286 (prepare_re_set_context): Conditionally switch program space.
287 (addr_string_to_sals): Check executing_startup on location's
288 program space.
289
2902011-12-06 Tom Tromey <tromey@redhat.com>
291
292 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
293 * breakpoint.c (should_be_inserted): Explicitly check if program
294 space is executing startup.
295 (describe_other_breakpoints): Update.
296 (disable_breakpoints_before_startup): Change executing_startup
297 earlier. Remove loop.
298 (enable_breakpoints_after_startup): Likewise.
299 (init_breakpoint_sal): Don't use bp_startup_disabled.
300 (create_breakpoint): Don't use bp_startup_disabled.
301 (update_global_location_list): Use should_be_inserted.
302 (bkpt_re_set): Update.
303
75c8c9d7
TT
3042011-12-06 Tom Tromey <tromey@redhat.com>
305
306 * python/lib/gdb/command/pretty_printers.py
307 (InfoPrettyPrinter.invoke1): Remove extra double quote.
308
7376e450
TT
3092011-12-06 Tom Tromey <tromey@redhat.com>
310
311 * NEWS: Add MI news.
312
c642a434
UW
3132011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
314
315 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
316 (S390_LAST_BREAK_REGNUM): Likewise.
317 (S390_SYSTEM_CALL_REGNUM): Likewise.
318 (S390_NUM_REGS): Update.
319
320 (s390_regmap_last_break): Add declaration.
321 (s390x_regmap_last_break): Likewise.
322 (s390_regmap_system_call): Likewise.
323
324 (tdesc_s390_linux32v1): Add declaration.
325 (tdesc_s390_linux32v2): Likewise.
326 (tdesc_s390_linux64v1): Likewise.
327 (tdesc_s390_linux64v2): Likewise.
328 (tdesc_s390x_linux64v1): Likewise.
329 (tdesc_s390x_linux64v2): Likewise.
330
331 * s390-tdep.c: Include new target description files
332 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
333 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
334 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
335 (s390_cannot_store_register): New function.
336 (s390_write_pc): Likewise.
337 (s390_dwarf_regmap): Add fields for new registers.
338 (s390_regmap_gregset): Likewise.
339 (s390x_regmap_gregset): Likewise.
340 (s390_regmap_fpregset): Likewise.
341 (s390_regmap_upper): Likewise.
342 (s390_regmap_last_break): New variable.
343 (s390x_regmap_last_break): Likewise.
344 (s390_regmap_system_call): Likewise.
345 (s390_last_break_regset): Likewise.
346 (s390x_last_break_regset): Likewise.
347 (s390_system_call_regset): Likewise.
348 (s390_upper_regset_sections): Rename to ...
349 (s390_linux64_regset_sections): ... this.
350 (s390_linux32_regset_sections): New variable.
351 (s390x_linux64_regset_sections): Likewise.
352 (s390_linux32v1_regset_sections): Likewise.
353 (s390_linux32v2_regset_sections): Likewise.
354 (s390_linux64v1_regset_sections): Likewise.
355 (s390_linux64v2_regset_sections): Likewise.
356 (s390x_linux64v1_regset_sections): Likewise.
357 (s390x_linux64v2_regset_sections): Likewise.
358 (s390_regset_from_core_section): Handle .reg-s390-last-break and
359 .reg-s390-system-call core file sections.
360 (s390_core_read_description): Check for presence of
361 .reg-s390-last-break and .reg-s390-system-call core file
362 sections and return appropriate target description.
363 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
364 "last_break" and "system_call" in target description. Install
365 appropriate gdbarch_core_regset_sections array.
366 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
367 (_initialize_s390_tdep): Initialize additional target descriptions.
368
369 * s390-nat.c: Include "elf/common.h".
370 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
371 (have_regset_last_break): New static variable.
372 (have_regset_system_call): Likewise.
373 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
374 (s390_native_collect): Likewise.
375 (fetch_regset, store_regset, check_regset): New functions.
376 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
377 and S390_SYSTEM_CALL_REGNUM.
378 (s390_linux_store_inferior_registers): Likewise.
379 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
380 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
381
382 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
383 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
384 (s390-linux32v1-expedite): Define.
385 (s390-linux32v2-expedite): Likewise.
386 (s390-linux64v1-expedite): Likewise.
387 (s390-linux64v2-expedite): Likewise.
388 (s390x-linux64v1-expedite): Likewise.
389 (s390x-linux64v2-expedite): Likewise.
390
391 * features/s390-linux32.xml: Add orig_r2 register.
392 * features/s390-linux64.xml: Likewise.
393 * features/s390x-linux64.xml: Likewise.
394 * features/s390-linux32v1.xml: New file.
395 * features/s390-linux32v2.xml: Likewise.
396 * features/s390-linux64v1.xml: Likewise.
397 * features/s390-linux64v2.xml: Likewise.
398 * features/s390x-linux64v1.xml: Likewise.
399 * features/s390x-linux64v2.xml: Likewise.
400
401 * features/s390-linux32.c: Regenerate.
402 * features/s390-linux64.c: Likewise.
403 * features/s390x-linux64.c: Likewise.
404 * features/s390-linux32v1.c: New generated file.
405 * features/s390-linux32v2.c: Likewise.
406 * features/s390-linux64v1.c: Likewise.
407 * features/s390-linux64v2.c: Likewise.
408 * features/s390x-linux64v1.c: Likewise.
409 * features/s390x-linux64v2.c: Likewise.
410
411 * regformats/s390-linux32.dat: Regenerate.
412 * regformats/s390-linux64.dat: Regenerate.
413 * regformats/s390x-linux64.dat: Regenerate.
414 * regformats/s390-linux32v1.dat: New generated file.
415 * regformats/s390-linux32v2.dat: Likewise.
416 * regformats/s390-linux64v1.dat: Likewise.
417 * regformats/s390-linux64v2.dat: Likewise.
418 * regformats/s390x-linux64v1.dat: Likewise.
419 * regformats/s390x-linux64v2.dat: Likewise.
420
336060f3
PA
4212011-12-05 Pedro Alves <pedro@codesourcery.com>
422
423 * linux-nat.c (resume_stopped_resumed_lwps): Call
424 registers_changed.
425
049e32d3
PA
4262011-12-05 Pedro Alves <pedro@codesourcery.com>
427
428 * breakpoint.c: Include record.h.
429 (breakpoints_always_inserted_mode): Return false when the record
430 target is in use.
431
5c03c7f9 4322011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
433
434 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
435 Reinstate perror_with_name call on ptrace error. Remove #if 0.
436 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
437 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
438
fbbd034e
AS
4392011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
440
441 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
442 `i'(-Wshadow).
443
a5ff8356 4442011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
445
446 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
447
4482011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
449
a5ff8356
AS
450 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
451 of `tdep'(-Wshadow).
452
93f2a35e
JK
4532011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 Fix compilation --without-expat.
456 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
457 from ...
458 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
459
2268b414
JK
4602011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
461 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
464 * features/library-list-svr4.dtd: New file.
465 * remote.c (PACKET_qXfer_libraries_svr4): New.
466 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
467 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
468 * solib-svr4.c (struct svr4_library_list): New.
469 [HAVE_LIBEXPAT]: Include xml-support.h.
470 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
471 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
472 [HAVE_LIBEXPAT] (svr4_library_list_children)
473 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
474 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
475 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
476 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
477 (svr4_read_so_list): Extend the corruption message by addresses.
478 (svr4_current_sos): New variable library_list, call
479 svr4_current_sos_via_xfer_libraries.
480 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
481
585861ea
JK
4822011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 PR threads/13448
485 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
486 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
487
9750bca9
JK
4882011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 PR breakpoints/13346
491 * dwarf2read.c (process_psymtab_comp_unit): Set
492 PSYMTABS_ADDRMAP_SUPPORTED.
493 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
494 validity. New field psymtabs_addrmap_supported.
495 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
496 psymtabs_addrmap_supported.
497 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
498 !PSYMTABS_ADDRMAP_SUPPORTED.
499 (dump_psymtab, maintenance_info_psymtabs): Print also
500 psymtabs_addrmap_supported.
501
f28c316a
DE
5022011-12-01 Doug Evans <dje@google.com>
503
504 * python/py-type.c (type_object_methods): Fix "array" doc string.
505
fc0ae648
AB
5062011-12-01 Andrew Burgess <aburgess@broadcom.com>
507
508 * source.c (print_source_lines_base): Fix missing braces on else
509 clause leading to additional output.
510
d6db1fab
UW
5112011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
512
513 * s390-nat.c (SUBOFF): Remove.
514 (s390_native_supply, s390_native_collect): New functions.
515 (supply_gregset, supply_fpregset): Use s390_native_supply.
516 (fill_gregset, fill_fpregset): Use s390_native_collect.
517
518 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
519 (s390_unwind_pseudo_register): New function.
520 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
521 registers instead of PC and CC.
522 (s390_backchain_frame_unwind_cache): Likewise.
523 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
524 full GPR pseudos.
525 (s390_trad_frame_prev_register): New function.
526 (s390_frame_prev_register): Use it.
527 (s390_sigtramp_frame_prev_register): Likewise.
528 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
529 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
530 special callback to unwind any pseudo.
531
532 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
533 * features/s390-core64.xml: Likewise.
534 * features/s390x-core64.xml: Likewise.
535 * features/s390-linux32.c: Regenerate.
536 * features/s390-linux64.c: Likewise.
537 * features/s390x-linux64.c: Likewise.
538
1dd635ac
UW
5392011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
540
541 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
542
0161e4b9
UW
5432011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
544
545 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
546 instruction. Add more diagnostic output.
547
0c36327f
AS
5482011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
549
550 * MAINTAINERS (Write After Approval): Add myself to the list.
551
b4264740
SD
5522011-11-29 Sanjoy Das <sdas@igalia.com>
553
554 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
555 (jit_bfd_try_read_symtab): Fix comments.
556
87326c78
DD
5572011-11-28 DJ Delorie <dj@redhat.com>
558
559 * NEWS: Mention RL78 simulator.
560
1e3a8f45
JB
5612011-11-28 Joel Brobecker <brobecker@adacore.com>
562
563 * symfile.h (struct quick_symbol_functions): Fix the documentation
564 of field map_matching_symbols, as symbols are sorted using
565 strcmp_iw_ordered, not strcmp_iw.
566
265e52c3
JB
5672011-11-28 Paul Hilfinger <hilfinger@adacore.com>
568
569 * symfile.h (struct quick_symbol_functions): Update the
570 documentation for field map_matching_symbols.
571
1a1d5513
JB
5722011-11-28 Joel Brobecker <brobecker@adacore.com>
573
574 * ada-lang.c (compare_names): Fix wrong return value in case
575 string1 starts with the same contents as string2, followed
576 by an underscore that do not start a symbol name suffix.
577
5d9c5995
PM
5782011-11-28 Phil Muldoon <pmuldoon@redhat.com>
579
580 PR python/13369
581 PR python/13374
582
583 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
584 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
585 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
586 exceptions.
587 * python/py-type.c (typy_strip_typedefs): Ditto.
588 (typy_legacy_template_argument): Ditto.
589 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
590 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
591
2bf50f6f
JB
5922011-11-27 Joel Brobecker <brobecker@acacore.com>
593
594 * remote.c (remote_get_tracepoint_status): Delete addrbuf
595 local variable. Avoid use of sprintf_vma.
596
744ab88c
SD
5972011-11-27 Sanjoy Das <sdas@igalia.com>
598
599 Fix regression in jit.exp.
600 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
601 (jit_register_code): Set the jit_objfile_data field to the correct
602 value.
603
46ad3598
UW
6042011-11-25  Uros Bizjak  <ubizjak@gmail.com>
605
606 * alpha-tdep.c (br_opcode): New.
607 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
608 (alpha_deal_with_atomic_sequence): New function.
609 (alpha_gdbarch_init): Handle single stepping of atomic sequences
610 with alpha_deal_with_atomic_sequence.
611
e4c5f296
TG
6122011-11-24 Tristan Gingold <gingold@adacore.com>
613
614 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
615 fields. Add oso_sym, end_sym and nbr_syms.
616 (macho_register_oso): Change interface.
617 (macho_symtab_add_minsym): New function.
618 (macho_symtab_read): Rewritten.
619 (get_archive_prefix_len): Remove trailing blanks.
620 (oso_el_compare_name): Add comment.
621 (struct macho_sym_hash_entry): New structure.
622 (macho_relocate_common_syms): Remove.
623 (macho_sym_hash_newfunc): New function.
624 (macho_resolve_oso_sym_with_minsym): Likewise.
625 (macho_add_oso_symfile): Rewritten.
626 (macho_symfile_read_all_oso): Remove trailing blanks.
627 Adjust code to free oso vector.
628 (macho_symfile_read): Likewise.
629 Move code to initialize minimal symbol
630
130854df
MR
6312011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
632
633 * mips-tdep.c (extended_offset): Fix formatting.
634
3d7bb9d9
DE
6352011-11-23 Doug Evans <dje@google.com>
636
637 * dwarf2read.c (dw2_lookup_symtab): Add comment.
638 (dw2_expand_symtabs_with_filename): Ditto.
639 (dw2_expand_symtabs_matching): Ditto.
640 (dw2_map_symbol_filenames): Ditto.
641
1fbf5ada
JB
6422011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
643
644 * ada-lang.c (assign_aggregate): Minor reformatting.
645
d984108d
JB
6462011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
647
648 * ada-lang.c (assign_aggregate): Remove declaration of local
649 variable `i' which is shadowing another variable with the same
650 name declared in the outer scope.
651
18af8284
JB
6522011-11-23 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-lang.c (get_base_type): Renames base_type. Adjust all
655 calls throughout this file.
656
1fc7b5d7
JB
6572011-11-23 Joel Brobecker <brobecker@adacore.com>
658
659 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
660 FormatMessage.
661
36dfb11c
TT
6622011-11-22 Tom Tromey <tromey@redhat.com>
663
664 PR mi/8444:
665 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
666 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
667 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
668 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
669 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
670 (print_it_catch_syscall, print_it_catch_exec)
671 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
672 (bpstat_print): Add 'kind' argument. Handle
673 TARGET_WAITKIND_LOADED.
674 * infrun.c (normal_stop): Update for bpstat_print change. Don't
675 handle TARGET_WAITKIND_LOADED here.
676 * breakpoint.h (bpstat_print): Update.
677
5bd6aa83
TT
6782011-11-22 Tom Tromey <tromey@redhat.com>
679
680 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
681
f5afdc18
TT
6822011-11-22 Tom Tromey <tromey@redhat.com>
683
684 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
685 Use static_assert to check the size of
686 async_reason_string_lookup.
687 * common/gdb_assert.h (static_assert): New macro.
688
a3769e0c
AM
6892011-11-22 Alan Modra <amodra@gmail.com>
690
691 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
692 destination calculation. Don't expect >> to sign extend. Don't
693 add a break if branch lands inside the sequence anywhere.
694
56767571
KS
6952011-11-21 Keith Seitz <keiths@redhat.com>
696
697 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
698 -var-evaluate-expression of an enumeration and fix expected result.
699 * gdb.mi/mi2-varvdisplay.exp: Likewise.
700
8443c207
KY
7012011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
702
703 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
704 the case where osdata->items is empty. Rename column names to a
705 canonical form to avoid problems with unusual column names.
706
97643830
YQ
7072011-11-21 Yao Qi <yao@codesourcery.com>
708
709 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
710
f196051f
SS
7112011-11-20 Stan Shebs <stan@codesourcery.com>
712
713 * NEWS: Mention tracepoint additions.
714 * breakpoint.h (struct tracepoint): New field traceframe_usage.
715 * breakpoint.c (print_one_breakpoint_location): Identify
716 tracepoints as such when reporting hit counts, report
717 trace buffer usage.
718 (create_tracepoint_from_upload): Copy status info.
719 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
720 add fields user_name, notes, start_time, stop_time.
721 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
722 * tracepoint.c (trace_user): New global.
723 (trace_notes): New global.
724 (trace_stop_notes): New global.
725 (start_tracing): Add argument and trace note handling.
726 (stop_tracing): Ditto.
727 (trace_start_command): Add notes argument.
728 (trace_stop_command): Ditto.
729 (trace_status_command): Report additional status info.
730 (trace_status_mi): Similarly.
731 (trace_save): Update, record tracepoint status.
732 (set_disconnected_tracing): Call target method directly.
733 (send_disconnected_tracing_value): Remove.
734 (set_trace_user): New function.
735 (set_trace_notes): New function.
736 (set_trace_stop_notes): New function.
737 (parse_trace_status): Handle additional status.
738 (parse_tracepoint_status): New function.
739 (parse_tracepoint_definition): Call it.
740 (tfile_get_tracepoint_status): New function.
741 (init_tfile_ops): Use it.
742 (_initialize_tracepoint): Add new setshows.
743 * target.h (struct target_ops): New methods to_get_tracepoint_status
744 and to_set_trace_notes.
745 (target_get_tracepoint_status): New macro.
746 (target_set_trace_notes): New macro.
747 * target.c (update_current_target): Add new methods.
748 * remote.c (remote_get_tracepoint_status): New function.
749 (remote_set_trace_notes): New function.
750 (init_remote_ops): Add them.
751 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
752 (mi_cmd_trace_stop): Ditto.
753
3623dc3a
SD
7542011-11-20 Sanjoy Das <sdas@igalia.com>
755
756 * jit.c: Include regcache.h.
757 (jit_gdbarch_data, jit_frame_unwind): New static variables.
758 (jit_unwind_reg_set_impl, free_reg_value_impl)
759 (jit_unwind_reg_get_impl, jit_frame_sniffer)
760 (jit_frame_unwind_stop_reason, jit_frame_this_id)
761 (jit_frame_prev_register, jit_dealloc_cache)
762 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
763 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
764 jit_prepend_unwinder.
765 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
766
1825a88d
SD
7672011-11-20 Sanjoy Das <sdas@igalia.com>
768
769 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
770 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
771 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
772 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
773 (finalize_symtab, jit_object_close_impl)
774 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
775 (free_objfile_data): New functions.
776 (_initialize_jit): Register jit_objfile_data with a proper cleanup
777 function.
778
784c47ee
SD
7792011-11-20 Sanjoy Das <sdas@igalia.com>
780
781 * jit.c: Include gdb-dlfcn.h.
782 (loaded_jit_reader, reader_init_fn_sym): New static variables.
783 (jit_reader_load, jit_reader_load_command)
784 (jit_reader_unload_command): New functions.
785 (_initialize_jit): Add commands "jit-reader-load" and
786 "jit-reader-unload".
787
a2d08b9e
SD
7882011-11-20 Sanjoy Das <sdas@igalia.com>
789
790 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
791 * config.in: Add new #define HAVE_LIBDL.
792 * configure.ac: Add check for -ldl.
793 * configure: Re-generated by autoconf.
794 * gdb-dlfcn.c: New file.
795 * gdb-dlfcn.h: New file.
796
b8e0a31c
SD
7972011-11-20 Sanjoy Das <sdas@igalia.com>
798
799 * config.in: Add new #defines: JIT_READER_DIR and
800 JIT_READER_DIR_RELOCATABLE.
801 * configure.ac: New GDB directory entry for jit-reader-dir.
802 * configure: Re-generated by autoconf.
803 * jit.c: New static variable: const char *jit_reader_dir.
804 (_initialize_jit): Relocate jit_reader_dir.
805
f997c383
SD
8062011-11-20 Sanjoy Das <sdas@igalia.com>
807
808 * Makefile.in: Add jit-reader.h as a header. Have it installed in
809 $(includedir)/gdb.
810 * configure.ac: Generate a correct value for TARGET_PTR for
811 jit-reader.h. Tell configure to generate jit-reader.h from
812 jit-reader.in.
813 * configure: Re-generated by autoconf.
814 * jit-reader.in: New file.
815 * jit.c: Include jit-reader.h.
816
dc8c0494
SD
8172011-11-20 Sanjoy Das <sdas@igalia.com>
818
819 * MAINTAINERS (Write After Approval): Add myself to the list.
820
01efb936
UW
8212011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
822
823 * findvar.c (read_frame_register_value): Respect value_offset
824 of the register value. Remove big-endian special case.
825
732f3f12
TT
8262011-11-18 Tom Tromey <tromey@redhat.com>
827
828 PR build/7196:
829 * remote.c (putpkt_for_catch_errors): New function.
830 (remote_kill): Use it.
831
bfccc43c
YQ
8322011-11-18 Yao Qi <yao@codesourcery.com>
833
834 * breakpoint.c (create_breakpoint): Produce query message according to
835 breakpoint's type.
836 Allocate tracepoint per correct type.
837 Don't check SALs for pending fast tracepoints.
838 * tracepoint.c (process_tracepoint_on_disconnect): New.
839 (disconnect_tracing): Call process_tracepoint_on_disconnect.
840
3ea46bff
YQ
8412011-11-18 Yao Qi <yao@codesourcery.com>
842
843 * breakpoint.c (install_breakpoint): Add one more parameter so that
844 update_global_location_list is called conditionally.
845 (create_fork_vfork_event_catchpoint): Update.
846 (create_syscall_event_catchpoint): Update.
847 (create_breakpoint_sal): Update.
848 (create_breakpoint_sal): Update. Call do_cleanups before
849 install_breakpoint.
850 * ada-lang.c (create_ada_exception_catchpoint): Update.
851 * breakpoint.h (install_breakpoint): Update declaration.
852
598cfb71
UW
8532011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
854
855 * spu-tdep.c (spu_return_value): Fix handling of
856 TYPE_CALLING_CONVENTION annotation.
857
caf4328c
UW
8582011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * skip.c (skip_function_command): Work around uninitialized
861 variable warning.
862
2b54dda2
DM
8632011-11-16 David S. Miller <davem@davemloft.net>
864
865 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
866 'tv_usec' to long for printf since these fields have a type which
867 varies.
868
93bf33fd
DE
8692011-11-15 Doug Evans <dje@google.com>
870
871 * buildsym.c (add_symbol_to_list): Delete outdated comment.
872
9cc10fd1
PK
8732011-11-15 Paul Koning <paul_koning@dell.com>
874
875 * python/py-type.c (typy_get_composite): New function.
876 (typy_nonzero): New function.
877 (typy_values): Rename from typy_fields.
878 (typy_fields): New function.
879 (typy_length): Raise exception if not struct, union, or enum type.
880 (typy_getitem): Ditto.
881 (typy_has_key): Ditto.
882 (typy_make_iter): Ditto.
883
c011a4f4
DE
8842011-11-15 Doug Evans <dje@google.com>
885
886 * NEWS: Mention new parameter basenames-may-differ.
887 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
888 ! basenames_may_differ.
889 * psymtab.c (lookup_partial_symtab): Ditto.
890 * symtab.c (lookup_symtab): Ditto.
891 (basenames_may_differ): New global.
892 (_initialize_symtab): New parameter basenames-may-differ.
893 * symtab.h (basenames_may_differ): Declare.
894
865ecab4
LM
8952011-11-15 Pedro Alves <pedro@codesourcery.com>
896 Luis Machado <lgustavo@codesourcery.com>
897
898 * auxv.c: Include observer.h.
899 (auxv_inferior_data_cleanup): New.
900 (invalidate_auxv_cache_inf): New.
901 (invalidate_auxv_cache): New.
902 (get_auxv_inferior_data): New.
903 (auxv_inferior_data): New static global.
904 (auxv_info): New structure.
905 (target_auxv_search): Use get_auxv_inferior_data instead of
906 target_read_alloc and don't free cached buffers.
907 (fprint_target_auxv): Likewise
908 (_initialize_auxv): Register per-inferior auxv cache and register
909 observers to invalidate auxv cache when needed.
910
ed59ded5
DE
9112011-11-14 Doug Evans <dje@google.com>
912
913 Make "!" an alias for "shell".
914 * NEWS: Add mention.
915 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
916 adding "!" command, always add it.
917 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
918 command of length one.
919
405f8e94
SS
9202011-11-14 Stan Shebs <stan@codesourcery.com>
921 Kwok Cheung Yeung <kcy@codesourcery.com>
922
923 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
924 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
925 the minimum instruction size for fast tracepoints.
926 * target.h (struct target_ops): Add new method
927 to_get_min_fast_tracepoint_insn_len.
928 (target_get_min_fast_tracepoint_insn_len): New.
929 * target.c (update_current_target): Set up new target operation.
930 * remote.c (remote_write_bytes_aux): Fix typo.
931 (remote_get_min_fast_tracepoint_insn_len): New.
932 (init_remote_ops): Initialize new field.
933
3e05895e
TT
9342011-11-14 Tom Tromey <tromey@redhat.com>
935
936 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
937 (encode_actions): Likewise.
938
1e4d1764
YQ
9392011-11-14 Yao Qi <yao@codesourcery.com>
940
941 * remote.c (struct remote_state): <install_in_trace> new field.
942 (PACKET_InstallInTrace): New enum value.
943 (remote_install_in_trace_feature): Support InstallInTrace.
944 (remote_supports_install_in_trace): Likewise.
945 (remote_protocol_features): Likewise.
946 (_initialize_remote): Likewise.
947 (remote_can_download_tracepoint): New.
948 * target.h (struct target): New field
949 `to_can_download_tracepoint'.
950 (target_can_download_tracepoint): New macro.
951 * target.c (update_current_target): Update.
952 * breakpoint.h (struct bp_location): Add comment on field
953 `duplicate'.
3ccd4ac6
YQ
954 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
955 and tracepoint.
1e4d1764
YQ
956 (remove_breakpoints): Don't remove tracepoints.
957 (tracepoint_locations_match ): New.
958 (breakpoint_locations_match): Call it.
959 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
960 (download_tracepoint_locations): New.
961 (update_global_location_list): Call it.
962 * tracepoint.c (find_matching_tracepoint): Delete.
963 (find_matching_tracepoint_location): Renamed from
964 find_matching_tracepoint. Return bp_location rather than
965 tracepoint.
966 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
967 tracepoint is found.
968
e8ba3115
YQ
9692011-11-14 Yao Qi <yao@codesourcery.com>
970
971 * target.h (struct target): <to_download_tracepoint> Change type
972 of parameter from tracepoint to bp_location.
973 * target.c (update_current_target): Update.
974 * tracepoint.c (start_tracing): Update.
975 * remote.c (remote_download_tracepoint): Remove loop for each location
976 of a tracepoint.
977
edcc485a
MR
9782011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
979
980 * i386-nat.c (i386_insert_hw_breakpoint): Call
981 i386_update_inferior_debug_regs.
982 (i386_remove_hw_breakpoint): Likewise.
983
3742cc8b
YQ
9842011-11-14 Yao Qi <yao@codesourcery.com>
985
986 * breakpoint.c (init_raw_breakpoint): Call
987 add_location_to_breakpoint to replace duplicated code.
988 (add_location_to_breakpoint): Adjust the breakpoint's
989 address prior to allocating a location.
990
71eba9c2 9912011-11-12 Matt Rice <ratmice@gmail.com>
992
993 * macrocmd.c (macro_no_macro_info): New function.
994 (macro_expand_command): Use macro_no_macro_info.
995 (macro_expand_once_command): Ditto.
996 (info_macro_command): Add argument processing,
997 move info_definitions_command here.
998 (_initialize_macrocmd): Remove info definitions command.
999 Add arguments to info macro help text.
1000 * NEWS: Replace info definitions command with new info macro options.
1001
731971ed
KS
10022011-11-11 Keith Seitz <keiths@redhat.com>
1003
1004 PR gdb/12843
1005 * linespec.c (locate_first_half): Keep ':' if it looks
1006 like it could be part of a Windows path starting with
1007 a drive letter.
1008
6953d224
PA
10092011-11-10 Pedro Alves <pedro@codesourcery.com>
1010
1011 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1012 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1013
0c94aa73
PA
10142011-11-10 Pedro Alves <pedro@codesourcery.com>
1015
1016 * target.c (target_waitstatus_to_string): Handle
1017 TARGET_WAITKIND_NO_RESUMED.
1018
f6b47be4
DE
10192011-11-10 Doug Evans <dje@google.com>
1020
74e2f255
DE
1021 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1022 `need_fullname'.
1023 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1024 (map_partial_symbol_filenames): Ditto. All callers updated.
1025 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1026 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1027 parameter need_fullname.
1028
256f06f3
DE
1029 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1030 * source.c (symtab_to_fullname): Ditto.
1031
50f182aa
DE
1032 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1033 * gdb-demangle.h: ... here. New file.
1034 * demangle.c: #include "gdb-demangle.h".
1035 (_initialize_demangler): Use initialize_file_ftype for prototype.
1036 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1037 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1038 from utils.c
1039 * utils.c: Update. #include "gdb-demangle.h".
1040 * symtab.h (asm_demangle): Delete.
1041 (demangle): Move declaration next to use.
1042 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1043 * dwarf2read.c: #include "gdb-demangle.h".
1044 * gnu-v2-abi.c: Ditto.
1045 * jv-typeprint.c: Ditto.
1046 * mdebugread.c: Ditto.
1047 * p-typeprint.c: Ditto.
1048 * stabsread.c: Ditto.
1049 * printcmd.c: Ditto.
1050 (asm_demangle): Delete declaration.
1051 * tui/tui-stack.c: #include "gdb-demangle.h".
1052
f6b47be4
DE
1053 * python/py-type.c (typy_fields_items): Call check_typedef.
1054
22355c90
JB
10552011-11-10 Joel Brobecker <brobecker@adacore.com>
1056
1057 * findvar.c (read_frame_register_value): Read the correct bytes
1058 from registers on big-endian architectures.
1059
bd119cf1 10602011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1061
1062 * procfs.c (load_syscalls): Make a cleanup.
1063 (open_procinfo_files): fd==0 is ok.
1064
0a86f364
JB
10652011-11-10 Joel Brobecker <brobecker@adacore.com>
1066
1067 * procfs.c (iterate_over_mappings): Call do_cleanups before
1068 returning.
1069
9bc118a5
DE
10702011-11-09 Doug Evans <dje@google.com>
1071
1072 * gdbtypes.c (check_typedef): Document that this function can
1073 throw an exception.
1074
a7860e76
TT
10752011-11-09 Tom Tromey <tromey@redhat.com>
1076
1077 PR c++/13342:
1078 * valops.c (value_full_object): Return early if real type is
1079 smaller than the enclosing type.
1080
60965737
YQ
10812011-11-08 Yao Qi <yao@codesourcery.com>
1082
1083 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1084
72a2e3dc
MI
10852011-11-08 Meador Inge <meadori@codesourcery.com>
1086
1087 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1088 register when the frame can't be determined.
1089 * arm-tdep.c (arm_analyze_prologue): Ditto.
1090
ce3b0ff7
SS
10912011-11-07 Stan Shebs <stan@codesourcery.com>
1092
1093 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1094
2b914b52
JB
10952011-11-07 Joel Brobecker <brobecker@adacore.com>
1096
1097 * infrun.c (handle_inferior_event): Minor reformatting.
1098
6f809020
DE
10992011-11-05 Doug Evans <dje@google.com>
1100
1101 * source.c (forget_cached_source_info_for_objfile): Move call to
1102 objfile->sf->qf->forget_cached_source_info outside of
1103 ALL_OBJFILE_SYMTABS loop.
1104 (forget_cached_source_info): Delete unused variable `s'.
1105
75d12218
JK
11062011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 * i386-nat.c (dr_ref_count): Remove unused variable.
1109
e565b837
DE
11102011-11-05 Doug Evans <dje@google.com>
1111
1112 * main.c (captured_main): Set lim_at_start before calling
1113 make_command_stats_cleanup.
1114
0a1c4d10
DE
11152011-11-04 Doug Evans <dje@google.com>
1116
1117 * utils.c: #include "timeval-utils.h".
1118 (cmd_stats): Rename start_time to start_cpu_time.
1119 New member start_wall_time.
1120 (report_command_stats): Report wall time.
1121 (make_command_stats_cleanup): Record start wall time.
1122
a1d705ee
TT
11232011-11-04 Tom Tromey <tromey@redhat.com>
1124
1125 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1126
81de56be
RO
11272011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1128
1129 * coff-pe-read.c: Include defs.h before bfd.h.
1130
3ab1ec27
PM
11312011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1132
1133 PR Python/13345
1134
1135 * python/python.c (python_run_simple_file): Expand tilde in path.
1136
cd829959
PM
11372011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1138
1139 PR Python/13363
1140
1141 * python/py-type.c (typy_lookup_type): Do not return a type in
1142 an exception handler.
1143
080ad648
JK
11442011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1145 Eli Zaretskii <eliz@gnu.org>
1146
1147 * linux-nat.c (_initialize_linux_nat): Improve help
1148 for `info proc stat', `info proc status', `info proc cwd',
1149 `info proc cmdline' and `info proc exe'.
1150
3065dfb6
SS
11512011-11-02 Stan Shebs <stan@codesourcery.com>
1152
1153 String collection for tracepoints.
1154 * NEWS: Mention string collection.
1155 * common/ax.def (tracenz): New bytecode.
1156 * ax-gdb.h (trace_string_kludge): Declare.
1157 * ax-gdb.c: Include valprint.h and c-lang.h.
1158 (trace_string_kludge): New global.
1159 (gen_traced_pop): Add string case.
1160 (agent_command): Add string case.
1161 * tracepoint.h (decode_agent_options): Declare.
1162 * tracepoint.c: Include cli-utils.h.
1163 (decode_agent_options): New function.
1164 (validate_actionline): Call it.
1165 (encode_actions_1): Ditto.
1166 * target.h (struct target_ops): New method to_supports_string_tracing.
1167 (target_supports_string_tracing): New macro.
1168 * target.c (update_current_target): Add to_supports_string_tracing.
1169 * remote.c (struct remote_state): New field string_tracing.
1170 (remote_string_tracing_feature): New function.
1171 (remote_protocol_features): New feature tracenz.
1172 (remote_supports_string_tracing): New function.
1173 (init_remote_ops): Set to_supports_string_tracing.
1174
f179e162
JK
11752011-11-02 Pedro Alves <pedro@codesourcery.com>
1176 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 * linux-nat.c: Include cli/cli-utils.h.
1179 (enum info_proc_what): New.
1180 (linux_nat_info_proc_cmd): Rename to ...
1181 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1182 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1183 status_f and stat_f from WHAT. Throw error on extra parameters.
1184 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1185 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1186 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1187 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1188 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1189 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1190 `info proc cmdline', `info proc exe' and `info proc all' as real
1191 subcommands of `info proc'.
1192
7b35ec7f 11932011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1194
1195 * Makefile.in: (SFILES): Add skip.c.
1196 (HFILES_NO_SRCDIR): Add skip.h.
1197 (COMMON_OBS): Add skip.o.
1198 * skip.h, skip.c: New.
1199 * breakpoint.h (set_default_breakpoint): Remove.
1200 (get_sal_arch): Declare.
1201 * breakpoint.c: Remove default_breakpoint_valid,
1202 default_breakpoint_address, default_breakpoint_symtab,
1203 default_breakpoint_line, default_breakpoint_pspace variables.
1204 (get_sal_arch): Make public.
1205 (set_default_breakpoint): Remove.
1206 (parse_breakpoint_sals, create_breakpoint, clear_command,
1207 decode_line_spec_1): Remove uses of default_breakpoint variables;
1208 replaced with function calls into stack.c.
1209 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1210 * cli/cli-cmds.c: Add skiplist.
1211 (init_cmd_lists): Initialize skiplist.
1212 (init_cli_cmds): Fix comment (classes of commands appear in
1213 alphabetical order).
1214 * infrun.c (handle_inferior_event): Add check that we don't step into
1215 a function whose pc is marked for skip.
1216 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1217 last_displayed_addr, last_displayed_symtab, last_displayed_line
1218 variables.
1219 (set_last_displayed_sal): New static function.
1220 (print_frame_info): Switch call to set_default_breakpoint to call to
1221 set_last_displayed_sal.
1222 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1223 get_last_displayed_pspace, get_last_displayed_addr,
1224 get_last_displayed_symtab, get_last_displayed_line,
1225 get_last_displayed_sal): New public functions.
1226 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1227 get_last_displayed_pspace, get_last_displayed_addr,
1228 get_last_displayed_symtab, get_last_displayed_line,
1229 get_last_displayed_sal): Declare.
1230
b60e1588
JL
12312011-11-01 Justin Lebar <justin.lebar@gmail.com>
1232
1233 * MAINTAINERS (Write After Approval): Add myself to the list.
1234
d31647d2
YQ
12352011-10-29 Yao Qi <yao@codesourcery.com>
1236
1237 * infcmd.c (disconnect_command): Call disconnect_tracing.
1238
b1d96efd
JK
12392011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1240
1241 Code cleanup.
1242 * symtab.c (skip_prologue_sal): Code reformatting.
1243
4dfb2365
JK
12442011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 PR symtab/13208
1247 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1248 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1249 SAI.
1250
0e5bf2a8
PA
12512011-10-28 Pedro Alves <pedro@codesourcery.com>
1252
1253 * linux-nat.c (linux_nat_filter_event): Remove `options'
1254 parameter, and dead code that used it. If we're handling a
1255 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1256 in our lwp list, re-add it.
1257 (check_zombie_leaders): New.
1258 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1259 wait for children with WNOHANG, and always wait for all children.
1260 Don't check for no resumed children upfront. Simplify wait loop.
1261 Check for zombie thread group leaders after handling all wait
1262 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1263 unwaited-for children left.
1264 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1265 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1266 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1267 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1268
821296b7
SA
12692011-10-28 Sterling Augustine <saugustine@google.com>
1270
1271 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1272 * symtab.c (free_completion_list): New function.
1273 (do_free_completion_list): Likewise.
1274 (default_make_symbol_completion_list_break_on): New variable
1275 back_to. Call make_cleanup and discard_cleanups.
1276 (make_source_files_completion_list): Likewise.
1277
03c3051a
PK
12782011-10-28 Paul Koning <paul_koning@dell.com>
1279
1280 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1281 * NEWS: Mention deep_items.
1282
8e7ebaf5
PA
12832011-10-28 Alen Skondro <askondro@gmail.com>
1284
8de33dc2 1285 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1286 defined.
1287
e0c6ef61
MI
12882011-10-27 Meador Inge <meadori@codesourcery.com>
1289
1290 * MAINTAINERS (Write After Approval): Add myself to the list.
1291
b56d6f31
JB
12922011-10-27 Joel Brobecker <brobecker@adacore.com>
1293
1294 * value.h (read_frame_register_value): Add declaration.
1295 * findvar.c (read_frame_register_value): New function.
1296 (value_from_register): Use read_frame_register_value
1297 instead of get_frame_register_value + value_contents_copy
1298 to get value contents.
1299
d234ef5c
DE
13002011-10-27 Doug Evans <dje@google.com>
1301
1302 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1303 source_script_from_stream if it may have been found on the search path.
1304 * python/py-auto-load.c (source_section_scripts): Pass full path to
1305 source_python_script_for_objfile.
1306 * python/python.c (source_python_script): Delete stream parameter.
1307 All callers updated.
1308 (source_python_script_for_objfile): Ditto.
1309 * python/python-internal.h (source_python_script_for_objfile): Update.
1310 * python/python.h (source_python_script): Update.
1311
d849d44f
TT
13122011-10-27 Tom Tromey <tromey@redhat.com>
1313
1314 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1315 (ada_sals_for_line): Remove declarations.
1316
2231f1fb
KP
13172011-10-27 Kevin Pouget <kevin.pouget@st.com>
1318
1319 Move unwind reasons to an external .def file
1320 * frame.c (frame_stop_reason_string): Rewrite using
1321 unwind_stop_reasons.def.
1322 * frame.h (enum unwind_stop_reason): Likewise.
1323 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1324 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1325 constants for bound-checking.
1326 * unwind_stop_reasons.def: New file.
1327 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1328 instead of a distinct value.
1329
f77b9a5d
PM
13302011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1331
1332 PR python/13331
1333
1334 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1335 (convert_values_to_python): Return on Python tuple allocation
1336 failure. Return NULL on value conversion error.
1337
76dce0be
PM
13382011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1339
1340 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1341 (bppy_set_task): Ditto.
1342 (bppy_delete_breakpoint): Ditto.
1343 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1344 (gdbpy_lookup_global_symbol): Ditto.
1345 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1346 * python/py-frame.c (frapy_is_valid): Ditto.
1347 (frame_info_to_frame_object): Ditto.
1348 * python/py-type.c (typy_lookup_type): Ditto.
1349 (typy_getitem): Ditto.
1350 (typy_has_key): Ditto.
1351 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1352
f17b6955
JB
13532011-10-26 Joel Brobecker <brobecker@adacore.com>
1354
1355 * gdbarch.h: Regenerate.
1356
86ba1042
JB
13572011-10-26 Meador Inge <meadori@codesourcery.com>
1358
1359 * gdbarch.sh (function_list): Use 'pstring' when printing
1360 'gcore_bfd_target'.
1361 * gdbarch.c: Regenerate.
1362
c34fd852
UW
13632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1364
1365 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1366 and frame caches if PTID refers to all threads of a process.
1367
931bb47f
UW
13682011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1369
1370 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1371 to create_breakpoint.
1372
88aed45e
UW
13732011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1374
1375 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1376 (ppc_sysv_abi_push_dummy_call): Use it.
1377 (do_ppc_sysv_return_value): Likewise.
1378 (ppc64_sysv_abi_push_dummy_call): Likewise.
1379 (ppc64_sysv_abi_return_value): Likewise.
1380
3eaf3fa2
PK
13812011-10-26 Paul Koning <paul_koning@dell.com>
1382
1383 * python/lib/gdb/types.py (deepitems): New function.
1384
913460fc
PK
13852011-10-25 Paul Koning <paul_koning@dell.com>
1386
1387 PR python/13327
1388
1389 * python/py-value.c (value_to_value_object): Remove fetching of
1390 the value if it was lazy.
1391 (valpy_get_is_lazy): New function.
1392 (valpy_fetch_lazy): New function.
1393
2b5b9d09
JB
13942011-10-24 Joel Brobecker <brobecker@adacore.com>
1395
1396 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1397 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1398
e21ffe51
PA
13992011-10-24 Pedro Alves <pedro@codesourcery.com>
1400
1401 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1402 event, in non-stop, if not stopping, make sure the new lwp has
1403 last_resume_kind set to resume_continue. Assert that when we're
1404 resuming the new lwp, its last_resume_kind is resume_continue.
1405
7aee8dc2
PA
14062011-10-24 Pedro Alves <pedro@codesourcery.com>
1407
1408 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1409 already set when marking the event thread as not executing in
1410 non-stop mode.
1411
4b4e080e
PA
14122011-10-24 Pedro Alves <pedro@codesourcery.com>
1413
1414 * infrun.c (handle_inferior_event): Add debug output for
1415 TARGET_WAITKIND_NO_HISTORY.
1416
baacfb07
PM
14172011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1418
1419 * NEWS: Move set/show extended-prompt to "New Options". Expand
1420 description. Fix typos.
1421
8432bc41
PM
14222011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1423
1424 PR python/13310
1425
1426 * python/py-param.c (call_doc_function): Correctly deference on
1427 function exit.
1428
6cda5a20
JB
14292011-10-21 Joel Brobecker <brobecker@adacore.com>
1430
1431 * ada-tasks.c (print_ada_task_info): Fix computation of
1432 number of tasks displayed in command output.
1433
13294f7d
JK
14342011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1435 Ulrich Weigand <uweigand@de.ibm.com>
1436
1437 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1438 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1439 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1440 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1441 gdbarch_unwind_pc.
1442
460c1c54
CC
14432011-10-20 Cary Coutant <ccoutant@google.com>
1444
1445 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1446 section to...
1447 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1448 flag. Adjust all callers.
1449 (process_psymtab_comp_unit): Remove adjustment for type section.
1450
a10964d1
AR
14512011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1452
1453 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1454 arguments by adding OBJFILE. Instead of getting objfile from
1455 symbol's symtab, use new argument OBJFILE.
1456 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1457 arguments by adding OBJFILE.
1458 * gdb/dwarf2read.c (new_symbol_full): Change call to
1459 cp_scan_for_anonymous_namespaces to match new signature.
1460 * gdb/stabsread.c (define_symbol): Change call to
1461 cp_scan_for_anonymous_namespaces to match new signature.
1462
27ca1a5b
PM
14632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1464
1465 PR python/13308
1466 PR python/13309
1467
1468 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1469 leak.
1470 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1471 leak. Delete unused variables.
1472
9df2fbc4
PM
14732011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1474
1475 PR python/12656
1476
1477 * python/py-frame.c (frapy_read_var): Use const struct *block.
1478 * python/py-type.c (typy_lookup_typename): Likewise.
1479 (typy_lookup_type): Likewise.
1480 (typy_legacy_template_argument): Likewise.
1481 (typy_template_argument): Likewise.
1482 (gdbpy_lookup_type): Likewise.
1483 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1484 * python/py-block.c (blpy_block_object): Likewise.
1485 (blpy_iter): Likewise.
1486 (blpy_get_start): Likewise.
1487 (blpy_get_end): Likewise.
1488 (blpy_get_function): Likewise.
1489 (blpy_get_superblock): Likewise.
1490 (set_block): Likewise.
1491 (block_to_block_object): Likewise.
1492 (block_object_to_block): Likewise.
1493 (blpy_is_valid): Likewise.
1494 (blpy_get_global_block): New function.
1495 (blpy_get_static_block): New function.
1496 (blpy_is_global): New function.
1497 (blpy_is_static): New function.
1498 * blockframe.c (block_innermost_frame): Likewise.
1499 * valops.c (value_of_variable): Likewise.
1500 * frame.h: Update prototypes.
1501 * python/python-internal.h: Likewise.
1502 * value.h: Likewise.
1503
4743b735
CC
15042011-10-19 Cary Coutant <ccoutant@google.com>
1505
1506 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1507 type_offset field.
1508
6caca83c
CC
15092011-10-19 Cary Coutant <ccoutant@google.com>
1510
1511 * dwarf2read.c (peek_abbrev_code): New function.
1512 (dw2_get_file_names): Check for dummy compilation units.
1513 (create_debug_types_hash_table): Likewise.
1514 (process_psymtab_comp_unit): Likewise.
1515 (load_partial_comp_unit): Likewise.
1516 (load_full_comp_unit): Likewise.
1517
43136979
AR
15182011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1519
1520 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1521 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1522 pt_phdr if PT_PHDR was found.
1523
0a07729b
TT
15242011-10-17 Joost van der Sluis <joost@cnoc.nl>
1525
1526 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1527 type or "<unnamed type"> when there is no name assigned.
1528 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1529 avoid a sigint when no name is assigned.
1530
21ae7a4d
JK
15312011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 Revert:
1534 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 * dwarf2expr.c (ctx_no_read_reg): New function.
1536 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1537 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1538 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1539 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1540
32d1c362
DE
15412011-10-16 Doug Evans <dje@google.com>
1542
1543 * NEWS: Document python gdb.printing.register_pretty_printer's new
1544 `replace' parameter.
1545
da096638
KS
15462011-10-14 Keith Seitz <keiths@redhat.com>
1547
1548 PR c++/13225
1549 * eval.c (evaluate_subexp_standard): Do not construct
1550 an array of types; pass the value array directly to
1551 find_overload_match.
1552 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1553 (rank_function): Take an array of values instead of types.
1554 (rank_one_type): Add struct value * parameter.
1555 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1556 (rank_function): For each argument, pass the argument's
1557 value to rank_one_type.
1558 (rank_one_type): Add VALUE parameter.
1559 If the parameter type is a pointer and the argument type
1560 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1561 VALUE is zero.
1562 Update all calls to rank_one_type, passing NULL for new
1563 VALUE parameter.
1564 * valarith.c (value_user_defined_cpp_op): Do not construct
1565 an array of types; pass the value array directly to
1566 find_overload_match.
1567 * valops.c (find_overload_method_list): Take an array of
1568 values instead of types.
1569 Save the type of OBJP for later use.
1570 Update calls to find_oload_champ, and find_oload_champ_namespace.
1571 (find_oload_champ_namespace): Take an array of values instead
1572 of types.
1573 (find_oload_champ_namespace_loop): Likewise.
1574 (find_oload_champ): Likewise.
1575 (classify_oload_match): Inspect all arguments
1576 until INCOMPATIBLE is found. Return the worst badness found
1577 otherwise.
1578 (compare_parameters): Update call to rank_one_type.
1579 * value.h (find_overload_match): Take an array of values instead
1580 of types.
1581
3957565a
JK
15822011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 Drop lazy lm_info reading.
1585 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1586 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1587 (lm_info_read): New function.
1588 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1589 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1590 lm_dynamic_from_link_map.
1591 (lm_next, lm_prev, lm_name): Remove.
1592 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1593 initialization incl. read_memory. No longer use lm_name.
1594 (svr4_free_so): Drop lm_info->lm freeing.
1595 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1596 explicit lm_addr and lm initialization.
1597 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1598 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1599 lm_name.
1600
cb08cc53
JK
16012011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1602 Paul Pluzhnikov <ppluzhnikov@google.com>
1603
1604 * defs.h (struct so_list): New forward declaration.
1605 (make_cleanup_free_so): New declaration.
1606 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1607 (svr4_free_so): Move the function here from downwards. Handle NULL
1608 so->lm_info.
1609 (svr4_free_library_list): New.
1610 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1611 Use more cleanups. Use new parameter ignore_first instead of
1612 ignore_first_link_map_entry.
1613 (svr4_current_sos): New variable ignore_first, initialize it. New
1614 variable back_to, use it for svr4_free_library_list protection.
1615 (svr4_free_so): Remove - move upwards.
1616 * utils.c: Include solist.h.
1617 (do_free_so, make_cleanup_free_so): New functions.
1618
22c05d8a
JK
16192011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1620
1621 Fix internal error regression.
1622 * value.c (value_primitive_field): Handle value_optimized_out. Move
1623 packed bitfields comment.
1624
d930d06e
TT
16252011-10-13 Tom Tromey <tromey@redhat.com>
1626
1627 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1628 always released.
1629
2ff6b080
TT
16302011-10-13 Tom Tromey <tromey@redhat.com>
1631
1632 * python/py-type.c (typy_has_key): Make 'field' const.
1633
d6c5869f
LM
16342011-10-13 Luis Machado <lgustavo@codesourcery.com>
1635
1636 * remote.c (remote_save_trace_data): Invert comparison.
1637
a70633a2
LM
16382011-10-13 Luis Machado <lgustavo@codesourcery.com>
1639
1640 * tracepoint.c (trace_save_command): Use filename instead of
1641 args when printing.
1642
e103e986
JK
16432011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1646 if .size is 0.
1647
db24da6d
YQ
16482011-10-13 Yao Qi <yao@codesourcery.com>
1649
1650 PR gdb/12703
1651 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1652 whether insn is a 32-bit Thumb-2 instruction.
1653 (thumb_in_function_epilogue_p): Likewise.
1654 (thumb_get_next_pc_raw): Likewise.
1655 (arm_breakpoint_from_pc): Likewise.
1656
1d6edc3c
JK
16572011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1658
1659 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1660 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1661 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1662 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1663 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1664 zero DATA.
1665 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1666 validity.
1667 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1668 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1669 clear DATA on zero SIZE.
1670
adabb602
DE
16712011-10-12 Doug Evans <dje@google.com>
1672
1673 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1674 header->first_die_offset here. All callers updated.
1675
5048e516
JK
16762011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 Fix compatibility with texinfo versions older than 4.12.
1679 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1680 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1681 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1682 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1683 * configure: Regenerate.
1684 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1685 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1686 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1687
0574c78f
GB
16882011-10-12 Gary Benson <gbenson@redhat.com>
1689
1690 * breakpoint.h (pc_at_non_inline_function): Declare.
1691 * breakpoint.c (is_non_inline_function,
1692 pc_at_non_inline_function): New functions.
1693 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1694 if the stop is at a location where functions cannot be inlined.
1695
12d9289a
PA
16962011-10-12 Pedro Alves <pedro@codesourcery.com>
1697
1698 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1699 the core wanted them stopped, or if they now have a pending event
1700 to report.
ecf8e7f5
PA
1701 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1702 down to stop_and_resume_callback.
1703 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1704 having new pending events after calling linux_nat_filter_event.
12d9289a 1705
96408a79
SA
17062011-10-11 Sterling Augustine <saugustine@google.com>
1707
1708 * dwarf2read.c: Undo inadvertent changes in previous commit.
1709
9c6c53f7
SA
17102011-10-11 Sterling Augustine <saugustine@google.com>
1711
1712 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1713 logic.
1714
0e8aefe7
UW
17152011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1716
1717 * symfile.c (separate_debug_file_exists): Fix condition.
1718
349d1385
DM
17192011-10-11 David S. Miller <davem@davemloft.net>
1720
1721 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1722 static.
1723 * regcache.h (regcache_restore): Remove declaration.
1724
205c306f
DM
1725 * gdbarch.sh: New field 'long_long_align_bit'.
1726 * gdbarch.c, gdbarch.h: Regenerate.
1727 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1728 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1729
941b2081
JK
17302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Revert this part of:
1733 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Support @entry in input expressions.
1735 * c-exp.y (ENTRY, unknown_cpp_name): New.
1736 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1737 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1738 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1739 (name_not_typename: ENTRY): New.
1740 (yylex): Recognize ENTRY.
1741
1742 Reimplement @entry in input expressions.
1743 * c-exp.y (ENTRY): New.
1744 (variable: name_not_typename ENTRY): New.
1745 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1746
3c4d7e12
PA
17472011-10-11 Pedro Alves <pedro@codesourcery.com>
1748
1749 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1750 parent and child's pids as soon as we detect a clone event.
1751 Adjust another debug message.
1752
ea23808b
PA
17532011-10-11 Pedro Alves <pedro@codesourcery.com>
1754
1755 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1756 not zombie instead of reading the whole file.
1757
904578ed
JK
17582011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1759
1760 Fix separate debuginfo warning with "remote:" access.
1761 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1762 * symfile.c (get_file_crc): New function with the code moved from ...
1763 (separate_debug_file_exists): ... this function, specifically variables
1764 buffer and count. New variable verified_as_different, set it. Remove
1765 file_crc initialization. Verify also if both files are not the same
1766 manually, if needed.
1767
51370a33
YQ
17682011-10-11 Yao Qi <yao@codesourcery.com>
1769
1770 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1771 to get address.
1772
0838fb57
DE
17732011-10-10 Doug Evans <dje@google.com>
1774
1775 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1776 libthread_db when we load libpthread or the main symbol file.
1777 (thread_db_inferior_created): New function.
1778 (_initialize_thread_db): Attach inferior_created observer.
1779 * linux-nat.c (linux_child_post_attach): Remove call to
1780 check_for_thread_db.
1781 (linux_child_post_startup_inferior): Ditto.
1782 * objfiles.h (OBJF_MAINLINE): Define.
1783 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1784 allocate_objfile when appropriate.
1785
623bd5b7
UW
17862011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1787
1788 PR gdb/13218
1789 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1790 Remove unused variables.
1791 (get_linux_version): Remove function.
1792 (_initialize_arm_linux_nat): Do not call it.
1793
79395f92
PA
17942011-10-10 Pedro Alves <pedro@codesourcery.com>
1795
1796 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1797 new clone lwp if the core asked it to stop. Don't pass on
1798 unexpected signals to the new clone; leave them pending instead.
1799
eff3df78
PA
18002011-10-10 Pedro Alves <pedro@codesourcery.com>
1801
1802 * linux-nat.c (resume_lwp): Remove redundant debug output.
1803
4b60df3d
PA
18042011-10-10 Pedro Alves <pedro@codesourcery.com>
1805
1806 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1807 last_resume_kind before clearing it, and use the copy instead to
1808 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1809 resume_clear_callback in the non-stop path too.
1810
6501578c
YQ
18112011-10-09 Yao Qi <yao@codesourcery.com>
1812
1813 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1814 Honor OPTIONS and VAL's type.
1815 (common_val_print, value_print): Update to pass one more parameter.
1816
5a56e9c5
DE
18172011-10-09 Doug Evans <dje@google.com>
1818
1819 Add new "alias" command.
1820 * NEWS: Mention new command.
1821 * command.h (valid_user_defined_cmd_name_p): Declare.
1822 * defs.h (make_cleanup_dyn_string_delete): Declare.
1823 * utils.c: #include "dyn-string.h".
1824 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1825 * cli/cli-cmds.c: #include "dyn-string.h".
1826 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1827 (init_cli_cmds): Add new command.
1828 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1829
509f0fd9
JK
18302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1831
1832 Fix compatibility with older GCCs.
1833 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1834 * stack.c (read_frame_arg): Initialize val_deref.
1835
2bda9cc5
JK
18362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 Entry values NEWS entries, DWARF disassembly support.
1839 * NEWS: New entry values entry.
1840 (set print entry-values, show print entry-values)
1841 (set debug entry-values, show debug entry-values): New entries.
1842 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1843 indent. Remove variable start. Move header printing out. Respect
1844 INDENT. Support DW_OP_GNU_entry_value.
1845 (locexpr_describe_location_1): Move the header printing here, extend
1846 the disassemble_dwarf_expression passed parameters.
1847
a471c594
JK
18482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 Display @entry parameter values even for references.
1851 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1852 coerce_ref_if_computed.
1853 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1854 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1855 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1856 existing push_dwarf_reg_entry_value call. Add new detection calling
1857 dwarf_block_to_dwarf_reg_deref. Update the error message.
1858 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1859 * dwarf2expr.h
1860 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1861 parameter deref_size, describe it in the comment.
1862 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1863 (dwarf_block_to_dwarf_reg_deref): New declaration.
1864 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1865 deref_size, describe it in the function comment. New variables
1866 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1867 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1868 describe it in the function comment. Fetch the alternative block
1869 accoring to DEREF_SIZE.
1870 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1871 (entry_data_value_free_closure, entry_data_value_funcs): New.
1872 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1873 outer_val, target_val, val and addr. Try to fetch and create also
1874 referenced value content.
1875 (pieced_value_funcs): NULL value for coerce_ref.
1876 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1877 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1878 coerce_ref_if_computed.
1879 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1880 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1881 * stack.c (read_frame_arg): Compare also dereferenced values.
1882 * value.c (value_computed_funcs): Make the parameter v const, use
1883 value_lval_const for it.
1884 (value_lval_const, coerce_ref_if_computed): New function.
1885 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1886 * value.h (struct lval_funcs): New field coerce_ref.
1887 (value_computed_funcs): Make the parameter v const.
1888 (value_lval_const, coerce_ref_if_computed): New declarations.
1889
36b11add
JK
18902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1891
1892 Support @entry in input expressions.
1893 * c-exp.y (ENTRY, unknown_cpp_name): New.
1894 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1895 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1896 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1897 (name_not_typename: ENTRY): New.
1898 (yylex): Recognize ENTRY.
1899 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1900 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1901 Likewise.
1902 * parse.c (operator_length_standard): Likewise.
1903 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1904
3343315b
JK
19052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 Display referenced values in backtraces.
1908 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1909 * stack.c (print_frame_arg): Likewise.
1910
ac71a68c
JK
19112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1912
1913 Make some lval_funcs methods to default on NULL.
1914 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1915 NULL.
1916 (value_assign): Check if lval_computed write method is NULL.
1917 * value.h (struct lval_funcs): Comment NULL values for read and write
1918 methods.
1919
e18b2753
JK
19202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 Display @entry parameter values (without references).
1923 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1924 New functions.
1925 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1926 New declarations.
1927 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1928 entry record.
1929 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1930 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1931 functions.
1932 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1933 (loclist_read_variable_at_entry): New function.
1934 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1935 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1936 DW_AT_location, call dwarf_block_to_sp_offset for it.
1937 * frame.h (print_entry_values_no, print_entry_values_only)
1938 (print_entry_values_preferred, print_entry_values_if_needed)
1939 (print_entry_values_both, print_entry_values_compact)
1940 (print_entry_values_default, print_entry_values): New declarations.
1941 (struct frame_arg): New field entry_kind.
1942 (read_frame_arg): New parameter entryargp.
1943 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1944 arg->entry_kind. Optionally print the `@entry' suffix.
1945 (list_args_or_locals): New variable entryarg, initialize it.
1946 Initialize also entry_kind of arg and entryarg. Conditionalize
1947 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1948 xfree for entryarg.error.
1949 * stack.c (print_entry_values_no, print_entry_values_only)
1950 (print_entry_values_preferred, print_entry_values_if_needed)
1951 (print_entry_values_both, print_entry_values_compact)
1952 (print_entry_values_default, print_entry_values_choices)
1953 (print_entry_values): New variables.
1954 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1955 print the `@entry' suffix, possibly in combination for
1956 print_entry_values_compact.
1957 (read_frame_arg): New parameter entryargp, new variables entryval,
1958 entryval_error and val_equal. Read in also entryargp, respect
1959 print_entry_values, compare the values using val_equal, fill in also
1960 argp->entry_kind (together with entryargp->entry_kind).
1961 (print_frame_args): New variable entryarg, initialize it.
1962 Conditionalize print_frame_arg for arg, add print_frame_arg for
1963 entryarg. Call xfree for entryarg.error.
1964 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1965 * symtab.h (struct symbol_computed_ops): New field
1966 read_variable_at_entry.
1967
93d86cef
JK
19682011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 Code reshuffle.
1971 * frame.h (struct frame_arg): New definition.
1972 (read_frame_arg): New declaration.
1973 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1974 (list_args_or_locals): ... the code here. New variable arg, call
1975 read_frame_arg and list_arg_or_local with it. Unify the
1976 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1977 arg.error.
1978 * stack.c (print_frame_arg): New functiom from the code of
1979 print_frame_args.
1980 (read_frame_arg): New function.
1981 (print_frame_args): Remove variable val. New variable arg, call
1982 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1983
2d6c5dc2
JK
19842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 Protect entry values against self tail calls.
1987 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1988 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1989
111c6489
JK
19902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1991
1992 Recognize virtual tail call frames.
1993 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1994 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1995 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1996 * dwarf2-frame-tailcall.c: New file.
1997 * dwarf2-frame-tailcall.h: New file.
1998 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1999 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2000 REGS.PREV only after CIE execution.
2001 (struct dwarf2_frame_cache): New field tailcall_cache.
2002 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2003 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2004 parts, try to find entry_cfa_sp_offset. Call
2005 dwarf2_tailcall_sniffer_first.
2006 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2007 when appropriate.
2008 (dwarf2_frame_dealloc_cache): New function.
2009 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2010 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2011 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2012 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2013 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2014 * dwarf2loc.c (func_addr_to_tail_call_list)
2015 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2016 (call_site_find_chain_1, call_site_find_chain): New.
2017 * dwarf2loc.h (struct call_site_chain): New.
2018 (call_site_find_chain): New declaration.
2019 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2020 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2021 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2022 * stack.c (frame_info): Support also TAILCALL_FRAME.
2023
bb984ff1
JK
20242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 Tail call sites reader implementation.
2027 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2028 fill in TYPE_TAIL_CALL_LIST.
2029 * gdbtypes.h (struct func_type): New field tail_call_list.
2030 (struct call_site): New field tail_call_next.
2031 (TYPE_TAIL_CALL_LIST): New definition.
2032
8e3b41a9
JK
20332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2034
2035 Implement basic support for DW_TAG_GNU_call_site.
2036 * block.c: Include gdbtypes.h and exceptions.h.
2037 (call_site_for_pc): New function.
2038 * block.h (call_site_for_pc): New declaration.
2039 * defs.h: Include hashtab.h.
2040 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2041 declarations.
2042 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2043 ctx_no_push_dwarf_reg_entry_value.
2044 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2045 (dwarf_block_to_dwarf_reg): New function.
2046 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2047 (ctx_no_push_dwarf_reg_entry_value): New function.
2048 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2049 push_dwarf_reg_entry_value.
2050 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2051 declarations.
2052 * dwarf2loc.c: Include gdbcmd.h.
2053 (dwarf_expr_ctx_funcs): New forward declaration.
2054 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2055 (dwarf_expr_reg_to_entry_parameter)
2056 (dwarf_expr_push_dwarf_reg_entry_value): New.
2057 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2058 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2059 (needs_dwarf_reg_entry_value): New function.
2060 (needs_frame_ctx_funcs): Install it.
2061 (_initialize_dwarf2loc): New function.
2062 * dwarf2loc.h (entry_values_debug): New declaration.
2063 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2064 (read_call_site_scope): New forward declaration.
2065 (process_full_comp_unit): Copy call_site_htab.
2066 (process_die): Support DW_TAG_GNU_call_site.
2067 (read_call_site_scope): New function.
2068 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2069 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2070 (cleanup_htab): Delete.
2071 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2072 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2073 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2074 FIELD_LOC_KIND_DWARF_BLOCK.
2075 * gdbtypes.h (enum field_loc_kind): New entry
2076 FIELD_LOC_KIND_DWARF_BLOCK.
2077 (struct main_type): New loc entry dwarf_block.
2078 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2079 (TYPE_FIELD_DWARF_BLOCK): New.
2080 * python/py-type.c: Include dwarf2loc.h.
2081 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2082 internal_error call on unknown FIELD_LOC_KIND.
2083 * symtab.h (struct symtab): New field call_site_htab.
2084 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2085 (core_addr_hash, core_addr_eq): New functions.
2086
b6cdc2c1
JK
20872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2088
2089 Code reshuffle.
2090 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2091 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2092 calling_convention under func_stuff there.
2093 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2094 (init_type) <TYPE_CODE_FUNC>: Likewise.
2095 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2096 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2097 * gdbtypes.h (enum type_specific_kind): Change
2098 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2099 (struct main_type) <type_specific>: Change calling_convention to
2100 func_stuff. Move calling_convention to ...
2101 (struct func_type): ... this new struct.
2102 (INIT_FUNC_SPECIFIC): New #define.
2103 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2104
181cebd4
JK
21052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2108 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2109 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2110 ctx->ref_addr_size. Handle its invalid value.
2111 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2112 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2113 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2114 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2115 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2116 (dwarf2_per_cu_ref_addr_size): New function.
2117
c471e790
JK
21182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2119
2120 Code cleanup.
2121 * dwarf2read.c (per_cu_header_read_in): New function.
2122 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2123 variables cu_header_local and cu_headerp.
2124
741f5e3c
JK
21252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 Fix initial language detection with -readnow.
2128 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2129 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2130 searches only for global symbols.
2131
a73d2258
JK
21322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2133
2134 Fix printed anonymous struct name.
2135 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2136 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2137 (anonymous_struct_prefix): New function.
2138 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2139 (dwarf2_name): Strip for anonymous structs any prefixes.
2140
749fd4ea
DE
21412011-10-07 Doug Evans <dje@google.com>
2142
1fa57852
DE
2143 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2144 `replace'.
2145
690a4937
DE
2146 * python/lib/gdb/printing.py: Whitespace cleanup.
2147
749fd4ea
DE
2148 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2149 warning.
2150
4c38200f
PA
21512011-10-07 Pedro Alves <pedro@codesourcery.com>
2152
2153 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2154 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2155 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2156 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2157 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2158 (arm_linux_remove_watchpoint): Adjust.
2159 * i386-linux-nat.c (i386_linux_dr_set_control)
2160 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2161 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2162 (ia64_linux_remove_watchpoint): Adjust.
2163 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2164 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2165 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2166 (ppc_linux_insert_mask_watchpoint)
2167 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2168 (ppc_linux_remove_watchpoint): Adjust.
2169 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2170 Adjust.
2171
b7ff339d
CV
21722011-10-07 Corinna Vinschen <vinschen@redhat.com>
2173
2174 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2175 (clear_win32_environment): New function for Cygwin to clear out
2176 Win32 environment.
2177 (windows_create_inferior): Prepare new environment from in_env
2178 for Cygwin, too.
2179
f287c1f3
PM
21802011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2181
5631e596 2182 PR python/13264
f287c1f3
PM
2183 * python/py-value.c (valpy_call): Check that arguments are
2184 a tuple.
2185 (is_intlike): Remove call to CHECK_TYPEDEF.
2186 (valpy_nonzero): Catch GDB exceptions.
2187 (valpy_absolute): Ditto.
2188 (valpy_lazy_string): Ditto.
2189 (valpy_call): Ditto.
2190 (valpy_get_is_optimized_out): Ditto.
2191 (valpy_long): Ditto.
2192 (valpy_float): Ditto.
2193 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2194 (valpy_richcompare): Ditto.
2195
03583c20
UW
21962011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2197
2198 * inferior.h (disable_randomization): Declare.
2199 * infrun.c (disable_randomization): New global variable.
2200 (show_disable_randomization): New function.
2201 (set_disable_randomization): Likewise.
2202 (_initialize_infrun): Install set/show disable-randomization
2203 commands.
2204 * linux-nat.c (disable_randomization): Remove.
2205 (show_disable_randomization): Likewise.
2206 (set_disable_randomization): Likewise.
2207 (_initialize_linux_nat): No longer install set/show
2208 disable-randomization commands here.
2209 (linux_nat_supports_disable_randomization): New function.
2210 (linux_nat_add_target): Install it.
2211 * remote.c (PACKET_QDisableRandomization): New enum value.
2212 (remote_protocol_packets): Support QDisableRandomization.
2213 (_initialize_remote): Likewise.
2214 (remote_supports_disable_randomization): New function.
2215 (init_remote_ops): Install it.
2216 (extended_remote_supports_disable_randomization): New function.
2217 (init_extended_remote_ops): Install it.
2218 (extended_remote_disable_randomization): New function.
2219 (extended_remote_create_inferior_1): Call it.
2220 * target.h (struct target_ops): Add to_supports_disable_randomization.
2221 (target_supports_disable_randomization): Add prototype.
2222 * target.c (target_supports_disable_randomization): New function.
2223 (find_default_supports_disable_randomization): Likewise.
2224 (init_dummy_target): Install it.
2225
20c168b5
KP
22262011-10-07 Kevin Pouget <kevin.pouget@st.com>
2227
2228 Allow Python notification of new object-file loadings.
2229 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2230 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2231 Add build rule for this file.
2232 * python/py-event.h (emit_new_objfile_event): New prototype.
2233 (newobjfile): New Python event emitter.
2234 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2235 Python event registry.
2236 * python/py-inferior.c: Include objfiles.h
2237 (python_new_objfile): New function.
2238 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2239 observers.
2240 * python/py-newobjfileevent.c: New file.
2241 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2242 prototype.
2243 * python/python.c (_initialize_python): Add
2244 gdbpy_initialize_new_objfile_event call.
2245 * NEWS: Add item for new Python event "gdb.newobjfile"
2246
b1c8db38
TG
22472011-10-05 Tristan Gingold <gingold@adacore.com>
2248
2249 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2250 Extract the ravenscar task name from the symbol for the atcb.
2251
0dab82e9
PK
22522011-10-04 Paul Koning <paul_koning@dell.com>
2253
2254 * python/py-type.c (typy_make_iter): Add forward declaration.
2255 (typy_fields_items): Use the gdb.Type iterator.
2256
84ad80e6
PK
22572011-10-04 Paul Koning <paul_koning@dell.com>
2258
2259 * NEWS: Add entry for Python gdb.Type mapping methods.
2260
cb6be26b
KP
22612011-10-04 Kevin Pouget <kevin.pouget@st.com>
2262
2263 PR python/12691: Add the inferior to Python exited event
2264 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2265 to exited_event.
2266 * python/py-event.h (emit_exited_event): Likewise
2267 * python/-inferior.c (python_inferior_exit): Likewise
2268
6005b210
JB
22692011-10-03 Joel Brobecker <brobecker@adacore.com>
2270
2271 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2272 in output of -ada-task-info GDB/MI command.
2273
75082e8c
JB
22742011-10-03 Joel Brobecker <brobecker@adacore.com>
2275
2276 * ada-lang.h (struct inferior): Declare.
2277 (print_ada_task_info): Add declaration.
2278 * ada-tasks.c (print_ada_task_info): Make non-static.
2279 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2280 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2281 * mi/mi-main.c: #include "ada-lang.h".
2282 (mi_cmd_list_features): Add "ada-task-info" to the list
2283 of supported features.
2284 (mi_cmd_ada_task_info): New function.
2285
7ed7d719
JB
22862011-10-03 Joel Brobecker <brobecker@adacore.com>
2287
2288 * python/python.c (python_run_simple_file): New function.
2289 (source_python_script, source_python_script_for_objfile):
2290 Replace call to PyRun_SimpleFile by call to
2291 python_run_simple_file.
2292
3fcaed38
PK
22932011-10-03 Paul Koning <paul_koning@dell.com>
2294
2295 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2296 (value_to_value_object): Fetch value if it was lazy.
2297
8e5c319d
JK
22982011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 Code cleanup.
2301 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2302 Rearrange the code for it.
2303
dd11a36c
JB
23042011-10-02 Joel Brobecker <brobecker@adacore.com>
2305
2306 * breakpoint.c (bkpt_print_recreate): Add call to
2307 print_recreate_thread.
2308
723b724b
MF
23092011-09-29 Mike Frysinger <vapier@gentoo.org>
2310
2311 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2312 PTRACE_GETFDPIC_INTERP): Define.
2313
412946b6
YQ
23142011-09-28 Yao Qi <yao@codesourcery.com>
2315
2316 * symfile.c (add_symbol_file_command): Update message on usage.
2317
a73bb892
PK
23182011-09-28 Paul Koning <paul_koning@dell.com>
2319
2320 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2321 (typy_length, typy_get, typy_has_key, typy_make_iter)
2322 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2323 (typy_iterator_iter, typy_iterator_iternext)
2324 (typy_iterator_dealloc): New functions to implement standard
2325 Python mapping methods on gdb.Type object.
2326 (gdb.TypeIterator): New Python type.
2327 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2328
fe10a582
DM
23292011-09-28 David S. Miller <davem@davemloft.net>
2330
2331 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2332 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2333 * sparc-tdep.c (sparc_complex_floating_p): New function.
2334 (sparc32_store_arguments): Handle complex floats.
2335 (sparc32_extract_return_value): Likewise.
2336 (sparc32_store_return_value): Likewise.
2337 (sparc32_stabs_argument_has_addr): Likewise.
2338 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2339 (sparc64_store_floating_fields): Handle complex floats.
2340 (sparc64_store_arguments): Likewise.
2341 (sparc64_store_return_value): Likewise.
2342
c93dbcba
EZ
23432011-09-28 Eli Zaretskii <eliz@gnu.org>
2344
2345 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2346 before the change on 2006-12-09.
2347 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2348 generates the environment block for CreateProcessA, modulo the
2349 Cygwin-specific parts that are not needed here.
2350
f00c55f8
TG
23512011-09-27 Tristan Gingold <gingold@adacore.com>
2352
2353 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2354 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2355 (darwin_solib_get_all_image_info_addr_at_init): New function.
2356 (darwin_solib_read_all_image_info_addr): Likewise.
2357 (darwin_solib_create_inferior_hook): Use the above two functions.
2358 * darwin-nat.c (darwin_execvp): Renames retval to res.
2359 (darwin_read_write_inferior): Update comment.
2360 (darwin_read_dyld_info): New function.
2361 (darwin_xfer_partial): Handle DYLD_INFO.
2362
6710bf39
SS
23632011-09-27 Stan Shebs <stan@codesourcery.com>
2364
2365 Add return address collection for tracepoints.
2366 * tracepoint.c (encode_actions_1): Add case for $_ret.
2367 (validate_actionline): Check for $_ret.
2368 (trace_dump_actions): Ditto.
2369 * ax-gdb.h (gen_trace_for_return_address): Declare.
2370 * ax-gdb.c: Include arch-utils.h.
2371 (gen_trace_for_return_address): New function.
2372 (agent_command): Add return address special case.
2373 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2374 (amd64_gen_return_address): New function.
2375 (amd64_init_abi): Call it.
2376 * i386-tdep.c: Include ax.h and ax-gdb.h.
2377 (i386_gen_return_address): New function.
2378 (i386_init_abi): Call it.
2379 * arch-utils.h (default_gen_return_address): Declare.
2380 * arch-utils.c (default_gen_return_address): New function.
2381 * gdbarch.sh (gen_return_address): New method.
2382 * gdbarch.h, gdbarch.c: Regenerate.
2383
e04e5beb
JM
23842011-09-23 Joseph Myers <joseph@codesourcery.com>
2385
2386 PR gdb/13079
2387 * i386-tdep.c (i386_frame_align): New.
2388 (i386_gdbarch_init): Use i386_frame_align.
2389
f3d6df6d
YQ
23902011-09-23 Yao Qi <yao@codesourcery.com>
2391
2392 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2393 to get address.
2394
e69860f1
TG
23952011-09-22 Tristan Gingold <gingold@adacore.com>
2396
2397 * fork-child.c (fork_inferior): Add exec_fun parameter.
2398 Call exec_fun or execvp.
2399 * inferior.h: Adjust prototype.
2400 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2401 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2402 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2403 * procfs.c (procfs_create_inferior): Ditto.
2404 * darwin-nat.c (darwin_execvp): New function.
2405 (darwin_create_inferior): Use it.
2406
4b51d87b
YQ
24072011-09-22 Yao Qi <yao@codesourcery.com>
2408
2409 * infrun.c (context_switch): Print debug message when switching to
2410 a different thread.
2411
56b9d9ac
UW
24122011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2413
2414 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2415 complex and vector types.
2416 (s390_return_value_convention): Likewise.
2417
2418 (s390_value_from_register): Call check_typedef.
2419 (extend_simple_arg): Likewise.
2420 (alignment_of): Likewise.
2421 (s390_push_dummy_call): Likewise.
2422 (s390_return_value): Likewise.
2423
b2cd6b29
JM
24242011-09-21 Joseph Myers <joseph@codesourcery.com>
2425
2426 * event-top.c (async_disconnect): If an exception is thrown from
2427 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2428 catch_errors.
2429 * top.c (quit_cover): Return void and take no arguments.
2430 * top.h (quit_cover): Update prototype.
2431
67ba4e42
JM
24322011-09-20 Joseph Myers <joseph@codesourcery.com>
2433
2434 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2435 current_uiout, not uiout.
2436
562f943b
DE
24372011-09-19 Doug Evans <dje@google.com>
2438
2439 * python/py-auto-load.c (source_section_scripts): Fix file
2440 descriptor leak.
2441 * python/python.c (source_python_script_for_objfile): Tweak comments.
2442
34518530
YQ
24432011-09-18 Yao Qi <yao@codesourcery.com>
2444 Ulrich Weigand <ulrich.weigand@linaro.org>
2445
2446 Support displaced stepping for Thumb 16-bit insns.
2447 * arm-tdep.c (THUMB_NOP) Define.
2448 (thumb_copy_unmodified_16bit): New.
2449 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2450 (thumb_copy_alu_reg): New.
2451 (arm_copy_svc): Move some common code to ...
2452 (install_svc): ... here. New.
2453 (thumb_copy_svc): New.
2454 (install_pc_relative): New.
2455 (thumb_copy_pc_relative_16bit): New.
2456 (thumb_decode_pc_relative_16bit): New.
2457 (thumb_copy_16bit_ldr_literal): New.
2458 (thumb_copy_cbnz_cbz): New.
2459 (cleanup_pop_pc_16bit_all): New.
2460 (thumb_copy_pop_pc_16bit): New.
2461 (thumb_process_displaced_16bit_insn): New.
2462 (thumb_process_displaced_32bit_insn): New.
2463 (thumb_process_displaced_insn): process thumb instruction.
2464
2465 Support displaced stepping for Thumb 32-bit insns.
2466 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2467 (thumb2_copy_preload): New.
2468 (thumb2_copy_copro_load_store): New.
2469 (thumb2_copy_b_bl_blx): New.
2470 (thumb2_copy_alu_imm): New.
2471 (thumb2_copy_load_reg_imm): New.
2472 (thumb2_copy_load_literal): New
2473 (thumb2_copy_block_xfer): New.
2474 (thumb_32bit_copy_undef): New.
2475 (thumb_32bit_copy_unpred): New.
2476 (thumb2_decode_ext_reg_ld_st): New.
2477 (thumb2_decode_svc_copro): New.
2478 (decode_thumb_32bit_store_single_data_item): New.
2479 (thumb_copy_pc_relative_32bit): New.
2480 (thumb_decode_pc_relative_32bit): New.
2481 (decode_thumb_32bit_ld_mem_hints): New.
2482 (thumb2_copy_table_branch): New
2483 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2484 instructions.
2485
2b16b2e3
YQ
24862011-09-18 Yao Qi <yao@codesourcery.com>
2487
2488 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2489 (install_b_bl_blx): Likewise.
2490
0f6f04ba
YQ
24912011-09-17 Yao Qi <yao@codesourcery.com>
2492
2493 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2494 (install_load_store): ... this. New.
2495 Change parameter BYTE to SIZE.
2496 (arm_copy_ldr_str_ldrb_strb): Update caller.
2497 (arm_decode_ld_st_word_ubyte): Update caller.
2498
e2d96639
YQ
24992011-09-17 Yao Qi <yao@codesourcery.com>
2500
2501 * infrun.c (displaced_step_fixup): Move some code ...
2502 (displaced_step_restore): ... here. New function.
2503 (handle_inferior_event): Cleanup displaced stepping state for both
2504 child and parent when get forked or vforked event.
2505 * regcache.c (get_thread_arch_aspace_regcache): New function.
2506 get_thread_arch_regcache (): Call it.
2507
a8123151
JB
25082011-09-16 Joel Brobecker <brobecker@adacore.com>
2509
2510 * ada-tasks.c (print_ada_task_info): New function, merging
2511 short_task_info and info_tasks together. Reimplement using
2512 ui-out instead of printing to stdout directly. Move the code
2513 building and checking the task list here, instead of leaving it
2514 in info_tasks_command.
2515 (info_task): Move the code building and checking the task
2516 list here, instead of leaving it in info_tasks_command.
2517 (info_tasks_command): Delete code building and checking
2518 the task list - moved elsewhere. Update calls to info_tasks
2519 and info_task.
2520
fbf06824
JB
25212011-09-16 Joel Brobecker <brobecker@adacore.com>
2522
2523 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2524
34a0bc90
JB
25252011-09-16 Joel Brobecker <brobecker@adacore.com>
2526
2527 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2528
79779fa9
JB
25292011-09-16 Joel Brobecker <brobecker@adacore.com>
2530
2531 * ada-lang.h (ada_build_task_list): Remove parameter
2532 `warn_if_null'.
2533 * ada-tasks.c (ada_build_task_list): Remove parameter
2534 `warn_if_null'. Adjust implementation and documentation.
2535 (valid_task_id, ada_get_environment_task)
2536 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2537 (info_tasks_command): Adjust implementation.
2538 (task_command): Likewise.
2539 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2540 to ada_build_task_list.
2541
e225eb91
JB
25422011-09-16 Joel Brobecker <brobecker@adacore.com>
2543
2544 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2545 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2546 (ada_tasks_inferior_data_handle): New static global.
2547 (get_ada_tasks_inferior_data): New function.
2548 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2549 (ada_get_environment_task, iterate_over_live_ada_tasks)
2550 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2551 Adjust.
2552 (ada_set_current_inferior_known_tasks_addr): New function.
2553 (read_known_tasks, ada_build_task_list, short_task_info)
2554 (info_tasks, info_task, info_tasks_command, task_command_1)
2555 (task_command, ada_task_list_changed): Adjust.
2556 (ada_tasks_invalidate_inferior_data): New function.
2557 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2558 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2559 * ada-lang.h (struct inferior): Add declaration.
2560 (ada_task_list_changed): Update profile.
2561 * remote-wtx-pd.c: #include "inferior.h".
2562 (switch_to_pd_internal): Update call to ada_task_list_changed.
2563
6da9ca05
JB
25642011-09-16 Joel Brobecker <brobecker@adacore.com>
2565
2566 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2567 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2568 (atcb_fieldno): Delete these static globals.
2569 (struct ada_tasks_pspace_data): New struct.
2570 (ada_tasks_pspace_data_handle): New static global.
2571 (get_ada_tasks_pspace_data): New function.
2572 (ada_tasks_invalidate_pspace_data): New function.
2573 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2574 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2575 (_initialize_tasks): Create this module's per-progspace
2576 data handle.
2577
dccd3cbd
JB
25782011-09-16 Joel Brobecker <brobecker@adacore.com>
2579
2580 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2581
f877b031
TG
25822011-09-16 Tristan Gingold <gingold@adacore.com>
2583
2584 * fork-child.c (fork_inferior): Update comment. Use alloca
2585 instead of xmalloc for argv. Move len and shell_command
2586 declarations in the block where they are used.
2587 Only call execvp. Factorize failure code.
2588
ae0c443d
JK
25892011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2590
2591 Code cleanup.
2592 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2593 `exp_element' instead of an element of the same and make the function
2594 static.
2595 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2596 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2597 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2598 Change argument of `write_exp_elt' function call.
2599 Remove extra spaces from comments.
2600 * parser-defs.h (write_exp_elt): Remove prototype.
2601
5af65ec0
PK
26022011-09-15 Paul Koning <paul_koning@dell.com>
2603
2604 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2605 count of item appended to list.
2606 * python/py-type.c (typy_fields): Likewise.
2607
72be8ccc
PK
26082011-09-15 Paul Koning <paul_koning@dell.com>
2609
883640a8 2610 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2611
92f6badc
KP
26122011-09-15 Kevin Pouget <kevin.pouget@st.com>
2613
2614 PR threads/12628
2615 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2616 processes with multiple threads.
2617 (inf_has_multiple_thread_cb): New function.
2618 (inf_has_multiple_threads): New function.
2619
0672bf41 26202011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2621
2622 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2623 * python/py-inferior.c (GdbMethods): New Python method definition.
2624
6839b47f
KP
26252011-09-15 Kevin Pouget <kevin.pouget@st.com>
2626
2627 Handle multiple breakpoint hits in Python interface:
2628 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2629 variable to breakpoints.
2630 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2631 bps instead of single breakpoint. Fix some space typos.
2632 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2633 variable to breakpoints.
2634
672f9b60
KP
26352011-09-15 Kevin Pouget <kevin.pouget@st.com>
2636
2637 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2638 note if the breakpoint is internal.
2639
43675ae4
KP
26402011-09-15 Kevin Pouget <kevin.pouget@st.com>
2641
0672bf41 2642 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2643
15148d6a
PA
26442011-09-14 Pedro Alves <pedro@codesourcery.com>
2645
2646 * infrun.c (prepare_for_detach, wait_for_inferior)
2647 (fetch_inferior_event): Don't flush the register cache.
2648 * remote.c (struct stop_reply) <regcache>: Add comment.
2649
d83e736b
JK
26502011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2651
2652 Remove excessive DWARF expressions memory duplication.
2653 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2654 for block.data.
2655 (indirect_pieced_value): Remove variable result. Remove variable
2656 back_to and its use for baton.data.
2657 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2658 block.data.
2659 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2660 Update the function comment.
2661
c65b3e0d
PA
26622011-09-13 Pedro Alves <pedro@codesourcery.com>
2663
2664 * inferior.h (ALL_INFERIORS): New.
2665 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2666 for a stopped thread.
2667 (thread_db_find_new_threads): Look for threads in all inferiors.
2668
a1398e0c
PA
26692011-09-13 Pedro Alves <pedro@codesourcery.com>
2670
2671 * breakpoint.c (update_watchpoint): Handle the case of the
2672 watchpoint to update not being in the breakpoint list yet.
2673 (hw_watchpoint_use_count): New, factored out from
2674 hw_watchpoint_used_count.
2675 (hw_watchpoint_used_count): Rename to ...
2676 (hw_watchpoint_used_count_others): ... this. Add `except'
2677 parameter. Don't count resources of `except'. Use
2678 hw_watchpoint_use_count.
2679
30596231
PA
26802011-09-13 Pedro Alves <pedro@codesourcery.com>
2681
2682 * gdbthread.h (enum thread_state): Moved here.
2683 (struct thread_info): Rename `executing_' field to `executing' and
2684 `state_' to `state'.
2685 * thread.c (enum thread_state): Moved to gdbthread.h.
2686 (new_thread, add_thread_silent, delete_thread_1)
2687 (any_live_thread_of_process, thread_alive, set_running)
2688 (set_running, is_thread_state, any_running, is_executing)
2689 (set_executing, finish_thread_state, print_thread_info)
2690 (do_captured_thread_select): Adjust.
2691
bede5f5f
JK
26922011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2693
2694 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2695 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2696
4801a9a3
PA
26972011-09-12 Pedro Alves <pedro@codesourcery.com>
2698 Matt Rice <ratmice@gmail.com>
2699
2700 PR gdb/13175
2701
2702 * interps.c (struct interp) <interpreter_out>: Delete field.
2703 (interp_new): Remove the data and uiout parameters and adjust.
2704 (interp_set): Only set the current_uiout from the interpreter's
2705 uiout after initializing the interpreter. Adjust call to
2706 init_proc.
2707 (interp_ui_out): Adjust to call procs->ui_out_proc.
2708 (interp_data, interp_name): New.
2709 * interps.h (interp_init_ftype): Add `self' parameter.
2710 (interp_ui_out_ftype): New typedef.
2711 (struct interp_procs) <ui_out_proc>: New method pointer.
2712 (interp_new): Remove the data and uiout parameters.
2713 (interp_data, interp_name): Declare.
2714 * tui/tui-interp.c (tui_init): Adjust prototype.
2715 (tui_ui_out): New.
2716 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2717 tui_out here. Adjust call to interp_new.
2718 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2719 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2720 (cli_ui_out): New.
2721 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2722 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2723 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2724 Initialize mi->uiout depending on the mi_version as extracted from
2725 the interpreter's name.
2726 (mi_ui_out): New.
2727 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2728 interp_new. Don't allocate the ui_out's of the interpreters here.
2729
d0afda03 27302011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2731
d0afda03 2732 * solib.c (solib_used): New function.
59145f8c
AR
2733 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2734 by another so_list object before freeing it.
2735
bdaf8d4a
JK
27362011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 Code cleanup.
2739 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2740 values.
2741
df15bd07
JK
27422011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2743
2744 Code cleanup.
2745 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2746 (amd64_skip_xmm_prologue): ... this new function. Describe its
2747 parameters. No longer use amd64_prologue_line_bug.
2748 * defs.h (producer_is_gcc_ge_4): New declaration.
2749 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2750 (process_full_comp_unit): Update its caller. Remove
2751 amd64_prologue_line_bug initialization.
2752 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2753 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2754
25289eb2
PA
27552011-09-09 Pedro Alves <pedro@codesourcery.com>
2756
2757 * linux-nat.h (enum resume_kind): New.
2758 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2759 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2760 resume_stop on the new lwp.
25289eb2
PA
2761 (add_lwp): Set last_resume_kind as resume_continue by default.
2762 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2763 (resume_lwp): New, factored out from resume_callback. Also check
2764 for pending status in lp->waitstatus.
2765 (resume_callback): Reimplement.
2766 (resume_clear_callback): Set last_resume_kind as resume_stop.
2767 (resume_set_callback): Set last_resume_kind as resume_continue.
2768 (linux_nat_resume, linux_handle_extended_wait): Set
2769 last_resume_kind.
2770 (running_callback): Also check lp->waitstatus for pending events.
2771 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2772 is resume_step.
2773 (stop_and_resume_callback): Don't re-resume if the core wanted the
2774 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2775 using an invalidated pointer.
2776 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2777 SIGSTOPs if the core wanted the LWP to stop.
2778 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2779 wanted the lwp to stop. If the core wanted the lwp to stop, and
2780 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2781 of TARGET_SIGNAL_STOP.
2782 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2783 here. Instead, signal the lwp, and set the last_resume_kind to
2784 resume_stop.
2785
f687d035
PA
27862011-09-09 Pedro Alves <pedro@codesourcery.com>
2787
2788 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2789 -1 (error), if the lwp exits right after attaching.
2790
bc587a6b
DE
27912011-09-08 Doug Evans <dje@google.com>
2792
63d97a20
DE
2793 * py-cmd.c: Some minor formatting fixes.
2794 (gdbpy_parse_command_name): Rename text arg to name, make const.
2795 All callers updated.
2796 * python-internal.h (gdbpy_parse_command_name): Update.
2797
bc587a6b
DE
2798 * cli/cli-decode.c (add_cmd): Add comment.
2799
08711b9a
JK
28002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 PR breakpoints/12435
2803 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2804 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2805 * dwarf2read.c (process_full_comp_unit): Initialize
2806 amd64_prologue_line_bug.
2807 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2808
b2e7f004
JK
28092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 Fix TUI screen corruption.
2812 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2813 batch_flag.
2814
8afd712c
JK
28152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 * findvar.c (read_var_value): Never return NULL, throw an error
2818 instead. Update the function comment. State symbol name in the error
2819 messages.
2820 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2821 read_var_value.
2822 * stack.c (print_frame_args): Likewise.
2823 * valops.c (value_of_variable): Likewise.
2824
b99b5f66
JK
28252011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * stack.c (print_frame_args): New variable except. Wrap
2828 read_var_value and common_val_print into TRY_CATCH.
2829
85bc8cb7
JK
28302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2833 caller to value_of_this.
2834 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2835 Twice.
2836 * valops.c (value_of_this): Remove parameter complain and variable ret.
2837 Update function comment. Never return NULL by this code.
2838 (value_of_this_silent): New function.
2839 * value.h (value_of_this): Remove parameter complain.
2840 (value_of_this_silent): New declaration.
2841
ede1849f
YQ
28422011-09-07 Yao Qi <yao@codesourcery.com>
2843
2844 * gdbthread.h (struct thread_info): Remove fields
2845 `stepping_through_solib_after_catch' and
2846 `stepping_through_solib_catchpoints'.
2847 * infrun.c (init_thread_stepping_state): Update.
2848 (process_event_stop_test, currently_stepping): Update.
2849 (currently_stepping_or_nexting_callback): Update.
2850
6aa27652
YQ
28512011-09-07 Yao Qi <yao@codesourcery.com>
2852
2853 * gdbthread.h (struct thread_info): Comment on field
2854 `step_after_step_resume_breakpoint'.
2855
00db5b94
PA
28562011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2857
2858 * remote.c (remote_console_output): Reindent.
2859
861152be
LM
28602011-09-06 Luis Machado <lgustavo@codesourcery.com>
2861
2862 * frame.c (has_stack_frames): Check for currently selected
2863 traceframe.
2864
ab821bc6
PA
28652011-09-06 Pedro Alves <pedro@codesourcery.com>
2866
2867 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2868 (set_async_annotation_level, set_async_prompt, pop_prompt)
2869 (push_prompt, new_async_prompt): Delete declarations.
2870 * top.h (get_prompt, set_prompt): Change prototype.
2871 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2872 declarations.
2873 * top.c (command_loop):
2874 (top_prompt): New global.
2875 (get_prefix, set_prefix, get_suffix, ): Delete.
2876 (get_prompt, set_prompt): Rewrite.
2877 (show_new_async_prompt): Rename to ...
2878 (show_prompt): ... this.
2879 (init_main): Adjust. Don't handle --annotate=2 here.
2880 * event-top.c (new_async_prompt): Delete.
2881 (the_prompts): Delete.
2882 (more_to_come): Make static.
2883 (display_gdb_prompt): Use top_level_prompt() to compute the top
2884 level prompt, and don't notify the before_prompt observers
2885 directly here. Always trick readline into not trying to display
2886 the prompt if sync_execution and displaying the primary prompt.
2887 If displaying a local/secondary prompt, always show it, even if
2888 sync_execution is set.
2889 (change_annotation_level): Delete.
2890 (top_level_prompt): New, based on change_annotation_level.
2891 (push_prompt, pop_prompt): Delete.
2892 (async_disable_stdin): No longer pushes prompt.
2893 (command_line_handler): No longer pushes or pops prompt. If more
2894 input is expected, call display_gdb_prompt with an explicit empty
2895 prompt.
2896 (async_stop_sig): Adjust.
2897 (set_async_annotation_level, set_async_prompt): Delete.
2898 * python/python.c (before_prompt_hook): Adjust.
2899
f1d90504
PA
29002011-09-05 Pedro Alves <pedro@codesourcery.com>
2901
2902 PR cli/13110
2903
2904 * infrun.c (fetch_inferior_event): Check if there's a selected
2905 thread before checking if the selected thread is executing.
2906
0f641c01
PA
29072011-09-05 Pedro Alves <pedro@codesourcery.com>
2908
2909 * inf-loop.c (execute_command): Don't check if the current thread
2910 if running before synchronously waiting for command completion.
2911 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2912 here.
2913 (normal_stop): Call async_enable_stdin here.
2914 * inf-loop.c (inferior_event_handler): Don't call
2915 async_enable_stdin, nor handle "set exec-done-display" here.
2916
30368258 29172011-09-04 Joel Brobecker <brobecker@adacore.com>
2918
2919 GDB 7.3.1 released.
2920
31916278
JB
29212011-09-04 Joel Brobecker <brobecker@adacore.com>
2922
2923 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2924
e8d56f18
JB
29252011-09-04 Joel Brobecker <brobecker@adacore.com>
2926
2927 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2928
5dd05d8c
JK
29292011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2932
7d8e6458 29332011-09-02 Matt Rice <ratmice@gmail.com>
2934
2935 PR gdb/10720
2936 * event-top.c (cli_command_loop): Replace readline setup with
2937 direct call to display_gdb_prompt.
2938 (display_gdb_prompt): Do not call observer mechanism during
2939 synchronous execution.
2940
84636d28
PA
29412011-09-02 Pedro Alves <pedro@codesourcery.com>
2942
2943 * linux-nat.c (in_pid_list_p): New.
2944 (linux_record_stopped_pid): Delete.
2945 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2946 already attached to the LWP. Return an indication if so.
2947 (linux_nat_filter_event): Adjust.
2948 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2949 returning an indication to ignore this thread.
2950
b4a14fd0
PA
29512011-09-02 Pedro Alves <pedro@codesourcery.com>
2952
2953 * top.c: Include interps.h.
2954 (execute_command): If the target can async, but the interpreter is
2955 in sync mode, synchronously wait for the command to finish before
2956 returning.
2957 (execute_command_to_string): Force the interpreter to sync mode.
2958 * infrun.c: Include interps.h.
2959 (fetch_inferior_event): Don't restore the prompt yet if the
2960 interpreter is in sync mode.
2961 * interps.c (interpreter_async): New global.
2962 * interps.h (interpreter_async): Declare.
2963 * inf-loop.c: Include interps.h.
2964 (inferior_event_handler): Don't print the language change or run
2965 breakpoint commands yet if the interpreter in is sync mode.
2966 * main.c (captured_command_loop): Flip the interpreter to async
2967 mode.
2968 * cli/cli-script.c: Include interps.h.
2969 (execute_user_command, while_command, if_command): Force the
2970 interpreter to sync mode.
2971 * python/python.c: Include interps.h.
2972 (python_command, execute_gdb_command): Force the interpreter to
2973 sync mode.
2974
c709acd1
PA
29752011-09-02 Pedro Alves <pedro@codesourcery.com>
2976
2977 * value.c (show_convenience): Catch errors thrown while printing
2978 each internal variable.
2979 * infrun.c (validate_siginfo_access): New function.
2980 (siginfo_value_read, siginfo_value_write): Call it.
2981
9655e943
JK
29822011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2983
2984 Revert:
2985 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2986 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2987 attribute.
2988
cb457ae2
YQ
29892011-08-29 Yao Qi <yao@codesourcery.com>
2990
2991 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2992 (cmp_name): New.
2993 (enable_break2): Update caller.
2994 * solib-frv.c (bfd_lookup_symbol): Removed.
2995 (cmp_name): New.
2996 (enable_break2): Update caller.
2997 * solib-pa64.c (bfd_lookup_symbol): Removed.
2998 (cmp_name): New.
2999 * solib-svr4.c (bfd_lookup_symbol): Removed.
3000 (cmp_name_and_sec_flags): New.
3001 (enable_break): Update caller.
3002 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3003 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3004 (gdb_bfd_lookup_symbol): New.
3005 * solib.h: Functions declarations.
3006
83d1a36a
YQ
30072011-08-29 Yao Qi <yao@codesourcery.com>
3008
3009 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3010 and solib-dsbt.o.
3011
c04b3e8f
JK
30122011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 Fix TUI stepi on code without symbols.
3015 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3016 current PC instead.
3017
cb0fd152
JK
30182011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3019
3020 Code cleanup.
3021 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3022 and the static keyword.
3023 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3024 Make prefix an array.
3025 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3026 * mi/mi-main.c (get_register): Remove stb initialization and the static
3027 keyword.
3028
91174723
JK
30292011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3030
3031 Code cleanup - make mi_opt const.
3032 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3033 opts const.
3034 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3035 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3036 (mi_cmd_env_dir): Likewise.
3037 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3038 (mi_cmd_target_file_put): Likewise.
3039 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3040 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3041 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3042 (mi_valid_noargs): Make opts const.
3043 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3044 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3045 (mi_cmd_data_read_memory): Likewise.
3046 (mi_cmd_data_read_memory_bytes): Likewise.
3047 (mi_cmd_data_write_memory): Likewise.
3048
5068b8e8 30492011-08-26 Matt Rice <ratmice@gmail.com>
3050
3051 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3052 bcache_xmalloc, replace bcache_xmalloc with call to
3053 psymbol_bcache_init for psymbol_cache.
3054 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3055
a4f2ce05
JK
30562011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 * inf-loop.c (inferior_event_handler): Add exception_print in
3059 INF_EXEC_COMPLETE.
3060
353d1d73
JK
30612011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3062
3063 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3064 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3065 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3066 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3067 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3068 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3069 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3070 * infrun.c (fetch_inferior_event): Call
3071 make_bpstat_clear_actions_cleanup.
3072 * top.c (execute_command): New variable cleanup_if_error, call
3073 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3074 * utils.c (do_bpstat_clear_actions_cleanup)
3075 (make_bpstat_clear_actions_cleanup): New functions.
3076
3ced3da4
PA
30772011-08-26 Pedro Alves <pedro@codesourcery.com>
3078
3079 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3080 either the parent or the child forks. Rename a couple locals.
3081
a9f4bb21
PA
30822011-08-26 Pedro Alves <pedro@codesourcery.com>
3083
3084 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3085 library call. Avoid reading the `status' local if all waitpid
3086 calls failed.
3087
e5798bef
PA
30882011-08-26 Pedro Alves <pedro@codesourcery.com>
3089
3090 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3091 opening /proc/PID/task always succeeds.
3092
edb2aadf
AR
30932011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3094
3095 * linespec.c (symtab_from_filename): Check for the end of string.
3096
0d932b2f
MK
30972011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3098
3099 PR mi/11912
3100 * varobj.c (cplus_describe_child): Add the keyword
3101 'class' to the output of the method when dealing
3102 with a cast to a base class.
3103
e93ca019
JK
31042011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3105
3106 No functionality change.
3107 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3108 function comment a reference, new variables tp and bs, move here code
3109 from throw_exception.
3110 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3111 describe it in the comment.
3112 * exceptions.c (throw_exception): Remove variable tp, move the code for
3113 bpstat_clear_actions to bpstat_clear_actions.
3114
13da1c97
LM
31152011-08-24 Luis Machado <lgustavo@codesourcery.com>
3116
3117 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3118 * linux-nat.c: Include linux-procfs.h.
3119 (linux_proc_get_tgid): Move to ...
3120 * common/linux-procfs.c: ... here. New file.
3121 * common/linux-procfs.h: New file.
3122 * linux-thread-db.c: Include linux-procfs.h.
3123 * Makefile.in: Update dependencies.
3124 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3125 * config/arm/linux.mh: Likewise.
3126 * config/i386/linux.mh: Likewise.
3127 * config/i386/linux64.mh: Likewise.
3128 * config/ia64/linux.mh: Likewise.
3129 * config/m32r/linux.mh: Likewise.
3130 * config/m68k/linux.mh: Likewise.
3131 * config/mips/linux.mh: Likewise.
3132 * config/pa/linux.mh: Likewise.
3133 * config/pa/linux.mh: Likewise.
3134 * config/powerpc/linux.mh: Likewise.
3135 * config/powerpc/ppc64-linux.mh: Likewise.
3136 * config/powerpc/spu-linux.mh: Likewise.
3137 * config/sparc/linux.mh: Likewise.
3138 * config/sparc/linux64.mh: Likewise.
3139 * config/xtensa/linux.mh: Likewise.
3140
4e5c165d
HZ
31412011-08-24 Hui Zhu <teawater@gmail.com>
3142
3143 * tracepoint.c (cond_string_is_same): New function.
3144 (find_matching_tracepoint): Add condition check
3145 by cond_string_is_same.
3146
6e2f5b22
JK
31472011-08-23 Josh Matthews <josh@joshmatthews.net>
3148
3149 Fix build error in Darwin port.
3150 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3151
abf85f46
JK
31522011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 Code cleanup.
3155 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3156 (command_line_is_silent): New function.
3157 (bpstat_do_actions_1): No longer use commands_left, use
3158 command_line_is_silent for commands.
3159 (bpstat_alloc): Remove clearing of commands_left.
3160 (bpstat_stop_status): Remove initialization of commands_left, use
3161 command_line_is_silent.
3162 * breakpoint.h (struct bpstats): Remove commands_left.
3163
3a93a0c2
KS
31642011-08-18 Keith Seitz <keiths@redhat.com>
3165
3166 PR c++/12266
3167 * cp-name-parser.y (struct demangle_info): Remove unused
3168 member PREV.
3169 (d_grab): Likewise.
3170 (allocate_info): Change return type to struct demangle_info *.
3171 Always allocate a new demangle_info.
3172 Remove unused PREV pointer.
3173 (cp_new_demangle_parse_info): New function.
3174 (cp_demangled_name_parse_free): New function.
3175 (do_demangled_name_parse_free_cleanup): New function.
3176 (make_cleanup_cp_demangled_name_parse_free): New function.
3177 (cp_demangled_name_to_comp): Change return type to
3178 struct demangle_parse_info *.
3179 Allocate a new storage for each call.
3180 (main): Update usage for cp_demangled_name_to_comp
3181 API change.
3182 * cp-support.h (struct demangle_parse_info): New structure.
3183 (cp_demangled_name_to_comp): Update API change for
3184 return type.
3185 (cp_new_demangle_parse_info): Declare.
3186 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3187 (cp_demangled_name_parse_free): Declare.
3188 * cp-support.c (cp_canonicalize_string): Update API
3189 change for cp_demangled_name_to_comp.
3190 (mangled_name_to_comp): Likewise.
3191 Return struct demangle_parse_info, too.
3192 (cp_class_name_from_physname): Update mangled_name_to_comp
3193 API change.
3194 (method_name_from_physname): Likewise.
3195 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3196 (cp_remove_params): Likewise.
3197 * python/py-type.c (typy_legacy_template_argument): Likewise.
3198
3199 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3200 (cp_merge_demangle_parse_infos): Declare.
3201 * cp-support.c (ignore_typedefs): New file global.
3202 (copy_string_to_obstack): New function.
3203 (inspect_type): New function.
3204 (replace_typedefs): New function.
3205 (replace_typedefs_qualified_name): New function.
3206 (cp_canonicalize_string_no_typedefs): New function.
3207 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3208 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3209 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3210 instead of cp_canonicalize_string.
3211 (find_method): Likewise.
3212 (decode_compound): Before looking up the name, call
3213 cp_canonicalize_string_no_typedefs.
3214 (decode_variable): Likewise.
3215
fa3a4f15
PM
32162011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3217 Tom Tromey <tromey@redhat.com>
3218 Matt Rice <ratmice@gmail.com>
3219
3220 * python/lib/gdb/prompt.py: New file.
3221 * python/lib/gdb/command/prompt.py: New file.
3222 * NEWS: Document set extended-prompt and gdb.prompt library
3223
85661b1e
YQ
32242011-08-16 Yao Qi <yao@codesourcery.com>
3225
3226 * tic6x-linux-tdep.c: Move const arrays definition from here...
3227 * tic6x-tdep.c: to here ...
3228
11315641
YQ
32292011-08-14 Yao Qi <yao@codesourcery.com>
3230
3231 * NEWS: New port to Texas Instruments TMS320C6x.
3232
8cd64e00
YQ
32332011-08-14 Andrew Jenner <andrew@codesourcery.com>
3234 Bernd Schmidt <bernds@codesourcery.com>
3235 Yao Qi <yao@codesourcery.com>
3236
3237 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3238 * solib-dsbt.c: New file. Support DSBT shared object.
3239 * tic6x-linux-tdep.c: New file.
3240 * tic6x-tdep.c: New file.
3241 * tic6x-tdep.h: New file.
3242
78d85199
YQ
32432011-08-14 Andrew Stubbs <ams@codesourcery.com>
3244 Yao Qi <yao@codesourcery.com>
3245
3246 * remote.c (PACKET_qXfer_fdpic): New enum value.
3247 (remote_protocol_features): Add qXfer:fdpic:read packet.
3248 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3249 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3250 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3251
224bbe49
YQ
32522011-08-14 Yao Qi <yao@codesourcery.com>
3253
3254 Target description for tic6x.
3255 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3256 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3257 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3258 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3259 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3260 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3261 * features/tic6x-c64xp-linux.xml: New.
3262 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3263 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3264 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3265 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3266 * regformats/tic6x-c64xp.dat,
3267 regformats/tic6x-c62x-linux.dat: Generated.
3268 * regformats/tic6x-c64x-linux.dat,
3269 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3270 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3271 features/tic6x-*.c files.
3272 Add regformats/tic6x-*.dat files.
3273
457e09f0
DE
32742011-08-12 Doug Evans <dje@google.com>
3275
3276 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3277 * python/py-symbol.c (sympy_get_type): New function.
3278 (symbol_object_getset): Add "type".
3279
d20c1c3f
PA
32802011-08-12 Pedro Alves <pedro@codesourcery.com>
3281
3282 PR tui/13073
3283
3284 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3285 empty name.
3286 (tui_show_register_group): Don't store a byte buffer in the data
3287 element's value.
3288 (tui_register_format): Skip registers with an empty name.
3289 (tui_get_register): Store a struct value in the data element's
3290 value field instead of a byte buffer holding the raw register
3291 contents. Account for optimized-out and unavailable registers
3292 when comparing register contents.
3293
9d8fa392
PA
32942011-08-09 Pedro Alves <pedro@codesourcery.com>
3295
3296 * printcmd.c (current_display_number): Update comment.
3297 (disable_current_display_cleanup): Delete.
3298 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3299 catch errors thrown while evaluating and printing the display.
3300
401a70b8
TT
33012011-08-09 Tom Tromey <tromey@redhat.com>
3302
3303 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3304
7f86f058
PA
33052011-08-09 Pedro Alves <pedro@codesourcery.com>
3306
94b71cca 3307 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3308 * maint.c (maintenance_command): Ditto.
3309 * somread.c (som_symtab_read): Ditto.
3310 * solib.c (solib_find, solib_map_sections, update_solib_list)
3311 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3312 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3313 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3314 * solib-irix.c (locate_base, disable_break, enable_break)
3315 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3316 (irix_current_sos, irix_open_symbol_file_object)
3317 (irix_special_symbol_handling): Ditto.
3318 * solib-sunos.c (locate_base, first_link_map_member)
3319 (sunos_current_sos, disable_break, enable_break)
3320 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3321 Ditto.
3322 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3323 (open_symbol_file_object, svr4_current_sos, enable_break)
3324 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3325 Ditto.
3326 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3327 (frv_current_sos, enable_break, frv_special_symbol_handling)
3328 (frv_solib_create_inferior_hook): Ditto.
3329 * solist.h (struct target_so_ops): Extend the comments of the
3330 special_symbol_handling, current_sos and open_symbol_file_object
3331 methods.
3332
5e239b84
PM
33332011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3334
3335 * python/lib/gdb/__init__.py: Auto-load files in command and
3336 function directories.
3337 * python/python.c (finish_python_initialization): Use
3338 os.path.join.
3339 * python/lib/gdb/command/pretty_printers.py: Self register
3340 command.
3341 * NEWS: Document auto-loading.
3342
b6cede78
JK
33432011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3346 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3347 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3348
29d0bb3d
TT
33492011-08-08 Tom Tromey <tromey@redhat.com>
3350
3351 * breakpoint.c (clean_up_filters): Remove.
3352 (catch_syscall_split_args): Use VEC_cleanup.
3353
2f7fb8e4
JK
33542011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3355
3356 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3357 (main): Uncomment "Demangling error\n".
3358
d6c10e95
PP
33592011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3360
3361 * solib-target.c (segment_attributes): Make them static.
3362 (section_attributes, library_children, library_attributes): Likewise.
3363 (library_list_children, library_list_attributes): Likesise.
3364 (library_list_elements): Likewise.
3365
af6e93b2
PA
33662011-08-05 Pedro Alves <pedro@codesourcery.com>
3367
3368 * exceptions.c (throw_exception): Don't disable the current
3369 display.
3370 * printcmd.c (disable_current_display_cleanup): New function.
3371 (do_one_display): Install a cleanup to disable the current display
3372 if doing the display throws.
3373
6a1b1664
EZ
33742011-08-05 Eli Zaretskii <eliz@gnu.org>
3375
3376 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3377 initialization of the tp_new member to the corresponding
3378 gdbpy_initialize_* function.
3379 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3380 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3381 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3382 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3383 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3384
31a0ae49
JK
33852011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3386
3387 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3388 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3389 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3390 references to current_uiout.
3391
e0dd0826
PA
33922011-08-04 Pedro Alves <pedro@codesourcery.com>
3393
3394 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3395 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3396 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3397 * top.c (gdb_readline_wrapper): Adjust.
3398 * tui/tui-interp.c (tui_command_loop):
3399 (_initialize_tui_interp): Don't install it.
3400
79a45e25
PA
34012011-08-04 Pedro Alves <pedro@codesourcery.com>
3402
3403 * ui-out.h (uiout): Rename to ...
3404 (current_uiout): ... this.
3405 * ui-out.c (uiout): Rename to ...
3406 (current_uiout): ... this.
3407 * ada-lang.c (print_it_exception, print_one_exception)
3408 (print_mention_exception): Adjust.
3409 * breakpoint.c (watchpoint_check): Adjust.
3410 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3411 (default_collect_info, watchpoints_info, print_one_catch_fork)
3412 (print_one_catch_vfork, print_one_catch_syscall)
3413 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3414 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3415 (print_it_watchpoint, print_mention_watchpoint)
3416 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3417 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3418 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3419 (bkpt_print_mention, momentary_bkpt_print_it)
3420 (tracepoint_print_mention, update_static_tracepoint)
3421 (tracepoints_info, save_breakpoints): Adjust.
3422 * cli-out.c (field_separator): Adjust.
3423 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3424 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3425 * frame.c (get_current_frame): Adjust.
3426 * infcmd.c (run_command_1, print_return_value): Adjust.
3427 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3428 * infrun.c (print_end_stepping_range_reason): Adjust.
3429 (print_signal_exited_reason, print_exited_reason): Adjust.
3430 (print_signal_received_reason, print_no_history_reason): Adjust.
3431 * interps.c (interp_set): Adjust.
3432 * osdata.c (info_osdata_command): Adjust.
3433 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3434 * remote-fileio.c (remote_fileio_request): Adjust.
3435 * remote.c (show_remote_cmd): Adjust.
3436 * solib.c (info_sharedlibrary_command): Adjust.
3437 * source.c (print_source_lines_base): Adjust.
3438 * stack.c (print_stack_frame): Adjust.
3439 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3440 * symfile-mem.c (add_vsyscall_page): Adjust.
3441 * symfile.c (load_progress, generic_load)
3442 (print_transfer_performance): Adjust.
3443 * thread.c (info_threads_command, restore_selected_frame)
3444 (thread_command): Adjust.
3445 * top.c (make_cleanup_restore_ui_file): Adjust.
3446 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3447 (print_one_static_tracepoint_marker): Adjust.
3448 * cli/cli-cmds.c (print_disassembly): Adjust.
3449 * cli/cli-decode.c (print_doc_line): Adjust.
3450 * cli/cli-interp.c (safe_execute_command): Adjust.
3451 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3452 (handle_redirections): Adjust.
3453 * cli/cli-script.c (show_user_1): Adjust.
3454 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3455 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3456 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3457 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3458 (mi_cmd_env_dir): Adjust.
3459 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3460 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3461 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3462 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3463 (list_args_or_locals): Adjust.
3464 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3465 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3466 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3467 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3468 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3469 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3470 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3471 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3472 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3473 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3474 (list_available_thread_groups, mi_cmd_list_thread_groups)
3475 (mi_cmd_data_list_register_names)
3476 (mi_cmd_data_list_changed_registers)
3477 (mi_cmd_data_list_register_values, get_register)
3478 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3479 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3480 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3481 (mi_execute_command, mi_load_progress): Adjust.
3482 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3483 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3484 Adjust.
3485 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3486 * tui/tui-interp.c (tui_command_loop): Adjust.
3487 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3488
f9679975
PA
34892011-08-04 Pedro Alves <pedro@codesourcery.com>
3490
3491 * exceptions.c (struct catcher): Remove saved_uiout field.
3492 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3493 no longer save/resvore the global ui_out builder.
3494 (catch_exceptions_with_msg): Save/override/restore the global
3495 ui_out builder manually instead of relying on TRY_CATCH to do it.
3496 (catch_errors): Save/restore the global ui_out builder manually
3497 instead of relying on TRY_CATCH to do it.
3498 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3499 parameter.
3500 (TRY_CATCH): Adjust.
3501 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3502 the global ui_out builder manually instead of relying on TRY_CATCH
3503 to do it.
3504
934709f0
PW
35052011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3506
3507 * breakpoint.c (update_global_location_list): Ensure
3508 invariant 'first loc marked not duplicated and inserted,
3509 following locs marked duplicated/not inserted' is respected
3510 for multiple locations at the same address.
3511 (unduplicated_should_be_inserted) New function.
3512 (swap_insertion) New function.
3513
2421fe6f
JK
35142011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3515
3516 * stack.c (print_frame_arguments_choices): Comment typo fix.
3517
3fbb6ffa
TJB
35182011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3519
3520 Revert:
3521 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3522 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3523 argument. Update callers.
3524
fbe12357
PP
35252011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3526
3527 PR gdb/13045
3528 * doublest.c (convert_doublest_to_floatformat): Pass correct
3529 mantissa length to put_field.
3530
b1d288d3
JK
35312011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3532
3533 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3534 exception_print code path.
3535 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3536 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3537 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3538
311b5970
JK
35392011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3540
3541 Code cleanup.
3542 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3543 Remove, merge them into ...
3544 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3545 variable args and its initialization.
3546 (struct print_args_args, print_args_stub): Remove, merge them into
3547 print_frame.
3548 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3549 them into ...
3550 (do_gdb_disassembly): ... here. Remove variable args and its
3551 initialization.
3552 (print_frame): Remove variable args and its initialization, new
3553 variable gdbarch and numargs (from print_args_stub), inline here
3554 print_args_stub with a TRY_CATCH.
3555 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3556 them into ...
3557 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3558 New variable e, remove variable btargs and its initialization.
311b5970 3559
484a26a8
TG
35602011-08-01 Tristan Gingold <gingold@adacore.com>
3561
3562 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3563
c30eee59
TJB
35642011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3565
3566 * breakpoint.c (insert_bp_location): Document return value.
3567 (insert_breakpoint_locations): Fix documentation.
3568 (remove_breakpoints): Add documentation.
3569
f116073b
TJB
35702011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3571
3572 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3573 argument. Update callers.
3574
65aa373f
JK
35752011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3576
3577 * stack.c (print_frame_info): Comment typo fix.
3578
a50242fb
SA
35792011-07-29 Sterling Augustine <saugustine@google.com>
3580
3581 * MAINTAINERS (Write After Approval): Add myself to the list.
3582
267f6504
TT
35832011-07-29 Tom Tromey <tromey@redhat.com>
3584
3585 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3586 (library_list_start_segment): Update.
3587 (library_list_start_section): Update.
3588
00bd41d6
PM
35892011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3590
3591 * varobj.c (value_get_print_value): Move hint check later into the
3592 function. Comment function. Free thevalue before reusing it.
3593
18a46dbe
JK
35942011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3595 Pedro Alves <pedro@codesourcery.com>
3596
3597 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3598 value_one.
3599 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3600 Assert the result kind.
3601 * value.h (value_one): Remove parameter lv.
3602
bb7da2bf
JK
36032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3604
3605 Fix crash on lval_computed values.
3606 * valops.c (value_zero): Use not_lval for lval_computed.
3607
2d5213f8
TT
36082011-07-27 Tom Tromey <tromey@redhat.com>
3609
3610 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3611 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3612
11081198
JK
36132011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3614
3615 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3616 "ptype" by their typedefs difference.
3617
3c6e0cb3
JK
36182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 * dwarf2expr.c (ctx_no_read_reg): New function.
3621 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3622 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3623 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3624 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3625
523f3620
JK
36262011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3627
3628 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3629 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3630 file.
3631 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3632 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3633 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3634 (ctx_no_get_base_type): Move the functions here.
3635 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3636 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3637 (ctx_no_get_base_type): New declarations.
3638
24d3216f
TT
36392011-07-27 Tom Tromey <tromey@redhat.com>
3640
3641 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3642 entries.
3643 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3644 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3645
5005c8a9
PP
36462011-07-26 Sterling Augustine <saugustine@google.com>
3647
3648 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3649 ULONGEST.
3650 (dump_bfd_file): Likewise.
3651
480a3f21
PW
36522011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3653
3654 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3655 (remote_hw_watchpoint_length_limit): New variable.
3656 (_initialize_remote) add set,show cmds for this new variable.
3657 * gdb.texinfo: document these new commands.
3658 * NEWS: Mention these new commands.
3659
efa80663
PA
36602011-07-26 Pedro Alves <pedro@codesourcery.com>
3661
3662 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3663 true for software watchpoints.
3664
dbdaa232 36652011-07-26 Joel Brobecker <brobecker@adacore.com>
3666
3667 GDB 7.3 released.
3668
cf2c3c16
TT
36692011-07-26 Tom Tromey <tromey@redhat.com>
3670
3671 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3672 * dwarf2read.c (read_indirect_string_at_offset): New function.
3673 (read_indirect_string): Use it.
3674 (dwarf_decode_macro_bytes): New function, taken from
3675 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3676 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3677 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3678 New functions.
3679 (struct dwarf2_per_objfile) <macro>: New field.
3680 (dwarf2_elf_names): Add .debug_macro.
3681 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3682 (dwarf2_locate_sections): Handle new section.
3683 (read_file_scope): Handle DW_AT_GNU_macros.
3684 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3685
1a532630
PP
36862011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3687
3688 * NEWS: Mention dcache configuration.
3689 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3690 (dcache_size, dcache_line_size): New variables.
3691 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3692 (struct dcache_block): Make it expandable.
3693 (struct dcache_struct): New field.
3694 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3695 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3696 (dcache_poke_byte, dcache_print_line): Adjust.
3697 (set_dcache_size, set_dcache_line_size): New functions.
3698 (set_dcache_command, show_dcache_command): New functions.
3699 (_initialize_dcache): Add new commands.
3700
2eff07b3
PP
37012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3702
3703 * progspace.h (struct program_space): Add solib_add_generation.
3704 * infcmd.c (post_create_inferior): Only call solib_add if not
3705 already done.
3706 * solib.c (solib_add): Increment solib_add_generation.
3707
543305c9
JK
37082011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3709
3710 Fix implicit pointer offsets.
3711 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3712 ptr.OFFSET.
3713
c0a91b2b
TT
37142011-07-25 Tom Tromey <tromey@redhat.com>
3715
3716 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3717 const.
3718 (ada_exception_sal): Make 'ops' const.
3719 (ada_decode_exception_location): Likewise.
3720 (ada_decode_assert_location): Likewise.
3721 (catch_assert_command): Update.
3722 (catch_ada_exception_command): Update.
3723 (create_ada_exception_catchpoint): Make 'ops' const.
3724 * breakpoint.c (set_raw_breakpoint_without_location)
3725 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3726 const.
3727 (create_internal_breakpoint): Update.
3728 (init_raw_breakpoint_without_location): Make 'ops' const.
3729 (init_raw_breakpoint, init_catchpoint)
3730 (create_fork_vfork_event_catchpoint)
3731 (create_syscall_event_catchpoint, init_breakpoint_sal)
3732 (create_breakpoint_sal, create_breakpoints_sal)
3733 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3734 * breakpoint.h (struct breakpoint) <ops>: Now const.
3735 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3736 const.
3737
6cb9b55b
PP
37382011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3739
3740 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3741
d9b3f62e
PA
37422011-07-25 Pedro Alves <pedro@codesourcery.com>
3743
3744 * breakpoint.h (print_recreate_thread): Declare.
3745 (struct breakpoint): Move step_count, pass_count,
3746 number_on_target, static_trace_marker_id,
3747 static_trace_marker_id_idx ...
3748 (struct tracepoint): ... to this new struct.
3749 (get_tracepoint, get_tracepoint_by_number_on_target)
3750 (get_tracepoint_by_number): Change return type to struct
3751 tracepoint pointer.
3752 * breakpoint.c (is_tracepoint_type): New, factored out from
3753 is_tracepoint.
3754 (is_tracepoint): Adjust.
3755 (print_one_breakpoint_location): Cast to struct tracepoint as
3756 necessary, and adjust.
3757 (print_recreate_catch_fork, print_recreate_catch_vfork)
3758 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3759 print_recreate_thread.
3760 (init_breakpoint_sal): New, factored out from
3761 create_breakpoint_sal.
3762 (create_breakpoint_sal): Reimplement.
3763 (create_breakpoint): Allocate a struct tracecepoint if the caller
3764 wanted a tracepoint. Use init_breakpoint_sal and
3765 install_breakpoint.
3766 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3767 (print_recreate_masked_watchpoint)
3768 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3769 (tracepoint_print_one_detail): Adjust.
3770 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3771 Dump the pass count here.
3772 (update_static_tracepoint): Adjust.
3773 (addr_string_to_sals): Adjust.
3774 (create_tracepoint_from_upload): Adjust. Change return type to
3775 struct tracepoint pointer.
3776 (trace_pass_set_count): Change parameter type to struct tracepoint
3777 pointer, and adjust.
3778 (trace_pass_command): Adjust.
3779 (get_tracepoint, get_tracepoint_by_number_on_target)
3780 (get_tracepoint_by_number): Change return type to struct
3781 tracepoint pointer, and adjust.
3782 (print_recreate_thread): New, factored out from save_breakpoints.
3783 (save_breakpoints): Don't print thread and task and passcount
3784 recreation here.
3785 * remote.c (remote_download_tracepoint): Adjust.
3786 * tracepoint.c (trace_actions_command, validate_actionline)
3787 (start_tracing, tfind_1, trace_find_tracepoint_command)
3788 (trace_dump_command): Adjust.
3789 (find_matching_tracepoint): Change return type to struct
3790 tracepoint pointer, and adjust.
3791 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3792 (tfile_trace_find, tfile_fetch_registers): Adjust.
3793 * tracepoint.h (create_tracepoint_from_upload): Change return type
3794 to struct tracepoint pointer.
3795 * ada-lang.c (print_recreate_exception): Call
3796 print_recreate_thread.
3797 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3798
3a5c3e22
PA
37992011-07-25 Pedro Alves <pedro@codesourcery.com>
3800
3801 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3802 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3803 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3804 watchpoint_thread, watchpoint_triggered ...
3805 (struct watchpoint): ... to this new struct.
3806 (is_watchpoint): Declare.
3807 (install_breakpoint): Add new `internal' parameter.
3808 * breakpoint.c (is_watchpoint): Delete declaration.
3809 (set_breakpoint_condition): Handle watchpoints.
3810 (is_watchpoint): Make public.
3811 (watchpoint_in_thread_scope): Change parameter type to struct
3812 watchpoint.
3813 (watchpoint_del_at_next_stop): Change parameter type to struct
3814 watchpoint. Remove assertion. Adjust.
3815 (update_watchpoint): Ditto.
3816 (insert_breakpoints, breakpoint_init_inferior)
3817 (watchpoints_triggered, watchpoint_check)
3818 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3819 (bpstat_stop_status, print_one_breakpoint_location)
3820 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3821 to struct watchpoint as necessary, and adjust.
3822 (install_breakpoint): Add `internal' argument. If true, don't
3823 mention the new breakpoint. Use set_breakpoint_number.
3824 (create_fork_vfork_event_catchpoint)
3825 (create_syscall_event_catchpoint): Adjust.
3826 (dtor_watchpoint): New.
3827 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3828 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3829 (print_it_watchpoint, print_mention_watchpoint)
3830 (print_recreate_watchpoint, insert_masked_watchpoint)
3831 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3832 (print_one_detail_masked_watchpoint)
3833 (print_mention_masked_watchpoint)
3834 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3835 necessary, and adjust.
3836 (watch_command_1): Allocate and initialize a struct watchpoint
3837 instead of a struct breakpoint. Use install_breakpoint.
3838 (catch_exec_command_1): Adjust.
3839 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3840 fields.
3841 (delete_breakpoint, enable_breakpoint_disp)
3842 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3843 as necessary, and adjust.
3844 (initialize_breakpoint_ops): Install dtor_watchpoint as
3845 watchpoints' dtor method.
3846 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3847 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3848 to struct watchpoint as necessary, and adjust.
3849
2060206e
PA
38502011-07-25 Pedro Alves <pedro@codesourcery.com>
3851
3852 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3853 the the base class ops table.
3854 (catch_exception_breakpoint_ops)
3855 (catch_exception_unhandled_breakpoint_ops)
3856 (catch_assert_breakpoint_ops): Don't statically initialize.
3857 (initialize_ada_catchpoint_ops): New.
3858 (_initialize_ada_language): Call it.
3859 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3860 (bkpt_breakpoint_ops): Forward declare.
3861 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3862 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3863 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3864 (masked_watchpoint_breakpoint_ops)
3865 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3866 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3867 base class ops table.
3868 (null_re_set, null_check_status, null_works_in_software_mode)
3869 (null_resources_needed, null_print_one_detail): Delete.
3870 (bkpt_dtor): Rename to ...
3871 (base_breakpoint_dtor): ... this. Make static.
3872 (bkpt_allocate_location): Rename to ...
3873 (base_breakpoint_allocate_location): ... this. Make static.
3874 (base_breakpoint_re_set): New.
3875 (internal_error_pure_virtual_called): New.
3876 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3877 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3878 (base_breakpoint_works_in_software_mode)
3879 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3880 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3881 (base_breakpoint_print_recreate): New functions.
3882 (base_breakpoint_ops): New global.
3883 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3884 (bkpt_breakpoint_hit): Make static.
3885 (bkpt_check_status): Delete.
3886 (bkpt_resources_needed): Make static.
3887 (bkpt_works_in_software_mode): Delete.
3888 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3889 static.
3890 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3891 (momentary_breakpoint_ops): Don't statically initialize.
3892 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3893 Delete.
3894 (tracepoint_insert_location, tracepoint_remove_location)
3895 (tracepoint_check_status, tracepoint_works_in_software_mode)
3896 (tracepoint_print_it): Delete.
3897 (tracepoint_breakpoint_ops): Don't statically initialize.
3898 (initialize_breakpoint_ops): New.
3899 (_initialize_breakpoint): Call it.
3900 * breakpoint.h (null_re_set, null_works_in_software_mode)
3901 (null_resources_needed, null_check_status, null_print_one_detail):
3902 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3903 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3904 (bkpt_check_status, bkpt_resources_needed)
3905 (bkpt_works_in_software_mode, bkpt_print_it)
3906 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3907 Delete declarations.
3908 (initialize_breakpoint_ops): Declare.
3909
001c8c33
PA
39102011-07-25 Pedro Alves <pedro@codesourcery.com>
3911
3912 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3913 (momentary_bkpt_print_it): Simplify.
3914
06edf0c0
PA
39152011-07-25 Pedro Alves <pedro@codesourcery.com>
3916
3917 Split internal, momentary and user breakpoints breakpoint_ops
3918 tables.
3919
3920 * breakpoint.c (internal_breakpoint_ops)
3921 (momentary_breakpoint_ops): Forward declare.
3922 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3923 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3924 (create_overlay_event_breakpoint)
3925 (create_std_terminate_master_breakpoint)
3926 (create_exception_master_breakpoint): Create breakpoints with
3927 internal_breakpoint_ops vtable.
3928 (set_longjmp_breakpoint): Create momentary breakpoints with
3929 momentary_breakpoint_ops vtable, using
3930 momentary_breakpoint_from_master.
3931 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3932 (create_solib_event_breakpoint): Create breakpoints with
3933 internal_breakpoint_ops vtable.
3934 (set_momentary_breakpoint): Create breakpoints with
3935 momentary_breakpoint_ops vtable.
3936 (momentary_breakpoint_from_master): New, factored out from
3937 clone_momentary_breakpoint.
3938 (clone_momentary_breakpoint): Adjust.
3939 (watch_command_1): Create scope breakpoints with
3940 momentary_breakpoint_ops vtable.
3941 (bkpt_re_set): Remove handling of internal and momentary
3942 breakpoints.
3943 (bkpt_print_mention, bkpt_print_recreate): New.
3944 (bkpt_breakpoint_ops): Adjust.
3945 (internal_bkpt_re_set, internal_bkpt_check_status)
3946 (internal_bkpt_print_it, internal_bkpt_print_mention)
3947 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3948 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3949 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3950 (momentary_bkpt_print_recreate): New.
3951 (momentary_breakpoint_ops): New.
3952
348d480f
PA
39532011-07-25 Pedro Alves <pedro@codesourcery.com>
3954
3955 Implement most breakpoint_ops methods for all breakpoint types,
3956 and move the default handlings to the proper callbacks.
3957
3958 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3959 works_in_software_mode method.
3960 (insert_bp_location): Go through breakpoint_ops->insert_location
3961 for software and hardware watchpoints.
3962 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3963 breakpoint_ops.
3964 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3965 for software and hardware watchpoints.
3966 (print_it_typical): Delete.
3967 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3968 method.
3969 (watchpoint_check): Adjust comment.
3970 (bpstat_check_location): Simply always call the breakpoint's
3971 breakpoint_hit method.
3972 (bpstat_stop_status): Always call the breakpoint's check_status
3973 method. Remove special cases for watchpoints and internal event
3974 breakpoints from here (moved to the check_status implementations).
3975 (print_one_breakpoint_location): Assume b->ops is never NULL.
3976 Remove static tracepoint marker id printing from here (moved to
3977 the print_one_detail callback implementation of tracepoints).
3978 (init_bp_location): Assert OPS is never NULL.
3979 (allocate_bp_location): Always call the breakpoint's
3980 allocate_location method, and remove the default code from here.
3981 (free_bp_location): Always call the location's dtor method, and
3982 remove the default code from here.
3983 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3984 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3985 parameter. Pass it down.
3986 (set_raw_breakpoint): Ditto.
3987 (print_it_catch_fork): Adjust to take a bpstat as argument.
3988 (catch_fork_breakpoint_ops): Install methods.
3989 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3990 (catch_vfork_breakpoint_ops): Install methods.
3991 (dtor_catch_syscall): Call the base dtor.
3992 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3993 (catch_syscall_breakpoint_ops): Install methods.
3994 (dtor_catch_exec): Call the base dtor.
3995 (print_it_catch_exec): Adjust to take a bpstat as argument.
3996 (catch_exec_breakpoint_ops): Install methods.
3997 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3998 the breakpoint's resources_needed method, and remove the default
3999 code from here.
4000 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4001 breakpoint_ops.
4002 (clone_momentary_breakpoint): Clone the original's ops.
4003 (mention): Always call the breakpoint's print_mention method, and
4004 remove the default code from here.
4005 (create_breakpoint_sal): Adjust to pass the ops to
4006 set_raw_breakpoint rather than setting it manually.
4007 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4008 ops to set_raw_breakpoint_without_location rather than setting it
4009 manually.
4010 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4011 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4012 (ranged_breakpoint_ops): Install methods.
4013 (break_range_command): Adjust to pass the ops to
4014 set_raw_breakpoint rather than setting it manually.
4015 (re_set_watchpoint, breakpoint_hit_watchpoint)
4016 (check_status_watchpoint, resources_needed_watchpoint)
4017 (works_in_software_mode_watchpoint, print_it_watchpoint)
4018 (print_mention_watchpoint, print_recreate_watchpoint): New
4019 functions.
4020 (watchpoint_breakpoint_ops): Install new methods.
4021 (print_it_masked_watchpoint): New function.
4022 (masked_watchpoint_breakpoint_ops): Install new methods.
4023 (watch_command_1): Adjust to pass the right breakpoint_ops to
4024 set_raw_breakpoint_without_location rather than setting it
4025 manually later. Record the current pspace.
4026 (print_it_exception_catchpoint): Adjust to take a bpstat as
4027 argument.
4028 (gnu_v3_exception_catchpoint_ops): Install new methods.
4029 (say_where): New function.
4030 (null_re_set, null_check_status, null_works_in_software_mode)
4031 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4032 New functions.
4033 (bp_location_ops): New global.
4034 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4035 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4036 (bkpt_check_status, bkpt_resources_needed)
4037 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4038 (bkpt_print_recreate): New functions.
4039 (bkpt_breakpoint_ops): New global.
4040 (tracepoint_re_set, tracepoint_insert_location)
4041 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4042 (tracepoint_check_status, tracepoint_works_in_software_mode)
4043 (tracepoint_print_it, tracepoint_print_one_detail)
4044 (tracepoint_print_mention, tracepoint_print_recreate): New
4045 functions.
4046 (tracepoint_breakpoint_ops): New global.
4047 (delete_breakpoint): Always call the breakpoint's dtor method, and
4048 remove the default handling from here.
4049 (breakpoint_re_set_default): Make static.
4050 (breakpoint_re_set_one): Always call the breakpoints re_set
4051 method, and remove the default handling from here.
4052 (trace_command, ftrace_command, strace_command)
4053 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4054 to create_breakpoint.
4055 (save_breakpoints): Always call the breakpoint's print_recreate
4056 method, and remove the default handling from here.
4057
4058 * ada-lang.c (dtor_exception): Call the base dtor.
4059 (re_set_exception): Call the base method.
4060 (print_it_exception, print_it_catch_exception): Adjust to take a
4061 bpstat as argument.
4062 (catch_exception_breakpoint_ops): Install methods.
4063 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4064 argument.
4065 (catch_exception_unhandled_breakpoint_ops): Install methods.
4066 (print_it_catch_assert): Adjust to take a bpstat as argument.
4067 (catch_assert_breakpoint_ops): Install methods.
4068
4069 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4070 to take a bpstat as argument.
4071 (enum print_stop_action): Add describing comments to each enum
4072 value.
4073 (breakpoint_re_set_default): Delete declaration.
4074 (null_re_set, null_works_in_software_mode, null_resources_needed)
4075 (null_check_status, null_print_one_detail): Declare.
4076 (bkpt_breakpoint_ops): Declare.
4077 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4078 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4079 (bkpt_check_status, bkpt_resources_needed)
4080 (bkpt_works_in_software_mode, bkpt_print_it)
4081 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4082 Declare.
4083
4084 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4085 bkpt_breakpoint_ops.
4086 * python/py-breakpoint.c (bppy_init): Ditto.
4087
be8f8133
PW
40882011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4089
4090 * MAINTAINERS (Write After Approval): Add myself to the list.
4091
3807f613
PP
40922011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4093
4094 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4095
1ced966e
PA
40962011-07-22 Pedro Alves <pedro@codesourcery.com>
4097
4098 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4099 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4100 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4101 adjust.
4102 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4103 (struct i386_debug_reg_state): New.
4104 (i386_init_dregs): New.
4105 (dr_mirror): New.
4106 (i386_cleanup_dregs): Use i386_init_dregs.
4107 (i386_show_dr): Add state parameter and adjust.
4108 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4109 the inferior here.
4110 (i386_remove_aligned_watchpoint): Likewise.
4111 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4112 (i386_update_inferior_debug_regs): New.
4113 (i386_insert_watchpoint): Work on a local mirror of the debug
4114 registers, and only update the inferior on success.
4115 (i386_remove_watchpoint): Ditto.
4116 (i386_region_ok_for_watchpoint): Adjust.
4117 (i386_stopped_data_address): Adjust.
4118 (i386_insert_hw_breakpoint): Adjust.
4119 (i386_remove_hw_breakpoint): Adjust.
4120
3543a589
TT
41212011-07-22 Tom Tromey <tromey@redhat.com>
4122
4123 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4124 from amd64_pseudo_register_read. Change arguments. Call
4125 mark_value_bytes_unavailable when needed.
4126 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4127 set_gdbarch_pseudo_register_read.
4128 * sentinel-frame.c (sentinel_frame_prev_register): Use
4129 regcache_cooked_read_value.
4130 * regcache.h (regcache_cooked_read_value): Declare.
4131 * regcache.c (regcache_cooked_read_value): New function.
4132 (regcache_cooked_read): Call
4133 gdbarch_pseudo_register_read_value if available.
4134 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4135 (i386_pseudo_register_read): Remove.
4136 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4137 i386_pseudo_register_read. Change arguments. Call
4138 mark_value_bytes_unavailable when needed.
4139 (i386_pseudo_register_read_value): New function.
4140 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4141 not set_gdbarch_pseudo_register_read.
4142 * gdbarch.sh (pseudo_register_read_value): New method.
4143 * gdbarch.c, gdbarch.h: Rebuild.
4144 * findvar.c (value_from_register): Call get_frame_register_value.
4145
95298e72
PM
41462011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4147
4148 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4149 get_prefix.
4150 (display_gdb_prompt): Likewise.
4151 (change_annotation_level): Likewise.
4152 (push_prompt): Likewise.
4153 (pop_prompt): Likewise.
4154 (handle_stop_sig): Use get_prompt with a level.
4155 * top.c (command_loop): Use get_prompt with a level.
4156 (set_async_annotation_level): Use set_prompt with a level.
4157 (get_prefix): New function.
4158 (set_prefix): Ditto.
4159 (set_suffix): Ditto.
4160 (get_suffix): Ditto.
4161 (get_prompt): Accept a level argument.
4162 (set_prompt): Accept a level argument. Free old prompts. Set
4163 new_async_prompt if level is 0.
4164 (init_main): Use set_prompt with a level. Do not set
4165 new_async_prompt.
4166 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4167 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4168 Modify set_prompt, get_prompt to account for levels.
4169 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4170 level.
4171 * python/python.c (before_prompt_hook): Use set_prompt.
4172
d26e3629
KY
41732011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4174
4175 * defs.h: Add guard against inclusion in gdbserver.
4176 (struct ptid, ptid_t): Move to common/ptid.h.
4177 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4178 xsnprintf, internal_error): Move to common/common-utils.h.
4179 (nomem): Delete.
4180 * gdb_assert.h: Move into common/ sub-directory.
4181 * gdb_locale.h: Ditto.
4182 * gdb_dirent.h: Ditto.
4183 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4184 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4185 Move into common/ptid.h.
4186 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4187 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4188 Change nomem to malloc_failure.
4189 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4190 * utils.c (nomem): Rename to malloc_failure.
4191 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4192 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4193 (gdb_buildargv): Change nomem to malloc_failure.
4194 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4195 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4196 ptid_is_pid): Move into common/ptid.c.
4197 (initialize_infrun): Delete initialization of null_ptid and
4198 minus_one_ptid.
4199 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4200 linux_common_xfer_osdata.
4201 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4202 common/ptid.c and common/buffer.c.
4203 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4204 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4205 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4206 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4207 rules.
4208 * common/gdb_assert.h: New.
4209 * common/gdb_dirent.h: New.
4210 * common/gdb_locale.h: New.
4211 * common/buffer.c: New.
4212 * common/buffer.h: New.
4213 * common/ptid.c: New.
4214 * common/ptid.h: New.
4215 * common/xml-utils.c: New.
4216 * common/xml-utils.h: New.
4217 * common/common-utils.c: New.
4218 * common/common-utils.h: New.
4219 * common/linux-osdata.c: New.
4220 * common/linux-osdata.h: New.
4221 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4222 * config/arm/linux.mh (NATDEPFILES): Ditto.
4223 * config/i386/linux.mh (NATDEPFILES): Ditto.
4224 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4225 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4226 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4227 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4228 * config/mips/linux.mh (NATDEPFILES): Ditto.
4229 * config/pa/linux.mh (NATDEPFILES): Ditto.
4230 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4231 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4232 * config/s390/s390.mh (NATDEPFILES): Ditto.
4233 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4234 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4235 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4236
edc84990 42372011-07-21 Matt Rice <ratmice@gmail.com>
4238
4239 * NEWS: Add info macros and info definitions commands.
4240
3a7bf607
PM
42412011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4242
4243 * NEWS: Document Python prompt substitution hook.
4244
9b158ba0 42452011-07-18 Matt Rice <ratmice@gmail.com>
4246
4247 PR macros/12999
4248 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4249 * macrotab.c (foreach_macro): Ditto.
4250 (foreach_macro_in_scope): Ditto.
4251 * macrocmd.c (print_macro_callback): New function.
4252 (info_macro_command): Move some code to print_macro_definition.
4253 (print_macro_definition): New function.
4254 (print_one_macro): Add new arguments to callback.
4255 (info_definitions_command): New function.
4256 (info_macros_command): Ditto.
4257 (_initialize_macrocmd): Add info macros and info definitions commands.
4258 * symtab.c (add_macro_name): Add new arguments to callback.
4259
d17b6f81
PM
42602011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4261 Tom Tromey <tromey@redhat.com>
4262
4263 * top.c (set_prompt): Rewrite to free previous prompt, free
4264 asynch_new_prompt and set both on new prompts.
4265 * event-top.c (display_gdb_prompt): Add prompt substitution
4266 logic.
4267 * python/python.c (before_prompt_hook): New function.
4268
1364323a 42692011-07-20 Matt Rice <ratmice@gmail.com>
4270
4271 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4272 arguments to store_unsigned_integer.
4273
8b70b953
TT
42742011-07-20 Tom Tromey <tromey@redhat.com>
4275
6c83ed52
TT
4276 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4277 in some declaration-only cases.
4278
42792011-07-18 Tom Tromey <tromey@redhat.com>
4280
8b70b953
TT
4281 PR symtab/12984:
4282 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4283 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4284 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4285 <debug_type_section>: New field.
4286 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4287 (load_cu): Use appropriate section.
4288 (create_signatured_type_table_from_index): Add 'section'
4289 argument.
4290 (dwarf2_read_index): Only allow a single .debug_types section.
4291 (dw2_get_file_names): Use appropriate section.
4292 (read_type_comp_unit_head): Add 'section' argument.
4293 (create_debug_types_hash_table): Loop over all .debug_types
4294 sections.
4295 (init_cu_die_reader): Use appropriate section.
4296 (process_psymtab_comp_unit, load_partial_comp_unit)
4297 (load_full_comp_unit, read_die_and_children, find_partial_die)
4298 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4299 (lookup_signatured_type_at_offset): Add 'section' argument.
4300 (read_signatured_type_at_offset): Add 'sect' argument.
4301 (read_signatured_type): Use appropriate section.
4302 (set_die_type, get_die_type_at_offset): Update.
4303 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4304 VEC.
4305 (write_psymtabs_to_index): Don't allow index with more than one
4306 .debug_types section.
4307
918dd910
JK
43082011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4309
4310 Fix crash if referenced CU is aged out.
4311 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4312 xfree of block.data.
4313 (indirect_pieced_value): New variable back_to, use to for xfree of
4314 baton.data.
4315 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4316 block.data.
4317 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4318 (load_cu): New function from ...
4319 (dw2_do_instantiate_symtab): ... the code here ...
4320 (process_full_comp_unit): ... and here.
4321 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4322 retval.data.
4323
0e37a63c
JK
43242011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4327 type.
4328
7e324e48
GB
43292011-07-19 Gary Benson <gbenson@redhat.com>
4330
4331 * infrun.c (struct execution_control_state): New member
4332 stop_func_filled_in.
4333 (clear_stop_func, fill_in_stop_func): New functions.
4334 (handle_inferior_event): Call clear_stop_func rather than
4335 manipulating the execution control state directly.
4336 Call fill_in_stop_func lazily as required rather than
4337 directly calling find_pc_partial_function in all cases.
4338
d48323d8
TT
43392011-07-18 Tom Tromey <tromey@redhat.com>
4340
4341 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4342 checking for variable-sized array.
4343
40591b7d
JCD
43442011-07-18 Jean-Charles Delay <delay@adacore.com>
4345
4346 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4347 of supported languages.
4348 * varobj.c: Add top definitions and basic implementation of the
4349 following callbacks: ada_number_of_children, ada_name_of_variable,
4350 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4351 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4352 (languages): Register Ada-specific callbacks.
4353 (variable_language): Add the Ada case in the language setter switch.
4354
2e424e08
JK
43552011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4358
9e8b7a03
JK
43592011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 Code cleanup.
4362 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4363 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4364 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4365 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4366 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4367 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4368 (struct dwarf_expr_context_funcs): New, move here methods from ...
4369 (struct dwarf_expr_context): ... here. New fields funcs.
4370 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4371 (dwarf_expr_ctx_funcs): New.
4372 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4373 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4374 (needs_frame_ctx_funcs): New.
4375 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4376
2b1260ab
FM
43772011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4378
4379 * MAINTAINERS (Write After Approval): Add myself to the list.
4380
8bd90839
FM
43812011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4382
4383 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4384 that CIE pointer of an FDE really points to a CIE .
4385
953b98d1
HZ
43862011-07-15 Hui Zhu <teawater@gmail.com>
4387
4388 * remote.c (remote_get_trace_status): Add comments.
4389
c8f2448a
JK
43902011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4391
4392 Code cleanup - constify struct lval_funcs.
4393 * dwarf2loc.c (pieced_value_funcs): Make it const.
4394 * infrun.c (siginfo_value_funcs): Likewise.
4395 * opencl-lang.c (opencl_value_funcs): Likewise.
4396 * valops.c (value_assign, value_ind): Make the funcs variable const.
4397 * value.c (struct value): Make location.computed.funcs target const.
4398 Rearrange the comments.
4399 (allocate_computed_value): Make the funcs parameter target const.
4400 (value_computed_funcs): Return the funcs target const.
4401 (value_free, value_copy, set_value_component_location): Make the funcs
4402 variable const.
4403 * value.h (allocate_computed_value): Make the funcs parameter target
4404 const.
4405 (value_computed_funcs): Return the funcs target const.
4406 * windows-tdep.c (tlb_value_funcs): Make it const.
4407
f652de6f
HZ
44082011-07-14 Hui Zhu <teawater@gmail.com>
4409
4410 * remote.c (remote_get_trace_status): Initialize p.
4411
67f41397
JK
44122011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4413
4414 Work around kgdb.
4415 * remote.c (remote_get_trace_status): New variable ex. Put
4416 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4417
d1b66e6d
TT
44182011-07-13 Tom Tromey <tromey@redhat.com>
4419
4420 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4421 value_from_contents for final conversion.
4422
1632a688
JK
44232011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4424
4425 Code cleanup.
4426 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4427 Indent prototypes so they do not get into tags.
4428
a7035dbb
JK
44292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4430
4431 Code cleanup making also optimized out values lazy.
4432 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4433 allocate_optimized_out_value. Twice.
4434 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4435 * findvar.c (read_var_value): Likewise.
4436 * value.c (allocate_optimized_out_value): New function.
4437 * value.h (allocate_optimized_out_value): New declaration.
4438
d07ed419
JK
44392011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 Fix occasional crash of CTRL-C during DWARF read in.
4442 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4443
86d31898
TT
44442011-07-11 Tom Tromey <tromey@redhat.com>
4445
4446 * regcache.c (struct regcache_descr): Fix typo.
4447 * i387-tdep.c (i387_supply_xsave): Fix typo.
4448
2ab95328
TT
44492011-07-11 Tom Tromey <tromey@redhat.com>
4450
4451 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4452 (read_file_scope, read_type_unit_scope): Use it.
4453
04ad99e6
JK
44542011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4455
4456 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4457 `int'.
4458
713389e0
PM
44592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4460
4461 PR python/12438
4462 * python/python.c: Set gdbpy_should_print_stack default to off.
4463 (set_python): Deprecate maint set python print-stack to
4464 class_deprecate.
4465 (_initialize_python): Deprecate maint set/show python print-stack.
4466 Add new prefix command, python. Add new setting, print-backtrace.
4467 * NEWS: Document set python print-stack. Document default change.
4468
754eadd1
PM
44692011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4470
4471 * python/py-inferior.c (infpy_dealloc): New function.
4472 (inferior_to_inferior_object): Return a new object, or a
4473 new reference to the existing object.
4474 (find_thread_object): Cleanup references to inferior.
4475 (delete_thread_object): Ditto.
4476 * python/py-infthread.c (create_thread_object): Do not increment
4477 inferior reference count.
4478
5e44ecb3
TT
44792011-07-08 Tom Tromey <tromey@redhat.com>
4480
4481 * dwarf2loc.c (locexpr_regname): New function.
4482 (locexpr_describe_location_piece): Use it.
4483 (disassemble_dwarf_expression): Add per_cu argument. Use
4484 locexpr_regname.
4485 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4486 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4487 New cases.
4488 (locexpr_describe_location_1): Add per_cu argument.
4489 (locexpr_describe_location): Update.
4490 (loclist_describe_location): Update.
4491
e0e9434c
TT
44922011-07-08 Tom Tromey <tromey@redhat.com>
4493
4494 * dwarf2expr.c (execute_stack_op): Add QUIT.
4495
26afc0d7
HZ
44962011-07-07 Hui Zhu <teawater@gmail.com>
4497
4498 Revert:
4499 2011-07-06 Hui Zhu <teawater@gmail.com>
4500 * remote.c (remote_start_remote): Add TRY_CATCH for
4501 remote_get_trace_status.
4502 * tracepoint.c (disconnect_tracing): Ditto.
4503
a40a111f
AB
45042011-07-07 Andrew Burgess <aburgess@broadcom.com>
4505
4506 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4507 variables as signed, not unsigned.
4508
e2bd3b15
JB
45092011-07-06 Joel Brobecker <brobecker@adacore.com>
4510
4511 * jit.c (jit_inferior_init): Reformat forward declaration.
4512
e3d961fe 45132011-07-06 Matt Rice <ratmice@gmail.com>
4514
4515 * MAINTAINERS (Write After Approval): Add myself to the list.
4516
0f3428f0
HZ
45172011-07-06 Hui Zhu <teawater@gmail.com>
4518
4519 * remote.c (remote_start_remote): Add TRY_CATCH for
4520 remote_get_trace_status.
4521 * tracepoint.c (disconnect_tracing): Ditto.
4522
fc9f3a69
TT
45232011-07-05 Tom Tromey <tromey@redhat.com>
4524
4525 * symtab.c (operator_chars): Now static.
4526 * linespec.c (operator_chars): Don't declare.
4527
26e519b9
TJB
45282011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4529
4530 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4531
eb2a6f42
TT
45322011-07-05 Tom Tromey <tromey@redhat.com>
4533
4534 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4535 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4536 (TYPE_CPLUS_REALLY_JAVA): New macro.
4537 * dwarf2read.c (process_structure_scope): Set
4538 TYPE_CPLUS_REALLY_JAVA.
4539
21083d0f 45402011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4541
4542 * ada-lang.c: Fix typos.
4543 * amd64-tdep.c: Likewise.
4544 * breakpoint.c: Likewise.
4545 * cli/cli-decode.c: Likewise.
4546 * findcmd.c: Likewise.
4547 * inline-frame.c: Likewise.
4548 * mi/mi-main.c: Likewise.
4549 * minsyms.c: Likewise.
4550 * monitor.c: Likewise.
4551 * monitor.h: Likewise.
4552 * prologue-value.c: Likewise.
4553 * reverse.c: Likewise.
4554 * s390-tdep.c: Likewise.
4555
3b2a0cf2
JB
45562011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4557
4558 * jit.c (jit_inferior_init): Forward declare.
4559 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4560
efae1d92
JB
45612011-07-04 Joel Brobecker <brobecker@adacore.com>
4562
4563 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4564
6040a59d
JB
45652011-07-04 Tristan Gingold <gingold@adacore.com>
4566
4567 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4568 (tcb_fieldno): Add activation_link field.
4569 (get_known_tasks_addr): Moved and rewritten.
4570 (get_tcb_types_info): Set activation_link field.
4571 (read_known_tasks_array): Add parameter. Rewritten.
4572 (read_known_tasks_list): New function.
4573 (read_known_tasks): New function.
4574 (ada_build_task_list): Call read_known_tasks instead of
4575 read_known_tasks_array.
4576 * ravenscar-thread.c: Add first_task_name constant.
4577 (has_ravenscar_runtime): Check for task list too.
4578
cb741e45
JB
45792011-07-04 Tristan Gingold <gingold@adacore.com>
4580
4581 * ada-tasks.c: Renames fieldno to actb_fieldno.
4582 (ada_get_task_number): Indentation.
4583 (get_tcb_types_info): Remove all parameters. Write directly
4584 the globals.
4585 (ptid_from_atcb_common): Adjust.
4586 (read_atcb): Adjust.
4587
7475b06c
TJB
45882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4589
4590 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4591
15230f37
TJB
45922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4593
4594 * ui-out.c (ui_out_field_core_addr): Mention that the function
4595 description is in the header file.
4596 * ui-out.h (ui_out_field_core_addr): Document function.
4597
65743aba
TJB
45982011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4599
4600 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4601 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4602
c37a5aab
TJB
46032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4604
4605 * symtab.c (expand_line_sal): Remove empty line.
4606
59adf69e
TS
46072011-07-04 Thomas Schwinge <thomas@schwinge.name>
4608
4609 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4610 same way as ELFOSABI_NONE.
4611 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4612
e5dd4106
TJB
46132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4614
4615 * breakpoint.c: Fix typos in comments.
4616 * linespec.c: Likewise.
4617 * symtab.c: Likewise.
4618
d40102a1
JB
46192011-07-04 Joel Brobecker <brobecker@adacore.com>
4620
4621 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4622 section in separate object files.
4623
2f741504
JK
46242011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 Fix false GCC warning.
4627 * linespec.c (decode_line_1): Initialize values.
4628
418c7cf7
JK
46292011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 * linespec.c (find_method): Accept the function type automatically only
4632 if it was specified with parameter types.
4633
3d50dd94
JK
46342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4635
4636 Stop on first linespec terminator instead of eating what we can.
4637 * linespec.c (is_linespec_boundary): New function.
4638 (name_end): Remove function.
4639 (keep_name_info): New parameter on_boundary, replace the body.
4640 (decode_line_1): Provide the parameter to keep_name_info.
4641 (decode_compound): Likewise. Drop the trailing java return type
4642 handling. Twice.
4643
dcf9f4ab
JK
46442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4645
4646 Fall back linespec to minimal symbols.
4647 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4648 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4649 (find_method, symbol_found): Change error to cplusplus_error.
4650
3f542ed1
JK
46512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
bc68c4e5 4653 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4654
900e11f9
JK
46552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4656 Tom Tromey <tromey@redhat.com>
4657
4658 * dwarf2read.c (check_physname): New variable.
4659 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4660 (show_check_physname): New function.
4661 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4662
2301925d
JB
46632011-07-01 Joel Brobecker <brobecker@adacore.com>
4664
4665 * machoread.c (macho_symfile_read): Delete OBE comment.
4666
38947cca
JB
46672011-07-01 Joel Brobecker <brobecker@adacore.com>
4668
4669 * machoread.c (struct macho_oso_data): Delete.
4670 (current_oso): Delete.
4671 (macho_relocate_common_syms): New function, mostly extracted
4672 out of
4673 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4674 Remove code that sets and unset current_oso.
4675 (macho_symfile_relocate): Delete handling of common symbols,
4676 now moved to macho_relocate_common_syms.
4677
a7aa0d73
JB
46782011-07-01 Joel Brobecker <brobecker@adacore.com>
4679
4680 * darwin-nat.c (darwin_ptrace): Add documentation.
4681 Set errno to zero before calling ptrace. If ptrace returns
4682 -1 and errno is zero, then change then return zero.
4683 (darwin_kill_inferior): Issue a warning instead of triggering
4684 a failed assertion when the PT_KILL ptrace operations returned
4685 nonzero.
4686
5e9bc145
JB
46872011-07-01 Joel Brobecker <brobecker@adacore.com>
4688
4689 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4690 only when inf->private->no_ptrace.
4691
00eb2c4a
JB
46922011-07-01 Joel Brobecker <brobecker@adacore.com>
4693
4694 * ada-lang.c (print_it_exception): Print temporary catchpoints
4695 as "Temporary catchpoint".
4696 (print_mention_exception): Likewise.
4697
127c81bc
TT
46982011-07-01 Tom Tromey <tromey@redhat.com>
4699
4700 * jv-lang.c (java_language_defn): Use java_printchar,
4701 java_printstr.
4702 (java_get_encoding): New function.
4703 (java_emit_char): Use generic_emit_char.
4704 (java_printchar): New function.
4705 (java_printstr): Likewise.
4706
25552254
JB
47072011-07-01 Joel Brobecker <brobecker@adacore.com>
4708
4709 * ada-typeprint.c (print_record_type): If unable to decode
4710 the name of the parent type, use the encoded name.
4711
d2d43431
JB
47122011-07-01 Jean-Charles Delay <delay@adacore.com>
4713
4714 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4715 pointer to constrained packed array type output.
4716 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4717 packed array output.
4718
54ae186f
JB
47192011-07-01 Jean-Charles Delay <delay@adacore.com>
4720
4721 * ada-typeprint.c (print_array_type): removed if condition on show
4722 being negative for bounds printing.
4723
8f17729f
JB
47242011-07-01 Joel Brobecker <brobecker@adacore.com>
4725
4726 * ada-lang.c (ada_identical_enum_types_p): New function.
4727 (symbols_are_identical_enums): New function.
4728 (remove_extra_symbols): Do nothing if NSYMS < 2.
4729 Use symbols_are_identical_enums.
4730
f5aa6869
JB
47312011-07-01 Joel Brobecker <brobecker@adacore.com>
4732
4733 * ada-valprint.c (ada_value_print): Handle typedefs.
4734
8f465ea7
JB
47352011-07-01 Joel Brobecker <brobecker@adacore.com>
4736
4737 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4738
828292f2
JB
47392011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4740
4741 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4742 (decode_constrained_packed_array): Likewise.
4743 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4744
18920c42
JB
47452011-07-01 Joel Brobecker <brobecker@adacore.com>
4746
4747 * ada-exp.y (convert_char_literal): Handle typedef types.
4748
c90092fe
JB
47492011-07-01 Joel Brobecker <brobecker@adacore.com>
4750
4751 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4752
f748fb40
TT
47532011-06-30 Tom Tromey <tromey@redhat.com>
4754
4755 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4756 * valops.c (find_overload_match): Call do_cleanups on early exit
4757 path.
4758 * solib.c (solib_find): Call do_cleanups on early exit path.
4759
3bb47e8b
TT
47602011-06-30 Tom Tromey <tromey@redhat.com>
4761
4762 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4763 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4764 return paths. Defer final do_cleanups until last return.
4765 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4766 early return.
4767
4727bad3
TT
47682011-06-30 Tom Tromey <tromey@redhat.com>
4769
4770 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4771
bb361dbf
AB
47722011-06-30 Andrew Burgess <aburgess@broadcom.com>
4773
4774 * MAINTAINERS (Write After Approval): Add myself to the list.
4775
e0d00bc7
JK
47762011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4777
4778 Disable epilogue unwinders on recent GCCs.
4779 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4780 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4781 * dwarf2read.c (process_full_comp_unit): Initialize
4782 EPILOGUE_UNWIND_VALID.
4783 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4784 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4785 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4786
4632c0d0
JK
47872011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4788
4789 Code cleanup - reformatting.
4790 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4791 (producer_is_gcc_ge_4): ... here, change the return value.
4792 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4793 interpretation.
4794
32019081
JK
47952011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4796
4797 Fix non-only rename list for Fortran modules import.
4798 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4799 cp_add_using_directive caller.
4800 (cp_add_using_directive): New parameter excludes, describe it. New
4801 variables ix and param. Compare if also excludes match. Allocate NEW
4802 with variable size, initialize EXCLUDES there.
4803 (cp_lookup_symbol_imports): New variable excludep, test
4804 current->EXCLUDES with it.
4805 * cp-support.h: Include vec.h.
4806 (struct using_direct): New field excludes, describe it.
4807 (DEF_VEC_P (const_char_ptr)): New.
4808 (cp_add_using_directive): New parameter excludes.
4809 * defs.h (const_char_ptr): New typedef.
4810 * dwarf2read.c (read_import_statement): New variables child_die,
4811 excludes and cleanups, read in excludes.
4812 (read_namespace): Adjust the cp_add_using_directive caller.
4813
70c622a3
JK
48142011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4815
4816 Code cleanup.
4817 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4818 negative comparisons.
4819
39c4d40a
TT
48202011-06-29 André Pönitz <andre.poenitz@nokia.com>
4821
4822 * mi/mi-main.c (mi_cmd_list_features): Emit
4823 breakpoint-notifications.
4824
3b2b8fea
TT
48252011-06-29 Tom Tromey <tromey@redhat.com>
4826
4827 PR fortran/10036:
4828 * valprint.h (generic_emit_char, generic_printstr): Declare.
4829 * valprint.c (wchar_printable, append_string_as_wide)
4830 (print_wchar): Move from c-lang.c.
4831 (generic_emit_char): New function; mostly taken from c_emit_char.
4832 (generic_printstr): New function; mostly taken from c_printstr.
4833 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4834 represented as arrays.
4835 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4836 type.
4837 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4838 identically to TYPE_CODE_INT.
4839 * f-lang.c (f_get_encoding): New function.
4840 (f_emit_char): Use generic_emit_char.
4841 (f_printchar): Replace comment.
4842 (f_printstr): Use generic_printstr.
4843 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4844 "character" types specially.
4845 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4846 for Fortran.
4847 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4848 Move to valprint.c
4849 (c_emit_char): Call generic_emit_char.
4850 (c_printstr): Call generic_printstr.
4851
168e6d44
GB
48522011-06-29 Gary Benson <gbenson@redhat.com>
4853
4854 * breakpoint.c (bpstat_what): Removed duplicated case.
4855
1c033f8c
TT
48562011-06-28 Tom Tromey <tromey@redhat.com>
4857
4858 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4859
5fe41fbf
TT
48602011-06-27 Tom Tromey <tromey@redhat.com>
4861
4862 * valops.c (find_overload_match): Call do_cleanups before early
4863 return.
4864 * top.c (execute_command): Call do_cleanups before early return.
4865 (command_loop): Likewise.
4866 * stack.c (backtrace_command): Make a null cleanup early. Don't
4867 conditionally call do_cleanups.
4868 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4869 TRY_CATCH.
4870 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4871 so cleanups are always run.
4872 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4873 * findcmd.c (parse_find_args): Call do_cleanups on early return
4874 path.
4875 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4876 Don't conditionally call do_cleanups.
4877 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4878 later.
4879
e26bd57d
EB
48802011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4881
4882 * MAINTAINERS (Write After Approval): Use default email address.
4883
6c3097fc
JB
48842011-06-27 Joel Brobecker <brobecker@adacore.com>
4885
4886 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4887
369c397b
JB
48882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4889
4890 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4891 saved_regs_mask and copied_regs_mask fields.
4892 (sparc_record_save_insn): New prototype.
4893 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4894 (sparc_record_save_insn): New function.
4895 (sparc_analyze_prologue): Add head comment. Recognize store insns
4896 of call-saved registers. Use OFFSET consistently. Recognize flat
4897 frames and cache their settings.
4898 (sparc32_skip_prologue): Handle flat frames.
4899 (sparc_frame_cache): Add frame_offset to the base address.
4900 (sparc32_frame_cache): Adjust to new frame description.
4901 (sparc32_frame_prev_register): Likewise.
4902 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4903 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4904 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4905 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4906 frame by calling sparc_record_save_insn.
4907 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4908 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4909 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4910
b315ab21
TG
49112011-06-27 Tristan Gingold <gingold@adacore.com>
4912
4913 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4914 field by map_addr and map_len.
4915 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4916 (munmap_section_buffer): Likewise.
4917
ddd49eee
TT
49182011-06-24 Tom Tromey <tromey@redhat.com>
4919
4920 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4921 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4922 * python/python.c (gdbpy_parameter): Make 'arg' const.
4923 (execute_gdb_command): Likewise.
4924 (gdbpy_decode_line): Likewise. Copy it.
4925 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4926 (gdbpy_write): Make 'arg' const.
4927 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4928 const.
4929 (gdbpy_lookup_type): Likewise.
4930 * python/py-prettyprint.c (print_children): Make 'name' const.
4931 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4932 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4933 Py_ssize_t.
4934 * python/py-function.c (fnpy_init): Make 'name' const.
4935 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4936 (gdbpy_string_to_argv): Make 'input' const.
4937 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4938 it.
4939 * gdbtypes.h (lookup_typename): Update.
4940 * gdbtypes.c (lookup_typename): Make 'name' const.
4941 (lookup_struct): Likewise.
4942 (lookup_union): Likewise.
4943 (lookup_enum): Likewise.
4944
5998129b
TT
49452011-06-24 Tom Tromey <tromey@redhat.com>
4946
4947 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4948 gdb_thread_db.h. Move all common/ entries to be together.
4949 (TAGS): Don't depend on DEPFILES.
4950
6e586cc5
YQ
49512011-06-23 Yao Qi <yao@codesourcery.com>
4952
4953 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4954 * remote.c (remote_start_remote): ... here.
4955 * monitor.c (monitor_open): ... here.
4956
86c3c1fc
AB
49572011-06-23 Andrew Burgess <aburgess@broadcom.com>
4958
4959 * gdbtypes.c (append_composite_type_field_aligned): Fix
4960 calculation of bit position based on alignment.
4961
28010a5d
PA
49622011-06-22 Pedro Alves <pedro@codesourcery.com>
4963
4964 * breakpoint.c (bpstat_stop_status): Call the check_status
4965 breakpoint_ops method.
4966 (print_one_breakpoint_location): Also print the condition for Ada
4967 exception catchpoints.
4968 (allocate_bp_location): New, factored out from
4969 allocate_bp_location.
4970 (allocate_bp_location): Adjust. Call the owner breakpoint's
4971 allocate_location method, if there is one.
4972 (free_bp_location): Call the locations's dtor method, if there is
4973 one.
4974 (init_raw_breakpoint_without_location): New breakpoint_ops
4975 parameter. Use it.
4976 (set_raw_breakpoint_without_location): Adjust.
4977 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4978 (set_raw_breakpoint): Adjust.
4979 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4980 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4981 re_set and check_status methods.
4982 (init_catchpoint): Don't memset, initialize thread, addr_string
4983 and enable_state. Pass the ops down to init_raw_breakpoint.
4984 (install_catchpoint): Rename to ...
4985 (install_breakpoint): ... this, and make extern.
4986 (create_fork_vfork_event_catchpoint): Adjust.
4987 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4988 re_set and check_status methods.
4989 (create_syscall_event_catchpoint): Adjust.
4990 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4991 (masked_watchpoint_breakpoint_ops): Install NULL
4992 allocate_location, re_set and check_status methods.
4993 (catch_exec_command_1): Adjust.
4994 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4995 re_set and check_status methods.
4996 (create_ada_exception_breakpoint): Rename to ...
4997 (init_ada_exception_breakpoint): ... this. Add a struct
4998 breakpoint parameter, and delete the exp_string, cond_string and
4999 cond parameters. Use init_raw_breakpoint, and don't install or
5000 mention the breakpoint yet. Don't clear breakpoint fields that
5001 init_raw_breakpoint already clears.
5002 (re_set_breakpoint): Delete, split into ...
5003 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5004 functions.
5005 (breakpoint_re_set_one): Call the breakpoint's
5006 breakpoint_ops->re_set implementation, if there's one. Adjust.
5007 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5008 (struct bp_location_ops): New type.
5009 (struct bp_location): New field `ops'.
5010 (struct breakpoint_ops): New `allocate_location', `re_set' and
5011 `check_status' fields. Make `breakpoint_hit''s description match
5012 reality.
5013 (init_bp_location): Declare.
5014 (breakpoint_re_set_default): Declare.
5015 (create_ada_exception_breakpoint): Rename to ...
5016 (init_ada_exception_breakpoint): ... this. Add a struct
5017 breakpoint parameter, and delete the exp_string, cond_string and
5018 cond parameters.
5019 (install_breakpoint): Declare.
5020 * ada-lang.c: Include exceptions.h.
5021 <Ada exceptions description>: Update.
5022 (struct ada_catchpoint_location): New type.
5023 (ada_catchpoint_location_dtor): New function.
5024 (ada_catchpoint_location_ops): New global.
5025 (ada_catchpoint): New type.
5026 (create_excep_cond_exprs): New function.
5027 (dtor_exception, allocate_location_exception, re_set_exception)
5028 (should_stop_exception, check_status_exception): New functions.
5029 (print_one_exception, print_mention_exception)
5030 (print_recreate_exception): Adjust.
5031 (dtor_catch_exception, allocate_location_catch_exception)
5032 (re_set_catch_exception, check_status_catch_exception): New
5033 functions.
5034 (catch_exception_breakpoint_ops): Install them.
5035 (dtor_catch_exception_unhandled)
5036 (allocate_location_catch_exception_unhandled)
5037 (re_set_catch_exception_unhandled)
5038 (check_status_catch_exception_unhandled): New functions.
5039 (catch_exception_unhandled_breakpoint_ops): Install them.
5040 (dtor_catch_assert, allocate_location_catch_assert)
5041 (re_set_catch_assert, check_status_catch_assert): New functions.
5042 (catch_assert_breakpoint_ops): Install them.
5043 (ada_exception_catchpoint_p): Delete.
5044 (catch_ada_exception_command_split)
5045 (ada_exception_catchpoint_cond_string): Rename exp_string
5046 parameter to excep_string. Adjust.
5047 (ada_parse_catchpoint_condition): Delete.
5048 (ada_exception_sal): Rename the exp_string parameter to
5049 excep_string. Delete the cond_string and cond parameters.
5050 Adjust.
5051 (ada_decode_exception_location): Rename the exp_string parameter
5052 to excep_string. Delete the cond_string and cond parameters.
5053 Adjust.
5054 (create_ada_exception_catchpoint): New function.
5055 (catch_ada_exception_command, ada_decode_assert_location)
5056 (catch_assert_command): Adjust.
5057 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5058
9ac4176b
PA
50592011-06-22 Pedro Alves <pedro@codesourcery.com>
5060
5061 * ada-lang.c: Include arch-utils.h.
5062 (ada_decode_exception_location): Make static.
5063 (catch_ada_exception_command): Moved here from breakpoint.c.
5064 (ada_decode_assert_location): Make static.
5065 (catch_assert_command): Moved here from breakpoint.c.
5066 (_initialize_ada_lang): Install the exception and assert
5067 catchpoint commands here.
5068 * ada-lang.h (ada_decode_exception_location)
5069 (ada_decode_assert_location): Delete declarations.
5070 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5071 breakpoint.h.
5072 (create_ada_exception_breakpoint): Make extern.
5073 (catch_ada_exception_command, catch_assert_command): Moved to
5074 ada-lang.c.
5075 (add_catch_command): Make extern.
5076 (_initilize_breakpoint): Don't install the exception and assert
5077 catchpoint commands here.
5078 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5079 breakpoint.c
5080 (add_catch_command, create_ada_exception_breakpoint): Declare.
5081
c56053d2
PA
50822011-06-22 Pedro Alves <pedro@codesourcery.com>
5083
5084 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5085 the breakpoint to the breakpoint chain here.
5086 (set_raw_breakpoint_without_location): Add the breakpoint to the
5087 breakpoint chain here.
5088 (init_raw_breakpoint): Adjust comments.
5089 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5090 here.
5091 (init_catchpoint): Don't set the catchpoint's breakpoint number
5092 here.
5093 (install_catchpoint): New function.
5094 (create_fork_vfork_event_catchpoint)
5095 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5096 use install_catchpoint.
5097
d2f3fc74
PA
50982011-06-22 Pedro Alves <pedro@codesourcery.com>
5099
5100 * breakpoint.c (create_catchpoint_without_mention)
5101 (create_catchpoint): Delete.
5102
b4d90040
PA
51032011-06-22 Pedro Alves <pedro@codesourcery.com>
5104
5105 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5106 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5107 reference to exec_pathname.
5108 (struct exec_catchpoint): New type.
5109 (dtor_catch_exec): New function.
5110 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5111 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5112 (catch_exec_command_1): Adjust to use init_catchpoint.
5113 (delete_breakpoint): Remove reference to exec_pathname.
5114
be5c67c1
PA
51152011-06-22 Pedro Alves <pedro@codesourcery.com>
5116
5117 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5118 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5119 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5120 reference to syscalls_to_be_caught.
5121 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5122 NULL `dtor'.
5123 (struct syscall_catchpoint): New type.
5124 (dtor_catch_syscall): New function.
5125 (insert_catch_syscall, remove_catch_syscall)
5126 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5127 (print_recreate_catch_syscall): Adjust.
5128 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5129 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5130 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5131 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5132 (masked_watchpoint_breakpoint_ops)
5133 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5134 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5135 there is one. Remove references to syscalls_to_be_caught.
5136 (catching_syscall_number): Adjust.
5137 * ada-lang.c (catch_exception_breakpoint_ops)
5138 (catch_exception_unhandled_breakpoint_ops)
5139 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5140
e29a4733
PA
51412011-06-22 Pedro Alves <pedro@codesourcery.com>
5142
5143 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5144 field.
5145 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5146 reference to forked_inferior_pid.
5147 (struct fork_catchpoint): New type.
5148 (breakpoint_hit_catch_fork, print_it_catch_fork)
5149 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5150 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5151 (create_fork_vfork_event_catchpoint): Adjust to use
5152 init_catchpoint.
5153
346774a9
PA
51542011-06-22 Pedro Alves <pedro@codesourcery.com>
5155
5156 * breakpoint.c (add_to_breakpoint_chain)
5157 (init_raw_breakpoint_without_location): New functions, factored
5158 out from ...
5159 (set_raw_breakpoint_without_location): ... this one.
5160 (init_raw_breakpoint): New function, factored out from
5161 set_raw_breakpoint and adjusted to use
5162 init_raw_breakpoint_without_location.
5163 (set_raw_breakpoint): Adjust.
5164 (init_catchpoint): New function, factored out from
5165 create_catchpoint_without_mention and adjusted to use
5166 init_raw_breakpoint.
5167 (create_catchpoint_without_mention): Adjust.
5168
c38c4bc5
TT
51692011-06-22 Tom Tromey <tromey@redhat.com>
5170
5171 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5172 argument of 0 specially.
5173
b138ce37
YQ
51742011-06-22 Yao Qi <yao@codesourcery.com>
5175
5176 * infrun.c (handle_inferior_event): Remove write-only local variable
5177 `sw_single_step_trap_p'.
5178
03de6823
TT
51792011-06-20 Tom Tromey <tromey@redhat.com>
5180
5181 * symtab.c (lookup_language_this): End loop if block is NULL.
5182
66a17cb6
TT
51832011-06-17 Tom Tromey <tromey@redhat.com>
5184
5185 * valops.c (value_of_this): Use lookup_language_this.
5186 * symtab.h (lookup_language_this): Declare.
5187 * symtab.c (lookup_language_this): New function.
5188 (lookup_symbol_aux): Use lookup_language_this.
5189 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5190
7518bff5
TT
51912011-06-17 Tom Tromey <tromey@redhat.com>
5192
5193 * value.h (value_of_this): Update.
5194 (value_of_local): Remove.
5195 * valops.c (value_of_this): Rename from value_of_local. Change
5196 parameters.
5197 * p-exp.y (exp): Update.
5198 (variable): Likewise.
5199 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5200
aee28ec6
TT
52012011-06-17 Tom Tromey <tromey@redhat.com>
5202
5203 * valops.c (value_of_local): Complain if NAME is NULL.
5204 * std-operator.def (OP_OBJC_SELF): Remove.
5205 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5206 * objc-exp.y (name_not_typename): Use OP_THIS.
5207 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5208 name for "this".
5209 <OP_OBJC_SELF>: Remove.
5210 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5211
eed8f803
TG
52122011-06-16 Tristan Gingold <gingold@adacore.com>
5213
5214 * python/py-events.h (gdb_py_events): Make it extern.
5215 * python/py-evtregistry.c (gdb_py_events): Declare.
5216
864ac8a7
HZ
52172011-06-16 Hui Zhu <teawater@gmail.com>
5218
5219 * remote.c (remote_trace_set_readonly_regions): Add check for
5220 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5221 output warning.
5222
ef7e8358
UW
52232011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5224
5225 * arm-linux-tdep.c: Include "auxv.h".
5226 (AT_HWCAP): Define.
5227 (ARM_LINUX_SIZEOF_VFP): Define.
5228 (arm_linux_supply_vfp): New function.
5229 (arm_linux_collect_vfp): Likewise.
5230 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5231 (arm_linux_fpa_regset_sections): New variable.
5232 (arm_linux_vfp_regset_sections): Likewise.
5233 (arm_linux_core_read_description): New function.
5234 (arm_linux_init_abi): Install arm_linux_core_read_description and
5235 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5236 appropriate for the architecture.
5237 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5238 (tdesc_arm_with_m): Declare.
5239 (tdesc_arm_with_iwmmxt): Likewise.
5240 (tdesc_arm_with_vfpv2): Likewise.
5241 (tdesc_arm_with_vfpv3): Likewise.
5242 (tdesc_arm_with_neon): Likewise.
5243 * arm-linux-nat.c: Move features/*.c includes ...
5244 * arm-tdep.c: ... here.
5245 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5246 target description data structures ...
5247 * arm-tdep.c (_initialize_arm_tdep): ... here.
5248 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5249 HWCAP_VFPv3D16): Move definitions ...
5250 * arm-linux-tdep.h: ... here.
5251
c2fa21f1
HZ
52522011-06-15 Hui Zhu <teawater@gmail.com>
5253
5254 * remote.c (remote_trace_set_readonly_regions): Add a check for
5255 target_buf_size.
5256
dd707e8e
TT
52572011-06-14 Tom Tromey <tromey@redhat.com>
5258
5259 * coffread.c (coffread_objfile): Rename from current_objfile.
5260 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5261 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5262
86cc0029
TT
52632011-06-14 Tom Tromey <tromey@redhat.com>
5264
5265 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5266 (class_symtab): Remove.
5267 (jv_dynamics_progspace_key): New global.
5268 (jv_per_objfile_free): Reset program space data. Update assert.
5269 Don't clear globals.
5270 (get_dynamics_objfile): Use and set program space data.
5271 (get_java_class_symtab): Use get_dynamics_objfile.
5272 (add_class_symbol): Likewise.
5273 (java_link_class_type): Likewise.
5274 (java_object_type, jv_clear_object_type, set_java_object_type):
5275 Remove.
5276 (get_java_object_type): Update. Don't cache result.
5277 (is_object_type): Don't call set_java_object_type.
5278 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5279 initialize jv_dynamics_progspace_key.
5280
91a81f69
TT
52812011-06-14 Tom Tromey <tromey@redhat.com>
5282
5283 * symtab.h (current_objfile): Don't declare.
5284 * objfiles.h (current_objfile): Don't declare.
5285 * objfiles.c (current_objfile): Remove.
5286 * mdebugread.c (current_objfile): New file-scope global.
5287 * dbxread.c (current_objfile): New file-scope global.
5288 * coffread.c (current_objfile): New file-scope global.
5289
dc7eb48e
PA
52902011-06-13 Pedro Alves <pedro@codesourcery.com>
5291
5292 * top.h (line): Rename to ...
5293 (saved_command_line): ... this.
5294 (linesize): Rename to ...
5295 (saved_command_line_size): ... this.
5296 * top.c (line): Rename to ...
5297 (saved_command_line): ... this.
5298 (linesize): Rename to ...
5299 (saved_command_line_size): ... this.
5300 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5301 * event-top.c (command_line_handler): Adjust.
5302 * main.c (captured_main): Adjust.
5303
0d6c2135
MK
53042011-06-12 Mark Kettenis <kettenis@gnu.org>
5305
5306 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5307 get_frame_func instead of get_frame_pc to determine the code
5308 address used to construct the frame ID.
5309 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5310 (i386_epilogue_frame_this_id): Likewise.
5311 (i386_epilogue_frame_prev_register): New function.
5312 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5313 (i386_stack_tramp_frame_sniffer): Fix coding style.
5314 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5315 (i386_gdbarch_init): Fix comments.
5316
8bbdd3f4
MK
53172011-06-12 Mark Kettenis <kettenis@gnu.org>
5318
5319 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5320 instruction when walking back through the instruction stream.
5321
533a737e
JK
53222011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5323
5324 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5325 fullname parameters order.
5326
44b13c5a
JK
53272011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5328
5329 Code cleanup.
5330 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5331 for fun.
5332 * psymtab.c (map_symbol_filenames_psymtab)
5333 (map_partial_symbol_filenames): Likewise.
5334 * psymtab.h: Include symfile.h.
5335 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5336 * symfile.h (symbol_filename_ftype): New.
5337 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5338 map_symbol_filenames, clarify more the naming in comment.
5339
0b5574da
DE
53402011-06-07 Doug Evans <dje@google.com>
5341
5342 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5343 Look for ../../gdb, for fullname.exp.
0b5574da 5344
5be4dfca
JK
53452011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5346 Pedro Alves <pedro@codesourcery.com>
5347
5348 * cli/cli-cmds.c (shell_escape): Use waitpid.
5349 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5350
316a8b21
TG
53512011-06-07 Tristan Gingold <gingold@adacore.com>
5352
5353 * xcoffread.c (dwarf2_xcoff_names): New variable.
5354 (aix_process_linenos): Add a guard.
5355 (xcoff_symfile_finish): Free dwarf2.
5356 (xcoff_initial_scan): Add dwarf2 support.
5357
3dd5b83d
PA
53582011-06-06 Pedro Alves <pedro@codesourcery.com>
5359
5360 * infcall.c (run_inferior_call): Don't mask async. Instead force
5361 a synchronous wait, if the target can async.
5362
5363 * target.h (struct target_ops): Delete to_async_mask.
5364 (target_async_mask): Delete.
5365 * target.c (update_current_target): Delete references to to_async_mask.
5366 * linux-nat.c (linux_nat_async_mask_value): Delete.
5367 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5368 to linux_nat_async_mask_value.
5369 (linux_nat_async_mask): Delete.
5370 (linux_nat_async, linux_nat_close): Remove references to
5371 linux_nat_async_mask_value.
5372 * record.c (record_async_mask_value): Delete.
5373 (record_async): Remove references to record_async_mask_value.
5374 (record_async_mask): Delete.
5375 (record_can_async_p, record_is_async_p): Remove references to
5376 record_async_mask_value.
5377 (init_record_ops, init_record_core_ops): Remove references to
5378 record_async_mask.
5379 * remote.c (remote_async_mask_value): Delete.
5380 (init_remote_ops): Remove reference to remote_async_mask.
5381 (remote_can_async_p, remote_is_async_p): Remove references to
5382 remote_async_mask_value.
5383 (remote_async): Remove references to remote_async_mask_value.
5384 (remote_async_mask): Delete.
5385
5386 * infrun.c (fetch_inferior_event): Don't claim registers changed
5387 if the current thread is already not executing.
5388
64b9b334
JB
53892011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5390
5391 From Stephen Kitt <steve@sk2.org>
5392 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5393 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5394
325663dc
JB
53952011-06-03 Joel Brobecker <brobecker@adacore.com>
5396
5397 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5398 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5399
8cf64490
TT
54002011-06-03 Tom Tromey <tromey@redhat.com>
5401
5402 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5403 code fields.
5404 * python/py-exitedevent.c (create_exited_event_object): Change
5405 type of 'exit_code'. Optionally add exit_code attribute.
5406 (emit_exited_event): Change type of 'exit_code'.
5407 * python/py-event.h (emit_exited_event): Update.
5408 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5409 * infrun.c (handle_inferior_event): Set exit code fields on
5410 inferior.
5411 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5412 fields.
5413 * inferior.c (exit_inferior_1): Initialize new fields.
5414
8ddd9a20
TT
54152011-06-03 Tom Tromey <tromey@redhat.com>
5416
5417 * dwarf2expr.c (get_signed_type): New function.
5418 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5419
8dfd1e6d
KS
54202011-06-02 Keith Seitz <keiths@redhat.com>
5421
5422 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5423
65fdb766
PA
54242011-06-02 Pedro Alves <pedro@codesourcery.com>
5425
5426 * top.h (simplified_command_loop): Delete declaration.
5427
f4b8c29b
MF
54282011-06-01 Mike Frysinger <vapier@gentoo.org>
5429
5430 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5431 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5432
1706c199
YQ
54332011-06-01 Yao Qi <yao@codesourcery.com>
5434
5435 * objfiles.h (obj_section_addr): Update reference to objfile from
5436 `abfd' to `obfd'.
5437 (obj_section_endaddr): Likewise.
5438
d19cd713 54392011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5440
5441 * MAINTAINERS: Update my email address and affiliation. Also
5442 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5443
e8eb7bc5
KS
54442010-05-31 Keith Seitz <keiths@redhat.com>
5445
5446 PR c++/12750
5447 * linespec.c (get_search_block): New function.
5448 (find_methods): Add FILE_SYMTATB parameter and use it and
5449 get_search_block to pass an appropriate block to
5450 lookup_symbol_in_namespace.
5451 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5452 Check if *ARGPTR starts with a filename first.
5453 If it does, call locate_first_half again to locate the next
5454 "first half" of the linespec.
5455 Pass FILE_SYMTATB to decode_objc and decode_compound.
5456 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5457 (locate_first_half): Stop on the first colon seen.
5458 (decode_compound): Add FILE_SYMTAB parameter.
5459 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5460 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5461 get_search_block with lookup_symbol.
5462 (find_method): Add FILE_SYMTAB parameter and pass it to
5463 find_methods.
5464 (decode_objc): Use get_search_block.
5465
2b1dbab0
KS
54662010-05-31 Keith Seitz <keiths@redhat.com>
5467
5468 PR symtab/12704
5469 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5470 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5471 and CP_ANONYMOUS_NAMESPACE_LEN.
5472 (cp_is_anonymous): Likewise.
5473 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5474 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5475 * dwarf2read.c (namespace_name): Likewise.
5476 (fixup_partial_die): Likewise.
5477 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5478 seen in the input, keep it.
5479
6d549500
PA
54802011-05-30 Pedro Alves <pedro@codesourcery.com>
5481
5482 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5483 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5484 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5485 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5486 * remote.c (_initialize_remote): Register
5487 async_remote_interrupt_twice directly as
5488 sigint_remote_twice_token event.
5489
395bff70
PA
54902011-05-30 Pedro Alves <pedro@codesourcery.com>
5491
5492 * target.h (enum inferior_event_type): Delete INF_ERROR.
5493 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5494
97224164
PA
54952011-05-30 Pedro Alves <pedro@codesourcery.com>
5496
5497 * interps.c (interp_set): Don't cancel continuations.
5498
07e78767
JK
54992011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5500
5501 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5502
fa4cd53f
PA
55032011-05-30 Pedro Alves <pedro@codesourcery.com>
5504
5505 * continuations.h (continuation_ftype): Add `err' parameter.
5506 Document parameters.
5507 (do_all_continuations, do_all_continuations_thread)
5508 (do_all_intermediate_continuations)
5509 (do_all_intermediate_continuations_thread)
5510 (do_all_inferior_continuations): Add `err' parameter.
5511 * continuations.c (do_my_continuations_1, do_my_continuations)
5512 (do_all_inferior_continuations, do_all_continuations_ptid)
5513 (do_all_continuations_thread_callback)
5514 (do_all_continuations_thread, do_all_continuations)
5515 (do_all_intermediate_continuations_thread_callback)
5516 (do_all_intermediate_continuations_thread)
5517 (do_all_intermediate_continuations): Add `err' parameter, and pass
5518 it down all the way to the continuations proper.
5519 * inf-loop.c (inferior_event_handler): If fetching an inferior
5520 event throws an error, don't pop the target, and still call the
5521 continuations, but with `err' set. Adjust all other continuation
5522 calls.
5523 * breakpoint.c (until_break_command_continuation): Add `err'
5524 parameter.
5525 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5526 issue another step if `err' is set.
5527 (struct until_next_continuation_args): New.
5528 (until_next_continuation): Add `err' parameter. Adjust.
5529 (until_next_command): Adjust.
5530 (struct finish_command_continuation_args): Add `thread' field.
5531 (finish_command_continuation): Add `err' parameter. Handle it.
5532 (finish_forward): Adjust.
5533 (attach_command_continuation): Add `err' parameter. Handle it.
5534 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5535 cancel the continuations.
5536 * interps.c (interp_set): Adjust to cancel the continuations.
5537 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5538 continuations rather than discarding.
5539 (free_thread): Don't clear thread inferior resources here.
5540 (delete_thread_1): Do it here instead. And do it before removing
5541 the thread from the threads list. Tag the thread as exited before
5542 clearing thread inferior resources.
5543
c2949be0
JB
55442011-05-30 Joel Brobecker <brobecker@adacore.com>
5545
5546 * infcall.c (call_function_by_hand): Rephrase error message.
5547
619cebe8
PA
55482011-05-27 Pedro Alves <pedro@codesourcery.com>
5549
5550 * defs.h (struct thread_info, struct inferior): Delete forward
5551 declarations.
5552 * breakpoint.h (struct thread_info): New forward declaration.
5553 * observer.sh (struct inferior): New forward declaration.
5554 * python/python-internal.h (struct inferior): New forward
5555 declaration.
5556
be34f849
PA
55572011-05-27 Pedro Alves <pedro@codesourcery.com>
5558
5559 * defs.h (struct continuation, continuation_ftype)
5560 (continuation_free_arg_ftype, add_continuation)
5561 (do_all_continuations, do_all_continuations_thread)
5562 (discard_all_continuations, discard_all_continuations_thread)
5563 (add_intermediate_continuation, do_all_intermediate_continuations)
5564 (do_all_intermediate_continuations_thread)
5565 (discard_all_intermediate_continuations)
5566 (discard_all_intermediate_continuations_thread)
5567 (add_inferior_continuation, do_all_inferior_continuations)
5568 (discard_all_inferior_continuations): Move to ...
5569 * continuations.h: ... this new file.
5570 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5571 infcmd.c, inferior.c, infrun.c, interps.c: Include
5572 continuations.h.
5573
432b4d03
JK
55742011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5575 Doug Evans <dje@google.com>
5576
5577 Fix PR 10970, PR 12702.
5578 * linux-nat.c (linux_lwp_is_zombie): New function.
5579 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5580 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5581
b0f260d6
PA
55822011-05-27 Pedro Alves <pedro@codesourcery.com>
5583
5584 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5585 typedefs.
5586 (add_continuation, add_intermediate_continuation)
5587 (add_inferior_continuation): Use them.
5588 * continuations.c (struct continuation): Use them.
5589 (make_continuation_ftype): Delete.
5590 (make_continuation, add_inferior_continuation, add_continuation)
5591 (add_intermediate_continuation): Use continuation_ftype and
5592 continuation_free_arg_ftype. Rename parameters to shorter names.
5593
af1e9a32
PA
55942011-05-27 Pedro Alves <pedro@codesourcery.com>
5595
5596 * continuations.c (make_continuation): Make it return void.
5597 (do_my_continuations): Rename to ...
5598 (do_my_continuations_1): ... this. Remove old_chain parameter and
5599 adjust.
5600 (do_my_continuations): New.
5601 (discard_my_continuations): Rename to ...
5602 (discard_my_continuations_1): ... this. Remove old_chain
5603 parameter and adjust.
5604 (discard_my_continuations): New.
5605 (add_inferior_continuation): Simplify.
5606 (do_all_inferior_continuations): Reimplement on top
5607 do_my_continuations.
5608 (discard_all_inferior_continuations): Simplify.
5609 (add_continuation): Simplify.
5610 (do_all_continuations_ptid): Simplify.
5611 (discard_all_continuations_thread_callback): Simplify.
5612 (add_intermediate_continuation): Simplify.
5613 (discard_all_intermediate_continuations_thread_callback):
5614 Simplify.
5615
50c0c017
PA
56162011-05-27 Pedro Alves <pedro@codesourcery.com>
5617
5618 * utils.c (struct continuation, add_continuation)
5619 (add_inferior_continuation)
5620 (do_all_inferior_continuations, discard_all_inferior_continuations)
5621 (restore_thread_cleanup, do_all_continuations_ptid)
5622 (do_all_continuations_thread_callback)
5623 (do_all_continuations_thread, do_all_continuations)
5624 (discard_all_continuations_thread_callback)
5625 (discard_all_continuations_thread, discard_all_continuations)
5626 (add_intermediate_continuation)
5627 (do_all_intermediate_continuations_thread_callback)
5628 (do_all_intermediate_continuations_thread)
5629 (do_all_intermediate_continuations)
5630 (discard_all_intermediate_continuations_thread_callback)
5631 (discard_all_intermediate_continuations_thread)
5632 (discard_all_intermediate_continuations): Move to ...
5633 * continuations.c: ... this new file, and adjust to no longer
5634 implement continuations on top of cleanups.
5635 * Makefile.in (SFILES): Add continuations.c.
5636 (COMMON_OBS): Add continuations.o.
5637
d8b34453
PA
56382011-05-26 Pedro Alves <pedro@codesourcery.com>
5639
5640 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5641 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5642 Internal error on invalid values.
5643 * reverse.c: Don't handle EXEC_ERROR.
5644 * mi/mi-main.c: Don't handle EXEC_ERROR.
5645
32231432
PA
56462011-05-26 Pedro Alves <pedro@codesourcery.com>
5647
5648 * record.c: Include event-loop.h, inf-loop.h.
5649 (record_beneath_to_async): New global.
5650 (tmp_to_async): New global.
5651 (record_async_inferior_event_token): New global.
5652 (record_open_1): Don't error out if async is enabled.
5653 (record_open): Handle to_async. Create an async event source in
5654 the event loop.
5655 (record_close): Delete the async event source.
5656 (record_resumed): New global.
5657 (record_execution_dir): New global.
5658 (record_resume, record_core_resume): Set them. Register the
5659 target on the event loop.
5660 (record_wait): Rename to ...
5661 (record_wait_1): ... this. Add more debug output. Handle
5662 TARGET_WNOHANG, and the target beneath returning
5663 TARGET_WAITKIND_IGNORE.
5664 (record_wait): Reimplement on top of record_wait_1.
5665 (record_async_mask_value): New global.
5666 (record_async, record_async_mask, record_can_async_p)
5667 (record_is_async_p, record_execution_direction): New functions.
5668 (init_record_ops, init_record_core_ops): Install new methods.
5669 * infrun.c (fetch_inferior_event): Temporarily switch the global
5670 execution direction to the direction the target was going.
5671 (execution_direction): Change type to int.
5672 * target.c (default_execution_direction): New function.
5673 (update_current_target): Inherit and de_fault
5674 to_execution_direction.
5675 * target.h (struct target_ops) <to_execution_direction>: New
5676 field.
5677 (target_execution_direction): New macro.
5678 * inferior.h (execution_direction): Change type to int.
5679
949dc678
PA
56802011-05-26 Pedro Alves <pedro@codesourcery.com>
5681
5682 * infcall.c (call_function_by_hand): Don't allow calling functions
5683 in reverse execution mode.
5684
c13bd2b5
PA
56852011-05-26 Pedro Alves <pedro@codesourcery.com>
5686
5687 * infcmd.c (finish_command): Allow async finish in reverse.
5688
6938fd34
YQ
56892011-05-26 Yao Qi <yao@codesourcery.com>
5690
5691 * gdb_thread_db.h: Delete. Move to ...
5692 * common/gdb_thread_db.h: ... here.
5693
9da8c2a0
PA
56942011-05-26 Pedro Alves <pedro@codesourcery.com>
5695
5696 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5697 function's entry point instead of a manually managed momentary
5698 breakpoint, and only ever issue one proceed call.
5699 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5700 doing a reverse-finish, switch to stepi mode, to do another step.
5701 (insert_step_resume_breakpoint_at_sal): Make public.
5702 (normal_stop): No need to save function value return registers if
5703 going reverse.
5704 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5705
2c03e5be
PA
57062011-05-26 Pedro Alves <pedro@codesourcery.com>
5707
5708 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5709 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5710 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5711 at the end.
5712 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5713 step-resume breakpoints.
5714 (print_it_typical): Handle bp_hp_step_resume.
5715 (bpstat_what): Ditto.
5716 (bptype_string): Ditto.
5717 (print_one_breakpoint_location): Ditto.
5718 (allocate_bp_location): Ditto.
5719 (mention): Ditto.
5720 (breakpoint_re_set_one): Ditto.
5721 * infrun.c (handle_inferior_event): Adjust. Split
5722 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5723 BPSTAT_WHAT_HP_STEP_RESUME.
5724 (insert_step_resume_breakpoint_at_sal): Rename to ...
5725 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5726 parameter. Handle it.
5727 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5728 insert_step_resume_breakpoint_at_sal_1.
5729 (insert_step_resume_breakpoint_at_frame): Rename to ...
5730 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5731 set a high-priority step-resume breakpoint.
5732 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5733 (insert_step_resume_breakpoint_at_caller): Ditto.
5734
51be5b68
PA
57352011-05-26 Pedro Alves <pedro@codesourcery.com>
5736
5737 * breakpoint.c (iterate_over_related_breakpoints): New.
5738 (do_map_delete_breakpoint): New.
5739 (delete_command): Pass do_map_delete_breakpoint to
5740 map_breakpoint_numbers.
5741 (do_disable_breakpoint): New.
5742 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5743 breakpoints.
5744 (do_enable_breakpoint): Rename to ...
5745 (enable_breakpoint_disp): ... this.
5746 (enable_breakpoint): Adjust.
5747 (do_enable_breakpoint): New.
5748 (enable_once_breakpoint): Delete.
5749 (do_map_enable_breakpoint): New.
5750 (do_map_enable_once_breakpoint): New.
5751 (enable_once_command, enable_delete_command)
5752 (delete_trace_command): Iterate over the breakpoint's related
5753 breakpoints.
5754
4a1be8d2
PA
57552011-05-26 Pedro Alves <pedro@codesourcery.com>
5756
5757 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5758 for ALPHA_ZERO_REGNUM.
5759 (alpha_supply_int_regs): Explicitly supply zero as the value for
5760 ALPHA_ZERO_REGNUM in the register cache.
5761 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5762
59d70315
YQ
57632011-05-26 Yao Qi <yao@codesourcery.com>
5764
5765 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5766
251d32d9
TG
57672011-05-26 Tristan Gingold <gingold@adacore.com>
5768
5769 * symfile.h (struct dwarf2_section_names): New type.
5770 (struct dwarf2_debug_sections): New type.
5771 (dwarf2_has_info): Add parameter.
5772 * dwarf2read.c (dwarf2_elf_names): New variable.
5773 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5774 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5775 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5776 (dwarf2_has_info): Add names parameter. Pass names
5777 to dwarf2_locate_sections.
5778 (section_is_p): Rewrite using the names parameter.
5779 (dwarf2_locate_sections): Use section names from the names parameter.
5780 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5781 * elfread.c (read_psyms): Ditto.
5782 * machoread.c (macho_symfile_read): Ditto.
5783
652c71b4
AS
57842011-05-25 Andreas Schwab <schwab@redhat.com>
5785
5786 PR gdb/8677
5787 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5788
f17170e5
KS
57892011-05-24 Keith Seitz <keiths@redhat.com>
5790
5791 PR breakpoint/12803
5792 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5793 (decode_compound): Unconditionally call keep_name_info.
5794
cdac0397
PA
57952011-05-24 Pedro Alves <pedro@codesourcery.com>
5796
5797 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5798 scope, clear its command list.
5799 (map_breakpoint_numbers): Don't walk the related breakpoints list
5800 of each breakpoint.
5801
91d4fe3f
TT
58022011-05-24 Tom Tromey <tromey@redhat.com>
5803
5804 * MAINTAINERS: Move Jim Blandy to past maintainers.
5805
3017a003
TG
58062011-05-24 Tristan Gingold <gingold@adacore.com>
5807
5808 * symfile.h (enum dwarf2_section_enum): New type.
5809 (dwarf2_get_section_info): New prototype.
5810 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5811 section_name by sect. Use a switch to select the info.
5812 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5813 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5814
c91c8c16
PA
58152011-05-24 Pedro Alves <pedro@codesourcery.com>
5816
5817 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5818 shared library event breakpoint if there's no execution.
5819
77bc418a
TJB
58202011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5821
5822 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5823 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5824
c50491a7
TT
58252011-05-23 Tom Tromey <tromey@redhat.com>
5826
5827 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5828 NULL.
5829
6d64e6d4
DE
58302011-05-23 Doug Evans <dje@google.com>
5831
5832 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5833 entry for RuntimeError to doc string.
5834
2067c8d4
JG
58352011-05-23 Jerome Guitton <guitton@adacore.com>
5836
5837 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5838 sequence for probing loops.
5839
b136cd05
PA
58402011-05-23 Pedro Alves <pedro@codesourcery.com>
5841
5842 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5843 comment.
5844
22e74ef9
MK
58452011-05-21 Mark Kettenis <kettenis@gnu.org>
5846
5847 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5848 zero as the value for %g0 in the register cache.
5849 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5850 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5851
842951eb
PA
58522011-05-20 Pedro Alves <pedro@codesourcery.com>
5853
5854 * infrun.c (proceed): Set previous_inferior_ptid here.
5855 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5856 inferior_ptid, not null_ptid.
5857 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5858 (fetch_inferior_event): Nor here.
5859
46cf51e6
PA
58602011-05-20 Pedro Alves <pedro@codesourcery.com>
5861
5862 * inf-loop.c (inferior_event_handler): Only output a message if
5863 verbose.
5864
29ef4c46
LM
58652011-05-20 Luis Machado <lgustavo@codesourcery.com>
5866
5867 * MAINTAINERS: Update my e-mail address.
5868
f148b27e
PA
58692011-05-20 Pedro Alves <pedro@codesourcery.com>
5870
5871 * infrun.c (proceed): Switch the inferior event loop to
5872 INF_EXEC_COMPLETE if the target refused to resume from a
5873 vfork/fork.
5874
09cee04b
PA
58752011-05-20 Pedro Alves <pedro@codesourcery.com>
5876
5877 * infcmd.c: Include "inf-loop.h".
5878 (step_once): When stepping into an inline subroutine, pretend the
5879 target has run. If the target can async, switch the inferior
5880 event loop to INF_EXEC_COMPLETE.
5881 * inferior.h (user_visible_resume_ptid): Declare.
5882 * infrun.c (user_visible_resume_ptid): New function, factored out
5883 from `resume'.
5884 (resume): Use it.
5885 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5886 that the current thread is running. Merge async and sync
5887 branches.
5888
751b8ce1
PA
58892011-05-20 Pedro Alves <pedro@codesourcery.com>
5890
5891 * infcmd.c (step_1): Simplify synchronous case.
5892
e93a69ed
PA
58932011-05-20 Pedro Alves <pedro@codesourcery.com>
5894
5895 * tracepoint.c: Include exceptions.h.
5896 (TFILE_PID): Move higher in file.
5897 (tfile_open): Delay pushing the tfile target until we're assured
5898 the tfile header is present in the file. Wrap reading the initial
5899 newline-terminated lines in TRY_CATCH. Pop the target if the
5900 initial setup failed. Add the tfile's thread immediately
5901 aftwards, before any non-essential setup. Don't skip
5902 post_create_inferior if there are no traceframes present in the
5903 file.
5904 (tfile_close): Remove redundant check for null before xfree call.
5905 (tfile_thread_alive): New function.
5906 (init_tfile_ops): Register it as to_thread_alive callback.
5907
6823e2b1
PA
59082011-05-20 Pedro Alves <pedro@codesourcery.com>
5909
5910 * tracepoint.c (tfile_open): Delete #if 0'd code.
5911
b3c8eb43
JK
59122011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 Fix -readnow for -gdwarf-4 unused type units.
5915 * dwarf2read.c (struct signatured_type): Remove the field offset.
5916 (create_signatured_type_table_from_index): Remove its initialization.
5917 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5918 instead. Add a complaint call.
5919 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5920 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5921 (lookup_signatured_type_at_offset, read_signatured_type)
5922 (write_one_signatured_type): Update the field for per_cu.
5923
310afc76
TT
59242011-05-19 Tom Tromey <tromey@redhat.com>
5925
5926 * python/py-inferior.c (python_inferior_exit): Use
5927 target_gdbarch.
5928 (python_on_resume): Likewise.
5929
cf6c5ffb
TT
59302011-05-19 Matt Rice <ratmice@gmail.com>
5931
5932 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5933
fb80a3c5
HZ
59342011-05-19 Hui Zhu <teawater@gmail.com>
5935
5936 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5937
3672b1be
HZ
59382011-05-19 Hui Zhu <teawater@gmail.com>
5939
5940 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5941
ff355380
TT
59422011-05-18 Tom Tromey <tromey@redhat.com>
5943
5944 * dwarf2read.c (dwarf2_add_field): Constify.
5945 * value.c (value_static_field): Constify.
5946 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5947 Now const.
5948 * ax-gdb.c (gen_static_field): Constify
5949
ed731959
JK
59502011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5951
5952 * linux-nat.c (kill_callback): Use SIGKILL first.
5953
967cff16
JB
59542011-05-18 Joel Brobecker <brobecker@adacore.com>
5955
5956 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5957
1d06ead6
TT
59582011-05-18 Tom Tromey <tromey@redhat.com>
5959
5960 * value.c (value_fn_field): Constify.
5961 * symtab.c (gdb_mangle_name): Constify.
5962 * stabsread.c (update_method_name_from_physname): Make 'physname'
5963 argument const.
5964 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5965 const. Use explicit fputc_filtered loop.
5966 (pascal_type_print_base): Constify.
5967 * p-lang.h (pascal_type_print_method_args): Update.
5968 * linespec.c (add_matching_methods): Constify.
5969 (add_constructors): Likewise.
5970 * jv-typeprint.c (java_type_print_base): Constify.
5971 * gdbtypes.h (struct cplus_struct_type)
5972 <fn_fieldlist.fn_field.physname>: Now const.
5973 * dwarf2read.c (compute_delayed_physnames): Constify.
5974 (dwarf2_add_member_fn): Likewise.
5975 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5976
0d9a9a5f
PA
59772011-05-18 Pedro Alves <pedro@codesourcery.com>
5978
5979 * infrun.c (resume): Mention which is the current thread, and its
5980 current PC in debug output.
5981 (prepare_to_proceed): Mention the thread switching in debug
5982 output.
5983
05386e9e
TT
59842011-05-18 Tom Tromey <tromey@redhat.com>
5985
5986 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5987 path check. Use xmalloc and cleanups.
5988 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5989
ee86786c
TT
59902011-05-17 Tom Tromey <tromey@redhat.com>
5991
5992 * cp-valprint.c (cp_print_value_fields): Catch errors from
5993 value_static_field.
5994
9ff3b74f
TT
59952011-05-17 Tom Tromey <tromey@redhat.com>
5996
5997 * dwarf2read.c (dwarf2_get_die_type): Call
5998 get_die_type_at_offset.
5999 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6000 get_base_type function.
6001
cd3da28e
PA
60022011-05-17 Tomas Martinec <fyzmat@gmail.com>
6003
6004 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6005 trap_expected.
6006
fd20d931
DE
60072011-05-16 Doug Evans <dje@google.com>
6008
6009 * python/py-auto-load.c (source_section_scripts): Mention objfile
6010 name in warning.
6011
75fc9810
DE
60122011-05-15 Doug Evans <dje@google.com>
6013
290351b8
DE
6014 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6015 (try_thread_db_load_from_pdir): Call it. If unable to find
6016 libthread_db in directory of libpthread, see if we're looking at
6017 the separate-debug-info copy.
6018
75fc9810
DE
6019 * python/py-autoload.c (print_script): Print "Missing" instead of
6020 "No" for missing scripts.
6021 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6022
9f7bc587
DE
60232011-05-13 Doug Evans <dje@google.com>
6024
6025 * ui-file.c (stdio_file_write_async_safe): Add comment.
6026
093cee7d
HZ
60272011-05-14 Hui Zhu <teawater@gmail.com>
6028
6029 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6030
dbaefcf7
DE
60312011-05-13 Doug Evans <dje@google.com>
6032
98a5dd13
DE
6033 Support $pdir and $sdir in libthread-db-search-path.
6034 * NEWS: Mention $sdir,$pdir.
6035 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6036 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6037 (try_thread_db_load_from_sdir): New function.
6038 (try_thread_db_load_from_dir): New function.
6039 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6040 system directories if search of libthread-db-search-path fails,
6041 that is now done via $sdir.
6042 (has_libpthread): New function.
6043 (thread_db_load): Remove search for libthread_db in directory of
6044 libpthread, that is now done via $pdir.
6045
dbaefcf7
DE
6046 * NEWS: Mention "info auto-load-scripts".
6047 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6048 script_not_found_warning_printed.
6049 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6050 all callers updated. Initialize script_not_found_warning_printed.
6051 (get_auto_load_pspace_data_for_loading): New function.
6052 (maybe_add_script): New function.
6053 (source_section_scripts): Simplify. Only print one warning regardless
6054 of the number of auto-load scripts not found.
6055 (clear_section_scripts): Clear script_not_found_warning_printed.
6056 (auto_load_objfile_script): Record script in hash table.
6057 (count_matching_scripts): New function.
6058 (maybe_print_script): Renamed from maybe_print_section_script, all
6059 callers updated. Rewrite to use ui_out_*.
6060 (info_auto_load_scripts): Renamed from
6061 maintenance_print_section_scripts, all callers updated.
6062 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6063 renamed as "info auto-load-scripts".
6064
9930639c
TT
60652011-05-13 Tom Tromey <tromey@redhat.com>
6066
6067 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6068 (read_sleb128): Likewise.
6069
06826322
TT
60702011-05-13 Tom Tromey <tromey@redhat.com>
6071
6072 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6073 offset display.
6074
01124a23
DE
60752011-05-13 Doug Evans <dje@google.com>
6076
6077 * linux-nat.c (debug_linux_nat_async): Delete.
6078 Replace all references to use debug_linux_nat instead.
6079 (show_debug_linux_nat_async): Delete.
6080 (sigchld_handler): Call ui_file_write_async_safe instead of
6081 fprintf_unfiltered.
6082 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6083 * ui-file.c (struct ui_file): New member to_write_async_safe.
6084 (null_file_write_async_safe): New function.
6085 (ui_file_write_async_safe): New function.
6086 (set_ui_file_write_async_safe): New function.
6087 (ui_file_new): Initialize to_write_async_safe.
6088 (stdio_file_write_async_safe): New function.
6089 (struct stdio_file): New member fd.
6090 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6091 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6092 fileno.
01124a23
DE
6093 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6094 (set_ui_file_write_async_safe): Declare.
6095 (ui_file_write_async_safe): Declare.
6096
72fc29ff
TT
60972011-05-13 Tom Tromey <tromey@redhat.com>
6098
6099 * utils.c (do_value_free): New function.
6100 (make_cleanup_value_free): Likewise.
6101 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6102 freeing correctly.
6103 (dwarf2_loc_desc_needs_frame): Call
6104 make_cleanup_value_free_to_mark.
6105 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6106 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6107 value_free_to_mark.
6108 (new_dwarf_expr_context): Don't call value_mark.
6109 * dwarf2-frame.c (execute_stack_op): Call
6110 make_cleanup_value_free_to_mark.
6111 * defs.h (make_cleanup_value_free): Declare.
6112
028d0ed5
TJB
61132011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6114
6115 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6116 prepare_execute_command.
6117 * top.c (prepare_execute_command): Return cleanup.
6118 (execute_command): Use cleanup from prepare_execute_command.
6119 * top.h (prepare_execute_command): Change prototype to return
6120 cleanup.
6121 * defs.h (struct value): Add opaque declaration.
6122 (make_cleanup_value_free_to_mark): Add prototype.
6123 * utils.c (do_value_free_to_mark): New function.
6124 (make_cleanup_value_free_to_mark): Likewise.
6125
b087e0ed
TT
61262011-05-12 Tom Tromey <tromey@redhat.com>
6127
6128 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6129 cast left-hand-side to unsigned.
6130
8a9b8146
TT
61312011-05-12 Tom Tromey <tromey@redhat.com>
6132
6133 PR gdb/12617:
6134 * value.h (value_from_contents): Declare.
6135 * value.c (value_from_contents): New function.
6136 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6137 (dwarf2_get_die_type): New function.
6138 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6139 (allocate_piece_closure): Acquire reference to values.
6140 (read_pieced_value): Update for value-based expressions.
6141 (write_pieced_value): Likewise.
6142 (free_pieced_value_closure): Call value_free as needed.
6143 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6144 Update for value-based expressions.
6145 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6146 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6147 <get_base_type>: New field.
6148 (struct dwarf_expr_piece) <v.value>: Change type.
6149 <v.regno>: New field.
6150 (struct dwarf_expr_context) <mark>: New field.
6151 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6152 (dwarf_expr_pop, dwarf_expr_push): Remove.
6153 (dwarf_expr_push_address): Declare.
6154 * dwarf2expr.c (dwarf_arch_cookie): New global.
6155 (struct dwarf_gdbarch_types): New.
6156 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6157 functions.
6158 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6159 static.
6160 (dwarf_expr_push_address): New function.
6161 (dwarf_expr_pop): Now static.
6162 (dwarf_expr_fetch): Change return type.
6163 (dwarf_require_integral): New function.
6164 (dwarf_expr_fetch): Simplify.
6165 (add_piece): Update.
6166 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6167 functions.
6168 (execute_stack_op) <sign_ext>: Remove.
6169 Use values for DWARF stack.
6170 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6171 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6172 New cases.
6173 (_initialize_dwarf2expr): New function.
6174 (add_piece): Update.
6175 (new_dwarf_expr_context): Set new field.
6176 (free_dwarf_expr_context): Call value_free_to_mark.
6177 * dwarf2-frame.c (no_base_type): New function.
6178 (execute_stack_op): Set get_base_type field. Update.
6179
e8d28ef4
TT
61802011-05-12 Tom Tromey <tromey@redhat.com>
6181
6182 * dwarf2read.c (read_common_block): Fix formatting.
6183
d248b706
KY
61842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6185
6186 * breakpoint.c (disable_breakpoint): Disable all locations
6187 associated with a tracepoint on target if a trace experiment is
6188 running.
6189 (disable_command): Disable a specific tracepoint location on target if
6190 a trace experiment is running.
6191 (do_enable_breakpoint): Enable all locations associated with a
6192 tracepoint on target if a trace experiment is running.
6193 (enable_command) Enable a specific tracepoint location on target if a
6194 trace experiment is running.
6195 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6196 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6197 to_disable_tracepoint.
6198 * target.h: Add declaration of struct bp_location.
6199 (struct target_ops): Add new functions
6200 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6201 to_disable_tracepoint to target operations.
6202 (target_supports_enable_disable_tracepoint): New macro.
6203 (target_enable_tracepoint): New macro.
6204 (target_disable_tracepoint): New macro.
6205 * remote.c (struct remote_state): Add new field.
6206 (remote_enable_disable_tracepoint_feature): New.
6207 (remote_protocol_features): Add new entry.
6208 (remote_supports_enable_disable_tracepoint): New.
6209 (remote_enable_tracepoint): New.
6210 (remote_disable_tracepoint): New.
6211 (init_remote_ops): Add remote_enable_tracepoint,
6212 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6213 to remote operations.
6214 * tracepoint.c (start_tracing): Allow tracing to start without any
6215 tracepoints enabled with just a warning if they can be re-enabled
6216 later.
6217 * NEWS: Add news item for the new behaviour of the enable and disable
6218 GDB commands when applied to tracepoints.
6219 Add news items for the new remote packets QTEnable and QTDisable.
6220
cc88a640
JK
62212011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6222
6223 * config.in: Regenerate.
6224 * configure: Regenerate.
6225 * configure.ac <--with-system-readline> (for readline_echoing_p):
6226 Remove the test.
6227 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6228 (tui_old_rl_echoing_p): ... here.
6229 (tui_setup_io): Rename extern declaration readline_echoing_p to
6230 _rl_echoing_p. Adjust assignments for the both renames.
6231
1f84b619
TJB
62322011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6233
6234 * symtab.c (lookup_symtab): Run cleanup before returning.
6235
74ac6d43
TT
62362011-05-11 Tom Tromey <tromey@redhat.com>
6237
6238 * dwarf2read.c (handle_data_member_location): New function.
6239 (dwarf2_add_field): Use it.
6240 (read_common_block): Likewise.
6241
5488dafb
JK
62422011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6243
6244 Make addrs->SECTINDEX always defined.
6245 * symfile.c (relative_addr_info_to_section_offsets): Check for
6246 SECTINDEX -1, not for zero ADDR.
6247 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6248 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6249 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6250 on its validity.
6251
84e578fb
DE
62522011-05-10 Doug Evans <dje@google.com>
6253
2471d008
DE
6254 * linux-thread-db.c: Whitespace cleanup.
6255 (try_thread_db_load_1): Fix comment.
6256
84e578fb
DE
6257 * linux-thread-db.c (set_libthread_db_search_path): New function.
6258 (_initialize_thread_db): Add setter for libthread-db-search-path.
6259
673c2bbe
DE
62602011-05-09 Doug Evans <dje@google.com>
6261
478aac75
DE
6262 * NEWS: Mention --with-iconv-bin.
6263 * configure.ac: New option --with-iconv-bin.
6264 * configure: Regenerate.
6265 * config.in: Regenerate.
6266 * defs.h (relocate_gdb_directory): Declare.
6267 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6268 removed progname parameter, and exported. All callers updated.
6269 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6270
673c2bbe
DE
6271 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6272 adding missing call to restore_child_signals_mask.
6273
e4c8541f
PA
62742011-05-09 Pedro Alves <pedro@codesourcery.com>
6275
6276 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6277 parameter.
6278 * infrun.c (proceed, start_remote): Adjust.
6279 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6280 and adjust to not handle it.
6281 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6282 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6283 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6284 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6285 * windows-nat.c (do_initial_windows_stuff): Adjust.
6286 * infcmd.c (attach_command): Adjust.
6287 (notice_new_inferior): Adjust.
6288
a536c6d7
UW
62892011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6290
6291 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6292 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6293 * spu-tdep.c (op_selb): Use correct value.
6294
7845b013
UW
62952011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6296
6297 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6298 "parent" parameter to symbol_file_add_from_bfd call.
6299
9c06b0b4
TJB
63002011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6301 Thiago Jung Bauermann <bauerman@br.ibm.com>
6302
6303 Implement support for PowerPC BookE masked watchpoints.
6304 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6305 section.
6306 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6307 method. Initialize to NULL in all existing breakpoint_ops instances.
6308 (struct breakpoint) <hw_wp_mask>: New field.
6309 * breakpoint.c (is_masked_watchpoint): Add prototype.
6310 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6311 breakpoint's breakpoint_ops.works_in_software_mode if available.
6312 (watchpoints_triggered): Handle the case of a hardware masked
6313 watchpoint trigger.
6314 (watchpoint_check): Likewise.
6315 (works_in_software_mode_watchpoint): New function.
6316 (insert_masked_watchpoint, remove_masked_watchpoint)
6317 (resources_needed_masked_watchpoint)
6318 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6319 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6320 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6321 functions.
6322 (masked_watchpoint_breakpoint_ops): New structure.
6323 (watch_command_1): Check for the existence of the `mask' parameter.
6324 Set b->ops according to the type of hardware watchpoint being created.
6325 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6326 (ppc_linux_remove_mask_watchpoint)
6327 (ppc_linux_masked_watch_num_registers): New functions.
6328 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6329 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6330 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6331 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6332 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6333 (target_masked_watch_num_registers): New functions.
6334 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6335 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6336 methods.
6337 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6338 (target_masked_watch_num_registers): Add prototypes.
6339
8be455d7
JK
63402011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6341
6342 PR 12573
6343 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6344 (producer_is_gcc_ge_4_0): New function.
6345 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6346 symtab->language code.
6347 (var_decode_location): Set cu->has_loclist.
6348 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6349 skip. Intialize force_skip from locations_valid. Move the prologue
6350 skipping code into two passes.
6351 * symtab.h (struct symtab): Make the primary field a bitfield. New
6352 field locations_valid.
6353
d8228535
JK
63542011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6357 (classify_inner_name): Call cp_lookup_nested_type with
6358 yylval.tsym.type.
6359 * cp-namespace.c (cp_lookup_nested_type): New variable
6360 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6361 type_name_no_tag_or_error with saved_parent_type.
6362 * dwarf2read.c (load_partial_dies): Read in any children of
6363 DW_TAG_typedef with complaint in such case.
6364 * gdbtypes.c (type_name_no_tag_or_error): New function.
6365 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6366 * valops.c (destructor_name_p): New comment for parameter type. Remove
6367 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6368 * value.h (destructor_name_p): Remove type const.
6369
1976171a
JK
63702011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6371
6372 * symtab.c (compare_symbol_name): New function.
6373 (completion_list_add_name, expand_partial_symbol_name): Call it,
6374 remove the variable ncmp.
6375 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6376 gdb_assert it.
6377
a9634178
TJB
63782011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6379
6380 Demote to sw watchpoint only in update_watchpoint.
6381 * breakpoint.c (update_watchpoint): Change between software and
6382 hardware watchpoint for all kinds of watchpoints, not just
6383 read/write ones. Determine b->exact value here instead of
6384 in watch_command_1. Error out if there are not enough resources
6385 for a read or access hardware watchpoint.
6386 (watch_command_1): Remove logic of checking whether there are
6387 enough resources available, since update_watchpoint will do that
6388 work now. Don't set b->exact here. Catch exceptions thrown by
6389 update_watchpoint and delete the watchpoint.
6390 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6391 Use target_exact_watchpoints instead.
6392 (delete_breakpoint): Notify observers only if deleted watchpoint
6393 has a breakpoint number assigned to it.
6394
4c67c798
JJ
63952011-05-05 Janis Johnson <janisjo@codesourcery.com>
6396
6397 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6398
a3fcb948
JG
63992011-05-05 Jerome Guitton <guitton@adacore.com>
6400
6401 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6402 New functions.
6403 (i386_stack_tramp_frame_unwind): New static global.
6404 (i386_match_pattern): New function, extracted from i386_match_insn.
6405 (i386_match_insn): Use i386_match_pattern.
6406 (i386_match_insn_block): New function.
6407 (i386_tramp_chain_in_reg_insns)
6408 (i386_tramp_chain_on_stack_insns): New static variables.
6409 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6410 of unwinders.
6411
4d393d60
JM
64122011-05-04 Joseph Myers <joseph@codesourcery.com>
6413
6414 * configure.host (xscale*): Don't handle target.
6415 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6416 handle targets.
6417
f70bd40b
YQ
64182011-05-04 Yao Qi <yao@codesourcery.com>
6419
6420 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6421
dd3295ee
JB
64222011-05-03 Joel Brobecker <brobecker@adacore.com>
6423
6424 Revert:
6425 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6426 | * elfread.c (elf_symtab_read): Stop memory leak.
6427
90375a0e
PM
64282011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6429
6430 * nto-tdep.c (nto_target): Replace deprecated call to
6431 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6432
d07205c2
JK
64332011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6434
6435 Fix false GCC warning.
6436 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6437
1e718ff1
TJB
64382011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6439
6440 * breakpoint.c (update_watchpoint): Move code to change
6441 the enable state of breakpoint from here ...
6442 (do_enable_breakpoint): ... to here.
6443
35bef4fd
TT
64442011-04-26 Andrew Gontarek <andrewg@cray.com>
6445
78290264
PP
6446 * valprint.c (val_print_array_elements): Fixed poor performance
6447 of printing very large arrays with repeat_count_threshold set
6448 to unlimited. New comment.
35bef4fd 6449
38a714bb
TT
64502011-04-29 Tom Tromey <tromey@redhat.com>
6451
6452 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6453 (mi_parse): Likewise.
6454 * breakpoint.c (break_range_command): Use sizeof char*, not
6455 char**.
6456 (create_breakpoint): Likewise.
6457 (parse_breakpoint_sals): Likewise.
6458
eb73ad13
PA
64592011-04-29 Pedro Alves <pedro@codesourcery.com>
6460
6461 * linux-nat.c (linux_child_remove_fork_catchpoint)
6462 (linux_child_remove_vfork_catchpoint)
6463 (linux_child_remove_exec_catchpoint): New functions.
6464 (linux_target_install_ops): Install them.
6465
d65aec65
PM
64662011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6467
6468 PR mi/12531
6469
6470 * varobj.c (install_default_visualizer): Do not install a
6471 visualizer if the varobj is CPLUS_FAKE_CHILD.
6472 (construct_visualizer): Likewise.
6473
165195f4
JK
64742011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6475
6476 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6477 case insensitive comparison.
6478
30852783
UW
64792011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6480
6481 * infrun.c (proceed): Revert previous change.
6482 (resume): Instead, handle the case of signal delivery while stepping
6483 off a breakpoint location here, and only if software single-stepping
6484 is used. Handle nested signals.
6485
7ff120b4
YQ
64862011-04-28 Yao Qi <yao@codesourcery.com>
6487
6488 * arm-tdep.c (copy_unmodified): Rename to ...
6489 (arm_copy_unmodified): .. this. New.
6490 (copy_preload): Move common part to ...
6491 (install_preload): .. this. New.
6492 (arm_copy_preload): New.
6493 (copy_preload_reg): Move common part to ...
6494 (install_preload_reg): ... this. New.
6495 (arm_copy_preload_reg): New.
6496 (copy_b_bl_blx): Move common part to ...
6497 (install_b_bl_blx): .. this. New.
6498 (arm_copy_b_bl_blx): New.
6499 (copy_bx_blx_reg): Move common part to ...
6500 (install_bx_blx_reg): ... this. New.
6501 (arm_copy_bx_blx_reg): New.
6502 (copy_alu_reg): Move common part to ...
6503 (install_alu_reg): ... this. New.
6504 (arm_copy_alu_reg): New.
6505 (copy_alu_shifted_reg): Move common part to ...
6506 (install_alu_shifted_reg): ... this. New.
6507 (copy_ldr_str_ldrb_strb): Move common part to ...
6508 (install_ldr_str_ldrb_strb): ... this. New.
6509 (arm_copy_ldr_str_ldrb_strb): New.
6510 (copy_copro_load_store): Move some common part to ...
6511 (install_copy_copro_load_store): ... this. New.
6512 (arm_copy_copro_load_store): New.
6513 (copy_svc): Delete.
6514 (arm_copy_svc): Renamed from copy_svc.
6515 (copy_undef): Delete.
6516 (arm_copy_undef): Renamed from copy_undef.
6517 (decode_ext_reg_ld_st): Delete.
6518 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6519 (decode_svc_copro): Delete.
6520 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6521 (copy_copro_load_store, copy_alu_imm): update callers.
6522 (copy_extra_ld_st, copy_block_xfer): Likewise.
6523 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6524 (decode_miscellaneous, decode_dp_misc): Likewise.
6525 (decode_ld_st_word_ubyte, decode_media): Likewise.
6526 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6527 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6528 (decode_unconditional, decode_miscellaneous): Likewise.
6529 (decode_media, decode_b_bl_ldmstm): Likewise.
6530 (arm_process_displaced_insn): Likewise..
6531 (decode_misc_memhint_neon): Delete.
6532 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6533 (decode_miscellaneous): Delete.
6534 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6535 (decode_dp_misc): Delete.
6536 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6537 (decode_ld_st_word_ubyte): Delete.
6538 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6539 (decode_media): Delete.
6540 (arm_decode_media): Renamed from decode_media.
6541 (decode_b_bl_ldmstm): Delete.
6542 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6543 (decode_ext_reg_ld_st): Delete.
6544 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6545 (decode_unconditional): Delete.
6546 (arm_decode_unconditional): Renamed from decode_unconditional.
6547
559a7a62
JK
65482011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6549
6550 Case insensitive lookups implementation.
6551 * dwarf2read.c: Include ctype.h.
6552 (struct mapped_index): New field version.
6553 (mapped_index_string_hash): New parameter index_version. New comment
6554 for it. Call tolower appropriately.
6555 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6556 Choose the right index version for mapped_index_string_hash.
6557 (dwarf2_read_index): Support also the index version 5. Initialize the
6558 new struct mapped_index field version.
6559 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6560 (find_slot): Explain the version needs. Pass INT_MAX for the new
6561 parameter.
6562 (write_psymtabs_to_index): Produce version 5.
6563 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6564 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6565 * psymtab.c (lookup_partial_symbol): Find the
6566 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6567 entries.
6568 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6569 NAME lowercasing.
6570 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6571 (completion_list_add_name): New variable ncmp, initialize it, use it.
6572 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6573 * utils.c (strcmp_iw): Support case_sensitive_off.
6574 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6575 New function comment part. New variables saved_string1,
6576 saved_string2 and case_pass. Add a proper second pass.
6577
681bf369
JK
65782011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6579
6580 Replace re_comp/re_exec by regcomp/regexec.
6581 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6582 (search_symbols_name_matches): Use them, use regexec.
6583 (search_symbols): New variable retval_chain, adjust the use of
6584 old_chain against it. Replace re_comp by regcomp. Use the new struct
6585 search_symbols_data fields, use regexec instead of re_exec.
6586
b11b1f88
JK
65872011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6588
6589 Format the code for the next patch.
6590 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6591 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6592 New variables c1 and c2.
6593
2484c66b
UW
65942011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6595
6596 * infrun.c (proceed): Do not single-step into signal delivery
6597 when stepping off a breakpoint location.
6598 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6599 (insert_step_resume_breakpoint_at_caller): Likewise.
6600 (insert_step_resume_breakpoint_at_sal): Likewise.
6601 (insert_longjmp_resume_breakpoint): Likewise.
6602
47423772
YQ
66032011-04-27 Yao Qi <yao@codesourcery.com>
6604
6605 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6606
13bdd2e7
JB
66072011-04-27 Joel Brobecker <brobecker@adacore.com>
6608
6609 * procfs.c (procfs_pass_signals): Fix advance declaration.
6610
2455069d
UW
66112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6612
6613 * target.h (struct target_ops): Remove to_notice_signals;
6614 add to_pass_signals.
6615 (target_notice_signals): Remove.
6616 (target_pass_signals): Add prototype.
6617 * target.c (update_current_target): Remove to_notice_signals;
6618 mention to_pass_signals.
6619 (target_pass_signals): New function.
6620 (debug_to_notice_signals): Remove.
6621 (setup_target_debug): Do not install debug_to_notice_signals.
6622
6623 * infrun.c (signal_pass): New global.
6624 (resume): Call target_pass_signals.
6625 (handle_inferior_event): Report all signals while stepping over
6626 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6627 are re-inserted when stepping over a signal handler.
6628 (signal_cache_update): New function.
6629 (signal_stop_update): Call it.
6630 (signal_print_update): Likewise.
6631 (signal_pass_update): Likewise.
6632 (handle_command): Call signal_cache_update and target_pass_signals
6633 instead of target_notice_signals.
6634 (_initialize_infrun): Initialize signal_pass.
6635
6636 * linux-nat.c (pass_mask): New global.
6637 (linux_nat_pass_signals): New function.
6638 (linux_nat_create_inferior): Report all signals initially.
6639 (linux_nat_attach): Likewise.
6640 (linux_nat_resume): Use pass_mask to decide whether to directly
6641 handle an inferior signal.
6642 (linux_nat_wait_1): Likewise.
6643 (linux_nat_add_target): Install to_pass_signals callback.
6644
6645 * nto-procfs.c (notice_signals): Remove.
6646 (procfs_resume): Do not call notice_signals.
6647 (procfs_notice_signals): Remove.
6648 (procfs_pass_signals): New function.
6649 (init_procfs_ops): Install to_pass_signals callback instead of
6650 to_notice_signals callback.
6651 (_initialize_procfs): Report all signals initially.
6652
6653 * procfs.c (procfs_notice_signals): Remove.
6654 (procfs_pass_signals): New function.
6655 (procfs_target): Install to_pass_signals callback instead of
6656 to_notice_signals callback.
6657 (register_gdb_signals): Remove.
6658 (procfs_debug_inferior): Report all signals initially.
6659 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6660
6661 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6662 parameters; use them instead of calling signal_..._state routines.
6663 (remote_notice_signals): Remove.
6664 (remote_start_remote): Report all signals initially.
6665 (remote_resume): Do not call remote_pass_signals.
6666 (_initialize_remote): Install to_pass_signals callback instead of
6667 to_notice_signals callback.
6668
46c6471b
PA
66692011-04-27 Pedro Alves <pedro@codesourcery.com>
6670
6671 * breakpoint.c (user_settable_breakpoint): Delete.
6672 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6673 (delete_command): Check user_breakpoint_p instead of looking at
6674 the breakpoint's type.
6675 (disable_command): Ditto.
6676 (enable_command): Ditto.
6677 (delete_trace_command): Use user_breakpoint_p instead of looking
6678 at the breakpoint number directly. When checking if there are
6679 user visible tracepoints, in order to know whether to ask the user
6680 for confirmation, check whether the breakpoint is actually a
6681 tracepoint.
6682
f6d90398
VP
66832011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6684
6685 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6686 compilation.
6687
8d3788bd
VP
66882011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6689
6690 MI breakpoint notifications.
6691
f33edef8
PP
6692 * annotate.c (breakpoint_changed): Adjust parameter type.
6693 * breakpoint.c (set_breakpoint_condition): Adjust to change
6694 in breakpoint_modified type.
6695 (breakpoint_set_commands): Likewise.
6696 (do_map_commands_command): Likewise.
6697 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6698 changed after bumping hit count.
6699 (bpstat_stop_status): Likewise.
6700 (print_one_breakpoint_location): Don't wrap in tuple here.
6701 (print_one_breakpoint): Always print individual locations.
6702 For locations, use unnamed tuple.
6703 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6704 has changed.
6705 (create_catchpoint, create_syscall_event_catchpoint): Call
6706 breakpoint_created obsever.
6707 (mention): Don't call breakpoint_created observer.
6708 (create_breakpoint_sal): Call breakpoint_created observer.
6709 (create_breakpoint, watch_command_1): Likewise.
6710 (create_ada_exception_breakpoint): Likewise.
6711 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6712 (locations_are_equal): New.
6713 (update_breakpoint_locations): If locations were changed, notify.
6714 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6715 Call breakpoint_modified observer.
6716
6717 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6718 (mi_cmd_break_insert): Don't set observers for modify and delete.
6719 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6720 (mi_breakpoint_created, mi_breakpoint_deleted)
6721 (mi_breakpoint_modified): New.
6722 (mi_interpreter_init): Hook the above.
6723 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6724 while -break-* commands are executing.
6725 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6726 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6727 (mi_redirect): New.
6728 (mi_ui_out_impl): Hook in mi_redirect.
6729 (mi_field_skip): True to the name, skip the field, don't output
6730 a field with an empty value.
6731
6732 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6733 (gdbpy_breakpoint_deleted): Adjust.
6734 * tui/tui-hooks.c (tui_event_create_breakpoint)
6735 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6736
a8f42b45
UW
67372011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6738
6739 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6740 (procfs_remove_hw_watchpoint): Likewise.
6741
57e12211
TT
67422011-04-26 Michael Walle <michael@walle.cc>
6743
6744 * remote.c (remote_start_remote): Ack packet after sending the
6745 interrupt sequence.
6746
af96c192
YQ
67472011-04-26 Yao Qi <yao@codesourcery.com>
6748
f33edef8
PP
6749 * linux-nat.c: Move common macros to ...
6750 Include linux-ptrace.h.
6751 * common/linux-ptrace.h: ... here. New.
af96c192 6752
3e03848b
JK
67532011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6754
6755 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6756 !objfile_has_partial_symbols. New comment.
6757 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6758 SYM_READ_PSYMBOLS is not present. Extend the comment.
6759 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6760
1ae0d051
JK
67612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6762
6763 * defs.h (ENUM_BITFIELD): Remove.
6764
03f2bd59
JK
67652011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6766 Eli Zaretskii <eliz@gnu.org>
6767
6768 * NEWS: Document the new gdbserver --once option.
6769
4161fbb0
JZ
67702011-04-21 Jie Zhang <jzhang918@gmail.com>
6771
6772 * MAINTAINERS: Update my email address.
6773
bcb28afc
PM
67742011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6775
6776 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6777 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6778 function call if __STDC_ISO_10646__ macro is defined.
6779 (intermediate_encoding): New prototype.
6780 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6781 to generate compile time error for unsupported gdb_wchar_t size.
6782 (ENDIAN_SUFFIX): New macro.
6783 (intermediate_encoding): New function.
6784
7b08b9eb
JK
67852011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6786
6787 * ada-lang.c (struct add_partial_datum): Update the comment for
6788 expand_partial_symbol_name.
6789 (ada_add_partial_symbol_completions): Rename to ...
6790 (ada_expand_partial_symbol_name): ... here, change return type, update
6791 function comment, call symbol_completion_match instead of
6792 symbol_completion_add.
6793 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6794 and ada_expand_partial_symbol_name.
6795 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6796 FILE_MATCHER.
6797 (dw2_map_symbol_names): Remove.
6798 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6799 * psymtab.c (map_symbol_names_psymtab): Remove.
6800 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6801 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6802 order.
6803 (psym_functions): Unlist map_symbol_names_psymtab.
6804 (map_partial_symbol_names): Rename to ...
6805 (expand_partial_symbol_names): ... here, change the FUN type, call
6806 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6807 * psymtab.h (map_partial_symbol_names): Rename to ...
6808 (expand_partial_symbol_names): ... here, change the FUN type.
6809 * symfile.h (struct quick_symbol_functions): Update the description of
6810 expand_symtabs_matching. Remove map_symbol_names.
6811 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6812 (struct add_name_data): Update the comment for
6813 expand_partial_symbol_name.
6814 (add_partial_symbol_name): Rename to ...
6815 (expand_partial_symbol_name): ... here. Replace
6816 completion_list_add_name call by strncmp.
6817 (default_make_symbol_completion_list_break_on): Use now
6818 expand_partial_symbol_names and expand_partial_symbol_name.
6819 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6820
90476074
TT
68212011-04-20 Tom Tromey <tromey@redhat.com>
6822
6823 * dwarf2read.c (save_gdb_index_command): Replace format
6824 documentation with a pointer to the manual.
6825
c21236dc
PA
68262011-04-20 Pedro Alves <pedro@codesourcery.com>
6827
6828 * regcache.c: Include remote.h.
6829 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6830 (regcache_dump): Handle regcache_dump_remote.
6831 (maintenance_print_remote_registers): New function.
6832 (_initialize_regcache): Install "maint print remote-registers"
6833 command.
6834 * remote.c (map_regcache_remote_table): New function, factored out
6835 from ...
6836 (init_remote_state): ... here.
6837 (remote_register_number_and_offset): New.
6838 * remote.h (remote_register_number_and_offset): Declare.
6839
b78974c3
PA
68402011-04-20 Pedro Alves <pedro@codesourcery.com>
6841
6842 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6843 null_ptid, assume and allow a NULL address space, instead of
6844 asking the target for the ptid's address space.
6845 * infrun.c (ptid_is_pid): Remove assertion.
6846
7a9dd1b2
TT
68472011-04-19 Tom Tromey <tromey@redhat.com>
6848
6849 * windows-tdep.c (windows_xfer_shared_library):
6850 * windows-nat.c (get_module_name, windows_make_so):
6851 * v850-tdep.c (v850_handle_pushm):
6852 * utils.c (null_cleanup, gdb_realpath):
6853 * ui-out.c (get_next_header):
6854 * tracepoint.c (clear_traceframe_info):
6855 * symtab.c (lookup_symtab):
6856 * serial.h (struct serial_ops):
6857 * mipsread.c (read_alphacoff_dynamic_symtab):
6858 * infcmd.c (print_return_value):
6859 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6860 * f-exp.y (parse_number):
6861 * exceptions.c (catch_exceptions):
6862 * dummy-frame.c (dummy_frame_this_id):
6863 * defs.h (struct cleanup):
6864 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6865 * arm-tdep.c (arm_push_dummy_call):
6866 * amd64-tdep.h (amd64_collect_xsave):
6867 * amd64-tdep.c (amd64_collect_xsave):
6868 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6869 * README (typing): Remove duplicate words.
6870 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6871 * infrun.c (siginfo_value_read): Fix typo.
6872 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6873 * top.c (source_line_number): Add comma.
6874
9941e0c5
MK
68752011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6876
6877 * thread.c (any_live_thread_of_process): Prioritize threads
6878 that are not executing.
6879 * gdbthread.h (any_live_thread_of_process): Update comment
6880 as per above change.
6881
ed4b0e6a
AS
68822011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6883
6884 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6885 (scan_xcoff_symtab): Likewise.
6886
9b13a2db
PM
68872011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6888
6889 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6890 inside if clause.
6891
1c6e1b0d
PM
68922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6893 Pedro Alves <pedro@codesourcery.com>
6894
6895 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6896 variables to simplify code and avoid == operator at end of
6897 line as this is against GNU coding standards.
6898
74de0234
PM
68992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6900
6901 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6902 lm_name to name_lm to avoid conflict with lm_name function.
6903
b23518f0
PM
69042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6905
6906 ARI fixes: Use only lowercase function name for static functions.
6907 * nto-tdep.c (LM_ADDR): Rename to...
6908 (lm_addr): New function name.
6909 (nto_relocate_section_addresses): Adapt to change above.
6910 * solib-sunos.c (LM_ADDR): Rename to...
6911 (lm_addr): New function name.
6912 (LM_NEXT): Rename to...
6913 (lm_next): New function name.
6914 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6915 function name changes above.
6916 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6917 (lm_addr_from_link_map): New function name.
6918 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6919 (has_lm_dynamic_from_link_map): New function name.
6920 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6921 (lm_dynamic_from_link_map): New function name.
6922 (LM_ADDR_CHECK): Rename to...
6923 (lm_addr_check): New function name.
6924 (LM_NEXT): Rename to...
6925 (lm_next): New function name.
6926 (LM_PREV): Rename to...
6927 (lm_prev): New function name.
6928 (LM_NAME): Rename to...
6929 (lm_name): New function name.
6930 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6931 (ignore_first_link_map_entry): New function name.
6932 (svr4_keep_data_in_core): Adapt to function name changes above.
6933 (svr4_current_sos): Likewise.
6934 (enable_break): Likewise.
6935 (svr4_relocate_section_addresses): Likewise.
6936
1448a0a2
PM
69372011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6938
6939 ARI cleanup.
6940 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6941 sprintf. Simplify code and avoid loosing memory.
6942 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6943 (call0_frame_cache): Remove && operator from end of line.
6944
02835898
JK
69452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6946
6947 Fix libraries displacement if they change whether they were prelinked.
6948 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6949 does not match. Comment why.
6950
9a845ea2
JK
69512011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6952
6953 * corelow.c: Include wrapper.h.
6954 (core_open): Call now gdb_target_find_new_threads.
6955 * wrapper.c: Include target.h.
6956 (gdb_target_find_new_threads): New.
6957 * wrapper.h (gdb_target_find_new_threads): New declaration.
6958
254f582e
JK
69592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6960
6961 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6962 even if !TARGET_HAS_EXECUTION.
6963
63524580
JK
69642011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6965
6966 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6967 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6968 bfd_get_synthetic_symtab.
6969 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6970 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6971 parameter parent, remove the call to add_separate_debug_objfile.
6972 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6973 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6974 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6975 parent, new comment for it, call add_separate_debug_objfile for it.
6976 (symbol_file_add_separate): Pass objfile as the parameter parent,
6977 remove the call to add_separate_debug_objfile.
6978 (symbol_file_add_from_bfd): New parameter parent, pass it.
6979 (symbol_file_add): Pass NULL to the new parameter parent.
6980 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6981
90359a16
JK
69822011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6983
6984 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6985 BSF_SYNTHETIC.
6986
626e7282
JK
69872011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6988
6989 Fix Python access to inlined frames.
6990 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6991 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6992
cf31e6f9
TT
69932011-04-15 Tom Tromey <tromey@redhat.com>
6994
6995 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6996
c8d895f1
GB
69972011-04-15 Gary Benson <gbenson@redhat.com>
6998
6999 * MAINTAINERS: Add myself to write-after-approval section.
7000
56a9aa1d
MF
70012011-04-14 Mike Frysinger <vapier@gentoo.org>
7002
7003 * remote-sim.c (sim_command_completer): New function.
7004 (_initialize_remote_sim): Set completer to sim_command_completer.
7005
ba770c9c
TJB
70062011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7007
7008 * breakpoint.c (print_exception_catchpoint): Rename to ...
7009 (print_it_exception_catchpoint): ... this.
7010 (gnu_v3_exception_catchpoint_ops): Update with new name
7011 for print_it_exception_catchpoint.
7012
51bf2553
EBM
70132011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7014
7015 * MAINTAINERS: Add myself for write after approval privileges.
7016
d242658c
MP
70172011-04-13 Marek Polacek <mpolacek@redhat.com>
7018
7019 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7020
4a4106ca
TJB
70212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7022
7023 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7024
26063d49
TJB
70252011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7026
7027 * breakpoint.c (save_breakpoints): Verify whether
7028 breakpoint_ops.print_recreate is defined before calling it.
7029
7782b183
GB
70302011-04-11 Gary Benson <gbenson@redhat.com>
7031
7032 Fix failure with --enable-maintainer-mode.
7033 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7034
e8930875
JK
70352011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 Code cleanup.
7038 * symtab.c (search_symbols): Reorder the KIND description in the
7039 function comment. Remove the unused 4th element of types, types2,
7040 types3 and types4. New gdb_assert on KIND.
7041 (symtab_symbol_info): Remove the unused 4th element of classnames.
7042 New gdb_assert on KIND.
7043 * symtab.h (enum search_domain): New warning in the enum comment.
7044 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7045 TYPES_DOMAIN.
7046
b4f2f049
JK
70472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7048
7049 Fix crash of gdb save-index on a STABS file.
7050 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7051 PSYMTABS_ADDRMAP.
7052
60d5a603
JK
70532011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7054
7055 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7056 * dwarf2read.c: Include ctype.h.
7057 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7058 functions.
7059 (dwarf2_add_field): Fix new_field->accessibility by calling
7060 dwarf2_default_access_attribute. Restructure setting accessibility
7061 vs. virtuality.
7062 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7063 is_private and is_protected by calling
7064 dwarf2_default_access_attribute.
7065
e0f68161
KB
70662011-04-08 Kevin Buettner <kevinb@redhat.com>
7067
7068 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7069 to the initialization.
7070
2e1aae43
SE
70712011-04-08 Steve Ellcey <sje@cup.hp.com>
7072
7073 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7074 initalization.
7075
c6ca3dab
PM
70762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7077
7078 Remove support for old Cygwin 1.5 versions.
7079 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7080 function on old Cygwin version.
7081 * windows-nat.c: Remove cygwin version check and always define
7082 __USEWIDE for Cygwin compilation.
7083
bd18283a
YQ
70842011-04-07 Yao Qi <yao@codesourcery.com>
7085
7086 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7087 and TO.
7088 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7089 (arm_copy_svc): Remove parameters INSN and TO.
7090 (decode_svc_copro): Update caller.
7091 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7092 from function pointer `copy_svc_os'.
7093
8c8dba6d
YQ
70942011-04-07 Yao Qi <yao@codesourcery.com>
7095
7096 * arm-tdep.c (cleanup_branch): Set a correct return address in
7097 LR for ARM and Thumb.
7098
59d7bcaf
JK
70992011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 Code cleanup.
7102 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7103 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7104 in the function comment, a new note on values compatibility.
7105 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7106 * symtab.h (SYMBOL_HASH_NEXT): New.
7107
e7db58ea
TJB
71082011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7109
7110 * ppc-linux-nat.c (check_condition): Add len output parameter.
7111 Set it based on the memory region referenced in the condition
7112 expression. Update all callers.
7113
9f743ef6
JK
71142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 Fix crash regression on systems featuring .gdb_index.
7117 * objfiles.c (free_objfile): Move the
7118 forget_cached_source_info_for_objfile call earlier. Comment it.
7119 Extend the comment for objfile_free_data.
7120
9182c5bc
JK
71212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7122
7123 Fix regression of displaying the debug format.
7124 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7125 subfile.
7126
04bd08de
TT
71272011-04-04 Tom Tromey <tromey@redhat.com>
7128
7129 * cli/cli-interp.c (struct captured_execute_command_args):
7130 Remove.
7131 (do_captured_execute_command): Remove.
7132 (safe_execute_command): Use TRY_CATCH.
7133 * cli/cli-script.c (struct wrapped_read_command_file_args):
7134 Remove.
7135 (wrapped_read_command_file): Remove.
7136 (script_from_file): Use TRY_CATCH.
7137 * exceptions.c (catch_exception): Remove.
7138 * exceptions.h (catch_exception): Remove.
7139 (deprecated_throw_reason): Update comment.
7140 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7141 argument to 'context'.
7142 (mi_execute_command): Use TRY_CATCH.
7143 * remote.c (struct start_remote_args): Remove.
7144 (remote_start_remote): Update; change arguments.
7145 (remote_open_1): Use TRY_CATCH.
7146
58438ac1
TT
71472011-04-04 Tom Tromey <tromey@redhat.com>
7148
7149 * tracepoint.c (scope_info): Update.
7150 * symtab.c (decode_line_spec): Update.
7151 * python/python.c (gdbpy_decode_line): Update.
7152 * linespec.h (decode_line_1): Update.
7153 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7154 (decode_compound, find_method, symtab_from_filename)
7155 (decode_variable): Likewise.
7156 * cli/cli-cmds.c (edit_command): Update.
7157 (list_command): Update.
7158 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7159 argument.
7160 (create_breakpoint): Update.
7161 (until_break_command): Update.
7162 (addr_string_to_sals): Update.
7163 (decode_line_spec_1): Update.
7164
b78a6381
TT
71652011-04-04 Tom Tromey <tromey@redhat.com>
7166
7167 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7168 (do_captured_parse_breakpoint): Remove.
7169 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7170 Use TRY_CATCH directly.
7171
00174a86
TT
71722011-04-04 Tom Tromey <tromey@redhat.com>
7173
7174 * symtab.h (free_symtab): Remove.
7175 (forget_cached_source_info_for_objfile): Declare.
7176 * symmisc.c (free_symtab): Remove.
7177 * source.c (forget_cached_source_info_for_objfile): New function.
7178 (forget_cached_source_info): Use it.
7179 * objfiles.c (free_objfile): Simplify check before calling
7180 clear_current_source_symtab_and_line. Call
7181 forget_cached_source_info_for_objfile.
7182
30cc903e
TT
71832011-04-04 Tom Tromey <tromey@redhat.com>
7184
7185 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7186 (new_symtab): Don't set `free_code' on symtab.
7187 (new_linetable): Properly handle size==0.
7188 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7189 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7190 free_func.
7191 * jv-lang.c (struct jv_per_objfile_data): New.
7192 (jv_per_objfile_free): Free the data.
7193 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7194 (get_java_class_symtab): Set the `dict' field on the
7195 jv_per_objfile_data.
7196 (free_class_block): Remove.
7197 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7198 the symtab.
7199
0c2e6019
TT
72002011-04-04 Tom Tromey <tromey@redhat.com>
7201
7202 * symfile.c (reread_symbols): Update.
7203 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7204 field.
7205 * objfiles.c (allocate_objfile): Update.
7206 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7207 declare.
7208 * cp-namespace.c (lookup_symbol_file): Don't call
7209 lookup_possible_namespace_symbol.
7210 (initialize_namespace_symtab, get_possible_namespace_block)
7211 (free_namespace_block, cp_check_possible_namespace_symbols)
7212 (check_possible_namespace_symbols_loop)
7213 (check_one_possible_namespace_symbol)
7214 (lookup_possible_namespace_symbol): Remove.
7215 (maintenance_cplus_namespace): Replace with notice.
7216 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7217
554d387d
TT
72182011-04-04 Tom Tromey <tromey@redhat.com>
7219
7220 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7221 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7222 * symmisc.c (free_symtab): Don't free debugformat.
7223 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7224 (record_debugformat, record_producer): Document.
7225 * buildsym.c (end_symtab): Don't save debugformat and producer
7226 names on obstack.
7227 (end_symtab): Don't free debugformat and producer fields.
7228 (record_debugformat): Don't call xstrdup.
7229 (record_producer): Likewise.
7230
d4d4db8a
TT
72312011-04-04 Tom Tromey <tromey@redhat.com>
7232
7233 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7234 (source_line_charpos, source_charpos_line): Remove.
7235
8903c50d
TT
72362011-04-04 Tom Tromey <tromey@redhat.com>
7237
7238 * symtab.h (domain_enum): Split in two...
7239 (enum search_domain): New.
7240 (search_symbols): Update.
7241 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7242 redundant declarations.
7243 (search_symbols): Change 'kind' argument to search_domain.
7244 Update.
7245 (print_symbol_info): Likewise.
7246 (symtab_symbol_info): Likewise.
7247 * symfile.h (struct quick_symbol_functions)
7248 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7249 <expand_symtabs_matching>: Likewise.
7250 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7251 (expand_symtabs_matching_via_partial): Update.
7252 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7253 (dw2_expand_symtabs_for_function): Update.
7254 * block.h: Moved anonymous enum...
7255 * defs.h (enum block_enum): ... here. Now named.
7256
d9351f5f 72572011-04-03 Joel Brobecker <brobecker@adacore.com>
7258
7259 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7260 * version.in: Bump version to 7.3.50.20110403-cvs.
7261
d6e00af6
JB
72622011-04-03 Joel Brobecker <brobecker@adacore.com>
7263
7264 * NEWS: Create a new section for the next release branch.
7265 Rename the section of the current branch, now that it has
7266 been cut.
7267
2b9e5ea6
UW
72682011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7269
7270 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7271 for "fpscr" in target description.
7272
0cf03b49
JK
72732011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7274
7275 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7276 initialize it. Delay HASH initialization. Strip the part after open
7277 parenthesis for languages with qualifiers. Call do_cleanups.
7278
5d901a73
TT
72792011-04-01 Tom Tromey <tromey@redhat.com>
7280
7281 * utils.c (report_command_stats): Don't print `-' for negative
7282 number.
7283
b0dd7688
JB
72842011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7285
7286 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7287 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7288 typedefs.
7289
956a9fb9
JB
72902011-04-01 Joel Brobecker <brobecker@adacore.com>
7291
7292 * breakpoint.h (bpdisp_text): Add declaration.
7293 * breakpoint.c (bpdisp_text): Make non-static.
7294 * ada-lang.c: #include "mi/mi-common.h".
7295 (print_it_exception): Rewrite to improve GDB/MI output.
7296
3352110b
PA
72972011-04-01 Pedro Alves <pedro@codesourcery.com>
7298
7299 * arm-tdep.h (struct address_space): Add forward declaration.
7300
18819fa6
UW
73012011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7302
7303 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7304 * arm-tdep.c (arm_override_mode): New global.
7305 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7306 execution mode heuristics.
7307 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7308 second single-step breakpoint if needed, using
7309 arm_insert_single_step_breakpoint.
7310 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7311 ARM execution mode, do not call thumb_get_next_pc_raw.
7312 (arm_get_next_pc): Encode execution mode in return value. Call
7313 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7314 (arm_insert_single_step_breakpoint): New function.
7315 (arm_software_single_step): Call it.
7316 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7317 argument to return execution mode of sigreturn target.
7318 (arm_linux_syscall_next_pc): Use it.
7319 (arm_linux_copy_svc): Update call.
7320 (arm_linux_software_single_step): Call
7321 arm_insert_single_step_breakpoint.
7322
a6e293d1
JK
73232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7324
7325 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7326 the comment.
7327
a4c8e806
TT
73282011-03-31 Tom Tromey <tromey@redhat.com>
7329
7330 * varobj.c (update_dynamic_varobj_children): Properly handle
7331 errors from iterator.
7332
df5c6c50
JK
73332011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7336 struct linkage name twice.
7337
1dae3efc
TT
73382011-03-31 Tom Tromey <tromey@redhat.com>
7339
7340 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7341 missing ">" to message.
7342
f4f7ab05
TT
73432011-03-31 Tom Tromey <tromey@redhat.com>
7344
7345 * varobj.c (instantiate_pretty_printer): Remove duplicate
7346 'return'.
7347
fcf250e2
UW
73482011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7349
7350 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7351 if neither saved value nor register available (e.g. signal frame).
7352
ee6436e3
TJB
73532011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7354
7355 * macroexp.c (expand): Avoid uninitialized variable
7356 compiler warning.
7357
423f41a5
TJB
73582011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7359
7360 * breakpoint.c (break_range_command): Fix typo in comment.
7361
f1310107
TJB
73622011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7363 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7364
7365 Implement support for PowerPC BookE ranged breakpoints.
7366 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7367 * breakpoint.h (struct bp_target_info) <length>: New member
7368 variable.
7369 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7370 instead of struct breakpoint as argument, and also add ASPACE
7371 and BP_ADDR arguments. Update all callers.
7372 (struct breakpoint_ops) <print_one_detail>: New method.
7373 (struct breakpoint) <addr_string_range_end>: New member variable.
7374 * breakpoint.c (breakpoint_location_address_match): Add function
7375 prototype.
7376 (insert_bp_location): Set bl->target_info.length.
7377 (breakpoint_here_p): Call breakpoint_location_address_match.
7378 (moribund_breakpoint_here_p): Likewise.
7379 (regular_breakpoint_inserted_here_p): Likewise.
7380 (breakpoint_thread_match): Likewise.
7381 (bpstat_stop_status): Likewise.
7382 (bpstat_check_location): Move call to
7383 breakpoint_ops.breakpoint_hit to the top.
7384 (print_one_breakpoint_location): Call
7385 breakpoint_ops.print_one_detail if available.
7386 (breakpoint_address_match_range): New function.
7387 (breakpoint_location_address_match): Likewise.
7388 (breakpoint_locations_match): Compare the length field of the
7389 locations too.
7390 (hw_breakpoint_used_count): Count resources used by all locations
7391 in a breakpoint, and use breakpoint_ops.resources_needed if
7392 available.
7393 (breakpoint_hit_ranged_breakpoint): New function.
7394 (resources_needed_ranged_breakpoint): Likewise.
7395 (print_it_ranged_breakpoint): Likewise.
7396 (print_one_ranged_breakpoint): Likewise.
7397 (print_one_detail_ranged_breakpoint): Likewise.
7398 (print_mention_ranged_breakpoint): Likewise.
7399 (print_recreate_ranged_breakpoint): Likewise.
7400 (ranged_breakpoint_ops): New structure.
7401 (find_breakpoint_range_end): New function.
7402 (break_range_command): Likewise.
7403 (delete_breakpoint): Free addr_string_range_end.
7404 (update_breakpoint_locations): Add SALS_END argument. Update
7405 all callers. Calculate breakpoint length if a non-zero SALS_END
7406 is given. Call breakpoint_locations_match instead of
7407 breakpoint_address_match.
7408 (reset_breakpoint): Find SaL of the end of the range if B is a
7409 ranged breakpoint.
7410 (_initialize_breakpoint): Register break-range command.
7411 * defs.h (print_core_address): Add function prototype.
7412 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7413 function.
7414 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7415 (ppc_linux_remove_hw_breakpoint): Likewise.
7416 (_initialize_ppc_linux_nat): Initialize
7417 to_ranged_break_num_registers.
7418 * target.c (update_current_target): Add comment about
7419 to_ranged_break_num_registers.
7420 (target_ranged_break_num_registers): New function.
7421 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7422 New method.
7423 (target_ranged_break_num_registers): Add function prototype.
7424 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7425 * utils.c (print_core_address): ... here.
7426
02d20e4a
UW
74272011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7428
7429 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7430 variable compiler warning.
7431
ef23e705
TJB
74322011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7433
7434 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7435 code from here ...
7436 (re_set_breakpoint): ... to here ...
7437 (addr_string_to_sals): ... and here.
7438
311e6ab3
PM
74392011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7440
7441 * Makefile.in (SFILES): Add missing C sources.
7442 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7443 Add missing headers.
7444
acd1d99c
MF
74452011-03-29 Mike Frysinger <vapier@gentoo.org>
7446
7447 * .gitignore: New file.
7448
66ee2731
MF
74492011-03-29 Mike Frysinger <vapier@gentoo.org>
7450
7451 * NEWS: Mention new cfi device simulation.
7452
53832f31
TT
74532011-03-29 Tom Tromey <tromey@redhat.com>
7454
7455 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7456 otherwise anonymous types.
7457 (dwarf2_name): Likewise.
7458 * valops.c (value_struct_elt_for_reference): Refine artificial
7459 type logic. Call error if j==-1.
7460
09b58708
JK
74612011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7462
7463 Fix false GCC warning.
7464 * infcall.c (find_function_addr): Initialize funaddr.
7465
6023c606
PM
74662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7467
7468 Fix mingw compilation with --enable-targets=all.
7469 * remote-mips.c (gdb_usleep.h): Include header.
7470 (mips_enter_debug): Use gdb_usleep instead of sleep.
7471
0e30163f
JK
74722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7473
7474 Support resolution of STT_GNU_IFUNC via breakpoints.
7475 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7476 bp_gnu_ifunc_resolver_return.
7477 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7478 the loop. Support bp_gnu_ifunc_resolver and
7479 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7480 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7481 breakpoints.
7482 (bptype_string, print_one_breakpoint_location): Support
7483 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7484 (user_settable_breakpoint): Return true also for
7485 bp_gnu_ifunc_resolver.
7486 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7487 bp_gnu_ifunc_resolver_return.
7488 (set_breakpoint_location_function): New parameter explicit_loc,
7489 describe it. Call find_pc_partial_function_gnu_ifunc with new
7490 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7491 EXPLICIT_LOC is not set.
7492 (set_raw_breakpoint): Set EXPLICIT_LOC for
7493 set_breakpoint_location_function.
7494 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7495 set_breakpoint_location_function.
7496 (mention): Support bp_gnu_ifunc_resolver and
7497 bp_gnu_ifunc_resolver_return.
7498 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7499 set_breakpoint_location_function.
7500 (update_breakpoint_locations): Remove static.
7501 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7502 bp_gnu_ifunc_resolver_return.
7503 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7504 bp_gnu_ifunc_resolver_return.
7505 (update_breakpoint_locations): New declaration.
7506 * elfread.c: Include gdbthread.h and regcache.h.
7507 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7508 functions.
7509 (elf_gnu_ifunc_fns): Install them.
7510 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7511 (stub_gnu_ifunc_resolver_return_stop): New functions.
7512 (stub_gnu_ifunc_fns): Install them.
7513 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7514 and gnu_ifunc_resolver_return_stop.
7515 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7516
07be84bf
JK
75172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 STT_GNU_IFUNC reader implementation.
7520 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7521 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7522 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7523 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7524 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7525 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7526 (elf_gnu_ifunc_resolve_addr): New.
7527 (elf_symfile_read): Call elf_rel_plt_read.
7528 (elf_gnu_ifunc_fns): New.
7529 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7530 Install elf_gnu_ifunc_fns.
7531 * infcall.c (find_function_return_type): New function.
7532 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7533 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7534 (stub_gnu_ifunc_resolve_name): New functions.
7535 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7536 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7537 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7538
300f8e10
JK
75392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7540
7541 Code cleanup for later STT_GNU_IFUNC support.
7542 * infcall.c (find_function_addr): Remove variable code, use explicit
7543 dereferences for it. Move VALUE_TYPE initialization later.
7544
11c81455
JK
75452011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7546
7547 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7548 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7549 (clear_pc_function_cache): Clear it.
7550 (find_pc_partial_function): Rename to ...
7551 (find_pc_partial_function_gnu_ifunc): ... this function. New
7552 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7553 (find_pc_partial_function): New wrapper for this function.
7554 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7555
0875794a
JK
75562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7557
7558 GDB internal type support for STT_GNU_IFUNC.
7559 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7560 (elf_symtab_read): Set mst_text_gnu_ifunc for
7561 BSF_GNU_INDIRECT_FUNCTION.
7562 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7563 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7564 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7565 nodebug_got_plt_symbol.
7566 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7567 (TYPE_GNU_IFUNC): New.
7568 (struct main_type): New field flag_gnu_ifunc.
7569 (struct builtin_type): New field builtin_func_func.
7570 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7571 nodebug_got_plt_symbol.
7572 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7573 (in_gnu_ifunc_stub): New.
7574 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7575 mst_text_gnu_ifunc.
7576 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7577 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7578 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7579 in_gnu_ifunc_stub.
7580 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7581 * symtab.c (search_symbols): Likewise.
7582 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7583 and mst_slot_got_plt.
7584 (in_gnu_ifunc_stub): New declaration.
7585
d0fb5eae
JK
75862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7587
7588 Support a ring of related breakpoints.
7589 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7590 other functions, add gdb_assert.
7591 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7592 watchpoint_del_at_next_stop.
7593 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7594 (bpstat_stop_status): Handle ring in related_breakpoint.
7595 (set_raw_breakpoint_without_location): Initialize ring in
7596 related_breakpoint.
7597 (delete_breakpoint): Handle ring in related_breakpoint, use
7598 watchpoint_del_at_next_stop.
7599 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7600
9cded63f
TT
76012011-03-28 Tom Tromey <tromey@redhat.com>
7602
7603 PR symtab/12441:
7604 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7605 with `language_minimal'.
7606
467d42c4
UW
76072011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7608
7609 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7610 instead of checking for STT_ARM_TFUNC symbol type.
7611
62853458
TT
76122011-03-25 Tom Tromey <tromey@redhat.com>
7613
7614 * linespec.c (symbol_found): Restore line-based result for
7615 non-LOC_LABEL symbols.
7616
a7417d46
KT
76172011-03-25 Kai Tietz <ktietz@redhat.com>
7618
7619 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7620 instead of strcmp for comparison.
7621 (tui_source_is_displayed): Likewise.
7622 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7623
55f1336d
TT
76242011-03-24 Mark Wielaard <mjw@redhat.com>
7625
f33edef8
PP
7626 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7627 complaint.
7628 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7629 (find_partial_die_in_comp_unit): Likewise in comment.
7630 (read_attribute_value): Likewise.
7631 (lookup_die_type): Likewise.
7632 (dwarf_form_name): Likewise.
7633 (dump_die_shallow): Likewise.
7634 (follow_die_ref_or_sig): Likewise.
55f1336d 7635
9ef07c8c
TT
76362011-03-24 Tom Tromey <tromey@redhat.com>
7637
7638 PR breakpoints/11816:
7639 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7640 (decode_compound): Update.
7641 (find_function_symbol): New function.
7642 (decode_dollar): Update.
7643 (decode_label): Add 'function_symbol' parameter. Handle
7644 function-relative labels.
7645 (decode_variable): Update.
7646 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7647 not its line. Set `special_display' and canonical name for
7648 labels.
7649
56435ebe
TT
76502011-03-24 Tom Tromey <tromey@redhat.com>
7651
7652 * linespec.h (struct linespec_result) <special_display>: New
7653 field.
7654 * breakpoint.h (struct breakpoint) <display_canonical>: New
7655 field.
7656 * breakpoint.c (print_breakpoint_location): Respect
7657 display_canonical.
7658 (create_breakpoint_sal): Add 'display_canonical' parameter.
7659 (create_breakpoints_sal): Update.
7660 (create_breakpoint): Update.
7661
7efd8fc2
TT
76622011-03-24 Tom Tromey <tromey@redhat.com>
7663
7664 * symtab.c (decode_line_spec): Update.
7665 * linespec.c (build_canonical_line_spec): Change type of
7666 'canonical'.
7667 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7668 (find_method, decode_all_digits, decode_dollar, decode_label)
7669 (symbol_found): Likewise.
7670 (init_linespec_result): New function.
7671 * breakpoint.c (struct captured_parse_breakpoint_args)
7672 <canonical_p>: New field, replaces addr_string_p.
7673 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7674 'addr_string'.
7675 (parse_breakpoint_sals): Likewise.
7676 (do_captured_parse_breakpoint): Update.
7677 (create_breakpoint): Use struct linespec_result.
7678 (until_break_command): Update.
7679 (breakpoint_re_set_one): Update.
7680 (decode_line_spec_1): Update.
7681 * linespec.h (struct linespec_result): New.
7682 (init_linespec_result): Declare.
7683
788c8b10
PA
76842011-03-23 Pedro Alves <pedro@codesourcery.com>
7685
7686 * regcache.c (regcache_raw_read): If the target didn't supply a
7687 given raw register, mark it as unavailable.
7688
0ba1096a
KT
76892011-03-23 Kai Tietz <ktietz@redhat.com>
7690
7691 * breakpoint.c (clear_command): Use filename_cmp
7692 instead of strcmp for comparison.
7693 * buildsym.c (watch_main_source_file_lossage): Likewise.
7694 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7695 checking just for slash.
7696 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7697 strrchr and filename_cmp instead of strcmp for filenames.
7698 (add_old_header_file): Use filename_cmp
7699 instead of strcmp for comparison.
7700 * exec.c (exec_set_section_address): Likewise.
7701 * macrotab.c (macro_lookup_inclusion): Likewise.
7702 (macro_lookup_inclusion): Likewise.
7703 * elfread.c (_initialize_elfread): Likewise.
7704 (elfstab_offset_sections): Likewise.
7705 (elfstab_offset_sections): Use lbasename instead of
7706 strrchr.
7707 * mdebugread.c (parse_partial_symbols): Likewise.
7708 (arse_partial_symbols): Use filename_(n)cmp instead of
7709 str(n)cmp for comparison.
7710 * minsyms.c (lookup_minimal_symbol): Likewise.
7711 * psymtab.c (read_psymtabs_with_filename): Likewise.
7712 * solib.c (solib_read_symbols): Likewise.
7713 (reload_shared_libraries_1): Likewise.
7714 * symmisc.c (maintenance_print_symbols): Likewise.
7715 * symfile.c (separate_debug_file_exists): Likewise.
7716 (reread_symbols): Likewise.
7717 (find_separate_debug_file_by_debuglink): Likewise.
7718 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7719 * source.c (add_path): Likewise.
7720 * symtab.c (filename_seen): Likewise.
7721 (file_matches): Likewise.
7722 (print_symbol_info): Likewise.
7723 (maybe_add_partial_symtab_filename): Likewise.
7724 (make_source_files_completion_list): Likewise.
7725 * xml-syscall.c (init_sysinfo): Likewise.
7726 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7727 IS_DIR_SEPARATOR for checking for trailing path separator.
7728
dd90784c
JK
77292011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7730
7731 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7732 label abort_expression.
7733 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7734 DWARF_VALUE_OPTIMIZED_OUT.
7735
3167638f
JK
77362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 Code cleanup.
7739 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7740 to linkage_name. Invert its value. Update the function comment.
7741 (c_type_print_varspec_suffix): Invert it at the caller.
7742 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7743
ce406537
PA
77442011-03-22 Pedro Alves <pedro@codesourcery.com>
7745
7746 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7747 errors when reading the `stop_pc'.
7748 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7749 get_frame_pc.
7750
da5d4055
PM
77512011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7752
7753 * NEWS: Document gdb.Write stream keyword.
7754
29e0eb9c
JK
77552011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7756
7757 Revert:
7758 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7759 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7760 (dwarf2_add_field): Fix new_field->accessibility for
7761 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7762
05775840
PM
77632011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7764
f33edef8 7765 PR python/12183
05775840
PM
7766
7767 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7768 other error classes. Do not print stack trace.
7769
a0cb7835
JK
77702011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7773 (dwarf2_add_field): Fix new_field->accessibility for
7774 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7775
d19f7eee
UW
77762011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7777
7778 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7779 encountering a load via a non-SP register.
7780
4a2fbb50
UW
77812011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7782
7783 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7784 field in returned unwinder.
7785
3489610d
JB
77862012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7789
8c1a34e7
JB
77902012-03-21 Joel Brobecker <brobecker@adacore.com>
7791
7792 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7793 of xmalloc.
7794
8fbca658
PA
77952012-03-18 Pedro Alves <pedro@codesourcery.com>
7796
7797 * frame.c (frame_unwind_register): Throw an error if unwinding the
7798 register failed.
7799 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7800 an unwind stop reason.
7801 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7802 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7803 UNWIND_UNAVAILABLE>: New.
7804 * inline-frame.c (inline_frame_unwind): Install
7805 default_frame_unwind_stop_reason.
7806 * frame-unwind.c: Include "exceptions.h".
7807 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7808 (default_frame_unwind_stop_reason): New.
7809 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7810 (default_frame_unwind_stop_reason): Declare.
7811 (struct frame_unwind) <stop_reason>: New function pointer.
7812
7813 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7814 * dwarf2-frame.c: Include exceptions.h.
7815 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7816 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7817 computing the CFA. If such an error was thrown, set
7818 unavailable_retaddr.
7819 (dwarf2_frame_unwind_stop_reason): New.
7820 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7821 unavailable.
7822 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7823 (dwarf2_signal_frame_unwind): Ditto.
7824
7825 * amd64-tdep.c: Include "exceptions.h".
7826 (struct amd64_frame_cache): New field "base_p".
7827 (amd64_init_frame_cache): Clear it.
7828 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7829 Avoid reading registers with functions that throw if the register
7830 is not necessary to compute the frame base.
7831 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7832 swallowing NOT_AVAILABLE_ERROR.
7833 (amd64_frame_unwind_stop_reason): New.
7834 (amd64_frame_this_id): Don't build a frame id if the frame base
7835 was unavailable.
7836 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7837 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7838 base_p if the frame base was computable.
7839 (amd64_sigtramp_frame_unwind_stop_reason): New.
7840 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7841 frame base was unavailable.
7842 (amd64_sigtramp_frame_unwind): Install
7843 amd64_sigtramp_frame_unwind_stop_reason.
7844 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7845 base_p if the frame base was computable.
7846 (amd64_epilogue_frame_unwind_stop_reason): New.
7847 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7848 frame base was unavailable.
7849 (amd64_epilogue_frame_unwind): Install
7850 amd64_epilogue_frame_unwind_stop_reason.
7851 * i386-tdep.c: Include "exceptions.h".
7852 (struct i386_frame_cache): New field "base_p".
7853 (i386_init_frame_cache): Clear it.
7854 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7855 Avoid reading registers with functions that throw if the register
7856 is not necessary to compute the frame base.
7857 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7858 swallowing NOT_AVAILABLE_ERROR.
7859 (i386_frame_unwind_stop_reason): New.
7860 (i386_frame_this_id): Don't build a frame id if the frame base was
7861 unavailable.
7862 (i386_frame_prev_register): Handle unavailable SP.
7863 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7864 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7865 base_p if the frame base was computable.
7866 (i386_epilogue_frame_unwind_stop_reason): New.
7867 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7868 base was unavailable.
7869 (i386_epilogue_frame_unwind): Install
7870 i386_epilogue_frame_unwind_stop_reason.
7871 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7872 base_p if the frame base was computable.
7873 (i386_sigtramp_frame_unwind_stop_reason): New.
7874 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7875 base was unavailable.
7876 (i386_sigtramp_frame_unwind): Install
7877 i386_sigtramp_frame_unwind_stop_reason.
7878 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7879 type's size, not the register's.
7880 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7881
7882 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7883 default_frame_unwind_stop_reason.
7884 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7885 (alpha_heuristic_frame_unwind): Ditto.
7886 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7887 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7888 * avr-tdep.c (avr_frame_unwind): Ditto.
7889 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7890 Ditto.
7891 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7892 * frv-tdep.c (frv_frame_unwind): Ditto.
7893 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7894 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7895 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7896 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7897 (hppa_stub_frame_unwind): Ditto.
7898 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7899 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7900 (ia64_libunwind_frame_unwind)
7901 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7902 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7903 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7904 * m32c-tdep.c (m32c_unwind): Ditto.
7905 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7906 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7907 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7908 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7909 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7910 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7911 * mep-tdep.c (mep_frame_unwind): Ditto.
7912 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7913 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7914 (mips_stub_frame_unwind): Ditto.
7915 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7916 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7917 * mt-tdep.c (mt_frame_unwind): Ditto.
7918 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7919 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7920 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7921 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7922 (s390_sigtramp_frame_unwind): Ditto.
7923 * score-tdep.c (score_prologue_unwind): Ditto.
7924 * sh-tdep.c (sh_frame_unwind): Ditto.
7925 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7926 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7927 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7928 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7929 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7930 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7931 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7932 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7933 (sparc64obsd_trapframe_unwind): Ditto.
7934 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7935 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7936 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7937 * v850-tdep.c (v850_frame_unwind): Ditto.
7938 * vax-tdep.c (vax_frame_unwind): Ditto.
7939 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7940 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7941 * xtensa-tdep.c (xtensa_unwind): Ditto.
7942
f23d1b92
PA
79432011-03-18 Pedro Alves <pedro@codesourcery.com>
7944
7945 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7946 there's always a frame. Use get_frame_pc_if_available instead of
7947 get_frame_pc, and if there's no PC available, don't look up a
7948 symtab.
7949
1d4f5741
PA
79502011-03-18 Pedro Alves <pedro@codesourcery.com>
7951
7952 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7953 unavailable PC.
7954
dba09041
PA
79552011-03-18 Pedro Alves <pedro@codesourcery.com>
7956
7957 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7958 gracefully.
7959
9a26e44c
PA
79602011-03-18 Pedro Alves <pedro@codesourcery.com>
7961
7962 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7963 * frame.c (frame_unwind_caller_pc_if_available): New.
7964 * stack.c (frame_info): Handle unavailable PC.
7965
79662011-03-18 Pedro Alves <pedro@codesourcery.com>
7967
7968 * frame.c (frame_unwind_pc): Rename to ...
7969 (frame_unwind_pc_if_available): ... this. New `pc' output
7970 parameter. Change return type to int. Gracefully handle
7971 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7972 happened, or 1 otherwise.
7973 (frame_unwind_pc): Reimplement on top of
7974 frame_unwind_pc_if_available.
7975 (get_frame_func): Rename to ...
7976 (get_frame_func_if_available): New `pc' output parameter. Change
7977 return type to int. Gracefully handle the PC not being available.
7978 (get_frame_func): Reimplement on top of
7979 get_frame_func_if_available.
7980 (select_frame): Handle the PC being unavailable.
7981 (get_prev_frame): Handle the PC being unavailable.
7982 (get_frame_pc_if_available): New.
7983 (get_frame_address_in_block_if_available): New.
7984 (find_frame_sal): Handle the frame PC not being available.
7985 * frame.h (get_frame_pc_if_available): Declare.
7986 (get_frame_address_in_block_if_available): Declare.
7987 (get_frame_func_if_available): Declare.
7988 * stack.c (print_frame_info): Handle the PC being unavailable.
7989 (find_frame_funname): Ditto.
7990 (print_frame): Handle the PC being unavailable.
7991 (get_frame_language): Ditto.
7992 * blockframe.c (get_frame_block): Ditto.
7993 * macroscope.c (default_macro_scope): Ditto.
7994 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7995
79962011-03-18 Pedro Alves <pedro@codesourcery.com>
7997
7998 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7999 NOT_AVAILABLE_ERROR when evaluating the location expression.
8000
80012011-03-18 Pedro Alves <pedro@codesourcery.com>
8002
8003 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8004 returning that the register piece is unavailable/optimized out.
8005 (write_pieced_value): Handle get_frame_register_bytes returning
8006 that the register piece is unavailable/optimized out when doing a
8007 read-modify write of a bitfield.
8008 * findvar.c (value_from_register): Handle get_frame_register_bytes
8009 returning that the register piece is unavailable/optimized out.
8010 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8011 and `unavailablep'. Throw error on bad debug info. Use
8012 frame_register instead of frame_register_read, to fill in the new
8013 arguments.
8014 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8015 and `unavailablep'.
8016 * valops.c: (value_assign): Adjust, and handle
8017 get_frame_register_bytes failing.
8018 * spu-tdep.c: Include exceptions.h.
8019 (spu_software_single_step): Adjust, and handle
8020 get_frame_register_bytes failing.
8021 (spu_get_longjmp_target): Ditto.
8022 * gdbarch.sh (register_to_value): Change to return int. New
8023 parameters `optimizedp' and `unavailablep'.
8024 * gdbarch.h, gdbarch.c: Regenerate.
8025 * i386-tdep.c (i386_register_to_value): Adjust to new
8026 gdbarch_register_to_value interface.
8027 * i387-tdep.c (i387_register_to_value): Ditto.
8028 * i387-tdep.h (i387_register_to_value): Ditto.
8029 * alpha-tdep.c (alpha_register_to_value): Ditto.
8030 * ia64-tdep.c (ia64_register_to_value): Ditto.
8031 * m68k-tdep.c (m68k_register_to_value): Ditto.
8032 * mips-tdep.c (mips_register_to_value): Ditto.
8033 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8034
0fdb4f18
PA
80352011-03-18 Pedro Alves <pedro@codesourcery.com>
8036
8037 * findvar.c (value_of_register): Mark the value as unavailable, if
8038 the register is unavailable.
8039 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8040 (frame_register): New `unavailablep' parameter.
8041 (frame_register_read): Update comment.
8042 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8043 Set it if the register is unavailable. If the register is
8044 unavailable, clear the output buffer.
8045 (frame_register): New `unavailablep' parameter. Pass it down.
8046 (frame_unwind_register): Adjust.
8047 (put_frame_register): Adjust.
8048 (frame_register_read): Adjust. Also return false if the register
8049 is not available.
8050 (frame_register_unwind_location): Adjust.
8051 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8052 is unavailable, mark the value accordingly.
8053 * stack.c (frame_info): Handle unavailable registers.
8054
e69aa73e
PA
80552011-03-18 Pedro Alves <pedro@codesourcery.com>
8056
8057 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8058 simplify, using regcache_cooked_read.
8059
05d1431c
PA
80602011-03-18 Pedro Alves <pedro@codesourcery.com>
8061
8062 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8063 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8064 (regcache_raw_read_unsigned, regcache_raw_read_part)
8065 (regcache_cooked_read, regcache_cooked_read_signed)
8066 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8067 (regcache_cooked_read_ftype): Change return to enum
8068 register_status.
8069 * regcache.c: Include exceptions.h
8070 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8071 (do_cooked_read): Change return to enum register_status. Always
8072 forward to regcache_cooked_read.
8073 (regcache_raw_read): Change return to enum register_status. If
8074 the register is not REG_VALID, memset the buffer. Return the
8075 register's status.
8076 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8077 return the register's status.
8078 (regcache_raw_read_unsigned): Ditto.
8079 (regcache_cooked_read): Change return to enum register_status.
8080 Assert that with read-only regcaches, the register's status must
8081 be known. If the regcache is read-only, and the register is not
8082 REG_VALID, memset the buffer. Return the register's status.
8083 (regcache_cooked_read_signed): Change return to enum
8084 register_status. Handle non-REG_VALID registers and return the
8085 register's status.
8086 (regcache_cooked_read_unsigned): Change return to enum
8087 register_status. Handle non-REG_VALID registers and return the
8088 register's status.
8089 (regcache_xfer_part, regcache_raw_read_part)
8090 (regcache_cooked_read_part): Change return to enum
8091 register_status. Return the register's status.
8092 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8093 unavailable.
8094 (regcache_dump): Handle unavailable cooked registers.
8095 * frame.c (do_frame_register_read): Adjust interface to match
8096 regcache_cooked_read_ftype.
8097 * gdbarch.sh (pseudo_register_read): Change return to enum
8098 register_status.
8099 * gdbarch.h, gdbarch.c: Regenerate.
8100
8101 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8102 register_status.
8103 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8104 register_status. If reading a raw register indicates the raw
8105 register is not valid, return the raw register's status,
8106 otherwise, return REG_VALID.
8107 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8108 register_status. Handle non-REG_VALID raw registers and return
8109 the register's status.
8110 * arm-tdep.c (arm_neon_quad_read)
8111 (arm_pseudo_read): Change return to enum register_status. Handle
8112 non-REG_VALID raw registers and return the register's status.
8113 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8114 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8115 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8116 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8117 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8118 register_status.
8119 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8120 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8121 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8122 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8123 (m32c_pseudo_register_read): Change return to enum
8124 register_status. Adjust.
8125 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8126 enum register_status. Return the register's status.
8127 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8128 register_status. Return the register's status.
8129 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8130 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8131 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8132 * rs6000-tdep.c (move_ev_register_func): New typedef.
8133 (e500_move_ev_register): Use it. Change return to enum
8134 register_status. Return the register's status.
8135 (do_regcache_raw_read): New function.
8136 (do_regcache_raw_write): New function.
8137 (e500_pseudo_register_read): Change return to enum
8138 register_status. Return the register's status. Use
8139 do_regcache_raw_read.
8140 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8141 (dfp_pseudo_register_read): Change return to enum register_status.
8142 Return the register's status.
8143 (vsx_pseudo_register_read): Ditto.
8144 (efpr_pseudo_register_read): Ditto.
8145 (rs6000_pseudo_register_read): Ditto.
8146 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8147 register_status. Return the register's status.
8148 * sh64-tdep.c (pseudo_register_read_portions): New function.
8149 (sh64_pseudo_register_read): Change return to enum
8150 register_status. Use pseudo_register_read_portions. Return the
8151 register's status.
8152 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8153 register_status. Return the register's status.
8154 * sh-tdep.c (pseudo_register_read_portions): New function.
8155 (sh_pseudo_register_read): Change return to enum register_status.
8156 Use pseudo_register_read_portions. Return the register's status.
8157 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8158 enum register_status. Return the register's status.
8159 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8160 * spu-tdep.c (spu_pseudo_register_read_spu)
8161 (spu_pseudo_register_read): Ditto.
8162 * xtensa-tdep.c (xtensa_register_read_masked)
8163 (xtensa_pseudo_register_read): Ditto.
8164 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8165
e10abd8f
PM
81662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8167
8168 * python/py-value.c (valpy_getitem): Fix formatting of error function
8169 call.
8170
7ea6d463
PM
81712011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8172
8173 ARI fixes: Add missing internationalization markups throughout
8174 C source files.
8175 * darwin-nat-info.c: Ditto.
8176 * record.c: Ditto.
8177 * remote.c: Ditto.
8178 * mi/mi-main.c: Ditto.
8179
001083c6
PM
81802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8181
8182 ARI fixes: Add missing internationalization markups throughout
8183 yacc files.
8184 * c-exp.y: Ditto.
8185 * cp-name-parser.y: Ditto.
8186 * f-exp.y: Ditto.
8187 * m2-exp.y: Ditto.
8188 * objc-exp.y: Ditto.
8189 * p-exp.y: Ditto.
8190
4f1cdeec
PM
81912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8192
8193 ARI fixes: Messages should have no trailing new lines.
8194 * darwin-nat.c (mach_check_error): Remove trailing new line from
8195 warning function call message.
8196 * record.c (bfdcore_read): Idem for error call.
8197
28e698f1
PM
81982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8199
8200 * common/signals.c (target_signal_from_host): Add _ markup to error
8201 function call message.
8202 (target_signal_to_host): Add _ markup and remove trailing new line
8203 from warning call message.
8204 (target_signal_from_command): Add _ markup to error function call
8205 message.
8206
99c3dc11
PM
82072011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8208
f33edef8 8209 PR python/12149
99c3dc11
PM
8210
8211 * python/python.c (gdbpy_write): Accept a stream argument and
8212 operate to the appropriate stream.
8213 (gdbpy_flush): Likewise.
8214 (_initialize_python): Add stream constants.
8215 (finish_python_initialization): Add GdbOutputErrorFile class.
8216
c20800be
KY
82172011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8218
8219 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8220
f4a1794a
KY
82212011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8222
8223 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8224 to store_signed_integer. Add debug message when relocating CALL
8225 instructions. Fix formatting of debug message.
8226 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8227
d4862372
JB
82282011-03-17 Joel Brobecker <brobecker@gnat.com>
8229
8230 * target.h (struct target_ops): Remove to_lookup_symbol field.
8231 (target_lookup_symbol): Delete macro.
8232 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8233 (update_current_target, setup_target_debug): Remove handling
8234 of to_lookup_symbol target_ops field.
8235 * ada-tasks.c (get_known_tasks_addr): Remove use of
8236 target_lookup_symbol.
8237 * coffread.c (coff_symtab_read): Likewise.
8238 * dbxread.c (read_dbx_symtab): Ditto.
8239
d645e32e
JB
82402011-03-17 Joel Brobecker <brobecker@gnat.com>
8241
8242 PR gdb/12116:
8243 * configure.ac: Add getthrds declaration check.
8244 * configure, config.in: Regenerate.
8245 * aix-thread.c (getthrds): Declare only if not already declared
8246 in procinfo.h. More declaration out of get_signaled_thread to
8247 global scope.
8248
29703da4
PM
82492011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8250
8251 * python/py-symtab.c: Populate symtab_object_methods,
8252 sal_object_methods.
8253 (stpy_is_valid): New function.
8254 (salpy_is_valid): Ditto.
8255 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8256 (sympy_is_valid): New function.
8257 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8258 (objfpy_is_valid): New function.
8259 * python/py-inferior.c: Populate inferior_object_methods.
8260 (infpy_is_valid): New function.
8261 * python/py-infthread.c: Populate thread_object_methods.
8262 (thpy_is_valid): New function.
8263 * python/py-block.c: Declare block_object_methods. Populate. Declare
8264 block_iterator_object_methods. Populate.
8265 (blpy_is_valid): New function.
8266 (blpy_iter_is_valid): Ditto.
8267
c00f8484
KS
82682011-03-16 Keith Seitz <keiths@redhat.com>
8269
8270 * linespec.c (find_methods): Canonicalize NAME before looking
8271 up the symbol.
8272 (name_end): New function.
8273 (keep_name_info): New function.
8274 (decode_line_1): Use keep_name_info.
8275 (decode_compound): Likewise.
8276 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8277 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8278
8279 PR c++/12273
8280 * linespec.c (locate_first_half): Keep overload information, too.
8281 (decode_compound): Use a string to represent break characters
8282 to escape the loop.
8283 If P points to a break character, do not increment it.
8284 For C++ and Java, keep overload information and relevant keywords.
8285 If we cannot find a symbol, search the minimal symbols.
8286
8287 PR c++/11734
8288 * linespec.c (decode_compound): Rename SAVED_ARG to
8289 THE_REAL_SAVED_ARG.
8290 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8291 single-quotes.
8292 Pass a valid block to lookup_symbol.
8293 (lookup_prefix_sym): Likewise.
8294 (find_method): Construct search name based on SYM_CLASS instead
8295 of SAVED_ARG.
8296 * psymtab.c (lookup_partial_symbol): Add language parameter.
8297 (lookup_symbol_aux_psymtabs): Likewise.
8298 Don't assume that the psymtab we found was the right one. Search
8299 for the desired symbol in the symtab to be certain.
8300 (psymtab_search_name): New function.
8301 (lookup_partial_symbol): Use psymtab_search_name.
8302 Add language parameter.
8303 (read_symtabs_for_function): Add language parameter and pass to
8304 lookup_partial_symbol.
8305 (find_symbol_file_from_partial): Likewise.
8306
c91513d8
PP
83072011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8308
8309 PR gdb/12528
8310 * dwarf2read.c (noop_record_line): New function.
8311 (dwarf_decode_lines): Ignore line tables for GCd functions.
8312
b37520b6
PM
83132011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8314
8315 Fix ARI warnings about new lines at the end of messages, which
8316 are unneeded as there is a new line added at the end of the message
8317 automatically.
8318 * darwin-nat.c (darwin_stop_inferior): Ditto.
8319 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8320 * dfp.c (decimal_to_number): Ditto.
8321 * exec.c (print_section_info): Ditto.
8322 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8323 * osdata.c (get_osdata): Ditto.
8324 * record.c (bfdcore_write): Ditto.
8325 * remote-mips.c (mips_readchar): Ditto.
8326 * remote.c (read_ptid): Ditto.
8327 * ser-mingw.c (ser_windows_raw): Ditto.
8328 * tracepoint.c (add_local_symbols): Ditto.
8329 * windows-nat.c (fake_create_process): Ditto.
8330
b08ee6a2
TT
83312011-03-16 Tom Tromey <tromey@redhat.com>
8332
8333 * tracepoint.c (stop_tracing): Don't declare.
8334 * event-top.c (after_char_processing_hook): Add `(void)'.
8335
9a6f1302
PM
83362011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8337
8338 * NEWS: Add Parameter sub-classing description.
8339
7ceb86b1
KT
83402011-03-16 Kai Tietz <ktietz@redhat.com>
8341
8342 * MAINTAINERS: Update my e-mail address.
8343
efeff6cf
AT
83442011-03-15 Andreas Tobler <andreast@fgznet.ch>
8345
8346 * MAINTAINERS: Add myself for write after approval privileges.
8347
681c238c
MS
83482011-03-15 Michael Snyder <msnyder@vmware.com>
8349
f3df5b08
MS
8350 * frame.c (find_frame_sal): Assert sym is not null.
8351
13f6513c
MS
8352 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8353
50412521
MS
8354 * objc-lang.c (selectors_info): Check strchr for null result.
8355
681c238c
MS
8356 * stabsread.c (define_symbol): Guard against bad stabstring input.
8357
6ced1581
PM
83582011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8359
8360 Remove trailing spaces and tabulations from pascal language
8361 support sources.
8362 p-exp.y: Ditto.
8363 p-lang.c: Ditto.
8364 p-lang.h: Ditto.
8365 p-valprint.c: Ditto.
8366
9373cf26
JK
83672011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8368
8369 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8370 than LOW. Comment it.
8371 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8372 HIGHPC not strictly higher than LOWPC.
8373
9a1edae6
PM
83742011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8375
8376 Fix formatting of function declarations returning a pointer in
8377 previous commit.
8378 * varobj.c (varobj_add_child): Ditto.
8379 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8380 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8381
24e9cda0
UW
83822011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8383
8384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8385 for the "generic" vector ABI used with GCC 4.3 and later.
8386 (ppc64_sysv_abi_return_value): Likewise.
8387
83882011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8389
8390 * infcall.c (call_function_by_hand): Function return value is
8391 always a non_lval, even when using struct_return.
8392
c9174737
PA
83932011-03-15 Pedro Alves <pedro@codesourcery.com>
8394
8395 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8396 (map_display_numbers): New.
8397 (do_delete_display): New.
8398 (undisplay_command): Use map_display_numbers.
8399 (do_enable_disable_display): New.
8400 (enable_disable_display_command): New function.
8401 (enable_display): Delete.
8402 (enable_display_command): New.
8403 (disable_display_command): Reimplement.
8404 (_initialize_printcmd): Adjust "enable display" command to use
8405 `enable_display_command' as callback.
8406
350c6c65
PM
84072011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8408
8409 * NEWS: Add Python breakpoint 'stop' operation.
8410
824446ad
PM
84112011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8412
8413 * NEWS: Delete duplicate entry. Fix typo.
8414
2021ad3a
PM
84152011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8416
8417 Fix ARI warning about function names in first column.
8418 Put prototype declaration on same line as return type.
8419 * objc-exp.y: Ditto.
8420 * p-exp.y: Ditto.
8421 * python/py-stopevent.h: Ditto.
8422 For long function names, split parameters to
8423 allow function name on same line as return type.
8424 * solib-pa64.c: Ditto.
8425 * varobj.c: Ditto.
8426 * varobj.h: Ditto.
8427 For long function declaration, use single line.
8428 * hppa-tdep.h: Ditto.
8429 * inferior.h: Ditto.
8430
7371cf6d
PM
84312011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8432
8433 * python/python.h: Declare gdbpy_should_stop and
8434 gdbpy_breakpoint_has_py_cond.
8435 * python/python.c: Add python.h to includes. Remove python.h from
8436 HAVE_PYTHON definition
8437 (gdbpy_should_stop): New dummy function.
8438 (gdbpy_breakpoint_has_py_cond): New dummy function.
8439 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8440 sub-classing capabilities.
8441 (gdbpy_should_stop): New function.
8442 (gdbpy_breakpoint_has_py_cond): New function.
8443 (local_setattro): New function.
8444 * breakpoint.c (condition_command): Add check for Python 'stop'
8445 operation.
8446 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8447 operation function as part of stop/continue tests.
8448
37b50a69
TT
84492011-03-14 Tom Tromey <tromey@redhat.com>
8450
8451 PR gdb/12576:
8452 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8453 (needs_frame_dwarf_call): Likewise.
8454
eeae04df
PM
84552011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8456
8457 Fix ARI warning about functions without parameters that do not
8458 use (void).
8459 * breakpoint.c (all_tracepoints): Replace () by (void).
8460 * f-exp.y (match_string_literal): Ditto.
8461 (yylex): Ditto.
8462 * m2-exp.y (yylex): Ditto.
8463 * mep-tdep.c (current_me_module): Ditto.
8464 (current_options): Ditto.
8465 (current_cop_data_bus_width): Ditto.
8466 (current_cr_names): Ditto.
8467 (current_cr_is_float): Ditto.
8468 (current_ccr_names): Ditto.
8469 * objc-exp.y (yylex): Ditto.
8470 * p-exp.y (yylex): Ditto.
8471 * remote.c (send_interrupt_sequence): Ditto.
8472 * tracepoint.c (current_trace_status): Ditto.
8473 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8474 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8475
6dc3565d
MS
84762011-03-11 Michael Snyder <msnyder@vmware.com>
8477
1427fe5e
MS
8478 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8479 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8480 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8481 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8482 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8483
60bc018f
MS
8484 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8485 (delete_async_event_handler): Ditto.
8486
f3be5b64
MS
8487 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8488
4c2d5724
MS
8489 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8490
6dc3565d
MS
8491 * top.c (set_verbose): Assert showcmd was found.
8492
4e6ca6d5
MG
84932011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8494
8495 * xtensa-tdep.c (warning_once): Correct style issues.
8496
815a83e4
YQ
84972011-03-11 Yao Qi <yao@codesourcery.com>
8498
8499 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8500
f2eb0bc8
AS
85012011-03-11 Andreas Schwab <schwab@redhat.com>
8502
8503 * common/aclocal.m4: Remove.
8504
b801de47
MG
85052011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8506
8507 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8508 (xtensa_write_register, xtensa_read_register): Likewise.
8509 (xtensa_hextochar): Removed.
8510 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8511
dbab50de
MG
85122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8513
8514 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8515 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8516 (xtensa_alloc_frame_cache): Add initialization for new fields.
8517 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8518 (warning_once): New function.
8519 (xtensa_insn_kind): New item c0opc_and.
8520 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8521 (call0_track_op): Change arguments. New local variable litbase.
8522 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8523 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8524 in the prologue.
dbab50de 8525 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8526 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8527 Add the variety of updates to handle extended prologues, which now can
8528 conduct dynamic stack adjustments.
8529 (call0_frame_cache): Likewise.
8530 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8531 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8532
b2c04452
MS
85332011-03-10 Michael Snyder <msnyder@vmware.com>
8534
f8f67713
MS
8535 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8536 (cmd_qtframe): Ditto.
8537 (cmd_qtbuffer): Ditto.
8538 (cmd_bigqtbuffer): Ditto.
8539
197f0a60
TT
85402011-03-10 Tom Tromey <tromey@redhat.com>
8541
8542 * tracepoint.c (trace_actions_command): Update.
8543 * thread.c (thread_apply_command): Update.
8544 * reverse.c (delete_bookmark_command): Update.
8545 (bookmarks_info): Update.
8546 * printcmd.c (undisplay_command): Update.
8547 * memattr.c (mem_enable_command): Update.
8548 (mem_disable_command): Update.
8549 (mem_delete_command): Update.
8550 * inferior.c (detach_inferior_command): Update.
8551 (kill_inferior_command): Update.
8552 (remove_inferior_command): Update.
8553 * cli/cli-utils.h (struct get_number_or_range_state): New.
8554 (init_number_or_range): Declare.
8555 (get_number_or_range): Update.
8556 * cli/cli-utils.c (init_number_or_range): New function.
8557 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8558 static variables.
8559 (number_is_in_list): Update.
8560 * breakpoint.h (get_tracepoint_by_number): Update.
8561 * breakpoint.c (map_breakpoint_numbers): Update for change to
8562 get_number_or_range.
8563 (find_location_by_number): Use get_number, not
8564 get_number_or_range.
8565 (trace_pass_set_count): New function.
8566 (trace_pass_command): Update for change to get_number_or_range.
8567 Rework loop logic.
8568 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8569 'state' parameter.
8570
ecec24e6
PM
85712011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8572
8573 * python/py-param.c (add_setshow_generic): Add set/show callback
8574 parameters. Register Python object context.
8575 (get_show_value): New function.
8576 (get_set_value): New function.
8577 (call_doc_function): New function.
8578 (get_doc_string): Move behind get_show_value/get_set_value.
8579
6d6c6b1f
JK
85802011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8581
8582 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8583
68d6df83
MG
85842011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8585
dbab50de 8586 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8587 (xtensa_write_register): Likewise.
8588 (xtensa_hextochar): Add comment and update to match coding conventions.
8589 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8590 (execute_l32e, execute_s32e, execute_code): Update comments.
8591 (xtensa_exception_handler_t): Update to match coding conventions.
8592 (xtensa_insn_kind): Likewise.
8593
85c9d6a6
MS
85942011-03-09 Michael Snyder <msnyder@vmware.com>
8595
8596 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8597
91495617
PA
85982011-03-09 Pedro Alves <pedro@codesourcery.com>
8599
8600 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8601
eb8c0621
TT
86022011-03-09 Tom Tromey <tromey@redhat.com>
8603
8604 * thread.c (restore_selected_frame): Handle frame_level == -1.
8605 (make_cleanup_restore_current_thread): Use
8606 get_selected_frame_if_set.
8607 * frame.h (get_selected_frame_if_set): Declare.
8608 * frame.c (get_selected_frame_if_set): New function.
8609
9f37bbcc
PA
86102011-03-09 Pedro Alves <pedro@codesourcery.com>
8611
8612 * cli/cli-cmds.c (shell_escape): Use lbasename.
8613 * coffread.c (coff_start_symtab): Constify parameter.
8614 (complete_symtab): Constify `name' parameter.
8615 (coff_symtab_read): Constify `filestring' local.
8616 (coff_getfilename): Constify return and `result' local.
8617 Use lbasename.
8618 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8619 * linux-fork.c (info_checkpoints_command): Use lbasename.
8620 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8621 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8622 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8623 * procfs.c (procfs_make_note_section): Use lbasename.
8624 * tui/tui-io.c (printable_part): Constity return and parameter.
8625 Use lbasename.
8626 (print_filename): Constify parameters, and local `s'.
8627 (tui_rl_display_match_list): Constify local `temp'.
8628
f8de3c55
JK
86292011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8630
8631 Revert:
8632 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8633 Fix DWARF-3+ DW_AT_accessibility default assumption.
8634 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8635 cu->header.version >= 3.
8636
d9837b00
YQ
86372011-03-09 Yao Qi <yao@codesourcery.com>
8638
8639 * common/Makefile.in: Remove.
8640 * common/configure: Remove.
8641 * common/configure.ac: Remove.
8642
e637a4f5
YQ
86432011-03-09 Yao Qi <yao@codesourcery.com>
8644
8645 Revert:
8646 2011-02-11 Yao Qi <yao@codesourcery.com>
8647
8648 * common/Makefile.in: Add copyright header.
8649
8650 2011-02-11 Yao Qi <yao@codesourcery.com>
8651
8652 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8653 libcommon.a.
8654 * configure.ac: Add common to sub dir.
8655 * configure: Regenerate.
8656
f976a05d
MG
86572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8658
8659 * xtensa-tdep.c (call0_ret): New function.
8660 (xtensa_skip_prologue): Speed up analysis.
8661
57041825
MG
86622011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8663
8664 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8665 while executing MI command -data-list-changed-registers.
8666
08b9c608
MG
86672011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8668
8669 * xtensa-tdep.c (xtensa_read_register): New function.
8670 (xtensa_write_register): New function.
8671 (xtensa_find_register_by_name): New function.
8672 (xtensa_windowed_frame_cache): Update comments in type description.
8673 (xtensa_frame_cache): Likewise.
8674 (xtensa_window_interrupt_insn): New function.
8675 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8676 (xtensa_insn_kind): Add new instructions.
8677 (rwx_special_register): New function.
8678 (call0_classify_opcode): Add new instructions to the analysis.
8679 (a0_saved, a7_saved, a11_saved): New variables.
8680 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8681 (execute_l32e): New function.
8682 (execute_s32e): New function.
8683 (xtensa_exception_handler_t): New type.
8684 (execute_code): New function.
8685 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8686 analysis for Xtensa Window Exception handlers.
8687
4d1acb11
MG
86882011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8689
98689b25
MG
8690 * xtensa-tdep.c (TX_PS): New.
8691 (windowing_enabled): Update to count for Call0 ABI.
8692 (xtensa_hextochar): New.
8693 (xtensa_init_reggroups): Make algorithm generic.
8694 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8695
86962011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8697
8698 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8699
d3f323f3
MS
87002011-03-08 Michael Snyder <msnyder@vmware.com>
8701
3dcabaa8
MS
8702 * i386-tdep.c (i386_follow_jump): Check return value of
8703 target_read_memory.
8704 (i386_analyze_struct_return): Ditto.
8705 (i386_skip_probe): Ditto.
8706 (i386_match_insn): Ditto.
8707 (i386_skip_noop): Ditto.
8708 (i386_analyze_frame_setup): Ditto.
8709 (i386_analyze_register_saves): Ditto.
8710 (i386_skip_prologue): Ditto.
8711 (i386_skip_main_prologue): Ditto.
8712
13b3fd9b
MS
8713 * target.c (read_whatever_is_readable): Fix memory leak.
8714
d3f323f3
MS
8715 * i386-tdep.c (i386_process_record): Document fall through.
8716
421d5c74
JK
87172011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 Fix DWARF-3+ DW_AT_accessibility default assumption.
8720 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8721 cu->header.version >= 3.
8722
63154eca
PA
87232011-03-08 Pedro Alves <pedro@codesourcery.com>
8724
8725 * remote.c (remote_check_symbols): Skip if the target has no
8726 execution.
8727
f1a507a1
JB
87282011-03-08 Joel Brobecker <brobecker@adacore.com>
8729
8730 * target.c (read_whatever_is_readable): Reformat comment,
8731 with a minor typo fix. Minor reformatting of the code.
8732
36073a92
YQ
87332011-03-08 Yao Qi <yao@codesourcery.com>
8734
8735 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8736 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8737 Use cached result instead of calling displaced_in_arm_mode again.
8738 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8739 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8740 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8741 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8742 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8743 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8744 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8745 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8746 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8747 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8748 (arm_catch_kernel_helper_return): Likewise.
8749 * gdb/arm-tdep.h : Update function declarations.
8750
d3f323f3 87512011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8752
e0e40094
MS
8753 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8754
0b2381f5
MS
8755 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8756
0350914a
MS
8757 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8758
69feea6f
MS
8759 * elfread.c (elf_symtab_read): Stop memory leak.
8760
e6040cbd
MS
8761 * main.c (captured_main): Fix memory leak.
8762
052874e8
AS
87632011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8764
8765 * ada-lang.c (compare_names): Call is_name_suffix with string1
8766 instead of string2.
8767
b11896a5
TT
87682011-03-07 Tom Tromey <tromey@redhat.com>
8769
8770 * xcoffread.c (xcoff_sym_fns): Update.
8771 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8772 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8773 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8774 (symbol_file_add_with_addrs_or_offsets): Likewise.
8775 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8776 * somread.c (som_sym_fns): Update.
8777 * psymtab.h (require_partial_symbols): Declare.
8778 * psymtab.c (require_partial_symbols): New function.
8779 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8780 (ALL_OBJFILE_PSYMTABS): Undef.
8781 (ALL_PSYMTABS): Move from psympriv.h.
8782 (lookup_partial_symtab, find_pc_sect_psymtab)
8783 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8784 (find_last_source_symtab_from_partial)
8785 (forget_cached_source_info_partial)
8786 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8787 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8788 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8789 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8790 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8791 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8792 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8793 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8794 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8795 psymtabs.
8796 * mipsread.c (ecoff_sym_fns): Update.
8797 * machoread.c (macho_sym_fns): Update.
8798 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8799 (read_psyms): New function.
8800 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8801 (elf_sym_fns_lazy_psyms): New global.
8802 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8803 dwarf2_build_psymtabs.
8804 * dbxread.c (aout_sym_fns): Update.
8805 * coffread.c (coff_sym_fns): Update.
8806
fda326dd
TT
88072011-03-07 Tom Tromey <tromey@redhat.com>
8808
8809 * infrun.c (print_exited_reason): Include inferior id and pid in
8810 message.
8811
aeaec162
TT
88122011-03-07 Tom Tromey <tromey@redhat.com>
8813
8814 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8815 parameter.
8816 (target_has_execution_1): Update.
8817 (target_has_execution_current): Declare.
8818 (target_has_execution): Call target_has_execution_current.
8819 (default_child_has_execution): Update.
8820 * target.c (default_child_has_execution): Add 'the_ptid'
8821 parameter.
8822 (target_has_execution_1): Likewise.
8823 (target_has_execution_current): New function.
8824 (add_target): Update.
8825 (init_dummy_target): Update.
8826 * remote-m32r-sdi.c (m32r_has_execution): New function.
8827 (init_m32r_ops): Use it.
8828 * record.c (record_core_has_execution): Now static. Add
8829 'the_ptid' parameter.
8830 * inferior.c (have_live_inferiors): Don't save current thread.
8831 Use target_has_execution_1.
8832
08e14083
YQ
88332011-03-07 Yao Qi <yao@codesourcery.com>
8834
8835 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8836
c05d19c5
JB
88372011-03-07 Joel Brobecker <brobecker@adacore.com>
8838
8839 * elfread.c (elf_symtab_read): Minor reformatting.
8840
3e6ef9e4
JB
88412011-03-07 Joel Brobecker <brobecker@adacore.com>
8842
8843 * objc-lang.c (selectors_info): Minor reformatting.
8844
dbb8534f
JB
88452011-03-07 Joel Brobecker <brobecker@adacore.com>
8846
8847 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8848
dd70cc93
JB
88492011-03-07 Joel Brobecker <brobecker@adacore.com>
8850 Michael Snyder <msnyder@vmware.com>
8851
8852 * ada-valprint.c (ada_val_print_array): Move the declaration of
8853 "byte_order" and "elttype" inside the block where these variables
8854 are actually used. Remove some special handling for the case
8855 where "elttype" and "eltlen" are null. Replace by a comment
8856 and a couple of assertion checks.
8857
b27cf2b3
MS
88582011-03-05 Michael Snyder <msnyder@vmware.com>
8859
8860 * source.c (add_path): Replace semicolon at end of block.
8861 * dwarf2expr.c (execute_stack_op): Ditto.
8862
5387a0c6
MF
88632011-03-05 Mike Frysinger <vapier@gentoo.org>
8864
8865 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8866 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8867 (bfin-*-*): Likewise.
8868
e3aa49af
MS
88692011-03-05 Michael Snyder <msnyder@vmware.com>
8870
82ae4854
MS
8871 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8872 * mdebugread.c (parse_symbol): Ditto.
8873 * parse.c (parse_exp_in_context): Ditto.
8874 * source.c (add_path): Ditto.
8875 * utils.c (gnu_debuglink_crc32): Ditto.
8876 * varobj.c (variable_language): Ditto.
8877
e3aa49af
MS
8878 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8879
154f592e
MS
88802011-03-04 Michael Snyder <msnyder@vmware.com>
8881
da3ecdc6
MS
8882 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8883
9cc89665
MS
8884 * symfile.c (simple_overlay_update): Check for null return value
8885 from lookup_minimal_symbol.
8886
154f592e
MS
8887 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8888
63ffa6ee
TJB
88892011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8890
8891 * eval.c (parse_and_eval_address_1): Remove function.
8892 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8893 instead of parse_and_eval_address_1.
8894 * value.h (parse_and_eval_address_1): Remove prototype.
8895
a17d146e
MS
88962011-03-04 Michael Snyder <msnyder@vmware.com>
8897
8898 * remote.c (putpkt_binary): Document that case stmt falls through.
8899
1a6a67de
TJB
89002011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8901
8902 * breakpointc (print_it_typical): Move NULL check from here...
8903 (print_bp_stop_message): ... to here.
8904
488919c4
MS
89052011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8906
8907 * breakpoint.c (enable_command): Use break instead of continue,
8908 and fill in a missing break.
8909 (disable_command): Ditto.
8910
1e182ce8
UW
89112011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8912
8913 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8914 (terminal_save_ours): Remove misleading comment.
8915 (inflow_inferior_data_cleanup): Free ttystate.
8916 (inflow_inferior_exit): Likewise.
8917 (copy_terminal_info): Copy ttystate.
8918
8919 * serial.c (serial_copy_tty_state): New function.
8920 * serial.h (serial_copy_tty_state): Add prototype.
8921 (struct serial_ops): Add copy_tty_state callback.
8922 * ser-base.c (ser_base_copy_tty_state): New function.
8923 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8924 * ser-go32.c (dos_copy_tty_state): New function.
8925 (dos_ops): Install copy_tty_state callback.
8926 * ser-mingw.c (_initialize_ser_windows): Likewise.
8927 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8928 * ser-unix.c (hardwire_copy_tty_state): New function.
8929 (_initialize_ser_hardwire): Install it.
8930
b2c5f112
MS
89312011-03-04 Michael Snyder <msnyder@vmware.com>
8932
2abae994
MS
8933 * breakpoint.c (create_breakpoint): Add missing break statement.
8934
7f5936f9
MS
8935 Reverting this patch:
8936 * infcall.c (call_function_by_hand): Add break statements for lint.
8937
b2c5f112
MS
8938 Reverting this patch:
8939 * cli/cli-script.c (script_from_file): Add break for lint.
8940
42b1321c
MS
89412011-03-04 Michael Snyder <msnyder@vmware.com>
8942
8943 * solib.c (reload_shared_libraries_1): Close memory leak.
8944
3e2a0cee
TT
89452011-03-03 Tom Tromey <tromey@redhat.com>
8946
8947 PR gdb/12538:
8948 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8949 DW_STRING is NULL.
8950
58397cb7
MS
89512011-03-03 Michael Snyder <msnyder@vmware.com>
8952
2e3fd767
MS
8953 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8954 fields of struct 'st' to zero.
8955
58397cb7
MS
8956 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8957 sal.pspace before calling set_current_source_symtab_and_line.
8958
ced54c8f
YQ
89592011-03-03 Yao Qi <yao@codesourcery.com>
8960
8961 * Makefile.in (configure-common): Remove. Let Makefile
8962 in dir common to rebuild itself.
8963 (common/Makefile): Likewise.
8964
3351ea09
JB
89652011-03-03 Joel Brobecker <brobecker@adacore.com>
8966
8967 * utils.c (parse_escape): Add i18n markup in error message.
8968
bf9f652a
YQ
89692011-03-03 Yao Qi <yao@codesourcery.com>
8970
8971 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8972 ARM_PC_REGNUM.
8973 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8974 (displaced_write_reg, displaced_read_reg): Likewise.
8975 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8976 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8977 (cleanup_branch): Replace magic number 14 and 15 with
8978 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8979
d42de051
MS
89802011-03-02 Michael Snyder <msnyder@vmware.com>
8981
240f9570
MS
8982 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8983
10dd8b54
MS
8984 * cli/cli-script.c (script_from_file): Add break for lint.
8985
b98bd911
MS
8986 * mdebugread.c (parse_partial_symbols): Fix indent.
8987
3494b66d
MS
8988 * target-descriptions.c (tdesc_gdb_type): No need to call
8989 xstrdup, callee saves a copy.
8990
daac021a
MS
8991 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8992
c38d16a7
MS
8993 * infcall.c (call_function_by_hand): Add break statements for lint.
8994
905b671b
MS
8995 * utils.c (parse_escape): Escape the escape char.
8996
f2eb0bc8 8997 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8998 PyList_Append fails.
8999 (gdbpy_inferiors): Error out if build_inferior_list fails.
9000
8c6a60d1
MS
9001 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9002 a function call.
9003
d42de051
MS
9004 * record.c (record_restore): Move printf to before error return.
9005
4db71c0b
YQ
90062011-03-02 Yao Qi <yao@codesourcery.com>
9007
9008 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9009 is_thumb and insn_size.
9010 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9011 on both ARM and Thumb mode.
9012 (arm_process_displaced_insn): Set is_thumb and insn_size.
9013 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9014 (arm_displaced_step_fixup): Likewise.
9015
a9dc8dcc
MS
90162011-03-01 Michael Snyder <msnyder@vmware.com>
9017
53624a93
MS
9018 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9019
77766669
MS
9020 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9021
62d5b8da
MS
9022 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9023
5e9e105f
MS
9024 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9025
dc19db01
MS
9026 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9027 with xmalloc.
9028
5ce64950
MS
9029 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9030 which shadows function parameter.
9031
a0aa2878
MS
9032 * tracepoint.c (create_tsv_from_upload): Superfluous call
9033 to xstrdup. Callee already calls xstrdup.
9034
e325fb69
MS
9035 * linespec.c (decode_line_1): Remove unnecessary null check.
9036
21cbba77
MS
9037 * tracepoint.c (scope_info): Fix mem leak, remove underused
9038 variable.
9039
63360adc
MS
9040 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9041 superfluous null check.
9042
18ea20ac 9043 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9044 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9045
d014929c
MS
9046 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9047
6e9130cf
MS
9048 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9049 be null.
9050
5f01dbc0
MS
9051 * linespec.c (decode_line_1): Check for null before dereference.
9052
d684ab85
MS
9053 * reverse.c (record_restore): Move null-check to before pointer
9054 dereference.
9055
bfffb7e3
MS
9056 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9057
a9dc8dcc
MS
9058 * objc-lang.c (selectors_info): Add explanitory comment.
9059 (classes_info): Ditto.
9060
478fd957
UW
90612011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9062
9063 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9064 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9065 versions of the trampoline. Handle Thumb vs. ARM addresses.
9066 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9067 (arm_linux_init_abi): Install it.
9068 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9069 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9070
0480cefa
MS
90712011-02-28 Michael Snyder <msnyder@vmware.com>
9072
ac50ab3b
MS
9073 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9074 a little bigger, to avoid possibility of an overflow.
9075
f63fbe86
MS
9076 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9077 buffers a little bigger, to avoid possibility of an overflow.
9078
9e91a352
MS
9079 * coffread.c (coff_getfilename): Add check to avoid overflow.
9080
f2eb0bc8 9081 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9082 avoid overflow.
9083 (classes_info): Error out on too long REGEXP.
9084
098ab512
MS
9085 * infrun.c (handle_inferior_event): Remove unused function call.
9086
bcbd1de9
MS
9087 * fork-child.c (fork_inferior): Remove ifdef'd code and
9088 unused variable.
9089
2e456570
MS
9090 * linux-thread-db.c (attach_thread): Discard unused value.
9091
14571dad
MS
9092 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9093
a9cbf802
MS
9094 * remote.c (remote_get_noisy_reply): Discard unused value.
9095 (remote_vcont_resume): Ditto.
9096 (remote_stop_ns): Ditto.
9097
5715d26e
MS
9098 * linespec.c (decode_objc): Delete unused variable.
9099
4a9bca80
MS
9100 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9101
f47fb265
MS
9102 * dwarf2read.c (add_partial_symbol): Discard unused values.
9103 (read_base_type): Delete unused variable.
9104
e81cff30
MS
9105 * dbxread.c (read_dbx_symtab): Discard unused value.
9106
262acaeb
MS
9107 * eval.c (evaluate_subexp_standard): Delete unused variable,
9108 and discard unused values.
9109
df983543
MS
9110 * infcmd.c (_initialize_infcmd): Discard unused values.
9111
89acf84d
MS
9112 * stabsread.c (rs6000_builtin_type): Missing break statement.
9113
ab8b8aca
MS
9114 * dbxread.c (process_one_symbol): Discard unused value.
9115
6b4511ab
MS
9116 * coffread.c (coff_end_symtab): Delete unused variable.
9117
e8e80198
MS
9118 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9119 (dwarf2_add_typedef): Delete unused variable.
9120 (read_namespace): Ditto.
9121 (dwarf_decode_macros): Ditto.
9122
976aa66e
MS
9123 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9124
5b92b49f
MS
9125 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9126
91e8df85
MS
9127 * p-valprint.c (pascal_val_print): Discard unused value.
9128
899500d6
MS
9129 * utils.c (nquery): Call va_end before return;
9130 (yquery): Ditto.
9131 (query): Ditto.
9132
0480cefa
MS
9133 * proc-service.c (ps_plog): Call va_end before return.
9134
fb6a3ed3
TT
91352011-02-28 Tom Tromey <tromey@redhat.com>
9136
9137 * python/python.c (gdbpy_value_cst): New global.
9138 (_initialize_python): Initialize it.
9139 * python/python-internal.h (gdbpy_value_cst): Declare.
9140 * python/py-value.c (convert_value_from_python): Use
9141 gdbpy_value_cst.
9142
c05202a1
MS
91432011-02-28 Michael Snyder <msnyder@vmware.com>
9144
e463f587
MS
9145 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9146
c38eea1a
MS
9147 * breakpoint.c (catch_syscall_completer): Free malloced list.
9148
3ef09ab5
MS
9149 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9150
8f9a01ee
MS
9151 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9152 (lval_func_check_synthetic_pointer): Ditto.
9153 (lval_func_free_closure): Fix use-after-free.
c05202a1 9154
477d0d57
TT
91552011-02-28 Tom Tromey <tromey@redhat.com>
9156
9157 * psymtab.c (expand_partial_symbol_tables): Use
9158 ALL_OBJFILE_PSYMTABS.
9159
20937029
JK
91602011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9161
9162 * objc-lang.c (selectors_info): Error on too long REGEXP.
9163
907b7f4f
MS
91642011-02-28 Michael Snyder <msnyder@vmware.com>
9165
92e96192
MS
9166 * python/py-param.c (set_parameter_value): Add missing
9167 break statement.
9168
907b7f4f
MS
9169 * linux-record.c (record_linux_system_call): Add missing
9170 break statement.
9171
12c5a436
UW
91722011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9173
9174 * breakpoint.c (print_one_breakpoint_location): Remove unused
9175 argument PRINT_ADDRESS_BITS. Update callers.
9176 (print_one_breakpoint): Likewise.
9177
170b53b2
UW
91782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9179
9180 * breakpoint.c (wrap_indent_at_field): New function.
9181 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9182 Allocate ui_stream locally instead of using STB argument.
9183 (print_one_breakpoint_location): Update call.
9184 * ui-out.c (ui_out_query_field): New function.
9185 * ui-out.h (ui_out_query_field): Add prototype.
9186
8ab1f94d
JB
91872011-02-28 Joel Brobecker <brobecker@adacore.com>
9188
9189 From Michael Snyder <msnyder@vmware.com>
9190 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9191
7d488639
MS
91922011-02-27 Michael Snyder <msnyder@vmware.com>
9193
ae179fba
MS
9194 * objc-lang.c (selectors_info): Prevent string overrun.
9195
086dbf66
MS
9196 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9197 error in strncpy.
9198
f2eb0bc8 9199 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9200 outer scope.
9201
7d488639
MS
9202 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9203 param with a local variable of the same name.
9204
3bd0f5ef
MS
92052011-02-27 Michael Snyder <msnyder@vmware.com>
9206
9207 * value.c (value_from_history_ref): New function.
9208 * value.h (value_from_history_ref): Export.
9209 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9210 to parse value history references.
9211 * cli/cli-utils.h (get_number_trailer): Update comment.
9212
92132011-02-27 Michael Snyder <msnyder@vmware.com>
9214
9215 * inferior.c (detach_inferior_command): Use get_number_or_range.
9216 (kill_inferior_command): Ditto.
9217 (remove_inferior_command): Ditto.
9218 (initialize_inferiors): Make command names plural.
9219 Update help strings.
9220
766062f6
MS
92212011-02-27 Michael Snyder <msnyder@vmware.com>
9222
9223 * darwin-nat-info.c: Fix comment typo.
9224 * dwarf2expr.h: Ditto.
9225 * fbsd-nat.c: Ditto.
9226 * fbsd-nat.h: Ditto.
9227 * frame-unwind.h: Ditto.
9228 * frame.h: Ditto.
9229 * hppa-hpux-tdep.c: Ditto.
9230 * i386-linux-nat.c: Ditto.
9231 * linux-nat.c: Ditto.
9232 * nbsd-nat.c: Ditto.
9233 * nbsd-nat.h: Ditto.
9234 * ppc-linux-tdep.c: Ditto.
9235 * serial.c: Ditto.
9236 * ui-file.h: Ditto.
9237 * tui/tui-winsource.c: Ditto.
9238
f2c4ead5
MS
92392011-02-26 Michael Snyder <msnyder@vmware.com>
9240
86b887df
MS
9241 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9242
66fd3b1e
MS
9243 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9244
8c814cdd
MS
9245 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9246 with a local variable of the same name.
9247
6d5e094a 9248 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9249 param with a local variable of the same name.
6d5e094a 9250 (i387_supply_xsave): Ditto.
e5b3d7d6 9251
5eee517d
MS
9252 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9253 that it does not shadow a function parameter.
9254
8fbf6b93
MS
9255 * i386-nat.c (i386_length_and_rw_bits): Document that case
9256 statement is meant to fall through.
9257
cb969d61
MS
9258 * expprint.c (dump_subexp_body_standard): Document that case
9259 statement is meant to fall through.
9260
f2c4ead5
MS
9261 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9262 dead if statement. Condition can't be false.
9263
b021a221
MS
92642011-02-25 Michael Snyder <msnyder@vmware.com>
9265
9266 * arm-tdep.c: Fix typos in comments.
9267 * bsd-uthread.c: Ditto.
9268 * completer.c: Ditto.
9269 * corelow.c: Ditto.
9270 * cp-namespace.c: Ditto.
9271 * cp-support.c: Ditto.
9272 * cris-tdep.c: Ditto.
9273 * dbxread.c: Ditto.
9274 * dwarf2read.c: Ditto.
9275 * frame.h: Ditto.
9276 * gdbtypes.h: Ditto.
9277 * inferior.h: Ditto.
9278 * mdebugread.c: Ditto.
9279 * mips-tdep.c: Ditto.
9280 * ppc-linux-nat.c: Ditto.
9281 * ppc-linux-tdep.c: Ditto.
9282 * printcmd.c: Ditto.
9283 * sol-thread.c: Ditto.
9284 * solib-frv.c: Ditto.
9285 * solist.h: Ditto.
9286 * sparc64-tdep.c: Ditto.
9287 * spu-tdep.c: Ditto.
9288 * stabsread.c: Ditto.
9289 * symfile.c: Ditto.
9290 * valops.c: Ditto.
9291 * varobj.c: Ditto.
9292 * vax-nat.c: Ditto.
9293 * python/py-block.c: Ditto.
9294 * python/py-symbol.c: Ditto.
9295 * python/py-symtab.c: Ditto.
9296 * python/py-value.c: Ditto.
9297 * tui/tui-win.c: Ditto.
9298
c82c0b55
MS
92992011-02-25 Michael Snyder <msnyder@vmware.com>
9300
9301 * inferior.c (print_inferior): Accept a string instead of an int
9302 for requested_inferiors, and use get_number_or_range to parse it.
9303 (info_inferiors_command): Pass args string to print_inferior.
9304 (initialize_inferiors): Change help string for info inferiors.
9305 * inferior.h (print_inferior): Export prototype change.
9306
ee00cd23
TT
93072011-02-25 Tom Tromey <tromey@redhat.com>
9308
9309 * common/ax.def (invalid2): Set to 0x31.
9310
0502ed8c
JK
93112011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9312
9313 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9314 L and plongest.
9315 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9316 use L and plongest.
9317 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9318
2c9de912
MS
93192011-02-24 Michael Snyder <msnyder@vmware.com>
9320
9321 * Makefile.in (clean): Make clean should remove generated files
9322 observer.h and observer.inc.
9323
a04b0428
JB
93242011-02-24 Joel Brobecker <brobecker@adacore.com>
9325
9326 Revert the following patch (not approved yet):
9327 2011-02-21 Hui Zhu <teawater@gmail.com>
9328 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9329 * ax-gdb.c (gen_printf_expr_callback): New function.
9330 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9331 * ax-general.c (ax_memcpy): New function.
9332 (ax_print): Handle "printf".
9333 (ax_reqs): Ditto.
9334 * ax.h (ax_memcpy): Forward declare.
9335 * common/ax.def (invalid2): Removed.
9336 (printf): New entry.
9337 * printcmd.c (printcmd.h): New include.
9338 (string_printf): New function.
9339 (ui_printf): Removed.
9340 (printf_command): Remove static. Call string_printf.
9341 (eval_command): Call string_printf.
9342 * printcmd.h: New file.
9343 * tracepoint.c (validate_actionline,
9344 encode_actions_1): handle printf_command.
9345
2b52013f
TT
93462011-02-23 Tom Tromey <tromey@redhat.com>
9347
9348 * ax-general.c (ax_pick): Add missing newline.
9349
e5a67952
MS
93502011-02-23 Michael Snyder <msnyder@vmware.com>
9351
9352 * breakpoint.c (breakpoint_1): Change first argument from an int
9353 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9354 breakpoints rather than just one. Use new function
e5a67952
MS
9355 'number_is_in_list' to implement.
9356 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9357 (watchpoints_info): Ditto.
9358 (tracepoints_info): Ditto.
9359 (maintenance_info_breakpoints): Ditto.
9360 (_initialize_breakpoint): Update help strings to reflect the fact
9361 that these functions can now take more than one argument.
9362 * cli/cli-utils.c (number_is_in_list): New function.
9363 * cli/cli-utils.h (number_is_in_list): Export.
9364
93652011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9366
9367 * memattr.c (mem_enable_command): Use get_number_or_range.
9368 (mem_disable_command): Ditto.
9369 (mem_delete_command): Ditto.
9370 (_initialize_mem): Tweak usage message to reflect multiple
9371 arguments.
9372
6e6fbe60
DE
93732011-02-22 Doug Evans <dje@google.com>
9374
9375 Add gdb.lookup_global_symbol python function.
9376 * NEWS: Add entry.
9377 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9378 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9379 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9380
79b97fa8
TT
93812011-02-22 Tom Tromey <tromey@redhat.com>
9382
9383 * language.c (language_class_name_from_physname): Rename
9384 'curr_language' argument to 'lang'; use in body.
9385
298f437a
MS
93862011-02-22 Michael Snyder <msnyder@vmware.com>
9387
9388 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9389
b7ea3126
PA
93902011-02-22 Pedro Alves <pedro@codesourcery.com>
9391
9392 * frame-unwind.h: Fix comment to mention the this frame, not the
9393 next.
9394
58ee6d60
TT
93952011-02-22 Tom Tromey <tromey@redhat.com>
9396
9397 * symfile.c (auto_solib_limit): Remove.
9398 * symfile.h (auto_solib_limit): Remove.
9399
36238dbc
JB
94002011-02-22 Joel Brobecker <brobecker@adacore.com>
9401
9402 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9403
aea5b279
MS
94042011-02-21 Michael Snyder <msnyder@vmware.com>
9405
9406 * gdbthread.h (print_thread_info): Change prototype.
9407 * thread.c (print_thread_info): Accept char* instead of int for
9408 requested_threads argument. Use new function number_is_in_list
9409 to determine which threads to list.
9410 (info_threads_command): Pass char* to print_thread_info.
9411 * cli/cli-utils.c (number_is_in_list): New function.
9412 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9413 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9414 print_thread_info.
9415 (print_one_inferior): Ditto.
9416 (mi_cmd_list_thread_groups): Ditto.
9417
8caa75ee
JK
94182011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9419
9420 * common/Makefile.in (CFLAGS): New.
9421 (COMPILE): Add $(CFLAGS).
9422
ea666128
TT
94232011-02-21 Tom Tromey <tromey@redhat.com>
9424
9425 * breakpoint.c (catch_syscall_command_1): Fix typo.
9426
e9cafbcc
TT
94272011-02-21 Tom Tromey <tromey@redhat.com>
9428
9429 * reverse.c: Include cli-utils.h.
9430 * printcmd.c: Include cli-utils.h.
9431 (string_printf): Use skip_spaces.
9432 * cli/cli-utils.h: New file.
9433 * cli/cli-utils.c: New file.
9434 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9435 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9436 * breakpoint.h (get_number, get_number_or_range): Move to
9437 cli-utils.h.
9438 * breakpoint.c: Include cli-utils.h.
9439 (get_number_trailer, get_number, get_number_or_range)
9440 (ep_skip_leading_whitespace): Move to cli-utils.c.
9441 (create_breakpoint_sal, find_condition_and_thread)
9442 (decode_static_tracepoint_spec, watch_command_1)
9443 (watch_maybe_just_location, ep_parse_optional_if_clause)
9444 (catch_fork_command_1, catch_exec_command_1)
9445 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9446 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9447 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9448 (HFILES_NO_SRCDIR): Add cli-utils.h.
9449 (cli-utils.o): New target.
9450
f67fd822
PM
94512011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9452
9453 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9454 before calling discard_all_inferiors.
9455
c9def01d
UW
94562011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9457
9458 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9459 (struct builtin_opencl_type): Remove.
9460 (builtin_opencl_type): Change return type to "struct type **".
9461 (lookup_opencl_vector_type): Update caller.
9462 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9463 (build_opencl_types): Install plain array of "struct type *"
9464 instead of "struct builtin_opencl_type".
9465
e3039479
UW
94662011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9467 Ulrich Weigand <uweigand@de.ibm.com>
9468
9469 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9470 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9471 (struct arm_linux_hwbp_cap): New type.
9472 (arm_linux_get_hwbp_cap): New function.
9473 (arm_linux_get_hw_breakpoint_count): Likewise.
9474 (arm_linux_get_hw_watchpoint_count): Likewise.
9475 (arm_linux_can_use_hw_breakpoint): Likewise.
9476 (arm_hwbp_type): New type.
9477 (arm_hwbp_control_t): Likewise.
9478 (struct arm_linux_hw_breakpoint): Likewise.
9479 (struct arm_linux_thread_points): Likewise.
9480 (arm_threads): New global variable.
9481 (arm_linux_find_breakpoints_by_tid): New function.
9482 (arm_hwbp_control_initialize): Likewise.
9483 (arm_hwbp_control_is_enabled): Likewise.
9484 (arm_hwbp_control_disable): Likewise.
9485 (arm_linux_hw_breakpoint_initialize): Likewise.
9486 (arm_linux_get_hwbp_type): Likewise.
9487 (arm_linux_hw_watchpoint_initialize): Likewise.
9488 (arm_linux_hw_breakpoint_equal): Likewise.
9489 (arm_linux_insert_hw_breakpoint1): Likewise.
9490 (arm_linux_remove_hw_breakpoint1): Likewise.
9491 (arm_linux_insert_hw_breakpoint): Likewise.
9492 (arm_linux_remove_hw_breakpoint): Likewise.
9493 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9494 (arm_linux_insert_watchpoint): Likewise.
9495 (arm_linux_remove_watchpoint): Likewise.
9496 (arm_linux_stopped_data_address): Likewise.
9497 (arm_linux_stopped_by_watchpoint): Likewise.
9498 (arm_linux_watchpoint_addr_within_range): Likewise.
9499 (arm_linux_new_thread): Likewise.
9500 (arm_linux_thread_exit): Likewise.
9501 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9502 related target callbacks. Register arm_linux_new_thread and
9503 arm_linux_thread_exit.
9504 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9505 * arm-tdep.c (arm_pc_is_thumb): Make global.
9506 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9507
b5db5dfc
UW
95082011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9509
9510 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9511 per-frame locations while within a function epilogue.
9512
e25b2cfa
PM
95132011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9514
9515 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9516 to GNU coding standards.
9517
4af53f97
PM
95182011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9519
9520 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9521 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9522 (ser_windows_close): Only call CancelIo if function exists.
9523 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9524 to check for existence of CancelIo function in kernel32 DLL.
9525
d0e92d82
HZ
95262011-02-21 Hui Zhu <teawater@gmail.com>
9527
9528 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9529 * ax-gdb.c (gen_printf_expr_callback): New function.
9530 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9531 * ax-general.c (ax_memcpy): New function.
9532 (ax_print): Handle "printf".
9533 (ax_reqs): Ditto.
9534 * ax.h (ax_memcpy): Forward declare.
9535 * common/ax.def (invalid2): Removed.
9536 (printf): New entry.
9537 * printcmd.c (printcmd.h): New include.
9538 (string_printf): New function.
9539 (ui_printf): Removed.
9540 (printf_command): Remove static. Call string_printf.
9541 (eval_command): Call string_printf.
9542 * printcmd.h: New file.
9543 * tracepoint.c (validate_actionline,
9544 encode_actions_1): handle printf_command.
9545
7d357efd
MS
95462011-02-19 Michael Snyder <msnyder@vmware.com>
9547
9548 * reverse.c (delete_one_bookmark): Argument is now bookmark
9549 id rather than pointer to bookmark struct.
9550 (delete_bookmark_command): Use get_number_or_range.
9551 (goto_bookmark_command): Parse with get_number instead of strtoul.
9552 (bookmark_1): New function. Print info for one bookmark.
9553 (bookmarks_info): Use get_number_or_range and bookmark_1.
9554
7a45ebd7
MS
95552011-02-18 Michael Snyder <msnyder@vmware.com>
9556
f2eb0bc8 9557 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9558 get_number_or_range.
65ebfb52 9559 (thread_apply_command): Ditto.
7a45ebd7 9560
94d5e490
TT
95612011-02-18 Tom Tromey <tromey@redhat.com>
9562
9563 * common/ax.def: New file.
9564 * ax.h (enum agent_op): Use ax.def.
9565 * ax-general.c (aop_map): Use ax.def.
9566
c7f96d2b
TT
95672011-02-18 Tom Tromey <tromey@redhat.com>
9568
9569 * ax-general.c (aop_map): Add pick and rot.
9570 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9571 <DW_OP_rot>: Implement.
9572 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9573 (ax_pick): Declare.
9574 * ax-general.c (ax_pick): New function.
9575
66694b75
TT
95762011-02-18 Tom Tromey <tromey@redhat.com>
9577
9578 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9579
eeaafae2
JK
95802011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9581 Tom Tromey <tromey@redhat.com>
9582
9583 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9584 make_symbol_overload_list_block with NULL BLOCK.
9585 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9586
3c3fe74c
PA
95872011-02-18 Pedro Alves <pedro@codesourcery.com>
9588
9589 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9590 * breakpoint.h (get_number_or_range): Declare.
9591 * printcmd.c (ALL_DISPLAYS): Declare.
9592 (delete_display): Reimplement taking a display pointer.
9593 (undisplay_command): Accept a range of displays to delete, using
9594 get_number_or_range.
9595
13163d80
PM
95962011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9597
9598 * c-valprint.c (c_val_print): Add embedded_offset to address
9599 for arrays of unspecified length.
9600 * p-valprint.c (pascal_val_print): Likewise.
9601
b434a28f
YQ
96022011-02-18 Yao Qi <yao@codesourcery.com>
9603
9604 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9605 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9606 (thumb_process_displaced_insn): New.
9607 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9608 call to arm_process_displaced_insn.
9609 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9610
9f6f94ff
TT
96112011-02-17 Tom Tromey <tromey@redhat.com>
9612
9613 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9614 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9615 compile_dwarf_to_ax. No longer static. Call
9616 dwarf2_compile_cfa_to_ax.
9617 (locexpr_tracepoint_var_ref): Update.
9618 (loclist_tracepoint_var_ref): Update.
9619 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9620 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9621 argument; add 'gdbarch' and 'pc'.
9622 (dwarf2_compile_cfa_to_ax): New function.
9623 (dwarf2_frame_cache): Update.
9624
e67ad678
JB
96252011-02-17 Joel Brobecker <brobecker@adacore.com>
9626
9627 * ada-lang.c (ada_type_of_array): Fix the size of the array
9628 in the case of an unconstrained packed array.
9629
946ebb0d
YQ
96302011-02-17 Yao Qi <yao@codesourcery.com>
9631
9632 * common/Makefile.in: Add more targets for make.
9633
1ba1b353
TT
96342011-02-16 Tom Tromey <tromey@redhat.com>
9635
9636 * dwarf2loc.c (unimplemented): Fix typo.
9637
b1bfef65
TT
96382011-02-16 Tom Tromey <tromey@redhat.com>
9639
9640 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9641 (compile_dwarf_to_ax) <default>: Use unimplemented.
9642 <DW_OP_deref>: Update.
9643 (disassemble_dwarf_expression): Update.
9644 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9645 (decode_locdesc): Update.
9646 * dwarf2expr.h (dwarf_stack_op_name): Update.
9647
5f1e6f19
TT
96482011-02-16 Tom Tromey <tromey@redhat.com>
9649
9650 * ax.h (struct aop_map) <name>: Now const.
9651
a0c78a73
PA
96522011-02-16 Tom Tromey <tromey@redhat.com>
9653
9654 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9655 than axs_rvalue.
9656
946ebb0d 96572011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9658
9659 * infrun.c (get_displaced_step_closure_by_addr): New.
9660 * inferior.h: Declare it.
9661 * arm-tdep.c: (arm_pc_is_thumb): Call
9662 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9663 returns non-NULL.
9664
08807d5a
PA
96652011-02-16 Pedro Alves <pedro@codesourcery.com>
9666 Jan Kratochvil <jan.kratochvil@redhat.com>
9667
9668 gdb/
9669 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9670
29976f3f
PA
96712011-02-16 Pedro Alves <pedro@codesourcery.com>
9672 Jan Kratochvil <jan.kratochvil@redhat.com>
9673
9674 * value.c (value_contents_copy_raw): Extend describing comment.
9675 Assert that the destination contents we're overwriting are wholly
9676 available.
fb68ae73 9677 (value_contents_copy): Extend describing comment.
29976f3f 9678
cd24cfaa
PA
96792011-02-16 Pedro Alves <pedro@codesourcery.com>
9680 Jan Kratochvil <jan.kratochvil@redhat.com>
9681
9682 * value.c (value_available_contents_eq): Remove redundant local
9683 variables. Fix available contents comparision.
9684 * value.h (value_available_contents_eq): Extend describing
9685 comment.
9686
60bbf338
YQ
96872011-02-16 Yao Qi <yao@codesourcery.com>
9688
9689 * thread.c (info_threads_command): Add missing i18n markup and remove
9690 trailing newline.
9691
17450429
PP
96922011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9693
9694 * breakpoint.c (longjmp_names): New variable.
9695 (struct breakpoint_objfile_data): New type.
9696 (breakpoint_objfile_key): New variable.
9697 (msym_not_found): New variable.
9698 (msym_not_found_p): New predicate.
9699 (get_breakpoint_objfile_data): New function.
9700 (create_overlay_event_breakpoint): Check per-objfile cache for
9701 symbols first.
9702 (create_longjmp_master_breakpoint): Likewise.
9703 (create_std_terminate_master_breakpoint): Likewise.
9704 (create_exception_master_breakpoint): Likewise.
9705 (_initialize_breakpoint): Register per-objfile data key.
9706
af02033e
PP
97072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9708
9709 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9710 parameter value.
9711 (create_longjmp_master_breakpoint): Loop over longjmp names.
9712 (create_std_terminate_master_breakpoint): Const-propagate parameter
9713 value.
9714 (update_breakpoints_after_exec): Adjust.
9715 (breakpoint_re_set): Adjust.
9716
60f98dde
MS
97172011-02-15 Michael Snyder <msnyder@vmware.com>
9718
cdf99611
MS
9719 * thread.c (info_threads_command): Process arg as thread id,
9720 or list of thread ids.
9721 (thread_find_command): New command.
9722 (_initialize_thread): Document argument for info threads.
9723 Document 'thread find' command.
9724 * NEWS: Document new command "thread find".
60f98dde 9725
0feedb2c
JK
97262011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9729 * aclocal.m4: Regenerated with aclocal-1.11.1.
9730 * common/configure: Regenerate with autoconf-2.64.
9731
648cd113
KW
97322011-02-15 Ken Werner <ken.werner@de.ibm.com>
9733
9734 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9735 bool data type to a size of one byte.
9736
5657161f
PA
97372011-02-15 Pedro Alves <pedro@codesourcery.com>
9738 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 * target.c (memory_xfer_live_readonly_partial): Document where to
9741 look for interface description.
9742
494e194e
YQ
97432011-02-15 Yao Qi <yao@codesourcery.com>
9744
9745 PR tdep/12352
9746 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9747 order to store PC value on stack instead of text section.
9748
d9492458
TJB
97492011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9750
9751 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9752 the EFP register set size.
9753 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9754 data from the VMX register.
9755 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9756 and write data from/to the VMX register.
9757
cdf99611
MS
97582011-02-14 Michael Snyder <msnyder@vmware.com>
9759
9760 * command.h (enum command_class): New class 'no_set_class', for
9761 "show" commands without a corresponding "set" command.
9762 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9763 * copying.c (_initialize_copying): Ditto for "show copying" and
9764 "show warranty".
9765 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9766 "show version".
9767 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9768 which there is no corresponding "set" command (eg. "show copying").
9769
424447ee
PA
97702011-02-14 Pedro Alves <pedro@codesourcery.com>
9771 Jan Kratochvil <jan.kratochvil@redhat.com>
9772
9773 * exec.c (section_table_available_memory): Change `len' parameter
9774 type to ULONGEST.
9775 * exec.h (section_table_available_memory): Ditto.
9776 * value.h (read_value_memory): Rename the `offset' parameter to
9777 `embedded_offset'.
9778
c0f61f9c 97792011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9780 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9781
9782 * memrange.c (compare_mem_ranges): Mention sort order in
9783 describing comment.
9784 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9785 * tracepoint.c (traceframe_available_memory): Extend comment to
9786 mention what happens to RESULT when the target does not support
9787 the query.
9788
6bfc80c7
PA
97892011-02-14 Pedro Alves <pedro@codesourcery.com>
9790 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9793 range.
9794
e7303042
PA
97952011-02-14 Pedro Alves <pedro@codesourcery.com>
9796
9797 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9798 No longer handle NULL values.
9799
8af8e3bc
PA
98002011-02-14 Pedro Alves <pedro@codesourcery.com>
9801
9802 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9803 * value.c: Include "exceptions.h".
9804 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9805 generic error.
9806 * cp-abi.c: Include gdb_assert.h.
9807 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9808 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9809 errors.
9810 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9811 parameters. No longer returns -1 on error.
9812 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9813 `val' parameters.
9814 * cp-valprint.c: Include exceptions.h.
9815 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9816 the baseclass_offset. Handle unavailable base classes. Use
9817 val_print_invalid_address.
9818 * p-valprint.c: Include exceptions.h.
9819 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9820 when fetching the baseclass_offset. No longer expect
9821 baseclass_offset returning -1. Handle unavailable base classes.
9822 Use val_print_invalid_address.
9823 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9824 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9825 `embedded_offset' and `val' parameters. Adjust.
9826 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9827 parameter, and change its type to gdb_byte pointer. Add
9828 `embedded_offset' and `val' parameters. Adjust. No longer expect
9829 baseclass_offset returning -1.
9830 (value_dynamic_cast): Use value_contents_for_printing rather than
9831 value_contents. Adjust.
9832 (search_struct_field): No longer expect baseclass_offset returning
9833 -1.
9834 (search_struct_method): If reading memory from the target is
9835 necessary, wrap it in a new value to pass to baseclass_offset. No
9836 longer expect baseclass_offset returning -1.
9837 (find_method_list): No longer expect baseclass_offset returning
9838 -1. Use value_contents_for_printing rather than value_contents.
9839 * valprint.c (val_print_invalid_address): New function.
9840 * valprint.h (val_print_invalid_address): Declare.
9841 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9842 and `val' parameters. No longer expect baseclass_offset returning
9843 -1. Adjust.
9844 * gnu-v2-abi.c: Include "exceptions.h".
9845 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9846 parameters. Handle unavailable memory. Recurse through
9847 gnuv2_baseclass_offset directly, rather than through
9848 baseclass_offset. No longer returns -1 on not found, instead
9849 throw an error.
9850 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9851 `val' parameters. Adjust.
9852
1b28d0b3
PA
98532011-02-14 Pedro Alves <pedro@codesourcery.com>
9854
9855 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9856 almost but not quite adjacent.
9857
ec0a52e1
PA
98582011-02-14 Pedro Alves <pedro@codesourcery.com>
9859
9860 * value.h (value_entirely_available): Declare.
9861 * value.c (value_entirely_available): New function.
9862 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9863 real type if the pointer is unavailable.
9864
24e6bcee
PA
98652011-02-14 Pedro Alves <pedro@codesourcery.com>
9866
9867 * valops.c (value_repeat): Use read_value_memory instead of
9868 read_memory.
9869
39d37385
PA
98702011-02-14 Pedro Alves <pedro@codesourcery.com>
9871
9872 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9873 * value.c (value_contents_copy_raw, value_contents_copy): New
9874 functions.
9875 (value_primitive_field): Use value_contents_copy_raw instead of
9876 memcpy.
9877 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9878 memcpy.
9879 (value_array, value_slice): Ditto.
9880 * valarith.c (value_subscripted_rvalue): Use
9881 value_contents_copy_raw instead of memcpy.
9882
a3d34bf4
PA
98832011-02-14 Pedro Alves <pedro@codesourcery.com>
9884
9885 <unavailable> references.
9886
9887 * valops.c (get_value_at): Use value_from_contents_and_address,
9888 avoiding read_memory.
9889
9fc6d940
PA
98902011-02-14 Pedro Alves <pedro@codesourcery.com>
9891
9892 * c-valprint.c (c_val_print): Print a string with unavailable
9893 contents as an array.
9894
5467c6c8
PA
98952011-02-14 Pedro Alves <pedro@codesourcery.com>
9896
9897 * value.h (unpack_bits_as_long): Delete declaration.
9898 (unpack_value_bits_as_long): Declare.
9899 (unpack_value_field_as_long): Declare.
9900 (value_field_bitfield): Declare.
9901 * value.c (unpack_bits_as_long): Rename to...
9902 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9903 value parameters. Return the extracted result in a new output
9904 parameter. If the value contents are unavailable, return false,
9905 otherwise return true.
9906 (unpack_value_bits_as_long): New.
9907 (unpack_field_as_long): Rename to...
9908 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9909 Add embedded_offset and value parameters. Return the extracted
9910 result in a new output parameter. If the value contents are
9911 unavailable, return false, otherwise return true.
9912 (unpack_value_field_as_long): New.
9913 (unpack_field_as_long_1): New.
9914 (unpack_field_as_long): Reimplement as wrapper around
9915 unpack_value_field_as_long_1.
9916 (value_field_bitfield): New function.
9917 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9918 unpack_value_bits_as_long. Mark the value as unavailable, if it
9919 is unavailable.
9920 * jv-valprint.c (java_print_value_fields): Use
9921 value_field_bitfield.
9922 * p-valprint.c (pascal_object_print_value_fields): Use
9923 value_field_bitfield.
9924 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9925
3158c6ed
PA
99262011-02-14 Pedro Alves <pedro@codesourcery.com>
9927
9928 * value.c (get_internalvar_integer): Also return the int value of
9929 TYPE_CODE_INT INTERNALVAR_VALUE values.
9930 (set_internalvar): Don't special case TYPE_CODE_INT.
9931
9fbdca0d
PA
99322011-02-14 Pedro Alves <pedro@codesourcery.com>
9933
9934 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9935 INTERNALVAR_POINTER.
9936 <pointer>: Delete.
9937 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9938 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9939 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9940
c8c1c22f
PA
99412011-02-14 Pedro Alves <pedro@codesourcery.com>
9942
9943 * value.h (value_available_contents_eq): Declare.
9944 * value.c (find_first_range_overlap): New function.
9945 (value_available_contents_eq): New function.
9946 * valprint.c (val_print_array_elements): Use
9947 value_available_contents_eq.
9948 * ada-valprint.c (val_print_packed_array_elements): Use
9949 value_available_contents_eq.
9950 * jv-valprint.c (java_value_print): Use
9951 value_available_contents_eq.
9952
e6e4e701
PA
99532011-02-14 Pedro Alves <pedro@codesourcery.com>
9954
9955 * target.c (target_read_live_memory): New function.
9956 (memory_xfer_live_readonly_partial): New.
9957 (memory_xfer_partial): If reading from a traceframe, fallback to
9958 reading unavailable read-only memory from read-only regions of
9959 live target memory.
9960 * tracepoint.c (disconnect_tracing): Adjust.
9961 (set_current_traceframe): New, factored out from
9962 set_traceframe_number.
9963 (set_traceframe_number): Reimplement to only change the traceframe
9964 number on the GDB side.
9965 (do_restore_current_traceframe_cleanup): Adjust.
9966 (make_cleanup_restore_traceframe_number): New.
9967 (cur_traceframe_number): New global.
9968 (tfile_open): Set cur_traceframe_number to no traceframe.
9969 (set_tfile_traceframe): New function.
9970 (tfile_trace_find): If looking up a traceframe using any method
9971 other than by number, make sure the current tfile traceframe
9972 matches gdb's current traceframe. Update the current tfile
9973 traceframe if the lookup succeeded.
9974 (tfile_fetch_registers, tfile_xfer_partial)
9975 (tfile_get_trace_state_variable_value): Make sure the remote
9976 traceframe matches gdb's current traceframe.
9977 * remote.c (remote_traceframe_number): New global.
9978 (remote_open_1): Set it to -1.
9979 (set_remote_traceframe): New function.
9980 (remote_fetch_registers, remote_store_registers)
9981 (remote_xfer_memory, remote_xfer_partial)
9982 (remote_get_trace_state_variable_value): Make sure the remote
9983 traceframe matches gdb's current traceframe.
9984 (remote_trace_find): If looking up a traceframe using any method
9985 other than by number, make sure the current remote traceframe
9986 matches gdb's current traceframe. Update the current remote
9987 traceframe if the lookup succeeded.
9988 * infrun.c (fetch_inferior_event): Adjust.
9989 * tracepoint.h (set_current_traceframe): Declare.
9990 (get_traceframe_number, set_traceframe_number): Add describing
9991 comments.
9992
e6ca34fc
PA
99932011-02-14 Pedro Alves <pedro@codesourcery.com>
9994
9995 Mark pieces of values as unavailable if the corresponding memory
9996 is unavailable.
9997
9998 * valops.c: Include tracepoint.h.
9999 (value_fetch_lazy): Use read_value_memory.
10000 (read_value_memory): New.
10001 * value.h (read_value_memory): Declare.
10002 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10003 * exec.c (section_table_available_memory): New function.
10004 * exec.h (section_table_available_memory): Declare.
10005
2a7498d8
PA
100062011-02-14 Pedro Alves <pedro@codesourcery.com>
10007
10008 * Makefile.in (SFILES): Add memrange.c.
10009 (HFILES_NO_SRCDIR): Add memrange.h.
10010 (COMMON_OBS): Add memrange.o.
10011 * memrange.c: New file.
10012 * memrange.h: New file.
10013 * tracepoint.c: Include memrange.h.
10014 (struct mem_range): Delete.
10015 (mem_range_s): Delete.
10016 (traceframe_available_memory): New function.
10017 * tracepoint.h (traceframe_available_memory): Declare.
10018
b3b9301e
PA
100192011-02-14 Pedro Alves <pedro@codesourcery.com>
10020
10021 * target.h (struct traceframe_info): Forward declare.
10022 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10023 (struct target_ops) <to_traceframe_info>: New field.
10024 (target_traceframe_info): New.
10025 * target.c (update_current_target): Inherit and default
10026 to_traceframe_info.
10027 * remote.c (PACKET_qXfer_traceframe_info): New.
10028 (remote_protocol_features): Register qXfer:traceframe-info:read.
10029 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10030 (remote_traceframe_info): New.
10031 (init_remote_ops): Install it.
10032 (_initialize_remote): Install "set/show remote traceframe-info"
10033 commands.
10034 * tracepoint.h (parse_traceframe_info): Declare.
10035 * tracepoint.c (struct mem_range): New.
10036 (mem_range_s): New typedef.
10037 (struct traceframe_info): New.
10038 (traceframe_info): New global.
10039 (free_traceframe_info): New function.
10040 (clear_traceframe_info): New function.
10041 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10042 info.
10043 (build_traceframe_info): New function.
10044 (tfile_traceframe_info): New function.
10045 (init_tfile_ops): Install tfile_traceframe_info.
10046 (traceframe_info_start_memory, free_result): New functions.
10047 (memory_attributes, traceframe_info_elements): New globals.
10048 (parse_traceframe_info, get_traceframe_info): New functions.
10049 * features/traceframe-info.dtd: New file.
10050 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10051
4e07d55f
PA
100522011-02-14 Pedro Alves <pedro@codesourcery.com>
10053
10054 Base support for <unavailable> value contents.
10055
4e07d55f
PA
10056 * value.h (value_bytes_available): Declare.
10057 (mark_value_bytes_unavailable): Declare.
10058 * value.c (struct range): New struct.
10059 (range_s): New typedef.
10060 (ranges_overlap): New function.
10061 (range_lessthan): New function.
10062 (ranges_contain_p): New function.
10063 (struct value) <unavailable>: New field.
10064 (value_bytes_available): New function.
10065 (mark_value_bytes_unavailable): New function.
10066 (require_not_optimized_out): Constify parameter.
10067 (require_available): New function.
10068 (value_contents_all, value_contents): Require all bytes be
10069 available.
10070 (value_free): Free `unavailable'.
10071 (value_copy): Copy `unavailable'.
10072 * valprint.h (val_print_unavailable): Declare.
10073 * valprint.c (valprint_check_validity): Rename `offset' parameter
10074 to `embedded_offset'. If printing a scalar, check whether the
10075 value chunk is available.
10076 (val_print_unavailable): New.
10077 (val_print_scalar_formatted): Check whether the value is
10078 available.
10079 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10080 pretty-printing unavailable values.
10081
bc9a5551
JK
100822011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10085 * c-typeprint.c (c_type_print_args): Update the function comment. New
10086 variable param_type, initialize it. Remove const/volatile qualifiers
10087 for language_cplus and !show_artificial. Use param_type.
10088
93b55aa1
JK
100892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10092 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10093 * symtab.h (struct symtab) <next>: Comment extension.
10094
181d9476
YQ
100952011-02-12 Yao Qi <yao@codesourcery.com>
10096
10097 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10098
b708a5c7
JK
100992011-02-11 Yao Qi <yao@codesourcery.com>
10100
10101 * common/Makefile.in: Add copyright header.
10102
c5187ac6
PA
101032011-02-11 Pedro Alves <pedro@codesourcery.com>
10104
10105 * infrun.c (proceed): Move switching out and in of tfind mode from
10106 here ...
10107 (fetch_inferior_event): ... to here.
10108
4f3e6fb7
YQ
101092011-02-11 Yao Qi <yao@codesourcery.com>
10110
10111 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10112 libcommon.a.
10113 * configure.ac: Add common to sub dir.
10114 * configure: Regenerate.
10115
b708a5c7
JK
101162011-02-11 Yao Qi <yao@codesourcery.com>
10117
10118 Build libcommon.a.
10119
10120 * common/Makefile.in: New.
10121 * common/configure.ac: New.
10122 * common/aclocal.m4: New.
10123 * common/configure: Generate.
10124
2287cc7e
PA
101252011-02-10 Pedro Alves <pedro@codesourcery.com>
10126
10127 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10128 side of the parenthesis.
10129
10130 Merge from GCC:
10131 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10132 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10133
fd62cb89
MS
101342011-02-08 Michael Snyder <msnyder@vmware.com>
10135
10136 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10137
56d2815c
JK
101382011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10139
10140 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10141 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10142 psubd and paddd.
10143
4f7d61a8
JK
101442011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10145
10146 PR 12361.
10147 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10148 phsubsw.
10149 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10150 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10151
54fcddd0
UW
101522011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10153
10154 * dwarf2read.c (read_subroutine_type): Set special calling
10155 convention flag for functions compiled by IBM XL C for OpenCL.
10156 * ppc-sysv-tdep.c: Include "dwarf2.h"
10157 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10158 calling convention.
10159 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10160 IBM OpenCL vector types calling convention.
10161 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10162 (ppc_sysv_abi_broken_return_value): Likewise.
10163 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10164 types calling convention.
10165 (ppc64_sysv_abi_return_value): Likewise.
10166 * spu-tdep.c: Include "dwarf2.h"
10167 (spu_return_value): Implement IBM OpenCL vector types calling
10168 convention.
10169
d6dafb7c
UW
101702011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10171
10172 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10173 correct ABI for AltiVec vector arguments.
10174
32b72a42
PA
101752011-02-07 Pedro Alves <pedro@codesourcery.com>
10176
10177 * valprint.c (val_print): Extend comment.
10178 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10179 interface explanation to val_print.
10180 (ada_val_print_array): Adjust comment to current interface.
10181 (print_field_values): Adjust comment to current interface.
10182 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10183 explanation to val_print.
10184 * f-valprint.c (f_val_print): Ditto.
10185 * jv-valprint.c (java_val_print): Ditto.
10186 * m2-valprint.c (m2_val_print): Ditto.
10187 * p-valprint.c (pascal_val_print): Ditto.
10188
9998af43
TJB
101892011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10190
10191 * breakpoint.c (parse_breakpoint_sals): Fix description.
10192
505500db 101932011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10194 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10195
10196 * python/py-inferior.c (python_on_normal_stop): New function.
10197 (python_on_resume): New function.
10198 (python_inferior_exit): New function.
10199 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10200 inferior_exit observers.
10201 * python/py-evtregistry.c: New file.
10202 * python/py-threadevent.c : New file.
10203 * python/py-event.c: New file.
10204 * python/py-evts.c: New file.
10205 * python/py-continueevent.c: New file.
10206 * python/py-bpevent.c: New file.
10207 * python/py-signalevent.c: New file.
10208 * python/py-exetiedevent.c: New file.
10209 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10210 Move struct breakpoint_object from here...
10211 * python/python-internal.h: ... to here.
10212 * python/py-event.h: New file.
10213 * python/py-events.h: New file.
10214 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10215 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10216 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10217 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10218 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10219 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10220 Add build rules for all the above.
10221
9e0ac564
TT
102222011-02-04 Tom Tromey <tromey@redhat.com>
10223
10224 * dwarf2read.c (dwarf2_section_empty_p): New function.
10225 (dwarf2_read_section): Use dwarf2_section_empty_p.
10226 (dwarf2_section_size): New function.
10227 (dwarf2_get_section_info): Unconditionally read section.
10228 (dwarf2_read_index): Use dwarf2_section_empty_p.
10229 (partial_read_comp_unit_head): Use dwarf2_section_size.
10230 (dwarf2_symbol_mark_computed): Likewise.
10231
eee5b35e
DD
102322011-02-04 David Daney <ddaney@caviumnetworks.com>
10233
10234 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10235
385203ed
DD
102362011-02-04 David Daney <ddaney@caviumnetworks.com>
10237
10238 * mips-linux-tdep.c: Include xml-syscall.h.
10239 (mips_linux_get_syscall_number): New function.
10240 (mips_linux_init_abi): Add calls to
10241 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10242 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10243 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10244 * syscalls/mips-n32-linux.xml: New file.
10245 * syscalls/mips-n64-linux.xml: New file.
10246 * syscalls/mips-o32-linux.xml: New file.
10247
9277c30c
UW
102482011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10249
10250 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10251 Complain about inverted range entries.
10252 (dwarf2_record_block_ranges): Likewise.
10253
a3be7890
TJB
102542011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10255
10256 Fix some typos.
10257 * breakpoint.c (update_watchpoint): Fix name of the
10258 update_global_location_list function.
10259 (print_one_breakpoint): Fix typo.
10260 (_initialize_breakpoint): Remove extra space in hbreak help
10261 string.
10262 * breakpoint.h (struct bp_location) <length>: Fix field
10263 description.
10264
041274d8
PA
102652011-02-04 Pedro Alves <pedro@codesourcery.com>
10266
10267 * regcache.c (registers_changed_ptid): Don't explictly always
10268 clear `current_regcache'. Only clear current_thread_ptid and
10269 current_thread_arch when PTID matches. Only reinit the frame
10270 cache if PTID matches the current inferior_ptid. Move alloca(0)
10271 call to ...
10272 (registers_changed): ... here.
10273
c1c2ab58
UW
102742011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10275
10276 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10277 starts with __stack_chk_guard as stack guard symbol.
10278
9011945e
AB
102792011-02-03 Andrew Burgess <aburgess@broadcom.com>
10280
10281 * disasm.c (compare_lines): Handle the end of sequence markers
10282 within the line table to better support disassembling over
10283 compilation unit boundaries.
10284
e0634ccf
UW
102852011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10286
10287 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10288 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10289 implementation even if no symbols are available.
10290 (thumb_analyze_prologue): Update call to skip_prologue_function.
10291 (arm_analyze_prologue): Likewise.
10292
0e9e9abd
UW
102932011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10294
10295 * arm-tdep.c: Include "observer.h".
10296 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10297 (arm_exidx_data_key): New static variable.
10298 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10299 (struct arm_exidx_data): Likewise.
10300 (arm_exidx_data_free): New function.
10301 (arm_compare_exidx_entries): Likewise.
10302 (arm_obj_section_from_vma): Likewise.
10303 (arm_exidx_new_objfile): Likewise.
10304 (arm_find_exidx_entry): Likewise.
10305 (arm_exidx_fill_cache): Likewise.
10306 (arm_exidx_unwind_sniffer): Likewise.
10307 (arm_exidx_unwind): New global variable.
10308 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10309 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10310 observer. Register arm_exidx_data_key as objfile data.
10311
2e9e421f
UW
103122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10313
10314 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10315 due to accessing uninitialized variable. Fix indentation.
10316
580688f3
PA
103172011-02-02 Pedro Alves <pedro@codesourcery.com>
10318
10319 * c-valprint.c (c_value_print): When doing virtual base pointer
10320 adjustment, create a new value with adjusted contents rather than
10321 changing the contents of the value being printed (and getting it
10322 wrong).
10323
3d2c1d41
PA
103242011-02-02 Pedro Alves <pedro@codesourcery.com>
10325
10326 * xml-support.c (xml_find_attribute): New.
10327 (xinclude_start_include): Use it.
10328 * xml-support.h (xml_find_attribute): Declare.
10329 * memory-map.c (memory_map_start_memory)
10330 (memory_map_start_property): Use xml_find_attribute.
10331 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10332 xml_find_attribute.
10333 * remote.c (start_thread): Use xml_find_attribute.
10334 * solib-target.c (library_list_start_segment)
10335 (library_list_start_section, library_list_start_library)
10336 (library_list_start_list): Use xml_find_attribute.
10337 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10338 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10339 (tdesc_start_field): Use xml_find_attribute.
10340
0af3e2db
UW
103412011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10342
10343 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10344 (BUILD_OCL_VTYPES): Update.
10345
c1039e3c
JB
103462011-02-02 Joel Brobecker <brobecker@adacore.com>
10347
10348 * configure.ac: Work around non-GNU sed limitation when computing
10349 python version number.
10350 * configure: Regenerate.
10351
600ea1be
JK
103522011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10353
10354 Fix debug printing of TYPE_INSTANCE.
10355 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10356 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10357
56c12414
JK
103582011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10359
10360 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10361 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10362 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10363 * ada-operator.inc: Rename the file to ...
10364 * ada-operator.def: ... here, wrap all the entries by macro OP.
10365 * expprint.c (op_name_standard): Remove all the entries. Include
10366 "std-operator.def" instead.
10367 * expression.h (enum exp_opcode): Include "std-operator.def" and
10368 "ada-operator.def". Move all the entries ...
10369 * std-operator.def: ... here, wrap all the entries by macro OP.
10370
c52b559d
PP
103712011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10372
10373 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10374 * breakpoint.c (remove_jit_event_breakpoints): New function.
10375 * jit.c (jit_descriptor_addr): Delete.
10376 (registering_code): Delete.
10377 (clear_int): Delete.
10378 (jit_inferior_data): New variable.
10379 (struct jit_inferior_data): New type.
10380 (get_jit_inferior_data): New function.
10381 (jit_inferior_data_cleanup): New function.
10382 (jit_read_descriptor): Adjust.
10383 (jit_register_code): Adjust.
10384 (jit_breakpoint_re_set_internal): New function; move code here ...
10385 (jit_inferior_init): ... from here.
10386 (jit_breakpoint_re_set): Adjust.
10387 (jit_reset_inferior_data_and_breakpoints): New function.
10388 (jit_inferior_created_observer): Adjust.
10389 (jit_inferior_exit_hook): Adjust.
10390 (jit_executable_changed_observer): New function.
10391 (jit_event_handler): Adjust.
10392 (_initialize_jit): Adjust.
10393
e839132d
MS
103942011-01-31 Michael Snyder <msnyder@vmware.com>
10395
10396 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10397 line.
10398
47a80e90
TT
103992011-01-31 Tom Tromey <tromey@redhat.com>
10400
10401 PR python/12216:
10402 * python/python.c (execute_gdb_command): Call
10403 prevent_dont_repeat.
10404 * top.c (suppress_dont_repeat): New global.
10405 (dont_repeat): Use it.
10406 (prevent_dont_repeat): New function.
10407 * command.h (prevent_dont_repeat): Declare.
10408
45a43567
TT
104092011-01-31 Tom Tromey <tromey@redhat.com>
10410
10411 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10412 * python/py-breakpoint.c (bppy_set_silent): Use
10413 breakpoint_set_silent.
10414 (bppy_set_thread): Use breakpoint_set_thread.
10415 (bppy_set_task): Use breakpoint_set_task.
10416 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10417 (breakpoint_set_task): Declare.
10418 (make_breakpoint_silent): Remove.
10419 * breakpoint.c (breakpoint_set_silent): New function.
10420 (breakpoint_set_thread): Likewise.
10421 (breakpoint_set_task): Likewise.
10422 (make_breakpoint_silent): Remove.
10423
09d682a4
TT
104242011-01-31 Tom Tromey <tromey@redhat.com>
10425
10426 * breakpoint.h (user_breakpoint_p): Declare.
10427 * breakpoint.c (user_breakpoint_p): New function.
10428 (breakpoint_1): Use it.
10429 (save_breakpoints): Likewise.
10430
9c4ea6c5
JB
104312011-01-31 Joel Brobecker <brobecker@adacore.com>
10432
10433 * configure.ac: Add handling of Python distribution on Windows.
10434 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10435 sysconfig variables are not defined, then do not use them.
10436 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10437 instead. On Windows, return all paths using forward-slashes
10438 rather than backslashes.
10439
ac534cba
JB
104402011-01-31 Joel Brobecker <brobecker@adacore.com>
10441
10442 * configure.ac: Remove fallback behavior for building
10443 against Python. Remove tweaking of Python include path.
10444 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10445 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10446 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10447 Always restore CPPFLAGS and LIBS after linking test.
10448 * configure: Regenerated.
10449 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10450 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10451 * python/python-internal.h: Adjust includes of Python .h files.
10452
c2f0d045
JB
104532011-01-31 Joel Brobecker <brobecker@adacore.com>
10454
10455 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10456 in error message.
10457
6b0c4c1f
JB
104582011-01-31 Joel Brobecker <brobecker@adacore.com>
10459
10460 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10461 value test.
10462
672c9795
YQ
104632011-01-31 Yao Qi <yao@codesourcery.com>
10464
10465 * arm-linux-nat.c: Update calls to regcache_register_status
10466 instead of regcache_valid_p.
10467 * aix-thread.c: Likewise.
10468 * i386gnu-nat.c: Likewise.
10469
80b23b6a
JK
104702011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10471
10472 Fix crash.
10473 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10474 touching TYPE_FIELD_ARTIFICIAL.
10475
4cd712bd
RE
104762011-01-28 Richard Earnshaw <rearnsha@arm.com>
10477
10478 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10479 Committers.
10480
ffd5ec24
PA
104812011-01-28 Pedro Alves <pedro@codesourcery.com>
10482
10483 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10484 selected, don't try iterating over the traceframe's blocks.
10485 (tfile_has_stack): If there's no traceframe selected, then there's
10486 no stack.
10487 (tfile_has_registers): If there's no traceframe selected, then
10488 there's no registers.
10489
e8c9e0a1
PA
104902011-01-28 Pedro Alves <pedro@codesourcery.com>
10491
10492 * target.c (memory_xfer_partial): No need to restore shadows if we
10493 haven't read anything.
10494
de15c4ab
PA
104952011-01-28 Pedro Alves <pedro@codesourcery.com>
10496
10497 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10498 and val_print_scalar_formatted.
10499
9f41c731
PA
105002011-01-27 Pedro Alves <pedro@codesourcery.com>
10501
10502 * tracepoint.c (tfile_read): New.
10503 (tfile_open): Use it.
10504 (tfile_get_traceframe_address): Use it.
10505 (tfile_trace_find): Use it.
10506 (walk_blocks_callback_func): New typedef.
10507 (match_blocktype): New function.
10508 (traceframe_walk_blocks): New function.
10509 (traceframe_find_block_type): New function.
10510 (tfile_fetch_registers, tfile_xfer_partial)
10511 (tfile_get_trace_state_variable_value): Use
10512 traceframe_find_block_type and tfile_read.
10513
cdefc55d
KB
105142011-01-26 Kevin Buettner <kevinb@redhat.com>
10515
10516 * remote-mips.c: Add internationalization mark ups. Remove
10517 trailing \n from already marked up strings.
10518
a81766d8
TT
105192011-01-26 Tom Tromey <tromey@redhat.com>
10520
10521 * python/py-prettyprint.c (print_string_repr): Clear
10522 'addressprint' option when calling val_print_string.
10523 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10524 option when calling val_print_string.
10525
74aedc46
TT
105262011-01-26 Tom Tromey <tromey@redhat.com>
10527
10528 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10529 GDB_PY_LL_ARG.
10530 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10531 macros.
10532 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10533 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10534 (gdb_py_long_as_ulongest): New defines.
10535 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10536 (gdb_py_int_as_long): Declare.
10537 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10538 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10539 (valpy_long): Add comment.
10540 * python/py-utils.c (get_addr_from_python): Use
10541 gdb_py_long_as_ulongest. Handle overflow properly.
10542 (gdb_py_object_from_longest): New function.
10543 (gdb_py_object_from_ulongest): Likewise.
10544 (gdb_py_int_as_long): Likewise.
10545 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10546 * python/py-symtab.c (salpy_get_pc): Use
10547 gdb_py_long_from_ulongest.
10548 (salpy_get_line): Use PyInt_FromLong.
10549 * python/py-param.c (set_parameter_value): Use
10550 gdb_py_int_as_long.
10551 * python/py-lazy-string.c (stpy_get_address): Use
10552 gdb_py_long_from_ulongest.
10553 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10554 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10555 * python/py-breakpoint.c (bppy_set_thread): Use
10556 gdb_py_int_as_long.
10557 (bppy_set_task): Likewise.
10558 (bppy_set_ignore_count): Likewise.
10559 (bppy_set_hit_count): Likewise.
10560 * python/py-block.c (blpy_get_start): Use
10561 gdb_py_object_from_ulongest.
10562 (blpy_get_end): Likewise.
10563 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10564
e4f6d2ec
TJB
105652011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10566
10567 PR/symtab 11766:
10568 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10569 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10570 equality test for objfile, initialize addr_low if needed.
10571
b30aa278
PA
105722011-01-25 Pedro Alves <pedro@codesourcery.com>
10573
10574 * tui/tui-regs.c (tui_register_format): Remove dead code.
10575
ab2188aa
PA
105762011-01-25 Pedro Alves <pedro@codesourcery.com>
10577
10578 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10579 instead of print_scalar_formatted.
10580 (print_scalar_formatted): Don't handle 's' format strings here,
10581 and add an assertion that we never see such format here.
10582 * valprint.h (val_print_scalar_formatted): Declare.
10583 * valprint.c (val_print_scalar_formatted): New.
10584 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10585 instead of print_scalar_formatted.
10586 * jv-valprint.c (java_val_print): Ditto.
10587 * p-valprint.c (pascal_val_print): Ditto.
10588 * ada-valprint.c (ada_val_print_1): Ditto.
10589 * f-valprint.c (f_val_print): Ditto.
10590 * infcmd.c (registers_info): Ditto.
10591 * m2-valprint.c (m2_val_print): Ditto.
10592
66d61a4c
PA
105932011-01-25 Pedro Alves <pedro@codesourcery.com>
10594
10595 * m2-valprint.c (print_unbounded_array): Pass
10596 value_contents_for_printing rather than value_contents, to
10597 m2_print_array_contents. Also pass in the value.
10598
831adc1f
JK
105992011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10600
10601 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10602 (save_gdb_index_command): Switch to .gdb_index version 4.
10603
20622269
PA
106042011-01-25 Pedro Alves <pedro@codesourcery.com>
10605
10606 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10607 than frame_register, and always pass a valid value to val_print.
10608
585fdaa1
PA
106092011-01-25 Pedro Alves <pedro@codesourcery.com>
10610
10611 Centralize printing "<optimized out>".
10612
10613 * valprint.h (val_print_optimized_out): Declare.
10614 * cp-valprint.c (cp_print_value_fields): Use
10615 val_print_optimized_out.
10616 * jv-valprint.c (java_print_value_fields): Ditto.
10617 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10618 * printcmd.c (print_formatted): Ditto.
10619 * valprint.c (valprint_check_validity): Ditto.
10620 (value_check_printable): Ditto.
10621 (val_print_optimized_out): New.
10622
29ec5263
PA
106232011-01-25 Pedro Alves <pedro@codesourcery.com>
10624
10625 * infcmd.c (default_print_registers_info): Allocate values so to
10626 never pass a NULL value to val_print.
10627
de4127a3
PA
106282011-01-25 Pedro Alves <pedro@codesourcery.com>
10629
10630 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10631 boolean. Make sure to always pass a value that matches the
10632 contents buffer to callees. Preserve `address' for following
10633 iterations.
10634 * value.c (value_contents_for_printing_const): New.
10635 (value_address): Constify value argument.
10636 * value.h (value_contents_for_printing_const): Declare.
10637 (value_address): Constify value argument.
10638
ee99023e
PA
106392011-01-25 Pedro Alves <pedro@codesourcery.com>
10640
10641 * regcache.c (struct regcache_descr): Rename
10642 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10643 and sizeof_cooked_register_valid_p to
10644 sizeof_cooked_register_status.
10645 (init_regcache_descr): Adjust.
10646 (struct regcache): Rename register_valid_p field to
10647 register_status.
10648 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10649 (do_cooked_read): Adjust.
10650 (regcache_valid_p): Rename to ...
10651 (regcache_register_status): ... this. Adjust.
10652 (regcache_invalidate): Adjust.
10653 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10654 Adjust.
10655 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10656 as unavailable, not valid.
10657 (regcache_dump): Adjust.
10658 * regcache.h (enum register_status): New.
10659 (regcache_register_status): Declare.
10660 (regcache_invalidate): Delete declaration.
10661 * corelow.c (get_core_registers): Adjust.
10662 * tracepoint.c (tfile_fetch_registers): Adjust.
10663 * trad-frame.c (REG_VALUE): Rename to ...
10664 (TF_REG_VALUE): ... this.
10665 (REG_UNKNOWN): Rename to ...
10666 (TF_REG_UNKNOWN): ... this.
10667 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10668 * mi/mi-main.c (register_changed_p): Adjust.
10669
99e42fd8
PA
106702011-01-25 Pedro Alves <pedro@codesourcery.com>
10671
10672 * regcache.c (struct regcache_descr): Remove outdated comment.
10673 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10674 overallocate hack.
10675 (regcache_xmalloc): Rename to ...
10676 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10677 Allocate the regcache type accordingly.
10678 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10679 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10680 cooked registers, not raw.
10681 (regcache_dup_no_passthrough): Delete.
10682 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10683 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10684 mention obsolete write_register_bytes.
10685 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10686
f7605bc2
PA
106872011-01-25 Pedro Alves <pedro@codesourcery.com>
10688
10689 Stop remote_read_bytes from handling partial reads itself.
10690
10691 * remote-fileio.c: Include target.h.
10692 (remote_fileio_write_bytes): Delete.
10693 (remote_fileio_func_open, remote_fileio_func_write)
10694 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10695 target_read_memory.
10696 (remote_fileio_func_stat): Use target_read_memory and
10697 target_write_memory.
10698 (remote_fileio_func_gettimeofday): Use target_write_memory.
10699 (remote_fileio_func_system): Use target_read_memory.
10700 * remote.c (remote_write_bytes): Make it static.
10701 (remote_read_bytes): Don't handle partial reads here.
10702 * remote.h (remote_read_bytes): Delete declaration.
10703
efc0eabd
PA
107042011-01-25 Pedro Alves <pedro@codesourcery.com>
10705
10706 Simplify XML parsing a bit.
10707
10708 * xml-support.h (gdb_xml_parse_quick): Declare.
10709 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10710 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10711 parameter.
10712 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10713 gdb_xml_create_parser_and_cleanup_1.
10714 (gdb_xml_parse_quick): New.
10715 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10716 * osdata.c (osdata_parse): Ditto.
10717 * remote.c (remote_threads_info): Ditto.
10718 * solib-target.c (solib_target_parse_libraries): Ditto.
10719 * xml-syscall.c (syscall_parse_xml): Ditto.
10720 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10721
314d366a
KB
107222011-01-24 Kevin Buettner <kevinb@redhat.com>
10723
10724 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10725 with remote-mips.o added to gdb_target_obs.
10726 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10727
a491d753
PA
107282011-01-24 Pedro Alves <pedro@codesourcery.com>
10729
10730 * ada-valprint.c (val_print_packed_array_elements): Pass the
10731 correct struct value to val_print.
10732 (ada_val_print_1): Ditto.
10733
490f124f
PA
107342011-01-24 Pedro Alves <pedro@codesourcery.com>
10735
10736 Don't lose embedded_offset in printing routines throughout.
10737
10738 * valprint.h (val_print_array_elements): Change prototype.
10739 * valprint.c (val_print_array_elements): Add `embedded_offset'
10740 parameter, and adjust to pass it down to val_print, while passing
10741 `valaddr' or `address' unmodified. Take embedded_offset into
10742 account when checking repetitions.
10743 * c-valprint.c (c_val_print): Pass embedded_offset to
10744 val_print_array_elements instead of adjusting `valaddr' and
10745 `address'.
10746 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10747 embedded_offset to val_print_array_elements instead of adjusting
10748 `valaddr'.
10749 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10750 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10751 val_print_array_elements and pascal_object_print_value_fields
10752 instead of adjusting `valaddr'.
10753 (pascal_object_print_value_fields): Add `offset' parameter, and
10754 adjust to use it.
10755 (pascal_object_print_value): Add `offset' parameter, and adjust to
10756 use it.
10757 (pascal_object_print_static_field): Use
10758 value_contents_for_printing/value_embedded_offset, rather than
10759 value_contents.
10760 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10761 parameter, and adjust to use it. Use
10762 value_contents_for_printing/value_embedded_offset, rather than
10763 value_contents.
10764 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10765 (ada_val_print_array): Add `offset' parameter, and adjust to use
10766 it.
10767 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10768 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10769 Instead work with offsets. Use
10770 value_contents_for_printing/value_embedded_offset, rather than
10771 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10772 and use value_from_pointer to extract a target pointer, rather
10773 than value_from_longest.
10774 (print_variant_part): Add `offset' parameter. Replace
10775 `outer_valaddr' parameter by a new `outer_offset' parameter.
10776 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10777 (ada_value_print): Use
10778 value_contents_for_printing/value_embedded_offset, rather than
10779 value_contents.
10780 (print_record): Add `offset' parameter, and adjust to pass it
10781 down.
10782 (print_field_values): Add `offset' parameter. Replace
10783 `outer_valaddr' parameter by a new `outer_offset' parameter.
10784 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10785 Use value_contents_for_printing/value_embedded_offset, rather than
10786 value_contents.
10787 * d-valprint.c (dynamic_array_type): Use
10788 value_contents_for_printing/value_embedded_offset, rather than
10789 value_contents.
10790 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10791 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10792 (java_print_value_fields): Take `offset' into account. Don't
10793 re-adjust `valaddr'. Instead pass down adjusted offsets.
10794 (java_val_print): Take `embedded_offset' into account. Pass it to
10795 java_print_value_fields.
10796 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10797 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10798 down adjusted offsets.
10799 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10800 (f_val_print): Take `embedded_offset' into account.
10801
7bfc9434
JB
108022011-01-21 Joel Brobecker <brobecker@adacore.com>
10803
10804 * inflow.c: Include "gdbcmd.h".
10805 (interactive_mode): New static global, moved here from top.c.
10806 (show_interactive_mode): New function, moved here from top.c.
10807 use gdb_has_a_terminal instead of input_from_terminal_p to
10808 determine the current mode.
10809 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10810 setting.
10811 (_initialize_inflow): Add the "set/show interactive-mode"
10812 commands. Moved here from top.c, after having adjusted slightly
10813 the help text.
10814 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10815 to inflow.c.
10816 (input_from_terminal_p): Remove handling of "interactive-mode"
10817 setting, moved to infow.c.
10818 (init_main): Remove creation of the "set/show interactive-mode"
10819 commands, moved to inflow.c.
10820
44603653
JB
108212011-01-19 Joel Brobecker <brobecker@adacore.com>
10822
10823 * NEWS: Add entry for native ia64-hpux support.
10824
4694da01
TT
108252011-01-19 Tom Tromey <tromey@redhat.com>
10826
10827 PR mi/8618:
10828 * thread.c (free_thread): Free 'name'.
10829 (print_thread_info): Emit thread name. Change CLI output.
10830 (thread_name_command): New function.
10831 (do_captured_thread_select): Emit newline.
10832 (_initialize_thread): Register 'thread name' command.
10833 * target.h (struct target_ops) <to_thread_name>: New field.
10834 (target_thread_name): New macro.
10835 * target.c (update_current_target): Handle to_thread_name.
10836 * python/py-infthread.c (thpy_get_name): New function.
10837 (thpy_set_name): Likewise.
10838 (thread_object_getset): Add "name".
10839 * linux-nat.c (linux_nat_thread_name): New function.
10840 (linux_nat_add_target): Set to_thread_name.
10841 * gdbthread.h (struct thread_info) <name>: New field.
10842
10d44370
JB
108432011-01-18 Joel Brobecker <brobecker@adacore.com>
10844
10845 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10846 (ada_val_print_1): Likewise.
10847
e3acb115
JB
108482011-01-18 Joel Brobecker <brobecker@adacore.com>
10849
10850 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10851 upper limit address is not greater than the function end address
10852 when the upper limit could not be computed using the debugging
10853 info.
10854
dc92e161
TT
108552011-01-17 Tom Tromey <tromey@redhat.com>
10856
10857 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10858 get_regcomp_error.
10859 * utils.c: Include gdb_regex.h.
10860 (do_regfree_cleanup): New function.
10861 (make_regfree_cleanup): Likewise.
10862 (get_regcomp_error): Likewise.
10863 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10864
f55af66d
TT
108652011-01-17 Tom Tromey <tromey@redhat.com>
10866
10867 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10868 re_compile_fastmap.
10869
a5a44b53
PM
108702011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10871
10872 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10873 for internal variables.
10874 (last_was_structop): New static variable.
10875 (COMPLETE): New token.
10876 (field_exp): New rule to group all '.' suffix handling.
10877 Add mark_struct_expression calls when approriate to be able
10878 to correctly find fields for completion.
10879 (yylex): Adapt to handle field completion and set INTVAR when
10880 required.
10881
2c291032
YQ
108822011-01-14 Yao Qi <yao@codesourcery.com>
10883
10884 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10885 save_reggroup, restore_reggroup and all_reggroup.
10886
447b483c
JB
108872011-01-14 Joel Brobecker <brobecker@adacore.com>
10888
10889 * ada-valprint. (ada_printchar): Use the correct type length
10890 in call to ada_emit_char.
10891 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10892
7b64a93b
PM
108932011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10894
10895 * solib-som.h (hpux_major_release): Declare variable here.
10896 * solib-som.c: Remove <sys/utsname.h> header.
10897 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10898 (hpux_major_release): Make global, change default value to
10899 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10900 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10901 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10902 Add "solib-som.h" header.
10903 (set_hpux_major_release): New function.
10904 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10905
4e18c053
MF
109062011-01-14 Mike Frysinger <vapier@gentoo.org>
10907
10908 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10909
a9df6b22
JB
109102011-01-14 Joel Brobecker <brobecker@adacore.com>
10911
10912 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10913 new-line at end of warning message.
10914 (ia64_hpux_store_register): Remove trailing new-line at end of
10915 error message.
10916 * ia64-hpux-tdep.c: Rephrase comment.
10917 * solib-ia64-hpux.c (struct dld_info): Change type of field
10918 dld_flags from "long long" to ULONGEST.
10919
ecb956dd
PA
109202011-01-14 Pedro Alves <pedro@codesourcery.com>
10921
10922 * target.h (deprecated_child_ops): Delete declaration.
10923 * target.c (deprecated_child_ops): Delete definition.
10924
76adfcae
PA
109252011-01-14 Pedro Alves <pedro@codesourcery.com>
10926
10927 * Makefile.in (hpux-thread.o): Delete rule.
10928 * configure.ac: Don't check for HPUX DCE threads support.
10929 * configure, config.in: Regenerate.
10930 * hppa-hpux-nat.c (child_suppress_run): Delete.
10931 (hppa_hpux_child_can_run): Delete.
10932 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10933 * hpux-thread.c: Delete.
10934
042e866e
JB
109352011-01-13 Joel Brobecker <brobecker@adacore.com>
10936
10937 * hpux-thread.c (hpux_pid_to_str): Delete.
10938
4ffa5a33
JB
109392011-01-13 Joel Brobecker <brobecker@adacore.com>
10940
10941 * ada-valprint.c (ada_emit_char): Remove strange code.
10942 Check that c is <= UCHAR_MAX before passing it to isascii.
10943 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10944
de8fa76c
JB
109452011-01-13 Joel Brobecker <brobecker@adacore.com>
10946
10947 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10948 to the case where instream is stdin.
10949
c4de7027
JB
109502011-01-13 Joel Brobecker <brobecker@adacore.com>
10951
10952 * ia64-tdep.h (struct regcache): Forward declare.
10953 (struct ia64_infcall_ops): New struct type.
10954 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10955 and "infcall_ops".
10956 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10957 Renames ia64_find_global_pointer.
10958 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10959 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10960 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10961 methods.
10962 (ia64_infcall_ops): New static global constant.
10963 (ia64_gdbarch_init): Set tdep->infcall_ops.
10964 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10965 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10966 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10967 (ia64_hpux_dummy_code): New static global constant.
10968 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10969 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10970 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10971 New function.
10972 (ia64_hpux_infcall_ops): New static global constant.
10973 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10974 for inferior function calls to work properly on ia64-hpux.
10975
77ca787b
JB
109762011-01-13 Joel Brobecker <brobecker@adacore.com>
10977
10978 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10979 * ia64-tdep.h (struct frame_info): forward declaration.
10980 (struct gdbarch_tdep): Add field size_of_register_frame.
10981 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10982 to determine the size of the register frame.
10983 (ia64_size_of_register_frame): New function.
10984 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10985 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10986 (IA64_HPUX_UREG_REASON): New macro.
10987 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10988 New functions.
10989 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10990 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10991 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10992 objects.
10993
92c9a463
JB
109942011-01-13 Joel Brobecker <brobecker@adacore.com>
10995
10996 Add support for ia64-hpux.
10997 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10998 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10999
11000 * configure.host: Add handling for ia64-hpux hosts. Add associated
11001 floatformats.
11002 * configure.tgt: Add handling for ia64-hpux targets.
11003 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11004 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11005 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11006
f688d93f
JB
110072011-01-13 Joel Brobecker <brobecker@adacore.com>
11008
11009 [ttrace] Compute thread list immediately after attach.
11010 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11011 New subprogram.
11012 (inf_ttrace_attach): Use it.
11013
1b89e62f
JB
110142011-01-13 Joel Brobecker <brobecker@adacore.com>
11015
11016 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11017 if we could not determine the frame's function address. Instead,
11018 use the frame's PC, and then continue.
11019
3e5e6e2a
JB
110202011-01-13 Joel Brobecker <brobecker@adacore.com>
11021
11022 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11023 not already defined.
11024
825d6d8a
JB
110252011-01-13 Joel Brobecker <brobecker@adacore.com>
11026
11027 * ia64-tdep.c (ia64_struct_type_p): New function.
11028 (ia64_extract_return_value): Handle integral values that are
11029 less than 8 bytes long.
11030 (ia64_push_dummy_call): Likewise.
11031
7458e667
JB
110322011-01-13 Joel Brobecker <brobecker@adacore.com>
11033
11034 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11035 floatformat_ia64_ext.
11036 (floatformat_ia64_ext_big): New static const.
11037 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11038
1b05df00
TT
110392011-01-12 Tom Tromey <tromey@redhat.com>
11040
11041 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11042 messages.
11043 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11044 (mi_cmd_thread_list_ids): Likewise.
11045 (mi_cmd_data_list_changed_registers): Likewise.
11046 (mi_cmd_data_list_register_values): Likewise.
11047 (mi_cmd_data_write_register_values): Likewise.
11048 (mi_cmd_data_evaluate_expression): Likewise.
11049 (mi_cmd_data_read_memory): Likewise.
11050 (mi_cmd_data_read_memory_bytes): Likewise.
11051 (mi_cmd_data_write_memory): Likewise.
11052 (mi_cmd_enable_timings): Likewise.
11053 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11054 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11055 (mi_cmd_var_delete): Likewise.
11056 (mi_cmd_var_set_format): Likewise.
11057 (mi_cmd_var_show_format): Likewise.
11058 (mi_cmd_var_info_num_children): Likewise.
11059 (mi_cmd_var_list_children): Likewise.
11060 (mi_cmd_var_info_type): Likewise.
11061 (mi_cmd_var_info_expression): Likewise.
11062 (mi_cmd_var_show_attributes): Likewise.
11063 (mi_cmd_var_assign): Likewise.
11064 (mi_cmd_var_update): Likewise.
11065 (mi_cmd_enable_pretty_printing): Likewise.
11066 (mi_cmd_var_set_update_range): Likewise.
11067 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11068 messages.
11069 (mi_cmd_target_file_put): Likewise.
11070 (mi_cmd_target_file_delete): Likewise.
11071 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11072 messages.
11073 (mi_cmd_stack_info_depth): Likewise.
11074 (mi_cmd_stack_list_locals): Likewise.
11075 (mi_cmd_stack_list_args): Likewise.
11076 (mi_cmd_stack_select_frame): Likewise.
11077 (mi_cmd_stack_select_frame): Likewise.
11078 (mi_cmd_stack_info_frame): Likewise.
11079 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11080 messages.
11081 (mi_cmd_file_list_exec_source_files): Likewise.
11082 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11083 (mi_cmd_env_cd): Likewise.
11084 (mi_cmd_env_path): Likewise.
11085 (mi_cmd_env_dir): Likewise.
11086 (mi_cmd_inferior_tty_show): Likewise.
11087 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11088 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11089 (mi_cmd_break_watch): Likewise.
11090
ad422571
TJB
110912011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11092
11093 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11094 (ppc_linux_insert_hw_breakpoint): Likewise.
11095 (ppc_linux_remove_hw_breakpoint): Likewise.
11096 (ppc_linux_insert_watchpoint): Likewise.
11097
c2ff108b
JK
110982011-01-12 Andrew Burgess <aburgess@broadcom.com>
11099 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 PR fortran/11104 and DWARF unbound arrays detection.
11102 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11103 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11104 unspecified upper bound.
11105 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11106 variables array_size_array, tmp_type and offset_item. New variable
11107 array. Remove call to f77_get_upperbound. New variables array_type
11108 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11109 the final call to deprecated_set_value_type.
11110
41e8491f
JK
111112011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 Make value allocations more lazy.
11114 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11115 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11116 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11117 instead of allocate_value and set_value_lazy.
11118 * findvar.c (value_of_register_lazy): Likewise.
11119 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11120 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11121 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11122 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11123 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11124 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11125 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11126 the end, remove set_value_lazy there.
11127 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11128 instead of allocate_value and set_value_lazy when possible.
11129 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11130 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11131 of allocate_value and set_value_lazy.
11132 (value_from_contents_and_address): Use allocate_value_lazy instead of
11133 allocate_value and set_value_lazy when possible.
11134
b716877b
AB
111352011-01-12 Andrew Burgess <aburgess@broadcom.com>
11136
11137 * disasm.c (dump_insns): Support dumping opcodes for MI.
11138 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11139 dumping of instruction opcodes.
11140
d5ae309f
JB
111412011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11142
11143 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11144 appropiately.
11145
98871305
TT
111462011-01-11 Tom Tromey <tromey@redhat.com>
11147
11148 * thread.c (do_captured_thread_select): Emit newline before
11149 printing frame.
11150
c378eb4e
MS
111512011-01-11 Michael Snyder <msnyder@vmware.com>
11152
11153 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11154 * score-tdep.c: Ditto.
11155 * score-tdep.h: Ditto.
11156 * ser-base.c: Ditto.
11157 * ser-go32.c: Ditto.
11158 * serial.c: Ditto.
11159 * serial.h: Ditto.
11160 * ser-mingw.c: Ditto.
11161 * ser-pipe.c: Ditto.
11162 * ser-tcp.c: Ditto.
11163 * ser-unix.c: Ditto.
11164 * sh64-tdep.c: Ditto.
11165 * shnbsd-nat.c: Ditto.
11166 * sh-tdep.c: Ditto.
11167 * sh-tdep.h: Ditto.
11168 * solib.c: Ditto.
11169 * solib-darwin.c: Ditto.
11170 * solib-frv.c: Ditto.
11171 * solib.h: Ditto.
11172 * solib-irix.c: Ditto.
11173 * solib-osf.c: Ditto.
11174 * solib-pa64.c: Ditto.
11175 * solib-som.c: Ditto.
11176 * solib-spu.c: Ditto.
11177 * solib-sunos.c: Ditto.
11178 * solib-svr4.c: Ditto.
11179 * solist.h: Ditto.
11180 * sol-thread.c: Ditto.
11181 * somread.c: Ditto.
11182 * source.c: Ditto.
11183 * source.h: Ditto.
11184 * sparc64-linux-tdep.c: Ditto.
11185 * sparc64-tdep.c: Ditto.
11186 * sparc-linux-nat.c: Ditto.
11187 * sparc-linux-tdep.c: Ditto.
11188 * sparc-sol2-nat.c: Ditto.
11189 * sparc-sol2-tdep.c: Ditto.
11190 * sparc-tdep.c: Ditto.
11191 * sparc-tdep.h: Ditto.
11192 * spu-tdep.c: Ditto.
11193 * stabsread.c: Ditto.
11194 * stabsread.h: Ditto.
11195 * stack.c: Ditto.
11196 * symfile.c: Ditto.
11197 * symfile.h: Ditto.
11198 * symmisc.c: Ditto.
11199 * symtab.c: Ditto.
11200 * symtab.h: Ditto.
11201 * target.c: Ditto.
11202 * target-descriptions.c: Ditto.
11203 * target-descriptions.h: Ditto.
11204 * target.h: Ditto.
11205 * target-memory.c: Ditto.
11206 * terminal.h: Ditto.
11207 * thread.c: Ditto.
11208 * top.c: Ditto.
11209 * tracepoint.c: Ditto.
11210 * tracepoint.h: Ditto.
11211 * trad-frame.h: Ditto.
11212 * typeprint.c: Ditto.
11213
581e13c1
MS
112142011-01-11 Michael Snyder <msnyder@vmware.com>
11215
11216 * ui-file.c: Comment cleanup, mostly periods and spaces.
11217 * ui-file.h: Ditto.
11218 * ui-out.c: Ditto.
11219 * ui-out.h: Ditto.
11220 * utils.c: Ditto.
11221 * v850-tdep.c: Ditto.
11222 * valarith.c: Ditto.
11223 * valops.c: Ditto.
11224 * valprint.c: Ditto.
11225 * valprint.h: Ditto.
11226 * value.c: Ditto.
11227 * value.h: Ditto.
11228 * varobj.c: Ditto.
11229 * varobj.h: Ditto.
11230 * vax-tdep.c: Ditto.
11231 * vec.c: Ditto.
11232 * vec.h: Ditto.
11233 * version.h: Ditto.
11234 * windows-nat.c: Ditto.
11235 * windows-tdep.c: Ditto.
11236 * xcoffread.c: Ditto.
11237 * xcoffsolib.c: Ditto.
11238 * xml-support.c: Ditto.
11239 * xstormy16-tdep.c: Ditto.
11240 * xtensa-tdep.c: Ditto.
11241 * xtensa-tdep.h: Ditto.
11242
90e4670f
TJB
112432011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11244
11245 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11246 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11247
e09342b5
TJB
112482011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11249 Thiago Jung Bauermann <bauerman@br.ibm.com>
11250
11251 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11252 * breakpoint.h
e09342b5
TJB
11253 (struct breakpoint_ops) <resources_needed>: New method.
11254 Initialize to NULL in all existing breakpoint_ops instances.
11255 (struct breakpoint) <exact>: New field.
11256 (target_exact_watchpoints): Declare external global.
11257 * breakpoint.c (target_exact_watchpoints): New global flag.
11258 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11259 b->enable_state to bp_enabled before calling
11260 hw_watchpoint_used_count.
11261 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11262 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11263 if available.
11264 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11265 if the watchpoint is exact.
11266 (resources_needed_watchpoint): New function.
11267 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11268 (watch_command_1): Set b->exact if the user asked for an exact
11269 watchpoint and one can be set.
11270 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11271 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11272 the user asks for an exact watchpoint and one can be set. Return
11273 number of needed debug registers to watch the expression.
11274 * gdbtypes.c (is_scalar_type): New function, based on
11275 valprint.c:scalar_type_p.
11276 (is_scalar_type_recursive): New function.
11277 * gdbtypes.h (is_scalar_type_recursive): Declare.
11278 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11279 handle regions when ranged watchpoints are available.
11280 (create_watchpoint_request): New function.
11281 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11282 create_watchpoint_request.
11283 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11284 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11285 `set powerpc' and `show powerpc' commands.
11286 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11287 Mention documentation comment in the target macro.
11288 (target_region_ok_for_hw_watchpoint): Document return value.
11289
9fa40276
TJB
112902011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11291
11292 * breakpoint.c (update_watchpoint): Decide on using a software or
11293 hardware watchpoint after the bp_locations are created.
11294
77b06cd7
TJB
112952010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11296
11297 Convert hardware watchpoints to use breakpoint_ops.
11298 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11299 <insert_location>: ... this. Return int instead of void.
11300 Accept pointer to struct bp_location instead of pointer to
11301 struct breakpoint. Adapt all implementations.
f2eb0bc8 11302 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11303 <remove_location>: ... this. Accept pointer to struct bp_location
11304 instead of pointer to struct breakpoint. Adapt all implementations.
11305 * breakpoint.c (insert_catchpoint): Delete function.
11306 (insert_bp_location): Call the watchpoint or catchpoint's
11307 breakpoint_ops.insert method.
11308 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11309 breakpoint_ops.remove method.
11310 (insert_watchpoint, remove_watchpoint): New functions.
11311 (watchpoint_breakpoint_ops): New structure.
11312 (watch_command_1): Initialize the OPS field.
11313 * inf-child.c (inf_child_insert_fork_catchpoint)
11314 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11315 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11316 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11317 Delete functions.
11318 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11319 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11320 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11321 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11322 * target.c (update_current_target): Change default implementation of
11323 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11324 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11325 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11326 to_set_syscall_catchpoint to return_one.
11327 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11328 (debug_to_insert_exec_catchpoint): Report return value.
11329 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11330 (to_insert_exec_catchpoint): Change declaration to return int instead
11331 of void.
11332
9b20d036
MS
113332011-01-11 Michael Snyder <msnyder@vmware.com>
11334
11335 * arm-tdep.c: Internationalization.
11336 * c-lang.c: Ditto.
11337 * charset.c: Ditto.
11338 * fork-child.c: Ditto.
11339 * nto-procfs.c: Ditto.
11340 * ppc-sysv-tdep.c: Ditto.
11341 * procfs.c: Ditto.
11342 * remote-mips.c: Ditto.
11343 * remote.c: Ditto.
11344 * rs6000-nat.c: Ditto.
11345 * rs6000-tdep.c: Ditto.
11346 * target.c: Ditto.
11347 * valops.c: Ditto.
11348 * value.c: Ditto.
11349 * xml-support.c: Ditto.
11350 * mi/mi-cmd-break.c: Ditto.
11351 * mi/mi-cmd-var.c: Ditto.
11352 * mi/mi-interp.c: Ditto.
11353 * mi/mi-main.c: Ditto.
11354
dae477fe
AB
113552011-01-11 Andrew Burgess <aburgess@broadcom.com>
11356
11357 * remote-sim.c (gdbsim_store_register): Update API to
11358 sim_store_register to check more error conditions.
11359
0df8b418
MS
113602011-01-10 Michael Snyder <msnyder@vmware.com>
11361
11362 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11363 * nto-tdep.c: Ditto.
11364 * nto-tdep.h: Ditto.
11365 * objc-exp.y: Ditto.
11366 * objc-lang.c: Ditto.
11367 * objfiles.c: Ditto.
11368 * objfiles.h: Ditto.
11369 * observer.c: Ditto.
11370 * opencl-lang.c: Ditto.
11371 * osabi.c: Ditto.
11372 * parse.c: Ditto.
11373 * parser-defs.h: Ditto.
11374 * p-exp.y: Ditto.
11375 * p-lang.c: Ditto.
11376 * posix-hdep.c: Ditto.
11377 * ppcbug-rom.c: Ditto.
11378 * ppc-linux-nat.c: Ditto.
11379 * ppc-linux-tdep.c: Ditto.
11380 * ppc-linux-tdep.h: Ditto.
11381 * ppcnbsd-tdep.c: Ditto.
11382 * ppcobsd-tdep.c: Ditto.
11383 * ppcobsd-tdep.h: Ditto.
11384 * ppc-sysv-tdep.c: Ditto.
11385 * ppc-tdep.h: Ditto.
11386 * printcmd.c: Ditto.
11387 * proc-abi.c: Ditto.
11388 * proc-flags.c: Ditto.
11389 * procfs.c: Ditto.
11390 * proc-utils.h: Ditto.
11391 * progspace.h: Ditto.
11392 * prologue-value.c: Ditto.
11393 * prologue-value.h: Ditto.
11394 * psympriv.h: Ditto.
11395 * psymtab.c: Ditto.
11396 * p-typeprint.c: Ditto.
11397 * p-valprint.c: Ditto.
11398 * ravenscar-sparc-thread.c: Ditto.
11399 * ravenscar-thread.c: Ditto.
11400 * ravenscar-thread.h: Ditto.
11401 * record.c: Ditto.
11402 * regcache.c: Ditto.
11403 * regcache.h: Ditto.
11404 * remote.c: Ditto.
11405 * remote-fileio.c: Ditto.
11406 * remote-fileio.h: Ditto.
11407 * remote.h: Ditto.
11408 * remote-m32r-sdi.c: Ditto.
11409 * remote-mips.c: Ditto.
11410 * remote-sim.c: Ditto.
11411 * rs6000-aix-tdep.c: Ditto.
11412 * rs6000-nat.c: Ditto.
11413 * rs6000-tdep.c: Ditto.
11414
0d7a18f7
MS
114152011-01-10 Michael Snyder <msnyder@vmware.com>
11416
11417 * charset.c (validate): Internationalization.
11418 * coffread.c (read_one_sym): Ditto.
11419 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11420 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11421 * inflow.c (new_tty): Ditto.
11422 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11423 * m32c-tdep.c (m32c_return_value): Ditto.
11424 * mep-tdep.c (mep_store_return_value): Ditto.
11425 * score-tdep.c (score7_fetch_insn): Ditto.
11426 * ser-mingw.c (pipe_windows_open): Ditto.
11427 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11428 * spu-tdep.c (spu_register_type): Ditto.
11429 * tracepoint.c (trace_find_command): Ditto.
11430 * valarith.c (value_pos): Ditto.
11431
9a153e0b
JB
114322011-01-10 Joel Brobecker <brobecker@adacore.com>
11433
11434 * ada-valprint.c (printstr): Minor comment reformatting.
11435
35ecd2d6
MS
114362011-01-08 Michael Snyder <msnyder@vmware.com>
11437
11438 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11439 markup.
11440
1777feb0
MS
114412011-01-08 Michael Snyder <msnyder@vmware.com>
11442
11443 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11444 * hppa-hpux-tdep.c: Ditto.
11445 * hppa-linux-nat.c: Ditto.
11446 * hppa-linux-tdep.c: Ditto.
11447 * hppanbsd-tdep.c: Ditto.
11448 * hppa-tdep.c: Ditto.
11449 * hppa-tdep.h: Ditto.
11450 * hpux-thread.c: Ditto.
11451 * i386-cygwin-tdep.c: Ditto.
11452 * i386-darwin-nat.c: Ditto.
11453 * i386gnu-nat.c: Ditto.
11454 * i386-linux-nat.c: Ditto.
11455 * i386-linux-tdep.c: Ditto.
11456 * i386-nat.c: Ditto.
11457 * i386-nat.h: Ditto.
11458 * i386nbsd-tdep.c: Ditto.
11459 * i386-sol2-nat.c: Ditto.
11460 * i386-stub.c: Ditto.
11461 * i386-tdep.c: Ditto.
11462 * i386-tdep.h: Ditto.
11463 * i387-tdep.c: Ditto.
11464 * ia64-linux-nat.c: Ditto.
11465 * ia64-linux-tdep.c: Ditto.
11466 * ia64-tdep.c: Ditto.
11467 * infcall.c: Ditto.
11468 * infcall.h: Ditto.
11469 * infcmd.c: Ditto.
11470 * inferior.c: Ditto.
11471 * inferior.h: Ditto.
11472 * infloop.c: Ditto.
11473 * inflow.c: Ditto.
11474 * infrun.c: Ditto.
11475 * interps.c: Ditto.
11476 * interps.h: Ditto.
11477 * iq2000-tdep.c: Ditto.
11478 * irix5-nat.c: Ditto.
11479 * jit.c: Ditto.
11480 * jit.h: Ditto.
11481 * jv-exp.y: Ditto.
11482 * jv-lang.c: Ditto.
11483 * jv-lang.h: Ditto.
11484 * jv-typeprint.c: Ditto.
11485 * jv-valprint.c: Ditto.
11486 * language.c: Ditto.
11487 * language.h: Ditto.
11488 * linespec.c: Ditto.
11489 * linux-fork.c: Ditto.
11490 * linux-nat.c: Ditto.
11491 * linux-thread-db.c: Ditto.
11492 * lm32-tdep.c: Ditto.
11493
025bb325
MS
114942011-01-08 Michael Snyder <msnyder@vmware.com>
11495
11496 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11497 * m2-lang.c: Ditto.
11498 * m2-typeprint.c: Ditto.
11499 * m2-valprint.c: Ditto.
11500 * m32c-tdep.c: Ditto.
11501 * m32r-linux-nat.c: Ditto.
11502 * m32r-rom.c: Ditto.
11503 * m32r-tdep.c: Ditto.
11504 * m32r-tdep.h: Ditto.
11505 * m68hc11-tdep.c: Ditto.
11506 * m58klinux-nat.c: Ditto.
11507 * m68k-tdep.c: Ditto.
11508 * m88k-tdep.c: Ditto.
11509 * m88k-tdep.h: Ditto.
11510 * machoread.c: Ditto.
11511 * macrocmd.c: Ditto.
11512 * macroexp.c: Ditto.
11513 * macrotab.c: Ditto.
11514 * main.c: Ditto.
11515 * maint.c: Ditto.
11516 * mdebugread.c: Ditto.
11517 * mdebugread.h: Ditto.
11518 * memattr.c: Ditto.
11519 * memattr.h: Ditto.
11520 * memory-map.h: Ditto.
11521 * mep-tdep.c: Ditto.
11522 * microblaze-rom.c: Ditto.
11523 * microblaze-tdep.c: Ditto.
11524 * minsyms.c: Ditto.
11525 * mips-irix-tdep.c: Ditto.
11526 * mips-linux-nat.c: Ditto.
11527 * mips-linux-tdep.c: Ditto.
11528 * mips-linux-tdep.h: Ditto.
11529 * mipsnbsd-nat.c: Ditto.
11530 * mipsnbsd-tdep.c: Ditto.
11531 * mipsread.c: Ditto.
11532 * mips-tdep.c: Ditto.
11533 * mips-tdep.h: Ditto.
11534 * mn10300-linux-tdep.c: Ditto.
11535 * mn10300-tdep.c: Ditto.
11536 * mn10300-tdep.h: Ditto.
11537 * monitor.c: Ditto.
11538 * monitor.h: Ditto.
11539 * moxie-tdep.c: Ditto.
11540 * moxie-tdep.h: Ditto.
11541 * mt-tdep.c: Ditto.
11542
1642781b
MF
115432011-01-08 Mike Frysinger <vapier@gentoo.org>
11544
11545 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11546
394b0adb
JB
115472011-01-08 Robert Millan <rmh@gnu.org>
11548
11549 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11550
b670013c
MS
115512011-01-07 Michael Snyder <msnyder@vmware.com>
11552
11553 * charset.c (_initialize_charset): Fix typo in string.
11554
a743e542
MS
115552011-01-07 Michael Snyder <msnyder@vmware.com>
11556
11557 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11558 for i18n.
f2eb0bc8 11559 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11560 Split line so that operator goes to beginning of line.
11561 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11562 assignment out of if statement.
11563
0963b4bd
MS
115642011-01-07 Michael Snyder <msnyder@vmware.com>
11565
11566 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11567 * ada-lang.h: Ditto.
11568 * ada-tasks.c: Ditto.
11569 * ada-valprint.c: Ditto.
11570 * aix-threads.c: Ditto.
11571 * alpha-linux-nat.c: Ditto.
11572 * alpha-linux-tdep.c: Ditto.
11573 * alpha-mdebug-tdep.c: Ditto.
11574 * alpha-nat.c: Ditto.
11575 * alpha-osf1-tdep.c: Ditto.
11576 * alpha-tdep.c: Ditto.
11577 * alphabsd-nat.c: Ditto.
11578 * alphabsd-tdep.c: Ditto.
11579 * amd64-darwin-tdep.c: Ditto.
11580 * amd64-linux-nat.c: Ditto.
11581 * amd64-linux-tdep.c: Ditto.
11582 * amd64-sol2-tdep.c: Ditto.
11583 * amd64-tdep.c: Ditto.
11584 * amd64-fbsd-tdep.c: Ditto.
11585 * amd64-nbsd-tdep.c: Ditto.
11586 * amd64-obsd-tdep.c: Ditto.
11587 * amd64-linux-nat.c: Ditto.
11588 * amd64-linux-tdep.c: Ditto.
11589 * arm-tdep.c: Ditto.
11590 * arm-tdep.h: Ditto.
11591 * armnbsd-nat.c: Ditto.
11592 * avr-tdep.c: Ditto.
11593 * bfin-tdep.c: Ditto.
11594 * bsd-kvm.c: Ditto.
11595 * c-typeprintc: Ditto.
11596 * c-valprint.c: Ditto.
11597 * coff-pe-read.h: Ditto.
11598 * coffreead.c: Ditto.
11599 * cris-tdep.c: Ditto.
11600 * d-lang.c: Ditto.
11601 * darwin-nat-info.c: Ditto.
11602 * darwin-nat.c: Ditto.
11603 * dbug-rom.c: Ditto.
11604 * dbxread.c: Ditto.
11605 * dcache.c: Ditto.
11606 * dcache.h: Ditto.
11607 * dec-thread.c: Ditto.
11608 * defs.h: Ditto.
11609 * demangle.c: Ditto.
11610 * dicos-tdep.c: Ditto.
11611 * dictionary.c: Ditto.
11612 * dictionary.h: Ditto.
11613 * dink32-rom.c: Ditto.
11614 * disasm.c: Ditto.
11615 * doublest.c: Ditto.
11616 * dsrec.c: Ditto.
11617 * dummy-frame.c: Ditto.
11618 * dwarf2-frame.c: Ditto.
11619 * dwarf2expr.c: Ditto.
11620 * dwarf2loc.c: Ditto.
11621 * dwarf2read.c: Ditto.
11622 * elfread.c: Ditto.
11623 * environ.c: Ditto.
11624 * eval.c: Ditto.
11625 * event-top.h: Ditto.
11626 * exceptions.c: Ditto.
11627 * exceptions.h: Ditto.
11628 * exec.c: Ditto.
11629 * expprint.c: Ditto.
11630 * expression.h: Ditto.
11631 * f-exp.y: Ditto.
11632 * f-lang.c: Ditto.
11633 * f-lang.h: Ditto.
11634 * f-typeprint.c: Ditto.
11635 * f-valprint.c: Ditto.
11636 * fbsd-nat.c: Ditto.
11637 * findvar.c: Ditto.
11638 * fork-child.c: Ditto.
11639 * frame.c: Ditto.
11640 * frame.h: Ditto.
11641 * frv-linux-tdep.c: Ditto.
11642 * frv-tdep.c: Ditto.
11643 * gcore.c: Ditto.
11644 * gdb-stabs.h: Ditto.
11645 * gdb_assert.h: Ditto.
11646 * gdb_string.h: Ditto.
11647 * gdb_thread_db.h: Ditto.
11648 * gdb_wait.h: Ditto.
11649 * gdbarch.sh: Ditto.
11650 * gdbcore.h: Ditto.
11651 * gdbthread.h: Ditto.
11652 * gdbtypes.c: Ditto.
11653 * gdbtypes.h: Ditto.
11654 * gnu-nat.c: Ditto.
11655 * gnu-nat.h: Ditto.
11656 * gnu-v2-abi.c: Ditto.
11657 * gnu-v3-abi.c: Ditto.
11658 * go32-nat.c: Ditto.
11659 * gdbarch.c: Regenerate.
11660 * gdbarch.h: Regenerate.
11661
ac74f770
MS
116622011-01-07 Michael Snyder <msnyder@vmware.com>
11663
11664 * ax-gdb.c: Adjust some long output strings.
11665 * breakpoint.c: Ditto.
11666 * charset.c: Ditto.
11667 * cp-abi.c: Ditto.
11668 * infcall.c: Ditto.
11669 * infrun.c: Ditto.
11670 * linux-nat.c: Ditto.
11671 * solib-pa64.c: Ditto.
11672 * solib-som.c: Ditto.
11673
d8e22779
TT
116742011-01-06 Tom Tromey <tromey@redhat.com>
11675
11676 PR python/12367:
11677 * NEWS: Add item.
11678 * python/python.c (GdbMethods): Add "newest_frame" method.
11679 * python/python-internal.h (gdbpy_newest_frame): Declare.
11680 * python/py-frame.c (gdbpy_newest_frame): New function.
11681
a255712f
PP
116822010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11683
11684 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11685 * jit.c (jit_debug): New variable.
11686 (show_jit_debug): New function.
11687 (struct target_buffer): Use ULONGEST.
11688 (bfd_open_from_target_memory): Likewise.
11689 (jit_register_code, jit_inferior_init): Add debug output.
11690 (_initialize_jit): Register "debug jit" command.
11691
ccfc3d6e
TT
116922011-01-06 Tom Tromey <tromey@redhat.com>
11693
11694 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11695 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11696 and ARCH_FRAME.
11697
57126e4a
TT
116982011-01-06 Tom Tromey <tromey@redhat.com>
11699
11700 * python/py-frame.c (frapy_block): Use get_frame_block.
11701
16dfc9ce
JB
117022011-01-06 Joel Brobecker <brobecker@adacore.com>
11703
11704 Do not stop on SIGPRIO signals by default
11705 * infrun.c (_initialize_infrun): Unset signal_stop and
11706 signal_print for TARGET_SIGNAL_PRIO.
11707
b1ce2347
JB
117082011-01-06 Joel Brobecker <brobecker@adacore.com>
11709
11710 * ada-tasks.c: Fix style violation in comment.
11711
8f7e195f
JB
117122011-01-06 Joel Brobecker <brobecker@adacore.com>
11713
11714 * linespec.c (decode_compound, find_method): Remove trailing \n
11715 at end of error string.
11716 * solib-irix.c (irix_current_sos): Likewise.
11717 * varobj.c (uninstall_variable): Likewise.
11718
e9bdf92c
JB
117192011-01-06 Joel Brobecker <brobecker@adacore.com>
11720
11721 * copyright.py: New script.
11722 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11723 Launch emacs without exec'ing. Call copyright.py afterwards.
11724
3e43a32a
MS
117252011-01-05 Michael Snyder <msnyder@vmware.com>
11726
11727 * addrmap.c: Shorten lines of >= 80 columns.
11728 * arch-utils.c: Ditto.
11729 * arch-utils.h: Ditto.
11730 * ax-gdb.c: Ditto.
11731 * ax-general.c: Ditto.
11732 * bcache.c: Ditto.
11733 * blockframe.c: Ditto.
11734 * breakpoint.c: Ditto.
11735 * buildsym.c: Ditto.
11736 * c-lang.c: Ditto.
11737 * c-typeprint.c: Ditto.
11738 * charset.c: Ditto.
11739 * coffread.c: Ditto.
11740 * command.h: Ditto.
11741 * corelow.c: Ditto.
11742 * cp-abi.c: Ditto.
11743 * cp-namespace.c: Ditto.
11744 * cp-support.c: Ditto.
11745 * dbug-rom.c: Ditto.
11746 * dbxread.c: Ditto.
11747 * defs.h: Ditto.
11748 * dfp.c: Ditto.
11749 * dfp.h: Ditto.
11750 * dictionary.c: Ditto.
11751 * disasm.c: Ditto.
11752 * doublest.c: Ditto.
11753 * dwarf2-frame.c: Ditto.
11754 * dwarf2expr.c: Ditto.
11755 * dwarf2loc.c: Ditto.
11756 * dwarf2read.c: Ditto.
11757 * elfread.c: Ditto.
11758 * eval.c: Ditto.
11759 * event-loop.c: Ditto.
11760 * event-loop.h: Ditto.
11761 * exceptions.h: Ditto.
11762 * exec.c: Ditto.
11763 * expprint.c: Ditto.
11764 * expression.h: Ditto.
11765 * f-lang.c: Ditto.
11766 * f-valprint.c: Ditto.
11767 * findcmd.c: Ditto.
11768 * frame-base.c: Ditto.
11769 * frame-unwind.c: Ditto.
11770 * frame-unwind.h: Ditto.
11771 * frame.c: Ditto.
11772 * frame.h: Ditto.
11773 * gcore.c: Ditto.
11774 * gdb-stabs.h: Ditto.
11775 * gdb_assert.h: Ditto.
11776 * gdb_dirent.h: Ditto.
11777 * gdb_obstack.h: Ditto.
11778 * gdbcore.h: Ditto.
11779 * gdbtypes.c: Ditto.
11780 * gdbtypes.h: Ditto.
11781 * inf-ttrace.c: Ditto.
11782 * infcall.c: Ditto.
11783 * infcmd.c: Ditto.
11784 * inflow.c: Ditto.
11785 * infrun.c: Ditto.
11786 * inline-frame.h: Ditto.
11787 * language.c: Ditto.
11788 * language.h: Ditto.
11789 * libunwind-frame.c: Ditto.
11790 * libunwind-frame.h: Ditto.
11791 * linespec.c: Ditto.
11792 * linux-nat.c: Ditto.
11793 * linux-nat.h: Ditto.
11794 * linux-thread-db.c: Ditto.
11795 * machoread.c: Ditto.
11796 * macroexp.c: Ditto.
11797 * macrotab.c: Ditto.
11798 * main.c: Ditto.
11799 * maint.c: Ditto.
11800 * mdebugread.c: Ditto.
11801 * memattr.c: Ditto.
11802 * minsyms.c: Ditto.
11803 * monitor.c: Ditto.
11804 * monitor.h: Ditto.
11805 * objfiles.c: Ditto.
11806 * objfiles.h: Ditto.
11807 * osabi.c: Ditto.
11808 * p-typeprint.c: Ditto.
11809 * p-valprint.c: Ditto.
11810 * parse.c: Ditto.
11811 * printcmd.c: Ditto.
11812 * proc-events.c: Ditto.
11813 * procfs.c: Ditto.
11814 * progspace.c: Ditto.
11815 * progspace.h: Ditto.
11816 * psympriv.h: Ditto.
11817 * psymtab.c: Ditto.
11818 * record.c: Ditto.
11819 * regcache.c: Ditto.
11820 * regcache.h: Ditto.
11821 * remote-fileio.c: Ditto.
11822 * remote.c: Ditto.
11823 * ser-mingw.c: Ditto.
11824 * ser-tcp.c: Ditto.
11825 * ser-unix.c: Ditto.
11826 * serial.c: Ditto.
11827 * serial.h: Ditto.
11828 * solib-frv.c: Ditto.
11829 * solib-irix.c: Ditto.
11830 * solib-osf.c: Ditto.
11831 * solib-pa64.c: Ditto.
11832 * solib-som.c: Ditto.
11833 * solib-sunos.c: Ditto.
11834 * solib-svr4.c: Ditto.
11835 * solib-target.c: Ditto.
11836 * solib.c: Ditto.
11837 * somread.c: Ditto.
11838 * source.c: Ditto.
11839 * stabsread.c: Ditto.
11840 * stabsread.c: Ditto.
11841 * stack.c: Ditto.
11842 * stack.h: Ditto.
11843 * symfile-mem.c: Ditto.
11844 * symfile.c: Ditto.
11845 * symfile.h: Ditto.
11846 * symmisc.c: Ditto.
11847 * symtab.c: Ditto.
11848 * symtab.h: Ditto.
11849 * target-descriptions.c: Ditto.
11850 * target-memory.c: Ditto.
11851 * target.c: Ditto.
11852 * target.h: Ditto.
11853 * terminal.h: Ditto.
11854 * thread.c: Ditto.
11855 * top.c: Ditto.
11856 * tracepoint.c: Ditto.
11857 * tracepoint.h: Ditto.
11858 * ui-file.c: Ditto.
11859 * ui-file.h: Ditto.
11860 * ui-out.h: Ditto.
11861 * user-regs.c: Ditto.
11862 * user-regs.h: Ditto.
11863 * utils.c: Ditto.
11864 * valarith.c: Ditto.
11865 * valops.c: Ditto.
11866 * valprint.c: Ditto.
11867 * valprint.h: Ditto.
11868 * value.c: Ditto.
11869 * varobj.c: Ditto.
11870 * varobj.h: Ditto.
11871 * vec.h: Ditto.
11872 * xcoffread.c: Ditto.
11873 * xcoffsolib.c: Ditto.
11874 * xcoffsolib.h: Ditto.
11875 * xml-syscall.c: Ditto.
11876 * xml-tdesc.c: Ditto.
11877
9a2b4c1b
MS
118782011-01-05 Michael Snyder <msnyder@vmware.com>
11879
11880 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11881 * cli/cli-decode.c: Ditto.
11882 * cli/cli-dump.c: Ditto.
11883 * cli/cli-logging.c: Ditto.
11884 * cli/cli-script.c: Ditto.
11885 * cli/cli-setshow.c: Ditto.
11886 * common/signals.c: Ditto.
11887 * mi/mi-cmd-break.c: Ditto.
11888 * mi/mi-cmd-disas.c: Ditto.
11889 * mi/mi-cmd-stack.c: Ditto.
11890 * mi/mi-cmd-var.c: Ditto.
11891 * mi/mi-cmds.c: Ditto.
11892 * mi/mi-common.h: Ditto.
11893 * mi/mi-console.c: Ditto.
11894 * mi/mi-interp.c: Ditto.
11895 * mi/mi-main.c: Ditto.
11896 * osf-share/cma_attr.c: Ditto.
11897 * osf-share/cma_deb_core.h: Ditto.
11898 * osf-share/cma_debug_client.h: Ditto.
11899 * osf-share/cma_handle.h: Ditto.
11900 * osf-share/cma_mutex.h: Ditto.
11901 * osf-share/cma_stack_int.h: Ditto.
11902 * osf-share/cma_tcb_defs.h: Ditto.
11903 * python/py-auto-load.c: Ditto.
11904 * python/py-breakpoint.c: Ditto.
11905 * python/py-cmd.c: Ditto.
11906 * python/py-frame.c: Ditto.
11907 * python/py-objfile.c: Ditto.
11908 * python/py-param.c: Ditto.
11909 * python/py-progspace.c: Ditto.
11910 * python/py-symbol.c: Ditto.
11911 * python/py-value.c: Ditto.
11912 * python/python-internal.h: Ditto.
11913 * python/python.c: Ditto.
11914 * tui/tui-data.c: Ditto.
11915 * tui/tui-disasm.c: Ditto.
11916 * tui/tui-hooks.c: Ditto.
11917 * tui/tui-io.c: Ditto.
11918 * tui/tui-layout.c: Ditto.
11919 * tui/tui-regs.c: Ditto.
11920 * tui/tui-source.c: Ditto.
11921 * tui/tui-stack.c: Ditto.
11922 * tui/tui-win.c: Ditto.
11923 * tui/tui-windata.c: Ditto.
11924 * tui/tui-winsource.c: Ditto.
11925
44944448
JB
119262011-01-05 Joel Brobecker <brobecker@adacore.com>
11927
11928 * configure.ac, gdb.1: Copyright year update.
11929
ebedcab5
JK
119302011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11931
11932 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11933 this_pc_in_block, morestack_msym and morestack_name. Check for
11934 "__morestack" minimal symbol there.
11935
e5cc9f32
JB
119362011-01-03 Joel Brobecker <brobecker@adacore.com>
11937
11938 * symfile.c (find_sym_fns): Add call to dont_repeat.
11939
7b6bb8da
JB
119402011-01-01 Joel Brobecker <brobecker@adacore.com>
11941
11942 Copyright year update in most files (performed by copyright.sh).
11943
71ce852c
JB
119442011-01-01 Joel Brobecker <brobecker@adacore.com>
11945
11946 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11947
c3c1ebe8 11948For older changes see ChangeLog-2010.
c906108c
SS
11949\f
11950Local Variables:
11951mode: change-log
11952left-margin: 8
11953fill-column: 74
11954version-control: never
57da7796 11955coding: utf-8
c906108c 11956End:
This page took 1.813052 seconds and 4 git commands to generate.