*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35f73cfc
UW
12011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2
3 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
4 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
5 (arm_deal_with_atomic_sequence_raw): Likewise.
6 (arm_deal_with_atomic_sequence): Likewise.
7 (arm_software_single_step): Call it.
8 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
9
94eae614
UW
102011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
11
12 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
13 where appropriate.
14 * s390-tdep.h: Likewise.
15
13b8d0c6
TG
162011-12-07 Tristan Gingold <gingold@adacore.com>
17
18 * machoread.c (macho_symtab_read): Do not consider N_OPT as
19 a debugging stab. Improve complaint message.
20
5436df95
MR
212011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
22
23 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
24 load adjustment if still within the prologue.
25
040dff2a
MR
262011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
27
28 * mips-tdep.c (mips32_next_pc): Fix floating point condition
29 code mask.
30
754d7c78
MR
312011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
32
33 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
34 of BLTZ* and BGEZ* instructions.
35
91912e4d
MR
362011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
37
38 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
39 performed to determine whether an address refers to standard
40 MIPS or MIPS16 code.
41 (mips16_next_pc): Use mips_pc_is_mips16 instead of
42 is_mips16_addr.
43
f0ba3972
PA
442011-12-06 Pedro Alves <pedro@codesourcery.com>
45
46 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
47 (breakpoint_xfer_memory): ... this. Change prototype. Handle
48 memory writes too.
49 * breakpoint.h (breakpoint_restore_shadows): Delete.
50 (breakpoint_xfer_memory): Declare.
51 * mem-break.c (default_memory_insert_breakpoint)
52 (default_memory_remove_breakpoint): Use target_write_raw_memory.
53 (memory_xfer_partial): Rename to ...
54 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
55 here.
56 (memory_xfer_partial): New.
57 (target_write_raw_memory): New.
58 * target.h (target_write_raw_memory): New.
59
31aba06f
DE
602011-12-06 Doug Evans <dje@google.com>
61
62 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
63
f8eba3c6
TT
642011-12-06 Joel Brobecker <brobecker@acacore.com>
65
66 * language.h (struct language_defn): Add new component
67 la_symbol_name_compare.
68 * symfile.h (struct quick_symbol_functions): Update the profile
69 of parameter "name_matcher" for the expand_symtabs_matching
70 method. Update the documentation accordingly.
71 * ada-lang.h (ada_name_for_lookup): Add declaration.
72 * ada-lang.c (ada_name_for_lookup): New function, extracted out
73 from ada_iterate_over_symbols.
74 (ada_iterate_over_symbols): Do not encode symbol name anymore.
75 (ada_expand_partial_symbol_name): Adjust profile.
76 (ada_language_defn): Add value for la_symbol_name_compare field.
77 * linespec.c: #include "ada-lang.h".
78 (iterate_name_matcher): Add language parameter. Replace call
79 to strcmp_iw by call to language->la_symbol_name_compare.
80 (decode_variable): Encode COPY if current language is Ada.
81 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
82 of name_matcher parameter. Adjust call to name_matcher.
83 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
84 (expand_partial_symbol_names): Update profile of parameter "fun".
85 * psymtab.h (expand_partial_symbol_names): Update profile of
86 parameter "fun".
87 * symtab.c (demangle_for_lookup): Update function documentation.
88 (search_symbols_name_matches): Add language parameter.
89 (expand_partial_symbol_name): Likewise.
90 * c-lang.c (c_language_defn, cplus_language_defn)
91 (asm_language_defn, minimal_language_defn): Add value for
92 la_symbol_name_compare field.
93 * d-lang.c (d_language_defn): Likewise.
94 * f-lang.c (f_language_defn): Ditto.
95 * jv-lang.c (java_language_defn): Ditto.
96 * m2-lang.c (m2_language_defn): Ditto.
97 * objc-lang.c (objc_language_defn): Ditto.
98 * opencl-lang.c (opencl_language_defn): Ditto.
99 * p-lang.c (pascal_language_defn): Ditto.
100 * language.c (unknown_language_defn, auto_language_defn)
101 (local_language_defn): Ditto.
102
1032011-12-06 Tom Tromey <tromey@redhat.com>
104
105 * linespec.c (iterate_over_all_matching_symtabs): Use
106 LA_ITERATE_OVER_SYMBOLS.
107 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
108 (find_function_symbols, decode_variable): Remove Ada special
109 case.
110 * language.h (struct language_defn) <la_iterate_over_symbols>: New
111 field.
112 (LA_ITERATE_OVER_SYMBOLS): New macro.
113 * language.c (unknown_language_defn, auto_language_defn)
114 (local_language_defn): Update.
115 * c-lang.c (c_language_defn, cplus_language_defn)
116 (asm_language_defn, minimal_language_defn): Update.
117 * d-lang.c (d_language_defn): Update.
118 * f-lang.c (f_language_defn): Update.
119 * jv-lang.c (java_language_defn): Update.
120 * m2-lang.c (m2_language_defn): Update.
121 * objc-lang.c (objc_language_defn): Update.
122 * opencl-lang.c (opencl_language_defn): Update.
123 * p-lang.c (pascal_language_defn): Update.
124 * ada-lang.c (ada_iterate_over_symbols): New function.
125 (ada_language_defn): Update.
126
1272011-12-06 Tom Tromey <tromey@redhat.com>
128 Joel Brobecker <brobecker@acacore.com>
129
130 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
131 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
132 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
133 PR shlibs/8929, PR shlibs/7393:
134 * python/py-type.c (compare_maybe_null_strings): Rename from
135 compare_strings.
136 (check_types_equal): Update.
137 * utils.c (compare_strings): New function.
138 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
139 location changes.
140 * tracepoint.c (scope_info): Update.
141 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
142 * symtab.h (iterate_over_minimal_symbols)
143 (iterate_over_some_symtabs, iterate_over_symtabs)
144 (find_pcs_for_symtab_line, iterate_over_symbols)
145 (demangle_for_lookup): Declare.
146 (expand_line_sal): Remove.
147 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
148 (lookup_symtab_callback): New functions.
149 (lookup_symtab): Rewrite.
150 (demangle_for_lookup): New function, extract from
151 lookup_symbol_in_language.
152 (lookup_symbol_in_language): Use it.
153 (iterate_over_symbols): New function.
154 (find_line_symtab): Update.
155 (find_pcs_for_symtab_line): New functions.
156 (find_line_common): Add 'start' argument.
157 (decode_line_spec): Update. Change argument to 'flags', change
158 interpretation.
159 (append_expanded_sal): Remove.
160 (append_exact_match_to_sals): Remove.
161 (expand_line_sal): Remove.
162 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
163 Remove.
164 <map_symtabs_matching_filename>: New field.
165 * stack.c (func_command): Only look in the current program space.
166 Use DECODE_LINE_FUNFIRSTLINE.
167 * source.c (line_info): Set pspace on sal. Check program space in
168 the loop. Use DECODE_LINE_LIST_MODE.
169 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
170 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
171 * python/python.c (gdbpy_decode_line): Update.
172 * psymtab.c (partial_map_expand_apply): New function.
173 (partial_map_symtabs_matching_filename): Rename from
174 lookup_partial_symbol. Update arguments.
175 (lookup_symtab_via_partial_symtab): Remove.
176 (psym_functions): Update.
177 * objc-lang.h (parse_selector, parse_method): Don't declare.
178 (find_imps): Update.
179 * objc-lang.c (parse_selector, parse_method): Now static.
180 (find_methods): Change arguments. Fill in a vector of symbol
181 names.
182 (uniquify_strings): New function.
183 (find_imps): Change arguments.
184 * minsyms.c (iterate_over_minimal_symbols): New function.
185 * linespec.h (enum decode_line_flags): New.
186 (struct linespec_sals): New.
187 (struct linespec_result) <canonical>: Remove.
188 <pre_expanded, addr_string, sals>: New fields.
189 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
190 (decode_line_full): Declare.
191 (decode_line_1): Update.
192 * linespec.c (struct address_entry, struct linespec_state, struct
193 collect_info): New types.
194 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
195 (eq_address_entry, maybe_add_address): New functions.
196 (total_number_of_methods): Remove.
197 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
198 functions.
199 (find_methods): Change arguments. Don't canonicalize input.
200 Simplify logic.
201 (add_matching_methods, add_constructors)
202 (build_canonical_line_spec): Remove.
203 (filter_results, convert_results_to_lsals): New functions.
204 (decode_line_2): Change arguments. Rewrite for new data
205 structures.
206 (decode_line_internal): Rename from decode_line_1. Change
207 arguments. Add cleanups. Update for new data structures.
208 (linespec_state_constructor, linespec_state_destructor)
209 (decode_line_full, decode_line_1): New functions.
210 (decode_indirect): Change arguments. Update.
211 (locate_first_half): Use skip_spaces.
212 (decode_objc): Change arguments. Update for new data structures.
213 Simplify logic.
214 (decode_compound): Change arguments. Add cleanups. Remove
215 fallback code, replace with error.
216 (struct decode_compound_collector): New type.
217 (collect_one_symbol): New function.
218 (lookup_prefix_sym): Change arguments. Update.
219 (compare_symbol_name, add_all_symbol_names_from_pspace)
220 (find_superclass_methods ): New functions.
221 (find_method): Rewrite.
222 (struct symtab_collector): New type.
223 (add_symtabs_to_list, collect_symtabs_from_filename): New
224 functions.
225 (symtabs_from_filename): Change API. Rename from
226 symtab_from_filename.
227 (collect_function_symbols): New function.
228 (find_function_symbols): Change API. Rename from
229 find_function_symbol. Rewrite.
230 (decode_all_digits): Change arguments. Rewrite.
231 (decode_dollar): Change arguments. Use decode_variable.
232 (decode_label): Change arguments. Rewrite.
233 (collect_symbols): New function.
234 (minsym_found): Change arguments. Rewrite.
235 (check_minsym, search_minsyms_for_name)
236 (add_matching_symbols_to_info): New function.
237 (decode_variable): Change arguments. Iterate over all symbols.
238 (symbol_found): Remove.
239 (symbol_to_sal): New function.
240 (init_linespec_result, destroy_linespec_result)
241 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
242 New functions.
243 (decode_digits_list_mode, decode_digits_ordinary): New functions.
244 * dwarf2read.c (dw2_map_expand_apply): New function.
245 (dw2_map_symtabs_matching_filename): Rename from
246 dw2_lookup_symtab. Change arguments.
247 (dwarf2_gdb_index_functions): Update.
248 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
249 * defs.h (compare_strings): Declare.
250 * cli/cli-cmds.c (compare_strings): Move to utils.c.
251 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
252 filter_sals.
253 (compare_symtabs, filter_sals): New functions.
254 * breakpoint.h (struct bp_location) <line_number, source_file>:
255 New fields.
256 (struct breakpoint) <line_number, source_file>: Remove.
257 <filter>: New field.
258 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
259 (momentary_breakpoint_from_master, add_location_to_breakpoint):
260 Update for changes to locations.
261 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
262 breakpoint.
263 (create_breakpoint_sal): Add 'filter' argument.
264 (remove_sal, expand_line_sal_maybe): Remove.
265 (create_breakpoints_sal): Remove 'sals' argument. Handle
266 pre-expanded sals and the filter.
267 (parse_breakpoint_sals): Use decode_line_full.
268 (check_fast_tracepoint_sals): Use get_sal_arch.
269 (create_breakpoint): Create a linespec_sals. Update.
270 (break_range_command): Use decode_line_full. Update.
271 (until_break_command): Update.
272 (clear_command): Update match conditions for linespec.c changes.
273 Use DECODE_LINE_LIST_MODE.
274 (say_where): Update for changes to locations.
275 (bp_location_dtor): Free 'source_file'.
276 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
277 (update_static_tracepoint): Update for changes to locations.
278 (update_breakpoint_locations): Disable ranged breakpoint if too
279 many locations match. Update.
280 (addr_string_to_sals): Use decode_line_full. Resolve all sal
281 PCs.
282 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
283 (decode_line_spec_1): Update. Change argument name to 'flags',
284 change interpretation.
285 * block.h (block_containing_function): Declare.
286 * block.c (block_containing_function): New function.
287 * skip.c (skip_function_command): Update.
288 (skip_re_set): Update.
289 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
290 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
291 * NEWS: Add entry.
292
2932011-12-06 Tom Tromey <tromey@redhat.com>
294
295 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
296 breakpoint's pspace to be NULL.
297 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
298 * breakpoint.c (init_raw_breakpoint): Conditionally set
299 breakpoint's pspace.
300 (init_breakpoint_sal): Don't set breakpoint's pspace.
301 (prepare_re_set_context): Conditionally switch program space.
302 (addr_string_to_sals): Check executing_startup on location's
303 program space.
304
3052011-12-06 Tom Tromey <tromey@redhat.com>
306
307 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
308 * breakpoint.c (should_be_inserted): Explicitly check if program
309 space is executing startup.
310 (describe_other_breakpoints): Update.
311 (disable_breakpoints_before_startup): Change executing_startup
312 earlier. Remove loop.
313 (enable_breakpoints_after_startup): Likewise.
314 (init_breakpoint_sal): Don't use bp_startup_disabled.
315 (create_breakpoint): Don't use bp_startup_disabled.
316 (update_global_location_list): Use should_be_inserted.
317 (bkpt_re_set): Update.
318
75c8c9d7
TT
3192011-12-06 Tom Tromey <tromey@redhat.com>
320
321 * python/lib/gdb/command/pretty_printers.py
322 (InfoPrettyPrinter.invoke1): Remove extra double quote.
323
7376e450
TT
3242011-12-06 Tom Tromey <tromey@redhat.com>
325
326 * NEWS: Add MI news.
327
c642a434
UW
3282011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
329
330 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
331 (S390_LAST_BREAK_REGNUM): Likewise.
332 (S390_SYSTEM_CALL_REGNUM): Likewise.
333 (S390_NUM_REGS): Update.
334
335 (s390_regmap_last_break): Add declaration.
336 (s390x_regmap_last_break): Likewise.
337 (s390_regmap_system_call): Likewise.
338
339 (tdesc_s390_linux32v1): Add declaration.
340 (tdesc_s390_linux32v2): Likewise.
341 (tdesc_s390_linux64v1): Likewise.
342 (tdesc_s390_linux64v2): Likewise.
343 (tdesc_s390x_linux64v1): Likewise.
344 (tdesc_s390x_linux64v2): Likewise.
345
346 * s390-tdep.c: Include new target description files
347 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
348 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
349 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
350 (s390_cannot_store_register): New function.
351 (s390_write_pc): Likewise.
352 (s390_dwarf_regmap): Add fields for new registers.
353 (s390_regmap_gregset): Likewise.
354 (s390x_regmap_gregset): Likewise.
355 (s390_regmap_fpregset): Likewise.
356 (s390_regmap_upper): Likewise.
357 (s390_regmap_last_break): New variable.
358 (s390x_regmap_last_break): Likewise.
359 (s390_regmap_system_call): Likewise.
360 (s390_last_break_regset): Likewise.
361 (s390x_last_break_regset): Likewise.
362 (s390_system_call_regset): Likewise.
363 (s390_upper_regset_sections): Rename to ...
364 (s390_linux64_regset_sections): ... this.
365 (s390_linux32_regset_sections): New variable.
366 (s390x_linux64_regset_sections): Likewise.
367 (s390_linux32v1_regset_sections): Likewise.
368 (s390_linux32v2_regset_sections): Likewise.
369 (s390_linux64v1_regset_sections): Likewise.
370 (s390_linux64v2_regset_sections): Likewise.
371 (s390x_linux64v1_regset_sections): Likewise.
372 (s390x_linux64v2_regset_sections): Likewise.
373 (s390_regset_from_core_section): Handle .reg-s390-last-break and
374 .reg-s390-system-call core file sections.
375 (s390_core_read_description): Check for presence of
376 .reg-s390-last-break and .reg-s390-system-call core file
377 sections and return appropriate target description.
378 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
379 "last_break" and "system_call" in target description. Install
380 appropriate gdbarch_core_regset_sections array.
381 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
382 (_initialize_s390_tdep): Initialize additional target descriptions.
383
384 * s390-nat.c: Include "elf/common.h".
385 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
386 (have_regset_last_break): New static variable.
387 (have_regset_system_call): Likewise.
388 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
389 (s390_native_collect): Likewise.
390 (fetch_regset, store_regset, check_regset): New functions.
391 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
392 and S390_SYSTEM_CALL_REGNUM.
393 (s390_linux_store_inferior_registers): Likewise.
394 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
395 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
396
397 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
398 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
399 (s390-linux32v1-expedite): Define.
400 (s390-linux32v2-expedite): Likewise.
401 (s390-linux64v1-expedite): Likewise.
402 (s390-linux64v2-expedite): Likewise.
403 (s390x-linux64v1-expedite): Likewise.
404 (s390x-linux64v2-expedite): Likewise.
405
406 * features/s390-linux32.xml: Add orig_r2 register.
407 * features/s390-linux64.xml: Likewise.
408 * features/s390x-linux64.xml: Likewise.
409 * features/s390-linux32v1.xml: New file.
410 * features/s390-linux32v2.xml: Likewise.
411 * features/s390-linux64v1.xml: Likewise.
412 * features/s390-linux64v2.xml: Likewise.
413 * features/s390x-linux64v1.xml: Likewise.
414 * features/s390x-linux64v2.xml: Likewise.
415
416 * features/s390-linux32.c: Regenerate.
417 * features/s390-linux64.c: Likewise.
418 * features/s390x-linux64.c: Likewise.
419 * features/s390-linux32v1.c: New generated file.
420 * features/s390-linux32v2.c: Likewise.
421 * features/s390-linux64v1.c: Likewise.
422 * features/s390-linux64v2.c: Likewise.
423 * features/s390x-linux64v1.c: Likewise.
424 * features/s390x-linux64v2.c: Likewise.
425
426 * regformats/s390-linux32.dat: Regenerate.
427 * regformats/s390-linux64.dat: Regenerate.
428 * regformats/s390x-linux64.dat: Regenerate.
429 * regformats/s390-linux32v1.dat: New generated file.
430 * regformats/s390-linux32v2.dat: Likewise.
431 * regformats/s390-linux64v1.dat: Likewise.
432 * regformats/s390-linux64v2.dat: Likewise.
433 * regformats/s390x-linux64v1.dat: Likewise.
434 * regformats/s390x-linux64v2.dat: Likewise.
435
336060f3
PA
4362011-12-05 Pedro Alves <pedro@codesourcery.com>
437
438 * linux-nat.c (resume_stopped_resumed_lwps): Call
439 registers_changed.
440
049e32d3
PA
4412011-12-05 Pedro Alves <pedro@codesourcery.com>
442
443 * breakpoint.c: Include record.h.
444 (breakpoints_always_inserted_mode): Return false when the record
445 target is in use.
446
5c03c7f9 4472011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
448
449 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
450 Reinstate perror_with_name call on ptrace error. Remove #if 0.
451 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
452 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
453
fbbd034e
AS
4542011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
455
456 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
457 `i'(-Wshadow).
458
a5ff8356 4592011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
460
461 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
462
4632011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
464
a5ff8356
AS
465 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
466 of `tdep'(-Wshadow).
467
93f2a35e
JK
4682011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 Fix compilation --without-expat.
471 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
472 from ...
473 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
474
2268b414
JK
4752011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
476 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
479 * features/library-list-svr4.dtd: New file.
480 * remote.c (PACKET_qXfer_libraries_svr4): New.
481 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
482 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
483 * solib-svr4.c (struct svr4_library_list): New.
484 [HAVE_LIBEXPAT]: Include xml-support.h.
485 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
486 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
487 [HAVE_LIBEXPAT] (svr4_library_list_children)
488 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
489 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
490 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
491 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
492 (svr4_read_so_list): Extend the corruption message by addresses.
493 (svr4_current_sos): New variable library_list, call
494 svr4_current_sos_via_xfer_libraries.
495 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
496
585861ea
JK
4972011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
498
499 PR threads/13448
500 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
501 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
502
9750bca9
JK
5032011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
504
505 PR breakpoints/13346
506 * dwarf2read.c (process_psymtab_comp_unit): Set
507 PSYMTABS_ADDRMAP_SUPPORTED.
508 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
509 validity. New field psymtabs_addrmap_supported.
510 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
511 psymtabs_addrmap_supported.
512 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
513 !PSYMTABS_ADDRMAP_SUPPORTED.
514 (dump_psymtab, maintenance_info_psymtabs): Print also
515 psymtabs_addrmap_supported.
516
f28c316a
DE
5172011-12-01 Doug Evans <dje@google.com>
518
519 * python/py-type.c (type_object_methods): Fix "array" doc string.
520
fc0ae648
AB
5212011-12-01 Andrew Burgess <aburgess@broadcom.com>
522
523 * source.c (print_source_lines_base): Fix missing braces on else
524 clause leading to additional output.
525
d6db1fab
UW
5262011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
527
528 * s390-nat.c (SUBOFF): Remove.
529 (s390_native_supply, s390_native_collect): New functions.
530 (supply_gregset, supply_fpregset): Use s390_native_supply.
531 (fill_gregset, fill_fpregset): Use s390_native_collect.
532
533 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
534 (s390_unwind_pseudo_register): New function.
535 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
536 registers instead of PC and CC.
537 (s390_backchain_frame_unwind_cache): Likewise.
538 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
539 full GPR pseudos.
540 (s390_trad_frame_prev_register): New function.
541 (s390_frame_prev_register): Use it.
542 (s390_sigtramp_frame_prev_register): Likewise.
543 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
544 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
545 special callback to unwind any pseudo.
546
547 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
548 * features/s390-core64.xml: Likewise.
549 * features/s390x-core64.xml: Likewise.
550 * features/s390-linux32.c: Regenerate.
551 * features/s390-linux64.c: Likewise.
552 * features/s390x-linux64.c: Likewise.
553
1dd635ac
UW
5542011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
555
556 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
557
0161e4b9
UW
5582011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
559
560 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
561 instruction. Add more diagnostic output.
562
0c36327f
AS
5632011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
564
565 * MAINTAINERS (Write After Approval): Add myself to the list.
566
b4264740
SD
5672011-11-29 Sanjoy Das <sdas@igalia.com>
568
569 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
570 (jit_bfd_try_read_symtab): Fix comments.
571
87326c78
DD
5722011-11-28 DJ Delorie <dj@redhat.com>
573
574 * NEWS: Mention RL78 simulator.
575
1e3a8f45
JB
5762011-11-28 Joel Brobecker <brobecker@adacore.com>
577
578 * symfile.h (struct quick_symbol_functions): Fix the documentation
579 of field map_matching_symbols, as symbols are sorted using
580 strcmp_iw_ordered, not strcmp_iw.
581
265e52c3
JB
5822011-11-28 Paul Hilfinger <hilfinger@adacore.com>
583
584 * symfile.h (struct quick_symbol_functions): Update the
585 documentation for field map_matching_symbols.
586
1a1d5513
JB
5872011-11-28 Joel Brobecker <brobecker@adacore.com>
588
589 * ada-lang.c (compare_names): Fix wrong return value in case
590 string1 starts with the same contents as string2, followed
591 by an underscore that do not start a symbol name suffix.
592
5d9c5995
PM
5932011-11-28 Phil Muldoon <pmuldoon@redhat.com>
594
595 PR python/13369
596 PR python/13374
597
598 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
599 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
600 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
601 exceptions.
602 * python/py-type.c (typy_strip_typedefs): Ditto.
603 (typy_legacy_template_argument): Ditto.
604 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
605 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
606
2bf50f6f
JB
6072011-11-27 Joel Brobecker <brobecker@acacore.com>
608
609 * remote.c (remote_get_tracepoint_status): Delete addrbuf
610 local variable. Avoid use of sprintf_vma.
611
744ab88c
SD
6122011-11-27 Sanjoy Das <sdas@igalia.com>
613
614 Fix regression in jit.exp.
615 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
616 (jit_register_code): Set the jit_objfile_data field to the correct
617 value.
618
46ad3598
UW
6192011-11-25  Uros Bizjak  <ubizjak@gmail.com>
620
621 * alpha-tdep.c (br_opcode): New.
622 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
623 (alpha_deal_with_atomic_sequence): New function.
624 (alpha_gdbarch_init): Handle single stepping of atomic sequences
625 with alpha_deal_with_atomic_sequence.
626
e4c5f296
TG
6272011-11-24 Tristan Gingold <gingold@adacore.com>
628
629 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
630 fields. Add oso_sym, end_sym and nbr_syms.
631 (macho_register_oso): Change interface.
632 (macho_symtab_add_minsym): New function.
633 (macho_symtab_read): Rewritten.
634 (get_archive_prefix_len): Remove trailing blanks.
635 (oso_el_compare_name): Add comment.
636 (struct macho_sym_hash_entry): New structure.
637 (macho_relocate_common_syms): Remove.
638 (macho_sym_hash_newfunc): New function.
639 (macho_resolve_oso_sym_with_minsym): Likewise.
640 (macho_add_oso_symfile): Rewritten.
641 (macho_symfile_read_all_oso): Remove trailing blanks.
642 Adjust code to free oso vector.
643 (macho_symfile_read): Likewise.
644 Move code to initialize minimal symbol
645
130854df
MR
6462011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
647
648 * mips-tdep.c (extended_offset): Fix formatting.
649
3d7bb9d9
DE
6502011-11-23 Doug Evans <dje@google.com>
651
652 * dwarf2read.c (dw2_lookup_symtab): Add comment.
653 (dw2_expand_symtabs_with_filename): Ditto.
654 (dw2_expand_symtabs_matching): Ditto.
655 (dw2_map_symbol_filenames): Ditto.
656
1fbf5ada
JB
6572011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
658
659 * ada-lang.c (assign_aggregate): Minor reformatting.
660
d984108d
JB
6612011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
662
663 * ada-lang.c (assign_aggregate): Remove declaration of local
664 variable `i' which is shadowing another variable with the same
665 name declared in the outer scope.
666
18af8284
JB
6672011-11-23 Joel Brobecker <brobecker@adacore.com>
668
669 * ada-lang.c (get_base_type): Renames base_type. Adjust all
670 calls throughout this file.
671
1fc7b5d7
JB
6722011-11-23 Joel Brobecker <brobecker@adacore.com>
673
674 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
675 FormatMessage.
676
36dfb11c
TT
6772011-11-22 Tom Tromey <tromey@redhat.com>
678
679 PR mi/8444:
680 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
681 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
682 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
683 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
684 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
685 (print_it_catch_syscall, print_it_catch_exec)
686 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
687 (bpstat_print): Add 'kind' argument. Handle
688 TARGET_WAITKIND_LOADED.
689 * infrun.c (normal_stop): Update for bpstat_print change. Don't
690 handle TARGET_WAITKIND_LOADED here.
691 * breakpoint.h (bpstat_print): Update.
692
5bd6aa83
TT
6932011-11-22 Tom Tromey <tromey@redhat.com>
694
695 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
696
f5afdc18
TT
6972011-11-22 Tom Tromey <tromey@redhat.com>
698
699 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
700 Use static_assert to check the size of
701 async_reason_string_lookup.
702 * common/gdb_assert.h (static_assert): New macro.
703
a3769e0c
AM
7042011-11-22 Alan Modra <amodra@gmail.com>
705
706 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
707 destination calculation. Don't expect >> to sign extend. Don't
708 add a break if branch lands inside the sequence anywhere.
709
56767571
KS
7102011-11-21 Keith Seitz <keiths@redhat.com>
711
712 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
713 -var-evaluate-expression of an enumeration and fix expected result.
714 * gdb.mi/mi2-varvdisplay.exp: Likewise.
715
8443c207
KY
7162011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
717
718 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
719 the case where osdata->items is empty. Rename column names to a
720 canonical form to avoid problems with unusual column names.
721
97643830
YQ
7222011-11-21 Yao Qi <yao@codesourcery.com>
723
724 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
725
f196051f
SS
7262011-11-20 Stan Shebs <stan@codesourcery.com>
727
728 * NEWS: Mention tracepoint additions.
729 * breakpoint.h (struct tracepoint): New field traceframe_usage.
730 * breakpoint.c (print_one_breakpoint_location): Identify
731 tracepoints as such when reporting hit counts, report
732 trace buffer usage.
733 (create_tracepoint_from_upload): Copy status info.
734 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
735 add fields user_name, notes, start_time, stop_time.
736 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
737 * tracepoint.c (trace_user): New global.
738 (trace_notes): New global.
739 (trace_stop_notes): New global.
740 (start_tracing): Add argument and trace note handling.
741 (stop_tracing): Ditto.
742 (trace_start_command): Add notes argument.
743 (trace_stop_command): Ditto.
744 (trace_status_command): Report additional status info.
745 (trace_status_mi): Similarly.
746 (trace_save): Update, record tracepoint status.
747 (set_disconnected_tracing): Call target method directly.
748 (send_disconnected_tracing_value): Remove.
749 (set_trace_user): New function.
750 (set_trace_notes): New function.
751 (set_trace_stop_notes): New function.
752 (parse_trace_status): Handle additional status.
753 (parse_tracepoint_status): New function.
754 (parse_tracepoint_definition): Call it.
755 (tfile_get_tracepoint_status): New function.
756 (init_tfile_ops): Use it.
757 (_initialize_tracepoint): Add new setshows.
758 * target.h (struct target_ops): New methods to_get_tracepoint_status
759 and to_set_trace_notes.
760 (target_get_tracepoint_status): New macro.
761 (target_set_trace_notes): New macro.
762 * target.c (update_current_target): Add new methods.
763 * remote.c (remote_get_tracepoint_status): New function.
764 (remote_set_trace_notes): New function.
765 (init_remote_ops): Add them.
766 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
767 (mi_cmd_trace_stop): Ditto.
768
3623dc3a
SD
7692011-11-20 Sanjoy Das <sdas@igalia.com>
770
771 * jit.c: Include regcache.h.
772 (jit_gdbarch_data, jit_frame_unwind): New static variables.
773 (jit_unwind_reg_set_impl, free_reg_value_impl)
774 (jit_unwind_reg_get_impl, jit_frame_sniffer)
775 (jit_frame_unwind_stop_reason, jit_frame_this_id)
776 (jit_frame_prev_register, jit_dealloc_cache)
777 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
778 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
779 jit_prepend_unwinder.
780 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
781
1825a88d
SD
7822011-11-20 Sanjoy Das <sdas@igalia.com>
783
784 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
785 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
786 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
787 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
788 (finalize_symtab, jit_object_close_impl)
789 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
790 (free_objfile_data): New functions.
791 (_initialize_jit): Register jit_objfile_data with a proper cleanup
792 function.
793
784c47ee
SD
7942011-11-20 Sanjoy Das <sdas@igalia.com>
795
796 * jit.c: Include gdb-dlfcn.h.
797 (loaded_jit_reader, reader_init_fn_sym): New static variables.
798 (jit_reader_load, jit_reader_load_command)
799 (jit_reader_unload_command): New functions.
800 (_initialize_jit): Add commands "jit-reader-load" and
801 "jit-reader-unload".
802
a2d08b9e
SD
8032011-11-20 Sanjoy Das <sdas@igalia.com>
804
805 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
806 * config.in: Add new #define HAVE_LIBDL.
807 * configure.ac: Add check for -ldl.
808 * configure: Re-generated by autoconf.
809 * gdb-dlfcn.c: New file.
810 * gdb-dlfcn.h: New file.
811
b8e0a31c
SD
8122011-11-20 Sanjoy Das <sdas@igalia.com>
813
814 * config.in: Add new #defines: JIT_READER_DIR and
815 JIT_READER_DIR_RELOCATABLE.
816 * configure.ac: New GDB directory entry for jit-reader-dir.
817 * configure: Re-generated by autoconf.
818 * jit.c: New static variable: const char *jit_reader_dir.
819 (_initialize_jit): Relocate jit_reader_dir.
820
f997c383
SD
8212011-11-20 Sanjoy Das <sdas@igalia.com>
822
823 * Makefile.in: Add jit-reader.h as a header. Have it installed in
824 $(includedir)/gdb.
825 * configure.ac: Generate a correct value for TARGET_PTR for
826 jit-reader.h. Tell configure to generate jit-reader.h from
827 jit-reader.in.
828 * configure: Re-generated by autoconf.
829 * jit-reader.in: New file.
830 * jit.c: Include jit-reader.h.
831
dc8c0494
SD
8322011-11-20 Sanjoy Das <sdas@igalia.com>
833
834 * MAINTAINERS (Write After Approval): Add myself to the list.
835
01efb936
UW
8362011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * findvar.c (read_frame_register_value): Respect value_offset
839 of the register value. Remove big-endian special case.
840
732f3f12
TT
8412011-11-18 Tom Tromey <tromey@redhat.com>
842
843 PR build/7196:
844 * remote.c (putpkt_for_catch_errors): New function.
845 (remote_kill): Use it.
846
bfccc43c
YQ
8472011-11-18 Yao Qi <yao@codesourcery.com>
848
849 * breakpoint.c (create_breakpoint): Produce query message according to
850 breakpoint's type.
851 Allocate tracepoint per correct type.
852 Don't check SALs for pending fast tracepoints.
853 * tracepoint.c (process_tracepoint_on_disconnect): New.
854 (disconnect_tracing): Call process_tracepoint_on_disconnect.
855
3ea46bff
YQ
8562011-11-18 Yao Qi <yao@codesourcery.com>
857
858 * breakpoint.c (install_breakpoint): Add one more parameter so that
859 update_global_location_list is called conditionally.
860 (create_fork_vfork_event_catchpoint): Update.
861 (create_syscall_event_catchpoint): Update.
862 (create_breakpoint_sal): Update.
863 (create_breakpoint_sal): Update. Call do_cleanups before
864 install_breakpoint.
865 * ada-lang.c (create_ada_exception_catchpoint): Update.
866 * breakpoint.h (install_breakpoint): Update declaration.
867
598cfb71
UW
8682011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
869
870 * spu-tdep.c (spu_return_value): Fix handling of
871 TYPE_CALLING_CONVENTION annotation.
872
caf4328c
UW
8732011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
874
875 * skip.c (skip_function_command): Work around uninitialized
876 variable warning.
877
2b54dda2
DM
8782011-11-16 David S. Miller <davem@davemloft.net>
879
880 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
881 'tv_usec' to long for printf since these fields have a type which
882 varies.
883
93bf33fd
DE
8842011-11-15 Doug Evans <dje@google.com>
885
886 * buildsym.c (add_symbol_to_list): Delete outdated comment.
887
9cc10fd1
PK
8882011-11-15 Paul Koning <paul_koning@dell.com>
889
890 * python/py-type.c (typy_get_composite): New function.
891 (typy_nonzero): New function.
892 (typy_values): Rename from typy_fields.
893 (typy_fields): New function.
894 (typy_length): Raise exception if not struct, union, or enum type.
895 (typy_getitem): Ditto.
896 (typy_has_key): Ditto.
897 (typy_make_iter): Ditto.
898
c011a4f4
DE
8992011-11-15 Doug Evans <dje@google.com>
900
901 * NEWS: Mention new parameter basenames-may-differ.
902 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
903 ! basenames_may_differ.
904 * psymtab.c (lookup_partial_symtab): Ditto.
905 * symtab.c (lookup_symtab): Ditto.
906 (basenames_may_differ): New global.
907 (_initialize_symtab): New parameter basenames-may-differ.
908 * symtab.h (basenames_may_differ): Declare.
909
865ecab4
LM
9102011-11-15 Pedro Alves <pedro@codesourcery.com>
911 Luis Machado <lgustavo@codesourcery.com>
912
913 * auxv.c: Include observer.h.
914 (auxv_inferior_data_cleanup): New.
915 (invalidate_auxv_cache_inf): New.
916 (invalidate_auxv_cache): New.
917 (get_auxv_inferior_data): New.
918 (auxv_inferior_data): New static global.
919 (auxv_info): New structure.
920 (target_auxv_search): Use get_auxv_inferior_data instead of
921 target_read_alloc and don't free cached buffers.
922 (fprint_target_auxv): Likewise
923 (_initialize_auxv): Register per-inferior auxv cache and register
924 observers to invalidate auxv cache when needed.
925
ed59ded5
DE
9262011-11-14 Doug Evans <dje@google.com>
927
928 Make "!" an alias for "shell".
929 * NEWS: Add mention.
930 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
931 adding "!" command, always add it.
932 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
933 command of length one.
934
405f8e94
SS
9352011-11-14 Stan Shebs <stan@codesourcery.com>
936 Kwok Cheung Yeung <kcy@codesourcery.com>
937
938 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
939 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
940 the minimum instruction size for fast tracepoints.
941 * target.h (struct target_ops): Add new method
942 to_get_min_fast_tracepoint_insn_len.
943 (target_get_min_fast_tracepoint_insn_len): New.
944 * target.c (update_current_target): Set up new target operation.
945 * remote.c (remote_write_bytes_aux): Fix typo.
946 (remote_get_min_fast_tracepoint_insn_len): New.
947 (init_remote_ops): Initialize new field.
948
3e05895e
TT
9492011-11-14 Tom Tromey <tromey@redhat.com>
950
951 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
952 (encode_actions): Likewise.
953
1e4d1764
YQ
9542011-11-14 Yao Qi <yao@codesourcery.com>
955
956 * remote.c (struct remote_state): <install_in_trace> new field.
957 (PACKET_InstallInTrace): New enum value.
958 (remote_install_in_trace_feature): Support InstallInTrace.
959 (remote_supports_install_in_trace): Likewise.
960 (remote_protocol_features): Likewise.
961 (_initialize_remote): Likewise.
962 (remote_can_download_tracepoint): New.
963 * target.h (struct target): New field
964 `to_can_download_tracepoint'.
965 (target_can_download_tracepoint): New macro.
966 * target.c (update_current_target): Update.
967 * breakpoint.h (struct bp_location): Add comment on field
968 `duplicate'.
3ccd4ac6
YQ
969 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
970 and tracepoint.
1e4d1764
YQ
971 (remove_breakpoints): Don't remove tracepoints.
972 (tracepoint_locations_match ): New.
973 (breakpoint_locations_match): Call it.
974 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
975 (download_tracepoint_locations): New.
976 (update_global_location_list): Call it.
977 * tracepoint.c (find_matching_tracepoint): Delete.
978 (find_matching_tracepoint_location): Renamed from
979 find_matching_tracepoint. Return bp_location rather than
980 tracepoint.
981 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
982 tracepoint is found.
983
e8ba3115
YQ
9842011-11-14 Yao Qi <yao@codesourcery.com>
985
986 * target.h (struct target): <to_download_tracepoint> Change type
987 of parameter from tracepoint to bp_location.
988 * target.c (update_current_target): Update.
989 * tracepoint.c (start_tracing): Update.
990 * remote.c (remote_download_tracepoint): Remove loop for each location
991 of a tracepoint.
992
edcc485a
MR
9932011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
994
995 * i386-nat.c (i386_insert_hw_breakpoint): Call
996 i386_update_inferior_debug_regs.
997 (i386_remove_hw_breakpoint): Likewise.
998
3742cc8b
YQ
9992011-11-14 Yao Qi <yao@codesourcery.com>
1000
1001 * breakpoint.c (init_raw_breakpoint): Call
1002 add_location_to_breakpoint to replace duplicated code.
1003 (add_location_to_breakpoint): Adjust the breakpoint's
1004 address prior to allocating a location.
1005
71eba9c2 10062011-11-12 Matt Rice <ratmice@gmail.com>
1007
1008 * macrocmd.c (macro_no_macro_info): New function.
1009 (macro_expand_command): Use macro_no_macro_info.
1010 (macro_expand_once_command): Ditto.
1011 (info_macro_command): Add argument processing,
1012 move info_definitions_command here.
1013 (_initialize_macrocmd): Remove info definitions command.
1014 Add arguments to info macro help text.
1015 * NEWS: Replace info definitions command with new info macro options.
1016
731971ed
KS
10172011-11-11 Keith Seitz <keiths@redhat.com>
1018
1019 PR gdb/12843
1020 * linespec.c (locate_first_half): Keep ':' if it looks
1021 like it could be part of a Windows path starting with
1022 a drive letter.
1023
6953d224
PA
10242011-11-10 Pedro Alves <pedro@codesourcery.com>
1025
1026 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1027 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1028
0c94aa73
PA
10292011-11-10 Pedro Alves <pedro@codesourcery.com>
1030
1031 * target.c (target_waitstatus_to_string): Handle
1032 TARGET_WAITKIND_NO_RESUMED.
1033
f6b47be4
DE
10342011-11-10 Doug Evans <dje@google.com>
1035
74e2f255
DE
1036 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1037 `need_fullname'.
1038 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1039 (map_partial_symbol_filenames): Ditto. All callers updated.
1040 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1041 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1042 parameter need_fullname.
1043
256f06f3
DE
1044 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1045 * source.c (symtab_to_fullname): Ditto.
1046
50f182aa
DE
1047 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1048 * gdb-demangle.h: ... here. New file.
1049 * demangle.c: #include "gdb-demangle.h".
1050 (_initialize_demangler): Use initialize_file_ftype for prototype.
1051 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1052 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1053 from utils.c
1054 * utils.c: Update. #include "gdb-demangle.h".
1055 * symtab.h (asm_demangle): Delete.
1056 (demangle): Move declaration next to use.
1057 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1058 * dwarf2read.c: #include "gdb-demangle.h".
1059 * gnu-v2-abi.c: Ditto.
1060 * jv-typeprint.c: Ditto.
1061 * mdebugread.c: Ditto.
1062 * p-typeprint.c: Ditto.
1063 * stabsread.c: Ditto.
1064 * printcmd.c: Ditto.
1065 (asm_demangle): Delete declaration.
1066 * tui/tui-stack.c: #include "gdb-demangle.h".
1067
f6b47be4
DE
1068 * python/py-type.c (typy_fields_items): Call check_typedef.
1069
22355c90
JB
10702011-11-10 Joel Brobecker <brobecker@adacore.com>
1071
1072 * findvar.c (read_frame_register_value): Read the correct bytes
1073 from registers on big-endian architectures.
1074
bd119cf1 10752011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1076
1077 * procfs.c (load_syscalls): Make a cleanup.
1078 (open_procinfo_files): fd==0 is ok.
1079
0a86f364
JB
10802011-11-10 Joel Brobecker <brobecker@adacore.com>
1081
1082 * procfs.c (iterate_over_mappings): Call do_cleanups before
1083 returning.
1084
9bc118a5
DE
10852011-11-09 Doug Evans <dje@google.com>
1086
1087 * gdbtypes.c (check_typedef): Document that this function can
1088 throw an exception.
1089
a7860e76
TT
10902011-11-09 Tom Tromey <tromey@redhat.com>
1091
1092 PR c++/13342:
1093 * valops.c (value_full_object): Return early if real type is
1094 smaller than the enclosing type.
1095
60965737
YQ
10962011-11-08 Yao Qi <yao@codesourcery.com>
1097
1098 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1099
72a2e3dc
MI
11002011-11-08 Meador Inge <meadori@codesourcery.com>
1101
1102 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1103 register when the frame can't be determined.
1104 * arm-tdep.c (arm_analyze_prologue): Ditto.
1105
ce3b0ff7
SS
11062011-11-07 Stan Shebs <stan@codesourcery.com>
1107
1108 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1109
2b914b52
JB
11102011-11-07 Joel Brobecker <brobecker@adacore.com>
1111
1112 * infrun.c (handle_inferior_event): Minor reformatting.
1113
6f809020
DE
11142011-11-05 Doug Evans <dje@google.com>
1115
1116 * source.c (forget_cached_source_info_for_objfile): Move call to
1117 objfile->sf->qf->forget_cached_source_info outside of
1118 ALL_OBJFILE_SYMTABS loop.
1119 (forget_cached_source_info): Delete unused variable `s'.
1120
75d12218
JK
11212011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1122
1123 * i386-nat.c (dr_ref_count): Remove unused variable.
1124
e565b837
DE
11252011-11-05 Doug Evans <dje@google.com>
1126
1127 * main.c (captured_main): Set lim_at_start before calling
1128 make_command_stats_cleanup.
1129
0a1c4d10
DE
11302011-11-04 Doug Evans <dje@google.com>
1131
1132 * utils.c: #include "timeval-utils.h".
1133 (cmd_stats): Rename start_time to start_cpu_time.
1134 New member start_wall_time.
1135 (report_command_stats): Report wall time.
1136 (make_command_stats_cleanup): Record start wall time.
1137
a1d705ee
TT
11382011-11-04 Tom Tromey <tromey@redhat.com>
1139
1140 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1141
81de56be
RO
11422011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1143
1144 * coff-pe-read.c: Include defs.h before bfd.h.
1145
3ab1ec27
PM
11462011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1147
1148 PR Python/13345
1149
1150 * python/python.c (python_run_simple_file): Expand tilde in path.
1151
cd829959
PM
11522011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1153
1154 PR Python/13363
1155
1156 * python/py-type.c (typy_lookup_type): Do not return a type in
1157 an exception handler.
1158
080ad648
JK
11592011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1160 Eli Zaretskii <eliz@gnu.org>
1161
1162 * linux-nat.c (_initialize_linux_nat): Improve help
1163 for `info proc stat', `info proc status', `info proc cwd',
1164 `info proc cmdline' and `info proc exe'.
1165
3065dfb6
SS
11662011-11-02 Stan Shebs <stan@codesourcery.com>
1167
1168 String collection for tracepoints.
1169 * NEWS: Mention string collection.
1170 * common/ax.def (tracenz): New bytecode.
1171 * ax-gdb.h (trace_string_kludge): Declare.
1172 * ax-gdb.c: Include valprint.h and c-lang.h.
1173 (trace_string_kludge): New global.
1174 (gen_traced_pop): Add string case.
1175 (agent_command): Add string case.
1176 * tracepoint.h (decode_agent_options): Declare.
1177 * tracepoint.c: Include cli-utils.h.
1178 (decode_agent_options): New function.
1179 (validate_actionline): Call it.
1180 (encode_actions_1): Ditto.
1181 * target.h (struct target_ops): New method to_supports_string_tracing.
1182 (target_supports_string_tracing): New macro.
1183 * target.c (update_current_target): Add to_supports_string_tracing.
1184 * remote.c (struct remote_state): New field string_tracing.
1185 (remote_string_tracing_feature): New function.
1186 (remote_protocol_features): New feature tracenz.
1187 (remote_supports_string_tracing): New function.
1188 (init_remote_ops): Set to_supports_string_tracing.
1189
f179e162
JK
11902011-11-02 Pedro Alves <pedro@codesourcery.com>
1191 Jan Kratochvil <jan.kratochvil@redhat.com>
1192
1193 * linux-nat.c: Include cli/cli-utils.h.
1194 (enum info_proc_what): New.
1195 (linux_nat_info_proc_cmd): Rename to ...
1196 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1197 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1198 status_f and stat_f from WHAT. Throw error on extra parameters.
1199 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1200 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1201 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1202 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1203 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1204 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1205 `info proc cmdline', `info proc exe' and `info proc all' as real
1206 subcommands of `info proc'.
1207
7b35ec7f 12082011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1209
1210 * Makefile.in: (SFILES): Add skip.c.
1211 (HFILES_NO_SRCDIR): Add skip.h.
1212 (COMMON_OBS): Add skip.o.
1213 * skip.h, skip.c: New.
1214 * breakpoint.h (set_default_breakpoint): Remove.
1215 (get_sal_arch): Declare.
1216 * breakpoint.c: Remove default_breakpoint_valid,
1217 default_breakpoint_address, default_breakpoint_symtab,
1218 default_breakpoint_line, default_breakpoint_pspace variables.
1219 (get_sal_arch): Make public.
1220 (set_default_breakpoint): Remove.
1221 (parse_breakpoint_sals, create_breakpoint, clear_command,
1222 decode_line_spec_1): Remove uses of default_breakpoint variables;
1223 replaced with function calls into stack.c.
1224 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1225 * cli/cli-cmds.c: Add skiplist.
1226 (init_cmd_lists): Initialize skiplist.
1227 (init_cli_cmds): Fix comment (classes of commands appear in
1228 alphabetical order).
1229 * infrun.c (handle_inferior_event): Add check that we don't step into
1230 a function whose pc is marked for skip.
1231 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1232 last_displayed_addr, last_displayed_symtab, last_displayed_line
1233 variables.
1234 (set_last_displayed_sal): New static function.
1235 (print_frame_info): Switch call to set_default_breakpoint to call to
1236 set_last_displayed_sal.
1237 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1238 get_last_displayed_pspace, get_last_displayed_addr,
1239 get_last_displayed_symtab, get_last_displayed_line,
1240 get_last_displayed_sal): New public functions.
1241 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1242 get_last_displayed_pspace, get_last_displayed_addr,
1243 get_last_displayed_symtab, get_last_displayed_line,
1244 get_last_displayed_sal): Declare.
1245
b60e1588
JL
12462011-11-01 Justin Lebar <justin.lebar@gmail.com>
1247
1248 * MAINTAINERS (Write After Approval): Add myself to the list.
1249
d31647d2
YQ
12502011-10-29 Yao Qi <yao@codesourcery.com>
1251
1252 * infcmd.c (disconnect_command): Call disconnect_tracing.
1253
b1d96efd
JK
12542011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1255
1256 Code cleanup.
1257 * symtab.c (skip_prologue_sal): Code reformatting.
1258
4dfb2365
JK
12592011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1260
1261 PR symtab/13208
1262 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1263 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1264 SAI.
1265
0e5bf2a8
PA
12662011-10-28 Pedro Alves <pedro@codesourcery.com>
1267
1268 * linux-nat.c (linux_nat_filter_event): Remove `options'
1269 parameter, and dead code that used it. If we're handling a
1270 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1271 in our lwp list, re-add it.
1272 (check_zombie_leaders): New.
1273 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1274 wait for children with WNOHANG, and always wait for all children.
1275 Don't check for no resumed children upfront. Simplify wait loop.
1276 Check for zombie thread group leaders after handling all wait
1277 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1278 unwaited-for children left.
1279 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1280 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1281 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1282 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1283
821296b7
SA
12842011-10-28 Sterling Augustine <saugustine@google.com>
1285
1286 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1287 * symtab.c (free_completion_list): New function.
1288 (do_free_completion_list): Likewise.
1289 (default_make_symbol_completion_list_break_on): New variable
1290 back_to. Call make_cleanup and discard_cleanups.
1291 (make_source_files_completion_list): Likewise.
1292
03c3051a
PK
12932011-10-28 Paul Koning <paul_koning@dell.com>
1294
1295 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1296 * NEWS: Mention deep_items.
1297
8e7ebaf5
PA
12982011-10-28 Alen Skondro <askondro@gmail.com>
1299
8de33dc2 1300 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1301 defined.
1302
e0c6ef61
MI
13032011-10-27 Meador Inge <meadori@codesourcery.com>
1304
1305 * MAINTAINERS (Write After Approval): Add myself to the list.
1306
b56d6f31
JB
13072011-10-27 Joel Brobecker <brobecker@adacore.com>
1308
1309 * value.h (read_frame_register_value): Add declaration.
1310 * findvar.c (read_frame_register_value): New function.
1311 (value_from_register): Use read_frame_register_value
1312 instead of get_frame_register_value + value_contents_copy
1313 to get value contents.
1314
d234ef5c
DE
13152011-10-27 Doug Evans <dje@google.com>
1316
1317 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1318 source_script_from_stream if it may have been found on the search path.
1319 * python/py-auto-load.c (source_section_scripts): Pass full path to
1320 source_python_script_for_objfile.
1321 * python/python.c (source_python_script): Delete stream parameter.
1322 All callers updated.
1323 (source_python_script_for_objfile): Ditto.
1324 * python/python-internal.h (source_python_script_for_objfile): Update.
1325 * python/python.h (source_python_script): Update.
1326
d849d44f
TT
13272011-10-27 Tom Tromey <tromey@redhat.com>
1328
1329 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1330 (ada_sals_for_line): Remove declarations.
1331
2231f1fb
KP
13322011-10-27 Kevin Pouget <kevin.pouget@st.com>
1333
1334 Move unwind reasons to an external .def file
1335 * frame.c (frame_stop_reason_string): Rewrite using
1336 unwind_stop_reasons.def.
1337 * frame.h (enum unwind_stop_reason): Likewise.
1338 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1339 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1340 constants for bound-checking.
1341 * unwind_stop_reasons.def: New file.
1342 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1343 instead of a distinct value.
1344
f77b9a5d
PM
13452011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1346
1347 PR python/13331
1348
1349 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1350 (convert_values_to_python): Return on Python tuple allocation
1351 failure. Return NULL on value conversion error.
1352
76dce0be
PM
13532011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1354
1355 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1356 (bppy_set_task): Ditto.
1357 (bppy_delete_breakpoint): Ditto.
1358 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1359 (gdbpy_lookup_global_symbol): Ditto.
1360 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1361 * python/py-frame.c (frapy_is_valid): Ditto.
1362 (frame_info_to_frame_object): Ditto.
1363 * python/py-type.c (typy_lookup_type): Ditto.
1364 (typy_getitem): Ditto.
1365 (typy_has_key): Ditto.
1366 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1367
f17b6955
JB
13682011-10-26 Joel Brobecker <brobecker@adacore.com>
1369
1370 * gdbarch.h: Regenerate.
1371
86ba1042
JB
13722011-10-26 Meador Inge <meadori@codesourcery.com>
1373
1374 * gdbarch.sh (function_list): Use 'pstring' when printing
1375 'gcore_bfd_target'.
1376 * gdbarch.c: Regenerate.
1377
c34fd852
UW
13782011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1379
1380 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1381 and frame caches if PTID refers to all threads of a process.
1382
931bb47f
UW
13832011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1384
1385 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1386 to create_breakpoint.
1387
88aed45e
UW
13882011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1389
1390 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1391 (ppc_sysv_abi_push_dummy_call): Use it.
1392 (do_ppc_sysv_return_value): Likewise.
1393 (ppc64_sysv_abi_push_dummy_call): Likewise.
1394 (ppc64_sysv_abi_return_value): Likewise.
1395
3eaf3fa2
PK
13962011-10-26 Paul Koning <paul_koning@dell.com>
1397
1398 * python/lib/gdb/types.py (deepitems): New function.
1399
913460fc
PK
14002011-10-25 Paul Koning <paul_koning@dell.com>
1401
1402 PR python/13327
1403
1404 * python/py-value.c (value_to_value_object): Remove fetching of
1405 the value if it was lazy.
1406 (valpy_get_is_lazy): New function.
1407 (valpy_fetch_lazy): New function.
1408
2b5b9d09
JB
14092011-10-24 Joel Brobecker <brobecker@adacore.com>
1410
1411 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1412 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1413
e21ffe51
PA
14142011-10-24 Pedro Alves <pedro@codesourcery.com>
1415
1416 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1417 event, in non-stop, if not stopping, make sure the new lwp has
1418 last_resume_kind set to resume_continue. Assert that when we're
1419 resuming the new lwp, its last_resume_kind is resume_continue.
1420
7aee8dc2
PA
14212011-10-24 Pedro Alves <pedro@codesourcery.com>
1422
1423 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1424 already set when marking the event thread as not executing in
1425 non-stop mode.
1426
4b4e080e
PA
14272011-10-24 Pedro Alves <pedro@codesourcery.com>
1428
1429 * infrun.c (handle_inferior_event): Add debug output for
1430 TARGET_WAITKIND_NO_HISTORY.
1431
baacfb07
PM
14322011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1433
1434 * NEWS: Move set/show extended-prompt to "New Options". Expand
1435 description. Fix typos.
1436
8432bc41
PM
14372011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1438
1439 PR python/13310
1440
1441 * python/py-param.c (call_doc_function): Correctly deference on
1442 function exit.
1443
6cda5a20
JB
14442011-10-21 Joel Brobecker <brobecker@adacore.com>
1445
1446 * ada-tasks.c (print_ada_task_info): Fix computation of
1447 number of tasks displayed in command output.
1448
13294f7d
JK
14492011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1450 Ulrich Weigand <uweigand@de.ibm.com>
1451
1452 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1453 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1454 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1455 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1456 gdbarch_unwind_pc.
1457
460c1c54
CC
14582011-10-20 Cary Coutant <ccoutant@google.com>
1459
1460 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1461 section to...
1462 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1463 flag. Adjust all callers.
1464 (process_psymtab_comp_unit): Remove adjustment for type section.
1465
a10964d1
AR
14662011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1467
1468 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1469 arguments by adding OBJFILE. Instead of getting objfile from
1470 symbol's symtab, use new argument OBJFILE.
1471 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1472 arguments by adding OBJFILE.
1473 * gdb/dwarf2read.c (new_symbol_full): Change call to
1474 cp_scan_for_anonymous_namespaces to match new signature.
1475 * gdb/stabsread.c (define_symbol): Change call to
1476 cp_scan_for_anonymous_namespaces to match new signature.
1477
27ca1a5b
PM
14782011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1479
1480 PR python/13308
1481 PR python/13309
1482
1483 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1484 leak.
1485 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1486 leak. Delete unused variables.
1487
9df2fbc4
PM
14882011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1489
1490 PR python/12656
1491
1492 * python/py-frame.c (frapy_read_var): Use const struct *block.
1493 * python/py-type.c (typy_lookup_typename): Likewise.
1494 (typy_lookup_type): Likewise.
1495 (typy_legacy_template_argument): Likewise.
1496 (typy_template_argument): Likewise.
1497 (gdbpy_lookup_type): Likewise.
1498 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1499 * python/py-block.c (blpy_block_object): Likewise.
1500 (blpy_iter): Likewise.
1501 (blpy_get_start): Likewise.
1502 (blpy_get_end): Likewise.
1503 (blpy_get_function): Likewise.
1504 (blpy_get_superblock): Likewise.
1505 (set_block): Likewise.
1506 (block_to_block_object): Likewise.
1507 (block_object_to_block): Likewise.
1508 (blpy_is_valid): Likewise.
1509 (blpy_get_global_block): New function.
1510 (blpy_get_static_block): New function.
1511 (blpy_is_global): New function.
1512 (blpy_is_static): New function.
1513 * blockframe.c (block_innermost_frame): Likewise.
1514 * valops.c (value_of_variable): Likewise.
1515 * frame.h: Update prototypes.
1516 * python/python-internal.h: Likewise.
1517 * value.h: Likewise.
1518
4743b735
CC
15192011-10-19 Cary Coutant <ccoutant@google.com>
1520
1521 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1522 type_offset field.
1523
6caca83c
CC
15242011-10-19 Cary Coutant <ccoutant@google.com>
1525
1526 * dwarf2read.c (peek_abbrev_code): New function.
1527 (dw2_get_file_names): Check for dummy compilation units.
1528 (create_debug_types_hash_table): Likewise.
1529 (process_psymtab_comp_unit): Likewise.
1530 (load_partial_comp_unit): Likewise.
1531 (load_full_comp_unit): Likewise.
1532
43136979
AR
15332011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1534
1535 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1536 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1537 pt_phdr if PT_PHDR was found.
1538
0a07729b
TT
15392011-10-17 Joost van der Sluis <joost@cnoc.nl>
1540
1541 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1542 type or "<unnamed type"> when there is no name assigned.
1543 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1544 avoid a sigint when no name is assigned.
1545
21ae7a4d
JK
15462011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 Revert:
1549 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 * dwarf2expr.c (ctx_no_read_reg): New function.
1551 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1552 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1553 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1554 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1555
32d1c362
DE
15562011-10-16 Doug Evans <dje@google.com>
1557
1558 * NEWS: Document python gdb.printing.register_pretty_printer's new
1559 `replace' parameter.
1560
da096638
KS
15612011-10-14 Keith Seitz <keiths@redhat.com>
1562
1563 PR c++/13225
1564 * eval.c (evaluate_subexp_standard): Do not construct
1565 an array of types; pass the value array directly to
1566 find_overload_match.
1567 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1568 (rank_function): Take an array of values instead of types.
1569 (rank_one_type): Add struct value * parameter.
1570 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1571 (rank_function): For each argument, pass the argument's
1572 value to rank_one_type.
1573 (rank_one_type): Add VALUE parameter.
1574 If the parameter type is a pointer and the argument type
1575 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1576 VALUE is zero.
1577 Update all calls to rank_one_type, passing NULL for new
1578 VALUE parameter.
1579 * valarith.c (value_user_defined_cpp_op): Do not construct
1580 an array of types; pass the value array directly to
1581 find_overload_match.
1582 * valops.c (find_overload_method_list): Take an array of
1583 values instead of types.
1584 Save the type of OBJP for later use.
1585 Update calls to find_oload_champ, and find_oload_champ_namespace.
1586 (find_oload_champ_namespace): Take an array of values instead
1587 of types.
1588 (find_oload_champ_namespace_loop): Likewise.
1589 (find_oload_champ): Likewise.
1590 (classify_oload_match): Inspect all arguments
1591 until INCOMPATIBLE is found. Return the worst badness found
1592 otherwise.
1593 (compare_parameters): Update call to rank_one_type.
1594 * value.h (find_overload_match): Take an array of values instead
1595 of types.
1596
3957565a
JK
15972011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1598
1599 Drop lazy lm_info reading.
1600 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1601 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1602 (lm_info_read): New function.
1603 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1604 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1605 lm_dynamic_from_link_map.
1606 (lm_next, lm_prev, lm_name): Remove.
1607 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1608 initialization incl. read_memory. No longer use lm_name.
1609 (svr4_free_so): Drop lm_info->lm freeing.
1610 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1611 explicit lm_addr and lm initialization.
1612 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1613 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1614 lm_name.
1615
cb08cc53
JK
16162011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1617 Paul Pluzhnikov <ppluzhnikov@google.com>
1618
1619 * defs.h (struct so_list): New forward declaration.
1620 (make_cleanup_free_so): New declaration.
1621 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1622 (svr4_free_so): Move the function here from downwards. Handle NULL
1623 so->lm_info.
1624 (svr4_free_library_list): New.
1625 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1626 Use more cleanups. Use new parameter ignore_first instead of
1627 ignore_first_link_map_entry.
1628 (svr4_current_sos): New variable ignore_first, initialize it. New
1629 variable back_to, use it for svr4_free_library_list protection.
1630 (svr4_free_so): Remove - move upwards.
1631 * utils.c: Include solist.h.
1632 (do_free_so, make_cleanup_free_so): New functions.
1633
22c05d8a
JK
16342011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 Fix internal error regression.
1637 * value.c (value_primitive_field): Handle value_optimized_out. Move
1638 packed bitfields comment.
1639
d930d06e
TT
16402011-10-13 Tom Tromey <tromey@redhat.com>
1641
1642 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1643 always released.
1644
2ff6b080
TT
16452011-10-13 Tom Tromey <tromey@redhat.com>
1646
1647 * python/py-type.c (typy_has_key): Make 'field' const.
1648
d6c5869f
LM
16492011-10-13 Luis Machado <lgustavo@codesourcery.com>
1650
1651 * remote.c (remote_save_trace_data): Invert comparison.
1652
a70633a2
LM
16532011-10-13 Luis Machado <lgustavo@codesourcery.com>
1654
1655 * tracepoint.c (trace_save_command): Use filename instead of
1656 args when printing.
1657
e103e986
JK
16582011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1661 if .size is 0.
1662
db24da6d
YQ
16632011-10-13 Yao Qi <yao@codesourcery.com>
1664
1665 PR gdb/12703
1666 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1667 whether insn is a 32-bit Thumb-2 instruction.
1668 (thumb_in_function_epilogue_p): Likewise.
1669 (thumb_get_next_pc_raw): Likewise.
1670 (arm_breakpoint_from_pc): Likewise.
1671
1d6edc3c
JK
16722011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1675 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1676 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1677 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1678 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1679 zero DATA.
1680 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1681 validity.
1682 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1683 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1684 clear DATA on zero SIZE.
1685
adabb602
DE
16862011-10-12 Doug Evans <dje@google.com>
1687
1688 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1689 header->first_die_offset here. All callers updated.
1690
5048e516
JK
16912011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 Fix compatibility with texinfo versions older than 4.12.
1694 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1695 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1696 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1697 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1698 * configure: Regenerate.
1699 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1700 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1701 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1702
0574c78f
GB
17032011-10-12 Gary Benson <gbenson@redhat.com>
1704
1705 * breakpoint.h (pc_at_non_inline_function): Declare.
1706 * breakpoint.c (is_non_inline_function,
1707 pc_at_non_inline_function): New functions.
1708 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1709 if the stop is at a location where functions cannot be inlined.
1710
12d9289a
PA
17112011-10-12 Pedro Alves <pedro@codesourcery.com>
1712
1713 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1714 the core wanted them stopped, or if they now have a pending event
1715 to report.
ecf8e7f5
PA
1716 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1717 down to stop_and_resume_callback.
1718 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1719 having new pending events after calling linux_nat_filter_event.
12d9289a 1720
96408a79
SA
17212011-10-11 Sterling Augustine <saugustine@google.com>
1722
1723 * dwarf2read.c: Undo inadvertent changes in previous commit.
1724
9c6c53f7
SA
17252011-10-11 Sterling Augustine <saugustine@google.com>
1726
1727 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1728 logic.
1729
0e8aefe7
UW
17302011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1731
1732 * symfile.c (separate_debug_file_exists): Fix condition.
1733
349d1385
DM
17342011-10-11 David S. Miller <davem@davemloft.net>
1735
1736 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1737 static.
1738 * regcache.h (regcache_restore): Remove declaration.
1739
205c306f
DM
1740 * gdbarch.sh: New field 'long_long_align_bit'.
1741 * gdbarch.c, gdbarch.h: Regenerate.
1742 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1743 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1744
941b2081
JK
17452011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1746
1747 Revert this part of:
1748 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 Support @entry in input expressions.
1750 * c-exp.y (ENTRY, unknown_cpp_name): New.
1751 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1752 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1753 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1754 (name_not_typename: ENTRY): New.
1755 (yylex): Recognize ENTRY.
1756
1757 Reimplement @entry in input expressions.
1758 * c-exp.y (ENTRY): New.
1759 (variable: name_not_typename ENTRY): New.
1760 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1761
3c4d7e12
PA
17622011-10-11 Pedro Alves <pedro@codesourcery.com>
1763
1764 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1765 parent and child's pids as soon as we detect a clone event.
1766 Adjust another debug message.
1767
ea23808b
PA
17682011-10-11 Pedro Alves <pedro@codesourcery.com>
1769
1770 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1771 not zombie instead of reading the whole file.
1772
904578ed
JK
17732011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 Fix separate debuginfo warning with "remote:" access.
1776 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1777 * symfile.c (get_file_crc): New function with the code moved from ...
1778 (separate_debug_file_exists): ... this function, specifically variables
1779 buffer and count. New variable verified_as_different, set it. Remove
1780 file_crc initialization. Verify also if both files are not the same
1781 manually, if needed.
1782
51370a33
YQ
17832011-10-11 Yao Qi <yao@codesourcery.com>
1784
1785 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1786 to get address.
1787
0838fb57
DE
17882011-10-10 Doug Evans <dje@google.com>
1789
1790 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1791 libthread_db when we load libpthread or the main symbol file.
1792 (thread_db_inferior_created): New function.
1793 (_initialize_thread_db): Attach inferior_created observer.
1794 * linux-nat.c (linux_child_post_attach): Remove call to
1795 check_for_thread_db.
1796 (linux_child_post_startup_inferior): Ditto.
1797 * objfiles.h (OBJF_MAINLINE): Define.
1798 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1799 allocate_objfile when appropriate.
1800
623bd5b7
UW
18012011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1802
1803 PR gdb/13218
1804 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1805 Remove unused variables.
1806 (get_linux_version): Remove function.
1807 (_initialize_arm_linux_nat): Do not call it.
1808
79395f92
PA
18092011-10-10 Pedro Alves <pedro@codesourcery.com>
1810
1811 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1812 new clone lwp if the core asked it to stop. Don't pass on
1813 unexpected signals to the new clone; leave them pending instead.
1814
eff3df78
PA
18152011-10-10 Pedro Alves <pedro@codesourcery.com>
1816
1817 * linux-nat.c (resume_lwp): Remove redundant debug output.
1818
4b60df3d
PA
18192011-10-10 Pedro Alves <pedro@codesourcery.com>
1820
1821 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1822 last_resume_kind before clearing it, and use the copy instead to
1823 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1824 resume_clear_callback in the non-stop path too.
1825
6501578c
YQ
18262011-10-09 Yao Qi <yao@codesourcery.com>
1827
1828 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1829 Honor OPTIONS and VAL's type.
1830 (common_val_print, value_print): Update to pass one more parameter.
1831
5a56e9c5
DE
18322011-10-09 Doug Evans <dje@google.com>
1833
1834 Add new "alias" command.
1835 * NEWS: Mention new command.
1836 * command.h (valid_user_defined_cmd_name_p): Declare.
1837 * defs.h (make_cleanup_dyn_string_delete): Declare.
1838 * utils.c: #include "dyn-string.h".
1839 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1840 * cli/cli-cmds.c: #include "dyn-string.h".
1841 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1842 (init_cli_cmds): Add new command.
1843 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1844
509f0fd9
JK
18452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1846
1847 Fix compatibility with older GCCs.
1848 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1849 * stack.c (read_frame_arg): Initialize val_deref.
1850
2bda9cc5
JK
18512011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 Entry values NEWS entries, DWARF disassembly support.
1854 * NEWS: New entry values entry.
1855 (set print entry-values, show print entry-values)
1856 (set debug entry-values, show debug entry-values): New entries.
1857 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1858 indent. Remove variable start. Move header printing out. Respect
1859 INDENT. Support DW_OP_GNU_entry_value.
1860 (locexpr_describe_location_1): Move the header printing here, extend
1861 the disassemble_dwarf_expression passed parameters.
1862
a471c594
JK
18632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 Display @entry parameter values even for references.
1866 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1867 coerce_ref_if_computed.
1868 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1869 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1870 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1871 existing push_dwarf_reg_entry_value call. Add new detection calling
1872 dwarf_block_to_dwarf_reg_deref. Update the error message.
1873 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1874 * dwarf2expr.h
1875 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1876 parameter deref_size, describe it in the comment.
1877 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1878 (dwarf_block_to_dwarf_reg_deref): New declaration.
1879 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1880 deref_size, describe it in the function comment. New variables
1881 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1882 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1883 describe it in the function comment. Fetch the alternative block
1884 accoring to DEREF_SIZE.
1885 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1886 (entry_data_value_free_closure, entry_data_value_funcs): New.
1887 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1888 outer_val, target_val, val and addr. Try to fetch and create also
1889 referenced value content.
1890 (pieced_value_funcs): NULL value for coerce_ref.
1891 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1892 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1893 coerce_ref_if_computed.
1894 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1895 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1896 * stack.c (read_frame_arg): Compare also dereferenced values.
1897 * value.c (value_computed_funcs): Make the parameter v const, use
1898 value_lval_const for it.
1899 (value_lval_const, coerce_ref_if_computed): New function.
1900 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1901 * value.h (struct lval_funcs): New field coerce_ref.
1902 (value_computed_funcs): Make the parameter v const.
1903 (value_lval_const, coerce_ref_if_computed): New declarations.
1904
36b11add
JK
19052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 Support @entry in input expressions.
1908 * c-exp.y (ENTRY, unknown_cpp_name): New.
1909 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1910 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1911 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1912 (name_not_typename: ENTRY): New.
1913 (yylex): Recognize ENTRY.
1914 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1915 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1916 Likewise.
1917 * parse.c (operator_length_standard): Likewise.
1918 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1919
3343315b
JK
19202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 Display referenced values in backtraces.
1923 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1924 * stack.c (print_frame_arg): Likewise.
1925
ac71a68c
JK
19262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 Make some lval_funcs methods to default on NULL.
1929 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1930 NULL.
1931 (value_assign): Check if lval_computed write method is NULL.
1932 * value.h (struct lval_funcs): Comment NULL values for read and write
1933 methods.
1934
e18b2753
JK
19352011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 Display @entry parameter values (without references).
1938 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1939 New functions.
1940 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1941 New declarations.
1942 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1943 entry record.
1944 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1945 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1946 functions.
1947 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1948 (loclist_read_variable_at_entry): New function.
1949 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1950 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1951 DW_AT_location, call dwarf_block_to_sp_offset for it.
1952 * frame.h (print_entry_values_no, print_entry_values_only)
1953 (print_entry_values_preferred, print_entry_values_if_needed)
1954 (print_entry_values_both, print_entry_values_compact)
1955 (print_entry_values_default, print_entry_values): New declarations.
1956 (struct frame_arg): New field entry_kind.
1957 (read_frame_arg): New parameter entryargp.
1958 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1959 arg->entry_kind. Optionally print the `@entry' suffix.
1960 (list_args_or_locals): New variable entryarg, initialize it.
1961 Initialize also entry_kind of arg and entryarg. Conditionalize
1962 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1963 xfree for entryarg.error.
1964 * stack.c (print_entry_values_no, print_entry_values_only)
1965 (print_entry_values_preferred, print_entry_values_if_needed)
1966 (print_entry_values_both, print_entry_values_compact)
1967 (print_entry_values_default, print_entry_values_choices)
1968 (print_entry_values): New variables.
1969 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1970 print the `@entry' suffix, possibly in combination for
1971 print_entry_values_compact.
1972 (read_frame_arg): New parameter entryargp, new variables entryval,
1973 entryval_error and val_equal. Read in also entryargp, respect
1974 print_entry_values, compare the values using val_equal, fill in also
1975 argp->entry_kind (together with entryargp->entry_kind).
1976 (print_frame_args): New variable entryarg, initialize it.
1977 Conditionalize print_frame_arg for arg, add print_frame_arg for
1978 entryarg. Call xfree for entryarg.error.
1979 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1980 * symtab.h (struct symbol_computed_ops): New field
1981 read_variable_at_entry.
1982
93d86cef
JK
19832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 Code reshuffle.
1986 * frame.h (struct frame_arg): New definition.
1987 (read_frame_arg): New declaration.
1988 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1989 (list_args_or_locals): ... the code here. New variable arg, call
1990 read_frame_arg and list_arg_or_local with it. Unify the
1991 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1992 arg.error.
1993 * stack.c (print_frame_arg): New functiom from the code of
1994 print_frame_args.
1995 (read_frame_arg): New function.
1996 (print_frame_args): Remove variable val. New variable arg, call
1997 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1998
2d6c5dc2
JK
19992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 Protect entry values against self tail calls.
2002 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2003 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2004
111c6489
JK
20052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2006
2007 Recognize virtual tail call frames.
2008 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2009 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2010 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2011 * dwarf2-frame-tailcall.c: New file.
2012 * dwarf2-frame-tailcall.h: New file.
2013 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2014 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2015 REGS.PREV only after CIE execution.
2016 (struct dwarf2_frame_cache): New field tailcall_cache.
2017 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2018 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2019 parts, try to find entry_cfa_sp_offset. Call
2020 dwarf2_tailcall_sniffer_first.
2021 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2022 when appropriate.
2023 (dwarf2_frame_dealloc_cache): New function.
2024 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2025 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2026 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2027 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2028 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2029 * dwarf2loc.c (func_addr_to_tail_call_list)
2030 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2031 (call_site_find_chain_1, call_site_find_chain): New.
2032 * dwarf2loc.h (struct call_site_chain): New.
2033 (call_site_find_chain): New declaration.
2034 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2035 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2036 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2037 * stack.c (frame_info): Support also TAILCALL_FRAME.
2038
bb984ff1
JK
20392011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 Tail call sites reader implementation.
2042 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2043 fill in TYPE_TAIL_CALL_LIST.
2044 * gdbtypes.h (struct func_type): New field tail_call_list.
2045 (struct call_site): New field tail_call_next.
2046 (TYPE_TAIL_CALL_LIST): New definition.
2047
8e3b41a9
JK
20482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2049
2050 Implement basic support for DW_TAG_GNU_call_site.
2051 * block.c: Include gdbtypes.h and exceptions.h.
2052 (call_site_for_pc): New function.
2053 * block.h (call_site_for_pc): New declaration.
2054 * defs.h: Include hashtab.h.
2055 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2056 declarations.
2057 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2058 ctx_no_push_dwarf_reg_entry_value.
2059 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2060 (dwarf_block_to_dwarf_reg): New function.
2061 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2062 (ctx_no_push_dwarf_reg_entry_value): New function.
2063 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2064 push_dwarf_reg_entry_value.
2065 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2066 declarations.
2067 * dwarf2loc.c: Include gdbcmd.h.
2068 (dwarf_expr_ctx_funcs): New forward declaration.
2069 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2070 (dwarf_expr_reg_to_entry_parameter)
2071 (dwarf_expr_push_dwarf_reg_entry_value): New.
2072 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2073 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2074 (needs_dwarf_reg_entry_value): New function.
2075 (needs_frame_ctx_funcs): Install it.
2076 (_initialize_dwarf2loc): New function.
2077 * dwarf2loc.h (entry_values_debug): New declaration.
2078 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2079 (read_call_site_scope): New forward declaration.
2080 (process_full_comp_unit): Copy call_site_htab.
2081 (process_die): Support DW_TAG_GNU_call_site.
2082 (read_call_site_scope): New function.
2083 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2084 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2085 (cleanup_htab): Delete.
2086 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2087 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2088 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2089 FIELD_LOC_KIND_DWARF_BLOCK.
2090 * gdbtypes.h (enum field_loc_kind): New entry
2091 FIELD_LOC_KIND_DWARF_BLOCK.
2092 (struct main_type): New loc entry dwarf_block.
2093 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2094 (TYPE_FIELD_DWARF_BLOCK): New.
2095 * python/py-type.c: Include dwarf2loc.h.
2096 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2097 internal_error call on unknown FIELD_LOC_KIND.
2098 * symtab.h (struct symtab): New field call_site_htab.
2099 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2100 (core_addr_hash, core_addr_eq): New functions.
2101
b6cdc2c1
JK
21022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Code reshuffle.
2105 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2106 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2107 calling_convention under func_stuff there.
2108 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2109 (init_type) <TYPE_CODE_FUNC>: Likewise.
2110 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2111 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2112 * gdbtypes.h (enum type_specific_kind): Change
2113 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2114 (struct main_type) <type_specific>: Change calling_convention to
2115 func_stuff. Move calling_convention to ...
2116 (struct func_type): ... this new struct.
2117 (INIT_FUNC_SPECIFIC): New #define.
2118 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2119
181cebd4
JK
21202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2123 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2124 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2125 ctx->ref_addr_size. Handle its invalid value.
2126 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2127 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2128 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2129 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2130 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2131 (dwarf2_per_cu_ref_addr_size): New function.
2132
c471e790
JK
21332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2134
2135 Code cleanup.
2136 * dwarf2read.c (per_cu_header_read_in): New function.
2137 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2138 variables cu_header_local and cu_headerp.
2139
741f5e3c
JK
21402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2141
2142 Fix initial language detection with -readnow.
2143 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2144 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2145 searches only for global symbols.
2146
a73d2258
JK
21472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2148
2149 Fix printed anonymous struct name.
2150 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2151 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2152 (anonymous_struct_prefix): New function.
2153 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2154 (dwarf2_name): Strip for anonymous structs any prefixes.
2155
749fd4ea
DE
21562011-10-07 Doug Evans <dje@google.com>
2157
1fa57852
DE
2158 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2159 `replace'.
2160
690a4937
DE
2161 * python/lib/gdb/printing.py: Whitespace cleanup.
2162
749fd4ea
DE
2163 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2164 warning.
2165
4c38200f
PA
21662011-10-07 Pedro Alves <pedro@codesourcery.com>
2167
2168 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2169 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2170 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2171 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2172 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2173 (arm_linux_remove_watchpoint): Adjust.
2174 * i386-linux-nat.c (i386_linux_dr_set_control)
2175 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2176 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2177 (ia64_linux_remove_watchpoint): Adjust.
2178 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2179 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2180 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2181 (ppc_linux_insert_mask_watchpoint)
2182 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2183 (ppc_linux_remove_watchpoint): Adjust.
2184 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2185 Adjust.
2186
b7ff339d
CV
21872011-10-07 Corinna Vinschen <vinschen@redhat.com>
2188
2189 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2190 (clear_win32_environment): New function for Cygwin to clear out
2191 Win32 environment.
2192 (windows_create_inferior): Prepare new environment from in_env
2193 for Cygwin, too.
2194
f287c1f3
PM
21952011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2196
5631e596 2197 PR python/13264
f287c1f3
PM
2198 * python/py-value.c (valpy_call): Check that arguments are
2199 a tuple.
2200 (is_intlike): Remove call to CHECK_TYPEDEF.
2201 (valpy_nonzero): Catch GDB exceptions.
2202 (valpy_absolute): Ditto.
2203 (valpy_lazy_string): Ditto.
2204 (valpy_call): Ditto.
2205 (valpy_get_is_optimized_out): Ditto.
2206 (valpy_long): Ditto.
2207 (valpy_float): Ditto.
2208 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2209 (valpy_richcompare): Ditto.
2210
03583c20
UW
22112011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2212
2213 * inferior.h (disable_randomization): Declare.
2214 * infrun.c (disable_randomization): New global variable.
2215 (show_disable_randomization): New function.
2216 (set_disable_randomization): Likewise.
2217 (_initialize_infrun): Install set/show disable-randomization
2218 commands.
2219 * linux-nat.c (disable_randomization): Remove.
2220 (show_disable_randomization): Likewise.
2221 (set_disable_randomization): Likewise.
2222 (_initialize_linux_nat): No longer install set/show
2223 disable-randomization commands here.
2224 (linux_nat_supports_disable_randomization): New function.
2225 (linux_nat_add_target): Install it.
2226 * remote.c (PACKET_QDisableRandomization): New enum value.
2227 (remote_protocol_packets): Support QDisableRandomization.
2228 (_initialize_remote): Likewise.
2229 (remote_supports_disable_randomization): New function.
2230 (init_remote_ops): Install it.
2231 (extended_remote_supports_disable_randomization): New function.
2232 (init_extended_remote_ops): Install it.
2233 (extended_remote_disable_randomization): New function.
2234 (extended_remote_create_inferior_1): Call it.
2235 * target.h (struct target_ops): Add to_supports_disable_randomization.
2236 (target_supports_disable_randomization): Add prototype.
2237 * target.c (target_supports_disable_randomization): New function.
2238 (find_default_supports_disable_randomization): Likewise.
2239 (init_dummy_target): Install it.
2240
20c168b5
KP
22412011-10-07 Kevin Pouget <kevin.pouget@st.com>
2242
2243 Allow Python notification of new object-file loadings.
2244 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2245 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2246 Add build rule for this file.
2247 * python/py-event.h (emit_new_objfile_event): New prototype.
2248 (newobjfile): New Python event emitter.
2249 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2250 Python event registry.
2251 * python/py-inferior.c: Include objfiles.h
2252 (python_new_objfile): New function.
2253 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2254 observers.
2255 * python/py-newobjfileevent.c: New file.
2256 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2257 prototype.
2258 * python/python.c (_initialize_python): Add
2259 gdbpy_initialize_new_objfile_event call.
2260 * NEWS: Add item for new Python event "gdb.newobjfile"
2261
b1c8db38
TG
22622011-10-05 Tristan Gingold <gingold@adacore.com>
2263
2264 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2265 Extract the ravenscar task name from the symbol for the atcb.
2266
0dab82e9
PK
22672011-10-04 Paul Koning <paul_koning@dell.com>
2268
2269 * python/py-type.c (typy_make_iter): Add forward declaration.
2270 (typy_fields_items): Use the gdb.Type iterator.
2271
84ad80e6
PK
22722011-10-04 Paul Koning <paul_koning@dell.com>
2273
2274 * NEWS: Add entry for Python gdb.Type mapping methods.
2275
cb6be26b
KP
22762011-10-04 Kevin Pouget <kevin.pouget@st.com>
2277
2278 PR python/12691: Add the inferior to Python exited event
2279 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2280 to exited_event.
2281 * python/py-event.h (emit_exited_event): Likewise
2282 * python/-inferior.c (python_inferior_exit): Likewise
2283
6005b210
JB
22842011-10-03 Joel Brobecker <brobecker@adacore.com>
2285
2286 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2287 in output of -ada-task-info GDB/MI command.
2288
75082e8c
JB
22892011-10-03 Joel Brobecker <brobecker@adacore.com>
2290
2291 * ada-lang.h (struct inferior): Declare.
2292 (print_ada_task_info): Add declaration.
2293 * ada-tasks.c (print_ada_task_info): Make non-static.
2294 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2295 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2296 * mi/mi-main.c: #include "ada-lang.h".
2297 (mi_cmd_list_features): Add "ada-task-info" to the list
2298 of supported features.
2299 (mi_cmd_ada_task_info): New function.
2300
7ed7d719
JB
23012011-10-03 Joel Brobecker <brobecker@adacore.com>
2302
2303 * python/python.c (python_run_simple_file): New function.
2304 (source_python_script, source_python_script_for_objfile):
2305 Replace call to PyRun_SimpleFile by call to
2306 python_run_simple_file.
2307
3fcaed38
PK
23082011-10-03 Paul Koning <paul_koning@dell.com>
2309
2310 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2311 (value_to_value_object): Fetch value if it was lazy.
2312
8e5c319d
JK
23132011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2314
2315 Code cleanup.
2316 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2317 Rearrange the code for it.
2318
dd11a36c
JB
23192011-10-02 Joel Brobecker <brobecker@adacore.com>
2320
2321 * breakpoint.c (bkpt_print_recreate): Add call to
2322 print_recreate_thread.
2323
723b724b
MF
23242011-09-29 Mike Frysinger <vapier@gentoo.org>
2325
2326 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2327 PTRACE_GETFDPIC_INTERP): Define.
2328
412946b6
YQ
23292011-09-28 Yao Qi <yao@codesourcery.com>
2330
2331 * symfile.c (add_symbol_file_command): Update message on usage.
2332
a73bb892
PK
23332011-09-28 Paul Koning <paul_koning@dell.com>
2334
2335 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2336 (typy_length, typy_get, typy_has_key, typy_make_iter)
2337 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2338 (typy_iterator_iter, typy_iterator_iternext)
2339 (typy_iterator_dealloc): New functions to implement standard
2340 Python mapping methods on gdb.Type object.
2341 (gdb.TypeIterator): New Python type.
2342 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2343
fe10a582
DM
23442011-09-28 David S. Miller <davem@davemloft.net>
2345
2346 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2347 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2348 * sparc-tdep.c (sparc_complex_floating_p): New function.
2349 (sparc32_store_arguments): Handle complex floats.
2350 (sparc32_extract_return_value): Likewise.
2351 (sparc32_store_return_value): Likewise.
2352 (sparc32_stabs_argument_has_addr): Likewise.
2353 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2354 (sparc64_store_floating_fields): Handle complex floats.
2355 (sparc64_store_arguments): Likewise.
2356 (sparc64_store_return_value): Likewise.
2357
c93dbcba
EZ
23582011-09-28 Eli Zaretskii <eliz@gnu.org>
2359
2360 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2361 before the change on 2006-12-09.
2362 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2363 generates the environment block for CreateProcessA, modulo the
2364 Cygwin-specific parts that are not needed here.
2365
f00c55f8
TG
23662011-09-27 Tristan Gingold <gingold@adacore.com>
2367
2368 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2369 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2370 (darwin_solib_get_all_image_info_addr_at_init): New function.
2371 (darwin_solib_read_all_image_info_addr): Likewise.
2372 (darwin_solib_create_inferior_hook): Use the above two functions.
2373 * darwin-nat.c (darwin_execvp): Renames retval to res.
2374 (darwin_read_write_inferior): Update comment.
2375 (darwin_read_dyld_info): New function.
2376 (darwin_xfer_partial): Handle DYLD_INFO.
2377
6710bf39
SS
23782011-09-27 Stan Shebs <stan@codesourcery.com>
2379
2380 Add return address collection for tracepoints.
2381 * tracepoint.c (encode_actions_1): Add case for $_ret.
2382 (validate_actionline): Check for $_ret.
2383 (trace_dump_actions): Ditto.
2384 * ax-gdb.h (gen_trace_for_return_address): Declare.
2385 * ax-gdb.c: Include arch-utils.h.
2386 (gen_trace_for_return_address): New function.
2387 (agent_command): Add return address special case.
2388 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2389 (amd64_gen_return_address): New function.
2390 (amd64_init_abi): Call it.
2391 * i386-tdep.c: Include ax.h and ax-gdb.h.
2392 (i386_gen_return_address): New function.
2393 (i386_init_abi): Call it.
2394 * arch-utils.h (default_gen_return_address): Declare.
2395 * arch-utils.c (default_gen_return_address): New function.
2396 * gdbarch.sh (gen_return_address): New method.
2397 * gdbarch.h, gdbarch.c: Regenerate.
2398
e04e5beb
JM
23992011-09-23 Joseph Myers <joseph@codesourcery.com>
2400
2401 PR gdb/13079
2402 * i386-tdep.c (i386_frame_align): New.
2403 (i386_gdbarch_init): Use i386_frame_align.
2404
f3d6df6d
YQ
24052011-09-23 Yao Qi <yao@codesourcery.com>
2406
2407 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2408 to get address.
2409
e69860f1
TG
24102011-09-22 Tristan Gingold <gingold@adacore.com>
2411
2412 * fork-child.c (fork_inferior): Add exec_fun parameter.
2413 Call exec_fun or execvp.
2414 * inferior.h: Adjust prototype.
2415 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2416 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2417 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2418 * procfs.c (procfs_create_inferior): Ditto.
2419 * darwin-nat.c (darwin_execvp): New function.
2420 (darwin_create_inferior): Use it.
2421
4b51d87b
YQ
24222011-09-22 Yao Qi <yao@codesourcery.com>
2423
2424 * infrun.c (context_switch): Print debug message when switching to
2425 a different thread.
2426
56b9d9ac
UW
24272011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2428
2429 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2430 complex and vector types.
2431 (s390_return_value_convention): Likewise.
2432
2433 (s390_value_from_register): Call check_typedef.
2434 (extend_simple_arg): Likewise.
2435 (alignment_of): Likewise.
2436 (s390_push_dummy_call): Likewise.
2437 (s390_return_value): Likewise.
2438
b2cd6b29
JM
24392011-09-21 Joseph Myers <joseph@codesourcery.com>
2440
2441 * event-top.c (async_disconnect): If an exception is thrown from
2442 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2443 catch_errors.
2444 * top.c (quit_cover): Return void and take no arguments.
2445 * top.h (quit_cover): Update prototype.
2446
67ba4e42
JM
24472011-09-20 Joseph Myers <joseph@codesourcery.com>
2448
2449 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2450 current_uiout, not uiout.
2451
562f943b
DE
24522011-09-19 Doug Evans <dje@google.com>
2453
2454 * python/py-auto-load.c (source_section_scripts): Fix file
2455 descriptor leak.
2456 * python/python.c (source_python_script_for_objfile): Tweak comments.
2457
34518530
YQ
24582011-09-18 Yao Qi <yao@codesourcery.com>
2459 Ulrich Weigand <ulrich.weigand@linaro.org>
2460
2461 Support displaced stepping for Thumb 16-bit insns.
2462 * arm-tdep.c (THUMB_NOP) Define.
2463 (thumb_copy_unmodified_16bit): New.
2464 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2465 (thumb_copy_alu_reg): New.
2466 (arm_copy_svc): Move some common code to ...
2467 (install_svc): ... here. New.
2468 (thumb_copy_svc): New.
2469 (install_pc_relative): New.
2470 (thumb_copy_pc_relative_16bit): New.
2471 (thumb_decode_pc_relative_16bit): New.
2472 (thumb_copy_16bit_ldr_literal): New.
2473 (thumb_copy_cbnz_cbz): New.
2474 (cleanup_pop_pc_16bit_all): New.
2475 (thumb_copy_pop_pc_16bit): New.
2476 (thumb_process_displaced_16bit_insn): New.
2477 (thumb_process_displaced_32bit_insn): New.
2478 (thumb_process_displaced_insn): process thumb instruction.
2479
2480 Support displaced stepping for Thumb 32-bit insns.
2481 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2482 (thumb2_copy_preload): New.
2483 (thumb2_copy_copro_load_store): New.
2484 (thumb2_copy_b_bl_blx): New.
2485 (thumb2_copy_alu_imm): New.
2486 (thumb2_copy_load_reg_imm): New.
2487 (thumb2_copy_load_literal): New
2488 (thumb2_copy_block_xfer): New.
2489 (thumb_32bit_copy_undef): New.
2490 (thumb_32bit_copy_unpred): New.
2491 (thumb2_decode_ext_reg_ld_st): New.
2492 (thumb2_decode_svc_copro): New.
2493 (decode_thumb_32bit_store_single_data_item): New.
2494 (thumb_copy_pc_relative_32bit): New.
2495 (thumb_decode_pc_relative_32bit): New.
2496 (decode_thumb_32bit_ld_mem_hints): New.
2497 (thumb2_copy_table_branch): New
2498 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2499 instructions.
2500
2b16b2e3
YQ
25012011-09-18 Yao Qi <yao@codesourcery.com>
2502
2503 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2504 (install_b_bl_blx): Likewise.
2505
0f6f04ba
YQ
25062011-09-17 Yao Qi <yao@codesourcery.com>
2507
2508 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2509 (install_load_store): ... this. New.
2510 Change parameter BYTE to SIZE.
2511 (arm_copy_ldr_str_ldrb_strb): Update caller.
2512 (arm_decode_ld_st_word_ubyte): Update caller.
2513
e2d96639
YQ
25142011-09-17 Yao Qi <yao@codesourcery.com>
2515
2516 * infrun.c (displaced_step_fixup): Move some code ...
2517 (displaced_step_restore): ... here. New function.
2518 (handle_inferior_event): Cleanup displaced stepping state for both
2519 child and parent when get forked or vforked event.
2520 * regcache.c (get_thread_arch_aspace_regcache): New function.
2521 get_thread_arch_regcache (): Call it.
2522
a8123151
JB
25232011-09-16 Joel Brobecker <brobecker@adacore.com>
2524
2525 * ada-tasks.c (print_ada_task_info): New function, merging
2526 short_task_info and info_tasks together. Reimplement using
2527 ui-out instead of printing to stdout directly. Move the code
2528 building and checking the task list here, instead of leaving it
2529 in info_tasks_command.
2530 (info_task): Move the code building and checking the task
2531 list here, instead of leaving it in info_tasks_command.
2532 (info_tasks_command): Delete code building and checking
2533 the task list - moved elsewhere. Update calls to info_tasks
2534 and info_task.
2535
fbf06824
JB
25362011-09-16 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2539
34a0bc90
JB
25402011-09-16 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2543
79779fa9
JB
25442011-09-16 Joel Brobecker <brobecker@adacore.com>
2545
2546 * ada-lang.h (ada_build_task_list): Remove parameter
2547 `warn_if_null'.
2548 * ada-tasks.c (ada_build_task_list): Remove parameter
2549 `warn_if_null'. Adjust implementation and documentation.
2550 (valid_task_id, ada_get_environment_task)
2551 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2552 (info_tasks_command): Adjust implementation.
2553 (task_command): Likewise.
2554 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2555 to ada_build_task_list.
2556
e225eb91
JB
25572011-09-16 Joel Brobecker <brobecker@adacore.com>
2558
2559 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2560 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2561 (ada_tasks_inferior_data_handle): New static global.
2562 (get_ada_tasks_inferior_data): New function.
2563 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2564 (ada_get_environment_task, iterate_over_live_ada_tasks)
2565 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2566 Adjust.
2567 (ada_set_current_inferior_known_tasks_addr): New function.
2568 (read_known_tasks, ada_build_task_list, short_task_info)
2569 (info_tasks, info_task, info_tasks_command, task_command_1)
2570 (task_command, ada_task_list_changed): Adjust.
2571 (ada_tasks_invalidate_inferior_data): New function.
2572 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2573 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2574 * ada-lang.h (struct inferior): Add declaration.
2575 (ada_task_list_changed): Update profile.
2576 * remote-wtx-pd.c: #include "inferior.h".
2577 (switch_to_pd_internal): Update call to ada_task_list_changed.
2578
6da9ca05
JB
25792011-09-16 Joel Brobecker <brobecker@adacore.com>
2580
2581 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2582 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2583 (atcb_fieldno): Delete these static globals.
2584 (struct ada_tasks_pspace_data): New struct.
2585 (ada_tasks_pspace_data_handle): New static global.
2586 (get_ada_tasks_pspace_data): New function.
2587 (ada_tasks_invalidate_pspace_data): New function.
2588 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2589 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2590 (_initialize_tasks): Create this module's per-progspace
2591 data handle.
2592
dccd3cbd
JB
25932011-09-16 Joel Brobecker <brobecker@adacore.com>
2594
2595 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2596
f877b031
TG
25972011-09-16 Tristan Gingold <gingold@adacore.com>
2598
2599 * fork-child.c (fork_inferior): Update comment. Use alloca
2600 instead of xmalloc for argv. Move len and shell_command
2601 declarations in the block where they are used.
2602 Only call execvp. Factorize failure code.
2603
ae0c443d
JK
26042011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2605
2606 Code cleanup.
2607 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2608 `exp_element' instead of an element of the same and make the function
2609 static.
2610 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2611 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2612 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2613 Change argument of `write_exp_elt' function call.
2614 Remove extra spaces from comments.
2615 * parser-defs.h (write_exp_elt): Remove prototype.
2616
5af65ec0
PK
26172011-09-15 Paul Koning <paul_koning@dell.com>
2618
2619 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2620 count of item appended to list.
2621 * python/py-type.c (typy_fields): Likewise.
2622
72be8ccc
PK
26232011-09-15 Paul Koning <paul_koning@dell.com>
2624
883640a8 2625 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2626
92f6badc
KP
26272011-09-15 Kevin Pouget <kevin.pouget@st.com>
2628
2629 PR threads/12628
2630 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2631 processes with multiple threads.
2632 (inf_has_multiple_thread_cb): New function.
2633 (inf_has_multiple_threads): New function.
2634
0672bf41 26352011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2636
2637 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2638 * python/py-inferior.c (GdbMethods): New Python method definition.
2639
6839b47f
KP
26402011-09-15 Kevin Pouget <kevin.pouget@st.com>
2641
2642 Handle multiple breakpoint hits in Python interface:
2643 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2644 variable to breakpoints.
2645 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2646 bps instead of single breakpoint. Fix some space typos.
2647 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2648 variable to breakpoints.
2649
672f9b60
KP
26502011-09-15 Kevin Pouget <kevin.pouget@st.com>
2651
2652 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2653 note if the breakpoint is internal.
2654
43675ae4
KP
26552011-09-15 Kevin Pouget <kevin.pouget@st.com>
2656
0672bf41 2657 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2658
15148d6a
PA
26592011-09-14 Pedro Alves <pedro@codesourcery.com>
2660
2661 * infrun.c (prepare_for_detach, wait_for_inferior)
2662 (fetch_inferior_event): Don't flush the register cache.
2663 * remote.c (struct stop_reply) <regcache>: Add comment.
2664
d83e736b
JK
26652011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2666
2667 Remove excessive DWARF expressions memory duplication.
2668 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2669 for block.data.
2670 (indirect_pieced_value): Remove variable result. Remove variable
2671 back_to and its use for baton.data.
2672 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2673 block.data.
2674 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2675 Update the function comment.
2676
c65b3e0d
PA
26772011-09-13 Pedro Alves <pedro@codesourcery.com>
2678
2679 * inferior.h (ALL_INFERIORS): New.
2680 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2681 for a stopped thread.
2682 (thread_db_find_new_threads): Look for threads in all inferiors.
2683
a1398e0c
PA
26842011-09-13 Pedro Alves <pedro@codesourcery.com>
2685
2686 * breakpoint.c (update_watchpoint): Handle the case of the
2687 watchpoint to update not being in the breakpoint list yet.
2688 (hw_watchpoint_use_count): New, factored out from
2689 hw_watchpoint_used_count.
2690 (hw_watchpoint_used_count): Rename to ...
2691 (hw_watchpoint_used_count_others): ... this. Add `except'
2692 parameter. Don't count resources of `except'. Use
2693 hw_watchpoint_use_count.
2694
30596231
PA
26952011-09-13 Pedro Alves <pedro@codesourcery.com>
2696
2697 * gdbthread.h (enum thread_state): Moved here.
2698 (struct thread_info): Rename `executing_' field to `executing' and
2699 `state_' to `state'.
2700 * thread.c (enum thread_state): Moved to gdbthread.h.
2701 (new_thread, add_thread_silent, delete_thread_1)
2702 (any_live_thread_of_process, thread_alive, set_running)
2703 (set_running, is_thread_state, any_running, is_executing)
2704 (set_executing, finish_thread_state, print_thread_info)
2705 (do_captured_thread_select): Adjust.
2706
bede5f5f
JK
27072011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2708
2709 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2710 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2711
4801a9a3
PA
27122011-09-12 Pedro Alves <pedro@codesourcery.com>
2713 Matt Rice <ratmice@gmail.com>
2714
2715 PR gdb/13175
2716
2717 * interps.c (struct interp) <interpreter_out>: Delete field.
2718 (interp_new): Remove the data and uiout parameters and adjust.
2719 (interp_set): Only set the current_uiout from the interpreter's
2720 uiout after initializing the interpreter. Adjust call to
2721 init_proc.
2722 (interp_ui_out): Adjust to call procs->ui_out_proc.
2723 (interp_data, interp_name): New.
2724 * interps.h (interp_init_ftype): Add `self' parameter.
2725 (interp_ui_out_ftype): New typedef.
2726 (struct interp_procs) <ui_out_proc>: New method pointer.
2727 (interp_new): Remove the data and uiout parameters.
2728 (interp_data, interp_name): Declare.
2729 * tui/tui-interp.c (tui_init): Adjust prototype.
2730 (tui_ui_out): New.
2731 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2732 tui_out here. Adjust call to interp_new.
2733 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2734 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2735 (cli_ui_out): New.
2736 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2737 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2738 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2739 Initialize mi->uiout depending on the mi_version as extracted from
2740 the interpreter's name.
2741 (mi_ui_out): New.
2742 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2743 interp_new. Don't allocate the ui_out's of the interpreters here.
2744
d0afda03 27452011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2746
d0afda03 2747 * solib.c (solib_used): New function.
59145f8c
AR
2748 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2749 by another so_list object before freeing it.
2750
bdaf8d4a
JK
27512011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2752
2753 Code cleanup.
2754 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2755 values.
2756
df15bd07
JK
27572011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2758
2759 Code cleanup.
2760 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2761 (amd64_skip_xmm_prologue): ... this new function. Describe its
2762 parameters. No longer use amd64_prologue_line_bug.
2763 * defs.h (producer_is_gcc_ge_4): New declaration.
2764 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2765 (process_full_comp_unit): Update its caller. Remove
2766 amd64_prologue_line_bug initialization.
2767 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2768 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2769
25289eb2
PA
27702011-09-09 Pedro Alves <pedro@codesourcery.com>
2771
2772 * linux-nat.h (enum resume_kind): New.
2773 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2774 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2775 resume_stop on the new lwp.
25289eb2
PA
2776 (add_lwp): Set last_resume_kind as resume_continue by default.
2777 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2778 (resume_lwp): New, factored out from resume_callback. Also check
2779 for pending status in lp->waitstatus.
2780 (resume_callback): Reimplement.
2781 (resume_clear_callback): Set last_resume_kind as resume_stop.
2782 (resume_set_callback): Set last_resume_kind as resume_continue.
2783 (linux_nat_resume, linux_handle_extended_wait): Set
2784 last_resume_kind.
2785 (running_callback): Also check lp->waitstatus for pending events.
2786 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2787 is resume_step.
2788 (stop_and_resume_callback): Don't re-resume if the core wanted the
2789 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2790 using an invalidated pointer.
2791 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2792 SIGSTOPs if the core wanted the LWP to stop.
2793 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2794 wanted the lwp to stop. If the core wanted the lwp to stop, and
2795 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2796 of TARGET_SIGNAL_STOP.
2797 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2798 here. Instead, signal the lwp, and set the last_resume_kind to
2799 resume_stop.
2800
f687d035
PA
28012011-09-09 Pedro Alves <pedro@codesourcery.com>
2802
2803 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2804 -1 (error), if the lwp exits right after attaching.
2805
bc587a6b
DE
28062011-09-08 Doug Evans <dje@google.com>
2807
63d97a20
DE
2808 * py-cmd.c: Some minor formatting fixes.
2809 (gdbpy_parse_command_name): Rename text arg to name, make const.
2810 All callers updated.
2811 * python-internal.h (gdbpy_parse_command_name): Update.
2812
bc587a6b
DE
2813 * cli/cli-decode.c (add_cmd): Add comment.
2814
08711b9a
JK
28152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 PR breakpoints/12435
2818 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2819 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2820 * dwarf2read.c (process_full_comp_unit): Initialize
2821 amd64_prologue_line_bug.
2822 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2823
b2e7f004
JK
28242011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2825
2826 Fix TUI screen corruption.
2827 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2828 batch_flag.
2829
8afd712c
JK
28302011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2831
2832 * findvar.c (read_var_value): Never return NULL, throw an error
2833 instead. Update the function comment. State symbol name in the error
2834 messages.
2835 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2836 read_var_value.
2837 * stack.c (print_frame_args): Likewise.
2838 * valops.c (value_of_variable): Likewise.
2839
b99b5f66
JK
28402011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2841
2842 * stack.c (print_frame_args): New variable except. Wrap
2843 read_var_value and common_val_print into TRY_CATCH.
2844
85bc8cb7
JK
28452011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2848 caller to value_of_this.
2849 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2850 Twice.
2851 * valops.c (value_of_this): Remove parameter complain and variable ret.
2852 Update function comment. Never return NULL by this code.
2853 (value_of_this_silent): New function.
2854 * value.h (value_of_this): Remove parameter complain.
2855 (value_of_this_silent): New declaration.
2856
ede1849f
YQ
28572011-09-07 Yao Qi <yao@codesourcery.com>
2858
2859 * gdbthread.h (struct thread_info): Remove fields
2860 `stepping_through_solib_after_catch' and
2861 `stepping_through_solib_catchpoints'.
2862 * infrun.c (init_thread_stepping_state): Update.
2863 (process_event_stop_test, currently_stepping): Update.
2864 (currently_stepping_or_nexting_callback): Update.
2865
6aa27652
YQ
28662011-09-07 Yao Qi <yao@codesourcery.com>
2867
2868 * gdbthread.h (struct thread_info): Comment on field
2869 `step_after_step_resume_breakpoint'.
2870
00db5b94
PA
28712011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2872
2873 * remote.c (remote_console_output): Reindent.
2874
861152be
LM
28752011-09-06 Luis Machado <lgustavo@codesourcery.com>
2876
2877 * frame.c (has_stack_frames): Check for currently selected
2878 traceframe.
2879
ab821bc6
PA
28802011-09-06 Pedro Alves <pedro@codesourcery.com>
2881
2882 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2883 (set_async_annotation_level, set_async_prompt, pop_prompt)
2884 (push_prompt, new_async_prompt): Delete declarations.
2885 * top.h (get_prompt, set_prompt): Change prototype.
2886 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2887 declarations.
2888 * top.c (command_loop):
2889 (top_prompt): New global.
2890 (get_prefix, set_prefix, get_suffix, ): Delete.
2891 (get_prompt, set_prompt): Rewrite.
2892 (show_new_async_prompt): Rename to ...
2893 (show_prompt): ... this.
2894 (init_main): Adjust. Don't handle --annotate=2 here.
2895 * event-top.c (new_async_prompt): Delete.
2896 (the_prompts): Delete.
2897 (more_to_come): Make static.
2898 (display_gdb_prompt): Use top_level_prompt() to compute the top
2899 level prompt, and don't notify the before_prompt observers
2900 directly here. Always trick readline into not trying to display
2901 the prompt if sync_execution and displaying the primary prompt.
2902 If displaying a local/secondary prompt, always show it, even if
2903 sync_execution is set.
2904 (change_annotation_level): Delete.
2905 (top_level_prompt): New, based on change_annotation_level.
2906 (push_prompt, pop_prompt): Delete.
2907 (async_disable_stdin): No longer pushes prompt.
2908 (command_line_handler): No longer pushes or pops prompt. If more
2909 input is expected, call display_gdb_prompt with an explicit empty
2910 prompt.
2911 (async_stop_sig): Adjust.
2912 (set_async_annotation_level, set_async_prompt): Delete.
2913 * python/python.c (before_prompt_hook): Adjust.
2914
f1d90504
PA
29152011-09-05 Pedro Alves <pedro@codesourcery.com>
2916
2917 PR cli/13110
2918
2919 * infrun.c (fetch_inferior_event): Check if there's a selected
2920 thread before checking if the selected thread is executing.
2921
0f641c01
PA
29222011-09-05 Pedro Alves <pedro@codesourcery.com>
2923
2924 * inf-loop.c (execute_command): Don't check if the current thread
2925 if running before synchronously waiting for command completion.
2926 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2927 here.
2928 (normal_stop): Call async_enable_stdin here.
2929 * inf-loop.c (inferior_event_handler): Don't call
2930 async_enable_stdin, nor handle "set exec-done-display" here.
2931
30368258 29322011-09-04 Joel Brobecker <brobecker@adacore.com>
2933
2934 GDB 7.3.1 released.
2935
31916278
JB
29362011-09-04 Joel Brobecker <brobecker@adacore.com>
2937
2938 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2939
e8d56f18
JB
29402011-09-04 Joel Brobecker <brobecker@adacore.com>
2941
2942 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2943
5dd05d8c
JK
29442011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2945
2946 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2947
7d8e6458 29482011-09-02 Matt Rice <ratmice@gmail.com>
2949
2950 PR gdb/10720
2951 * event-top.c (cli_command_loop): Replace readline setup with
2952 direct call to display_gdb_prompt.
2953 (display_gdb_prompt): Do not call observer mechanism during
2954 synchronous execution.
2955
84636d28
PA
29562011-09-02 Pedro Alves <pedro@codesourcery.com>
2957
2958 * linux-nat.c (in_pid_list_p): New.
2959 (linux_record_stopped_pid): Delete.
2960 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2961 already attached to the LWP. Return an indication if so.
2962 (linux_nat_filter_event): Adjust.
2963 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2964 returning an indication to ignore this thread.
2965
b4a14fd0
PA
29662011-09-02 Pedro Alves <pedro@codesourcery.com>
2967
2968 * top.c: Include interps.h.
2969 (execute_command): If the target can async, but the interpreter is
2970 in sync mode, synchronously wait for the command to finish before
2971 returning.
2972 (execute_command_to_string): Force the interpreter to sync mode.
2973 * infrun.c: Include interps.h.
2974 (fetch_inferior_event): Don't restore the prompt yet if the
2975 interpreter is in sync mode.
2976 * interps.c (interpreter_async): New global.
2977 * interps.h (interpreter_async): Declare.
2978 * inf-loop.c: Include interps.h.
2979 (inferior_event_handler): Don't print the language change or run
2980 breakpoint commands yet if the interpreter in is sync mode.
2981 * main.c (captured_command_loop): Flip the interpreter to async
2982 mode.
2983 * cli/cli-script.c: Include interps.h.
2984 (execute_user_command, while_command, if_command): Force the
2985 interpreter to sync mode.
2986 * python/python.c: Include interps.h.
2987 (python_command, execute_gdb_command): Force the interpreter to
2988 sync mode.
2989
c709acd1
PA
29902011-09-02 Pedro Alves <pedro@codesourcery.com>
2991
2992 * value.c (show_convenience): Catch errors thrown while printing
2993 each internal variable.
2994 * infrun.c (validate_siginfo_access): New function.
2995 (siginfo_value_read, siginfo_value_write): Call it.
2996
9655e943
JK
29972011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2998
2999 Revert:
3000 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3001 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3002 attribute.
3003
cb457ae2
YQ
30042011-08-29 Yao Qi <yao@codesourcery.com>
3005
3006 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3007 (cmp_name): New.
3008 (enable_break2): Update caller.
3009 * solib-frv.c (bfd_lookup_symbol): Removed.
3010 (cmp_name): New.
3011 (enable_break2): Update caller.
3012 * solib-pa64.c (bfd_lookup_symbol): Removed.
3013 (cmp_name): New.
3014 * solib-svr4.c (bfd_lookup_symbol): Removed.
3015 (cmp_name_and_sec_flags): New.
3016 (enable_break): Update caller.
3017 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3018 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3019 (gdb_bfd_lookup_symbol): New.
3020 * solib.h: Functions declarations.
3021
83d1a36a
YQ
30222011-08-29 Yao Qi <yao@codesourcery.com>
3023
3024 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3025 and solib-dsbt.o.
3026
c04b3e8f
JK
30272011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3028
3029 Fix TUI stepi on code without symbols.
3030 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3031 current PC instead.
3032
cb0fd152
JK
30332011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 Code cleanup.
3036 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3037 and the static keyword.
3038 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3039 Make prefix an array.
3040 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3041 * mi/mi-main.c (get_register): Remove stb initialization and the static
3042 keyword.
3043
91174723
JK
30442011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3045
3046 Code cleanup - make mi_opt const.
3047 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3048 opts const.
3049 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3050 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3051 (mi_cmd_env_dir): Likewise.
3052 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3053 (mi_cmd_target_file_put): Likewise.
3054 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3055 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3056 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3057 (mi_valid_noargs): Make opts const.
3058 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3059 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3060 (mi_cmd_data_read_memory): Likewise.
3061 (mi_cmd_data_read_memory_bytes): Likewise.
3062 (mi_cmd_data_write_memory): Likewise.
3063
5068b8e8 30642011-08-26 Matt Rice <ratmice@gmail.com>
3065
3066 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3067 bcache_xmalloc, replace bcache_xmalloc with call to
3068 psymbol_bcache_init for psymbol_cache.
3069 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3070
a4f2ce05
JK
30712011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3072
3073 * inf-loop.c (inferior_event_handler): Add exception_print in
3074 INF_EXEC_COMPLETE.
3075
353d1d73
JK
30762011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3079 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3080 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3081 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3082 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3083 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3084 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3085 * infrun.c (fetch_inferior_event): Call
3086 make_bpstat_clear_actions_cleanup.
3087 * top.c (execute_command): New variable cleanup_if_error, call
3088 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3089 * utils.c (do_bpstat_clear_actions_cleanup)
3090 (make_bpstat_clear_actions_cleanup): New functions.
3091
3ced3da4
PA
30922011-08-26 Pedro Alves <pedro@codesourcery.com>
3093
3094 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3095 either the parent or the child forks. Rename a couple locals.
3096
a9f4bb21
PA
30972011-08-26 Pedro Alves <pedro@codesourcery.com>
3098
3099 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3100 library call. Avoid reading the `status' local if all waitpid
3101 calls failed.
3102
e5798bef
PA
31032011-08-26 Pedro Alves <pedro@codesourcery.com>
3104
3105 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3106 opening /proc/PID/task always succeeds.
3107
edb2aadf
AR
31082011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3109
3110 * linespec.c (symtab_from_filename): Check for the end of string.
3111
0d932b2f
MK
31122011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3113
3114 PR mi/11912
3115 * varobj.c (cplus_describe_child): Add the keyword
3116 'class' to the output of the method when dealing
3117 with a cast to a base class.
3118
e93ca019
JK
31192011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 No functionality change.
3122 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3123 function comment a reference, new variables tp and bs, move here code
3124 from throw_exception.
3125 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3126 describe it in the comment.
3127 * exceptions.c (throw_exception): Remove variable tp, move the code for
3128 bpstat_clear_actions to bpstat_clear_actions.
3129
13da1c97
LM
31302011-08-24 Luis Machado <lgustavo@codesourcery.com>
3131
3132 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3133 * linux-nat.c: Include linux-procfs.h.
3134 (linux_proc_get_tgid): Move to ...
3135 * common/linux-procfs.c: ... here. New file.
3136 * common/linux-procfs.h: New file.
3137 * linux-thread-db.c: Include linux-procfs.h.
3138 * Makefile.in: Update dependencies.
3139 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3140 * config/arm/linux.mh: Likewise.
3141 * config/i386/linux.mh: Likewise.
3142 * config/i386/linux64.mh: Likewise.
3143 * config/ia64/linux.mh: Likewise.
3144 * config/m32r/linux.mh: Likewise.
3145 * config/m68k/linux.mh: Likewise.
3146 * config/mips/linux.mh: Likewise.
3147 * config/pa/linux.mh: Likewise.
3148 * config/pa/linux.mh: Likewise.
3149 * config/powerpc/linux.mh: Likewise.
3150 * config/powerpc/ppc64-linux.mh: Likewise.
3151 * config/powerpc/spu-linux.mh: Likewise.
3152 * config/sparc/linux.mh: Likewise.
3153 * config/sparc/linux64.mh: Likewise.
3154 * config/xtensa/linux.mh: Likewise.
3155
4e5c165d
HZ
31562011-08-24 Hui Zhu <teawater@gmail.com>
3157
3158 * tracepoint.c (cond_string_is_same): New function.
3159 (find_matching_tracepoint): Add condition check
3160 by cond_string_is_same.
3161
6e2f5b22
JK
31622011-08-23 Josh Matthews <josh@joshmatthews.net>
3163
3164 Fix build error in Darwin port.
3165 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3166
abf85f46
JK
31672011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3168
3169 Code cleanup.
3170 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3171 (command_line_is_silent): New function.
3172 (bpstat_do_actions_1): No longer use commands_left, use
3173 command_line_is_silent for commands.
3174 (bpstat_alloc): Remove clearing of commands_left.
3175 (bpstat_stop_status): Remove initialization of commands_left, use
3176 command_line_is_silent.
3177 * breakpoint.h (struct bpstats): Remove commands_left.
3178
3a93a0c2
KS
31792011-08-18 Keith Seitz <keiths@redhat.com>
3180
3181 PR c++/12266
3182 * cp-name-parser.y (struct demangle_info): Remove unused
3183 member PREV.
3184 (d_grab): Likewise.
3185 (allocate_info): Change return type to struct demangle_info *.
3186 Always allocate a new demangle_info.
3187 Remove unused PREV pointer.
3188 (cp_new_demangle_parse_info): New function.
3189 (cp_demangled_name_parse_free): New function.
3190 (do_demangled_name_parse_free_cleanup): New function.
3191 (make_cleanup_cp_demangled_name_parse_free): New function.
3192 (cp_demangled_name_to_comp): Change return type to
3193 struct demangle_parse_info *.
3194 Allocate a new storage for each call.
3195 (main): Update usage for cp_demangled_name_to_comp
3196 API change.
3197 * cp-support.h (struct demangle_parse_info): New structure.
3198 (cp_demangled_name_to_comp): Update API change for
3199 return type.
3200 (cp_new_demangle_parse_info): Declare.
3201 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3202 (cp_demangled_name_parse_free): Declare.
3203 * cp-support.c (cp_canonicalize_string): Update API
3204 change for cp_demangled_name_to_comp.
3205 (mangled_name_to_comp): Likewise.
3206 Return struct demangle_parse_info, too.
3207 (cp_class_name_from_physname): Update mangled_name_to_comp
3208 API change.
3209 (method_name_from_physname): Likewise.
3210 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3211 (cp_remove_params): Likewise.
3212 * python/py-type.c (typy_legacy_template_argument): Likewise.
3213
3214 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3215 (cp_merge_demangle_parse_infos): Declare.
3216 * cp-support.c (ignore_typedefs): New file global.
3217 (copy_string_to_obstack): New function.
3218 (inspect_type): New function.
3219 (replace_typedefs): New function.
3220 (replace_typedefs_qualified_name): New function.
3221 (cp_canonicalize_string_no_typedefs): New function.
3222 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3223 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3224 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3225 instead of cp_canonicalize_string.
3226 (find_method): Likewise.
3227 (decode_compound): Before looking up the name, call
3228 cp_canonicalize_string_no_typedefs.
3229 (decode_variable): Likewise.
3230
fa3a4f15
PM
32312011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3232 Tom Tromey <tromey@redhat.com>
3233 Matt Rice <ratmice@gmail.com>
3234
3235 * python/lib/gdb/prompt.py: New file.
3236 * python/lib/gdb/command/prompt.py: New file.
3237 * NEWS: Document set extended-prompt and gdb.prompt library
3238
85661b1e
YQ
32392011-08-16 Yao Qi <yao@codesourcery.com>
3240
3241 * tic6x-linux-tdep.c: Move const arrays definition from here...
3242 * tic6x-tdep.c: to here ...
3243
11315641
YQ
32442011-08-14 Yao Qi <yao@codesourcery.com>
3245
3246 * NEWS: New port to Texas Instruments TMS320C6x.
3247
8cd64e00
YQ
32482011-08-14 Andrew Jenner <andrew@codesourcery.com>
3249 Bernd Schmidt <bernds@codesourcery.com>
3250 Yao Qi <yao@codesourcery.com>
3251
3252 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3253 * solib-dsbt.c: New file. Support DSBT shared object.
3254 * tic6x-linux-tdep.c: New file.
3255 * tic6x-tdep.c: New file.
3256 * tic6x-tdep.h: New file.
3257
78d85199
YQ
32582011-08-14 Andrew Stubbs <ams@codesourcery.com>
3259 Yao Qi <yao@codesourcery.com>
3260
3261 * remote.c (PACKET_qXfer_fdpic): New enum value.
3262 (remote_protocol_features): Add qXfer:fdpic:read packet.
3263 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3264 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3265 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3266
224bbe49
YQ
32672011-08-14 Yao Qi <yao@codesourcery.com>
3268
3269 Target description for tic6x.
3270 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3271 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3272 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3273 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3274 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3275 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3276 * features/tic6x-c64xp-linux.xml: New.
3277 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3278 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3279 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3280 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3281 * regformats/tic6x-c64xp.dat,
3282 regformats/tic6x-c62x-linux.dat: Generated.
3283 * regformats/tic6x-c64x-linux.dat,
3284 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3285 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3286 features/tic6x-*.c files.
3287 Add regformats/tic6x-*.dat files.
3288
457e09f0
DE
32892011-08-12 Doug Evans <dje@google.com>
3290
3291 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3292 * python/py-symbol.c (sympy_get_type): New function.
3293 (symbol_object_getset): Add "type".
3294
d20c1c3f
PA
32952011-08-12 Pedro Alves <pedro@codesourcery.com>
3296
3297 PR tui/13073
3298
3299 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3300 empty name.
3301 (tui_show_register_group): Don't store a byte buffer in the data
3302 element's value.
3303 (tui_register_format): Skip registers with an empty name.
3304 (tui_get_register): Store a struct value in the data element's
3305 value field instead of a byte buffer holding the raw register
3306 contents. Account for optimized-out and unavailable registers
3307 when comparing register contents.
3308
9d8fa392
PA
33092011-08-09 Pedro Alves <pedro@codesourcery.com>
3310
3311 * printcmd.c (current_display_number): Update comment.
3312 (disable_current_display_cleanup): Delete.
3313 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3314 catch errors thrown while evaluating and printing the display.
3315
401a70b8
TT
33162011-08-09 Tom Tromey <tromey@redhat.com>
3317
3318 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3319
7f86f058
PA
33202011-08-09 Pedro Alves <pedro@codesourcery.com>
3321
94b71cca 3322 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3323 * maint.c (maintenance_command): Ditto.
3324 * somread.c (som_symtab_read): Ditto.
3325 * solib.c (solib_find, solib_map_sections, update_solib_list)
3326 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3327 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3328 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3329 * solib-irix.c (locate_base, disable_break, enable_break)
3330 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3331 (irix_current_sos, irix_open_symbol_file_object)
3332 (irix_special_symbol_handling): Ditto.
3333 * solib-sunos.c (locate_base, first_link_map_member)
3334 (sunos_current_sos, disable_break, enable_break)
3335 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3336 Ditto.
3337 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3338 (open_symbol_file_object, svr4_current_sos, enable_break)
3339 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3340 Ditto.
3341 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3342 (frv_current_sos, enable_break, frv_special_symbol_handling)
3343 (frv_solib_create_inferior_hook): Ditto.
3344 * solist.h (struct target_so_ops): Extend the comments of the
3345 special_symbol_handling, current_sos and open_symbol_file_object
3346 methods.
3347
5e239b84
PM
33482011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3349
3350 * python/lib/gdb/__init__.py: Auto-load files in command and
3351 function directories.
3352 * python/python.c (finish_python_initialization): Use
3353 os.path.join.
3354 * python/lib/gdb/command/pretty_printers.py: Self register
3355 command.
3356 * NEWS: Document auto-loading.
3357
b6cede78
JK
33582011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3359
3360 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3361 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3362 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3363
29d0bb3d
TT
33642011-08-08 Tom Tromey <tromey@redhat.com>
3365
3366 * breakpoint.c (clean_up_filters): Remove.
3367 (catch_syscall_split_args): Use VEC_cleanup.
3368
2f7fb8e4
JK
33692011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3372 (main): Uncomment "Demangling error\n".
3373
d6c10e95
PP
33742011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3375
3376 * solib-target.c (segment_attributes): Make them static.
3377 (section_attributes, library_children, library_attributes): Likewise.
3378 (library_list_children, library_list_attributes): Likesise.
3379 (library_list_elements): Likewise.
3380
af6e93b2
PA
33812011-08-05 Pedro Alves <pedro@codesourcery.com>
3382
3383 * exceptions.c (throw_exception): Don't disable the current
3384 display.
3385 * printcmd.c (disable_current_display_cleanup): New function.
3386 (do_one_display): Install a cleanup to disable the current display
3387 if doing the display throws.
3388
6a1b1664
EZ
33892011-08-05 Eli Zaretskii <eliz@gnu.org>
3390
3391 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3392 initialization of the tp_new member to the corresponding
3393 gdbpy_initialize_* function.
3394 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3395 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3396 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3397 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3398 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3399
31a0ae49
JK
34002011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3401
3402 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3403 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3404 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3405 references to current_uiout.
3406
e0dd0826
PA
34072011-08-04 Pedro Alves <pedro@codesourcery.com>
3408
3409 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3410 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3411 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3412 * top.c (gdb_readline_wrapper): Adjust.
3413 * tui/tui-interp.c (tui_command_loop):
3414 (_initialize_tui_interp): Don't install it.
3415
79a45e25
PA
34162011-08-04 Pedro Alves <pedro@codesourcery.com>
3417
3418 * ui-out.h (uiout): Rename to ...
3419 (current_uiout): ... this.
3420 * ui-out.c (uiout): Rename to ...
3421 (current_uiout): ... this.
3422 * ada-lang.c (print_it_exception, print_one_exception)
3423 (print_mention_exception): Adjust.
3424 * breakpoint.c (watchpoint_check): Adjust.
3425 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3426 (default_collect_info, watchpoints_info, print_one_catch_fork)
3427 (print_one_catch_vfork, print_one_catch_syscall)
3428 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3429 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3430 (print_it_watchpoint, print_mention_watchpoint)
3431 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3432 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3433 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3434 (bkpt_print_mention, momentary_bkpt_print_it)
3435 (tracepoint_print_mention, update_static_tracepoint)
3436 (tracepoints_info, save_breakpoints): Adjust.
3437 * cli-out.c (field_separator): Adjust.
3438 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3439 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3440 * frame.c (get_current_frame): Adjust.
3441 * infcmd.c (run_command_1, print_return_value): Adjust.
3442 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3443 * infrun.c (print_end_stepping_range_reason): Adjust.
3444 (print_signal_exited_reason, print_exited_reason): Adjust.
3445 (print_signal_received_reason, print_no_history_reason): Adjust.
3446 * interps.c (interp_set): Adjust.
3447 * osdata.c (info_osdata_command): Adjust.
3448 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3449 * remote-fileio.c (remote_fileio_request): Adjust.
3450 * remote.c (show_remote_cmd): Adjust.
3451 * solib.c (info_sharedlibrary_command): Adjust.
3452 * source.c (print_source_lines_base): Adjust.
3453 * stack.c (print_stack_frame): Adjust.
3454 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3455 * symfile-mem.c (add_vsyscall_page): Adjust.
3456 * symfile.c (load_progress, generic_load)
3457 (print_transfer_performance): Adjust.
3458 * thread.c (info_threads_command, restore_selected_frame)
3459 (thread_command): Adjust.
3460 * top.c (make_cleanup_restore_ui_file): Adjust.
3461 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3462 (print_one_static_tracepoint_marker): Adjust.
3463 * cli/cli-cmds.c (print_disassembly): Adjust.
3464 * cli/cli-decode.c (print_doc_line): Adjust.
3465 * cli/cli-interp.c (safe_execute_command): Adjust.
3466 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3467 (handle_redirections): Adjust.
3468 * cli/cli-script.c (show_user_1): Adjust.
3469 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3470 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3471 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3472 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3473 (mi_cmd_env_dir): Adjust.
3474 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3475 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3477 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3478 (list_args_or_locals): Adjust.
3479 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3480 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3481 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3482 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3483 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3484 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3485 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3486 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3487 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3488 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3489 (list_available_thread_groups, mi_cmd_list_thread_groups)
3490 (mi_cmd_data_list_register_names)
3491 (mi_cmd_data_list_changed_registers)
3492 (mi_cmd_data_list_register_values, get_register)
3493 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3494 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3495 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3496 (mi_execute_command, mi_load_progress): Adjust.
3497 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3498 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3499 Adjust.
3500 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3501 * tui/tui-interp.c (tui_command_loop): Adjust.
3502 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3503
f9679975
PA
35042011-08-04 Pedro Alves <pedro@codesourcery.com>
3505
3506 * exceptions.c (struct catcher): Remove saved_uiout field.
3507 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3508 no longer save/resvore the global ui_out builder.
3509 (catch_exceptions_with_msg): Save/override/restore the global
3510 ui_out builder manually instead of relying on TRY_CATCH to do it.
3511 (catch_errors): Save/restore the global ui_out builder manually
3512 instead of relying on TRY_CATCH to do it.
3513 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3514 parameter.
3515 (TRY_CATCH): Adjust.
3516 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3517 the global ui_out builder manually instead of relying on TRY_CATCH
3518 to do it.
3519
934709f0
PW
35202011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3521
3522 * breakpoint.c (update_global_location_list): Ensure
3523 invariant 'first loc marked not duplicated and inserted,
3524 following locs marked duplicated/not inserted' is respected
3525 for multiple locations at the same address.
3526 (unduplicated_should_be_inserted) New function.
3527 (swap_insertion) New function.
3528
2421fe6f
JK
35292011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 * stack.c (print_frame_arguments_choices): Comment typo fix.
3532
3fbb6ffa
TJB
35332011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3534
3535 Revert:
3536 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3537 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3538 argument. Update callers.
3539
fbe12357
PP
35402011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3541
3542 PR gdb/13045
3543 * doublest.c (convert_doublest_to_floatformat): Pass correct
3544 mantissa length to put_field.
3545
b1d288d3
JK
35462011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3547
3548 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3549 exception_print code path.
3550 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3551 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3552 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3553
311b5970
JK
35542011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 Code cleanup.
3557 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3558 Remove, merge them into ...
3559 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3560 variable args and its initialization.
3561 (struct print_args_args, print_args_stub): Remove, merge them into
3562 print_frame.
3563 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3564 them into ...
3565 (do_gdb_disassembly): ... here. Remove variable args and its
3566 initialization.
3567 (print_frame): Remove variable args and its initialization, new
3568 variable gdbarch and numargs (from print_args_stub), inline here
3569 print_args_stub with a TRY_CATCH.
3570 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3571 them into ...
3572 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3573 New variable e, remove variable btargs and its initialization.
311b5970 3574
484a26a8
TG
35752011-08-01 Tristan Gingold <gingold@adacore.com>
3576
3577 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3578
c30eee59
TJB
35792011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3580
3581 * breakpoint.c (insert_bp_location): Document return value.
3582 (insert_breakpoint_locations): Fix documentation.
3583 (remove_breakpoints): Add documentation.
3584
f116073b
TJB
35852011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3586
3587 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3588 argument. Update callers.
3589
65aa373f
JK
35902011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3591
3592 * stack.c (print_frame_info): Comment typo fix.
3593
a50242fb
SA
35942011-07-29 Sterling Augustine <saugustine@google.com>
3595
3596 * MAINTAINERS (Write After Approval): Add myself to the list.
3597
267f6504
TT
35982011-07-29 Tom Tromey <tromey@redhat.com>
3599
3600 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3601 (library_list_start_segment): Update.
3602 (library_list_start_section): Update.
3603
00bd41d6
PM
36042011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3605
3606 * varobj.c (value_get_print_value): Move hint check later into the
3607 function. Comment function. Free thevalue before reusing it.
3608
18a46dbe
JK
36092011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 Pedro Alves <pedro@codesourcery.com>
3611
3612 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3613 value_one.
3614 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3615 Assert the result kind.
3616 * value.h (value_one): Remove parameter lv.
3617
bb7da2bf
JK
36182011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Fix crash on lval_computed values.
3621 * valops.c (value_zero): Use not_lval for lval_computed.
3622
2d5213f8
TT
36232011-07-27 Tom Tromey <tromey@redhat.com>
3624
3625 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3626 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3627
11081198
JK
36282011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3631 "ptype" by their typedefs difference.
3632
3c6e0cb3
JK
36332011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3634
3635 * dwarf2expr.c (ctx_no_read_reg): New function.
3636 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3637 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3638 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3639 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3640
523f3620
JK
36412011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3642
3643 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3644 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3645 file.
3646 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3647 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3648 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3649 (ctx_no_get_base_type): Move the functions here.
3650 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3651 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3652 (ctx_no_get_base_type): New declarations.
3653
24d3216f
TT
36542011-07-27 Tom Tromey <tromey@redhat.com>
3655
3656 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3657 entries.
3658 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3659 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3660
5005c8a9
PP
36612011-07-26 Sterling Augustine <saugustine@google.com>
3662
3663 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3664 ULONGEST.
3665 (dump_bfd_file): Likewise.
3666
480a3f21
PW
36672011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3668
3669 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3670 (remote_hw_watchpoint_length_limit): New variable.
3671 (_initialize_remote) add set,show cmds for this new variable.
3672 * gdb.texinfo: document these new commands.
3673 * NEWS: Mention these new commands.
3674
efa80663
PA
36752011-07-26 Pedro Alves <pedro@codesourcery.com>
3676
3677 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3678 true for software watchpoints.
3679
dbdaa232 36802011-07-26 Joel Brobecker <brobecker@adacore.com>
3681
3682 GDB 7.3 released.
3683
cf2c3c16
TT
36842011-07-26 Tom Tromey <tromey@redhat.com>
3685
3686 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3687 * dwarf2read.c (read_indirect_string_at_offset): New function.
3688 (read_indirect_string): Use it.
3689 (dwarf_decode_macro_bytes): New function, taken from
3690 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3691 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3692 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3693 New functions.
3694 (struct dwarf2_per_objfile) <macro>: New field.
3695 (dwarf2_elf_names): Add .debug_macro.
3696 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3697 (dwarf2_locate_sections): Handle new section.
3698 (read_file_scope): Handle DW_AT_GNU_macros.
3699 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3700
1a532630
PP
37012011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3702
3703 * NEWS: Mention dcache configuration.
3704 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3705 (dcache_size, dcache_line_size): New variables.
3706 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3707 (struct dcache_block): Make it expandable.
3708 (struct dcache_struct): New field.
3709 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3710 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3711 (dcache_poke_byte, dcache_print_line): Adjust.
3712 (set_dcache_size, set_dcache_line_size): New functions.
3713 (set_dcache_command, show_dcache_command): New functions.
3714 (_initialize_dcache): Add new commands.
3715
2eff07b3
PP
37162011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3717
3718 * progspace.h (struct program_space): Add solib_add_generation.
3719 * infcmd.c (post_create_inferior): Only call solib_add if not
3720 already done.
3721 * solib.c (solib_add): Increment solib_add_generation.
3722
543305c9
JK
37232011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3724
3725 Fix implicit pointer offsets.
3726 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3727 ptr.OFFSET.
3728
c0a91b2b
TT
37292011-07-25 Tom Tromey <tromey@redhat.com>
3730
3731 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3732 const.
3733 (ada_exception_sal): Make 'ops' const.
3734 (ada_decode_exception_location): Likewise.
3735 (ada_decode_assert_location): Likewise.
3736 (catch_assert_command): Update.
3737 (catch_ada_exception_command): Update.
3738 (create_ada_exception_catchpoint): Make 'ops' const.
3739 * breakpoint.c (set_raw_breakpoint_without_location)
3740 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3741 const.
3742 (create_internal_breakpoint): Update.
3743 (init_raw_breakpoint_without_location): Make 'ops' const.
3744 (init_raw_breakpoint, init_catchpoint)
3745 (create_fork_vfork_event_catchpoint)
3746 (create_syscall_event_catchpoint, init_breakpoint_sal)
3747 (create_breakpoint_sal, create_breakpoints_sal)
3748 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3749 * breakpoint.h (struct breakpoint) <ops>: Now const.
3750 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3751 const.
3752
6cb9b55b
PP
37532011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3754
3755 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3756
d9b3f62e
PA
37572011-07-25 Pedro Alves <pedro@codesourcery.com>
3758
3759 * breakpoint.h (print_recreate_thread): Declare.
3760 (struct breakpoint): Move step_count, pass_count,
3761 number_on_target, static_trace_marker_id,
3762 static_trace_marker_id_idx ...
3763 (struct tracepoint): ... to this new struct.
3764 (get_tracepoint, get_tracepoint_by_number_on_target)
3765 (get_tracepoint_by_number): Change return type to struct
3766 tracepoint pointer.
3767 * breakpoint.c (is_tracepoint_type): New, factored out from
3768 is_tracepoint.
3769 (is_tracepoint): Adjust.
3770 (print_one_breakpoint_location): Cast to struct tracepoint as
3771 necessary, and adjust.
3772 (print_recreate_catch_fork, print_recreate_catch_vfork)
3773 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3774 print_recreate_thread.
3775 (init_breakpoint_sal): New, factored out from
3776 create_breakpoint_sal.
3777 (create_breakpoint_sal): Reimplement.
3778 (create_breakpoint): Allocate a struct tracecepoint if the caller
3779 wanted a tracepoint. Use init_breakpoint_sal and
3780 install_breakpoint.
3781 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3782 (print_recreate_masked_watchpoint)
3783 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3784 (tracepoint_print_one_detail): Adjust.
3785 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3786 Dump the pass count here.
3787 (update_static_tracepoint): Adjust.
3788 (addr_string_to_sals): Adjust.
3789 (create_tracepoint_from_upload): Adjust. Change return type to
3790 struct tracepoint pointer.
3791 (trace_pass_set_count): Change parameter type to struct tracepoint
3792 pointer, and adjust.
3793 (trace_pass_command): Adjust.
3794 (get_tracepoint, get_tracepoint_by_number_on_target)
3795 (get_tracepoint_by_number): Change return type to struct
3796 tracepoint pointer, and adjust.
3797 (print_recreate_thread): New, factored out from save_breakpoints.
3798 (save_breakpoints): Don't print thread and task and passcount
3799 recreation here.
3800 * remote.c (remote_download_tracepoint): Adjust.
3801 * tracepoint.c (trace_actions_command, validate_actionline)
3802 (start_tracing, tfind_1, trace_find_tracepoint_command)
3803 (trace_dump_command): Adjust.
3804 (find_matching_tracepoint): Change return type to struct
3805 tracepoint pointer, and adjust.
3806 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3807 (tfile_trace_find, tfile_fetch_registers): Adjust.
3808 * tracepoint.h (create_tracepoint_from_upload): Change return type
3809 to struct tracepoint pointer.
3810 * ada-lang.c (print_recreate_exception): Call
3811 print_recreate_thread.
3812 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3813
3a5c3e22
PA
38142011-07-25 Pedro Alves <pedro@codesourcery.com>
3815
3816 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3817 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3818 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3819 watchpoint_thread, watchpoint_triggered ...
3820 (struct watchpoint): ... to this new struct.
3821 (is_watchpoint): Declare.
3822 (install_breakpoint): Add new `internal' parameter.
3823 * breakpoint.c (is_watchpoint): Delete declaration.
3824 (set_breakpoint_condition): Handle watchpoints.
3825 (is_watchpoint): Make public.
3826 (watchpoint_in_thread_scope): Change parameter type to struct
3827 watchpoint.
3828 (watchpoint_del_at_next_stop): Change parameter type to struct
3829 watchpoint. Remove assertion. Adjust.
3830 (update_watchpoint): Ditto.
3831 (insert_breakpoints, breakpoint_init_inferior)
3832 (watchpoints_triggered, watchpoint_check)
3833 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3834 (bpstat_stop_status, print_one_breakpoint_location)
3835 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3836 to struct watchpoint as necessary, and adjust.
3837 (install_breakpoint): Add `internal' argument. If true, don't
3838 mention the new breakpoint. Use set_breakpoint_number.
3839 (create_fork_vfork_event_catchpoint)
3840 (create_syscall_event_catchpoint): Adjust.
3841 (dtor_watchpoint): New.
3842 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3843 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3844 (print_it_watchpoint, print_mention_watchpoint)
3845 (print_recreate_watchpoint, insert_masked_watchpoint)
3846 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3847 (print_one_detail_masked_watchpoint)
3848 (print_mention_masked_watchpoint)
3849 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3850 necessary, and adjust.
3851 (watch_command_1): Allocate and initialize a struct watchpoint
3852 instead of a struct breakpoint. Use install_breakpoint.
3853 (catch_exec_command_1): Adjust.
3854 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3855 fields.
3856 (delete_breakpoint, enable_breakpoint_disp)
3857 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3858 as necessary, and adjust.
3859 (initialize_breakpoint_ops): Install dtor_watchpoint as
3860 watchpoints' dtor method.
3861 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3862 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3863 to struct watchpoint as necessary, and adjust.
3864
2060206e
PA
38652011-07-25 Pedro Alves <pedro@codesourcery.com>
3866
3867 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3868 the the base class ops table.
3869 (catch_exception_breakpoint_ops)
3870 (catch_exception_unhandled_breakpoint_ops)
3871 (catch_assert_breakpoint_ops): Don't statically initialize.
3872 (initialize_ada_catchpoint_ops): New.
3873 (_initialize_ada_language): Call it.
3874 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3875 (bkpt_breakpoint_ops): Forward declare.
3876 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3877 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3878 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3879 (masked_watchpoint_breakpoint_ops)
3880 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3881 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3882 base class ops table.
3883 (null_re_set, null_check_status, null_works_in_software_mode)
3884 (null_resources_needed, null_print_one_detail): Delete.
3885 (bkpt_dtor): Rename to ...
3886 (base_breakpoint_dtor): ... this. Make static.
3887 (bkpt_allocate_location): Rename to ...
3888 (base_breakpoint_allocate_location): ... this. Make static.
3889 (base_breakpoint_re_set): New.
3890 (internal_error_pure_virtual_called): New.
3891 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3892 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3893 (base_breakpoint_works_in_software_mode)
3894 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3895 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3896 (base_breakpoint_print_recreate): New functions.
3897 (base_breakpoint_ops): New global.
3898 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3899 (bkpt_breakpoint_hit): Make static.
3900 (bkpt_check_status): Delete.
3901 (bkpt_resources_needed): Make static.
3902 (bkpt_works_in_software_mode): Delete.
3903 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3904 static.
3905 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3906 (momentary_breakpoint_ops): Don't statically initialize.
3907 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3908 Delete.
3909 (tracepoint_insert_location, tracepoint_remove_location)
3910 (tracepoint_check_status, tracepoint_works_in_software_mode)
3911 (tracepoint_print_it): Delete.
3912 (tracepoint_breakpoint_ops): Don't statically initialize.
3913 (initialize_breakpoint_ops): New.
3914 (_initialize_breakpoint): Call it.
3915 * breakpoint.h (null_re_set, null_works_in_software_mode)
3916 (null_resources_needed, null_check_status, null_print_one_detail):
3917 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3918 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3919 (bkpt_check_status, bkpt_resources_needed)
3920 (bkpt_works_in_software_mode, bkpt_print_it)
3921 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3922 Delete declarations.
3923 (initialize_breakpoint_ops): Declare.
3924
001c8c33
PA
39252011-07-25 Pedro Alves <pedro@codesourcery.com>
3926
3927 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3928 (momentary_bkpt_print_it): Simplify.
3929
06edf0c0
PA
39302011-07-25 Pedro Alves <pedro@codesourcery.com>
3931
3932 Split internal, momentary and user breakpoints breakpoint_ops
3933 tables.
3934
3935 * breakpoint.c (internal_breakpoint_ops)
3936 (momentary_breakpoint_ops): Forward declare.
3937 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3938 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3939 (create_overlay_event_breakpoint)
3940 (create_std_terminate_master_breakpoint)
3941 (create_exception_master_breakpoint): Create breakpoints with
3942 internal_breakpoint_ops vtable.
3943 (set_longjmp_breakpoint): Create momentary breakpoints with
3944 momentary_breakpoint_ops vtable, using
3945 momentary_breakpoint_from_master.
3946 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3947 (create_solib_event_breakpoint): Create breakpoints with
3948 internal_breakpoint_ops vtable.
3949 (set_momentary_breakpoint): Create breakpoints with
3950 momentary_breakpoint_ops vtable.
3951 (momentary_breakpoint_from_master): New, factored out from
3952 clone_momentary_breakpoint.
3953 (clone_momentary_breakpoint): Adjust.
3954 (watch_command_1): Create scope breakpoints with
3955 momentary_breakpoint_ops vtable.
3956 (bkpt_re_set): Remove handling of internal and momentary
3957 breakpoints.
3958 (bkpt_print_mention, bkpt_print_recreate): New.
3959 (bkpt_breakpoint_ops): Adjust.
3960 (internal_bkpt_re_set, internal_bkpt_check_status)
3961 (internal_bkpt_print_it, internal_bkpt_print_mention)
3962 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3963 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3964 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3965 (momentary_bkpt_print_recreate): New.
3966 (momentary_breakpoint_ops): New.
3967
348d480f
PA
39682011-07-25 Pedro Alves <pedro@codesourcery.com>
3969
3970 Implement most breakpoint_ops methods for all breakpoint types,
3971 and move the default handlings to the proper callbacks.
3972
3973 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3974 works_in_software_mode method.
3975 (insert_bp_location): Go through breakpoint_ops->insert_location
3976 for software and hardware watchpoints.
3977 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3978 breakpoint_ops.
3979 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3980 for software and hardware watchpoints.
3981 (print_it_typical): Delete.
3982 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3983 method.
3984 (watchpoint_check): Adjust comment.
3985 (bpstat_check_location): Simply always call the breakpoint's
3986 breakpoint_hit method.
3987 (bpstat_stop_status): Always call the breakpoint's check_status
3988 method. Remove special cases for watchpoints and internal event
3989 breakpoints from here (moved to the check_status implementations).
3990 (print_one_breakpoint_location): Assume b->ops is never NULL.
3991 Remove static tracepoint marker id printing from here (moved to
3992 the print_one_detail callback implementation of tracepoints).
3993 (init_bp_location): Assert OPS is never NULL.
3994 (allocate_bp_location): Always call the breakpoint's
3995 allocate_location method, and remove the default code from here.
3996 (free_bp_location): Always call the location's dtor method, and
3997 remove the default code from here.
3998 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3999 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4000 parameter. Pass it down.
4001 (set_raw_breakpoint): Ditto.
4002 (print_it_catch_fork): Adjust to take a bpstat as argument.
4003 (catch_fork_breakpoint_ops): Install methods.
4004 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4005 (catch_vfork_breakpoint_ops): Install methods.
4006 (dtor_catch_syscall): Call the base dtor.
4007 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4008 (catch_syscall_breakpoint_ops): Install methods.
4009 (dtor_catch_exec): Call the base dtor.
4010 (print_it_catch_exec): Adjust to take a bpstat as argument.
4011 (catch_exec_breakpoint_ops): Install methods.
4012 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4013 the breakpoint's resources_needed method, and remove the default
4014 code from here.
4015 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4016 breakpoint_ops.
4017 (clone_momentary_breakpoint): Clone the original's ops.
4018 (mention): Always call the breakpoint's print_mention method, and
4019 remove the default code from here.
4020 (create_breakpoint_sal): Adjust to pass the ops to
4021 set_raw_breakpoint rather than setting it manually.
4022 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4023 ops to set_raw_breakpoint_without_location rather than setting it
4024 manually.
4025 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4026 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4027 (ranged_breakpoint_ops): Install methods.
4028 (break_range_command): Adjust to pass the ops to
4029 set_raw_breakpoint rather than setting it manually.
4030 (re_set_watchpoint, breakpoint_hit_watchpoint)
4031 (check_status_watchpoint, resources_needed_watchpoint)
4032 (works_in_software_mode_watchpoint, print_it_watchpoint)
4033 (print_mention_watchpoint, print_recreate_watchpoint): New
4034 functions.
4035 (watchpoint_breakpoint_ops): Install new methods.
4036 (print_it_masked_watchpoint): New function.
4037 (masked_watchpoint_breakpoint_ops): Install new methods.
4038 (watch_command_1): Adjust to pass the right breakpoint_ops to
4039 set_raw_breakpoint_without_location rather than setting it
4040 manually later. Record the current pspace.
4041 (print_it_exception_catchpoint): Adjust to take a bpstat as
4042 argument.
4043 (gnu_v3_exception_catchpoint_ops): Install new methods.
4044 (say_where): New function.
4045 (null_re_set, null_check_status, null_works_in_software_mode)
4046 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4047 New functions.
4048 (bp_location_ops): New global.
4049 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4050 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4051 (bkpt_check_status, bkpt_resources_needed)
4052 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4053 (bkpt_print_recreate): New functions.
4054 (bkpt_breakpoint_ops): New global.
4055 (tracepoint_re_set, tracepoint_insert_location)
4056 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4057 (tracepoint_check_status, tracepoint_works_in_software_mode)
4058 (tracepoint_print_it, tracepoint_print_one_detail)
4059 (tracepoint_print_mention, tracepoint_print_recreate): New
4060 functions.
4061 (tracepoint_breakpoint_ops): New global.
4062 (delete_breakpoint): Always call the breakpoint's dtor method, and
4063 remove the default handling from here.
4064 (breakpoint_re_set_default): Make static.
4065 (breakpoint_re_set_one): Always call the breakpoints re_set
4066 method, and remove the default handling from here.
4067 (trace_command, ftrace_command, strace_command)
4068 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4069 to create_breakpoint.
4070 (save_breakpoints): Always call the breakpoint's print_recreate
4071 method, and remove the default handling from here.
4072
4073 * ada-lang.c (dtor_exception): Call the base dtor.
4074 (re_set_exception): Call the base method.
4075 (print_it_exception, print_it_catch_exception): Adjust to take a
4076 bpstat as argument.
4077 (catch_exception_breakpoint_ops): Install methods.
4078 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4079 argument.
4080 (catch_exception_unhandled_breakpoint_ops): Install methods.
4081 (print_it_catch_assert): Adjust to take a bpstat as argument.
4082 (catch_assert_breakpoint_ops): Install methods.
4083
4084 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4085 to take a bpstat as argument.
4086 (enum print_stop_action): Add describing comments to each enum
4087 value.
4088 (breakpoint_re_set_default): Delete declaration.
4089 (null_re_set, null_works_in_software_mode, null_resources_needed)
4090 (null_check_status, null_print_one_detail): Declare.
4091 (bkpt_breakpoint_ops): Declare.
4092 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4093 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4094 (bkpt_check_status, bkpt_resources_needed)
4095 (bkpt_works_in_software_mode, bkpt_print_it)
4096 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4097 Declare.
4098
4099 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4100 bkpt_breakpoint_ops.
4101 * python/py-breakpoint.c (bppy_init): Ditto.
4102
be8f8133
PW
41032011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4104
4105 * MAINTAINERS (Write After Approval): Add myself to the list.
4106
3807f613
PP
41072011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4108
4109 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4110
1ced966e
PA
41112011-07-22 Pedro Alves <pedro@codesourcery.com>
4112
4113 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4114 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4115 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4116 adjust.
4117 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4118 (struct i386_debug_reg_state): New.
4119 (i386_init_dregs): New.
4120 (dr_mirror): New.
4121 (i386_cleanup_dregs): Use i386_init_dregs.
4122 (i386_show_dr): Add state parameter and adjust.
4123 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4124 the inferior here.
4125 (i386_remove_aligned_watchpoint): Likewise.
4126 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4127 (i386_update_inferior_debug_regs): New.
4128 (i386_insert_watchpoint): Work on a local mirror of the debug
4129 registers, and only update the inferior on success.
4130 (i386_remove_watchpoint): Ditto.
4131 (i386_region_ok_for_watchpoint): Adjust.
4132 (i386_stopped_data_address): Adjust.
4133 (i386_insert_hw_breakpoint): Adjust.
4134 (i386_remove_hw_breakpoint): Adjust.
4135
3543a589
TT
41362011-07-22 Tom Tromey <tromey@redhat.com>
4137
4138 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4139 from amd64_pseudo_register_read. Change arguments. Call
4140 mark_value_bytes_unavailable when needed.
4141 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4142 set_gdbarch_pseudo_register_read.
4143 * sentinel-frame.c (sentinel_frame_prev_register): Use
4144 regcache_cooked_read_value.
4145 * regcache.h (regcache_cooked_read_value): Declare.
4146 * regcache.c (regcache_cooked_read_value): New function.
4147 (regcache_cooked_read): Call
4148 gdbarch_pseudo_register_read_value if available.
4149 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4150 (i386_pseudo_register_read): Remove.
4151 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4152 i386_pseudo_register_read. Change arguments. Call
4153 mark_value_bytes_unavailable when needed.
4154 (i386_pseudo_register_read_value): New function.
4155 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4156 not set_gdbarch_pseudo_register_read.
4157 * gdbarch.sh (pseudo_register_read_value): New method.
4158 * gdbarch.c, gdbarch.h: Rebuild.
4159 * findvar.c (value_from_register): Call get_frame_register_value.
4160
95298e72
PM
41612011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4162
4163 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4164 get_prefix.
4165 (display_gdb_prompt): Likewise.
4166 (change_annotation_level): Likewise.
4167 (push_prompt): Likewise.
4168 (pop_prompt): Likewise.
4169 (handle_stop_sig): Use get_prompt with a level.
4170 * top.c (command_loop): Use get_prompt with a level.
4171 (set_async_annotation_level): Use set_prompt with a level.
4172 (get_prefix): New function.
4173 (set_prefix): Ditto.
4174 (set_suffix): Ditto.
4175 (get_suffix): Ditto.
4176 (get_prompt): Accept a level argument.
4177 (set_prompt): Accept a level argument. Free old prompts. Set
4178 new_async_prompt if level is 0.
4179 (init_main): Use set_prompt with a level. Do not set
4180 new_async_prompt.
4181 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4182 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4183 Modify set_prompt, get_prompt to account for levels.
4184 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4185 level.
4186 * python/python.c (before_prompt_hook): Use set_prompt.
4187
d26e3629
KY
41882011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4189
4190 * defs.h: Add guard against inclusion in gdbserver.
4191 (struct ptid, ptid_t): Move to common/ptid.h.
4192 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4193 xsnprintf, internal_error): Move to common/common-utils.h.
4194 (nomem): Delete.
4195 * gdb_assert.h: Move into common/ sub-directory.
4196 * gdb_locale.h: Ditto.
4197 * gdb_dirent.h: Ditto.
4198 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4199 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4200 Move into common/ptid.h.
4201 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4202 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4203 Change nomem to malloc_failure.
4204 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4205 * utils.c (nomem): Rename to malloc_failure.
4206 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4207 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4208 (gdb_buildargv): Change nomem to malloc_failure.
4209 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4210 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4211 ptid_is_pid): Move into common/ptid.c.
4212 (initialize_infrun): Delete initialization of null_ptid and
4213 minus_one_ptid.
4214 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4215 linux_common_xfer_osdata.
4216 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4217 common/ptid.c and common/buffer.c.
4218 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4219 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4220 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4221 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4222 rules.
4223 * common/gdb_assert.h: New.
4224 * common/gdb_dirent.h: New.
4225 * common/gdb_locale.h: New.
4226 * common/buffer.c: New.
4227 * common/buffer.h: New.
4228 * common/ptid.c: New.
4229 * common/ptid.h: New.
4230 * common/xml-utils.c: New.
4231 * common/xml-utils.h: New.
4232 * common/common-utils.c: New.
4233 * common/common-utils.h: New.
4234 * common/linux-osdata.c: New.
4235 * common/linux-osdata.h: New.
4236 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4237 * config/arm/linux.mh (NATDEPFILES): Ditto.
4238 * config/i386/linux.mh (NATDEPFILES): Ditto.
4239 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4240 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4241 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4242 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4243 * config/mips/linux.mh (NATDEPFILES): Ditto.
4244 * config/pa/linux.mh (NATDEPFILES): Ditto.
4245 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4246 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4247 * config/s390/s390.mh (NATDEPFILES): Ditto.
4248 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4249 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4250 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4251
edc84990 42522011-07-21 Matt Rice <ratmice@gmail.com>
4253
4254 * NEWS: Add info macros and info definitions commands.
4255
3a7bf607
PM
42562011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4257
4258 * NEWS: Document Python prompt substitution hook.
4259
9b158ba0 42602011-07-18 Matt Rice <ratmice@gmail.com>
4261
4262 PR macros/12999
4263 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4264 * macrotab.c (foreach_macro): Ditto.
4265 (foreach_macro_in_scope): Ditto.
4266 * macrocmd.c (print_macro_callback): New function.
4267 (info_macro_command): Move some code to print_macro_definition.
4268 (print_macro_definition): New function.
4269 (print_one_macro): Add new arguments to callback.
4270 (info_definitions_command): New function.
4271 (info_macros_command): Ditto.
4272 (_initialize_macrocmd): Add info macros and info definitions commands.
4273 * symtab.c (add_macro_name): Add new arguments to callback.
4274
d17b6f81
PM
42752011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4276 Tom Tromey <tromey@redhat.com>
4277
4278 * top.c (set_prompt): Rewrite to free previous prompt, free
4279 asynch_new_prompt and set both on new prompts.
4280 * event-top.c (display_gdb_prompt): Add prompt substitution
4281 logic.
4282 * python/python.c (before_prompt_hook): New function.
4283
1364323a 42842011-07-20 Matt Rice <ratmice@gmail.com>
4285
4286 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4287 arguments to store_unsigned_integer.
4288
8b70b953
TT
42892011-07-20 Tom Tromey <tromey@redhat.com>
4290
6c83ed52
TT
4291 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4292 in some declaration-only cases.
4293
42942011-07-18 Tom Tromey <tromey@redhat.com>
4295
8b70b953
TT
4296 PR symtab/12984:
4297 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4298 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4299 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4300 <debug_type_section>: New field.
4301 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4302 (load_cu): Use appropriate section.
4303 (create_signatured_type_table_from_index): Add 'section'
4304 argument.
4305 (dwarf2_read_index): Only allow a single .debug_types section.
4306 (dw2_get_file_names): Use appropriate section.
4307 (read_type_comp_unit_head): Add 'section' argument.
4308 (create_debug_types_hash_table): Loop over all .debug_types
4309 sections.
4310 (init_cu_die_reader): Use appropriate section.
4311 (process_psymtab_comp_unit, load_partial_comp_unit)
4312 (load_full_comp_unit, read_die_and_children, find_partial_die)
4313 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4314 (lookup_signatured_type_at_offset): Add 'section' argument.
4315 (read_signatured_type_at_offset): Add 'sect' argument.
4316 (read_signatured_type): Use appropriate section.
4317 (set_die_type, get_die_type_at_offset): Update.
4318 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4319 VEC.
4320 (write_psymtabs_to_index): Don't allow index with more than one
4321 .debug_types section.
4322
918dd910
JK
43232011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 Fix crash if referenced CU is aged out.
4326 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4327 xfree of block.data.
4328 (indirect_pieced_value): New variable back_to, use to for xfree of
4329 baton.data.
4330 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4331 block.data.
4332 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4333 (load_cu): New function from ...
4334 (dw2_do_instantiate_symtab): ... the code here ...
4335 (process_full_comp_unit): ... and here.
4336 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4337 retval.data.
4338
0e37a63c
JK
43392011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
4341 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4342 type.
4343
7e324e48
GB
43442011-07-19 Gary Benson <gbenson@redhat.com>
4345
4346 * infrun.c (struct execution_control_state): New member
4347 stop_func_filled_in.
4348 (clear_stop_func, fill_in_stop_func): New functions.
4349 (handle_inferior_event): Call clear_stop_func rather than
4350 manipulating the execution control state directly.
4351 Call fill_in_stop_func lazily as required rather than
4352 directly calling find_pc_partial_function in all cases.
4353
d48323d8
TT
43542011-07-18 Tom Tromey <tromey@redhat.com>
4355
4356 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4357 checking for variable-sized array.
4358
40591b7d
JCD
43592011-07-18 Jean-Charles Delay <delay@adacore.com>
4360
4361 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4362 of supported languages.
4363 * varobj.c: Add top definitions and basic implementation of the
4364 following callbacks: ada_number_of_children, ada_name_of_variable,
4365 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4366 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4367 (languages): Register Ada-specific callbacks.
4368 (variable_language): Add the Ada case in the language setter switch.
4369
2e424e08
JK
43702011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4371
4372 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4373
9e8b7a03
JK
43742011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4375
4376 Code cleanup.
4377 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4378 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4379 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4380 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4381 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4382 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4383 (struct dwarf_expr_context_funcs): New, move here methods from ...
4384 (struct dwarf_expr_context): ... here. New fields funcs.
4385 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4386 (dwarf_expr_ctx_funcs): New.
4387 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4388 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4389 (needs_frame_ctx_funcs): New.
4390 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4391
2b1260ab
FM
43922011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4393
4394 * MAINTAINERS (Write After Approval): Add myself to the list.
4395
8bd90839
FM
43962011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4397
4398 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4399 that CIE pointer of an FDE really points to a CIE .
4400
953b98d1
HZ
44012011-07-15 Hui Zhu <teawater@gmail.com>
4402
4403 * remote.c (remote_get_trace_status): Add comments.
4404
c8f2448a
JK
44052011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 Code cleanup - constify struct lval_funcs.
4408 * dwarf2loc.c (pieced_value_funcs): Make it const.
4409 * infrun.c (siginfo_value_funcs): Likewise.
4410 * opencl-lang.c (opencl_value_funcs): Likewise.
4411 * valops.c (value_assign, value_ind): Make the funcs variable const.
4412 * value.c (struct value): Make location.computed.funcs target const.
4413 Rearrange the comments.
4414 (allocate_computed_value): Make the funcs parameter target const.
4415 (value_computed_funcs): Return the funcs target const.
4416 (value_free, value_copy, set_value_component_location): Make the funcs
4417 variable const.
4418 * value.h (allocate_computed_value): Make the funcs parameter target
4419 const.
4420 (value_computed_funcs): Return the funcs target const.
4421 * windows-tdep.c (tlb_value_funcs): Make it const.
4422
f652de6f
HZ
44232011-07-14 Hui Zhu <teawater@gmail.com>
4424
4425 * remote.c (remote_get_trace_status): Initialize p.
4426
67f41397
JK
44272011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4428
4429 Work around kgdb.
4430 * remote.c (remote_get_trace_status): New variable ex. Put
4431 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4432
d1b66e6d
TT
44332011-07-13 Tom Tromey <tromey@redhat.com>
4434
4435 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4436 value_from_contents for final conversion.
4437
1632a688
JK
44382011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4439
4440 Code cleanup.
4441 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4442 Indent prototypes so they do not get into tags.
4443
a7035dbb
JK
44442011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4445
4446 Code cleanup making also optimized out values lazy.
4447 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4448 allocate_optimized_out_value. Twice.
4449 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4450 * findvar.c (read_var_value): Likewise.
4451 * value.c (allocate_optimized_out_value): New function.
4452 * value.h (allocate_optimized_out_value): New declaration.
4453
d07ed419
JK
44542011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4455
4456 Fix occasional crash of CTRL-C during DWARF read in.
4457 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4458
86d31898
TT
44592011-07-11 Tom Tromey <tromey@redhat.com>
4460
4461 * regcache.c (struct regcache_descr): Fix typo.
4462 * i387-tdep.c (i387_supply_xsave): Fix typo.
4463
2ab95328
TT
44642011-07-11 Tom Tromey <tromey@redhat.com>
4465
4466 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4467 (read_file_scope, read_type_unit_scope): Use it.
4468
04ad99e6
JK
44692011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4470
4471 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4472 `int'.
4473
713389e0
PM
44742011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4475
4476 PR python/12438
4477 * python/python.c: Set gdbpy_should_print_stack default to off.
4478 (set_python): Deprecate maint set python print-stack to
4479 class_deprecate.
4480 (_initialize_python): Deprecate maint set/show python print-stack.
4481 Add new prefix command, python. Add new setting, print-backtrace.
4482 * NEWS: Document set python print-stack. Document default change.
4483
754eadd1
PM
44842011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4485
4486 * python/py-inferior.c (infpy_dealloc): New function.
4487 (inferior_to_inferior_object): Return a new object, or a
4488 new reference to the existing object.
4489 (find_thread_object): Cleanup references to inferior.
4490 (delete_thread_object): Ditto.
4491 * python/py-infthread.c (create_thread_object): Do not increment
4492 inferior reference count.
4493
5e44ecb3
TT
44942011-07-08 Tom Tromey <tromey@redhat.com>
4495
4496 * dwarf2loc.c (locexpr_regname): New function.
4497 (locexpr_describe_location_piece): Use it.
4498 (disassemble_dwarf_expression): Add per_cu argument. Use
4499 locexpr_regname.
4500 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4501 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4502 New cases.
4503 (locexpr_describe_location_1): Add per_cu argument.
4504 (locexpr_describe_location): Update.
4505 (loclist_describe_location): Update.
4506
e0e9434c
TT
45072011-07-08 Tom Tromey <tromey@redhat.com>
4508
4509 * dwarf2expr.c (execute_stack_op): Add QUIT.
4510
26afc0d7
HZ
45112011-07-07 Hui Zhu <teawater@gmail.com>
4512
4513 Revert:
4514 2011-07-06 Hui Zhu <teawater@gmail.com>
4515 * remote.c (remote_start_remote): Add TRY_CATCH for
4516 remote_get_trace_status.
4517 * tracepoint.c (disconnect_tracing): Ditto.
4518
a40a111f
AB
45192011-07-07 Andrew Burgess <aburgess@broadcom.com>
4520
4521 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4522 variables as signed, not unsigned.
4523
e2bd3b15
JB
45242011-07-06 Joel Brobecker <brobecker@adacore.com>
4525
4526 * jit.c (jit_inferior_init): Reformat forward declaration.
4527
e3d961fe 45282011-07-06 Matt Rice <ratmice@gmail.com>
4529
4530 * MAINTAINERS (Write After Approval): Add myself to the list.
4531
0f3428f0
HZ
45322011-07-06 Hui Zhu <teawater@gmail.com>
4533
4534 * remote.c (remote_start_remote): Add TRY_CATCH for
4535 remote_get_trace_status.
4536 * tracepoint.c (disconnect_tracing): Ditto.
4537
fc9f3a69
TT
45382011-07-05 Tom Tromey <tromey@redhat.com>
4539
4540 * symtab.c (operator_chars): Now static.
4541 * linespec.c (operator_chars): Don't declare.
4542
26e519b9
TJB
45432011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4544
4545 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4546
eb2a6f42
TT
45472011-07-05 Tom Tromey <tromey@redhat.com>
4548
4549 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4550 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4551 (TYPE_CPLUS_REALLY_JAVA): New macro.
4552 * dwarf2read.c (process_structure_scope): Set
4553 TYPE_CPLUS_REALLY_JAVA.
4554
21083d0f 45552011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4556
4557 * ada-lang.c: Fix typos.
4558 * amd64-tdep.c: Likewise.
4559 * breakpoint.c: Likewise.
4560 * cli/cli-decode.c: Likewise.
4561 * findcmd.c: Likewise.
4562 * inline-frame.c: Likewise.
4563 * mi/mi-main.c: Likewise.
4564 * minsyms.c: Likewise.
4565 * monitor.c: Likewise.
4566 * monitor.h: Likewise.
4567 * prologue-value.c: Likewise.
4568 * reverse.c: Likewise.
4569 * s390-tdep.c: Likewise.
4570
3b2a0cf2
JB
45712011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4572
4573 * jit.c (jit_inferior_init): Forward declare.
4574 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4575
efae1d92
JB
45762011-07-04 Joel Brobecker <brobecker@adacore.com>
4577
4578 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4579
6040a59d
JB
45802011-07-04 Tristan Gingold <gingold@adacore.com>
4581
4582 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4583 (tcb_fieldno): Add activation_link field.
4584 (get_known_tasks_addr): Moved and rewritten.
4585 (get_tcb_types_info): Set activation_link field.
4586 (read_known_tasks_array): Add parameter. Rewritten.
4587 (read_known_tasks_list): New function.
4588 (read_known_tasks): New function.
4589 (ada_build_task_list): Call read_known_tasks instead of
4590 read_known_tasks_array.
4591 * ravenscar-thread.c: Add first_task_name constant.
4592 (has_ravenscar_runtime): Check for task list too.
4593
cb741e45
JB
45942011-07-04 Tristan Gingold <gingold@adacore.com>
4595
4596 * ada-tasks.c: Renames fieldno to actb_fieldno.
4597 (ada_get_task_number): Indentation.
4598 (get_tcb_types_info): Remove all parameters. Write directly
4599 the globals.
4600 (ptid_from_atcb_common): Adjust.
4601 (read_atcb): Adjust.
4602
7475b06c
TJB
46032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4604
4605 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4606
15230f37
TJB
46072011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4608
4609 * ui-out.c (ui_out_field_core_addr): Mention that the function
4610 description is in the header file.
4611 * ui-out.h (ui_out_field_core_addr): Document function.
4612
65743aba
TJB
46132011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4614
4615 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4616 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4617
c37a5aab
TJB
46182011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4619
4620 * symtab.c (expand_line_sal): Remove empty line.
4621
59adf69e
TS
46222011-07-04 Thomas Schwinge <thomas@schwinge.name>
4623
4624 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4625 same way as ELFOSABI_NONE.
4626 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4627
e5dd4106
TJB
46282011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4629
4630 * breakpoint.c: Fix typos in comments.
4631 * linespec.c: Likewise.
4632 * symtab.c: Likewise.
4633
d40102a1
JB
46342011-07-04 Joel Brobecker <brobecker@adacore.com>
4635
4636 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4637 section in separate object files.
4638
2f741504
JK
46392011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 Fix false GCC warning.
4642 * linespec.c (decode_line_1): Initialize values.
4643
418c7cf7
JK
46442011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4645
4646 * linespec.c (find_method): Accept the function type automatically only
4647 if it was specified with parameter types.
4648
3d50dd94
JK
46492011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 Stop on first linespec terminator instead of eating what we can.
4652 * linespec.c (is_linespec_boundary): New function.
4653 (name_end): Remove function.
4654 (keep_name_info): New parameter on_boundary, replace the body.
4655 (decode_line_1): Provide the parameter to keep_name_info.
4656 (decode_compound): Likewise. Drop the trailing java return type
4657 handling. Twice.
4658
dcf9f4ab
JK
46592011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4660
4661 Fall back linespec to minimal symbols.
4662 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4663 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4664 (find_method, symbol_found): Change error to cplusplus_error.
4665
3f542ed1
JK
46662011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4667
bc68c4e5 4668 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4669
900e11f9
JK
46702011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4671 Tom Tromey <tromey@redhat.com>
4672
4673 * dwarf2read.c (check_physname): New variable.
4674 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4675 (show_check_physname): New function.
4676 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4677
2301925d
JB
46782011-07-01 Joel Brobecker <brobecker@adacore.com>
4679
4680 * machoread.c (macho_symfile_read): Delete OBE comment.
4681
38947cca
JB
46822011-07-01 Joel Brobecker <brobecker@adacore.com>
4683
4684 * machoread.c (struct macho_oso_data): Delete.
4685 (current_oso): Delete.
4686 (macho_relocate_common_syms): New function, mostly extracted
4687 out of
4688 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4689 Remove code that sets and unset current_oso.
4690 (macho_symfile_relocate): Delete handling of common symbols,
4691 now moved to macho_relocate_common_syms.
4692
a7aa0d73
JB
46932011-07-01 Joel Brobecker <brobecker@adacore.com>
4694
4695 * darwin-nat.c (darwin_ptrace): Add documentation.
4696 Set errno to zero before calling ptrace. If ptrace returns
4697 -1 and errno is zero, then change then return zero.
4698 (darwin_kill_inferior): Issue a warning instead of triggering
4699 a failed assertion when the PT_KILL ptrace operations returned
4700 nonzero.
4701
5e9bc145
JB
47022011-07-01 Joel Brobecker <brobecker@adacore.com>
4703
4704 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4705 only when inf->private->no_ptrace.
4706
00eb2c4a
JB
47072011-07-01 Joel Brobecker <brobecker@adacore.com>
4708
4709 * ada-lang.c (print_it_exception): Print temporary catchpoints
4710 as "Temporary catchpoint".
4711 (print_mention_exception): Likewise.
4712
127c81bc
TT
47132011-07-01 Tom Tromey <tromey@redhat.com>
4714
4715 * jv-lang.c (java_language_defn): Use java_printchar,
4716 java_printstr.
4717 (java_get_encoding): New function.
4718 (java_emit_char): Use generic_emit_char.
4719 (java_printchar): New function.
4720 (java_printstr): Likewise.
4721
25552254
JB
47222011-07-01 Joel Brobecker <brobecker@adacore.com>
4723
4724 * ada-typeprint.c (print_record_type): If unable to decode
4725 the name of the parent type, use the encoded name.
4726
d2d43431
JB
47272011-07-01 Jean-Charles Delay <delay@adacore.com>
4728
4729 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4730 pointer to constrained packed array type output.
4731 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4732 packed array output.
4733
54ae186f
JB
47342011-07-01 Jean-Charles Delay <delay@adacore.com>
4735
4736 * ada-typeprint.c (print_array_type): removed if condition on show
4737 being negative for bounds printing.
4738
8f17729f
JB
47392011-07-01 Joel Brobecker <brobecker@adacore.com>
4740
4741 * ada-lang.c (ada_identical_enum_types_p): New function.
4742 (symbols_are_identical_enums): New function.
4743 (remove_extra_symbols): Do nothing if NSYMS < 2.
4744 Use symbols_are_identical_enums.
4745
f5aa6869
JB
47462011-07-01 Joel Brobecker <brobecker@adacore.com>
4747
4748 * ada-valprint.c (ada_value_print): Handle typedefs.
4749
8f465ea7
JB
47502011-07-01 Joel Brobecker <brobecker@adacore.com>
4751
4752 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4753
828292f2
JB
47542011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4755
4756 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4757 (decode_constrained_packed_array): Likewise.
4758 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4759
18920c42
JB
47602011-07-01 Joel Brobecker <brobecker@adacore.com>
4761
4762 * ada-exp.y (convert_char_literal): Handle typedef types.
4763
c90092fe
JB
47642011-07-01 Joel Brobecker <brobecker@adacore.com>
4765
4766 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4767
f748fb40
TT
47682011-06-30 Tom Tromey <tromey@redhat.com>
4769
4770 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4771 * valops.c (find_overload_match): Call do_cleanups on early exit
4772 path.
4773 * solib.c (solib_find): Call do_cleanups on early exit path.
4774
3bb47e8b
TT
47752011-06-30 Tom Tromey <tromey@redhat.com>
4776
4777 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4778 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4779 return paths. Defer final do_cleanups until last return.
4780 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4781 early return.
4782
4727bad3
TT
47832011-06-30 Tom Tromey <tromey@redhat.com>
4784
4785 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4786
bb361dbf
AB
47872011-06-30 Andrew Burgess <aburgess@broadcom.com>
4788
4789 * MAINTAINERS (Write After Approval): Add myself to the list.
4790
e0d00bc7
JK
47912011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4792
4793 Disable epilogue unwinders on recent GCCs.
4794 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4795 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4796 * dwarf2read.c (process_full_comp_unit): Initialize
4797 EPILOGUE_UNWIND_VALID.
4798 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4799 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4800 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4801
4632c0d0
JK
48022011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4803
4804 Code cleanup - reformatting.
4805 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4806 (producer_is_gcc_ge_4): ... here, change the return value.
4807 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4808 interpretation.
4809
32019081
JK
48102011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4811
4812 Fix non-only rename list for Fortran modules import.
4813 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4814 cp_add_using_directive caller.
4815 (cp_add_using_directive): New parameter excludes, describe it. New
4816 variables ix and param. Compare if also excludes match. Allocate NEW
4817 with variable size, initialize EXCLUDES there.
4818 (cp_lookup_symbol_imports): New variable excludep, test
4819 current->EXCLUDES with it.
4820 * cp-support.h: Include vec.h.
4821 (struct using_direct): New field excludes, describe it.
4822 (DEF_VEC_P (const_char_ptr)): New.
4823 (cp_add_using_directive): New parameter excludes.
4824 * defs.h (const_char_ptr): New typedef.
4825 * dwarf2read.c (read_import_statement): New variables child_die,
4826 excludes and cleanups, read in excludes.
4827 (read_namespace): Adjust the cp_add_using_directive caller.
4828
70c622a3
JK
48292011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 Code cleanup.
4832 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4833 negative comparisons.
4834
39c4d40a
TT
48352011-06-29 André Pönitz <andre.poenitz@nokia.com>
4836
4837 * mi/mi-main.c (mi_cmd_list_features): Emit
4838 breakpoint-notifications.
4839
3b2b8fea
TT
48402011-06-29 Tom Tromey <tromey@redhat.com>
4841
4842 PR fortran/10036:
4843 * valprint.h (generic_emit_char, generic_printstr): Declare.
4844 * valprint.c (wchar_printable, append_string_as_wide)
4845 (print_wchar): Move from c-lang.c.
4846 (generic_emit_char): New function; mostly taken from c_emit_char.
4847 (generic_printstr): New function; mostly taken from c_printstr.
4848 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4849 represented as arrays.
4850 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4851 type.
4852 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4853 identically to TYPE_CODE_INT.
4854 * f-lang.c (f_get_encoding): New function.
4855 (f_emit_char): Use generic_emit_char.
4856 (f_printchar): Replace comment.
4857 (f_printstr): Use generic_printstr.
4858 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4859 "character" types specially.
4860 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4861 for Fortran.
4862 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4863 Move to valprint.c
4864 (c_emit_char): Call generic_emit_char.
4865 (c_printstr): Call generic_printstr.
4866
168e6d44
GB
48672011-06-29 Gary Benson <gbenson@redhat.com>
4868
4869 * breakpoint.c (bpstat_what): Removed duplicated case.
4870
1c033f8c
TT
48712011-06-28 Tom Tromey <tromey@redhat.com>
4872
4873 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4874
5fe41fbf
TT
48752011-06-27 Tom Tromey <tromey@redhat.com>
4876
4877 * valops.c (find_overload_match): Call do_cleanups before early
4878 return.
4879 * top.c (execute_command): Call do_cleanups before early return.
4880 (command_loop): Likewise.
4881 * stack.c (backtrace_command): Make a null cleanup early. Don't
4882 conditionally call do_cleanups.
4883 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4884 TRY_CATCH.
4885 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4886 so cleanups are always run.
4887 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4888 * findcmd.c (parse_find_args): Call do_cleanups on early return
4889 path.
4890 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4891 Don't conditionally call do_cleanups.
4892 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4893 later.
4894
e26bd57d
EB
48952011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4896
4897 * MAINTAINERS (Write After Approval): Use default email address.
4898
6c3097fc
JB
48992011-06-27 Joel Brobecker <brobecker@adacore.com>
4900
4901 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4902
369c397b
JB
49032011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4904
4905 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4906 saved_regs_mask and copied_regs_mask fields.
4907 (sparc_record_save_insn): New prototype.
4908 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4909 (sparc_record_save_insn): New function.
4910 (sparc_analyze_prologue): Add head comment. Recognize store insns
4911 of call-saved registers. Use OFFSET consistently. Recognize flat
4912 frames and cache their settings.
4913 (sparc32_skip_prologue): Handle flat frames.
4914 (sparc_frame_cache): Add frame_offset to the base address.
4915 (sparc32_frame_cache): Adjust to new frame description.
4916 (sparc32_frame_prev_register): Likewise.
4917 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4918 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4919 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4920 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4921 frame by calling sparc_record_save_insn.
4922 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4923 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4924 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4925
b315ab21
TG
49262011-06-27 Tristan Gingold <gingold@adacore.com>
4927
4928 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4929 field by map_addr and map_len.
4930 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4931 (munmap_section_buffer): Likewise.
4932
ddd49eee
TT
49332011-06-24 Tom Tromey <tromey@redhat.com>
4934
4935 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4936 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4937 * python/python.c (gdbpy_parameter): Make 'arg' const.
4938 (execute_gdb_command): Likewise.
4939 (gdbpy_decode_line): Likewise. Copy it.
4940 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4941 (gdbpy_write): Make 'arg' const.
4942 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4943 const.
4944 (gdbpy_lookup_type): Likewise.
4945 * python/py-prettyprint.c (print_children): Make 'name' const.
4946 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4947 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4948 Py_ssize_t.
4949 * python/py-function.c (fnpy_init): Make 'name' const.
4950 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4951 (gdbpy_string_to_argv): Make 'input' const.
4952 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4953 it.
4954 * gdbtypes.h (lookup_typename): Update.
4955 * gdbtypes.c (lookup_typename): Make 'name' const.
4956 (lookup_struct): Likewise.
4957 (lookup_union): Likewise.
4958 (lookup_enum): Likewise.
4959
5998129b
TT
49602011-06-24 Tom Tromey <tromey@redhat.com>
4961
4962 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4963 gdb_thread_db.h. Move all common/ entries to be together.
4964 (TAGS): Don't depend on DEPFILES.
4965
6e586cc5
YQ
49662011-06-23 Yao Qi <yao@codesourcery.com>
4967
4968 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4969 * remote.c (remote_start_remote): ... here.
4970 * monitor.c (monitor_open): ... here.
4971
86c3c1fc
AB
49722011-06-23 Andrew Burgess <aburgess@broadcom.com>
4973
4974 * gdbtypes.c (append_composite_type_field_aligned): Fix
4975 calculation of bit position based on alignment.
4976
28010a5d
PA
49772011-06-22 Pedro Alves <pedro@codesourcery.com>
4978
4979 * breakpoint.c (bpstat_stop_status): Call the check_status
4980 breakpoint_ops method.
4981 (print_one_breakpoint_location): Also print the condition for Ada
4982 exception catchpoints.
4983 (allocate_bp_location): New, factored out from
4984 allocate_bp_location.
4985 (allocate_bp_location): Adjust. Call the owner breakpoint's
4986 allocate_location method, if there is one.
4987 (free_bp_location): Call the locations's dtor method, if there is
4988 one.
4989 (init_raw_breakpoint_without_location): New breakpoint_ops
4990 parameter. Use it.
4991 (set_raw_breakpoint_without_location): Adjust.
4992 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4993 (set_raw_breakpoint): Adjust.
4994 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4995 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4996 re_set and check_status methods.
4997 (init_catchpoint): Don't memset, initialize thread, addr_string
4998 and enable_state. Pass the ops down to init_raw_breakpoint.
4999 (install_catchpoint): Rename to ...
5000 (install_breakpoint): ... this, and make extern.
5001 (create_fork_vfork_event_catchpoint): Adjust.
5002 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5003 re_set and check_status methods.
5004 (create_syscall_event_catchpoint): Adjust.
5005 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5006 (masked_watchpoint_breakpoint_ops): Install NULL
5007 allocate_location, re_set and check_status methods.
5008 (catch_exec_command_1): Adjust.
5009 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5010 re_set and check_status methods.
5011 (create_ada_exception_breakpoint): Rename to ...
5012 (init_ada_exception_breakpoint): ... this. Add a struct
5013 breakpoint parameter, and delete the exp_string, cond_string and
5014 cond parameters. Use init_raw_breakpoint, and don't install or
5015 mention the breakpoint yet. Don't clear breakpoint fields that
5016 init_raw_breakpoint already clears.
5017 (re_set_breakpoint): Delete, split into ...
5018 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5019 functions.
5020 (breakpoint_re_set_one): Call the breakpoint's
5021 breakpoint_ops->re_set implementation, if there's one. Adjust.
5022 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5023 (struct bp_location_ops): New type.
5024 (struct bp_location): New field `ops'.
5025 (struct breakpoint_ops): New `allocate_location', `re_set' and
5026 `check_status' fields. Make `breakpoint_hit''s description match
5027 reality.
5028 (init_bp_location): Declare.
5029 (breakpoint_re_set_default): Declare.
5030 (create_ada_exception_breakpoint): Rename to ...
5031 (init_ada_exception_breakpoint): ... this. Add a struct
5032 breakpoint parameter, and delete the exp_string, cond_string and
5033 cond parameters.
5034 (install_breakpoint): Declare.
5035 * ada-lang.c: Include exceptions.h.
5036 <Ada exceptions description>: Update.
5037 (struct ada_catchpoint_location): New type.
5038 (ada_catchpoint_location_dtor): New function.
5039 (ada_catchpoint_location_ops): New global.
5040 (ada_catchpoint): New type.
5041 (create_excep_cond_exprs): New function.
5042 (dtor_exception, allocate_location_exception, re_set_exception)
5043 (should_stop_exception, check_status_exception): New functions.
5044 (print_one_exception, print_mention_exception)
5045 (print_recreate_exception): Adjust.
5046 (dtor_catch_exception, allocate_location_catch_exception)
5047 (re_set_catch_exception, check_status_catch_exception): New
5048 functions.
5049 (catch_exception_breakpoint_ops): Install them.
5050 (dtor_catch_exception_unhandled)
5051 (allocate_location_catch_exception_unhandled)
5052 (re_set_catch_exception_unhandled)
5053 (check_status_catch_exception_unhandled): New functions.
5054 (catch_exception_unhandled_breakpoint_ops): Install them.
5055 (dtor_catch_assert, allocate_location_catch_assert)
5056 (re_set_catch_assert, check_status_catch_assert): New functions.
5057 (catch_assert_breakpoint_ops): Install them.
5058 (ada_exception_catchpoint_p): Delete.
5059 (catch_ada_exception_command_split)
5060 (ada_exception_catchpoint_cond_string): Rename exp_string
5061 parameter to excep_string. Adjust.
5062 (ada_parse_catchpoint_condition): Delete.
5063 (ada_exception_sal): Rename the exp_string parameter to
5064 excep_string. Delete the cond_string and cond parameters.
5065 Adjust.
5066 (ada_decode_exception_location): Rename the exp_string parameter
5067 to excep_string. Delete the cond_string and cond parameters.
5068 Adjust.
5069 (create_ada_exception_catchpoint): New function.
5070 (catch_ada_exception_command, ada_decode_assert_location)
5071 (catch_assert_command): Adjust.
5072 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5073
9ac4176b
PA
50742011-06-22 Pedro Alves <pedro@codesourcery.com>
5075
5076 * ada-lang.c: Include arch-utils.h.
5077 (ada_decode_exception_location): Make static.
5078 (catch_ada_exception_command): Moved here from breakpoint.c.
5079 (ada_decode_assert_location): Make static.
5080 (catch_assert_command): Moved here from breakpoint.c.
5081 (_initialize_ada_lang): Install the exception and assert
5082 catchpoint commands here.
5083 * ada-lang.h (ada_decode_exception_location)
5084 (ada_decode_assert_location): Delete declarations.
5085 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5086 breakpoint.h.
5087 (create_ada_exception_breakpoint): Make extern.
5088 (catch_ada_exception_command, catch_assert_command): Moved to
5089 ada-lang.c.
5090 (add_catch_command): Make extern.
5091 (_initilize_breakpoint): Don't install the exception and assert
5092 catchpoint commands here.
5093 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5094 breakpoint.c
5095 (add_catch_command, create_ada_exception_breakpoint): Declare.
5096
c56053d2
PA
50972011-06-22 Pedro Alves <pedro@codesourcery.com>
5098
5099 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5100 the breakpoint to the breakpoint chain here.
5101 (set_raw_breakpoint_without_location): Add the breakpoint to the
5102 breakpoint chain here.
5103 (init_raw_breakpoint): Adjust comments.
5104 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5105 here.
5106 (init_catchpoint): Don't set the catchpoint's breakpoint number
5107 here.
5108 (install_catchpoint): New function.
5109 (create_fork_vfork_event_catchpoint)
5110 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5111 use install_catchpoint.
5112
d2f3fc74
PA
51132011-06-22 Pedro Alves <pedro@codesourcery.com>
5114
5115 * breakpoint.c (create_catchpoint_without_mention)
5116 (create_catchpoint): Delete.
5117
b4d90040
PA
51182011-06-22 Pedro Alves <pedro@codesourcery.com>
5119
5120 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5121 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5122 reference to exec_pathname.
5123 (struct exec_catchpoint): New type.
5124 (dtor_catch_exec): New function.
5125 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5126 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5127 (catch_exec_command_1): Adjust to use init_catchpoint.
5128 (delete_breakpoint): Remove reference to exec_pathname.
5129
be5c67c1
PA
51302011-06-22 Pedro Alves <pedro@codesourcery.com>
5131
5132 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5133 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5134 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5135 reference to syscalls_to_be_caught.
5136 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5137 NULL `dtor'.
5138 (struct syscall_catchpoint): New type.
5139 (dtor_catch_syscall): New function.
5140 (insert_catch_syscall, remove_catch_syscall)
5141 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5142 (print_recreate_catch_syscall): Adjust.
5143 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5144 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5145 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5146 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5147 (masked_watchpoint_breakpoint_ops)
5148 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5149 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5150 there is one. Remove references to syscalls_to_be_caught.
5151 (catching_syscall_number): Adjust.
5152 * ada-lang.c (catch_exception_breakpoint_ops)
5153 (catch_exception_unhandled_breakpoint_ops)
5154 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5155
e29a4733
PA
51562011-06-22 Pedro Alves <pedro@codesourcery.com>
5157
5158 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5159 field.
5160 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5161 reference to forked_inferior_pid.
5162 (struct fork_catchpoint): New type.
5163 (breakpoint_hit_catch_fork, print_it_catch_fork)
5164 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5165 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5166 (create_fork_vfork_event_catchpoint): Adjust to use
5167 init_catchpoint.
5168
346774a9
PA
51692011-06-22 Pedro Alves <pedro@codesourcery.com>
5170
5171 * breakpoint.c (add_to_breakpoint_chain)
5172 (init_raw_breakpoint_without_location): New functions, factored
5173 out from ...
5174 (set_raw_breakpoint_without_location): ... this one.
5175 (init_raw_breakpoint): New function, factored out from
5176 set_raw_breakpoint and adjusted to use
5177 init_raw_breakpoint_without_location.
5178 (set_raw_breakpoint): Adjust.
5179 (init_catchpoint): New function, factored out from
5180 create_catchpoint_without_mention and adjusted to use
5181 init_raw_breakpoint.
5182 (create_catchpoint_without_mention): Adjust.
5183
c38c4bc5
TT
51842011-06-22 Tom Tromey <tromey@redhat.com>
5185
5186 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5187 argument of 0 specially.
5188
b138ce37
YQ
51892011-06-22 Yao Qi <yao@codesourcery.com>
5190
5191 * infrun.c (handle_inferior_event): Remove write-only local variable
5192 `sw_single_step_trap_p'.
5193
03de6823
TT
51942011-06-20 Tom Tromey <tromey@redhat.com>
5195
5196 * symtab.c (lookup_language_this): End loop if block is NULL.
5197
66a17cb6
TT
51982011-06-17 Tom Tromey <tromey@redhat.com>
5199
5200 * valops.c (value_of_this): Use lookup_language_this.
5201 * symtab.h (lookup_language_this): Declare.
5202 * symtab.c (lookup_language_this): New function.
5203 (lookup_symbol_aux): Use lookup_language_this.
5204 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5205
7518bff5
TT
52062011-06-17 Tom Tromey <tromey@redhat.com>
5207
5208 * value.h (value_of_this): Update.
5209 (value_of_local): Remove.
5210 * valops.c (value_of_this): Rename from value_of_local. Change
5211 parameters.
5212 * p-exp.y (exp): Update.
5213 (variable): Likewise.
5214 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5215
aee28ec6
TT
52162011-06-17 Tom Tromey <tromey@redhat.com>
5217
5218 * valops.c (value_of_local): Complain if NAME is NULL.
5219 * std-operator.def (OP_OBJC_SELF): Remove.
5220 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5221 * objc-exp.y (name_not_typename): Use OP_THIS.
5222 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5223 name for "this".
5224 <OP_OBJC_SELF>: Remove.
5225 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5226
eed8f803
TG
52272011-06-16 Tristan Gingold <gingold@adacore.com>
5228
5229 * python/py-events.h (gdb_py_events): Make it extern.
5230 * python/py-evtregistry.c (gdb_py_events): Declare.
5231
864ac8a7
HZ
52322011-06-16 Hui Zhu <teawater@gmail.com>
5233
5234 * remote.c (remote_trace_set_readonly_regions): Add check for
5235 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5236 output warning.
5237
ef7e8358
UW
52382011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5239
5240 * arm-linux-tdep.c: Include "auxv.h".
5241 (AT_HWCAP): Define.
5242 (ARM_LINUX_SIZEOF_VFP): Define.
5243 (arm_linux_supply_vfp): New function.
5244 (arm_linux_collect_vfp): Likewise.
5245 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5246 (arm_linux_fpa_regset_sections): New variable.
5247 (arm_linux_vfp_regset_sections): Likewise.
5248 (arm_linux_core_read_description): New function.
5249 (arm_linux_init_abi): Install arm_linux_core_read_description and
5250 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5251 appropriate for the architecture.
5252 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5253 (tdesc_arm_with_m): Declare.
5254 (tdesc_arm_with_iwmmxt): Likewise.
5255 (tdesc_arm_with_vfpv2): Likewise.
5256 (tdesc_arm_with_vfpv3): Likewise.
5257 (tdesc_arm_with_neon): Likewise.
5258 * arm-linux-nat.c: Move features/*.c includes ...
5259 * arm-tdep.c: ... here.
5260 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5261 target description data structures ...
5262 * arm-tdep.c (_initialize_arm_tdep): ... here.
5263 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5264 HWCAP_VFPv3D16): Move definitions ...
5265 * arm-linux-tdep.h: ... here.
5266
c2fa21f1
HZ
52672011-06-15 Hui Zhu <teawater@gmail.com>
5268
5269 * remote.c (remote_trace_set_readonly_regions): Add a check for
5270 target_buf_size.
5271
dd707e8e
TT
52722011-06-14 Tom Tromey <tromey@redhat.com>
5273
5274 * coffread.c (coffread_objfile): Rename from current_objfile.
5275 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5276 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5277
86cc0029
TT
52782011-06-14 Tom Tromey <tromey@redhat.com>
5279
5280 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5281 (class_symtab): Remove.
5282 (jv_dynamics_progspace_key): New global.
5283 (jv_per_objfile_free): Reset program space data. Update assert.
5284 Don't clear globals.
5285 (get_dynamics_objfile): Use and set program space data.
5286 (get_java_class_symtab): Use get_dynamics_objfile.
5287 (add_class_symbol): Likewise.
5288 (java_link_class_type): Likewise.
5289 (java_object_type, jv_clear_object_type, set_java_object_type):
5290 Remove.
5291 (get_java_object_type): Update. Don't cache result.
5292 (is_object_type): Don't call set_java_object_type.
5293 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5294 initialize jv_dynamics_progspace_key.
5295
91a81f69
TT
52962011-06-14 Tom Tromey <tromey@redhat.com>
5297
5298 * symtab.h (current_objfile): Don't declare.
5299 * objfiles.h (current_objfile): Don't declare.
5300 * objfiles.c (current_objfile): Remove.
5301 * mdebugread.c (current_objfile): New file-scope global.
5302 * dbxread.c (current_objfile): New file-scope global.
5303 * coffread.c (current_objfile): New file-scope global.
5304
dc7eb48e
PA
53052011-06-13 Pedro Alves <pedro@codesourcery.com>
5306
5307 * top.h (line): Rename to ...
5308 (saved_command_line): ... this.
5309 (linesize): Rename to ...
5310 (saved_command_line_size): ... this.
5311 * top.c (line): Rename to ...
5312 (saved_command_line): ... this.
5313 (linesize): Rename to ...
5314 (saved_command_line_size): ... this.
5315 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5316 * event-top.c (command_line_handler): Adjust.
5317 * main.c (captured_main): Adjust.
5318
0d6c2135
MK
53192011-06-12 Mark Kettenis <kettenis@gnu.org>
5320
5321 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5322 get_frame_func instead of get_frame_pc to determine the code
5323 address used to construct the frame ID.
5324 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5325 (i386_epilogue_frame_this_id): Likewise.
5326 (i386_epilogue_frame_prev_register): New function.
5327 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5328 (i386_stack_tramp_frame_sniffer): Fix coding style.
5329 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5330 (i386_gdbarch_init): Fix comments.
5331
8bbdd3f4
MK
53322011-06-12 Mark Kettenis <kettenis@gnu.org>
5333
5334 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5335 instruction when walking back through the instruction stream.
5336
533a737e
JK
53372011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5338
5339 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5340 fullname parameters order.
5341
44b13c5a
JK
53422011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5343
5344 Code cleanup.
5345 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5346 for fun.
5347 * psymtab.c (map_symbol_filenames_psymtab)
5348 (map_partial_symbol_filenames): Likewise.
5349 * psymtab.h: Include symfile.h.
5350 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5351 * symfile.h (symbol_filename_ftype): New.
5352 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5353 map_symbol_filenames, clarify more the naming in comment.
5354
0b5574da
DE
53552011-06-07 Doug Evans <dje@google.com>
5356
5357 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5358 Look for ../../gdb, for fullname.exp.
0b5574da 5359
5be4dfca
JK
53602011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5361 Pedro Alves <pedro@codesourcery.com>
5362
5363 * cli/cli-cmds.c (shell_escape): Use waitpid.
5364 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5365
316a8b21
TG
53662011-06-07 Tristan Gingold <gingold@adacore.com>
5367
5368 * xcoffread.c (dwarf2_xcoff_names): New variable.
5369 (aix_process_linenos): Add a guard.
5370 (xcoff_symfile_finish): Free dwarf2.
5371 (xcoff_initial_scan): Add dwarf2 support.
5372
3dd5b83d
PA
53732011-06-06 Pedro Alves <pedro@codesourcery.com>
5374
5375 * infcall.c (run_inferior_call): Don't mask async. Instead force
5376 a synchronous wait, if the target can async.
5377
5378 * target.h (struct target_ops): Delete to_async_mask.
5379 (target_async_mask): Delete.
5380 * target.c (update_current_target): Delete references to to_async_mask.
5381 * linux-nat.c (linux_nat_async_mask_value): Delete.
5382 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5383 to linux_nat_async_mask_value.
5384 (linux_nat_async_mask): Delete.
5385 (linux_nat_async, linux_nat_close): Remove references to
5386 linux_nat_async_mask_value.
5387 * record.c (record_async_mask_value): Delete.
5388 (record_async): Remove references to record_async_mask_value.
5389 (record_async_mask): Delete.
5390 (record_can_async_p, record_is_async_p): Remove references to
5391 record_async_mask_value.
5392 (init_record_ops, init_record_core_ops): Remove references to
5393 record_async_mask.
5394 * remote.c (remote_async_mask_value): Delete.
5395 (init_remote_ops): Remove reference to remote_async_mask.
5396 (remote_can_async_p, remote_is_async_p): Remove references to
5397 remote_async_mask_value.
5398 (remote_async): Remove references to remote_async_mask_value.
5399 (remote_async_mask): Delete.
5400
5401 * infrun.c (fetch_inferior_event): Don't claim registers changed
5402 if the current thread is already not executing.
5403
64b9b334
JB
54042011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5405
5406 From Stephen Kitt <steve@sk2.org>
5407 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5408 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5409
325663dc
JB
54102011-06-03 Joel Brobecker <brobecker@adacore.com>
5411
5412 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5413 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5414
8cf64490
TT
54152011-06-03 Tom Tromey <tromey@redhat.com>
5416
5417 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5418 code fields.
5419 * python/py-exitedevent.c (create_exited_event_object): Change
5420 type of 'exit_code'. Optionally add exit_code attribute.
5421 (emit_exited_event): Change type of 'exit_code'.
5422 * python/py-event.h (emit_exited_event): Update.
5423 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5424 * infrun.c (handle_inferior_event): Set exit code fields on
5425 inferior.
5426 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5427 fields.
5428 * inferior.c (exit_inferior_1): Initialize new fields.
5429
8ddd9a20
TT
54302011-06-03 Tom Tromey <tromey@redhat.com>
5431
5432 * dwarf2expr.c (get_signed_type): New function.
5433 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5434
8dfd1e6d
KS
54352011-06-02 Keith Seitz <keiths@redhat.com>
5436
5437 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5438
65fdb766
PA
54392011-06-02 Pedro Alves <pedro@codesourcery.com>
5440
5441 * top.h (simplified_command_loop): Delete declaration.
5442
f4b8c29b
MF
54432011-06-01 Mike Frysinger <vapier@gentoo.org>
5444
5445 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5446 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5447
1706c199
YQ
54482011-06-01 Yao Qi <yao@codesourcery.com>
5449
5450 * objfiles.h (obj_section_addr): Update reference to objfile from
5451 `abfd' to `obfd'.
5452 (obj_section_endaddr): Likewise.
5453
d19cd713 54542011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5455
5456 * MAINTAINERS: Update my email address and affiliation. Also
5457 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5458
e8eb7bc5
KS
54592010-05-31 Keith Seitz <keiths@redhat.com>
5460
5461 PR c++/12750
5462 * linespec.c (get_search_block): New function.
5463 (find_methods): Add FILE_SYMTATB parameter and use it and
5464 get_search_block to pass an appropriate block to
5465 lookup_symbol_in_namespace.
5466 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5467 Check if *ARGPTR starts with a filename first.
5468 If it does, call locate_first_half again to locate the next
5469 "first half" of the linespec.
5470 Pass FILE_SYMTATB to decode_objc and decode_compound.
5471 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5472 (locate_first_half): Stop on the first colon seen.
5473 (decode_compound): Add FILE_SYMTAB parameter.
5474 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5475 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5476 get_search_block with lookup_symbol.
5477 (find_method): Add FILE_SYMTAB parameter and pass it to
5478 find_methods.
5479 (decode_objc): Use get_search_block.
5480
2b1dbab0
KS
54812010-05-31 Keith Seitz <keiths@redhat.com>
5482
5483 PR symtab/12704
5484 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5485 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5486 and CP_ANONYMOUS_NAMESPACE_LEN.
5487 (cp_is_anonymous): Likewise.
5488 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5489 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5490 * dwarf2read.c (namespace_name): Likewise.
5491 (fixup_partial_die): Likewise.
5492 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5493 seen in the input, keep it.
5494
6d549500
PA
54952011-05-30 Pedro Alves <pedro@codesourcery.com>
5496
5497 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5498 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5499 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5500 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5501 * remote.c (_initialize_remote): Register
5502 async_remote_interrupt_twice directly as
5503 sigint_remote_twice_token event.
5504
395bff70
PA
55052011-05-30 Pedro Alves <pedro@codesourcery.com>
5506
5507 * target.h (enum inferior_event_type): Delete INF_ERROR.
5508 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5509
97224164
PA
55102011-05-30 Pedro Alves <pedro@codesourcery.com>
5511
5512 * interps.c (interp_set): Don't cancel continuations.
5513
07e78767
JK
55142011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5515
5516 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5517
fa4cd53f
PA
55182011-05-30 Pedro Alves <pedro@codesourcery.com>
5519
5520 * continuations.h (continuation_ftype): Add `err' parameter.
5521 Document parameters.
5522 (do_all_continuations, do_all_continuations_thread)
5523 (do_all_intermediate_continuations)
5524 (do_all_intermediate_continuations_thread)
5525 (do_all_inferior_continuations): Add `err' parameter.
5526 * continuations.c (do_my_continuations_1, do_my_continuations)
5527 (do_all_inferior_continuations, do_all_continuations_ptid)
5528 (do_all_continuations_thread_callback)
5529 (do_all_continuations_thread, do_all_continuations)
5530 (do_all_intermediate_continuations_thread_callback)
5531 (do_all_intermediate_continuations_thread)
5532 (do_all_intermediate_continuations): Add `err' parameter, and pass
5533 it down all the way to the continuations proper.
5534 * inf-loop.c (inferior_event_handler): If fetching an inferior
5535 event throws an error, don't pop the target, and still call the
5536 continuations, but with `err' set. Adjust all other continuation
5537 calls.
5538 * breakpoint.c (until_break_command_continuation): Add `err'
5539 parameter.
5540 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5541 issue another step if `err' is set.
5542 (struct until_next_continuation_args): New.
5543 (until_next_continuation): Add `err' parameter. Adjust.
5544 (until_next_command): Adjust.
5545 (struct finish_command_continuation_args): Add `thread' field.
5546 (finish_command_continuation): Add `err' parameter. Handle it.
5547 (finish_forward): Adjust.
5548 (attach_command_continuation): Add `err' parameter. Handle it.
5549 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5550 cancel the continuations.
5551 * interps.c (interp_set): Adjust to cancel the continuations.
5552 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5553 continuations rather than discarding.
5554 (free_thread): Don't clear thread inferior resources here.
5555 (delete_thread_1): Do it here instead. And do it before removing
5556 the thread from the threads list. Tag the thread as exited before
5557 clearing thread inferior resources.
5558
c2949be0
JB
55592011-05-30 Joel Brobecker <brobecker@adacore.com>
5560
5561 * infcall.c (call_function_by_hand): Rephrase error message.
5562
619cebe8
PA
55632011-05-27 Pedro Alves <pedro@codesourcery.com>
5564
5565 * defs.h (struct thread_info, struct inferior): Delete forward
5566 declarations.
5567 * breakpoint.h (struct thread_info): New forward declaration.
5568 * observer.sh (struct inferior): New forward declaration.
5569 * python/python-internal.h (struct inferior): New forward
5570 declaration.
5571
be34f849
PA
55722011-05-27 Pedro Alves <pedro@codesourcery.com>
5573
5574 * defs.h (struct continuation, continuation_ftype)
5575 (continuation_free_arg_ftype, add_continuation)
5576 (do_all_continuations, do_all_continuations_thread)
5577 (discard_all_continuations, discard_all_continuations_thread)
5578 (add_intermediate_continuation, do_all_intermediate_continuations)
5579 (do_all_intermediate_continuations_thread)
5580 (discard_all_intermediate_continuations)
5581 (discard_all_intermediate_continuations_thread)
5582 (add_inferior_continuation, do_all_inferior_continuations)
5583 (discard_all_inferior_continuations): Move to ...
5584 * continuations.h: ... this new file.
5585 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5586 infcmd.c, inferior.c, infrun.c, interps.c: Include
5587 continuations.h.
5588
432b4d03
JK
55892011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 Doug Evans <dje@google.com>
5591
5592 Fix PR 10970, PR 12702.
5593 * linux-nat.c (linux_lwp_is_zombie): New function.
5594 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5595 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5596
b0f260d6
PA
55972011-05-27 Pedro Alves <pedro@codesourcery.com>
5598
5599 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5600 typedefs.
5601 (add_continuation, add_intermediate_continuation)
5602 (add_inferior_continuation): Use them.
5603 * continuations.c (struct continuation): Use them.
5604 (make_continuation_ftype): Delete.
5605 (make_continuation, add_inferior_continuation, add_continuation)
5606 (add_intermediate_continuation): Use continuation_ftype and
5607 continuation_free_arg_ftype. Rename parameters to shorter names.
5608
af1e9a32
PA
56092011-05-27 Pedro Alves <pedro@codesourcery.com>
5610
5611 * continuations.c (make_continuation): Make it return void.
5612 (do_my_continuations): Rename to ...
5613 (do_my_continuations_1): ... this. Remove old_chain parameter and
5614 adjust.
5615 (do_my_continuations): New.
5616 (discard_my_continuations): Rename to ...
5617 (discard_my_continuations_1): ... this. Remove old_chain
5618 parameter and adjust.
5619 (discard_my_continuations): New.
5620 (add_inferior_continuation): Simplify.
5621 (do_all_inferior_continuations): Reimplement on top
5622 do_my_continuations.
5623 (discard_all_inferior_continuations): Simplify.
5624 (add_continuation): Simplify.
5625 (do_all_continuations_ptid): Simplify.
5626 (discard_all_continuations_thread_callback): Simplify.
5627 (add_intermediate_continuation): Simplify.
5628 (discard_all_intermediate_continuations_thread_callback):
5629 Simplify.
5630
50c0c017
PA
56312011-05-27 Pedro Alves <pedro@codesourcery.com>
5632
5633 * utils.c (struct continuation, add_continuation)
5634 (add_inferior_continuation)
5635 (do_all_inferior_continuations, discard_all_inferior_continuations)
5636 (restore_thread_cleanup, do_all_continuations_ptid)
5637 (do_all_continuations_thread_callback)
5638 (do_all_continuations_thread, do_all_continuations)
5639 (discard_all_continuations_thread_callback)
5640 (discard_all_continuations_thread, discard_all_continuations)
5641 (add_intermediate_continuation)
5642 (do_all_intermediate_continuations_thread_callback)
5643 (do_all_intermediate_continuations_thread)
5644 (do_all_intermediate_continuations)
5645 (discard_all_intermediate_continuations_thread_callback)
5646 (discard_all_intermediate_continuations_thread)
5647 (discard_all_intermediate_continuations): Move to ...
5648 * continuations.c: ... this new file, and adjust to no longer
5649 implement continuations on top of cleanups.
5650 * Makefile.in (SFILES): Add continuations.c.
5651 (COMMON_OBS): Add continuations.o.
5652
d8b34453
PA
56532011-05-26 Pedro Alves <pedro@codesourcery.com>
5654
5655 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5656 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5657 Internal error on invalid values.
5658 * reverse.c: Don't handle EXEC_ERROR.
5659 * mi/mi-main.c: Don't handle EXEC_ERROR.
5660
32231432
PA
56612011-05-26 Pedro Alves <pedro@codesourcery.com>
5662
5663 * record.c: Include event-loop.h, inf-loop.h.
5664 (record_beneath_to_async): New global.
5665 (tmp_to_async): New global.
5666 (record_async_inferior_event_token): New global.
5667 (record_open_1): Don't error out if async is enabled.
5668 (record_open): Handle to_async. Create an async event source in
5669 the event loop.
5670 (record_close): Delete the async event source.
5671 (record_resumed): New global.
5672 (record_execution_dir): New global.
5673 (record_resume, record_core_resume): Set them. Register the
5674 target on the event loop.
5675 (record_wait): Rename to ...
5676 (record_wait_1): ... this. Add more debug output. Handle
5677 TARGET_WNOHANG, and the target beneath returning
5678 TARGET_WAITKIND_IGNORE.
5679 (record_wait): Reimplement on top of record_wait_1.
5680 (record_async_mask_value): New global.
5681 (record_async, record_async_mask, record_can_async_p)
5682 (record_is_async_p, record_execution_direction): New functions.
5683 (init_record_ops, init_record_core_ops): Install new methods.
5684 * infrun.c (fetch_inferior_event): Temporarily switch the global
5685 execution direction to the direction the target was going.
5686 (execution_direction): Change type to int.
5687 * target.c (default_execution_direction): New function.
5688 (update_current_target): Inherit and de_fault
5689 to_execution_direction.
5690 * target.h (struct target_ops) <to_execution_direction>: New
5691 field.
5692 (target_execution_direction): New macro.
5693 * inferior.h (execution_direction): Change type to int.
5694
949dc678
PA
56952011-05-26 Pedro Alves <pedro@codesourcery.com>
5696
5697 * infcall.c (call_function_by_hand): Don't allow calling functions
5698 in reverse execution mode.
5699
c13bd2b5
PA
57002011-05-26 Pedro Alves <pedro@codesourcery.com>
5701
5702 * infcmd.c (finish_command): Allow async finish in reverse.
5703
6938fd34
YQ
57042011-05-26 Yao Qi <yao@codesourcery.com>
5705
5706 * gdb_thread_db.h: Delete. Move to ...
5707 * common/gdb_thread_db.h: ... here.
5708
9da8c2a0
PA
57092011-05-26 Pedro Alves <pedro@codesourcery.com>
5710
5711 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5712 function's entry point instead of a manually managed momentary
5713 breakpoint, and only ever issue one proceed call.
5714 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5715 doing a reverse-finish, switch to stepi mode, to do another step.
5716 (insert_step_resume_breakpoint_at_sal): Make public.
5717 (normal_stop): No need to save function value return registers if
5718 going reverse.
5719 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5720
2c03e5be
PA
57212011-05-26 Pedro Alves <pedro@codesourcery.com>
5722
5723 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5724 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5725 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5726 at the end.
5727 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5728 step-resume breakpoints.
5729 (print_it_typical): Handle bp_hp_step_resume.
5730 (bpstat_what): Ditto.
5731 (bptype_string): Ditto.
5732 (print_one_breakpoint_location): Ditto.
5733 (allocate_bp_location): Ditto.
5734 (mention): Ditto.
5735 (breakpoint_re_set_one): Ditto.
5736 * infrun.c (handle_inferior_event): Adjust. Split
5737 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5738 BPSTAT_WHAT_HP_STEP_RESUME.
5739 (insert_step_resume_breakpoint_at_sal): Rename to ...
5740 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5741 parameter. Handle it.
5742 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5743 insert_step_resume_breakpoint_at_sal_1.
5744 (insert_step_resume_breakpoint_at_frame): Rename to ...
5745 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5746 set a high-priority step-resume breakpoint.
5747 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5748 (insert_step_resume_breakpoint_at_caller): Ditto.
5749
51be5b68
PA
57502011-05-26 Pedro Alves <pedro@codesourcery.com>
5751
5752 * breakpoint.c (iterate_over_related_breakpoints): New.
5753 (do_map_delete_breakpoint): New.
5754 (delete_command): Pass do_map_delete_breakpoint to
5755 map_breakpoint_numbers.
5756 (do_disable_breakpoint): New.
5757 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5758 breakpoints.
5759 (do_enable_breakpoint): Rename to ...
5760 (enable_breakpoint_disp): ... this.
5761 (enable_breakpoint): Adjust.
5762 (do_enable_breakpoint): New.
5763 (enable_once_breakpoint): Delete.
5764 (do_map_enable_breakpoint): New.
5765 (do_map_enable_once_breakpoint): New.
5766 (enable_once_command, enable_delete_command)
5767 (delete_trace_command): Iterate over the breakpoint's related
5768 breakpoints.
5769
4a1be8d2
PA
57702011-05-26 Pedro Alves <pedro@codesourcery.com>
5771
5772 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5773 for ALPHA_ZERO_REGNUM.
5774 (alpha_supply_int_regs): Explicitly supply zero as the value for
5775 ALPHA_ZERO_REGNUM in the register cache.
5776 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5777
59d70315
YQ
57782011-05-26 Yao Qi <yao@codesourcery.com>
5779
5780 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5781
251d32d9
TG
57822011-05-26 Tristan Gingold <gingold@adacore.com>
5783
5784 * symfile.h (struct dwarf2_section_names): New type.
5785 (struct dwarf2_debug_sections): New type.
5786 (dwarf2_has_info): Add parameter.
5787 * dwarf2read.c (dwarf2_elf_names): New variable.
5788 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5789 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5790 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5791 (dwarf2_has_info): Add names parameter. Pass names
5792 to dwarf2_locate_sections.
5793 (section_is_p): Rewrite using the names parameter.
5794 (dwarf2_locate_sections): Use section names from the names parameter.
5795 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5796 * elfread.c (read_psyms): Ditto.
5797 * machoread.c (macho_symfile_read): Ditto.
5798
652c71b4
AS
57992011-05-25 Andreas Schwab <schwab@redhat.com>
5800
5801 PR gdb/8677
5802 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5803
f17170e5
KS
58042011-05-24 Keith Seitz <keiths@redhat.com>
5805
5806 PR breakpoint/12803
5807 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5808 (decode_compound): Unconditionally call keep_name_info.
5809
cdac0397
PA
58102011-05-24 Pedro Alves <pedro@codesourcery.com>
5811
5812 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5813 scope, clear its command list.
5814 (map_breakpoint_numbers): Don't walk the related breakpoints list
5815 of each breakpoint.
5816
91d4fe3f
TT
58172011-05-24 Tom Tromey <tromey@redhat.com>
5818
5819 * MAINTAINERS: Move Jim Blandy to past maintainers.
5820
3017a003
TG
58212011-05-24 Tristan Gingold <gingold@adacore.com>
5822
5823 * symfile.h (enum dwarf2_section_enum): New type.
5824 (dwarf2_get_section_info): New prototype.
5825 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5826 section_name by sect. Use a switch to select the info.
5827 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5828 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5829
c91c8c16
PA
58302011-05-24 Pedro Alves <pedro@codesourcery.com>
5831
5832 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5833 shared library event breakpoint if there's no execution.
5834
77bc418a
TJB
58352011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5836
5837 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5838 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5839
c50491a7
TT
58402011-05-23 Tom Tromey <tromey@redhat.com>
5841
5842 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5843 NULL.
5844
6d64e6d4
DE
58452011-05-23 Doug Evans <dje@google.com>
5846
5847 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5848 entry for RuntimeError to doc string.
5849
2067c8d4
JG
58502011-05-23 Jerome Guitton <guitton@adacore.com>
5851
5852 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5853 sequence for probing loops.
5854
b136cd05
PA
58552011-05-23 Pedro Alves <pedro@codesourcery.com>
5856
5857 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5858 comment.
5859
22e74ef9
MK
58602011-05-21 Mark Kettenis <kettenis@gnu.org>
5861
5862 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5863 zero as the value for %g0 in the register cache.
5864 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5865 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5866
842951eb
PA
58672011-05-20 Pedro Alves <pedro@codesourcery.com>
5868
5869 * infrun.c (proceed): Set previous_inferior_ptid here.
5870 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5871 inferior_ptid, not null_ptid.
5872 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5873 (fetch_inferior_event): Nor here.
5874
46cf51e6
PA
58752011-05-20 Pedro Alves <pedro@codesourcery.com>
5876
5877 * inf-loop.c (inferior_event_handler): Only output a message if
5878 verbose.
5879
29ef4c46
LM
58802011-05-20 Luis Machado <lgustavo@codesourcery.com>
5881
5882 * MAINTAINERS: Update my e-mail address.
5883
f148b27e
PA
58842011-05-20 Pedro Alves <pedro@codesourcery.com>
5885
5886 * infrun.c (proceed): Switch the inferior event loop to
5887 INF_EXEC_COMPLETE if the target refused to resume from a
5888 vfork/fork.
5889
09cee04b
PA
58902011-05-20 Pedro Alves <pedro@codesourcery.com>
5891
5892 * infcmd.c: Include "inf-loop.h".
5893 (step_once): When stepping into an inline subroutine, pretend the
5894 target has run. If the target can async, switch the inferior
5895 event loop to INF_EXEC_COMPLETE.
5896 * inferior.h (user_visible_resume_ptid): Declare.
5897 * infrun.c (user_visible_resume_ptid): New function, factored out
5898 from `resume'.
5899 (resume): Use it.
5900 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5901 that the current thread is running. Merge async and sync
5902 branches.
5903
751b8ce1
PA
59042011-05-20 Pedro Alves <pedro@codesourcery.com>
5905
5906 * infcmd.c (step_1): Simplify synchronous case.
5907
e93a69ed
PA
59082011-05-20 Pedro Alves <pedro@codesourcery.com>
5909
5910 * tracepoint.c: Include exceptions.h.
5911 (TFILE_PID): Move higher in file.
5912 (tfile_open): Delay pushing the tfile target until we're assured
5913 the tfile header is present in the file. Wrap reading the initial
5914 newline-terminated lines in TRY_CATCH. Pop the target if the
5915 initial setup failed. Add the tfile's thread immediately
5916 aftwards, before any non-essential setup. Don't skip
5917 post_create_inferior if there are no traceframes present in the
5918 file.
5919 (tfile_close): Remove redundant check for null before xfree call.
5920 (tfile_thread_alive): New function.
5921 (init_tfile_ops): Register it as to_thread_alive callback.
5922
6823e2b1
PA
59232011-05-20 Pedro Alves <pedro@codesourcery.com>
5924
5925 * tracepoint.c (tfile_open): Delete #if 0'd code.
5926
b3c8eb43
JK
59272011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5928
5929 Fix -readnow for -gdwarf-4 unused type units.
5930 * dwarf2read.c (struct signatured_type): Remove the field offset.
5931 (create_signatured_type_table_from_index): Remove its initialization.
5932 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5933 instead. Add a complaint call.
5934 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5935 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5936 (lookup_signatured_type_at_offset, read_signatured_type)
5937 (write_one_signatured_type): Update the field for per_cu.
5938
310afc76
TT
59392011-05-19 Tom Tromey <tromey@redhat.com>
5940
5941 * python/py-inferior.c (python_inferior_exit): Use
5942 target_gdbarch.
5943 (python_on_resume): Likewise.
5944
cf6c5ffb
TT
59452011-05-19 Matt Rice <ratmice@gmail.com>
5946
5947 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5948
fb80a3c5
HZ
59492011-05-19 Hui Zhu <teawater@gmail.com>
5950
5951 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5952
3672b1be
HZ
59532011-05-19 Hui Zhu <teawater@gmail.com>
5954
5955 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5956
ff355380
TT
59572011-05-18 Tom Tromey <tromey@redhat.com>
5958
5959 * dwarf2read.c (dwarf2_add_field): Constify.
5960 * value.c (value_static_field): Constify.
5961 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5962 Now const.
5963 * ax-gdb.c (gen_static_field): Constify
5964
ed731959
JK
59652011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5966
5967 * linux-nat.c (kill_callback): Use SIGKILL first.
5968
967cff16
JB
59692011-05-18 Joel Brobecker <brobecker@adacore.com>
5970
5971 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5972
1d06ead6
TT
59732011-05-18 Tom Tromey <tromey@redhat.com>
5974
5975 * value.c (value_fn_field): Constify.
5976 * symtab.c (gdb_mangle_name): Constify.
5977 * stabsread.c (update_method_name_from_physname): Make 'physname'
5978 argument const.
5979 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5980 const. Use explicit fputc_filtered loop.
5981 (pascal_type_print_base): Constify.
5982 * p-lang.h (pascal_type_print_method_args): Update.
5983 * linespec.c (add_matching_methods): Constify.
5984 (add_constructors): Likewise.
5985 * jv-typeprint.c (java_type_print_base): Constify.
5986 * gdbtypes.h (struct cplus_struct_type)
5987 <fn_fieldlist.fn_field.physname>: Now const.
5988 * dwarf2read.c (compute_delayed_physnames): Constify.
5989 (dwarf2_add_member_fn): Likewise.
5990 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5991
0d9a9a5f
PA
59922011-05-18 Pedro Alves <pedro@codesourcery.com>
5993
5994 * infrun.c (resume): Mention which is the current thread, and its
5995 current PC in debug output.
5996 (prepare_to_proceed): Mention the thread switching in debug
5997 output.
5998
05386e9e
TT
59992011-05-18 Tom Tromey <tromey@redhat.com>
6000
6001 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6002 path check. Use xmalloc and cleanups.
6003 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6004
ee86786c
TT
60052011-05-17 Tom Tromey <tromey@redhat.com>
6006
6007 * cp-valprint.c (cp_print_value_fields): Catch errors from
6008 value_static_field.
6009
9ff3b74f
TT
60102011-05-17 Tom Tromey <tromey@redhat.com>
6011
6012 * dwarf2read.c (dwarf2_get_die_type): Call
6013 get_die_type_at_offset.
6014 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6015 get_base_type function.
6016
cd3da28e
PA
60172011-05-17 Tomas Martinec <fyzmat@gmail.com>
6018
6019 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6020 trap_expected.
6021
fd20d931
DE
60222011-05-16 Doug Evans <dje@google.com>
6023
6024 * python/py-auto-load.c (source_section_scripts): Mention objfile
6025 name in warning.
6026
75fc9810
DE
60272011-05-15 Doug Evans <dje@google.com>
6028
290351b8
DE
6029 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6030 (try_thread_db_load_from_pdir): Call it. If unable to find
6031 libthread_db in directory of libpthread, see if we're looking at
6032 the separate-debug-info copy.
6033
75fc9810
DE
6034 * python/py-autoload.c (print_script): Print "Missing" instead of
6035 "No" for missing scripts.
6036 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6037
9f7bc587
DE
60382011-05-13 Doug Evans <dje@google.com>
6039
6040 * ui-file.c (stdio_file_write_async_safe): Add comment.
6041
093cee7d
HZ
60422011-05-14 Hui Zhu <teawater@gmail.com>
6043
6044 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6045
dbaefcf7
DE
60462011-05-13 Doug Evans <dje@google.com>
6047
98a5dd13
DE
6048 Support $pdir and $sdir in libthread-db-search-path.
6049 * NEWS: Mention $sdir,$pdir.
6050 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6051 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6052 (try_thread_db_load_from_sdir): New function.
6053 (try_thread_db_load_from_dir): New function.
6054 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6055 system directories if search of libthread-db-search-path fails,
6056 that is now done via $sdir.
6057 (has_libpthread): New function.
6058 (thread_db_load): Remove search for libthread_db in directory of
6059 libpthread, that is now done via $pdir.
6060
dbaefcf7
DE
6061 * NEWS: Mention "info auto-load-scripts".
6062 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6063 script_not_found_warning_printed.
6064 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6065 all callers updated. Initialize script_not_found_warning_printed.
6066 (get_auto_load_pspace_data_for_loading): New function.
6067 (maybe_add_script): New function.
6068 (source_section_scripts): Simplify. Only print one warning regardless
6069 of the number of auto-load scripts not found.
6070 (clear_section_scripts): Clear script_not_found_warning_printed.
6071 (auto_load_objfile_script): Record script in hash table.
6072 (count_matching_scripts): New function.
6073 (maybe_print_script): Renamed from maybe_print_section_script, all
6074 callers updated. Rewrite to use ui_out_*.
6075 (info_auto_load_scripts): Renamed from
6076 maintenance_print_section_scripts, all callers updated.
6077 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6078 renamed as "info auto-load-scripts".
6079
9930639c
TT
60802011-05-13 Tom Tromey <tromey@redhat.com>
6081
6082 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6083 (read_sleb128): Likewise.
6084
06826322
TT
60852011-05-13 Tom Tromey <tromey@redhat.com>
6086
6087 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6088 offset display.
6089
01124a23
DE
60902011-05-13 Doug Evans <dje@google.com>
6091
6092 * linux-nat.c (debug_linux_nat_async): Delete.
6093 Replace all references to use debug_linux_nat instead.
6094 (show_debug_linux_nat_async): Delete.
6095 (sigchld_handler): Call ui_file_write_async_safe instead of
6096 fprintf_unfiltered.
6097 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6098 * ui-file.c (struct ui_file): New member to_write_async_safe.
6099 (null_file_write_async_safe): New function.
6100 (ui_file_write_async_safe): New function.
6101 (set_ui_file_write_async_safe): New function.
6102 (ui_file_new): Initialize to_write_async_safe.
6103 (stdio_file_write_async_safe): New function.
6104 (struct stdio_file): New member fd.
6105 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6106 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6107 fileno.
01124a23
DE
6108 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6109 (set_ui_file_write_async_safe): Declare.
6110 (ui_file_write_async_safe): Declare.
6111
72fc29ff
TT
61122011-05-13 Tom Tromey <tromey@redhat.com>
6113
6114 * utils.c (do_value_free): New function.
6115 (make_cleanup_value_free): Likewise.
6116 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6117 freeing correctly.
6118 (dwarf2_loc_desc_needs_frame): Call
6119 make_cleanup_value_free_to_mark.
6120 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6121 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6122 value_free_to_mark.
6123 (new_dwarf_expr_context): Don't call value_mark.
6124 * dwarf2-frame.c (execute_stack_op): Call
6125 make_cleanup_value_free_to_mark.
6126 * defs.h (make_cleanup_value_free): Declare.
6127
028d0ed5
TJB
61282011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6129
6130 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6131 prepare_execute_command.
6132 * top.c (prepare_execute_command): Return cleanup.
6133 (execute_command): Use cleanup from prepare_execute_command.
6134 * top.h (prepare_execute_command): Change prototype to return
6135 cleanup.
6136 * defs.h (struct value): Add opaque declaration.
6137 (make_cleanup_value_free_to_mark): Add prototype.
6138 * utils.c (do_value_free_to_mark): New function.
6139 (make_cleanup_value_free_to_mark): Likewise.
6140
b087e0ed
TT
61412011-05-12 Tom Tromey <tromey@redhat.com>
6142
6143 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6144 cast left-hand-side to unsigned.
6145
8a9b8146
TT
61462011-05-12 Tom Tromey <tromey@redhat.com>
6147
6148 PR gdb/12617:
6149 * value.h (value_from_contents): Declare.
6150 * value.c (value_from_contents): New function.
6151 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6152 (dwarf2_get_die_type): New function.
6153 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6154 (allocate_piece_closure): Acquire reference to values.
6155 (read_pieced_value): Update for value-based expressions.
6156 (write_pieced_value): Likewise.
6157 (free_pieced_value_closure): Call value_free as needed.
6158 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6159 Update for value-based expressions.
6160 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6161 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6162 <get_base_type>: New field.
6163 (struct dwarf_expr_piece) <v.value>: Change type.
6164 <v.regno>: New field.
6165 (struct dwarf_expr_context) <mark>: New field.
6166 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6167 (dwarf_expr_pop, dwarf_expr_push): Remove.
6168 (dwarf_expr_push_address): Declare.
6169 * dwarf2expr.c (dwarf_arch_cookie): New global.
6170 (struct dwarf_gdbarch_types): New.
6171 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6172 functions.
6173 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6174 static.
6175 (dwarf_expr_push_address): New function.
6176 (dwarf_expr_pop): Now static.
6177 (dwarf_expr_fetch): Change return type.
6178 (dwarf_require_integral): New function.
6179 (dwarf_expr_fetch): Simplify.
6180 (add_piece): Update.
6181 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6182 functions.
6183 (execute_stack_op) <sign_ext>: Remove.
6184 Use values for DWARF stack.
6185 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6186 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6187 New cases.
6188 (_initialize_dwarf2expr): New function.
6189 (add_piece): Update.
6190 (new_dwarf_expr_context): Set new field.
6191 (free_dwarf_expr_context): Call value_free_to_mark.
6192 * dwarf2-frame.c (no_base_type): New function.
6193 (execute_stack_op): Set get_base_type field. Update.
6194
e8d28ef4
TT
61952011-05-12 Tom Tromey <tromey@redhat.com>
6196
6197 * dwarf2read.c (read_common_block): Fix formatting.
6198
d248b706
KY
61992011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6200
6201 * breakpoint.c (disable_breakpoint): Disable all locations
6202 associated with a tracepoint on target if a trace experiment is
6203 running.
6204 (disable_command): Disable a specific tracepoint location on target if
6205 a trace experiment is running.
6206 (do_enable_breakpoint): Enable all locations associated with a
6207 tracepoint on target if a trace experiment is running.
6208 (enable_command) Enable a specific tracepoint location on target if a
6209 trace experiment is running.
6210 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6211 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6212 to_disable_tracepoint.
6213 * target.h: Add declaration of struct bp_location.
6214 (struct target_ops): Add new functions
6215 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6216 to_disable_tracepoint to target operations.
6217 (target_supports_enable_disable_tracepoint): New macro.
6218 (target_enable_tracepoint): New macro.
6219 (target_disable_tracepoint): New macro.
6220 * remote.c (struct remote_state): Add new field.
6221 (remote_enable_disable_tracepoint_feature): New.
6222 (remote_protocol_features): Add new entry.
6223 (remote_supports_enable_disable_tracepoint): New.
6224 (remote_enable_tracepoint): New.
6225 (remote_disable_tracepoint): New.
6226 (init_remote_ops): Add remote_enable_tracepoint,
6227 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6228 to remote operations.
6229 * tracepoint.c (start_tracing): Allow tracing to start without any
6230 tracepoints enabled with just a warning if they can be re-enabled
6231 later.
6232 * NEWS: Add news item for the new behaviour of the enable and disable
6233 GDB commands when applied to tracepoints.
6234 Add news items for the new remote packets QTEnable and QTDisable.
6235
cc88a640
JK
62362011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6237
6238 * config.in: Regenerate.
6239 * configure: Regenerate.
6240 * configure.ac <--with-system-readline> (for readline_echoing_p):
6241 Remove the test.
6242 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6243 (tui_old_rl_echoing_p): ... here.
6244 (tui_setup_io): Rename extern declaration readline_echoing_p to
6245 _rl_echoing_p. Adjust assignments for the both renames.
6246
1f84b619
TJB
62472011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6248
6249 * symtab.c (lookup_symtab): Run cleanup before returning.
6250
74ac6d43
TT
62512011-05-11 Tom Tromey <tromey@redhat.com>
6252
6253 * dwarf2read.c (handle_data_member_location): New function.
6254 (dwarf2_add_field): Use it.
6255 (read_common_block): Likewise.
6256
5488dafb
JK
62572011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6258
6259 Make addrs->SECTINDEX always defined.
6260 * symfile.c (relative_addr_info_to_section_offsets): Check for
6261 SECTINDEX -1, not for zero ADDR.
6262 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6263 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6264 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6265 on its validity.
6266
84e578fb
DE
62672011-05-10 Doug Evans <dje@google.com>
6268
2471d008
DE
6269 * linux-thread-db.c: Whitespace cleanup.
6270 (try_thread_db_load_1): Fix comment.
6271
84e578fb
DE
6272 * linux-thread-db.c (set_libthread_db_search_path): New function.
6273 (_initialize_thread_db): Add setter for libthread-db-search-path.
6274
673c2bbe
DE
62752011-05-09 Doug Evans <dje@google.com>
6276
478aac75
DE
6277 * NEWS: Mention --with-iconv-bin.
6278 * configure.ac: New option --with-iconv-bin.
6279 * configure: Regenerate.
6280 * config.in: Regenerate.
6281 * defs.h (relocate_gdb_directory): Declare.
6282 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6283 removed progname parameter, and exported. All callers updated.
6284 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6285
673c2bbe
DE
6286 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6287 adding missing call to restore_child_signals_mask.
6288
e4c8541f
PA
62892011-05-09 Pedro Alves <pedro@codesourcery.com>
6290
6291 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6292 parameter.
6293 * infrun.c (proceed, start_remote): Adjust.
6294 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6295 and adjust to not handle it.
6296 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6297 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6298 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6299 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6300 * windows-nat.c (do_initial_windows_stuff): Adjust.
6301 * infcmd.c (attach_command): Adjust.
6302 (notice_new_inferior): Adjust.
6303
a536c6d7
UW
63042011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6305
6306 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6307 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6308 * spu-tdep.c (op_selb): Use correct value.
6309
7845b013
UW
63102011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6311
6312 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6313 "parent" parameter to symbol_file_add_from_bfd call.
6314
9c06b0b4
TJB
63152011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6316 Thiago Jung Bauermann <bauerman@br.ibm.com>
6317
6318 Implement support for PowerPC BookE masked watchpoints.
6319 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6320 section.
6321 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6322 method. Initialize to NULL in all existing breakpoint_ops instances.
6323 (struct breakpoint) <hw_wp_mask>: New field.
6324 * breakpoint.c (is_masked_watchpoint): Add prototype.
6325 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6326 breakpoint's breakpoint_ops.works_in_software_mode if available.
6327 (watchpoints_triggered): Handle the case of a hardware masked
6328 watchpoint trigger.
6329 (watchpoint_check): Likewise.
6330 (works_in_software_mode_watchpoint): New function.
6331 (insert_masked_watchpoint, remove_masked_watchpoint)
6332 (resources_needed_masked_watchpoint)
6333 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6334 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6335 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6336 functions.
6337 (masked_watchpoint_breakpoint_ops): New structure.
6338 (watch_command_1): Check for the existence of the `mask' parameter.
6339 Set b->ops according to the type of hardware watchpoint being created.
6340 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6341 (ppc_linux_remove_mask_watchpoint)
6342 (ppc_linux_masked_watch_num_registers): New functions.
6343 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6344 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6345 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6346 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6347 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6348 (target_masked_watch_num_registers): New functions.
6349 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6350 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6351 methods.
6352 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6353 (target_masked_watch_num_registers): Add prototypes.
6354
8be455d7
JK
63552011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6356
6357 PR 12573
6358 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6359 (producer_is_gcc_ge_4_0): New function.
6360 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6361 symtab->language code.
6362 (var_decode_location): Set cu->has_loclist.
6363 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6364 skip. Intialize force_skip from locations_valid. Move the prologue
6365 skipping code into two passes.
6366 * symtab.h (struct symtab): Make the primary field a bitfield. New
6367 field locations_valid.
6368
d8228535
JK
63692011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6370
6371 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6372 (classify_inner_name): Call cp_lookup_nested_type with
6373 yylval.tsym.type.
6374 * cp-namespace.c (cp_lookup_nested_type): New variable
6375 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6376 type_name_no_tag_or_error with saved_parent_type.
6377 * dwarf2read.c (load_partial_dies): Read in any children of
6378 DW_TAG_typedef with complaint in such case.
6379 * gdbtypes.c (type_name_no_tag_or_error): New function.
6380 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6381 * valops.c (destructor_name_p): New comment for parameter type. Remove
6382 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6383 * value.h (destructor_name_p): Remove type const.
6384
1976171a
JK
63852011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6386
6387 * symtab.c (compare_symbol_name): New function.
6388 (completion_list_add_name, expand_partial_symbol_name): Call it,
6389 remove the variable ncmp.
6390 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6391 gdb_assert it.
6392
a9634178
TJB
63932011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6394
6395 Demote to sw watchpoint only in update_watchpoint.
6396 * breakpoint.c (update_watchpoint): Change between software and
6397 hardware watchpoint for all kinds of watchpoints, not just
6398 read/write ones. Determine b->exact value here instead of
6399 in watch_command_1. Error out if there are not enough resources
6400 for a read or access hardware watchpoint.
6401 (watch_command_1): Remove logic of checking whether there are
6402 enough resources available, since update_watchpoint will do that
6403 work now. Don't set b->exact here. Catch exceptions thrown by
6404 update_watchpoint and delete the watchpoint.
6405 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6406 Use target_exact_watchpoints instead.
6407 (delete_breakpoint): Notify observers only if deleted watchpoint
6408 has a breakpoint number assigned to it.
6409
4c67c798
JJ
64102011-05-05 Janis Johnson <janisjo@codesourcery.com>
6411
6412 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6413
a3fcb948
JG
64142011-05-05 Jerome Guitton <guitton@adacore.com>
6415
6416 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6417 New functions.
6418 (i386_stack_tramp_frame_unwind): New static global.
6419 (i386_match_pattern): New function, extracted from i386_match_insn.
6420 (i386_match_insn): Use i386_match_pattern.
6421 (i386_match_insn_block): New function.
6422 (i386_tramp_chain_in_reg_insns)
6423 (i386_tramp_chain_on_stack_insns): New static variables.
6424 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6425 of unwinders.
6426
4d393d60
JM
64272011-05-04 Joseph Myers <joseph@codesourcery.com>
6428
6429 * configure.host (xscale*): Don't handle target.
6430 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6431 handle targets.
6432
f70bd40b
YQ
64332011-05-04 Yao Qi <yao@codesourcery.com>
6434
6435 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6436
dd3295ee
JB
64372011-05-03 Joel Brobecker <brobecker@adacore.com>
6438
6439 Revert:
6440 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6441 | * elfread.c (elf_symtab_read): Stop memory leak.
6442
90375a0e
PM
64432011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6444
6445 * nto-tdep.c (nto_target): Replace deprecated call to
6446 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6447
d07205c2
JK
64482011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6449
6450 Fix false GCC warning.
6451 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6452
1e718ff1
TJB
64532011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6454
6455 * breakpoint.c (update_watchpoint): Move code to change
6456 the enable state of breakpoint from here ...
6457 (do_enable_breakpoint): ... to here.
6458
35bef4fd
TT
64592011-04-26 Andrew Gontarek <andrewg@cray.com>
6460
78290264
PP
6461 * valprint.c (val_print_array_elements): Fixed poor performance
6462 of printing very large arrays with repeat_count_threshold set
6463 to unlimited. New comment.
35bef4fd 6464
38a714bb
TT
64652011-04-29 Tom Tromey <tromey@redhat.com>
6466
6467 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6468 (mi_parse): Likewise.
6469 * breakpoint.c (break_range_command): Use sizeof char*, not
6470 char**.
6471 (create_breakpoint): Likewise.
6472 (parse_breakpoint_sals): Likewise.
6473
eb73ad13
PA
64742011-04-29 Pedro Alves <pedro@codesourcery.com>
6475
6476 * linux-nat.c (linux_child_remove_fork_catchpoint)
6477 (linux_child_remove_vfork_catchpoint)
6478 (linux_child_remove_exec_catchpoint): New functions.
6479 (linux_target_install_ops): Install them.
6480
d65aec65
PM
64812011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6482
6483 PR mi/12531
6484
6485 * varobj.c (install_default_visualizer): Do not install a
6486 visualizer if the varobj is CPLUS_FAKE_CHILD.
6487 (construct_visualizer): Likewise.
6488
165195f4
JK
64892011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6490
6491 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6492 case insensitive comparison.
6493
30852783
UW
64942011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6495
6496 * infrun.c (proceed): Revert previous change.
6497 (resume): Instead, handle the case of signal delivery while stepping
6498 off a breakpoint location here, and only if software single-stepping
6499 is used. Handle nested signals.
6500
7ff120b4
YQ
65012011-04-28 Yao Qi <yao@codesourcery.com>
6502
6503 * arm-tdep.c (copy_unmodified): Rename to ...
6504 (arm_copy_unmodified): .. this. New.
6505 (copy_preload): Move common part to ...
6506 (install_preload): .. this. New.
6507 (arm_copy_preload): New.
6508 (copy_preload_reg): Move common part to ...
6509 (install_preload_reg): ... this. New.
6510 (arm_copy_preload_reg): New.
6511 (copy_b_bl_blx): Move common part to ...
6512 (install_b_bl_blx): .. this. New.
6513 (arm_copy_b_bl_blx): New.
6514 (copy_bx_blx_reg): Move common part to ...
6515 (install_bx_blx_reg): ... this. New.
6516 (arm_copy_bx_blx_reg): New.
6517 (copy_alu_reg): Move common part to ...
6518 (install_alu_reg): ... this. New.
6519 (arm_copy_alu_reg): New.
6520 (copy_alu_shifted_reg): Move common part to ...
6521 (install_alu_shifted_reg): ... this. New.
6522 (copy_ldr_str_ldrb_strb): Move common part to ...
6523 (install_ldr_str_ldrb_strb): ... this. New.
6524 (arm_copy_ldr_str_ldrb_strb): New.
6525 (copy_copro_load_store): Move some common part to ...
6526 (install_copy_copro_load_store): ... this. New.
6527 (arm_copy_copro_load_store): New.
6528 (copy_svc): Delete.
6529 (arm_copy_svc): Renamed from copy_svc.
6530 (copy_undef): Delete.
6531 (arm_copy_undef): Renamed from copy_undef.
6532 (decode_ext_reg_ld_st): Delete.
6533 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6534 (decode_svc_copro): Delete.
6535 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6536 (copy_copro_load_store, copy_alu_imm): update callers.
6537 (copy_extra_ld_st, copy_block_xfer): Likewise.
6538 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6539 (decode_miscellaneous, decode_dp_misc): Likewise.
6540 (decode_ld_st_word_ubyte, decode_media): Likewise.
6541 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6542 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6543 (decode_unconditional, decode_miscellaneous): Likewise.
6544 (decode_media, decode_b_bl_ldmstm): Likewise.
6545 (arm_process_displaced_insn): Likewise..
6546 (decode_misc_memhint_neon): Delete.
6547 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6548 (decode_miscellaneous): Delete.
6549 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6550 (decode_dp_misc): Delete.
6551 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6552 (decode_ld_st_word_ubyte): Delete.
6553 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6554 (decode_media): Delete.
6555 (arm_decode_media): Renamed from decode_media.
6556 (decode_b_bl_ldmstm): Delete.
6557 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6558 (decode_ext_reg_ld_st): Delete.
6559 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6560 (decode_unconditional): Delete.
6561 (arm_decode_unconditional): Renamed from decode_unconditional.
6562
559a7a62
JK
65632011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Case insensitive lookups implementation.
6566 * dwarf2read.c: Include ctype.h.
6567 (struct mapped_index): New field version.
6568 (mapped_index_string_hash): New parameter index_version. New comment
6569 for it. Call tolower appropriately.
6570 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6571 Choose the right index version for mapped_index_string_hash.
6572 (dwarf2_read_index): Support also the index version 5. Initialize the
6573 new struct mapped_index field version.
6574 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6575 (find_slot): Explain the version needs. Pass INT_MAX for the new
6576 parameter.
6577 (write_psymtabs_to_index): Produce version 5.
6578 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6579 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6580 * psymtab.c (lookup_partial_symbol): Find the
6581 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6582 entries.
6583 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6584 NAME lowercasing.
6585 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6586 (completion_list_add_name): New variable ncmp, initialize it, use it.
6587 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6588 * utils.c (strcmp_iw): Support case_sensitive_off.
6589 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6590 New function comment part. New variables saved_string1,
6591 saved_string2 and case_pass. Add a proper second pass.
6592
681bf369
JK
65932011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6594
6595 Replace re_comp/re_exec by regcomp/regexec.
6596 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6597 (search_symbols_name_matches): Use them, use regexec.
6598 (search_symbols): New variable retval_chain, adjust the use of
6599 old_chain against it. Replace re_comp by regcomp. Use the new struct
6600 search_symbols_data fields, use regexec instead of re_exec.
6601
b11b1f88
JK
66022011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6603
6604 Format the code for the next patch.
6605 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6606 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6607 New variables c1 and c2.
6608
2484c66b
UW
66092011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6610
6611 * infrun.c (proceed): Do not single-step into signal delivery
6612 when stepping off a breakpoint location.
6613 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6614 (insert_step_resume_breakpoint_at_caller): Likewise.
6615 (insert_step_resume_breakpoint_at_sal): Likewise.
6616 (insert_longjmp_resume_breakpoint): Likewise.
6617
47423772
YQ
66182011-04-27 Yao Qi <yao@codesourcery.com>
6619
6620 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6621
13bdd2e7
JB
66222011-04-27 Joel Brobecker <brobecker@adacore.com>
6623
6624 * procfs.c (procfs_pass_signals): Fix advance declaration.
6625
2455069d
UW
66262011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6627
6628 * target.h (struct target_ops): Remove to_notice_signals;
6629 add to_pass_signals.
6630 (target_notice_signals): Remove.
6631 (target_pass_signals): Add prototype.
6632 * target.c (update_current_target): Remove to_notice_signals;
6633 mention to_pass_signals.
6634 (target_pass_signals): New function.
6635 (debug_to_notice_signals): Remove.
6636 (setup_target_debug): Do not install debug_to_notice_signals.
6637
6638 * infrun.c (signal_pass): New global.
6639 (resume): Call target_pass_signals.
6640 (handle_inferior_event): Report all signals while stepping over
6641 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6642 are re-inserted when stepping over a signal handler.
6643 (signal_cache_update): New function.
6644 (signal_stop_update): Call it.
6645 (signal_print_update): Likewise.
6646 (signal_pass_update): Likewise.
6647 (handle_command): Call signal_cache_update and target_pass_signals
6648 instead of target_notice_signals.
6649 (_initialize_infrun): Initialize signal_pass.
6650
6651 * linux-nat.c (pass_mask): New global.
6652 (linux_nat_pass_signals): New function.
6653 (linux_nat_create_inferior): Report all signals initially.
6654 (linux_nat_attach): Likewise.
6655 (linux_nat_resume): Use pass_mask to decide whether to directly
6656 handle an inferior signal.
6657 (linux_nat_wait_1): Likewise.
6658 (linux_nat_add_target): Install to_pass_signals callback.
6659
6660 * nto-procfs.c (notice_signals): Remove.
6661 (procfs_resume): Do not call notice_signals.
6662 (procfs_notice_signals): Remove.
6663 (procfs_pass_signals): New function.
6664 (init_procfs_ops): Install to_pass_signals callback instead of
6665 to_notice_signals callback.
6666 (_initialize_procfs): Report all signals initially.
6667
6668 * procfs.c (procfs_notice_signals): Remove.
6669 (procfs_pass_signals): New function.
6670 (procfs_target): Install to_pass_signals callback instead of
6671 to_notice_signals callback.
6672 (register_gdb_signals): Remove.
6673 (procfs_debug_inferior): Report all signals initially.
6674 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6675
6676 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6677 parameters; use them instead of calling signal_..._state routines.
6678 (remote_notice_signals): Remove.
6679 (remote_start_remote): Report all signals initially.
6680 (remote_resume): Do not call remote_pass_signals.
6681 (_initialize_remote): Install to_pass_signals callback instead of
6682 to_notice_signals callback.
6683
46c6471b
PA
66842011-04-27 Pedro Alves <pedro@codesourcery.com>
6685
6686 * breakpoint.c (user_settable_breakpoint): Delete.
6687 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6688 (delete_command): Check user_breakpoint_p instead of looking at
6689 the breakpoint's type.
6690 (disable_command): Ditto.
6691 (enable_command): Ditto.
6692 (delete_trace_command): Use user_breakpoint_p instead of looking
6693 at the breakpoint number directly. When checking if there are
6694 user visible tracepoints, in order to know whether to ask the user
6695 for confirmation, check whether the breakpoint is actually a
6696 tracepoint.
6697
f6d90398
VP
66982011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6699
6700 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6701 compilation.
6702
8d3788bd
VP
67032011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6704
6705 MI breakpoint notifications.
6706
f33edef8
PP
6707 * annotate.c (breakpoint_changed): Adjust parameter type.
6708 * breakpoint.c (set_breakpoint_condition): Adjust to change
6709 in breakpoint_modified type.
6710 (breakpoint_set_commands): Likewise.
6711 (do_map_commands_command): Likewise.
6712 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6713 changed after bumping hit count.
6714 (bpstat_stop_status): Likewise.
6715 (print_one_breakpoint_location): Don't wrap in tuple here.
6716 (print_one_breakpoint): Always print individual locations.
6717 For locations, use unnamed tuple.
6718 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6719 has changed.
6720 (create_catchpoint, create_syscall_event_catchpoint): Call
6721 breakpoint_created obsever.
6722 (mention): Don't call breakpoint_created observer.
6723 (create_breakpoint_sal): Call breakpoint_created observer.
6724 (create_breakpoint, watch_command_1): Likewise.
6725 (create_ada_exception_breakpoint): Likewise.
6726 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6727 (locations_are_equal): New.
6728 (update_breakpoint_locations): If locations were changed, notify.
6729 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6730 Call breakpoint_modified observer.
6731
6732 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6733 (mi_cmd_break_insert): Don't set observers for modify and delete.
6734 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6735 (mi_breakpoint_created, mi_breakpoint_deleted)
6736 (mi_breakpoint_modified): New.
6737 (mi_interpreter_init): Hook the above.
6738 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6739 while -break-* commands are executing.
6740 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6741 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6742 (mi_redirect): New.
6743 (mi_ui_out_impl): Hook in mi_redirect.
6744 (mi_field_skip): True to the name, skip the field, don't output
6745 a field with an empty value.
6746
6747 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6748 (gdbpy_breakpoint_deleted): Adjust.
6749 * tui/tui-hooks.c (tui_event_create_breakpoint)
6750 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6751
a8f42b45
UW
67522011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6753
6754 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6755 (procfs_remove_hw_watchpoint): Likewise.
6756
57e12211
TT
67572011-04-26 Michael Walle <michael@walle.cc>
6758
6759 * remote.c (remote_start_remote): Ack packet after sending the
6760 interrupt sequence.
6761
af96c192
YQ
67622011-04-26 Yao Qi <yao@codesourcery.com>
6763
f33edef8
PP
6764 * linux-nat.c: Move common macros to ...
6765 Include linux-ptrace.h.
6766 * common/linux-ptrace.h: ... here. New.
af96c192 6767
3e03848b
JK
67682011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6769
6770 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6771 !objfile_has_partial_symbols. New comment.
6772 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6773 SYM_READ_PSYMBOLS is not present. Extend the comment.
6774 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6775
1ae0d051
JK
67762011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6777
6778 * defs.h (ENUM_BITFIELD): Remove.
6779
03f2bd59
JK
67802011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6781 Eli Zaretskii <eliz@gnu.org>
6782
6783 * NEWS: Document the new gdbserver --once option.
6784
4161fbb0
JZ
67852011-04-21 Jie Zhang <jzhang918@gmail.com>
6786
6787 * MAINTAINERS: Update my email address.
6788
bcb28afc
PM
67892011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6790
6791 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6792 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6793 function call if __STDC_ISO_10646__ macro is defined.
6794 (intermediate_encoding): New prototype.
6795 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6796 to generate compile time error for unsupported gdb_wchar_t size.
6797 (ENDIAN_SUFFIX): New macro.
6798 (intermediate_encoding): New function.
6799
7b08b9eb
JK
68002011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * ada-lang.c (struct add_partial_datum): Update the comment for
6803 expand_partial_symbol_name.
6804 (ada_add_partial_symbol_completions): Rename to ...
6805 (ada_expand_partial_symbol_name): ... here, change return type, update
6806 function comment, call symbol_completion_match instead of
6807 symbol_completion_add.
6808 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6809 and ada_expand_partial_symbol_name.
6810 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6811 FILE_MATCHER.
6812 (dw2_map_symbol_names): Remove.
6813 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6814 * psymtab.c (map_symbol_names_psymtab): Remove.
6815 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6816 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6817 order.
6818 (psym_functions): Unlist map_symbol_names_psymtab.
6819 (map_partial_symbol_names): Rename to ...
6820 (expand_partial_symbol_names): ... here, change the FUN type, call
6821 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6822 * psymtab.h (map_partial_symbol_names): Rename to ...
6823 (expand_partial_symbol_names): ... here, change the FUN type.
6824 * symfile.h (struct quick_symbol_functions): Update the description of
6825 expand_symtabs_matching. Remove map_symbol_names.
6826 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6827 (struct add_name_data): Update the comment for
6828 expand_partial_symbol_name.
6829 (add_partial_symbol_name): Rename to ...
6830 (expand_partial_symbol_name): ... here. Replace
6831 completion_list_add_name call by strncmp.
6832 (default_make_symbol_completion_list_break_on): Use now
6833 expand_partial_symbol_names and expand_partial_symbol_name.
6834 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6835
90476074
TT
68362011-04-20 Tom Tromey <tromey@redhat.com>
6837
6838 * dwarf2read.c (save_gdb_index_command): Replace format
6839 documentation with a pointer to the manual.
6840
c21236dc
PA
68412011-04-20 Pedro Alves <pedro@codesourcery.com>
6842
6843 * regcache.c: Include remote.h.
6844 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6845 (regcache_dump): Handle regcache_dump_remote.
6846 (maintenance_print_remote_registers): New function.
6847 (_initialize_regcache): Install "maint print remote-registers"
6848 command.
6849 * remote.c (map_regcache_remote_table): New function, factored out
6850 from ...
6851 (init_remote_state): ... here.
6852 (remote_register_number_and_offset): New.
6853 * remote.h (remote_register_number_and_offset): Declare.
6854
b78974c3
PA
68552011-04-20 Pedro Alves <pedro@codesourcery.com>
6856
6857 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6858 null_ptid, assume and allow a NULL address space, instead of
6859 asking the target for the ptid's address space.
6860 * infrun.c (ptid_is_pid): Remove assertion.
6861
7a9dd1b2
TT
68622011-04-19 Tom Tromey <tromey@redhat.com>
6863
6864 * windows-tdep.c (windows_xfer_shared_library):
6865 * windows-nat.c (get_module_name, windows_make_so):
6866 * v850-tdep.c (v850_handle_pushm):
6867 * utils.c (null_cleanup, gdb_realpath):
6868 * ui-out.c (get_next_header):
6869 * tracepoint.c (clear_traceframe_info):
6870 * symtab.c (lookup_symtab):
6871 * serial.h (struct serial_ops):
6872 * mipsread.c (read_alphacoff_dynamic_symtab):
6873 * infcmd.c (print_return_value):
6874 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6875 * f-exp.y (parse_number):
6876 * exceptions.c (catch_exceptions):
6877 * dummy-frame.c (dummy_frame_this_id):
6878 * defs.h (struct cleanup):
6879 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6880 * arm-tdep.c (arm_push_dummy_call):
6881 * amd64-tdep.h (amd64_collect_xsave):
6882 * amd64-tdep.c (amd64_collect_xsave):
6883 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6884 * README (typing): Remove duplicate words.
6885 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6886 * infrun.c (siginfo_value_read): Fix typo.
6887 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6888 * top.c (source_line_number): Add comma.
6889
9941e0c5
MK
68902011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6891
6892 * thread.c (any_live_thread_of_process): Prioritize threads
6893 that are not executing.
6894 * gdbthread.h (any_live_thread_of_process): Update comment
6895 as per above change.
6896
ed4b0e6a
AS
68972011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6898
6899 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6900 (scan_xcoff_symtab): Likewise.
6901
9b13a2db
PM
69022011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6903
6904 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6905 inside if clause.
6906
1c6e1b0d
PM
69072011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6908 Pedro Alves <pedro@codesourcery.com>
6909
6910 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6911 variables to simplify code and avoid == operator at end of
6912 line as this is against GNU coding standards.
6913
74de0234
PM
69142011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6915
6916 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6917 lm_name to name_lm to avoid conflict with lm_name function.
6918
b23518f0
PM
69192011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6920
6921 ARI fixes: Use only lowercase function name for static functions.
6922 * nto-tdep.c (LM_ADDR): Rename to...
6923 (lm_addr): New function name.
6924 (nto_relocate_section_addresses): Adapt to change above.
6925 * solib-sunos.c (LM_ADDR): Rename to...
6926 (lm_addr): New function name.
6927 (LM_NEXT): Rename to...
6928 (lm_next): New function name.
6929 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6930 function name changes above.
6931 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6932 (lm_addr_from_link_map): New function name.
6933 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6934 (has_lm_dynamic_from_link_map): New function name.
6935 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6936 (lm_dynamic_from_link_map): New function name.
6937 (LM_ADDR_CHECK): Rename to...
6938 (lm_addr_check): New function name.
6939 (LM_NEXT): Rename to...
6940 (lm_next): New function name.
6941 (LM_PREV): Rename to...
6942 (lm_prev): New function name.
6943 (LM_NAME): Rename to...
6944 (lm_name): New function name.
6945 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6946 (ignore_first_link_map_entry): New function name.
6947 (svr4_keep_data_in_core): Adapt to function name changes above.
6948 (svr4_current_sos): Likewise.
6949 (enable_break): Likewise.
6950 (svr4_relocate_section_addresses): Likewise.
6951
1448a0a2
PM
69522011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6953
6954 ARI cleanup.
6955 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6956 sprintf. Simplify code and avoid loosing memory.
6957 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6958 (call0_frame_cache): Remove && operator from end of line.
6959
02835898
JK
69602011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 Fix libraries displacement if they change whether they were prelinked.
6963 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6964 does not match. Comment why.
6965
9a845ea2
JK
69662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6967
6968 * corelow.c: Include wrapper.h.
6969 (core_open): Call now gdb_target_find_new_threads.
6970 * wrapper.c: Include target.h.
6971 (gdb_target_find_new_threads): New.
6972 * wrapper.h (gdb_target_find_new_threads): New declaration.
6973
254f582e
JK
69742011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6977 even if !TARGET_HAS_EXECUTION.
6978
63524580
JK
69792011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6980
6981 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6982 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6983 bfd_get_synthetic_symtab.
6984 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6985 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6986 parameter parent, remove the call to add_separate_debug_objfile.
6987 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6988 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6989 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6990 parent, new comment for it, call add_separate_debug_objfile for it.
6991 (symbol_file_add_separate): Pass objfile as the parameter parent,
6992 remove the call to add_separate_debug_objfile.
6993 (symbol_file_add_from_bfd): New parameter parent, pass it.
6994 (symbol_file_add): Pass NULL to the new parameter parent.
6995 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6996
90359a16
JK
69972011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6998
6999 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7000 BSF_SYNTHETIC.
7001
626e7282
JK
70022011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7003
7004 Fix Python access to inlined frames.
7005 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7006 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7007
cf31e6f9
TT
70082011-04-15 Tom Tromey <tromey@redhat.com>
7009
7010 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7011
c8d895f1
GB
70122011-04-15 Gary Benson <gbenson@redhat.com>
7013
7014 * MAINTAINERS: Add myself to write-after-approval section.
7015
56a9aa1d
MF
70162011-04-14 Mike Frysinger <vapier@gentoo.org>
7017
7018 * remote-sim.c (sim_command_completer): New function.
7019 (_initialize_remote_sim): Set completer to sim_command_completer.
7020
ba770c9c
TJB
70212011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7022
7023 * breakpoint.c (print_exception_catchpoint): Rename to ...
7024 (print_it_exception_catchpoint): ... this.
7025 (gnu_v3_exception_catchpoint_ops): Update with new name
7026 for print_it_exception_catchpoint.
7027
51bf2553
EBM
70282011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7029
7030 * MAINTAINERS: Add myself for write after approval privileges.
7031
d242658c
MP
70322011-04-13 Marek Polacek <mpolacek@redhat.com>
7033
7034 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7035
4a4106ca
TJB
70362011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7037
7038 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7039
26063d49
TJB
70402011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7041
7042 * breakpoint.c (save_breakpoints): Verify whether
7043 breakpoint_ops.print_recreate is defined before calling it.
7044
7782b183
GB
70452011-04-11 Gary Benson <gbenson@redhat.com>
7046
7047 Fix failure with --enable-maintainer-mode.
7048 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7049
e8930875
JK
70502011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7051
7052 Code cleanup.
7053 * symtab.c (search_symbols): Reorder the KIND description in the
7054 function comment. Remove the unused 4th element of types, types2,
7055 types3 and types4. New gdb_assert on KIND.
7056 (symtab_symbol_info): Remove the unused 4th element of classnames.
7057 New gdb_assert on KIND.
7058 * symtab.h (enum search_domain): New warning in the enum comment.
7059 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7060 TYPES_DOMAIN.
7061
b4f2f049
JK
70622011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7063
7064 Fix crash of gdb save-index on a STABS file.
7065 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7066 PSYMTABS_ADDRMAP.
7067
60d5a603
JK
70682011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7071 * dwarf2read.c: Include ctype.h.
7072 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7073 functions.
7074 (dwarf2_add_field): Fix new_field->accessibility by calling
7075 dwarf2_default_access_attribute. Restructure setting accessibility
7076 vs. virtuality.
7077 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7078 is_private and is_protected by calling
7079 dwarf2_default_access_attribute.
7080
e0f68161
KB
70812011-04-08 Kevin Buettner <kevinb@redhat.com>
7082
7083 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7084 to the initialization.
7085
2e1aae43
SE
70862011-04-08 Steve Ellcey <sje@cup.hp.com>
7087
7088 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7089 initalization.
7090
c6ca3dab
PM
70912011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7092
7093 Remove support for old Cygwin 1.5 versions.
7094 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7095 function on old Cygwin version.
7096 * windows-nat.c: Remove cygwin version check and always define
7097 __USEWIDE for Cygwin compilation.
7098
bd18283a
YQ
70992011-04-07 Yao Qi <yao@codesourcery.com>
7100
7101 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7102 and TO.
7103 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7104 (arm_copy_svc): Remove parameters INSN and TO.
7105 (decode_svc_copro): Update caller.
7106 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7107 from function pointer `copy_svc_os'.
7108
8c8dba6d
YQ
71092011-04-07 Yao Qi <yao@codesourcery.com>
7110
7111 * arm-tdep.c (cleanup_branch): Set a correct return address in
7112 LR for ARM and Thumb.
7113
59d7bcaf
JK
71142011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 Code cleanup.
7117 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7118 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7119 in the function comment, a new note on values compatibility.
7120 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7121 * symtab.h (SYMBOL_HASH_NEXT): New.
7122
e7db58ea
TJB
71232011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7124
7125 * ppc-linux-nat.c (check_condition): Add len output parameter.
7126 Set it based on the memory region referenced in the condition
7127 expression. Update all callers.
7128
9f743ef6
JK
71292011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 Fix crash regression on systems featuring .gdb_index.
7132 * objfiles.c (free_objfile): Move the
7133 forget_cached_source_info_for_objfile call earlier. Comment it.
7134 Extend the comment for objfile_free_data.
7135
9182c5bc
JK
71362011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 Fix regression of displaying the debug format.
7139 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7140 subfile.
7141
04bd08de
TT
71422011-04-04 Tom Tromey <tromey@redhat.com>
7143
7144 * cli/cli-interp.c (struct captured_execute_command_args):
7145 Remove.
7146 (do_captured_execute_command): Remove.
7147 (safe_execute_command): Use TRY_CATCH.
7148 * cli/cli-script.c (struct wrapped_read_command_file_args):
7149 Remove.
7150 (wrapped_read_command_file): Remove.
7151 (script_from_file): Use TRY_CATCH.
7152 * exceptions.c (catch_exception): Remove.
7153 * exceptions.h (catch_exception): Remove.
7154 (deprecated_throw_reason): Update comment.
7155 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7156 argument to 'context'.
7157 (mi_execute_command): Use TRY_CATCH.
7158 * remote.c (struct start_remote_args): Remove.
7159 (remote_start_remote): Update; change arguments.
7160 (remote_open_1): Use TRY_CATCH.
7161
58438ac1
TT
71622011-04-04 Tom Tromey <tromey@redhat.com>
7163
7164 * tracepoint.c (scope_info): Update.
7165 * symtab.c (decode_line_spec): Update.
7166 * python/python.c (gdbpy_decode_line): Update.
7167 * linespec.h (decode_line_1): Update.
7168 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7169 (decode_compound, find_method, symtab_from_filename)
7170 (decode_variable): Likewise.
7171 * cli/cli-cmds.c (edit_command): Update.
7172 (list_command): Update.
7173 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7174 argument.
7175 (create_breakpoint): Update.
7176 (until_break_command): Update.
7177 (addr_string_to_sals): Update.
7178 (decode_line_spec_1): Update.
7179
b78a6381
TT
71802011-04-04 Tom Tromey <tromey@redhat.com>
7181
7182 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7183 (do_captured_parse_breakpoint): Remove.
7184 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7185 Use TRY_CATCH directly.
7186
00174a86
TT
71872011-04-04 Tom Tromey <tromey@redhat.com>
7188
7189 * symtab.h (free_symtab): Remove.
7190 (forget_cached_source_info_for_objfile): Declare.
7191 * symmisc.c (free_symtab): Remove.
7192 * source.c (forget_cached_source_info_for_objfile): New function.
7193 (forget_cached_source_info): Use it.
7194 * objfiles.c (free_objfile): Simplify check before calling
7195 clear_current_source_symtab_and_line. Call
7196 forget_cached_source_info_for_objfile.
7197
30cc903e
TT
71982011-04-04 Tom Tromey <tromey@redhat.com>
7199
7200 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7201 (new_symtab): Don't set `free_code' on symtab.
7202 (new_linetable): Properly handle size==0.
7203 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7204 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7205 free_func.
7206 * jv-lang.c (struct jv_per_objfile_data): New.
7207 (jv_per_objfile_free): Free the data.
7208 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7209 (get_java_class_symtab): Set the `dict' field on the
7210 jv_per_objfile_data.
7211 (free_class_block): Remove.
7212 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7213 the symtab.
7214
0c2e6019
TT
72152011-04-04 Tom Tromey <tromey@redhat.com>
7216
7217 * symfile.c (reread_symbols): Update.
7218 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7219 field.
7220 * objfiles.c (allocate_objfile): Update.
7221 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7222 declare.
7223 * cp-namespace.c (lookup_symbol_file): Don't call
7224 lookup_possible_namespace_symbol.
7225 (initialize_namespace_symtab, get_possible_namespace_block)
7226 (free_namespace_block, cp_check_possible_namespace_symbols)
7227 (check_possible_namespace_symbols_loop)
7228 (check_one_possible_namespace_symbol)
7229 (lookup_possible_namespace_symbol): Remove.
7230 (maintenance_cplus_namespace): Replace with notice.
7231 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7232
554d387d
TT
72332011-04-04 Tom Tromey <tromey@redhat.com>
7234
7235 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7236 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7237 * symmisc.c (free_symtab): Don't free debugformat.
7238 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7239 (record_debugformat, record_producer): Document.
7240 * buildsym.c (end_symtab): Don't save debugformat and producer
7241 names on obstack.
7242 (end_symtab): Don't free debugformat and producer fields.
7243 (record_debugformat): Don't call xstrdup.
7244 (record_producer): Likewise.
7245
d4d4db8a
TT
72462011-04-04 Tom Tromey <tromey@redhat.com>
7247
7248 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7249 (source_line_charpos, source_charpos_line): Remove.
7250
8903c50d
TT
72512011-04-04 Tom Tromey <tromey@redhat.com>
7252
7253 * symtab.h (domain_enum): Split in two...
7254 (enum search_domain): New.
7255 (search_symbols): Update.
7256 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7257 redundant declarations.
7258 (search_symbols): Change 'kind' argument to search_domain.
7259 Update.
7260 (print_symbol_info): Likewise.
7261 (symtab_symbol_info): Likewise.
7262 * symfile.h (struct quick_symbol_functions)
7263 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7264 <expand_symtabs_matching>: Likewise.
7265 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7266 (expand_symtabs_matching_via_partial): Update.
7267 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7268 (dw2_expand_symtabs_for_function): Update.
7269 * block.h: Moved anonymous enum...
7270 * defs.h (enum block_enum): ... here. Now named.
7271
d9351f5f 72722011-04-03 Joel Brobecker <brobecker@adacore.com>
7273
7274 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7275 * version.in: Bump version to 7.3.50.20110403-cvs.
7276
d6e00af6
JB
72772011-04-03 Joel Brobecker <brobecker@adacore.com>
7278
7279 * NEWS: Create a new section for the next release branch.
7280 Rename the section of the current branch, now that it has
7281 been cut.
7282
2b9e5ea6
UW
72832011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7284
7285 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7286 for "fpscr" in target description.
7287
0cf03b49
JK
72882011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7289
7290 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7291 initialize it. Delay HASH initialization. Strip the part after open
7292 parenthesis for languages with qualifiers. Call do_cleanups.
7293
5d901a73
TT
72942011-04-01 Tom Tromey <tromey@redhat.com>
7295
7296 * utils.c (report_command_stats): Don't print `-' for negative
7297 number.
7298
b0dd7688
JB
72992011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7300
7301 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7302 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7303 typedefs.
7304
956a9fb9
JB
73052011-04-01 Joel Brobecker <brobecker@adacore.com>
7306
7307 * breakpoint.h (bpdisp_text): Add declaration.
7308 * breakpoint.c (bpdisp_text): Make non-static.
7309 * ada-lang.c: #include "mi/mi-common.h".
7310 (print_it_exception): Rewrite to improve GDB/MI output.
7311
3352110b
PA
73122011-04-01 Pedro Alves <pedro@codesourcery.com>
7313
7314 * arm-tdep.h (struct address_space): Add forward declaration.
7315
18819fa6
UW
73162011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7317
7318 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7319 * arm-tdep.c (arm_override_mode): New global.
7320 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7321 execution mode heuristics.
7322 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7323 second single-step breakpoint if needed, using
7324 arm_insert_single_step_breakpoint.
7325 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7326 ARM execution mode, do not call thumb_get_next_pc_raw.
7327 (arm_get_next_pc): Encode execution mode in return value. Call
7328 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7329 (arm_insert_single_step_breakpoint): New function.
7330 (arm_software_single_step): Call it.
7331 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7332 argument to return execution mode of sigreturn target.
7333 (arm_linux_syscall_next_pc): Use it.
7334 (arm_linux_copy_svc): Update call.
7335 (arm_linux_software_single_step): Call
7336 arm_insert_single_step_breakpoint.
7337
a6e293d1
JK
73382011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7339
7340 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7341 the comment.
7342
a4c8e806
TT
73432011-03-31 Tom Tromey <tromey@redhat.com>
7344
7345 * varobj.c (update_dynamic_varobj_children): Properly handle
7346 errors from iterator.
7347
df5c6c50
JK
73482011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7349
7350 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7351 struct linkage name twice.
7352
1dae3efc
TT
73532011-03-31 Tom Tromey <tromey@redhat.com>
7354
7355 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7356 missing ">" to message.
7357
f4f7ab05
TT
73582011-03-31 Tom Tromey <tromey@redhat.com>
7359
7360 * varobj.c (instantiate_pretty_printer): Remove duplicate
7361 'return'.
7362
fcf250e2
UW
73632011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7364
7365 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7366 if neither saved value nor register available (e.g. signal frame).
7367
ee6436e3
TJB
73682011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7369
7370 * macroexp.c (expand): Avoid uninitialized variable
7371 compiler warning.
7372
423f41a5
TJB
73732011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7374
7375 * breakpoint.c (break_range_command): Fix typo in comment.
7376
f1310107
TJB
73772011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7378 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7379
7380 Implement support for PowerPC BookE ranged breakpoints.
7381 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7382 * breakpoint.h (struct bp_target_info) <length>: New member
7383 variable.
7384 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7385 instead of struct breakpoint as argument, and also add ASPACE
7386 and BP_ADDR arguments. Update all callers.
7387 (struct breakpoint_ops) <print_one_detail>: New method.
7388 (struct breakpoint) <addr_string_range_end>: New member variable.
7389 * breakpoint.c (breakpoint_location_address_match): Add function
7390 prototype.
7391 (insert_bp_location): Set bl->target_info.length.
7392 (breakpoint_here_p): Call breakpoint_location_address_match.
7393 (moribund_breakpoint_here_p): Likewise.
7394 (regular_breakpoint_inserted_here_p): Likewise.
7395 (breakpoint_thread_match): Likewise.
7396 (bpstat_stop_status): Likewise.
7397 (bpstat_check_location): Move call to
7398 breakpoint_ops.breakpoint_hit to the top.
7399 (print_one_breakpoint_location): Call
7400 breakpoint_ops.print_one_detail if available.
7401 (breakpoint_address_match_range): New function.
7402 (breakpoint_location_address_match): Likewise.
7403 (breakpoint_locations_match): Compare the length field of the
7404 locations too.
7405 (hw_breakpoint_used_count): Count resources used by all locations
7406 in a breakpoint, and use breakpoint_ops.resources_needed if
7407 available.
7408 (breakpoint_hit_ranged_breakpoint): New function.
7409 (resources_needed_ranged_breakpoint): Likewise.
7410 (print_it_ranged_breakpoint): Likewise.
7411 (print_one_ranged_breakpoint): Likewise.
7412 (print_one_detail_ranged_breakpoint): Likewise.
7413 (print_mention_ranged_breakpoint): Likewise.
7414 (print_recreate_ranged_breakpoint): Likewise.
7415 (ranged_breakpoint_ops): New structure.
7416 (find_breakpoint_range_end): New function.
7417 (break_range_command): Likewise.
7418 (delete_breakpoint): Free addr_string_range_end.
7419 (update_breakpoint_locations): Add SALS_END argument. Update
7420 all callers. Calculate breakpoint length if a non-zero SALS_END
7421 is given. Call breakpoint_locations_match instead of
7422 breakpoint_address_match.
7423 (reset_breakpoint): Find SaL of the end of the range if B is a
7424 ranged breakpoint.
7425 (_initialize_breakpoint): Register break-range command.
7426 * defs.h (print_core_address): Add function prototype.
7427 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7428 function.
7429 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7430 (ppc_linux_remove_hw_breakpoint): Likewise.
7431 (_initialize_ppc_linux_nat): Initialize
7432 to_ranged_break_num_registers.
7433 * target.c (update_current_target): Add comment about
7434 to_ranged_break_num_registers.
7435 (target_ranged_break_num_registers): New function.
7436 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7437 New method.
7438 (target_ranged_break_num_registers): Add function prototype.
7439 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7440 * utils.c (print_core_address): ... here.
7441
02d20e4a
UW
74422011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7443
7444 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7445 variable compiler warning.
7446
ef23e705
TJB
74472011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7448
7449 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7450 code from here ...
7451 (re_set_breakpoint): ... to here ...
7452 (addr_string_to_sals): ... and here.
7453
311e6ab3
PM
74542011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7455
7456 * Makefile.in (SFILES): Add missing C sources.
7457 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7458 Add missing headers.
7459
acd1d99c
MF
74602011-03-29 Mike Frysinger <vapier@gentoo.org>
7461
7462 * .gitignore: New file.
7463
66ee2731
MF
74642011-03-29 Mike Frysinger <vapier@gentoo.org>
7465
7466 * NEWS: Mention new cfi device simulation.
7467
53832f31
TT
74682011-03-29 Tom Tromey <tromey@redhat.com>
7469
7470 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7471 otherwise anonymous types.
7472 (dwarf2_name): Likewise.
7473 * valops.c (value_struct_elt_for_reference): Refine artificial
7474 type logic. Call error if j==-1.
7475
09b58708
JK
74762011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7477
7478 Fix false GCC warning.
7479 * infcall.c (find_function_addr): Initialize funaddr.
7480
6023c606
PM
74812011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7482
7483 Fix mingw compilation with --enable-targets=all.
7484 * remote-mips.c (gdb_usleep.h): Include header.
7485 (mips_enter_debug): Use gdb_usleep instead of sleep.
7486
0e30163f
JK
74872011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 Support resolution of STT_GNU_IFUNC via breakpoints.
7490 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7491 bp_gnu_ifunc_resolver_return.
7492 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7493 the loop. Support bp_gnu_ifunc_resolver and
7494 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7495 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7496 breakpoints.
7497 (bptype_string, print_one_breakpoint_location): Support
7498 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7499 (user_settable_breakpoint): Return true also for
7500 bp_gnu_ifunc_resolver.
7501 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7502 bp_gnu_ifunc_resolver_return.
7503 (set_breakpoint_location_function): New parameter explicit_loc,
7504 describe it. Call find_pc_partial_function_gnu_ifunc with new
7505 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7506 EXPLICIT_LOC is not set.
7507 (set_raw_breakpoint): Set EXPLICIT_LOC for
7508 set_breakpoint_location_function.
7509 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7510 set_breakpoint_location_function.
7511 (mention): Support bp_gnu_ifunc_resolver and
7512 bp_gnu_ifunc_resolver_return.
7513 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7514 set_breakpoint_location_function.
7515 (update_breakpoint_locations): Remove static.
7516 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7517 bp_gnu_ifunc_resolver_return.
7518 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7519 bp_gnu_ifunc_resolver_return.
7520 (update_breakpoint_locations): New declaration.
7521 * elfread.c: Include gdbthread.h and regcache.h.
7522 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7523 functions.
7524 (elf_gnu_ifunc_fns): Install them.
7525 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7526 (stub_gnu_ifunc_resolver_return_stop): New functions.
7527 (stub_gnu_ifunc_fns): Install them.
7528 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7529 and gnu_ifunc_resolver_return_stop.
7530 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7531
07be84bf
JK
75322011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7533
7534 STT_GNU_IFUNC reader implementation.
7535 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7536 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7537 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7538 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7539 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7540 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7541 (elf_gnu_ifunc_resolve_addr): New.
7542 (elf_symfile_read): Call elf_rel_plt_read.
7543 (elf_gnu_ifunc_fns): New.
7544 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7545 Install elf_gnu_ifunc_fns.
7546 * infcall.c (find_function_return_type): New function.
7547 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7548 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7549 (stub_gnu_ifunc_resolve_name): New functions.
7550 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7551 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7552 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7553
300f8e10
JK
75542011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7555
7556 Code cleanup for later STT_GNU_IFUNC support.
7557 * infcall.c (find_function_addr): Remove variable code, use explicit
7558 dereferences for it. Move VALUE_TYPE initialization later.
7559
11c81455
JK
75602011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7561
7562 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7563 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7564 (clear_pc_function_cache): Clear it.
7565 (find_pc_partial_function): Rename to ...
7566 (find_pc_partial_function_gnu_ifunc): ... this function. New
7567 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7568 (find_pc_partial_function): New wrapper for this function.
7569 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7570
0875794a
JK
75712011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7572
7573 GDB internal type support for STT_GNU_IFUNC.
7574 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7575 (elf_symtab_read): Set mst_text_gnu_ifunc for
7576 BSF_GNU_INDIRECT_FUNCTION.
7577 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7578 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7579 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7580 nodebug_got_plt_symbol.
7581 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7582 (TYPE_GNU_IFUNC): New.
7583 (struct main_type): New field flag_gnu_ifunc.
7584 (struct builtin_type): New field builtin_func_func.
7585 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7586 nodebug_got_plt_symbol.
7587 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7588 (in_gnu_ifunc_stub): New.
7589 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7590 mst_text_gnu_ifunc.
7591 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7592 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7593 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7594 in_gnu_ifunc_stub.
7595 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7596 * symtab.c (search_symbols): Likewise.
7597 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7598 and mst_slot_got_plt.
7599 (in_gnu_ifunc_stub): New declaration.
7600
d0fb5eae
JK
76012011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7602
7603 Support a ring of related breakpoints.
7604 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7605 other functions, add gdb_assert.
7606 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7607 watchpoint_del_at_next_stop.
7608 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7609 (bpstat_stop_status): Handle ring in related_breakpoint.
7610 (set_raw_breakpoint_without_location): Initialize ring in
7611 related_breakpoint.
7612 (delete_breakpoint): Handle ring in related_breakpoint, use
7613 watchpoint_del_at_next_stop.
7614 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7615
9cded63f
TT
76162011-03-28 Tom Tromey <tromey@redhat.com>
7617
7618 PR symtab/12441:
7619 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7620 with `language_minimal'.
7621
467d42c4
UW
76222011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7623
7624 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7625 instead of checking for STT_ARM_TFUNC symbol type.
7626
62853458
TT
76272011-03-25 Tom Tromey <tromey@redhat.com>
7628
7629 * linespec.c (symbol_found): Restore line-based result for
7630 non-LOC_LABEL symbols.
7631
a7417d46
KT
76322011-03-25 Kai Tietz <ktietz@redhat.com>
7633
7634 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7635 instead of strcmp for comparison.
7636 (tui_source_is_displayed): Likewise.
7637 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7638
55f1336d
TT
76392011-03-24 Mark Wielaard <mjw@redhat.com>
7640
f33edef8
PP
7641 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7642 complaint.
7643 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7644 (find_partial_die_in_comp_unit): Likewise in comment.
7645 (read_attribute_value): Likewise.
7646 (lookup_die_type): Likewise.
7647 (dwarf_form_name): Likewise.
7648 (dump_die_shallow): Likewise.
7649 (follow_die_ref_or_sig): Likewise.
55f1336d 7650
9ef07c8c
TT
76512011-03-24 Tom Tromey <tromey@redhat.com>
7652
7653 PR breakpoints/11816:
7654 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7655 (decode_compound): Update.
7656 (find_function_symbol): New function.
7657 (decode_dollar): Update.
7658 (decode_label): Add 'function_symbol' parameter. Handle
7659 function-relative labels.
7660 (decode_variable): Update.
7661 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7662 not its line. Set `special_display' and canonical name for
7663 labels.
7664
56435ebe
TT
76652011-03-24 Tom Tromey <tromey@redhat.com>
7666
7667 * linespec.h (struct linespec_result) <special_display>: New
7668 field.
7669 * breakpoint.h (struct breakpoint) <display_canonical>: New
7670 field.
7671 * breakpoint.c (print_breakpoint_location): Respect
7672 display_canonical.
7673 (create_breakpoint_sal): Add 'display_canonical' parameter.
7674 (create_breakpoints_sal): Update.
7675 (create_breakpoint): Update.
7676
7efd8fc2
TT
76772011-03-24 Tom Tromey <tromey@redhat.com>
7678
7679 * symtab.c (decode_line_spec): Update.
7680 * linespec.c (build_canonical_line_spec): Change type of
7681 'canonical'.
7682 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7683 (find_method, decode_all_digits, decode_dollar, decode_label)
7684 (symbol_found): Likewise.
7685 (init_linespec_result): New function.
7686 * breakpoint.c (struct captured_parse_breakpoint_args)
7687 <canonical_p>: New field, replaces addr_string_p.
7688 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7689 'addr_string'.
7690 (parse_breakpoint_sals): Likewise.
7691 (do_captured_parse_breakpoint): Update.
7692 (create_breakpoint): Use struct linespec_result.
7693 (until_break_command): Update.
7694 (breakpoint_re_set_one): Update.
7695 (decode_line_spec_1): Update.
7696 * linespec.h (struct linespec_result): New.
7697 (init_linespec_result): Declare.
7698
788c8b10
PA
76992011-03-23 Pedro Alves <pedro@codesourcery.com>
7700
7701 * regcache.c (regcache_raw_read): If the target didn't supply a
7702 given raw register, mark it as unavailable.
7703
0ba1096a
KT
77042011-03-23 Kai Tietz <ktietz@redhat.com>
7705
7706 * breakpoint.c (clear_command): Use filename_cmp
7707 instead of strcmp for comparison.
7708 * buildsym.c (watch_main_source_file_lossage): Likewise.
7709 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7710 checking just for slash.
7711 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7712 strrchr and filename_cmp instead of strcmp for filenames.
7713 (add_old_header_file): Use filename_cmp
7714 instead of strcmp for comparison.
7715 * exec.c (exec_set_section_address): Likewise.
7716 * macrotab.c (macro_lookup_inclusion): Likewise.
7717 (macro_lookup_inclusion): Likewise.
7718 * elfread.c (_initialize_elfread): Likewise.
7719 (elfstab_offset_sections): Likewise.
7720 (elfstab_offset_sections): Use lbasename instead of
7721 strrchr.
7722 * mdebugread.c (parse_partial_symbols): Likewise.
7723 (arse_partial_symbols): Use filename_(n)cmp instead of
7724 str(n)cmp for comparison.
7725 * minsyms.c (lookup_minimal_symbol): Likewise.
7726 * psymtab.c (read_psymtabs_with_filename): Likewise.
7727 * solib.c (solib_read_symbols): Likewise.
7728 (reload_shared_libraries_1): Likewise.
7729 * symmisc.c (maintenance_print_symbols): Likewise.
7730 * symfile.c (separate_debug_file_exists): Likewise.
7731 (reread_symbols): Likewise.
7732 (find_separate_debug_file_by_debuglink): Likewise.
7733 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7734 * source.c (add_path): Likewise.
7735 * symtab.c (filename_seen): Likewise.
7736 (file_matches): Likewise.
7737 (print_symbol_info): Likewise.
7738 (maybe_add_partial_symtab_filename): Likewise.
7739 (make_source_files_completion_list): Likewise.
7740 * xml-syscall.c (init_sysinfo): Likewise.
7741 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7742 IS_DIR_SEPARATOR for checking for trailing path separator.
7743
dd90784c
JK
77442011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7745
7746 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7747 label abort_expression.
7748 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7749 DWARF_VALUE_OPTIMIZED_OUT.
7750
3167638f
JK
77512011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 Code cleanup.
7754 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7755 to linkage_name. Invert its value. Update the function comment.
7756 (c_type_print_varspec_suffix): Invert it at the caller.
7757 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7758
ce406537
PA
77592011-03-22 Pedro Alves <pedro@codesourcery.com>
7760
7761 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7762 errors when reading the `stop_pc'.
7763 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7764 get_frame_pc.
7765
da5d4055
PM
77662011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7767
7768 * NEWS: Document gdb.Write stream keyword.
7769
29e0eb9c
JK
77702011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 Revert:
7773 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7774 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7775 (dwarf2_add_field): Fix new_field->accessibility for
7776 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7777
05775840
PM
77782011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7779
f33edef8 7780 PR python/12183
05775840
PM
7781
7782 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7783 other error classes. Do not print stack trace.
7784
a0cb7835
JK
77852011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7786
7787 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7788 (dwarf2_add_field): Fix new_field->accessibility for
7789 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7790
d19f7eee
UW
77912011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7792
7793 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7794 encountering a load via a non-SP register.
7795
4a2fbb50
UW
77962011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7797
7798 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7799 field in returned unwinder.
7800
3489610d
JB
78012012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7802
7803 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7804
8c1a34e7
JB
78052012-03-21 Joel Brobecker <brobecker@adacore.com>
7806
7807 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7808 of xmalloc.
7809
8fbca658
PA
78102012-03-18 Pedro Alves <pedro@codesourcery.com>
7811
7812 * frame.c (frame_unwind_register): Throw an error if unwinding the
7813 register failed.
7814 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7815 an unwind stop reason.
7816 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7817 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7818 UNWIND_UNAVAILABLE>: New.
7819 * inline-frame.c (inline_frame_unwind): Install
7820 default_frame_unwind_stop_reason.
7821 * frame-unwind.c: Include "exceptions.h".
7822 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7823 (default_frame_unwind_stop_reason): New.
7824 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7825 (default_frame_unwind_stop_reason): Declare.
7826 (struct frame_unwind) <stop_reason>: New function pointer.
7827
7828 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7829 * dwarf2-frame.c: Include exceptions.h.
7830 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7831 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7832 computing the CFA. If such an error was thrown, set
7833 unavailable_retaddr.
7834 (dwarf2_frame_unwind_stop_reason): New.
7835 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7836 unavailable.
7837 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7838 (dwarf2_signal_frame_unwind): Ditto.
7839
7840 * amd64-tdep.c: Include "exceptions.h".
7841 (struct amd64_frame_cache): New field "base_p".
7842 (amd64_init_frame_cache): Clear it.
7843 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7844 Avoid reading registers with functions that throw if the register
7845 is not necessary to compute the frame base.
7846 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7847 swallowing NOT_AVAILABLE_ERROR.
7848 (amd64_frame_unwind_stop_reason): New.
7849 (amd64_frame_this_id): Don't build a frame id if the frame base
7850 was unavailable.
7851 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7852 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7853 base_p if the frame base was computable.
7854 (amd64_sigtramp_frame_unwind_stop_reason): New.
7855 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7856 frame base was unavailable.
7857 (amd64_sigtramp_frame_unwind): Install
7858 amd64_sigtramp_frame_unwind_stop_reason.
7859 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7860 base_p if the frame base was computable.
7861 (amd64_epilogue_frame_unwind_stop_reason): New.
7862 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7863 frame base was unavailable.
7864 (amd64_epilogue_frame_unwind): Install
7865 amd64_epilogue_frame_unwind_stop_reason.
7866 * i386-tdep.c: Include "exceptions.h".
7867 (struct i386_frame_cache): New field "base_p".
7868 (i386_init_frame_cache): Clear it.
7869 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7870 Avoid reading registers with functions that throw if the register
7871 is not necessary to compute the frame base.
7872 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7873 swallowing NOT_AVAILABLE_ERROR.
7874 (i386_frame_unwind_stop_reason): New.
7875 (i386_frame_this_id): Don't build a frame id if the frame base was
7876 unavailable.
7877 (i386_frame_prev_register): Handle unavailable SP.
7878 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7879 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7880 base_p if the frame base was computable.
7881 (i386_epilogue_frame_unwind_stop_reason): New.
7882 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7883 base was unavailable.
7884 (i386_epilogue_frame_unwind): Install
7885 i386_epilogue_frame_unwind_stop_reason.
7886 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7887 base_p if the frame base was computable.
7888 (i386_sigtramp_frame_unwind_stop_reason): New.
7889 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7890 base was unavailable.
7891 (i386_sigtramp_frame_unwind): Install
7892 i386_sigtramp_frame_unwind_stop_reason.
7893 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7894 type's size, not the register's.
7895 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7896
7897 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7898 default_frame_unwind_stop_reason.
7899 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7900 (alpha_heuristic_frame_unwind): Ditto.
7901 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7902 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7903 * avr-tdep.c (avr_frame_unwind): Ditto.
7904 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7905 Ditto.
7906 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7907 * frv-tdep.c (frv_frame_unwind): Ditto.
7908 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7909 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7910 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7911 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7912 (hppa_stub_frame_unwind): Ditto.
7913 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7914 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7915 (ia64_libunwind_frame_unwind)
7916 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7917 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7918 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7919 * m32c-tdep.c (m32c_unwind): Ditto.
7920 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7921 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7922 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7923 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7924 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7925 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7926 * mep-tdep.c (mep_frame_unwind): Ditto.
7927 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7928 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7929 (mips_stub_frame_unwind): Ditto.
7930 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7931 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7932 * mt-tdep.c (mt_frame_unwind): Ditto.
7933 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7934 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7935 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7936 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7937 (s390_sigtramp_frame_unwind): Ditto.
7938 * score-tdep.c (score_prologue_unwind): Ditto.
7939 * sh-tdep.c (sh_frame_unwind): Ditto.
7940 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7941 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7942 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7943 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7944 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7945 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7946 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7947 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7948 (sparc64obsd_trapframe_unwind): Ditto.
7949 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7950 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7951 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7952 * v850-tdep.c (v850_frame_unwind): Ditto.
7953 * vax-tdep.c (vax_frame_unwind): Ditto.
7954 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7955 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7956 * xtensa-tdep.c (xtensa_unwind): Ditto.
7957
f23d1b92
PA
79582011-03-18 Pedro Alves <pedro@codesourcery.com>
7959
7960 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7961 there's always a frame. Use get_frame_pc_if_available instead of
7962 get_frame_pc, and if there's no PC available, don't look up a
7963 symtab.
7964
1d4f5741
PA
79652011-03-18 Pedro Alves <pedro@codesourcery.com>
7966
7967 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7968 unavailable PC.
7969
dba09041
PA
79702011-03-18 Pedro Alves <pedro@codesourcery.com>
7971
7972 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7973 gracefully.
7974
9a26e44c
PA
79752011-03-18 Pedro Alves <pedro@codesourcery.com>
7976
7977 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7978 * frame.c (frame_unwind_caller_pc_if_available): New.
7979 * stack.c (frame_info): Handle unavailable PC.
7980
79812011-03-18 Pedro Alves <pedro@codesourcery.com>
7982
7983 * frame.c (frame_unwind_pc): Rename to ...
7984 (frame_unwind_pc_if_available): ... this. New `pc' output
7985 parameter. Change return type to int. Gracefully handle
7986 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7987 happened, or 1 otherwise.
7988 (frame_unwind_pc): Reimplement on top of
7989 frame_unwind_pc_if_available.
7990 (get_frame_func): Rename to ...
7991 (get_frame_func_if_available): New `pc' output parameter. Change
7992 return type to int. Gracefully handle the PC not being available.
7993 (get_frame_func): Reimplement on top of
7994 get_frame_func_if_available.
7995 (select_frame): Handle the PC being unavailable.
7996 (get_prev_frame): Handle the PC being unavailable.
7997 (get_frame_pc_if_available): New.
7998 (get_frame_address_in_block_if_available): New.
7999 (find_frame_sal): Handle the frame PC not being available.
8000 * frame.h (get_frame_pc_if_available): Declare.
8001 (get_frame_address_in_block_if_available): Declare.
8002 (get_frame_func_if_available): Declare.
8003 * stack.c (print_frame_info): Handle the PC being unavailable.
8004 (find_frame_funname): Ditto.
8005 (print_frame): Handle the PC being unavailable.
8006 (get_frame_language): Ditto.
8007 * blockframe.c (get_frame_block): Ditto.
8008 * macroscope.c (default_macro_scope): Ditto.
8009 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8010
80112011-03-18 Pedro Alves <pedro@codesourcery.com>
8012
8013 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8014 NOT_AVAILABLE_ERROR when evaluating the location expression.
8015
80162011-03-18 Pedro Alves <pedro@codesourcery.com>
8017
8018 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8019 returning that the register piece is unavailable/optimized out.
8020 (write_pieced_value): Handle get_frame_register_bytes returning
8021 that the register piece is unavailable/optimized out when doing a
8022 read-modify write of a bitfield.
8023 * findvar.c (value_from_register): Handle get_frame_register_bytes
8024 returning that the register piece is unavailable/optimized out.
8025 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8026 and `unavailablep'. Throw error on bad debug info. Use
8027 frame_register instead of frame_register_read, to fill in the new
8028 arguments.
8029 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8030 and `unavailablep'.
8031 * valops.c: (value_assign): Adjust, and handle
8032 get_frame_register_bytes failing.
8033 * spu-tdep.c: Include exceptions.h.
8034 (spu_software_single_step): Adjust, and handle
8035 get_frame_register_bytes failing.
8036 (spu_get_longjmp_target): Ditto.
8037 * gdbarch.sh (register_to_value): Change to return int. New
8038 parameters `optimizedp' and `unavailablep'.
8039 * gdbarch.h, gdbarch.c: Regenerate.
8040 * i386-tdep.c (i386_register_to_value): Adjust to new
8041 gdbarch_register_to_value interface.
8042 * i387-tdep.c (i387_register_to_value): Ditto.
8043 * i387-tdep.h (i387_register_to_value): Ditto.
8044 * alpha-tdep.c (alpha_register_to_value): Ditto.
8045 * ia64-tdep.c (ia64_register_to_value): Ditto.
8046 * m68k-tdep.c (m68k_register_to_value): Ditto.
8047 * mips-tdep.c (mips_register_to_value): Ditto.
8048 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8049
0fdb4f18
PA
80502011-03-18 Pedro Alves <pedro@codesourcery.com>
8051
8052 * findvar.c (value_of_register): Mark the value as unavailable, if
8053 the register is unavailable.
8054 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8055 (frame_register): New `unavailablep' parameter.
8056 (frame_register_read): Update comment.
8057 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8058 Set it if the register is unavailable. If the register is
8059 unavailable, clear the output buffer.
8060 (frame_register): New `unavailablep' parameter. Pass it down.
8061 (frame_unwind_register): Adjust.
8062 (put_frame_register): Adjust.
8063 (frame_register_read): Adjust. Also return false if the register
8064 is not available.
8065 (frame_register_unwind_location): Adjust.
8066 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8067 is unavailable, mark the value accordingly.
8068 * stack.c (frame_info): Handle unavailable registers.
8069
e69aa73e
PA
80702011-03-18 Pedro Alves <pedro@codesourcery.com>
8071
8072 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8073 simplify, using regcache_cooked_read.
8074
05d1431c
PA
80752011-03-18 Pedro Alves <pedro@codesourcery.com>
8076
8077 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8078 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8079 (regcache_raw_read_unsigned, regcache_raw_read_part)
8080 (regcache_cooked_read, regcache_cooked_read_signed)
8081 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8082 (regcache_cooked_read_ftype): Change return to enum
8083 register_status.
8084 * regcache.c: Include exceptions.h
8085 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8086 (do_cooked_read): Change return to enum register_status. Always
8087 forward to regcache_cooked_read.
8088 (regcache_raw_read): Change return to enum register_status. If
8089 the register is not REG_VALID, memset the buffer. Return the
8090 register's status.
8091 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8092 return the register's status.
8093 (regcache_raw_read_unsigned): Ditto.
8094 (regcache_cooked_read): Change return to enum register_status.
8095 Assert that with read-only regcaches, the register's status must
8096 be known. If the regcache is read-only, and the register is not
8097 REG_VALID, memset the buffer. Return the register's status.
8098 (regcache_cooked_read_signed): Change return to enum
8099 register_status. Handle non-REG_VALID registers and return the
8100 register's status.
8101 (regcache_cooked_read_unsigned): Change return to enum
8102 register_status. Handle non-REG_VALID registers and return the
8103 register's status.
8104 (regcache_xfer_part, regcache_raw_read_part)
8105 (regcache_cooked_read_part): Change return to enum
8106 register_status. Return the register's status.
8107 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8108 unavailable.
8109 (regcache_dump): Handle unavailable cooked registers.
8110 * frame.c (do_frame_register_read): Adjust interface to match
8111 regcache_cooked_read_ftype.
8112 * gdbarch.sh (pseudo_register_read): Change return to enum
8113 register_status.
8114 * gdbarch.h, gdbarch.c: Regenerate.
8115
8116 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8117 register_status.
8118 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8119 register_status. If reading a raw register indicates the raw
8120 register is not valid, return the raw register's status,
8121 otherwise, return REG_VALID.
8122 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8123 register_status. Handle non-REG_VALID raw registers and return
8124 the register's status.
8125 * arm-tdep.c (arm_neon_quad_read)
8126 (arm_pseudo_read): Change return to enum register_status. Handle
8127 non-REG_VALID raw registers and return the register's status.
8128 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8129 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8130 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8131 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8132 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8133 register_status.
8134 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8135 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8136 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8137 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8138 (m32c_pseudo_register_read): Change return to enum
8139 register_status. Adjust.
8140 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8141 enum register_status. Return the register's status.
8142 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8143 register_status. Return the register's status.
8144 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8145 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8146 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8147 * rs6000-tdep.c (move_ev_register_func): New typedef.
8148 (e500_move_ev_register): Use it. Change return to enum
8149 register_status. Return the register's status.
8150 (do_regcache_raw_read): New function.
8151 (do_regcache_raw_write): New function.
8152 (e500_pseudo_register_read): Change return to enum
8153 register_status. Return the register's status. Use
8154 do_regcache_raw_read.
8155 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8156 (dfp_pseudo_register_read): Change return to enum register_status.
8157 Return the register's status.
8158 (vsx_pseudo_register_read): Ditto.
8159 (efpr_pseudo_register_read): Ditto.
8160 (rs6000_pseudo_register_read): Ditto.
8161 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8162 register_status. Return the register's status.
8163 * sh64-tdep.c (pseudo_register_read_portions): New function.
8164 (sh64_pseudo_register_read): Change return to enum
8165 register_status. Use pseudo_register_read_portions. Return the
8166 register's status.
8167 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8168 register_status. Return the register's status.
8169 * sh-tdep.c (pseudo_register_read_portions): New function.
8170 (sh_pseudo_register_read): Change return to enum register_status.
8171 Use pseudo_register_read_portions. Return the register's status.
8172 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8173 enum register_status. Return the register's status.
8174 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8175 * spu-tdep.c (spu_pseudo_register_read_spu)
8176 (spu_pseudo_register_read): Ditto.
8177 * xtensa-tdep.c (xtensa_register_read_masked)
8178 (xtensa_pseudo_register_read): Ditto.
8179 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8180
e10abd8f
PM
81812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8182
8183 * python/py-value.c (valpy_getitem): Fix formatting of error function
8184 call.
8185
7ea6d463
PM
81862011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8187
8188 ARI fixes: Add missing internationalization markups throughout
8189 C source files.
8190 * darwin-nat-info.c: Ditto.
8191 * record.c: Ditto.
8192 * remote.c: Ditto.
8193 * mi/mi-main.c: Ditto.
8194
001083c6
PM
81952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8196
8197 ARI fixes: Add missing internationalization markups throughout
8198 yacc files.
8199 * c-exp.y: Ditto.
8200 * cp-name-parser.y: Ditto.
8201 * f-exp.y: Ditto.
8202 * m2-exp.y: Ditto.
8203 * objc-exp.y: Ditto.
8204 * p-exp.y: Ditto.
8205
4f1cdeec
PM
82062011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8207
8208 ARI fixes: Messages should have no trailing new lines.
8209 * darwin-nat.c (mach_check_error): Remove trailing new line from
8210 warning function call message.
8211 * record.c (bfdcore_read): Idem for error call.
8212
28e698f1
PM
82132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8214
8215 * common/signals.c (target_signal_from_host): Add _ markup to error
8216 function call message.
8217 (target_signal_to_host): Add _ markup and remove trailing new line
8218 from warning call message.
8219 (target_signal_from_command): Add _ markup to error function call
8220 message.
8221
99c3dc11
PM
82222011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8223
f33edef8 8224 PR python/12149
99c3dc11
PM
8225
8226 * python/python.c (gdbpy_write): Accept a stream argument and
8227 operate to the appropriate stream.
8228 (gdbpy_flush): Likewise.
8229 (_initialize_python): Add stream constants.
8230 (finish_python_initialization): Add GdbOutputErrorFile class.
8231
c20800be
KY
82322011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8233
8234 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8235
f4a1794a
KY
82362011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8237
8238 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8239 to store_signed_integer. Add debug message when relocating CALL
8240 instructions. Fix formatting of debug message.
8241 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8242
d4862372
JB
82432011-03-17 Joel Brobecker <brobecker@gnat.com>
8244
8245 * target.h (struct target_ops): Remove to_lookup_symbol field.
8246 (target_lookup_symbol): Delete macro.
8247 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8248 (update_current_target, setup_target_debug): Remove handling
8249 of to_lookup_symbol target_ops field.
8250 * ada-tasks.c (get_known_tasks_addr): Remove use of
8251 target_lookup_symbol.
8252 * coffread.c (coff_symtab_read): Likewise.
8253 * dbxread.c (read_dbx_symtab): Ditto.
8254
d645e32e
JB
82552011-03-17 Joel Brobecker <brobecker@gnat.com>
8256
8257 PR gdb/12116:
8258 * configure.ac: Add getthrds declaration check.
8259 * configure, config.in: Regenerate.
8260 * aix-thread.c (getthrds): Declare only if not already declared
8261 in procinfo.h. More declaration out of get_signaled_thread to
8262 global scope.
8263
29703da4
PM
82642011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8265
8266 * python/py-symtab.c: Populate symtab_object_methods,
8267 sal_object_methods.
8268 (stpy_is_valid): New function.
8269 (salpy_is_valid): Ditto.
8270 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8271 (sympy_is_valid): New function.
8272 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8273 (objfpy_is_valid): New function.
8274 * python/py-inferior.c: Populate inferior_object_methods.
8275 (infpy_is_valid): New function.
8276 * python/py-infthread.c: Populate thread_object_methods.
8277 (thpy_is_valid): New function.
8278 * python/py-block.c: Declare block_object_methods. Populate. Declare
8279 block_iterator_object_methods. Populate.
8280 (blpy_is_valid): New function.
8281 (blpy_iter_is_valid): Ditto.
8282
c00f8484
KS
82832011-03-16 Keith Seitz <keiths@redhat.com>
8284
8285 * linespec.c (find_methods): Canonicalize NAME before looking
8286 up the symbol.
8287 (name_end): New function.
8288 (keep_name_info): New function.
8289 (decode_line_1): Use keep_name_info.
8290 (decode_compound): Likewise.
8291 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8292 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8293
8294 PR c++/12273
8295 * linespec.c (locate_first_half): Keep overload information, too.
8296 (decode_compound): Use a string to represent break characters
8297 to escape the loop.
8298 If P points to a break character, do not increment it.
8299 For C++ and Java, keep overload information and relevant keywords.
8300 If we cannot find a symbol, search the minimal symbols.
8301
8302 PR c++/11734
8303 * linespec.c (decode_compound): Rename SAVED_ARG to
8304 THE_REAL_SAVED_ARG.
8305 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8306 single-quotes.
8307 Pass a valid block to lookup_symbol.
8308 (lookup_prefix_sym): Likewise.
8309 (find_method): Construct search name based on SYM_CLASS instead
8310 of SAVED_ARG.
8311 * psymtab.c (lookup_partial_symbol): Add language parameter.
8312 (lookup_symbol_aux_psymtabs): Likewise.
8313 Don't assume that the psymtab we found was the right one. Search
8314 for the desired symbol in the symtab to be certain.
8315 (psymtab_search_name): New function.
8316 (lookup_partial_symbol): Use psymtab_search_name.
8317 Add language parameter.
8318 (read_symtabs_for_function): Add language parameter and pass to
8319 lookup_partial_symbol.
8320 (find_symbol_file_from_partial): Likewise.
8321
c91513d8
PP
83222011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8323
8324 PR gdb/12528
8325 * dwarf2read.c (noop_record_line): New function.
8326 (dwarf_decode_lines): Ignore line tables for GCd functions.
8327
b37520b6
PM
83282011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8329
8330 Fix ARI warnings about new lines at the end of messages, which
8331 are unneeded as there is a new line added at the end of the message
8332 automatically.
8333 * darwin-nat.c (darwin_stop_inferior): Ditto.
8334 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8335 * dfp.c (decimal_to_number): Ditto.
8336 * exec.c (print_section_info): Ditto.
8337 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8338 * osdata.c (get_osdata): Ditto.
8339 * record.c (bfdcore_write): Ditto.
8340 * remote-mips.c (mips_readchar): Ditto.
8341 * remote.c (read_ptid): Ditto.
8342 * ser-mingw.c (ser_windows_raw): Ditto.
8343 * tracepoint.c (add_local_symbols): Ditto.
8344 * windows-nat.c (fake_create_process): Ditto.
8345
b08ee6a2
TT
83462011-03-16 Tom Tromey <tromey@redhat.com>
8347
8348 * tracepoint.c (stop_tracing): Don't declare.
8349 * event-top.c (after_char_processing_hook): Add `(void)'.
8350
9a6f1302
PM
83512011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8352
8353 * NEWS: Add Parameter sub-classing description.
8354
7ceb86b1
KT
83552011-03-16 Kai Tietz <ktietz@redhat.com>
8356
8357 * MAINTAINERS: Update my e-mail address.
8358
efeff6cf
AT
83592011-03-15 Andreas Tobler <andreast@fgznet.ch>
8360
8361 * MAINTAINERS: Add myself for write after approval privileges.
8362
681c238c
MS
83632011-03-15 Michael Snyder <msnyder@vmware.com>
8364
f3df5b08
MS
8365 * frame.c (find_frame_sal): Assert sym is not null.
8366
13f6513c
MS
8367 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8368
50412521
MS
8369 * objc-lang.c (selectors_info): Check strchr for null result.
8370
681c238c
MS
8371 * stabsread.c (define_symbol): Guard against bad stabstring input.
8372
6ced1581
PM
83732011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8374
8375 Remove trailing spaces and tabulations from pascal language
8376 support sources.
8377 p-exp.y: Ditto.
8378 p-lang.c: Ditto.
8379 p-lang.h: Ditto.
8380 p-valprint.c: Ditto.
8381
9373cf26
JK
83822011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8383
8384 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8385 than LOW. Comment it.
8386 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8387 HIGHPC not strictly higher than LOWPC.
8388
9a1edae6
PM
83892011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8390
8391 Fix formatting of function declarations returning a pointer in
8392 previous commit.
8393 * varobj.c (varobj_add_child): Ditto.
8394 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8395 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8396
24e9cda0
UW
83972011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8398
8399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8400 for the "generic" vector ABI used with GCC 4.3 and later.
8401 (ppc64_sysv_abi_return_value): Likewise.
8402
84032011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8404
8405 * infcall.c (call_function_by_hand): Function return value is
8406 always a non_lval, even when using struct_return.
8407
c9174737
PA
84082011-03-15 Pedro Alves <pedro@codesourcery.com>
8409
8410 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8411 (map_display_numbers): New.
8412 (do_delete_display): New.
8413 (undisplay_command): Use map_display_numbers.
8414 (do_enable_disable_display): New.
8415 (enable_disable_display_command): New function.
8416 (enable_display): Delete.
8417 (enable_display_command): New.
8418 (disable_display_command): Reimplement.
8419 (_initialize_printcmd): Adjust "enable display" command to use
8420 `enable_display_command' as callback.
8421
350c6c65
PM
84222011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8423
8424 * NEWS: Add Python breakpoint 'stop' operation.
8425
824446ad
PM
84262011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8427
8428 * NEWS: Delete duplicate entry. Fix typo.
8429
2021ad3a
PM
84302011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8431
8432 Fix ARI warning about function names in first column.
8433 Put prototype declaration on same line as return type.
8434 * objc-exp.y: Ditto.
8435 * p-exp.y: Ditto.
8436 * python/py-stopevent.h: Ditto.
8437 For long function names, split parameters to
8438 allow function name on same line as return type.
8439 * solib-pa64.c: Ditto.
8440 * varobj.c: Ditto.
8441 * varobj.h: Ditto.
8442 For long function declaration, use single line.
8443 * hppa-tdep.h: Ditto.
8444 * inferior.h: Ditto.
8445
7371cf6d
PM
84462011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8447
8448 * python/python.h: Declare gdbpy_should_stop and
8449 gdbpy_breakpoint_has_py_cond.
8450 * python/python.c: Add python.h to includes. Remove python.h from
8451 HAVE_PYTHON definition
8452 (gdbpy_should_stop): New dummy function.
8453 (gdbpy_breakpoint_has_py_cond): New dummy function.
8454 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8455 sub-classing capabilities.
8456 (gdbpy_should_stop): New function.
8457 (gdbpy_breakpoint_has_py_cond): New function.
8458 (local_setattro): New function.
8459 * breakpoint.c (condition_command): Add check for Python 'stop'
8460 operation.
8461 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8462 operation function as part of stop/continue tests.
8463
37b50a69
TT
84642011-03-14 Tom Tromey <tromey@redhat.com>
8465
8466 PR gdb/12576:
8467 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8468 (needs_frame_dwarf_call): Likewise.
8469
eeae04df
PM
84702011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8471
8472 Fix ARI warning about functions without parameters that do not
8473 use (void).
8474 * breakpoint.c (all_tracepoints): Replace () by (void).
8475 * f-exp.y (match_string_literal): Ditto.
8476 (yylex): Ditto.
8477 * m2-exp.y (yylex): Ditto.
8478 * mep-tdep.c (current_me_module): Ditto.
8479 (current_options): Ditto.
8480 (current_cop_data_bus_width): Ditto.
8481 (current_cr_names): Ditto.
8482 (current_cr_is_float): Ditto.
8483 (current_ccr_names): Ditto.
8484 * objc-exp.y (yylex): Ditto.
8485 * p-exp.y (yylex): Ditto.
8486 * remote.c (send_interrupt_sequence): Ditto.
8487 * tracepoint.c (current_trace_status): Ditto.
8488 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8489 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8490
6dc3565d
MS
84912011-03-11 Michael Snyder <msnyder@vmware.com>
8492
1427fe5e
MS
8493 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8494 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8495 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8496 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8497 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8498
60bc018f
MS
8499 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8500 (delete_async_event_handler): Ditto.
8501
f3be5b64
MS
8502 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8503
4c2d5724
MS
8504 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8505
6dc3565d
MS
8506 * top.c (set_verbose): Assert showcmd was found.
8507
4e6ca6d5
MG
85082011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8509
8510 * xtensa-tdep.c (warning_once): Correct style issues.
8511
815a83e4
YQ
85122011-03-11 Yao Qi <yao@codesourcery.com>
8513
8514 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8515
f2eb0bc8
AS
85162011-03-11 Andreas Schwab <schwab@redhat.com>
8517
8518 * common/aclocal.m4: Remove.
8519
b801de47
MG
85202011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8521
8522 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8523 (xtensa_write_register, xtensa_read_register): Likewise.
8524 (xtensa_hextochar): Removed.
8525 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8526
dbab50de
MG
85272011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8528
8529 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8530 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8531 (xtensa_alloc_frame_cache): Add initialization for new fields.
8532 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8533 (warning_once): New function.
8534 (xtensa_insn_kind): New item c0opc_and.
8535 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8536 (call0_track_op): Change arguments. New local variable litbase.
8537 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8538 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8539 in the prologue.
dbab50de 8540 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8541 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8542 Add the variety of updates to handle extended prologues, which now can
8543 conduct dynamic stack adjustments.
8544 (call0_frame_cache): Likewise.
8545 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8546 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8547
b2c04452
MS
85482011-03-10 Michael Snyder <msnyder@vmware.com>
8549
f8f67713
MS
8550 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8551 (cmd_qtframe): Ditto.
8552 (cmd_qtbuffer): Ditto.
8553 (cmd_bigqtbuffer): Ditto.
8554
197f0a60
TT
85552011-03-10 Tom Tromey <tromey@redhat.com>
8556
8557 * tracepoint.c (trace_actions_command): Update.
8558 * thread.c (thread_apply_command): Update.
8559 * reverse.c (delete_bookmark_command): Update.
8560 (bookmarks_info): Update.
8561 * printcmd.c (undisplay_command): Update.
8562 * memattr.c (mem_enable_command): Update.
8563 (mem_disable_command): Update.
8564 (mem_delete_command): Update.
8565 * inferior.c (detach_inferior_command): Update.
8566 (kill_inferior_command): Update.
8567 (remove_inferior_command): Update.
8568 * cli/cli-utils.h (struct get_number_or_range_state): New.
8569 (init_number_or_range): Declare.
8570 (get_number_or_range): Update.
8571 * cli/cli-utils.c (init_number_or_range): New function.
8572 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8573 static variables.
8574 (number_is_in_list): Update.
8575 * breakpoint.h (get_tracepoint_by_number): Update.
8576 * breakpoint.c (map_breakpoint_numbers): Update for change to
8577 get_number_or_range.
8578 (find_location_by_number): Use get_number, not
8579 get_number_or_range.
8580 (trace_pass_set_count): New function.
8581 (trace_pass_command): Update for change to get_number_or_range.
8582 Rework loop logic.
8583 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8584 'state' parameter.
8585
ecec24e6
PM
85862011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8587
8588 * python/py-param.c (add_setshow_generic): Add set/show callback
8589 parameters. Register Python object context.
8590 (get_show_value): New function.
8591 (get_set_value): New function.
8592 (call_doc_function): New function.
8593 (get_doc_string): Move behind get_show_value/get_set_value.
8594
6d6c6b1f
JK
85952011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8596
8597 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8598
68d6df83
MG
85992011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8600
dbab50de 8601 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8602 (xtensa_write_register): Likewise.
8603 (xtensa_hextochar): Add comment and update to match coding conventions.
8604 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8605 (execute_l32e, execute_s32e, execute_code): Update comments.
8606 (xtensa_exception_handler_t): Update to match coding conventions.
8607 (xtensa_insn_kind): Likewise.
8608
85c9d6a6
MS
86092011-03-09 Michael Snyder <msnyder@vmware.com>
8610
8611 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8612
91495617
PA
86132011-03-09 Pedro Alves <pedro@codesourcery.com>
8614
8615 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8616
eb8c0621
TT
86172011-03-09 Tom Tromey <tromey@redhat.com>
8618
8619 * thread.c (restore_selected_frame): Handle frame_level == -1.
8620 (make_cleanup_restore_current_thread): Use
8621 get_selected_frame_if_set.
8622 * frame.h (get_selected_frame_if_set): Declare.
8623 * frame.c (get_selected_frame_if_set): New function.
8624
9f37bbcc
PA
86252011-03-09 Pedro Alves <pedro@codesourcery.com>
8626
8627 * cli/cli-cmds.c (shell_escape): Use lbasename.
8628 * coffread.c (coff_start_symtab): Constify parameter.
8629 (complete_symtab): Constify `name' parameter.
8630 (coff_symtab_read): Constify `filestring' local.
8631 (coff_getfilename): Constify return and `result' local.
8632 Use lbasename.
8633 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8634 * linux-fork.c (info_checkpoints_command): Use lbasename.
8635 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8636 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8637 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8638 * procfs.c (procfs_make_note_section): Use lbasename.
8639 * tui/tui-io.c (printable_part): Constity return and parameter.
8640 Use lbasename.
8641 (print_filename): Constify parameters, and local `s'.
8642 (tui_rl_display_match_list): Constify local `temp'.
8643
f8de3c55
JK
86442011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8645
8646 Revert:
8647 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8648 Fix DWARF-3+ DW_AT_accessibility default assumption.
8649 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8650 cu->header.version >= 3.
8651
d9837b00
YQ
86522011-03-09 Yao Qi <yao@codesourcery.com>
8653
8654 * common/Makefile.in: Remove.
8655 * common/configure: Remove.
8656 * common/configure.ac: Remove.
8657
e637a4f5
YQ
86582011-03-09 Yao Qi <yao@codesourcery.com>
8659
8660 Revert:
8661 2011-02-11 Yao Qi <yao@codesourcery.com>
8662
8663 * common/Makefile.in: Add copyright header.
8664
8665 2011-02-11 Yao Qi <yao@codesourcery.com>
8666
8667 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8668 libcommon.a.
8669 * configure.ac: Add common to sub dir.
8670 * configure: Regenerate.
8671
f976a05d
MG
86722011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8673
8674 * xtensa-tdep.c (call0_ret): New function.
8675 (xtensa_skip_prologue): Speed up analysis.
8676
57041825
MG
86772011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8678
8679 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8680 while executing MI command -data-list-changed-registers.
8681
08b9c608
MG
86822011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8683
8684 * xtensa-tdep.c (xtensa_read_register): New function.
8685 (xtensa_write_register): New function.
8686 (xtensa_find_register_by_name): New function.
8687 (xtensa_windowed_frame_cache): Update comments in type description.
8688 (xtensa_frame_cache): Likewise.
8689 (xtensa_window_interrupt_insn): New function.
8690 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8691 (xtensa_insn_kind): Add new instructions.
8692 (rwx_special_register): New function.
8693 (call0_classify_opcode): Add new instructions to the analysis.
8694 (a0_saved, a7_saved, a11_saved): New variables.
8695 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8696 (execute_l32e): New function.
8697 (execute_s32e): New function.
8698 (xtensa_exception_handler_t): New type.
8699 (execute_code): New function.
8700 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8701 analysis for Xtensa Window Exception handlers.
8702
4d1acb11
MG
87032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8704
98689b25
MG
8705 * xtensa-tdep.c (TX_PS): New.
8706 (windowing_enabled): Update to count for Call0 ABI.
8707 (xtensa_hextochar): New.
8708 (xtensa_init_reggroups): Make algorithm generic.
8709 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8710
87112011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8712
8713 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8714
d3f323f3
MS
87152011-03-08 Michael Snyder <msnyder@vmware.com>
8716
3dcabaa8
MS
8717 * i386-tdep.c (i386_follow_jump): Check return value of
8718 target_read_memory.
8719 (i386_analyze_struct_return): Ditto.
8720 (i386_skip_probe): Ditto.
8721 (i386_match_insn): Ditto.
8722 (i386_skip_noop): Ditto.
8723 (i386_analyze_frame_setup): Ditto.
8724 (i386_analyze_register_saves): Ditto.
8725 (i386_skip_prologue): Ditto.
8726 (i386_skip_main_prologue): Ditto.
8727
13b3fd9b
MS
8728 * target.c (read_whatever_is_readable): Fix memory leak.
8729
d3f323f3
MS
8730 * i386-tdep.c (i386_process_record): Document fall through.
8731
421d5c74
JK
87322011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8733
8734 Fix DWARF-3+ DW_AT_accessibility default assumption.
8735 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8736 cu->header.version >= 3.
8737
63154eca
PA
87382011-03-08 Pedro Alves <pedro@codesourcery.com>
8739
8740 * remote.c (remote_check_symbols): Skip if the target has no
8741 execution.
8742
f1a507a1
JB
87432011-03-08 Joel Brobecker <brobecker@adacore.com>
8744
8745 * target.c (read_whatever_is_readable): Reformat comment,
8746 with a minor typo fix. Minor reformatting of the code.
8747
36073a92
YQ
87482011-03-08 Yao Qi <yao@codesourcery.com>
8749
8750 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8751 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8752 Use cached result instead of calling displaced_in_arm_mode again.
8753 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8754 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8755 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8756 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8757 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8758 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8759 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8760 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8761 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8762 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8763 (arm_catch_kernel_helper_return): Likewise.
8764 * gdb/arm-tdep.h : Update function declarations.
8765
d3f323f3 87662011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8767
e0e40094
MS
8768 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8769
0b2381f5
MS
8770 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8771
0350914a
MS
8772 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8773
69feea6f
MS
8774 * elfread.c (elf_symtab_read): Stop memory leak.
8775
e6040cbd
MS
8776 * main.c (captured_main): Fix memory leak.
8777
052874e8
AS
87782011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8779
8780 * ada-lang.c (compare_names): Call is_name_suffix with string1
8781 instead of string2.
8782
b11896a5
TT
87832011-03-07 Tom Tromey <tromey@redhat.com>
8784
8785 * xcoffread.c (xcoff_sym_fns): Update.
8786 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8787 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8788 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8789 (symbol_file_add_with_addrs_or_offsets): Likewise.
8790 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8791 * somread.c (som_sym_fns): Update.
8792 * psymtab.h (require_partial_symbols): Declare.
8793 * psymtab.c (require_partial_symbols): New function.
8794 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8795 (ALL_OBJFILE_PSYMTABS): Undef.
8796 (ALL_PSYMTABS): Move from psympriv.h.
8797 (lookup_partial_symtab, find_pc_sect_psymtab)
8798 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8799 (find_last_source_symtab_from_partial)
8800 (forget_cached_source_info_partial)
8801 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8802 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8803 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8804 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8805 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8806 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8807 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8808 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8809 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8810 psymtabs.
8811 * mipsread.c (ecoff_sym_fns): Update.
8812 * machoread.c (macho_sym_fns): Update.
8813 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8814 (read_psyms): New function.
8815 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8816 (elf_sym_fns_lazy_psyms): New global.
8817 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8818 dwarf2_build_psymtabs.
8819 * dbxread.c (aout_sym_fns): Update.
8820 * coffread.c (coff_sym_fns): Update.
8821
fda326dd
TT
88222011-03-07 Tom Tromey <tromey@redhat.com>
8823
8824 * infrun.c (print_exited_reason): Include inferior id and pid in
8825 message.
8826
aeaec162
TT
88272011-03-07 Tom Tromey <tromey@redhat.com>
8828
8829 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8830 parameter.
8831 (target_has_execution_1): Update.
8832 (target_has_execution_current): Declare.
8833 (target_has_execution): Call target_has_execution_current.
8834 (default_child_has_execution): Update.
8835 * target.c (default_child_has_execution): Add 'the_ptid'
8836 parameter.
8837 (target_has_execution_1): Likewise.
8838 (target_has_execution_current): New function.
8839 (add_target): Update.
8840 (init_dummy_target): Update.
8841 * remote-m32r-sdi.c (m32r_has_execution): New function.
8842 (init_m32r_ops): Use it.
8843 * record.c (record_core_has_execution): Now static. Add
8844 'the_ptid' parameter.
8845 * inferior.c (have_live_inferiors): Don't save current thread.
8846 Use target_has_execution_1.
8847
08e14083
YQ
88482011-03-07 Yao Qi <yao@codesourcery.com>
8849
8850 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8851
c05d19c5
JB
88522011-03-07 Joel Brobecker <brobecker@adacore.com>
8853
8854 * elfread.c (elf_symtab_read): Minor reformatting.
8855
3e6ef9e4
JB
88562011-03-07 Joel Brobecker <brobecker@adacore.com>
8857
8858 * objc-lang.c (selectors_info): Minor reformatting.
8859
dbb8534f
JB
88602011-03-07 Joel Brobecker <brobecker@adacore.com>
8861
8862 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8863
dd70cc93
JB
88642011-03-07 Joel Brobecker <brobecker@adacore.com>
8865 Michael Snyder <msnyder@vmware.com>
8866
8867 * ada-valprint.c (ada_val_print_array): Move the declaration of
8868 "byte_order" and "elttype" inside the block where these variables
8869 are actually used. Remove some special handling for the case
8870 where "elttype" and "eltlen" are null. Replace by a comment
8871 and a couple of assertion checks.
8872
b27cf2b3
MS
88732011-03-05 Michael Snyder <msnyder@vmware.com>
8874
8875 * source.c (add_path): Replace semicolon at end of block.
8876 * dwarf2expr.c (execute_stack_op): Ditto.
8877
5387a0c6
MF
88782011-03-05 Mike Frysinger <vapier@gentoo.org>
8879
8880 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8881 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8882 (bfin-*-*): Likewise.
8883
e3aa49af
MS
88842011-03-05 Michael Snyder <msnyder@vmware.com>
8885
82ae4854
MS
8886 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8887 * mdebugread.c (parse_symbol): Ditto.
8888 * parse.c (parse_exp_in_context): Ditto.
8889 * source.c (add_path): Ditto.
8890 * utils.c (gnu_debuglink_crc32): Ditto.
8891 * varobj.c (variable_language): Ditto.
8892
e3aa49af
MS
8893 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8894
154f592e
MS
88952011-03-04 Michael Snyder <msnyder@vmware.com>
8896
da3ecdc6
MS
8897 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8898
9cc89665
MS
8899 * symfile.c (simple_overlay_update): Check for null return value
8900 from lookup_minimal_symbol.
8901
154f592e
MS
8902 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8903
63ffa6ee
TJB
89042011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8905
8906 * eval.c (parse_and_eval_address_1): Remove function.
8907 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8908 instead of parse_and_eval_address_1.
8909 * value.h (parse_and_eval_address_1): Remove prototype.
8910
a17d146e
MS
89112011-03-04 Michael Snyder <msnyder@vmware.com>
8912
8913 * remote.c (putpkt_binary): Document that case stmt falls through.
8914
1a6a67de
TJB
89152011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8916
8917 * breakpointc (print_it_typical): Move NULL check from here...
8918 (print_bp_stop_message): ... to here.
8919
488919c4
MS
89202011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8921
8922 * breakpoint.c (enable_command): Use break instead of continue,
8923 and fill in a missing break.
8924 (disable_command): Ditto.
8925
1e182ce8
UW
89262011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8927
8928 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8929 (terminal_save_ours): Remove misleading comment.
8930 (inflow_inferior_data_cleanup): Free ttystate.
8931 (inflow_inferior_exit): Likewise.
8932 (copy_terminal_info): Copy ttystate.
8933
8934 * serial.c (serial_copy_tty_state): New function.
8935 * serial.h (serial_copy_tty_state): Add prototype.
8936 (struct serial_ops): Add copy_tty_state callback.
8937 * ser-base.c (ser_base_copy_tty_state): New function.
8938 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8939 * ser-go32.c (dos_copy_tty_state): New function.
8940 (dos_ops): Install copy_tty_state callback.
8941 * ser-mingw.c (_initialize_ser_windows): Likewise.
8942 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8943 * ser-unix.c (hardwire_copy_tty_state): New function.
8944 (_initialize_ser_hardwire): Install it.
8945
b2c5f112
MS
89462011-03-04 Michael Snyder <msnyder@vmware.com>
8947
2abae994
MS
8948 * breakpoint.c (create_breakpoint): Add missing break statement.
8949
7f5936f9
MS
8950 Reverting this patch:
8951 * infcall.c (call_function_by_hand): Add break statements for lint.
8952
b2c5f112
MS
8953 Reverting this patch:
8954 * cli/cli-script.c (script_from_file): Add break for lint.
8955
42b1321c
MS
89562011-03-04 Michael Snyder <msnyder@vmware.com>
8957
8958 * solib.c (reload_shared_libraries_1): Close memory leak.
8959
3e2a0cee
TT
89602011-03-03 Tom Tromey <tromey@redhat.com>
8961
8962 PR gdb/12538:
8963 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8964 DW_STRING is NULL.
8965
58397cb7
MS
89662011-03-03 Michael Snyder <msnyder@vmware.com>
8967
2e3fd767
MS
8968 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8969 fields of struct 'st' to zero.
8970
58397cb7
MS
8971 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8972 sal.pspace before calling set_current_source_symtab_and_line.
8973
ced54c8f
YQ
89742011-03-03 Yao Qi <yao@codesourcery.com>
8975
8976 * Makefile.in (configure-common): Remove. Let Makefile
8977 in dir common to rebuild itself.
8978 (common/Makefile): Likewise.
8979
3351ea09
JB
89802011-03-03 Joel Brobecker <brobecker@adacore.com>
8981
8982 * utils.c (parse_escape): Add i18n markup in error message.
8983
bf9f652a
YQ
89842011-03-03 Yao Qi <yao@codesourcery.com>
8985
8986 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8987 ARM_PC_REGNUM.
8988 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8989 (displaced_write_reg, displaced_read_reg): Likewise.
8990 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8991 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8992 (cleanup_branch): Replace magic number 14 and 15 with
8993 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8994
d42de051
MS
89952011-03-02 Michael Snyder <msnyder@vmware.com>
8996
240f9570
MS
8997 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8998
10dd8b54
MS
8999 * cli/cli-script.c (script_from_file): Add break for lint.
9000
b98bd911
MS
9001 * mdebugread.c (parse_partial_symbols): Fix indent.
9002
3494b66d
MS
9003 * target-descriptions.c (tdesc_gdb_type): No need to call
9004 xstrdup, callee saves a copy.
9005
daac021a
MS
9006 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9007
c38d16a7
MS
9008 * infcall.c (call_function_by_hand): Add break statements for lint.
9009
905b671b
MS
9010 * utils.c (parse_escape): Escape the escape char.
9011
f2eb0bc8 9012 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9013 PyList_Append fails.
9014 (gdbpy_inferiors): Error out if build_inferior_list fails.
9015
8c6a60d1
MS
9016 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9017 a function call.
9018
d42de051
MS
9019 * record.c (record_restore): Move printf to before error return.
9020
4db71c0b
YQ
90212011-03-02 Yao Qi <yao@codesourcery.com>
9022
9023 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9024 is_thumb and insn_size.
9025 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9026 on both ARM and Thumb mode.
9027 (arm_process_displaced_insn): Set is_thumb and insn_size.
9028 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9029 (arm_displaced_step_fixup): Likewise.
9030
a9dc8dcc
MS
90312011-03-01 Michael Snyder <msnyder@vmware.com>
9032
53624a93
MS
9033 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9034
77766669
MS
9035 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9036
62d5b8da
MS
9037 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9038
5e9e105f
MS
9039 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9040
dc19db01
MS
9041 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9042 with xmalloc.
9043
5ce64950
MS
9044 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9045 which shadows function parameter.
9046
a0aa2878
MS
9047 * tracepoint.c (create_tsv_from_upload): Superfluous call
9048 to xstrdup. Callee already calls xstrdup.
9049
e325fb69
MS
9050 * linespec.c (decode_line_1): Remove unnecessary null check.
9051
21cbba77
MS
9052 * tracepoint.c (scope_info): Fix mem leak, remove underused
9053 variable.
9054
63360adc
MS
9055 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9056 superfluous null check.
9057
18ea20ac 9058 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9059 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9060
d014929c
MS
9061 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9062
6e9130cf
MS
9063 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9064 be null.
9065
5f01dbc0
MS
9066 * linespec.c (decode_line_1): Check for null before dereference.
9067
d684ab85
MS
9068 * reverse.c (record_restore): Move null-check to before pointer
9069 dereference.
9070
bfffb7e3
MS
9071 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9072
a9dc8dcc
MS
9073 * objc-lang.c (selectors_info): Add explanitory comment.
9074 (classes_info): Ditto.
9075
478fd957
UW
90762011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9077
9078 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9079 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9080 versions of the trampoline. Handle Thumb vs. ARM addresses.
9081 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9082 (arm_linux_init_abi): Install it.
9083 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9084 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9085
0480cefa
MS
90862011-02-28 Michael Snyder <msnyder@vmware.com>
9087
ac50ab3b
MS
9088 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9089 a little bigger, to avoid possibility of an overflow.
9090
f63fbe86
MS
9091 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9092 buffers a little bigger, to avoid possibility of an overflow.
9093
9e91a352
MS
9094 * coffread.c (coff_getfilename): Add check to avoid overflow.
9095
f2eb0bc8 9096 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9097 avoid overflow.
9098 (classes_info): Error out on too long REGEXP.
9099
098ab512
MS
9100 * infrun.c (handle_inferior_event): Remove unused function call.
9101
bcbd1de9
MS
9102 * fork-child.c (fork_inferior): Remove ifdef'd code and
9103 unused variable.
9104
2e456570
MS
9105 * linux-thread-db.c (attach_thread): Discard unused value.
9106
14571dad
MS
9107 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9108
a9cbf802
MS
9109 * remote.c (remote_get_noisy_reply): Discard unused value.
9110 (remote_vcont_resume): Ditto.
9111 (remote_stop_ns): Ditto.
9112
5715d26e
MS
9113 * linespec.c (decode_objc): Delete unused variable.
9114
4a9bca80
MS
9115 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9116
f47fb265
MS
9117 * dwarf2read.c (add_partial_symbol): Discard unused values.
9118 (read_base_type): Delete unused variable.
9119
e81cff30
MS
9120 * dbxread.c (read_dbx_symtab): Discard unused value.
9121
262acaeb
MS
9122 * eval.c (evaluate_subexp_standard): Delete unused variable,
9123 and discard unused values.
9124
df983543
MS
9125 * infcmd.c (_initialize_infcmd): Discard unused values.
9126
89acf84d
MS
9127 * stabsread.c (rs6000_builtin_type): Missing break statement.
9128
ab8b8aca
MS
9129 * dbxread.c (process_one_symbol): Discard unused value.
9130
6b4511ab
MS
9131 * coffread.c (coff_end_symtab): Delete unused variable.
9132
e8e80198
MS
9133 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9134 (dwarf2_add_typedef): Delete unused variable.
9135 (read_namespace): Ditto.
9136 (dwarf_decode_macros): Ditto.
9137
976aa66e
MS
9138 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9139
5b92b49f
MS
9140 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9141
91e8df85
MS
9142 * p-valprint.c (pascal_val_print): Discard unused value.
9143
899500d6
MS
9144 * utils.c (nquery): Call va_end before return;
9145 (yquery): Ditto.
9146 (query): Ditto.
9147
0480cefa
MS
9148 * proc-service.c (ps_plog): Call va_end before return.
9149
fb6a3ed3
TT
91502011-02-28 Tom Tromey <tromey@redhat.com>
9151
9152 * python/python.c (gdbpy_value_cst): New global.
9153 (_initialize_python): Initialize it.
9154 * python/python-internal.h (gdbpy_value_cst): Declare.
9155 * python/py-value.c (convert_value_from_python): Use
9156 gdbpy_value_cst.
9157
c05202a1
MS
91582011-02-28 Michael Snyder <msnyder@vmware.com>
9159
e463f587
MS
9160 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9161
c38eea1a
MS
9162 * breakpoint.c (catch_syscall_completer): Free malloced list.
9163
3ef09ab5
MS
9164 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9165
8f9a01ee
MS
9166 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9167 (lval_func_check_synthetic_pointer): Ditto.
9168 (lval_func_free_closure): Fix use-after-free.
c05202a1 9169
477d0d57
TT
91702011-02-28 Tom Tromey <tromey@redhat.com>
9171
9172 * psymtab.c (expand_partial_symbol_tables): Use
9173 ALL_OBJFILE_PSYMTABS.
9174
20937029
JK
91752011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9176
9177 * objc-lang.c (selectors_info): Error on too long REGEXP.
9178
907b7f4f
MS
91792011-02-28 Michael Snyder <msnyder@vmware.com>
9180
92e96192
MS
9181 * python/py-param.c (set_parameter_value): Add missing
9182 break statement.
9183
907b7f4f
MS
9184 * linux-record.c (record_linux_system_call): Add missing
9185 break statement.
9186
12c5a436
UW
91872011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9188
9189 * breakpoint.c (print_one_breakpoint_location): Remove unused
9190 argument PRINT_ADDRESS_BITS. Update callers.
9191 (print_one_breakpoint): Likewise.
9192
170b53b2
UW
91932011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9194
9195 * breakpoint.c (wrap_indent_at_field): New function.
9196 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9197 Allocate ui_stream locally instead of using STB argument.
9198 (print_one_breakpoint_location): Update call.
9199 * ui-out.c (ui_out_query_field): New function.
9200 * ui-out.h (ui_out_query_field): Add prototype.
9201
8ab1f94d
JB
92022011-02-28 Joel Brobecker <brobecker@adacore.com>
9203
9204 From Michael Snyder <msnyder@vmware.com>
9205 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9206
7d488639
MS
92072011-02-27 Michael Snyder <msnyder@vmware.com>
9208
ae179fba
MS
9209 * objc-lang.c (selectors_info): Prevent string overrun.
9210
086dbf66
MS
9211 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9212 error in strncpy.
9213
f2eb0bc8 9214 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9215 outer scope.
9216
7d488639
MS
9217 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9218 param with a local variable of the same name.
9219
3bd0f5ef
MS
92202011-02-27 Michael Snyder <msnyder@vmware.com>
9221
9222 * value.c (value_from_history_ref): New function.
9223 * value.h (value_from_history_ref): Export.
9224 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9225 to parse value history references.
9226 * cli/cli-utils.h (get_number_trailer): Update comment.
9227
92282011-02-27 Michael Snyder <msnyder@vmware.com>
9229
9230 * inferior.c (detach_inferior_command): Use get_number_or_range.
9231 (kill_inferior_command): Ditto.
9232 (remove_inferior_command): Ditto.
9233 (initialize_inferiors): Make command names plural.
9234 Update help strings.
9235
766062f6
MS
92362011-02-27 Michael Snyder <msnyder@vmware.com>
9237
9238 * darwin-nat-info.c: Fix comment typo.
9239 * dwarf2expr.h: Ditto.
9240 * fbsd-nat.c: Ditto.
9241 * fbsd-nat.h: Ditto.
9242 * frame-unwind.h: Ditto.
9243 * frame.h: Ditto.
9244 * hppa-hpux-tdep.c: Ditto.
9245 * i386-linux-nat.c: Ditto.
9246 * linux-nat.c: Ditto.
9247 * nbsd-nat.c: Ditto.
9248 * nbsd-nat.h: Ditto.
9249 * ppc-linux-tdep.c: Ditto.
9250 * serial.c: Ditto.
9251 * ui-file.h: Ditto.
9252 * tui/tui-winsource.c: Ditto.
9253
f2c4ead5
MS
92542011-02-26 Michael Snyder <msnyder@vmware.com>
9255
86b887df
MS
9256 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9257
66fd3b1e
MS
9258 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9259
8c814cdd
MS
9260 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9261 with a local variable of the same name.
9262
6d5e094a 9263 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9264 param with a local variable of the same name.
6d5e094a 9265 (i387_supply_xsave): Ditto.
e5b3d7d6 9266
5eee517d
MS
9267 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9268 that it does not shadow a function parameter.
9269
8fbf6b93
MS
9270 * i386-nat.c (i386_length_and_rw_bits): Document that case
9271 statement is meant to fall through.
9272
cb969d61
MS
9273 * expprint.c (dump_subexp_body_standard): Document that case
9274 statement is meant to fall through.
9275
f2c4ead5
MS
9276 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9277 dead if statement. Condition can't be false.
9278
b021a221
MS
92792011-02-25 Michael Snyder <msnyder@vmware.com>
9280
9281 * arm-tdep.c: Fix typos in comments.
9282 * bsd-uthread.c: Ditto.
9283 * completer.c: Ditto.
9284 * corelow.c: Ditto.
9285 * cp-namespace.c: Ditto.
9286 * cp-support.c: Ditto.
9287 * cris-tdep.c: Ditto.
9288 * dbxread.c: Ditto.
9289 * dwarf2read.c: Ditto.
9290 * frame.h: Ditto.
9291 * gdbtypes.h: Ditto.
9292 * inferior.h: Ditto.
9293 * mdebugread.c: Ditto.
9294 * mips-tdep.c: Ditto.
9295 * ppc-linux-nat.c: Ditto.
9296 * ppc-linux-tdep.c: Ditto.
9297 * printcmd.c: Ditto.
9298 * sol-thread.c: Ditto.
9299 * solib-frv.c: Ditto.
9300 * solist.h: Ditto.
9301 * sparc64-tdep.c: Ditto.
9302 * spu-tdep.c: Ditto.
9303 * stabsread.c: Ditto.
9304 * symfile.c: Ditto.
9305 * valops.c: Ditto.
9306 * varobj.c: Ditto.
9307 * vax-nat.c: Ditto.
9308 * python/py-block.c: Ditto.
9309 * python/py-symbol.c: Ditto.
9310 * python/py-symtab.c: Ditto.
9311 * python/py-value.c: Ditto.
9312 * tui/tui-win.c: Ditto.
9313
c82c0b55
MS
93142011-02-25 Michael Snyder <msnyder@vmware.com>
9315
9316 * inferior.c (print_inferior): Accept a string instead of an int
9317 for requested_inferiors, and use get_number_or_range to parse it.
9318 (info_inferiors_command): Pass args string to print_inferior.
9319 (initialize_inferiors): Change help string for info inferiors.
9320 * inferior.h (print_inferior): Export prototype change.
9321
ee00cd23
TT
93222011-02-25 Tom Tromey <tromey@redhat.com>
9323
9324 * common/ax.def (invalid2): Set to 0x31.
9325
0502ed8c
JK
93262011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9327
9328 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9329 L and plongest.
9330 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9331 use L and plongest.
9332 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9333
2c9de912
MS
93342011-02-24 Michael Snyder <msnyder@vmware.com>
9335
9336 * Makefile.in (clean): Make clean should remove generated files
9337 observer.h and observer.inc.
9338
a04b0428
JB
93392011-02-24 Joel Brobecker <brobecker@adacore.com>
9340
9341 Revert the following patch (not approved yet):
9342 2011-02-21 Hui Zhu <teawater@gmail.com>
9343 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9344 * ax-gdb.c (gen_printf_expr_callback): New function.
9345 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9346 * ax-general.c (ax_memcpy): New function.
9347 (ax_print): Handle "printf".
9348 (ax_reqs): Ditto.
9349 * ax.h (ax_memcpy): Forward declare.
9350 * common/ax.def (invalid2): Removed.
9351 (printf): New entry.
9352 * printcmd.c (printcmd.h): New include.
9353 (string_printf): New function.
9354 (ui_printf): Removed.
9355 (printf_command): Remove static. Call string_printf.
9356 (eval_command): Call string_printf.
9357 * printcmd.h: New file.
9358 * tracepoint.c (validate_actionline,
9359 encode_actions_1): handle printf_command.
9360
2b52013f
TT
93612011-02-23 Tom Tromey <tromey@redhat.com>
9362
9363 * ax-general.c (ax_pick): Add missing newline.
9364
e5a67952
MS
93652011-02-23 Michael Snyder <msnyder@vmware.com>
9366
9367 * breakpoint.c (breakpoint_1): Change first argument from an int
9368 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9369 breakpoints rather than just one. Use new function
e5a67952
MS
9370 'number_is_in_list' to implement.
9371 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9372 (watchpoints_info): Ditto.
9373 (tracepoints_info): Ditto.
9374 (maintenance_info_breakpoints): Ditto.
9375 (_initialize_breakpoint): Update help strings to reflect the fact
9376 that these functions can now take more than one argument.
9377 * cli/cli-utils.c (number_is_in_list): New function.
9378 * cli/cli-utils.h (number_is_in_list): Export.
9379
93802011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9381
9382 * memattr.c (mem_enable_command): Use get_number_or_range.
9383 (mem_disable_command): Ditto.
9384 (mem_delete_command): Ditto.
9385 (_initialize_mem): Tweak usage message to reflect multiple
9386 arguments.
9387
6e6fbe60
DE
93882011-02-22 Doug Evans <dje@google.com>
9389
9390 Add gdb.lookup_global_symbol python function.
9391 * NEWS: Add entry.
9392 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9393 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9394 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9395
79b97fa8
TT
93962011-02-22 Tom Tromey <tromey@redhat.com>
9397
9398 * language.c (language_class_name_from_physname): Rename
9399 'curr_language' argument to 'lang'; use in body.
9400
298f437a
MS
94012011-02-22 Michael Snyder <msnyder@vmware.com>
9402
9403 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9404
b7ea3126
PA
94052011-02-22 Pedro Alves <pedro@codesourcery.com>
9406
9407 * frame-unwind.h: Fix comment to mention the this frame, not the
9408 next.
9409
58ee6d60
TT
94102011-02-22 Tom Tromey <tromey@redhat.com>
9411
9412 * symfile.c (auto_solib_limit): Remove.
9413 * symfile.h (auto_solib_limit): Remove.
9414
36238dbc
JB
94152011-02-22 Joel Brobecker <brobecker@adacore.com>
9416
9417 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9418
aea5b279
MS
94192011-02-21 Michael Snyder <msnyder@vmware.com>
9420
9421 * gdbthread.h (print_thread_info): Change prototype.
9422 * thread.c (print_thread_info): Accept char* instead of int for
9423 requested_threads argument. Use new function number_is_in_list
9424 to determine which threads to list.
9425 (info_threads_command): Pass char* to print_thread_info.
9426 * cli/cli-utils.c (number_is_in_list): New function.
9427 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9428 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9429 print_thread_info.
9430 (print_one_inferior): Ditto.
9431 (mi_cmd_list_thread_groups): Ditto.
9432
8caa75ee
JK
94332011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 * common/Makefile.in (CFLAGS): New.
9436 (COMPILE): Add $(CFLAGS).
9437
ea666128
TT
94382011-02-21 Tom Tromey <tromey@redhat.com>
9439
9440 * breakpoint.c (catch_syscall_command_1): Fix typo.
9441
e9cafbcc
TT
94422011-02-21 Tom Tromey <tromey@redhat.com>
9443
9444 * reverse.c: Include cli-utils.h.
9445 * printcmd.c: Include cli-utils.h.
9446 (string_printf): Use skip_spaces.
9447 * cli/cli-utils.h: New file.
9448 * cli/cli-utils.c: New file.
9449 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9450 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9451 * breakpoint.h (get_number, get_number_or_range): Move to
9452 cli-utils.h.
9453 * breakpoint.c: Include cli-utils.h.
9454 (get_number_trailer, get_number, get_number_or_range)
9455 (ep_skip_leading_whitespace): Move to cli-utils.c.
9456 (create_breakpoint_sal, find_condition_and_thread)
9457 (decode_static_tracepoint_spec, watch_command_1)
9458 (watch_maybe_just_location, ep_parse_optional_if_clause)
9459 (catch_fork_command_1, catch_exec_command_1)
9460 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9461 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9462 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9463 (HFILES_NO_SRCDIR): Add cli-utils.h.
9464 (cli-utils.o): New target.
9465
f67fd822
PM
94662011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9467
9468 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9469 before calling discard_all_inferiors.
9470
c9def01d
UW
94712011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9472
9473 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9474 (struct builtin_opencl_type): Remove.
9475 (builtin_opencl_type): Change return type to "struct type **".
9476 (lookup_opencl_vector_type): Update caller.
9477 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9478 (build_opencl_types): Install plain array of "struct type *"
9479 instead of "struct builtin_opencl_type".
9480
e3039479
UW
94812011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9482 Ulrich Weigand <uweigand@de.ibm.com>
9483
9484 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9485 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9486 (struct arm_linux_hwbp_cap): New type.
9487 (arm_linux_get_hwbp_cap): New function.
9488 (arm_linux_get_hw_breakpoint_count): Likewise.
9489 (arm_linux_get_hw_watchpoint_count): Likewise.
9490 (arm_linux_can_use_hw_breakpoint): Likewise.
9491 (arm_hwbp_type): New type.
9492 (arm_hwbp_control_t): Likewise.
9493 (struct arm_linux_hw_breakpoint): Likewise.
9494 (struct arm_linux_thread_points): Likewise.
9495 (arm_threads): New global variable.
9496 (arm_linux_find_breakpoints_by_tid): New function.
9497 (arm_hwbp_control_initialize): Likewise.
9498 (arm_hwbp_control_is_enabled): Likewise.
9499 (arm_hwbp_control_disable): Likewise.
9500 (arm_linux_hw_breakpoint_initialize): Likewise.
9501 (arm_linux_get_hwbp_type): Likewise.
9502 (arm_linux_hw_watchpoint_initialize): Likewise.
9503 (arm_linux_hw_breakpoint_equal): Likewise.
9504 (arm_linux_insert_hw_breakpoint1): Likewise.
9505 (arm_linux_remove_hw_breakpoint1): Likewise.
9506 (arm_linux_insert_hw_breakpoint): Likewise.
9507 (arm_linux_remove_hw_breakpoint): Likewise.
9508 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9509 (arm_linux_insert_watchpoint): Likewise.
9510 (arm_linux_remove_watchpoint): Likewise.
9511 (arm_linux_stopped_data_address): Likewise.
9512 (arm_linux_stopped_by_watchpoint): Likewise.
9513 (arm_linux_watchpoint_addr_within_range): Likewise.
9514 (arm_linux_new_thread): Likewise.
9515 (arm_linux_thread_exit): Likewise.
9516 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9517 related target callbacks. Register arm_linux_new_thread and
9518 arm_linux_thread_exit.
9519 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9520 * arm-tdep.c (arm_pc_is_thumb): Make global.
9521 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9522
b5db5dfc
UW
95232011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9524
9525 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9526 per-frame locations while within a function epilogue.
9527
e25b2cfa
PM
95282011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9529
9530 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9531 to GNU coding standards.
9532
4af53f97
PM
95332011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9534
9535 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9536 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9537 (ser_windows_close): Only call CancelIo if function exists.
9538 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9539 to check for existence of CancelIo function in kernel32 DLL.
9540
d0e92d82
HZ
95412011-02-21 Hui Zhu <teawater@gmail.com>
9542
9543 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9544 * ax-gdb.c (gen_printf_expr_callback): New function.
9545 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9546 * ax-general.c (ax_memcpy): New function.
9547 (ax_print): Handle "printf".
9548 (ax_reqs): Ditto.
9549 * ax.h (ax_memcpy): Forward declare.
9550 * common/ax.def (invalid2): Removed.
9551 (printf): New entry.
9552 * printcmd.c (printcmd.h): New include.
9553 (string_printf): New function.
9554 (ui_printf): Removed.
9555 (printf_command): Remove static. Call string_printf.
9556 (eval_command): Call string_printf.
9557 * printcmd.h: New file.
9558 * tracepoint.c (validate_actionline,
9559 encode_actions_1): handle printf_command.
9560
7d357efd
MS
95612011-02-19 Michael Snyder <msnyder@vmware.com>
9562
9563 * reverse.c (delete_one_bookmark): Argument is now bookmark
9564 id rather than pointer to bookmark struct.
9565 (delete_bookmark_command): Use get_number_or_range.
9566 (goto_bookmark_command): Parse with get_number instead of strtoul.
9567 (bookmark_1): New function. Print info for one bookmark.
9568 (bookmarks_info): Use get_number_or_range and bookmark_1.
9569
7a45ebd7
MS
95702011-02-18 Michael Snyder <msnyder@vmware.com>
9571
f2eb0bc8 9572 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9573 get_number_or_range.
65ebfb52 9574 (thread_apply_command): Ditto.
7a45ebd7 9575
94d5e490
TT
95762011-02-18 Tom Tromey <tromey@redhat.com>
9577
9578 * common/ax.def: New file.
9579 * ax.h (enum agent_op): Use ax.def.
9580 * ax-general.c (aop_map): Use ax.def.
9581
c7f96d2b
TT
95822011-02-18 Tom Tromey <tromey@redhat.com>
9583
9584 * ax-general.c (aop_map): Add pick and rot.
9585 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9586 <DW_OP_rot>: Implement.
9587 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9588 (ax_pick): Declare.
9589 * ax-general.c (ax_pick): New function.
9590
66694b75
TT
95912011-02-18 Tom Tromey <tromey@redhat.com>
9592
9593 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9594
eeaafae2
JK
95952011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9596 Tom Tromey <tromey@redhat.com>
9597
9598 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9599 make_symbol_overload_list_block with NULL BLOCK.
9600 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9601
3c3fe74c
PA
96022011-02-18 Pedro Alves <pedro@codesourcery.com>
9603
9604 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9605 * breakpoint.h (get_number_or_range): Declare.
9606 * printcmd.c (ALL_DISPLAYS): Declare.
9607 (delete_display): Reimplement taking a display pointer.
9608 (undisplay_command): Accept a range of displays to delete, using
9609 get_number_or_range.
9610
13163d80
PM
96112011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9612
9613 * c-valprint.c (c_val_print): Add embedded_offset to address
9614 for arrays of unspecified length.
9615 * p-valprint.c (pascal_val_print): Likewise.
9616
b434a28f
YQ
96172011-02-18 Yao Qi <yao@codesourcery.com>
9618
9619 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9620 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9621 (thumb_process_displaced_insn): New.
9622 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9623 call to arm_process_displaced_insn.
9624 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9625
9f6f94ff
TT
96262011-02-17 Tom Tromey <tromey@redhat.com>
9627
9628 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9629 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9630 compile_dwarf_to_ax. No longer static. Call
9631 dwarf2_compile_cfa_to_ax.
9632 (locexpr_tracepoint_var_ref): Update.
9633 (loclist_tracepoint_var_ref): Update.
9634 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9635 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9636 argument; add 'gdbarch' and 'pc'.
9637 (dwarf2_compile_cfa_to_ax): New function.
9638 (dwarf2_frame_cache): Update.
9639
e67ad678
JB
96402011-02-17 Joel Brobecker <brobecker@adacore.com>
9641
9642 * ada-lang.c (ada_type_of_array): Fix the size of the array
9643 in the case of an unconstrained packed array.
9644
946ebb0d
YQ
96452011-02-17 Yao Qi <yao@codesourcery.com>
9646
9647 * common/Makefile.in: Add more targets for make.
9648
1ba1b353
TT
96492011-02-16 Tom Tromey <tromey@redhat.com>
9650
9651 * dwarf2loc.c (unimplemented): Fix typo.
9652
b1bfef65
TT
96532011-02-16 Tom Tromey <tromey@redhat.com>
9654
9655 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9656 (compile_dwarf_to_ax) <default>: Use unimplemented.
9657 <DW_OP_deref>: Update.
9658 (disassemble_dwarf_expression): Update.
9659 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9660 (decode_locdesc): Update.
9661 * dwarf2expr.h (dwarf_stack_op_name): Update.
9662
5f1e6f19
TT
96632011-02-16 Tom Tromey <tromey@redhat.com>
9664
9665 * ax.h (struct aop_map) <name>: Now const.
9666
a0c78a73
PA
96672011-02-16 Tom Tromey <tromey@redhat.com>
9668
9669 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9670 than axs_rvalue.
9671
946ebb0d 96722011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9673
9674 * infrun.c (get_displaced_step_closure_by_addr): New.
9675 * inferior.h: Declare it.
9676 * arm-tdep.c: (arm_pc_is_thumb): Call
9677 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9678 returns non-NULL.
9679
08807d5a
PA
96802011-02-16 Pedro Alves <pedro@codesourcery.com>
9681 Jan Kratochvil <jan.kratochvil@redhat.com>
9682
9683 gdb/
9684 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9685
29976f3f
PA
96862011-02-16 Pedro Alves <pedro@codesourcery.com>
9687 Jan Kratochvil <jan.kratochvil@redhat.com>
9688
9689 * value.c (value_contents_copy_raw): Extend describing comment.
9690 Assert that the destination contents we're overwriting are wholly
9691 available.
fb68ae73 9692 (value_contents_copy): Extend describing comment.
29976f3f 9693
cd24cfaa
PA
96942011-02-16 Pedro Alves <pedro@codesourcery.com>
9695 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * value.c (value_available_contents_eq): Remove redundant local
9698 variables. Fix available contents comparision.
9699 * value.h (value_available_contents_eq): Extend describing
9700 comment.
9701
60bbf338
YQ
97022011-02-16 Yao Qi <yao@codesourcery.com>
9703
9704 * thread.c (info_threads_command): Add missing i18n markup and remove
9705 trailing newline.
9706
17450429
PP
97072011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9708
9709 * breakpoint.c (longjmp_names): New variable.
9710 (struct breakpoint_objfile_data): New type.
9711 (breakpoint_objfile_key): New variable.
9712 (msym_not_found): New variable.
9713 (msym_not_found_p): New predicate.
9714 (get_breakpoint_objfile_data): New function.
9715 (create_overlay_event_breakpoint): Check per-objfile cache for
9716 symbols first.
9717 (create_longjmp_master_breakpoint): Likewise.
9718 (create_std_terminate_master_breakpoint): Likewise.
9719 (create_exception_master_breakpoint): Likewise.
9720 (_initialize_breakpoint): Register per-objfile data key.
9721
af02033e
PP
97222011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9723
9724 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9725 parameter value.
9726 (create_longjmp_master_breakpoint): Loop over longjmp names.
9727 (create_std_terminate_master_breakpoint): Const-propagate parameter
9728 value.
9729 (update_breakpoints_after_exec): Adjust.
9730 (breakpoint_re_set): Adjust.
9731
60f98dde
MS
97322011-02-15 Michael Snyder <msnyder@vmware.com>
9733
cdf99611
MS
9734 * thread.c (info_threads_command): Process arg as thread id,
9735 or list of thread ids.
9736 (thread_find_command): New command.
9737 (_initialize_thread): Document argument for info threads.
9738 Document 'thread find' command.
9739 * NEWS: Document new command "thread find".
60f98dde 9740
0feedb2c
JK
97412011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9742
9743 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9744 * aclocal.m4: Regenerated with aclocal-1.11.1.
9745 * common/configure: Regenerate with autoconf-2.64.
9746
648cd113
KW
97472011-02-15 Ken Werner <ken.werner@de.ibm.com>
9748
9749 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9750 bool data type to a size of one byte.
9751
5657161f
PA
97522011-02-15 Pedro Alves <pedro@codesourcery.com>
9753 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 * target.c (memory_xfer_live_readonly_partial): Document where to
9756 look for interface description.
9757
494e194e
YQ
97582011-02-15 Yao Qi <yao@codesourcery.com>
9759
9760 PR tdep/12352
9761 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9762 order to store PC value on stack instead of text section.
9763
d9492458
TJB
97642011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9765
9766 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9767 the EFP register set size.
9768 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9769 data from the VMX register.
9770 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9771 and write data from/to the VMX register.
9772
cdf99611
MS
97732011-02-14 Michael Snyder <msnyder@vmware.com>
9774
9775 * command.h (enum command_class): New class 'no_set_class', for
9776 "show" commands without a corresponding "set" command.
9777 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9778 * copying.c (_initialize_copying): Ditto for "show copying" and
9779 "show warranty".
9780 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9781 "show version".
9782 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9783 which there is no corresponding "set" command (eg. "show copying").
9784
424447ee
PA
97852011-02-14 Pedro Alves <pedro@codesourcery.com>
9786 Jan Kratochvil <jan.kratochvil@redhat.com>
9787
9788 * exec.c (section_table_available_memory): Change `len' parameter
9789 type to ULONGEST.
9790 * exec.h (section_table_available_memory): Ditto.
9791 * value.h (read_value_memory): Rename the `offset' parameter to
9792 `embedded_offset'.
9793
c0f61f9c 97942011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9795 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9796
9797 * memrange.c (compare_mem_ranges): Mention sort order in
9798 describing comment.
9799 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9800 * tracepoint.c (traceframe_available_memory): Extend comment to
9801 mention what happens to RESULT when the target does not support
9802 the query.
9803
6bfc80c7
PA
98042011-02-14 Pedro Alves <pedro@codesourcery.com>
9805 Jan Kratochvil <jan.kratochvil@redhat.com>
9806
9807 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9808 range.
9809
e7303042
PA
98102011-02-14 Pedro Alves <pedro@codesourcery.com>
9811
9812 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9813 No longer handle NULL values.
9814
8af8e3bc
PA
98152011-02-14 Pedro Alves <pedro@codesourcery.com>
9816
9817 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9818 * value.c: Include "exceptions.h".
9819 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9820 generic error.
9821 * cp-abi.c: Include gdb_assert.h.
9822 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9823 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9824 errors.
9825 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9826 parameters. No longer returns -1 on error.
9827 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9828 `val' parameters.
9829 * cp-valprint.c: Include exceptions.h.
9830 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9831 the baseclass_offset. Handle unavailable base classes. Use
9832 val_print_invalid_address.
9833 * p-valprint.c: Include exceptions.h.
9834 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9835 when fetching the baseclass_offset. No longer expect
9836 baseclass_offset returning -1. Handle unavailable base classes.
9837 Use val_print_invalid_address.
9838 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9839 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9840 `embedded_offset' and `val' parameters. Adjust.
9841 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9842 parameter, and change its type to gdb_byte pointer. Add
9843 `embedded_offset' and `val' parameters. Adjust. No longer expect
9844 baseclass_offset returning -1.
9845 (value_dynamic_cast): Use value_contents_for_printing rather than
9846 value_contents. Adjust.
9847 (search_struct_field): No longer expect baseclass_offset returning
9848 -1.
9849 (search_struct_method): If reading memory from the target is
9850 necessary, wrap it in a new value to pass to baseclass_offset. No
9851 longer expect baseclass_offset returning -1.
9852 (find_method_list): No longer expect baseclass_offset returning
9853 -1. Use value_contents_for_printing rather than value_contents.
9854 * valprint.c (val_print_invalid_address): New function.
9855 * valprint.h (val_print_invalid_address): Declare.
9856 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9857 and `val' parameters. No longer expect baseclass_offset returning
9858 -1. Adjust.
9859 * gnu-v2-abi.c: Include "exceptions.h".
9860 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9861 parameters. Handle unavailable memory. Recurse through
9862 gnuv2_baseclass_offset directly, rather than through
9863 baseclass_offset. No longer returns -1 on not found, instead
9864 throw an error.
9865 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9866 `val' parameters. Adjust.
9867
1b28d0b3
PA
98682011-02-14 Pedro Alves <pedro@codesourcery.com>
9869
9870 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9871 almost but not quite adjacent.
9872
ec0a52e1
PA
98732011-02-14 Pedro Alves <pedro@codesourcery.com>
9874
9875 * value.h (value_entirely_available): Declare.
9876 * value.c (value_entirely_available): New function.
9877 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9878 real type if the pointer is unavailable.
9879
24e6bcee
PA
98802011-02-14 Pedro Alves <pedro@codesourcery.com>
9881
9882 * valops.c (value_repeat): Use read_value_memory instead of
9883 read_memory.
9884
39d37385
PA
98852011-02-14 Pedro Alves <pedro@codesourcery.com>
9886
9887 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9888 * value.c (value_contents_copy_raw, value_contents_copy): New
9889 functions.
9890 (value_primitive_field): Use value_contents_copy_raw instead of
9891 memcpy.
9892 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9893 memcpy.
9894 (value_array, value_slice): Ditto.
9895 * valarith.c (value_subscripted_rvalue): Use
9896 value_contents_copy_raw instead of memcpy.
9897
a3d34bf4
PA
98982011-02-14 Pedro Alves <pedro@codesourcery.com>
9899
9900 <unavailable> references.
9901
9902 * valops.c (get_value_at): Use value_from_contents_and_address,
9903 avoiding read_memory.
9904
9fc6d940
PA
99052011-02-14 Pedro Alves <pedro@codesourcery.com>
9906
9907 * c-valprint.c (c_val_print): Print a string with unavailable
9908 contents as an array.
9909
5467c6c8
PA
99102011-02-14 Pedro Alves <pedro@codesourcery.com>
9911
9912 * value.h (unpack_bits_as_long): Delete declaration.
9913 (unpack_value_bits_as_long): Declare.
9914 (unpack_value_field_as_long): Declare.
9915 (value_field_bitfield): Declare.
9916 * value.c (unpack_bits_as_long): Rename to...
9917 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9918 value parameters. Return the extracted result in a new output
9919 parameter. If the value contents are unavailable, return false,
9920 otherwise return true.
9921 (unpack_value_bits_as_long): New.
9922 (unpack_field_as_long): Rename to...
9923 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9924 Add embedded_offset and value parameters. Return the extracted
9925 result in a new output parameter. If the value contents are
9926 unavailable, return false, otherwise return true.
9927 (unpack_value_field_as_long): New.
9928 (unpack_field_as_long_1): New.
9929 (unpack_field_as_long): Reimplement as wrapper around
9930 unpack_value_field_as_long_1.
9931 (value_field_bitfield): New function.
9932 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9933 unpack_value_bits_as_long. Mark the value as unavailable, if it
9934 is unavailable.
9935 * jv-valprint.c (java_print_value_fields): Use
9936 value_field_bitfield.
9937 * p-valprint.c (pascal_object_print_value_fields): Use
9938 value_field_bitfield.
9939 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9940
3158c6ed
PA
99412011-02-14 Pedro Alves <pedro@codesourcery.com>
9942
9943 * value.c (get_internalvar_integer): Also return the int value of
9944 TYPE_CODE_INT INTERNALVAR_VALUE values.
9945 (set_internalvar): Don't special case TYPE_CODE_INT.
9946
9fbdca0d
PA
99472011-02-14 Pedro Alves <pedro@codesourcery.com>
9948
9949 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9950 INTERNALVAR_POINTER.
9951 <pointer>: Delete.
9952 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9953 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9954 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9955
c8c1c22f
PA
99562011-02-14 Pedro Alves <pedro@codesourcery.com>
9957
9958 * value.h (value_available_contents_eq): Declare.
9959 * value.c (find_first_range_overlap): New function.
9960 (value_available_contents_eq): New function.
9961 * valprint.c (val_print_array_elements): Use
9962 value_available_contents_eq.
9963 * ada-valprint.c (val_print_packed_array_elements): Use
9964 value_available_contents_eq.
9965 * jv-valprint.c (java_value_print): Use
9966 value_available_contents_eq.
9967
e6e4e701
PA
99682011-02-14 Pedro Alves <pedro@codesourcery.com>
9969
9970 * target.c (target_read_live_memory): New function.
9971 (memory_xfer_live_readonly_partial): New.
9972 (memory_xfer_partial): If reading from a traceframe, fallback to
9973 reading unavailable read-only memory from read-only regions of
9974 live target memory.
9975 * tracepoint.c (disconnect_tracing): Adjust.
9976 (set_current_traceframe): New, factored out from
9977 set_traceframe_number.
9978 (set_traceframe_number): Reimplement to only change the traceframe
9979 number on the GDB side.
9980 (do_restore_current_traceframe_cleanup): Adjust.
9981 (make_cleanup_restore_traceframe_number): New.
9982 (cur_traceframe_number): New global.
9983 (tfile_open): Set cur_traceframe_number to no traceframe.
9984 (set_tfile_traceframe): New function.
9985 (tfile_trace_find): If looking up a traceframe using any method
9986 other than by number, make sure the current tfile traceframe
9987 matches gdb's current traceframe. Update the current tfile
9988 traceframe if the lookup succeeded.
9989 (tfile_fetch_registers, tfile_xfer_partial)
9990 (tfile_get_trace_state_variable_value): Make sure the remote
9991 traceframe matches gdb's current traceframe.
9992 * remote.c (remote_traceframe_number): New global.
9993 (remote_open_1): Set it to -1.
9994 (set_remote_traceframe): New function.
9995 (remote_fetch_registers, remote_store_registers)
9996 (remote_xfer_memory, remote_xfer_partial)
9997 (remote_get_trace_state_variable_value): Make sure the remote
9998 traceframe matches gdb's current traceframe.
9999 (remote_trace_find): If looking up a traceframe using any method
10000 other than by number, make sure the current remote traceframe
10001 matches gdb's current traceframe. Update the current remote
10002 traceframe if the lookup succeeded.
10003 * infrun.c (fetch_inferior_event): Adjust.
10004 * tracepoint.h (set_current_traceframe): Declare.
10005 (get_traceframe_number, set_traceframe_number): Add describing
10006 comments.
10007
e6ca34fc
PA
100082011-02-14 Pedro Alves <pedro@codesourcery.com>
10009
10010 Mark pieces of values as unavailable if the corresponding memory
10011 is unavailable.
10012
10013 * valops.c: Include tracepoint.h.
10014 (value_fetch_lazy): Use read_value_memory.
10015 (read_value_memory): New.
10016 * value.h (read_value_memory): Declare.
10017 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10018 * exec.c (section_table_available_memory): New function.
10019 * exec.h (section_table_available_memory): Declare.
10020
2a7498d8
PA
100212011-02-14 Pedro Alves <pedro@codesourcery.com>
10022
10023 * Makefile.in (SFILES): Add memrange.c.
10024 (HFILES_NO_SRCDIR): Add memrange.h.
10025 (COMMON_OBS): Add memrange.o.
10026 * memrange.c: New file.
10027 * memrange.h: New file.
10028 * tracepoint.c: Include memrange.h.
10029 (struct mem_range): Delete.
10030 (mem_range_s): Delete.
10031 (traceframe_available_memory): New function.
10032 * tracepoint.h (traceframe_available_memory): Declare.
10033
b3b9301e
PA
100342011-02-14 Pedro Alves <pedro@codesourcery.com>
10035
10036 * target.h (struct traceframe_info): Forward declare.
10037 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10038 (struct target_ops) <to_traceframe_info>: New field.
10039 (target_traceframe_info): New.
10040 * target.c (update_current_target): Inherit and default
10041 to_traceframe_info.
10042 * remote.c (PACKET_qXfer_traceframe_info): New.
10043 (remote_protocol_features): Register qXfer:traceframe-info:read.
10044 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10045 (remote_traceframe_info): New.
10046 (init_remote_ops): Install it.
10047 (_initialize_remote): Install "set/show remote traceframe-info"
10048 commands.
10049 * tracepoint.h (parse_traceframe_info): Declare.
10050 * tracepoint.c (struct mem_range): New.
10051 (mem_range_s): New typedef.
10052 (struct traceframe_info): New.
10053 (traceframe_info): New global.
10054 (free_traceframe_info): New function.
10055 (clear_traceframe_info): New function.
10056 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10057 info.
10058 (build_traceframe_info): New function.
10059 (tfile_traceframe_info): New function.
10060 (init_tfile_ops): Install tfile_traceframe_info.
10061 (traceframe_info_start_memory, free_result): New functions.
10062 (memory_attributes, traceframe_info_elements): New globals.
10063 (parse_traceframe_info, get_traceframe_info): New functions.
10064 * features/traceframe-info.dtd: New file.
10065 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10066
4e07d55f
PA
100672011-02-14 Pedro Alves <pedro@codesourcery.com>
10068
10069 Base support for <unavailable> value contents.
10070
4e07d55f
PA
10071 * value.h (value_bytes_available): Declare.
10072 (mark_value_bytes_unavailable): Declare.
10073 * value.c (struct range): New struct.
10074 (range_s): New typedef.
10075 (ranges_overlap): New function.
10076 (range_lessthan): New function.
10077 (ranges_contain_p): New function.
10078 (struct value) <unavailable>: New field.
10079 (value_bytes_available): New function.
10080 (mark_value_bytes_unavailable): New function.
10081 (require_not_optimized_out): Constify parameter.
10082 (require_available): New function.
10083 (value_contents_all, value_contents): Require all bytes be
10084 available.
10085 (value_free): Free `unavailable'.
10086 (value_copy): Copy `unavailable'.
10087 * valprint.h (val_print_unavailable): Declare.
10088 * valprint.c (valprint_check_validity): Rename `offset' parameter
10089 to `embedded_offset'. If printing a scalar, check whether the
10090 value chunk is available.
10091 (val_print_unavailable): New.
10092 (val_print_scalar_formatted): Check whether the value is
10093 available.
10094 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10095 pretty-printing unavailable values.
10096
bc9a5551
JK
100972011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10098
10099 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10100 * c-typeprint.c (c_type_print_args): Update the function comment. New
10101 variable param_type, initialize it. Remove const/volatile qualifiers
10102 for language_cplus and !show_artificial. Use param_type.
10103
93b55aa1
JK
101042011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10105
10106 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10107 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10108 * symtab.h (struct symtab) <next>: Comment extension.
10109
181d9476
YQ
101102011-02-12 Yao Qi <yao@codesourcery.com>
10111
10112 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10113
b708a5c7
JK
101142011-02-11 Yao Qi <yao@codesourcery.com>
10115
10116 * common/Makefile.in: Add copyright header.
10117
c5187ac6
PA
101182011-02-11 Pedro Alves <pedro@codesourcery.com>
10119
10120 * infrun.c (proceed): Move switching out and in of tfind mode from
10121 here ...
10122 (fetch_inferior_event): ... to here.
10123
4f3e6fb7
YQ
101242011-02-11 Yao Qi <yao@codesourcery.com>
10125
10126 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10127 libcommon.a.
10128 * configure.ac: Add common to sub dir.
10129 * configure: Regenerate.
10130
b708a5c7
JK
101312011-02-11 Yao Qi <yao@codesourcery.com>
10132
10133 Build libcommon.a.
10134
10135 * common/Makefile.in: New.
10136 * common/configure.ac: New.
10137 * common/aclocal.m4: New.
10138 * common/configure: Generate.
10139
2287cc7e
PA
101402011-02-10 Pedro Alves <pedro@codesourcery.com>
10141
10142 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10143 side of the parenthesis.
10144
10145 Merge from GCC:
10146 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10147 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10148
fd62cb89
MS
101492011-02-08 Michael Snyder <msnyder@vmware.com>
10150
10151 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10152
56d2815c
JK
101532011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10154
10155 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10156 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10157 psubd and paddd.
10158
4f7d61a8
JK
101592011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10160
10161 PR 12361.
10162 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10163 phsubsw.
10164 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10165 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10166
54fcddd0
UW
101672011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10168
10169 * dwarf2read.c (read_subroutine_type): Set special calling
10170 convention flag for functions compiled by IBM XL C for OpenCL.
10171 * ppc-sysv-tdep.c: Include "dwarf2.h"
10172 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10173 calling convention.
10174 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10175 IBM OpenCL vector types calling convention.
10176 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10177 (ppc_sysv_abi_broken_return_value): Likewise.
10178 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10179 types calling convention.
10180 (ppc64_sysv_abi_return_value): Likewise.
10181 * spu-tdep.c: Include "dwarf2.h"
10182 (spu_return_value): Implement IBM OpenCL vector types calling
10183 convention.
10184
d6dafb7c
UW
101852011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10186
10187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10188 correct ABI for AltiVec vector arguments.
10189
32b72a42
PA
101902011-02-07 Pedro Alves <pedro@codesourcery.com>
10191
10192 * valprint.c (val_print): Extend comment.
10193 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10194 interface explanation to val_print.
10195 (ada_val_print_array): Adjust comment to current interface.
10196 (print_field_values): Adjust comment to current interface.
10197 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10198 explanation to val_print.
10199 * f-valprint.c (f_val_print): Ditto.
10200 * jv-valprint.c (java_val_print): Ditto.
10201 * m2-valprint.c (m2_val_print): Ditto.
10202 * p-valprint.c (pascal_val_print): Ditto.
10203
9998af43
TJB
102042011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10205
10206 * breakpoint.c (parse_breakpoint_sals): Fix description.
10207
505500db 102082011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10209 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10210
10211 * python/py-inferior.c (python_on_normal_stop): New function.
10212 (python_on_resume): New function.
10213 (python_inferior_exit): New function.
10214 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10215 inferior_exit observers.
10216 * python/py-evtregistry.c: New file.
10217 * python/py-threadevent.c : New file.
10218 * python/py-event.c: New file.
10219 * python/py-evts.c: New file.
10220 * python/py-continueevent.c: New file.
10221 * python/py-bpevent.c: New file.
10222 * python/py-signalevent.c: New file.
10223 * python/py-exetiedevent.c: New file.
10224 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10225 Move struct breakpoint_object from here...
10226 * python/python-internal.h: ... to here.
10227 * python/py-event.h: New file.
10228 * python/py-events.h: New file.
10229 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10230 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10231 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10232 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10233 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10234 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10235 Add build rules for all the above.
10236
9e0ac564
TT
102372011-02-04 Tom Tromey <tromey@redhat.com>
10238
10239 * dwarf2read.c (dwarf2_section_empty_p): New function.
10240 (dwarf2_read_section): Use dwarf2_section_empty_p.
10241 (dwarf2_section_size): New function.
10242 (dwarf2_get_section_info): Unconditionally read section.
10243 (dwarf2_read_index): Use dwarf2_section_empty_p.
10244 (partial_read_comp_unit_head): Use dwarf2_section_size.
10245 (dwarf2_symbol_mark_computed): Likewise.
10246
eee5b35e
DD
102472011-02-04 David Daney <ddaney@caviumnetworks.com>
10248
10249 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10250
385203ed
DD
102512011-02-04 David Daney <ddaney@caviumnetworks.com>
10252
10253 * mips-linux-tdep.c: Include xml-syscall.h.
10254 (mips_linux_get_syscall_number): New function.
10255 (mips_linux_init_abi): Add calls to
10256 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10257 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10258 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10259 * syscalls/mips-n32-linux.xml: New file.
10260 * syscalls/mips-n64-linux.xml: New file.
10261 * syscalls/mips-o32-linux.xml: New file.
10262
9277c30c
UW
102632011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10264
10265 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10266 Complain about inverted range entries.
10267 (dwarf2_record_block_ranges): Likewise.
10268
a3be7890
TJB
102692011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10270
10271 Fix some typos.
10272 * breakpoint.c (update_watchpoint): Fix name of the
10273 update_global_location_list function.
10274 (print_one_breakpoint): Fix typo.
10275 (_initialize_breakpoint): Remove extra space in hbreak help
10276 string.
10277 * breakpoint.h (struct bp_location) <length>: Fix field
10278 description.
10279
041274d8
PA
102802011-02-04 Pedro Alves <pedro@codesourcery.com>
10281
10282 * regcache.c (registers_changed_ptid): Don't explictly always
10283 clear `current_regcache'. Only clear current_thread_ptid and
10284 current_thread_arch when PTID matches. Only reinit the frame
10285 cache if PTID matches the current inferior_ptid. Move alloca(0)
10286 call to ...
10287 (registers_changed): ... here.
10288
c1c2ab58
UW
102892011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10290
10291 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10292 starts with __stack_chk_guard as stack guard symbol.
10293
9011945e
AB
102942011-02-03 Andrew Burgess <aburgess@broadcom.com>
10295
10296 * disasm.c (compare_lines): Handle the end of sequence markers
10297 within the line table to better support disassembling over
10298 compilation unit boundaries.
10299
e0634ccf
UW
103002011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10301
10302 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10303 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10304 implementation even if no symbols are available.
10305 (thumb_analyze_prologue): Update call to skip_prologue_function.
10306 (arm_analyze_prologue): Likewise.
10307
0e9e9abd
UW
103082011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10309
10310 * arm-tdep.c: Include "observer.h".
10311 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10312 (arm_exidx_data_key): New static variable.
10313 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10314 (struct arm_exidx_data): Likewise.
10315 (arm_exidx_data_free): New function.
10316 (arm_compare_exidx_entries): Likewise.
10317 (arm_obj_section_from_vma): Likewise.
10318 (arm_exidx_new_objfile): Likewise.
10319 (arm_find_exidx_entry): Likewise.
10320 (arm_exidx_fill_cache): Likewise.
10321 (arm_exidx_unwind_sniffer): Likewise.
10322 (arm_exidx_unwind): New global variable.
10323 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10324 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10325 observer. Register arm_exidx_data_key as objfile data.
10326
2e9e421f
UW
103272011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10328
10329 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10330 due to accessing uninitialized variable. Fix indentation.
10331
580688f3
PA
103322011-02-02 Pedro Alves <pedro@codesourcery.com>
10333
10334 * c-valprint.c (c_value_print): When doing virtual base pointer
10335 adjustment, create a new value with adjusted contents rather than
10336 changing the contents of the value being printed (and getting it
10337 wrong).
10338
3d2c1d41
PA
103392011-02-02 Pedro Alves <pedro@codesourcery.com>
10340
10341 * xml-support.c (xml_find_attribute): New.
10342 (xinclude_start_include): Use it.
10343 * xml-support.h (xml_find_attribute): Declare.
10344 * memory-map.c (memory_map_start_memory)
10345 (memory_map_start_property): Use xml_find_attribute.
10346 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10347 xml_find_attribute.
10348 * remote.c (start_thread): Use xml_find_attribute.
10349 * solib-target.c (library_list_start_segment)
10350 (library_list_start_section, library_list_start_library)
10351 (library_list_start_list): Use xml_find_attribute.
10352 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10353 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10354 (tdesc_start_field): Use xml_find_attribute.
10355
0af3e2db
UW
103562011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10357
10358 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10359 (BUILD_OCL_VTYPES): Update.
10360
c1039e3c
JB
103612011-02-02 Joel Brobecker <brobecker@adacore.com>
10362
10363 * configure.ac: Work around non-GNU sed limitation when computing
10364 python version number.
10365 * configure: Regenerate.
10366
600ea1be
JK
103672011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10368
10369 Fix debug printing of TYPE_INSTANCE.
10370 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10371 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10372
56c12414
JK
103732011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10374
10375 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10376 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10377 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10378 * ada-operator.inc: Rename the file to ...
10379 * ada-operator.def: ... here, wrap all the entries by macro OP.
10380 * expprint.c (op_name_standard): Remove all the entries. Include
10381 "std-operator.def" instead.
10382 * expression.h (enum exp_opcode): Include "std-operator.def" and
10383 "ada-operator.def". Move all the entries ...
10384 * std-operator.def: ... here, wrap all the entries by macro OP.
10385
c52b559d
PP
103862011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10387
10388 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10389 * breakpoint.c (remove_jit_event_breakpoints): New function.
10390 * jit.c (jit_descriptor_addr): Delete.
10391 (registering_code): Delete.
10392 (clear_int): Delete.
10393 (jit_inferior_data): New variable.
10394 (struct jit_inferior_data): New type.
10395 (get_jit_inferior_data): New function.
10396 (jit_inferior_data_cleanup): New function.
10397 (jit_read_descriptor): Adjust.
10398 (jit_register_code): Adjust.
10399 (jit_breakpoint_re_set_internal): New function; move code here ...
10400 (jit_inferior_init): ... from here.
10401 (jit_breakpoint_re_set): Adjust.
10402 (jit_reset_inferior_data_and_breakpoints): New function.
10403 (jit_inferior_created_observer): Adjust.
10404 (jit_inferior_exit_hook): Adjust.
10405 (jit_executable_changed_observer): New function.
10406 (jit_event_handler): Adjust.
10407 (_initialize_jit): Adjust.
10408
e839132d
MS
104092011-01-31 Michael Snyder <msnyder@vmware.com>
10410
10411 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10412 line.
10413
47a80e90
TT
104142011-01-31 Tom Tromey <tromey@redhat.com>
10415
10416 PR python/12216:
10417 * python/python.c (execute_gdb_command): Call
10418 prevent_dont_repeat.
10419 * top.c (suppress_dont_repeat): New global.
10420 (dont_repeat): Use it.
10421 (prevent_dont_repeat): New function.
10422 * command.h (prevent_dont_repeat): Declare.
10423
45a43567
TT
104242011-01-31 Tom Tromey <tromey@redhat.com>
10425
10426 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10427 * python/py-breakpoint.c (bppy_set_silent): Use
10428 breakpoint_set_silent.
10429 (bppy_set_thread): Use breakpoint_set_thread.
10430 (bppy_set_task): Use breakpoint_set_task.
10431 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10432 (breakpoint_set_task): Declare.
10433 (make_breakpoint_silent): Remove.
10434 * breakpoint.c (breakpoint_set_silent): New function.
10435 (breakpoint_set_thread): Likewise.
10436 (breakpoint_set_task): Likewise.
10437 (make_breakpoint_silent): Remove.
10438
09d682a4
TT
104392011-01-31 Tom Tromey <tromey@redhat.com>
10440
10441 * breakpoint.h (user_breakpoint_p): Declare.
10442 * breakpoint.c (user_breakpoint_p): New function.
10443 (breakpoint_1): Use it.
10444 (save_breakpoints): Likewise.
10445
9c4ea6c5
JB
104462011-01-31 Joel Brobecker <brobecker@adacore.com>
10447
10448 * configure.ac: Add handling of Python distribution on Windows.
10449 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10450 sysconfig variables are not defined, then do not use them.
10451 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10452 instead. On Windows, return all paths using forward-slashes
10453 rather than backslashes.
10454
ac534cba
JB
104552011-01-31 Joel Brobecker <brobecker@adacore.com>
10456
10457 * configure.ac: Remove fallback behavior for building
10458 against Python. Remove tweaking of Python include path.
10459 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10460 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10461 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10462 Always restore CPPFLAGS and LIBS after linking test.
10463 * configure: Regenerated.
10464 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10465 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10466 * python/python-internal.h: Adjust includes of Python .h files.
10467
c2f0d045
JB
104682011-01-31 Joel Brobecker <brobecker@adacore.com>
10469
10470 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10471 in error message.
10472
6b0c4c1f
JB
104732011-01-31 Joel Brobecker <brobecker@adacore.com>
10474
10475 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10476 value test.
10477
672c9795
YQ
104782011-01-31 Yao Qi <yao@codesourcery.com>
10479
10480 * arm-linux-nat.c: Update calls to regcache_register_status
10481 instead of regcache_valid_p.
10482 * aix-thread.c: Likewise.
10483 * i386gnu-nat.c: Likewise.
10484
80b23b6a
JK
104852011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10486
10487 Fix crash.
10488 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10489 touching TYPE_FIELD_ARTIFICIAL.
10490
4cd712bd
RE
104912011-01-28 Richard Earnshaw <rearnsha@arm.com>
10492
10493 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10494 Committers.
10495
ffd5ec24
PA
104962011-01-28 Pedro Alves <pedro@codesourcery.com>
10497
10498 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10499 selected, don't try iterating over the traceframe's blocks.
10500 (tfile_has_stack): If there's no traceframe selected, then there's
10501 no stack.
10502 (tfile_has_registers): If there's no traceframe selected, then
10503 there's no registers.
10504
e8c9e0a1
PA
105052011-01-28 Pedro Alves <pedro@codesourcery.com>
10506
10507 * target.c (memory_xfer_partial): No need to restore shadows if we
10508 haven't read anything.
10509
de15c4ab
PA
105102011-01-28 Pedro Alves <pedro@codesourcery.com>
10511
10512 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10513 and val_print_scalar_formatted.
10514
9f41c731
PA
105152011-01-27 Pedro Alves <pedro@codesourcery.com>
10516
10517 * tracepoint.c (tfile_read): New.
10518 (tfile_open): Use it.
10519 (tfile_get_traceframe_address): Use it.
10520 (tfile_trace_find): Use it.
10521 (walk_blocks_callback_func): New typedef.
10522 (match_blocktype): New function.
10523 (traceframe_walk_blocks): New function.
10524 (traceframe_find_block_type): New function.
10525 (tfile_fetch_registers, tfile_xfer_partial)
10526 (tfile_get_trace_state_variable_value): Use
10527 traceframe_find_block_type and tfile_read.
10528
cdefc55d
KB
105292011-01-26 Kevin Buettner <kevinb@redhat.com>
10530
10531 * remote-mips.c: Add internationalization mark ups. Remove
10532 trailing \n from already marked up strings.
10533
a81766d8
TT
105342011-01-26 Tom Tromey <tromey@redhat.com>
10535
10536 * python/py-prettyprint.c (print_string_repr): Clear
10537 'addressprint' option when calling val_print_string.
10538 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10539 option when calling val_print_string.
10540
74aedc46
TT
105412011-01-26 Tom Tromey <tromey@redhat.com>
10542
10543 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10544 GDB_PY_LL_ARG.
10545 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10546 macros.
10547 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10548 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10549 (gdb_py_long_as_ulongest): New defines.
10550 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10551 (gdb_py_int_as_long): Declare.
10552 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10553 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10554 (valpy_long): Add comment.
10555 * python/py-utils.c (get_addr_from_python): Use
10556 gdb_py_long_as_ulongest. Handle overflow properly.
10557 (gdb_py_object_from_longest): New function.
10558 (gdb_py_object_from_ulongest): Likewise.
10559 (gdb_py_int_as_long): Likewise.
10560 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10561 * python/py-symtab.c (salpy_get_pc): Use
10562 gdb_py_long_from_ulongest.
10563 (salpy_get_line): Use PyInt_FromLong.
10564 * python/py-param.c (set_parameter_value): Use
10565 gdb_py_int_as_long.
10566 * python/py-lazy-string.c (stpy_get_address): Use
10567 gdb_py_long_from_ulongest.
10568 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10569 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10570 * python/py-breakpoint.c (bppy_set_thread): Use
10571 gdb_py_int_as_long.
10572 (bppy_set_task): Likewise.
10573 (bppy_set_ignore_count): Likewise.
10574 (bppy_set_hit_count): Likewise.
10575 * python/py-block.c (blpy_get_start): Use
10576 gdb_py_object_from_ulongest.
10577 (blpy_get_end): Likewise.
10578 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10579
e4f6d2ec
TJB
105802011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10581
10582 PR/symtab 11766:
10583 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10584 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10585 equality test for objfile, initialize addr_low if needed.
10586
b30aa278
PA
105872011-01-25 Pedro Alves <pedro@codesourcery.com>
10588
10589 * tui/tui-regs.c (tui_register_format): Remove dead code.
10590
ab2188aa
PA
105912011-01-25 Pedro Alves <pedro@codesourcery.com>
10592
10593 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10594 instead of print_scalar_formatted.
10595 (print_scalar_formatted): Don't handle 's' format strings here,
10596 and add an assertion that we never see such format here.
10597 * valprint.h (val_print_scalar_formatted): Declare.
10598 * valprint.c (val_print_scalar_formatted): New.
10599 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10600 instead of print_scalar_formatted.
10601 * jv-valprint.c (java_val_print): Ditto.
10602 * p-valprint.c (pascal_val_print): Ditto.
10603 * ada-valprint.c (ada_val_print_1): Ditto.
10604 * f-valprint.c (f_val_print): Ditto.
10605 * infcmd.c (registers_info): Ditto.
10606 * m2-valprint.c (m2_val_print): Ditto.
10607
66d61a4c
PA
106082011-01-25 Pedro Alves <pedro@codesourcery.com>
10609
10610 * m2-valprint.c (print_unbounded_array): Pass
10611 value_contents_for_printing rather than value_contents, to
10612 m2_print_array_contents. Also pass in the value.
10613
831adc1f
JK
106142011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10615
10616 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10617 (save_gdb_index_command): Switch to .gdb_index version 4.
10618
20622269
PA
106192011-01-25 Pedro Alves <pedro@codesourcery.com>
10620
10621 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10622 than frame_register, and always pass a valid value to val_print.
10623
585fdaa1
PA
106242011-01-25 Pedro Alves <pedro@codesourcery.com>
10625
10626 Centralize printing "<optimized out>".
10627
10628 * valprint.h (val_print_optimized_out): Declare.
10629 * cp-valprint.c (cp_print_value_fields): Use
10630 val_print_optimized_out.
10631 * jv-valprint.c (java_print_value_fields): Ditto.
10632 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10633 * printcmd.c (print_formatted): Ditto.
10634 * valprint.c (valprint_check_validity): Ditto.
10635 (value_check_printable): Ditto.
10636 (val_print_optimized_out): New.
10637
29ec5263
PA
106382011-01-25 Pedro Alves <pedro@codesourcery.com>
10639
10640 * infcmd.c (default_print_registers_info): Allocate values so to
10641 never pass a NULL value to val_print.
10642
de4127a3
PA
106432011-01-25 Pedro Alves <pedro@codesourcery.com>
10644
10645 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10646 boolean. Make sure to always pass a value that matches the
10647 contents buffer to callees. Preserve `address' for following
10648 iterations.
10649 * value.c (value_contents_for_printing_const): New.
10650 (value_address): Constify value argument.
10651 * value.h (value_contents_for_printing_const): Declare.
10652 (value_address): Constify value argument.
10653
ee99023e
PA
106542011-01-25 Pedro Alves <pedro@codesourcery.com>
10655
10656 * regcache.c (struct regcache_descr): Rename
10657 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10658 and sizeof_cooked_register_valid_p to
10659 sizeof_cooked_register_status.
10660 (init_regcache_descr): Adjust.
10661 (struct regcache): Rename register_valid_p field to
10662 register_status.
10663 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10664 (do_cooked_read): Adjust.
10665 (regcache_valid_p): Rename to ...
10666 (regcache_register_status): ... this. Adjust.
10667 (regcache_invalidate): Adjust.
10668 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10669 Adjust.
10670 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10671 as unavailable, not valid.
10672 (regcache_dump): Adjust.
10673 * regcache.h (enum register_status): New.
10674 (regcache_register_status): Declare.
10675 (regcache_invalidate): Delete declaration.
10676 * corelow.c (get_core_registers): Adjust.
10677 * tracepoint.c (tfile_fetch_registers): Adjust.
10678 * trad-frame.c (REG_VALUE): Rename to ...
10679 (TF_REG_VALUE): ... this.
10680 (REG_UNKNOWN): Rename to ...
10681 (TF_REG_UNKNOWN): ... this.
10682 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10683 * mi/mi-main.c (register_changed_p): Adjust.
10684
99e42fd8
PA
106852011-01-25 Pedro Alves <pedro@codesourcery.com>
10686
10687 * regcache.c (struct regcache_descr): Remove outdated comment.
10688 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10689 overallocate hack.
10690 (regcache_xmalloc): Rename to ...
10691 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10692 Allocate the regcache type accordingly.
10693 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10694 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10695 cooked registers, not raw.
10696 (regcache_dup_no_passthrough): Delete.
10697 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10698 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10699 mention obsolete write_register_bytes.
10700 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10701
f7605bc2
PA
107022011-01-25 Pedro Alves <pedro@codesourcery.com>
10703
10704 Stop remote_read_bytes from handling partial reads itself.
10705
10706 * remote-fileio.c: Include target.h.
10707 (remote_fileio_write_bytes): Delete.
10708 (remote_fileio_func_open, remote_fileio_func_write)
10709 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10710 target_read_memory.
10711 (remote_fileio_func_stat): Use target_read_memory and
10712 target_write_memory.
10713 (remote_fileio_func_gettimeofday): Use target_write_memory.
10714 (remote_fileio_func_system): Use target_read_memory.
10715 * remote.c (remote_write_bytes): Make it static.
10716 (remote_read_bytes): Don't handle partial reads here.
10717 * remote.h (remote_read_bytes): Delete declaration.
10718
efc0eabd
PA
107192011-01-25 Pedro Alves <pedro@codesourcery.com>
10720
10721 Simplify XML parsing a bit.
10722
10723 * xml-support.h (gdb_xml_parse_quick): Declare.
10724 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10725 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10726 parameter.
10727 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10728 gdb_xml_create_parser_and_cleanup_1.
10729 (gdb_xml_parse_quick): New.
10730 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10731 * osdata.c (osdata_parse): Ditto.
10732 * remote.c (remote_threads_info): Ditto.
10733 * solib-target.c (solib_target_parse_libraries): Ditto.
10734 * xml-syscall.c (syscall_parse_xml): Ditto.
10735 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10736
314d366a
KB
107372011-01-24 Kevin Buettner <kevinb@redhat.com>
10738
10739 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10740 with remote-mips.o added to gdb_target_obs.
10741 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10742
a491d753
PA
107432011-01-24 Pedro Alves <pedro@codesourcery.com>
10744
10745 * ada-valprint.c (val_print_packed_array_elements): Pass the
10746 correct struct value to val_print.
10747 (ada_val_print_1): Ditto.
10748
490f124f
PA
107492011-01-24 Pedro Alves <pedro@codesourcery.com>
10750
10751 Don't lose embedded_offset in printing routines throughout.
10752
10753 * valprint.h (val_print_array_elements): Change prototype.
10754 * valprint.c (val_print_array_elements): Add `embedded_offset'
10755 parameter, and adjust to pass it down to val_print, while passing
10756 `valaddr' or `address' unmodified. Take embedded_offset into
10757 account when checking repetitions.
10758 * c-valprint.c (c_val_print): Pass embedded_offset to
10759 val_print_array_elements instead of adjusting `valaddr' and
10760 `address'.
10761 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10762 embedded_offset to val_print_array_elements instead of adjusting
10763 `valaddr'.
10764 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10765 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10766 val_print_array_elements and pascal_object_print_value_fields
10767 instead of adjusting `valaddr'.
10768 (pascal_object_print_value_fields): Add `offset' parameter, and
10769 adjust to use it.
10770 (pascal_object_print_value): Add `offset' parameter, and adjust to
10771 use it.
10772 (pascal_object_print_static_field): Use
10773 value_contents_for_printing/value_embedded_offset, rather than
10774 value_contents.
10775 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10776 parameter, and adjust to use it. Use
10777 value_contents_for_printing/value_embedded_offset, rather than
10778 value_contents.
10779 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10780 (ada_val_print_array): Add `offset' parameter, and adjust to use
10781 it.
10782 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10783 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10784 Instead work with offsets. Use
10785 value_contents_for_printing/value_embedded_offset, rather than
10786 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10787 and use value_from_pointer to extract a target pointer, rather
10788 than value_from_longest.
10789 (print_variant_part): Add `offset' parameter. Replace
10790 `outer_valaddr' parameter by a new `outer_offset' parameter.
10791 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10792 (ada_value_print): Use
10793 value_contents_for_printing/value_embedded_offset, rather than
10794 value_contents.
10795 (print_record): Add `offset' parameter, and adjust to pass it
10796 down.
10797 (print_field_values): Add `offset' parameter. Replace
10798 `outer_valaddr' parameter by a new `outer_offset' parameter.
10799 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10800 Use value_contents_for_printing/value_embedded_offset, rather than
10801 value_contents.
10802 * d-valprint.c (dynamic_array_type): Use
10803 value_contents_for_printing/value_embedded_offset, rather than
10804 value_contents.
10805 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10806 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10807 (java_print_value_fields): Take `offset' into account. Don't
10808 re-adjust `valaddr'. Instead pass down adjusted offsets.
10809 (java_val_print): Take `embedded_offset' into account. Pass it to
10810 java_print_value_fields.
10811 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10812 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10813 down adjusted offsets.
10814 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10815 (f_val_print): Take `embedded_offset' into account.
10816
7bfc9434
JB
108172011-01-21 Joel Brobecker <brobecker@adacore.com>
10818
10819 * inflow.c: Include "gdbcmd.h".
10820 (interactive_mode): New static global, moved here from top.c.
10821 (show_interactive_mode): New function, moved here from top.c.
10822 use gdb_has_a_terminal instead of input_from_terminal_p to
10823 determine the current mode.
10824 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10825 setting.
10826 (_initialize_inflow): Add the "set/show interactive-mode"
10827 commands. Moved here from top.c, after having adjusted slightly
10828 the help text.
10829 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10830 to inflow.c.
10831 (input_from_terminal_p): Remove handling of "interactive-mode"
10832 setting, moved to infow.c.
10833 (init_main): Remove creation of the "set/show interactive-mode"
10834 commands, moved to inflow.c.
10835
44603653
JB
108362011-01-19 Joel Brobecker <brobecker@adacore.com>
10837
10838 * NEWS: Add entry for native ia64-hpux support.
10839
4694da01
TT
108402011-01-19 Tom Tromey <tromey@redhat.com>
10841
10842 PR mi/8618:
10843 * thread.c (free_thread): Free 'name'.
10844 (print_thread_info): Emit thread name. Change CLI output.
10845 (thread_name_command): New function.
10846 (do_captured_thread_select): Emit newline.
10847 (_initialize_thread): Register 'thread name' command.
10848 * target.h (struct target_ops) <to_thread_name>: New field.
10849 (target_thread_name): New macro.
10850 * target.c (update_current_target): Handle to_thread_name.
10851 * python/py-infthread.c (thpy_get_name): New function.
10852 (thpy_set_name): Likewise.
10853 (thread_object_getset): Add "name".
10854 * linux-nat.c (linux_nat_thread_name): New function.
10855 (linux_nat_add_target): Set to_thread_name.
10856 * gdbthread.h (struct thread_info) <name>: New field.
10857
10d44370
JB
108582011-01-18 Joel Brobecker <brobecker@adacore.com>
10859
10860 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10861 (ada_val_print_1): Likewise.
10862
e3acb115
JB
108632011-01-18 Joel Brobecker <brobecker@adacore.com>
10864
10865 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10866 upper limit address is not greater than the function end address
10867 when the upper limit could not be computed using the debugging
10868 info.
10869
dc92e161
TT
108702011-01-17 Tom Tromey <tromey@redhat.com>
10871
10872 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10873 get_regcomp_error.
10874 * utils.c: Include gdb_regex.h.
10875 (do_regfree_cleanup): New function.
10876 (make_regfree_cleanup): Likewise.
10877 (get_regcomp_error): Likewise.
10878 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10879
f55af66d
TT
108802011-01-17 Tom Tromey <tromey@redhat.com>
10881
10882 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10883 re_compile_fastmap.
10884
a5a44b53
PM
108852011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10886
10887 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10888 for internal variables.
10889 (last_was_structop): New static variable.
10890 (COMPLETE): New token.
10891 (field_exp): New rule to group all '.' suffix handling.
10892 Add mark_struct_expression calls when approriate to be able
10893 to correctly find fields for completion.
10894 (yylex): Adapt to handle field completion and set INTVAR when
10895 required.
10896
2c291032
YQ
108972011-01-14 Yao Qi <yao@codesourcery.com>
10898
10899 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10900 save_reggroup, restore_reggroup and all_reggroup.
10901
447b483c
JB
109022011-01-14 Joel Brobecker <brobecker@adacore.com>
10903
10904 * ada-valprint. (ada_printchar): Use the correct type length
10905 in call to ada_emit_char.
10906 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10907
7b64a93b
PM
109082011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10909
10910 * solib-som.h (hpux_major_release): Declare variable here.
10911 * solib-som.c: Remove <sys/utsname.h> header.
10912 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10913 (hpux_major_release): Make global, change default value to
10914 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10915 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10916 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10917 Add "solib-som.h" header.
10918 (set_hpux_major_release): New function.
10919 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10920
4e18c053
MF
109212011-01-14 Mike Frysinger <vapier@gentoo.org>
10922
10923 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10924
a9df6b22
JB
109252011-01-14 Joel Brobecker <brobecker@adacore.com>
10926
10927 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10928 new-line at end of warning message.
10929 (ia64_hpux_store_register): Remove trailing new-line at end of
10930 error message.
10931 * ia64-hpux-tdep.c: Rephrase comment.
10932 * solib-ia64-hpux.c (struct dld_info): Change type of field
10933 dld_flags from "long long" to ULONGEST.
10934
ecb956dd
PA
109352011-01-14 Pedro Alves <pedro@codesourcery.com>
10936
10937 * target.h (deprecated_child_ops): Delete declaration.
10938 * target.c (deprecated_child_ops): Delete definition.
10939
76adfcae
PA
109402011-01-14 Pedro Alves <pedro@codesourcery.com>
10941
10942 * Makefile.in (hpux-thread.o): Delete rule.
10943 * configure.ac: Don't check for HPUX DCE threads support.
10944 * configure, config.in: Regenerate.
10945 * hppa-hpux-nat.c (child_suppress_run): Delete.
10946 (hppa_hpux_child_can_run): Delete.
10947 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10948 * hpux-thread.c: Delete.
10949
042e866e
JB
109502011-01-13 Joel Brobecker <brobecker@adacore.com>
10951
10952 * hpux-thread.c (hpux_pid_to_str): Delete.
10953
4ffa5a33
JB
109542011-01-13 Joel Brobecker <brobecker@adacore.com>
10955
10956 * ada-valprint.c (ada_emit_char): Remove strange code.
10957 Check that c is <= UCHAR_MAX before passing it to isascii.
10958 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10959
de8fa76c
JB
109602011-01-13 Joel Brobecker <brobecker@adacore.com>
10961
10962 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10963 to the case where instream is stdin.
10964
c4de7027
JB
109652011-01-13 Joel Brobecker <brobecker@adacore.com>
10966
10967 * ia64-tdep.h (struct regcache): Forward declare.
10968 (struct ia64_infcall_ops): New struct type.
10969 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10970 and "infcall_ops".
10971 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10972 Renames ia64_find_global_pointer.
10973 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10974 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10975 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10976 methods.
10977 (ia64_infcall_ops): New static global constant.
10978 (ia64_gdbarch_init): Set tdep->infcall_ops.
10979 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10980 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10981 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10982 (ia64_hpux_dummy_code): New static global constant.
10983 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10984 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10985 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10986 New function.
10987 (ia64_hpux_infcall_ops): New static global constant.
10988 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10989 for inferior function calls to work properly on ia64-hpux.
10990
77ca787b
JB
109912011-01-13 Joel Brobecker <brobecker@adacore.com>
10992
10993 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10994 * ia64-tdep.h (struct frame_info): forward declaration.
10995 (struct gdbarch_tdep): Add field size_of_register_frame.
10996 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10997 to determine the size of the register frame.
10998 (ia64_size_of_register_frame): New function.
10999 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11000 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11001 (IA64_HPUX_UREG_REASON): New macro.
11002 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11003 New functions.
11004 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11005 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11006 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11007 objects.
11008
92c9a463
JB
110092011-01-13 Joel Brobecker <brobecker@adacore.com>
11010
11011 Add support for ia64-hpux.
11012 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11013 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11014
11015 * configure.host: Add handling for ia64-hpux hosts. Add associated
11016 floatformats.
11017 * configure.tgt: Add handling for ia64-hpux targets.
11018 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11019 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11020 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11021
f688d93f
JB
110222011-01-13 Joel Brobecker <brobecker@adacore.com>
11023
11024 [ttrace] Compute thread list immediately after attach.
11025 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11026 New subprogram.
11027 (inf_ttrace_attach): Use it.
11028
1b89e62f
JB
110292011-01-13 Joel Brobecker <brobecker@adacore.com>
11030
11031 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11032 if we could not determine the frame's function address. Instead,
11033 use the frame's PC, and then continue.
11034
3e5e6e2a
JB
110352011-01-13 Joel Brobecker <brobecker@adacore.com>
11036
11037 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11038 not already defined.
11039
825d6d8a
JB
110402011-01-13 Joel Brobecker <brobecker@adacore.com>
11041
11042 * ia64-tdep.c (ia64_struct_type_p): New function.
11043 (ia64_extract_return_value): Handle integral values that are
11044 less than 8 bytes long.
11045 (ia64_push_dummy_call): Likewise.
11046
7458e667
JB
110472011-01-13 Joel Brobecker <brobecker@adacore.com>
11048
11049 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11050 floatformat_ia64_ext.
11051 (floatformat_ia64_ext_big): New static const.
11052 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11053
1b05df00
TT
110542011-01-12 Tom Tromey <tromey@redhat.com>
11055
11056 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11057 messages.
11058 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11059 (mi_cmd_thread_list_ids): Likewise.
11060 (mi_cmd_data_list_changed_registers): Likewise.
11061 (mi_cmd_data_list_register_values): Likewise.
11062 (mi_cmd_data_write_register_values): Likewise.
11063 (mi_cmd_data_evaluate_expression): Likewise.
11064 (mi_cmd_data_read_memory): Likewise.
11065 (mi_cmd_data_read_memory_bytes): Likewise.
11066 (mi_cmd_data_write_memory): Likewise.
11067 (mi_cmd_enable_timings): Likewise.
11068 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11069 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11070 (mi_cmd_var_delete): Likewise.
11071 (mi_cmd_var_set_format): Likewise.
11072 (mi_cmd_var_show_format): Likewise.
11073 (mi_cmd_var_info_num_children): Likewise.
11074 (mi_cmd_var_list_children): Likewise.
11075 (mi_cmd_var_info_type): Likewise.
11076 (mi_cmd_var_info_expression): Likewise.
11077 (mi_cmd_var_show_attributes): Likewise.
11078 (mi_cmd_var_assign): Likewise.
11079 (mi_cmd_var_update): Likewise.
11080 (mi_cmd_enable_pretty_printing): Likewise.
11081 (mi_cmd_var_set_update_range): Likewise.
11082 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11083 messages.
11084 (mi_cmd_target_file_put): Likewise.
11085 (mi_cmd_target_file_delete): Likewise.
11086 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11087 messages.
11088 (mi_cmd_stack_info_depth): Likewise.
11089 (mi_cmd_stack_list_locals): Likewise.
11090 (mi_cmd_stack_list_args): Likewise.
11091 (mi_cmd_stack_select_frame): Likewise.
11092 (mi_cmd_stack_select_frame): Likewise.
11093 (mi_cmd_stack_info_frame): Likewise.
11094 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11095 messages.
11096 (mi_cmd_file_list_exec_source_files): Likewise.
11097 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11098 (mi_cmd_env_cd): Likewise.
11099 (mi_cmd_env_path): Likewise.
11100 (mi_cmd_env_dir): Likewise.
11101 (mi_cmd_inferior_tty_show): Likewise.
11102 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11103 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11104 (mi_cmd_break_watch): Likewise.
11105
ad422571
TJB
111062011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11107
11108 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11109 (ppc_linux_insert_hw_breakpoint): Likewise.
11110 (ppc_linux_remove_hw_breakpoint): Likewise.
11111 (ppc_linux_insert_watchpoint): Likewise.
11112
c2ff108b
JK
111132011-01-12 Andrew Burgess <aburgess@broadcom.com>
11114 Jan Kratochvil <jan.kratochvil@redhat.com>
11115
11116 PR fortran/11104 and DWARF unbound arrays detection.
11117 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11118 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11119 unspecified upper bound.
11120 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11121 variables array_size_array, tmp_type and offset_item. New variable
11122 array. Remove call to f77_get_upperbound. New variables array_type
11123 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11124 the final call to deprecated_set_value_type.
11125
41e8491f
JK
111262011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 Make value allocations more lazy.
11129 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11130 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11131 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11132 instead of allocate_value and set_value_lazy.
11133 * findvar.c (value_of_register_lazy): Likewise.
11134 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11135 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11136 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11137 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11138 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11139 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11140 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11141 the end, remove set_value_lazy there.
11142 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11143 instead of allocate_value and set_value_lazy when possible.
11144 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11145 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11146 of allocate_value and set_value_lazy.
11147 (value_from_contents_and_address): Use allocate_value_lazy instead of
11148 allocate_value and set_value_lazy when possible.
11149
b716877b
AB
111502011-01-12 Andrew Burgess <aburgess@broadcom.com>
11151
11152 * disasm.c (dump_insns): Support dumping opcodes for MI.
11153 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11154 dumping of instruction opcodes.
11155
d5ae309f
JB
111562011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11157
11158 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11159 appropiately.
11160
98871305
TT
111612011-01-11 Tom Tromey <tromey@redhat.com>
11162
11163 * thread.c (do_captured_thread_select): Emit newline before
11164 printing frame.
11165
c378eb4e
MS
111662011-01-11 Michael Snyder <msnyder@vmware.com>
11167
11168 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11169 * score-tdep.c: Ditto.
11170 * score-tdep.h: Ditto.
11171 * ser-base.c: Ditto.
11172 * ser-go32.c: Ditto.
11173 * serial.c: Ditto.
11174 * serial.h: Ditto.
11175 * ser-mingw.c: Ditto.
11176 * ser-pipe.c: Ditto.
11177 * ser-tcp.c: Ditto.
11178 * ser-unix.c: Ditto.
11179 * sh64-tdep.c: Ditto.
11180 * shnbsd-nat.c: Ditto.
11181 * sh-tdep.c: Ditto.
11182 * sh-tdep.h: Ditto.
11183 * solib.c: Ditto.
11184 * solib-darwin.c: Ditto.
11185 * solib-frv.c: Ditto.
11186 * solib.h: Ditto.
11187 * solib-irix.c: Ditto.
11188 * solib-osf.c: Ditto.
11189 * solib-pa64.c: Ditto.
11190 * solib-som.c: Ditto.
11191 * solib-spu.c: Ditto.
11192 * solib-sunos.c: Ditto.
11193 * solib-svr4.c: Ditto.
11194 * solist.h: Ditto.
11195 * sol-thread.c: Ditto.
11196 * somread.c: Ditto.
11197 * source.c: Ditto.
11198 * source.h: Ditto.
11199 * sparc64-linux-tdep.c: Ditto.
11200 * sparc64-tdep.c: Ditto.
11201 * sparc-linux-nat.c: Ditto.
11202 * sparc-linux-tdep.c: Ditto.
11203 * sparc-sol2-nat.c: Ditto.
11204 * sparc-sol2-tdep.c: Ditto.
11205 * sparc-tdep.c: Ditto.
11206 * sparc-tdep.h: Ditto.
11207 * spu-tdep.c: Ditto.
11208 * stabsread.c: Ditto.
11209 * stabsread.h: Ditto.
11210 * stack.c: Ditto.
11211 * symfile.c: Ditto.
11212 * symfile.h: Ditto.
11213 * symmisc.c: Ditto.
11214 * symtab.c: Ditto.
11215 * symtab.h: Ditto.
11216 * target.c: Ditto.
11217 * target-descriptions.c: Ditto.
11218 * target-descriptions.h: Ditto.
11219 * target.h: Ditto.
11220 * target-memory.c: Ditto.
11221 * terminal.h: Ditto.
11222 * thread.c: Ditto.
11223 * top.c: Ditto.
11224 * tracepoint.c: Ditto.
11225 * tracepoint.h: Ditto.
11226 * trad-frame.h: Ditto.
11227 * typeprint.c: Ditto.
11228
581e13c1
MS
112292011-01-11 Michael Snyder <msnyder@vmware.com>
11230
11231 * ui-file.c: Comment cleanup, mostly periods and spaces.
11232 * ui-file.h: Ditto.
11233 * ui-out.c: Ditto.
11234 * ui-out.h: Ditto.
11235 * utils.c: Ditto.
11236 * v850-tdep.c: Ditto.
11237 * valarith.c: Ditto.
11238 * valops.c: Ditto.
11239 * valprint.c: Ditto.
11240 * valprint.h: Ditto.
11241 * value.c: Ditto.
11242 * value.h: Ditto.
11243 * varobj.c: Ditto.
11244 * varobj.h: Ditto.
11245 * vax-tdep.c: Ditto.
11246 * vec.c: Ditto.
11247 * vec.h: Ditto.
11248 * version.h: Ditto.
11249 * windows-nat.c: Ditto.
11250 * windows-tdep.c: Ditto.
11251 * xcoffread.c: Ditto.
11252 * xcoffsolib.c: Ditto.
11253 * xml-support.c: Ditto.
11254 * xstormy16-tdep.c: Ditto.
11255 * xtensa-tdep.c: Ditto.
11256 * xtensa-tdep.h: Ditto.
11257
90e4670f
TJB
112582011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11259
11260 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11261 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11262
e09342b5
TJB
112632011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11264 Thiago Jung Bauermann <bauerman@br.ibm.com>
11265
11266 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11267 * breakpoint.h
e09342b5
TJB
11268 (struct breakpoint_ops) <resources_needed>: New method.
11269 Initialize to NULL in all existing breakpoint_ops instances.
11270 (struct breakpoint) <exact>: New field.
11271 (target_exact_watchpoints): Declare external global.
11272 * breakpoint.c (target_exact_watchpoints): New global flag.
11273 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11274 b->enable_state to bp_enabled before calling
11275 hw_watchpoint_used_count.
11276 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11277 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11278 if available.
11279 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11280 if the watchpoint is exact.
11281 (resources_needed_watchpoint): New function.
11282 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11283 (watch_command_1): Set b->exact if the user asked for an exact
11284 watchpoint and one can be set.
11285 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11286 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11287 the user asks for an exact watchpoint and one can be set. Return
11288 number of needed debug registers to watch the expression.
11289 * gdbtypes.c (is_scalar_type): New function, based on
11290 valprint.c:scalar_type_p.
11291 (is_scalar_type_recursive): New function.
11292 * gdbtypes.h (is_scalar_type_recursive): Declare.
11293 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11294 handle regions when ranged watchpoints are available.
11295 (create_watchpoint_request): New function.
11296 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11297 create_watchpoint_request.
11298 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11299 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11300 `set powerpc' and `show powerpc' commands.
11301 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11302 Mention documentation comment in the target macro.
11303 (target_region_ok_for_hw_watchpoint): Document return value.
11304
9fa40276
TJB
113052011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11306
11307 * breakpoint.c (update_watchpoint): Decide on using a software or
11308 hardware watchpoint after the bp_locations are created.
11309
77b06cd7
TJB
113102010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11311
11312 Convert hardware watchpoints to use breakpoint_ops.
11313 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11314 <insert_location>: ... this. Return int instead of void.
11315 Accept pointer to struct bp_location instead of pointer to
11316 struct breakpoint. Adapt all implementations.
f2eb0bc8 11317 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11318 <remove_location>: ... this. Accept pointer to struct bp_location
11319 instead of pointer to struct breakpoint. Adapt all implementations.
11320 * breakpoint.c (insert_catchpoint): Delete function.
11321 (insert_bp_location): Call the watchpoint or catchpoint's
11322 breakpoint_ops.insert method.
11323 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11324 breakpoint_ops.remove method.
11325 (insert_watchpoint, remove_watchpoint): New functions.
11326 (watchpoint_breakpoint_ops): New structure.
11327 (watch_command_1): Initialize the OPS field.
11328 * inf-child.c (inf_child_insert_fork_catchpoint)
11329 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11330 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11331 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11332 Delete functions.
11333 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11334 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11335 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11336 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11337 * target.c (update_current_target): Change default implementation of
11338 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11339 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11340 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11341 to_set_syscall_catchpoint to return_one.
11342 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11343 (debug_to_insert_exec_catchpoint): Report return value.
11344 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11345 (to_insert_exec_catchpoint): Change declaration to return int instead
11346 of void.
11347
9b20d036
MS
113482011-01-11 Michael Snyder <msnyder@vmware.com>
11349
11350 * arm-tdep.c: Internationalization.
11351 * c-lang.c: Ditto.
11352 * charset.c: Ditto.
11353 * fork-child.c: Ditto.
11354 * nto-procfs.c: Ditto.
11355 * ppc-sysv-tdep.c: Ditto.
11356 * procfs.c: Ditto.
11357 * remote-mips.c: Ditto.
11358 * remote.c: Ditto.
11359 * rs6000-nat.c: Ditto.
11360 * rs6000-tdep.c: Ditto.
11361 * target.c: Ditto.
11362 * valops.c: Ditto.
11363 * value.c: Ditto.
11364 * xml-support.c: Ditto.
11365 * mi/mi-cmd-break.c: Ditto.
11366 * mi/mi-cmd-var.c: Ditto.
11367 * mi/mi-interp.c: Ditto.
11368 * mi/mi-main.c: Ditto.
11369
dae477fe
AB
113702011-01-11 Andrew Burgess <aburgess@broadcom.com>
11371
11372 * remote-sim.c (gdbsim_store_register): Update API to
11373 sim_store_register to check more error conditions.
11374
0df8b418
MS
113752011-01-10 Michael Snyder <msnyder@vmware.com>
11376
11377 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11378 * nto-tdep.c: Ditto.
11379 * nto-tdep.h: Ditto.
11380 * objc-exp.y: Ditto.
11381 * objc-lang.c: Ditto.
11382 * objfiles.c: Ditto.
11383 * objfiles.h: Ditto.
11384 * observer.c: Ditto.
11385 * opencl-lang.c: Ditto.
11386 * osabi.c: Ditto.
11387 * parse.c: Ditto.
11388 * parser-defs.h: Ditto.
11389 * p-exp.y: Ditto.
11390 * p-lang.c: Ditto.
11391 * posix-hdep.c: Ditto.
11392 * ppcbug-rom.c: Ditto.
11393 * ppc-linux-nat.c: Ditto.
11394 * ppc-linux-tdep.c: Ditto.
11395 * ppc-linux-tdep.h: Ditto.
11396 * ppcnbsd-tdep.c: Ditto.
11397 * ppcobsd-tdep.c: Ditto.
11398 * ppcobsd-tdep.h: Ditto.
11399 * ppc-sysv-tdep.c: Ditto.
11400 * ppc-tdep.h: Ditto.
11401 * printcmd.c: Ditto.
11402 * proc-abi.c: Ditto.
11403 * proc-flags.c: Ditto.
11404 * procfs.c: Ditto.
11405 * proc-utils.h: Ditto.
11406 * progspace.h: Ditto.
11407 * prologue-value.c: Ditto.
11408 * prologue-value.h: Ditto.
11409 * psympriv.h: Ditto.
11410 * psymtab.c: Ditto.
11411 * p-typeprint.c: Ditto.
11412 * p-valprint.c: Ditto.
11413 * ravenscar-sparc-thread.c: Ditto.
11414 * ravenscar-thread.c: Ditto.
11415 * ravenscar-thread.h: Ditto.
11416 * record.c: Ditto.
11417 * regcache.c: Ditto.
11418 * regcache.h: Ditto.
11419 * remote.c: Ditto.
11420 * remote-fileio.c: Ditto.
11421 * remote-fileio.h: Ditto.
11422 * remote.h: Ditto.
11423 * remote-m32r-sdi.c: Ditto.
11424 * remote-mips.c: Ditto.
11425 * remote-sim.c: Ditto.
11426 * rs6000-aix-tdep.c: Ditto.
11427 * rs6000-nat.c: Ditto.
11428 * rs6000-tdep.c: Ditto.
11429
0d7a18f7
MS
114302011-01-10 Michael Snyder <msnyder@vmware.com>
11431
11432 * charset.c (validate): Internationalization.
11433 * coffread.c (read_one_sym): Ditto.
11434 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11435 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11436 * inflow.c (new_tty): Ditto.
11437 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11438 * m32c-tdep.c (m32c_return_value): Ditto.
11439 * mep-tdep.c (mep_store_return_value): Ditto.
11440 * score-tdep.c (score7_fetch_insn): Ditto.
11441 * ser-mingw.c (pipe_windows_open): Ditto.
11442 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11443 * spu-tdep.c (spu_register_type): Ditto.
11444 * tracepoint.c (trace_find_command): Ditto.
11445 * valarith.c (value_pos): Ditto.
11446
9a153e0b
JB
114472011-01-10 Joel Brobecker <brobecker@adacore.com>
11448
11449 * ada-valprint.c (printstr): Minor comment reformatting.
11450
35ecd2d6
MS
114512011-01-08 Michael Snyder <msnyder@vmware.com>
11452
11453 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11454 markup.
11455
1777feb0
MS
114562011-01-08 Michael Snyder <msnyder@vmware.com>
11457
11458 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11459 * hppa-hpux-tdep.c: Ditto.
11460 * hppa-linux-nat.c: Ditto.
11461 * hppa-linux-tdep.c: Ditto.
11462 * hppanbsd-tdep.c: Ditto.
11463 * hppa-tdep.c: Ditto.
11464 * hppa-tdep.h: Ditto.
11465 * hpux-thread.c: Ditto.
11466 * i386-cygwin-tdep.c: Ditto.
11467 * i386-darwin-nat.c: Ditto.
11468 * i386gnu-nat.c: Ditto.
11469 * i386-linux-nat.c: Ditto.
11470 * i386-linux-tdep.c: Ditto.
11471 * i386-nat.c: Ditto.
11472 * i386-nat.h: Ditto.
11473 * i386nbsd-tdep.c: Ditto.
11474 * i386-sol2-nat.c: Ditto.
11475 * i386-stub.c: Ditto.
11476 * i386-tdep.c: Ditto.
11477 * i386-tdep.h: Ditto.
11478 * i387-tdep.c: Ditto.
11479 * ia64-linux-nat.c: Ditto.
11480 * ia64-linux-tdep.c: Ditto.
11481 * ia64-tdep.c: Ditto.
11482 * infcall.c: Ditto.
11483 * infcall.h: Ditto.
11484 * infcmd.c: Ditto.
11485 * inferior.c: Ditto.
11486 * inferior.h: Ditto.
11487 * infloop.c: Ditto.
11488 * inflow.c: Ditto.
11489 * infrun.c: Ditto.
11490 * interps.c: Ditto.
11491 * interps.h: Ditto.
11492 * iq2000-tdep.c: Ditto.
11493 * irix5-nat.c: Ditto.
11494 * jit.c: Ditto.
11495 * jit.h: Ditto.
11496 * jv-exp.y: Ditto.
11497 * jv-lang.c: Ditto.
11498 * jv-lang.h: Ditto.
11499 * jv-typeprint.c: Ditto.
11500 * jv-valprint.c: Ditto.
11501 * language.c: Ditto.
11502 * language.h: Ditto.
11503 * linespec.c: Ditto.
11504 * linux-fork.c: Ditto.
11505 * linux-nat.c: Ditto.
11506 * linux-thread-db.c: Ditto.
11507 * lm32-tdep.c: Ditto.
11508
025bb325
MS
115092011-01-08 Michael Snyder <msnyder@vmware.com>
11510
11511 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11512 * m2-lang.c: Ditto.
11513 * m2-typeprint.c: Ditto.
11514 * m2-valprint.c: Ditto.
11515 * m32c-tdep.c: Ditto.
11516 * m32r-linux-nat.c: Ditto.
11517 * m32r-rom.c: Ditto.
11518 * m32r-tdep.c: Ditto.
11519 * m32r-tdep.h: Ditto.
11520 * m68hc11-tdep.c: Ditto.
11521 * m58klinux-nat.c: Ditto.
11522 * m68k-tdep.c: Ditto.
11523 * m88k-tdep.c: Ditto.
11524 * m88k-tdep.h: Ditto.
11525 * machoread.c: Ditto.
11526 * macrocmd.c: Ditto.
11527 * macroexp.c: Ditto.
11528 * macrotab.c: Ditto.
11529 * main.c: Ditto.
11530 * maint.c: Ditto.
11531 * mdebugread.c: Ditto.
11532 * mdebugread.h: Ditto.
11533 * memattr.c: Ditto.
11534 * memattr.h: Ditto.
11535 * memory-map.h: Ditto.
11536 * mep-tdep.c: Ditto.
11537 * microblaze-rom.c: Ditto.
11538 * microblaze-tdep.c: Ditto.
11539 * minsyms.c: Ditto.
11540 * mips-irix-tdep.c: Ditto.
11541 * mips-linux-nat.c: Ditto.
11542 * mips-linux-tdep.c: Ditto.
11543 * mips-linux-tdep.h: Ditto.
11544 * mipsnbsd-nat.c: Ditto.
11545 * mipsnbsd-tdep.c: Ditto.
11546 * mipsread.c: Ditto.
11547 * mips-tdep.c: Ditto.
11548 * mips-tdep.h: Ditto.
11549 * mn10300-linux-tdep.c: Ditto.
11550 * mn10300-tdep.c: Ditto.
11551 * mn10300-tdep.h: Ditto.
11552 * monitor.c: Ditto.
11553 * monitor.h: Ditto.
11554 * moxie-tdep.c: Ditto.
11555 * moxie-tdep.h: Ditto.
11556 * mt-tdep.c: Ditto.
11557
1642781b
MF
115582011-01-08 Mike Frysinger <vapier@gentoo.org>
11559
11560 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11561
394b0adb
JB
115622011-01-08 Robert Millan <rmh@gnu.org>
11563
11564 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11565
b670013c
MS
115662011-01-07 Michael Snyder <msnyder@vmware.com>
11567
11568 * charset.c (_initialize_charset): Fix typo in string.
11569
a743e542
MS
115702011-01-07 Michael Snyder <msnyder@vmware.com>
11571
11572 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11573 for i18n.
f2eb0bc8 11574 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11575 Split line so that operator goes to beginning of line.
11576 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11577 assignment out of if statement.
11578
0963b4bd
MS
115792011-01-07 Michael Snyder <msnyder@vmware.com>
11580
11581 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11582 * ada-lang.h: Ditto.
11583 * ada-tasks.c: Ditto.
11584 * ada-valprint.c: Ditto.
11585 * aix-threads.c: Ditto.
11586 * alpha-linux-nat.c: Ditto.
11587 * alpha-linux-tdep.c: Ditto.
11588 * alpha-mdebug-tdep.c: Ditto.
11589 * alpha-nat.c: Ditto.
11590 * alpha-osf1-tdep.c: Ditto.
11591 * alpha-tdep.c: Ditto.
11592 * alphabsd-nat.c: Ditto.
11593 * alphabsd-tdep.c: Ditto.
11594 * amd64-darwin-tdep.c: Ditto.
11595 * amd64-linux-nat.c: Ditto.
11596 * amd64-linux-tdep.c: Ditto.
11597 * amd64-sol2-tdep.c: Ditto.
11598 * amd64-tdep.c: Ditto.
11599 * amd64-fbsd-tdep.c: Ditto.
11600 * amd64-nbsd-tdep.c: Ditto.
11601 * amd64-obsd-tdep.c: Ditto.
11602 * amd64-linux-nat.c: Ditto.
11603 * amd64-linux-tdep.c: Ditto.
11604 * arm-tdep.c: Ditto.
11605 * arm-tdep.h: Ditto.
11606 * armnbsd-nat.c: Ditto.
11607 * avr-tdep.c: Ditto.
11608 * bfin-tdep.c: Ditto.
11609 * bsd-kvm.c: Ditto.
11610 * c-typeprintc: Ditto.
11611 * c-valprint.c: Ditto.
11612 * coff-pe-read.h: Ditto.
11613 * coffreead.c: Ditto.
11614 * cris-tdep.c: Ditto.
11615 * d-lang.c: Ditto.
11616 * darwin-nat-info.c: Ditto.
11617 * darwin-nat.c: Ditto.
11618 * dbug-rom.c: Ditto.
11619 * dbxread.c: Ditto.
11620 * dcache.c: Ditto.
11621 * dcache.h: Ditto.
11622 * dec-thread.c: Ditto.
11623 * defs.h: Ditto.
11624 * demangle.c: Ditto.
11625 * dicos-tdep.c: Ditto.
11626 * dictionary.c: Ditto.
11627 * dictionary.h: Ditto.
11628 * dink32-rom.c: Ditto.
11629 * disasm.c: Ditto.
11630 * doublest.c: Ditto.
11631 * dsrec.c: Ditto.
11632 * dummy-frame.c: Ditto.
11633 * dwarf2-frame.c: Ditto.
11634 * dwarf2expr.c: Ditto.
11635 * dwarf2loc.c: Ditto.
11636 * dwarf2read.c: Ditto.
11637 * elfread.c: Ditto.
11638 * environ.c: Ditto.
11639 * eval.c: Ditto.
11640 * event-top.h: Ditto.
11641 * exceptions.c: Ditto.
11642 * exceptions.h: Ditto.
11643 * exec.c: Ditto.
11644 * expprint.c: Ditto.
11645 * expression.h: Ditto.
11646 * f-exp.y: Ditto.
11647 * f-lang.c: Ditto.
11648 * f-lang.h: Ditto.
11649 * f-typeprint.c: Ditto.
11650 * f-valprint.c: Ditto.
11651 * fbsd-nat.c: Ditto.
11652 * findvar.c: Ditto.
11653 * fork-child.c: Ditto.
11654 * frame.c: Ditto.
11655 * frame.h: Ditto.
11656 * frv-linux-tdep.c: Ditto.
11657 * frv-tdep.c: Ditto.
11658 * gcore.c: Ditto.
11659 * gdb-stabs.h: Ditto.
11660 * gdb_assert.h: Ditto.
11661 * gdb_string.h: Ditto.
11662 * gdb_thread_db.h: Ditto.
11663 * gdb_wait.h: Ditto.
11664 * gdbarch.sh: Ditto.
11665 * gdbcore.h: Ditto.
11666 * gdbthread.h: Ditto.
11667 * gdbtypes.c: Ditto.
11668 * gdbtypes.h: Ditto.
11669 * gnu-nat.c: Ditto.
11670 * gnu-nat.h: Ditto.
11671 * gnu-v2-abi.c: Ditto.
11672 * gnu-v3-abi.c: Ditto.
11673 * go32-nat.c: Ditto.
11674 * gdbarch.c: Regenerate.
11675 * gdbarch.h: Regenerate.
11676
ac74f770
MS
116772011-01-07 Michael Snyder <msnyder@vmware.com>
11678
11679 * ax-gdb.c: Adjust some long output strings.
11680 * breakpoint.c: Ditto.
11681 * charset.c: Ditto.
11682 * cp-abi.c: Ditto.
11683 * infcall.c: Ditto.
11684 * infrun.c: Ditto.
11685 * linux-nat.c: Ditto.
11686 * solib-pa64.c: Ditto.
11687 * solib-som.c: Ditto.
11688
d8e22779
TT
116892011-01-06 Tom Tromey <tromey@redhat.com>
11690
11691 PR python/12367:
11692 * NEWS: Add item.
11693 * python/python.c (GdbMethods): Add "newest_frame" method.
11694 * python/python-internal.h (gdbpy_newest_frame): Declare.
11695 * python/py-frame.c (gdbpy_newest_frame): New function.
11696
a255712f
PP
116972010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11698
11699 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11700 * jit.c (jit_debug): New variable.
11701 (show_jit_debug): New function.
11702 (struct target_buffer): Use ULONGEST.
11703 (bfd_open_from_target_memory): Likewise.
11704 (jit_register_code, jit_inferior_init): Add debug output.
11705 (_initialize_jit): Register "debug jit" command.
11706
ccfc3d6e
TT
117072011-01-06 Tom Tromey <tromey@redhat.com>
11708
11709 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11710 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11711 and ARCH_FRAME.
11712
57126e4a
TT
117132011-01-06 Tom Tromey <tromey@redhat.com>
11714
11715 * python/py-frame.c (frapy_block): Use get_frame_block.
11716
16dfc9ce
JB
117172011-01-06 Joel Brobecker <brobecker@adacore.com>
11718
11719 Do not stop on SIGPRIO signals by default
11720 * infrun.c (_initialize_infrun): Unset signal_stop and
11721 signal_print for TARGET_SIGNAL_PRIO.
11722
b1ce2347
JB
117232011-01-06 Joel Brobecker <brobecker@adacore.com>
11724
11725 * ada-tasks.c: Fix style violation in comment.
11726
8f7e195f
JB
117272011-01-06 Joel Brobecker <brobecker@adacore.com>
11728
11729 * linespec.c (decode_compound, find_method): Remove trailing \n
11730 at end of error string.
11731 * solib-irix.c (irix_current_sos): Likewise.
11732 * varobj.c (uninstall_variable): Likewise.
11733
e9bdf92c
JB
117342011-01-06 Joel Brobecker <brobecker@adacore.com>
11735
11736 * copyright.py: New script.
11737 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11738 Launch emacs without exec'ing. Call copyright.py afterwards.
11739
3e43a32a
MS
117402011-01-05 Michael Snyder <msnyder@vmware.com>
11741
11742 * addrmap.c: Shorten lines of >= 80 columns.
11743 * arch-utils.c: Ditto.
11744 * arch-utils.h: Ditto.
11745 * ax-gdb.c: Ditto.
11746 * ax-general.c: Ditto.
11747 * bcache.c: Ditto.
11748 * blockframe.c: Ditto.
11749 * breakpoint.c: Ditto.
11750 * buildsym.c: Ditto.
11751 * c-lang.c: Ditto.
11752 * c-typeprint.c: Ditto.
11753 * charset.c: Ditto.
11754 * coffread.c: Ditto.
11755 * command.h: Ditto.
11756 * corelow.c: Ditto.
11757 * cp-abi.c: Ditto.
11758 * cp-namespace.c: Ditto.
11759 * cp-support.c: Ditto.
11760 * dbug-rom.c: Ditto.
11761 * dbxread.c: Ditto.
11762 * defs.h: Ditto.
11763 * dfp.c: Ditto.
11764 * dfp.h: Ditto.
11765 * dictionary.c: Ditto.
11766 * disasm.c: Ditto.
11767 * doublest.c: Ditto.
11768 * dwarf2-frame.c: Ditto.
11769 * dwarf2expr.c: Ditto.
11770 * dwarf2loc.c: Ditto.
11771 * dwarf2read.c: Ditto.
11772 * elfread.c: Ditto.
11773 * eval.c: Ditto.
11774 * event-loop.c: Ditto.
11775 * event-loop.h: Ditto.
11776 * exceptions.h: Ditto.
11777 * exec.c: Ditto.
11778 * expprint.c: Ditto.
11779 * expression.h: Ditto.
11780 * f-lang.c: Ditto.
11781 * f-valprint.c: Ditto.
11782 * findcmd.c: Ditto.
11783 * frame-base.c: Ditto.
11784 * frame-unwind.c: Ditto.
11785 * frame-unwind.h: Ditto.
11786 * frame.c: Ditto.
11787 * frame.h: Ditto.
11788 * gcore.c: Ditto.
11789 * gdb-stabs.h: Ditto.
11790 * gdb_assert.h: Ditto.
11791 * gdb_dirent.h: Ditto.
11792 * gdb_obstack.h: Ditto.
11793 * gdbcore.h: Ditto.
11794 * gdbtypes.c: Ditto.
11795 * gdbtypes.h: Ditto.
11796 * inf-ttrace.c: Ditto.
11797 * infcall.c: Ditto.
11798 * infcmd.c: Ditto.
11799 * inflow.c: Ditto.
11800 * infrun.c: Ditto.
11801 * inline-frame.h: Ditto.
11802 * language.c: Ditto.
11803 * language.h: Ditto.
11804 * libunwind-frame.c: Ditto.
11805 * libunwind-frame.h: Ditto.
11806 * linespec.c: Ditto.
11807 * linux-nat.c: Ditto.
11808 * linux-nat.h: Ditto.
11809 * linux-thread-db.c: Ditto.
11810 * machoread.c: Ditto.
11811 * macroexp.c: Ditto.
11812 * macrotab.c: Ditto.
11813 * main.c: Ditto.
11814 * maint.c: Ditto.
11815 * mdebugread.c: Ditto.
11816 * memattr.c: Ditto.
11817 * minsyms.c: Ditto.
11818 * monitor.c: Ditto.
11819 * monitor.h: Ditto.
11820 * objfiles.c: Ditto.
11821 * objfiles.h: Ditto.
11822 * osabi.c: Ditto.
11823 * p-typeprint.c: Ditto.
11824 * p-valprint.c: Ditto.
11825 * parse.c: Ditto.
11826 * printcmd.c: Ditto.
11827 * proc-events.c: Ditto.
11828 * procfs.c: Ditto.
11829 * progspace.c: Ditto.
11830 * progspace.h: Ditto.
11831 * psympriv.h: Ditto.
11832 * psymtab.c: Ditto.
11833 * record.c: Ditto.
11834 * regcache.c: Ditto.
11835 * regcache.h: Ditto.
11836 * remote-fileio.c: Ditto.
11837 * remote.c: Ditto.
11838 * ser-mingw.c: Ditto.
11839 * ser-tcp.c: Ditto.
11840 * ser-unix.c: Ditto.
11841 * serial.c: Ditto.
11842 * serial.h: Ditto.
11843 * solib-frv.c: Ditto.
11844 * solib-irix.c: Ditto.
11845 * solib-osf.c: Ditto.
11846 * solib-pa64.c: Ditto.
11847 * solib-som.c: Ditto.
11848 * solib-sunos.c: Ditto.
11849 * solib-svr4.c: Ditto.
11850 * solib-target.c: Ditto.
11851 * solib.c: Ditto.
11852 * somread.c: Ditto.
11853 * source.c: Ditto.
11854 * stabsread.c: Ditto.
11855 * stabsread.c: Ditto.
11856 * stack.c: Ditto.
11857 * stack.h: Ditto.
11858 * symfile-mem.c: Ditto.
11859 * symfile.c: Ditto.
11860 * symfile.h: Ditto.
11861 * symmisc.c: Ditto.
11862 * symtab.c: Ditto.
11863 * symtab.h: Ditto.
11864 * target-descriptions.c: Ditto.
11865 * target-memory.c: Ditto.
11866 * target.c: Ditto.
11867 * target.h: Ditto.
11868 * terminal.h: Ditto.
11869 * thread.c: Ditto.
11870 * top.c: Ditto.
11871 * tracepoint.c: Ditto.
11872 * tracepoint.h: Ditto.
11873 * ui-file.c: Ditto.
11874 * ui-file.h: Ditto.
11875 * ui-out.h: Ditto.
11876 * user-regs.c: Ditto.
11877 * user-regs.h: Ditto.
11878 * utils.c: Ditto.
11879 * valarith.c: Ditto.
11880 * valops.c: Ditto.
11881 * valprint.c: Ditto.
11882 * valprint.h: Ditto.
11883 * value.c: Ditto.
11884 * varobj.c: Ditto.
11885 * varobj.h: Ditto.
11886 * vec.h: Ditto.
11887 * xcoffread.c: Ditto.
11888 * xcoffsolib.c: Ditto.
11889 * xcoffsolib.h: Ditto.
11890 * xml-syscall.c: Ditto.
11891 * xml-tdesc.c: Ditto.
11892
9a2b4c1b
MS
118932011-01-05 Michael Snyder <msnyder@vmware.com>
11894
11895 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11896 * cli/cli-decode.c: Ditto.
11897 * cli/cli-dump.c: Ditto.
11898 * cli/cli-logging.c: Ditto.
11899 * cli/cli-script.c: Ditto.
11900 * cli/cli-setshow.c: Ditto.
11901 * common/signals.c: Ditto.
11902 * mi/mi-cmd-break.c: Ditto.
11903 * mi/mi-cmd-disas.c: Ditto.
11904 * mi/mi-cmd-stack.c: Ditto.
11905 * mi/mi-cmd-var.c: Ditto.
11906 * mi/mi-cmds.c: Ditto.
11907 * mi/mi-common.h: Ditto.
11908 * mi/mi-console.c: Ditto.
11909 * mi/mi-interp.c: Ditto.
11910 * mi/mi-main.c: Ditto.
11911 * osf-share/cma_attr.c: Ditto.
11912 * osf-share/cma_deb_core.h: Ditto.
11913 * osf-share/cma_debug_client.h: Ditto.
11914 * osf-share/cma_handle.h: Ditto.
11915 * osf-share/cma_mutex.h: Ditto.
11916 * osf-share/cma_stack_int.h: Ditto.
11917 * osf-share/cma_tcb_defs.h: Ditto.
11918 * python/py-auto-load.c: Ditto.
11919 * python/py-breakpoint.c: Ditto.
11920 * python/py-cmd.c: Ditto.
11921 * python/py-frame.c: Ditto.
11922 * python/py-objfile.c: Ditto.
11923 * python/py-param.c: Ditto.
11924 * python/py-progspace.c: Ditto.
11925 * python/py-symbol.c: Ditto.
11926 * python/py-value.c: Ditto.
11927 * python/python-internal.h: Ditto.
11928 * python/python.c: Ditto.
11929 * tui/tui-data.c: Ditto.
11930 * tui/tui-disasm.c: Ditto.
11931 * tui/tui-hooks.c: Ditto.
11932 * tui/tui-io.c: Ditto.
11933 * tui/tui-layout.c: Ditto.
11934 * tui/tui-regs.c: Ditto.
11935 * tui/tui-source.c: Ditto.
11936 * tui/tui-stack.c: Ditto.
11937 * tui/tui-win.c: Ditto.
11938 * tui/tui-windata.c: Ditto.
11939 * tui/tui-winsource.c: Ditto.
11940
44944448
JB
119412011-01-05 Joel Brobecker <brobecker@adacore.com>
11942
11943 * configure.ac, gdb.1: Copyright year update.
11944
ebedcab5
JK
119452011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11946
11947 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11948 this_pc_in_block, morestack_msym and morestack_name. Check for
11949 "__morestack" minimal symbol there.
11950
e5cc9f32
JB
119512011-01-03 Joel Brobecker <brobecker@adacore.com>
11952
11953 * symfile.c (find_sym_fns): Add call to dont_repeat.
11954
7b6bb8da
JB
119552011-01-01 Joel Brobecker <brobecker@adacore.com>
11956
11957 Copyright year update in most files (performed by copyright.sh).
11958
71ce852c
JB
119592011-01-01 Joel Brobecker <brobecker@adacore.com>
11960
11961 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11962
c3c1ebe8 11963For older changes see ChangeLog-2010.
c906108c
SS
11964\f
11965Local Variables:
11966mode: change-log
11967left-margin: 8
11968fill-column: 74
11969version-control: never
57da7796 11970coding: utf-8
c906108c 11971End:
This page took 1.957791 seconds and 4 git commands to generate.