* amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9ed936ec
AS
12011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
4 `syscall' to `syscall_number'(-Wshadow).
5
a35ddb44
AS
62011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
7
8 * ada-lang.c (remove_extra_symbols): Rename `remove' to
9 `remove_p'(-Wshadow).
10
e5e61bd7
AS
112011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
12
13 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
14 `ren_sym'(-Wshadow).
15
d200ab1e
DE
162011-12-10 Doug Evans <dje@google.com>
17
b0df02fd
DE
18 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
19 debug_types_section. All uses updated.
20 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
21 to is_debug_types_section.
22
d200ab1e
DE
23 * python/py-auto-load.c (source_section_scripts): Call xfree
24 instead of free.
25
4511b1ba
YQ
262011-12-10 Hui Zhu <teawater@gmail.com>
27 Yao Qi <yao@codesourcery.com>
28
29 * tracepoint.c (start_tracing): Clear `inserted' flag.
30
df5a4bd3
HZ
312011-12-10 Hui Zhu <teawater@gmail.com>
32
33 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
34
1afeeb75
AS
352011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
36
37 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
38 `bpoint'(-Wshadow).
39
80e1d417
AS
402011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
41
42 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
43 `marker' variables to `sal2' and `tpmarker' respectively
44 (-Wshadow).
45
04ca3c22
AP
462011-12-09 Andrew Pinski <apinski@cavium.com>
47
48 * linespec.c (hash_address_entry): Use iterative_hash_object on each
49 field rather than the struct itself.
50
8a2c437b
TT
512011-12-09 Tom Tromey <tromey@redhat.com>
52
53 * breakpoint.c (compare_breakpoints): New function.
54 (clear_command): Remove duplicate breakpoints. Properly clean
55 up.
56
280711e7
MR
572011-12-08 Maciej W. Rozycki <macro@mips.com>
58 Maciej W. Rozycki <macro@codesourcery.com>
59
60 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
61 address chunks retrieved from decoded lui/addiu pairs.
62
4c2051c6
MR
632011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
64
65 * mips-tdep.c (extended_offset): Correct calculation.
66 (unpack_mips16): Correct bitfield positions used for extraction
67 of the immediate argument; fix sign-extension of same.
68 (extended_mips16_next_pc): Correct B instruction's offset
69 calculation. Correct register decoding of the BEQZ and BNEZ
70 as well as jump-register instructions. Handle compact jumps.
71
ff011ed7
TT
722011-12-08 Tom Tromey <tromey@redhat.com>
73
74 * objfiles.h (struct objfile): Remove obsolete comment.
75 * objfiles.c (build_objfile_section_table): Remove obsolete
76 comment.
77
7cd3876c
SS
782011-12-07 Stan Shebs <stan@codesourcery.com>
79
80 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
81 maintainer of the tic6x target.
82
35f73cfc
UW
832011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
84
85 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
86 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
87 (arm_deal_with_atomic_sequence_raw): Likewise.
88 (arm_deal_with_atomic_sequence): Likewise.
89 (arm_software_single_step): Call it.
90 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
91
94eae614
UW
922011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
93
94 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
95 where appropriate.
96 * s390-tdep.h: Likewise.
97
13b8d0c6
TG
982011-12-07 Tristan Gingold <gingold@adacore.com>
99
100 * machoread.c (macho_symtab_read): Do not consider N_OPT as
101 a debugging stab. Improve complaint message.
102
5436df95
MR
1032011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
104
105 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
106 load adjustment if still within the prologue.
107
040dff2a
MR
1082011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
109
110 * mips-tdep.c (mips32_next_pc): Fix floating point condition
111 code mask.
112
754d7c78
MR
1132011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
114
115 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
116 of BLTZ* and BGEZ* instructions.
117
91912e4d
MR
1182011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
119
120 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
121 performed to determine whether an address refers to standard
122 MIPS or MIPS16 code.
123 (mips16_next_pc): Use mips_pc_is_mips16 instead of
124 is_mips16_addr.
125
f0ba3972
PA
1262011-12-06 Pedro Alves <pedro@codesourcery.com>
127
128 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
129 (breakpoint_xfer_memory): ... this. Change prototype. Handle
130 memory writes too.
131 * breakpoint.h (breakpoint_restore_shadows): Delete.
132 (breakpoint_xfer_memory): Declare.
133 * mem-break.c (default_memory_insert_breakpoint)
134 (default_memory_remove_breakpoint): Use target_write_raw_memory.
135 (memory_xfer_partial): Rename to ...
136 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
137 here.
138 (memory_xfer_partial): New.
139 (target_write_raw_memory): New.
140 * target.h (target_write_raw_memory): New.
141
31aba06f
DE
1422011-12-06 Doug Evans <dje@google.com>
143
144 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
145
f8eba3c6
TT
1462011-12-06 Joel Brobecker <brobecker@acacore.com>
147
148 * language.h (struct language_defn): Add new component
149 la_symbol_name_compare.
150 * symfile.h (struct quick_symbol_functions): Update the profile
151 of parameter "name_matcher" for the expand_symtabs_matching
152 method. Update the documentation accordingly.
153 * ada-lang.h (ada_name_for_lookup): Add declaration.
154 * ada-lang.c (ada_name_for_lookup): New function, extracted out
155 from ada_iterate_over_symbols.
156 (ada_iterate_over_symbols): Do not encode symbol name anymore.
157 (ada_expand_partial_symbol_name): Adjust profile.
158 (ada_language_defn): Add value for la_symbol_name_compare field.
159 * linespec.c: #include "ada-lang.h".
160 (iterate_name_matcher): Add language parameter. Replace call
161 to strcmp_iw by call to language->la_symbol_name_compare.
162 (decode_variable): Encode COPY if current language is Ada.
163 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
164 of name_matcher parameter. Adjust call to name_matcher.
165 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
166 (expand_partial_symbol_names): Update profile of parameter "fun".
167 * psymtab.h (expand_partial_symbol_names): Update profile of
168 parameter "fun".
169 * symtab.c (demangle_for_lookup): Update function documentation.
170 (search_symbols_name_matches): Add language parameter.
171 (expand_partial_symbol_name): Likewise.
172 * c-lang.c (c_language_defn, cplus_language_defn)
173 (asm_language_defn, minimal_language_defn): Add value for
174 la_symbol_name_compare field.
175 * d-lang.c (d_language_defn): Likewise.
176 * f-lang.c (f_language_defn): Ditto.
177 * jv-lang.c (java_language_defn): Ditto.
178 * m2-lang.c (m2_language_defn): Ditto.
179 * objc-lang.c (objc_language_defn): Ditto.
180 * opencl-lang.c (opencl_language_defn): Ditto.
181 * p-lang.c (pascal_language_defn): Ditto.
182 * language.c (unknown_language_defn, auto_language_defn)
183 (local_language_defn): Ditto.
184
1852011-12-06 Tom Tromey <tromey@redhat.com>
186
187 * linespec.c (iterate_over_all_matching_symtabs): Use
188 LA_ITERATE_OVER_SYMBOLS.
189 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
190 (find_function_symbols, decode_variable): Remove Ada special
191 case.
192 * language.h (struct language_defn) <la_iterate_over_symbols>: New
193 field.
194 (LA_ITERATE_OVER_SYMBOLS): New macro.
195 * language.c (unknown_language_defn, auto_language_defn)
196 (local_language_defn): Update.
197 * c-lang.c (c_language_defn, cplus_language_defn)
198 (asm_language_defn, minimal_language_defn): Update.
199 * d-lang.c (d_language_defn): Update.
200 * f-lang.c (f_language_defn): Update.
201 * jv-lang.c (java_language_defn): Update.
202 * m2-lang.c (m2_language_defn): Update.
203 * objc-lang.c (objc_language_defn): Update.
204 * opencl-lang.c (opencl_language_defn): Update.
205 * p-lang.c (pascal_language_defn): Update.
206 * ada-lang.c (ada_iterate_over_symbols): New function.
207 (ada_language_defn): Update.
208
2092011-12-06 Tom Tromey <tromey@redhat.com>
210 Joel Brobecker <brobecker@acacore.com>
211
212 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
213 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
214 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
215 PR shlibs/8929, PR shlibs/7393:
216 * python/py-type.c (compare_maybe_null_strings): Rename from
217 compare_strings.
218 (check_types_equal): Update.
219 * utils.c (compare_strings): New function.
220 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
221 location changes.
222 * tracepoint.c (scope_info): Update.
223 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
224 * symtab.h (iterate_over_minimal_symbols)
225 (iterate_over_some_symtabs, iterate_over_symtabs)
226 (find_pcs_for_symtab_line, iterate_over_symbols)
227 (demangle_for_lookup): Declare.
228 (expand_line_sal): Remove.
229 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
230 (lookup_symtab_callback): New functions.
231 (lookup_symtab): Rewrite.
232 (demangle_for_lookup): New function, extract from
233 lookup_symbol_in_language.
234 (lookup_symbol_in_language): Use it.
235 (iterate_over_symbols): New function.
236 (find_line_symtab): Update.
237 (find_pcs_for_symtab_line): New functions.
238 (find_line_common): Add 'start' argument.
239 (decode_line_spec): Update. Change argument to 'flags', change
240 interpretation.
241 (append_expanded_sal): Remove.
242 (append_exact_match_to_sals): Remove.
243 (expand_line_sal): Remove.
244 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
245 Remove.
246 <map_symtabs_matching_filename>: New field.
247 * stack.c (func_command): Only look in the current program space.
248 Use DECODE_LINE_FUNFIRSTLINE.
249 * source.c (line_info): Set pspace on sal. Check program space in
250 the loop. Use DECODE_LINE_LIST_MODE.
251 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
252 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
253 * python/python.c (gdbpy_decode_line): Update.
254 * psymtab.c (partial_map_expand_apply): New function.
255 (partial_map_symtabs_matching_filename): Rename from
256 lookup_partial_symbol. Update arguments.
257 (lookup_symtab_via_partial_symtab): Remove.
258 (psym_functions): Update.
259 * objc-lang.h (parse_selector, parse_method): Don't declare.
260 (find_imps): Update.
261 * objc-lang.c (parse_selector, parse_method): Now static.
262 (find_methods): Change arguments. Fill in a vector of symbol
263 names.
264 (uniquify_strings): New function.
265 (find_imps): Change arguments.
266 * minsyms.c (iterate_over_minimal_symbols): New function.
267 * linespec.h (enum decode_line_flags): New.
268 (struct linespec_sals): New.
269 (struct linespec_result) <canonical>: Remove.
270 <pre_expanded, addr_string, sals>: New fields.
271 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
272 (decode_line_full): Declare.
273 (decode_line_1): Update.
274 * linespec.c (struct address_entry, struct linespec_state, struct
275 collect_info): New types.
276 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
277 (eq_address_entry, maybe_add_address): New functions.
278 (total_number_of_methods): Remove.
279 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
280 functions.
281 (find_methods): Change arguments. Don't canonicalize input.
282 Simplify logic.
283 (add_matching_methods, add_constructors)
284 (build_canonical_line_spec): Remove.
285 (filter_results, convert_results_to_lsals): New functions.
286 (decode_line_2): Change arguments. Rewrite for new data
287 structures.
288 (decode_line_internal): Rename from decode_line_1. Change
289 arguments. Add cleanups. Update for new data structures.
290 (linespec_state_constructor, linespec_state_destructor)
291 (decode_line_full, decode_line_1): New functions.
292 (decode_indirect): Change arguments. Update.
293 (locate_first_half): Use skip_spaces.
294 (decode_objc): Change arguments. Update for new data structures.
295 Simplify logic.
296 (decode_compound): Change arguments. Add cleanups. Remove
297 fallback code, replace with error.
298 (struct decode_compound_collector): New type.
299 (collect_one_symbol): New function.
300 (lookup_prefix_sym): Change arguments. Update.
301 (compare_symbol_name, add_all_symbol_names_from_pspace)
302 (find_superclass_methods ): New functions.
303 (find_method): Rewrite.
304 (struct symtab_collector): New type.
305 (add_symtabs_to_list, collect_symtabs_from_filename): New
306 functions.
307 (symtabs_from_filename): Change API. Rename from
308 symtab_from_filename.
309 (collect_function_symbols): New function.
310 (find_function_symbols): Change API. Rename from
311 find_function_symbol. Rewrite.
312 (decode_all_digits): Change arguments. Rewrite.
313 (decode_dollar): Change arguments. Use decode_variable.
314 (decode_label): Change arguments. Rewrite.
315 (collect_symbols): New function.
316 (minsym_found): Change arguments. Rewrite.
317 (check_minsym, search_minsyms_for_name)
318 (add_matching_symbols_to_info): New function.
319 (decode_variable): Change arguments. Iterate over all symbols.
320 (symbol_found): Remove.
321 (symbol_to_sal): New function.
322 (init_linespec_result, destroy_linespec_result)
323 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
324 New functions.
325 (decode_digits_list_mode, decode_digits_ordinary): New functions.
326 * dwarf2read.c (dw2_map_expand_apply): New function.
327 (dw2_map_symtabs_matching_filename): Rename from
328 dw2_lookup_symtab. Change arguments.
329 (dwarf2_gdb_index_functions): Update.
330 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
331 * defs.h (compare_strings): Declare.
332 * cli/cli-cmds.c (compare_strings): Move to utils.c.
333 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
334 filter_sals.
335 (compare_symtabs, filter_sals): New functions.
336 * breakpoint.h (struct bp_location) <line_number, source_file>:
337 New fields.
338 (struct breakpoint) <line_number, source_file>: Remove.
339 <filter>: New field.
340 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
341 (momentary_breakpoint_from_master, add_location_to_breakpoint):
342 Update for changes to locations.
343 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
344 breakpoint.
345 (create_breakpoint_sal): Add 'filter' argument.
346 (remove_sal, expand_line_sal_maybe): Remove.
347 (create_breakpoints_sal): Remove 'sals' argument. Handle
348 pre-expanded sals and the filter.
349 (parse_breakpoint_sals): Use decode_line_full.
350 (check_fast_tracepoint_sals): Use get_sal_arch.
351 (create_breakpoint): Create a linespec_sals. Update.
352 (break_range_command): Use decode_line_full. Update.
353 (until_break_command): Update.
354 (clear_command): Update match conditions for linespec.c changes.
355 Use DECODE_LINE_LIST_MODE.
356 (say_where): Update for changes to locations.
357 (bp_location_dtor): Free 'source_file'.
358 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
359 (update_static_tracepoint): Update for changes to locations.
360 (update_breakpoint_locations): Disable ranged breakpoint if too
361 many locations match. Update.
362 (addr_string_to_sals): Use decode_line_full. Resolve all sal
363 PCs.
364 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
365 (decode_line_spec_1): Update. Change argument name to 'flags',
366 change interpretation.
367 * block.h (block_containing_function): Declare.
368 * block.c (block_containing_function): New function.
369 * skip.c (skip_function_command): Update.
370 (skip_re_set): Update.
371 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
372 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
373 * NEWS: Add entry.
374
3752011-12-06 Tom Tromey <tromey@redhat.com>
376
377 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
378 breakpoint's pspace to be NULL.
379 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
380 * breakpoint.c (init_raw_breakpoint): Conditionally set
381 breakpoint's pspace.
382 (init_breakpoint_sal): Don't set breakpoint's pspace.
383 (prepare_re_set_context): Conditionally switch program space.
384 (addr_string_to_sals): Check executing_startup on location's
385 program space.
386
3872011-12-06 Tom Tromey <tromey@redhat.com>
388
389 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
390 * breakpoint.c (should_be_inserted): Explicitly check if program
391 space is executing startup.
392 (describe_other_breakpoints): Update.
393 (disable_breakpoints_before_startup): Change executing_startup
394 earlier. Remove loop.
395 (enable_breakpoints_after_startup): Likewise.
396 (init_breakpoint_sal): Don't use bp_startup_disabled.
397 (create_breakpoint): Don't use bp_startup_disabled.
398 (update_global_location_list): Use should_be_inserted.
399 (bkpt_re_set): Update.
400
75c8c9d7
TT
4012011-12-06 Tom Tromey <tromey@redhat.com>
402
403 * python/lib/gdb/command/pretty_printers.py
404 (InfoPrettyPrinter.invoke1): Remove extra double quote.
405
7376e450
TT
4062011-12-06 Tom Tromey <tromey@redhat.com>
407
408 * NEWS: Add MI news.
409
c642a434
UW
4102011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
411
412 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
413 (S390_LAST_BREAK_REGNUM): Likewise.
414 (S390_SYSTEM_CALL_REGNUM): Likewise.
415 (S390_NUM_REGS): Update.
416
417 (s390_regmap_last_break): Add declaration.
418 (s390x_regmap_last_break): Likewise.
419 (s390_regmap_system_call): Likewise.
420
421 (tdesc_s390_linux32v1): Add declaration.
422 (tdesc_s390_linux32v2): Likewise.
423 (tdesc_s390_linux64v1): Likewise.
424 (tdesc_s390_linux64v2): Likewise.
425 (tdesc_s390x_linux64v1): Likewise.
426 (tdesc_s390x_linux64v2): Likewise.
427
428 * s390-tdep.c: Include new target description files
429 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
430 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
431 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
432 (s390_cannot_store_register): New function.
433 (s390_write_pc): Likewise.
434 (s390_dwarf_regmap): Add fields for new registers.
435 (s390_regmap_gregset): Likewise.
436 (s390x_regmap_gregset): Likewise.
437 (s390_regmap_fpregset): Likewise.
438 (s390_regmap_upper): Likewise.
439 (s390_regmap_last_break): New variable.
440 (s390x_regmap_last_break): Likewise.
441 (s390_regmap_system_call): Likewise.
442 (s390_last_break_regset): Likewise.
443 (s390x_last_break_regset): Likewise.
444 (s390_system_call_regset): Likewise.
445 (s390_upper_regset_sections): Rename to ...
446 (s390_linux64_regset_sections): ... this.
447 (s390_linux32_regset_sections): New variable.
448 (s390x_linux64_regset_sections): Likewise.
449 (s390_linux32v1_regset_sections): Likewise.
450 (s390_linux32v2_regset_sections): Likewise.
451 (s390_linux64v1_regset_sections): Likewise.
452 (s390_linux64v2_regset_sections): Likewise.
453 (s390x_linux64v1_regset_sections): Likewise.
454 (s390x_linux64v2_regset_sections): Likewise.
455 (s390_regset_from_core_section): Handle .reg-s390-last-break and
456 .reg-s390-system-call core file sections.
457 (s390_core_read_description): Check for presence of
458 .reg-s390-last-break and .reg-s390-system-call core file
459 sections and return appropriate target description.
460 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
461 "last_break" and "system_call" in target description. Install
462 appropriate gdbarch_core_regset_sections array.
463 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
464 (_initialize_s390_tdep): Initialize additional target descriptions.
465
466 * s390-nat.c: Include "elf/common.h".
467 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
468 (have_regset_last_break): New static variable.
469 (have_regset_system_call): Likewise.
470 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
471 (s390_native_collect): Likewise.
472 (fetch_regset, store_regset, check_regset): New functions.
473 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
474 and S390_SYSTEM_CALL_REGNUM.
475 (s390_linux_store_inferior_registers): Likewise.
476 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
477 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
478
479 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
480 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
481 (s390-linux32v1-expedite): Define.
482 (s390-linux32v2-expedite): Likewise.
483 (s390-linux64v1-expedite): Likewise.
484 (s390-linux64v2-expedite): Likewise.
485 (s390x-linux64v1-expedite): Likewise.
486 (s390x-linux64v2-expedite): Likewise.
487
488 * features/s390-linux32.xml: Add orig_r2 register.
489 * features/s390-linux64.xml: Likewise.
490 * features/s390x-linux64.xml: Likewise.
491 * features/s390-linux32v1.xml: New file.
492 * features/s390-linux32v2.xml: Likewise.
493 * features/s390-linux64v1.xml: Likewise.
494 * features/s390-linux64v2.xml: Likewise.
495 * features/s390x-linux64v1.xml: Likewise.
496 * features/s390x-linux64v2.xml: Likewise.
497
498 * features/s390-linux32.c: Regenerate.
499 * features/s390-linux64.c: Likewise.
500 * features/s390x-linux64.c: Likewise.
501 * features/s390-linux32v1.c: New generated file.
502 * features/s390-linux32v2.c: Likewise.
503 * features/s390-linux64v1.c: Likewise.
504 * features/s390-linux64v2.c: Likewise.
505 * features/s390x-linux64v1.c: Likewise.
506 * features/s390x-linux64v2.c: Likewise.
507
508 * regformats/s390-linux32.dat: Regenerate.
509 * regformats/s390-linux64.dat: Regenerate.
510 * regformats/s390x-linux64.dat: Regenerate.
511 * regformats/s390-linux32v1.dat: New generated file.
512 * regformats/s390-linux32v2.dat: Likewise.
513 * regformats/s390-linux64v1.dat: Likewise.
514 * regformats/s390-linux64v2.dat: Likewise.
515 * regformats/s390x-linux64v1.dat: Likewise.
516 * regformats/s390x-linux64v2.dat: Likewise.
517
336060f3
PA
5182011-12-05 Pedro Alves <pedro@codesourcery.com>
519
520 * linux-nat.c (resume_stopped_resumed_lwps): Call
521 registers_changed.
522
049e32d3
PA
5232011-12-05 Pedro Alves <pedro@codesourcery.com>
524
525 * breakpoint.c: Include record.h.
526 (breakpoints_always_inserted_mode): Return false when the record
527 target is in use.
528
5c03c7f9 5292011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
530
531 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
532 Reinstate perror_with_name call on ptrace error. Remove #if 0.
533 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
534 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
535
fbbd034e
AS
5362011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
537
538 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
539 `i'(-Wshadow).
540
a5ff8356 5412011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
542
543 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
544
5452011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
546
a5ff8356
AS
547 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
548 of `tdep'(-Wshadow).
549
93f2a35e
JK
5502011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
551
552 Fix compilation --without-expat.
553 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
554 from ...
555 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
556
2268b414
JK
5572011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
558 Jan Kratochvil <jan.kratochvil@redhat.com>
559
560 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
561 * features/library-list-svr4.dtd: New file.
562 * remote.c (PACKET_qXfer_libraries_svr4): New.
563 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
564 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
565 * solib-svr4.c (struct svr4_library_list): New.
566 [HAVE_LIBEXPAT]: Include xml-support.h.
567 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
568 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
569 [HAVE_LIBEXPAT] (svr4_library_list_children)
570 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
571 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
572 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
573 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
574 (svr4_read_so_list): Extend the corruption message by addresses.
575 (svr4_current_sos): New variable library_list, call
576 svr4_current_sos_via_xfer_libraries.
577 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
578
585861ea
JK
5792011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
580
581 PR threads/13448
582 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
583 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
584
9750bca9
JK
5852011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 PR breakpoints/13346
588 * dwarf2read.c (process_psymtab_comp_unit): Set
589 PSYMTABS_ADDRMAP_SUPPORTED.
590 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
591 validity. New field psymtabs_addrmap_supported.
592 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
593 psymtabs_addrmap_supported.
594 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
595 !PSYMTABS_ADDRMAP_SUPPORTED.
596 (dump_psymtab, maintenance_info_psymtabs): Print also
597 psymtabs_addrmap_supported.
598
f28c316a
DE
5992011-12-01 Doug Evans <dje@google.com>
600
601 * python/py-type.c (type_object_methods): Fix "array" doc string.
602
fc0ae648
AB
6032011-12-01 Andrew Burgess <aburgess@broadcom.com>
604
605 * source.c (print_source_lines_base): Fix missing braces on else
606 clause leading to additional output.
607
d6db1fab
UW
6082011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
609
610 * s390-nat.c (SUBOFF): Remove.
611 (s390_native_supply, s390_native_collect): New functions.
612 (supply_gregset, supply_fpregset): Use s390_native_supply.
613 (fill_gregset, fill_fpregset): Use s390_native_collect.
614
615 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
616 (s390_unwind_pseudo_register): New function.
617 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
618 registers instead of PC and CC.
619 (s390_backchain_frame_unwind_cache): Likewise.
620 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
621 full GPR pseudos.
622 (s390_trad_frame_prev_register): New function.
623 (s390_frame_prev_register): Use it.
624 (s390_sigtramp_frame_prev_register): Likewise.
625 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
626 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
627 special callback to unwind any pseudo.
628
629 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
630 * features/s390-core64.xml: Likewise.
631 * features/s390x-core64.xml: Likewise.
632 * features/s390-linux32.c: Regenerate.
633 * features/s390-linux64.c: Likewise.
634 * features/s390x-linux64.c: Likewise.
635
1dd635ac
UW
6362011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
637
638 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
639
0161e4b9
UW
6402011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
641
642 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
643 instruction. Add more diagnostic output.
644
0c36327f
AS
6452011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
646
647 * MAINTAINERS (Write After Approval): Add myself to the list.
648
b4264740
SD
6492011-11-29 Sanjoy Das <sdas@igalia.com>
650
651 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
652 (jit_bfd_try_read_symtab): Fix comments.
653
87326c78
DD
6542011-11-28 DJ Delorie <dj@redhat.com>
655
656 * NEWS: Mention RL78 simulator.
657
1e3a8f45
JB
6582011-11-28 Joel Brobecker <brobecker@adacore.com>
659
660 * symfile.h (struct quick_symbol_functions): Fix the documentation
661 of field map_matching_symbols, as symbols are sorted using
662 strcmp_iw_ordered, not strcmp_iw.
663
265e52c3
JB
6642011-11-28 Paul Hilfinger <hilfinger@adacore.com>
665
666 * symfile.h (struct quick_symbol_functions): Update the
667 documentation for field map_matching_symbols.
668
1a1d5513
JB
6692011-11-28 Joel Brobecker <brobecker@adacore.com>
670
671 * ada-lang.c (compare_names): Fix wrong return value in case
672 string1 starts with the same contents as string2, followed
673 by an underscore that do not start a symbol name suffix.
674
5d9c5995
PM
6752011-11-28 Phil Muldoon <pmuldoon@redhat.com>
676
677 PR python/13369
678 PR python/13374
679
680 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
681 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
682 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
683 exceptions.
684 * python/py-type.c (typy_strip_typedefs): Ditto.
685 (typy_legacy_template_argument): Ditto.
686 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
687 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
688
2bf50f6f
JB
6892011-11-27 Joel Brobecker <brobecker@acacore.com>
690
691 * remote.c (remote_get_tracepoint_status): Delete addrbuf
692 local variable. Avoid use of sprintf_vma.
693
744ab88c
SD
6942011-11-27 Sanjoy Das <sdas@igalia.com>
695
696 Fix regression in jit.exp.
697 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
698 (jit_register_code): Set the jit_objfile_data field to the correct
699 value.
700
46ad3598
UW
7012011-11-25  Uros Bizjak  <ubizjak@gmail.com>
702
703 * alpha-tdep.c (br_opcode): New.
704 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
705 (alpha_deal_with_atomic_sequence): New function.
706 (alpha_gdbarch_init): Handle single stepping of atomic sequences
707 with alpha_deal_with_atomic_sequence.
708
e4c5f296
TG
7092011-11-24 Tristan Gingold <gingold@adacore.com>
710
711 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
712 fields. Add oso_sym, end_sym and nbr_syms.
713 (macho_register_oso): Change interface.
714 (macho_symtab_add_minsym): New function.
715 (macho_symtab_read): Rewritten.
716 (get_archive_prefix_len): Remove trailing blanks.
717 (oso_el_compare_name): Add comment.
718 (struct macho_sym_hash_entry): New structure.
719 (macho_relocate_common_syms): Remove.
720 (macho_sym_hash_newfunc): New function.
721 (macho_resolve_oso_sym_with_minsym): Likewise.
722 (macho_add_oso_symfile): Rewritten.
723 (macho_symfile_read_all_oso): Remove trailing blanks.
724 Adjust code to free oso vector.
725 (macho_symfile_read): Likewise.
726 Move code to initialize minimal symbol
727
130854df
MR
7282011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
729
730 * mips-tdep.c (extended_offset): Fix formatting.
731
3d7bb9d9
DE
7322011-11-23 Doug Evans <dje@google.com>
733
734 * dwarf2read.c (dw2_lookup_symtab): Add comment.
735 (dw2_expand_symtabs_with_filename): Ditto.
736 (dw2_expand_symtabs_matching): Ditto.
737 (dw2_map_symbol_filenames): Ditto.
738
1fbf5ada
JB
7392011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
740
741 * ada-lang.c (assign_aggregate): Minor reformatting.
742
d984108d
JB
7432011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
744
745 * ada-lang.c (assign_aggregate): Remove declaration of local
746 variable `i' which is shadowing another variable with the same
747 name declared in the outer scope.
748
18af8284
JB
7492011-11-23 Joel Brobecker <brobecker@adacore.com>
750
751 * ada-lang.c (get_base_type): Renames base_type. Adjust all
752 calls throughout this file.
753
1fc7b5d7
JB
7542011-11-23 Joel Brobecker <brobecker@adacore.com>
755
756 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
757 FormatMessage.
758
36dfb11c
TT
7592011-11-22 Tom Tromey <tromey@redhat.com>
760
761 PR mi/8444:
762 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
763 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
764 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
765 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
766 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
767 (print_it_catch_syscall, print_it_catch_exec)
768 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
769 (bpstat_print): Add 'kind' argument. Handle
770 TARGET_WAITKIND_LOADED.
771 * infrun.c (normal_stop): Update for bpstat_print change. Don't
772 handle TARGET_WAITKIND_LOADED here.
773 * breakpoint.h (bpstat_print): Update.
774
5bd6aa83
TT
7752011-11-22 Tom Tromey <tromey@redhat.com>
776
777 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
778
f5afdc18
TT
7792011-11-22 Tom Tromey <tromey@redhat.com>
780
781 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
782 Use static_assert to check the size of
783 async_reason_string_lookup.
784 * common/gdb_assert.h (static_assert): New macro.
785
a3769e0c
AM
7862011-11-22 Alan Modra <amodra@gmail.com>
787
788 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
789 destination calculation. Don't expect >> to sign extend. Don't
790 add a break if branch lands inside the sequence anywhere.
791
56767571
KS
7922011-11-21 Keith Seitz <keiths@redhat.com>
793
794 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
795 -var-evaluate-expression of an enumeration and fix expected result.
796 * gdb.mi/mi2-varvdisplay.exp: Likewise.
797
8443c207
KY
7982011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
799
800 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
801 the case where osdata->items is empty. Rename column names to a
802 canonical form to avoid problems with unusual column names.
803
97643830
YQ
8042011-11-21 Yao Qi <yao@codesourcery.com>
805
806 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
807
f196051f
SS
8082011-11-20 Stan Shebs <stan@codesourcery.com>
809
810 * NEWS: Mention tracepoint additions.
811 * breakpoint.h (struct tracepoint): New field traceframe_usage.
812 * breakpoint.c (print_one_breakpoint_location): Identify
813 tracepoints as such when reporting hit counts, report
814 trace buffer usage.
815 (create_tracepoint_from_upload): Copy status info.
816 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
817 add fields user_name, notes, start_time, stop_time.
818 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
819 * tracepoint.c (trace_user): New global.
820 (trace_notes): New global.
821 (trace_stop_notes): New global.
822 (start_tracing): Add argument and trace note handling.
823 (stop_tracing): Ditto.
824 (trace_start_command): Add notes argument.
825 (trace_stop_command): Ditto.
826 (trace_status_command): Report additional status info.
827 (trace_status_mi): Similarly.
828 (trace_save): Update, record tracepoint status.
829 (set_disconnected_tracing): Call target method directly.
830 (send_disconnected_tracing_value): Remove.
831 (set_trace_user): New function.
832 (set_trace_notes): New function.
833 (set_trace_stop_notes): New function.
834 (parse_trace_status): Handle additional status.
835 (parse_tracepoint_status): New function.
836 (parse_tracepoint_definition): Call it.
837 (tfile_get_tracepoint_status): New function.
838 (init_tfile_ops): Use it.
839 (_initialize_tracepoint): Add new setshows.
840 * target.h (struct target_ops): New methods to_get_tracepoint_status
841 and to_set_trace_notes.
842 (target_get_tracepoint_status): New macro.
843 (target_set_trace_notes): New macro.
844 * target.c (update_current_target): Add new methods.
845 * remote.c (remote_get_tracepoint_status): New function.
846 (remote_set_trace_notes): New function.
847 (init_remote_ops): Add them.
848 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
849 (mi_cmd_trace_stop): Ditto.
850
3623dc3a
SD
8512011-11-20 Sanjoy Das <sdas@igalia.com>
852
853 * jit.c: Include regcache.h.
854 (jit_gdbarch_data, jit_frame_unwind): New static variables.
855 (jit_unwind_reg_set_impl, free_reg_value_impl)
856 (jit_unwind_reg_get_impl, jit_frame_sniffer)
857 (jit_frame_unwind_stop_reason, jit_frame_this_id)
858 (jit_frame_prev_register, jit_dealloc_cache)
859 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
860 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
861 jit_prepend_unwinder.
862 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
863
1825a88d
SD
8642011-11-20 Sanjoy Das <sdas@igalia.com>
865
866 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
867 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
868 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
869 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
870 (finalize_symtab, jit_object_close_impl)
871 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
872 (free_objfile_data): New functions.
873 (_initialize_jit): Register jit_objfile_data with a proper cleanup
874 function.
875
784c47ee
SD
8762011-11-20 Sanjoy Das <sdas@igalia.com>
877
878 * jit.c: Include gdb-dlfcn.h.
879 (loaded_jit_reader, reader_init_fn_sym): New static variables.
880 (jit_reader_load, jit_reader_load_command)
881 (jit_reader_unload_command): New functions.
882 (_initialize_jit): Add commands "jit-reader-load" and
883 "jit-reader-unload".
884
a2d08b9e
SD
8852011-11-20 Sanjoy Das <sdas@igalia.com>
886
887 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
888 * config.in: Add new #define HAVE_LIBDL.
889 * configure.ac: Add check for -ldl.
890 * configure: Re-generated by autoconf.
891 * gdb-dlfcn.c: New file.
892 * gdb-dlfcn.h: New file.
893
b8e0a31c
SD
8942011-11-20 Sanjoy Das <sdas@igalia.com>
895
896 * config.in: Add new #defines: JIT_READER_DIR and
897 JIT_READER_DIR_RELOCATABLE.
898 * configure.ac: New GDB directory entry for jit-reader-dir.
899 * configure: Re-generated by autoconf.
900 * jit.c: New static variable: const char *jit_reader_dir.
901 (_initialize_jit): Relocate jit_reader_dir.
902
f997c383
SD
9032011-11-20 Sanjoy Das <sdas@igalia.com>
904
905 * Makefile.in: Add jit-reader.h as a header. Have it installed in
906 $(includedir)/gdb.
907 * configure.ac: Generate a correct value for TARGET_PTR for
908 jit-reader.h. Tell configure to generate jit-reader.h from
909 jit-reader.in.
910 * configure: Re-generated by autoconf.
911 * jit-reader.in: New file.
912 * jit.c: Include jit-reader.h.
913
dc8c0494
SD
9142011-11-20 Sanjoy Das <sdas@igalia.com>
915
916 * MAINTAINERS (Write After Approval): Add myself to the list.
917
01efb936
UW
9182011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
919
920 * findvar.c (read_frame_register_value): Respect value_offset
921 of the register value. Remove big-endian special case.
922
732f3f12
TT
9232011-11-18 Tom Tromey <tromey@redhat.com>
924
925 PR build/7196:
926 * remote.c (putpkt_for_catch_errors): New function.
927 (remote_kill): Use it.
928
bfccc43c
YQ
9292011-11-18 Yao Qi <yao@codesourcery.com>
930
931 * breakpoint.c (create_breakpoint): Produce query message according to
932 breakpoint's type.
933 Allocate tracepoint per correct type.
934 Don't check SALs for pending fast tracepoints.
935 * tracepoint.c (process_tracepoint_on_disconnect): New.
936 (disconnect_tracing): Call process_tracepoint_on_disconnect.
937
3ea46bff
YQ
9382011-11-18 Yao Qi <yao@codesourcery.com>
939
940 * breakpoint.c (install_breakpoint): Add one more parameter so that
941 update_global_location_list is called conditionally.
942 (create_fork_vfork_event_catchpoint): Update.
943 (create_syscall_event_catchpoint): Update.
944 (create_breakpoint_sal): Update.
945 (create_breakpoint_sal): Update. Call do_cleanups before
946 install_breakpoint.
947 * ada-lang.c (create_ada_exception_catchpoint): Update.
948 * breakpoint.h (install_breakpoint): Update declaration.
949
598cfb71
UW
9502011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
951
952 * spu-tdep.c (spu_return_value): Fix handling of
953 TYPE_CALLING_CONVENTION annotation.
954
caf4328c
UW
9552011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
956
957 * skip.c (skip_function_command): Work around uninitialized
958 variable warning.
959
2b54dda2
DM
9602011-11-16 David S. Miller <davem@davemloft.net>
961
962 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
963 'tv_usec' to long for printf since these fields have a type which
964 varies.
965
93bf33fd
DE
9662011-11-15 Doug Evans <dje@google.com>
967
968 * buildsym.c (add_symbol_to_list): Delete outdated comment.
969
9cc10fd1
PK
9702011-11-15 Paul Koning <paul_koning@dell.com>
971
972 * python/py-type.c (typy_get_composite): New function.
973 (typy_nonzero): New function.
974 (typy_values): Rename from typy_fields.
975 (typy_fields): New function.
976 (typy_length): Raise exception if not struct, union, or enum type.
977 (typy_getitem): Ditto.
978 (typy_has_key): Ditto.
979 (typy_make_iter): Ditto.
980
c011a4f4
DE
9812011-11-15 Doug Evans <dje@google.com>
982
983 * NEWS: Mention new parameter basenames-may-differ.
984 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
985 ! basenames_may_differ.
986 * psymtab.c (lookup_partial_symtab): Ditto.
987 * symtab.c (lookup_symtab): Ditto.
988 (basenames_may_differ): New global.
989 (_initialize_symtab): New parameter basenames-may-differ.
990 * symtab.h (basenames_may_differ): Declare.
991
865ecab4
LM
9922011-11-15 Pedro Alves <pedro@codesourcery.com>
993 Luis Machado <lgustavo@codesourcery.com>
994
995 * auxv.c: Include observer.h.
996 (auxv_inferior_data_cleanup): New.
997 (invalidate_auxv_cache_inf): New.
998 (invalidate_auxv_cache): New.
999 (get_auxv_inferior_data): New.
1000 (auxv_inferior_data): New static global.
1001 (auxv_info): New structure.
1002 (target_auxv_search): Use get_auxv_inferior_data instead of
1003 target_read_alloc and don't free cached buffers.
1004 (fprint_target_auxv): Likewise
1005 (_initialize_auxv): Register per-inferior auxv cache and register
1006 observers to invalidate auxv cache when needed.
1007
ed59ded5
DE
10082011-11-14 Doug Evans <dje@google.com>
1009
1010 Make "!" an alias for "shell".
1011 * NEWS: Add mention.
1012 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1013 adding "!" command, always add it.
1014 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1015 command of length one.
1016
405f8e94
SS
10172011-11-14 Stan Shebs <stan@codesourcery.com>
1018 Kwok Cheung Yeung <kcy@codesourcery.com>
1019
1020 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1021 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1022 the minimum instruction size for fast tracepoints.
1023 * target.h (struct target_ops): Add new method
1024 to_get_min_fast_tracepoint_insn_len.
1025 (target_get_min_fast_tracepoint_insn_len): New.
1026 * target.c (update_current_target): Set up new target operation.
1027 * remote.c (remote_write_bytes_aux): Fix typo.
1028 (remote_get_min_fast_tracepoint_insn_len): New.
1029 (init_remote_ops): Initialize new field.
1030
3e05895e
TT
10312011-11-14 Tom Tromey <tromey@redhat.com>
1032
1033 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1034 (encode_actions): Likewise.
1035
1e4d1764
YQ
10362011-11-14 Yao Qi <yao@codesourcery.com>
1037
1038 * remote.c (struct remote_state): <install_in_trace> new field.
1039 (PACKET_InstallInTrace): New enum value.
1040 (remote_install_in_trace_feature): Support InstallInTrace.
1041 (remote_supports_install_in_trace): Likewise.
1042 (remote_protocol_features): Likewise.
1043 (_initialize_remote): Likewise.
1044 (remote_can_download_tracepoint): New.
1045 * target.h (struct target): New field
1046 `to_can_download_tracepoint'.
1047 (target_can_download_tracepoint): New macro.
1048 * target.c (update_current_target): Update.
1049 * breakpoint.h (struct bp_location): Add comment on field
1050 `duplicate'.
3ccd4ac6
YQ
1051 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1052 and tracepoint.
1e4d1764
YQ
1053 (remove_breakpoints): Don't remove tracepoints.
1054 (tracepoint_locations_match ): New.
1055 (breakpoint_locations_match): Call it.
1056 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1057 (download_tracepoint_locations): New.
1058 (update_global_location_list): Call it.
1059 * tracepoint.c (find_matching_tracepoint): Delete.
1060 (find_matching_tracepoint_location): Renamed from
1061 find_matching_tracepoint. Return bp_location rather than
1062 tracepoint.
1063 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1064 tracepoint is found.
1065
e8ba3115
YQ
10662011-11-14 Yao Qi <yao@codesourcery.com>
1067
1068 * target.h (struct target): <to_download_tracepoint> Change type
1069 of parameter from tracepoint to bp_location.
1070 * target.c (update_current_target): Update.
1071 * tracepoint.c (start_tracing): Update.
1072 * remote.c (remote_download_tracepoint): Remove loop for each location
1073 of a tracepoint.
1074
edcc485a
MR
10752011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1076
1077 * i386-nat.c (i386_insert_hw_breakpoint): Call
1078 i386_update_inferior_debug_regs.
1079 (i386_remove_hw_breakpoint): Likewise.
1080
3742cc8b
YQ
10812011-11-14 Yao Qi <yao@codesourcery.com>
1082
1083 * breakpoint.c (init_raw_breakpoint): Call
1084 add_location_to_breakpoint to replace duplicated code.
1085 (add_location_to_breakpoint): Adjust the breakpoint's
1086 address prior to allocating a location.
1087
71eba9c2 10882011-11-12 Matt Rice <ratmice@gmail.com>
1089
1090 * macrocmd.c (macro_no_macro_info): New function.
1091 (macro_expand_command): Use macro_no_macro_info.
1092 (macro_expand_once_command): Ditto.
1093 (info_macro_command): Add argument processing,
1094 move info_definitions_command here.
1095 (_initialize_macrocmd): Remove info definitions command.
1096 Add arguments to info macro help text.
1097 * NEWS: Replace info definitions command with new info macro options.
1098
731971ed
KS
10992011-11-11 Keith Seitz <keiths@redhat.com>
1100
1101 PR gdb/12843
1102 * linespec.c (locate_first_half): Keep ':' if it looks
1103 like it could be part of a Windows path starting with
1104 a drive letter.
1105
6953d224
PA
11062011-11-10 Pedro Alves <pedro@codesourcery.com>
1107
1108 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1109 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1110
0c94aa73
PA
11112011-11-10 Pedro Alves <pedro@codesourcery.com>
1112
1113 * target.c (target_waitstatus_to_string): Handle
1114 TARGET_WAITKIND_NO_RESUMED.
1115
f6b47be4
DE
11162011-11-10 Doug Evans <dje@google.com>
1117
74e2f255
DE
1118 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1119 `need_fullname'.
1120 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1121 (map_partial_symbol_filenames): Ditto. All callers updated.
1122 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1123 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1124 parameter need_fullname.
1125
256f06f3
DE
1126 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1127 * source.c (symtab_to_fullname): Ditto.
1128
50f182aa
DE
1129 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1130 * gdb-demangle.h: ... here. New file.
1131 * demangle.c: #include "gdb-demangle.h".
1132 (_initialize_demangler): Use initialize_file_ftype for prototype.
1133 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1134 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1135 from utils.c
1136 * utils.c: Update. #include "gdb-demangle.h".
1137 * symtab.h (asm_demangle): Delete.
1138 (demangle): Move declaration next to use.
1139 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1140 * dwarf2read.c: #include "gdb-demangle.h".
1141 * gnu-v2-abi.c: Ditto.
1142 * jv-typeprint.c: Ditto.
1143 * mdebugread.c: Ditto.
1144 * p-typeprint.c: Ditto.
1145 * stabsread.c: Ditto.
1146 * printcmd.c: Ditto.
1147 (asm_demangle): Delete declaration.
1148 * tui/tui-stack.c: #include "gdb-demangle.h".
1149
f6b47be4
DE
1150 * python/py-type.c (typy_fields_items): Call check_typedef.
1151
22355c90
JB
11522011-11-10 Joel Brobecker <brobecker@adacore.com>
1153
1154 * findvar.c (read_frame_register_value): Read the correct bytes
1155 from registers on big-endian architectures.
1156
bd119cf1 11572011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1158
1159 * procfs.c (load_syscalls): Make a cleanup.
1160 (open_procinfo_files): fd==0 is ok.
1161
0a86f364
JB
11622011-11-10 Joel Brobecker <brobecker@adacore.com>
1163
1164 * procfs.c (iterate_over_mappings): Call do_cleanups before
1165 returning.
1166
9bc118a5
DE
11672011-11-09 Doug Evans <dje@google.com>
1168
1169 * gdbtypes.c (check_typedef): Document that this function can
1170 throw an exception.
1171
a7860e76
TT
11722011-11-09 Tom Tromey <tromey@redhat.com>
1173
1174 PR c++/13342:
1175 * valops.c (value_full_object): Return early if real type is
1176 smaller than the enclosing type.
1177
60965737
YQ
11782011-11-08 Yao Qi <yao@codesourcery.com>
1179
1180 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1181
72a2e3dc
MI
11822011-11-08 Meador Inge <meadori@codesourcery.com>
1183
1184 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1185 register when the frame can't be determined.
1186 * arm-tdep.c (arm_analyze_prologue): Ditto.
1187
ce3b0ff7
SS
11882011-11-07 Stan Shebs <stan@codesourcery.com>
1189
1190 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1191
2b914b52
JB
11922011-11-07 Joel Brobecker <brobecker@adacore.com>
1193
1194 * infrun.c (handle_inferior_event): Minor reformatting.
1195
6f809020
DE
11962011-11-05 Doug Evans <dje@google.com>
1197
1198 * source.c (forget_cached_source_info_for_objfile): Move call to
1199 objfile->sf->qf->forget_cached_source_info outside of
1200 ALL_OBJFILE_SYMTABS loop.
1201 (forget_cached_source_info): Delete unused variable `s'.
1202
75d12218
JK
12032011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1204
1205 * i386-nat.c (dr_ref_count): Remove unused variable.
1206
e565b837
DE
12072011-11-05 Doug Evans <dje@google.com>
1208
1209 * main.c (captured_main): Set lim_at_start before calling
1210 make_command_stats_cleanup.
1211
0a1c4d10
DE
12122011-11-04 Doug Evans <dje@google.com>
1213
1214 * utils.c: #include "timeval-utils.h".
1215 (cmd_stats): Rename start_time to start_cpu_time.
1216 New member start_wall_time.
1217 (report_command_stats): Report wall time.
1218 (make_command_stats_cleanup): Record start wall time.
1219
a1d705ee
TT
12202011-11-04 Tom Tromey <tromey@redhat.com>
1221
1222 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1223
81de56be
RO
12242011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1225
1226 * coff-pe-read.c: Include defs.h before bfd.h.
1227
3ab1ec27
PM
12282011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1229
1230 PR Python/13345
1231
1232 * python/python.c (python_run_simple_file): Expand tilde in path.
1233
cd829959
PM
12342011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1235
1236 PR Python/13363
1237
1238 * python/py-type.c (typy_lookup_type): Do not return a type in
1239 an exception handler.
1240
080ad648
JK
12412011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 Eli Zaretskii <eliz@gnu.org>
1243
1244 * linux-nat.c (_initialize_linux_nat): Improve help
1245 for `info proc stat', `info proc status', `info proc cwd',
1246 `info proc cmdline' and `info proc exe'.
1247
3065dfb6
SS
12482011-11-02 Stan Shebs <stan@codesourcery.com>
1249
1250 String collection for tracepoints.
1251 * NEWS: Mention string collection.
1252 * common/ax.def (tracenz): New bytecode.
1253 * ax-gdb.h (trace_string_kludge): Declare.
1254 * ax-gdb.c: Include valprint.h and c-lang.h.
1255 (trace_string_kludge): New global.
1256 (gen_traced_pop): Add string case.
1257 (agent_command): Add string case.
1258 * tracepoint.h (decode_agent_options): Declare.
1259 * tracepoint.c: Include cli-utils.h.
1260 (decode_agent_options): New function.
1261 (validate_actionline): Call it.
1262 (encode_actions_1): Ditto.
1263 * target.h (struct target_ops): New method to_supports_string_tracing.
1264 (target_supports_string_tracing): New macro.
1265 * target.c (update_current_target): Add to_supports_string_tracing.
1266 * remote.c (struct remote_state): New field string_tracing.
1267 (remote_string_tracing_feature): New function.
1268 (remote_protocol_features): New feature tracenz.
1269 (remote_supports_string_tracing): New function.
1270 (init_remote_ops): Set to_supports_string_tracing.
1271
f179e162
JK
12722011-11-02 Pedro Alves <pedro@codesourcery.com>
1273 Jan Kratochvil <jan.kratochvil@redhat.com>
1274
1275 * linux-nat.c: Include cli/cli-utils.h.
1276 (enum info_proc_what): New.
1277 (linux_nat_info_proc_cmd): Rename to ...
1278 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1279 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1280 status_f and stat_f from WHAT. Throw error on extra parameters.
1281 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1282 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1283 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1284 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1285 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1286 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1287 `info proc cmdline', `info proc exe' and `info proc all' as real
1288 subcommands of `info proc'.
1289
7b35ec7f 12902011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1291
1292 * Makefile.in: (SFILES): Add skip.c.
1293 (HFILES_NO_SRCDIR): Add skip.h.
1294 (COMMON_OBS): Add skip.o.
1295 * skip.h, skip.c: New.
1296 * breakpoint.h (set_default_breakpoint): Remove.
1297 (get_sal_arch): Declare.
1298 * breakpoint.c: Remove default_breakpoint_valid,
1299 default_breakpoint_address, default_breakpoint_symtab,
1300 default_breakpoint_line, default_breakpoint_pspace variables.
1301 (get_sal_arch): Make public.
1302 (set_default_breakpoint): Remove.
1303 (parse_breakpoint_sals, create_breakpoint, clear_command,
1304 decode_line_spec_1): Remove uses of default_breakpoint variables;
1305 replaced with function calls into stack.c.
1306 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1307 * cli/cli-cmds.c: Add skiplist.
1308 (init_cmd_lists): Initialize skiplist.
1309 (init_cli_cmds): Fix comment (classes of commands appear in
1310 alphabetical order).
1311 * infrun.c (handle_inferior_event): Add check that we don't step into
1312 a function whose pc is marked for skip.
1313 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1314 last_displayed_addr, last_displayed_symtab, last_displayed_line
1315 variables.
1316 (set_last_displayed_sal): New static function.
1317 (print_frame_info): Switch call to set_default_breakpoint to call to
1318 set_last_displayed_sal.
1319 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1320 get_last_displayed_pspace, get_last_displayed_addr,
1321 get_last_displayed_symtab, get_last_displayed_line,
1322 get_last_displayed_sal): New public functions.
1323 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1324 get_last_displayed_pspace, get_last_displayed_addr,
1325 get_last_displayed_symtab, get_last_displayed_line,
1326 get_last_displayed_sal): Declare.
1327
b60e1588
JL
13282011-11-01 Justin Lebar <justin.lebar@gmail.com>
1329
1330 * MAINTAINERS (Write After Approval): Add myself to the list.
1331
d31647d2
YQ
13322011-10-29 Yao Qi <yao@codesourcery.com>
1333
1334 * infcmd.c (disconnect_command): Call disconnect_tracing.
1335
b1d96efd
JK
13362011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1337
1338 Code cleanup.
1339 * symtab.c (skip_prologue_sal): Code reformatting.
1340
4dfb2365
JK
13412011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 PR symtab/13208
1344 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1345 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1346 SAI.
1347
0e5bf2a8
PA
13482011-10-28 Pedro Alves <pedro@codesourcery.com>
1349
1350 * linux-nat.c (linux_nat_filter_event): Remove `options'
1351 parameter, and dead code that used it. If we're handling a
1352 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1353 in our lwp list, re-add it.
1354 (check_zombie_leaders): New.
1355 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1356 wait for children with WNOHANG, and always wait for all children.
1357 Don't check for no resumed children upfront. Simplify wait loop.
1358 Check for zombie thread group leaders after handling all wait
1359 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1360 unwaited-for children left.
1361 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1362 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1363 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1364 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1365
821296b7
SA
13662011-10-28 Sterling Augustine <saugustine@google.com>
1367
1368 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1369 * symtab.c (free_completion_list): New function.
1370 (do_free_completion_list): Likewise.
1371 (default_make_symbol_completion_list_break_on): New variable
1372 back_to. Call make_cleanup and discard_cleanups.
1373 (make_source_files_completion_list): Likewise.
1374
03c3051a
PK
13752011-10-28 Paul Koning <paul_koning@dell.com>
1376
1377 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1378 * NEWS: Mention deep_items.
1379
8e7ebaf5
PA
13802011-10-28 Alen Skondro <askondro@gmail.com>
1381
8de33dc2 1382 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1383 defined.
1384
e0c6ef61
MI
13852011-10-27 Meador Inge <meadori@codesourcery.com>
1386
1387 * MAINTAINERS (Write After Approval): Add myself to the list.
1388
b56d6f31
JB
13892011-10-27 Joel Brobecker <brobecker@adacore.com>
1390
1391 * value.h (read_frame_register_value): Add declaration.
1392 * findvar.c (read_frame_register_value): New function.
1393 (value_from_register): Use read_frame_register_value
1394 instead of get_frame_register_value + value_contents_copy
1395 to get value contents.
1396
d234ef5c
DE
13972011-10-27 Doug Evans <dje@google.com>
1398
1399 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1400 source_script_from_stream if it may have been found on the search path.
1401 * python/py-auto-load.c (source_section_scripts): Pass full path to
1402 source_python_script_for_objfile.
1403 * python/python.c (source_python_script): Delete stream parameter.
1404 All callers updated.
1405 (source_python_script_for_objfile): Ditto.
1406 * python/python-internal.h (source_python_script_for_objfile): Update.
1407 * python/python.h (source_python_script): Update.
1408
d849d44f
TT
14092011-10-27 Tom Tromey <tromey@redhat.com>
1410
1411 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1412 (ada_sals_for_line): Remove declarations.
1413
2231f1fb
KP
14142011-10-27 Kevin Pouget <kevin.pouget@st.com>
1415
1416 Move unwind reasons to an external .def file
1417 * frame.c (frame_stop_reason_string): Rewrite using
1418 unwind_stop_reasons.def.
1419 * frame.h (enum unwind_stop_reason): Likewise.
1420 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1421 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1422 constants for bound-checking.
1423 * unwind_stop_reasons.def: New file.
1424 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1425 instead of a distinct value.
1426
f77b9a5d
PM
14272011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1428
1429 PR python/13331
1430
1431 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1432 (convert_values_to_python): Return on Python tuple allocation
1433 failure. Return NULL on value conversion error.
1434
76dce0be
PM
14352011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1436
1437 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1438 (bppy_set_task): Ditto.
1439 (bppy_delete_breakpoint): Ditto.
1440 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1441 (gdbpy_lookup_global_symbol): Ditto.
1442 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1443 * python/py-frame.c (frapy_is_valid): Ditto.
1444 (frame_info_to_frame_object): Ditto.
1445 * python/py-type.c (typy_lookup_type): Ditto.
1446 (typy_getitem): Ditto.
1447 (typy_has_key): Ditto.
1448 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1449
f17b6955
JB
14502011-10-26 Joel Brobecker <brobecker@adacore.com>
1451
1452 * gdbarch.h: Regenerate.
1453
86ba1042
JB
14542011-10-26 Meador Inge <meadori@codesourcery.com>
1455
1456 * gdbarch.sh (function_list): Use 'pstring' when printing
1457 'gcore_bfd_target'.
1458 * gdbarch.c: Regenerate.
1459
c34fd852
UW
14602011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1461
1462 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1463 and frame caches if PTID refers to all threads of a process.
1464
931bb47f
UW
14652011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1466
1467 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1468 to create_breakpoint.
1469
88aed45e
UW
14702011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1471
1472 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1473 (ppc_sysv_abi_push_dummy_call): Use it.
1474 (do_ppc_sysv_return_value): Likewise.
1475 (ppc64_sysv_abi_push_dummy_call): Likewise.
1476 (ppc64_sysv_abi_return_value): Likewise.
1477
3eaf3fa2
PK
14782011-10-26 Paul Koning <paul_koning@dell.com>
1479
1480 * python/lib/gdb/types.py (deepitems): New function.
1481
913460fc
PK
14822011-10-25 Paul Koning <paul_koning@dell.com>
1483
1484 PR python/13327
1485
1486 * python/py-value.c (value_to_value_object): Remove fetching of
1487 the value if it was lazy.
1488 (valpy_get_is_lazy): New function.
1489 (valpy_fetch_lazy): New function.
1490
2b5b9d09
JB
14912011-10-24 Joel Brobecker <brobecker@adacore.com>
1492
1493 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1494 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1495
e21ffe51
PA
14962011-10-24 Pedro Alves <pedro@codesourcery.com>
1497
1498 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1499 event, in non-stop, if not stopping, make sure the new lwp has
1500 last_resume_kind set to resume_continue. Assert that when we're
1501 resuming the new lwp, its last_resume_kind is resume_continue.
1502
7aee8dc2
PA
15032011-10-24 Pedro Alves <pedro@codesourcery.com>
1504
1505 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1506 already set when marking the event thread as not executing in
1507 non-stop mode.
1508
4b4e080e
PA
15092011-10-24 Pedro Alves <pedro@codesourcery.com>
1510
1511 * infrun.c (handle_inferior_event): Add debug output for
1512 TARGET_WAITKIND_NO_HISTORY.
1513
baacfb07
PM
15142011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1515
1516 * NEWS: Move set/show extended-prompt to "New Options". Expand
1517 description. Fix typos.
1518
8432bc41
PM
15192011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1520
1521 PR python/13310
1522
1523 * python/py-param.c (call_doc_function): Correctly deference on
1524 function exit.
1525
6cda5a20
JB
15262011-10-21 Joel Brobecker <brobecker@adacore.com>
1527
1528 * ada-tasks.c (print_ada_task_info): Fix computation of
1529 number of tasks displayed in command output.
1530
13294f7d
JK
15312011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 Ulrich Weigand <uweigand@de.ibm.com>
1533
1534 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1535 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1536 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1537 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1538 gdbarch_unwind_pc.
1539
460c1c54
CC
15402011-10-20 Cary Coutant <ccoutant@google.com>
1541
1542 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1543 section to...
1544 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1545 flag. Adjust all callers.
1546 (process_psymtab_comp_unit): Remove adjustment for type section.
1547
a10964d1
AR
15482011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1549
1550 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1551 arguments by adding OBJFILE. Instead of getting objfile from
1552 symbol's symtab, use new argument OBJFILE.
1553 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1554 arguments by adding OBJFILE.
1555 * gdb/dwarf2read.c (new_symbol_full): Change call to
1556 cp_scan_for_anonymous_namespaces to match new signature.
1557 * gdb/stabsread.c (define_symbol): Change call to
1558 cp_scan_for_anonymous_namespaces to match new signature.
1559
27ca1a5b
PM
15602011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1561
1562 PR python/13308
1563 PR python/13309
1564
1565 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1566 leak.
1567 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1568 leak. Delete unused variables.
1569
9df2fbc4
PM
15702011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1571
1572 PR python/12656
1573
1574 * python/py-frame.c (frapy_read_var): Use const struct *block.
1575 * python/py-type.c (typy_lookup_typename): Likewise.
1576 (typy_lookup_type): Likewise.
1577 (typy_legacy_template_argument): Likewise.
1578 (typy_template_argument): Likewise.
1579 (gdbpy_lookup_type): Likewise.
1580 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1581 * python/py-block.c (blpy_block_object): Likewise.
1582 (blpy_iter): Likewise.
1583 (blpy_get_start): Likewise.
1584 (blpy_get_end): Likewise.
1585 (blpy_get_function): Likewise.
1586 (blpy_get_superblock): Likewise.
1587 (set_block): Likewise.
1588 (block_to_block_object): Likewise.
1589 (block_object_to_block): Likewise.
1590 (blpy_is_valid): Likewise.
1591 (blpy_get_global_block): New function.
1592 (blpy_get_static_block): New function.
1593 (blpy_is_global): New function.
1594 (blpy_is_static): New function.
1595 * blockframe.c (block_innermost_frame): Likewise.
1596 * valops.c (value_of_variable): Likewise.
1597 * frame.h: Update prototypes.
1598 * python/python-internal.h: Likewise.
1599 * value.h: Likewise.
1600
4743b735
CC
16012011-10-19 Cary Coutant <ccoutant@google.com>
1602
1603 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1604 type_offset field.
1605
6caca83c
CC
16062011-10-19 Cary Coutant <ccoutant@google.com>
1607
1608 * dwarf2read.c (peek_abbrev_code): New function.
1609 (dw2_get_file_names): Check for dummy compilation units.
1610 (create_debug_types_hash_table): Likewise.
1611 (process_psymtab_comp_unit): Likewise.
1612 (load_partial_comp_unit): Likewise.
1613 (load_full_comp_unit): Likewise.
1614
43136979
AR
16152011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1616
1617 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1618 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1619 pt_phdr if PT_PHDR was found.
1620
0a07729b
TT
16212011-10-17 Joost van der Sluis <joost@cnoc.nl>
1622
1623 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1624 type or "<unnamed type"> when there is no name assigned.
1625 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1626 avoid a sigint when no name is assigned.
1627
21ae7a4d
JK
16282011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 Revert:
1631 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1632 * dwarf2expr.c (ctx_no_read_reg): New function.
1633 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1634 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1635 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1636 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1637
32d1c362
DE
16382011-10-16 Doug Evans <dje@google.com>
1639
1640 * NEWS: Document python gdb.printing.register_pretty_printer's new
1641 `replace' parameter.
1642
da096638
KS
16432011-10-14 Keith Seitz <keiths@redhat.com>
1644
1645 PR c++/13225
1646 * eval.c (evaluate_subexp_standard): Do not construct
1647 an array of types; pass the value array directly to
1648 find_overload_match.
1649 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1650 (rank_function): Take an array of values instead of types.
1651 (rank_one_type): Add struct value * parameter.
1652 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1653 (rank_function): For each argument, pass the argument's
1654 value to rank_one_type.
1655 (rank_one_type): Add VALUE parameter.
1656 If the parameter type is a pointer and the argument type
1657 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1658 VALUE is zero.
1659 Update all calls to rank_one_type, passing NULL for new
1660 VALUE parameter.
1661 * valarith.c (value_user_defined_cpp_op): Do not construct
1662 an array of types; pass the value array directly to
1663 find_overload_match.
1664 * valops.c (find_overload_method_list): Take an array of
1665 values instead of types.
1666 Save the type of OBJP for later use.
1667 Update calls to find_oload_champ, and find_oload_champ_namespace.
1668 (find_oload_champ_namespace): Take an array of values instead
1669 of types.
1670 (find_oload_champ_namespace_loop): Likewise.
1671 (find_oload_champ): Likewise.
1672 (classify_oload_match): Inspect all arguments
1673 until INCOMPATIBLE is found. Return the worst badness found
1674 otherwise.
1675 (compare_parameters): Update call to rank_one_type.
1676 * value.h (find_overload_match): Take an array of values instead
1677 of types.
1678
3957565a
JK
16792011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 Drop lazy lm_info reading.
1682 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1683 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1684 (lm_info_read): New function.
1685 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1686 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1687 lm_dynamic_from_link_map.
1688 (lm_next, lm_prev, lm_name): Remove.
1689 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1690 initialization incl. read_memory. No longer use lm_name.
1691 (svr4_free_so): Drop lm_info->lm freeing.
1692 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1693 explicit lm_addr and lm initialization.
1694 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1695 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1696 lm_name.
1697
cb08cc53
JK
16982011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1699 Paul Pluzhnikov <ppluzhnikov@google.com>
1700
1701 * defs.h (struct so_list): New forward declaration.
1702 (make_cleanup_free_so): New declaration.
1703 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1704 (svr4_free_so): Move the function here from downwards. Handle NULL
1705 so->lm_info.
1706 (svr4_free_library_list): New.
1707 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1708 Use more cleanups. Use new parameter ignore_first instead of
1709 ignore_first_link_map_entry.
1710 (svr4_current_sos): New variable ignore_first, initialize it. New
1711 variable back_to, use it for svr4_free_library_list protection.
1712 (svr4_free_so): Remove - move upwards.
1713 * utils.c: Include solist.h.
1714 (do_free_so, make_cleanup_free_so): New functions.
1715
22c05d8a
JK
17162011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1717
1718 Fix internal error regression.
1719 * value.c (value_primitive_field): Handle value_optimized_out. Move
1720 packed bitfields comment.
1721
d930d06e
TT
17222011-10-13 Tom Tromey <tromey@redhat.com>
1723
1724 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1725 always released.
1726
2ff6b080
TT
17272011-10-13 Tom Tromey <tromey@redhat.com>
1728
1729 * python/py-type.c (typy_has_key): Make 'field' const.
1730
d6c5869f
LM
17312011-10-13 Luis Machado <lgustavo@codesourcery.com>
1732
1733 * remote.c (remote_save_trace_data): Invert comparison.
1734
a70633a2
LM
17352011-10-13 Luis Machado <lgustavo@codesourcery.com>
1736
1737 * tracepoint.c (trace_save_command): Use filename instead of
1738 args when printing.
1739
e103e986
JK
17402011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1741
1742 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1743 if .size is 0.
1744
db24da6d
YQ
17452011-10-13 Yao Qi <yao@codesourcery.com>
1746
1747 PR gdb/12703
1748 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1749 whether insn is a 32-bit Thumb-2 instruction.
1750 (thumb_in_function_epilogue_p): Likewise.
1751 (thumb_get_next_pc_raw): Likewise.
1752 (arm_breakpoint_from_pc): Likewise.
1753
1d6edc3c
JK
17542011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1755
1756 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1757 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1758 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1759 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1760 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1761 zero DATA.
1762 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1763 validity.
1764 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1765 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1766 clear DATA on zero SIZE.
1767
adabb602
DE
17682011-10-12 Doug Evans <dje@google.com>
1769
1770 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1771 header->first_die_offset here. All callers updated.
1772
5048e516
JK
17732011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 Fix compatibility with texinfo versions older than 4.12.
1776 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1777 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1778 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1779 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1780 * configure: Regenerate.
1781 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1782 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1783 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1784
0574c78f
GB
17852011-10-12 Gary Benson <gbenson@redhat.com>
1786
1787 * breakpoint.h (pc_at_non_inline_function): Declare.
1788 * breakpoint.c (is_non_inline_function,
1789 pc_at_non_inline_function): New functions.
1790 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1791 if the stop is at a location where functions cannot be inlined.
1792
12d9289a
PA
17932011-10-12 Pedro Alves <pedro@codesourcery.com>
1794
1795 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1796 the core wanted them stopped, or if they now have a pending event
1797 to report.
ecf8e7f5
PA
1798 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1799 down to stop_and_resume_callback.
1800 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1801 having new pending events after calling linux_nat_filter_event.
12d9289a 1802
96408a79
SA
18032011-10-11 Sterling Augustine <saugustine@google.com>
1804
1805 * dwarf2read.c: Undo inadvertent changes in previous commit.
1806
9c6c53f7
SA
18072011-10-11 Sterling Augustine <saugustine@google.com>
1808
1809 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1810 logic.
1811
0e8aefe7
UW
18122011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1813
1814 * symfile.c (separate_debug_file_exists): Fix condition.
1815
349d1385
DM
18162011-10-11 David S. Miller <davem@davemloft.net>
1817
1818 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1819 static.
1820 * regcache.h (regcache_restore): Remove declaration.
1821
205c306f
DM
1822 * gdbarch.sh: New field 'long_long_align_bit'.
1823 * gdbarch.c, gdbarch.h: Regenerate.
1824 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1825 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1826
941b2081
JK
18272011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1828
1829 Revert this part of:
1830 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1831 Support @entry in input expressions.
1832 * c-exp.y (ENTRY, unknown_cpp_name): New.
1833 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1834 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1835 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1836 (name_not_typename: ENTRY): New.
1837 (yylex): Recognize ENTRY.
1838
1839 Reimplement @entry in input expressions.
1840 * c-exp.y (ENTRY): New.
1841 (variable: name_not_typename ENTRY): New.
1842 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1843
3c4d7e12
PA
18442011-10-11 Pedro Alves <pedro@codesourcery.com>
1845
1846 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1847 parent and child's pids as soon as we detect a clone event.
1848 Adjust another debug message.
1849
ea23808b
PA
18502011-10-11 Pedro Alves <pedro@codesourcery.com>
1851
1852 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1853 not zombie instead of reading the whole file.
1854
904578ed
JK
18552011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1856
1857 Fix separate debuginfo warning with "remote:" access.
1858 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1859 * symfile.c (get_file_crc): New function with the code moved from ...
1860 (separate_debug_file_exists): ... this function, specifically variables
1861 buffer and count. New variable verified_as_different, set it. Remove
1862 file_crc initialization. Verify also if both files are not the same
1863 manually, if needed.
1864
51370a33
YQ
18652011-10-11 Yao Qi <yao@codesourcery.com>
1866
1867 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1868 to get address.
1869
0838fb57
DE
18702011-10-10 Doug Evans <dje@google.com>
1871
1872 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1873 libthread_db when we load libpthread or the main symbol file.
1874 (thread_db_inferior_created): New function.
1875 (_initialize_thread_db): Attach inferior_created observer.
1876 * linux-nat.c (linux_child_post_attach): Remove call to
1877 check_for_thread_db.
1878 (linux_child_post_startup_inferior): Ditto.
1879 * objfiles.h (OBJF_MAINLINE): Define.
1880 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1881 allocate_objfile when appropriate.
1882
623bd5b7
UW
18832011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1884
1885 PR gdb/13218
1886 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1887 Remove unused variables.
1888 (get_linux_version): Remove function.
1889 (_initialize_arm_linux_nat): Do not call it.
1890
79395f92
PA
18912011-10-10 Pedro Alves <pedro@codesourcery.com>
1892
1893 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1894 new clone lwp if the core asked it to stop. Don't pass on
1895 unexpected signals to the new clone; leave them pending instead.
1896
eff3df78
PA
18972011-10-10 Pedro Alves <pedro@codesourcery.com>
1898
1899 * linux-nat.c (resume_lwp): Remove redundant debug output.
1900
4b60df3d
PA
19012011-10-10 Pedro Alves <pedro@codesourcery.com>
1902
1903 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1904 last_resume_kind before clearing it, and use the copy instead to
1905 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1906 resume_clear_callback in the non-stop path too.
1907
6501578c
YQ
19082011-10-09 Yao Qi <yao@codesourcery.com>
1909
1910 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1911 Honor OPTIONS and VAL's type.
1912 (common_val_print, value_print): Update to pass one more parameter.
1913
5a56e9c5
DE
19142011-10-09 Doug Evans <dje@google.com>
1915
1916 Add new "alias" command.
1917 * NEWS: Mention new command.
1918 * command.h (valid_user_defined_cmd_name_p): Declare.
1919 * defs.h (make_cleanup_dyn_string_delete): Declare.
1920 * utils.c: #include "dyn-string.h".
1921 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1922 * cli/cli-cmds.c: #include "dyn-string.h".
1923 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1924 (init_cli_cmds): Add new command.
1925 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1926
509f0fd9
JK
19272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 Fix compatibility with older GCCs.
1930 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1931 * stack.c (read_frame_arg): Initialize val_deref.
1932
2bda9cc5
JK
19332011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 Entry values NEWS entries, DWARF disassembly support.
1936 * NEWS: New entry values entry.
1937 (set print entry-values, show print entry-values)
1938 (set debug entry-values, show debug entry-values): New entries.
1939 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1940 indent. Remove variable start. Move header printing out. Respect
1941 INDENT. Support DW_OP_GNU_entry_value.
1942 (locexpr_describe_location_1): Move the header printing here, extend
1943 the disassemble_dwarf_expression passed parameters.
1944
a471c594
JK
19452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1946
1947 Display @entry parameter values even for references.
1948 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1949 coerce_ref_if_computed.
1950 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1951 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1952 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1953 existing push_dwarf_reg_entry_value call. Add new detection calling
1954 dwarf_block_to_dwarf_reg_deref. Update the error message.
1955 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1956 * dwarf2expr.h
1957 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1958 parameter deref_size, describe it in the comment.
1959 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1960 (dwarf_block_to_dwarf_reg_deref): New declaration.
1961 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1962 deref_size, describe it in the function comment. New variables
1963 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1964 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1965 describe it in the function comment. Fetch the alternative block
1966 accoring to DEREF_SIZE.
1967 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1968 (entry_data_value_free_closure, entry_data_value_funcs): New.
1969 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1970 outer_val, target_val, val and addr. Try to fetch and create also
1971 referenced value content.
1972 (pieced_value_funcs): NULL value for coerce_ref.
1973 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1974 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1975 coerce_ref_if_computed.
1976 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1977 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1978 * stack.c (read_frame_arg): Compare also dereferenced values.
1979 * value.c (value_computed_funcs): Make the parameter v const, use
1980 value_lval_const for it.
1981 (value_lval_const, coerce_ref_if_computed): New function.
1982 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1983 * value.h (struct lval_funcs): New field coerce_ref.
1984 (value_computed_funcs): Make the parameter v const.
1985 (value_lval_const, coerce_ref_if_computed): New declarations.
1986
36b11add
JK
19872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1988
1989 Support @entry in input expressions.
1990 * c-exp.y (ENTRY, unknown_cpp_name): New.
1991 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1992 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1993 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1994 (name_not_typename: ENTRY): New.
1995 (yylex): Recognize ENTRY.
1996 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1997 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1998 Likewise.
1999 * parse.c (operator_length_standard): Likewise.
2000 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2001
3343315b
JK
20022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 Display referenced values in backtraces.
2005 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2006 * stack.c (print_frame_arg): Likewise.
2007
ac71a68c
JK
20082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 Make some lval_funcs methods to default on NULL.
2011 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2012 NULL.
2013 (value_assign): Check if lval_computed write method is NULL.
2014 * value.h (struct lval_funcs): Comment NULL values for read and write
2015 methods.
2016
e18b2753
JK
20172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Display @entry parameter values (without references).
2020 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2021 New functions.
2022 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2023 New declarations.
2024 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2025 entry record.
2026 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2027 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2028 functions.
2029 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2030 (loclist_read_variable_at_entry): New function.
2031 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2032 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2033 DW_AT_location, call dwarf_block_to_sp_offset for it.
2034 * frame.h (print_entry_values_no, print_entry_values_only)
2035 (print_entry_values_preferred, print_entry_values_if_needed)
2036 (print_entry_values_both, print_entry_values_compact)
2037 (print_entry_values_default, print_entry_values): New declarations.
2038 (struct frame_arg): New field entry_kind.
2039 (read_frame_arg): New parameter entryargp.
2040 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2041 arg->entry_kind. Optionally print the `@entry' suffix.
2042 (list_args_or_locals): New variable entryarg, initialize it.
2043 Initialize also entry_kind of arg and entryarg. Conditionalize
2044 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2045 xfree for entryarg.error.
2046 * stack.c (print_entry_values_no, print_entry_values_only)
2047 (print_entry_values_preferred, print_entry_values_if_needed)
2048 (print_entry_values_both, print_entry_values_compact)
2049 (print_entry_values_default, print_entry_values_choices)
2050 (print_entry_values): New variables.
2051 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2052 print the `@entry' suffix, possibly in combination for
2053 print_entry_values_compact.
2054 (read_frame_arg): New parameter entryargp, new variables entryval,
2055 entryval_error and val_equal. Read in also entryargp, respect
2056 print_entry_values, compare the values using val_equal, fill in also
2057 argp->entry_kind (together with entryargp->entry_kind).
2058 (print_frame_args): New variable entryarg, initialize it.
2059 Conditionalize print_frame_arg for arg, add print_frame_arg for
2060 entryarg. Call xfree for entryarg.error.
2061 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2062 * symtab.h (struct symbol_computed_ops): New field
2063 read_variable_at_entry.
2064
93d86cef
JK
20652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2066
2067 Code reshuffle.
2068 * frame.h (struct frame_arg): New definition.
2069 (read_frame_arg): New declaration.
2070 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2071 (list_args_or_locals): ... the code here. New variable arg, call
2072 read_frame_arg and list_arg_or_local with it. Unify the
2073 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2074 arg.error.
2075 * stack.c (print_frame_arg): New functiom from the code of
2076 print_frame_args.
2077 (read_frame_arg): New function.
2078 (print_frame_args): Remove variable val. New variable arg, call
2079 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2080
2d6c5dc2
JK
20812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2082
2083 Protect entry values against self tail calls.
2084 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2085 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2086
111c6489
JK
20872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2088
2089 Recognize virtual tail call frames.
2090 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2091 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2092 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2093 * dwarf2-frame-tailcall.c: New file.
2094 * dwarf2-frame-tailcall.h: New file.
2095 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2096 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2097 REGS.PREV only after CIE execution.
2098 (struct dwarf2_frame_cache): New field tailcall_cache.
2099 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2100 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2101 parts, try to find entry_cfa_sp_offset. Call
2102 dwarf2_tailcall_sniffer_first.
2103 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2104 when appropriate.
2105 (dwarf2_frame_dealloc_cache): New function.
2106 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2107 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2108 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2109 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2110 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2111 * dwarf2loc.c (func_addr_to_tail_call_list)
2112 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2113 (call_site_find_chain_1, call_site_find_chain): New.
2114 * dwarf2loc.h (struct call_site_chain): New.
2115 (call_site_find_chain): New declaration.
2116 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2117 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2118 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2119 * stack.c (frame_info): Support also TAILCALL_FRAME.
2120
bb984ff1
JK
21212011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2122
2123 Tail call sites reader implementation.
2124 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2125 fill in TYPE_TAIL_CALL_LIST.
2126 * gdbtypes.h (struct func_type): New field tail_call_list.
2127 (struct call_site): New field tail_call_next.
2128 (TYPE_TAIL_CALL_LIST): New definition.
2129
8e3b41a9
JK
21302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 Implement basic support for DW_TAG_GNU_call_site.
2133 * block.c: Include gdbtypes.h and exceptions.h.
2134 (call_site_for_pc): New function.
2135 * block.h (call_site_for_pc): New declaration.
2136 * defs.h: Include hashtab.h.
2137 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2138 declarations.
2139 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2140 ctx_no_push_dwarf_reg_entry_value.
2141 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2142 (dwarf_block_to_dwarf_reg): New function.
2143 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2144 (ctx_no_push_dwarf_reg_entry_value): New function.
2145 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2146 push_dwarf_reg_entry_value.
2147 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2148 declarations.
2149 * dwarf2loc.c: Include gdbcmd.h.
2150 (dwarf_expr_ctx_funcs): New forward declaration.
2151 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2152 (dwarf_expr_reg_to_entry_parameter)
2153 (dwarf_expr_push_dwarf_reg_entry_value): New.
2154 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2155 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2156 (needs_dwarf_reg_entry_value): New function.
2157 (needs_frame_ctx_funcs): Install it.
2158 (_initialize_dwarf2loc): New function.
2159 * dwarf2loc.h (entry_values_debug): New declaration.
2160 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2161 (read_call_site_scope): New forward declaration.
2162 (process_full_comp_unit): Copy call_site_htab.
2163 (process_die): Support DW_TAG_GNU_call_site.
2164 (read_call_site_scope): New function.
2165 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2166 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2167 (cleanup_htab): Delete.
2168 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2169 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2170 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2171 FIELD_LOC_KIND_DWARF_BLOCK.
2172 * gdbtypes.h (enum field_loc_kind): New entry
2173 FIELD_LOC_KIND_DWARF_BLOCK.
2174 (struct main_type): New loc entry dwarf_block.
2175 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2176 (TYPE_FIELD_DWARF_BLOCK): New.
2177 * python/py-type.c: Include dwarf2loc.h.
2178 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2179 internal_error call on unknown FIELD_LOC_KIND.
2180 * symtab.h (struct symtab): New field call_site_htab.
2181 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2182 (core_addr_hash, core_addr_eq): New functions.
2183
b6cdc2c1
JK
21842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2185
2186 Code reshuffle.
2187 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2188 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2189 calling_convention under func_stuff there.
2190 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2191 (init_type) <TYPE_CODE_FUNC>: Likewise.
2192 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2193 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2194 * gdbtypes.h (enum type_specific_kind): Change
2195 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2196 (struct main_type) <type_specific>: Change calling_convention to
2197 func_stuff. Move calling_convention to ...
2198 (struct func_type): ... this new struct.
2199 (INIT_FUNC_SPECIFIC): New #define.
2200 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2201
181cebd4
JK
22022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2203
2204 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2205 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2206 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2207 ctx->ref_addr_size. Handle its invalid value.
2208 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2209 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2210 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2211 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2212 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2213 (dwarf2_per_cu_ref_addr_size): New function.
2214
c471e790
JK
22152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2216
2217 Code cleanup.
2218 * dwarf2read.c (per_cu_header_read_in): New function.
2219 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2220 variables cu_header_local and cu_headerp.
2221
741f5e3c
JK
22222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2223
2224 Fix initial language detection with -readnow.
2225 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2226 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2227 searches only for global symbols.
2228
a73d2258
JK
22292011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 Fix printed anonymous struct name.
2232 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2233 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2234 (anonymous_struct_prefix): New function.
2235 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2236 (dwarf2_name): Strip for anonymous structs any prefixes.
2237
749fd4ea
DE
22382011-10-07 Doug Evans <dje@google.com>
2239
1fa57852
DE
2240 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2241 `replace'.
2242
690a4937
DE
2243 * python/lib/gdb/printing.py: Whitespace cleanup.
2244
749fd4ea
DE
2245 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2246 warning.
2247
4c38200f
PA
22482011-10-07 Pedro Alves <pedro@codesourcery.com>
2249
2250 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2251 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2252 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2253 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2254 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2255 (arm_linux_remove_watchpoint): Adjust.
2256 * i386-linux-nat.c (i386_linux_dr_set_control)
2257 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2258 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2259 (ia64_linux_remove_watchpoint): Adjust.
2260 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2261 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2262 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2263 (ppc_linux_insert_mask_watchpoint)
2264 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2265 (ppc_linux_remove_watchpoint): Adjust.
2266 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2267 Adjust.
2268
b7ff339d
CV
22692011-10-07 Corinna Vinschen <vinschen@redhat.com>
2270
2271 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2272 (clear_win32_environment): New function for Cygwin to clear out
2273 Win32 environment.
2274 (windows_create_inferior): Prepare new environment from in_env
2275 for Cygwin, too.
2276
f287c1f3
PM
22772011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2278
5631e596 2279 PR python/13264
f287c1f3
PM
2280 * python/py-value.c (valpy_call): Check that arguments are
2281 a tuple.
2282 (is_intlike): Remove call to CHECK_TYPEDEF.
2283 (valpy_nonzero): Catch GDB exceptions.
2284 (valpy_absolute): Ditto.
2285 (valpy_lazy_string): Ditto.
2286 (valpy_call): Ditto.
2287 (valpy_get_is_optimized_out): Ditto.
2288 (valpy_long): Ditto.
2289 (valpy_float): Ditto.
2290 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2291 (valpy_richcompare): Ditto.
2292
03583c20
UW
22932011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2294
2295 * inferior.h (disable_randomization): Declare.
2296 * infrun.c (disable_randomization): New global variable.
2297 (show_disable_randomization): New function.
2298 (set_disable_randomization): Likewise.
2299 (_initialize_infrun): Install set/show disable-randomization
2300 commands.
2301 * linux-nat.c (disable_randomization): Remove.
2302 (show_disable_randomization): Likewise.
2303 (set_disable_randomization): Likewise.
2304 (_initialize_linux_nat): No longer install set/show
2305 disable-randomization commands here.
2306 (linux_nat_supports_disable_randomization): New function.
2307 (linux_nat_add_target): Install it.
2308 * remote.c (PACKET_QDisableRandomization): New enum value.
2309 (remote_protocol_packets): Support QDisableRandomization.
2310 (_initialize_remote): Likewise.
2311 (remote_supports_disable_randomization): New function.
2312 (init_remote_ops): Install it.
2313 (extended_remote_supports_disable_randomization): New function.
2314 (init_extended_remote_ops): Install it.
2315 (extended_remote_disable_randomization): New function.
2316 (extended_remote_create_inferior_1): Call it.
2317 * target.h (struct target_ops): Add to_supports_disable_randomization.
2318 (target_supports_disable_randomization): Add prototype.
2319 * target.c (target_supports_disable_randomization): New function.
2320 (find_default_supports_disable_randomization): Likewise.
2321 (init_dummy_target): Install it.
2322
20c168b5
KP
23232011-10-07 Kevin Pouget <kevin.pouget@st.com>
2324
2325 Allow Python notification of new object-file loadings.
2326 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2327 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2328 Add build rule for this file.
2329 * python/py-event.h (emit_new_objfile_event): New prototype.
2330 (newobjfile): New Python event emitter.
2331 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2332 Python event registry.
2333 * python/py-inferior.c: Include objfiles.h
2334 (python_new_objfile): New function.
2335 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2336 observers.
2337 * python/py-newobjfileevent.c: New file.
2338 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2339 prototype.
2340 * python/python.c (_initialize_python): Add
2341 gdbpy_initialize_new_objfile_event call.
2342 * NEWS: Add item for new Python event "gdb.newobjfile"
2343
b1c8db38
TG
23442011-10-05 Tristan Gingold <gingold@adacore.com>
2345
2346 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2347 Extract the ravenscar task name from the symbol for the atcb.
2348
0dab82e9
PK
23492011-10-04 Paul Koning <paul_koning@dell.com>
2350
2351 * python/py-type.c (typy_make_iter): Add forward declaration.
2352 (typy_fields_items): Use the gdb.Type iterator.
2353
84ad80e6
PK
23542011-10-04 Paul Koning <paul_koning@dell.com>
2355
2356 * NEWS: Add entry for Python gdb.Type mapping methods.
2357
cb6be26b
KP
23582011-10-04 Kevin Pouget <kevin.pouget@st.com>
2359
2360 PR python/12691: Add the inferior to Python exited event
2361 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2362 to exited_event.
2363 * python/py-event.h (emit_exited_event): Likewise
2364 * python/-inferior.c (python_inferior_exit): Likewise
2365
6005b210
JB
23662011-10-03 Joel Brobecker <brobecker@adacore.com>
2367
2368 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2369 in output of -ada-task-info GDB/MI command.
2370
75082e8c
JB
23712011-10-03 Joel Brobecker <brobecker@adacore.com>
2372
2373 * ada-lang.h (struct inferior): Declare.
2374 (print_ada_task_info): Add declaration.
2375 * ada-tasks.c (print_ada_task_info): Make non-static.
2376 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2377 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2378 * mi/mi-main.c: #include "ada-lang.h".
2379 (mi_cmd_list_features): Add "ada-task-info" to the list
2380 of supported features.
2381 (mi_cmd_ada_task_info): New function.
2382
7ed7d719
JB
23832011-10-03 Joel Brobecker <brobecker@adacore.com>
2384
2385 * python/python.c (python_run_simple_file): New function.
2386 (source_python_script, source_python_script_for_objfile):
2387 Replace call to PyRun_SimpleFile by call to
2388 python_run_simple_file.
2389
3fcaed38
PK
23902011-10-03 Paul Koning <paul_koning@dell.com>
2391
2392 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2393 (value_to_value_object): Fetch value if it was lazy.
2394
8e5c319d
JK
23952011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 Code cleanup.
2398 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2399 Rearrange the code for it.
2400
dd11a36c
JB
24012011-10-02 Joel Brobecker <brobecker@adacore.com>
2402
2403 * breakpoint.c (bkpt_print_recreate): Add call to
2404 print_recreate_thread.
2405
723b724b
MF
24062011-09-29 Mike Frysinger <vapier@gentoo.org>
2407
2408 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2409 PTRACE_GETFDPIC_INTERP): Define.
2410
412946b6
YQ
24112011-09-28 Yao Qi <yao@codesourcery.com>
2412
2413 * symfile.c (add_symbol_file_command): Update message on usage.
2414
a73bb892
PK
24152011-09-28 Paul Koning <paul_koning@dell.com>
2416
2417 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2418 (typy_length, typy_get, typy_has_key, typy_make_iter)
2419 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2420 (typy_iterator_iter, typy_iterator_iternext)
2421 (typy_iterator_dealloc): New functions to implement standard
2422 Python mapping methods on gdb.Type object.
2423 (gdb.TypeIterator): New Python type.
2424 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2425
fe10a582
DM
24262011-09-28 David S. Miller <davem@davemloft.net>
2427
2428 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2429 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2430 * sparc-tdep.c (sparc_complex_floating_p): New function.
2431 (sparc32_store_arguments): Handle complex floats.
2432 (sparc32_extract_return_value): Likewise.
2433 (sparc32_store_return_value): Likewise.
2434 (sparc32_stabs_argument_has_addr): Likewise.
2435 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2436 (sparc64_store_floating_fields): Handle complex floats.
2437 (sparc64_store_arguments): Likewise.
2438 (sparc64_store_return_value): Likewise.
2439
c93dbcba
EZ
24402011-09-28 Eli Zaretskii <eliz@gnu.org>
2441
2442 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2443 before the change on 2006-12-09.
2444 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2445 generates the environment block for CreateProcessA, modulo the
2446 Cygwin-specific parts that are not needed here.
2447
f00c55f8
TG
24482011-09-27 Tristan Gingold <gingold@adacore.com>
2449
2450 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2451 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2452 (darwin_solib_get_all_image_info_addr_at_init): New function.
2453 (darwin_solib_read_all_image_info_addr): Likewise.
2454 (darwin_solib_create_inferior_hook): Use the above two functions.
2455 * darwin-nat.c (darwin_execvp): Renames retval to res.
2456 (darwin_read_write_inferior): Update comment.
2457 (darwin_read_dyld_info): New function.
2458 (darwin_xfer_partial): Handle DYLD_INFO.
2459
6710bf39
SS
24602011-09-27 Stan Shebs <stan@codesourcery.com>
2461
2462 Add return address collection for tracepoints.
2463 * tracepoint.c (encode_actions_1): Add case for $_ret.
2464 (validate_actionline): Check for $_ret.
2465 (trace_dump_actions): Ditto.
2466 * ax-gdb.h (gen_trace_for_return_address): Declare.
2467 * ax-gdb.c: Include arch-utils.h.
2468 (gen_trace_for_return_address): New function.
2469 (agent_command): Add return address special case.
2470 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2471 (amd64_gen_return_address): New function.
2472 (amd64_init_abi): Call it.
2473 * i386-tdep.c: Include ax.h and ax-gdb.h.
2474 (i386_gen_return_address): New function.
2475 (i386_init_abi): Call it.
2476 * arch-utils.h (default_gen_return_address): Declare.
2477 * arch-utils.c (default_gen_return_address): New function.
2478 * gdbarch.sh (gen_return_address): New method.
2479 * gdbarch.h, gdbarch.c: Regenerate.
2480
e04e5beb
JM
24812011-09-23 Joseph Myers <joseph@codesourcery.com>
2482
2483 PR gdb/13079
2484 * i386-tdep.c (i386_frame_align): New.
2485 (i386_gdbarch_init): Use i386_frame_align.
2486
f3d6df6d
YQ
24872011-09-23 Yao Qi <yao@codesourcery.com>
2488
2489 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2490 to get address.
2491
e69860f1
TG
24922011-09-22 Tristan Gingold <gingold@adacore.com>
2493
2494 * fork-child.c (fork_inferior): Add exec_fun parameter.
2495 Call exec_fun or execvp.
2496 * inferior.h: Adjust prototype.
2497 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2498 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2499 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2500 * procfs.c (procfs_create_inferior): Ditto.
2501 * darwin-nat.c (darwin_execvp): New function.
2502 (darwin_create_inferior): Use it.
2503
4b51d87b
YQ
25042011-09-22 Yao Qi <yao@codesourcery.com>
2505
2506 * infrun.c (context_switch): Print debug message when switching to
2507 a different thread.
2508
56b9d9ac
UW
25092011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2510
2511 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2512 complex and vector types.
2513 (s390_return_value_convention): Likewise.
2514
2515 (s390_value_from_register): Call check_typedef.
2516 (extend_simple_arg): Likewise.
2517 (alignment_of): Likewise.
2518 (s390_push_dummy_call): Likewise.
2519 (s390_return_value): Likewise.
2520
b2cd6b29
JM
25212011-09-21 Joseph Myers <joseph@codesourcery.com>
2522
2523 * event-top.c (async_disconnect): If an exception is thrown from
2524 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2525 catch_errors.
2526 * top.c (quit_cover): Return void and take no arguments.
2527 * top.h (quit_cover): Update prototype.
2528
67ba4e42
JM
25292011-09-20 Joseph Myers <joseph@codesourcery.com>
2530
2531 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2532 current_uiout, not uiout.
2533
562f943b
DE
25342011-09-19 Doug Evans <dje@google.com>
2535
2536 * python/py-auto-load.c (source_section_scripts): Fix file
2537 descriptor leak.
2538 * python/python.c (source_python_script_for_objfile): Tweak comments.
2539
34518530
YQ
25402011-09-18 Yao Qi <yao@codesourcery.com>
2541 Ulrich Weigand <ulrich.weigand@linaro.org>
2542
2543 Support displaced stepping for Thumb 16-bit insns.
2544 * arm-tdep.c (THUMB_NOP) Define.
2545 (thumb_copy_unmodified_16bit): New.
2546 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2547 (thumb_copy_alu_reg): New.
2548 (arm_copy_svc): Move some common code to ...
2549 (install_svc): ... here. New.
2550 (thumb_copy_svc): New.
2551 (install_pc_relative): New.
2552 (thumb_copy_pc_relative_16bit): New.
2553 (thumb_decode_pc_relative_16bit): New.
2554 (thumb_copy_16bit_ldr_literal): New.
2555 (thumb_copy_cbnz_cbz): New.
2556 (cleanup_pop_pc_16bit_all): New.
2557 (thumb_copy_pop_pc_16bit): New.
2558 (thumb_process_displaced_16bit_insn): New.
2559 (thumb_process_displaced_32bit_insn): New.
2560 (thumb_process_displaced_insn): process thumb instruction.
2561
2562 Support displaced stepping for Thumb 32-bit insns.
2563 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2564 (thumb2_copy_preload): New.
2565 (thumb2_copy_copro_load_store): New.
2566 (thumb2_copy_b_bl_blx): New.
2567 (thumb2_copy_alu_imm): New.
2568 (thumb2_copy_load_reg_imm): New.
2569 (thumb2_copy_load_literal): New
2570 (thumb2_copy_block_xfer): New.
2571 (thumb_32bit_copy_undef): New.
2572 (thumb_32bit_copy_unpred): New.
2573 (thumb2_decode_ext_reg_ld_st): New.
2574 (thumb2_decode_svc_copro): New.
2575 (decode_thumb_32bit_store_single_data_item): New.
2576 (thumb_copy_pc_relative_32bit): New.
2577 (thumb_decode_pc_relative_32bit): New.
2578 (decode_thumb_32bit_ld_mem_hints): New.
2579 (thumb2_copy_table_branch): New
2580 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2581 instructions.
2582
2b16b2e3
YQ
25832011-09-18 Yao Qi <yao@codesourcery.com>
2584
2585 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2586 (install_b_bl_blx): Likewise.
2587
0f6f04ba
YQ
25882011-09-17 Yao Qi <yao@codesourcery.com>
2589
2590 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2591 (install_load_store): ... this. New.
2592 Change parameter BYTE to SIZE.
2593 (arm_copy_ldr_str_ldrb_strb): Update caller.
2594 (arm_decode_ld_st_word_ubyte): Update caller.
2595
e2d96639
YQ
25962011-09-17 Yao Qi <yao@codesourcery.com>
2597
2598 * infrun.c (displaced_step_fixup): Move some code ...
2599 (displaced_step_restore): ... here. New function.
2600 (handle_inferior_event): Cleanup displaced stepping state for both
2601 child and parent when get forked or vforked event.
2602 * regcache.c (get_thread_arch_aspace_regcache): New function.
2603 get_thread_arch_regcache (): Call it.
2604
a8123151
JB
26052011-09-16 Joel Brobecker <brobecker@adacore.com>
2606
2607 * ada-tasks.c (print_ada_task_info): New function, merging
2608 short_task_info and info_tasks together. Reimplement using
2609 ui-out instead of printing to stdout directly. Move the code
2610 building and checking the task list here, instead of leaving it
2611 in info_tasks_command.
2612 (info_task): Move the code building and checking the task
2613 list here, instead of leaving it in info_tasks_command.
2614 (info_tasks_command): Delete code building and checking
2615 the task list - moved elsewhere. Update calls to info_tasks
2616 and info_task.
2617
fbf06824
JB
26182011-09-16 Joel Brobecker <brobecker@adacore.com>
2619
2620 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2621
34a0bc90
JB
26222011-09-16 Joel Brobecker <brobecker@adacore.com>
2623
2624 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2625
79779fa9
JB
26262011-09-16 Joel Brobecker <brobecker@adacore.com>
2627
2628 * ada-lang.h (ada_build_task_list): Remove parameter
2629 `warn_if_null'.
2630 * ada-tasks.c (ada_build_task_list): Remove parameter
2631 `warn_if_null'. Adjust implementation and documentation.
2632 (valid_task_id, ada_get_environment_task)
2633 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2634 (info_tasks_command): Adjust implementation.
2635 (task_command): Likewise.
2636 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2637 to ada_build_task_list.
2638
e225eb91
JB
26392011-09-16 Joel Brobecker <brobecker@adacore.com>
2640
2641 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2642 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2643 (ada_tasks_inferior_data_handle): New static global.
2644 (get_ada_tasks_inferior_data): New function.
2645 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2646 (ada_get_environment_task, iterate_over_live_ada_tasks)
2647 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2648 Adjust.
2649 (ada_set_current_inferior_known_tasks_addr): New function.
2650 (read_known_tasks, ada_build_task_list, short_task_info)
2651 (info_tasks, info_task, info_tasks_command, task_command_1)
2652 (task_command, ada_task_list_changed): Adjust.
2653 (ada_tasks_invalidate_inferior_data): New function.
2654 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2655 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2656 * ada-lang.h (struct inferior): Add declaration.
2657 (ada_task_list_changed): Update profile.
2658 * remote-wtx-pd.c: #include "inferior.h".
2659 (switch_to_pd_internal): Update call to ada_task_list_changed.
2660
6da9ca05
JB
26612011-09-16 Joel Brobecker <brobecker@adacore.com>
2662
2663 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2664 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2665 (atcb_fieldno): Delete these static globals.
2666 (struct ada_tasks_pspace_data): New struct.
2667 (ada_tasks_pspace_data_handle): New static global.
2668 (get_ada_tasks_pspace_data): New function.
2669 (ada_tasks_invalidate_pspace_data): New function.
2670 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2671 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2672 (_initialize_tasks): Create this module's per-progspace
2673 data handle.
2674
dccd3cbd
JB
26752011-09-16 Joel Brobecker <brobecker@adacore.com>
2676
2677 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2678
f877b031
TG
26792011-09-16 Tristan Gingold <gingold@adacore.com>
2680
2681 * fork-child.c (fork_inferior): Update comment. Use alloca
2682 instead of xmalloc for argv. Move len and shell_command
2683 declarations in the block where they are used.
2684 Only call execvp. Factorize failure code.
2685
ae0c443d
JK
26862011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2687
2688 Code cleanup.
2689 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2690 `exp_element' instead of an element of the same and make the function
2691 static.
2692 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2693 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2694 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2695 Change argument of `write_exp_elt' function call.
2696 Remove extra spaces from comments.
2697 * parser-defs.h (write_exp_elt): Remove prototype.
2698
5af65ec0
PK
26992011-09-15 Paul Koning <paul_koning@dell.com>
2700
2701 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2702 count of item appended to list.
2703 * python/py-type.c (typy_fields): Likewise.
2704
72be8ccc
PK
27052011-09-15 Paul Koning <paul_koning@dell.com>
2706
883640a8 2707 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2708
92f6badc
KP
27092011-09-15 Kevin Pouget <kevin.pouget@st.com>
2710
2711 PR threads/12628
2712 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2713 processes with multiple threads.
2714 (inf_has_multiple_thread_cb): New function.
2715 (inf_has_multiple_threads): New function.
2716
0672bf41 27172011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2718
2719 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2720 * python/py-inferior.c (GdbMethods): New Python method definition.
2721
6839b47f
KP
27222011-09-15 Kevin Pouget <kevin.pouget@st.com>
2723
2724 Handle multiple breakpoint hits in Python interface:
2725 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2726 variable to breakpoints.
2727 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2728 bps instead of single breakpoint. Fix some space typos.
2729 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2730 variable to breakpoints.
2731
672f9b60
KP
27322011-09-15 Kevin Pouget <kevin.pouget@st.com>
2733
2734 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2735 note if the breakpoint is internal.
2736
43675ae4
KP
27372011-09-15 Kevin Pouget <kevin.pouget@st.com>
2738
0672bf41 2739 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2740
15148d6a
PA
27412011-09-14 Pedro Alves <pedro@codesourcery.com>
2742
2743 * infrun.c (prepare_for_detach, wait_for_inferior)
2744 (fetch_inferior_event): Don't flush the register cache.
2745 * remote.c (struct stop_reply) <regcache>: Add comment.
2746
d83e736b
JK
27472011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2748
2749 Remove excessive DWARF expressions memory duplication.
2750 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2751 for block.data.
2752 (indirect_pieced_value): Remove variable result. Remove variable
2753 back_to and its use for baton.data.
2754 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2755 block.data.
2756 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2757 Update the function comment.
2758
c65b3e0d
PA
27592011-09-13 Pedro Alves <pedro@codesourcery.com>
2760
2761 * inferior.h (ALL_INFERIORS): New.
2762 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2763 for a stopped thread.
2764 (thread_db_find_new_threads): Look for threads in all inferiors.
2765
a1398e0c
PA
27662011-09-13 Pedro Alves <pedro@codesourcery.com>
2767
2768 * breakpoint.c (update_watchpoint): Handle the case of the
2769 watchpoint to update not being in the breakpoint list yet.
2770 (hw_watchpoint_use_count): New, factored out from
2771 hw_watchpoint_used_count.
2772 (hw_watchpoint_used_count): Rename to ...
2773 (hw_watchpoint_used_count_others): ... this. Add `except'
2774 parameter. Don't count resources of `except'. Use
2775 hw_watchpoint_use_count.
2776
30596231
PA
27772011-09-13 Pedro Alves <pedro@codesourcery.com>
2778
2779 * gdbthread.h (enum thread_state): Moved here.
2780 (struct thread_info): Rename `executing_' field to `executing' and
2781 `state_' to `state'.
2782 * thread.c (enum thread_state): Moved to gdbthread.h.
2783 (new_thread, add_thread_silent, delete_thread_1)
2784 (any_live_thread_of_process, thread_alive, set_running)
2785 (set_running, is_thread_state, any_running, is_executing)
2786 (set_executing, finish_thread_state, print_thread_info)
2787 (do_captured_thread_select): Adjust.
2788
bede5f5f
JK
27892011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2792 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2793
4801a9a3
PA
27942011-09-12 Pedro Alves <pedro@codesourcery.com>
2795 Matt Rice <ratmice@gmail.com>
2796
2797 PR gdb/13175
2798
2799 * interps.c (struct interp) <interpreter_out>: Delete field.
2800 (interp_new): Remove the data and uiout parameters and adjust.
2801 (interp_set): Only set the current_uiout from the interpreter's
2802 uiout after initializing the interpreter. Adjust call to
2803 init_proc.
2804 (interp_ui_out): Adjust to call procs->ui_out_proc.
2805 (interp_data, interp_name): New.
2806 * interps.h (interp_init_ftype): Add `self' parameter.
2807 (interp_ui_out_ftype): New typedef.
2808 (struct interp_procs) <ui_out_proc>: New method pointer.
2809 (interp_new): Remove the data and uiout parameters.
2810 (interp_data, interp_name): Declare.
2811 * tui/tui-interp.c (tui_init): Adjust prototype.
2812 (tui_ui_out): New.
2813 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2814 tui_out here. Adjust call to interp_new.
2815 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2816 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2817 (cli_ui_out): New.
2818 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2819 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2820 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2821 Initialize mi->uiout depending on the mi_version as extracted from
2822 the interpreter's name.
2823 (mi_ui_out): New.
2824 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2825 interp_new. Don't allocate the ui_out's of the interpreters here.
2826
d0afda03 28272011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2828
d0afda03 2829 * solib.c (solib_used): New function.
59145f8c
AR
2830 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2831 by another so_list object before freeing it.
2832
bdaf8d4a
JK
28332011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Code cleanup.
2836 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2837 values.
2838
df15bd07
JK
28392011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2840
2841 Code cleanup.
2842 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2843 (amd64_skip_xmm_prologue): ... this new function. Describe its
2844 parameters. No longer use amd64_prologue_line_bug.
2845 * defs.h (producer_is_gcc_ge_4): New declaration.
2846 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2847 (process_full_comp_unit): Update its caller. Remove
2848 amd64_prologue_line_bug initialization.
2849 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2850 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2851
25289eb2
PA
28522011-09-09 Pedro Alves <pedro@codesourcery.com>
2853
2854 * linux-nat.h (enum resume_kind): New.
2855 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2856 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2857 resume_stop on the new lwp.
25289eb2
PA
2858 (add_lwp): Set last_resume_kind as resume_continue by default.
2859 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2860 (resume_lwp): New, factored out from resume_callback. Also check
2861 for pending status in lp->waitstatus.
2862 (resume_callback): Reimplement.
2863 (resume_clear_callback): Set last_resume_kind as resume_stop.
2864 (resume_set_callback): Set last_resume_kind as resume_continue.
2865 (linux_nat_resume, linux_handle_extended_wait): Set
2866 last_resume_kind.
2867 (running_callback): Also check lp->waitstatus for pending events.
2868 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2869 is resume_step.
2870 (stop_and_resume_callback): Don't re-resume if the core wanted the
2871 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2872 using an invalidated pointer.
2873 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2874 SIGSTOPs if the core wanted the LWP to stop.
2875 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2876 wanted the lwp to stop. If the core wanted the lwp to stop, and
2877 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2878 of TARGET_SIGNAL_STOP.
2879 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2880 here. Instead, signal the lwp, and set the last_resume_kind to
2881 resume_stop.
2882
f687d035
PA
28832011-09-09 Pedro Alves <pedro@codesourcery.com>
2884
2885 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2886 -1 (error), if the lwp exits right after attaching.
2887
bc587a6b
DE
28882011-09-08 Doug Evans <dje@google.com>
2889
63d97a20
DE
2890 * py-cmd.c: Some minor formatting fixes.
2891 (gdbpy_parse_command_name): Rename text arg to name, make const.
2892 All callers updated.
2893 * python-internal.h (gdbpy_parse_command_name): Update.
2894
bc587a6b
DE
2895 * cli/cli-decode.c (add_cmd): Add comment.
2896
08711b9a
JK
28972011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 PR breakpoints/12435
2900 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2901 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2902 * dwarf2read.c (process_full_comp_unit): Initialize
2903 amd64_prologue_line_bug.
2904 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2905
b2e7f004
JK
29062011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2907
2908 Fix TUI screen corruption.
2909 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2910 batch_flag.
2911
8afd712c
JK
29122011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 * findvar.c (read_var_value): Never return NULL, throw an error
2915 instead. Update the function comment. State symbol name in the error
2916 messages.
2917 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2918 read_var_value.
2919 * stack.c (print_frame_args): Likewise.
2920 * valops.c (value_of_variable): Likewise.
2921
b99b5f66
JK
29222011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2923
2924 * stack.c (print_frame_args): New variable except. Wrap
2925 read_var_value and common_val_print into TRY_CATCH.
2926
85bc8cb7
JK
29272011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2928
2929 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2930 caller to value_of_this.
2931 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2932 Twice.
2933 * valops.c (value_of_this): Remove parameter complain and variable ret.
2934 Update function comment. Never return NULL by this code.
2935 (value_of_this_silent): New function.
2936 * value.h (value_of_this): Remove parameter complain.
2937 (value_of_this_silent): New declaration.
2938
ede1849f
YQ
29392011-09-07 Yao Qi <yao@codesourcery.com>
2940
2941 * gdbthread.h (struct thread_info): Remove fields
2942 `stepping_through_solib_after_catch' and
2943 `stepping_through_solib_catchpoints'.
2944 * infrun.c (init_thread_stepping_state): Update.
2945 (process_event_stop_test, currently_stepping): Update.
2946 (currently_stepping_or_nexting_callback): Update.
2947
6aa27652
YQ
29482011-09-07 Yao Qi <yao@codesourcery.com>
2949
2950 * gdbthread.h (struct thread_info): Comment on field
2951 `step_after_step_resume_breakpoint'.
2952
00db5b94
PA
29532011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2954
2955 * remote.c (remote_console_output): Reindent.
2956
861152be
LM
29572011-09-06 Luis Machado <lgustavo@codesourcery.com>
2958
2959 * frame.c (has_stack_frames): Check for currently selected
2960 traceframe.
2961
ab821bc6
PA
29622011-09-06 Pedro Alves <pedro@codesourcery.com>
2963
2964 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2965 (set_async_annotation_level, set_async_prompt, pop_prompt)
2966 (push_prompt, new_async_prompt): Delete declarations.
2967 * top.h (get_prompt, set_prompt): Change prototype.
2968 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2969 declarations.
2970 * top.c (command_loop):
2971 (top_prompt): New global.
2972 (get_prefix, set_prefix, get_suffix, ): Delete.
2973 (get_prompt, set_prompt): Rewrite.
2974 (show_new_async_prompt): Rename to ...
2975 (show_prompt): ... this.
2976 (init_main): Adjust. Don't handle --annotate=2 here.
2977 * event-top.c (new_async_prompt): Delete.
2978 (the_prompts): Delete.
2979 (more_to_come): Make static.
2980 (display_gdb_prompt): Use top_level_prompt() to compute the top
2981 level prompt, and don't notify the before_prompt observers
2982 directly here. Always trick readline into not trying to display
2983 the prompt if sync_execution and displaying the primary prompt.
2984 If displaying a local/secondary prompt, always show it, even if
2985 sync_execution is set.
2986 (change_annotation_level): Delete.
2987 (top_level_prompt): New, based on change_annotation_level.
2988 (push_prompt, pop_prompt): Delete.
2989 (async_disable_stdin): No longer pushes prompt.
2990 (command_line_handler): No longer pushes or pops prompt. If more
2991 input is expected, call display_gdb_prompt with an explicit empty
2992 prompt.
2993 (async_stop_sig): Adjust.
2994 (set_async_annotation_level, set_async_prompt): Delete.
2995 * python/python.c (before_prompt_hook): Adjust.
2996
f1d90504
PA
29972011-09-05 Pedro Alves <pedro@codesourcery.com>
2998
2999 PR cli/13110
3000
3001 * infrun.c (fetch_inferior_event): Check if there's a selected
3002 thread before checking if the selected thread is executing.
3003
0f641c01
PA
30042011-09-05 Pedro Alves <pedro@codesourcery.com>
3005
3006 * inf-loop.c (execute_command): Don't check if the current thread
3007 if running before synchronously waiting for command completion.
3008 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3009 here.
3010 (normal_stop): Call async_enable_stdin here.
3011 * inf-loop.c (inferior_event_handler): Don't call
3012 async_enable_stdin, nor handle "set exec-done-display" here.
3013
30368258 30142011-09-04 Joel Brobecker <brobecker@adacore.com>
3015
3016 GDB 7.3.1 released.
3017
31916278
JB
30182011-09-04 Joel Brobecker <brobecker@adacore.com>
3019
3020 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3021
e8d56f18
JB
30222011-09-04 Joel Brobecker <brobecker@adacore.com>
3023
3024 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3025
5dd05d8c
JK
30262011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3029
7d8e6458 30302011-09-02 Matt Rice <ratmice@gmail.com>
3031
3032 PR gdb/10720
3033 * event-top.c (cli_command_loop): Replace readline setup with
3034 direct call to display_gdb_prompt.
3035 (display_gdb_prompt): Do not call observer mechanism during
3036 synchronous execution.
3037
84636d28
PA
30382011-09-02 Pedro Alves <pedro@codesourcery.com>
3039
3040 * linux-nat.c (in_pid_list_p): New.
3041 (linux_record_stopped_pid): Delete.
3042 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3043 already attached to the LWP. Return an indication if so.
3044 (linux_nat_filter_event): Adjust.
3045 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3046 returning an indication to ignore this thread.
3047
b4a14fd0
PA
30482011-09-02 Pedro Alves <pedro@codesourcery.com>
3049
3050 * top.c: Include interps.h.
3051 (execute_command): If the target can async, but the interpreter is
3052 in sync mode, synchronously wait for the command to finish before
3053 returning.
3054 (execute_command_to_string): Force the interpreter to sync mode.
3055 * infrun.c: Include interps.h.
3056 (fetch_inferior_event): Don't restore the prompt yet if the
3057 interpreter is in sync mode.
3058 * interps.c (interpreter_async): New global.
3059 * interps.h (interpreter_async): Declare.
3060 * inf-loop.c: Include interps.h.
3061 (inferior_event_handler): Don't print the language change or run
3062 breakpoint commands yet if the interpreter in is sync mode.
3063 * main.c (captured_command_loop): Flip the interpreter to async
3064 mode.
3065 * cli/cli-script.c: Include interps.h.
3066 (execute_user_command, while_command, if_command): Force the
3067 interpreter to sync mode.
3068 * python/python.c: Include interps.h.
3069 (python_command, execute_gdb_command): Force the interpreter to
3070 sync mode.
3071
c709acd1
PA
30722011-09-02 Pedro Alves <pedro@codesourcery.com>
3073
3074 * value.c (show_convenience): Catch errors thrown while printing
3075 each internal variable.
3076 * infrun.c (validate_siginfo_access): New function.
3077 (siginfo_value_read, siginfo_value_write): Call it.
3078
9655e943
JK
30792011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3080
3081 Revert:
3082 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3083 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3084 attribute.
3085
cb457ae2
YQ
30862011-08-29 Yao Qi <yao@codesourcery.com>
3087
3088 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3089 (cmp_name): New.
3090 (enable_break2): Update caller.
3091 * solib-frv.c (bfd_lookup_symbol): Removed.
3092 (cmp_name): New.
3093 (enable_break2): Update caller.
3094 * solib-pa64.c (bfd_lookup_symbol): Removed.
3095 (cmp_name): New.
3096 * solib-svr4.c (bfd_lookup_symbol): Removed.
3097 (cmp_name_and_sec_flags): New.
3098 (enable_break): Update caller.
3099 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3100 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3101 (gdb_bfd_lookup_symbol): New.
3102 * solib.h: Functions declarations.
3103
83d1a36a
YQ
31042011-08-29 Yao Qi <yao@codesourcery.com>
3105
3106 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3107 and solib-dsbt.o.
3108
c04b3e8f
JK
31092011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3110
3111 Fix TUI stepi on code without symbols.
3112 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3113 current PC instead.
3114
cb0fd152
JK
31152011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 Code cleanup.
3118 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3119 and the static keyword.
3120 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3121 Make prefix an array.
3122 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3123 * mi/mi-main.c (get_register): Remove stb initialization and the static
3124 keyword.
3125
91174723
JK
31262011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 Code cleanup - make mi_opt const.
3129 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3130 opts const.
3131 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3132 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3133 (mi_cmd_env_dir): Likewise.
3134 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3135 (mi_cmd_target_file_put): Likewise.
3136 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3137 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3138 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3139 (mi_valid_noargs): Make opts const.
3140 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3141 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3142 (mi_cmd_data_read_memory): Likewise.
3143 (mi_cmd_data_read_memory_bytes): Likewise.
3144 (mi_cmd_data_write_memory): Likewise.
3145
5068b8e8 31462011-08-26 Matt Rice <ratmice@gmail.com>
3147
3148 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3149 bcache_xmalloc, replace bcache_xmalloc with call to
3150 psymbol_bcache_init for psymbol_cache.
3151 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3152
a4f2ce05
JK
31532011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3154
3155 * inf-loop.c (inferior_event_handler): Add exception_print in
3156 INF_EXEC_COMPLETE.
3157
353d1d73
JK
31582011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3159
3160 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3161 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3162 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3163 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3164 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3165 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3166 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3167 * infrun.c (fetch_inferior_event): Call
3168 make_bpstat_clear_actions_cleanup.
3169 * top.c (execute_command): New variable cleanup_if_error, call
3170 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3171 * utils.c (do_bpstat_clear_actions_cleanup)
3172 (make_bpstat_clear_actions_cleanup): New functions.
3173
3ced3da4
PA
31742011-08-26 Pedro Alves <pedro@codesourcery.com>
3175
3176 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3177 either the parent or the child forks. Rename a couple locals.
3178
a9f4bb21
PA
31792011-08-26 Pedro Alves <pedro@codesourcery.com>
3180
3181 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3182 library call. Avoid reading the `status' local if all waitpid
3183 calls failed.
3184
e5798bef
PA
31852011-08-26 Pedro Alves <pedro@codesourcery.com>
3186
3187 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3188 opening /proc/PID/task always succeeds.
3189
edb2aadf
AR
31902011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3191
3192 * linespec.c (symtab_from_filename): Check for the end of string.
3193
0d932b2f
MK
31942011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3195
3196 PR mi/11912
3197 * varobj.c (cplus_describe_child): Add the keyword
3198 'class' to the output of the method when dealing
3199 with a cast to a base class.
3200
e93ca019
JK
32012011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 No functionality change.
3204 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3205 function comment a reference, new variables tp and bs, move here code
3206 from throw_exception.
3207 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3208 describe it in the comment.
3209 * exceptions.c (throw_exception): Remove variable tp, move the code for
3210 bpstat_clear_actions to bpstat_clear_actions.
3211
13da1c97
LM
32122011-08-24 Luis Machado <lgustavo@codesourcery.com>
3213
3214 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3215 * linux-nat.c: Include linux-procfs.h.
3216 (linux_proc_get_tgid): Move to ...
3217 * common/linux-procfs.c: ... here. New file.
3218 * common/linux-procfs.h: New file.
3219 * linux-thread-db.c: Include linux-procfs.h.
3220 * Makefile.in: Update dependencies.
3221 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3222 * config/arm/linux.mh: Likewise.
3223 * config/i386/linux.mh: Likewise.
3224 * config/i386/linux64.mh: Likewise.
3225 * config/ia64/linux.mh: Likewise.
3226 * config/m32r/linux.mh: Likewise.
3227 * config/m68k/linux.mh: Likewise.
3228 * config/mips/linux.mh: Likewise.
3229 * config/pa/linux.mh: Likewise.
3230 * config/pa/linux.mh: Likewise.
3231 * config/powerpc/linux.mh: Likewise.
3232 * config/powerpc/ppc64-linux.mh: Likewise.
3233 * config/powerpc/spu-linux.mh: Likewise.
3234 * config/sparc/linux.mh: Likewise.
3235 * config/sparc/linux64.mh: Likewise.
3236 * config/xtensa/linux.mh: Likewise.
3237
4e5c165d
HZ
32382011-08-24 Hui Zhu <teawater@gmail.com>
3239
3240 * tracepoint.c (cond_string_is_same): New function.
3241 (find_matching_tracepoint): Add condition check
3242 by cond_string_is_same.
3243
6e2f5b22
JK
32442011-08-23 Josh Matthews <josh@joshmatthews.net>
3245
3246 Fix build error in Darwin port.
3247 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3248
abf85f46
JK
32492011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 Code cleanup.
3252 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3253 (command_line_is_silent): New function.
3254 (bpstat_do_actions_1): No longer use commands_left, use
3255 command_line_is_silent for commands.
3256 (bpstat_alloc): Remove clearing of commands_left.
3257 (bpstat_stop_status): Remove initialization of commands_left, use
3258 command_line_is_silent.
3259 * breakpoint.h (struct bpstats): Remove commands_left.
3260
3a93a0c2
KS
32612011-08-18 Keith Seitz <keiths@redhat.com>
3262
3263 PR c++/12266
3264 * cp-name-parser.y (struct demangle_info): Remove unused
3265 member PREV.
3266 (d_grab): Likewise.
3267 (allocate_info): Change return type to struct demangle_info *.
3268 Always allocate a new demangle_info.
3269 Remove unused PREV pointer.
3270 (cp_new_demangle_parse_info): New function.
3271 (cp_demangled_name_parse_free): New function.
3272 (do_demangled_name_parse_free_cleanup): New function.
3273 (make_cleanup_cp_demangled_name_parse_free): New function.
3274 (cp_demangled_name_to_comp): Change return type to
3275 struct demangle_parse_info *.
3276 Allocate a new storage for each call.
3277 (main): Update usage for cp_demangled_name_to_comp
3278 API change.
3279 * cp-support.h (struct demangle_parse_info): New structure.
3280 (cp_demangled_name_to_comp): Update API change for
3281 return type.
3282 (cp_new_demangle_parse_info): Declare.
3283 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3284 (cp_demangled_name_parse_free): Declare.
3285 * cp-support.c (cp_canonicalize_string): Update API
3286 change for cp_demangled_name_to_comp.
3287 (mangled_name_to_comp): Likewise.
3288 Return struct demangle_parse_info, too.
3289 (cp_class_name_from_physname): Update mangled_name_to_comp
3290 API change.
3291 (method_name_from_physname): Likewise.
3292 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3293 (cp_remove_params): Likewise.
3294 * python/py-type.c (typy_legacy_template_argument): Likewise.
3295
3296 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3297 (cp_merge_demangle_parse_infos): Declare.
3298 * cp-support.c (ignore_typedefs): New file global.
3299 (copy_string_to_obstack): New function.
3300 (inspect_type): New function.
3301 (replace_typedefs): New function.
3302 (replace_typedefs_qualified_name): New function.
3303 (cp_canonicalize_string_no_typedefs): New function.
3304 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3305 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3306 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3307 instead of cp_canonicalize_string.
3308 (find_method): Likewise.
3309 (decode_compound): Before looking up the name, call
3310 cp_canonicalize_string_no_typedefs.
3311 (decode_variable): Likewise.
3312
fa3a4f15
PM
33132011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3314 Tom Tromey <tromey@redhat.com>
3315 Matt Rice <ratmice@gmail.com>
3316
3317 * python/lib/gdb/prompt.py: New file.
3318 * python/lib/gdb/command/prompt.py: New file.
3319 * NEWS: Document set extended-prompt and gdb.prompt library
3320
85661b1e
YQ
33212011-08-16 Yao Qi <yao@codesourcery.com>
3322
3323 * tic6x-linux-tdep.c: Move const arrays definition from here...
3324 * tic6x-tdep.c: to here ...
3325
11315641
YQ
33262011-08-14 Yao Qi <yao@codesourcery.com>
3327
3328 * NEWS: New port to Texas Instruments TMS320C6x.
3329
8cd64e00
YQ
33302011-08-14 Andrew Jenner <andrew@codesourcery.com>
3331 Bernd Schmidt <bernds@codesourcery.com>
3332 Yao Qi <yao@codesourcery.com>
3333
3334 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3335 * solib-dsbt.c: New file. Support DSBT shared object.
3336 * tic6x-linux-tdep.c: New file.
3337 * tic6x-tdep.c: New file.
3338 * tic6x-tdep.h: New file.
3339
78d85199
YQ
33402011-08-14 Andrew Stubbs <ams@codesourcery.com>
3341 Yao Qi <yao@codesourcery.com>
3342
3343 * remote.c (PACKET_qXfer_fdpic): New enum value.
3344 (remote_protocol_features): Add qXfer:fdpic:read packet.
3345 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3346 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3347 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3348
224bbe49
YQ
33492011-08-14 Yao Qi <yao@codesourcery.com>
3350
3351 Target description for tic6x.
3352 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3353 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3354 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3355 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3356 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3357 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3358 * features/tic6x-c64xp-linux.xml: New.
3359 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3360 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3361 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3362 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3363 * regformats/tic6x-c64xp.dat,
3364 regformats/tic6x-c62x-linux.dat: Generated.
3365 * regformats/tic6x-c64x-linux.dat,
3366 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3367 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3368 features/tic6x-*.c files.
3369 Add regformats/tic6x-*.dat files.
3370
457e09f0
DE
33712011-08-12 Doug Evans <dje@google.com>
3372
3373 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3374 * python/py-symbol.c (sympy_get_type): New function.
3375 (symbol_object_getset): Add "type".
3376
d20c1c3f
PA
33772011-08-12 Pedro Alves <pedro@codesourcery.com>
3378
3379 PR tui/13073
3380
3381 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3382 empty name.
3383 (tui_show_register_group): Don't store a byte buffer in the data
3384 element's value.
3385 (tui_register_format): Skip registers with an empty name.
3386 (tui_get_register): Store a struct value in the data element's
3387 value field instead of a byte buffer holding the raw register
3388 contents. Account for optimized-out and unavailable registers
3389 when comparing register contents.
3390
9d8fa392
PA
33912011-08-09 Pedro Alves <pedro@codesourcery.com>
3392
3393 * printcmd.c (current_display_number): Update comment.
3394 (disable_current_display_cleanup): Delete.
3395 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3396 catch errors thrown while evaluating and printing the display.
3397
401a70b8
TT
33982011-08-09 Tom Tromey <tromey@redhat.com>
3399
3400 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3401
7f86f058
PA
34022011-08-09 Pedro Alves <pedro@codesourcery.com>
3403
94b71cca 3404 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3405 * maint.c (maintenance_command): Ditto.
3406 * somread.c (som_symtab_read): Ditto.
3407 * solib.c (solib_find, solib_map_sections, update_solib_list)
3408 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3409 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3410 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3411 * solib-irix.c (locate_base, disable_break, enable_break)
3412 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3413 (irix_current_sos, irix_open_symbol_file_object)
3414 (irix_special_symbol_handling): Ditto.
3415 * solib-sunos.c (locate_base, first_link_map_member)
3416 (sunos_current_sos, disable_break, enable_break)
3417 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3418 Ditto.
3419 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3420 (open_symbol_file_object, svr4_current_sos, enable_break)
3421 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3422 Ditto.
3423 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3424 (frv_current_sos, enable_break, frv_special_symbol_handling)
3425 (frv_solib_create_inferior_hook): Ditto.
3426 * solist.h (struct target_so_ops): Extend the comments of the
3427 special_symbol_handling, current_sos and open_symbol_file_object
3428 methods.
3429
5e239b84
PM
34302011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3431
3432 * python/lib/gdb/__init__.py: Auto-load files in command and
3433 function directories.
3434 * python/python.c (finish_python_initialization): Use
3435 os.path.join.
3436 * python/lib/gdb/command/pretty_printers.py: Self register
3437 command.
3438 * NEWS: Document auto-loading.
3439
b6cede78
JK
34402011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3441
3442 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3443 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3444 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3445
29d0bb3d
TT
34462011-08-08 Tom Tromey <tromey@redhat.com>
3447
3448 * breakpoint.c (clean_up_filters): Remove.
3449 (catch_syscall_split_args): Use VEC_cleanup.
3450
2f7fb8e4
JK
34512011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3452
3453 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3454 (main): Uncomment "Demangling error\n".
3455
d6c10e95
PP
34562011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3457
3458 * solib-target.c (segment_attributes): Make them static.
3459 (section_attributes, library_children, library_attributes): Likewise.
3460 (library_list_children, library_list_attributes): Likesise.
3461 (library_list_elements): Likewise.
3462
af6e93b2
PA
34632011-08-05 Pedro Alves <pedro@codesourcery.com>
3464
3465 * exceptions.c (throw_exception): Don't disable the current
3466 display.
3467 * printcmd.c (disable_current_display_cleanup): New function.
3468 (do_one_display): Install a cleanup to disable the current display
3469 if doing the display throws.
3470
6a1b1664
EZ
34712011-08-05 Eli Zaretskii <eliz@gnu.org>
3472
3473 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3474 initialization of the tp_new member to the corresponding
3475 gdbpy_initialize_* function.
3476 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3477 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3478 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3479 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3480 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3481
31a0ae49
JK
34822011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3483
3484 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3485 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3486 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3487 references to current_uiout.
3488
e0dd0826
PA
34892011-08-04 Pedro Alves <pedro@codesourcery.com>
3490
3491 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3492 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3493 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3494 * top.c (gdb_readline_wrapper): Adjust.
3495 * tui/tui-interp.c (tui_command_loop):
3496 (_initialize_tui_interp): Don't install it.
3497
79a45e25
PA
34982011-08-04 Pedro Alves <pedro@codesourcery.com>
3499
3500 * ui-out.h (uiout): Rename to ...
3501 (current_uiout): ... this.
3502 * ui-out.c (uiout): Rename to ...
3503 (current_uiout): ... this.
3504 * ada-lang.c (print_it_exception, print_one_exception)
3505 (print_mention_exception): Adjust.
3506 * breakpoint.c (watchpoint_check): Adjust.
3507 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3508 (default_collect_info, watchpoints_info, print_one_catch_fork)
3509 (print_one_catch_vfork, print_one_catch_syscall)
3510 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3511 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3512 (print_it_watchpoint, print_mention_watchpoint)
3513 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3514 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3515 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3516 (bkpt_print_mention, momentary_bkpt_print_it)
3517 (tracepoint_print_mention, update_static_tracepoint)
3518 (tracepoints_info, save_breakpoints): Adjust.
3519 * cli-out.c (field_separator): Adjust.
3520 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3521 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3522 * frame.c (get_current_frame): Adjust.
3523 * infcmd.c (run_command_1, print_return_value): Adjust.
3524 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3525 * infrun.c (print_end_stepping_range_reason): Adjust.
3526 (print_signal_exited_reason, print_exited_reason): Adjust.
3527 (print_signal_received_reason, print_no_history_reason): Adjust.
3528 * interps.c (interp_set): Adjust.
3529 * osdata.c (info_osdata_command): Adjust.
3530 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3531 * remote-fileio.c (remote_fileio_request): Adjust.
3532 * remote.c (show_remote_cmd): Adjust.
3533 * solib.c (info_sharedlibrary_command): Adjust.
3534 * source.c (print_source_lines_base): Adjust.
3535 * stack.c (print_stack_frame): Adjust.
3536 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3537 * symfile-mem.c (add_vsyscall_page): Adjust.
3538 * symfile.c (load_progress, generic_load)
3539 (print_transfer_performance): Adjust.
3540 * thread.c (info_threads_command, restore_selected_frame)
3541 (thread_command): Adjust.
3542 * top.c (make_cleanup_restore_ui_file): Adjust.
3543 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3544 (print_one_static_tracepoint_marker): Adjust.
3545 * cli/cli-cmds.c (print_disassembly): Adjust.
3546 * cli/cli-decode.c (print_doc_line): Adjust.
3547 * cli/cli-interp.c (safe_execute_command): Adjust.
3548 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3549 (handle_redirections): Adjust.
3550 * cli/cli-script.c (show_user_1): Adjust.
3551 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3552 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3553 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3554 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3555 (mi_cmd_env_dir): Adjust.
3556 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3557 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3558 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3559 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3560 (list_args_or_locals): Adjust.
3561 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3562 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3563 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3564 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3565 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3566 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3567 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3568 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3569 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3570 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3571 (list_available_thread_groups, mi_cmd_list_thread_groups)
3572 (mi_cmd_data_list_register_names)
3573 (mi_cmd_data_list_changed_registers)
3574 (mi_cmd_data_list_register_values, get_register)
3575 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3576 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3577 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3578 (mi_execute_command, mi_load_progress): Adjust.
3579 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3580 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3581 Adjust.
3582 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3583 * tui/tui-interp.c (tui_command_loop): Adjust.
3584 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3585
f9679975
PA
35862011-08-04 Pedro Alves <pedro@codesourcery.com>
3587
3588 * exceptions.c (struct catcher): Remove saved_uiout field.
3589 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3590 no longer save/resvore the global ui_out builder.
3591 (catch_exceptions_with_msg): Save/override/restore the global
3592 ui_out builder manually instead of relying on TRY_CATCH to do it.
3593 (catch_errors): Save/restore the global ui_out builder manually
3594 instead of relying on TRY_CATCH to do it.
3595 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3596 parameter.
3597 (TRY_CATCH): Adjust.
3598 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3599 the global ui_out builder manually instead of relying on TRY_CATCH
3600 to do it.
3601
934709f0
PW
36022011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3603
3604 * breakpoint.c (update_global_location_list): Ensure
3605 invariant 'first loc marked not duplicated and inserted,
3606 following locs marked duplicated/not inserted' is respected
3607 for multiple locations at the same address.
3608 (unduplicated_should_be_inserted) New function.
3609 (swap_insertion) New function.
3610
2421fe6f
JK
36112011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3612
3613 * stack.c (print_frame_arguments_choices): Comment typo fix.
3614
3fbb6ffa
TJB
36152011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3616
3617 Revert:
3618 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3619 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3620 argument. Update callers.
3621
fbe12357
PP
36222011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3623
3624 PR gdb/13045
3625 * doublest.c (convert_doublest_to_floatformat): Pass correct
3626 mantissa length to put_field.
3627
b1d288d3
JK
36282011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3631 exception_print code path.
3632 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3633 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3634 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3635
311b5970
JK
36362011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 Code cleanup.
3639 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3640 Remove, merge them into ...
3641 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3642 variable args and its initialization.
3643 (struct print_args_args, print_args_stub): Remove, merge them into
3644 print_frame.
3645 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3646 them into ...
3647 (do_gdb_disassembly): ... here. Remove variable args and its
3648 initialization.
3649 (print_frame): Remove variable args and its initialization, new
3650 variable gdbarch and numargs (from print_args_stub), inline here
3651 print_args_stub with a TRY_CATCH.
3652 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3653 them into ...
3654 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3655 New variable e, remove variable btargs and its initialization.
311b5970 3656
484a26a8
TG
36572011-08-01 Tristan Gingold <gingold@adacore.com>
3658
3659 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3660
c30eee59
TJB
36612011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3662
3663 * breakpoint.c (insert_bp_location): Document return value.
3664 (insert_breakpoint_locations): Fix documentation.
3665 (remove_breakpoints): Add documentation.
3666
f116073b
TJB
36672011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3668
3669 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3670 argument. Update callers.
3671
65aa373f
JK
36722011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3673
3674 * stack.c (print_frame_info): Comment typo fix.
3675
a50242fb
SA
36762011-07-29 Sterling Augustine <saugustine@google.com>
3677
3678 * MAINTAINERS (Write After Approval): Add myself to the list.
3679
267f6504
TT
36802011-07-29 Tom Tromey <tromey@redhat.com>
3681
3682 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3683 (library_list_start_segment): Update.
3684 (library_list_start_section): Update.
3685
00bd41d6
PM
36862011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3687
3688 * varobj.c (value_get_print_value): Move hint check later into the
3689 function. Comment function. Free thevalue before reusing it.
3690
18a46dbe
JK
36912011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3692 Pedro Alves <pedro@codesourcery.com>
3693
3694 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3695 value_one.
3696 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3697 Assert the result kind.
3698 * value.h (value_one): Remove parameter lv.
3699
bb7da2bf
JK
37002011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3701
3702 Fix crash on lval_computed values.
3703 * valops.c (value_zero): Use not_lval for lval_computed.
3704
2d5213f8
TT
37052011-07-27 Tom Tromey <tromey@redhat.com>
3706
3707 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3708 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3709
11081198
JK
37102011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3711
3712 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3713 "ptype" by their typedefs difference.
3714
3c6e0cb3
JK
37152011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3716
3717 * dwarf2expr.c (ctx_no_read_reg): New function.
3718 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3719 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3720 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3721 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3722
523f3620
JK
37232011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3724
3725 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3726 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3727 file.
3728 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3729 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3730 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3731 (ctx_no_get_base_type): Move the functions here.
3732 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3733 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3734 (ctx_no_get_base_type): New declarations.
3735
24d3216f
TT
37362011-07-27 Tom Tromey <tromey@redhat.com>
3737
3738 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3739 entries.
3740 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3741 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3742
5005c8a9
PP
37432011-07-26 Sterling Augustine <saugustine@google.com>
3744
3745 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3746 ULONGEST.
3747 (dump_bfd_file): Likewise.
3748
480a3f21
PW
37492011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3750
3751 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3752 (remote_hw_watchpoint_length_limit): New variable.
3753 (_initialize_remote) add set,show cmds for this new variable.
3754 * gdb.texinfo: document these new commands.
3755 * NEWS: Mention these new commands.
3756
efa80663
PA
37572011-07-26 Pedro Alves <pedro@codesourcery.com>
3758
3759 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3760 true for software watchpoints.
3761
dbdaa232 37622011-07-26 Joel Brobecker <brobecker@adacore.com>
3763
3764 GDB 7.3 released.
3765
cf2c3c16
TT
37662011-07-26 Tom Tromey <tromey@redhat.com>
3767
3768 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3769 * dwarf2read.c (read_indirect_string_at_offset): New function.
3770 (read_indirect_string): Use it.
3771 (dwarf_decode_macro_bytes): New function, taken from
3772 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3773 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3774 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3775 New functions.
3776 (struct dwarf2_per_objfile) <macro>: New field.
3777 (dwarf2_elf_names): Add .debug_macro.
3778 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3779 (dwarf2_locate_sections): Handle new section.
3780 (read_file_scope): Handle DW_AT_GNU_macros.
3781 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3782
1a532630
PP
37832011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3784
3785 * NEWS: Mention dcache configuration.
3786 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3787 (dcache_size, dcache_line_size): New variables.
3788 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3789 (struct dcache_block): Make it expandable.
3790 (struct dcache_struct): New field.
3791 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3792 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3793 (dcache_poke_byte, dcache_print_line): Adjust.
3794 (set_dcache_size, set_dcache_line_size): New functions.
3795 (set_dcache_command, show_dcache_command): New functions.
3796 (_initialize_dcache): Add new commands.
3797
2eff07b3
PP
37982011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3799
3800 * progspace.h (struct program_space): Add solib_add_generation.
3801 * infcmd.c (post_create_inferior): Only call solib_add if not
3802 already done.
3803 * solib.c (solib_add): Increment solib_add_generation.
3804
543305c9
JK
38052011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 Fix implicit pointer offsets.
3808 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3809 ptr.OFFSET.
3810
c0a91b2b
TT
38112011-07-25 Tom Tromey <tromey@redhat.com>
3812
3813 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3814 const.
3815 (ada_exception_sal): Make 'ops' const.
3816 (ada_decode_exception_location): Likewise.
3817 (ada_decode_assert_location): Likewise.
3818 (catch_assert_command): Update.
3819 (catch_ada_exception_command): Update.
3820 (create_ada_exception_catchpoint): Make 'ops' const.
3821 * breakpoint.c (set_raw_breakpoint_without_location)
3822 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3823 const.
3824 (create_internal_breakpoint): Update.
3825 (init_raw_breakpoint_without_location): Make 'ops' const.
3826 (init_raw_breakpoint, init_catchpoint)
3827 (create_fork_vfork_event_catchpoint)
3828 (create_syscall_event_catchpoint, init_breakpoint_sal)
3829 (create_breakpoint_sal, create_breakpoints_sal)
3830 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3831 * breakpoint.h (struct breakpoint) <ops>: Now const.
3832 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3833 const.
3834
6cb9b55b
PP
38352011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3836
3837 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3838
d9b3f62e
PA
38392011-07-25 Pedro Alves <pedro@codesourcery.com>
3840
3841 * breakpoint.h (print_recreate_thread): Declare.
3842 (struct breakpoint): Move step_count, pass_count,
3843 number_on_target, static_trace_marker_id,
3844 static_trace_marker_id_idx ...
3845 (struct tracepoint): ... to this new struct.
3846 (get_tracepoint, get_tracepoint_by_number_on_target)
3847 (get_tracepoint_by_number): Change return type to struct
3848 tracepoint pointer.
3849 * breakpoint.c (is_tracepoint_type): New, factored out from
3850 is_tracepoint.
3851 (is_tracepoint): Adjust.
3852 (print_one_breakpoint_location): Cast to struct tracepoint as
3853 necessary, and adjust.
3854 (print_recreate_catch_fork, print_recreate_catch_vfork)
3855 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3856 print_recreate_thread.
3857 (init_breakpoint_sal): New, factored out from
3858 create_breakpoint_sal.
3859 (create_breakpoint_sal): Reimplement.
3860 (create_breakpoint): Allocate a struct tracecepoint if the caller
3861 wanted a tracepoint. Use init_breakpoint_sal and
3862 install_breakpoint.
3863 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3864 (print_recreate_masked_watchpoint)
3865 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3866 (tracepoint_print_one_detail): Adjust.
3867 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3868 Dump the pass count here.
3869 (update_static_tracepoint): Adjust.
3870 (addr_string_to_sals): Adjust.
3871 (create_tracepoint_from_upload): Adjust. Change return type to
3872 struct tracepoint pointer.
3873 (trace_pass_set_count): Change parameter type to struct tracepoint
3874 pointer, and adjust.
3875 (trace_pass_command): Adjust.
3876 (get_tracepoint, get_tracepoint_by_number_on_target)
3877 (get_tracepoint_by_number): Change return type to struct
3878 tracepoint pointer, and adjust.
3879 (print_recreate_thread): New, factored out from save_breakpoints.
3880 (save_breakpoints): Don't print thread and task and passcount
3881 recreation here.
3882 * remote.c (remote_download_tracepoint): Adjust.
3883 * tracepoint.c (trace_actions_command, validate_actionline)
3884 (start_tracing, tfind_1, trace_find_tracepoint_command)
3885 (trace_dump_command): Adjust.
3886 (find_matching_tracepoint): Change return type to struct
3887 tracepoint pointer, and adjust.
3888 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3889 (tfile_trace_find, tfile_fetch_registers): Adjust.
3890 * tracepoint.h (create_tracepoint_from_upload): Change return type
3891 to struct tracepoint pointer.
3892 * ada-lang.c (print_recreate_exception): Call
3893 print_recreate_thread.
3894 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3895
3a5c3e22
PA
38962011-07-25 Pedro Alves <pedro@codesourcery.com>
3897
3898 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3899 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3900 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3901 watchpoint_thread, watchpoint_triggered ...
3902 (struct watchpoint): ... to this new struct.
3903 (is_watchpoint): Declare.
3904 (install_breakpoint): Add new `internal' parameter.
3905 * breakpoint.c (is_watchpoint): Delete declaration.
3906 (set_breakpoint_condition): Handle watchpoints.
3907 (is_watchpoint): Make public.
3908 (watchpoint_in_thread_scope): Change parameter type to struct
3909 watchpoint.
3910 (watchpoint_del_at_next_stop): Change parameter type to struct
3911 watchpoint. Remove assertion. Adjust.
3912 (update_watchpoint): Ditto.
3913 (insert_breakpoints, breakpoint_init_inferior)
3914 (watchpoints_triggered, watchpoint_check)
3915 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3916 (bpstat_stop_status, print_one_breakpoint_location)
3917 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3918 to struct watchpoint as necessary, and adjust.
3919 (install_breakpoint): Add `internal' argument. If true, don't
3920 mention the new breakpoint. Use set_breakpoint_number.
3921 (create_fork_vfork_event_catchpoint)
3922 (create_syscall_event_catchpoint): Adjust.
3923 (dtor_watchpoint): New.
3924 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3925 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3926 (print_it_watchpoint, print_mention_watchpoint)
3927 (print_recreate_watchpoint, insert_masked_watchpoint)
3928 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3929 (print_one_detail_masked_watchpoint)
3930 (print_mention_masked_watchpoint)
3931 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3932 necessary, and adjust.
3933 (watch_command_1): Allocate and initialize a struct watchpoint
3934 instead of a struct breakpoint. Use install_breakpoint.
3935 (catch_exec_command_1): Adjust.
3936 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3937 fields.
3938 (delete_breakpoint, enable_breakpoint_disp)
3939 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3940 as necessary, and adjust.
3941 (initialize_breakpoint_ops): Install dtor_watchpoint as
3942 watchpoints' dtor method.
3943 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3944 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3945 to struct watchpoint as necessary, and adjust.
3946
2060206e
PA
39472011-07-25 Pedro Alves <pedro@codesourcery.com>
3948
3949 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3950 the the base class ops table.
3951 (catch_exception_breakpoint_ops)
3952 (catch_exception_unhandled_breakpoint_ops)
3953 (catch_assert_breakpoint_ops): Don't statically initialize.
3954 (initialize_ada_catchpoint_ops): New.
3955 (_initialize_ada_language): Call it.
3956 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3957 (bkpt_breakpoint_ops): Forward declare.
3958 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3959 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3960 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3961 (masked_watchpoint_breakpoint_ops)
3962 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3963 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3964 base class ops table.
3965 (null_re_set, null_check_status, null_works_in_software_mode)
3966 (null_resources_needed, null_print_one_detail): Delete.
3967 (bkpt_dtor): Rename to ...
3968 (base_breakpoint_dtor): ... this. Make static.
3969 (bkpt_allocate_location): Rename to ...
3970 (base_breakpoint_allocate_location): ... this. Make static.
3971 (base_breakpoint_re_set): New.
3972 (internal_error_pure_virtual_called): New.
3973 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3974 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3975 (base_breakpoint_works_in_software_mode)
3976 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3977 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3978 (base_breakpoint_print_recreate): New functions.
3979 (base_breakpoint_ops): New global.
3980 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3981 (bkpt_breakpoint_hit): Make static.
3982 (bkpt_check_status): Delete.
3983 (bkpt_resources_needed): Make static.
3984 (bkpt_works_in_software_mode): Delete.
3985 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3986 static.
3987 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3988 (momentary_breakpoint_ops): Don't statically initialize.
3989 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3990 Delete.
3991 (tracepoint_insert_location, tracepoint_remove_location)
3992 (tracepoint_check_status, tracepoint_works_in_software_mode)
3993 (tracepoint_print_it): Delete.
3994 (tracepoint_breakpoint_ops): Don't statically initialize.
3995 (initialize_breakpoint_ops): New.
3996 (_initialize_breakpoint): Call it.
3997 * breakpoint.h (null_re_set, null_works_in_software_mode)
3998 (null_resources_needed, null_check_status, null_print_one_detail):
3999 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4000 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4001 (bkpt_check_status, bkpt_resources_needed)
4002 (bkpt_works_in_software_mode, bkpt_print_it)
4003 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4004 Delete declarations.
4005 (initialize_breakpoint_ops): Declare.
4006
001c8c33
PA
40072011-07-25 Pedro Alves <pedro@codesourcery.com>
4008
4009 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4010 (momentary_bkpt_print_it): Simplify.
4011
06edf0c0
PA
40122011-07-25 Pedro Alves <pedro@codesourcery.com>
4013
4014 Split internal, momentary and user breakpoints breakpoint_ops
4015 tables.
4016
4017 * breakpoint.c (internal_breakpoint_ops)
4018 (momentary_breakpoint_ops): Forward declare.
4019 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4020 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4021 (create_overlay_event_breakpoint)
4022 (create_std_terminate_master_breakpoint)
4023 (create_exception_master_breakpoint): Create breakpoints with
4024 internal_breakpoint_ops vtable.
4025 (set_longjmp_breakpoint): Create momentary breakpoints with
4026 momentary_breakpoint_ops vtable, using
4027 momentary_breakpoint_from_master.
4028 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4029 (create_solib_event_breakpoint): Create breakpoints with
4030 internal_breakpoint_ops vtable.
4031 (set_momentary_breakpoint): Create breakpoints with
4032 momentary_breakpoint_ops vtable.
4033 (momentary_breakpoint_from_master): New, factored out from
4034 clone_momentary_breakpoint.
4035 (clone_momentary_breakpoint): Adjust.
4036 (watch_command_1): Create scope breakpoints with
4037 momentary_breakpoint_ops vtable.
4038 (bkpt_re_set): Remove handling of internal and momentary
4039 breakpoints.
4040 (bkpt_print_mention, bkpt_print_recreate): New.
4041 (bkpt_breakpoint_ops): Adjust.
4042 (internal_bkpt_re_set, internal_bkpt_check_status)
4043 (internal_bkpt_print_it, internal_bkpt_print_mention)
4044 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4045 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4046 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4047 (momentary_bkpt_print_recreate): New.
4048 (momentary_breakpoint_ops): New.
4049
348d480f
PA
40502011-07-25 Pedro Alves <pedro@codesourcery.com>
4051
4052 Implement most breakpoint_ops methods for all breakpoint types,
4053 and move the default handlings to the proper callbacks.
4054
4055 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4056 works_in_software_mode method.
4057 (insert_bp_location): Go through breakpoint_ops->insert_location
4058 for software and hardware watchpoints.
4059 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4060 breakpoint_ops.
4061 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4062 for software and hardware watchpoints.
4063 (print_it_typical): Delete.
4064 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4065 method.
4066 (watchpoint_check): Adjust comment.
4067 (bpstat_check_location): Simply always call the breakpoint's
4068 breakpoint_hit method.
4069 (bpstat_stop_status): Always call the breakpoint's check_status
4070 method. Remove special cases for watchpoints and internal event
4071 breakpoints from here (moved to the check_status implementations).
4072 (print_one_breakpoint_location): Assume b->ops is never NULL.
4073 Remove static tracepoint marker id printing from here (moved to
4074 the print_one_detail callback implementation of tracepoints).
4075 (init_bp_location): Assert OPS is never NULL.
4076 (allocate_bp_location): Always call the breakpoint's
4077 allocate_location method, and remove the default code from here.
4078 (free_bp_location): Always call the location's dtor method, and
4079 remove the default code from here.
4080 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4081 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4082 parameter. Pass it down.
4083 (set_raw_breakpoint): Ditto.
4084 (print_it_catch_fork): Adjust to take a bpstat as argument.
4085 (catch_fork_breakpoint_ops): Install methods.
4086 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4087 (catch_vfork_breakpoint_ops): Install methods.
4088 (dtor_catch_syscall): Call the base dtor.
4089 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4090 (catch_syscall_breakpoint_ops): Install methods.
4091 (dtor_catch_exec): Call the base dtor.
4092 (print_it_catch_exec): Adjust to take a bpstat as argument.
4093 (catch_exec_breakpoint_ops): Install methods.
4094 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4095 the breakpoint's resources_needed method, and remove the default
4096 code from here.
4097 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4098 breakpoint_ops.
4099 (clone_momentary_breakpoint): Clone the original's ops.
4100 (mention): Always call the breakpoint's print_mention method, and
4101 remove the default code from here.
4102 (create_breakpoint_sal): Adjust to pass the ops to
4103 set_raw_breakpoint rather than setting it manually.
4104 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4105 ops to set_raw_breakpoint_without_location rather than setting it
4106 manually.
4107 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4108 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4109 (ranged_breakpoint_ops): Install methods.
4110 (break_range_command): Adjust to pass the ops to
4111 set_raw_breakpoint rather than setting it manually.
4112 (re_set_watchpoint, breakpoint_hit_watchpoint)
4113 (check_status_watchpoint, resources_needed_watchpoint)
4114 (works_in_software_mode_watchpoint, print_it_watchpoint)
4115 (print_mention_watchpoint, print_recreate_watchpoint): New
4116 functions.
4117 (watchpoint_breakpoint_ops): Install new methods.
4118 (print_it_masked_watchpoint): New function.
4119 (masked_watchpoint_breakpoint_ops): Install new methods.
4120 (watch_command_1): Adjust to pass the right breakpoint_ops to
4121 set_raw_breakpoint_without_location rather than setting it
4122 manually later. Record the current pspace.
4123 (print_it_exception_catchpoint): Adjust to take a bpstat as
4124 argument.
4125 (gnu_v3_exception_catchpoint_ops): Install new methods.
4126 (say_where): New function.
4127 (null_re_set, null_check_status, null_works_in_software_mode)
4128 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4129 New functions.
4130 (bp_location_ops): New global.
4131 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4132 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4133 (bkpt_check_status, bkpt_resources_needed)
4134 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4135 (bkpt_print_recreate): New functions.
4136 (bkpt_breakpoint_ops): New global.
4137 (tracepoint_re_set, tracepoint_insert_location)
4138 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4139 (tracepoint_check_status, tracepoint_works_in_software_mode)
4140 (tracepoint_print_it, tracepoint_print_one_detail)
4141 (tracepoint_print_mention, tracepoint_print_recreate): New
4142 functions.
4143 (tracepoint_breakpoint_ops): New global.
4144 (delete_breakpoint): Always call the breakpoint's dtor method, and
4145 remove the default handling from here.
4146 (breakpoint_re_set_default): Make static.
4147 (breakpoint_re_set_one): Always call the breakpoints re_set
4148 method, and remove the default handling from here.
4149 (trace_command, ftrace_command, strace_command)
4150 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4151 to create_breakpoint.
4152 (save_breakpoints): Always call the breakpoint's print_recreate
4153 method, and remove the default handling from here.
4154
4155 * ada-lang.c (dtor_exception): Call the base dtor.
4156 (re_set_exception): Call the base method.
4157 (print_it_exception, print_it_catch_exception): Adjust to take a
4158 bpstat as argument.
4159 (catch_exception_breakpoint_ops): Install methods.
4160 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4161 argument.
4162 (catch_exception_unhandled_breakpoint_ops): Install methods.
4163 (print_it_catch_assert): Adjust to take a bpstat as argument.
4164 (catch_assert_breakpoint_ops): Install methods.
4165
4166 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4167 to take a bpstat as argument.
4168 (enum print_stop_action): Add describing comments to each enum
4169 value.
4170 (breakpoint_re_set_default): Delete declaration.
4171 (null_re_set, null_works_in_software_mode, null_resources_needed)
4172 (null_check_status, null_print_one_detail): Declare.
4173 (bkpt_breakpoint_ops): Declare.
4174 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4175 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4176 (bkpt_check_status, bkpt_resources_needed)
4177 (bkpt_works_in_software_mode, bkpt_print_it)
4178 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4179 Declare.
4180
4181 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4182 bkpt_breakpoint_ops.
4183 * python/py-breakpoint.c (bppy_init): Ditto.
4184
be8f8133
PW
41852011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4186
4187 * MAINTAINERS (Write After Approval): Add myself to the list.
4188
3807f613
PP
41892011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4190
4191 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4192
1ced966e
PA
41932011-07-22 Pedro Alves <pedro@codesourcery.com>
4194
4195 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4196 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4197 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4198 adjust.
4199 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4200 (struct i386_debug_reg_state): New.
4201 (i386_init_dregs): New.
4202 (dr_mirror): New.
4203 (i386_cleanup_dregs): Use i386_init_dregs.
4204 (i386_show_dr): Add state parameter and adjust.
4205 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4206 the inferior here.
4207 (i386_remove_aligned_watchpoint): Likewise.
4208 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4209 (i386_update_inferior_debug_regs): New.
4210 (i386_insert_watchpoint): Work on a local mirror of the debug
4211 registers, and only update the inferior on success.
4212 (i386_remove_watchpoint): Ditto.
4213 (i386_region_ok_for_watchpoint): Adjust.
4214 (i386_stopped_data_address): Adjust.
4215 (i386_insert_hw_breakpoint): Adjust.
4216 (i386_remove_hw_breakpoint): Adjust.
4217
3543a589
TT
42182011-07-22 Tom Tromey <tromey@redhat.com>
4219
4220 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4221 from amd64_pseudo_register_read. Change arguments. Call
4222 mark_value_bytes_unavailable when needed.
4223 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4224 set_gdbarch_pseudo_register_read.
4225 * sentinel-frame.c (sentinel_frame_prev_register): Use
4226 regcache_cooked_read_value.
4227 * regcache.h (regcache_cooked_read_value): Declare.
4228 * regcache.c (regcache_cooked_read_value): New function.
4229 (regcache_cooked_read): Call
4230 gdbarch_pseudo_register_read_value if available.
4231 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4232 (i386_pseudo_register_read): Remove.
4233 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4234 i386_pseudo_register_read. Change arguments. Call
4235 mark_value_bytes_unavailable when needed.
4236 (i386_pseudo_register_read_value): New function.
4237 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4238 not set_gdbarch_pseudo_register_read.
4239 * gdbarch.sh (pseudo_register_read_value): New method.
4240 * gdbarch.c, gdbarch.h: Rebuild.
4241 * findvar.c (value_from_register): Call get_frame_register_value.
4242
95298e72
PM
42432011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4244
4245 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4246 get_prefix.
4247 (display_gdb_prompt): Likewise.
4248 (change_annotation_level): Likewise.
4249 (push_prompt): Likewise.
4250 (pop_prompt): Likewise.
4251 (handle_stop_sig): Use get_prompt with a level.
4252 * top.c (command_loop): Use get_prompt with a level.
4253 (set_async_annotation_level): Use set_prompt with a level.
4254 (get_prefix): New function.
4255 (set_prefix): Ditto.
4256 (set_suffix): Ditto.
4257 (get_suffix): Ditto.
4258 (get_prompt): Accept a level argument.
4259 (set_prompt): Accept a level argument. Free old prompts. Set
4260 new_async_prompt if level is 0.
4261 (init_main): Use set_prompt with a level. Do not set
4262 new_async_prompt.
4263 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4264 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4265 Modify set_prompt, get_prompt to account for levels.
4266 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4267 level.
4268 * python/python.c (before_prompt_hook): Use set_prompt.
4269
d26e3629
KY
42702011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4271
4272 * defs.h: Add guard against inclusion in gdbserver.
4273 (struct ptid, ptid_t): Move to common/ptid.h.
4274 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4275 xsnprintf, internal_error): Move to common/common-utils.h.
4276 (nomem): Delete.
4277 * gdb_assert.h: Move into common/ sub-directory.
4278 * gdb_locale.h: Ditto.
4279 * gdb_dirent.h: Ditto.
4280 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4281 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4282 Move into common/ptid.h.
4283 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4284 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4285 Change nomem to malloc_failure.
4286 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4287 * utils.c (nomem): Rename to malloc_failure.
4288 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4289 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4290 (gdb_buildargv): Change nomem to malloc_failure.
4291 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4292 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4293 ptid_is_pid): Move into common/ptid.c.
4294 (initialize_infrun): Delete initialization of null_ptid and
4295 minus_one_ptid.
4296 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4297 linux_common_xfer_osdata.
4298 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4299 common/ptid.c and common/buffer.c.
4300 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4301 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4302 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4303 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4304 rules.
4305 * common/gdb_assert.h: New.
4306 * common/gdb_dirent.h: New.
4307 * common/gdb_locale.h: New.
4308 * common/buffer.c: New.
4309 * common/buffer.h: New.
4310 * common/ptid.c: New.
4311 * common/ptid.h: New.
4312 * common/xml-utils.c: New.
4313 * common/xml-utils.h: New.
4314 * common/common-utils.c: New.
4315 * common/common-utils.h: New.
4316 * common/linux-osdata.c: New.
4317 * common/linux-osdata.h: New.
4318 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4319 * config/arm/linux.mh (NATDEPFILES): Ditto.
4320 * config/i386/linux.mh (NATDEPFILES): Ditto.
4321 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4322 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4323 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4324 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4325 * config/mips/linux.mh (NATDEPFILES): Ditto.
4326 * config/pa/linux.mh (NATDEPFILES): Ditto.
4327 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4328 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4329 * config/s390/s390.mh (NATDEPFILES): Ditto.
4330 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4331 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4332 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4333
edc84990 43342011-07-21 Matt Rice <ratmice@gmail.com>
4335
4336 * NEWS: Add info macros and info definitions commands.
4337
3a7bf607
PM
43382011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4339
4340 * NEWS: Document Python prompt substitution hook.
4341
9b158ba0 43422011-07-18 Matt Rice <ratmice@gmail.com>
4343
4344 PR macros/12999
4345 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4346 * macrotab.c (foreach_macro): Ditto.
4347 (foreach_macro_in_scope): Ditto.
4348 * macrocmd.c (print_macro_callback): New function.
4349 (info_macro_command): Move some code to print_macro_definition.
4350 (print_macro_definition): New function.
4351 (print_one_macro): Add new arguments to callback.
4352 (info_definitions_command): New function.
4353 (info_macros_command): Ditto.
4354 (_initialize_macrocmd): Add info macros and info definitions commands.
4355 * symtab.c (add_macro_name): Add new arguments to callback.
4356
d17b6f81
PM
43572011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4358 Tom Tromey <tromey@redhat.com>
4359
4360 * top.c (set_prompt): Rewrite to free previous prompt, free
4361 asynch_new_prompt and set both on new prompts.
4362 * event-top.c (display_gdb_prompt): Add prompt substitution
4363 logic.
4364 * python/python.c (before_prompt_hook): New function.
4365
1364323a 43662011-07-20 Matt Rice <ratmice@gmail.com>
4367
4368 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4369 arguments to store_unsigned_integer.
4370
8b70b953
TT
43712011-07-20 Tom Tromey <tromey@redhat.com>
4372
6c83ed52
TT
4373 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4374 in some declaration-only cases.
4375
43762011-07-18 Tom Tromey <tromey@redhat.com>
4377
8b70b953
TT
4378 PR symtab/12984:
4379 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4380 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4381 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4382 <debug_type_section>: New field.
4383 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4384 (load_cu): Use appropriate section.
4385 (create_signatured_type_table_from_index): Add 'section'
4386 argument.
4387 (dwarf2_read_index): Only allow a single .debug_types section.
4388 (dw2_get_file_names): Use appropriate section.
4389 (read_type_comp_unit_head): Add 'section' argument.
4390 (create_debug_types_hash_table): Loop over all .debug_types
4391 sections.
4392 (init_cu_die_reader): Use appropriate section.
4393 (process_psymtab_comp_unit, load_partial_comp_unit)
4394 (load_full_comp_unit, read_die_and_children, find_partial_die)
4395 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4396 (lookup_signatured_type_at_offset): Add 'section' argument.
4397 (read_signatured_type_at_offset): Add 'sect' argument.
4398 (read_signatured_type): Use appropriate section.
4399 (set_die_type, get_die_type_at_offset): Update.
4400 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4401 VEC.
4402 (write_psymtabs_to_index): Don't allow index with more than one
4403 .debug_types section.
4404
918dd910
JK
44052011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 Fix crash if referenced CU is aged out.
4408 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4409 xfree of block.data.
4410 (indirect_pieced_value): New variable back_to, use to for xfree of
4411 baton.data.
4412 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4413 block.data.
4414 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4415 (load_cu): New function from ...
4416 (dw2_do_instantiate_symtab): ... the code here ...
4417 (process_full_comp_unit): ... and here.
4418 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4419 retval.data.
4420
0e37a63c
JK
44212011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4422
4423 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4424 type.
4425
7e324e48
GB
44262011-07-19 Gary Benson <gbenson@redhat.com>
4427
4428 * infrun.c (struct execution_control_state): New member
4429 stop_func_filled_in.
4430 (clear_stop_func, fill_in_stop_func): New functions.
4431 (handle_inferior_event): Call clear_stop_func rather than
4432 manipulating the execution control state directly.
4433 Call fill_in_stop_func lazily as required rather than
4434 directly calling find_pc_partial_function in all cases.
4435
d48323d8
TT
44362011-07-18 Tom Tromey <tromey@redhat.com>
4437
4438 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4439 checking for variable-sized array.
4440
40591b7d
JCD
44412011-07-18 Jean-Charles Delay <delay@adacore.com>
4442
4443 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4444 of supported languages.
4445 * varobj.c: Add top definitions and basic implementation of the
4446 following callbacks: ada_number_of_children, ada_name_of_variable,
4447 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4448 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4449 (languages): Register Ada-specific callbacks.
4450 (variable_language): Add the Ada case in the language setter switch.
4451
2e424e08
JK
44522011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4453
4454 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4455
9e8b7a03
JK
44562011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4457
4458 Code cleanup.
4459 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4460 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4461 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4462 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4463 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4464 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4465 (struct dwarf_expr_context_funcs): New, move here methods from ...
4466 (struct dwarf_expr_context): ... here. New fields funcs.
4467 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4468 (dwarf_expr_ctx_funcs): New.
4469 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4470 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4471 (needs_frame_ctx_funcs): New.
4472 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4473
2b1260ab
FM
44742011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4475
4476 * MAINTAINERS (Write After Approval): Add myself to the list.
4477
8bd90839
FM
44782011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4479
4480 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4481 that CIE pointer of an FDE really points to a CIE .
4482
953b98d1
HZ
44832011-07-15 Hui Zhu <teawater@gmail.com>
4484
4485 * remote.c (remote_get_trace_status): Add comments.
4486
c8f2448a
JK
44872011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4488
4489 Code cleanup - constify struct lval_funcs.
4490 * dwarf2loc.c (pieced_value_funcs): Make it const.
4491 * infrun.c (siginfo_value_funcs): Likewise.
4492 * opencl-lang.c (opencl_value_funcs): Likewise.
4493 * valops.c (value_assign, value_ind): Make the funcs variable const.
4494 * value.c (struct value): Make location.computed.funcs target const.
4495 Rearrange the comments.
4496 (allocate_computed_value): Make the funcs parameter target const.
4497 (value_computed_funcs): Return the funcs target const.
4498 (value_free, value_copy, set_value_component_location): Make the funcs
4499 variable const.
4500 * value.h (allocate_computed_value): Make the funcs parameter target
4501 const.
4502 (value_computed_funcs): Return the funcs target const.
4503 * windows-tdep.c (tlb_value_funcs): Make it const.
4504
f652de6f
HZ
45052011-07-14 Hui Zhu <teawater@gmail.com>
4506
4507 * remote.c (remote_get_trace_status): Initialize p.
4508
67f41397
JK
45092011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Work around kgdb.
4512 * remote.c (remote_get_trace_status): New variable ex. Put
4513 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4514
d1b66e6d
TT
45152011-07-13 Tom Tromey <tromey@redhat.com>
4516
4517 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4518 value_from_contents for final conversion.
4519
1632a688
JK
45202011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4521
4522 Code cleanup.
4523 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4524 Indent prototypes so they do not get into tags.
4525
a7035dbb
JK
45262011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4527
4528 Code cleanup making also optimized out values lazy.
4529 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4530 allocate_optimized_out_value. Twice.
4531 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4532 * findvar.c (read_var_value): Likewise.
4533 * value.c (allocate_optimized_out_value): New function.
4534 * value.h (allocate_optimized_out_value): New declaration.
4535
d07ed419
JK
45362011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4537
4538 Fix occasional crash of CTRL-C during DWARF read in.
4539 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4540
86d31898
TT
45412011-07-11 Tom Tromey <tromey@redhat.com>
4542
4543 * regcache.c (struct regcache_descr): Fix typo.
4544 * i387-tdep.c (i387_supply_xsave): Fix typo.
4545
2ab95328
TT
45462011-07-11 Tom Tromey <tromey@redhat.com>
4547
4548 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4549 (read_file_scope, read_type_unit_scope): Use it.
4550
04ad99e6
JK
45512011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4552
4553 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4554 `int'.
4555
713389e0
PM
45562011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4557
4558 PR python/12438
4559 * python/python.c: Set gdbpy_should_print_stack default to off.
4560 (set_python): Deprecate maint set python print-stack to
4561 class_deprecate.
4562 (_initialize_python): Deprecate maint set/show python print-stack.
4563 Add new prefix command, python. Add new setting, print-backtrace.
4564 * NEWS: Document set python print-stack. Document default change.
4565
754eadd1
PM
45662011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4567
4568 * python/py-inferior.c (infpy_dealloc): New function.
4569 (inferior_to_inferior_object): Return a new object, or a
4570 new reference to the existing object.
4571 (find_thread_object): Cleanup references to inferior.
4572 (delete_thread_object): Ditto.
4573 * python/py-infthread.c (create_thread_object): Do not increment
4574 inferior reference count.
4575
5e44ecb3
TT
45762011-07-08 Tom Tromey <tromey@redhat.com>
4577
4578 * dwarf2loc.c (locexpr_regname): New function.
4579 (locexpr_describe_location_piece): Use it.
4580 (disassemble_dwarf_expression): Add per_cu argument. Use
4581 locexpr_regname.
4582 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4583 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4584 New cases.
4585 (locexpr_describe_location_1): Add per_cu argument.
4586 (locexpr_describe_location): Update.
4587 (loclist_describe_location): Update.
4588
e0e9434c
TT
45892011-07-08 Tom Tromey <tromey@redhat.com>
4590
4591 * dwarf2expr.c (execute_stack_op): Add QUIT.
4592
26afc0d7
HZ
45932011-07-07 Hui Zhu <teawater@gmail.com>
4594
4595 Revert:
4596 2011-07-06 Hui Zhu <teawater@gmail.com>
4597 * remote.c (remote_start_remote): Add TRY_CATCH for
4598 remote_get_trace_status.
4599 * tracepoint.c (disconnect_tracing): Ditto.
4600
a40a111f
AB
46012011-07-07 Andrew Burgess <aburgess@broadcom.com>
4602
4603 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4604 variables as signed, not unsigned.
4605
e2bd3b15
JB
46062011-07-06 Joel Brobecker <brobecker@adacore.com>
4607
4608 * jit.c (jit_inferior_init): Reformat forward declaration.
4609
e3d961fe 46102011-07-06 Matt Rice <ratmice@gmail.com>
4611
4612 * MAINTAINERS (Write After Approval): Add myself to the list.
4613
0f3428f0
HZ
46142011-07-06 Hui Zhu <teawater@gmail.com>
4615
4616 * remote.c (remote_start_remote): Add TRY_CATCH for
4617 remote_get_trace_status.
4618 * tracepoint.c (disconnect_tracing): Ditto.
4619
fc9f3a69
TT
46202011-07-05 Tom Tromey <tromey@redhat.com>
4621
4622 * symtab.c (operator_chars): Now static.
4623 * linespec.c (operator_chars): Don't declare.
4624
26e519b9
TJB
46252011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4626
4627 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4628
eb2a6f42
TT
46292011-07-05 Tom Tromey <tromey@redhat.com>
4630
4631 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4632 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4633 (TYPE_CPLUS_REALLY_JAVA): New macro.
4634 * dwarf2read.c (process_structure_scope): Set
4635 TYPE_CPLUS_REALLY_JAVA.
4636
21083d0f 46372011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4638
4639 * ada-lang.c: Fix typos.
4640 * amd64-tdep.c: Likewise.
4641 * breakpoint.c: Likewise.
4642 * cli/cli-decode.c: Likewise.
4643 * findcmd.c: Likewise.
4644 * inline-frame.c: Likewise.
4645 * mi/mi-main.c: Likewise.
4646 * minsyms.c: Likewise.
4647 * monitor.c: Likewise.
4648 * monitor.h: Likewise.
4649 * prologue-value.c: Likewise.
4650 * reverse.c: Likewise.
4651 * s390-tdep.c: Likewise.
4652
3b2a0cf2
JB
46532011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4654
4655 * jit.c (jit_inferior_init): Forward declare.
4656 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4657
efae1d92
JB
46582011-07-04 Joel Brobecker <brobecker@adacore.com>
4659
4660 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4661
6040a59d
JB
46622011-07-04 Tristan Gingold <gingold@adacore.com>
4663
4664 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4665 (tcb_fieldno): Add activation_link field.
4666 (get_known_tasks_addr): Moved and rewritten.
4667 (get_tcb_types_info): Set activation_link field.
4668 (read_known_tasks_array): Add parameter. Rewritten.
4669 (read_known_tasks_list): New function.
4670 (read_known_tasks): New function.
4671 (ada_build_task_list): Call read_known_tasks instead of
4672 read_known_tasks_array.
4673 * ravenscar-thread.c: Add first_task_name constant.
4674 (has_ravenscar_runtime): Check for task list too.
4675
cb741e45
JB
46762011-07-04 Tristan Gingold <gingold@adacore.com>
4677
4678 * ada-tasks.c: Renames fieldno to actb_fieldno.
4679 (ada_get_task_number): Indentation.
4680 (get_tcb_types_info): Remove all parameters. Write directly
4681 the globals.
4682 (ptid_from_atcb_common): Adjust.
4683 (read_atcb): Adjust.
4684
7475b06c
TJB
46852011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4686
4687 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4688
15230f37
TJB
46892011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4690
4691 * ui-out.c (ui_out_field_core_addr): Mention that the function
4692 description is in the header file.
4693 * ui-out.h (ui_out_field_core_addr): Document function.
4694
65743aba
TJB
46952011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4696
4697 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4698 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4699
c37a5aab
TJB
47002011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4701
4702 * symtab.c (expand_line_sal): Remove empty line.
4703
59adf69e
TS
47042011-07-04 Thomas Schwinge <thomas@schwinge.name>
4705
4706 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4707 same way as ELFOSABI_NONE.
4708 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4709
e5dd4106
TJB
47102011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4711
4712 * breakpoint.c: Fix typos in comments.
4713 * linespec.c: Likewise.
4714 * symtab.c: Likewise.
4715
d40102a1
JB
47162011-07-04 Joel Brobecker <brobecker@adacore.com>
4717
4718 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4719 section in separate object files.
4720
2f741504
JK
47212011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 Fix false GCC warning.
4724 * linespec.c (decode_line_1): Initialize values.
4725
418c7cf7
JK
47262011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 * linespec.c (find_method): Accept the function type automatically only
4729 if it was specified with parameter types.
4730
3d50dd94
JK
47312011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4732
4733 Stop on first linespec terminator instead of eating what we can.
4734 * linespec.c (is_linespec_boundary): New function.
4735 (name_end): Remove function.
4736 (keep_name_info): New parameter on_boundary, replace the body.
4737 (decode_line_1): Provide the parameter to keep_name_info.
4738 (decode_compound): Likewise. Drop the trailing java return type
4739 handling. Twice.
4740
dcf9f4ab
JK
47412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 Fall back linespec to minimal symbols.
4744 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4745 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4746 (find_method, symbol_found): Change error to cplusplus_error.
4747
3f542ed1
JK
47482011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4749
bc68c4e5 4750 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4751
900e11f9
JK
47522011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4753 Tom Tromey <tromey@redhat.com>
4754
4755 * dwarf2read.c (check_physname): New variable.
4756 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4757 (show_check_physname): New function.
4758 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4759
2301925d
JB
47602011-07-01 Joel Brobecker <brobecker@adacore.com>
4761
4762 * machoread.c (macho_symfile_read): Delete OBE comment.
4763
38947cca
JB
47642011-07-01 Joel Brobecker <brobecker@adacore.com>
4765
4766 * machoread.c (struct macho_oso_data): Delete.
4767 (current_oso): Delete.
4768 (macho_relocate_common_syms): New function, mostly extracted
4769 out of
4770 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4771 Remove code that sets and unset current_oso.
4772 (macho_symfile_relocate): Delete handling of common symbols,
4773 now moved to macho_relocate_common_syms.
4774
a7aa0d73
JB
47752011-07-01 Joel Brobecker <brobecker@adacore.com>
4776
4777 * darwin-nat.c (darwin_ptrace): Add documentation.
4778 Set errno to zero before calling ptrace. If ptrace returns
4779 -1 and errno is zero, then change then return zero.
4780 (darwin_kill_inferior): Issue a warning instead of triggering
4781 a failed assertion when the PT_KILL ptrace operations returned
4782 nonzero.
4783
5e9bc145
JB
47842011-07-01 Joel Brobecker <brobecker@adacore.com>
4785
4786 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4787 only when inf->private->no_ptrace.
4788
00eb2c4a
JB
47892011-07-01 Joel Brobecker <brobecker@adacore.com>
4790
4791 * ada-lang.c (print_it_exception): Print temporary catchpoints
4792 as "Temporary catchpoint".
4793 (print_mention_exception): Likewise.
4794
127c81bc
TT
47952011-07-01 Tom Tromey <tromey@redhat.com>
4796
4797 * jv-lang.c (java_language_defn): Use java_printchar,
4798 java_printstr.
4799 (java_get_encoding): New function.
4800 (java_emit_char): Use generic_emit_char.
4801 (java_printchar): New function.
4802 (java_printstr): Likewise.
4803
25552254
JB
48042011-07-01 Joel Brobecker <brobecker@adacore.com>
4805
4806 * ada-typeprint.c (print_record_type): If unable to decode
4807 the name of the parent type, use the encoded name.
4808
d2d43431
JB
48092011-07-01 Jean-Charles Delay <delay@adacore.com>
4810
4811 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4812 pointer to constrained packed array type output.
4813 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4814 packed array output.
4815
54ae186f
JB
48162011-07-01 Jean-Charles Delay <delay@adacore.com>
4817
4818 * ada-typeprint.c (print_array_type): removed if condition on show
4819 being negative for bounds printing.
4820
8f17729f
JB
48212011-07-01 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-lang.c (ada_identical_enum_types_p): New function.
4824 (symbols_are_identical_enums): New function.
4825 (remove_extra_symbols): Do nothing if NSYMS < 2.
4826 Use symbols_are_identical_enums.
4827
f5aa6869
JB
48282011-07-01 Joel Brobecker <brobecker@adacore.com>
4829
4830 * ada-valprint.c (ada_value_print): Handle typedefs.
4831
8f465ea7
JB
48322011-07-01 Joel Brobecker <brobecker@adacore.com>
4833
4834 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4835
828292f2
JB
48362011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4837
4838 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4839 (decode_constrained_packed_array): Likewise.
4840 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4841
18920c42
JB
48422011-07-01 Joel Brobecker <brobecker@adacore.com>
4843
4844 * ada-exp.y (convert_char_literal): Handle typedef types.
4845
c90092fe
JB
48462011-07-01 Joel Brobecker <brobecker@adacore.com>
4847
4848 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4849
f748fb40
TT
48502011-06-30 Tom Tromey <tromey@redhat.com>
4851
4852 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4853 * valops.c (find_overload_match): Call do_cleanups on early exit
4854 path.
4855 * solib.c (solib_find): Call do_cleanups on early exit path.
4856
3bb47e8b
TT
48572011-06-30 Tom Tromey <tromey@redhat.com>
4858
4859 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4860 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4861 return paths. Defer final do_cleanups until last return.
4862 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4863 early return.
4864
4727bad3
TT
48652011-06-30 Tom Tromey <tromey@redhat.com>
4866
4867 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4868
bb361dbf
AB
48692011-06-30 Andrew Burgess <aburgess@broadcom.com>
4870
4871 * MAINTAINERS (Write After Approval): Add myself to the list.
4872
e0d00bc7
JK
48732011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4874
4875 Disable epilogue unwinders on recent GCCs.
4876 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4877 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4878 * dwarf2read.c (process_full_comp_unit): Initialize
4879 EPILOGUE_UNWIND_VALID.
4880 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4881 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4882 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4883
4632c0d0
JK
48842011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 Code cleanup - reformatting.
4887 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4888 (producer_is_gcc_ge_4): ... here, change the return value.
4889 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4890 interpretation.
4891
32019081
JK
48922011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4893
4894 Fix non-only rename list for Fortran modules import.
4895 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4896 cp_add_using_directive caller.
4897 (cp_add_using_directive): New parameter excludes, describe it. New
4898 variables ix and param. Compare if also excludes match. Allocate NEW
4899 with variable size, initialize EXCLUDES there.
4900 (cp_lookup_symbol_imports): New variable excludep, test
4901 current->EXCLUDES with it.
4902 * cp-support.h: Include vec.h.
4903 (struct using_direct): New field excludes, describe it.
4904 (DEF_VEC_P (const_char_ptr)): New.
4905 (cp_add_using_directive): New parameter excludes.
4906 * defs.h (const_char_ptr): New typedef.
4907 * dwarf2read.c (read_import_statement): New variables child_die,
4908 excludes and cleanups, read in excludes.
4909 (read_namespace): Adjust the cp_add_using_directive caller.
4910
70c622a3
JK
49112011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 Code cleanup.
4914 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4915 negative comparisons.
4916
39c4d40a
TT
49172011-06-29 André Pönitz <andre.poenitz@nokia.com>
4918
4919 * mi/mi-main.c (mi_cmd_list_features): Emit
4920 breakpoint-notifications.
4921
3b2b8fea
TT
49222011-06-29 Tom Tromey <tromey@redhat.com>
4923
4924 PR fortran/10036:
4925 * valprint.h (generic_emit_char, generic_printstr): Declare.
4926 * valprint.c (wchar_printable, append_string_as_wide)
4927 (print_wchar): Move from c-lang.c.
4928 (generic_emit_char): New function; mostly taken from c_emit_char.
4929 (generic_printstr): New function; mostly taken from c_printstr.
4930 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4931 represented as arrays.
4932 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4933 type.
4934 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4935 identically to TYPE_CODE_INT.
4936 * f-lang.c (f_get_encoding): New function.
4937 (f_emit_char): Use generic_emit_char.
4938 (f_printchar): Replace comment.
4939 (f_printstr): Use generic_printstr.
4940 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4941 "character" types specially.
4942 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4943 for Fortran.
4944 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4945 Move to valprint.c
4946 (c_emit_char): Call generic_emit_char.
4947 (c_printstr): Call generic_printstr.
4948
168e6d44
GB
49492011-06-29 Gary Benson <gbenson@redhat.com>
4950
4951 * breakpoint.c (bpstat_what): Removed duplicated case.
4952
1c033f8c
TT
49532011-06-28 Tom Tromey <tromey@redhat.com>
4954
4955 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4956
5fe41fbf
TT
49572011-06-27 Tom Tromey <tromey@redhat.com>
4958
4959 * valops.c (find_overload_match): Call do_cleanups before early
4960 return.
4961 * top.c (execute_command): Call do_cleanups before early return.
4962 (command_loop): Likewise.
4963 * stack.c (backtrace_command): Make a null cleanup early. Don't
4964 conditionally call do_cleanups.
4965 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4966 TRY_CATCH.
4967 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4968 so cleanups are always run.
4969 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4970 * findcmd.c (parse_find_args): Call do_cleanups on early return
4971 path.
4972 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4973 Don't conditionally call do_cleanups.
4974 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4975 later.
4976
e26bd57d
EB
49772011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4978
4979 * MAINTAINERS (Write After Approval): Use default email address.
4980
6c3097fc
JB
49812011-06-27 Joel Brobecker <brobecker@adacore.com>
4982
4983 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4984
369c397b
JB
49852011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4986
4987 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4988 saved_regs_mask and copied_regs_mask fields.
4989 (sparc_record_save_insn): New prototype.
4990 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4991 (sparc_record_save_insn): New function.
4992 (sparc_analyze_prologue): Add head comment. Recognize store insns
4993 of call-saved registers. Use OFFSET consistently. Recognize flat
4994 frames and cache their settings.
4995 (sparc32_skip_prologue): Handle flat frames.
4996 (sparc_frame_cache): Add frame_offset to the base address.
4997 (sparc32_frame_cache): Adjust to new frame description.
4998 (sparc32_frame_prev_register): Likewise.
4999 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5000 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5001 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5002 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5003 frame by calling sparc_record_save_insn.
5004 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5005 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5006 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5007
b315ab21
TG
50082011-06-27 Tristan Gingold <gingold@adacore.com>
5009
5010 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5011 field by map_addr and map_len.
5012 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5013 (munmap_section_buffer): Likewise.
5014
ddd49eee
TT
50152011-06-24 Tom Tromey <tromey@redhat.com>
5016
5017 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5018 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5019 * python/python.c (gdbpy_parameter): Make 'arg' const.
5020 (execute_gdb_command): Likewise.
5021 (gdbpy_decode_line): Likewise. Copy it.
5022 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5023 (gdbpy_write): Make 'arg' const.
5024 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5025 const.
5026 (gdbpy_lookup_type): Likewise.
5027 * python/py-prettyprint.c (print_children): Make 'name' const.
5028 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5029 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5030 Py_ssize_t.
5031 * python/py-function.c (fnpy_init): Make 'name' const.
5032 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5033 (gdbpy_string_to_argv): Make 'input' const.
5034 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5035 it.
5036 * gdbtypes.h (lookup_typename): Update.
5037 * gdbtypes.c (lookup_typename): Make 'name' const.
5038 (lookup_struct): Likewise.
5039 (lookup_union): Likewise.
5040 (lookup_enum): Likewise.
5041
5998129b
TT
50422011-06-24 Tom Tromey <tromey@redhat.com>
5043
5044 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5045 gdb_thread_db.h. Move all common/ entries to be together.
5046 (TAGS): Don't depend on DEPFILES.
5047
6e586cc5
YQ
50482011-06-23 Yao Qi <yao@codesourcery.com>
5049
5050 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5051 * remote.c (remote_start_remote): ... here.
5052 * monitor.c (monitor_open): ... here.
5053
86c3c1fc
AB
50542011-06-23 Andrew Burgess <aburgess@broadcom.com>
5055
5056 * gdbtypes.c (append_composite_type_field_aligned): Fix
5057 calculation of bit position based on alignment.
5058
28010a5d
PA
50592011-06-22 Pedro Alves <pedro@codesourcery.com>
5060
5061 * breakpoint.c (bpstat_stop_status): Call the check_status
5062 breakpoint_ops method.
5063 (print_one_breakpoint_location): Also print the condition for Ada
5064 exception catchpoints.
5065 (allocate_bp_location): New, factored out from
5066 allocate_bp_location.
5067 (allocate_bp_location): Adjust. Call the owner breakpoint's
5068 allocate_location method, if there is one.
5069 (free_bp_location): Call the locations's dtor method, if there is
5070 one.
5071 (init_raw_breakpoint_without_location): New breakpoint_ops
5072 parameter. Use it.
5073 (set_raw_breakpoint_without_location): Adjust.
5074 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5075 (set_raw_breakpoint): Adjust.
5076 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5077 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5078 re_set and check_status methods.
5079 (init_catchpoint): Don't memset, initialize thread, addr_string
5080 and enable_state. Pass the ops down to init_raw_breakpoint.
5081 (install_catchpoint): Rename to ...
5082 (install_breakpoint): ... this, and make extern.
5083 (create_fork_vfork_event_catchpoint): Adjust.
5084 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5085 re_set and check_status methods.
5086 (create_syscall_event_catchpoint): Adjust.
5087 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5088 (masked_watchpoint_breakpoint_ops): Install NULL
5089 allocate_location, re_set and check_status methods.
5090 (catch_exec_command_1): Adjust.
5091 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5092 re_set and check_status methods.
5093 (create_ada_exception_breakpoint): Rename to ...
5094 (init_ada_exception_breakpoint): ... this. Add a struct
5095 breakpoint parameter, and delete the exp_string, cond_string and
5096 cond parameters. Use init_raw_breakpoint, and don't install or
5097 mention the breakpoint yet. Don't clear breakpoint fields that
5098 init_raw_breakpoint already clears.
5099 (re_set_breakpoint): Delete, split into ...
5100 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5101 functions.
5102 (breakpoint_re_set_one): Call the breakpoint's
5103 breakpoint_ops->re_set implementation, if there's one. Adjust.
5104 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5105 (struct bp_location_ops): New type.
5106 (struct bp_location): New field `ops'.
5107 (struct breakpoint_ops): New `allocate_location', `re_set' and
5108 `check_status' fields. Make `breakpoint_hit''s description match
5109 reality.
5110 (init_bp_location): Declare.
5111 (breakpoint_re_set_default): Declare.
5112 (create_ada_exception_breakpoint): Rename to ...
5113 (init_ada_exception_breakpoint): ... this. Add a struct
5114 breakpoint parameter, and delete the exp_string, cond_string and
5115 cond parameters.
5116 (install_breakpoint): Declare.
5117 * ada-lang.c: Include exceptions.h.
5118 <Ada exceptions description>: Update.
5119 (struct ada_catchpoint_location): New type.
5120 (ada_catchpoint_location_dtor): New function.
5121 (ada_catchpoint_location_ops): New global.
5122 (ada_catchpoint): New type.
5123 (create_excep_cond_exprs): New function.
5124 (dtor_exception, allocate_location_exception, re_set_exception)
5125 (should_stop_exception, check_status_exception): New functions.
5126 (print_one_exception, print_mention_exception)
5127 (print_recreate_exception): Adjust.
5128 (dtor_catch_exception, allocate_location_catch_exception)
5129 (re_set_catch_exception, check_status_catch_exception): New
5130 functions.
5131 (catch_exception_breakpoint_ops): Install them.
5132 (dtor_catch_exception_unhandled)
5133 (allocate_location_catch_exception_unhandled)
5134 (re_set_catch_exception_unhandled)
5135 (check_status_catch_exception_unhandled): New functions.
5136 (catch_exception_unhandled_breakpoint_ops): Install them.
5137 (dtor_catch_assert, allocate_location_catch_assert)
5138 (re_set_catch_assert, check_status_catch_assert): New functions.
5139 (catch_assert_breakpoint_ops): Install them.
5140 (ada_exception_catchpoint_p): Delete.
5141 (catch_ada_exception_command_split)
5142 (ada_exception_catchpoint_cond_string): Rename exp_string
5143 parameter to excep_string. Adjust.
5144 (ada_parse_catchpoint_condition): Delete.
5145 (ada_exception_sal): Rename the exp_string parameter to
5146 excep_string. Delete the cond_string and cond parameters.
5147 Adjust.
5148 (ada_decode_exception_location): Rename the exp_string parameter
5149 to excep_string. Delete the cond_string and cond parameters.
5150 Adjust.
5151 (create_ada_exception_catchpoint): New function.
5152 (catch_ada_exception_command, ada_decode_assert_location)
5153 (catch_assert_command): Adjust.
5154 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5155
9ac4176b
PA
51562011-06-22 Pedro Alves <pedro@codesourcery.com>
5157
5158 * ada-lang.c: Include arch-utils.h.
5159 (ada_decode_exception_location): Make static.
5160 (catch_ada_exception_command): Moved here from breakpoint.c.
5161 (ada_decode_assert_location): Make static.
5162 (catch_assert_command): Moved here from breakpoint.c.
5163 (_initialize_ada_lang): Install the exception and assert
5164 catchpoint commands here.
5165 * ada-lang.h (ada_decode_exception_location)
5166 (ada_decode_assert_location): Delete declarations.
5167 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5168 breakpoint.h.
5169 (create_ada_exception_breakpoint): Make extern.
5170 (catch_ada_exception_command, catch_assert_command): Moved to
5171 ada-lang.c.
5172 (add_catch_command): Make extern.
5173 (_initilize_breakpoint): Don't install the exception and assert
5174 catchpoint commands here.
5175 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5176 breakpoint.c
5177 (add_catch_command, create_ada_exception_breakpoint): Declare.
5178
c56053d2
PA
51792011-06-22 Pedro Alves <pedro@codesourcery.com>
5180
5181 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5182 the breakpoint to the breakpoint chain here.
5183 (set_raw_breakpoint_without_location): Add the breakpoint to the
5184 breakpoint chain here.
5185 (init_raw_breakpoint): Adjust comments.
5186 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5187 here.
5188 (init_catchpoint): Don't set the catchpoint's breakpoint number
5189 here.
5190 (install_catchpoint): New function.
5191 (create_fork_vfork_event_catchpoint)
5192 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5193 use install_catchpoint.
5194
d2f3fc74
PA
51952011-06-22 Pedro Alves <pedro@codesourcery.com>
5196
5197 * breakpoint.c (create_catchpoint_without_mention)
5198 (create_catchpoint): Delete.
5199
b4d90040
PA
52002011-06-22 Pedro Alves <pedro@codesourcery.com>
5201
5202 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5203 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5204 reference to exec_pathname.
5205 (struct exec_catchpoint): New type.
5206 (dtor_catch_exec): New function.
5207 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5208 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5209 (catch_exec_command_1): Adjust to use init_catchpoint.
5210 (delete_breakpoint): Remove reference to exec_pathname.
5211
be5c67c1
PA
52122011-06-22 Pedro Alves <pedro@codesourcery.com>
5213
5214 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5215 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5216 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5217 reference to syscalls_to_be_caught.
5218 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5219 NULL `dtor'.
5220 (struct syscall_catchpoint): New type.
5221 (dtor_catch_syscall): New function.
5222 (insert_catch_syscall, remove_catch_syscall)
5223 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5224 (print_recreate_catch_syscall): Adjust.
5225 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5226 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5227 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5228 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5229 (masked_watchpoint_breakpoint_ops)
5230 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5231 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5232 there is one. Remove references to syscalls_to_be_caught.
5233 (catching_syscall_number): Adjust.
5234 * ada-lang.c (catch_exception_breakpoint_ops)
5235 (catch_exception_unhandled_breakpoint_ops)
5236 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5237
e29a4733
PA
52382011-06-22 Pedro Alves <pedro@codesourcery.com>
5239
5240 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5241 field.
5242 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5243 reference to forked_inferior_pid.
5244 (struct fork_catchpoint): New type.
5245 (breakpoint_hit_catch_fork, print_it_catch_fork)
5246 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5247 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5248 (create_fork_vfork_event_catchpoint): Adjust to use
5249 init_catchpoint.
5250
346774a9
PA
52512011-06-22 Pedro Alves <pedro@codesourcery.com>
5252
5253 * breakpoint.c (add_to_breakpoint_chain)
5254 (init_raw_breakpoint_without_location): New functions, factored
5255 out from ...
5256 (set_raw_breakpoint_without_location): ... this one.
5257 (init_raw_breakpoint): New function, factored out from
5258 set_raw_breakpoint and adjusted to use
5259 init_raw_breakpoint_without_location.
5260 (set_raw_breakpoint): Adjust.
5261 (init_catchpoint): New function, factored out from
5262 create_catchpoint_without_mention and adjusted to use
5263 init_raw_breakpoint.
5264 (create_catchpoint_without_mention): Adjust.
5265
c38c4bc5
TT
52662011-06-22 Tom Tromey <tromey@redhat.com>
5267
5268 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5269 argument of 0 specially.
5270
b138ce37
YQ
52712011-06-22 Yao Qi <yao@codesourcery.com>
5272
5273 * infrun.c (handle_inferior_event): Remove write-only local variable
5274 `sw_single_step_trap_p'.
5275
03de6823
TT
52762011-06-20 Tom Tromey <tromey@redhat.com>
5277
5278 * symtab.c (lookup_language_this): End loop if block is NULL.
5279
66a17cb6
TT
52802011-06-17 Tom Tromey <tromey@redhat.com>
5281
5282 * valops.c (value_of_this): Use lookup_language_this.
5283 * symtab.h (lookup_language_this): Declare.
5284 * symtab.c (lookup_language_this): New function.
5285 (lookup_symbol_aux): Use lookup_language_this.
5286 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5287
7518bff5
TT
52882011-06-17 Tom Tromey <tromey@redhat.com>
5289
5290 * value.h (value_of_this): Update.
5291 (value_of_local): Remove.
5292 * valops.c (value_of_this): Rename from value_of_local. Change
5293 parameters.
5294 * p-exp.y (exp): Update.
5295 (variable): Likewise.
5296 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5297
aee28ec6
TT
52982011-06-17 Tom Tromey <tromey@redhat.com>
5299
5300 * valops.c (value_of_local): Complain if NAME is NULL.
5301 * std-operator.def (OP_OBJC_SELF): Remove.
5302 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5303 * objc-exp.y (name_not_typename): Use OP_THIS.
5304 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5305 name for "this".
5306 <OP_OBJC_SELF>: Remove.
5307 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5308
eed8f803
TG
53092011-06-16 Tristan Gingold <gingold@adacore.com>
5310
5311 * python/py-events.h (gdb_py_events): Make it extern.
5312 * python/py-evtregistry.c (gdb_py_events): Declare.
5313
864ac8a7
HZ
53142011-06-16 Hui Zhu <teawater@gmail.com>
5315
5316 * remote.c (remote_trace_set_readonly_regions): Add check for
5317 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5318 output warning.
5319
ef7e8358
UW
53202011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5321
5322 * arm-linux-tdep.c: Include "auxv.h".
5323 (AT_HWCAP): Define.
5324 (ARM_LINUX_SIZEOF_VFP): Define.
5325 (arm_linux_supply_vfp): New function.
5326 (arm_linux_collect_vfp): Likewise.
5327 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5328 (arm_linux_fpa_regset_sections): New variable.
5329 (arm_linux_vfp_regset_sections): Likewise.
5330 (arm_linux_core_read_description): New function.
5331 (arm_linux_init_abi): Install arm_linux_core_read_description and
5332 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5333 appropriate for the architecture.
5334 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5335 (tdesc_arm_with_m): Declare.
5336 (tdesc_arm_with_iwmmxt): Likewise.
5337 (tdesc_arm_with_vfpv2): Likewise.
5338 (tdesc_arm_with_vfpv3): Likewise.
5339 (tdesc_arm_with_neon): Likewise.
5340 * arm-linux-nat.c: Move features/*.c includes ...
5341 * arm-tdep.c: ... here.
5342 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5343 target description data structures ...
5344 * arm-tdep.c (_initialize_arm_tdep): ... here.
5345 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5346 HWCAP_VFPv3D16): Move definitions ...
5347 * arm-linux-tdep.h: ... here.
5348
c2fa21f1
HZ
53492011-06-15 Hui Zhu <teawater@gmail.com>
5350
5351 * remote.c (remote_trace_set_readonly_regions): Add a check for
5352 target_buf_size.
5353
dd707e8e
TT
53542011-06-14 Tom Tromey <tromey@redhat.com>
5355
5356 * coffread.c (coffread_objfile): Rename from current_objfile.
5357 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5358 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5359
86cc0029
TT
53602011-06-14 Tom Tromey <tromey@redhat.com>
5361
5362 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5363 (class_symtab): Remove.
5364 (jv_dynamics_progspace_key): New global.
5365 (jv_per_objfile_free): Reset program space data. Update assert.
5366 Don't clear globals.
5367 (get_dynamics_objfile): Use and set program space data.
5368 (get_java_class_symtab): Use get_dynamics_objfile.
5369 (add_class_symbol): Likewise.
5370 (java_link_class_type): Likewise.
5371 (java_object_type, jv_clear_object_type, set_java_object_type):
5372 Remove.
5373 (get_java_object_type): Update. Don't cache result.
5374 (is_object_type): Don't call set_java_object_type.
5375 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5376 initialize jv_dynamics_progspace_key.
5377
91a81f69
TT
53782011-06-14 Tom Tromey <tromey@redhat.com>
5379
5380 * symtab.h (current_objfile): Don't declare.
5381 * objfiles.h (current_objfile): Don't declare.
5382 * objfiles.c (current_objfile): Remove.
5383 * mdebugread.c (current_objfile): New file-scope global.
5384 * dbxread.c (current_objfile): New file-scope global.
5385 * coffread.c (current_objfile): New file-scope global.
5386
dc7eb48e
PA
53872011-06-13 Pedro Alves <pedro@codesourcery.com>
5388
5389 * top.h (line): Rename to ...
5390 (saved_command_line): ... this.
5391 (linesize): Rename to ...
5392 (saved_command_line_size): ... this.
5393 * top.c (line): Rename to ...
5394 (saved_command_line): ... this.
5395 (linesize): Rename to ...
5396 (saved_command_line_size): ... this.
5397 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5398 * event-top.c (command_line_handler): Adjust.
5399 * main.c (captured_main): Adjust.
5400
0d6c2135
MK
54012011-06-12 Mark Kettenis <kettenis@gnu.org>
5402
5403 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5404 get_frame_func instead of get_frame_pc to determine the code
5405 address used to construct the frame ID.
5406 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5407 (i386_epilogue_frame_this_id): Likewise.
5408 (i386_epilogue_frame_prev_register): New function.
5409 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5410 (i386_stack_tramp_frame_sniffer): Fix coding style.
5411 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5412 (i386_gdbarch_init): Fix comments.
5413
8bbdd3f4
MK
54142011-06-12 Mark Kettenis <kettenis@gnu.org>
5415
5416 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5417 instruction when walking back through the instruction stream.
5418
533a737e
JK
54192011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5420
5421 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5422 fullname parameters order.
5423
44b13c5a
JK
54242011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 Code cleanup.
5427 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5428 for fun.
5429 * psymtab.c (map_symbol_filenames_psymtab)
5430 (map_partial_symbol_filenames): Likewise.
5431 * psymtab.h: Include symfile.h.
5432 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5433 * symfile.h (symbol_filename_ftype): New.
5434 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5435 map_symbol_filenames, clarify more the naming in comment.
5436
0b5574da
DE
54372011-06-07 Doug Evans <dje@google.com>
5438
5439 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5440 Look for ../../gdb, for fullname.exp.
0b5574da 5441
5be4dfca
JK
54422011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5443 Pedro Alves <pedro@codesourcery.com>
5444
5445 * cli/cli-cmds.c (shell_escape): Use waitpid.
5446 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5447
316a8b21
TG
54482011-06-07 Tristan Gingold <gingold@adacore.com>
5449
5450 * xcoffread.c (dwarf2_xcoff_names): New variable.
5451 (aix_process_linenos): Add a guard.
5452 (xcoff_symfile_finish): Free dwarf2.
5453 (xcoff_initial_scan): Add dwarf2 support.
5454
3dd5b83d
PA
54552011-06-06 Pedro Alves <pedro@codesourcery.com>
5456
5457 * infcall.c (run_inferior_call): Don't mask async. Instead force
5458 a synchronous wait, if the target can async.
5459
5460 * target.h (struct target_ops): Delete to_async_mask.
5461 (target_async_mask): Delete.
5462 * target.c (update_current_target): Delete references to to_async_mask.
5463 * linux-nat.c (linux_nat_async_mask_value): Delete.
5464 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5465 to linux_nat_async_mask_value.
5466 (linux_nat_async_mask): Delete.
5467 (linux_nat_async, linux_nat_close): Remove references to
5468 linux_nat_async_mask_value.
5469 * record.c (record_async_mask_value): Delete.
5470 (record_async): Remove references to record_async_mask_value.
5471 (record_async_mask): Delete.
5472 (record_can_async_p, record_is_async_p): Remove references to
5473 record_async_mask_value.
5474 (init_record_ops, init_record_core_ops): Remove references to
5475 record_async_mask.
5476 * remote.c (remote_async_mask_value): Delete.
5477 (init_remote_ops): Remove reference to remote_async_mask.
5478 (remote_can_async_p, remote_is_async_p): Remove references to
5479 remote_async_mask_value.
5480 (remote_async): Remove references to remote_async_mask_value.
5481 (remote_async_mask): Delete.
5482
5483 * infrun.c (fetch_inferior_event): Don't claim registers changed
5484 if the current thread is already not executing.
5485
64b9b334
JB
54862011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5487
5488 From Stephen Kitt <steve@sk2.org>
5489 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5490 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5491
325663dc
JB
54922011-06-03 Joel Brobecker <brobecker@adacore.com>
5493
5494 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5495 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5496
8cf64490
TT
54972011-06-03 Tom Tromey <tromey@redhat.com>
5498
5499 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5500 code fields.
5501 * python/py-exitedevent.c (create_exited_event_object): Change
5502 type of 'exit_code'. Optionally add exit_code attribute.
5503 (emit_exited_event): Change type of 'exit_code'.
5504 * python/py-event.h (emit_exited_event): Update.
5505 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5506 * infrun.c (handle_inferior_event): Set exit code fields on
5507 inferior.
5508 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5509 fields.
5510 * inferior.c (exit_inferior_1): Initialize new fields.
5511
8ddd9a20
TT
55122011-06-03 Tom Tromey <tromey@redhat.com>
5513
5514 * dwarf2expr.c (get_signed_type): New function.
5515 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5516
8dfd1e6d
KS
55172011-06-02 Keith Seitz <keiths@redhat.com>
5518
5519 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5520
65fdb766
PA
55212011-06-02 Pedro Alves <pedro@codesourcery.com>
5522
5523 * top.h (simplified_command_loop): Delete declaration.
5524
f4b8c29b
MF
55252011-06-01 Mike Frysinger <vapier@gentoo.org>
5526
5527 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5528 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5529
1706c199
YQ
55302011-06-01 Yao Qi <yao@codesourcery.com>
5531
5532 * objfiles.h (obj_section_addr): Update reference to objfile from
5533 `abfd' to `obfd'.
5534 (obj_section_endaddr): Likewise.
5535
d19cd713 55362011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5537
5538 * MAINTAINERS: Update my email address and affiliation. Also
5539 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5540
e8eb7bc5
KS
55412010-05-31 Keith Seitz <keiths@redhat.com>
5542
5543 PR c++/12750
5544 * linespec.c (get_search_block): New function.
5545 (find_methods): Add FILE_SYMTATB parameter and use it and
5546 get_search_block to pass an appropriate block to
5547 lookup_symbol_in_namespace.
5548 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5549 Check if *ARGPTR starts with a filename first.
5550 If it does, call locate_first_half again to locate the next
5551 "first half" of the linespec.
5552 Pass FILE_SYMTATB to decode_objc and decode_compound.
5553 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5554 (locate_first_half): Stop on the first colon seen.
5555 (decode_compound): Add FILE_SYMTAB parameter.
5556 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5557 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5558 get_search_block with lookup_symbol.
5559 (find_method): Add FILE_SYMTAB parameter and pass it to
5560 find_methods.
5561 (decode_objc): Use get_search_block.
5562
2b1dbab0
KS
55632010-05-31 Keith Seitz <keiths@redhat.com>
5564
5565 PR symtab/12704
5566 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5567 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5568 and CP_ANONYMOUS_NAMESPACE_LEN.
5569 (cp_is_anonymous): Likewise.
5570 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5571 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5572 * dwarf2read.c (namespace_name): Likewise.
5573 (fixup_partial_die): Likewise.
5574 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5575 seen in the input, keep it.
5576
6d549500
PA
55772011-05-30 Pedro Alves <pedro@codesourcery.com>
5578
5579 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5580 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5581 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5582 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5583 * remote.c (_initialize_remote): Register
5584 async_remote_interrupt_twice directly as
5585 sigint_remote_twice_token event.
5586
395bff70
PA
55872011-05-30 Pedro Alves <pedro@codesourcery.com>
5588
5589 * target.h (enum inferior_event_type): Delete INF_ERROR.
5590 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5591
97224164
PA
55922011-05-30 Pedro Alves <pedro@codesourcery.com>
5593
5594 * interps.c (interp_set): Don't cancel continuations.
5595
07e78767
JK
55962011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5597
5598 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5599
fa4cd53f
PA
56002011-05-30 Pedro Alves <pedro@codesourcery.com>
5601
5602 * continuations.h (continuation_ftype): Add `err' parameter.
5603 Document parameters.
5604 (do_all_continuations, do_all_continuations_thread)
5605 (do_all_intermediate_continuations)
5606 (do_all_intermediate_continuations_thread)
5607 (do_all_inferior_continuations): Add `err' parameter.
5608 * continuations.c (do_my_continuations_1, do_my_continuations)
5609 (do_all_inferior_continuations, do_all_continuations_ptid)
5610 (do_all_continuations_thread_callback)
5611 (do_all_continuations_thread, do_all_continuations)
5612 (do_all_intermediate_continuations_thread_callback)
5613 (do_all_intermediate_continuations_thread)
5614 (do_all_intermediate_continuations): Add `err' parameter, and pass
5615 it down all the way to the continuations proper.
5616 * inf-loop.c (inferior_event_handler): If fetching an inferior
5617 event throws an error, don't pop the target, and still call the
5618 continuations, but with `err' set. Adjust all other continuation
5619 calls.
5620 * breakpoint.c (until_break_command_continuation): Add `err'
5621 parameter.
5622 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5623 issue another step if `err' is set.
5624 (struct until_next_continuation_args): New.
5625 (until_next_continuation): Add `err' parameter. Adjust.
5626 (until_next_command): Adjust.
5627 (struct finish_command_continuation_args): Add `thread' field.
5628 (finish_command_continuation): Add `err' parameter. Handle it.
5629 (finish_forward): Adjust.
5630 (attach_command_continuation): Add `err' parameter. Handle it.
5631 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5632 cancel the continuations.
5633 * interps.c (interp_set): Adjust to cancel the continuations.
5634 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5635 continuations rather than discarding.
5636 (free_thread): Don't clear thread inferior resources here.
5637 (delete_thread_1): Do it here instead. And do it before removing
5638 the thread from the threads list. Tag the thread as exited before
5639 clearing thread inferior resources.
5640
c2949be0
JB
56412011-05-30 Joel Brobecker <brobecker@adacore.com>
5642
5643 * infcall.c (call_function_by_hand): Rephrase error message.
5644
619cebe8
PA
56452011-05-27 Pedro Alves <pedro@codesourcery.com>
5646
5647 * defs.h (struct thread_info, struct inferior): Delete forward
5648 declarations.
5649 * breakpoint.h (struct thread_info): New forward declaration.
5650 * observer.sh (struct inferior): New forward declaration.
5651 * python/python-internal.h (struct inferior): New forward
5652 declaration.
5653
be34f849
PA
56542011-05-27 Pedro Alves <pedro@codesourcery.com>
5655
5656 * defs.h (struct continuation, continuation_ftype)
5657 (continuation_free_arg_ftype, add_continuation)
5658 (do_all_continuations, do_all_continuations_thread)
5659 (discard_all_continuations, discard_all_continuations_thread)
5660 (add_intermediate_continuation, do_all_intermediate_continuations)
5661 (do_all_intermediate_continuations_thread)
5662 (discard_all_intermediate_continuations)
5663 (discard_all_intermediate_continuations_thread)
5664 (add_inferior_continuation, do_all_inferior_continuations)
5665 (discard_all_inferior_continuations): Move to ...
5666 * continuations.h: ... this new file.
5667 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5668 infcmd.c, inferior.c, infrun.c, interps.c: Include
5669 continuations.h.
5670
432b4d03
JK
56712011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5672 Doug Evans <dje@google.com>
5673
5674 Fix PR 10970, PR 12702.
5675 * linux-nat.c (linux_lwp_is_zombie): New function.
5676 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5677 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5678
b0f260d6
PA
56792011-05-27 Pedro Alves <pedro@codesourcery.com>
5680
5681 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5682 typedefs.
5683 (add_continuation, add_intermediate_continuation)
5684 (add_inferior_continuation): Use them.
5685 * continuations.c (struct continuation): Use them.
5686 (make_continuation_ftype): Delete.
5687 (make_continuation, add_inferior_continuation, add_continuation)
5688 (add_intermediate_continuation): Use continuation_ftype and
5689 continuation_free_arg_ftype. Rename parameters to shorter names.
5690
af1e9a32
PA
56912011-05-27 Pedro Alves <pedro@codesourcery.com>
5692
5693 * continuations.c (make_continuation): Make it return void.
5694 (do_my_continuations): Rename to ...
5695 (do_my_continuations_1): ... this. Remove old_chain parameter and
5696 adjust.
5697 (do_my_continuations): New.
5698 (discard_my_continuations): Rename to ...
5699 (discard_my_continuations_1): ... this. Remove old_chain
5700 parameter and adjust.
5701 (discard_my_continuations): New.
5702 (add_inferior_continuation): Simplify.
5703 (do_all_inferior_continuations): Reimplement on top
5704 do_my_continuations.
5705 (discard_all_inferior_continuations): Simplify.
5706 (add_continuation): Simplify.
5707 (do_all_continuations_ptid): Simplify.
5708 (discard_all_continuations_thread_callback): Simplify.
5709 (add_intermediate_continuation): Simplify.
5710 (discard_all_intermediate_continuations_thread_callback):
5711 Simplify.
5712
50c0c017
PA
57132011-05-27 Pedro Alves <pedro@codesourcery.com>
5714
5715 * utils.c (struct continuation, add_continuation)
5716 (add_inferior_continuation)
5717 (do_all_inferior_continuations, discard_all_inferior_continuations)
5718 (restore_thread_cleanup, do_all_continuations_ptid)
5719 (do_all_continuations_thread_callback)
5720 (do_all_continuations_thread, do_all_continuations)
5721 (discard_all_continuations_thread_callback)
5722 (discard_all_continuations_thread, discard_all_continuations)
5723 (add_intermediate_continuation)
5724 (do_all_intermediate_continuations_thread_callback)
5725 (do_all_intermediate_continuations_thread)
5726 (do_all_intermediate_continuations)
5727 (discard_all_intermediate_continuations_thread_callback)
5728 (discard_all_intermediate_continuations_thread)
5729 (discard_all_intermediate_continuations): Move to ...
5730 * continuations.c: ... this new file, and adjust to no longer
5731 implement continuations on top of cleanups.
5732 * Makefile.in (SFILES): Add continuations.c.
5733 (COMMON_OBS): Add continuations.o.
5734
d8b34453
PA
57352011-05-26 Pedro Alves <pedro@codesourcery.com>
5736
5737 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5738 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5739 Internal error on invalid values.
5740 * reverse.c: Don't handle EXEC_ERROR.
5741 * mi/mi-main.c: Don't handle EXEC_ERROR.
5742
32231432
PA
57432011-05-26 Pedro Alves <pedro@codesourcery.com>
5744
5745 * record.c: Include event-loop.h, inf-loop.h.
5746 (record_beneath_to_async): New global.
5747 (tmp_to_async): New global.
5748 (record_async_inferior_event_token): New global.
5749 (record_open_1): Don't error out if async is enabled.
5750 (record_open): Handle to_async. Create an async event source in
5751 the event loop.
5752 (record_close): Delete the async event source.
5753 (record_resumed): New global.
5754 (record_execution_dir): New global.
5755 (record_resume, record_core_resume): Set them. Register the
5756 target on the event loop.
5757 (record_wait): Rename to ...
5758 (record_wait_1): ... this. Add more debug output. Handle
5759 TARGET_WNOHANG, and the target beneath returning
5760 TARGET_WAITKIND_IGNORE.
5761 (record_wait): Reimplement on top of record_wait_1.
5762 (record_async_mask_value): New global.
5763 (record_async, record_async_mask, record_can_async_p)
5764 (record_is_async_p, record_execution_direction): New functions.
5765 (init_record_ops, init_record_core_ops): Install new methods.
5766 * infrun.c (fetch_inferior_event): Temporarily switch the global
5767 execution direction to the direction the target was going.
5768 (execution_direction): Change type to int.
5769 * target.c (default_execution_direction): New function.
5770 (update_current_target): Inherit and de_fault
5771 to_execution_direction.
5772 * target.h (struct target_ops) <to_execution_direction>: New
5773 field.
5774 (target_execution_direction): New macro.
5775 * inferior.h (execution_direction): Change type to int.
5776
949dc678
PA
57772011-05-26 Pedro Alves <pedro@codesourcery.com>
5778
5779 * infcall.c (call_function_by_hand): Don't allow calling functions
5780 in reverse execution mode.
5781
c13bd2b5
PA
57822011-05-26 Pedro Alves <pedro@codesourcery.com>
5783
5784 * infcmd.c (finish_command): Allow async finish in reverse.
5785
6938fd34
YQ
57862011-05-26 Yao Qi <yao@codesourcery.com>
5787
5788 * gdb_thread_db.h: Delete. Move to ...
5789 * common/gdb_thread_db.h: ... here.
5790
9da8c2a0
PA
57912011-05-26 Pedro Alves <pedro@codesourcery.com>
5792
5793 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5794 function's entry point instead of a manually managed momentary
5795 breakpoint, and only ever issue one proceed call.
5796 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5797 doing a reverse-finish, switch to stepi mode, to do another step.
5798 (insert_step_resume_breakpoint_at_sal): Make public.
5799 (normal_stop): No need to save function value return registers if
5800 going reverse.
5801 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5802
2c03e5be
PA
58032011-05-26 Pedro Alves <pedro@codesourcery.com>
5804
5805 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5806 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5807 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5808 at the end.
5809 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5810 step-resume breakpoints.
5811 (print_it_typical): Handle bp_hp_step_resume.
5812 (bpstat_what): Ditto.
5813 (bptype_string): Ditto.
5814 (print_one_breakpoint_location): Ditto.
5815 (allocate_bp_location): Ditto.
5816 (mention): Ditto.
5817 (breakpoint_re_set_one): Ditto.
5818 * infrun.c (handle_inferior_event): Adjust. Split
5819 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5820 BPSTAT_WHAT_HP_STEP_RESUME.
5821 (insert_step_resume_breakpoint_at_sal): Rename to ...
5822 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5823 parameter. Handle it.
5824 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5825 insert_step_resume_breakpoint_at_sal_1.
5826 (insert_step_resume_breakpoint_at_frame): Rename to ...
5827 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5828 set a high-priority step-resume breakpoint.
5829 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5830 (insert_step_resume_breakpoint_at_caller): Ditto.
5831
51be5b68
PA
58322011-05-26 Pedro Alves <pedro@codesourcery.com>
5833
5834 * breakpoint.c (iterate_over_related_breakpoints): New.
5835 (do_map_delete_breakpoint): New.
5836 (delete_command): Pass do_map_delete_breakpoint to
5837 map_breakpoint_numbers.
5838 (do_disable_breakpoint): New.
5839 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5840 breakpoints.
5841 (do_enable_breakpoint): Rename to ...
5842 (enable_breakpoint_disp): ... this.
5843 (enable_breakpoint): Adjust.
5844 (do_enable_breakpoint): New.
5845 (enable_once_breakpoint): Delete.
5846 (do_map_enable_breakpoint): New.
5847 (do_map_enable_once_breakpoint): New.
5848 (enable_once_command, enable_delete_command)
5849 (delete_trace_command): Iterate over the breakpoint's related
5850 breakpoints.
5851
4a1be8d2
PA
58522011-05-26 Pedro Alves <pedro@codesourcery.com>
5853
5854 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5855 for ALPHA_ZERO_REGNUM.
5856 (alpha_supply_int_regs): Explicitly supply zero as the value for
5857 ALPHA_ZERO_REGNUM in the register cache.
5858 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5859
59d70315
YQ
58602011-05-26 Yao Qi <yao@codesourcery.com>
5861
5862 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5863
251d32d9
TG
58642011-05-26 Tristan Gingold <gingold@adacore.com>
5865
5866 * symfile.h (struct dwarf2_section_names): New type.
5867 (struct dwarf2_debug_sections): New type.
5868 (dwarf2_has_info): Add parameter.
5869 * dwarf2read.c (dwarf2_elf_names): New variable.
5870 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5871 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5872 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5873 (dwarf2_has_info): Add names parameter. Pass names
5874 to dwarf2_locate_sections.
5875 (section_is_p): Rewrite using the names parameter.
5876 (dwarf2_locate_sections): Use section names from the names parameter.
5877 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5878 * elfread.c (read_psyms): Ditto.
5879 * machoread.c (macho_symfile_read): Ditto.
5880
652c71b4
AS
58812011-05-25 Andreas Schwab <schwab@redhat.com>
5882
5883 PR gdb/8677
5884 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5885
f17170e5
KS
58862011-05-24 Keith Seitz <keiths@redhat.com>
5887
5888 PR breakpoint/12803
5889 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5890 (decode_compound): Unconditionally call keep_name_info.
5891
cdac0397
PA
58922011-05-24 Pedro Alves <pedro@codesourcery.com>
5893
5894 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5895 scope, clear its command list.
5896 (map_breakpoint_numbers): Don't walk the related breakpoints list
5897 of each breakpoint.
5898
91d4fe3f
TT
58992011-05-24 Tom Tromey <tromey@redhat.com>
5900
5901 * MAINTAINERS: Move Jim Blandy to past maintainers.
5902
3017a003
TG
59032011-05-24 Tristan Gingold <gingold@adacore.com>
5904
5905 * symfile.h (enum dwarf2_section_enum): New type.
5906 (dwarf2_get_section_info): New prototype.
5907 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5908 section_name by sect. Use a switch to select the info.
5909 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5910 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5911
c91c8c16
PA
59122011-05-24 Pedro Alves <pedro@codesourcery.com>
5913
5914 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5915 shared library event breakpoint if there's no execution.
5916
77bc418a
TJB
59172011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5918
5919 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5920 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5921
c50491a7
TT
59222011-05-23 Tom Tromey <tromey@redhat.com>
5923
5924 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5925 NULL.
5926
6d64e6d4
DE
59272011-05-23 Doug Evans <dje@google.com>
5928
5929 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5930 entry for RuntimeError to doc string.
5931
2067c8d4
JG
59322011-05-23 Jerome Guitton <guitton@adacore.com>
5933
5934 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5935 sequence for probing loops.
5936
b136cd05
PA
59372011-05-23 Pedro Alves <pedro@codesourcery.com>
5938
5939 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5940 comment.
5941
22e74ef9
MK
59422011-05-21 Mark Kettenis <kettenis@gnu.org>
5943
5944 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5945 zero as the value for %g0 in the register cache.
5946 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5947 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5948
842951eb
PA
59492011-05-20 Pedro Alves <pedro@codesourcery.com>
5950
5951 * infrun.c (proceed): Set previous_inferior_ptid here.
5952 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5953 inferior_ptid, not null_ptid.
5954 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5955 (fetch_inferior_event): Nor here.
5956
46cf51e6
PA
59572011-05-20 Pedro Alves <pedro@codesourcery.com>
5958
5959 * inf-loop.c (inferior_event_handler): Only output a message if
5960 verbose.
5961
29ef4c46
LM
59622011-05-20 Luis Machado <lgustavo@codesourcery.com>
5963
5964 * MAINTAINERS: Update my e-mail address.
5965
f148b27e
PA
59662011-05-20 Pedro Alves <pedro@codesourcery.com>
5967
5968 * infrun.c (proceed): Switch the inferior event loop to
5969 INF_EXEC_COMPLETE if the target refused to resume from a
5970 vfork/fork.
5971
09cee04b
PA
59722011-05-20 Pedro Alves <pedro@codesourcery.com>
5973
5974 * infcmd.c: Include "inf-loop.h".
5975 (step_once): When stepping into an inline subroutine, pretend the
5976 target has run. If the target can async, switch the inferior
5977 event loop to INF_EXEC_COMPLETE.
5978 * inferior.h (user_visible_resume_ptid): Declare.
5979 * infrun.c (user_visible_resume_ptid): New function, factored out
5980 from `resume'.
5981 (resume): Use it.
5982 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5983 that the current thread is running. Merge async and sync
5984 branches.
5985
751b8ce1
PA
59862011-05-20 Pedro Alves <pedro@codesourcery.com>
5987
5988 * infcmd.c (step_1): Simplify synchronous case.
5989
e93a69ed
PA
59902011-05-20 Pedro Alves <pedro@codesourcery.com>
5991
5992 * tracepoint.c: Include exceptions.h.
5993 (TFILE_PID): Move higher in file.
5994 (tfile_open): Delay pushing the tfile target until we're assured
5995 the tfile header is present in the file. Wrap reading the initial
5996 newline-terminated lines in TRY_CATCH. Pop the target if the
5997 initial setup failed. Add the tfile's thread immediately
5998 aftwards, before any non-essential setup. Don't skip
5999 post_create_inferior if there are no traceframes present in the
6000 file.
6001 (tfile_close): Remove redundant check for null before xfree call.
6002 (tfile_thread_alive): New function.
6003 (init_tfile_ops): Register it as to_thread_alive callback.
6004
6823e2b1
PA
60052011-05-20 Pedro Alves <pedro@codesourcery.com>
6006
6007 * tracepoint.c (tfile_open): Delete #if 0'd code.
6008
b3c8eb43
JK
60092011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6010
6011 Fix -readnow for -gdwarf-4 unused type units.
6012 * dwarf2read.c (struct signatured_type): Remove the field offset.
6013 (create_signatured_type_table_from_index): Remove its initialization.
6014 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6015 instead. Add a complaint call.
6016 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6017 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6018 (lookup_signatured_type_at_offset, read_signatured_type)
6019 (write_one_signatured_type): Update the field for per_cu.
6020
310afc76
TT
60212011-05-19 Tom Tromey <tromey@redhat.com>
6022
6023 * python/py-inferior.c (python_inferior_exit): Use
6024 target_gdbarch.
6025 (python_on_resume): Likewise.
6026
cf6c5ffb
TT
60272011-05-19 Matt Rice <ratmice@gmail.com>
6028
6029 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6030
fb80a3c5
HZ
60312011-05-19 Hui Zhu <teawater@gmail.com>
6032
6033 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6034
3672b1be
HZ
60352011-05-19 Hui Zhu <teawater@gmail.com>
6036
6037 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6038
ff355380
TT
60392011-05-18 Tom Tromey <tromey@redhat.com>
6040
6041 * dwarf2read.c (dwarf2_add_field): Constify.
6042 * value.c (value_static_field): Constify.
6043 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6044 Now const.
6045 * ax-gdb.c (gen_static_field): Constify
6046
ed731959
JK
60472011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6048
6049 * linux-nat.c (kill_callback): Use SIGKILL first.
6050
967cff16
JB
60512011-05-18 Joel Brobecker <brobecker@adacore.com>
6052
6053 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6054
1d06ead6
TT
60552011-05-18 Tom Tromey <tromey@redhat.com>
6056
6057 * value.c (value_fn_field): Constify.
6058 * symtab.c (gdb_mangle_name): Constify.
6059 * stabsread.c (update_method_name_from_physname): Make 'physname'
6060 argument const.
6061 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6062 const. Use explicit fputc_filtered loop.
6063 (pascal_type_print_base): Constify.
6064 * p-lang.h (pascal_type_print_method_args): Update.
6065 * linespec.c (add_matching_methods): Constify.
6066 (add_constructors): Likewise.
6067 * jv-typeprint.c (java_type_print_base): Constify.
6068 * gdbtypes.h (struct cplus_struct_type)
6069 <fn_fieldlist.fn_field.physname>: Now const.
6070 * dwarf2read.c (compute_delayed_physnames): Constify.
6071 (dwarf2_add_member_fn): Likewise.
6072 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6073
0d9a9a5f
PA
60742011-05-18 Pedro Alves <pedro@codesourcery.com>
6075
6076 * infrun.c (resume): Mention which is the current thread, and its
6077 current PC in debug output.
6078 (prepare_to_proceed): Mention the thread switching in debug
6079 output.
6080
05386e9e
TT
60812011-05-18 Tom Tromey <tromey@redhat.com>
6082
6083 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6084 path check. Use xmalloc and cleanups.
6085 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6086
ee86786c
TT
60872011-05-17 Tom Tromey <tromey@redhat.com>
6088
6089 * cp-valprint.c (cp_print_value_fields): Catch errors from
6090 value_static_field.
6091
9ff3b74f
TT
60922011-05-17 Tom Tromey <tromey@redhat.com>
6093
6094 * dwarf2read.c (dwarf2_get_die_type): Call
6095 get_die_type_at_offset.
6096 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6097 get_base_type function.
6098
cd3da28e
PA
60992011-05-17 Tomas Martinec <fyzmat@gmail.com>
6100
6101 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6102 trap_expected.
6103
fd20d931
DE
61042011-05-16 Doug Evans <dje@google.com>
6105
6106 * python/py-auto-load.c (source_section_scripts): Mention objfile
6107 name in warning.
6108
75fc9810
DE
61092011-05-15 Doug Evans <dje@google.com>
6110
290351b8
DE
6111 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6112 (try_thread_db_load_from_pdir): Call it. If unable to find
6113 libthread_db in directory of libpthread, see if we're looking at
6114 the separate-debug-info copy.
6115
75fc9810
DE
6116 * python/py-autoload.c (print_script): Print "Missing" instead of
6117 "No" for missing scripts.
6118 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6119
9f7bc587
DE
61202011-05-13 Doug Evans <dje@google.com>
6121
6122 * ui-file.c (stdio_file_write_async_safe): Add comment.
6123
093cee7d
HZ
61242011-05-14 Hui Zhu <teawater@gmail.com>
6125
6126 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6127
dbaefcf7
DE
61282011-05-13 Doug Evans <dje@google.com>
6129
98a5dd13
DE
6130 Support $pdir and $sdir in libthread-db-search-path.
6131 * NEWS: Mention $sdir,$pdir.
6132 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6133 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6134 (try_thread_db_load_from_sdir): New function.
6135 (try_thread_db_load_from_dir): New function.
6136 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6137 system directories if search of libthread-db-search-path fails,
6138 that is now done via $sdir.
6139 (has_libpthread): New function.
6140 (thread_db_load): Remove search for libthread_db in directory of
6141 libpthread, that is now done via $pdir.
6142
dbaefcf7
DE
6143 * NEWS: Mention "info auto-load-scripts".
6144 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6145 script_not_found_warning_printed.
6146 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6147 all callers updated. Initialize script_not_found_warning_printed.
6148 (get_auto_load_pspace_data_for_loading): New function.
6149 (maybe_add_script): New function.
6150 (source_section_scripts): Simplify. Only print one warning regardless
6151 of the number of auto-load scripts not found.
6152 (clear_section_scripts): Clear script_not_found_warning_printed.
6153 (auto_load_objfile_script): Record script in hash table.
6154 (count_matching_scripts): New function.
6155 (maybe_print_script): Renamed from maybe_print_section_script, all
6156 callers updated. Rewrite to use ui_out_*.
6157 (info_auto_load_scripts): Renamed from
6158 maintenance_print_section_scripts, all callers updated.
6159 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6160 renamed as "info auto-load-scripts".
6161
9930639c
TT
61622011-05-13 Tom Tromey <tromey@redhat.com>
6163
6164 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6165 (read_sleb128): Likewise.
6166
06826322
TT
61672011-05-13 Tom Tromey <tromey@redhat.com>
6168
6169 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6170 offset display.
6171
01124a23
DE
61722011-05-13 Doug Evans <dje@google.com>
6173
6174 * linux-nat.c (debug_linux_nat_async): Delete.
6175 Replace all references to use debug_linux_nat instead.
6176 (show_debug_linux_nat_async): Delete.
6177 (sigchld_handler): Call ui_file_write_async_safe instead of
6178 fprintf_unfiltered.
6179 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6180 * ui-file.c (struct ui_file): New member to_write_async_safe.
6181 (null_file_write_async_safe): New function.
6182 (ui_file_write_async_safe): New function.
6183 (set_ui_file_write_async_safe): New function.
6184 (ui_file_new): Initialize to_write_async_safe.
6185 (stdio_file_write_async_safe): New function.
6186 (struct stdio_file): New member fd.
6187 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6188 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6189 fileno.
01124a23
DE
6190 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6191 (set_ui_file_write_async_safe): Declare.
6192 (ui_file_write_async_safe): Declare.
6193
72fc29ff
TT
61942011-05-13 Tom Tromey <tromey@redhat.com>
6195
6196 * utils.c (do_value_free): New function.
6197 (make_cleanup_value_free): Likewise.
6198 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6199 freeing correctly.
6200 (dwarf2_loc_desc_needs_frame): Call
6201 make_cleanup_value_free_to_mark.
6202 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6203 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6204 value_free_to_mark.
6205 (new_dwarf_expr_context): Don't call value_mark.
6206 * dwarf2-frame.c (execute_stack_op): Call
6207 make_cleanup_value_free_to_mark.
6208 * defs.h (make_cleanup_value_free): Declare.
6209
028d0ed5
TJB
62102011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6211
6212 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6213 prepare_execute_command.
6214 * top.c (prepare_execute_command): Return cleanup.
6215 (execute_command): Use cleanup from prepare_execute_command.
6216 * top.h (prepare_execute_command): Change prototype to return
6217 cleanup.
6218 * defs.h (struct value): Add opaque declaration.
6219 (make_cleanup_value_free_to_mark): Add prototype.
6220 * utils.c (do_value_free_to_mark): New function.
6221 (make_cleanup_value_free_to_mark): Likewise.
6222
b087e0ed
TT
62232011-05-12 Tom Tromey <tromey@redhat.com>
6224
6225 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6226 cast left-hand-side to unsigned.
6227
8a9b8146
TT
62282011-05-12 Tom Tromey <tromey@redhat.com>
6229
6230 PR gdb/12617:
6231 * value.h (value_from_contents): Declare.
6232 * value.c (value_from_contents): New function.
6233 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6234 (dwarf2_get_die_type): New function.
6235 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6236 (allocate_piece_closure): Acquire reference to values.
6237 (read_pieced_value): Update for value-based expressions.
6238 (write_pieced_value): Likewise.
6239 (free_pieced_value_closure): Call value_free as needed.
6240 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6241 Update for value-based expressions.
6242 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6243 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6244 <get_base_type>: New field.
6245 (struct dwarf_expr_piece) <v.value>: Change type.
6246 <v.regno>: New field.
6247 (struct dwarf_expr_context) <mark>: New field.
6248 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6249 (dwarf_expr_pop, dwarf_expr_push): Remove.
6250 (dwarf_expr_push_address): Declare.
6251 * dwarf2expr.c (dwarf_arch_cookie): New global.
6252 (struct dwarf_gdbarch_types): New.
6253 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6254 functions.
6255 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6256 static.
6257 (dwarf_expr_push_address): New function.
6258 (dwarf_expr_pop): Now static.
6259 (dwarf_expr_fetch): Change return type.
6260 (dwarf_require_integral): New function.
6261 (dwarf_expr_fetch): Simplify.
6262 (add_piece): Update.
6263 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6264 functions.
6265 (execute_stack_op) <sign_ext>: Remove.
6266 Use values for DWARF stack.
6267 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6268 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6269 New cases.
6270 (_initialize_dwarf2expr): New function.
6271 (add_piece): Update.
6272 (new_dwarf_expr_context): Set new field.
6273 (free_dwarf_expr_context): Call value_free_to_mark.
6274 * dwarf2-frame.c (no_base_type): New function.
6275 (execute_stack_op): Set get_base_type field. Update.
6276
e8d28ef4
TT
62772011-05-12 Tom Tromey <tromey@redhat.com>
6278
6279 * dwarf2read.c (read_common_block): Fix formatting.
6280
d248b706
KY
62812011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6282
6283 * breakpoint.c (disable_breakpoint): Disable all locations
6284 associated with a tracepoint on target if a trace experiment is
6285 running.
6286 (disable_command): Disable a specific tracepoint location on target if
6287 a trace experiment is running.
6288 (do_enable_breakpoint): Enable all locations associated with a
6289 tracepoint on target if a trace experiment is running.
6290 (enable_command) Enable a specific tracepoint location on target if a
6291 trace experiment is running.
6292 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6293 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6294 to_disable_tracepoint.
6295 * target.h: Add declaration of struct bp_location.
6296 (struct target_ops): Add new functions
6297 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6298 to_disable_tracepoint to target operations.
6299 (target_supports_enable_disable_tracepoint): New macro.
6300 (target_enable_tracepoint): New macro.
6301 (target_disable_tracepoint): New macro.
6302 * remote.c (struct remote_state): Add new field.
6303 (remote_enable_disable_tracepoint_feature): New.
6304 (remote_protocol_features): Add new entry.
6305 (remote_supports_enable_disable_tracepoint): New.
6306 (remote_enable_tracepoint): New.
6307 (remote_disable_tracepoint): New.
6308 (init_remote_ops): Add remote_enable_tracepoint,
6309 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6310 to remote operations.
6311 * tracepoint.c (start_tracing): Allow tracing to start without any
6312 tracepoints enabled with just a warning if they can be re-enabled
6313 later.
6314 * NEWS: Add news item for the new behaviour of the enable and disable
6315 GDB commands when applied to tracepoints.
6316 Add news items for the new remote packets QTEnable and QTDisable.
6317
cc88a640
JK
63182011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 * config.in: Regenerate.
6321 * configure: Regenerate.
6322 * configure.ac <--with-system-readline> (for readline_echoing_p):
6323 Remove the test.
6324 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6325 (tui_old_rl_echoing_p): ... here.
6326 (tui_setup_io): Rename extern declaration readline_echoing_p to
6327 _rl_echoing_p. Adjust assignments for the both renames.
6328
1f84b619
TJB
63292011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6330
6331 * symtab.c (lookup_symtab): Run cleanup before returning.
6332
74ac6d43
TT
63332011-05-11 Tom Tromey <tromey@redhat.com>
6334
6335 * dwarf2read.c (handle_data_member_location): New function.
6336 (dwarf2_add_field): Use it.
6337 (read_common_block): Likewise.
6338
5488dafb
JK
63392011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6340
6341 Make addrs->SECTINDEX always defined.
6342 * symfile.c (relative_addr_info_to_section_offsets): Check for
6343 SECTINDEX -1, not for zero ADDR.
6344 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6345 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6346 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6347 on its validity.
6348
84e578fb
DE
63492011-05-10 Doug Evans <dje@google.com>
6350
2471d008
DE
6351 * linux-thread-db.c: Whitespace cleanup.
6352 (try_thread_db_load_1): Fix comment.
6353
84e578fb
DE
6354 * linux-thread-db.c (set_libthread_db_search_path): New function.
6355 (_initialize_thread_db): Add setter for libthread-db-search-path.
6356
673c2bbe
DE
63572011-05-09 Doug Evans <dje@google.com>
6358
478aac75
DE
6359 * NEWS: Mention --with-iconv-bin.
6360 * configure.ac: New option --with-iconv-bin.
6361 * configure: Regenerate.
6362 * config.in: Regenerate.
6363 * defs.h (relocate_gdb_directory): Declare.
6364 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6365 removed progname parameter, and exported. All callers updated.
6366 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6367
673c2bbe
DE
6368 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6369 adding missing call to restore_child_signals_mask.
6370
e4c8541f
PA
63712011-05-09 Pedro Alves <pedro@codesourcery.com>
6372
6373 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6374 parameter.
6375 * infrun.c (proceed, start_remote): Adjust.
6376 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6377 and adjust to not handle it.
6378 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6379 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6380 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6381 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6382 * windows-nat.c (do_initial_windows_stuff): Adjust.
6383 * infcmd.c (attach_command): Adjust.
6384 (notice_new_inferior): Adjust.
6385
a536c6d7
UW
63862011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6387
6388 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6389 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6390 * spu-tdep.c (op_selb): Use correct value.
6391
7845b013
UW
63922011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6393
6394 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6395 "parent" parameter to symbol_file_add_from_bfd call.
6396
9c06b0b4
TJB
63972011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6398 Thiago Jung Bauermann <bauerman@br.ibm.com>
6399
6400 Implement support for PowerPC BookE masked watchpoints.
6401 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6402 section.
6403 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6404 method. Initialize to NULL in all existing breakpoint_ops instances.
6405 (struct breakpoint) <hw_wp_mask>: New field.
6406 * breakpoint.c (is_masked_watchpoint): Add prototype.
6407 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6408 breakpoint's breakpoint_ops.works_in_software_mode if available.
6409 (watchpoints_triggered): Handle the case of a hardware masked
6410 watchpoint trigger.
6411 (watchpoint_check): Likewise.
6412 (works_in_software_mode_watchpoint): New function.
6413 (insert_masked_watchpoint, remove_masked_watchpoint)
6414 (resources_needed_masked_watchpoint)
6415 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6416 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6417 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6418 functions.
6419 (masked_watchpoint_breakpoint_ops): New structure.
6420 (watch_command_1): Check for the existence of the `mask' parameter.
6421 Set b->ops according to the type of hardware watchpoint being created.
6422 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6423 (ppc_linux_remove_mask_watchpoint)
6424 (ppc_linux_masked_watch_num_registers): New functions.
6425 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6426 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6427 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6428 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6429 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6430 (target_masked_watch_num_registers): New functions.
6431 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6432 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6433 methods.
6434 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6435 (target_masked_watch_num_registers): Add prototypes.
6436
8be455d7
JK
64372011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6438
6439 PR 12573
6440 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6441 (producer_is_gcc_ge_4_0): New function.
6442 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6443 symtab->language code.
6444 (var_decode_location): Set cu->has_loclist.
6445 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6446 skip. Intialize force_skip from locations_valid. Move the prologue
6447 skipping code into two passes.
6448 * symtab.h (struct symtab): Make the primary field a bitfield. New
6449 field locations_valid.
6450
d8228535
JK
64512011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6452
6453 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6454 (classify_inner_name): Call cp_lookup_nested_type with
6455 yylval.tsym.type.
6456 * cp-namespace.c (cp_lookup_nested_type): New variable
6457 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6458 type_name_no_tag_or_error with saved_parent_type.
6459 * dwarf2read.c (load_partial_dies): Read in any children of
6460 DW_TAG_typedef with complaint in such case.
6461 * gdbtypes.c (type_name_no_tag_or_error): New function.
6462 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6463 * valops.c (destructor_name_p): New comment for parameter type. Remove
6464 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6465 * value.h (destructor_name_p): Remove type const.
6466
1976171a
JK
64672011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6468
6469 * symtab.c (compare_symbol_name): New function.
6470 (completion_list_add_name, expand_partial_symbol_name): Call it,
6471 remove the variable ncmp.
6472 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6473 gdb_assert it.
6474
a9634178
TJB
64752011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6476
6477 Demote to sw watchpoint only in update_watchpoint.
6478 * breakpoint.c (update_watchpoint): Change between software and
6479 hardware watchpoint for all kinds of watchpoints, not just
6480 read/write ones. Determine b->exact value here instead of
6481 in watch_command_1. Error out if there are not enough resources
6482 for a read or access hardware watchpoint.
6483 (watch_command_1): Remove logic of checking whether there are
6484 enough resources available, since update_watchpoint will do that
6485 work now. Don't set b->exact here. Catch exceptions thrown by
6486 update_watchpoint and delete the watchpoint.
6487 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6488 Use target_exact_watchpoints instead.
6489 (delete_breakpoint): Notify observers only if deleted watchpoint
6490 has a breakpoint number assigned to it.
6491
4c67c798
JJ
64922011-05-05 Janis Johnson <janisjo@codesourcery.com>
6493
6494 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6495
a3fcb948
JG
64962011-05-05 Jerome Guitton <guitton@adacore.com>
6497
6498 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6499 New functions.
6500 (i386_stack_tramp_frame_unwind): New static global.
6501 (i386_match_pattern): New function, extracted from i386_match_insn.
6502 (i386_match_insn): Use i386_match_pattern.
6503 (i386_match_insn_block): New function.
6504 (i386_tramp_chain_in_reg_insns)
6505 (i386_tramp_chain_on_stack_insns): New static variables.
6506 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6507 of unwinders.
6508
4d393d60
JM
65092011-05-04 Joseph Myers <joseph@codesourcery.com>
6510
6511 * configure.host (xscale*): Don't handle target.
6512 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6513 handle targets.
6514
f70bd40b
YQ
65152011-05-04 Yao Qi <yao@codesourcery.com>
6516
6517 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6518
dd3295ee
JB
65192011-05-03 Joel Brobecker <brobecker@adacore.com>
6520
6521 Revert:
6522 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6523 | * elfread.c (elf_symtab_read): Stop memory leak.
6524
90375a0e
PM
65252011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6526
6527 * nto-tdep.c (nto_target): Replace deprecated call to
6528 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6529
d07205c2
JK
65302011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6531
6532 Fix false GCC warning.
6533 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6534
1e718ff1
TJB
65352011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6536
6537 * breakpoint.c (update_watchpoint): Move code to change
6538 the enable state of breakpoint from here ...
6539 (do_enable_breakpoint): ... to here.
6540
35bef4fd
TT
65412011-04-26 Andrew Gontarek <andrewg@cray.com>
6542
78290264
PP
6543 * valprint.c (val_print_array_elements): Fixed poor performance
6544 of printing very large arrays with repeat_count_threshold set
6545 to unlimited. New comment.
35bef4fd 6546
38a714bb
TT
65472011-04-29 Tom Tromey <tromey@redhat.com>
6548
6549 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6550 (mi_parse): Likewise.
6551 * breakpoint.c (break_range_command): Use sizeof char*, not
6552 char**.
6553 (create_breakpoint): Likewise.
6554 (parse_breakpoint_sals): Likewise.
6555
eb73ad13
PA
65562011-04-29 Pedro Alves <pedro@codesourcery.com>
6557
6558 * linux-nat.c (linux_child_remove_fork_catchpoint)
6559 (linux_child_remove_vfork_catchpoint)
6560 (linux_child_remove_exec_catchpoint): New functions.
6561 (linux_target_install_ops): Install them.
6562
d65aec65
PM
65632011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6564
6565 PR mi/12531
6566
6567 * varobj.c (install_default_visualizer): Do not install a
6568 visualizer if the varobj is CPLUS_FAKE_CHILD.
6569 (construct_visualizer): Likewise.
6570
165195f4
JK
65712011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6572
6573 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6574 case insensitive comparison.
6575
30852783
UW
65762011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6577
6578 * infrun.c (proceed): Revert previous change.
6579 (resume): Instead, handle the case of signal delivery while stepping
6580 off a breakpoint location here, and only if software single-stepping
6581 is used. Handle nested signals.
6582
7ff120b4
YQ
65832011-04-28 Yao Qi <yao@codesourcery.com>
6584
6585 * arm-tdep.c (copy_unmodified): Rename to ...
6586 (arm_copy_unmodified): .. this. New.
6587 (copy_preload): Move common part to ...
6588 (install_preload): .. this. New.
6589 (arm_copy_preload): New.
6590 (copy_preload_reg): Move common part to ...
6591 (install_preload_reg): ... this. New.
6592 (arm_copy_preload_reg): New.
6593 (copy_b_bl_blx): Move common part to ...
6594 (install_b_bl_blx): .. this. New.
6595 (arm_copy_b_bl_blx): New.
6596 (copy_bx_blx_reg): Move common part to ...
6597 (install_bx_blx_reg): ... this. New.
6598 (arm_copy_bx_blx_reg): New.
6599 (copy_alu_reg): Move common part to ...
6600 (install_alu_reg): ... this. New.
6601 (arm_copy_alu_reg): New.
6602 (copy_alu_shifted_reg): Move common part to ...
6603 (install_alu_shifted_reg): ... this. New.
6604 (copy_ldr_str_ldrb_strb): Move common part to ...
6605 (install_ldr_str_ldrb_strb): ... this. New.
6606 (arm_copy_ldr_str_ldrb_strb): New.
6607 (copy_copro_load_store): Move some common part to ...
6608 (install_copy_copro_load_store): ... this. New.
6609 (arm_copy_copro_load_store): New.
6610 (copy_svc): Delete.
6611 (arm_copy_svc): Renamed from copy_svc.
6612 (copy_undef): Delete.
6613 (arm_copy_undef): Renamed from copy_undef.
6614 (decode_ext_reg_ld_st): Delete.
6615 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6616 (decode_svc_copro): Delete.
6617 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6618 (copy_copro_load_store, copy_alu_imm): update callers.
6619 (copy_extra_ld_st, copy_block_xfer): Likewise.
6620 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6621 (decode_miscellaneous, decode_dp_misc): Likewise.
6622 (decode_ld_st_word_ubyte, decode_media): Likewise.
6623 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6624 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6625 (decode_unconditional, decode_miscellaneous): Likewise.
6626 (decode_media, decode_b_bl_ldmstm): Likewise.
6627 (arm_process_displaced_insn): Likewise..
6628 (decode_misc_memhint_neon): Delete.
6629 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6630 (decode_miscellaneous): Delete.
6631 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6632 (decode_dp_misc): Delete.
6633 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6634 (decode_ld_st_word_ubyte): Delete.
6635 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6636 (decode_media): Delete.
6637 (arm_decode_media): Renamed from decode_media.
6638 (decode_b_bl_ldmstm): Delete.
6639 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6640 (decode_ext_reg_ld_st): Delete.
6641 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6642 (decode_unconditional): Delete.
6643 (arm_decode_unconditional): Renamed from decode_unconditional.
6644
559a7a62
JK
66452011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6646
6647 Case insensitive lookups implementation.
6648 * dwarf2read.c: Include ctype.h.
6649 (struct mapped_index): New field version.
6650 (mapped_index_string_hash): New parameter index_version. New comment
6651 for it. Call tolower appropriately.
6652 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6653 Choose the right index version for mapped_index_string_hash.
6654 (dwarf2_read_index): Support also the index version 5. Initialize the
6655 new struct mapped_index field version.
6656 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6657 (find_slot): Explain the version needs. Pass INT_MAX for the new
6658 parameter.
6659 (write_psymtabs_to_index): Produce version 5.
6660 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6661 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6662 * psymtab.c (lookup_partial_symbol): Find the
6663 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6664 entries.
6665 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6666 NAME lowercasing.
6667 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6668 (completion_list_add_name): New variable ncmp, initialize it, use it.
6669 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6670 * utils.c (strcmp_iw): Support case_sensitive_off.
6671 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6672 New function comment part. New variables saved_string1,
6673 saved_string2 and case_pass. Add a proper second pass.
6674
681bf369
JK
66752011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6676
6677 Replace re_comp/re_exec by regcomp/regexec.
6678 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6679 (search_symbols_name_matches): Use them, use regexec.
6680 (search_symbols): New variable retval_chain, adjust the use of
6681 old_chain against it. Replace re_comp by regcomp. Use the new struct
6682 search_symbols_data fields, use regexec instead of re_exec.
6683
b11b1f88
JK
66842011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6685
6686 Format the code for the next patch.
6687 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6688 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6689 New variables c1 and c2.
6690
2484c66b
UW
66912011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6692
6693 * infrun.c (proceed): Do not single-step into signal delivery
6694 when stepping off a breakpoint location.
6695 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6696 (insert_step_resume_breakpoint_at_caller): Likewise.
6697 (insert_step_resume_breakpoint_at_sal): Likewise.
6698 (insert_longjmp_resume_breakpoint): Likewise.
6699
47423772
YQ
67002011-04-27 Yao Qi <yao@codesourcery.com>
6701
6702 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6703
13bdd2e7
JB
67042011-04-27 Joel Brobecker <brobecker@adacore.com>
6705
6706 * procfs.c (procfs_pass_signals): Fix advance declaration.
6707
2455069d
UW
67082011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6709
6710 * target.h (struct target_ops): Remove to_notice_signals;
6711 add to_pass_signals.
6712 (target_notice_signals): Remove.
6713 (target_pass_signals): Add prototype.
6714 * target.c (update_current_target): Remove to_notice_signals;
6715 mention to_pass_signals.
6716 (target_pass_signals): New function.
6717 (debug_to_notice_signals): Remove.
6718 (setup_target_debug): Do not install debug_to_notice_signals.
6719
6720 * infrun.c (signal_pass): New global.
6721 (resume): Call target_pass_signals.
6722 (handle_inferior_event): Report all signals while stepping over
6723 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6724 are re-inserted when stepping over a signal handler.
6725 (signal_cache_update): New function.
6726 (signal_stop_update): Call it.
6727 (signal_print_update): Likewise.
6728 (signal_pass_update): Likewise.
6729 (handle_command): Call signal_cache_update and target_pass_signals
6730 instead of target_notice_signals.
6731 (_initialize_infrun): Initialize signal_pass.
6732
6733 * linux-nat.c (pass_mask): New global.
6734 (linux_nat_pass_signals): New function.
6735 (linux_nat_create_inferior): Report all signals initially.
6736 (linux_nat_attach): Likewise.
6737 (linux_nat_resume): Use pass_mask to decide whether to directly
6738 handle an inferior signal.
6739 (linux_nat_wait_1): Likewise.
6740 (linux_nat_add_target): Install to_pass_signals callback.
6741
6742 * nto-procfs.c (notice_signals): Remove.
6743 (procfs_resume): Do not call notice_signals.
6744 (procfs_notice_signals): Remove.
6745 (procfs_pass_signals): New function.
6746 (init_procfs_ops): Install to_pass_signals callback instead of
6747 to_notice_signals callback.
6748 (_initialize_procfs): Report all signals initially.
6749
6750 * procfs.c (procfs_notice_signals): Remove.
6751 (procfs_pass_signals): New function.
6752 (procfs_target): Install to_pass_signals callback instead of
6753 to_notice_signals callback.
6754 (register_gdb_signals): Remove.
6755 (procfs_debug_inferior): Report all signals initially.
6756 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6757
6758 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6759 parameters; use them instead of calling signal_..._state routines.
6760 (remote_notice_signals): Remove.
6761 (remote_start_remote): Report all signals initially.
6762 (remote_resume): Do not call remote_pass_signals.
6763 (_initialize_remote): Install to_pass_signals callback instead of
6764 to_notice_signals callback.
6765
46c6471b
PA
67662011-04-27 Pedro Alves <pedro@codesourcery.com>
6767
6768 * breakpoint.c (user_settable_breakpoint): Delete.
6769 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6770 (delete_command): Check user_breakpoint_p instead of looking at
6771 the breakpoint's type.
6772 (disable_command): Ditto.
6773 (enable_command): Ditto.
6774 (delete_trace_command): Use user_breakpoint_p instead of looking
6775 at the breakpoint number directly. When checking if there are
6776 user visible tracepoints, in order to know whether to ask the user
6777 for confirmation, check whether the breakpoint is actually a
6778 tracepoint.
6779
f6d90398
VP
67802011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6781
6782 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6783 compilation.
6784
8d3788bd
VP
67852011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6786
6787 MI breakpoint notifications.
6788
f33edef8
PP
6789 * annotate.c (breakpoint_changed): Adjust parameter type.
6790 * breakpoint.c (set_breakpoint_condition): Adjust to change
6791 in breakpoint_modified type.
6792 (breakpoint_set_commands): Likewise.
6793 (do_map_commands_command): Likewise.
6794 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6795 changed after bumping hit count.
6796 (bpstat_stop_status): Likewise.
6797 (print_one_breakpoint_location): Don't wrap in tuple here.
6798 (print_one_breakpoint): Always print individual locations.
6799 For locations, use unnamed tuple.
6800 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6801 has changed.
6802 (create_catchpoint, create_syscall_event_catchpoint): Call
6803 breakpoint_created obsever.
6804 (mention): Don't call breakpoint_created observer.
6805 (create_breakpoint_sal): Call breakpoint_created observer.
6806 (create_breakpoint, watch_command_1): Likewise.
6807 (create_ada_exception_breakpoint): Likewise.
6808 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6809 (locations_are_equal): New.
6810 (update_breakpoint_locations): If locations were changed, notify.
6811 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6812 Call breakpoint_modified observer.
6813
6814 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6815 (mi_cmd_break_insert): Don't set observers for modify and delete.
6816 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6817 (mi_breakpoint_created, mi_breakpoint_deleted)
6818 (mi_breakpoint_modified): New.
6819 (mi_interpreter_init): Hook the above.
6820 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6821 while -break-* commands are executing.
6822 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6823 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6824 (mi_redirect): New.
6825 (mi_ui_out_impl): Hook in mi_redirect.
6826 (mi_field_skip): True to the name, skip the field, don't output
6827 a field with an empty value.
6828
6829 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6830 (gdbpy_breakpoint_deleted): Adjust.
6831 * tui/tui-hooks.c (tui_event_create_breakpoint)
6832 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6833
a8f42b45
UW
68342011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6835
6836 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6837 (procfs_remove_hw_watchpoint): Likewise.
6838
57e12211
TT
68392011-04-26 Michael Walle <michael@walle.cc>
6840
6841 * remote.c (remote_start_remote): Ack packet after sending the
6842 interrupt sequence.
6843
af96c192
YQ
68442011-04-26 Yao Qi <yao@codesourcery.com>
6845
f33edef8
PP
6846 * linux-nat.c: Move common macros to ...
6847 Include linux-ptrace.h.
6848 * common/linux-ptrace.h: ... here. New.
af96c192 6849
3e03848b
JK
68502011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6851
6852 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6853 !objfile_has_partial_symbols. New comment.
6854 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6855 SYM_READ_PSYMBOLS is not present. Extend the comment.
6856 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6857
1ae0d051
JK
68582011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6859
6860 * defs.h (ENUM_BITFIELD): Remove.
6861
03f2bd59
JK
68622011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6863 Eli Zaretskii <eliz@gnu.org>
6864
6865 * NEWS: Document the new gdbserver --once option.
6866
4161fbb0
JZ
68672011-04-21 Jie Zhang <jzhang918@gmail.com>
6868
6869 * MAINTAINERS: Update my email address.
6870
bcb28afc
PM
68712011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6872
6873 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6874 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6875 function call if __STDC_ISO_10646__ macro is defined.
6876 (intermediate_encoding): New prototype.
6877 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6878 to generate compile time error for unsupported gdb_wchar_t size.
6879 (ENDIAN_SUFFIX): New macro.
6880 (intermediate_encoding): New function.
6881
7b08b9eb
JK
68822011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 * ada-lang.c (struct add_partial_datum): Update the comment for
6885 expand_partial_symbol_name.
6886 (ada_add_partial_symbol_completions): Rename to ...
6887 (ada_expand_partial_symbol_name): ... here, change return type, update
6888 function comment, call symbol_completion_match instead of
6889 symbol_completion_add.
6890 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6891 and ada_expand_partial_symbol_name.
6892 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6893 FILE_MATCHER.
6894 (dw2_map_symbol_names): Remove.
6895 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6896 * psymtab.c (map_symbol_names_psymtab): Remove.
6897 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6898 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6899 order.
6900 (psym_functions): Unlist map_symbol_names_psymtab.
6901 (map_partial_symbol_names): Rename to ...
6902 (expand_partial_symbol_names): ... here, change the FUN type, call
6903 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6904 * psymtab.h (map_partial_symbol_names): Rename to ...
6905 (expand_partial_symbol_names): ... here, change the FUN type.
6906 * symfile.h (struct quick_symbol_functions): Update the description of
6907 expand_symtabs_matching. Remove map_symbol_names.
6908 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6909 (struct add_name_data): Update the comment for
6910 expand_partial_symbol_name.
6911 (add_partial_symbol_name): Rename to ...
6912 (expand_partial_symbol_name): ... here. Replace
6913 completion_list_add_name call by strncmp.
6914 (default_make_symbol_completion_list_break_on): Use now
6915 expand_partial_symbol_names and expand_partial_symbol_name.
6916 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6917
90476074
TT
69182011-04-20 Tom Tromey <tromey@redhat.com>
6919
6920 * dwarf2read.c (save_gdb_index_command): Replace format
6921 documentation with a pointer to the manual.
6922
c21236dc
PA
69232011-04-20 Pedro Alves <pedro@codesourcery.com>
6924
6925 * regcache.c: Include remote.h.
6926 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6927 (regcache_dump): Handle regcache_dump_remote.
6928 (maintenance_print_remote_registers): New function.
6929 (_initialize_regcache): Install "maint print remote-registers"
6930 command.
6931 * remote.c (map_regcache_remote_table): New function, factored out
6932 from ...
6933 (init_remote_state): ... here.
6934 (remote_register_number_and_offset): New.
6935 * remote.h (remote_register_number_and_offset): Declare.
6936
b78974c3
PA
69372011-04-20 Pedro Alves <pedro@codesourcery.com>
6938
6939 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6940 null_ptid, assume and allow a NULL address space, instead of
6941 asking the target for the ptid's address space.
6942 * infrun.c (ptid_is_pid): Remove assertion.
6943
7a9dd1b2
TT
69442011-04-19 Tom Tromey <tromey@redhat.com>
6945
6946 * windows-tdep.c (windows_xfer_shared_library):
6947 * windows-nat.c (get_module_name, windows_make_so):
6948 * v850-tdep.c (v850_handle_pushm):
6949 * utils.c (null_cleanup, gdb_realpath):
6950 * ui-out.c (get_next_header):
6951 * tracepoint.c (clear_traceframe_info):
6952 * symtab.c (lookup_symtab):
6953 * serial.h (struct serial_ops):
6954 * mipsread.c (read_alphacoff_dynamic_symtab):
6955 * infcmd.c (print_return_value):
6956 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6957 * f-exp.y (parse_number):
6958 * exceptions.c (catch_exceptions):
6959 * dummy-frame.c (dummy_frame_this_id):
6960 * defs.h (struct cleanup):
6961 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6962 * arm-tdep.c (arm_push_dummy_call):
6963 * amd64-tdep.h (amd64_collect_xsave):
6964 * amd64-tdep.c (amd64_collect_xsave):
6965 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6966 * README (typing): Remove duplicate words.
6967 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6968 * infrun.c (siginfo_value_read): Fix typo.
6969 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6970 * top.c (source_line_number): Add comma.
6971
9941e0c5
MK
69722011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6973
6974 * thread.c (any_live_thread_of_process): Prioritize threads
6975 that are not executing.
6976 * gdbthread.h (any_live_thread_of_process): Update comment
6977 as per above change.
6978
ed4b0e6a
AS
69792011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6980
6981 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6982 (scan_xcoff_symtab): Likewise.
6983
9b13a2db
PM
69842011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6985
6986 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6987 inside if clause.
6988
1c6e1b0d
PM
69892011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6990 Pedro Alves <pedro@codesourcery.com>
6991
6992 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6993 variables to simplify code and avoid == operator at end of
6994 line as this is against GNU coding standards.
6995
74de0234
PM
69962011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6997
6998 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6999 lm_name to name_lm to avoid conflict with lm_name function.
7000
b23518f0
PM
70012011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7002
7003 ARI fixes: Use only lowercase function name for static functions.
7004 * nto-tdep.c (LM_ADDR): Rename to...
7005 (lm_addr): New function name.
7006 (nto_relocate_section_addresses): Adapt to change above.
7007 * solib-sunos.c (LM_ADDR): Rename to...
7008 (lm_addr): New function name.
7009 (LM_NEXT): Rename to...
7010 (lm_next): New function name.
7011 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7012 function name changes above.
7013 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7014 (lm_addr_from_link_map): New function name.
7015 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7016 (has_lm_dynamic_from_link_map): New function name.
7017 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7018 (lm_dynamic_from_link_map): New function name.
7019 (LM_ADDR_CHECK): Rename to...
7020 (lm_addr_check): New function name.
7021 (LM_NEXT): Rename to...
7022 (lm_next): New function name.
7023 (LM_PREV): Rename to...
7024 (lm_prev): New function name.
7025 (LM_NAME): Rename to...
7026 (lm_name): New function name.
7027 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7028 (ignore_first_link_map_entry): New function name.
7029 (svr4_keep_data_in_core): Adapt to function name changes above.
7030 (svr4_current_sos): Likewise.
7031 (enable_break): Likewise.
7032 (svr4_relocate_section_addresses): Likewise.
7033
1448a0a2
PM
70342011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7035
7036 ARI cleanup.
7037 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7038 sprintf. Simplify code and avoid loosing memory.
7039 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7040 (call0_frame_cache): Remove && operator from end of line.
7041
02835898
JK
70422011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7043
7044 Fix libraries displacement if they change whether they were prelinked.
7045 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7046 does not match. Comment why.
7047
9a845ea2
JK
70482011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7049
7050 * corelow.c: Include wrapper.h.
7051 (core_open): Call now gdb_target_find_new_threads.
7052 * wrapper.c: Include target.h.
7053 (gdb_target_find_new_threads): New.
7054 * wrapper.h (gdb_target_find_new_threads): New declaration.
7055
254f582e
JK
70562011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7057
7058 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7059 even if !TARGET_HAS_EXECUTION.
7060
63524580
JK
70612011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7064 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7065 bfd_get_synthetic_symtab.
7066 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7067 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7068 parameter parent, remove the call to add_separate_debug_objfile.
7069 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7070 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7071 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7072 parent, new comment for it, call add_separate_debug_objfile for it.
7073 (symbol_file_add_separate): Pass objfile as the parameter parent,
7074 remove the call to add_separate_debug_objfile.
7075 (symbol_file_add_from_bfd): New parameter parent, pass it.
7076 (symbol_file_add): Pass NULL to the new parameter parent.
7077 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7078
90359a16
JK
70792011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7082 BSF_SYNTHETIC.
7083
626e7282
JK
70842011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7085
7086 Fix Python access to inlined frames.
7087 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7088 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7089
cf31e6f9
TT
70902011-04-15 Tom Tromey <tromey@redhat.com>
7091
7092 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7093
c8d895f1
GB
70942011-04-15 Gary Benson <gbenson@redhat.com>
7095
7096 * MAINTAINERS: Add myself to write-after-approval section.
7097
56a9aa1d
MF
70982011-04-14 Mike Frysinger <vapier@gentoo.org>
7099
7100 * remote-sim.c (sim_command_completer): New function.
7101 (_initialize_remote_sim): Set completer to sim_command_completer.
7102
ba770c9c
TJB
71032011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7104
7105 * breakpoint.c (print_exception_catchpoint): Rename to ...
7106 (print_it_exception_catchpoint): ... this.
7107 (gnu_v3_exception_catchpoint_ops): Update with new name
7108 for print_it_exception_catchpoint.
7109
51bf2553
EBM
71102011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7111
7112 * MAINTAINERS: Add myself for write after approval privileges.
7113
d242658c
MP
71142011-04-13 Marek Polacek <mpolacek@redhat.com>
7115
7116 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7117
4a4106ca
TJB
71182011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7119
7120 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7121
26063d49
TJB
71222011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7123
7124 * breakpoint.c (save_breakpoints): Verify whether
7125 breakpoint_ops.print_recreate is defined before calling it.
7126
7782b183
GB
71272011-04-11 Gary Benson <gbenson@redhat.com>
7128
7129 Fix failure with --enable-maintainer-mode.
7130 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7131
e8930875
JK
71322011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7133
7134 Code cleanup.
7135 * symtab.c (search_symbols): Reorder the KIND description in the
7136 function comment. Remove the unused 4th element of types, types2,
7137 types3 and types4. New gdb_assert on KIND.
7138 (symtab_symbol_info): Remove the unused 4th element of classnames.
7139 New gdb_assert on KIND.
7140 * symtab.h (enum search_domain): New warning in the enum comment.
7141 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7142 TYPES_DOMAIN.
7143
b4f2f049
JK
71442011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7145
7146 Fix crash of gdb save-index on a STABS file.
7147 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7148 PSYMTABS_ADDRMAP.
7149
60d5a603
JK
71502011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7151
7152 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7153 * dwarf2read.c: Include ctype.h.
7154 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7155 functions.
7156 (dwarf2_add_field): Fix new_field->accessibility by calling
7157 dwarf2_default_access_attribute. Restructure setting accessibility
7158 vs. virtuality.
7159 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7160 is_private and is_protected by calling
7161 dwarf2_default_access_attribute.
7162
e0f68161
KB
71632011-04-08 Kevin Buettner <kevinb@redhat.com>
7164
7165 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7166 to the initialization.
7167
2e1aae43
SE
71682011-04-08 Steve Ellcey <sje@cup.hp.com>
7169
7170 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7171 initalization.
7172
c6ca3dab
PM
71732011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7174
7175 Remove support for old Cygwin 1.5 versions.
7176 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7177 function on old Cygwin version.
7178 * windows-nat.c: Remove cygwin version check and always define
7179 __USEWIDE for Cygwin compilation.
7180
bd18283a
YQ
71812011-04-07 Yao Qi <yao@codesourcery.com>
7182
7183 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7184 and TO.
7185 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7186 (arm_copy_svc): Remove parameters INSN and TO.
7187 (decode_svc_copro): Update caller.
7188 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7189 from function pointer `copy_svc_os'.
7190
8c8dba6d
YQ
71912011-04-07 Yao Qi <yao@codesourcery.com>
7192
7193 * arm-tdep.c (cleanup_branch): Set a correct return address in
7194 LR for ARM and Thumb.
7195
59d7bcaf
JK
71962011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7197
7198 Code cleanup.
7199 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7200 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7201 in the function comment, a new note on values compatibility.
7202 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7203 * symtab.h (SYMBOL_HASH_NEXT): New.
7204
e7db58ea
TJB
72052011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7206
7207 * ppc-linux-nat.c (check_condition): Add len output parameter.
7208 Set it based on the memory region referenced in the condition
7209 expression. Update all callers.
7210
9f743ef6
JK
72112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7212
7213 Fix crash regression on systems featuring .gdb_index.
7214 * objfiles.c (free_objfile): Move the
7215 forget_cached_source_info_for_objfile call earlier. Comment it.
7216 Extend the comment for objfile_free_data.
7217
9182c5bc
JK
72182011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7219
7220 Fix regression of displaying the debug format.
7221 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7222 subfile.
7223
04bd08de
TT
72242011-04-04 Tom Tromey <tromey@redhat.com>
7225
7226 * cli/cli-interp.c (struct captured_execute_command_args):
7227 Remove.
7228 (do_captured_execute_command): Remove.
7229 (safe_execute_command): Use TRY_CATCH.
7230 * cli/cli-script.c (struct wrapped_read_command_file_args):
7231 Remove.
7232 (wrapped_read_command_file): Remove.
7233 (script_from_file): Use TRY_CATCH.
7234 * exceptions.c (catch_exception): Remove.
7235 * exceptions.h (catch_exception): Remove.
7236 (deprecated_throw_reason): Update comment.
7237 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7238 argument to 'context'.
7239 (mi_execute_command): Use TRY_CATCH.
7240 * remote.c (struct start_remote_args): Remove.
7241 (remote_start_remote): Update; change arguments.
7242 (remote_open_1): Use TRY_CATCH.
7243
58438ac1
TT
72442011-04-04 Tom Tromey <tromey@redhat.com>
7245
7246 * tracepoint.c (scope_info): Update.
7247 * symtab.c (decode_line_spec): Update.
7248 * python/python.c (gdbpy_decode_line): Update.
7249 * linespec.h (decode_line_1): Update.
7250 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7251 (decode_compound, find_method, symtab_from_filename)
7252 (decode_variable): Likewise.
7253 * cli/cli-cmds.c (edit_command): Update.
7254 (list_command): Update.
7255 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7256 argument.
7257 (create_breakpoint): Update.
7258 (until_break_command): Update.
7259 (addr_string_to_sals): Update.
7260 (decode_line_spec_1): Update.
7261
b78a6381
TT
72622011-04-04 Tom Tromey <tromey@redhat.com>
7263
7264 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7265 (do_captured_parse_breakpoint): Remove.
7266 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7267 Use TRY_CATCH directly.
7268
00174a86
TT
72692011-04-04 Tom Tromey <tromey@redhat.com>
7270
7271 * symtab.h (free_symtab): Remove.
7272 (forget_cached_source_info_for_objfile): Declare.
7273 * symmisc.c (free_symtab): Remove.
7274 * source.c (forget_cached_source_info_for_objfile): New function.
7275 (forget_cached_source_info): Use it.
7276 * objfiles.c (free_objfile): Simplify check before calling
7277 clear_current_source_symtab_and_line. Call
7278 forget_cached_source_info_for_objfile.
7279
30cc903e
TT
72802011-04-04 Tom Tromey <tromey@redhat.com>
7281
7282 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7283 (new_symtab): Don't set `free_code' on symtab.
7284 (new_linetable): Properly handle size==0.
7285 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7286 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7287 free_func.
7288 * jv-lang.c (struct jv_per_objfile_data): New.
7289 (jv_per_objfile_free): Free the data.
7290 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7291 (get_java_class_symtab): Set the `dict' field on the
7292 jv_per_objfile_data.
7293 (free_class_block): Remove.
7294 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7295 the symtab.
7296
0c2e6019
TT
72972011-04-04 Tom Tromey <tromey@redhat.com>
7298
7299 * symfile.c (reread_symbols): Update.
7300 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7301 field.
7302 * objfiles.c (allocate_objfile): Update.
7303 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7304 declare.
7305 * cp-namespace.c (lookup_symbol_file): Don't call
7306 lookup_possible_namespace_symbol.
7307 (initialize_namespace_symtab, get_possible_namespace_block)
7308 (free_namespace_block, cp_check_possible_namespace_symbols)
7309 (check_possible_namespace_symbols_loop)
7310 (check_one_possible_namespace_symbol)
7311 (lookup_possible_namespace_symbol): Remove.
7312 (maintenance_cplus_namespace): Replace with notice.
7313 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7314
554d387d
TT
73152011-04-04 Tom Tromey <tromey@redhat.com>
7316
7317 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7318 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7319 * symmisc.c (free_symtab): Don't free debugformat.
7320 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7321 (record_debugformat, record_producer): Document.
7322 * buildsym.c (end_symtab): Don't save debugformat and producer
7323 names on obstack.
7324 (end_symtab): Don't free debugformat and producer fields.
7325 (record_debugformat): Don't call xstrdup.
7326 (record_producer): Likewise.
7327
d4d4db8a
TT
73282011-04-04 Tom Tromey <tromey@redhat.com>
7329
7330 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7331 (source_line_charpos, source_charpos_line): Remove.
7332
8903c50d
TT
73332011-04-04 Tom Tromey <tromey@redhat.com>
7334
7335 * symtab.h (domain_enum): Split in two...
7336 (enum search_domain): New.
7337 (search_symbols): Update.
7338 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7339 redundant declarations.
7340 (search_symbols): Change 'kind' argument to search_domain.
7341 Update.
7342 (print_symbol_info): Likewise.
7343 (symtab_symbol_info): Likewise.
7344 * symfile.h (struct quick_symbol_functions)
7345 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7346 <expand_symtabs_matching>: Likewise.
7347 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7348 (expand_symtabs_matching_via_partial): Update.
7349 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7350 (dw2_expand_symtabs_for_function): Update.
7351 * block.h: Moved anonymous enum...
7352 * defs.h (enum block_enum): ... here. Now named.
7353
d9351f5f 73542011-04-03 Joel Brobecker <brobecker@adacore.com>
7355
7356 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7357 * version.in: Bump version to 7.3.50.20110403-cvs.
7358
d6e00af6
JB
73592011-04-03 Joel Brobecker <brobecker@adacore.com>
7360
7361 * NEWS: Create a new section for the next release branch.
7362 Rename the section of the current branch, now that it has
7363 been cut.
7364
2b9e5ea6
UW
73652011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7366
7367 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7368 for "fpscr" in target description.
7369
0cf03b49
JK
73702011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7373 initialize it. Delay HASH initialization. Strip the part after open
7374 parenthesis for languages with qualifiers. Call do_cleanups.
7375
5d901a73
TT
73762011-04-01 Tom Tromey <tromey@redhat.com>
7377
7378 * utils.c (report_command_stats): Don't print `-' for negative
7379 number.
7380
b0dd7688
JB
73812011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7382
7383 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7384 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7385 typedefs.
7386
956a9fb9
JB
73872011-04-01 Joel Brobecker <brobecker@adacore.com>
7388
7389 * breakpoint.h (bpdisp_text): Add declaration.
7390 * breakpoint.c (bpdisp_text): Make non-static.
7391 * ada-lang.c: #include "mi/mi-common.h".
7392 (print_it_exception): Rewrite to improve GDB/MI output.
7393
3352110b
PA
73942011-04-01 Pedro Alves <pedro@codesourcery.com>
7395
7396 * arm-tdep.h (struct address_space): Add forward declaration.
7397
18819fa6
UW
73982011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7399
7400 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7401 * arm-tdep.c (arm_override_mode): New global.
7402 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7403 execution mode heuristics.
7404 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7405 second single-step breakpoint if needed, using
7406 arm_insert_single_step_breakpoint.
7407 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7408 ARM execution mode, do not call thumb_get_next_pc_raw.
7409 (arm_get_next_pc): Encode execution mode in return value. Call
7410 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7411 (arm_insert_single_step_breakpoint): New function.
7412 (arm_software_single_step): Call it.
7413 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7414 argument to return execution mode of sigreturn target.
7415 (arm_linux_syscall_next_pc): Use it.
7416 (arm_linux_copy_svc): Update call.
7417 (arm_linux_software_single_step): Call
7418 arm_insert_single_step_breakpoint.
7419
a6e293d1
JK
74202011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7421
7422 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7423 the comment.
7424
a4c8e806
TT
74252011-03-31 Tom Tromey <tromey@redhat.com>
7426
7427 * varobj.c (update_dynamic_varobj_children): Properly handle
7428 errors from iterator.
7429
df5c6c50
JK
74302011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7431
7432 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7433 struct linkage name twice.
7434
1dae3efc
TT
74352011-03-31 Tom Tromey <tromey@redhat.com>
7436
7437 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7438 missing ">" to message.
7439
f4f7ab05
TT
74402011-03-31 Tom Tromey <tromey@redhat.com>
7441
7442 * varobj.c (instantiate_pretty_printer): Remove duplicate
7443 'return'.
7444
fcf250e2
UW
74452011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7446
7447 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7448 if neither saved value nor register available (e.g. signal frame).
7449
ee6436e3
TJB
74502011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7451
7452 * macroexp.c (expand): Avoid uninitialized variable
7453 compiler warning.
7454
423f41a5
TJB
74552011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7456
7457 * breakpoint.c (break_range_command): Fix typo in comment.
7458
f1310107
TJB
74592011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7460 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7461
7462 Implement support for PowerPC BookE ranged breakpoints.
7463 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7464 * breakpoint.h (struct bp_target_info) <length>: New member
7465 variable.
7466 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7467 instead of struct breakpoint as argument, and also add ASPACE
7468 and BP_ADDR arguments. Update all callers.
7469 (struct breakpoint_ops) <print_one_detail>: New method.
7470 (struct breakpoint) <addr_string_range_end>: New member variable.
7471 * breakpoint.c (breakpoint_location_address_match): Add function
7472 prototype.
7473 (insert_bp_location): Set bl->target_info.length.
7474 (breakpoint_here_p): Call breakpoint_location_address_match.
7475 (moribund_breakpoint_here_p): Likewise.
7476 (regular_breakpoint_inserted_here_p): Likewise.
7477 (breakpoint_thread_match): Likewise.
7478 (bpstat_stop_status): Likewise.
7479 (bpstat_check_location): Move call to
7480 breakpoint_ops.breakpoint_hit to the top.
7481 (print_one_breakpoint_location): Call
7482 breakpoint_ops.print_one_detail if available.
7483 (breakpoint_address_match_range): New function.
7484 (breakpoint_location_address_match): Likewise.
7485 (breakpoint_locations_match): Compare the length field of the
7486 locations too.
7487 (hw_breakpoint_used_count): Count resources used by all locations
7488 in a breakpoint, and use breakpoint_ops.resources_needed if
7489 available.
7490 (breakpoint_hit_ranged_breakpoint): New function.
7491 (resources_needed_ranged_breakpoint): Likewise.
7492 (print_it_ranged_breakpoint): Likewise.
7493 (print_one_ranged_breakpoint): Likewise.
7494 (print_one_detail_ranged_breakpoint): Likewise.
7495 (print_mention_ranged_breakpoint): Likewise.
7496 (print_recreate_ranged_breakpoint): Likewise.
7497 (ranged_breakpoint_ops): New structure.
7498 (find_breakpoint_range_end): New function.
7499 (break_range_command): Likewise.
7500 (delete_breakpoint): Free addr_string_range_end.
7501 (update_breakpoint_locations): Add SALS_END argument. Update
7502 all callers. Calculate breakpoint length if a non-zero SALS_END
7503 is given. Call breakpoint_locations_match instead of
7504 breakpoint_address_match.
7505 (reset_breakpoint): Find SaL of the end of the range if B is a
7506 ranged breakpoint.
7507 (_initialize_breakpoint): Register break-range command.
7508 * defs.h (print_core_address): Add function prototype.
7509 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7510 function.
7511 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7512 (ppc_linux_remove_hw_breakpoint): Likewise.
7513 (_initialize_ppc_linux_nat): Initialize
7514 to_ranged_break_num_registers.
7515 * target.c (update_current_target): Add comment about
7516 to_ranged_break_num_registers.
7517 (target_ranged_break_num_registers): New function.
7518 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7519 New method.
7520 (target_ranged_break_num_registers): Add function prototype.
7521 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7522 * utils.c (print_core_address): ... here.
7523
02d20e4a
UW
75242011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7525
7526 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7527 variable compiler warning.
7528
ef23e705
TJB
75292011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7530
7531 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7532 code from here ...
7533 (re_set_breakpoint): ... to here ...
7534 (addr_string_to_sals): ... and here.
7535
311e6ab3
PM
75362011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7537
7538 * Makefile.in (SFILES): Add missing C sources.
7539 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7540 Add missing headers.
7541
acd1d99c
MF
75422011-03-29 Mike Frysinger <vapier@gentoo.org>
7543
7544 * .gitignore: New file.
7545
66ee2731
MF
75462011-03-29 Mike Frysinger <vapier@gentoo.org>
7547
7548 * NEWS: Mention new cfi device simulation.
7549
53832f31
TT
75502011-03-29 Tom Tromey <tromey@redhat.com>
7551
7552 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7553 otherwise anonymous types.
7554 (dwarf2_name): Likewise.
7555 * valops.c (value_struct_elt_for_reference): Refine artificial
7556 type logic. Call error if j==-1.
7557
09b58708
JK
75582011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7559
7560 Fix false GCC warning.
7561 * infcall.c (find_function_addr): Initialize funaddr.
7562
6023c606
PM
75632011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7564
7565 Fix mingw compilation with --enable-targets=all.
7566 * remote-mips.c (gdb_usleep.h): Include header.
7567 (mips_enter_debug): Use gdb_usleep instead of sleep.
7568
0e30163f
JK
75692011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7570
7571 Support resolution of STT_GNU_IFUNC via breakpoints.
7572 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7573 bp_gnu_ifunc_resolver_return.
7574 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7575 the loop. Support bp_gnu_ifunc_resolver and
7576 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7577 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7578 breakpoints.
7579 (bptype_string, print_one_breakpoint_location): Support
7580 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7581 (user_settable_breakpoint): Return true also for
7582 bp_gnu_ifunc_resolver.
7583 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7584 bp_gnu_ifunc_resolver_return.
7585 (set_breakpoint_location_function): New parameter explicit_loc,
7586 describe it. Call find_pc_partial_function_gnu_ifunc with new
7587 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7588 EXPLICIT_LOC is not set.
7589 (set_raw_breakpoint): Set EXPLICIT_LOC for
7590 set_breakpoint_location_function.
7591 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7592 set_breakpoint_location_function.
7593 (mention): Support bp_gnu_ifunc_resolver and
7594 bp_gnu_ifunc_resolver_return.
7595 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7596 set_breakpoint_location_function.
7597 (update_breakpoint_locations): Remove static.
7598 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7599 bp_gnu_ifunc_resolver_return.
7600 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7601 bp_gnu_ifunc_resolver_return.
7602 (update_breakpoint_locations): New declaration.
7603 * elfread.c: Include gdbthread.h and regcache.h.
7604 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7605 functions.
7606 (elf_gnu_ifunc_fns): Install them.
7607 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7608 (stub_gnu_ifunc_resolver_return_stop): New functions.
7609 (stub_gnu_ifunc_fns): Install them.
7610 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7611 and gnu_ifunc_resolver_return_stop.
7612 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7613
07be84bf
JK
76142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 STT_GNU_IFUNC reader implementation.
7617 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7618 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7619 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7620 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7621 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7622 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7623 (elf_gnu_ifunc_resolve_addr): New.
7624 (elf_symfile_read): Call elf_rel_plt_read.
7625 (elf_gnu_ifunc_fns): New.
7626 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7627 Install elf_gnu_ifunc_fns.
7628 * infcall.c (find_function_return_type): New function.
7629 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7630 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7631 (stub_gnu_ifunc_resolve_name): New functions.
7632 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7633 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7634 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7635
300f8e10
JK
76362011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Code cleanup for later STT_GNU_IFUNC support.
7639 * infcall.c (find_function_addr): Remove variable code, use explicit
7640 dereferences for it. Move VALUE_TYPE initialization later.
7641
11c81455
JK
76422011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7643
7644 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7645 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7646 (clear_pc_function_cache): Clear it.
7647 (find_pc_partial_function): Rename to ...
7648 (find_pc_partial_function_gnu_ifunc): ... this function. New
7649 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7650 (find_pc_partial_function): New wrapper for this function.
7651 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7652
0875794a
JK
76532011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7654
7655 GDB internal type support for STT_GNU_IFUNC.
7656 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7657 (elf_symtab_read): Set mst_text_gnu_ifunc for
7658 BSF_GNU_INDIRECT_FUNCTION.
7659 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7660 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7661 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7662 nodebug_got_plt_symbol.
7663 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7664 (TYPE_GNU_IFUNC): New.
7665 (struct main_type): New field flag_gnu_ifunc.
7666 (struct builtin_type): New field builtin_func_func.
7667 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7668 nodebug_got_plt_symbol.
7669 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7670 (in_gnu_ifunc_stub): New.
7671 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7672 mst_text_gnu_ifunc.
7673 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7674 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7675 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7676 in_gnu_ifunc_stub.
7677 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7678 * symtab.c (search_symbols): Likewise.
7679 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7680 and mst_slot_got_plt.
7681 (in_gnu_ifunc_stub): New declaration.
7682
d0fb5eae
JK
76832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7684
7685 Support a ring of related breakpoints.
7686 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7687 other functions, add gdb_assert.
7688 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7689 watchpoint_del_at_next_stop.
7690 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7691 (bpstat_stop_status): Handle ring in related_breakpoint.
7692 (set_raw_breakpoint_without_location): Initialize ring in
7693 related_breakpoint.
7694 (delete_breakpoint): Handle ring in related_breakpoint, use
7695 watchpoint_del_at_next_stop.
7696 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7697
9cded63f
TT
76982011-03-28 Tom Tromey <tromey@redhat.com>
7699
7700 PR symtab/12441:
7701 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7702 with `language_minimal'.
7703
467d42c4
UW
77042011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7705
7706 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7707 instead of checking for STT_ARM_TFUNC symbol type.
7708
62853458
TT
77092011-03-25 Tom Tromey <tromey@redhat.com>
7710
7711 * linespec.c (symbol_found): Restore line-based result for
7712 non-LOC_LABEL symbols.
7713
a7417d46
KT
77142011-03-25 Kai Tietz <ktietz@redhat.com>
7715
7716 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7717 instead of strcmp for comparison.
7718 (tui_source_is_displayed): Likewise.
7719 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7720
55f1336d
TT
77212011-03-24 Mark Wielaard <mjw@redhat.com>
7722
f33edef8
PP
7723 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7724 complaint.
7725 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7726 (find_partial_die_in_comp_unit): Likewise in comment.
7727 (read_attribute_value): Likewise.
7728 (lookup_die_type): Likewise.
7729 (dwarf_form_name): Likewise.
7730 (dump_die_shallow): Likewise.
7731 (follow_die_ref_or_sig): Likewise.
55f1336d 7732
9ef07c8c
TT
77332011-03-24 Tom Tromey <tromey@redhat.com>
7734
7735 PR breakpoints/11816:
7736 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7737 (decode_compound): Update.
7738 (find_function_symbol): New function.
7739 (decode_dollar): Update.
7740 (decode_label): Add 'function_symbol' parameter. Handle
7741 function-relative labels.
7742 (decode_variable): Update.
7743 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7744 not its line. Set `special_display' and canonical name for
7745 labels.
7746
56435ebe
TT
77472011-03-24 Tom Tromey <tromey@redhat.com>
7748
7749 * linespec.h (struct linespec_result) <special_display>: New
7750 field.
7751 * breakpoint.h (struct breakpoint) <display_canonical>: New
7752 field.
7753 * breakpoint.c (print_breakpoint_location): Respect
7754 display_canonical.
7755 (create_breakpoint_sal): Add 'display_canonical' parameter.
7756 (create_breakpoints_sal): Update.
7757 (create_breakpoint): Update.
7758
7efd8fc2
TT
77592011-03-24 Tom Tromey <tromey@redhat.com>
7760
7761 * symtab.c (decode_line_spec): Update.
7762 * linespec.c (build_canonical_line_spec): Change type of
7763 'canonical'.
7764 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7765 (find_method, decode_all_digits, decode_dollar, decode_label)
7766 (symbol_found): Likewise.
7767 (init_linespec_result): New function.
7768 * breakpoint.c (struct captured_parse_breakpoint_args)
7769 <canonical_p>: New field, replaces addr_string_p.
7770 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7771 'addr_string'.
7772 (parse_breakpoint_sals): Likewise.
7773 (do_captured_parse_breakpoint): Update.
7774 (create_breakpoint): Use struct linespec_result.
7775 (until_break_command): Update.
7776 (breakpoint_re_set_one): Update.
7777 (decode_line_spec_1): Update.
7778 * linespec.h (struct linespec_result): New.
7779 (init_linespec_result): Declare.
7780
788c8b10
PA
77812011-03-23 Pedro Alves <pedro@codesourcery.com>
7782
7783 * regcache.c (regcache_raw_read): If the target didn't supply a
7784 given raw register, mark it as unavailable.
7785
0ba1096a
KT
77862011-03-23 Kai Tietz <ktietz@redhat.com>
7787
7788 * breakpoint.c (clear_command): Use filename_cmp
7789 instead of strcmp for comparison.
7790 * buildsym.c (watch_main_source_file_lossage): Likewise.
7791 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7792 checking just for slash.
7793 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7794 strrchr and filename_cmp instead of strcmp for filenames.
7795 (add_old_header_file): Use filename_cmp
7796 instead of strcmp for comparison.
7797 * exec.c (exec_set_section_address): Likewise.
7798 * macrotab.c (macro_lookup_inclusion): Likewise.
7799 (macro_lookup_inclusion): Likewise.
7800 * elfread.c (_initialize_elfread): Likewise.
7801 (elfstab_offset_sections): Likewise.
7802 (elfstab_offset_sections): Use lbasename instead of
7803 strrchr.
7804 * mdebugread.c (parse_partial_symbols): Likewise.
7805 (arse_partial_symbols): Use filename_(n)cmp instead of
7806 str(n)cmp for comparison.
7807 * minsyms.c (lookup_minimal_symbol): Likewise.
7808 * psymtab.c (read_psymtabs_with_filename): Likewise.
7809 * solib.c (solib_read_symbols): Likewise.
7810 (reload_shared_libraries_1): Likewise.
7811 * symmisc.c (maintenance_print_symbols): Likewise.
7812 * symfile.c (separate_debug_file_exists): Likewise.
7813 (reread_symbols): Likewise.
7814 (find_separate_debug_file_by_debuglink): Likewise.
7815 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7816 * source.c (add_path): Likewise.
7817 * symtab.c (filename_seen): Likewise.
7818 (file_matches): Likewise.
7819 (print_symbol_info): Likewise.
7820 (maybe_add_partial_symtab_filename): Likewise.
7821 (make_source_files_completion_list): Likewise.
7822 * xml-syscall.c (init_sysinfo): Likewise.
7823 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7824 IS_DIR_SEPARATOR for checking for trailing path separator.
7825
dd90784c
JK
78262011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7827
7828 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7829 label abort_expression.
7830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7831 DWARF_VALUE_OPTIMIZED_OUT.
7832
3167638f
JK
78332011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7834
7835 Code cleanup.
7836 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7837 to linkage_name. Invert its value. Update the function comment.
7838 (c_type_print_varspec_suffix): Invert it at the caller.
7839 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7840
ce406537
PA
78412011-03-22 Pedro Alves <pedro@codesourcery.com>
7842
7843 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7844 errors when reading the `stop_pc'.
7845 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7846 get_frame_pc.
7847
da5d4055
PM
78482011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7849
7850 * NEWS: Document gdb.Write stream keyword.
7851
29e0eb9c
JK
78522011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7853
7854 Revert:
7855 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7856 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7857 (dwarf2_add_field): Fix new_field->accessibility for
7858 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7859
05775840
PM
78602011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7861
f33edef8 7862 PR python/12183
05775840
PM
7863
7864 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7865 other error classes. Do not print stack trace.
7866
a0cb7835
JK
78672011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7870 (dwarf2_add_field): Fix new_field->accessibility for
7871 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7872
d19f7eee
UW
78732011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7874
7875 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7876 encountering a load via a non-SP register.
7877
4a2fbb50
UW
78782011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7879
7880 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7881 field in returned unwinder.
7882
3489610d
JB
78832012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7886
8c1a34e7
JB
78872012-03-21 Joel Brobecker <brobecker@adacore.com>
7888
7889 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7890 of xmalloc.
7891
8fbca658
PA
78922012-03-18 Pedro Alves <pedro@codesourcery.com>
7893
7894 * frame.c (frame_unwind_register): Throw an error if unwinding the
7895 register failed.
7896 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7897 an unwind stop reason.
7898 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7899 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7900 UNWIND_UNAVAILABLE>: New.
7901 * inline-frame.c (inline_frame_unwind): Install
7902 default_frame_unwind_stop_reason.
7903 * frame-unwind.c: Include "exceptions.h".
7904 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7905 (default_frame_unwind_stop_reason): New.
7906 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7907 (default_frame_unwind_stop_reason): Declare.
7908 (struct frame_unwind) <stop_reason>: New function pointer.
7909
7910 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7911 * dwarf2-frame.c: Include exceptions.h.
7912 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7913 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7914 computing the CFA. If such an error was thrown, set
7915 unavailable_retaddr.
7916 (dwarf2_frame_unwind_stop_reason): New.
7917 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7918 unavailable.
7919 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7920 (dwarf2_signal_frame_unwind): Ditto.
7921
7922 * amd64-tdep.c: Include "exceptions.h".
7923 (struct amd64_frame_cache): New field "base_p".
7924 (amd64_init_frame_cache): Clear it.
7925 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7926 Avoid reading registers with functions that throw if the register
7927 is not necessary to compute the frame base.
7928 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7929 swallowing NOT_AVAILABLE_ERROR.
7930 (amd64_frame_unwind_stop_reason): New.
7931 (amd64_frame_this_id): Don't build a frame id if the frame base
7932 was unavailable.
7933 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7934 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7935 base_p if the frame base was computable.
7936 (amd64_sigtramp_frame_unwind_stop_reason): New.
7937 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7938 frame base was unavailable.
7939 (amd64_sigtramp_frame_unwind): Install
7940 amd64_sigtramp_frame_unwind_stop_reason.
7941 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7942 base_p if the frame base was computable.
7943 (amd64_epilogue_frame_unwind_stop_reason): New.
7944 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7945 frame base was unavailable.
7946 (amd64_epilogue_frame_unwind): Install
7947 amd64_epilogue_frame_unwind_stop_reason.
7948 * i386-tdep.c: Include "exceptions.h".
7949 (struct i386_frame_cache): New field "base_p".
7950 (i386_init_frame_cache): Clear it.
7951 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7952 Avoid reading registers with functions that throw if the register
7953 is not necessary to compute the frame base.
7954 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7955 swallowing NOT_AVAILABLE_ERROR.
7956 (i386_frame_unwind_stop_reason): New.
7957 (i386_frame_this_id): Don't build a frame id if the frame base was
7958 unavailable.
7959 (i386_frame_prev_register): Handle unavailable SP.
7960 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7961 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7962 base_p if the frame base was computable.
7963 (i386_epilogue_frame_unwind_stop_reason): New.
7964 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7965 base was unavailable.
7966 (i386_epilogue_frame_unwind): Install
7967 i386_epilogue_frame_unwind_stop_reason.
7968 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7969 base_p if the frame base was computable.
7970 (i386_sigtramp_frame_unwind_stop_reason): New.
7971 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7972 base was unavailable.
7973 (i386_sigtramp_frame_unwind): Install
7974 i386_sigtramp_frame_unwind_stop_reason.
7975 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7976 type's size, not the register's.
7977 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7978
7979 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7980 default_frame_unwind_stop_reason.
7981 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7982 (alpha_heuristic_frame_unwind): Ditto.
7983 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7984 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7985 * avr-tdep.c (avr_frame_unwind): Ditto.
7986 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7987 Ditto.
7988 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7989 * frv-tdep.c (frv_frame_unwind): Ditto.
7990 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7991 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7992 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7993 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7994 (hppa_stub_frame_unwind): Ditto.
7995 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7996 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7997 (ia64_libunwind_frame_unwind)
7998 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7999 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8000 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8001 * m32c-tdep.c (m32c_unwind): Ditto.
8002 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8003 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8004 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8005 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8006 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8007 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8008 * mep-tdep.c (mep_frame_unwind): Ditto.
8009 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8010 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8011 (mips_stub_frame_unwind): Ditto.
8012 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8013 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8014 * mt-tdep.c (mt_frame_unwind): Ditto.
8015 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8016 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8017 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8018 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8019 (s390_sigtramp_frame_unwind): Ditto.
8020 * score-tdep.c (score_prologue_unwind): Ditto.
8021 * sh-tdep.c (sh_frame_unwind): Ditto.
8022 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8023 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8024 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8025 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8026 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8027 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8028 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8029 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8030 (sparc64obsd_trapframe_unwind): Ditto.
8031 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8032 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8033 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8034 * v850-tdep.c (v850_frame_unwind): Ditto.
8035 * vax-tdep.c (vax_frame_unwind): Ditto.
8036 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8037 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8038 * xtensa-tdep.c (xtensa_unwind): Ditto.
8039
f23d1b92
PA
80402011-03-18 Pedro Alves <pedro@codesourcery.com>
8041
8042 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8043 there's always a frame. Use get_frame_pc_if_available instead of
8044 get_frame_pc, and if there's no PC available, don't look up a
8045 symtab.
8046
1d4f5741
PA
80472011-03-18 Pedro Alves <pedro@codesourcery.com>
8048
8049 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8050 unavailable PC.
8051
dba09041
PA
80522011-03-18 Pedro Alves <pedro@codesourcery.com>
8053
8054 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8055 gracefully.
8056
9a26e44c
PA
80572011-03-18 Pedro Alves <pedro@codesourcery.com>
8058
8059 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8060 * frame.c (frame_unwind_caller_pc_if_available): New.
8061 * stack.c (frame_info): Handle unavailable PC.
8062
80632011-03-18 Pedro Alves <pedro@codesourcery.com>
8064
8065 * frame.c (frame_unwind_pc): Rename to ...
8066 (frame_unwind_pc_if_available): ... this. New `pc' output
8067 parameter. Change return type to int. Gracefully handle
8068 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8069 happened, or 1 otherwise.
8070 (frame_unwind_pc): Reimplement on top of
8071 frame_unwind_pc_if_available.
8072 (get_frame_func): Rename to ...
8073 (get_frame_func_if_available): New `pc' output parameter. Change
8074 return type to int. Gracefully handle the PC not being available.
8075 (get_frame_func): Reimplement on top of
8076 get_frame_func_if_available.
8077 (select_frame): Handle the PC being unavailable.
8078 (get_prev_frame): Handle the PC being unavailable.
8079 (get_frame_pc_if_available): New.
8080 (get_frame_address_in_block_if_available): New.
8081 (find_frame_sal): Handle the frame PC not being available.
8082 * frame.h (get_frame_pc_if_available): Declare.
8083 (get_frame_address_in_block_if_available): Declare.
8084 (get_frame_func_if_available): Declare.
8085 * stack.c (print_frame_info): Handle the PC being unavailable.
8086 (find_frame_funname): Ditto.
8087 (print_frame): Handle the PC being unavailable.
8088 (get_frame_language): Ditto.
8089 * blockframe.c (get_frame_block): Ditto.
8090 * macroscope.c (default_macro_scope): Ditto.
8091 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8092
80932011-03-18 Pedro Alves <pedro@codesourcery.com>
8094
8095 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8096 NOT_AVAILABLE_ERROR when evaluating the location expression.
8097
80982011-03-18 Pedro Alves <pedro@codesourcery.com>
8099
8100 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8101 returning that the register piece is unavailable/optimized out.
8102 (write_pieced_value): Handle get_frame_register_bytes returning
8103 that the register piece is unavailable/optimized out when doing a
8104 read-modify write of a bitfield.
8105 * findvar.c (value_from_register): Handle get_frame_register_bytes
8106 returning that the register piece is unavailable/optimized out.
8107 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8108 and `unavailablep'. Throw error on bad debug info. Use
8109 frame_register instead of frame_register_read, to fill in the new
8110 arguments.
8111 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8112 and `unavailablep'.
8113 * valops.c: (value_assign): Adjust, and handle
8114 get_frame_register_bytes failing.
8115 * spu-tdep.c: Include exceptions.h.
8116 (spu_software_single_step): Adjust, and handle
8117 get_frame_register_bytes failing.
8118 (spu_get_longjmp_target): Ditto.
8119 * gdbarch.sh (register_to_value): Change to return int. New
8120 parameters `optimizedp' and `unavailablep'.
8121 * gdbarch.h, gdbarch.c: Regenerate.
8122 * i386-tdep.c (i386_register_to_value): Adjust to new
8123 gdbarch_register_to_value interface.
8124 * i387-tdep.c (i387_register_to_value): Ditto.
8125 * i387-tdep.h (i387_register_to_value): Ditto.
8126 * alpha-tdep.c (alpha_register_to_value): Ditto.
8127 * ia64-tdep.c (ia64_register_to_value): Ditto.
8128 * m68k-tdep.c (m68k_register_to_value): Ditto.
8129 * mips-tdep.c (mips_register_to_value): Ditto.
8130 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8131
0fdb4f18
PA
81322011-03-18 Pedro Alves <pedro@codesourcery.com>
8133
8134 * findvar.c (value_of_register): Mark the value as unavailable, if
8135 the register is unavailable.
8136 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8137 (frame_register): New `unavailablep' parameter.
8138 (frame_register_read): Update comment.
8139 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8140 Set it if the register is unavailable. If the register is
8141 unavailable, clear the output buffer.
8142 (frame_register): New `unavailablep' parameter. Pass it down.
8143 (frame_unwind_register): Adjust.
8144 (put_frame_register): Adjust.
8145 (frame_register_read): Adjust. Also return false if the register
8146 is not available.
8147 (frame_register_unwind_location): Adjust.
8148 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8149 is unavailable, mark the value accordingly.
8150 * stack.c (frame_info): Handle unavailable registers.
8151
e69aa73e
PA
81522011-03-18 Pedro Alves <pedro@codesourcery.com>
8153
8154 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8155 simplify, using regcache_cooked_read.
8156
05d1431c
PA
81572011-03-18 Pedro Alves <pedro@codesourcery.com>
8158
8159 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8160 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8161 (regcache_raw_read_unsigned, regcache_raw_read_part)
8162 (regcache_cooked_read, regcache_cooked_read_signed)
8163 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8164 (regcache_cooked_read_ftype): Change return to enum
8165 register_status.
8166 * regcache.c: Include exceptions.h
8167 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8168 (do_cooked_read): Change return to enum register_status. Always
8169 forward to regcache_cooked_read.
8170 (regcache_raw_read): Change return to enum register_status. If
8171 the register is not REG_VALID, memset the buffer. Return the
8172 register's status.
8173 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8174 return the register's status.
8175 (regcache_raw_read_unsigned): Ditto.
8176 (regcache_cooked_read): Change return to enum register_status.
8177 Assert that with read-only regcaches, the register's status must
8178 be known. If the regcache is read-only, and the register is not
8179 REG_VALID, memset the buffer. Return the register's status.
8180 (regcache_cooked_read_signed): Change return to enum
8181 register_status. Handle non-REG_VALID registers and return the
8182 register's status.
8183 (regcache_cooked_read_unsigned): Change return to enum
8184 register_status. Handle non-REG_VALID registers and return the
8185 register's status.
8186 (regcache_xfer_part, regcache_raw_read_part)
8187 (regcache_cooked_read_part): Change return to enum
8188 register_status. Return the register's status.
8189 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8190 unavailable.
8191 (regcache_dump): Handle unavailable cooked registers.
8192 * frame.c (do_frame_register_read): Adjust interface to match
8193 regcache_cooked_read_ftype.
8194 * gdbarch.sh (pseudo_register_read): Change return to enum
8195 register_status.
8196 * gdbarch.h, gdbarch.c: Regenerate.
8197
8198 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8199 register_status.
8200 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8201 register_status. If reading a raw register indicates the raw
8202 register is not valid, return the raw register's status,
8203 otherwise, return REG_VALID.
8204 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8205 register_status. Handle non-REG_VALID raw registers and return
8206 the register's status.
8207 * arm-tdep.c (arm_neon_quad_read)
8208 (arm_pseudo_read): Change return to enum register_status. Handle
8209 non-REG_VALID raw registers and return the register's status.
8210 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8211 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8212 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8213 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8214 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8215 register_status.
8216 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8217 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8218 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8219 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8220 (m32c_pseudo_register_read): Change return to enum
8221 register_status. Adjust.
8222 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8223 enum register_status. Return the register's status.
8224 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8225 register_status. Return the register's status.
8226 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8227 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8228 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8229 * rs6000-tdep.c (move_ev_register_func): New typedef.
8230 (e500_move_ev_register): Use it. Change return to enum
8231 register_status. Return the register's status.
8232 (do_regcache_raw_read): New function.
8233 (do_regcache_raw_write): New function.
8234 (e500_pseudo_register_read): Change return to enum
8235 register_status. Return the register's status. Use
8236 do_regcache_raw_read.
8237 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8238 (dfp_pseudo_register_read): Change return to enum register_status.
8239 Return the register's status.
8240 (vsx_pseudo_register_read): Ditto.
8241 (efpr_pseudo_register_read): Ditto.
8242 (rs6000_pseudo_register_read): Ditto.
8243 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8244 register_status. Return the register's status.
8245 * sh64-tdep.c (pseudo_register_read_portions): New function.
8246 (sh64_pseudo_register_read): Change return to enum
8247 register_status. Use pseudo_register_read_portions. Return the
8248 register's status.
8249 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8250 register_status. Return the register's status.
8251 * sh-tdep.c (pseudo_register_read_portions): New function.
8252 (sh_pseudo_register_read): Change return to enum register_status.
8253 Use pseudo_register_read_portions. Return the register's status.
8254 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8255 enum register_status. Return the register's status.
8256 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8257 * spu-tdep.c (spu_pseudo_register_read_spu)
8258 (spu_pseudo_register_read): Ditto.
8259 * xtensa-tdep.c (xtensa_register_read_masked)
8260 (xtensa_pseudo_register_read): Ditto.
8261 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8262
e10abd8f
PM
82632011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8264
8265 * python/py-value.c (valpy_getitem): Fix formatting of error function
8266 call.
8267
7ea6d463
PM
82682011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8269
8270 ARI fixes: Add missing internationalization markups throughout
8271 C source files.
8272 * darwin-nat-info.c: Ditto.
8273 * record.c: Ditto.
8274 * remote.c: Ditto.
8275 * mi/mi-main.c: Ditto.
8276
001083c6
PM
82772011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8278
8279 ARI fixes: Add missing internationalization markups throughout
8280 yacc files.
8281 * c-exp.y: Ditto.
8282 * cp-name-parser.y: Ditto.
8283 * f-exp.y: Ditto.
8284 * m2-exp.y: Ditto.
8285 * objc-exp.y: Ditto.
8286 * p-exp.y: Ditto.
8287
4f1cdeec
PM
82882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8289
8290 ARI fixes: Messages should have no trailing new lines.
8291 * darwin-nat.c (mach_check_error): Remove trailing new line from
8292 warning function call message.
8293 * record.c (bfdcore_read): Idem for error call.
8294
28e698f1
PM
82952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8296
8297 * common/signals.c (target_signal_from_host): Add _ markup to error
8298 function call message.
8299 (target_signal_to_host): Add _ markup and remove trailing new line
8300 from warning call message.
8301 (target_signal_from_command): Add _ markup to error function call
8302 message.
8303
99c3dc11
PM
83042011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8305
f33edef8 8306 PR python/12149
99c3dc11
PM
8307
8308 * python/python.c (gdbpy_write): Accept a stream argument and
8309 operate to the appropriate stream.
8310 (gdbpy_flush): Likewise.
8311 (_initialize_python): Add stream constants.
8312 (finish_python_initialization): Add GdbOutputErrorFile class.
8313
c20800be
KY
83142011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8315
8316 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8317
f4a1794a
KY
83182011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8319
8320 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8321 to store_signed_integer. Add debug message when relocating CALL
8322 instructions. Fix formatting of debug message.
8323 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8324
d4862372
JB
83252011-03-17 Joel Brobecker <brobecker@gnat.com>
8326
8327 * target.h (struct target_ops): Remove to_lookup_symbol field.
8328 (target_lookup_symbol): Delete macro.
8329 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8330 (update_current_target, setup_target_debug): Remove handling
8331 of to_lookup_symbol target_ops field.
8332 * ada-tasks.c (get_known_tasks_addr): Remove use of
8333 target_lookup_symbol.
8334 * coffread.c (coff_symtab_read): Likewise.
8335 * dbxread.c (read_dbx_symtab): Ditto.
8336
d645e32e
JB
83372011-03-17 Joel Brobecker <brobecker@gnat.com>
8338
8339 PR gdb/12116:
8340 * configure.ac: Add getthrds declaration check.
8341 * configure, config.in: Regenerate.
8342 * aix-thread.c (getthrds): Declare only if not already declared
8343 in procinfo.h. More declaration out of get_signaled_thread to
8344 global scope.
8345
29703da4
PM
83462011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8347
8348 * python/py-symtab.c: Populate symtab_object_methods,
8349 sal_object_methods.
8350 (stpy_is_valid): New function.
8351 (salpy_is_valid): Ditto.
8352 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8353 (sympy_is_valid): New function.
8354 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8355 (objfpy_is_valid): New function.
8356 * python/py-inferior.c: Populate inferior_object_methods.
8357 (infpy_is_valid): New function.
8358 * python/py-infthread.c: Populate thread_object_methods.
8359 (thpy_is_valid): New function.
8360 * python/py-block.c: Declare block_object_methods. Populate. Declare
8361 block_iterator_object_methods. Populate.
8362 (blpy_is_valid): New function.
8363 (blpy_iter_is_valid): Ditto.
8364
c00f8484
KS
83652011-03-16 Keith Seitz <keiths@redhat.com>
8366
8367 * linespec.c (find_methods): Canonicalize NAME before looking
8368 up the symbol.
8369 (name_end): New function.
8370 (keep_name_info): New function.
8371 (decode_line_1): Use keep_name_info.
8372 (decode_compound): Likewise.
8373 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8374 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8375
8376 PR c++/12273
8377 * linespec.c (locate_first_half): Keep overload information, too.
8378 (decode_compound): Use a string to represent break characters
8379 to escape the loop.
8380 If P points to a break character, do not increment it.
8381 For C++ and Java, keep overload information and relevant keywords.
8382 If we cannot find a symbol, search the minimal symbols.
8383
8384 PR c++/11734
8385 * linespec.c (decode_compound): Rename SAVED_ARG to
8386 THE_REAL_SAVED_ARG.
8387 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8388 single-quotes.
8389 Pass a valid block to lookup_symbol.
8390 (lookup_prefix_sym): Likewise.
8391 (find_method): Construct search name based on SYM_CLASS instead
8392 of SAVED_ARG.
8393 * psymtab.c (lookup_partial_symbol): Add language parameter.
8394 (lookup_symbol_aux_psymtabs): Likewise.
8395 Don't assume that the psymtab we found was the right one. Search
8396 for the desired symbol in the symtab to be certain.
8397 (psymtab_search_name): New function.
8398 (lookup_partial_symbol): Use psymtab_search_name.
8399 Add language parameter.
8400 (read_symtabs_for_function): Add language parameter and pass to
8401 lookup_partial_symbol.
8402 (find_symbol_file_from_partial): Likewise.
8403
c91513d8
PP
84042011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8405
8406 PR gdb/12528
8407 * dwarf2read.c (noop_record_line): New function.
8408 (dwarf_decode_lines): Ignore line tables for GCd functions.
8409
b37520b6
PM
84102011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8411
8412 Fix ARI warnings about new lines at the end of messages, which
8413 are unneeded as there is a new line added at the end of the message
8414 automatically.
8415 * darwin-nat.c (darwin_stop_inferior): Ditto.
8416 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8417 * dfp.c (decimal_to_number): Ditto.
8418 * exec.c (print_section_info): Ditto.
8419 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8420 * osdata.c (get_osdata): Ditto.
8421 * record.c (bfdcore_write): Ditto.
8422 * remote-mips.c (mips_readchar): Ditto.
8423 * remote.c (read_ptid): Ditto.
8424 * ser-mingw.c (ser_windows_raw): Ditto.
8425 * tracepoint.c (add_local_symbols): Ditto.
8426 * windows-nat.c (fake_create_process): Ditto.
8427
b08ee6a2
TT
84282011-03-16 Tom Tromey <tromey@redhat.com>
8429
8430 * tracepoint.c (stop_tracing): Don't declare.
8431 * event-top.c (after_char_processing_hook): Add `(void)'.
8432
9a6f1302
PM
84332011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8434
8435 * NEWS: Add Parameter sub-classing description.
8436
7ceb86b1
KT
84372011-03-16 Kai Tietz <ktietz@redhat.com>
8438
8439 * MAINTAINERS: Update my e-mail address.
8440
efeff6cf
AT
84412011-03-15 Andreas Tobler <andreast@fgznet.ch>
8442
8443 * MAINTAINERS: Add myself for write after approval privileges.
8444
681c238c
MS
84452011-03-15 Michael Snyder <msnyder@vmware.com>
8446
f3df5b08
MS
8447 * frame.c (find_frame_sal): Assert sym is not null.
8448
13f6513c
MS
8449 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8450
50412521
MS
8451 * objc-lang.c (selectors_info): Check strchr for null result.
8452
681c238c
MS
8453 * stabsread.c (define_symbol): Guard against bad stabstring input.
8454
6ced1581
PM
84552011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8456
8457 Remove trailing spaces and tabulations from pascal language
8458 support sources.
8459 p-exp.y: Ditto.
8460 p-lang.c: Ditto.
8461 p-lang.h: Ditto.
8462 p-valprint.c: Ditto.
8463
9373cf26
JK
84642011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8465
8466 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8467 than LOW. Comment it.
8468 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8469 HIGHPC not strictly higher than LOWPC.
8470
9a1edae6
PM
84712011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8472
8473 Fix formatting of function declarations returning a pointer in
8474 previous commit.
8475 * varobj.c (varobj_add_child): Ditto.
8476 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8477 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8478
24e9cda0
UW
84792011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8480
8481 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8482 for the "generic" vector ABI used with GCC 4.3 and later.
8483 (ppc64_sysv_abi_return_value): Likewise.
8484
84852011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8486
8487 * infcall.c (call_function_by_hand): Function return value is
8488 always a non_lval, even when using struct_return.
8489
c9174737
PA
84902011-03-15 Pedro Alves <pedro@codesourcery.com>
8491
8492 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8493 (map_display_numbers): New.
8494 (do_delete_display): New.
8495 (undisplay_command): Use map_display_numbers.
8496 (do_enable_disable_display): New.
8497 (enable_disable_display_command): New function.
8498 (enable_display): Delete.
8499 (enable_display_command): New.
8500 (disable_display_command): Reimplement.
8501 (_initialize_printcmd): Adjust "enable display" command to use
8502 `enable_display_command' as callback.
8503
350c6c65
PM
85042011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8505
8506 * NEWS: Add Python breakpoint 'stop' operation.
8507
824446ad
PM
85082011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8509
8510 * NEWS: Delete duplicate entry. Fix typo.
8511
2021ad3a
PM
85122011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8513
8514 Fix ARI warning about function names in first column.
8515 Put prototype declaration on same line as return type.
8516 * objc-exp.y: Ditto.
8517 * p-exp.y: Ditto.
8518 * python/py-stopevent.h: Ditto.
8519 For long function names, split parameters to
8520 allow function name on same line as return type.
8521 * solib-pa64.c: Ditto.
8522 * varobj.c: Ditto.
8523 * varobj.h: Ditto.
8524 For long function declaration, use single line.
8525 * hppa-tdep.h: Ditto.
8526 * inferior.h: Ditto.
8527
7371cf6d
PM
85282011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8529
8530 * python/python.h: Declare gdbpy_should_stop and
8531 gdbpy_breakpoint_has_py_cond.
8532 * python/python.c: Add python.h to includes. Remove python.h from
8533 HAVE_PYTHON definition
8534 (gdbpy_should_stop): New dummy function.
8535 (gdbpy_breakpoint_has_py_cond): New dummy function.
8536 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8537 sub-classing capabilities.
8538 (gdbpy_should_stop): New function.
8539 (gdbpy_breakpoint_has_py_cond): New function.
8540 (local_setattro): New function.
8541 * breakpoint.c (condition_command): Add check for Python 'stop'
8542 operation.
8543 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8544 operation function as part of stop/continue tests.
8545
37b50a69
TT
85462011-03-14 Tom Tromey <tromey@redhat.com>
8547
8548 PR gdb/12576:
8549 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8550 (needs_frame_dwarf_call): Likewise.
8551
eeae04df
PM
85522011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8553
8554 Fix ARI warning about functions without parameters that do not
8555 use (void).
8556 * breakpoint.c (all_tracepoints): Replace () by (void).
8557 * f-exp.y (match_string_literal): Ditto.
8558 (yylex): Ditto.
8559 * m2-exp.y (yylex): Ditto.
8560 * mep-tdep.c (current_me_module): Ditto.
8561 (current_options): Ditto.
8562 (current_cop_data_bus_width): Ditto.
8563 (current_cr_names): Ditto.
8564 (current_cr_is_float): Ditto.
8565 (current_ccr_names): Ditto.
8566 * objc-exp.y (yylex): Ditto.
8567 * p-exp.y (yylex): Ditto.
8568 * remote.c (send_interrupt_sequence): Ditto.
8569 * tracepoint.c (current_trace_status): Ditto.
8570 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8571 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8572
6dc3565d
MS
85732011-03-11 Michael Snyder <msnyder@vmware.com>
8574
1427fe5e
MS
8575 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8576 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8577 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8578 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8579 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8580
60bc018f
MS
8581 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8582 (delete_async_event_handler): Ditto.
8583
f3be5b64
MS
8584 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8585
4c2d5724
MS
8586 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8587
6dc3565d
MS
8588 * top.c (set_verbose): Assert showcmd was found.
8589
4e6ca6d5
MG
85902011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8591
8592 * xtensa-tdep.c (warning_once): Correct style issues.
8593
815a83e4
YQ
85942011-03-11 Yao Qi <yao@codesourcery.com>
8595
8596 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8597
f2eb0bc8
AS
85982011-03-11 Andreas Schwab <schwab@redhat.com>
8599
8600 * common/aclocal.m4: Remove.
8601
b801de47
MG
86022011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8603
8604 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8605 (xtensa_write_register, xtensa_read_register): Likewise.
8606 (xtensa_hextochar): Removed.
8607 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8608
dbab50de
MG
86092011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8610
8611 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8612 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8613 (xtensa_alloc_frame_cache): Add initialization for new fields.
8614 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8615 (warning_once): New function.
8616 (xtensa_insn_kind): New item c0opc_and.
8617 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8618 (call0_track_op): Change arguments. New local variable litbase.
8619 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8620 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8621 in the prologue.
dbab50de 8622 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8623 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8624 Add the variety of updates to handle extended prologues, which now can
8625 conduct dynamic stack adjustments.
8626 (call0_frame_cache): Likewise.
8627 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8628 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8629
b2c04452
MS
86302011-03-10 Michael Snyder <msnyder@vmware.com>
8631
f8f67713
MS
8632 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8633 (cmd_qtframe): Ditto.
8634 (cmd_qtbuffer): Ditto.
8635 (cmd_bigqtbuffer): Ditto.
8636
197f0a60
TT
86372011-03-10 Tom Tromey <tromey@redhat.com>
8638
8639 * tracepoint.c (trace_actions_command): Update.
8640 * thread.c (thread_apply_command): Update.
8641 * reverse.c (delete_bookmark_command): Update.
8642 (bookmarks_info): Update.
8643 * printcmd.c (undisplay_command): Update.
8644 * memattr.c (mem_enable_command): Update.
8645 (mem_disable_command): Update.
8646 (mem_delete_command): Update.
8647 * inferior.c (detach_inferior_command): Update.
8648 (kill_inferior_command): Update.
8649 (remove_inferior_command): Update.
8650 * cli/cli-utils.h (struct get_number_or_range_state): New.
8651 (init_number_or_range): Declare.
8652 (get_number_or_range): Update.
8653 * cli/cli-utils.c (init_number_or_range): New function.
8654 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8655 static variables.
8656 (number_is_in_list): Update.
8657 * breakpoint.h (get_tracepoint_by_number): Update.
8658 * breakpoint.c (map_breakpoint_numbers): Update for change to
8659 get_number_or_range.
8660 (find_location_by_number): Use get_number, not
8661 get_number_or_range.
8662 (trace_pass_set_count): New function.
8663 (trace_pass_command): Update for change to get_number_or_range.
8664 Rework loop logic.
8665 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8666 'state' parameter.
8667
ecec24e6
PM
86682011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8669
8670 * python/py-param.c (add_setshow_generic): Add set/show callback
8671 parameters. Register Python object context.
8672 (get_show_value): New function.
8673 (get_set_value): New function.
8674 (call_doc_function): New function.
8675 (get_doc_string): Move behind get_show_value/get_set_value.
8676
6d6c6b1f
JK
86772011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8678
8679 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8680
68d6df83
MG
86812011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8682
dbab50de 8683 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8684 (xtensa_write_register): Likewise.
8685 (xtensa_hextochar): Add comment and update to match coding conventions.
8686 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8687 (execute_l32e, execute_s32e, execute_code): Update comments.
8688 (xtensa_exception_handler_t): Update to match coding conventions.
8689 (xtensa_insn_kind): Likewise.
8690
85c9d6a6
MS
86912011-03-09 Michael Snyder <msnyder@vmware.com>
8692
8693 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8694
91495617
PA
86952011-03-09 Pedro Alves <pedro@codesourcery.com>
8696
8697 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8698
eb8c0621
TT
86992011-03-09 Tom Tromey <tromey@redhat.com>
8700
8701 * thread.c (restore_selected_frame): Handle frame_level == -1.
8702 (make_cleanup_restore_current_thread): Use
8703 get_selected_frame_if_set.
8704 * frame.h (get_selected_frame_if_set): Declare.
8705 * frame.c (get_selected_frame_if_set): New function.
8706
9f37bbcc
PA
87072011-03-09 Pedro Alves <pedro@codesourcery.com>
8708
8709 * cli/cli-cmds.c (shell_escape): Use lbasename.
8710 * coffread.c (coff_start_symtab): Constify parameter.
8711 (complete_symtab): Constify `name' parameter.
8712 (coff_symtab_read): Constify `filestring' local.
8713 (coff_getfilename): Constify return and `result' local.
8714 Use lbasename.
8715 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8716 * linux-fork.c (info_checkpoints_command): Use lbasename.
8717 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8718 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8719 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8720 * procfs.c (procfs_make_note_section): Use lbasename.
8721 * tui/tui-io.c (printable_part): Constity return and parameter.
8722 Use lbasename.
8723 (print_filename): Constify parameters, and local `s'.
8724 (tui_rl_display_match_list): Constify local `temp'.
8725
f8de3c55
JK
87262011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 Revert:
8729 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8730 Fix DWARF-3+ DW_AT_accessibility default assumption.
8731 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8732 cu->header.version >= 3.
8733
d9837b00
YQ
87342011-03-09 Yao Qi <yao@codesourcery.com>
8735
8736 * common/Makefile.in: Remove.
8737 * common/configure: Remove.
8738 * common/configure.ac: Remove.
8739
e637a4f5
YQ
87402011-03-09 Yao Qi <yao@codesourcery.com>
8741
8742 Revert:
8743 2011-02-11 Yao Qi <yao@codesourcery.com>
8744
8745 * common/Makefile.in: Add copyright header.
8746
8747 2011-02-11 Yao Qi <yao@codesourcery.com>
8748
8749 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8750 libcommon.a.
8751 * configure.ac: Add common to sub dir.
8752 * configure: Regenerate.
8753
f976a05d
MG
87542011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8755
8756 * xtensa-tdep.c (call0_ret): New function.
8757 (xtensa_skip_prologue): Speed up analysis.
8758
57041825
MG
87592011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8760
8761 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8762 while executing MI command -data-list-changed-registers.
8763
08b9c608
MG
87642011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8765
8766 * xtensa-tdep.c (xtensa_read_register): New function.
8767 (xtensa_write_register): New function.
8768 (xtensa_find_register_by_name): New function.
8769 (xtensa_windowed_frame_cache): Update comments in type description.
8770 (xtensa_frame_cache): Likewise.
8771 (xtensa_window_interrupt_insn): New function.
8772 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8773 (xtensa_insn_kind): Add new instructions.
8774 (rwx_special_register): New function.
8775 (call0_classify_opcode): Add new instructions to the analysis.
8776 (a0_saved, a7_saved, a11_saved): New variables.
8777 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8778 (execute_l32e): New function.
8779 (execute_s32e): New function.
8780 (xtensa_exception_handler_t): New type.
8781 (execute_code): New function.
8782 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8783 analysis for Xtensa Window Exception handlers.
8784
4d1acb11
MG
87852011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8786
98689b25
MG
8787 * xtensa-tdep.c (TX_PS): New.
8788 (windowing_enabled): Update to count for Call0 ABI.
8789 (xtensa_hextochar): New.
8790 (xtensa_init_reggroups): Make algorithm generic.
8791 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8792
87932011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8794
8795 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8796
d3f323f3
MS
87972011-03-08 Michael Snyder <msnyder@vmware.com>
8798
3dcabaa8
MS
8799 * i386-tdep.c (i386_follow_jump): Check return value of
8800 target_read_memory.
8801 (i386_analyze_struct_return): Ditto.
8802 (i386_skip_probe): Ditto.
8803 (i386_match_insn): Ditto.
8804 (i386_skip_noop): Ditto.
8805 (i386_analyze_frame_setup): Ditto.
8806 (i386_analyze_register_saves): Ditto.
8807 (i386_skip_prologue): Ditto.
8808 (i386_skip_main_prologue): Ditto.
8809
13b3fd9b
MS
8810 * target.c (read_whatever_is_readable): Fix memory leak.
8811
d3f323f3
MS
8812 * i386-tdep.c (i386_process_record): Document fall through.
8813
421d5c74
JK
88142011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8815
8816 Fix DWARF-3+ DW_AT_accessibility default assumption.
8817 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8818 cu->header.version >= 3.
8819
63154eca
PA
88202011-03-08 Pedro Alves <pedro@codesourcery.com>
8821
8822 * remote.c (remote_check_symbols): Skip if the target has no
8823 execution.
8824
f1a507a1
JB
88252011-03-08 Joel Brobecker <brobecker@adacore.com>
8826
8827 * target.c (read_whatever_is_readable): Reformat comment,
8828 with a minor typo fix. Minor reformatting of the code.
8829
36073a92
YQ
88302011-03-08 Yao Qi <yao@codesourcery.com>
8831
8832 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8833 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8834 Use cached result instead of calling displaced_in_arm_mode again.
8835 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8836 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8837 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8838 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8839 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8840 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8841 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8842 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8843 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8844 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8845 (arm_catch_kernel_helper_return): Likewise.
8846 * gdb/arm-tdep.h : Update function declarations.
8847
d3f323f3 88482011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8849
e0e40094
MS
8850 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8851
0b2381f5
MS
8852 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8853
0350914a
MS
8854 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8855
69feea6f
MS
8856 * elfread.c (elf_symtab_read): Stop memory leak.
8857
e6040cbd
MS
8858 * main.c (captured_main): Fix memory leak.
8859
052874e8
AS
88602011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8861
8862 * ada-lang.c (compare_names): Call is_name_suffix with string1
8863 instead of string2.
8864
b11896a5
TT
88652011-03-07 Tom Tromey <tromey@redhat.com>
8866
8867 * xcoffread.c (xcoff_sym_fns): Update.
8868 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8869 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8870 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8871 (symbol_file_add_with_addrs_or_offsets): Likewise.
8872 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8873 * somread.c (som_sym_fns): Update.
8874 * psymtab.h (require_partial_symbols): Declare.
8875 * psymtab.c (require_partial_symbols): New function.
8876 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8877 (ALL_OBJFILE_PSYMTABS): Undef.
8878 (ALL_PSYMTABS): Move from psympriv.h.
8879 (lookup_partial_symtab, find_pc_sect_psymtab)
8880 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8881 (find_last_source_symtab_from_partial)
8882 (forget_cached_source_info_partial)
8883 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8884 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8885 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8886 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8887 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8888 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8889 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8890 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8891 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8892 psymtabs.
8893 * mipsread.c (ecoff_sym_fns): Update.
8894 * machoread.c (macho_sym_fns): Update.
8895 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8896 (read_psyms): New function.
8897 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8898 (elf_sym_fns_lazy_psyms): New global.
8899 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8900 dwarf2_build_psymtabs.
8901 * dbxread.c (aout_sym_fns): Update.
8902 * coffread.c (coff_sym_fns): Update.
8903
fda326dd
TT
89042011-03-07 Tom Tromey <tromey@redhat.com>
8905
8906 * infrun.c (print_exited_reason): Include inferior id and pid in
8907 message.
8908
aeaec162
TT
89092011-03-07 Tom Tromey <tromey@redhat.com>
8910
8911 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8912 parameter.
8913 (target_has_execution_1): Update.
8914 (target_has_execution_current): Declare.
8915 (target_has_execution): Call target_has_execution_current.
8916 (default_child_has_execution): Update.
8917 * target.c (default_child_has_execution): Add 'the_ptid'
8918 parameter.
8919 (target_has_execution_1): Likewise.
8920 (target_has_execution_current): New function.
8921 (add_target): Update.
8922 (init_dummy_target): Update.
8923 * remote-m32r-sdi.c (m32r_has_execution): New function.
8924 (init_m32r_ops): Use it.
8925 * record.c (record_core_has_execution): Now static. Add
8926 'the_ptid' parameter.
8927 * inferior.c (have_live_inferiors): Don't save current thread.
8928 Use target_has_execution_1.
8929
08e14083
YQ
89302011-03-07 Yao Qi <yao@codesourcery.com>
8931
8932 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8933
c05d19c5
JB
89342011-03-07 Joel Brobecker <brobecker@adacore.com>
8935
8936 * elfread.c (elf_symtab_read): Minor reformatting.
8937
3e6ef9e4
JB
89382011-03-07 Joel Brobecker <brobecker@adacore.com>
8939
8940 * objc-lang.c (selectors_info): Minor reformatting.
8941
dbb8534f
JB
89422011-03-07 Joel Brobecker <brobecker@adacore.com>
8943
8944 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8945
dd70cc93
JB
89462011-03-07 Joel Brobecker <brobecker@adacore.com>
8947 Michael Snyder <msnyder@vmware.com>
8948
8949 * ada-valprint.c (ada_val_print_array): Move the declaration of
8950 "byte_order" and "elttype" inside the block where these variables
8951 are actually used. Remove some special handling for the case
8952 where "elttype" and "eltlen" are null. Replace by a comment
8953 and a couple of assertion checks.
8954
b27cf2b3
MS
89552011-03-05 Michael Snyder <msnyder@vmware.com>
8956
8957 * source.c (add_path): Replace semicolon at end of block.
8958 * dwarf2expr.c (execute_stack_op): Ditto.
8959
5387a0c6
MF
89602011-03-05 Mike Frysinger <vapier@gentoo.org>
8961
8962 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8963 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8964 (bfin-*-*): Likewise.
8965
e3aa49af
MS
89662011-03-05 Michael Snyder <msnyder@vmware.com>
8967
82ae4854
MS
8968 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8969 * mdebugread.c (parse_symbol): Ditto.
8970 * parse.c (parse_exp_in_context): Ditto.
8971 * source.c (add_path): Ditto.
8972 * utils.c (gnu_debuglink_crc32): Ditto.
8973 * varobj.c (variable_language): Ditto.
8974
e3aa49af
MS
8975 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8976
154f592e
MS
89772011-03-04 Michael Snyder <msnyder@vmware.com>
8978
da3ecdc6
MS
8979 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8980
9cc89665
MS
8981 * symfile.c (simple_overlay_update): Check for null return value
8982 from lookup_minimal_symbol.
8983
154f592e
MS
8984 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8985
63ffa6ee
TJB
89862011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8987
8988 * eval.c (parse_and_eval_address_1): Remove function.
8989 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8990 instead of parse_and_eval_address_1.
8991 * value.h (parse_and_eval_address_1): Remove prototype.
8992
a17d146e
MS
89932011-03-04 Michael Snyder <msnyder@vmware.com>
8994
8995 * remote.c (putpkt_binary): Document that case stmt falls through.
8996
1a6a67de
TJB
89972011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8998
8999 * breakpointc (print_it_typical): Move NULL check from here...
9000 (print_bp_stop_message): ... to here.
9001
488919c4
MS
90022011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9003
9004 * breakpoint.c (enable_command): Use break instead of continue,
9005 and fill in a missing break.
9006 (disable_command): Ditto.
9007
1e182ce8
UW
90082011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9009
9010 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9011 (terminal_save_ours): Remove misleading comment.
9012 (inflow_inferior_data_cleanup): Free ttystate.
9013 (inflow_inferior_exit): Likewise.
9014 (copy_terminal_info): Copy ttystate.
9015
9016 * serial.c (serial_copy_tty_state): New function.
9017 * serial.h (serial_copy_tty_state): Add prototype.
9018 (struct serial_ops): Add copy_tty_state callback.
9019 * ser-base.c (ser_base_copy_tty_state): New function.
9020 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9021 * ser-go32.c (dos_copy_tty_state): New function.
9022 (dos_ops): Install copy_tty_state callback.
9023 * ser-mingw.c (_initialize_ser_windows): Likewise.
9024 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9025 * ser-unix.c (hardwire_copy_tty_state): New function.
9026 (_initialize_ser_hardwire): Install it.
9027
b2c5f112
MS
90282011-03-04 Michael Snyder <msnyder@vmware.com>
9029
2abae994
MS
9030 * breakpoint.c (create_breakpoint): Add missing break statement.
9031
7f5936f9
MS
9032 Reverting this patch:
9033 * infcall.c (call_function_by_hand): Add break statements for lint.
9034
b2c5f112
MS
9035 Reverting this patch:
9036 * cli/cli-script.c (script_from_file): Add break for lint.
9037
42b1321c
MS
90382011-03-04 Michael Snyder <msnyder@vmware.com>
9039
9040 * solib.c (reload_shared_libraries_1): Close memory leak.
9041
3e2a0cee
TT
90422011-03-03 Tom Tromey <tromey@redhat.com>
9043
9044 PR gdb/12538:
9045 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9046 DW_STRING is NULL.
9047
58397cb7
MS
90482011-03-03 Michael Snyder <msnyder@vmware.com>
9049
2e3fd767
MS
9050 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9051 fields of struct 'st' to zero.
9052
58397cb7
MS
9053 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9054 sal.pspace before calling set_current_source_symtab_and_line.
9055
ced54c8f
YQ
90562011-03-03 Yao Qi <yao@codesourcery.com>
9057
9058 * Makefile.in (configure-common): Remove. Let Makefile
9059 in dir common to rebuild itself.
9060 (common/Makefile): Likewise.
9061
3351ea09
JB
90622011-03-03 Joel Brobecker <brobecker@adacore.com>
9063
9064 * utils.c (parse_escape): Add i18n markup in error message.
9065
bf9f652a
YQ
90662011-03-03 Yao Qi <yao@codesourcery.com>
9067
9068 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9069 ARM_PC_REGNUM.
9070 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9071 (displaced_write_reg, displaced_read_reg): Likewise.
9072 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9073 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9074 (cleanup_branch): Replace magic number 14 and 15 with
9075 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9076
d42de051
MS
90772011-03-02 Michael Snyder <msnyder@vmware.com>
9078
240f9570
MS
9079 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9080
10dd8b54
MS
9081 * cli/cli-script.c (script_from_file): Add break for lint.
9082
b98bd911
MS
9083 * mdebugread.c (parse_partial_symbols): Fix indent.
9084
3494b66d
MS
9085 * target-descriptions.c (tdesc_gdb_type): No need to call
9086 xstrdup, callee saves a copy.
9087
daac021a
MS
9088 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9089
c38d16a7
MS
9090 * infcall.c (call_function_by_hand): Add break statements for lint.
9091
905b671b
MS
9092 * utils.c (parse_escape): Escape the escape char.
9093
f2eb0bc8 9094 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9095 PyList_Append fails.
9096 (gdbpy_inferiors): Error out if build_inferior_list fails.
9097
8c6a60d1
MS
9098 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9099 a function call.
9100
d42de051
MS
9101 * record.c (record_restore): Move printf to before error return.
9102
4db71c0b
YQ
91032011-03-02 Yao Qi <yao@codesourcery.com>
9104
9105 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9106 is_thumb and insn_size.
9107 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9108 on both ARM and Thumb mode.
9109 (arm_process_displaced_insn): Set is_thumb and insn_size.
9110 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9111 (arm_displaced_step_fixup): Likewise.
9112
a9dc8dcc
MS
91132011-03-01 Michael Snyder <msnyder@vmware.com>
9114
53624a93
MS
9115 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9116
77766669
MS
9117 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9118
62d5b8da
MS
9119 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9120
5e9e105f
MS
9121 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9122
dc19db01
MS
9123 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9124 with xmalloc.
9125
5ce64950
MS
9126 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9127 which shadows function parameter.
9128
a0aa2878
MS
9129 * tracepoint.c (create_tsv_from_upload): Superfluous call
9130 to xstrdup. Callee already calls xstrdup.
9131
e325fb69
MS
9132 * linespec.c (decode_line_1): Remove unnecessary null check.
9133
21cbba77
MS
9134 * tracepoint.c (scope_info): Fix mem leak, remove underused
9135 variable.
9136
63360adc
MS
9137 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9138 superfluous null check.
9139
18ea20ac 9140 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9141 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9142
d014929c
MS
9143 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9144
6e9130cf
MS
9145 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9146 be null.
9147
5f01dbc0
MS
9148 * linespec.c (decode_line_1): Check for null before dereference.
9149
d684ab85
MS
9150 * reverse.c (record_restore): Move null-check to before pointer
9151 dereference.
9152
bfffb7e3
MS
9153 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9154
a9dc8dcc
MS
9155 * objc-lang.c (selectors_info): Add explanitory comment.
9156 (classes_info): Ditto.
9157
478fd957
UW
91582011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9159
9160 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9161 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9162 versions of the trampoline. Handle Thumb vs. ARM addresses.
9163 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9164 (arm_linux_init_abi): Install it.
9165 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9166 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9167
0480cefa
MS
91682011-02-28 Michael Snyder <msnyder@vmware.com>
9169
ac50ab3b
MS
9170 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9171 a little bigger, to avoid possibility of an overflow.
9172
f63fbe86
MS
9173 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9174 buffers a little bigger, to avoid possibility of an overflow.
9175
9e91a352
MS
9176 * coffread.c (coff_getfilename): Add check to avoid overflow.
9177
f2eb0bc8 9178 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9179 avoid overflow.
9180 (classes_info): Error out on too long REGEXP.
9181
098ab512
MS
9182 * infrun.c (handle_inferior_event): Remove unused function call.
9183
bcbd1de9
MS
9184 * fork-child.c (fork_inferior): Remove ifdef'd code and
9185 unused variable.
9186
2e456570
MS
9187 * linux-thread-db.c (attach_thread): Discard unused value.
9188
14571dad
MS
9189 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9190
a9cbf802
MS
9191 * remote.c (remote_get_noisy_reply): Discard unused value.
9192 (remote_vcont_resume): Ditto.
9193 (remote_stop_ns): Ditto.
9194
5715d26e
MS
9195 * linespec.c (decode_objc): Delete unused variable.
9196
4a9bca80
MS
9197 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9198
f47fb265
MS
9199 * dwarf2read.c (add_partial_symbol): Discard unused values.
9200 (read_base_type): Delete unused variable.
9201
e81cff30
MS
9202 * dbxread.c (read_dbx_symtab): Discard unused value.
9203
262acaeb
MS
9204 * eval.c (evaluate_subexp_standard): Delete unused variable,
9205 and discard unused values.
9206
df983543
MS
9207 * infcmd.c (_initialize_infcmd): Discard unused values.
9208
89acf84d
MS
9209 * stabsread.c (rs6000_builtin_type): Missing break statement.
9210
ab8b8aca
MS
9211 * dbxread.c (process_one_symbol): Discard unused value.
9212
6b4511ab
MS
9213 * coffread.c (coff_end_symtab): Delete unused variable.
9214
e8e80198
MS
9215 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9216 (dwarf2_add_typedef): Delete unused variable.
9217 (read_namespace): Ditto.
9218 (dwarf_decode_macros): Ditto.
9219
976aa66e
MS
9220 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9221
5b92b49f
MS
9222 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9223
91e8df85
MS
9224 * p-valprint.c (pascal_val_print): Discard unused value.
9225
899500d6
MS
9226 * utils.c (nquery): Call va_end before return;
9227 (yquery): Ditto.
9228 (query): Ditto.
9229
0480cefa
MS
9230 * proc-service.c (ps_plog): Call va_end before return.
9231
fb6a3ed3
TT
92322011-02-28 Tom Tromey <tromey@redhat.com>
9233
9234 * python/python.c (gdbpy_value_cst): New global.
9235 (_initialize_python): Initialize it.
9236 * python/python-internal.h (gdbpy_value_cst): Declare.
9237 * python/py-value.c (convert_value_from_python): Use
9238 gdbpy_value_cst.
9239
c05202a1
MS
92402011-02-28 Michael Snyder <msnyder@vmware.com>
9241
e463f587
MS
9242 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9243
c38eea1a
MS
9244 * breakpoint.c (catch_syscall_completer): Free malloced list.
9245
3ef09ab5
MS
9246 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9247
8f9a01ee
MS
9248 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9249 (lval_func_check_synthetic_pointer): Ditto.
9250 (lval_func_free_closure): Fix use-after-free.
c05202a1 9251
477d0d57
TT
92522011-02-28 Tom Tromey <tromey@redhat.com>
9253
9254 * psymtab.c (expand_partial_symbol_tables): Use
9255 ALL_OBJFILE_PSYMTABS.
9256
20937029
JK
92572011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9258
9259 * objc-lang.c (selectors_info): Error on too long REGEXP.
9260
907b7f4f
MS
92612011-02-28 Michael Snyder <msnyder@vmware.com>
9262
92e96192
MS
9263 * python/py-param.c (set_parameter_value): Add missing
9264 break statement.
9265
907b7f4f
MS
9266 * linux-record.c (record_linux_system_call): Add missing
9267 break statement.
9268
12c5a436
UW
92692011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9270
9271 * breakpoint.c (print_one_breakpoint_location): Remove unused
9272 argument PRINT_ADDRESS_BITS. Update callers.
9273 (print_one_breakpoint): Likewise.
9274
170b53b2
UW
92752011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9276
9277 * breakpoint.c (wrap_indent_at_field): New function.
9278 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9279 Allocate ui_stream locally instead of using STB argument.
9280 (print_one_breakpoint_location): Update call.
9281 * ui-out.c (ui_out_query_field): New function.
9282 * ui-out.h (ui_out_query_field): Add prototype.
9283
8ab1f94d
JB
92842011-02-28 Joel Brobecker <brobecker@adacore.com>
9285
9286 From Michael Snyder <msnyder@vmware.com>
9287 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9288
7d488639
MS
92892011-02-27 Michael Snyder <msnyder@vmware.com>
9290
ae179fba
MS
9291 * objc-lang.c (selectors_info): Prevent string overrun.
9292
086dbf66
MS
9293 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9294 error in strncpy.
9295
f2eb0bc8 9296 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9297 outer scope.
9298
7d488639
MS
9299 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9300 param with a local variable of the same name.
9301
3bd0f5ef
MS
93022011-02-27 Michael Snyder <msnyder@vmware.com>
9303
9304 * value.c (value_from_history_ref): New function.
9305 * value.h (value_from_history_ref): Export.
9306 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9307 to parse value history references.
9308 * cli/cli-utils.h (get_number_trailer): Update comment.
9309
93102011-02-27 Michael Snyder <msnyder@vmware.com>
9311
9312 * inferior.c (detach_inferior_command): Use get_number_or_range.
9313 (kill_inferior_command): Ditto.
9314 (remove_inferior_command): Ditto.
9315 (initialize_inferiors): Make command names plural.
9316 Update help strings.
9317
766062f6
MS
93182011-02-27 Michael Snyder <msnyder@vmware.com>
9319
9320 * darwin-nat-info.c: Fix comment typo.
9321 * dwarf2expr.h: Ditto.
9322 * fbsd-nat.c: Ditto.
9323 * fbsd-nat.h: Ditto.
9324 * frame-unwind.h: Ditto.
9325 * frame.h: Ditto.
9326 * hppa-hpux-tdep.c: Ditto.
9327 * i386-linux-nat.c: Ditto.
9328 * linux-nat.c: Ditto.
9329 * nbsd-nat.c: Ditto.
9330 * nbsd-nat.h: Ditto.
9331 * ppc-linux-tdep.c: Ditto.
9332 * serial.c: Ditto.
9333 * ui-file.h: Ditto.
9334 * tui/tui-winsource.c: Ditto.
9335
f2c4ead5
MS
93362011-02-26 Michael Snyder <msnyder@vmware.com>
9337
86b887df
MS
9338 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9339
66fd3b1e
MS
9340 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9341
8c814cdd
MS
9342 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9343 with a local variable of the same name.
9344
6d5e094a 9345 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9346 param with a local variable of the same name.
6d5e094a 9347 (i387_supply_xsave): Ditto.
e5b3d7d6 9348
5eee517d
MS
9349 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9350 that it does not shadow a function parameter.
9351
8fbf6b93
MS
9352 * i386-nat.c (i386_length_and_rw_bits): Document that case
9353 statement is meant to fall through.
9354
cb969d61
MS
9355 * expprint.c (dump_subexp_body_standard): Document that case
9356 statement is meant to fall through.
9357
f2c4ead5
MS
9358 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9359 dead if statement. Condition can't be false.
9360
b021a221
MS
93612011-02-25 Michael Snyder <msnyder@vmware.com>
9362
9363 * arm-tdep.c: Fix typos in comments.
9364 * bsd-uthread.c: Ditto.
9365 * completer.c: Ditto.
9366 * corelow.c: Ditto.
9367 * cp-namespace.c: Ditto.
9368 * cp-support.c: Ditto.
9369 * cris-tdep.c: Ditto.
9370 * dbxread.c: Ditto.
9371 * dwarf2read.c: Ditto.
9372 * frame.h: Ditto.
9373 * gdbtypes.h: Ditto.
9374 * inferior.h: Ditto.
9375 * mdebugread.c: Ditto.
9376 * mips-tdep.c: Ditto.
9377 * ppc-linux-nat.c: Ditto.
9378 * ppc-linux-tdep.c: Ditto.
9379 * printcmd.c: Ditto.
9380 * sol-thread.c: Ditto.
9381 * solib-frv.c: Ditto.
9382 * solist.h: Ditto.
9383 * sparc64-tdep.c: Ditto.
9384 * spu-tdep.c: Ditto.
9385 * stabsread.c: Ditto.
9386 * symfile.c: Ditto.
9387 * valops.c: Ditto.
9388 * varobj.c: Ditto.
9389 * vax-nat.c: Ditto.
9390 * python/py-block.c: Ditto.
9391 * python/py-symbol.c: Ditto.
9392 * python/py-symtab.c: Ditto.
9393 * python/py-value.c: Ditto.
9394 * tui/tui-win.c: Ditto.
9395
c82c0b55
MS
93962011-02-25 Michael Snyder <msnyder@vmware.com>
9397
9398 * inferior.c (print_inferior): Accept a string instead of an int
9399 for requested_inferiors, and use get_number_or_range to parse it.
9400 (info_inferiors_command): Pass args string to print_inferior.
9401 (initialize_inferiors): Change help string for info inferiors.
9402 * inferior.h (print_inferior): Export prototype change.
9403
ee00cd23
TT
94042011-02-25 Tom Tromey <tromey@redhat.com>
9405
9406 * common/ax.def (invalid2): Set to 0x31.
9407
0502ed8c
JK
94082011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9409
9410 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9411 L and plongest.
9412 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9413 use L and plongest.
9414 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9415
2c9de912
MS
94162011-02-24 Michael Snyder <msnyder@vmware.com>
9417
9418 * Makefile.in (clean): Make clean should remove generated files
9419 observer.h and observer.inc.
9420
a04b0428
JB
94212011-02-24 Joel Brobecker <brobecker@adacore.com>
9422
9423 Revert the following patch (not approved yet):
9424 2011-02-21 Hui Zhu <teawater@gmail.com>
9425 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9426 * ax-gdb.c (gen_printf_expr_callback): New function.
9427 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9428 * ax-general.c (ax_memcpy): New function.
9429 (ax_print): Handle "printf".
9430 (ax_reqs): Ditto.
9431 * ax.h (ax_memcpy): Forward declare.
9432 * common/ax.def (invalid2): Removed.
9433 (printf): New entry.
9434 * printcmd.c (printcmd.h): New include.
9435 (string_printf): New function.
9436 (ui_printf): Removed.
9437 (printf_command): Remove static. Call string_printf.
9438 (eval_command): Call string_printf.
9439 * printcmd.h: New file.
9440 * tracepoint.c (validate_actionline,
9441 encode_actions_1): handle printf_command.
9442
2b52013f
TT
94432011-02-23 Tom Tromey <tromey@redhat.com>
9444
9445 * ax-general.c (ax_pick): Add missing newline.
9446
e5a67952
MS
94472011-02-23 Michael Snyder <msnyder@vmware.com>
9448
9449 * breakpoint.c (breakpoint_1): Change first argument from an int
9450 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9451 breakpoints rather than just one. Use new function
e5a67952
MS
9452 'number_is_in_list' to implement.
9453 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9454 (watchpoints_info): Ditto.
9455 (tracepoints_info): Ditto.
9456 (maintenance_info_breakpoints): Ditto.
9457 (_initialize_breakpoint): Update help strings to reflect the fact
9458 that these functions can now take more than one argument.
9459 * cli/cli-utils.c (number_is_in_list): New function.
9460 * cli/cli-utils.h (number_is_in_list): Export.
9461
94622011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9463
9464 * memattr.c (mem_enable_command): Use get_number_or_range.
9465 (mem_disable_command): Ditto.
9466 (mem_delete_command): Ditto.
9467 (_initialize_mem): Tweak usage message to reflect multiple
9468 arguments.
9469
6e6fbe60
DE
94702011-02-22 Doug Evans <dje@google.com>
9471
9472 Add gdb.lookup_global_symbol python function.
9473 * NEWS: Add entry.
9474 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9475 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9476 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9477
79b97fa8
TT
94782011-02-22 Tom Tromey <tromey@redhat.com>
9479
9480 * language.c (language_class_name_from_physname): Rename
9481 'curr_language' argument to 'lang'; use in body.
9482
298f437a
MS
94832011-02-22 Michael Snyder <msnyder@vmware.com>
9484
9485 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9486
b7ea3126
PA
94872011-02-22 Pedro Alves <pedro@codesourcery.com>
9488
9489 * frame-unwind.h: Fix comment to mention the this frame, not the
9490 next.
9491
58ee6d60
TT
94922011-02-22 Tom Tromey <tromey@redhat.com>
9493
9494 * symfile.c (auto_solib_limit): Remove.
9495 * symfile.h (auto_solib_limit): Remove.
9496
36238dbc
JB
94972011-02-22 Joel Brobecker <brobecker@adacore.com>
9498
9499 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9500
aea5b279
MS
95012011-02-21 Michael Snyder <msnyder@vmware.com>
9502
9503 * gdbthread.h (print_thread_info): Change prototype.
9504 * thread.c (print_thread_info): Accept char* instead of int for
9505 requested_threads argument. Use new function number_is_in_list
9506 to determine which threads to list.
9507 (info_threads_command): Pass char* to print_thread_info.
9508 * cli/cli-utils.c (number_is_in_list): New function.
9509 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9510 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9511 print_thread_info.
9512 (print_one_inferior): Ditto.
9513 (mi_cmd_list_thread_groups): Ditto.
9514
8caa75ee
JK
95152011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 * common/Makefile.in (CFLAGS): New.
9518 (COMPILE): Add $(CFLAGS).
9519
ea666128
TT
95202011-02-21 Tom Tromey <tromey@redhat.com>
9521
9522 * breakpoint.c (catch_syscall_command_1): Fix typo.
9523
e9cafbcc
TT
95242011-02-21 Tom Tromey <tromey@redhat.com>
9525
9526 * reverse.c: Include cli-utils.h.
9527 * printcmd.c: Include cli-utils.h.
9528 (string_printf): Use skip_spaces.
9529 * cli/cli-utils.h: New file.
9530 * cli/cli-utils.c: New file.
9531 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9532 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9533 * breakpoint.h (get_number, get_number_or_range): Move to
9534 cli-utils.h.
9535 * breakpoint.c: Include cli-utils.h.
9536 (get_number_trailer, get_number, get_number_or_range)
9537 (ep_skip_leading_whitespace): Move to cli-utils.c.
9538 (create_breakpoint_sal, find_condition_and_thread)
9539 (decode_static_tracepoint_spec, watch_command_1)
9540 (watch_maybe_just_location, ep_parse_optional_if_clause)
9541 (catch_fork_command_1, catch_exec_command_1)
9542 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9543 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9544 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9545 (HFILES_NO_SRCDIR): Add cli-utils.h.
9546 (cli-utils.o): New target.
9547
f67fd822
PM
95482011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9549
9550 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9551 before calling discard_all_inferiors.
9552
c9def01d
UW
95532011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9554
9555 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9556 (struct builtin_opencl_type): Remove.
9557 (builtin_opencl_type): Change return type to "struct type **".
9558 (lookup_opencl_vector_type): Update caller.
9559 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9560 (build_opencl_types): Install plain array of "struct type *"
9561 instead of "struct builtin_opencl_type".
9562
e3039479
UW
95632011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9564 Ulrich Weigand <uweigand@de.ibm.com>
9565
9566 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9567 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9568 (struct arm_linux_hwbp_cap): New type.
9569 (arm_linux_get_hwbp_cap): New function.
9570 (arm_linux_get_hw_breakpoint_count): Likewise.
9571 (arm_linux_get_hw_watchpoint_count): Likewise.
9572 (arm_linux_can_use_hw_breakpoint): Likewise.
9573 (arm_hwbp_type): New type.
9574 (arm_hwbp_control_t): Likewise.
9575 (struct arm_linux_hw_breakpoint): Likewise.
9576 (struct arm_linux_thread_points): Likewise.
9577 (arm_threads): New global variable.
9578 (arm_linux_find_breakpoints_by_tid): New function.
9579 (arm_hwbp_control_initialize): Likewise.
9580 (arm_hwbp_control_is_enabled): Likewise.
9581 (arm_hwbp_control_disable): Likewise.
9582 (arm_linux_hw_breakpoint_initialize): Likewise.
9583 (arm_linux_get_hwbp_type): Likewise.
9584 (arm_linux_hw_watchpoint_initialize): Likewise.
9585 (arm_linux_hw_breakpoint_equal): Likewise.
9586 (arm_linux_insert_hw_breakpoint1): Likewise.
9587 (arm_linux_remove_hw_breakpoint1): Likewise.
9588 (arm_linux_insert_hw_breakpoint): Likewise.
9589 (arm_linux_remove_hw_breakpoint): Likewise.
9590 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9591 (arm_linux_insert_watchpoint): Likewise.
9592 (arm_linux_remove_watchpoint): Likewise.
9593 (arm_linux_stopped_data_address): Likewise.
9594 (arm_linux_stopped_by_watchpoint): Likewise.
9595 (arm_linux_watchpoint_addr_within_range): Likewise.
9596 (arm_linux_new_thread): Likewise.
9597 (arm_linux_thread_exit): Likewise.
9598 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9599 related target callbacks. Register arm_linux_new_thread and
9600 arm_linux_thread_exit.
9601 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9602 * arm-tdep.c (arm_pc_is_thumb): Make global.
9603 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9604
b5db5dfc
UW
96052011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9606
9607 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9608 per-frame locations while within a function epilogue.
9609
e25b2cfa
PM
96102011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9611
9612 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9613 to GNU coding standards.
9614
4af53f97
PM
96152011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9616
9617 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9618 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9619 (ser_windows_close): Only call CancelIo if function exists.
9620 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9621 to check for existence of CancelIo function in kernel32 DLL.
9622
d0e92d82
HZ
96232011-02-21 Hui Zhu <teawater@gmail.com>
9624
9625 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9626 * ax-gdb.c (gen_printf_expr_callback): New function.
9627 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9628 * ax-general.c (ax_memcpy): New function.
9629 (ax_print): Handle "printf".
9630 (ax_reqs): Ditto.
9631 * ax.h (ax_memcpy): Forward declare.
9632 * common/ax.def (invalid2): Removed.
9633 (printf): New entry.
9634 * printcmd.c (printcmd.h): New include.
9635 (string_printf): New function.
9636 (ui_printf): Removed.
9637 (printf_command): Remove static. Call string_printf.
9638 (eval_command): Call string_printf.
9639 * printcmd.h: New file.
9640 * tracepoint.c (validate_actionline,
9641 encode_actions_1): handle printf_command.
9642
7d357efd
MS
96432011-02-19 Michael Snyder <msnyder@vmware.com>
9644
9645 * reverse.c (delete_one_bookmark): Argument is now bookmark
9646 id rather than pointer to bookmark struct.
9647 (delete_bookmark_command): Use get_number_or_range.
9648 (goto_bookmark_command): Parse with get_number instead of strtoul.
9649 (bookmark_1): New function. Print info for one bookmark.
9650 (bookmarks_info): Use get_number_or_range and bookmark_1.
9651
7a45ebd7
MS
96522011-02-18 Michael Snyder <msnyder@vmware.com>
9653
f2eb0bc8 9654 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9655 get_number_or_range.
65ebfb52 9656 (thread_apply_command): Ditto.
7a45ebd7 9657
94d5e490
TT
96582011-02-18 Tom Tromey <tromey@redhat.com>
9659
9660 * common/ax.def: New file.
9661 * ax.h (enum agent_op): Use ax.def.
9662 * ax-general.c (aop_map): Use ax.def.
9663
c7f96d2b
TT
96642011-02-18 Tom Tromey <tromey@redhat.com>
9665
9666 * ax-general.c (aop_map): Add pick and rot.
9667 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9668 <DW_OP_rot>: Implement.
9669 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9670 (ax_pick): Declare.
9671 * ax-general.c (ax_pick): New function.
9672
66694b75
TT
96732011-02-18 Tom Tromey <tromey@redhat.com>
9674
9675 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9676
eeaafae2
JK
96772011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9678 Tom Tromey <tromey@redhat.com>
9679
9680 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9681 make_symbol_overload_list_block with NULL BLOCK.
9682 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9683
3c3fe74c
PA
96842011-02-18 Pedro Alves <pedro@codesourcery.com>
9685
9686 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9687 * breakpoint.h (get_number_or_range): Declare.
9688 * printcmd.c (ALL_DISPLAYS): Declare.
9689 (delete_display): Reimplement taking a display pointer.
9690 (undisplay_command): Accept a range of displays to delete, using
9691 get_number_or_range.
9692
13163d80
PM
96932011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9694
9695 * c-valprint.c (c_val_print): Add embedded_offset to address
9696 for arrays of unspecified length.
9697 * p-valprint.c (pascal_val_print): Likewise.
9698
b434a28f
YQ
96992011-02-18 Yao Qi <yao@codesourcery.com>
9700
9701 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9702 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9703 (thumb_process_displaced_insn): New.
9704 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9705 call to arm_process_displaced_insn.
9706 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9707
9f6f94ff
TT
97082011-02-17 Tom Tromey <tromey@redhat.com>
9709
9710 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9711 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9712 compile_dwarf_to_ax. No longer static. Call
9713 dwarf2_compile_cfa_to_ax.
9714 (locexpr_tracepoint_var_ref): Update.
9715 (loclist_tracepoint_var_ref): Update.
9716 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9717 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9718 argument; add 'gdbarch' and 'pc'.
9719 (dwarf2_compile_cfa_to_ax): New function.
9720 (dwarf2_frame_cache): Update.
9721
e67ad678
JB
97222011-02-17 Joel Brobecker <brobecker@adacore.com>
9723
9724 * ada-lang.c (ada_type_of_array): Fix the size of the array
9725 in the case of an unconstrained packed array.
9726
946ebb0d
YQ
97272011-02-17 Yao Qi <yao@codesourcery.com>
9728
9729 * common/Makefile.in: Add more targets for make.
9730
1ba1b353
TT
97312011-02-16 Tom Tromey <tromey@redhat.com>
9732
9733 * dwarf2loc.c (unimplemented): Fix typo.
9734
b1bfef65
TT
97352011-02-16 Tom Tromey <tromey@redhat.com>
9736
9737 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9738 (compile_dwarf_to_ax) <default>: Use unimplemented.
9739 <DW_OP_deref>: Update.
9740 (disassemble_dwarf_expression): Update.
9741 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9742 (decode_locdesc): Update.
9743 * dwarf2expr.h (dwarf_stack_op_name): Update.
9744
5f1e6f19
TT
97452011-02-16 Tom Tromey <tromey@redhat.com>
9746
9747 * ax.h (struct aop_map) <name>: Now const.
9748
a0c78a73
PA
97492011-02-16 Tom Tromey <tromey@redhat.com>
9750
9751 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9752 than axs_rvalue.
9753
946ebb0d 97542011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9755
9756 * infrun.c (get_displaced_step_closure_by_addr): New.
9757 * inferior.h: Declare it.
9758 * arm-tdep.c: (arm_pc_is_thumb): Call
9759 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9760 returns non-NULL.
9761
08807d5a
PA
97622011-02-16 Pedro Alves <pedro@codesourcery.com>
9763 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 gdb/
9766 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9767
29976f3f
PA
97682011-02-16 Pedro Alves <pedro@codesourcery.com>
9769 Jan Kratochvil <jan.kratochvil@redhat.com>
9770
9771 * value.c (value_contents_copy_raw): Extend describing comment.
9772 Assert that the destination contents we're overwriting are wholly
9773 available.
fb68ae73 9774 (value_contents_copy): Extend describing comment.
29976f3f 9775
cd24cfaa
PA
97762011-02-16 Pedro Alves <pedro@codesourcery.com>
9777 Jan Kratochvil <jan.kratochvil@redhat.com>
9778
9779 * value.c (value_available_contents_eq): Remove redundant local
9780 variables. Fix available contents comparision.
9781 * value.h (value_available_contents_eq): Extend describing
9782 comment.
9783
60bbf338
YQ
97842011-02-16 Yao Qi <yao@codesourcery.com>
9785
9786 * thread.c (info_threads_command): Add missing i18n markup and remove
9787 trailing newline.
9788
17450429
PP
97892011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9790
9791 * breakpoint.c (longjmp_names): New variable.
9792 (struct breakpoint_objfile_data): New type.
9793 (breakpoint_objfile_key): New variable.
9794 (msym_not_found): New variable.
9795 (msym_not_found_p): New predicate.
9796 (get_breakpoint_objfile_data): New function.
9797 (create_overlay_event_breakpoint): Check per-objfile cache for
9798 symbols first.
9799 (create_longjmp_master_breakpoint): Likewise.
9800 (create_std_terminate_master_breakpoint): Likewise.
9801 (create_exception_master_breakpoint): Likewise.
9802 (_initialize_breakpoint): Register per-objfile data key.
9803
af02033e
PP
98042011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9805
9806 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9807 parameter value.
9808 (create_longjmp_master_breakpoint): Loop over longjmp names.
9809 (create_std_terminate_master_breakpoint): Const-propagate parameter
9810 value.
9811 (update_breakpoints_after_exec): Adjust.
9812 (breakpoint_re_set): Adjust.
9813
60f98dde
MS
98142011-02-15 Michael Snyder <msnyder@vmware.com>
9815
cdf99611
MS
9816 * thread.c (info_threads_command): Process arg as thread id,
9817 or list of thread ids.
9818 (thread_find_command): New command.
9819 (_initialize_thread): Document argument for info threads.
9820 Document 'thread find' command.
9821 * NEWS: Document new command "thread find".
60f98dde 9822
0feedb2c
JK
98232011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9824
9825 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9826 * aclocal.m4: Regenerated with aclocal-1.11.1.
9827 * common/configure: Regenerate with autoconf-2.64.
9828
648cd113
KW
98292011-02-15 Ken Werner <ken.werner@de.ibm.com>
9830
9831 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9832 bool data type to a size of one byte.
9833
5657161f
PA
98342011-02-15 Pedro Alves <pedro@codesourcery.com>
9835 Jan Kratochvil <jan.kratochvil@redhat.com>
9836
9837 * target.c (memory_xfer_live_readonly_partial): Document where to
9838 look for interface description.
9839
494e194e
YQ
98402011-02-15 Yao Qi <yao@codesourcery.com>
9841
9842 PR tdep/12352
9843 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9844 order to store PC value on stack instead of text section.
9845
d9492458
TJB
98462011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9847
9848 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9849 the EFP register set size.
9850 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9851 data from the VMX register.
9852 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9853 and write data from/to the VMX register.
9854
cdf99611
MS
98552011-02-14 Michael Snyder <msnyder@vmware.com>
9856
9857 * command.h (enum command_class): New class 'no_set_class', for
9858 "show" commands without a corresponding "set" command.
9859 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9860 * copying.c (_initialize_copying): Ditto for "show copying" and
9861 "show warranty".
9862 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9863 "show version".
9864 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9865 which there is no corresponding "set" command (eg. "show copying").
9866
424447ee
PA
98672011-02-14 Pedro Alves <pedro@codesourcery.com>
9868 Jan Kratochvil <jan.kratochvil@redhat.com>
9869
9870 * exec.c (section_table_available_memory): Change `len' parameter
9871 type to ULONGEST.
9872 * exec.h (section_table_available_memory): Ditto.
9873 * value.h (read_value_memory): Rename the `offset' parameter to
9874 `embedded_offset'.
9875
c0f61f9c 98762011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9877 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9878
9879 * memrange.c (compare_mem_ranges): Mention sort order in
9880 describing comment.
9881 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9882 * tracepoint.c (traceframe_available_memory): Extend comment to
9883 mention what happens to RESULT when the target does not support
9884 the query.
9885
6bfc80c7
PA
98862011-02-14 Pedro Alves <pedro@codesourcery.com>
9887 Jan Kratochvil <jan.kratochvil@redhat.com>
9888
9889 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9890 range.
9891
e7303042
PA
98922011-02-14 Pedro Alves <pedro@codesourcery.com>
9893
9894 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9895 No longer handle NULL values.
9896
8af8e3bc
PA
98972011-02-14 Pedro Alves <pedro@codesourcery.com>
9898
9899 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9900 * value.c: Include "exceptions.h".
9901 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9902 generic error.
9903 * cp-abi.c: Include gdb_assert.h.
9904 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9905 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9906 errors.
9907 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9908 parameters. No longer returns -1 on error.
9909 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9910 `val' parameters.
9911 * cp-valprint.c: Include exceptions.h.
9912 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9913 the baseclass_offset. Handle unavailable base classes. Use
9914 val_print_invalid_address.
9915 * p-valprint.c: Include exceptions.h.
9916 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9917 when fetching the baseclass_offset. No longer expect
9918 baseclass_offset returning -1. Handle unavailable base classes.
9919 Use val_print_invalid_address.
9920 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9921 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9922 `embedded_offset' and `val' parameters. Adjust.
9923 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9924 parameter, and change its type to gdb_byte pointer. Add
9925 `embedded_offset' and `val' parameters. Adjust. No longer expect
9926 baseclass_offset returning -1.
9927 (value_dynamic_cast): Use value_contents_for_printing rather than
9928 value_contents. Adjust.
9929 (search_struct_field): No longer expect baseclass_offset returning
9930 -1.
9931 (search_struct_method): If reading memory from the target is
9932 necessary, wrap it in a new value to pass to baseclass_offset. No
9933 longer expect baseclass_offset returning -1.
9934 (find_method_list): No longer expect baseclass_offset returning
9935 -1. Use value_contents_for_printing rather than value_contents.
9936 * valprint.c (val_print_invalid_address): New function.
9937 * valprint.h (val_print_invalid_address): Declare.
9938 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9939 and `val' parameters. No longer expect baseclass_offset returning
9940 -1. Adjust.
9941 * gnu-v2-abi.c: Include "exceptions.h".
9942 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9943 parameters. Handle unavailable memory. Recurse through
9944 gnuv2_baseclass_offset directly, rather than through
9945 baseclass_offset. No longer returns -1 on not found, instead
9946 throw an error.
9947 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9948 `val' parameters. Adjust.
9949
1b28d0b3
PA
99502011-02-14 Pedro Alves <pedro@codesourcery.com>
9951
9952 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9953 almost but not quite adjacent.
9954
ec0a52e1
PA
99552011-02-14 Pedro Alves <pedro@codesourcery.com>
9956
9957 * value.h (value_entirely_available): Declare.
9958 * value.c (value_entirely_available): New function.
9959 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9960 real type if the pointer is unavailable.
9961
24e6bcee
PA
99622011-02-14 Pedro Alves <pedro@codesourcery.com>
9963
9964 * valops.c (value_repeat): Use read_value_memory instead of
9965 read_memory.
9966
39d37385
PA
99672011-02-14 Pedro Alves <pedro@codesourcery.com>
9968
9969 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9970 * value.c (value_contents_copy_raw, value_contents_copy): New
9971 functions.
9972 (value_primitive_field): Use value_contents_copy_raw instead of
9973 memcpy.
9974 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9975 memcpy.
9976 (value_array, value_slice): Ditto.
9977 * valarith.c (value_subscripted_rvalue): Use
9978 value_contents_copy_raw instead of memcpy.
9979
a3d34bf4
PA
99802011-02-14 Pedro Alves <pedro@codesourcery.com>
9981
9982 <unavailable> references.
9983
9984 * valops.c (get_value_at): Use value_from_contents_and_address,
9985 avoiding read_memory.
9986
9fc6d940
PA
99872011-02-14 Pedro Alves <pedro@codesourcery.com>
9988
9989 * c-valprint.c (c_val_print): Print a string with unavailable
9990 contents as an array.
9991
5467c6c8
PA
99922011-02-14 Pedro Alves <pedro@codesourcery.com>
9993
9994 * value.h (unpack_bits_as_long): Delete declaration.
9995 (unpack_value_bits_as_long): Declare.
9996 (unpack_value_field_as_long): Declare.
9997 (value_field_bitfield): Declare.
9998 * value.c (unpack_bits_as_long): Rename to...
9999 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10000 value parameters. Return the extracted result in a new output
10001 parameter. If the value contents are unavailable, return false,
10002 otherwise return true.
10003 (unpack_value_bits_as_long): New.
10004 (unpack_field_as_long): Rename to...
10005 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10006 Add embedded_offset and value parameters. Return the extracted
10007 result in a new output parameter. If the value contents are
10008 unavailable, return false, otherwise return true.
10009 (unpack_value_field_as_long): New.
10010 (unpack_field_as_long_1): New.
10011 (unpack_field_as_long): Reimplement as wrapper around
10012 unpack_value_field_as_long_1.
10013 (value_field_bitfield): New function.
10014 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10015 unpack_value_bits_as_long. Mark the value as unavailable, if it
10016 is unavailable.
10017 * jv-valprint.c (java_print_value_fields): Use
10018 value_field_bitfield.
10019 * p-valprint.c (pascal_object_print_value_fields): Use
10020 value_field_bitfield.
10021 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10022
3158c6ed
PA
100232011-02-14 Pedro Alves <pedro@codesourcery.com>
10024
10025 * value.c (get_internalvar_integer): Also return the int value of
10026 TYPE_CODE_INT INTERNALVAR_VALUE values.
10027 (set_internalvar): Don't special case TYPE_CODE_INT.
10028
9fbdca0d
PA
100292011-02-14 Pedro Alves <pedro@codesourcery.com>
10030
10031 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10032 INTERNALVAR_POINTER.
10033 <pointer>: Delete.
10034 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10035 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10036 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10037
c8c1c22f
PA
100382011-02-14 Pedro Alves <pedro@codesourcery.com>
10039
10040 * value.h (value_available_contents_eq): Declare.
10041 * value.c (find_first_range_overlap): New function.
10042 (value_available_contents_eq): New function.
10043 * valprint.c (val_print_array_elements): Use
10044 value_available_contents_eq.
10045 * ada-valprint.c (val_print_packed_array_elements): Use
10046 value_available_contents_eq.
10047 * jv-valprint.c (java_value_print): Use
10048 value_available_contents_eq.
10049
e6e4e701
PA
100502011-02-14 Pedro Alves <pedro@codesourcery.com>
10051
10052 * target.c (target_read_live_memory): New function.
10053 (memory_xfer_live_readonly_partial): New.
10054 (memory_xfer_partial): If reading from a traceframe, fallback to
10055 reading unavailable read-only memory from read-only regions of
10056 live target memory.
10057 * tracepoint.c (disconnect_tracing): Adjust.
10058 (set_current_traceframe): New, factored out from
10059 set_traceframe_number.
10060 (set_traceframe_number): Reimplement to only change the traceframe
10061 number on the GDB side.
10062 (do_restore_current_traceframe_cleanup): Adjust.
10063 (make_cleanup_restore_traceframe_number): New.
10064 (cur_traceframe_number): New global.
10065 (tfile_open): Set cur_traceframe_number to no traceframe.
10066 (set_tfile_traceframe): New function.
10067 (tfile_trace_find): If looking up a traceframe using any method
10068 other than by number, make sure the current tfile traceframe
10069 matches gdb's current traceframe. Update the current tfile
10070 traceframe if the lookup succeeded.
10071 (tfile_fetch_registers, tfile_xfer_partial)
10072 (tfile_get_trace_state_variable_value): Make sure the remote
10073 traceframe matches gdb's current traceframe.
10074 * remote.c (remote_traceframe_number): New global.
10075 (remote_open_1): Set it to -1.
10076 (set_remote_traceframe): New function.
10077 (remote_fetch_registers, remote_store_registers)
10078 (remote_xfer_memory, remote_xfer_partial)
10079 (remote_get_trace_state_variable_value): Make sure the remote
10080 traceframe matches gdb's current traceframe.
10081 (remote_trace_find): If looking up a traceframe using any method
10082 other than by number, make sure the current remote traceframe
10083 matches gdb's current traceframe. Update the current remote
10084 traceframe if the lookup succeeded.
10085 * infrun.c (fetch_inferior_event): Adjust.
10086 * tracepoint.h (set_current_traceframe): Declare.
10087 (get_traceframe_number, set_traceframe_number): Add describing
10088 comments.
10089
e6ca34fc
PA
100902011-02-14 Pedro Alves <pedro@codesourcery.com>
10091
10092 Mark pieces of values as unavailable if the corresponding memory
10093 is unavailable.
10094
10095 * valops.c: Include tracepoint.h.
10096 (value_fetch_lazy): Use read_value_memory.
10097 (read_value_memory): New.
10098 * value.h (read_value_memory): Declare.
10099 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10100 * exec.c (section_table_available_memory): New function.
10101 * exec.h (section_table_available_memory): Declare.
10102
2a7498d8
PA
101032011-02-14 Pedro Alves <pedro@codesourcery.com>
10104
10105 * Makefile.in (SFILES): Add memrange.c.
10106 (HFILES_NO_SRCDIR): Add memrange.h.
10107 (COMMON_OBS): Add memrange.o.
10108 * memrange.c: New file.
10109 * memrange.h: New file.
10110 * tracepoint.c: Include memrange.h.
10111 (struct mem_range): Delete.
10112 (mem_range_s): Delete.
10113 (traceframe_available_memory): New function.
10114 * tracepoint.h (traceframe_available_memory): Declare.
10115
b3b9301e
PA
101162011-02-14 Pedro Alves <pedro@codesourcery.com>
10117
10118 * target.h (struct traceframe_info): Forward declare.
10119 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10120 (struct target_ops) <to_traceframe_info>: New field.
10121 (target_traceframe_info): New.
10122 * target.c (update_current_target): Inherit and default
10123 to_traceframe_info.
10124 * remote.c (PACKET_qXfer_traceframe_info): New.
10125 (remote_protocol_features): Register qXfer:traceframe-info:read.
10126 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10127 (remote_traceframe_info): New.
10128 (init_remote_ops): Install it.
10129 (_initialize_remote): Install "set/show remote traceframe-info"
10130 commands.
10131 * tracepoint.h (parse_traceframe_info): Declare.
10132 * tracepoint.c (struct mem_range): New.
10133 (mem_range_s): New typedef.
10134 (struct traceframe_info): New.
10135 (traceframe_info): New global.
10136 (free_traceframe_info): New function.
10137 (clear_traceframe_info): New function.
10138 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10139 info.
10140 (build_traceframe_info): New function.
10141 (tfile_traceframe_info): New function.
10142 (init_tfile_ops): Install tfile_traceframe_info.
10143 (traceframe_info_start_memory, free_result): New functions.
10144 (memory_attributes, traceframe_info_elements): New globals.
10145 (parse_traceframe_info, get_traceframe_info): New functions.
10146 * features/traceframe-info.dtd: New file.
10147 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10148
4e07d55f
PA
101492011-02-14 Pedro Alves <pedro@codesourcery.com>
10150
10151 Base support for <unavailable> value contents.
10152
4e07d55f
PA
10153 * value.h (value_bytes_available): Declare.
10154 (mark_value_bytes_unavailable): Declare.
10155 * value.c (struct range): New struct.
10156 (range_s): New typedef.
10157 (ranges_overlap): New function.
10158 (range_lessthan): New function.
10159 (ranges_contain_p): New function.
10160 (struct value) <unavailable>: New field.
10161 (value_bytes_available): New function.
10162 (mark_value_bytes_unavailable): New function.
10163 (require_not_optimized_out): Constify parameter.
10164 (require_available): New function.
10165 (value_contents_all, value_contents): Require all bytes be
10166 available.
10167 (value_free): Free `unavailable'.
10168 (value_copy): Copy `unavailable'.
10169 * valprint.h (val_print_unavailable): Declare.
10170 * valprint.c (valprint_check_validity): Rename `offset' parameter
10171 to `embedded_offset'. If printing a scalar, check whether the
10172 value chunk is available.
10173 (val_print_unavailable): New.
10174 (val_print_scalar_formatted): Check whether the value is
10175 available.
10176 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10177 pretty-printing unavailable values.
10178
bc9a5551
JK
101792011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10182 * c-typeprint.c (c_type_print_args): Update the function comment. New
10183 variable param_type, initialize it. Remove const/volatile qualifiers
10184 for language_cplus and !show_artificial. Use param_type.
10185
93b55aa1
JK
101862011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10187
10188 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10189 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10190 * symtab.h (struct symtab) <next>: Comment extension.
10191
181d9476
YQ
101922011-02-12 Yao Qi <yao@codesourcery.com>
10193
10194 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10195
b708a5c7
JK
101962011-02-11 Yao Qi <yao@codesourcery.com>
10197
10198 * common/Makefile.in: Add copyright header.
10199
c5187ac6
PA
102002011-02-11 Pedro Alves <pedro@codesourcery.com>
10201
10202 * infrun.c (proceed): Move switching out and in of tfind mode from
10203 here ...
10204 (fetch_inferior_event): ... to here.
10205
4f3e6fb7
YQ
102062011-02-11 Yao Qi <yao@codesourcery.com>
10207
10208 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10209 libcommon.a.
10210 * configure.ac: Add common to sub dir.
10211 * configure: Regenerate.
10212
b708a5c7
JK
102132011-02-11 Yao Qi <yao@codesourcery.com>
10214
10215 Build libcommon.a.
10216
10217 * common/Makefile.in: New.
10218 * common/configure.ac: New.
10219 * common/aclocal.m4: New.
10220 * common/configure: Generate.
10221
2287cc7e
PA
102222011-02-10 Pedro Alves <pedro@codesourcery.com>
10223
10224 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10225 side of the parenthesis.
10226
10227 Merge from GCC:
10228 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10229 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10230
fd62cb89
MS
102312011-02-08 Michael Snyder <msnyder@vmware.com>
10232
10233 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10234
56d2815c
JK
102352011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10236
10237 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10238 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10239 psubd and paddd.
10240
4f7d61a8
JK
102412011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 PR 12361.
10244 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10245 phsubsw.
10246 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10247 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10248
54fcddd0
UW
102492011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10250
10251 * dwarf2read.c (read_subroutine_type): Set special calling
10252 convention flag for functions compiled by IBM XL C for OpenCL.
10253 * ppc-sysv-tdep.c: Include "dwarf2.h"
10254 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10255 calling convention.
10256 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10257 IBM OpenCL vector types calling convention.
10258 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10259 (ppc_sysv_abi_broken_return_value): Likewise.
10260 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10261 types calling convention.
10262 (ppc64_sysv_abi_return_value): Likewise.
10263 * spu-tdep.c: Include "dwarf2.h"
10264 (spu_return_value): Implement IBM OpenCL vector types calling
10265 convention.
10266
d6dafb7c
UW
102672011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10268
10269 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10270 correct ABI for AltiVec vector arguments.
10271
32b72a42
PA
102722011-02-07 Pedro Alves <pedro@codesourcery.com>
10273
10274 * valprint.c (val_print): Extend comment.
10275 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10276 interface explanation to val_print.
10277 (ada_val_print_array): Adjust comment to current interface.
10278 (print_field_values): Adjust comment to current interface.
10279 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10280 explanation to val_print.
10281 * f-valprint.c (f_val_print): Ditto.
10282 * jv-valprint.c (java_val_print): Ditto.
10283 * m2-valprint.c (m2_val_print): Ditto.
10284 * p-valprint.c (pascal_val_print): Ditto.
10285
9998af43
TJB
102862011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10287
10288 * breakpoint.c (parse_breakpoint_sals): Fix description.
10289
505500db 102902011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10291 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10292
10293 * python/py-inferior.c (python_on_normal_stop): New function.
10294 (python_on_resume): New function.
10295 (python_inferior_exit): New function.
10296 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10297 inferior_exit observers.
10298 * python/py-evtregistry.c: New file.
10299 * python/py-threadevent.c : New file.
10300 * python/py-event.c: New file.
10301 * python/py-evts.c: New file.
10302 * python/py-continueevent.c: New file.
10303 * python/py-bpevent.c: New file.
10304 * python/py-signalevent.c: New file.
10305 * python/py-exetiedevent.c: New file.
10306 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10307 Move struct breakpoint_object from here...
10308 * python/python-internal.h: ... to here.
10309 * python/py-event.h: New file.
10310 * python/py-events.h: New file.
10311 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10312 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10313 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10314 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10315 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10316 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10317 Add build rules for all the above.
10318
9e0ac564
TT
103192011-02-04 Tom Tromey <tromey@redhat.com>
10320
10321 * dwarf2read.c (dwarf2_section_empty_p): New function.
10322 (dwarf2_read_section): Use dwarf2_section_empty_p.
10323 (dwarf2_section_size): New function.
10324 (dwarf2_get_section_info): Unconditionally read section.
10325 (dwarf2_read_index): Use dwarf2_section_empty_p.
10326 (partial_read_comp_unit_head): Use dwarf2_section_size.
10327 (dwarf2_symbol_mark_computed): Likewise.
10328
eee5b35e
DD
103292011-02-04 David Daney <ddaney@caviumnetworks.com>
10330
10331 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10332
385203ed
DD
103332011-02-04 David Daney <ddaney@caviumnetworks.com>
10334
10335 * mips-linux-tdep.c: Include xml-syscall.h.
10336 (mips_linux_get_syscall_number): New function.
10337 (mips_linux_init_abi): Add calls to
10338 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10339 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10340 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10341 * syscalls/mips-n32-linux.xml: New file.
10342 * syscalls/mips-n64-linux.xml: New file.
10343 * syscalls/mips-o32-linux.xml: New file.
10344
9277c30c
UW
103452011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10346
10347 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10348 Complain about inverted range entries.
10349 (dwarf2_record_block_ranges): Likewise.
10350
a3be7890
TJB
103512011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10352
10353 Fix some typos.
10354 * breakpoint.c (update_watchpoint): Fix name of the
10355 update_global_location_list function.
10356 (print_one_breakpoint): Fix typo.
10357 (_initialize_breakpoint): Remove extra space in hbreak help
10358 string.
10359 * breakpoint.h (struct bp_location) <length>: Fix field
10360 description.
10361
041274d8
PA
103622011-02-04 Pedro Alves <pedro@codesourcery.com>
10363
10364 * regcache.c (registers_changed_ptid): Don't explictly always
10365 clear `current_regcache'. Only clear current_thread_ptid and
10366 current_thread_arch when PTID matches. Only reinit the frame
10367 cache if PTID matches the current inferior_ptid. Move alloca(0)
10368 call to ...
10369 (registers_changed): ... here.
10370
c1c2ab58
UW
103712011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10372
10373 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10374 starts with __stack_chk_guard as stack guard symbol.
10375
9011945e
AB
103762011-02-03 Andrew Burgess <aburgess@broadcom.com>
10377
10378 * disasm.c (compare_lines): Handle the end of sequence markers
10379 within the line table to better support disassembling over
10380 compilation unit boundaries.
10381
e0634ccf
UW
103822011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10383
10384 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10385 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10386 implementation even if no symbols are available.
10387 (thumb_analyze_prologue): Update call to skip_prologue_function.
10388 (arm_analyze_prologue): Likewise.
10389
0e9e9abd
UW
103902011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10391
10392 * arm-tdep.c: Include "observer.h".
10393 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10394 (arm_exidx_data_key): New static variable.
10395 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10396 (struct arm_exidx_data): Likewise.
10397 (arm_exidx_data_free): New function.
10398 (arm_compare_exidx_entries): Likewise.
10399 (arm_obj_section_from_vma): Likewise.
10400 (arm_exidx_new_objfile): Likewise.
10401 (arm_find_exidx_entry): Likewise.
10402 (arm_exidx_fill_cache): Likewise.
10403 (arm_exidx_unwind_sniffer): Likewise.
10404 (arm_exidx_unwind): New global variable.
10405 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10406 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10407 observer. Register arm_exidx_data_key as objfile data.
10408
2e9e421f
UW
104092011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10410
10411 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10412 due to accessing uninitialized variable. Fix indentation.
10413
580688f3
PA
104142011-02-02 Pedro Alves <pedro@codesourcery.com>
10415
10416 * c-valprint.c (c_value_print): When doing virtual base pointer
10417 adjustment, create a new value with adjusted contents rather than
10418 changing the contents of the value being printed (and getting it
10419 wrong).
10420
3d2c1d41
PA
104212011-02-02 Pedro Alves <pedro@codesourcery.com>
10422
10423 * xml-support.c (xml_find_attribute): New.
10424 (xinclude_start_include): Use it.
10425 * xml-support.h (xml_find_attribute): Declare.
10426 * memory-map.c (memory_map_start_memory)
10427 (memory_map_start_property): Use xml_find_attribute.
10428 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10429 xml_find_attribute.
10430 * remote.c (start_thread): Use xml_find_attribute.
10431 * solib-target.c (library_list_start_segment)
10432 (library_list_start_section, library_list_start_library)
10433 (library_list_start_list): Use xml_find_attribute.
10434 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10435 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10436 (tdesc_start_field): Use xml_find_attribute.
10437
0af3e2db
UW
104382011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10439
10440 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10441 (BUILD_OCL_VTYPES): Update.
10442
c1039e3c
JB
104432011-02-02 Joel Brobecker <brobecker@adacore.com>
10444
10445 * configure.ac: Work around non-GNU sed limitation when computing
10446 python version number.
10447 * configure: Regenerate.
10448
600ea1be
JK
104492011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 Fix debug printing of TYPE_INSTANCE.
10452 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10453 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10454
56c12414
JK
104552011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10456
10457 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10458 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10459 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10460 * ada-operator.inc: Rename the file to ...
10461 * ada-operator.def: ... here, wrap all the entries by macro OP.
10462 * expprint.c (op_name_standard): Remove all the entries. Include
10463 "std-operator.def" instead.
10464 * expression.h (enum exp_opcode): Include "std-operator.def" and
10465 "ada-operator.def". Move all the entries ...
10466 * std-operator.def: ... here, wrap all the entries by macro OP.
10467
c52b559d
PP
104682011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10469
10470 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10471 * breakpoint.c (remove_jit_event_breakpoints): New function.
10472 * jit.c (jit_descriptor_addr): Delete.
10473 (registering_code): Delete.
10474 (clear_int): Delete.
10475 (jit_inferior_data): New variable.
10476 (struct jit_inferior_data): New type.
10477 (get_jit_inferior_data): New function.
10478 (jit_inferior_data_cleanup): New function.
10479 (jit_read_descriptor): Adjust.
10480 (jit_register_code): Adjust.
10481 (jit_breakpoint_re_set_internal): New function; move code here ...
10482 (jit_inferior_init): ... from here.
10483 (jit_breakpoint_re_set): Adjust.
10484 (jit_reset_inferior_data_and_breakpoints): New function.
10485 (jit_inferior_created_observer): Adjust.
10486 (jit_inferior_exit_hook): Adjust.
10487 (jit_executable_changed_observer): New function.
10488 (jit_event_handler): Adjust.
10489 (_initialize_jit): Adjust.
10490
e839132d
MS
104912011-01-31 Michael Snyder <msnyder@vmware.com>
10492
10493 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10494 line.
10495
47a80e90
TT
104962011-01-31 Tom Tromey <tromey@redhat.com>
10497
10498 PR python/12216:
10499 * python/python.c (execute_gdb_command): Call
10500 prevent_dont_repeat.
10501 * top.c (suppress_dont_repeat): New global.
10502 (dont_repeat): Use it.
10503 (prevent_dont_repeat): New function.
10504 * command.h (prevent_dont_repeat): Declare.
10505
45a43567
TT
105062011-01-31 Tom Tromey <tromey@redhat.com>
10507
10508 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10509 * python/py-breakpoint.c (bppy_set_silent): Use
10510 breakpoint_set_silent.
10511 (bppy_set_thread): Use breakpoint_set_thread.
10512 (bppy_set_task): Use breakpoint_set_task.
10513 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10514 (breakpoint_set_task): Declare.
10515 (make_breakpoint_silent): Remove.
10516 * breakpoint.c (breakpoint_set_silent): New function.
10517 (breakpoint_set_thread): Likewise.
10518 (breakpoint_set_task): Likewise.
10519 (make_breakpoint_silent): Remove.
10520
09d682a4
TT
105212011-01-31 Tom Tromey <tromey@redhat.com>
10522
10523 * breakpoint.h (user_breakpoint_p): Declare.
10524 * breakpoint.c (user_breakpoint_p): New function.
10525 (breakpoint_1): Use it.
10526 (save_breakpoints): Likewise.
10527
9c4ea6c5
JB
105282011-01-31 Joel Brobecker <brobecker@adacore.com>
10529
10530 * configure.ac: Add handling of Python distribution on Windows.
10531 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10532 sysconfig variables are not defined, then do not use them.
10533 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10534 instead. On Windows, return all paths using forward-slashes
10535 rather than backslashes.
10536
ac534cba
JB
105372011-01-31 Joel Brobecker <brobecker@adacore.com>
10538
10539 * configure.ac: Remove fallback behavior for building
10540 against Python. Remove tweaking of Python include path.
10541 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10542 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10543 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10544 Always restore CPPFLAGS and LIBS after linking test.
10545 * configure: Regenerated.
10546 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10547 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10548 * python/python-internal.h: Adjust includes of Python .h files.
10549
c2f0d045
JB
105502011-01-31 Joel Brobecker <brobecker@adacore.com>
10551
10552 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10553 in error message.
10554
6b0c4c1f
JB
105552011-01-31 Joel Brobecker <brobecker@adacore.com>
10556
10557 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10558 value test.
10559
672c9795
YQ
105602011-01-31 Yao Qi <yao@codesourcery.com>
10561
10562 * arm-linux-nat.c: Update calls to regcache_register_status
10563 instead of regcache_valid_p.
10564 * aix-thread.c: Likewise.
10565 * i386gnu-nat.c: Likewise.
10566
80b23b6a
JK
105672011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10568
10569 Fix crash.
10570 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10571 touching TYPE_FIELD_ARTIFICIAL.
10572
4cd712bd
RE
105732011-01-28 Richard Earnshaw <rearnsha@arm.com>
10574
10575 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10576 Committers.
10577
ffd5ec24
PA
105782011-01-28 Pedro Alves <pedro@codesourcery.com>
10579
10580 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10581 selected, don't try iterating over the traceframe's blocks.
10582 (tfile_has_stack): If there's no traceframe selected, then there's
10583 no stack.
10584 (tfile_has_registers): If there's no traceframe selected, then
10585 there's no registers.
10586
e8c9e0a1
PA
105872011-01-28 Pedro Alves <pedro@codesourcery.com>
10588
10589 * target.c (memory_xfer_partial): No need to restore shadows if we
10590 haven't read anything.
10591
de15c4ab
PA
105922011-01-28 Pedro Alves <pedro@codesourcery.com>
10593
10594 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10595 and val_print_scalar_formatted.
10596
9f41c731
PA
105972011-01-27 Pedro Alves <pedro@codesourcery.com>
10598
10599 * tracepoint.c (tfile_read): New.
10600 (tfile_open): Use it.
10601 (tfile_get_traceframe_address): Use it.
10602 (tfile_trace_find): Use it.
10603 (walk_blocks_callback_func): New typedef.
10604 (match_blocktype): New function.
10605 (traceframe_walk_blocks): New function.
10606 (traceframe_find_block_type): New function.
10607 (tfile_fetch_registers, tfile_xfer_partial)
10608 (tfile_get_trace_state_variable_value): Use
10609 traceframe_find_block_type and tfile_read.
10610
cdefc55d
KB
106112011-01-26 Kevin Buettner <kevinb@redhat.com>
10612
10613 * remote-mips.c: Add internationalization mark ups. Remove
10614 trailing \n from already marked up strings.
10615
a81766d8
TT
106162011-01-26 Tom Tromey <tromey@redhat.com>
10617
10618 * python/py-prettyprint.c (print_string_repr): Clear
10619 'addressprint' option when calling val_print_string.
10620 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10621 option when calling val_print_string.
10622
74aedc46
TT
106232011-01-26 Tom Tromey <tromey@redhat.com>
10624
10625 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10626 GDB_PY_LL_ARG.
10627 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10628 macros.
10629 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10630 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10631 (gdb_py_long_as_ulongest): New defines.
10632 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10633 (gdb_py_int_as_long): Declare.
10634 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10635 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10636 (valpy_long): Add comment.
10637 * python/py-utils.c (get_addr_from_python): Use
10638 gdb_py_long_as_ulongest. Handle overflow properly.
10639 (gdb_py_object_from_longest): New function.
10640 (gdb_py_object_from_ulongest): Likewise.
10641 (gdb_py_int_as_long): Likewise.
10642 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10643 * python/py-symtab.c (salpy_get_pc): Use
10644 gdb_py_long_from_ulongest.
10645 (salpy_get_line): Use PyInt_FromLong.
10646 * python/py-param.c (set_parameter_value): Use
10647 gdb_py_int_as_long.
10648 * python/py-lazy-string.c (stpy_get_address): Use
10649 gdb_py_long_from_ulongest.
10650 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10651 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10652 * python/py-breakpoint.c (bppy_set_thread): Use
10653 gdb_py_int_as_long.
10654 (bppy_set_task): Likewise.
10655 (bppy_set_ignore_count): Likewise.
10656 (bppy_set_hit_count): Likewise.
10657 * python/py-block.c (blpy_get_start): Use
10658 gdb_py_object_from_ulongest.
10659 (blpy_get_end): Likewise.
10660 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10661
e4f6d2ec
TJB
106622011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10663
10664 PR/symtab 11766:
10665 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10666 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10667 equality test for objfile, initialize addr_low if needed.
10668
b30aa278
PA
106692011-01-25 Pedro Alves <pedro@codesourcery.com>
10670
10671 * tui/tui-regs.c (tui_register_format): Remove dead code.
10672
ab2188aa
PA
106732011-01-25 Pedro Alves <pedro@codesourcery.com>
10674
10675 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10676 instead of print_scalar_formatted.
10677 (print_scalar_formatted): Don't handle 's' format strings here,
10678 and add an assertion that we never see such format here.
10679 * valprint.h (val_print_scalar_formatted): Declare.
10680 * valprint.c (val_print_scalar_formatted): New.
10681 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10682 instead of print_scalar_formatted.
10683 * jv-valprint.c (java_val_print): Ditto.
10684 * p-valprint.c (pascal_val_print): Ditto.
10685 * ada-valprint.c (ada_val_print_1): Ditto.
10686 * f-valprint.c (f_val_print): Ditto.
10687 * infcmd.c (registers_info): Ditto.
10688 * m2-valprint.c (m2_val_print): Ditto.
10689
66d61a4c
PA
106902011-01-25 Pedro Alves <pedro@codesourcery.com>
10691
10692 * m2-valprint.c (print_unbounded_array): Pass
10693 value_contents_for_printing rather than value_contents, to
10694 m2_print_array_contents. Also pass in the value.
10695
831adc1f
JK
106962011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10699 (save_gdb_index_command): Switch to .gdb_index version 4.
10700
20622269
PA
107012011-01-25 Pedro Alves <pedro@codesourcery.com>
10702
10703 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10704 than frame_register, and always pass a valid value to val_print.
10705
585fdaa1
PA
107062011-01-25 Pedro Alves <pedro@codesourcery.com>
10707
10708 Centralize printing "<optimized out>".
10709
10710 * valprint.h (val_print_optimized_out): Declare.
10711 * cp-valprint.c (cp_print_value_fields): Use
10712 val_print_optimized_out.
10713 * jv-valprint.c (java_print_value_fields): Ditto.
10714 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10715 * printcmd.c (print_formatted): Ditto.
10716 * valprint.c (valprint_check_validity): Ditto.
10717 (value_check_printable): Ditto.
10718 (val_print_optimized_out): New.
10719
29ec5263
PA
107202011-01-25 Pedro Alves <pedro@codesourcery.com>
10721
10722 * infcmd.c (default_print_registers_info): Allocate values so to
10723 never pass a NULL value to val_print.
10724
de4127a3
PA
107252011-01-25 Pedro Alves <pedro@codesourcery.com>
10726
10727 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10728 boolean. Make sure to always pass a value that matches the
10729 contents buffer to callees. Preserve `address' for following
10730 iterations.
10731 * value.c (value_contents_for_printing_const): New.
10732 (value_address): Constify value argument.
10733 * value.h (value_contents_for_printing_const): Declare.
10734 (value_address): Constify value argument.
10735
ee99023e
PA
107362011-01-25 Pedro Alves <pedro@codesourcery.com>
10737
10738 * regcache.c (struct regcache_descr): Rename
10739 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10740 and sizeof_cooked_register_valid_p to
10741 sizeof_cooked_register_status.
10742 (init_regcache_descr): Adjust.
10743 (struct regcache): Rename register_valid_p field to
10744 register_status.
10745 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10746 (do_cooked_read): Adjust.
10747 (regcache_valid_p): Rename to ...
10748 (regcache_register_status): ... this. Adjust.
10749 (regcache_invalidate): Adjust.
10750 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10751 Adjust.
10752 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10753 as unavailable, not valid.
10754 (regcache_dump): Adjust.
10755 * regcache.h (enum register_status): New.
10756 (regcache_register_status): Declare.
10757 (regcache_invalidate): Delete declaration.
10758 * corelow.c (get_core_registers): Adjust.
10759 * tracepoint.c (tfile_fetch_registers): Adjust.
10760 * trad-frame.c (REG_VALUE): Rename to ...
10761 (TF_REG_VALUE): ... this.
10762 (REG_UNKNOWN): Rename to ...
10763 (TF_REG_UNKNOWN): ... this.
10764 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10765 * mi/mi-main.c (register_changed_p): Adjust.
10766
99e42fd8
PA
107672011-01-25 Pedro Alves <pedro@codesourcery.com>
10768
10769 * regcache.c (struct regcache_descr): Remove outdated comment.
10770 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10771 overallocate hack.
10772 (regcache_xmalloc): Rename to ...
10773 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10774 Allocate the regcache type accordingly.
10775 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10776 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10777 cooked registers, not raw.
10778 (regcache_dup_no_passthrough): Delete.
10779 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10780 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10781 mention obsolete write_register_bytes.
10782 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10783
f7605bc2
PA
107842011-01-25 Pedro Alves <pedro@codesourcery.com>
10785
10786 Stop remote_read_bytes from handling partial reads itself.
10787
10788 * remote-fileio.c: Include target.h.
10789 (remote_fileio_write_bytes): Delete.
10790 (remote_fileio_func_open, remote_fileio_func_write)
10791 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10792 target_read_memory.
10793 (remote_fileio_func_stat): Use target_read_memory and
10794 target_write_memory.
10795 (remote_fileio_func_gettimeofday): Use target_write_memory.
10796 (remote_fileio_func_system): Use target_read_memory.
10797 * remote.c (remote_write_bytes): Make it static.
10798 (remote_read_bytes): Don't handle partial reads here.
10799 * remote.h (remote_read_bytes): Delete declaration.
10800
efc0eabd
PA
108012011-01-25 Pedro Alves <pedro@codesourcery.com>
10802
10803 Simplify XML parsing a bit.
10804
10805 * xml-support.h (gdb_xml_parse_quick): Declare.
10806 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10807 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10808 parameter.
10809 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10810 gdb_xml_create_parser_and_cleanup_1.
10811 (gdb_xml_parse_quick): New.
10812 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10813 * osdata.c (osdata_parse): Ditto.
10814 * remote.c (remote_threads_info): Ditto.
10815 * solib-target.c (solib_target_parse_libraries): Ditto.
10816 * xml-syscall.c (syscall_parse_xml): Ditto.
10817 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10818
314d366a
KB
108192011-01-24 Kevin Buettner <kevinb@redhat.com>
10820
10821 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10822 with remote-mips.o added to gdb_target_obs.
10823 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10824
a491d753
PA
108252011-01-24 Pedro Alves <pedro@codesourcery.com>
10826
10827 * ada-valprint.c (val_print_packed_array_elements): Pass the
10828 correct struct value to val_print.
10829 (ada_val_print_1): Ditto.
10830
490f124f
PA
108312011-01-24 Pedro Alves <pedro@codesourcery.com>
10832
10833 Don't lose embedded_offset in printing routines throughout.
10834
10835 * valprint.h (val_print_array_elements): Change prototype.
10836 * valprint.c (val_print_array_elements): Add `embedded_offset'
10837 parameter, and adjust to pass it down to val_print, while passing
10838 `valaddr' or `address' unmodified. Take embedded_offset into
10839 account when checking repetitions.
10840 * c-valprint.c (c_val_print): Pass embedded_offset to
10841 val_print_array_elements instead of adjusting `valaddr' and
10842 `address'.
10843 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10844 embedded_offset to val_print_array_elements instead of adjusting
10845 `valaddr'.
10846 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10847 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10848 val_print_array_elements and pascal_object_print_value_fields
10849 instead of adjusting `valaddr'.
10850 (pascal_object_print_value_fields): Add `offset' parameter, and
10851 adjust to use it.
10852 (pascal_object_print_value): Add `offset' parameter, and adjust to
10853 use it.
10854 (pascal_object_print_static_field): Use
10855 value_contents_for_printing/value_embedded_offset, rather than
10856 value_contents.
10857 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10858 parameter, and adjust to use it. Use
10859 value_contents_for_printing/value_embedded_offset, rather than
10860 value_contents.
10861 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10862 (ada_val_print_array): Add `offset' parameter, and adjust to use
10863 it.
10864 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10865 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10866 Instead work with offsets. Use
10867 value_contents_for_printing/value_embedded_offset, rather than
10868 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10869 and use value_from_pointer to extract a target pointer, rather
10870 than value_from_longest.
10871 (print_variant_part): Add `offset' parameter. Replace
10872 `outer_valaddr' parameter by a new `outer_offset' parameter.
10873 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10874 (ada_value_print): Use
10875 value_contents_for_printing/value_embedded_offset, rather than
10876 value_contents.
10877 (print_record): Add `offset' parameter, and adjust to pass it
10878 down.
10879 (print_field_values): Add `offset' parameter. Replace
10880 `outer_valaddr' parameter by a new `outer_offset' parameter.
10881 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10882 Use value_contents_for_printing/value_embedded_offset, rather than
10883 value_contents.
10884 * d-valprint.c (dynamic_array_type): Use
10885 value_contents_for_printing/value_embedded_offset, rather than
10886 value_contents.
10887 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10888 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10889 (java_print_value_fields): Take `offset' into account. Don't
10890 re-adjust `valaddr'. Instead pass down adjusted offsets.
10891 (java_val_print): Take `embedded_offset' into account. Pass it to
10892 java_print_value_fields.
10893 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10894 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10895 down adjusted offsets.
10896 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10897 (f_val_print): Take `embedded_offset' into account.
10898
7bfc9434
JB
108992011-01-21 Joel Brobecker <brobecker@adacore.com>
10900
10901 * inflow.c: Include "gdbcmd.h".
10902 (interactive_mode): New static global, moved here from top.c.
10903 (show_interactive_mode): New function, moved here from top.c.
10904 use gdb_has_a_terminal instead of input_from_terminal_p to
10905 determine the current mode.
10906 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10907 setting.
10908 (_initialize_inflow): Add the "set/show interactive-mode"
10909 commands. Moved here from top.c, after having adjusted slightly
10910 the help text.
10911 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10912 to inflow.c.
10913 (input_from_terminal_p): Remove handling of "interactive-mode"
10914 setting, moved to infow.c.
10915 (init_main): Remove creation of the "set/show interactive-mode"
10916 commands, moved to inflow.c.
10917
44603653
JB
109182011-01-19 Joel Brobecker <brobecker@adacore.com>
10919
10920 * NEWS: Add entry for native ia64-hpux support.
10921
4694da01
TT
109222011-01-19 Tom Tromey <tromey@redhat.com>
10923
10924 PR mi/8618:
10925 * thread.c (free_thread): Free 'name'.
10926 (print_thread_info): Emit thread name. Change CLI output.
10927 (thread_name_command): New function.
10928 (do_captured_thread_select): Emit newline.
10929 (_initialize_thread): Register 'thread name' command.
10930 * target.h (struct target_ops) <to_thread_name>: New field.
10931 (target_thread_name): New macro.
10932 * target.c (update_current_target): Handle to_thread_name.
10933 * python/py-infthread.c (thpy_get_name): New function.
10934 (thpy_set_name): Likewise.
10935 (thread_object_getset): Add "name".
10936 * linux-nat.c (linux_nat_thread_name): New function.
10937 (linux_nat_add_target): Set to_thread_name.
10938 * gdbthread.h (struct thread_info) <name>: New field.
10939
10d44370
JB
109402011-01-18 Joel Brobecker <brobecker@adacore.com>
10941
10942 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10943 (ada_val_print_1): Likewise.
10944
e3acb115
JB
109452011-01-18 Joel Brobecker <brobecker@adacore.com>
10946
10947 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10948 upper limit address is not greater than the function end address
10949 when the upper limit could not be computed using the debugging
10950 info.
10951
dc92e161
TT
109522011-01-17 Tom Tromey <tromey@redhat.com>
10953
10954 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10955 get_regcomp_error.
10956 * utils.c: Include gdb_regex.h.
10957 (do_regfree_cleanup): New function.
10958 (make_regfree_cleanup): Likewise.
10959 (get_regcomp_error): Likewise.
10960 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10961
f55af66d
TT
109622011-01-17 Tom Tromey <tromey@redhat.com>
10963
10964 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10965 re_compile_fastmap.
10966
a5a44b53
PM
109672011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10968
10969 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10970 for internal variables.
10971 (last_was_structop): New static variable.
10972 (COMPLETE): New token.
10973 (field_exp): New rule to group all '.' suffix handling.
10974 Add mark_struct_expression calls when approriate to be able
10975 to correctly find fields for completion.
10976 (yylex): Adapt to handle field completion and set INTVAR when
10977 required.
10978
2c291032
YQ
109792011-01-14 Yao Qi <yao@codesourcery.com>
10980
10981 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10982 save_reggroup, restore_reggroup and all_reggroup.
10983
447b483c
JB
109842011-01-14 Joel Brobecker <brobecker@adacore.com>
10985
10986 * ada-valprint. (ada_printchar): Use the correct type length
10987 in call to ada_emit_char.
10988 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10989
7b64a93b
PM
109902011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10991
10992 * solib-som.h (hpux_major_release): Declare variable here.
10993 * solib-som.c: Remove <sys/utsname.h> header.
10994 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10995 (hpux_major_release): Make global, change default value to
10996 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10997 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10998 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10999 Add "solib-som.h" header.
11000 (set_hpux_major_release): New function.
11001 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11002
4e18c053
MF
110032011-01-14 Mike Frysinger <vapier@gentoo.org>
11004
11005 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11006
a9df6b22
JB
110072011-01-14 Joel Brobecker <brobecker@adacore.com>
11008
11009 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11010 new-line at end of warning message.
11011 (ia64_hpux_store_register): Remove trailing new-line at end of
11012 error message.
11013 * ia64-hpux-tdep.c: Rephrase comment.
11014 * solib-ia64-hpux.c (struct dld_info): Change type of field
11015 dld_flags from "long long" to ULONGEST.
11016
ecb956dd
PA
110172011-01-14 Pedro Alves <pedro@codesourcery.com>
11018
11019 * target.h (deprecated_child_ops): Delete declaration.
11020 * target.c (deprecated_child_ops): Delete definition.
11021
76adfcae
PA
110222011-01-14 Pedro Alves <pedro@codesourcery.com>
11023
11024 * Makefile.in (hpux-thread.o): Delete rule.
11025 * configure.ac: Don't check for HPUX DCE threads support.
11026 * configure, config.in: Regenerate.
11027 * hppa-hpux-nat.c (child_suppress_run): Delete.
11028 (hppa_hpux_child_can_run): Delete.
11029 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11030 * hpux-thread.c: Delete.
11031
042e866e
JB
110322011-01-13 Joel Brobecker <brobecker@adacore.com>
11033
11034 * hpux-thread.c (hpux_pid_to_str): Delete.
11035
4ffa5a33
JB
110362011-01-13 Joel Brobecker <brobecker@adacore.com>
11037
11038 * ada-valprint.c (ada_emit_char): Remove strange code.
11039 Check that c is <= UCHAR_MAX before passing it to isascii.
11040 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11041
de8fa76c
JB
110422011-01-13 Joel Brobecker <brobecker@adacore.com>
11043
11044 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11045 to the case where instream is stdin.
11046
c4de7027
JB
110472011-01-13 Joel Brobecker <brobecker@adacore.com>
11048
11049 * ia64-tdep.h (struct regcache): Forward declare.
11050 (struct ia64_infcall_ops): New struct type.
11051 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11052 and "infcall_ops".
11053 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11054 Renames ia64_find_global_pointer.
11055 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11056 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11057 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11058 methods.
11059 (ia64_infcall_ops): New static global constant.
11060 (ia64_gdbarch_init): Set tdep->infcall_ops.
11061 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11062 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11063 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11064 (ia64_hpux_dummy_code): New static global constant.
11065 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11066 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11067 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11068 New function.
11069 (ia64_hpux_infcall_ops): New static global constant.
11070 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11071 for inferior function calls to work properly on ia64-hpux.
11072
77ca787b
JB
110732011-01-13 Joel Brobecker <brobecker@adacore.com>
11074
11075 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11076 * ia64-tdep.h (struct frame_info): forward declaration.
11077 (struct gdbarch_tdep): Add field size_of_register_frame.
11078 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11079 to determine the size of the register frame.
11080 (ia64_size_of_register_frame): New function.
11081 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11082 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11083 (IA64_HPUX_UREG_REASON): New macro.
11084 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11085 New functions.
11086 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11087 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11088 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11089 objects.
11090
92c9a463
JB
110912011-01-13 Joel Brobecker <brobecker@adacore.com>
11092
11093 Add support for ia64-hpux.
11094 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11095 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11096
11097 * configure.host: Add handling for ia64-hpux hosts. Add associated
11098 floatformats.
11099 * configure.tgt: Add handling for ia64-hpux targets.
11100 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11101 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11102 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11103
f688d93f
JB
111042011-01-13 Joel Brobecker <brobecker@adacore.com>
11105
11106 [ttrace] Compute thread list immediately after attach.
11107 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11108 New subprogram.
11109 (inf_ttrace_attach): Use it.
11110
1b89e62f
JB
111112011-01-13 Joel Brobecker <brobecker@adacore.com>
11112
11113 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11114 if we could not determine the frame's function address. Instead,
11115 use the frame's PC, and then continue.
11116
3e5e6e2a
JB
111172011-01-13 Joel Brobecker <brobecker@adacore.com>
11118
11119 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11120 not already defined.
11121
825d6d8a
JB
111222011-01-13 Joel Brobecker <brobecker@adacore.com>
11123
11124 * ia64-tdep.c (ia64_struct_type_p): New function.
11125 (ia64_extract_return_value): Handle integral values that are
11126 less than 8 bytes long.
11127 (ia64_push_dummy_call): Likewise.
11128
7458e667
JB
111292011-01-13 Joel Brobecker <brobecker@adacore.com>
11130
11131 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11132 floatformat_ia64_ext.
11133 (floatformat_ia64_ext_big): New static const.
11134 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11135
1b05df00
TT
111362011-01-12 Tom Tromey <tromey@redhat.com>
11137
11138 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11139 messages.
11140 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11141 (mi_cmd_thread_list_ids): Likewise.
11142 (mi_cmd_data_list_changed_registers): Likewise.
11143 (mi_cmd_data_list_register_values): Likewise.
11144 (mi_cmd_data_write_register_values): Likewise.
11145 (mi_cmd_data_evaluate_expression): Likewise.
11146 (mi_cmd_data_read_memory): Likewise.
11147 (mi_cmd_data_read_memory_bytes): Likewise.
11148 (mi_cmd_data_write_memory): Likewise.
11149 (mi_cmd_enable_timings): Likewise.
11150 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11151 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11152 (mi_cmd_var_delete): Likewise.
11153 (mi_cmd_var_set_format): Likewise.
11154 (mi_cmd_var_show_format): Likewise.
11155 (mi_cmd_var_info_num_children): Likewise.
11156 (mi_cmd_var_list_children): Likewise.
11157 (mi_cmd_var_info_type): Likewise.
11158 (mi_cmd_var_info_expression): Likewise.
11159 (mi_cmd_var_show_attributes): Likewise.
11160 (mi_cmd_var_assign): Likewise.
11161 (mi_cmd_var_update): Likewise.
11162 (mi_cmd_enable_pretty_printing): Likewise.
11163 (mi_cmd_var_set_update_range): Likewise.
11164 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11165 messages.
11166 (mi_cmd_target_file_put): Likewise.
11167 (mi_cmd_target_file_delete): Likewise.
11168 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11169 messages.
11170 (mi_cmd_stack_info_depth): Likewise.
11171 (mi_cmd_stack_list_locals): Likewise.
11172 (mi_cmd_stack_list_args): Likewise.
11173 (mi_cmd_stack_select_frame): Likewise.
11174 (mi_cmd_stack_select_frame): Likewise.
11175 (mi_cmd_stack_info_frame): Likewise.
11176 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11177 messages.
11178 (mi_cmd_file_list_exec_source_files): Likewise.
11179 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11180 (mi_cmd_env_cd): Likewise.
11181 (mi_cmd_env_path): Likewise.
11182 (mi_cmd_env_dir): Likewise.
11183 (mi_cmd_inferior_tty_show): Likewise.
11184 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11185 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11186 (mi_cmd_break_watch): Likewise.
11187
ad422571
TJB
111882011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11189
11190 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11191 (ppc_linux_insert_hw_breakpoint): Likewise.
11192 (ppc_linux_remove_hw_breakpoint): Likewise.
11193 (ppc_linux_insert_watchpoint): Likewise.
11194
c2ff108b
JK
111952011-01-12 Andrew Burgess <aburgess@broadcom.com>
11196 Jan Kratochvil <jan.kratochvil@redhat.com>
11197
11198 PR fortran/11104 and DWARF unbound arrays detection.
11199 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11200 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11201 unspecified upper bound.
11202 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11203 variables array_size_array, tmp_type and offset_item. New variable
11204 array. Remove call to f77_get_upperbound. New variables array_type
11205 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11206 the final call to deprecated_set_value_type.
11207
41e8491f
JK
112082011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11209
11210 Make value allocations more lazy.
11211 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11212 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11213 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11214 instead of allocate_value and set_value_lazy.
11215 * findvar.c (value_of_register_lazy): Likewise.
11216 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11217 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11218 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11219 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11220 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11221 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11222 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11223 the end, remove set_value_lazy there.
11224 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11225 instead of allocate_value and set_value_lazy when possible.
11226 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11227 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11228 of allocate_value and set_value_lazy.
11229 (value_from_contents_and_address): Use allocate_value_lazy instead of
11230 allocate_value and set_value_lazy when possible.
11231
b716877b
AB
112322011-01-12 Andrew Burgess <aburgess@broadcom.com>
11233
11234 * disasm.c (dump_insns): Support dumping opcodes for MI.
11235 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11236 dumping of instruction opcodes.
11237
d5ae309f
JB
112382011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11239
11240 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11241 appropiately.
11242
98871305
TT
112432011-01-11 Tom Tromey <tromey@redhat.com>
11244
11245 * thread.c (do_captured_thread_select): Emit newline before
11246 printing frame.
11247
c378eb4e
MS
112482011-01-11 Michael Snyder <msnyder@vmware.com>
11249
11250 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11251 * score-tdep.c: Ditto.
11252 * score-tdep.h: Ditto.
11253 * ser-base.c: Ditto.
11254 * ser-go32.c: Ditto.
11255 * serial.c: Ditto.
11256 * serial.h: Ditto.
11257 * ser-mingw.c: Ditto.
11258 * ser-pipe.c: Ditto.
11259 * ser-tcp.c: Ditto.
11260 * ser-unix.c: Ditto.
11261 * sh64-tdep.c: Ditto.
11262 * shnbsd-nat.c: Ditto.
11263 * sh-tdep.c: Ditto.
11264 * sh-tdep.h: Ditto.
11265 * solib.c: Ditto.
11266 * solib-darwin.c: Ditto.
11267 * solib-frv.c: Ditto.
11268 * solib.h: Ditto.
11269 * solib-irix.c: Ditto.
11270 * solib-osf.c: Ditto.
11271 * solib-pa64.c: Ditto.
11272 * solib-som.c: Ditto.
11273 * solib-spu.c: Ditto.
11274 * solib-sunos.c: Ditto.
11275 * solib-svr4.c: Ditto.
11276 * solist.h: Ditto.
11277 * sol-thread.c: Ditto.
11278 * somread.c: Ditto.
11279 * source.c: Ditto.
11280 * source.h: Ditto.
11281 * sparc64-linux-tdep.c: Ditto.
11282 * sparc64-tdep.c: Ditto.
11283 * sparc-linux-nat.c: Ditto.
11284 * sparc-linux-tdep.c: Ditto.
11285 * sparc-sol2-nat.c: Ditto.
11286 * sparc-sol2-tdep.c: Ditto.
11287 * sparc-tdep.c: Ditto.
11288 * sparc-tdep.h: Ditto.
11289 * spu-tdep.c: Ditto.
11290 * stabsread.c: Ditto.
11291 * stabsread.h: Ditto.
11292 * stack.c: Ditto.
11293 * symfile.c: Ditto.
11294 * symfile.h: Ditto.
11295 * symmisc.c: Ditto.
11296 * symtab.c: Ditto.
11297 * symtab.h: Ditto.
11298 * target.c: Ditto.
11299 * target-descriptions.c: Ditto.
11300 * target-descriptions.h: Ditto.
11301 * target.h: Ditto.
11302 * target-memory.c: Ditto.
11303 * terminal.h: Ditto.
11304 * thread.c: Ditto.
11305 * top.c: Ditto.
11306 * tracepoint.c: Ditto.
11307 * tracepoint.h: Ditto.
11308 * trad-frame.h: Ditto.
11309 * typeprint.c: Ditto.
11310
581e13c1
MS
113112011-01-11 Michael Snyder <msnyder@vmware.com>
11312
11313 * ui-file.c: Comment cleanup, mostly periods and spaces.
11314 * ui-file.h: Ditto.
11315 * ui-out.c: Ditto.
11316 * ui-out.h: Ditto.
11317 * utils.c: Ditto.
11318 * v850-tdep.c: Ditto.
11319 * valarith.c: Ditto.
11320 * valops.c: Ditto.
11321 * valprint.c: Ditto.
11322 * valprint.h: Ditto.
11323 * value.c: Ditto.
11324 * value.h: Ditto.
11325 * varobj.c: Ditto.
11326 * varobj.h: Ditto.
11327 * vax-tdep.c: Ditto.
11328 * vec.c: Ditto.
11329 * vec.h: Ditto.
11330 * version.h: Ditto.
11331 * windows-nat.c: Ditto.
11332 * windows-tdep.c: Ditto.
11333 * xcoffread.c: Ditto.
11334 * xcoffsolib.c: Ditto.
11335 * xml-support.c: Ditto.
11336 * xstormy16-tdep.c: Ditto.
11337 * xtensa-tdep.c: Ditto.
11338 * xtensa-tdep.h: Ditto.
11339
90e4670f
TJB
113402011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11341
11342 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11343 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11344
e09342b5
TJB
113452011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11346 Thiago Jung Bauermann <bauerman@br.ibm.com>
11347
11348 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11349 * breakpoint.h
e09342b5
TJB
11350 (struct breakpoint_ops) <resources_needed>: New method.
11351 Initialize to NULL in all existing breakpoint_ops instances.
11352 (struct breakpoint) <exact>: New field.
11353 (target_exact_watchpoints): Declare external global.
11354 * breakpoint.c (target_exact_watchpoints): New global flag.
11355 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11356 b->enable_state to bp_enabled before calling
11357 hw_watchpoint_used_count.
11358 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11359 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11360 if available.
11361 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11362 if the watchpoint is exact.
11363 (resources_needed_watchpoint): New function.
11364 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11365 (watch_command_1): Set b->exact if the user asked for an exact
11366 watchpoint and one can be set.
11367 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11368 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11369 the user asks for an exact watchpoint and one can be set. Return
11370 number of needed debug registers to watch the expression.
11371 * gdbtypes.c (is_scalar_type): New function, based on
11372 valprint.c:scalar_type_p.
11373 (is_scalar_type_recursive): New function.
11374 * gdbtypes.h (is_scalar_type_recursive): Declare.
11375 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11376 handle regions when ranged watchpoints are available.
11377 (create_watchpoint_request): New function.
11378 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11379 create_watchpoint_request.
11380 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11381 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11382 `set powerpc' and `show powerpc' commands.
11383 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11384 Mention documentation comment in the target macro.
11385 (target_region_ok_for_hw_watchpoint): Document return value.
11386
9fa40276
TJB
113872011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11388
11389 * breakpoint.c (update_watchpoint): Decide on using a software or
11390 hardware watchpoint after the bp_locations are created.
11391
77b06cd7
TJB
113922010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11393
11394 Convert hardware watchpoints to use breakpoint_ops.
11395 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11396 <insert_location>: ... this. Return int instead of void.
11397 Accept pointer to struct bp_location instead of pointer to
11398 struct breakpoint. Adapt all implementations.
f2eb0bc8 11399 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11400 <remove_location>: ... this. Accept pointer to struct bp_location
11401 instead of pointer to struct breakpoint. Adapt all implementations.
11402 * breakpoint.c (insert_catchpoint): Delete function.
11403 (insert_bp_location): Call the watchpoint or catchpoint's
11404 breakpoint_ops.insert method.
11405 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11406 breakpoint_ops.remove method.
11407 (insert_watchpoint, remove_watchpoint): New functions.
11408 (watchpoint_breakpoint_ops): New structure.
11409 (watch_command_1): Initialize the OPS field.
11410 * inf-child.c (inf_child_insert_fork_catchpoint)
11411 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11412 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11413 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11414 Delete functions.
11415 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11416 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11417 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11418 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11419 * target.c (update_current_target): Change default implementation of
11420 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11421 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11422 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11423 to_set_syscall_catchpoint to return_one.
11424 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11425 (debug_to_insert_exec_catchpoint): Report return value.
11426 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11427 (to_insert_exec_catchpoint): Change declaration to return int instead
11428 of void.
11429
9b20d036
MS
114302011-01-11 Michael Snyder <msnyder@vmware.com>
11431
11432 * arm-tdep.c: Internationalization.
11433 * c-lang.c: Ditto.
11434 * charset.c: Ditto.
11435 * fork-child.c: Ditto.
11436 * nto-procfs.c: Ditto.
11437 * ppc-sysv-tdep.c: Ditto.
11438 * procfs.c: Ditto.
11439 * remote-mips.c: Ditto.
11440 * remote.c: Ditto.
11441 * rs6000-nat.c: Ditto.
11442 * rs6000-tdep.c: Ditto.
11443 * target.c: Ditto.
11444 * valops.c: Ditto.
11445 * value.c: Ditto.
11446 * xml-support.c: Ditto.
11447 * mi/mi-cmd-break.c: Ditto.
11448 * mi/mi-cmd-var.c: Ditto.
11449 * mi/mi-interp.c: Ditto.
11450 * mi/mi-main.c: Ditto.
11451
dae477fe
AB
114522011-01-11 Andrew Burgess <aburgess@broadcom.com>
11453
11454 * remote-sim.c (gdbsim_store_register): Update API to
11455 sim_store_register to check more error conditions.
11456
0df8b418
MS
114572011-01-10 Michael Snyder <msnyder@vmware.com>
11458
11459 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11460 * nto-tdep.c: Ditto.
11461 * nto-tdep.h: Ditto.
11462 * objc-exp.y: Ditto.
11463 * objc-lang.c: Ditto.
11464 * objfiles.c: Ditto.
11465 * objfiles.h: Ditto.
11466 * observer.c: Ditto.
11467 * opencl-lang.c: Ditto.
11468 * osabi.c: Ditto.
11469 * parse.c: Ditto.
11470 * parser-defs.h: Ditto.
11471 * p-exp.y: Ditto.
11472 * p-lang.c: Ditto.
11473 * posix-hdep.c: Ditto.
11474 * ppcbug-rom.c: Ditto.
11475 * ppc-linux-nat.c: Ditto.
11476 * ppc-linux-tdep.c: Ditto.
11477 * ppc-linux-tdep.h: Ditto.
11478 * ppcnbsd-tdep.c: Ditto.
11479 * ppcobsd-tdep.c: Ditto.
11480 * ppcobsd-tdep.h: Ditto.
11481 * ppc-sysv-tdep.c: Ditto.
11482 * ppc-tdep.h: Ditto.
11483 * printcmd.c: Ditto.
11484 * proc-abi.c: Ditto.
11485 * proc-flags.c: Ditto.
11486 * procfs.c: Ditto.
11487 * proc-utils.h: Ditto.
11488 * progspace.h: Ditto.
11489 * prologue-value.c: Ditto.
11490 * prologue-value.h: Ditto.
11491 * psympriv.h: Ditto.
11492 * psymtab.c: Ditto.
11493 * p-typeprint.c: Ditto.
11494 * p-valprint.c: Ditto.
11495 * ravenscar-sparc-thread.c: Ditto.
11496 * ravenscar-thread.c: Ditto.
11497 * ravenscar-thread.h: Ditto.
11498 * record.c: Ditto.
11499 * regcache.c: Ditto.
11500 * regcache.h: Ditto.
11501 * remote.c: Ditto.
11502 * remote-fileio.c: Ditto.
11503 * remote-fileio.h: Ditto.
11504 * remote.h: Ditto.
11505 * remote-m32r-sdi.c: Ditto.
11506 * remote-mips.c: Ditto.
11507 * remote-sim.c: Ditto.
11508 * rs6000-aix-tdep.c: Ditto.
11509 * rs6000-nat.c: Ditto.
11510 * rs6000-tdep.c: Ditto.
11511
0d7a18f7
MS
115122011-01-10 Michael Snyder <msnyder@vmware.com>
11513
11514 * charset.c (validate): Internationalization.
11515 * coffread.c (read_one_sym): Ditto.
11516 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11517 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11518 * inflow.c (new_tty): Ditto.
11519 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11520 * m32c-tdep.c (m32c_return_value): Ditto.
11521 * mep-tdep.c (mep_store_return_value): Ditto.
11522 * score-tdep.c (score7_fetch_insn): Ditto.
11523 * ser-mingw.c (pipe_windows_open): Ditto.
11524 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11525 * spu-tdep.c (spu_register_type): Ditto.
11526 * tracepoint.c (trace_find_command): Ditto.
11527 * valarith.c (value_pos): Ditto.
11528
9a153e0b
JB
115292011-01-10 Joel Brobecker <brobecker@adacore.com>
11530
11531 * ada-valprint.c (printstr): Minor comment reformatting.
11532
35ecd2d6
MS
115332011-01-08 Michael Snyder <msnyder@vmware.com>
11534
11535 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11536 markup.
11537
1777feb0
MS
115382011-01-08 Michael Snyder <msnyder@vmware.com>
11539
11540 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11541 * hppa-hpux-tdep.c: Ditto.
11542 * hppa-linux-nat.c: Ditto.
11543 * hppa-linux-tdep.c: Ditto.
11544 * hppanbsd-tdep.c: Ditto.
11545 * hppa-tdep.c: Ditto.
11546 * hppa-tdep.h: Ditto.
11547 * hpux-thread.c: Ditto.
11548 * i386-cygwin-tdep.c: Ditto.
11549 * i386-darwin-nat.c: Ditto.
11550 * i386gnu-nat.c: Ditto.
11551 * i386-linux-nat.c: Ditto.
11552 * i386-linux-tdep.c: Ditto.
11553 * i386-nat.c: Ditto.
11554 * i386-nat.h: Ditto.
11555 * i386nbsd-tdep.c: Ditto.
11556 * i386-sol2-nat.c: Ditto.
11557 * i386-stub.c: Ditto.
11558 * i386-tdep.c: Ditto.
11559 * i386-tdep.h: Ditto.
11560 * i387-tdep.c: Ditto.
11561 * ia64-linux-nat.c: Ditto.
11562 * ia64-linux-tdep.c: Ditto.
11563 * ia64-tdep.c: Ditto.
11564 * infcall.c: Ditto.
11565 * infcall.h: Ditto.
11566 * infcmd.c: Ditto.
11567 * inferior.c: Ditto.
11568 * inferior.h: Ditto.
11569 * infloop.c: Ditto.
11570 * inflow.c: Ditto.
11571 * infrun.c: Ditto.
11572 * interps.c: Ditto.
11573 * interps.h: Ditto.
11574 * iq2000-tdep.c: Ditto.
11575 * irix5-nat.c: Ditto.
11576 * jit.c: Ditto.
11577 * jit.h: Ditto.
11578 * jv-exp.y: Ditto.
11579 * jv-lang.c: Ditto.
11580 * jv-lang.h: Ditto.
11581 * jv-typeprint.c: Ditto.
11582 * jv-valprint.c: Ditto.
11583 * language.c: Ditto.
11584 * language.h: Ditto.
11585 * linespec.c: Ditto.
11586 * linux-fork.c: Ditto.
11587 * linux-nat.c: Ditto.
11588 * linux-thread-db.c: Ditto.
11589 * lm32-tdep.c: Ditto.
11590
025bb325
MS
115912011-01-08 Michael Snyder <msnyder@vmware.com>
11592
11593 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11594 * m2-lang.c: Ditto.
11595 * m2-typeprint.c: Ditto.
11596 * m2-valprint.c: Ditto.
11597 * m32c-tdep.c: Ditto.
11598 * m32r-linux-nat.c: Ditto.
11599 * m32r-rom.c: Ditto.
11600 * m32r-tdep.c: Ditto.
11601 * m32r-tdep.h: Ditto.
11602 * m68hc11-tdep.c: Ditto.
11603 * m58klinux-nat.c: Ditto.
11604 * m68k-tdep.c: Ditto.
11605 * m88k-tdep.c: Ditto.
11606 * m88k-tdep.h: Ditto.
11607 * machoread.c: Ditto.
11608 * macrocmd.c: Ditto.
11609 * macroexp.c: Ditto.
11610 * macrotab.c: Ditto.
11611 * main.c: Ditto.
11612 * maint.c: Ditto.
11613 * mdebugread.c: Ditto.
11614 * mdebugread.h: Ditto.
11615 * memattr.c: Ditto.
11616 * memattr.h: Ditto.
11617 * memory-map.h: Ditto.
11618 * mep-tdep.c: Ditto.
11619 * microblaze-rom.c: Ditto.
11620 * microblaze-tdep.c: Ditto.
11621 * minsyms.c: Ditto.
11622 * mips-irix-tdep.c: Ditto.
11623 * mips-linux-nat.c: Ditto.
11624 * mips-linux-tdep.c: Ditto.
11625 * mips-linux-tdep.h: Ditto.
11626 * mipsnbsd-nat.c: Ditto.
11627 * mipsnbsd-tdep.c: Ditto.
11628 * mipsread.c: Ditto.
11629 * mips-tdep.c: Ditto.
11630 * mips-tdep.h: Ditto.
11631 * mn10300-linux-tdep.c: Ditto.
11632 * mn10300-tdep.c: Ditto.
11633 * mn10300-tdep.h: Ditto.
11634 * monitor.c: Ditto.
11635 * monitor.h: Ditto.
11636 * moxie-tdep.c: Ditto.
11637 * moxie-tdep.h: Ditto.
11638 * mt-tdep.c: Ditto.
11639
1642781b
MF
116402011-01-08 Mike Frysinger <vapier@gentoo.org>
11641
11642 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11643
394b0adb
JB
116442011-01-08 Robert Millan <rmh@gnu.org>
11645
11646 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11647
b670013c
MS
116482011-01-07 Michael Snyder <msnyder@vmware.com>
11649
11650 * charset.c (_initialize_charset): Fix typo in string.
11651
a743e542
MS
116522011-01-07 Michael Snyder <msnyder@vmware.com>
11653
11654 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11655 for i18n.
f2eb0bc8 11656 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11657 Split line so that operator goes to beginning of line.
11658 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11659 assignment out of if statement.
11660
0963b4bd
MS
116612011-01-07 Michael Snyder <msnyder@vmware.com>
11662
11663 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11664 * ada-lang.h: Ditto.
11665 * ada-tasks.c: Ditto.
11666 * ada-valprint.c: Ditto.
11667 * aix-threads.c: Ditto.
11668 * alpha-linux-nat.c: Ditto.
11669 * alpha-linux-tdep.c: Ditto.
11670 * alpha-mdebug-tdep.c: Ditto.
11671 * alpha-nat.c: Ditto.
11672 * alpha-osf1-tdep.c: Ditto.
11673 * alpha-tdep.c: Ditto.
11674 * alphabsd-nat.c: Ditto.
11675 * alphabsd-tdep.c: Ditto.
11676 * amd64-darwin-tdep.c: Ditto.
11677 * amd64-linux-nat.c: Ditto.
11678 * amd64-linux-tdep.c: Ditto.
11679 * amd64-sol2-tdep.c: Ditto.
11680 * amd64-tdep.c: Ditto.
11681 * amd64-fbsd-tdep.c: Ditto.
11682 * amd64-nbsd-tdep.c: Ditto.
11683 * amd64-obsd-tdep.c: Ditto.
11684 * amd64-linux-nat.c: Ditto.
11685 * amd64-linux-tdep.c: Ditto.
11686 * arm-tdep.c: Ditto.
11687 * arm-tdep.h: Ditto.
11688 * armnbsd-nat.c: Ditto.
11689 * avr-tdep.c: Ditto.
11690 * bfin-tdep.c: Ditto.
11691 * bsd-kvm.c: Ditto.
11692 * c-typeprintc: Ditto.
11693 * c-valprint.c: Ditto.
11694 * coff-pe-read.h: Ditto.
11695 * coffreead.c: Ditto.
11696 * cris-tdep.c: Ditto.
11697 * d-lang.c: Ditto.
11698 * darwin-nat-info.c: Ditto.
11699 * darwin-nat.c: Ditto.
11700 * dbug-rom.c: Ditto.
11701 * dbxread.c: Ditto.
11702 * dcache.c: Ditto.
11703 * dcache.h: Ditto.
11704 * dec-thread.c: Ditto.
11705 * defs.h: Ditto.
11706 * demangle.c: Ditto.
11707 * dicos-tdep.c: Ditto.
11708 * dictionary.c: Ditto.
11709 * dictionary.h: Ditto.
11710 * dink32-rom.c: Ditto.
11711 * disasm.c: Ditto.
11712 * doublest.c: Ditto.
11713 * dsrec.c: Ditto.
11714 * dummy-frame.c: Ditto.
11715 * dwarf2-frame.c: Ditto.
11716 * dwarf2expr.c: Ditto.
11717 * dwarf2loc.c: Ditto.
11718 * dwarf2read.c: Ditto.
11719 * elfread.c: Ditto.
11720 * environ.c: Ditto.
11721 * eval.c: Ditto.
11722 * event-top.h: Ditto.
11723 * exceptions.c: Ditto.
11724 * exceptions.h: Ditto.
11725 * exec.c: Ditto.
11726 * expprint.c: Ditto.
11727 * expression.h: Ditto.
11728 * f-exp.y: Ditto.
11729 * f-lang.c: Ditto.
11730 * f-lang.h: Ditto.
11731 * f-typeprint.c: Ditto.
11732 * f-valprint.c: Ditto.
11733 * fbsd-nat.c: Ditto.
11734 * findvar.c: Ditto.
11735 * fork-child.c: Ditto.
11736 * frame.c: Ditto.
11737 * frame.h: Ditto.
11738 * frv-linux-tdep.c: Ditto.
11739 * frv-tdep.c: Ditto.
11740 * gcore.c: Ditto.
11741 * gdb-stabs.h: Ditto.
11742 * gdb_assert.h: Ditto.
11743 * gdb_string.h: Ditto.
11744 * gdb_thread_db.h: Ditto.
11745 * gdb_wait.h: Ditto.
11746 * gdbarch.sh: Ditto.
11747 * gdbcore.h: Ditto.
11748 * gdbthread.h: Ditto.
11749 * gdbtypes.c: Ditto.
11750 * gdbtypes.h: Ditto.
11751 * gnu-nat.c: Ditto.
11752 * gnu-nat.h: Ditto.
11753 * gnu-v2-abi.c: Ditto.
11754 * gnu-v3-abi.c: Ditto.
11755 * go32-nat.c: Ditto.
11756 * gdbarch.c: Regenerate.
11757 * gdbarch.h: Regenerate.
11758
ac74f770
MS
117592011-01-07 Michael Snyder <msnyder@vmware.com>
11760
11761 * ax-gdb.c: Adjust some long output strings.
11762 * breakpoint.c: Ditto.
11763 * charset.c: Ditto.
11764 * cp-abi.c: Ditto.
11765 * infcall.c: Ditto.
11766 * infrun.c: Ditto.
11767 * linux-nat.c: Ditto.
11768 * solib-pa64.c: Ditto.
11769 * solib-som.c: Ditto.
11770
d8e22779
TT
117712011-01-06 Tom Tromey <tromey@redhat.com>
11772
11773 PR python/12367:
11774 * NEWS: Add item.
11775 * python/python.c (GdbMethods): Add "newest_frame" method.
11776 * python/python-internal.h (gdbpy_newest_frame): Declare.
11777 * python/py-frame.c (gdbpy_newest_frame): New function.
11778
a255712f
PP
117792010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11780
11781 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11782 * jit.c (jit_debug): New variable.
11783 (show_jit_debug): New function.
11784 (struct target_buffer): Use ULONGEST.
11785 (bfd_open_from_target_memory): Likewise.
11786 (jit_register_code, jit_inferior_init): Add debug output.
11787 (_initialize_jit): Register "debug jit" command.
11788
ccfc3d6e
TT
117892011-01-06 Tom Tromey <tromey@redhat.com>
11790
11791 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11792 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11793 and ARCH_FRAME.
11794
57126e4a
TT
117952011-01-06 Tom Tromey <tromey@redhat.com>
11796
11797 * python/py-frame.c (frapy_block): Use get_frame_block.
11798
16dfc9ce
JB
117992011-01-06 Joel Brobecker <brobecker@adacore.com>
11800
11801 Do not stop on SIGPRIO signals by default
11802 * infrun.c (_initialize_infrun): Unset signal_stop and
11803 signal_print for TARGET_SIGNAL_PRIO.
11804
b1ce2347
JB
118052011-01-06 Joel Brobecker <brobecker@adacore.com>
11806
11807 * ada-tasks.c: Fix style violation in comment.
11808
8f7e195f
JB
118092011-01-06 Joel Brobecker <brobecker@adacore.com>
11810
11811 * linespec.c (decode_compound, find_method): Remove trailing \n
11812 at end of error string.
11813 * solib-irix.c (irix_current_sos): Likewise.
11814 * varobj.c (uninstall_variable): Likewise.
11815
e9bdf92c
JB
118162011-01-06 Joel Brobecker <brobecker@adacore.com>
11817
11818 * copyright.py: New script.
11819 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11820 Launch emacs without exec'ing. Call copyright.py afterwards.
11821
3e43a32a
MS
118222011-01-05 Michael Snyder <msnyder@vmware.com>
11823
11824 * addrmap.c: Shorten lines of >= 80 columns.
11825 * arch-utils.c: Ditto.
11826 * arch-utils.h: Ditto.
11827 * ax-gdb.c: Ditto.
11828 * ax-general.c: Ditto.
11829 * bcache.c: Ditto.
11830 * blockframe.c: Ditto.
11831 * breakpoint.c: Ditto.
11832 * buildsym.c: Ditto.
11833 * c-lang.c: Ditto.
11834 * c-typeprint.c: Ditto.
11835 * charset.c: Ditto.
11836 * coffread.c: Ditto.
11837 * command.h: Ditto.
11838 * corelow.c: Ditto.
11839 * cp-abi.c: Ditto.
11840 * cp-namespace.c: Ditto.
11841 * cp-support.c: Ditto.
11842 * dbug-rom.c: Ditto.
11843 * dbxread.c: Ditto.
11844 * defs.h: Ditto.
11845 * dfp.c: Ditto.
11846 * dfp.h: Ditto.
11847 * dictionary.c: Ditto.
11848 * disasm.c: Ditto.
11849 * doublest.c: Ditto.
11850 * dwarf2-frame.c: Ditto.
11851 * dwarf2expr.c: Ditto.
11852 * dwarf2loc.c: Ditto.
11853 * dwarf2read.c: Ditto.
11854 * elfread.c: Ditto.
11855 * eval.c: Ditto.
11856 * event-loop.c: Ditto.
11857 * event-loop.h: Ditto.
11858 * exceptions.h: Ditto.
11859 * exec.c: Ditto.
11860 * expprint.c: Ditto.
11861 * expression.h: Ditto.
11862 * f-lang.c: Ditto.
11863 * f-valprint.c: Ditto.
11864 * findcmd.c: Ditto.
11865 * frame-base.c: Ditto.
11866 * frame-unwind.c: Ditto.
11867 * frame-unwind.h: Ditto.
11868 * frame.c: Ditto.
11869 * frame.h: Ditto.
11870 * gcore.c: Ditto.
11871 * gdb-stabs.h: Ditto.
11872 * gdb_assert.h: Ditto.
11873 * gdb_dirent.h: Ditto.
11874 * gdb_obstack.h: Ditto.
11875 * gdbcore.h: Ditto.
11876 * gdbtypes.c: Ditto.
11877 * gdbtypes.h: Ditto.
11878 * inf-ttrace.c: Ditto.
11879 * infcall.c: Ditto.
11880 * infcmd.c: Ditto.
11881 * inflow.c: Ditto.
11882 * infrun.c: Ditto.
11883 * inline-frame.h: Ditto.
11884 * language.c: Ditto.
11885 * language.h: Ditto.
11886 * libunwind-frame.c: Ditto.
11887 * libunwind-frame.h: Ditto.
11888 * linespec.c: Ditto.
11889 * linux-nat.c: Ditto.
11890 * linux-nat.h: Ditto.
11891 * linux-thread-db.c: Ditto.
11892 * machoread.c: Ditto.
11893 * macroexp.c: Ditto.
11894 * macrotab.c: Ditto.
11895 * main.c: Ditto.
11896 * maint.c: Ditto.
11897 * mdebugread.c: Ditto.
11898 * memattr.c: Ditto.
11899 * minsyms.c: Ditto.
11900 * monitor.c: Ditto.
11901 * monitor.h: Ditto.
11902 * objfiles.c: Ditto.
11903 * objfiles.h: Ditto.
11904 * osabi.c: Ditto.
11905 * p-typeprint.c: Ditto.
11906 * p-valprint.c: Ditto.
11907 * parse.c: Ditto.
11908 * printcmd.c: Ditto.
11909 * proc-events.c: Ditto.
11910 * procfs.c: Ditto.
11911 * progspace.c: Ditto.
11912 * progspace.h: Ditto.
11913 * psympriv.h: Ditto.
11914 * psymtab.c: Ditto.
11915 * record.c: Ditto.
11916 * regcache.c: Ditto.
11917 * regcache.h: Ditto.
11918 * remote-fileio.c: Ditto.
11919 * remote.c: Ditto.
11920 * ser-mingw.c: Ditto.
11921 * ser-tcp.c: Ditto.
11922 * ser-unix.c: Ditto.
11923 * serial.c: Ditto.
11924 * serial.h: Ditto.
11925 * solib-frv.c: Ditto.
11926 * solib-irix.c: Ditto.
11927 * solib-osf.c: Ditto.
11928 * solib-pa64.c: Ditto.
11929 * solib-som.c: Ditto.
11930 * solib-sunos.c: Ditto.
11931 * solib-svr4.c: Ditto.
11932 * solib-target.c: Ditto.
11933 * solib.c: Ditto.
11934 * somread.c: Ditto.
11935 * source.c: Ditto.
11936 * stabsread.c: Ditto.
11937 * stabsread.c: Ditto.
11938 * stack.c: Ditto.
11939 * stack.h: Ditto.
11940 * symfile-mem.c: Ditto.
11941 * symfile.c: Ditto.
11942 * symfile.h: Ditto.
11943 * symmisc.c: Ditto.
11944 * symtab.c: Ditto.
11945 * symtab.h: Ditto.
11946 * target-descriptions.c: Ditto.
11947 * target-memory.c: Ditto.
11948 * target.c: Ditto.
11949 * target.h: Ditto.
11950 * terminal.h: Ditto.
11951 * thread.c: Ditto.
11952 * top.c: Ditto.
11953 * tracepoint.c: Ditto.
11954 * tracepoint.h: Ditto.
11955 * ui-file.c: Ditto.
11956 * ui-file.h: Ditto.
11957 * ui-out.h: Ditto.
11958 * user-regs.c: Ditto.
11959 * user-regs.h: Ditto.
11960 * utils.c: Ditto.
11961 * valarith.c: Ditto.
11962 * valops.c: Ditto.
11963 * valprint.c: Ditto.
11964 * valprint.h: Ditto.
11965 * value.c: Ditto.
11966 * varobj.c: Ditto.
11967 * varobj.h: Ditto.
11968 * vec.h: Ditto.
11969 * xcoffread.c: Ditto.
11970 * xcoffsolib.c: Ditto.
11971 * xcoffsolib.h: Ditto.
11972 * xml-syscall.c: Ditto.
11973 * xml-tdesc.c: Ditto.
11974
9a2b4c1b
MS
119752011-01-05 Michael Snyder <msnyder@vmware.com>
11976
11977 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11978 * cli/cli-decode.c: Ditto.
11979 * cli/cli-dump.c: Ditto.
11980 * cli/cli-logging.c: Ditto.
11981 * cli/cli-script.c: Ditto.
11982 * cli/cli-setshow.c: Ditto.
11983 * common/signals.c: Ditto.
11984 * mi/mi-cmd-break.c: Ditto.
11985 * mi/mi-cmd-disas.c: Ditto.
11986 * mi/mi-cmd-stack.c: Ditto.
11987 * mi/mi-cmd-var.c: Ditto.
11988 * mi/mi-cmds.c: Ditto.
11989 * mi/mi-common.h: Ditto.
11990 * mi/mi-console.c: Ditto.
11991 * mi/mi-interp.c: Ditto.
11992 * mi/mi-main.c: Ditto.
11993 * osf-share/cma_attr.c: Ditto.
11994 * osf-share/cma_deb_core.h: Ditto.
11995 * osf-share/cma_debug_client.h: Ditto.
11996 * osf-share/cma_handle.h: Ditto.
11997 * osf-share/cma_mutex.h: Ditto.
11998 * osf-share/cma_stack_int.h: Ditto.
11999 * osf-share/cma_tcb_defs.h: Ditto.
12000 * python/py-auto-load.c: Ditto.
12001 * python/py-breakpoint.c: Ditto.
12002 * python/py-cmd.c: Ditto.
12003 * python/py-frame.c: Ditto.
12004 * python/py-objfile.c: Ditto.
12005 * python/py-param.c: Ditto.
12006 * python/py-progspace.c: Ditto.
12007 * python/py-symbol.c: Ditto.
12008 * python/py-value.c: Ditto.
12009 * python/python-internal.h: Ditto.
12010 * python/python.c: Ditto.
12011 * tui/tui-data.c: Ditto.
12012 * tui/tui-disasm.c: Ditto.
12013 * tui/tui-hooks.c: Ditto.
12014 * tui/tui-io.c: Ditto.
12015 * tui/tui-layout.c: Ditto.
12016 * tui/tui-regs.c: Ditto.
12017 * tui/tui-source.c: Ditto.
12018 * tui/tui-stack.c: Ditto.
12019 * tui/tui-win.c: Ditto.
12020 * tui/tui-windata.c: Ditto.
12021 * tui/tui-winsource.c: Ditto.
12022
44944448
JB
120232011-01-05 Joel Brobecker <brobecker@adacore.com>
12024
12025 * configure.ac, gdb.1: Copyright year update.
12026
ebedcab5
JK
120272011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12028
12029 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12030 this_pc_in_block, morestack_msym and morestack_name. Check for
12031 "__morestack" minimal symbol there.
12032
e5cc9f32
JB
120332011-01-03 Joel Brobecker <brobecker@adacore.com>
12034
12035 * symfile.c (find_sym_fns): Add call to dont_repeat.
12036
7b6bb8da
JB
120372011-01-01 Joel Brobecker <brobecker@adacore.com>
12038
12039 Copyright year update in most files (performed by copyright.sh).
12040
71ce852c
JB
120412011-01-01 Joel Brobecker <brobecker@adacore.com>
12042
12043 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12044
c3c1ebe8 12045For older changes see ChangeLog-2010.
c906108c
SS
12046\f
12047Local Variables:
12048mode: change-log
12049left-margin: 8
12050fill-column: 74
12051version-control: never
57da7796 12052coding: utf-8
c906108c 12053End:
This page took 1.792088 seconds and 4 git commands to generate.