* breakpoint.c (insert_breakpoint_locations): Rename `error' to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
eacd795a
AS
12011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
4 `error_flag'(-Wshadow).
5
ad13d8df
AS
62011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
7
8 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
9 `abfd'(-Wshadow).
10
917793af
AS
112011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
12
13 * annotate.c (annotate_array_section_begin): Rename `index' to
14 `idx'(-Wshadow).
15
d48ebb5b
AS
162011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
17
18 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
19 `idx'(-Wshadow).
20
9ed936ec
AS
212011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
22
23 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
24 `syscall' to `syscall_number'(-Wshadow).
25
a35ddb44
AS
262011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
27
28 * ada-lang.c (remove_extra_symbols): Rename `remove' to
29 `remove_p'(-Wshadow).
30
e5e61bd7
AS
312011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
32
33 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
34 `ren_sym'(-Wshadow).
35
d200ab1e
DE
362011-12-10 Doug Evans <dje@google.com>
37
b0df02fd
DE
38 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
39 debug_types_section. All uses updated.
40 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
41 to is_debug_types_section.
42
d200ab1e
DE
43 * python/py-auto-load.c (source_section_scripts): Call xfree
44 instead of free.
45
4511b1ba
YQ
462011-12-10 Hui Zhu <teawater@gmail.com>
47 Yao Qi <yao@codesourcery.com>
48
49 * tracepoint.c (start_tracing): Clear `inserted' flag.
50
df5a4bd3
HZ
512011-12-10 Hui Zhu <teawater@gmail.com>
52
53 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
54
1afeeb75
AS
552011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
56
57 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
58 `bpoint'(-Wshadow).
59
80e1d417
AS
602011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
61
62 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
63 `marker' variables to `sal2' and `tpmarker' respectively
64 (-Wshadow).
65
04ca3c22
AP
662011-12-09 Andrew Pinski <apinski@cavium.com>
67
68 * linespec.c (hash_address_entry): Use iterative_hash_object on each
69 field rather than the struct itself.
70
8a2c437b
TT
712011-12-09 Tom Tromey <tromey@redhat.com>
72
73 * breakpoint.c (compare_breakpoints): New function.
74 (clear_command): Remove duplicate breakpoints. Properly clean
75 up.
76
280711e7
MR
772011-12-08 Maciej W. Rozycki <macro@mips.com>
78 Maciej W. Rozycki <macro@codesourcery.com>
79
80 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
81 address chunks retrieved from decoded lui/addiu pairs.
82
4c2051c6
MR
832011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
84
85 * mips-tdep.c (extended_offset): Correct calculation.
86 (unpack_mips16): Correct bitfield positions used for extraction
87 of the immediate argument; fix sign-extension of same.
88 (extended_mips16_next_pc): Correct B instruction's offset
89 calculation. Correct register decoding of the BEQZ and BNEZ
90 as well as jump-register instructions. Handle compact jumps.
91
ff011ed7
TT
922011-12-08 Tom Tromey <tromey@redhat.com>
93
94 * objfiles.h (struct objfile): Remove obsolete comment.
95 * objfiles.c (build_objfile_section_table): Remove obsolete
96 comment.
97
7cd3876c
SS
982011-12-07 Stan Shebs <stan@codesourcery.com>
99
100 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
101 maintainer of the tic6x target.
102
35f73cfc
UW
1032011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
104
105 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
106 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
107 (arm_deal_with_atomic_sequence_raw): Likewise.
108 (arm_deal_with_atomic_sequence): Likewise.
109 (arm_software_single_step): Call it.
110 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
111
94eae614
UW
1122011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
113
114 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
115 where appropriate.
116 * s390-tdep.h: Likewise.
117
13b8d0c6
TG
1182011-12-07 Tristan Gingold <gingold@adacore.com>
119
120 * machoread.c (macho_symtab_read): Do not consider N_OPT as
121 a debugging stab. Improve complaint message.
122
5436df95
MR
1232011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
124
125 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
126 load adjustment if still within the prologue.
127
040dff2a
MR
1282011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
129
130 * mips-tdep.c (mips32_next_pc): Fix floating point condition
131 code mask.
132
754d7c78
MR
1332011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
134
135 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
136 of BLTZ* and BGEZ* instructions.
137
91912e4d
MR
1382011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
139
140 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
141 performed to determine whether an address refers to standard
142 MIPS or MIPS16 code.
143 (mips16_next_pc): Use mips_pc_is_mips16 instead of
144 is_mips16_addr.
145
f0ba3972
PA
1462011-12-06 Pedro Alves <pedro@codesourcery.com>
147
148 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
149 (breakpoint_xfer_memory): ... this. Change prototype. Handle
150 memory writes too.
151 * breakpoint.h (breakpoint_restore_shadows): Delete.
152 (breakpoint_xfer_memory): Declare.
153 * mem-break.c (default_memory_insert_breakpoint)
154 (default_memory_remove_breakpoint): Use target_write_raw_memory.
155 (memory_xfer_partial): Rename to ...
156 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
157 here.
158 (memory_xfer_partial): New.
159 (target_write_raw_memory): New.
160 * target.h (target_write_raw_memory): New.
161
31aba06f
DE
1622011-12-06 Doug Evans <dje@google.com>
163
164 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
165
f8eba3c6
TT
1662011-12-06 Joel Brobecker <brobecker@acacore.com>
167
168 * language.h (struct language_defn): Add new component
169 la_symbol_name_compare.
170 * symfile.h (struct quick_symbol_functions): Update the profile
171 of parameter "name_matcher" for the expand_symtabs_matching
172 method. Update the documentation accordingly.
173 * ada-lang.h (ada_name_for_lookup): Add declaration.
174 * ada-lang.c (ada_name_for_lookup): New function, extracted out
175 from ada_iterate_over_symbols.
176 (ada_iterate_over_symbols): Do not encode symbol name anymore.
177 (ada_expand_partial_symbol_name): Adjust profile.
178 (ada_language_defn): Add value for la_symbol_name_compare field.
179 * linespec.c: #include "ada-lang.h".
180 (iterate_name_matcher): Add language parameter. Replace call
181 to strcmp_iw by call to language->la_symbol_name_compare.
182 (decode_variable): Encode COPY if current language is Ada.
183 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
184 of name_matcher parameter. Adjust call to name_matcher.
185 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
186 (expand_partial_symbol_names): Update profile of parameter "fun".
187 * psymtab.h (expand_partial_symbol_names): Update profile of
188 parameter "fun".
189 * symtab.c (demangle_for_lookup): Update function documentation.
190 (search_symbols_name_matches): Add language parameter.
191 (expand_partial_symbol_name): Likewise.
192 * c-lang.c (c_language_defn, cplus_language_defn)
193 (asm_language_defn, minimal_language_defn): Add value for
194 la_symbol_name_compare field.
195 * d-lang.c (d_language_defn): Likewise.
196 * f-lang.c (f_language_defn): Ditto.
197 * jv-lang.c (java_language_defn): Ditto.
198 * m2-lang.c (m2_language_defn): Ditto.
199 * objc-lang.c (objc_language_defn): Ditto.
200 * opencl-lang.c (opencl_language_defn): Ditto.
201 * p-lang.c (pascal_language_defn): Ditto.
202 * language.c (unknown_language_defn, auto_language_defn)
203 (local_language_defn): Ditto.
204
2052011-12-06 Tom Tromey <tromey@redhat.com>
206
207 * linespec.c (iterate_over_all_matching_symtabs): Use
208 LA_ITERATE_OVER_SYMBOLS.
209 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
210 (find_function_symbols, decode_variable): Remove Ada special
211 case.
212 * language.h (struct language_defn) <la_iterate_over_symbols>: New
213 field.
214 (LA_ITERATE_OVER_SYMBOLS): New macro.
215 * language.c (unknown_language_defn, auto_language_defn)
216 (local_language_defn): Update.
217 * c-lang.c (c_language_defn, cplus_language_defn)
218 (asm_language_defn, minimal_language_defn): Update.
219 * d-lang.c (d_language_defn): Update.
220 * f-lang.c (f_language_defn): Update.
221 * jv-lang.c (java_language_defn): Update.
222 * m2-lang.c (m2_language_defn): Update.
223 * objc-lang.c (objc_language_defn): Update.
224 * opencl-lang.c (opencl_language_defn): Update.
225 * p-lang.c (pascal_language_defn): Update.
226 * ada-lang.c (ada_iterate_over_symbols): New function.
227 (ada_language_defn): Update.
228
2292011-12-06 Tom Tromey <tromey@redhat.com>
230 Joel Brobecker <brobecker@acacore.com>
231
232 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
233 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
234 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
235 PR shlibs/8929, PR shlibs/7393:
236 * python/py-type.c (compare_maybe_null_strings): Rename from
237 compare_strings.
238 (check_types_equal): Update.
239 * utils.c (compare_strings): New function.
240 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
241 location changes.
242 * tracepoint.c (scope_info): Update.
243 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
244 * symtab.h (iterate_over_minimal_symbols)
245 (iterate_over_some_symtabs, iterate_over_symtabs)
246 (find_pcs_for_symtab_line, iterate_over_symbols)
247 (demangle_for_lookup): Declare.
248 (expand_line_sal): Remove.
249 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
250 (lookup_symtab_callback): New functions.
251 (lookup_symtab): Rewrite.
252 (demangle_for_lookup): New function, extract from
253 lookup_symbol_in_language.
254 (lookup_symbol_in_language): Use it.
255 (iterate_over_symbols): New function.
256 (find_line_symtab): Update.
257 (find_pcs_for_symtab_line): New functions.
258 (find_line_common): Add 'start' argument.
259 (decode_line_spec): Update. Change argument to 'flags', change
260 interpretation.
261 (append_expanded_sal): Remove.
262 (append_exact_match_to_sals): Remove.
263 (expand_line_sal): Remove.
264 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
265 Remove.
266 <map_symtabs_matching_filename>: New field.
267 * stack.c (func_command): Only look in the current program space.
268 Use DECODE_LINE_FUNFIRSTLINE.
269 * source.c (line_info): Set pspace on sal. Check program space in
270 the loop. Use DECODE_LINE_LIST_MODE.
271 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
272 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
273 * python/python.c (gdbpy_decode_line): Update.
274 * psymtab.c (partial_map_expand_apply): New function.
275 (partial_map_symtabs_matching_filename): Rename from
276 lookup_partial_symbol. Update arguments.
277 (lookup_symtab_via_partial_symtab): Remove.
278 (psym_functions): Update.
279 * objc-lang.h (parse_selector, parse_method): Don't declare.
280 (find_imps): Update.
281 * objc-lang.c (parse_selector, parse_method): Now static.
282 (find_methods): Change arguments. Fill in a vector of symbol
283 names.
284 (uniquify_strings): New function.
285 (find_imps): Change arguments.
286 * minsyms.c (iterate_over_minimal_symbols): New function.
287 * linespec.h (enum decode_line_flags): New.
288 (struct linespec_sals): New.
289 (struct linespec_result) <canonical>: Remove.
290 <pre_expanded, addr_string, sals>: New fields.
291 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
292 (decode_line_full): Declare.
293 (decode_line_1): Update.
294 * linespec.c (struct address_entry, struct linespec_state, struct
295 collect_info): New types.
296 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
297 (eq_address_entry, maybe_add_address): New functions.
298 (total_number_of_methods): Remove.
299 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
300 functions.
301 (find_methods): Change arguments. Don't canonicalize input.
302 Simplify logic.
303 (add_matching_methods, add_constructors)
304 (build_canonical_line_spec): Remove.
305 (filter_results, convert_results_to_lsals): New functions.
306 (decode_line_2): Change arguments. Rewrite for new data
307 structures.
308 (decode_line_internal): Rename from decode_line_1. Change
309 arguments. Add cleanups. Update for new data structures.
310 (linespec_state_constructor, linespec_state_destructor)
311 (decode_line_full, decode_line_1): New functions.
312 (decode_indirect): Change arguments. Update.
313 (locate_first_half): Use skip_spaces.
314 (decode_objc): Change arguments. Update for new data structures.
315 Simplify logic.
316 (decode_compound): Change arguments. Add cleanups. Remove
317 fallback code, replace with error.
318 (struct decode_compound_collector): New type.
319 (collect_one_symbol): New function.
320 (lookup_prefix_sym): Change arguments. Update.
321 (compare_symbol_name, add_all_symbol_names_from_pspace)
322 (find_superclass_methods ): New functions.
323 (find_method): Rewrite.
324 (struct symtab_collector): New type.
325 (add_symtabs_to_list, collect_symtabs_from_filename): New
326 functions.
327 (symtabs_from_filename): Change API. Rename from
328 symtab_from_filename.
329 (collect_function_symbols): New function.
330 (find_function_symbols): Change API. Rename from
331 find_function_symbol. Rewrite.
332 (decode_all_digits): Change arguments. Rewrite.
333 (decode_dollar): Change arguments. Use decode_variable.
334 (decode_label): Change arguments. Rewrite.
335 (collect_symbols): New function.
336 (minsym_found): Change arguments. Rewrite.
337 (check_minsym, search_minsyms_for_name)
338 (add_matching_symbols_to_info): New function.
339 (decode_variable): Change arguments. Iterate over all symbols.
340 (symbol_found): Remove.
341 (symbol_to_sal): New function.
342 (init_linespec_result, destroy_linespec_result)
343 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
344 New functions.
345 (decode_digits_list_mode, decode_digits_ordinary): New functions.
346 * dwarf2read.c (dw2_map_expand_apply): New function.
347 (dw2_map_symtabs_matching_filename): Rename from
348 dw2_lookup_symtab. Change arguments.
349 (dwarf2_gdb_index_functions): Update.
350 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
351 * defs.h (compare_strings): Declare.
352 * cli/cli-cmds.c (compare_strings): Move to utils.c.
353 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
354 filter_sals.
355 (compare_symtabs, filter_sals): New functions.
356 * breakpoint.h (struct bp_location) <line_number, source_file>:
357 New fields.
358 (struct breakpoint) <line_number, source_file>: Remove.
359 <filter>: New field.
360 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
361 (momentary_breakpoint_from_master, add_location_to_breakpoint):
362 Update for changes to locations.
363 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
364 breakpoint.
365 (create_breakpoint_sal): Add 'filter' argument.
366 (remove_sal, expand_line_sal_maybe): Remove.
367 (create_breakpoints_sal): Remove 'sals' argument. Handle
368 pre-expanded sals and the filter.
369 (parse_breakpoint_sals): Use decode_line_full.
370 (check_fast_tracepoint_sals): Use get_sal_arch.
371 (create_breakpoint): Create a linespec_sals. Update.
372 (break_range_command): Use decode_line_full. Update.
373 (until_break_command): Update.
374 (clear_command): Update match conditions for linespec.c changes.
375 Use DECODE_LINE_LIST_MODE.
376 (say_where): Update for changes to locations.
377 (bp_location_dtor): Free 'source_file'.
378 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
379 (update_static_tracepoint): Update for changes to locations.
380 (update_breakpoint_locations): Disable ranged breakpoint if too
381 many locations match. Update.
382 (addr_string_to_sals): Use decode_line_full. Resolve all sal
383 PCs.
384 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
385 (decode_line_spec_1): Update. Change argument name to 'flags',
386 change interpretation.
387 * block.h (block_containing_function): Declare.
388 * block.c (block_containing_function): New function.
389 * skip.c (skip_function_command): Update.
390 (skip_re_set): Update.
391 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
392 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
393 * NEWS: Add entry.
394
3952011-12-06 Tom Tromey <tromey@redhat.com>
396
397 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
398 breakpoint's pspace to be NULL.
399 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
400 * breakpoint.c (init_raw_breakpoint): Conditionally set
401 breakpoint's pspace.
402 (init_breakpoint_sal): Don't set breakpoint's pspace.
403 (prepare_re_set_context): Conditionally switch program space.
404 (addr_string_to_sals): Check executing_startup on location's
405 program space.
406
4072011-12-06 Tom Tromey <tromey@redhat.com>
408
409 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
410 * breakpoint.c (should_be_inserted): Explicitly check if program
411 space is executing startup.
412 (describe_other_breakpoints): Update.
413 (disable_breakpoints_before_startup): Change executing_startup
414 earlier. Remove loop.
415 (enable_breakpoints_after_startup): Likewise.
416 (init_breakpoint_sal): Don't use bp_startup_disabled.
417 (create_breakpoint): Don't use bp_startup_disabled.
418 (update_global_location_list): Use should_be_inserted.
419 (bkpt_re_set): Update.
420
75c8c9d7
TT
4212011-12-06 Tom Tromey <tromey@redhat.com>
422
423 * python/lib/gdb/command/pretty_printers.py
424 (InfoPrettyPrinter.invoke1): Remove extra double quote.
425
7376e450
TT
4262011-12-06 Tom Tromey <tromey@redhat.com>
427
428 * NEWS: Add MI news.
429
c642a434
UW
4302011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
431
432 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
433 (S390_LAST_BREAK_REGNUM): Likewise.
434 (S390_SYSTEM_CALL_REGNUM): Likewise.
435 (S390_NUM_REGS): Update.
436
437 (s390_regmap_last_break): Add declaration.
438 (s390x_regmap_last_break): Likewise.
439 (s390_regmap_system_call): Likewise.
440
441 (tdesc_s390_linux32v1): Add declaration.
442 (tdesc_s390_linux32v2): Likewise.
443 (tdesc_s390_linux64v1): Likewise.
444 (tdesc_s390_linux64v2): Likewise.
445 (tdesc_s390x_linux64v1): Likewise.
446 (tdesc_s390x_linux64v2): Likewise.
447
448 * s390-tdep.c: Include new target description files
449 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
450 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
451 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
452 (s390_cannot_store_register): New function.
453 (s390_write_pc): Likewise.
454 (s390_dwarf_regmap): Add fields for new registers.
455 (s390_regmap_gregset): Likewise.
456 (s390x_regmap_gregset): Likewise.
457 (s390_regmap_fpregset): Likewise.
458 (s390_regmap_upper): Likewise.
459 (s390_regmap_last_break): New variable.
460 (s390x_regmap_last_break): Likewise.
461 (s390_regmap_system_call): Likewise.
462 (s390_last_break_regset): Likewise.
463 (s390x_last_break_regset): Likewise.
464 (s390_system_call_regset): Likewise.
465 (s390_upper_regset_sections): Rename to ...
466 (s390_linux64_regset_sections): ... this.
467 (s390_linux32_regset_sections): New variable.
468 (s390x_linux64_regset_sections): Likewise.
469 (s390_linux32v1_regset_sections): Likewise.
470 (s390_linux32v2_regset_sections): Likewise.
471 (s390_linux64v1_regset_sections): Likewise.
472 (s390_linux64v2_regset_sections): Likewise.
473 (s390x_linux64v1_regset_sections): Likewise.
474 (s390x_linux64v2_regset_sections): Likewise.
475 (s390_regset_from_core_section): Handle .reg-s390-last-break and
476 .reg-s390-system-call core file sections.
477 (s390_core_read_description): Check for presence of
478 .reg-s390-last-break and .reg-s390-system-call core file
479 sections and return appropriate target description.
480 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
481 "last_break" and "system_call" in target description. Install
482 appropriate gdbarch_core_regset_sections array.
483 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
484 (_initialize_s390_tdep): Initialize additional target descriptions.
485
486 * s390-nat.c: Include "elf/common.h".
487 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
488 (have_regset_last_break): New static variable.
489 (have_regset_system_call): Likewise.
490 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
491 (s390_native_collect): Likewise.
492 (fetch_regset, store_regset, check_regset): New functions.
493 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
494 and S390_SYSTEM_CALL_REGNUM.
495 (s390_linux_store_inferior_registers): Likewise.
496 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
497 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
498
499 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
500 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
501 (s390-linux32v1-expedite): Define.
502 (s390-linux32v2-expedite): Likewise.
503 (s390-linux64v1-expedite): Likewise.
504 (s390-linux64v2-expedite): Likewise.
505 (s390x-linux64v1-expedite): Likewise.
506 (s390x-linux64v2-expedite): Likewise.
507
508 * features/s390-linux32.xml: Add orig_r2 register.
509 * features/s390-linux64.xml: Likewise.
510 * features/s390x-linux64.xml: Likewise.
511 * features/s390-linux32v1.xml: New file.
512 * features/s390-linux32v2.xml: Likewise.
513 * features/s390-linux64v1.xml: Likewise.
514 * features/s390-linux64v2.xml: Likewise.
515 * features/s390x-linux64v1.xml: Likewise.
516 * features/s390x-linux64v2.xml: Likewise.
517
518 * features/s390-linux32.c: Regenerate.
519 * features/s390-linux64.c: Likewise.
520 * features/s390x-linux64.c: Likewise.
521 * features/s390-linux32v1.c: New generated file.
522 * features/s390-linux32v2.c: Likewise.
523 * features/s390-linux64v1.c: Likewise.
524 * features/s390-linux64v2.c: Likewise.
525 * features/s390x-linux64v1.c: Likewise.
526 * features/s390x-linux64v2.c: Likewise.
527
528 * regformats/s390-linux32.dat: Regenerate.
529 * regformats/s390-linux64.dat: Regenerate.
530 * regformats/s390x-linux64.dat: Regenerate.
531 * regformats/s390-linux32v1.dat: New generated file.
532 * regformats/s390-linux32v2.dat: Likewise.
533 * regformats/s390-linux64v1.dat: Likewise.
534 * regformats/s390-linux64v2.dat: Likewise.
535 * regformats/s390x-linux64v1.dat: Likewise.
536 * regformats/s390x-linux64v2.dat: Likewise.
537
336060f3
PA
5382011-12-05 Pedro Alves <pedro@codesourcery.com>
539
540 * linux-nat.c (resume_stopped_resumed_lwps): Call
541 registers_changed.
542
049e32d3
PA
5432011-12-05 Pedro Alves <pedro@codesourcery.com>
544
545 * breakpoint.c: Include record.h.
546 (breakpoints_always_inserted_mode): Return false when the record
547 target is in use.
548
5c03c7f9 5492011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
550
551 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
552 Reinstate perror_with_name call on ptrace error. Remove #if 0.
553 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
554 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
555
fbbd034e
AS
5562011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
557
558 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
559 `i'(-Wshadow).
560
a5ff8356 5612011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
562
563 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
564
5652011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
566
a5ff8356
AS
567 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
568 of `tdep'(-Wshadow).
569
93f2a35e
JK
5702011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
571
572 Fix compilation --without-expat.
573 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
574 from ...
575 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
576
2268b414
JK
5772011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
578 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
581 * features/library-list-svr4.dtd: New file.
582 * remote.c (PACKET_qXfer_libraries_svr4): New.
583 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
584 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
585 * solib-svr4.c (struct svr4_library_list): New.
586 [HAVE_LIBEXPAT]: Include xml-support.h.
587 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
588 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
589 [HAVE_LIBEXPAT] (svr4_library_list_children)
590 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
591 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
592 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
593 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
594 (svr4_read_so_list): Extend the corruption message by addresses.
595 (svr4_current_sos): New variable library_list, call
596 svr4_current_sos_via_xfer_libraries.
597 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
598
585861ea
JK
5992011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 PR threads/13448
602 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
603 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
604
9750bca9
JK
6052011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 PR breakpoints/13346
608 * dwarf2read.c (process_psymtab_comp_unit): Set
609 PSYMTABS_ADDRMAP_SUPPORTED.
610 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
611 validity. New field psymtabs_addrmap_supported.
612 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
613 psymtabs_addrmap_supported.
614 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
615 !PSYMTABS_ADDRMAP_SUPPORTED.
616 (dump_psymtab, maintenance_info_psymtabs): Print also
617 psymtabs_addrmap_supported.
618
f28c316a
DE
6192011-12-01 Doug Evans <dje@google.com>
620
621 * python/py-type.c (type_object_methods): Fix "array" doc string.
622
fc0ae648
AB
6232011-12-01 Andrew Burgess <aburgess@broadcom.com>
624
625 * source.c (print_source_lines_base): Fix missing braces on else
626 clause leading to additional output.
627
d6db1fab
UW
6282011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
629
630 * s390-nat.c (SUBOFF): Remove.
631 (s390_native_supply, s390_native_collect): New functions.
632 (supply_gregset, supply_fpregset): Use s390_native_supply.
633 (fill_gregset, fill_fpregset): Use s390_native_collect.
634
635 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
636 (s390_unwind_pseudo_register): New function.
637 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
638 registers instead of PC and CC.
639 (s390_backchain_frame_unwind_cache): Likewise.
640 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
641 full GPR pseudos.
642 (s390_trad_frame_prev_register): New function.
643 (s390_frame_prev_register): Use it.
644 (s390_sigtramp_frame_prev_register): Likewise.
645 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
646 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
647 special callback to unwind any pseudo.
648
649 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
650 * features/s390-core64.xml: Likewise.
651 * features/s390x-core64.xml: Likewise.
652 * features/s390-linux32.c: Regenerate.
653 * features/s390-linux64.c: Likewise.
654 * features/s390x-linux64.c: Likewise.
655
1dd635ac
UW
6562011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
657
658 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
659
0161e4b9
UW
6602011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
661
662 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
663 instruction. Add more diagnostic output.
664
0c36327f
AS
6652011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
666
667 * MAINTAINERS (Write After Approval): Add myself to the list.
668
b4264740
SD
6692011-11-29 Sanjoy Das <sdas@igalia.com>
670
671 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
672 (jit_bfd_try_read_symtab): Fix comments.
673
87326c78
DD
6742011-11-28 DJ Delorie <dj@redhat.com>
675
676 * NEWS: Mention RL78 simulator.
677
1e3a8f45
JB
6782011-11-28 Joel Brobecker <brobecker@adacore.com>
679
680 * symfile.h (struct quick_symbol_functions): Fix the documentation
681 of field map_matching_symbols, as symbols are sorted using
682 strcmp_iw_ordered, not strcmp_iw.
683
265e52c3
JB
6842011-11-28 Paul Hilfinger <hilfinger@adacore.com>
685
686 * symfile.h (struct quick_symbol_functions): Update the
687 documentation for field map_matching_symbols.
688
1a1d5513
JB
6892011-11-28 Joel Brobecker <brobecker@adacore.com>
690
691 * ada-lang.c (compare_names): Fix wrong return value in case
692 string1 starts with the same contents as string2, followed
693 by an underscore that do not start a symbol name suffix.
694
5d9c5995
PM
6952011-11-28 Phil Muldoon <pmuldoon@redhat.com>
696
697 PR python/13369
698 PR python/13374
699
700 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
701 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
702 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
703 exceptions.
704 * python/py-type.c (typy_strip_typedefs): Ditto.
705 (typy_legacy_template_argument): Ditto.
706 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
707 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
708
2bf50f6f
JB
7092011-11-27 Joel Brobecker <brobecker@acacore.com>
710
711 * remote.c (remote_get_tracepoint_status): Delete addrbuf
712 local variable. Avoid use of sprintf_vma.
713
744ab88c
SD
7142011-11-27 Sanjoy Das <sdas@igalia.com>
715
716 Fix regression in jit.exp.
717 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
718 (jit_register_code): Set the jit_objfile_data field to the correct
719 value.
720
46ad3598
UW
7212011-11-25  Uros Bizjak  <ubizjak@gmail.com>
722
723 * alpha-tdep.c (br_opcode): New.
724 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
725 (alpha_deal_with_atomic_sequence): New function.
726 (alpha_gdbarch_init): Handle single stepping of atomic sequences
727 with alpha_deal_with_atomic_sequence.
728
e4c5f296
TG
7292011-11-24 Tristan Gingold <gingold@adacore.com>
730
731 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
732 fields. Add oso_sym, end_sym and nbr_syms.
733 (macho_register_oso): Change interface.
734 (macho_symtab_add_minsym): New function.
735 (macho_symtab_read): Rewritten.
736 (get_archive_prefix_len): Remove trailing blanks.
737 (oso_el_compare_name): Add comment.
738 (struct macho_sym_hash_entry): New structure.
739 (macho_relocate_common_syms): Remove.
740 (macho_sym_hash_newfunc): New function.
741 (macho_resolve_oso_sym_with_minsym): Likewise.
742 (macho_add_oso_symfile): Rewritten.
743 (macho_symfile_read_all_oso): Remove trailing blanks.
744 Adjust code to free oso vector.
745 (macho_symfile_read): Likewise.
746 Move code to initialize minimal symbol
747
130854df
MR
7482011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
749
750 * mips-tdep.c (extended_offset): Fix formatting.
751
3d7bb9d9
DE
7522011-11-23 Doug Evans <dje@google.com>
753
754 * dwarf2read.c (dw2_lookup_symtab): Add comment.
755 (dw2_expand_symtabs_with_filename): Ditto.
756 (dw2_expand_symtabs_matching): Ditto.
757 (dw2_map_symbol_filenames): Ditto.
758
1fbf5ada
JB
7592011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
760
761 * ada-lang.c (assign_aggregate): Minor reformatting.
762
d984108d
JB
7632011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
764
765 * ada-lang.c (assign_aggregate): Remove declaration of local
766 variable `i' which is shadowing another variable with the same
767 name declared in the outer scope.
768
18af8284
JB
7692011-11-23 Joel Brobecker <brobecker@adacore.com>
770
771 * ada-lang.c (get_base_type): Renames base_type. Adjust all
772 calls throughout this file.
773
1fc7b5d7
JB
7742011-11-23 Joel Brobecker <brobecker@adacore.com>
775
776 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
777 FormatMessage.
778
36dfb11c
TT
7792011-11-22 Tom Tromey <tromey@redhat.com>
780
781 PR mi/8444:
782 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
783 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
784 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
785 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
786 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
787 (print_it_catch_syscall, print_it_catch_exec)
788 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
789 (bpstat_print): Add 'kind' argument. Handle
790 TARGET_WAITKIND_LOADED.
791 * infrun.c (normal_stop): Update for bpstat_print change. Don't
792 handle TARGET_WAITKIND_LOADED here.
793 * breakpoint.h (bpstat_print): Update.
794
5bd6aa83
TT
7952011-11-22 Tom Tromey <tromey@redhat.com>
796
797 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
798
f5afdc18
TT
7992011-11-22 Tom Tromey <tromey@redhat.com>
800
801 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
802 Use static_assert to check the size of
803 async_reason_string_lookup.
804 * common/gdb_assert.h (static_assert): New macro.
805
a3769e0c
AM
8062011-11-22 Alan Modra <amodra@gmail.com>
807
808 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
809 destination calculation. Don't expect >> to sign extend. Don't
810 add a break if branch lands inside the sequence anywhere.
811
56767571
KS
8122011-11-21 Keith Seitz <keiths@redhat.com>
813
814 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
815 -var-evaluate-expression of an enumeration and fix expected result.
816 * gdb.mi/mi2-varvdisplay.exp: Likewise.
817
8443c207
KY
8182011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
819
820 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
821 the case where osdata->items is empty. Rename column names to a
822 canonical form to avoid problems with unusual column names.
823
97643830
YQ
8242011-11-21 Yao Qi <yao@codesourcery.com>
825
826 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
827
f196051f
SS
8282011-11-20 Stan Shebs <stan@codesourcery.com>
829
830 * NEWS: Mention tracepoint additions.
831 * breakpoint.h (struct tracepoint): New field traceframe_usage.
832 * breakpoint.c (print_one_breakpoint_location): Identify
833 tracepoints as such when reporting hit counts, report
834 trace buffer usage.
835 (create_tracepoint_from_upload): Copy status info.
836 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
837 add fields user_name, notes, start_time, stop_time.
838 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
839 * tracepoint.c (trace_user): New global.
840 (trace_notes): New global.
841 (trace_stop_notes): New global.
842 (start_tracing): Add argument and trace note handling.
843 (stop_tracing): Ditto.
844 (trace_start_command): Add notes argument.
845 (trace_stop_command): Ditto.
846 (trace_status_command): Report additional status info.
847 (trace_status_mi): Similarly.
848 (trace_save): Update, record tracepoint status.
849 (set_disconnected_tracing): Call target method directly.
850 (send_disconnected_tracing_value): Remove.
851 (set_trace_user): New function.
852 (set_trace_notes): New function.
853 (set_trace_stop_notes): New function.
854 (parse_trace_status): Handle additional status.
855 (parse_tracepoint_status): New function.
856 (parse_tracepoint_definition): Call it.
857 (tfile_get_tracepoint_status): New function.
858 (init_tfile_ops): Use it.
859 (_initialize_tracepoint): Add new setshows.
860 * target.h (struct target_ops): New methods to_get_tracepoint_status
861 and to_set_trace_notes.
862 (target_get_tracepoint_status): New macro.
863 (target_set_trace_notes): New macro.
864 * target.c (update_current_target): Add new methods.
865 * remote.c (remote_get_tracepoint_status): New function.
866 (remote_set_trace_notes): New function.
867 (init_remote_ops): Add them.
868 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
869 (mi_cmd_trace_stop): Ditto.
870
3623dc3a
SD
8712011-11-20 Sanjoy Das <sdas@igalia.com>
872
873 * jit.c: Include regcache.h.
874 (jit_gdbarch_data, jit_frame_unwind): New static variables.
875 (jit_unwind_reg_set_impl, free_reg_value_impl)
876 (jit_unwind_reg_get_impl, jit_frame_sniffer)
877 (jit_frame_unwind_stop_reason, jit_frame_this_id)
878 (jit_frame_prev_register, jit_dealloc_cache)
879 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
880 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
881 jit_prepend_unwinder.
882 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
883
1825a88d
SD
8842011-11-20 Sanjoy Das <sdas@igalia.com>
885
886 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
887 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
888 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
889 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
890 (finalize_symtab, jit_object_close_impl)
891 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
892 (free_objfile_data): New functions.
893 (_initialize_jit): Register jit_objfile_data with a proper cleanup
894 function.
895
784c47ee
SD
8962011-11-20 Sanjoy Das <sdas@igalia.com>
897
898 * jit.c: Include gdb-dlfcn.h.
899 (loaded_jit_reader, reader_init_fn_sym): New static variables.
900 (jit_reader_load, jit_reader_load_command)
901 (jit_reader_unload_command): New functions.
902 (_initialize_jit): Add commands "jit-reader-load" and
903 "jit-reader-unload".
904
a2d08b9e
SD
9052011-11-20 Sanjoy Das <sdas@igalia.com>
906
907 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
908 * config.in: Add new #define HAVE_LIBDL.
909 * configure.ac: Add check for -ldl.
910 * configure: Re-generated by autoconf.
911 * gdb-dlfcn.c: New file.
912 * gdb-dlfcn.h: New file.
913
b8e0a31c
SD
9142011-11-20 Sanjoy Das <sdas@igalia.com>
915
916 * config.in: Add new #defines: JIT_READER_DIR and
917 JIT_READER_DIR_RELOCATABLE.
918 * configure.ac: New GDB directory entry for jit-reader-dir.
919 * configure: Re-generated by autoconf.
920 * jit.c: New static variable: const char *jit_reader_dir.
921 (_initialize_jit): Relocate jit_reader_dir.
922
f997c383
SD
9232011-11-20 Sanjoy Das <sdas@igalia.com>
924
925 * Makefile.in: Add jit-reader.h as a header. Have it installed in
926 $(includedir)/gdb.
927 * configure.ac: Generate a correct value for TARGET_PTR for
928 jit-reader.h. Tell configure to generate jit-reader.h from
929 jit-reader.in.
930 * configure: Re-generated by autoconf.
931 * jit-reader.in: New file.
932 * jit.c: Include jit-reader.h.
933
dc8c0494
SD
9342011-11-20 Sanjoy Das <sdas@igalia.com>
935
936 * MAINTAINERS (Write After Approval): Add myself to the list.
937
01efb936
UW
9382011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
939
940 * findvar.c (read_frame_register_value): Respect value_offset
941 of the register value. Remove big-endian special case.
942
732f3f12
TT
9432011-11-18 Tom Tromey <tromey@redhat.com>
944
945 PR build/7196:
946 * remote.c (putpkt_for_catch_errors): New function.
947 (remote_kill): Use it.
948
bfccc43c
YQ
9492011-11-18 Yao Qi <yao@codesourcery.com>
950
951 * breakpoint.c (create_breakpoint): Produce query message according to
952 breakpoint's type.
953 Allocate tracepoint per correct type.
954 Don't check SALs for pending fast tracepoints.
955 * tracepoint.c (process_tracepoint_on_disconnect): New.
956 (disconnect_tracing): Call process_tracepoint_on_disconnect.
957
3ea46bff
YQ
9582011-11-18 Yao Qi <yao@codesourcery.com>
959
960 * breakpoint.c (install_breakpoint): Add one more parameter so that
961 update_global_location_list is called conditionally.
962 (create_fork_vfork_event_catchpoint): Update.
963 (create_syscall_event_catchpoint): Update.
964 (create_breakpoint_sal): Update.
965 (create_breakpoint_sal): Update. Call do_cleanups before
966 install_breakpoint.
967 * ada-lang.c (create_ada_exception_catchpoint): Update.
968 * breakpoint.h (install_breakpoint): Update declaration.
969
598cfb71
UW
9702011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
971
972 * spu-tdep.c (spu_return_value): Fix handling of
973 TYPE_CALLING_CONVENTION annotation.
974
caf4328c
UW
9752011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
976
977 * skip.c (skip_function_command): Work around uninitialized
978 variable warning.
979
2b54dda2
DM
9802011-11-16 David S. Miller <davem@davemloft.net>
981
982 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
983 'tv_usec' to long for printf since these fields have a type which
984 varies.
985
93bf33fd
DE
9862011-11-15 Doug Evans <dje@google.com>
987
988 * buildsym.c (add_symbol_to_list): Delete outdated comment.
989
9cc10fd1
PK
9902011-11-15 Paul Koning <paul_koning@dell.com>
991
992 * python/py-type.c (typy_get_composite): New function.
993 (typy_nonzero): New function.
994 (typy_values): Rename from typy_fields.
995 (typy_fields): New function.
996 (typy_length): Raise exception if not struct, union, or enum type.
997 (typy_getitem): Ditto.
998 (typy_has_key): Ditto.
999 (typy_make_iter): Ditto.
1000
c011a4f4
DE
10012011-11-15 Doug Evans <dje@google.com>
1002
1003 * NEWS: Mention new parameter basenames-may-differ.
1004 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1005 ! basenames_may_differ.
1006 * psymtab.c (lookup_partial_symtab): Ditto.
1007 * symtab.c (lookup_symtab): Ditto.
1008 (basenames_may_differ): New global.
1009 (_initialize_symtab): New parameter basenames-may-differ.
1010 * symtab.h (basenames_may_differ): Declare.
1011
865ecab4
LM
10122011-11-15 Pedro Alves <pedro@codesourcery.com>
1013 Luis Machado <lgustavo@codesourcery.com>
1014
1015 * auxv.c: Include observer.h.
1016 (auxv_inferior_data_cleanup): New.
1017 (invalidate_auxv_cache_inf): New.
1018 (invalidate_auxv_cache): New.
1019 (get_auxv_inferior_data): New.
1020 (auxv_inferior_data): New static global.
1021 (auxv_info): New structure.
1022 (target_auxv_search): Use get_auxv_inferior_data instead of
1023 target_read_alloc and don't free cached buffers.
1024 (fprint_target_auxv): Likewise
1025 (_initialize_auxv): Register per-inferior auxv cache and register
1026 observers to invalidate auxv cache when needed.
1027
ed59ded5
DE
10282011-11-14 Doug Evans <dje@google.com>
1029
1030 Make "!" an alias for "shell".
1031 * NEWS: Add mention.
1032 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1033 adding "!" command, always add it.
1034 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1035 command of length one.
1036
405f8e94
SS
10372011-11-14 Stan Shebs <stan@codesourcery.com>
1038 Kwok Cheung Yeung <kcy@codesourcery.com>
1039
1040 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1041 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1042 the minimum instruction size for fast tracepoints.
1043 * target.h (struct target_ops): Add new method
1044 to_get_min_fast_tracepoint_insn_len.
1045 (target_get_min_fast_tracepoint_insn_len): New.
1046 * target.c (update_current_target): Set up new target operation.
1047 * remote.c (remote_write_bytes_aux): Fix typo.
1048 (remote_get_min_fast_tracepoint_insn_len): New.
1049 (init_remote_ops): Initialize new field.
1050
3e05895e
TT
10512011-11-14 Tom Tromey <tromey@redhat.com>
1052
1053 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1054 (encode_actions): Likewise.
1055
1e4d1764
YQ
10562011-11-14 Yao Qi <yao@codesourcery.com>
1057
1058 * remote.c (struct remote_state): <install_in_trace> new field.
1059 (PACKET_InstallInTrace): New enum value.
1060 (remote_install_in_trace_feature): Support InstallInTrace.
1061 (remote_supports_install_in_trace): Likewise.
1062 (remote_protocol_features): Likewise.
1063 (_initialize_remote): Likewise.
1064 (remote_can_download_tracepoint): New.
1065 * target.h (struct target): New field
1066 `to_can_download_tracepoint'.
1067 (target_can_download_tracepoint): New macro.
1068 * target.c (update_current_target): Update.
1069 * breakpoint.h (struct bp_location): Add comment on field
1070 `duplicate'.
3ccd4ac6
YQ
1071 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1072 and tracepoint.
1e4d1764
YQ
1073 (remove_breakpoints): Don't remove tracepoints.
1074 (tracepoint_locations_match ): New.
1075 (breakpoint_locations_match): Call it.
1076 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1077 (download_tracepoint_locations): New.
1078 (update_global_location_list): Call it.
1079 * tracepoint.c (find_matching_tracepoint): Delete.
1080 (find_matching_tracepoint_location): Renamed from
1081 find_matching_tracepoint. Return bp_location rather than
1082 tracepoint.
1083 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1084 tracepoint is found.
1085
e8ba3115
YQ
10862011-11-14 Yao Qi <yao@codesourcery.com>
1087
1088 * target.h (struct target): <to_download_tracepoint> Change type
1089 of parameter from tracepoint to bp_location.
1090 * target.c (update_current_target): Update.
1091 * tracepoint.c (start_tracing): Update.
1092 * remote.c (remote_download_tracepoint): Remove loop for each location
1093 of a tracepoint.
1094
edcc485a
MR
10952011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1096
1097 * i386-nat.c (i386_insert_hw_breakpoint): Call
1098 i386_update_inferior_debug_regs.
1099 (i386_remove_hw_breakpoint): Likewise.
1100
3742cc8b
YQ
11012011-11-14 Yao Qi <yao@codesourcery.com>
1102
1103 * breakpoint.c (init_raw_breakpoint): Call
1104 add_location_to_breakpoint to replace duplicated code.
1105 (add_location_to_breakpoint): Adjust the breakpoint's
1106 address prior to allocating a location.
1107
71eba9c2 11082011-11-12 Matt Rice <ratmice@gmail.com>
1109
1110 * macrocmd.c (macro_no_macro_info): New function.
1111 (macro_expand_command): Use macro_no_macro_info.
1112 (macro_expand_once_command): Ditto.
1113 (info_macro_command): Add argument processing,
1114 move info_definitions_command here.
1115 (_initialize_macrocmd): Remove info definitions command.
1116 Add arguments to info macro help text.
1117 * NEWS: Replace info definitions command with new info macro options.
1118
731971ed
KS
11192011-11-11 Keith Seitz <keiths@redhat.com>
1120
1121 PR gdb/12843
1122 * linespec.c (locate_first_half): Keep ':' if it looks
1123 like it could be part of a Windows path starting with
1124 a drive letter.
1125
6953d224
PA
11262011-11-10 Pedro Alves <pedro@codesourcery.com>
1127
1128 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1129 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1130
0c94aa73
PA
11312011-11-10 Pedro Alves <pedro@codesourcery.com>
1132
1133 * target.c (target_waitstatus_to_string): Handle
1134 TARGET_WAITKIND_NO_RESUMED.
1135
f6b47be4
DE
11362011-11-10 Doug Evans <dje@google.com>
1137
74e2f255
DE
1138 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1139 `need_fullname'.
1140 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1141 (map_partial_symbol_filenames): Ditto. All callers updated.
1142 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1143 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1144 parameter need_fullname.
1145
256f06f3
DE
1146 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1147 * source.c (symtab_to_fullname): Ditto.
1148
50f182aa
DE
1149 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1150 * gdb-demangle.h: ... here. New file.
1151 * demangle.c: #include "gdb-demangle.h".
1152 (_initialize_demangler): Use initialize_file_ftype for prototype.
1153 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1154 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1155 from utils.c
1156 * utils.c: Update. #include "gdb-demangle.h".
1157 * symtab.h (asm_demangle): Delete.
1158 (demangle): Move declaration next to use.
1159 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1160 * dwarf2read.c: #include "gdb-demangle.h".
1161 * gnu-v2-abi.c: Ditto.
1162 * jv-typeprint.c: Ditto.
1163 * mdebugread.c: Ditto.
1164 * p-typeprint.c: Ditto.
1165 * stabsread.c: Ditto.
1166 * printcmd.c: Ditto.
1167 (asm_demangle): Delete declaration.
1168 * tui/tui-stack.c: #include "gdb-demangle.h".
1169
f6b47be4
DE
1170 * python/py-type.c (typy_fields_items): Call check_typedef.
1171
22355c90
JB
11722011-11-10 Joel Brobecker <brobecker@adacore.com>
1173
1174 * findvar.c (read_frame_register_value): Read the correct bytes
1175 from registers on big-endian architectures.
1176
bd119cf1 11772011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1178
1179 * procfs.c (load_syscalls): Make a cleanup.
1180 (open_procinfo_files): fd==0 is ok.
1181
0a86f364
JB
11822011-11-10 Joel Brobecker <brobecker@adacore.com>
1183
1184 * procfs.c (iterate_over_mappings): Call do_cleanups before
1185 returning.
1186
9bc118a5
DE
11872011-11-09 Doug Evans <dje@google.com>
1188
1189 * gdbtypes.c (check_typedef): Document that this function can
1190 throw an exception.
1191
a7860e76
TT
11922011-11-09 Tom Tromey <tromey@redhat.com>
1193
1194 PR c++/13342:
1195 * valops.c (value_full_object): Return early if real type is
1196 smaller than the enclosing type.
1197
60965737
YQ
11982011-11-08 Yao Qi <yao@codesourcery.com>
1199
1200 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1201
72a2e3dc
MI
12022011-11-08 Meador Inge <meadori@codesourcery.com>
1203
1204 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1205 register when the frame can't be determined.
1206 * arm-tdep.c (arm_analyze_prologue): Ditto.
1207
ce3b0ff7
SS
12082011-11-07 Stan Shebs <stan@codesourcery.com>
1209
1210 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1211
2b914b52
JB
12122011-11-07 Joel Brobecker <brobecker@adacore.com>
1213
1214 * infrun.c (handle_inferior_event): Minor reformatting.
1215
6f809020
DE
12162011-11-05 Doug Evans <dje@google.com>
1217
1218 * source.c (forget_cached_source_info_for_objfile): Move call to
1219 objfile->sf->qf->forget_cached_source_info outside of
1220 ALL_OBJFILE_SYMTABS loop.
1221 (forget_cached_source_info): Delete unused variable `s'.
1222
75d12218
JK
12232011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1224
1225 * i386-nat.c (dr_ref_count): Remove unused variable.
1226
e565b837
DE
12272011-11-05 Doug Evans <dje@google.com>
1228
1229 * main.c (captured_main): Set lim_at_start before calling
1230 make_command_stats_cleanup.
1231
0a1c4d10
DE
12322011-11-04 Doug Evans <dje@google.com>
1233
1234 * utils.c: #include "timeval-utils.h".
1235 (cmd_stats): Rename start_time to start_cpu_time.
1236 New member start_wall_time.
1237 (report_command_stats): Report wall time.
1238 (make_command_stats_cleanup): Record start wall time.
1239
a1d705ee
TT
12402011-11-04 Tom Tromey <tromey@redhat.com>
1241
1242 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1243
81de56be
RO
12442011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1245
1246 * coff-pe-read.c: Include defs.h before bfd.h.
1247
3ab1ec27
PM
12482011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1249
1250 PR Python/13345
1251
1252 * python/python.c (python_run_simple_file): Expand tilde in path.
1253
cd829959
PM
12542011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1255
1256 PR Python/13363
1257
1258 * python/py-type.c (typy_lookup_type): Do not return a type in
1259 an exception handler.
1260
080ad648
JK
12612011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 Eli Zaretskii <eliz@gnu.org>
1263
1264 * linux-nat.c (_initialize_linux_nat): Improve help
1265 for `info proc stat', `info proc status', `info proc cwd',
1266 `info proc cmdline' and `info proc exe'.
1267
3065dfb6
SS
12682011-11-02 Stan Shebs <stan@codesourcery.com>
1269
1270 String collection for tracepoints.
1271 * NEWS: Mention string collection.
1272 * common/ax.def (tracenz): New bytecode.
1273 * ax-gdb.h (trace_string_kludge): Declare.
1274 * ax-gdb.c: Include valprint.h and c-lang.h.
1275 (trace_string_kludge): New global.
1276 (gen_traced_pop): Add string case.
1277 (agent_command): Add string case.
1278 * tracepoint.h (decode_agent_options): Declare.
1279 * tracepoint.c: Include cli-utils.h.
1280 (decode_agent_options): New function.
1281 (validate_actionline): Call it.
1282 (encode_actions_1): Ditto.
1283 * target.h (struct target_ops): New method to_supports_string_tracing.
1284 (target_supports_string_tracing): New macro.
1285 * target.c (update_current_target): Add to_supports_string_tracing.
1286 * remote.c (struct remote_state): New field string_tracing.
1287 (remote_string_tracing_feature): New function.
1288 (remote_protocol_features): New feature tracenz.
1289 (remote_supports_string_tracing): New function.
1290 (init_remote_ops): Set to_supports_string_tracing.
1291
f179e162
JK
12922011-11-02 Pedro Alves <pedro@codesourcery.com>
1293 Jan Kratochvil <jan.kratochvil@redhat.com>
1294
1295 * linux-nat.c: Include cli/cli-utils.h.
1296 (enum info_proc_what): New.
1297 (linux_nat_info_proc_cmd): Rename to ...
1298 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1299 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1300 status_f and stat_f from WHAT. Throw error on extra parameters.
1301 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1302 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1303 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1304 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1305 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1306 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1307 `info proc cmdline', `info proc exe' and `info proc all' as real
1308 subcommands of `info proc'.
1309
7b35ec7f 13102011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1311
1312 * Makefile.in: (SFILES): Add skip.c.
1313 (HFILES_NO_SRCDIR): Add skip.h.
1314 (COMMON_OBS): Add skip.o.
1315 * skip.h, skip.c: New.
1316 * breakpoint.h (set_default_breakpoint): Remove.
1317 (get_sal_arch): Declare.
1318 * breakpoint.c: Remove default_breakpoint_valid,
1319 default_breakpoint_address, default_breakpoint_symtab,
1320 default_breakpoint_line, default_breakpoint_pspace variables.
1321 (get_sal_arch): Make public.
1322 (set_default_breakpoint): Remove.
1323 (parse_breakpoint_sals, create_breakpoint, clear_command,
1324 decode_line_spec_1): Remove uses of default_breakpoint variables;
1325 replaced with function calls into stack.c.
1326 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1327 * cli/cli-cmds.c: Add skiplist.
1328 (init_cmd_lists): Initialize skiplist.
1329 (init_cli_cmds): Fix comment (classes of commands appear in
1330 alphabetical order).
1331 * infrun.c (handle_inferior_event): Add check that we don't step into
1332 a function whose pc is marked for skip.
1333 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1334 last_displayed_addr, last_displayed_symtab, last_displayed_line
1335 variables.
1336 (set_last_displayed_sal): New static function.
1337 (print_frame_info): Switch call to set_default_breakpoint to call to
1338 set_last_displayed_sal.
1339 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1340 get_last_displayed_pspace, get_last_displayed_addr,
1341 get_last_displayed_symtab, get_last_displayed_line,
1342 get_last_displayed_sal): New public functions.
1343 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1344 get_last_displayed_pspace, get_last_displayed_addr,
1345 get_last_displayed_symtab, get_last_displayed_line,
1346 get_last_displayed_sal): Declare.
1347
b60e1588
JL
13482011-11-01 Justin Lebar <justin.lebar@gmail.com>
1349
1350 * MAINTAINERS (Write After Approval): Add myself to the list.
1351
d31647d2
YQ
13522011-10-29 Yao Qi <yao@codesourcery.com>
1353
1354 * infcmd.c (disconnect_command): Call disconnect_tracing.
1355
b1d96efd
JK
13562011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1357
1358 Code cleanup.
1359 * symtab.c (skip_prologue_sal): Code reformatting.
1360
4dfb2365
JK
13612011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1362
1363 PR symtab/13208
1364 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1365 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1366 SAI.
1367
0e5bf2a8
PA
13682011-10-28 Pedro Alves <pedro@codesourcery.com>
1369
1370 * linux-nat.c (linux_nat_filter_event): Remove `options'
1371 parameter, and dead code that used it. If we're handling a
1372 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1373 in our lwp list, re-add it.
1374 (check_zombie_leaders): New.
1375 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1376 wait for children with WNOHANG, and always wait for all children.
1377 Don't check for no resumed children upfront. Simplify wait loop.
1378 Check for zombie thread group leaders after handling all wait
1379 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1380 unwaited-for children left.
1381 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1382 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1383 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1384 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1385
821296b7
SA
13862011-10-28 Sterling Augustine <saugustine@google.com>
1387
1388 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1389 * symtab.c (free_completion_list): New function.
1390 (do_free_completion_list): Likewise.
1391 (default_make_symbol_completion_list_break_on): New variable
1392 back_to. Call make_cleanup and discard_cleanups.
1393 (make_source_files_completion_list): Likewise.
1394
03c3051a
PK
13952011-10-28 Paul Koning <paul_koning@dell.com>
1396
1397 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1398 * NEWS: Mention deep_items.
1399
8e7ebaf5
PA
14002011-10-28 Alen Skondro <askondro@gmail.com>
1401
8de33dc2 1402 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1403 defined.
1404
e0c6ef61
MI
14052011-10-27 Meador Inge <meadori@codesourcery.com>
1406
1407 * MAINTAINERS (Write After Approval): Add myself to the list.
1408
b56d6f31
JB
14092011-10-27 Joel Brobecker <brobecker@adacore.com>
1410
1411 * value.h (read_frame_register_value): Add declaration.
1412 * findvar.c (read_frame_register_value): New function.
1413 (value_from_register): Use read_frame_register_value
1414 instead of get_frame_register_value + value_contents_copy
1415 to get value contents.
1416
d234ef5c
DE
14172011-10-27 Doug Evans <dje@google.com>
1418
1419 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1420 source_script_from_stream if it may have been found on the search path.
1421 * python/py-auto-load.c (source_section_scripts): Pass full path to
1422 source_python_script_for_objfile.
1423 * python/python.c (source_python_script): Delete stream parameter.
1424 All callers updated.
1425 (source_python_script_for_objfile): Ditto.
1426 * python/python-internal.h (source_python_script_for_objfile): Update.
1427 * python/python.h (source_python_script): Update.
1428
d849d44f
TT
14292011-10-27 Tom Tromey <tromey@redhat.com>
1430
1431 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1432 (ada_sals_for_line): Remove declarations.
1433
2231f1fb
KP
14342011-10-27 Kevin Pouget <kevin.pouget@st.com>
1435
1436 Move unwind reasons to an external .def file
1437 * frame.c (frame_stop_reason_string): Rewrite using
1438 unwind_stop_reasons.def.
1439 * frame.h (enum unwind_stop_reason): Likewise.
1440 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1441 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1442 constants for bound-checking.
1443 * unwind_stop_reasons.def: New file.
1444 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1445 instead of a distinct value.
1446
f77b9a5d
PM
14472011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1448
1449 PR python/13331
1450
1451 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1452 (convert_values_to_python): Return on Python tuple allocation
1453 failure. Return NULL on value conversion error.
1454
76dce0be
PM
14552011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1456
1457 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1458 (bppy_set_task): Ditto.
1459 (bppy_delete_breakpoint): Ditto.
1460 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1461 (gdbpy_lookup_global_symbol): Ditto.
1462 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1463 * python/py-frame.c (frapy_is_valid): Ditto.
1464 (frame_info_to_frame_object): Ditto.
1465 * python/py-type.c (typy_lookup_type): Ditto.
1466 (typy_getitem): Ditto.
1467 (typy_has_key): Ditto.
1468 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1469
f17b6955
JB
14702011-10-26 Joel Brobecker <brobecker@adacore.com>
1471
1472 * gdbarch.h: Regenerate.
1473
86ba1042
JB
14742011-10-26 Meador Inge <meadori@codesourcery.com>
1475
1476 * gdbarch.sh (function_list): Use 'pstring' when printing
1477 'gcore_bfd_target'.
1478 * gdbarch.c: Regenerate.
1479
c34fd852
UW
14802011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1481
1482 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1483 and frame caches if PTID refers to all threads of a process.
1484
931bb47f
UW
14852011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1486
1487 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1488 to create_breakpoint.
1489
88aed45e
UW
14902011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1491
1492 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1493 (ppc_sysv_abi_push_dummy_call): Use it.
1494 (do_ppc_sysv_return_value): Likewise.
1495 (ppc64_sysv_abi_push_dummy_call): Likewise.
1496 (ppc64_sysv_abi_return_value): Likewise.
1497
3eaf3fa2
PK
14982011-10-26 Paul Koning <paul_koning@dell.com>
1499
1500 * python/lib/gdb/types.py (deepitems): New function.
1501
913460fc
PK
15022011-10-25 Paul Koning <paul_koning@dell.com>
1503
1504 PR python/13327
1505
1506 * python/py-value.c (value_to_value_object): Remove fetching of
1507 the value if it was lazy.
1508 (valpy_get_is_lazy): New function.
1509 (valpy_fetch_lazy): New function.
1510
2b5b9d09
JB
15112011-10-24 Joel Brobecker <brobecker@adacore.com>
1512
1513 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1514 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1515
e21ffe51
PA
15162011-10-24 Pedro Alves <pedro@codesourcery.com>
1517
1518 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1519 event, in non-stop, if not stopping, make sure the new lwp has
1520 last_resume_kind set to resume_continue. Assert that when we're
1521 resuming the new lwp, its last_resume_kind is resume_continue.
1522
7aee8dc2
PA
15232011-10-24 Pedro Alves <pedro@codesourcery.com>
1524
1525 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1526 already set when marking the event thread as not executing in
1527 non-stop mode.
1528
4b4e080e
PA
15292011-10-24 Pedro Alves <pedro@codesourcery.com>
1530
1531 * infrun.c (handle_inferior_event): Add debug output for
1532 TARGET_WAITKIND_NO_HISTORY.
1533
baacfb07
PM
15342011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1535
1536 * NEWS: Move set/show extended-prompt to "New Options". Expand
1537 description. Fix typos.
1538
8432bc41
PM
15392011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1540
1541 PR python/13310
1542
1543 * python/py-param.c (call_doc_function): Correctly deference on
1544 function exit.
1545
6cda5a20
JB
15462011-10-21 Joel Brobecker <brobecker@adacore.com>
1547
1548 * ada-tasks.c (print_ada_task_info): Fix computation of
1549 number of tasks displayed in command output.
1550
13294f7d
JK
15512011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1552 Ulrich Weigand <uweigand@de.ibm.com>
1553
1554 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1555 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1556 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1557 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1558 gdbarch_unwind_pc.
1559
460c1c54
CC
15602011-10-20 Cary Coutant <ccoutant@google.com>
1561
1562 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1563 section to...
1564 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1565 flag. Adjust all callers.
1566 (process_psymtab_comp_unit): Remove adjustment for type section.
1567
a10964d1
AR
15682011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1569
1570 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1571 arguments by adding OBJFILE. Instead of getting objfile from
1572 symbol's symtab, use new argument OBJFILE.
1573 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1574 arguments by adding OBJFILE.
1575 * gdb/dwarf2read.c (new_symbol_full): Change call to
1576 cp_scan_for_anonymous_namespaces to match new signature.
1577 * gdb/stabsread.c (define_symbol): Change call to
1578 cp_scan_for_anonymous_namespaces to match new signature.
1579
27ca1a5b
PM
15802011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1581
1582 PR python/13308
1583 PR python/13309
1584
1585 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1586 leak.
1587 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1588 leak. Delete unused variables.
1589
9df2fbc4
PM
15902011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1591
1592 PR python/12656
1593
1594 * python/py-frame.c (frapy_read_var): Use const struct *block.
1595 * python/py-type.c (typy_lookup_typename): Likewise.
1596 (typy_lookup_type): Likewise.
1597 (typy_legacy_template_argument): Likewise.
1598 (typy_template_argument): Likewise.
1599 (gdbpy_lookup_type): Likewise.
1600 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1601 * python/py-block.c (blpy_block_object): Likewise.
1602 (blpy_iter): Likewise.
1603 (blpy_get_start): Likewise.
1604 (blpy_get_end): Likewise.
1605 (blpy_get_function): Likewise.
1606 (blpy_get_superblock): Likewise.
1607 (set_block): Likewise.
1608 (block_to_block_object): Likewise.
1609 (block_object_to_block): Likewise.
1610 (blpy_is_valid): Likewise.
1611 (blpy_get_global_block): New function.
1612 (blpy_get_static_block): New function.
1613 (blpy_is_global): New function.
1614 (blpy_is_static): New function.
1615 * blockframe.c (block_innermost_frame): Likewise.
1616 * valops.c (value_of_variable): Likewise.
1617 * frame.h: Update prototypes.
1618 * python/python-internal.h: Likewise.
1619 * value.h: Likewise.
1620
4743b735
CC
16212011-10-19 Cary Coutant <ccoutant@google.com>
1622
1623 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1624 type_offset field.
1625
6caca83c
CC
16262011-10-19 Cary Coutant <ccoutant@google.com>
1627
1628 * dwarf2read.c (peek_abbrev_code): New function.
1629 (dw2_get_file_names): Check for dummy compilation units.
1630 (create_debug_types_hash_table): Likewise.
1631 (process_psymtab_comp_unit): Likewise.
1632 (load_partial_comp_unit): Likewise.
1633 (load_full_comp_unit): Likewise.
1634
43136979
AR
16352011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1636
1637 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1638 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1639 pt_phdr if PT_PHDR was found.
1640
0a07729b
TT
16412011-10-17 Joost van der Sluis <joost@cnoc.nl>
1642
1643 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1644 type or "<unnamed type"> when there is no name assigned.
1645 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1646 avoid a sigint when no name is assigned.
1647
21ae7a4d
JK
16482011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1649
1650 Revert:
1651 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 * dwarf2expr.c (ctx_no_read_reg): New function.
1653 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1654 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1655 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1656 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1657
32d1c362
DE
16582011-10-16 Doug Evans <dje@google.com>
1659
1660 * NEWS: Document python gdb.printing.register_pretty_printer's new
1661 `replace' parameter.
1662
da096638
KS
16632011-10-14 Keith Seitz <keiths@redhat.com>
1664
1665 PR c++/13225
1666 * eval.c (evaluate_subexp_standard): Do not construct
1667 an array of types; pass the value array directly to
1668 find_overload_match.
1669 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1670 (rank_function): Take an array of values instead of types.
1671 (rank_one_type): Add struct value * parameter.
1672 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1673 (rank_function): For each argument, pass the argument's
1674 value to rank_one_type.
1675 (rank_one_type): Add VALUE parameter.
1676 If the parameter type is a pointer and the argument type
1677 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1678 VALUE is zero.
1679 Update all calls to rank_one_type, passing NULL for new
1680 VALUE parameter.
1681 * valarith.c (value_user_defined_cpp_op): Do not construct
1682 an array of types; pass the value array directly to
1683 find_overload_match.
1684 * valops.c (find_overload_method_list): Take an array of
1685 values instead of types.
1686 Save the type of OBJP for later use.
1687 Update calls to find_oload_champ, and find_oload_champ_namespace.
1688 (find_oload_champ_namespace): Take an array of values instead
1689 of types.
1690 (find_oload_champ_namespace_loop): Likewise.
1691 (find_oload_champ): Likewise.
1692 (classify_oload_match): Inspect all arguments
1693 until INCOMPATIBLE is found. Return the worst badness found
1694 otherwise.
1695 (compare_parameters): Update call to rank_one_type.
1696 * value.h (find_overload_match): Take an array of values instead
1697 of types.
1698
3957565a
JK
16992011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1700
1701 Drop lazy lm_info reading.
1702 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1703 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1704 (lm_info_read): New function.
1705 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1706 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1707 lm_dynamic_from_link_map.
1708 (lm_next, lm_prev, lm_name): Remove.
1709 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1710 initialization incl. read_memory. No longer use lm_name.
1711 (svr4_free_so): Drop lm_info->lm freeing.
1712 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1713 explicit lm_addr and lm initialization.
1714 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1715 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1716 lm_name.
1717
cb08cc53
JK
17182011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1719 Paul Pluzhnikov <ppluzhnikov@google.com>
1720
1721 * defs.h (struct so_list): New forward declaration.
1722 (make_cleanup_free_so): New declaration.
1723 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1724 (svr4_free_so): Move the function here from downwards. Handle NULL
1725 so->lm_info.
1726 (svr4_free_library_list): New.
1727 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1728 Use more cleanups. Use new parameter ignore_first instead of
1729 ignore_first_link_map_entry.
1730 (svr4_current_sos): New variable ignore_first, initialize it. New
1731 variable back_to, use it for svr4_free_library_list protection.
1732 (svr4_free_so): Remove - move upwards.
1733 * utils.c: Include solist.h.
1734 (do_free_so, make_cleanup_free_so): New functions.
1735
22c05d8a
JK
17362011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 Fix internal error regression.
1739 * value.c (value_primitive_field): Handle value_optimized_out. Move
1740 packed bitfields comment.
1741
d930d06e
TT
17422011-10-13 Tom Tromey <tromey@redhat.com>
1743
1744 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1745 always released.
1746
2ff6b080
TT
17472011-10-13 Tom Tromey <tromey@redhat.com>
1748
1749 * python/py-type.c (typy_has_key): Make 'field' const.
1750
d6c5869f
LM
17512011-10-13 Luis Machado <lgustavo@codesourcery.com>
1752
1753 * remote.c (remote_save_trace_data): Invert comparison.
1754
a70633a2
LM
17552011-10-13 Luis Machado <lgustavo@codesourcery.com>
1756
1757 * tracepoint.c (trace_save_command): Use filename instead of
1758 args when printing.
1759
e103e986
JK
17602011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1763 if .size is 0.
1764
db24da6d
YQ
17652011-10-13 Yao Qi <yao@codesourcery.com>
1766
1767 PR gdb/12703
1768 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1769 whether insn is a 32-bit Thumb-2 instruction.
1770 (thumb_in_function_epilogue_p): Likewise.
1771 (thumb_get_next_pc_raw): Likewise.
1772 (arm_breakpoint_from_pc): Likewise.
1773
1d6edc3c
JK
17742011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1777 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1778 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1779 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1780 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1781 zero DATA.
1782 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1783 validity.
1784 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1785 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1786 clear DATA on zero SIZE.
1787
adabb602
DE
17882011-10-12 Doug Evans <dje@google.com>
1789
1790 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1791 header->first_die_offset here. All callers updated.
1792
5048e516
JK
17932011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Fix compatibility with texinfo versions older than 4.12.
1796 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1797 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1798 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1799 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1800 * configure: Regenerate.
1801 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1802 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1803 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1804
0574c78f
GB
18052011-10-12 Gary Benson <gbenson@redhat.com>
1806
1807 * breakpoint.h (pc_at_non_inline_function): Declare.
1808 * breakpoint.c (is_non_inline_function,
1809 pc_at_non_inline_function): New functions.
1810 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1811 if the stop is at a location where functions cannot be inlined.
1812
12d9289a
PA
18132011-10-12 Pedro Alves <pedro@codesourcery.com>
1814
1815 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1816 the core wanted them stopped, or if they now have a pending event
1817 to report.
ecf8e7f5
PA
1818 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1819 down to stop_and_resume_callback.
1820 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1821 having new pending events after calling linux_nat_filter_event.
12d9289a 1822
96408a79
SA
18232011-10-11 Sterling Augustine <saugustine@google.com>
1824
1825 * dwarf2read.c: Undo inadvertent changes in previous commit.
1826
9c6c53f7
SA
18272011-10-11 Sterling Augustine <saugustine@google.com>
1828
1829 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1830 logic.
1831
0e8aefe7
UW
18322011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1833
1834 * symfile.c (separate_debug_file_exists): Fix condition.
1835
349d1385
DM
18362011-10-11 David S. Miller <davem@davemloft.net>
1837
1838 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1839 static.
1840 * regcache.h (regcache_restore): Remove declaration.
1841
205c306f
DM
1842 * gdbarch.sh: New field 'long_long_align_bit'.
1843 * gdbarch.c, gdbarch.h: Regenerate.
1844 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1845 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1846
941b2081
JK
18472011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 Revert this part of:
1850 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 Support @entry in input expressions.
1852 * c-exp.y (ENTRY, unknown_cpp_name): New.
1853 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1854 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1855 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1856 (name_not_typename: ENTRY): New.
1857 (yylex): Recognize ENTRY.
1858
1859 Reimplement @entry in input expressions.
1860 * c-exp.y (ENTRY): New.
1861 (variable: name_not_typename ENTRY): New.
1862 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1863
3c4d7e12
PA
18642011-10-11 Pedro Alves <pedro@codesourcery.com>
1865
1866 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1867 parent and child's pids as soon as we detect a clone event.
1868 Adjust another debug message.
1869
ea23808b
PA
18702011-10-11 Pedro Alves <pedro@codesourcery.com>
1871
1872 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1873 not zombie instead of reading the whole file.
1874
904578ed
JK
18752011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1876
1877 Fix separate debuginfo warning with "remote:" access.
1878 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1879 * symfile.c (get_file_crc): New function with the code moved from ...
1880 (separate_debug_file_exists): ... this function, specifically variables
1881 buffer and count. New variable verified_as_different, set it. Remove
1882 file_crc initialization. Verify also if both files are not the same
1883 manually, if needed.
1884
51370a33
YQ
18852011-10-11 Yao Qi <yao@codesourcery.com>
1886
1887 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1888 to get address.
1889
0838fb57
DE
18902011-10-10 Doug Evans <dje@google.com>
1891
1892 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1893 libthread_db when we load libpthread or the main symbol file.
1894 (thread_db_inferior_created): New function.
1895 (_initialize_thread_db): Attach inferior_created observer.
1896 * linux-nat.c (linux_child_post_attach): Remove call to
1897 check_for_thread_db.
1898 (linux_child_post_startup_inferior): Ditto.
1899 * objfiles.h (OBJF_MAINLINE): Define.
1900 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1901 allocate_objfile when appropriate.
1902
623bd5b7
UW
19032011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1904
1905 PR gdb/13218
1906 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1907 Remove unused variables.
1908 (get_linux_version): Remove function.
1909 (_initialize_arm_linux_nat): Do not call it.
1910
79395f92
PA
19112011-10-10 Pedro Alves <pedro@codesourcery.com>
1912
1913 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1914 new clone lwp if the core asked it to stop. Don't pass on
1915 unexpected signals to the new clone; leave them pending instead.
1916
eff3df78
PA
19172011-10-10 Pedro Alves <pedro@codesourcery.com>
1918
1919 * linux-nat.c (resume_lwp): Remove redundant debug output.
1920
4b60df3d
PA
19212011-10-10 Pedro Alves <pedro@codesourcery.com>
1922
1923 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1924 last_resume_kind before clearing it, and use the copy instead to
1925 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1926 resume_clear_callback in the non-stop path too.
1927
6501578c
YQ
19282011-10-09 Yao Qi <yao@codesourcery.com>
1929
1930 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1931 Honor OPTIONS and VAL's type.
1932 (common_val_print, value_print): Update to pass one more parameter.
1933
5a56e9c5
DE
19342011-10-09 Doug Evans <dje@google.com>
1935
1936 Add new "alias" command.
1937 * NEWS: Mention new command.
1938 * command.h (valid_user_defined_cmd_name_p): Declare.
1939 * defs.h (make_cleanup_dyn_string_delete): Declare.
1940 * utils.c: #include "dyn-string.h".
1941 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1942 * cli/cli-cmds.c: #include "dyn-string.h".
1943 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1944 (init_cli_cmds): Add new command.
1945 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1946
509f0fd9
JK
19472011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 Fix compatibility with older GCCs.
1950 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1951 * stack.c (read_frame_arg): Initialize val_deref.
1952
2bda9cc5
JK
19532011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 Entry values NEWS entries, DWARF disassembly support.
1956 * NEWS: New entry values entry.
1957 (set print entry-values, show print entry-values)
1958 (set debug entry-values, show debug entry-values): New entries.
1959 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1960 indent. Remove variable start. Move header printing out. Respect
1961 INDENT. Support DW_OP_GNU_entry_value.
1962 (locexpr_describe_location_1): Move the header printing here, extend
1963 the disassemble_dwarf_expression passed parameters.
1964
a471c594
JK
19652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1966
1967 Display @entry parameter values even for references.
1968 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1969 coerce_ref_if_computed.
1970 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1971 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1972 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1973 existing push_dwarf_reg_entry_value call. Add new detection calling
1974 dwarf_block_to_dwarf_reg_deref. Update the error message.
1975 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1976 * dwarf2expr.h
1977 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1978 parameter deref_size, describe it in the comment.
1979 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1980 (dwarf_block_to_dwarf_reg_deref): New declaration.
1981 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1982 deref_size, describe it in the function comment. New variables
1983 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1984 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1985 describe it in the function comment. Fetch the alternative block
1986 accoring to DEREF_SIZE.
1987 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1988 (entry_data_value_free_closure, entry_data_value_funcs): New.
1989 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1990 outer_val, target_val, val and addr. Try to fetch and create also
1991 referenced value content.
1992 (pieced_value_funcs): NULL value for coerce_ref.
1993 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1994 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1995 coerce_ref_if_computed.
1996 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1997 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1998 * stack.c (read_frame_arg): Compare also dereferenced values.
1999 * value.c (value_computed_funcs): Make the parameter v const, use
2000 value_lval_const for it.
2001 (value_lval_const, coerce_ref_if_computed): New function.
2002 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2003 * value.h (struct lval_funcs): New field coerce_ref.
2004 (value_computed_funcs): Make the parameter v const.
2005 (value_lval_const, coerce_ref_if_computed): New declarations.
2006
36b11add
JK
20072011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2008
2009 Support @entry in input expressions.
2010 * c-exp.y (ENTRY, unknown_cpp_name): New.
2011 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2012 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2013 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2014 (name_not_typename: ENTRY): New.
2015 (yylex): Recognize ENTRY.
2016 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2017 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2018 Likewise.
2019 * parse.c (operator_length_standard): Likewise.
2020 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2021
3343315b
JK
20222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2023
2024 Display referenced values in backtraces.
2025 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2026 * stack.c (print_frame_arg): Likewise.
2027
ac71a68c
JK
20282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2029
2030 Make some lval_funcs methods to default on NULL.
2031 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2032 NULL.
2033 (value_assign): Check if lval_computed write method is NULL.
2034 * value.h (struct lval_funcs): Comment NULL values for read and write
2035 methods.
2036
e18b2753
JK
20372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 Display @entry parameter values (without references).
2040 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2041 New functions.
2042 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2043 New declarations.
2044 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2045 entry record.
2046 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2047 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2048 functions.
2049 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2050 (loclist_read_variable_at_entry): New function.
2051 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2052 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2053 DW_AT_location, call dwarf_block_to_sp_offset for it.
2054 * frame.h (print_entry_values_no, print_entry_values_only)
2055 (print_entry_values_preferred, print_entry_values_if_needed)
2056 (print_entry_values_both, print_entry_values_compact)
2057 (print_entry_values_default, print_entry_values): New declarations.
2058 (struct frame_arg): New field entry_kind.
2059 (read_frame_arg): New parameter entryargp.
2060 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2061 arg->entry_kind. Optionally print the `@entry' suffix.
2062 (list_args_or_locals): New variable entryarg, initialize it.
2063 Initialize also entry_kind of arg and entryarg. Conditionalize
2064 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2065 xfree for entryarg.error.
2066 * stack.c (print_entry_values_no, print_entry_values_only)
2067 (print_entry_values_preferred, print_entry_values_if_needed)
2068 (print_entry_values_both, print_entry_values_compact)
2069 (print_entry_values_default, print_entry_values_choices)
2070 (print_entry_values): New variables.
2071 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2072 print the `@entry' suffix, possibly in combination for
2073 print_entry_values_compact.
2074 (read_frame_arg): New parameter entryargp, new variables entryval,
2075 entryval_error and val_equal. Read in also entryargp, respect
2076 print_entry_values, compare the values using val_equal, fill in also
2077 argp->entry_kind (together with entryargp->entry_kind).
2078 (print_frame_args): New variable entryarg, initialize it.
2079 Conditionalize print_frame_arg for arg, add print_frame_arg for
2080 entryarg. Call xfree for entryarg.error.
2081 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2082 * symtab.h (struct symbol_computed_ops): New field
2083 read_variable_at_entry.
2084
93d86cef
JK
20852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2086
2087 Code reshuffle.
2088 * frame.h (struct frame_arg): New definition.
2089 (read_frame_arg): New declaration.
2090 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2091 (list_args_or_locals): ... the code here. New variable arg, call
2092 read_frame_arg and list_arg_or_local with it. Unify the
2093 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2094 arg.error.
2095 * stack.c (print_frame_arg): New functiom from the code of
2096 print_frame_args.
2097 (read_frame_arg): New function.
2098 (print_frame_args): Remove variable val. New variable arg, call
2099 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2100
2d6c5dc2
JK
21012011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2102
2103 Protect entry values against self tail calls.
2104 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2105 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2106
111c6489
JK
21072011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2108
2109 Recognize virtual tail call frames.
2110 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2111 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2112 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2113 * dwarf2-frame-tailcall.c: New file.
2114 * dwarf2-frame-tailcall.h: New file.
2115 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2116 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2117 REGS.PREV only after CIE execution.
2118 (struct dwarf2_frame_cache): New field tailcall_cache.
2119 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2120 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2121 parts, try to find entry_cfa_sp_offset. Call
2122 dwarf2_tailcall_sniffer_first.
2123 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2124 when appropriate.
2125 (dwarf2_frame_dealloc_cache): New function.
2126 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2127 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2128 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2129 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2130 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2131 * dwarf2loc.c (func_addr_to_tail_call_list)
2132 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2133 (call_site_find_chain_1, call_site_find_chain): New.
2134 * dwarf2loc.h (struct call_site_chain): New.
2135 (call_site_find_chain): New declaration.
2136 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2137 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2138 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2139 * stack.c (frame_info): Support also TAILCALL_FRAME.
2140
bb984ff1
JK
21412011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2142
2143 Tail call sites reader implementation.
2144 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2145 fill in TYPE_TAIL_CALL_LIST.
2146 * gdbtypes.h (struct func_type): New field tail_call_list.
2147 (struct call_site): New field tail_call_next.
2148 (TYPE_TAIL_CALL_LIST): New definition.
2149
8e3b41a9
JK
21502011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 Implement basic support for DW_TAG_GNU_call_site.
2153 * block.c: Include gdbtypes.h and exceptions.h.
2154 (call_site_for_pc): New function.
2155 * block.h (call_site_for_pc): New declaration.
2156 * defs.h: Include hashtab.h.
2157 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2158 declarations.
2159 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2160 ctx_no_push_dwarf_reg_entry_value.
2161 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2162 (dwarf_block_to_dwarf_reg): New function.
2163 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2164 (ctx_no_push_dwarf_reg_entry_value): New function.
2165 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2166 push_dwarf_reg_entry_value.
2167 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2168 declarations.
2169 * dwarf2loc.c: Include gdbcmd.h.
2170 (dwarf_expr_ctx_funcs): New forward declaration.
2171 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2172 (dwarf_expr_reg_to_entry_parameter)
2173 (dwarf_expr_push_dwarf_reg_entry_value): New.
2174 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2175 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2176 (needs_dwarf_reg_entry_value): New function.
2177 (needs_frame_ctx_funcs): Install it.
2178 (_initialize_dwarf2loc): New function.
2179 * dwarf2loc.h (entry_values_debug): New declaration.
2180 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2181 (read_call_site_scope): New forward declaration.
2182 (process_full_comp_unit): Copy call_site_htab.
2183 (process_die): Support DW_TAG_GNU_call_site.
2184 (read_call_site_scope): New function.
2185 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2186 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2187 (cleanup_htab): Delete.
2188 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2189 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2190 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2191 FIELD_LOC_KIND_DWARF_BLOCK.
2192 * gdbtypes.h (enum field_loc_kind): New entry
2193 FIELD_LOC_KIND_DWARF_BLOCK.
2194 (struct main_type): New loc entry dwarf_block.
2195 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2196 (TYPE_FIELD_DWARF_BLOCK): New.
2197 * python/py-type.c: Include dwarf2loc.h.
2198 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2199 internal_error call on unknown FIELD_LOC_KIND.
2200 * symtab.h (struct symtab): New field call_site_htab.
2201 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2202 (core_addr_hash, core_addr_eq): New functions.
2203
b6cdc2c1
JK
22042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 Code reshuffle.
2207 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2208 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2209 calling_convention under func_stuff there.
2210 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2211 (init_type) <TYPE_CODE_FUNC>: Likewise.
2212 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2213 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2214 * gdbtypes.h (enum type_specific_kind): Change
2215 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2216 (struct main_type) <type_specific>: Change calling_convention to
2217 func_stuff. Move calling_convention to ...
2218 (struct func_type): ... this new struct.
2219 (INIT_FUNC_SPECIFIC): New #define.
2220 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2221
181cebd4
JK
22222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2223
2224 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2225 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2226 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2227 ctx->ref_addr_size. Handle its invalid value.
2228 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2229 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2230 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2231 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2232 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2233 (dwarf2_per_cu_ref_addr_size): New function.
2234
c471e790
JK
22352011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 Code cleanup.
2238 * dwarf2read.c (per_cu_header_read_in): New function.
2239 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2240 variables cu_header_local and cu_headerp.
2241
741f5e3c
JK
22422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2243
2244 Fix initial language detection with -readnow.
2245 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2246 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2247 searches only for global symbols.
2248
a73d2258
JK
22492011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 Fix printed anonymous struct name.
2252 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2253 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2254 (anonymous_struct_prefix): New function.
2255 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2256 (dwarf2_name): Strip for anonymous structs any prefixes.
2257
749fd4ea
DE
22582011-10-07 Doug Evans <dje@google.com>
2259
1fa57852
DE
2260 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2261 `replace'.
2262
690a4937
DE
2263 * python/lib/gdb/printing.py: Whitespace cleanup.
2264
749fd4ea
DE
2265 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2266 warning.
2267
4c38200f
PA
22682011-10-07 Pedro Alves <pedro@codesourcery.com>
2269
2270 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2271 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2272 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2273 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2274 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2275 (arm_linux_remove_watchpoint): Adjust.
2276 * i386-linux-nat.c (i386_linux_dr_set_control)
2277 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2278 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2279 (ia64_linux_remove_watchpoint): Adjust.
2280 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2281 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2282 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2283 (ppc_linux_insert_mask_watchpoint)
2284 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2285 (ppc_linux_remove_watchpoint): Adjust.
2286 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2287 Adjust.
2288
b7ff339d
CV
22892011-10-07 Corinna Vinschen <vinschen@redhat.com>
2290
2291 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2292 (clear_win32_environment): New function for Cygwin to clear out
2293 Win32 environment.
2294 (windows_create_inferior): Prepare new environment from in_env
2295 for Cygwin, too.
2296
f287c1f3
PM
22972011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2298
5631e596 2299 PR python/13264
f287c1f3
PM
2300 * python/py-value.c (valpy_call): Check that arguments are
2301 a tuple.
2302 (is_intlike): Remove call to CHECK_TYPEDEF.
2303 (valpy_nonzero): Catch GDB exceptions.
2304 (valpy_absolute): Ditto.
2305 (valpy_lazy_string): Ditto.
2306 (valpy_call): Ditto.
2307 (valpy_get_is_optimized_out): Ditto.
2308 (valpy_long): Ditto.
2309 (valpy_float): Ditto.
2310 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2311 (valpy_richcompare): Ditto.
2312
03583c20
UW
23132011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2314
2315 * inferior.h (disable_randomization): Declare.
2316 * infrun.c (disable_randomization): New global variable.
2317 (show_disable_randomization): New function.
2318 (set_disable_randomization): Likewise.
2319 (_initialize_infrun): Install set/show disable-randomization
2320 commands.
2321 * linux-nat.c (disable_randomization): Remove.
2322 (show_disable_randomization): Likewise.
2323 (set_disable_randomization): Likewise.
2324 (_initialize_linux_nat): No longer install set/show
2325 disable-randomization commands here.
2326 (linux_nat_supports_disable_randomization): New function.
2327 (linux_nat_add_target): Install it.
2328 * remote.c (PACKET_QDisableRandomization): New enum value.
2329 (remote_protocol_packets): Support QDisableRandomization.
2330 (_initialize_remote): Likewise.
2331 (remote_supports_disable_randomization): New function.
2332 (init_remote_ops): Install it.
2333 (extended_remote_supports_disable_randomization): New function.
2334 (init_extended_remote_ops): Install it.
2335 (extended_remote_disable_randomization): New function.
2336 (extended_remote_create_inferior_1): Call it.
2337 * target.h (struct target_ops): Add to_supports_disable_randomization.
2338 (target_supports_disable_randomization): Add prototype.
2339 * target.c (target_supports_disable_randomization): New function.
2340 (find_default_supports_disable_randomization): Likewise.
2341 (init_dummy_target): Install it.
2342
20c168b5
KP
23432011-10-07 Kevin Pouget <kevin.pouget@st.com>
2344
2345 Allow Python notification of new object-file loadings.
2346 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2347 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2348 Add build rule for this file.
2349 * python/py-event.h (emit_new_objfile_event): New prototype.
2350 (newobjfile): New Python event emitter.
2351 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2352 Python event registry.
2353 * python/py-inferior.c: Include objfiles.h
2354 (python_new_objfile): New function.
2355 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2356 observers.
2357 * python/py-newobjfileevent.c: New file.
2358 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2359 prototype.
2360 * python/python.c (_initialize_python): Add
2361 gdbpy_initialize_new_objfile_event call.
2362 * NEWS: Add item for new Python event "gdb.newobjfile"
2363
b1c8db38
TG
23642011-10-05 Tristan Gingold <gingold@adacore.com>
2365
2366 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2367 Extract the ravenscar task name from the symbol for the atcb.
2368
0dab82e9
PK
23692011-10-04 Paul Koning <paul_koning@dell.com>
2370
2371 * python/py-type.c (typy_make_iter): Add forward declaration.
2372 (typy_fields_items): Use the gdb.Type iterator.
2373
84ad80e6
PK
23742011-10-04 Paul Koning <paul_koning@dell.com>
2375
2376 * NEWS: Add entry for Python gdb.Type mapping methods.
2377
cb6be26b
KP
23782011-10-04 Kevin Pouget <kevin.pouget@st.com>
2379
2380 PR python/12691: Add the inferior to Python exited event
2381 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2382 to exited_event.
2383 * python/py-event.h (emit_exited_event): Likewise
2384 * python/-inferior.c (python_inferior_exit): Likewise
2385
6005b210
JB
23862011-10-03 Joel Brobecker <brobecker@adacore.com>
2387
2388 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2389 in output of -ada-task-info GDB/MI command.
2390
75082e8c
JB
23912011-10-03 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.h (struct inferior): Declare.
2394 (print_ada_task_info): Add declaration.
2395 * ada-tasks.c (print_ada_task_info): Make non-static.
2396 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2397 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2398 * mi/mi-main.c: #include "ada-lang.h".
2399 (mi_cmd_list_features): Add "ada-task-info" to the list
2400 of supported features.
2401 (mi_cmd_ada_task_info): New function.
2402
7ed7d719
JB
24032011-10-03 Joel Brobecker <brobecker@adacore.com>
2404
2405 * python/python.c (python_run_simple_file): New function.
2406 (source_python_script, source_python_script_for_objfile):
2407 Replace call to PyRun_SimpleFile by call to
2408 python_run_simple_file.
2409
3fcaed38
PK
24102011-10-03 Paul Koning <paul_koning@dell.com>
2411
2412 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2413 (value_to_value_object): Fetch value if it was lazy.
2414
8e5c319d
JK
24152011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2416
2417 Code cleanup.
2418 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2419 Rearrange the code for it.
2420
dd11a36c
JB
24212011-10-02 Joel Brobecker <brobecker@adacore.com>
2422
2423 * breakpoint.c (bkpt_print_recreate): Add call to
2424 print_recreate_thread.
2425
723b724b
MF
24262011-09-29 Mike Frysinger <vapier@gentoo.org>
2427
2428 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2429 PTRACE_GETFDPIC_INTERP): Define.
2430
412946b6
YQ
24312011-09-28 Yao Qi <yao@codesourcery.com>
2432
2433 * symfile.c (add_symbol_file_command): Update message on usage.
2434
a73bb892
PK
24352011-09-28 Paul Koning <paul_koning@dell.com>
2436
2437 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2438 (typy_length, typy_get, typy_has_key, typy_make_iter)
2439 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2440 (typy_iterator_iter, typy_iterator_iternext)
2441 (typy_iterator_dealloc): New functions to implement standard
2442 Python mapping methods on gdb.Type object.
2443 (gdb.TypeIterator): New Python type.
2444 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2445
fe10a582
DM
24462011-09-28 David S. Miller <davem@davemloft.net>
2447
2448 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2449 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2450 * sparc-tdep.c (sparc_complex_floating_p): New function.
2451 (sparc32_store_arguments): Handle complex floats.
2452 (sparc32_extract_return_value): Likewise.
2453 (sparc32_store_return_value): Likewise.
2454 (sparc32_stabs_argument_has_addr): Likewise.
2455 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2456 (sparc64_store_floating_fields): Handle complex floats.
2457 (sparc64_store_arguments): Likewise.
2458 (sparc64_store_return_value): Likewise.
2459
c93dbcba
EZ
24602011-09-28 Eli Zaretskii <eliz@gnu.org>
2461
2462 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2463 before the change on 2006-12-09.
2464 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2465 generates the environment block for CreateProcessA, modulo the
2466 Cygwin-specific parts that are not needed here.
2467
f00c55f8
TG
24682011-09-27 Tristan Gingold <gingold@adacore.com>
2469
2470 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2471 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2472 (darwin_solib_get_all_image_info_addr_at_init): New function.
2473 (darwin_solib_read_all_image_info_addr): Likewise.
2474 (darwin_solib_create_inferior_hook): Use the above two functions.
2475 * darwin-nat.c (darwin_execvp): Renames retval to res.
2476 (darwin_read_write_inferior): Update comment.
2477 (darwin_read_dyld_info): New function.
2478 (darwin_xfer_partial): Handle DYLD_INFO.
2479
6710bf39
SS
24802011-09-27 Stan Shebs <stan@codesourcery.com>
2481
2482 Add return address collection for tracepoints.
2483 * tracepoint.c (encode_actions_1): Add case for $_ret.
2484 (validate_actionline): Check for $_ret.
2485 (trace_dump_actions): Ditto.
2486 * ax-gdb.h (gen_trace_for_return_address): Declare.
2487 * ax-gdb.c: Include arch-utils.h.
2488 (gen_trace_for_return_address): New function.
2489 (agent_command): Add return address special case.
2490 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2491 (amd64_gen_return_address): New function.
2492 (amd64_init_abi): Call it.
2493 * i386-tdep.c: Include ax.h and ax-gdb.h.
2494 (i386_gen_return_address): New function.
2495 (i386_init_abi): Call it.
2496 * arch-utils.h (default_gen_return_address): Declare.
2497 * arch-utils.c (default_gen_return_address): New function.
2498 * gdbarch.sh (gen_return_address): New method.
2499 * gdbarch.h, gdbarch.c: Regenerate.
2500
e04e5beb
JM
25012011-09-23 Joseph Myers <joseph@codesourcery.com>
2502
2503 PR gdb/13079
2504 * i386-tdep.c (i386_frame_align): New.
2505 (i386_gdbarch_init): Use i386_frame_align.
2506
f3d6df6d
YQ
25072011-09-23 Yao Qi <yao@codesourcery.com>
2508
2509 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2510 to get address.
2511
e69860f1
TG
25122011-09-22 Tristan Gingold <gingold@adacore.com>
2513
2514 * fork-child.c (fork_inferior): Add exec_fun parameter.
2515 Call exec_fun or execvp.
2516 * inferior.h: Adjust prototype.
2517 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2518 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2519 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2520 * procfs.c (procfs_create_inferior): Ditto.
2521 * darwin-nat.c (darwin_execvp): New function.
2522 (darwin_create_inferior): Use it.
2523
4b51d87b
YQ
25242011-09-22 Yao Qi <yao@codesourcery.com>
2525
2526 * infrun.c (context_switch): Print debug message when switching to
2527 a different thread.
2528
56b9d9ac
UW
25292011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2530
2531 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2532 complex and vector types.
2533 (s390_return_value_convention): Likewise.
2534
2535 (s390_value_from_register): Call check_typedef.
2536 (extend_simple_arg): Likewise.
2537 (alignment_of): Likewise.
2538 (s390_push_dummy_call): Likewise.
2539 (s390_return_value): Likewise.
2540
b2cd6b29
JM
25412011-09-21 Joseph Myers <joseph@codesourcery.com>
2542
2543 * event-top.c (async_disconnect): If an exception is thrown from
2544 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2545 catch_errors.
2546 * top.c (quit_cover): Return void and take no arguments.
2547 * top.h (quit_cover): Update prototype.
2548
67ba4e42
JM
25492011-09-20 Joseph Myers <joseph@codesourcery.com>
2550
2551 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2552 current_uiout, not uiout.
2553
562f943b
DE
25542011-09-19 Doug Evans <dje@google.com>
2555
2556 * python/py-auto-load.c (source_section_scripts): Fix file
2557 descriptor leak.
2558 * python/python.c (source_python_script_for_objfile): Tweak comments.
2559
34518530
YQ
25602011-09-18 Yao Qi <yao@codesourcery.com>
2561 Ulrich Weigand <ulrich.weigand@linaro.org>
2562
2563 Support displaced stepping for Thumb 16-bit insns.
2564 * arm-tdep.c (THUMB_NOP) Define.
2565 (thumb_copy_unmodified_16bit): New.
2566 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2567 (thumb_copy_alu_reg): New.
2568 (arm_copy_svc): Move some common code to ...
2569 (install_svc): ... here. New.
2570 (thumb_copy_svc): New.
2571 (install_pc_relative): New.
2572 (thumb_copy_pc_relative_16bit): New.
2573 (thumb_decode_pc_relative_16bit): New.
2574 (thumb_copy_16bit_ldr_literal): New.
2575 (thumb_copy_cbnz_cbz): New.
2576 (cleanup_pop_pc_16bit_all): New.
2577 (thumb_copy_pop_pc_16bit): New.
2578 (thumb_process_displaced_16bit_insn): New.
2579 (thumb_process_displaced_32bit_insn): New.
2580 (thumb_process_displaced_insn): process thumb instruction.
2581
2582 Support displaced stepping for Thumb 32-bit insns.
2583 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2584 (thumb2_copy_preload): New.
2585 (thumb2_copy_copro_load_store): New.
2586 (thumb2_copy_b_bl_blx): New.
2587 (thumb2_copy_alu_imm): New.
2588 (thumb2_copy_load_reg_imm): New.
2589 (thumb2_copy_load_literal): New
2590 (thumb2_copy_block_xfer): New.
2591 (thumb_32bit_copy_undef): New.
2592 (thumb_32bit_copy_unpred): New.
2593 (thumb2_decode_ext_reg_ld_st): New.
2594 (thumb2_decode_svc_copro): New.
2595 (decode_thumb_32bit_store_single_data_item): New.
2596 (thumb_copy_pc_relative_32bit): New.
2597 (thumb_decode_pc_relative_32bit): New.
2598 (decode_thumb_32bit_ld_mem_hints): New.
2599 (thumb2_copy_table_branch): New
2600 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2601 instructions.
2602
2b16b2e3
YQ
26032011-09-18 Yao Qi <yao@codesourcery.com>
2604
2605 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2606 (install_b_bl_blx): Likewise.
2607
0f6f04ba
YQ
26082011-09-17 Yao Qi <yao@codesourcery.com>
2609
2610 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2611 (install_load_store): ... this. New.
2612 Change parameter BYTE to SIZE.
2613 (arm_copy_ldr_str_ldrb_strb): Update caller.
2614 (arm_decode_ld_st_word_ubyte): Update caller.
2615
e2d96639
YQ
26162011-09-17 Yao Qi <yao@codesourcery.com>
2617
2618 * infrun.c (displaced_step_fixup): Move some code ...
2619 (displaced_step_restore): ... here. New function.
2620 (handle_inferior_event): Cleanup displaced stepping state for both
2621 child and parent when get forked or vforked event.
2622 * regcache.c (get_thread_arch_aspace_regcache): New function.
2623 get_thread_arch_regcache (): Call it.
2624
a8123151
JB
26252011-09-16 Joel Brobecker <brobecker@adacore.com>
2626
2627 * ada-tasks.c (print_ada_task_info): New function, merging
2628 short_task_info and info_tasks together. Reimplement using
2629 ui-out instead of printing to stdout directly. Move the code
2630 building and checking the task list here, instead of leaving it
2631 in info_tasks_command.
2632 (info_task): Move the code building and checking the task
2633 list here, instead of leaving it in info_tasks_command.
2634 (info_tasks_command): Delete code building and checking
2635 the task list - moved elsewhere. Update calls to info_tasks
2636 and info_task.
2637
fbf06824
JB
26382011-09-16 Joel Brobecker <brobecker@adacore.com>
2639
2640 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2641
34a0bc90
JB
26422011-09-16 Joel Brobecker <brobecker@adacore.com>
2643
2644 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2645
79779fa9
JB
26462011-09-16 Joel Brobecker <brobecker@adacore.com>
2647
2648 * ada-lang.h (ada_build_task_list): Remove parameter
2649 `warn_if_null'.
2650 * ada-tasks.c (ada_build_task_list): Remove parameter
2651 `warn_if_null'. Adjust implementation and documentation.
2652 (valid_task_id, ada_get_environment_task)
2653 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2654 (info_tasks_command): Adjust implementation.
2655 (task_command): Likewise.
2656 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2657 to ada_build_task_list.
2658
e225eb91
JB
26592011-09-16 Joel Brobecker <brobecker@adacore.com>
2660
2661 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2662 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2663 (ada_tasks_inferior_data_handle): New static global.
2664 (get_ada_tasks_inferior_data): New function.
2665 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2666 (ada_get_environment_task, iterate_over_live_ada_tasks)
2667 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2668 Adjust.
2669 (ada_set_current_inferior_known_tasks_addr): New function.
2670 (read_known_tasks, ada_build_task_list, short_task_info)
2671 (info_tasks, info_task, info_tasks_command, task_command_1)
2672 (task_command, ada_task_list_changed): Adjust.
2673 (ada_tasks_invalidate_inferior_data): New function.
2674 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2675 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2676 * ada-lang.h (struct inferior): Add declaration.
2677 (ada_task_list_changed): Update profile.
2678 * remote-wtx-pd.c: #include "inferior.h".
2679 (switch_to_pd_internal): Update call to ada_task_list_changed.
2680
6da9ca05
JB
26812011-09-16 Joel Brobecker <brobecker@adacore.com>
2682
2683 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2684 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2685 (atcb_fieldno): Delete these static globals.
2686 (struct ada_tasks_pspace_data): New struct.
2687 (ada_tasks_pspace_data_handle): New static global.
2688 (get_ada_tasks_pspace_data): New function.
2689 (ada_tasks_invalidate_pspace_data): New function.
2690 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2691 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2692 (_initialize_tasks): Create this module's per-progspace
2693 data handle.
2694
dccd3cbd
JB
26952011-09-16 Joel Brobecker <brobecker@adacore.com>
2696
2697 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2698
f877b031
TG
26992011-09-16 Tristan Gingold <gingold@adacore.com>
2700
2701 * fork-child.c (fork_inferior): Update comment. Use alloca
2702 instead of xmalloc for argv. Move len and shell_command
2703 declarations in the block where they are used.
2704 Only call execvp. Factorize failure code.
2705
ae0c443d
JK
27062011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2707
2708 Code cleanup.
2709 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2710 `exp_element' instead of an element of the same and make the function
2711 static.
2712 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2713 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2714 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2715 Change argument of `write_exp_elt' function call.
2716 Remove extra spaces from comments.
2717 * parser-defs.h (write_exp_elt): Remove prototype.
2718
5af65ec0
PK
27192011-09-15 Paul Koning <paul_koning@dell.com>
2720
2721 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2722 count of item appended to list.
2723 * python/py-type.c (typy_fields): Likewise.
2724
72be8ccc
PK
27252011-09-15 Paul Koning <paul_koning@dell.com>
2726
883640a8 2727 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2728
92f6badc
KP
27292011-09-15 Kevin Pouget <kevin.pouget@st.com>
2730
2731 PR threads/12628
2732 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2733 processes with multiple threads.
2734 (inf_has_multiple_thread_cb): New function.
2735 (inf_has_multiple_threads): New function.
2736
0672bf41 27372011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2738
2739 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2740 * python/py-inferior.c (GdbMethods): New Python method definition.
2741
6839b47f
KP
27422011-09-15 Kevin Pouget <kevin.pouget@st.com>
2743
2744 Handle multiple breakpoint hits in Python interface:
2745 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2746 variable to breakpoints.
2747 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2748 bps instead of single breakpoint. Fix some space typos.
2749 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2750 variable to breakpoints.
2751
672f9b60
KP
27522011-09-15 Kevin Pouget <kevin.pouget@st.com>
2753
2754 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2755 note if the breakpoint is internal.
2756
43675ae4
KP
27572011-09-15 Kevin Pouget <kevin.pouget@st.com>
2758
0672bf41 2759 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2760
15148d6a
PA
27612011-09-14 Pedro Alves <pedro@codesourcery.com>
2762
2763 * infrun.c (prepare_for_detach, wait_for_inferior)
2764 (fetch_inferior_event): Don't flush the register cache.
2765 * remote.c (struct stop_reply) <regcache>: Add comment.
2766
d83e736b
JK
27672011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 Remove excessive DWARF expressions memory duplication.
2770 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2771 for block.data.
2772 (indirect_pieced_value): Remove variable result. Remove variable
2773 back_to and its use for baton.data.
2774 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2775 block.data.
2776 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2777 Update the function comment.
2778
c65b3e0d
PA
27792011-09-13 Pedro Alves <pedro@codesourcery.com>
2780
2781 * inferior.h (ALL_INFERIORS): New.
2782 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2783 for a stopped thread.
2784 (thread_db_find_new_threads): Look for threads in all inferiors.
2785
a1398e0c
PA
27862011-09-13 Pedro Alves <pedro@codesourcery.com>
2787
2788 * breakpoint.c (update_watchpoint): Handle the case of the
2789 watchpoint to update not being in the breakpoint list yet.
2790 (hw_watchpoint_use_count): New, factored out from
2791 hw_watchpoint_used_count.
2792 (hw_watchpoint_used_count): Rename to ...
2793 (hw_watchpoint_used_count_others): ... this. Add `except'
2794 parameter. Don't count resources of `except'. Use
2795 hw_watchpoint_use_count.
2796
30596231
PA
27972011-09-13 Pedro Alves <pedro@codesourcery.com>
2798
2799 * gdbthread.h (enum thread_state): Moved here.
2800 (struct thread_info): Rename `executing_' field to `executing' and
2801 `state_' to `state'.
2802 * thread.c (enum thread_state): Moved to gdbthread.h.
2803 (new_thread, add_thread_silent, delete_thread_1)
2804 (any_live_thread_of_process, thread_alive, set_running)
2805 (set_running, is_thread_state, any_running, is_executing)
2806 (set_executing, finish_thread_state, print_thread_info)
2807 (do_captured_thread_select): Adjust.
2808
bede5f5f
JK
28092011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2812 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2813
4801a9a3
PA
28142011-09-12 Pedro Alves <pedro@codesourcery.com>
2815 Matt Rice <ratmice@gmail.com>
2816
2817 PR gdb/13175
2818
2819 * interps.c (struct interp) <interpreter_out>: Delete field.
2820 (interp_new): Remove the data and uiout parameters and adjust.
2821 (interp_set): Only set the current_uiout from the interpreter's
2822 uiout after initializing the interpreter. Adjust call to
2823 init_proc.
2824 (interp_ui_out): Adjust to call procs->ui_out_proc.
2825 (interp_data, interp_name): New.
2826 * interps.h (interp_init_ftype): Add `self' parameter.
2827 (interp_ui_out_ftype): New typedef.
2828 (struct interp_procs) <ui_out_proc>: New method pointer.
2829 (interp_new): Remove the data and uiout parameters.
2830 (interp_data, interp_name): Declare.
2831 * tui/tui-interp.c (tui_init): Adjust prototype.
2832 (tui_ui_out): New.
2833 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2834 tui_out here. Adjust call to interp_new.
2835 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2836 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2837 (cli_ui_out): New.
2838 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2839 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2840 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2841 Initialize mi->uiout depending on the mi_version as extracted from
2842 the interpreter's name.
2843 (mi_ui_out): New.
2844 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2845 interp_new. Don't allocate the ui_out's of the interpreters here.
2846
d0afda03 28472011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2848
d0afda03 2849 * solib.c (solib_used): New function.
59145f8c
AR
2850 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2851 by another so_list object before freeing it.
2852
bdaf8d4a
JK
28532011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2854
2855 Code cleanup.
2856 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2857 values.
2858
df15bd07
JK
28592011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2860
2861 Code cleanup.
2862 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2863 (amd64_skip_xmm_prologue): ... this new function. Describe its
2864 parameters. No longer use amd64_prologue_line_bug.
2865 * defs.h (producer_is_gcc_ge_4): New declaration.
2866 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2867 (process_full_comp_unit): Update its caller. Remove
2868 amd64_prologue_line_bug initialization.
2869 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2870 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2871
25289eb2
PA
28722011-09-09 Pedro Alves <pedro@codesourcery.com>
2873
2874 * linux-nat.h (enum resume_kind): New.
2875 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2876 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2877 resume_stop on the new lwp.
25289eb2
PA
2878 (add_lwp): Set last_resume_kind as resume_continue by default.
2879 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2880 (resume_lwp): New, factored out from resume_callback. Also check
2881 for pending status in lp->waitstatus.
2882 (resume_callback): Reimplement.
2883 (resume_clear_callback): Set last_resume_kind as resume_stop.
2884 (resume_set_callback): Set last_resume_kind as resume_continue.
2885 (linux_nat_resume, linux_handle_extended_wait): Set
2886 last_resume_kind.
2887 (running_callback): Also check lp->waitstatus for pending events.
2888 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2889 is resume_step.
2890 (stop_and_resume_callback): Don't re-resume if the core wanted the
2891 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2892 using an invalidated pointer.
2893 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2894 SIGSTOPs if the core wanted the LWP to stop.
2895 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2896 wanted the lwp to stop. If the core wanted the lwp to stop, and
2897 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2898 of TARGET_SIGNAL_STOP.
2899 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2900 here. Instead, signal the lwp, and set the last_resume_kind to
2901 resume_stop.
2902
f687d035
PA
29032011-09-09 Pedro Alves <pedro@codesourcery.com>
2904
2905 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2906 -1 (error), if the lwp exits right after attaching.
2907
bc587a6b
DE
29082011-09-08 Doug Evans <dje@google.com>
2909
63d97a20
DE
2910 * py-cmd.c: Some minor formatting fixes.
2911 (gdbpy_parse_command_name): Rename text arg to name, make const.
2912 All callers updated.
2913 * python-internal.h (gdbpy_parse_command_name): Update.
2914
bc587a6b
DE
2915 * cli/cli-decode.c (add_cmd): Add comment.
2916
08711b9a
JK
29172011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 PR breakpoints/12435
2920 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2921 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2922 * dwarf2read.c (process_full_comp_unit): Initialize
2923 amd64_prologue_line_bug.
2924 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2925
b2e7f004
JK
29262011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 Fix TUI screen corruption.
2929 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2930 batch_flag.
2931
8afd712c
JK
29322011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2933
2934 * findvar.c (read_var_value): Never return NULL, throw an error
2935 instead. Update the function comment. State symbol name in the error
2936 messages.
2937 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2938 read_var_value.
2939 * stack.c (print_frame_args): Likewise.
2940 * valops.c (value_of_variable): Likewise.
2941
b99b5f66
JK
29422011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2943
2944 * stack.c (print_frame_args): New variable except. Wrap
2945 read_var_value and common_val_print into TRY_CATCH.
2946
85bc8cb7
JK
29472011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2948
2949 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2950 caller to value_of_this.
2951 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2952 Twice.
2953 * valops.c (value_of_this): Remove parameter complain and variable ret.
2954 Update function comment. Never return NULL by this code.
2955 (value_of_this_silent): New function.
2956 * value.h (value_of_this): Remove parameter complain.
2957 (value_of_this_silent): New declaration.
2958
ede1849f
YQ
29592011-09-07 Yao Qi <yao@codesourcery.com>
2960
2961 * gdbthread.h (struct thread_info): Remove fields
2962 `stepping_through_solib_after_catch' and
2963 `stepping_through_solib_catchpoints'.
2964 * infrun.c (init_thread_stepping_state): Update.
2965 (process_event_stop_test, currently_stepping): Update.
2966 (currently_stepping_or_nexting_callback): Update.
2967
6aa27652
YQ
29682011-09-07 Yao Qi <yao@codesourcery.com>
2969
2970 * gdbthread.h (struct thread_info): Comment on field
2971 `step_after_step_resume_breakpoint'.
2972
00db5b94
PA
29732011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2974
2975 * remote.c (remote_console_output): Reindent.
2976
861152be
LM
29772011-09-06 Luis Machado <lgustavo@codesourcery.com>
2978
2979 * frame.c (has_stack_frames): Check for currently selected
2980 traceframe.
2981
ab821bc6
PA
29822011-09-06 Pedro Alves <pedro@codesourcery.com>
2983
2984 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2985 (set_async_annotation_level, set_async_prompt, pop_prompt)
2986 (push_prompt, new_async_prompt): Delete declarations.
2987 * top.h (get_prompt, set_prompt): Change prototype.
2988 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2989 declarations.
2990 * top.c (command_loop):
2991 (top_prompt): New global.
2992 (get_prefix, set_prefix, get_suffix, ): Delete.
2993 (get_prompt, set_prompt): Rewrite.
2994 (show_new_async_prompt): Rename to ...
2995 (show_prompt): ... this.
2996 (init_main): Adjust. Don't handle --annotate=2 here.
2997 * event-top.c (new_async_prompt): Delete.
2998 (the_prompts): Delete.
2999 (more_to_come): Make static.
3000 (display_gdb_prompt): Use top_level_prompt() to compute the top
3001 level prompt, and don't notify the before_prompt observers
3002 directly here. Always trick readline into not trying to display
3003 the prompt if sync_execution and displaying the primary prompt.
3004 If displaying a local/secondary prompt, always show it, even if
3005 sync_execution is set.
3006 (change_annotation_level): Delete.
3007 (top_level_prompt): New, based on change_annotation_level.
3008 (push_prompt, pop_prompt): Delete.
3009 (async_disable_stdin): No longer pushes prompt.
3010 (command_line_handler): No longer pushes or pops prompt. If more
3011 input is expected, call display_gdb_prompt with an explicit empty
3012 prompt.
3013 (async_stop_sig): Adjust.
3014 (set_async_annotation_level, set_async_prompt): Delete.
3015 * python/python.c (before_prompt_hook): Adjust.
3016
f1d90504
PA
30172011-09-05 Pedro Alves <pedro@codesourcery.com>
3018
3019 PR cli/13110
3020
3021 * infrun.c (fetch_inferior_event): Check if there's a selected
3022 thread before checking if the selected thread is executing.
3023
0f641c01
PA
30242011-09-05 Pedro Alves <pedro@codesourcery.com>
3025
3026 * inf-loop.c (execute_command): Don't check if the current thread
3027 if running before synchronously waiting for command completion.
3028 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3029 here.
3030 (normal_stop): Call async_enable_stdin here.
3031 * inf-loop.c (inferior_event_handler): Don't call
3032 async_enable_stdin, nor handle "set exec-done-display" here.
3033
30368258 30342011-09-04 Joel Brobecker <brobecker@adacore.com>
3035
3036 GDB 7.3.1 released.
3037
31916278
JB
30382011-09-04 Joel Brobecker <brobecker@adacore.com>
3039
3040 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3041
e8d56f18
JB
30422011-09-04 Joel Brobecker <brobecker@adacore.com>
3043
3044 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3045
5dd05d8c
JK
30462011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3049
7d8e6458 30502011-09-02 Matt Rice <ratmice@gmail.com>
3051
3052 PR gdb/10720
3053 * event-top.c (cli_command_loop): Replace readline setup with
3054 direct call to display_gdb_prompt.
3055 (display_gdb_prompt): Do not call observer mechanism during
3056 synchronous execution.
3057
84636d28
PA
30582011-09-02 Pedro Alves <pedro@codesourcery.com>
3059
3060 * linux-nat.c (in_pid_list_p): New.
3061 (linux_record_stopped_pid): Delete.
3062 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3063 already attached to the LWP. Return an indication if so.
3064 (linux_nat_filter_event): Adjust.
3065 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3066 returning an indication to ignore this thread.
3067
b4a14fd0
PA
30682011-09-02 Pedro Alves <pedro@codesourcery.com>
3069
3070 * top.c: Include interps.h.
3071 (execute_command): If the target can async, but the interpreter is
3072 in sync mode, synchronously wait for the command to finish before
3073 returning.
3074 (execute_command_to_string): Force the interpreter to sync mode.
3075 * infrun.c: Include interps.h.
3076 (fetch_inferior_event): Don't restore the prompt yet if the
3077 interpreter is in sync mode.
3078 * interps.c (interpreter_async): New global.
3079 * interps.h (interpreter_async): Declare.
3080 * inf-loop.c: Include interps.h.
3081 (inferior_event_handler): Don't print the language change or run
3082 breakpoint commands yet if the interpreter in is sync mode.
3083 * main.c (captured_command_loop): Flip the interpreter to async
3084 mode.
3085 * cli/cli-script.c: Include interps.h.
3086 (execute_user_command, while_command, if_command): Force the
3087 interpreter to sync mode.
3088 * python/python.c: Include interps.h.
3089 (python_command, execute_gdb_command): Force the interpreter to
3090 sync mode.
3091
c709acd1
PA
30922011-09-02 Pedro Alves <pedro@codesourcery.com>
3093
3094 * value.c (show_convenience): Catch errors thrown while printing
3095 each internal variable.
3096 * infrun.c (validate_siginfo_access): New function.
3097 (siginfo_value_read, siginfo_value_write): Call it.
3098
9655e943
JK
30992011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3100
3101 Revert:
3102 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3103 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3104 attribute.
3105
cb457ae2
YQ
31062011-08-29 Yao Qi <yao@codesourcery.com>
3107
3108 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3109 (cmp_name): New.
3110 (enable_break2): Update caller.
3111 * solib-frv.c (bfd_lookup_symbol): Removed.
3112 (cmp_name): New.
3113 (enable_break2): Update caller.
3114 * solib-pa64.c (bfd_lookup_symbol): Removed.
3115 (cmp_name): New.
3116 * solib-svr4.c (bfd_lookup_symbol): Removed.
3117 (cmp_name_and_sec_flags): New.
3118 (enable_break): Update caller.
3119 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3120 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3121 (gdb_bfd_lookup_symbol): New.
3122 * solib.h: Functions declarations.
3123
83d1a36a
YQ
31242011-08-29 Yao Qi <yao@codesourcery.com>
3125
3126 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3127 and solib-dsbt.o.
3128
c04b3e8f
JK
31292011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3130
3131 Fix TUI stepi on code without symbols.
3132 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3133 current PC instead.
3134
cb0fd152
JK
31352011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 Code cleanup.
3138 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3139 and the static keyword.
3140 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3141 Make prefix an array.
3142 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3143 * mi/mi-main.c (get_register): Remove stb initialization and the static
3144 keyword.
3145
91174723
JK
31462011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 Code cleanup - make mi_opt const.
3149 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3150 opts const.
3151 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3152 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3153 (mi_cmd_env_dir): Likewise.
3154 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3155 (mi_cmd_target_file_put): Likewise.
3156 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3157 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3158 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3159 (mi_valid_noargs): Make opts const.
3160 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3161 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3162 (mi_cmd_data_read_memory): Likewise.
3163 (mi_cmd_data_read_memory_bytes): Likewise.
3164 (mi_cmd_data_write_memory): Likewise.
3165
5068b8e8 31662011-08-26 Matt Rice <ratmice@gmail.com>
3167
3168 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3169 bcache_xmalloc, replace bcache_xmalloc with call to
3170 psymbol_bcache_init for psymbol_cache.
3171 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3172
a4f2ce05
JK
31732011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * inf-loop.c (inferior_event_handler): Add exception_print in
3176 INF_EXEC_COMPLETE.
3177
353d1d73
JK
31782011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3181 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3182 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3183 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3184 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3185 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3186 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3187 * infrun.c (fetch_inferior_event): Call
3188 make_bpstat_clear_actions_cleanup.
3189 * top.c (execute_command): New variable cleanup_if_error, call
3190 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3191 * utils.c (do_bpstat_clear_actions_cleanup)
3192 (make_bpstat_clear_actions_cleanup): New functions.
3193
3ced3da4
PA
31942011-08-26 Pedro Alves <pedro@codesourcery.com>
3195
3196 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3197 either the parent or the child forks. Rename a couple locals.
3198
a9f4bb21
PA
31992011-08-26 Pedro Alves <pedro@codesourcery.com>
3200
3201 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3202 library call. Avoid reading the `status' local if all waitpid
3203 calls failed.
3204
e5798bef
PA
32052011-08-26 Pedro Alves <pedro@codesourcery.com>
3206
3207 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3208 opening /proc/PID/task always succeeds.
3209
edb2aadf
AR
32102011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3211
3212 * linespec.c (symtab_from_filename): Check for the end of string.
3213
0d932b2f
MK
32142011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3215
3216 PR mi/11912
3217 * varobj.c (cplus_describe_child): Add the keyword
3218 'class' to the output of the method when dealing
3219 with a cast to a base class.
3220
e93ca019
JK
32212011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3222
3223 No functionality change.
3224 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3225 function comment a reference, new variables tp and bs, move here code
3226 from throw_exception.
3227 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3228 describe it in the comment.
3229 * exceptions.c (throw_exception): Remove variable tp, move the code for
3230 bpstat_clear_actions to bpstat_clear_actions.
3231
13da1c97
LM
32322011-08-24 Luis Machado <lgustavo@codesourcery.com>
3233
3234 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3235 * linux-nat.c: Include linux-procfs.h.
3236 (linux_proc_get_tgid): Move to ...
3237 * common/linux-procfs.c: ... here. New file.
3238 * common/linux-procfs.h: New file.
3239 * linux-thread-db.c: Include linux-procfs.h.
3240 * Makefile.in: Update dependencies.
3241 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3242 * config/arm/linux.mh: Likewise.
3243 * config/i386/linux.mh: Likewise.
3244 * config/i386/linux64.mh: Likewise.
3245 * config/ia64/linux.mh: Likewise.
3246 * config/m32r/linux.mh: Likewise.
3247 * config/m68k/linux.mh: Likewise.
3248 * config/mips/linux.mh: Likewise.
3249 * config/pa/linux.mh: Likewise.
3250 * config/pa/linux.mh: Likewise.
3251 * config/powerpc/linux.mh: Likewise.
3252 * config/powerpc/ppc64-linux.mh: Likewise.
3253 * config/powerpc/spu-linux.mh: Likewise.
3254 * config/sparc/linux.mh: Likewise.
3255 * config/sparc/linux64.mh: Likewise.
3256 * config/xtensa/linux.mh: Likewise.
3257
4e5c165d
HZ
32582011-08-24 Hui Zhu <teawater@gmail.com>
3259
3260 * tracepoint.c (cond_string_is_same): New function.
3261 (find_matching_tracepoint): Add condition check
3262 by cond_string_is_same.
3263
6e2f5b22
JK
32642011-08-23 Josh Matthews <josh@joshmatthews.net>
3265
3266 Fix build error in Darwin port.
3267 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3268
abf85f46
JK
32692011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 Code cleanup.
3272 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3273 (command_line_is_silent): New function.
3274 (bpstat_do_actions_1): No longer use commands_left, use
3275 command_line_is_silent for commands.
3276 (bpstat_alloc): Remove clearing of commands_left.
3277 (bpstat_stop_status): Remove initialization of commands_left, use
3278 command_line_is_silent.
3279 * breakpoint.h (struct bpstats): Remove commands_left.
3280
3a93a0c2
KS
32812011-08-18 Keith Seitz <keiths@redhat.com>
3282
3283 PR c++/12266
3284 * cp-name-parser.y (struct demangle_info): Remove unused
3285 member PREV.
3286 (d_grab): Likewise.
3287 (allocate_info): Change return type to struct demangle_info *.
3288 Always allocate a new demangle_info.
3289 Remove unused PREV pointer.
3290 (cp_new_demangle_parse_info): New function.
3291 (cp_demangled_name_parse_free): New function.
3292 (do_demangled_name_parse_free_cleanup): New function.
3293 (make_cleanup_cp_demangled_name_parse_free): New function.
3294 (cp_demangled_name_to_comp): Change return type to
3295 struct demangle_parse_info *.
3296 Allocate a new storage for each call.
3297 (main): Update usage for cp_demangled_name_to_comp
3298 API change.
3299 * cp-support.h (struct demangle_parse_info): New structure.
3300 (cp_demangled_name_to_comp): Update API change for
3301 return type.
3302 (cp_new_demangle_parse_info): Declare.
3303 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3304 (cp_demangled_name_parse_free): Declare.
3305 * cp-support.c (cp_canonicalize_string): Update API
3306 change for cp_demangled_name_to_comp.
3307 (mangled_name_to_comp): Likewise.
3308 Return struct demangle_parse_info, too.
3309 (cp_class_name_from_physname): Update mangled_name_to_comp
3310 API change.
3311 (method_name_from_physname): Likewise.
3312 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3313 (cp_remove_params): Likewise.
3314 * python/py-type.c (typy_legacy_template_argument): Likewise.
3315
3316 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3317 (cp_merge_demangle_parse_infos): Declare.
3318 * cp-support.c (ignore_typedefs): New file global.
3319 (copy_string_to_obstack): New function.
3320 (inspect_type): New function.
3321 (replace_typedefs): New function.
3322 (replace_typedefs_qualified_name): New function.
3323 (cp_canonicalize_string_no_typedefs): New function.
3324 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3325 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3326 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3327 instead of cp_canonicalize_string.
3328 (find_method): Likewise.
3329 (decode_compound): Before looking up the name, call
3330 cp_canonicalize_string_no_typedefs.
3331 (decode_variable): Likewise.
3332
fa3a4f15
PM
33332011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3334 Tom Tromey <tromey@redhat.com>
3335 Matt Rice <ratmice@gmail.com>
3336
3337 * python/lib/gdb/prompt.py: New file.
3338 * python/lib/gdb/command/prompt.py: New file.
3339 * NEWS: Document set extended-prompt and gdb.prompt library
3340
85661b1e
YQ
33412011-08-16 Yao Qi <yao@codesourcery.com>
3342
3343 * tic6x-linux-tdep.c: Move const arrays definition from here...
3344 * tic6x-tdep.c: to here ...
3345
11315641
YQ
33462011-08-14 Yao Qi <yao@codesourcery.com>
3347
3348 * NEWS: New port to Texas Instruments TMS320C6x.
3349
8cd64e00
YQ
33502011-08-14 Andrew Jenner <andrew@codesourcery.com>
3351 Bernd Schmidt <bernds@codesourcery.com>
3352 Yao Qi <yao@codesourcery.com>
3353
3354 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3355 * solib-dsbt.c: New file. Support DSBT shared object.
3356 * tic6x-linux-tdep.c: New file.
3357 * tic6x-tdep.c: New file.
3358 * tic6x-tdep.h: New file.
3359
78d85199
YQ
33602011-08-14 Andrew Stubbs <ams@codesourcery.com>
3361 Yao Qi <yao@codesourcery.com>
3362
3363 * remote.c (PACKET_qXfer_fdpic): New enum value.
3364 (remote_protocol_features): Add qXfer:fdpic:read packet.
3365 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3366 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3367 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3368
224bbe49
YQ
33692011-08-14 Yao Qi <yao@codesourcery.com>
3370
3371 Target description for tic6x.
3372 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3373 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3374 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3375 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3376 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3377 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3378 * features/tic6x-c64xp-linux.xml: New.
3379 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3380 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3381 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3382 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3383 * regformats/tic6x-c64xp.dat,
3384 regformats/tic6x-c62x-linux.dat: Generated.
3385 * regformats/tic6x-c64x-linux.dat,
3386 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3387 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3388 features/tic6x-*.c files.
3389 Add regformats/tic6x-*.dat files.
3390
457e09f0
DE
33912011-08-12 Doug Evans <dje@google.com>
3392
3393 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3394 * python/py-symbol.c (sympy_get_type): New function.
3395 (symbol_object_getset): Add "type".
3396
d20c1c3f
PA
33972011-08-12 Pedro Alves <pedro@codesourcery.com>
3398
3399 PR tui/13073
3400
3401 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3402 empty name.
3403 (tui_show_register_group): Don't store a byte buffer in the data
3404 element's value.
3405 (tui_register_format): Skip registers with an empty name.
3406 (tui_get_register): Store a struct value in the data element's
3407 value field instead of a byte buffer holding the raw register
3408 contents. Account for optimized-out and unavailable registers
3409 when comparing register contents.
3410
9d8fa392
PA
34112011-08-09 Pedro Alves <pedro@codesourcery.com>
3412
3413 * printcmd.c (current_display_number): Update comment.
3414 (disable_current_display_cleanup): Delete.
3415 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3416 catch errors thrown while evaluating and printing the display.
3417
401a70b8
TT
34182011-08-09 Tom Tromey <tromey@redhat.com>
3419
3420 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3421
7f86f058
PA
34222011-08-09 Pedro Alves <pedro@codesourcery.com>
3423
94b71cca 3424 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3425 * maint.c (maintenance_command): Ditto.
3426 * somread.c (som_symtab_read): Ditto.
3427 * solib.c (solib_find, solib_map_sections, update_solib_list)
3428 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3429 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3430 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3431 * solib-irix.c (locate_base, disable_break, enable_break)
3432 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3433 (irix_current_sos, irix_open_symbol_file_object)
3434 (irix_special_symbol_handling): Ditto.
3435 * solib-sunos.c (locate_base, first_link_map_member)
3436 (sunos_current_sos, disable_break, enable_break)
3437 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3438 Ditto.
3439 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3440 (open_symbol_file_object, svr4_current_sos, enable_break)
3441 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3442 Ditto.
3443 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3444 (frv_current_sos, enable_break, frv_special_symbol_handling)
3445 (frv_solib_create_inferior_hook): Ditto.
3446 * solist.h (struct target_so_ops): Extend the comments of the
3447 special_symbol_handling, current_sos and open_symbol_file_object
3448 methods.
3449
5e239b84
PM
34502011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3451
3452 * python/lib/gdb/__init__.py: Auto-load files in command and
3453 function directories.
3454 * python/python.c (finish_python_initialization): Use
3455 os.path.join.
3456 * python/lib/gdb/command/pretty_printers.py: Self register
3457 command.
3458 * NEWS: Document auto-loading.
3459
b6cede78
JK
34602011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3463 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3464 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3465
29d0bb3d
TT
34662011-08-08 Tom Tromey <tromey@redhat.com>
3467
3468 * breakpoint.c (clean_up_filters): Remove.
3469 (catch_syscall_split_args): Use VEC_cleanup.
3470
2f7fb8e4
JK
34712011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3472
3473 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3474 (main): Uncomment "Demangling error\n".
3475
d6c10e95
PP
34762011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3477
3478 * solib-target.c (segment_attributes): Make them static.
3479 (section_attributes, library_children, library_attributes): Likewise.
3480 (library_list_children, library_list_attributes): Likesise.
3481 (library_list_elements): Likewise.
3482
af6e93b2
PA
34832011-08-05 Pedro Alves <pedro@codesourcery.com>
3484
3485 * exceptions.c (throw_exception): Don't disable the current
3486 display.
3487 * printcmd.c (disable_current_display_cleanup): New function.
3488 (do_one_display): Install a cleanup to disable the current display
3489 if doing the display throws.
3490
6a1b1664
EZ
34912011-08-05 Eli Zaretskii <eliz@gnu.org>
3492
3493 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3494 initialization of the tp_new member to the corresponding
3495 gdbpy_initialize_* function.
3496 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3497 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3498 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3499 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3500 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3501
31a0ae49
JK
35022011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3503
3504 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3505 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3506 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3507 references to current_uiout.
3508
e0dd0826
PA
35092011-08-04 Pedro Alves <pedro@codesourcery.com>
3510
3511 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3512 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3513 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3514 * top.c (gdb_readline_wrapper): Adjust.
3515 * tui/tui-interp.c (tui_command_loop):
3516 (_initialize_tui_interp): Don't install it.
3517
79a45e25
PA
35182011-08-04 Pedro Alves <pedro@codesourcery.com>
3519
3520 * ui-out.h (uiout): Rename to ...
3521 (current_uiout): ... this.
3522 * ui-out.c (uiout): Rename to ...
3523 (current_uiout): ... this.
3524 * ada-lang.c (print_it_exception, print_one_exception)
3525 (print_mention_exception): Adjust.
3526 * breakpoint.c (watchpoint_check): Adjust.
3527 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3528 (default_collect_info, watchpoints_info, print_one_catch_fork)
3529 (print_one_catch_vfork, print_one_catch_syscall)
3530 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3531 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3532 (print_it_watchpoint, print_mention_watchpoint)
3533 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3534 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3535 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3536 (bkpt_print_mention, momentary_bkpt_print_it)
3537 (tracepoint_print_mention, update_static_tracepoint)
3538 (tracepoints_info, save_breakpoints): Adjust.
3539 * cli-out.c (field_separator): Adjust.
3540 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3541 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3542 * frame.c (get_current_frame): Adjust.
3543 * infcmd.c (run_command_1, print_return_value): Adjust.
3544 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3545 * infrun.c (print_end_stepping_range_reason): Adjust.
3546 (print_signal_exited_reason, print_exited_reason): Adjust.
3547 (print_signal_received_reason, print_no_history_reason): Adjust.
3548 * interps.c (interp_set): Adjust.
3549 * osdata.c (info_osdata_command): Adjust.
3550 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3551 * remote-fileio.c (remote_fileio_request): Adjust.
3552 * remote.c (show_remote_cmd): Adjust.
3553 * solib.c (info_sharedlibrary_command): Adjust.
3554 * source.c (print_source_lines_base): Adjust.
3555 * stack.c (print_stack_frame): Adjust.
3556 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3557 * symfile-mem.c (add_vsyscall_page): Adjust.
3558 * symfile.c (load_progress, generic_load)
3559 (print_transfer_performance): Adjust.
3560 * thread.c (info_threads_command, restore_selected_frame)
3561 (thread_command): Adjust.
3562 * top.c (make_cleanup_restore_ui_file): Adjust.
3563 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3564 (print_one_static_tracepoint_marker): Adjust.
3565 * cli/cli-cmds.c (print_disassembly): Adjust.
3566 * cli/cli-decode.c (print_doc_line): Adjust.
3567 * cli/cli-interp.c (safe_execute_command): Adjust.
3568 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3569 (handle_redirections): Adjust.
3570 * cli/cli-script.c (show_user_1): Adjust.
3571 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3572 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3573 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3574 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3575 (mi_cmd_env_dir): Adjust.
3576 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3577 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3578 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3579 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3580 (list_args_or_locals): Adjust.
3581 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3582 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3583 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3584 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3585 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3586 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3587 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3588 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3589 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3590 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3591 (list_available_thread_groups, mi_cmd_list_thread_groups)
3592 (mi_cmd_data_list_register_names)
3593 (mi_cmd_data_list_changed_registers)
3594 (mi_cmd_data_list_register_values, get_register)
3595 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3596 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3597 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3598 (mi_execute_command, mi_load_progress): Adjust.
3599 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3600 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3601 Adjust.
3602 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3603 * tui/tui-interp.c (tui_command_loop): Adjust.
3604 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3605
f9679975
PA
36062011-08-04 Pedro Alves <pedro@codesourcery.com>
3607
3608 * exceptions.c (struct catcher): Remove saved_uiout field.
3609 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3610 no longer save/resvore the global ui_out builder.
3611 (catch_exceptions_with_msg): Save/override/restore the global
3612 ui_out builder manually instead of relying on TRY_CATCH to do it.
3613 (catch_errors): Save/restore the global ui_out builder manually
3614 instead of relying on TRY_CATCH to do it.
3615 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3616 parameter.
3617 (TRY_CATCH): Adjust.
3618 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3619 the global ui_out builder manually instead of relying on TRY_CATCH
3620 to do it.
3621
934709f0
PW
36222011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3623
3624 * breakpoint.c (update_global_location_list): Ensure
3625 invariant 'first loc marked not duplicated and inserted,
3626 following locs marked duplicated/not inserted' is respected
3627 for multiple locations at the same address.
3628 (unduplicated_should_be_inserted) New function.
3629 (swap_insertion) New function.
3630
2421fe6f
JK
36312011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * stack.c (print_frame_arguments_choices): Comment typo fix.
3634
3fbb6ffa
TJB
36352011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3636
3637 Revert:
3638 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3639 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3640 argument. Update callers.
3641
fbe12357
PP
36422011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3643
3644 PR gdb/13045
3645 * doublest.c (convert_doublest_to_floatformat): Pass correct
3646 mantissa length to put_field.
3647
b1d288d3
JK
36482011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3649
3650 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3651 exception_print code path.
3652 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3653 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3654 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3655
311b5970
JK
36562011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3657
3658 Code cleanup.
3659 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3660 Remove, merge them into ...
3661 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3662 variable args and its initialization.
3663 (struct print_args_args, print_args_stub): Remove, merge them into
3664 print_frame.
3665 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3666 them into ...
3667 (do_gdb_disassembly): ... here. Remove variable args and its
3668 initialization.
3669 (print_frame): Remove variable args and its initialization, new
3670 variable gdbarch and numargs (from print_args_stub), inline here
3671 print_args_stub with a TRY_CATCH.
3672 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3673 them into ...
3674 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3675 New variable e, remove variable btargs and its initialization.
311b5970 3676
484a26a8
TG
36772011-08-01 Tristan Gingold <gingold@adacore.com>
3678
3679 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3680
c30eee59
TJB
36812011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3682
3683 * breakpoint.c (insert_bp_location): Document return value.
3684 (insert_breakpoint_locations): Fix documentation.
3685 (remove_breakpoints): Add documentation.
3686
f116073b
TJB
36872011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3688
3689 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3690 argument. Update callers.
3691
65aa373f
JK
36922011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 * stack.c (print_frame_info): Comment typo fix.
3695
a50242fb
SA
36962011-07-29 Sterling Augustine <saugustine@google.com>
3697
3698 * MAINTAINERS (Write After Approval): Add myself to the list.
3699
267f6504
TT
37002011-07-29 Tom Tromey <tromey@redhat.com>
3701
3702 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3703 (library_list_start_segment): Update.
3704 (library_list_start_section): Update.
3705
00bd41d6
PM
37062011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3707
3708 * varobj.c (value_get_print_value): Move hint check later into the
3709 function. Comment function. Free thevalue before reusing it.
3710
18a46dbe
JK
37112011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3712 Pedro Alves <pedro@codesourcery.com>
3713
3714 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3715 value_one.
3716 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3717 Assert the result kind.
3718 * value.h (value_one): Remove parameter lv.
3719
bb7da2bf
JK
37202011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 Fix crash on lval_computed values.
3723 * valops.c (value_zero): Use not_lval for lval_computed.
3724
2d5213f8
TT
37252011-07-27 Tom Tromey <tromey@redhat.com>
3726
3727 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3728 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3729
11081198
JK
37302011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3731
3732 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3733 "ptype" by their typedefs difference.
3734
3c6e0cb3
JK
37352011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 * dwarf2expr.c (ctx_no_read_reg): New function.
3738 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3739 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3740 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3741 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3742
523f3620
JK
37432011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3744
3745 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3746 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3747 file.
3748 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3749 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3750 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3751 (ctx_no_get_base_type): Move the functions here.
3752 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3753 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3754 (ctx_no_get_base_type): New declarations.
3755
24d3216f
TT
37562011-07-27 Tom Tromey <tromey@redhat.com>
3757
3758 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3759 entries.
3760 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3761 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3762
5005c8a9
PP
37632011-07-26 Sterling Augustine <saugustine@google.com>
3764
3765 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3766 ULONGEST.
3767 (dump_bfd_file): Likewise.
3768
480a3f21
PW
37692011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3770
3771 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3772 (remote_hw_watchpoint_length_limit): New variable.
3773 (_initialize_remote) add set,show cmds for this new variable.
3774 * gdb.texinfo: document these new commands.
3775 * NEWS: Mention these new commands.
3776
efa80663
PA
37772011-07-26 Pedro Alves <pedro@codesourcery.com>
3778
3779 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3780 true for software watchpoints.
3781
dbdaa232 37822011-07-26 Joel Brobecker <brobecker@adacore.com>
3783
3784 GDB 7.3 released.
3785
cf2c3c16
TT
37862011-07-26 Tom Tromey <tromey@redhat.com>
3787
3788 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3789 * dwarf2read.c (read_indirect_string_at_offset): New function.
3790 (read_indirect_string): Use it.
3791 (dwarf_decode_macro_bytes): New function, taken from
3792 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3793 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3794 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3795 New functions.
3796 (struct dwarf2_per_objfile) <macro>: New field.
3797 (dwarf2_elf_names): Add .debug_macro.
3798 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3799 (dwarf2_locate_sections): Handle new section.
3800 (read_file_scope): Handle DW_AT_GNU_macros.
3801 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3802
1a532630
PP
38032011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3804
3805 * NEWS: Mention dcache configuration.
3806 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3807 (dcache_size, dcache_line_size): New variables.
3808 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3809 (struct dcache_block): Make it expandable.
3810 (struct dcache_struct): New field.
3811 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3812 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3813 (dcache_poke_byte, dcache_print_line): Adjust.
3814 (set_dcache_size, set_dcache_line_size): New functions.
3815 (set_dcache_command, show_dcache_command): New functions.
3816 (_initialize_dcache): Add new commands.
3817
2eff07b3
PP
38182011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3819
3820 * progspace.h (struct program_space): Add solib_add_generation.
3821 * infcmd.c (post_create_inferior): Only call solib_add if not
3822 already done.
3823 * solib.c (solib_add): Increment solib_add_generation.
3824
543305c9
JK
38252011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3826
3827 Fix implicit pointer offsets.
3828 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3829 ptr.OFFSET.
3830
c0a91b2b
TT
38312011-07-25 Tom Tromey <tromey@redhat.com>
3832
3833 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3834 const.
3835 (ada_exception_sal): Make 'ops' const.
3836 (ada_decode_exception_location): Likewise.
3837 (ada_decode_assert_location): Likewise.
3838 (catch_assert_command): Update.
3839 (catch_ada_exception_command): Update.
3840 (create_ada_exception_catchpoint): Make 'ops' const.
3841 * breakpoint.c (set_raw_breakpoint_without_location)
3842 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3843 const.
3844 (create_internal_breakpoint): Update.
3845 (init_raw_breakpoint_without_location): Make 'ops' const.
3846 (init_raw_breakpoint, init_catchpoint)
3847 (create_fork_vfork_event_catchpoint)
3848 (create_syscall_event_catchpoint, init_breakpoint_sal)
3849 (create_breakpoint_sal, create_breakpoints_sal)
3850 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3851 * breakpoint.h (struct breakpoint) <ops>: Now const.
3852 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3853 const.
3854
6cb9b55b
PP
38552011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3856
3857 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3858
d9b3f62e
PA
38592011-07-25 Pedro Alves <pedro@codesourcery.com>
3860
3861 * breakpoint.h (print_recreate_thread): Declare.
3862 (struct breakpoint): Move step_count, pass_count,
3863 number_on_target, static_trace_marker_id,
3864 static_trace_marker_id_idx ...
3865 (struct tracepoint): ... to this new struct.
3866 (get_tracepoint, get_tracepoint_by_number_on_target)
3867 (get_tracepoint_by_number): Change return type to struct
3868 tracepoint pointer.
3869 * breakpoint.c (is_tracepoint_type): New, factored out from
3870 is_tracepoint.
3871 (is_tracepoint): Adjust.
3872 (print_one_breakpoint_location): Cast to struct tracepoint as
3873 necessary, and adjust.
3874 (print_recreate_catch_fork, print_recreate_catch_vfork)
3875 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3876 print_recreate_thread.
3877 (init_breakpoint_sal): New, factored out from
3878 create_breakpoint_sal.
3879 (create_breakpoint_sal): Reimplement.
3880 (create_breakpoint): Allocate a struct tracecepoint if the caller
3881 wanted a tracepoint. Use init_breakpoint_sal and
3882 install_breakpoint.
3883 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3884 (print_recreate_masked_watchpoint)
3885 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3886 (tracepoint_print_one_detail): Adjust.
3887 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3888 Dump the pass count here.
3889 (update_static_tracepoint): Adjust.
3890 (addr_string_to_sals): Adjust.
3891 (create_tracepoint_from_upload): Adjust. Change return type to
3892 struct tracepoint pointer.
3893 (trace_pass_set_count): Change parameter type to struct tracepoint
3894 pointer, and adjust.
3895 (trace_pass_command): Adjust.
3896 (get_tracepoint, get_tracepoint_by_number_on_target)
3897 (get_tracepoint_by_number): Change return type to struct
3898 tracepoint pointer, and adjust.
3899 (print_recreate_thread): New, factored out from save_breakpoints.
3900 (save_breakpoints): Don't print thread and task and passcount
3901 recreation here.
3902 * remote.c (remote_download_tracepoint): Adjust.
3903 * tracepoint.c (trace_actions_command, validate_actionline)
3904 (start_tracing, tfind_1, trace_find_tracepoint_command)
3905 (trace_dump_command): Adjust.
3906 (find_matching_tracepoint): Change return type to struct
3907 tracepoint pointer, and adjust.
3908 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3909 (tfile_trace_find, tfile_fetch_registers): Adjust.
3910 * tracepoint.h (create_tracepoint_from_upload): Change return type
3911 to struct tracepoint pointer.
3912 * ada-lang.c (print_recreate_exception): Call
3913 print_recreate_thread.
3914 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3915
3a5c3e22
PA
39162011-07-25 Pedro Alves <pedro@codesourcery.com>
3917
3918 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3919 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3920 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3921 watchpoint_thread, watchpoint_triggered ...
3922 (struct watchpoint): ... to this new struct.
3923 (is_watchpoint): Declare.
3924 (install_breakpoint): Add new `internal' parameter.
3925 * breakpoint.c (is_watchpoint): Delete declaration.
3926 (set_breakpoint_condition): Handle watchpoints.
3927 (is_watchpoint): Make public.
3928 (watchpoint_in_thread_scope): Change parameter type to struct
3929 watchpoint.
3930 (watchpoint_del_at_next_stop): Change parameter type to struct
3931 watchpoint. Remove assertion. Adjust.
3932 (update_watchpoint): Ditto.
3933 (insert_breakpoints, breakpoint_init_inferior)
3934 (watchpoints_triggered, watchpoint_check)
3935 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3936 (bpstat_stop_status, print_one_breakpoint_location)
3937 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3938 to struct watchpoint as necessary, and adjust.
3939 (install_breakpoint): Add `internal' argument. If true, don't
3940 mention the new breakpoint. Use set_breakpoint_number.
3941 (create_fork_vfork_event_catchpoint)
3942 (create_syscall_event_catchpoint): Adjust.
3943 (dtor_watchpoint): New.
3944 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3945 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3946 (print_it_watchpoint, print_mention_watchpoint)
3947 (print_recreate_watchpoint, insert_masked_watchpoint)
3948 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3949 (print_one_detail_masked_watchpoint)
3950 (print_mention_masked_watchpoint)
3951 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3952 necessary, and adjust.
3953 (watch_command_1): Allocate and initialize a struct watchpoint
3954 instead of a struct breakpoint. Use install_breakpoint.
3955 (catch_exec_command_1): Adjust.
3956 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3957 fields.
3958 (delete_breakpoint, enable_breakpoint_disp)
3959 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3960 as necessary, and adjust.
3961 (initialize_breakpoint_ops): Install dtor_watchpoint as
3962 watchpoints' dtor method.
3963 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3964 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3965 to struct watchpoint as necessary, and adjust.
3966
2060206e
PA
39672011-07-25 Pedro Alves <pedro@codesourcery.com>
3968
3969 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3970 the the base class ops table.
3971 (catch_exception_breakpoint_ops)
3972 (catch_exception_unhandled_breakpoint_ops)
3973 (catch_assert_breakpoint_ops): Don't statically initialize.
3974 (initialize_ada_catchpoint_ops): New.
3975 (_initialize_ada_language): Call it.
3976 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3977 (bkpt_breakpoint_ops): Forward declare.
3978 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3979 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3980 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3981 (masked_watchpoint_breakpoint_ops)
3982 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3983 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3984 base class ops table.
3985 (null_re_set, null_check_status, null_works_in_software_mode)
3986 (null_resources_needed, null_print_one_detail): Delete.
3987 (bkpt_dtor): Rename to ...
3988 (base_breakpoint_dtor): ... this. Make static.
3989 (bkpt_allocate_location): Rename to ...
3990 (base_breakpoint_allocate_location): ... this. Make static.
3991 (base_breakpoint_re_set): New.
3992 (internal_error_pure_virtual_called): New.
3993 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3994 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3995 (base_breakpoint_works_in_software_mode)
3996 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3997 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3998 (base_breakpoint_print_recreate): New functions.
3999 (base_breakpoint_ops): New global.
4000 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4001 (bkpt_breakpoint_hit): Make static.
4002 (bkpt_check_status): Delete.
4003 (bkpt_resources_needed): Make static.
4004 (bkpt_works_in_software_mode): Delete.
4005 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4006 static.
4007 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4008 (momentary_breakpoint_ops): Don't statically initialize.
4009 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4010 Delete.
4011 (tracepoint_insert_location, tracepoint_remove_location)
4012 (tracepoint_check_status, tracepoint_works_in_software_mode)
4013 (tracepoint_print_it): Delete.
4014 (tracepoint_breakpoint_ops): Don't statically initialize.
4015 (initialize_breakpoint_ops): New.
4016 (_initialize_breakpoint): Call it.
4017 * breakpoint.h (null_re_set, null_works_in_software_mode)
4018 (null_resources_needed, null_check_status, null_print_one_detail):
4019 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4020 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4021 (bkpt_check_status, bkpt_resources_needed)
4022 (bkpt_works_in_software_mode, bkpt_print_it)
4023 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4024 Delete declarations.
4025 (initialize_breakpoint_ops): Declare.
4026
001c8c33
PA
40272011-07-25 Pedro Alves <pedro@codesourcery.com>
4028
4029 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4030 (momentary_bkpt_print_it): Simplify.
4031
06edf0c0
PA
40322011-07-25 Pedro Alves <pedro@codesourcery.com>
4033
4034 Split internal, momentary and user breakpoints breakpoint_ops
4035 tables.
4036
4037 * breakpoint.c (internal_breakpoint_ops)
4038 (momentary_breakpoint_ops): Forward declare.
4039 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4040 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4041 (create_overlay_event_breakpoint)
4042 (create_std_terminate_master_breakpoint)
4043 (create_exception_master_breakpoint): Create breakpoints with
4044 internal_breakpoint_ops vtable.
4045 (set_longjmp_breakpoint): Create momentary breakpoints with
4046 momentary_breakpoint_ops vtable, using
4047 momentary_breakpoint_from_master.
4048 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4049 (create_solib_event_breakpoint): Create breakpoints with
4050 internal_breakpoint_ops vtable.
4051 (set_momentary_breakpoint): Create breakpoints with
4052 momentary_breakpoint_ops vtable.
4053 (momentary_breakpoint_from_master): New, factored out from
4054 clone_momentary_breakpoint.
4055 (clone_momentary_breakpoint): Adjust.
4056 (watch_command_1): Create scope breakpoints with
4057 momentary_breakpoint_ops vtable.
4058 (bkpt_re_set): Remove handling of internal and momentary
4059 breakpoints.
4060 (bkpt_print_mention, bkpt_print_recreate): New.
4061 (bkpt_breakpoint_ops): Adjust.
4062 (internal_bkpt_re_set, internal_bkpt_check_status)
4063 (internal_bkpt_print_it, internal_bkpt_print_mention)
4064 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4065 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4066 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4067 (momentary_bkpt_print_recreate): New.
4068 (momentary_breakpoint_ops): New.
4069
348d480f
PA
40702011-07-25 Pedro Alves <pedro@codesourcery.com>
4071
4072 Implement most breakpoint_ops methods for all breakpoint types,
4073 and move the default handlings to the proper callbacks.
4074
4075 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4076 works_in_software_mode method.
4077 (insert_bp_location): Go through breakpoint_ops->insert_location
4078 for software and hardware watchpoints.
4079 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4080 breakpoint_ops.
4081 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4082 for software and hardware watchpoints.
4083 (print_it_typical): Delete.
4084 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4085 method.
4086 (watchpoint_check): Adjust comment.
4087 (bpstat_check_location): Simply always call the breakpoint's
4088 breakpoint_hit method.
4089 (bpstat_stop_status): Always call the breakpoint's check_status
4090 method. Remove special cases for watchpoints and internal event
4091 breakpoints from here (moved to the check_status implementations).
4092 (print_one_breakpoint_location): Assume b->ops is never NULL.
4093 Remove static tracepoint marker id printing from here (moved to
4094 the print_one_detail callback implementation of tracepoints).
4095 (init_bp_location): Assert OPS is never NULL.
4096 (allocate_bp_location): Always call the breakpoint's
4097 allocate_location method, and remove the default code from here.
4098 (free_bp_location): Always call the location's dtor method, and
4099 remove the default code from here.
4100 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4101 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4102 parameter. Pass it down.
4103 (set_raw_breakpoint): Ditto.
4104 (print_it_catch_fork): Adjust to take a bpstat as argument.
4105 (catch_fork_breakpoint_ops): Install methods.
4106 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4107 (catch_vfork_breakpoint_ops): Install methods.
4108 (dtor_catch_syscall): Call the base dtor.
4109 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4110 (catch_syscall_breakpoint_ops): Install methods.
4111 (dtor_catch_exec): Call the base dtor.
4112 (print_it_catch_exec): Adjust to take a bpstat as argument.
4113 (catch_exec_breakpoint_ops): Install methods.
4114 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4115 the breakpoint's resources_needed method, and remove the default
4116 code from here.
4117 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4118 breakpoint_ops.
4119 (clone_momentary_breakpoint): Clone the original's ops.
4120 (mention): Always call the breakpoint's print_mention method, and
4121 remove the default code from here.
4122 (create_breakpoint_sal): Adjust to pass the ops to
4123 set_raw_breakpoint rather than setting it manually.
4124 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4125 ops to set_raw_breakpoint_without_location rather than setting it
4126 manually.
4127 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4128 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4129 (ranged_breakpoint_ops): Install methods.
4130 (break_range_command): Adjust to pass the ops to
4131 set_raw_breakpoint rather than setting it manually.
4132 (re_set_watchpoint, breakpoint_hit_watchpoint)
4133 (check_status_watchpoint, resources_needed_watchpoint)
4134 (works_in_software_mode_watchpoint, print_it_watchpoint)
4135 (print_mention_watchpoint, print_recreate_watchpoint): New
4136 functions.
4137 (watchpoint_breakpoint_ops): Install new methods.
4138 (print_it_masked_watchpoint): New function.
4139 (masked_watchpoint_breakpoint_ops): Install new methods.
4140 (watch_command_1): Adjust to pass the right breakpoint_ops to
4141 set_raw_breakpoint_without_location rather than setting it
4142 manually later. Record the current pspace.
4143 (print_it_exception_catchpoint): Adjust to take a bpstat as
4144 argument.
4145 (gnu_v3_exception_catchpoint_ops): Install new methods.
4146 (say_where): New function.
4147 (null_re_set, null_check_status, null_works_in_software_mode)
4148 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4149 New functions.
4150 (bp_location_ops): New global.
4151 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4152 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4153 (bkpt_check_status, bkpt_resources_needed)
4154 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4155 (bkpt_print_recreate): New functions.
4156 (bkpt_breakpoint_ops): New global.
4157 (tracepoint_re_set, tracepoint_insert_location)
4158 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4159 (tracepoint_check_status, tracepoint_works_in_software_mode)
4160 (tracepoint_print_it, tracepoint_print_one_detail)
4161 (tracepoint_print_mention, tracepoint_print_recreate): New
4162 functions.
4163 (tracepoint_breakpoint_ops): New global.
4164 (delete_breakpoint): Always call the breakpoint's dtor method, and
4165 remove the default handling from here.
4166 (breakpoint_re_set_default): Make static.
4167 (breakpoint_re_set_one): Always call the breakpoints re_set
4168 method, and remove the default handling from here.
4169 (trace_command, ftrace_command, strace_command)
4170 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4171 to create_breakpoint.
4172 (save_breakpoints): Always call the breakpoint's print_recreate
4173 method, and remove the default handling from here.
4174
4175 * ada-lang.c (dtor_exception): Call the base dtor.
4176 (re_set_exception): Call the base method.
4177 (print_it_exception, print_it_catch_exception): Adjust to take a
4178 bpstat as argument.
4179 (catch_exception_breakpoint_ops): Install methods.
4180 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4181 argument.
4182 (catch_exception_unhandled_breakpoint_ops): Install methods.
4183 (print_it_catch_assert): Adjust to take a bpstat as argument.
4184 (catch_assert_breakpoint_ops): Install methods.
4185
4186 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4187 to take a bpstat as argument.
4188 (enum print_stop_action): Add describing comments to each enum
4189 value.
4190 (breakpoint_re_set_default): Delete declaration.
4191 (null_re_set, null_works_in_software_mode, null_resources_needed)
4192 (null_check_status, null_print_one_detail): Declare.
4193 (bkpt_breakpoint_ops): Declare.
4194 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4195 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4196 (bkpt_check_status, bkpt_resources_needed)
4197 (bkpt_works_in_software_mode, bkpt_print_it)
4198 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4199 Declare.
4200
4201 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4202 bkpt_breakpoint_ops.
4203 * python/py-breakpoint.c (bppy_init): Ditto.
4204
be8f8133
PW
42052011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4206
4207 * MAINTAINERS (Write After Approval): Add myself to the list.
4208
3807f613
PP
42092011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4210
4211 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4212
1ced966e
PA
42132011-07-22 Pedro Alves <pedro@codesourcery.com>
4214
4215 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4216 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4217 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4218 adjust.
4219 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4220 (struct i386_debug_reg_state): New.
4221 (i386_init_dregs): New.
4222 (dr_mirror): New.
4223 (i386_cleanup_dregs): Use i386_init_dregs.
4224 (i386_show_dr): Add state parameter and adjust.
4225 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4226 the inferior here.
4227 (i386_remove_aligned_watchpoint): Likewise.
4228 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4229 (i386_update_inferior_debug_regs): New.
4230 (i386_insert_watchpoint): Work on a local mirror of the debug
4231 registers, and only update the inferior on success.
4232 (i386_remove_watchpoint): Ditto.
4233 (i386_region_ok_for_watchpoint): Adjust.
4234 (i386_stopped_data_address): Adjust.
4235 (i386_insert_hw_breakpoint): Adjust.
4236 (i386_remove_hw_breakpoint): Adjust.
4237
3543a589
TT
42382011-07-22 Tom Tromey <tromey@redhat.com>
4239
4240 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4241 from amd64_pseudo_register_read. Change arguments. Call
4242 mark_value_bytes_unavailable when needed.
4243 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4244 set_gdbarch_pseudo_register_read.
4245 * sentinel-frame.c (sentinel_frame_prev_register): Use
4246 regcache_cooked_read_value.
4247 * regcache.h (regcache_cooked_read_value): Declare.
4248 * regcache.c (regcache_cooked_read_value): New function.
4249 (regcache_cooked_read): Call
4250 gdbarch_pseudo_register_read_value if available.
4251 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4252 (i386_pseudo_register_read): Remove.
4253 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4254 i386_pseudo_register_read. Change arguments. Call
4255 mark_value_bytes_unavailable when needed.
4256 (i386_pseudo_register_read_value): New function.
4257 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4258 not set_gdbarch_pseudo_register_read.
4259 * gdbarch.sh (pseudo_register_read_value): New method.
4260 * gdbarch.c, gdbarch.h: Rebuild.
4261 * findvar.c (value_from_register): Call get_frame_register_value.
4262
95298e72
PM
42632011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4264
4265 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4266 get_prefix.
4267 (display_gdb_prompt): Likewise.
4268 (change_annotation_level): Likewise.
4269 (push_prompt): Likewise.
4270 (pop_prompt): Likewise.
4271 (handle_stop_sig): Use get_prompt with a level.
4272 * top.c (command_loop): Use get_prompt with a level.
4273 (set_async_annotation_level): Use set_prompt with a level.
4274 (get_prefix): New function.
4275 (set_prefix): Ditto.
4276 (set_suffix): Ditto.
4277 (get_suffix): Ditto.
4278 (get_prompt): Accept a level argument.
4279 (set_prompt): Accept a level argument. Free old prompts. Set
4280 new_async_prompt if level is 0.
4281 (init_main): Use set_prompt with a level. Do not set
4282 new_async_prompt.
4283 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4284 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4285 Modify set_prompt, get_prompt to account for levels.
4286 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4287 level.
4288 * python/python.c (before_prompt_hook): Use set_prompt.
4289
d26e3629
KY
42902011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4291
4292 * defs.h: Add guard against inclusion in gdbserver.
4293 (struct ptid, ptid_t): Move to common/ptid.h.
4294 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4295 xsnprintf, internal_error): Move to common/common-utils.h.
4296 (nomem): Delete.
4297 * gdb_assert.h: Move into common/ sub-directory.
4298 * gdb_locale.h: Ditto.
4299 * gdb_dirent.h: Ditto.
4300 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4301 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4302 Move into common/ptid.h.
4303 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4304 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4305 Change nomem to malloc_failure.
4306 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4307 * utils.c (nomem): Rename to malloc_failure.
4308 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4309 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4310 (gdb_buildargv): Change nomem to malloc_failure.
4311 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4312 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4313 ptid_is_pid): Move into common/ptid.c.
4314 (initialize_infrun): Delete initialization of null_ptid and
4315 minus_one_ptid.
4316 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4317 linux_common_xfer_osdata.
4318 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4319 common/ptid.c and common/buffer.c.
4320 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4321 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4322 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4323 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4324 rules.
4325 * common/gdb_assert.h: New.
4326 * common/gdb_dirent.h: New.
4327 * common/gdb_locale.h: New.
4328 * common/buffer.c: New.
4329 * common/buffer.h: New.
4330 * common/ptid.c: New.
4331 * common/ptid.h: New.
4332 * common/xml-utils.c: New.
4333 * common/xml-utils.h: New.
4334 * common/common-utils.c: New.
4335 * common/common-utils.h: New.
4336 * common/linux-osdata.c: New.
4337 * common/linux-osdata.h: New.
4338 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4339 * config/arm/linux.mh (NATDEPFILES): Ditto.
4340 * config/i386/linux.mh (NATDEPFILES): Ditto.
4341 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4342 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4343 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4344 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4345 * config/mips/linux.mh (NATDEPFILES): Ditto.
4346 * config/pa/linux.mh (NATDEPFILES): Ditto.
4347 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4348 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4349 * config/s390/s390.mh (NATDEPFILES): Ditto.
4350 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4351 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4352 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4353
edc84990 43542011-07-21 Matt Rice <ratmice@gmail.com>
4355
4356 * NEWS: Add info macros and info definitions commands.
4357
3a7bf607
PM
43582011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4359
4360 * NEWS: Document Python prompt substitution hook.
4361
9b158ba0 43622011-07-18 Matt Rice <ratmice@gmail.com>
4363
4364 PR macros/12999
4365 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4366 * macrotab.c (foreach_macro): Ditto.
4367 (foreach_macro_in_scope): Ditto.
4368 * macrocmd.c (print_macro_callback): New function.
4369 (info_macro_command): Move some code to print_macro_definition.
4370 (print_macro_definition): New function.
4371 (print_one_macro): Add new arguments to callback.
4372 (info_definitions_command): New function.
4373 (info_macros_command): Ditto.
4374 (_initialize_macrocmd): Add info macros and info definitions commands.
4375 * symtab.c (add_macro_name): Add new arguments to callback.
4376
d17b6f81
PM
43772011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4378 Tom Tromey <tromey@redhat.com>
4379
4380 * top.c (set_prompt): Rewrite to free previous prompt, free
4381 asynch_new_prompt and set both on new prompts.
4382 * event-top.c (display_gdb_prompt): Add prompt substitution
4383 logic.
4384 * python/python.c (before_prompt_hook): New function.
4385
1364323a 43862011-07-20 Matt Rice <ratmice@gmail.com>
4387
4388 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4389 arguments to store_unsigned_integer.
4390
8b70b953
TT
43912011-07-20 Tom Tromey <tromey@redhat.com>
4392
6c83ed52
TT
4393 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4394 in some declaration-only cases.
4395
43962011-07-18 Tom Tromey <tromey@redhat.com>
4397
8b70b953
TT
4398 PR symtab/12984:
4399 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4400 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4401 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4402 <debug_type_section>: New field.
4403 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4404 (load_cu): Use appropriate section.
4405 (create_signatured_type_table_from_index): Add 'section'
4406 argument.
4407 (dwarf2_read_index): Only allow a single .debug_types section.
4408 (dw2_get_file_names): Use appropriate section.
4409 (read_type_comp_unit_head): Add 'section' argument.
4410 (create_debug_types_hash_table): Loop over all .debug_types
4411 sections.
4412 (init_cu_die_reader): Use appropriate section.
4413 (process_psymtab_comp_unit, load_partial_comp_unit)
4414 (load_full_comp_unit, read_die_and_children, find_partial_die)
4415 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4416 (lookup_signatured_type_at_offset): Add 'section' argument.
4417 (read_signatured_type_at_offset): Add 'sect' argument.
4418 (read_signatured_type): Use appropriate section.
4419 (set_die_type, get_die_type_at_offset): Update.
4420 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4421 VEC.
4422 (write_psymtabs_to_index): Don't allow index with more than one
4423 .debug_types section.
4424
918dd910
JK
44252011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4426
4427 Fix crash if referenced CU is aged out.
4428 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4429 xfree of block.data.
4430 (indirect_pieced_value): New variable back_to, use to for xfree of
4431 baton.data.
4432 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4433 block.data.
4434 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4435 (load_cu): New function from ...
4436 (dw2_do_instantiate_symtab): ... the code here ...
4437 (process_full_comp_unit): ... and here.
4438 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4439 retval.data.
4440
0e37a63c
JK
44412011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4442
4443 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4444 type.
4445
7e324e48
GB
44462011-07-19 Gary Benson <gbenson@redhat.com>
4447
4448 * infrun.c (struct execution_control_state): New member
4449 stop_func_filled_in.
4450 (clear_stop_func, fill_in_stop_func): New functions.
4451 (handle_inferior_event): Call clear_stop_func rather than
4452 manipulating the execution control state directly.
4453 Call fill_in_stop_func lazily as required rather than
4454 directly calling find_pc_partial_function in all cases.
4455
d48323d8
TT
44562011-07-18 Tom Tromey <tromey@redhat.com>
4457
4458 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4459 checking for variable-sized array.
4460
40591b7d
JCD
44612011-07-18 Jean-Charles Delay <delay@adacore.com>
4462
4463 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4464 of supported languages.
4465 * varobj.c: Add top definitions and basic implementation of the
4466 following callbacks: ada_number_of_children, ada_name_of_variable,
4467 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4468 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4469 (languages): Register Ada-specific callbacks.
4470 (variable_language): Add the Ada case in the language setter switch.
4471
2e424e08
JK
44722011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4473
4474 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4475
9e8b7a03
JK
44762011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4477
4478 Code cleanup.
4479 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4480 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4481 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4482 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4483 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4484 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4485 (struct dwarf_expr_context_funcs): New, move here methods from ...
4486 (struct dwarf_expr_context): ... here. New fields funcs.
4487 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4488 (dwarf_expr_ctx_funcs): New.
4489 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4490 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4491 (needs_frame_ctx_funcs): New.
4492 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4493
2b1260ab
FM
44942011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4495
4496 * MAINTAINERS (Write After Approval): Add myself to the list.
4497
8bd90839
FM
44982011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4499
4500 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4501 that CIE pointer of an FDE really points to a CIE .
4502
953b98d1
HZ
45032011-07-15 Hui Zhu <teawater@gmail.com>
4504
4505 * remote.c (remote_get_trace_status): Add comments.
4506
c8f2448a
JK
45072011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4508
4509 Code cleanup - constify struct lval_funcs.
4510 * dwarf2loc.c (pieced_value_funcs): Make it const.
4511 * infrun.c (siginfo_value_funcs): Likewise.
4512 * opencl-lang.c (opencl_value_funcs): Likewise.
4513 * valops.c (value_assign, value_ind): Make the funcs variable const.
4514 * value.c (struct value): Make location.computed.funcs target const.
4515 Rearrange the comments.
4516 (allocate_computed_value): Make the funcs parameter target const.
4517 (value_computed_funcs): Return the funcs target const.
4518 (value_free, value_copy, set_value_component_location): Make the funcs
4519 variable const.
4520 * value.h (allocate_computed_value): Make the funcs parameter target
4521 const.
4522 (value_computed_funcs): Return the funcs target const.
4523 * windows-tdep.c (tlb_value_funcs): Make it const.
4524
f652de6f
HZ
45252011-07-14 Hui Zhu <teawater@gmail.com>
4526
4527 * remote.c (remote_get_trace_status): Initialize p.
4528
67f41397
JK
45292011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4530
4531 Work around kgdb.
4532 * remote.c (remote_get_trace_status): New variable ex. Put
4533 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4534
d1b66e6d
TT
45352011-07-13 Tom Tromey <tromey@redhat.com>
4536
4537 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4538 value_from_contents for final conversion.
4539
1632a688
JK
45402011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4541
4542 Code cleanup.
4543 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4544 Indent prototypes so they do not get into tags.
4545
a7035dbb
JK
45462011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4547
4548 Code cleanup making also optimized out values lazy.
4549 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4550 allocate_optimized_out_value. Twice.
4551 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4552 * findvar.c (read_var_value): Likewise.
4553 * value.c (allocate_optimized_out_value): New function.
4554 * value.h (allocate_optimized_out_value): New declaration.
4555
d07ed419
JK
45562011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4557
4558 Fix occasional crash of CTRL-C during DWARF read in.
4559 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4560
86d31898
TT
45612011-07-11 Tom Tromey <tromey@redhat.com>
4562
4563 * regcache.c (struct regcache_descr): Fix typo.
4564 * i387-tdep.c (i387_supply_xsave): Fix typo.
4565
2ab95328
TT
45662011-07-11 Tom Tromey <tromey@redhat.com>
4567
4568 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4569 (read_file_scope, read_type_unit_scope): Use it.
4570
04ad99e6
JK
45712011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4572
4573 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4574 `int'.
4575
713389e0
PM
45762011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4577
4578 PR python/12438
4579 * python/python.c: Set gdbpy_should_print_stack default to off.
4580 (set_python): Deprecate maint set python print-stack to
4581 class_deprecate.
4582 (_initialize_python): Deprecate maint set/show python print-stack.
4583 Add new prefix command, python. Add new setting, print-backtrace.
4584 * NEWS: Document set python print-stack. Document default change.
4585
754eadd1
PM
45862011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4587
4588 * python/py-inferior.c (infpy_dealloc): New function.
4589 (inferior_to_inferior_object): Return a new object, or a
4590 new reference to the existing object.
4591 (find_thread_object): Cleanup references to inferior.
4592 (delete_thread_object): Ditto.
4593 * python/py-infthread.c (create_thread_object): Do not increment
4594 inferior reference count.
4595
5e44ecb3
TT
45962011-07-08 Tom Tromey <tromey@redhat.com>
4597
4598 * dwarf2loc.c (locexpr_regname): New function.
4599 (locexpr_describe_location_piece): Use it.
4600 (disassemble_dwarf_expression): Add per_cu argument. Use
4601 locexpr_regname.
4602 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4603 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4604 New cases.
4605 (locexpr_describe_location_1): Add per_cu argument.
4606 (locexpr_describe_location): Update.
4607 (loclist_describe_location): Update.
4608
e0e9434c
TT
46092011-07-08 Tom Tromey <tromey@redhat.com>
4610
4611 * dwarf2expr.c (execute_stack_op): Add QUIT.
4612
26afc0d7
HZ
46132011-07-07 Hui Zhu <teawater@gmail.com>
4614
4615 Revert:
4616 2011-07-06 Hui Zhu <teawater@gmail.com>
4617 * remote.c (remote_start_remote): Add TRY_CATCH for
4618 remote_get_trace_status.
4619 * tracepoint.c (disconnect_tracing): Ditto.
4620
a40a111f
AB
46212011-07-07 Andrew Burgess <aburgess@broadcom.com>
4622
4623 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4624 variables as signed, not unsigned.
4625
e2bd3b15
JB
46262011-07-06 Joel Brobecker <brobecker@adacore.com>
4627
4628 * jit.c (jit_inferior_init): Reformat forward declaration.
4629
e3d961fe 46302011-07-06 Matt Rice <ratmice@gmail.com>
4631
4632 * MAINTAINERS (Write After Approval): Add myself to the list.
4633
0f3428f0
HZ
46342011-07-06 Hui Zhu <teawater@gmail.com>
4635
4636 * remote.c (remote_start_remote): Add TRY_CATCH for
4637 remote_get_trace_status.
4638 * tracepoint.c (disconnect_tracing): Ditto.
4639
fc9f3a69
TT
46402011-07-05 Tom Tromey <tromey@redhat.com>
4641
4642 * symtab.c (operator_chars): Now static.
4643 * linespec.c (operator_chars): Don't declare.
4644
26e519b9
TJB
46452011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4646
4647 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4648
eb2a6f42
TT
46492011-07-05 Tom Tromey <tromey@redhat.com>
4650
4651 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4652 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4653 (TYPE_CPLUS_REALLY_JAVA): New macro.
4654 * dwarf2read.c (process_structure_scope): Set
4655 TYPE_CPLUS_REALLY_JAVA.
4656
21083d0f 46572011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4658
4659 * ada-lang.c: Fix typos.
4660 * amd64-tdep.c: Likewise.
4661 * breakpoint.c: Likewise.
4662 * cli/cli-decode.c: Likewise.
4663 * findcmd.c: Likewise.
4664 * inline-frame.c: Likewise.
4665 * mi/mi-main.c: Likewise.
4666 * minsyms.c: Likewise.
4667 * monitor.c: Likewise.
4668 * monitor.h: Likewise.
4669 * prologue-value.c: Likewise.
4670 * reverse.c: Likewise.
4671 * s390-tdep.c: Likewise.
4672
3b2a0cf2
JB
46732011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4674
4675 * jit.c (jit_inferior_init): Forward declare.
4676 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4677
efae1d92
JB
46782011-07-04 Joel Brobecker <brobecker@adacore.com>
4679
4680 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4681
6040a59d
JB
46822011-07-04 Tristan Gingold <gingold@adacore.com>
4683
4684 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4685 (tcb_fieldno): Add activation_link field.
4686 (get_known_tasks_addr): Moved and rewritten.
4687 (get_tcb_types_info): Set activation_link field.
4688 (read_known_tasks_array): Add parameter. Rewritten.
4689 (read_known_tasks_list): New function.
4690 (read_known_tasks): New function.
4691 (ada_build_task_list): Call read_known_tasks instead of
4692 read_known_tasks_array.
4693 * ravenscar-thread.c: Add first_task_name constant.
4694 (has_ravenscar_runtime): Check for task list too.
4695
cb741e45
JB
46962011-07-04 Tristan Gingold <gingold@adacore.com>
4697
4698 * ada-tasks.c: Renames fieldno to actb_fieldno.
4699 (ada_get_task_number): Indentation.
4700 (get_tcb_types_info): Remove all parameters. Write directly
4701 the globals.
4702 (ptid_from_atcb_common): Adjust.
4703 (read_atcb): Adjust.
4704
7475b06c
TJB
47052011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4706
4707 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4708
15230f37
TJB
47092011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4710
4711 * ui-out.c (ui_out_field_core_addr): Mention that the function
4712 description is in the header file.
4713 * ui-out.h (ui_out_field_core_addr): Document function.
4714
65743aba
TJB
47152011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4716
4717 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4718 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4719
c37a5aab
TJB
47202011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4721
4722 * symtab.c (expand_line_sal): Remove empty line.
4723
59adf69e
TS
47242011-07-04 Thomas Schwinge <thomas@schwinge.name>
4725
4726 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4727 same way as ELFOSABI_NONE.
4728 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4729
e5dd4106
TJB
47302011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4731
4732 * breakpoint.c: Fix typos in comments.
4733 * linespec.c: Likewise.
4734 * symtab.c: Likewise.
4735
d40102a1
JB
47362011-07-04 Joel Brobecker <brobecker@adacore.com>
4737
4738 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4739 section in separate object files.
4740
2f741504
JK
47412011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 Fix false GCC warning.
4744 * linespec.c (decode_line_1): Initialize values.
4745
418c7cf7
JK
47462011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * linespec.c (find_method): Accept the function type automatically only
4749 if it was specified with parameter types.
4750
3d50dd94
JK
47512011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 Stop on first linespec terminator instead of eating what we can.
4754 * linespec.c (is_linespec_boundary): New function.
4755 (name_end): Remove function.
4756 (keep_name_info): New parameter on_boundary, replace the body.
4757 (decode_line_1): Provide the parameter to keep_name_info.
4758 (decode_compound): Likewise. Drop the trailing java return type
4759 handling. Twice.
4760
dcf9f4ab
JK
47612011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 Fall back linespec to minimal symbols.
4764 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4765 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4766 (find_method, symbol_found): Change error to cplusplus_error.
4767
3f542ed1
JK
47682011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4769
bc68c4e5 4770 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4771
900e11f9
JK
47722011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4773 Tom Tromey <tromey@redhat.com>
4774
4775 * dwarf2read.c (check_physname): New variable.
4776 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4777 (show_check_physname): New function.
4778 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4779
2301925d
JB
47802011-07-01 Joel Brobecker <brobecker@adacore.com>
4781
4782 * machoread.c (macho_symfile_read): Delete OBE comment.
4783
38947cca
JB
47842011-07-01 Joel Brobecker <brobecker@adacore.com>
4785
4786 * machoread.c (struct macho_oso_data): Delete.
4787 (current_oso): Delete.
4788 (macho_relocate_common_syms): New function, mostly extracted
4789 out of
4790 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4791 Remove code that sets and unset current_oso.
4792 (macho_symfile_relocate): Delete handling of common symbols,
4793 now moved to macho_relocate_common_syms.
4794
a7aa0d73
JB
47952011-07-01 Joel Brobecker <brobecker@adacore.com>
4796
4797 * darwin-nat.c (darwin_ptrace): Add documentation.
4798 Set errno to zero before calling ptrace. If ptrace returns
4799 -1 and errno is zero, then change then return zero.
4800 (darwin_kill_inferior): Issue a warning instead of triggering
4801 a failed assertion when the PT_KILL ptrace operations returned
4802 nonzero.
4803
5e9bc145
JB
48042011-07-01 Joel Brobecker <brobecker@adacore.com>
4805
4806 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4807 only when inf->private->no_ptrace.
4808
00eb2c4a
JB
48092011-07-01 Joel Brobecker <brobecker@adacore.com>
4810
4811 * ada-lang.c (print_it_exception): Print temporary catchpoints
4812 as "Temporary catchpoint".
4813 (print_mention_exception): Likewise.
4814
127c81bc
TT
48152011-07-01 Tom Tromey <tromey@redhat.com>
4816
4817 * jv-lang.c (java_language_defn): Use java_printchar,
4818 java_printstr.
4819 (java_get_encoding): New function.
4820 (java_emit_char): Use generic_emit_char.
4821 (java_printchar): New function.
4822 (java_printstr): Likewise.
4823
25552254
JB
48242011-07-01 Joel Brobecker <brobecker@adacore.com>
4825
4826 * ada-typeprint.c (print_record_type): If unable to decode
4827 the name of the parent type, use the encoded name.
4828
d2d43431
JB
48292011-07-01 Jean-Charles Delay <delay@adacore.com>
4830
4831 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4832 pointer to constrained packed array type output.
4833 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4834 packed array output.
4835
54ae186f
JB
48362011-07-01 Jean-Charles Delay <delay@adacore.com>
4837
4838 * ada-typeprint.c (print_array_type): removed if condition on show
4839 being negative for bounds printing.
4840
8f17729f
JB
48412011-07-01 Joel Brobecker <brobecker@adacore.com>
4842
4843 * ada-lang.c (ada_identical_enum_types_p): New function.
4844 (symbols_are_identical_enums): New function.
4845 (remove_extra_symbols): Do nothing if NSYMS < 2.
4846 Use symbols_are_identical_enums.
4847
f5aa6869
JB
48482011-07-01 Joel Brobecker <brobecker@adacore.com>
4849
4850 * ada-valprint.c (ada_value_print): Handle typedefs.
4851
8f465ea7
JB
48522011-07-01 Joel Brobecker <brobecker@adacore.com>
4853
4854 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4855
828292f2
JB
48562011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4857
4858 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4859 (decode_constrained_packed_array): Likewise.
4860 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4861
18920c42
JB
48622011-07-01 Joel Brobecker <brobecker@adacore.com>
4863
4864 * ada-exp.y (convert_char_literal): Handle typedef types.
4865
c90092fe
JB
48662011-07-01 Joel Brobecker <brobecker@adacore.com>
4867
4868 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4869
f748fb40
TT
48702011-06-30 Tom Tromey <tromey@redhat.com>
4871
4872 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4873 * valops.c (find_overload_match): Call do_cleanups on early exit
4874 path.
4875 * solib.c (solib_find): Call do_cleanups on early exit path.
4876
3bb47e8b
TT
48772011-06-30 Tom Tromey <tromey@redhat.com>
4878
4879 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4880 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4881 return paths. Defer final do_cleanups until last return.
4882 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4883 early return.
4884
4727bad3
TT
48852011-06-30 Tom Tromey <tromey@redhat.com>
4886
4887 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4888
bb361dbf
AB
48892011-06-30 Andrew Burgess <aburgess@broadcom.com>
4890
4891 * MAINTAINERS (Write After Approval): Add myself to the list.
4892
e0d00bc7
JK
48932011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4894
4895 Disable epilogue unwinders on recent GCCs.
4896 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4897 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4898 * dwarf2read.c (process_full_comp_unit): Initialize
4899 EPILOGUE_UNWIND_VALID.
4900 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4901 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4902 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4903
4632c0d0
JK
49042011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4905
4906 Code cleanup - reformatting.
4907 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4908 (producer_is_gcc_ge_4): ... here, change the return value.
4909 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4910 interpretation.
4911
32019081
JK
49122011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 Fix non-only rename list for Fortran modules import.
4915 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4916 cp_add_using_directive caller.
4917 (cp_add_using_directive): New parameter excludes, describe it. New
4918 variables ix and param. Compare if also excludes match. Allocate NEW
4919 with variable size, initialize EXCLUDES there.
4920 (cp_lookup_symbol_imports): New variable excludep, test
4921 current->EXCLUDES with it.
4922 * cp-support.h: Include vec.h.
4923 (struct using_direct): New field excludes, describe it.
4924 (DEF_VEC_P (const_char_ptr)): New.
4925 (cp_add_using_directive): New parameter excludes.
4926 * defs.h (const_char_ptr): New typedef.
4927 * dwarf2read.c (read_import_statement): New variables child_die,
4928 excludes and cleanups, read in excludes.
4929 (read_namespace): Adjust the cp_add_using_directive caller.
4930
70c622a3
JK
49312011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 Code cleanup.
4934 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4935 negative comparisons.
4936
39c4d40a
TT
49372011-06-29 André Pönitz <andre.poenitz@nokia.com>
4938
4939 * mi/mi-main.c (mi_cmd_list_features): Emit
4940 breakpoint-notifications.
4941
3b2b8fea
TT
49422011-06-29 Tom Tromey <tromey@redhat.com>
4943
4944 PR fortran/10036:
4945 * valprint.h (generic_emit_char, generic_printstr): Declare.
4946 * valprint.c (wchar_printable, append_string_as_wide)
4947 (print_wchar): Move from c-lang.c.
4948 (generic_emit_char): New function; mostly taken from c_emit_char.
4949 (generic_printstr): New function; mostly taken from c_printstr.
4950 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4951 represented as arrays.
4952 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4953 type.
4954 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4955 identically to TYPE_CODE_INT.
4956 * f-lang.c (f_get_encoding): New function.
4957 (f_emit_char): Use generic_emit_char.
4958 (f_printchar): Replace comment.
4959 (f_printstr): Use generic_printstr.
4960 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4961 "character" types specially.
4962 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4963 for Fortran.
4964 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4965 Move to valprint.c
4966 (c_emit_char): Call generic_emit_char.
4967 (c_printstr): Call generic_printstr.
4968
168e6d44
GB
49692011-06-29 Gary Benson <gbenson@redhat.com>
4970
4971 * breakpoint.c (bpstat_what): Removed duplicated case.
4972
1c033f8c
TT
49732011-06-28 Tom Tromey <tromey@redhat.com>
4974
4975 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4976
5fe41fbf
TT
49772011-06-27 Tom Tromey <tromey@redhat.com>
4978
4979 * valops.c (find_overload_match): Call do_cleanups before early
4980 return.
4981 * top.c (execute_command): Call do_cleanups before early return.
4982 (command_loop): Likewise.
4983 * stack.c (backtrace_command): Make a null cleanup early. Don't
4984 conditionally call do_cleanups.
4985 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4986 TRY_CATCH.
4987 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4988 so cleanups are always run.
4989 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4990 * findcmd.c (parse_find_args): Call do_cleanups on early return
4991 path.
4992 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4993 Don't conditionally call do_cleanups.
4994 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4995 later.
4996
e26bd57d
EB
49972011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4998
4999 * MAINTAINERS (Write After Approval): Use default email address.
5000
6c3097fc
JB
50012011-06-27 Joel Brobecker <brobecker@adacore.com>
5002
5003 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5004
369c397b
JB
50052011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5006
5007 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5008 saved_regs_mask and copied_regs_mask fields.
5009 (sparc_record_save_insn): New prototype.
5010 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5011 (sparc_record_save_insn): New function.
5012 (sparc_analyze_prologue): Add head comment. Recognize store insns
5013 of call-saved registers. Use OFFSET consistently. Recognize flat
5014 frames and cache their settings.
5015 (sparc32_skip_prologue): Handle flat frames.
5016 (sparc_frame_cache): Add frame_offset to the base address.
5017 (sparc32_frame_cache): Adjust to new frame description.
5018 (sparc32_frame_prev_register): Likewise.
5019 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5020 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5021 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5022 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5023 frame by calling sparc_record_save_insn.
5024 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5025 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5026 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5027
b315ab21
TG
50282011-06-27 Tristan Gingold <gingold@adacore.com>
5029
5030 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5031 field by map_addr and map_len.
5032 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5033 (munmap_section_buffer): Likewise.
5034
ddd49eee
TT
50352011-06-24 Tom Tromey <tromey@redhat.com>
5036
5037 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5038 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5039 * python/python.c (gdbpy_parameter): Make 'arg' const.
5040 (execute_gdb_command): Likewise.
5041 (gdbpy_decode_line): Likewise. Copy it.
5042 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5043 (gdbpy_write): Make 'arg' const.
5044 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5045 const.
5046 (gdbpy_lookup_type): Likewise.
5047 * python/py-prettyprint.c (print_children): Make 'name' const.
5048 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5049 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5050 Py_ssize_t.
5051 * python/py-function.c (fnpy_init): Make 'name' const.
5052 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5053 (gdbpy_string_to_argv): Make 'input' const.
5054 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5055 it.
5056 * gdbtypes.h (lookup_typename): Update.
5057 * gdbtypes.c (lookup_typename): Make 'name' const.
5058 (lookup_struct): Likewise.
5059 (lookup_union): Likewise.
5060 (lookup_enum): Likewise.
5061
5998129b
TT
50622011-06-24 Tom Tromey <tromey@redhat.com>
5063
5064 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5065 gdb_thread_db.h. Move all common/ entries to be together.
5066 (TAGS): Don't depend on DEPFILES.
5067
6e586cc5
YQ
50682011-06-23 Yao Qi <yao@codesourcery.com>
5069
5070 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5071 * remote.c (remote_start_remote): ... here.
5072 * monitor.c (monitor_open): ... here.
5073
86c3c1fc
AB
50742011-06-23 Andrew Burgess <aburgess@broadcom.com>
5075
5076 * gdbtypes.c (append_composite_type_field_aligned): Fix
5077 calculation of bit position based on alignment.
5078
28010a5d
PA
50792011-06-22 Pedro Alves <pedro@codesourcery.com>
5080
5081 * breakpoint.c (bpstat_stop_status): Call the check_status
5082 breakpoint_ops method.
5083 (print_one_breakpoint_location): Also print the condition for Ada
5084 exception catchpoints.
5085 (allocate_bp_location): New, factored out from
5086 allocate_bp_location.
5087 (allocate_bp_location): Adjust. Call the owner breakpoint's
5088 allocate_location method, if there is one.
5089 (free_bp_location): Call the locations's dtor method, if there is
5090 one.
5091 (init_raw_breakpoint_without_location): New breakpoint_ops
5092 parameter. Use it.
5093 (set_raw_breakpoint_without_location): Adjust.
5094 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5095 (set_raw_breakpoint): Adjust.
5096 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5097 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5098 re_set and check_status methods.
5099 (init_catchpoint): Don't memset, initialize thread, addr_string
5100 and enable_state. Pass the ops down to init_raw_breakpoint.
5101 (install_catchpoint): Rename to ...
5102 (install_breakpoint): ... this, and make extern.
5103 (create_fork_vfork_event_catchpoint): Adjust.
5104 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5105 re_set and check_status methods.
5106 (create_syscall_event_catchpoint): Adjust.
5107 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5108 (masked_watchpoint_breakpoint_ops): Install NULL
5109 allocate_location, re_set and check_status methods.
5110 (catch_exec_command_1): Adjust.
5111 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5112 re_set and check_status methods.
5113 (create_ada_exception_breakpoint): Rename to ...
5114 (init_ada_exception_breakpoint): ... this. Add a struct
5115 breakpoint parameter, and delete the exp_string, cond_string and
5116 cond parameters. Use init_raw_breakpoint, and don't install or
5117 mention the breakpoint yet. Don't clear breakpoint fields that
5118 init_raw_breakpoint already clears.
5119 (re_set_breakpoint): Delete, split into ...
5120 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5121 functions.
5122 (breakpoint_re_set_one): Call the breakpoint's
5123 breakpoint_ops->re_set implementation, if there's one. Adjust.
5124 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5125 (struct bp_location_ops): New type.
5126 (struct bp_location): New field `ops'.
5127 (struct breakpoint_ops): New `allocate_location', `re_set' and
5128 `check_status' fields. Make `breakpoint_hit''s description match
5129 reality.
5130 (init_bp_location): Declare.
5131 (breakpoint_re_set_default): Declare.
5132 (create_ada_exception_breakpoint): Rename to ...
5133 (init_ada_exception_breakpoint): ... this. Add a struct
5134 breakpoint parameter, and delete the exp_string, cond_string and
5135 cond parameters.
5136 (install_breakpoint): Declare.
5137 * ada-lang.c: Include exceptions.h.
5138 <Ada exceptions description>: Update.
5139 (struct ada_catchpoint_location): New type.
5140 (ada_catchpoint_location_dtor): New function.
5141 (ada_catchpoint_location_ops): New global.
5142 (ada_catchpoint): New type.
5143 (create_excep_cond_exprs): New function.
5144 (dtor_exception, allocate_location_exception, re_set_exception)
5145 (should_stop_exception, check_status_exception): New functions.
5146 (print_one_exception, print_mention_exception)
5147 (print_recreate_exception): Adjust.
5148 (dtor_catch_exception, allocate_location_catch_exception)
5149 (re_set_catch_exception, check_status_catch_exception): New
5150 functions.
5151 (catch_exception_breakpoint_ops): Install them.
5152 (dtor_catch_exception_unhandled)
5153 (allocate_location_catch_exception_unhandled)
5154 (re_set_catch_exception_unhandled)
5155 (check_status_catch_exception_unhandled): New functions.
5156 (catch_exception_unhandled_breakpoint_ops): Install them.
5157 (dtor_catch_assert, allocate_location_catch_assert)
5158 (re_set_catch_assert, check_status_catch_assert): New functions.
5159 (catch_assert_breakpoint_ops): Install them.
5160 (ada_exception_catchpoint_p): Delete.
5161 (catch_ada_exception_command_split)
5162 (ada_exception_catchpoint_cond_string): Rename exp_string
5163 parameter to excep_string. Adjust.
5164 (ada_parse_catchpoint_condition): Delete.
5165 (ada_exception_sal): Rename the exp_string parameter to
5166 excep_string. Delete the cond_string and cond parameters.
5167 Adjust.
5168 (ada_decode_exception_location): Rename the exp_string parameter
5169 to excep_string. Delete the cond_string and cond parameters.
5170 Adjust.
5171 (create_ada_exception_catchpoint): New function.
5172 (catch_ada_exception_command, ada_decode_assert_location)
5173 (catch_assert_command): Adjust.
5174 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5175
9ac4176b
PA
51762011-06-22 Pedro Alves <pedro@codesourcery.com>
5177
5178 * ada-lang.c: Include arch-utils.h.
5179 (ada_decode_exception_location): Make static.
5180 (catch_ada_exception_command): Moved here from breakpoint.c.
5181 (ada_decode_assert_location): Make static.
5182 (catch_assert_command): Moved here from breakpoint.c.
5183 (_initialize_ada_lang): Install the exception and assert
5184 catchpoint commands here.
5185 * ada-lang.h (ada_decode_exception_location)
5186 (ada_decode_assert_location): Delete declarations.
5187 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5188 breakpoint.h.
5189 (create_ada_exception_breakpoint): Make extern.
5190 (catch_ada_exception_command, catch_assert_command): Moved to
5191 ada-lang.c.
5192 (add_catch_command): Make extern.
5193 (_initilize_breakpoint): Don't install the exception and assert
5194 catchpoint commands here.
5195 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5196 breakpoint.c
5197 (add_catch_command, create_ada_exception_breakpoint): Declare.
5198
c56053d2
PA
51992011-06-22 Pedro Alves <pedro@codesourcery.com>
5200
5201 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5202 the breakpoint to the breakpoint chain here.
5203 (set_raw_breakpoint_without_location): Add the breakpoint to the
5204 breakpoint chain here.
5205 (init_raw_breakpoint): Adjust comments.
5206 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5207 here.
5208 (init_catchpoint): Don't set the catchpoint's breakpoint number
5209 here.
5210 (install_catchpoint): New function.
5211 (create_fork_vfork_event_catchpoint)
5212 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5213 use install_catchpoint.
5214
d2f3fc74
PA
52152011-06-22 Pedro Alves <pedro@codesourcery.com>
5216
5217 * breakpoint.c (create_catchpoint_without_mention)
5218 (create_catchpoint): Delete.
5219
b4d90040
PA
52202011-06-22 Pedro Alves <pedro@codesourcery.com>
5221
5222 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5223 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5224 reference to exec_pathname.
5225 (struct exec_catchpoint): New type.
5226 (dtor_catch_exec): New function.
5227 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5228 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5229 (catch_exec_command_1): Adjust to use init_catchpoint.
5230 (delete_breakpoint): Remove reference to exec_pathname.
5231
be5c67c1
PA
52322011-06-22 Pedro Alves <pedro@codesourcery.com>
5233
5234 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5235 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5236 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5237 reference to syscalls_to_be_caught.
5238 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5239 NULL `dtor'.
5240 (struct syscall_catchpoint): New type.
5241 (dtor_catch_syscall): New function.
5242 (insert_catch_syscall, remove_catch_syscall)
5243 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5244 (print_recreate_catch_syscall): Adjust.
5245 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5246 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5247 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5248 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5249 (masked_watchpoint_breakpoint_ops)
5250 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5251 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5252 there is one. Remove references to syscalls_to_be_caught.
5253 (catching_syscall_number): Adjust.
5254 * ada-lang.c (catch_exception_breakpoint_ops)
5255 (catch_exception_unhandled_breakpoint_ops)
5256 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5257
e29a4733
PA
52582011-06-22 Pedro Alves <pedro@codesourcery.com>
5259
5260 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5261 field.
5262 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5263 reference to forked_inferior_pid.
5264 (struct fork_catchpoint): New type.
5265 (breakpoint_hit_catch_fork, print_it_catch_fork)
5266 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5267 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5268 (create_fork_vfork_event_catchpoint): Adjust to use
5269 init_catchpoint.
5270
346774a9
PA
52712011-06-22 Pedro Alves <pedro@codesourcery.com>
5272
5273 * breakpoint.c (add_to_breakpoint_chain)
5274 (init_raw_breakpoint_without_location): New functions, factored
5275 out from ...
5276 (set_raw_breakpoint_without_location): ... this one.
5277 (init_raw_breakpoint): New function, factored out from
5278 set_raw_breakpoint and adjusted to use
5279 init_raw_breakpoint_without_location.
5280 (set_raw_breakpoint): Adjust.
5281 (init_catchpoint): New function, factored out from
5282 create_catchpoint_without_mention and adjusted to use
5283 init_raw_breakpoint.
5284 (create_catchpoint_without_mention): Adjust.
5285
c38c4bc5
TT
52862011-06-22 Tom Tromey <tromey@redhat.com>
5287
5288 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5289 argument of 0 specially.
5290
b138ce37
YQ
52912011-06-22 Yao Qi <yao@codesourcery.com>
5292
5293 * infrun.c (handle_inferior_event): Remove write-only local variable
5294 `sw_single_step_trap_p'.
5295
03de6823
TT
52962011-06-20 Tom Tromey <tromey@redhat.com>
5297
5298 * symtab.c (lookup_language_this): End loop if block is NULL.
5299
66a17cb6
TT
53002011-06-17 Tom Tromey <tromey@redhat.com>
5301
5302 * valops.c (value_of_this): Use lookup_language_this.
5303 * symtab.h (lookup_language_this): Declare.
5304 * symtab.c (lookup_language_this): New function.
5305 (lookup_symbol_aux): Use lookup_language_this.
5306 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5307
7518bff5
TT
53082011-06-17 Tom Tromey <tromey@redhat.com>
5309
5310 * value.h (value_of_this): Update.
5311 (value_of_local): Remove.
5312 * valops.c (value_of_this): Rename from value_of_local. Change
5313 parameters.
5314 * p-exp.y (exp): Update.
5315 (variable): Likewise.
5316 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5317
aee28ec6
TT
53182011-06-17 Tom Tromey <tromey@redhat.com>
5319
5320 * valops.c (value_of_local): Complain if NAME is NULL.
5321 * std-operator.def (OP_OBJC_SELF): Remove.
5322 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5323 * objc-exp.y (name_not_typename): Use OP_THIS.
5324 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5325 name for "this".
5326 <OP_OBJC_SELF>: Remove.
5327 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5328
eed8f803
TG
53292011-06-16 Tristan Gingold <gingold@adacore.com>
5330
5331 * python/py-events.h (gdb_py_events): Make it extern.
5332 * python/py-evtregistry.c (gdb_py_events): Declare.
5333
864ac8a7
HZ
53342011-06-16 Hui Zhu <teawater@gmail.com>
5335
5336 * remote.c (remote_trace_set_readonly_regions): Add check for
5337 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5338 output warning.
5339
ef7e8358
UW
53402011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5341
5342 * arm-linux-tdep.c: Include "auxv.h".
5343 (AT_HWCAP): Define.
5344 (ARM_LINUX_SIZEOF_VFP): Define.
5345 (arm_linux_supply_vfp): New function.
5346 (arm_linux_collect_vfp): Likewise.
5347 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5348 (arm_linux_fpa_regset_sections): New variable.
5349 (arm_linux_vfp_regset_sections): Likewise.
5350 (arm_linux_core_read_description): New function.
5351 (arm_linux_init_abi): Install arm_linux_core_read_description and
5352 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5353 appropriate for the architecture.
5354 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5355 (tdesc_arm_with_m): Declare.
5356 (tdesc_arm_with_iwmmxt): Likewise.
5357 (tdesc_arm_with_vfpv2): Likewise.
5358 (tdesc_arm_with_vfpv3): Likewise.
5359 (tdesc_arm_with_neon): Likewise.
5360 * arm-linux-nat.c: Move features/*.c includes ...
5361 * arm-tdep.c: ... here.
5362 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5363 target description data structures ...
5364 * arm-tdep.c (_initialize_arm_tdep): ... here.
5365 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5366 HWCAP_VFPv3D16): Move definitions ...
5367 * arm-linux-tdep.h: ... here.
5368
c2fa21f1
HZ
53692011-06-15 Hui Zhu <teawater@gmail.com>
5370
5371 * remote.c (remote_trace_set_readonly_regions): Add a check for
5372 target_buf_size.
5373
dd707e8e
TT
53742011-06-14 Tom Tromey <tromey@redhat.com>
5375
5376 * coffread.c (coffread_objfile): Rename from current_objfile.
5377 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5378 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5379
86cc0029
TT
53802011-06-14 Tom Tromey <tromey@redhat.com>
5381
5382 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5383 (class_symtab): Remove.
5384 (jv_dynamics_progspace_key): New global.
5385 (jv_per_objfile_free): Reset program space data. Update assert.
5386 Don't clear globals.
5387 (get_dynamics_objfile): Use and set program space data.
5388 (get_java_class_symtab): Use get_dynamics_objfile.
5389 (add_class_symbol): Likewise.
5390 (java_link_class_type): Likewise.
5391 (java_object_type, jv_clear_object_type, set_java_object_type):
5392 Remove.
5393 (get_java_object_type): Update. Don't cache result.
5394 (is_object_type): Don't call set_java_object_type.
5395 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5396 initialize jv_dynamics_progspace_key.
5397
91a81f69
TT
53982011-06-14 Tom Tromey <tromey@redhat.com>
5399
5400 * symtab.h (current_objfile): Don't declare.
5401 * objfiles.h (current_objfile): Don't declare.
5402 * objfiles.c (current_objfile): Remove.
5403 * mdebugread.c (current_objfile): New file-scope global.
5404 * dbxread.c (current_objfile): New file-scope global.
5405 * coffread.c (current_objfile): New file-scope global.
5406
dc7eb48e
PA
54072011-06-13 Pedro Alves <pedro@codesourcery.com>
5408
5409 * top.h (line): Rename to ...
5410 (saved_command_line): ... this.
5411 (linesize): Rename to ...
5412 (saved_command_line_size): ... this.
5413 * top.c (line): Rename to ...
5414 (saved_command_line): ... this.
5415 (linesize): Rename to ...
5416 (saved_command_line_size): ... this.
5417 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5418 * event-top.c (command_line_handler): Adjust.
5419 * main.c (captured_main): Adjust.
5420
0d6c2135
MK
54212011-06-12 Mark Kettenis <kettenis@gnu.org>
5422
5423 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5424 get_frame_func instead of get_frame_pc to determine the code
5425 address used to construct the frame ID.
5426 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5427 (i386_epilogue_frame_this_id): Likewise.
5428 (i386_epilogue_frame_prev_register): New function.
5429 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5430 (i386_stack_tramp_frame_sniffer): Fix coding style.
5431 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5432 (i386_gdbarch_init): Fix comments.
5433
8bbdd3f4
MK
54342011-06-12 Mark Kettenis <kettenis@gnu.org>
5435
5436 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5437 instruction when walking back through the instruction stream.
5438
533a737e
JK
54392011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5440
5441 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5442 fullname parameters order.
5443
44b13c5a
JK
54442011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5445
5446 Code cleanup.
5447 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5448 for fun.
5449 * psymtab.c (map_symbol_filenames_psymtab)
5450 (map_partial_symbol_filenames): Likewise.
5451 * psymtab.h: Include symfile.h.
5452 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5453 * symfile.h (symbol_filename_ftype): New.
5454 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5455 map_symbol_filenames, clarify more the naming in comment.
5456
0b5574da
DE
54572011-06-07 Doug Evans <dje@google.com>
5458
5459 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5460 Look for ../../gdb, for fullname.exp.
0b5574da 5461
5be4dfca
JK
54622011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5463 Pedro Alves <pedro@codesourcery.com>
5464
5465 * cli/cli-cmds.c (shell_escape): Use waitpid.
5466 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5467
316a8b21
TG
54682011-06-07 Tristan Gingold <gingold@adacore.com>
5469
5470 * xcoffread.c (dwarf2_xcoff_names): New variable.
5471 (aix_process_linenos): Add a guard.
5472 (xcoff_symfile_finish): Free dwarf2.
5473 (xcoff_initial_scan): Add dwarf2 support.
5474
3dd5b83d
PA
54752011-06-06 Pedro Alves <pedro@codesourcery.com>
5476
5477 * infcall.c (run_inferior_call): Don't mask async. Instead force
5478 a synchronous wait, if the target can async.
5479
5480 * target.h (struct target_ops): Delete to_async_mask.
5481 (target_async_mask): Delete.
5482 * target.c (update_current_target): Delete references to to_async_mask.
5483 * linux-nat.c (linux_nat_async_mask_value): Delete.
5484 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5485 to linux_nat_async_mask_value.
5486 (linux_nat_async_mask): Delete.
5487 (linux_nat_async, linux_nat_close): Remove references to
5488 linux_nat_async_mask_value.
5489 * record.c (record_async_mask_value): Delete.
5490 (record_async): Remove references to record_async_mask_value.
5491 (record_async_mask): Delete.
5492 (record_can_async_p, record_is_async_p): Remove references to
5493 record_async_mask_value.
5494 (init_record_ops, init_record_core_ops): Remove references to
5495 record_async_mask.
5496 * remote.c (remote_async_mask_value): Delete.
5497 (init_remote_ops): Remove reference to remote_async_mask.
5498 (remote_can_async_p, remote_is_async_p): Remove references to
5499 remote_async_mask_value.
5500 (remote_async): Remove references to remote_async_mask_value.
5501 (remote_async_mask): Delete.
5502
5503 * infrun.c (fetch_inferior_event): Don't claim registers changed
5504 if the current thread is already not executing.
5505
64b9b334
JB
55062011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5507
5508 From Stephen Kitt <steve@sk2.org>
5509 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5510 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5511
325663dc
JB
55122011-06-03 Joel Brobecker <brobecker@adacore.com>
5513
5514 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5515 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5516
8cf64490
TT
55172011-06-03 Tom Tromey <tromey@redhat.com>
5518
5519 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5520 code fields.
5521 * python/py-exitedevent.c (create_exited_event_object): Change
5522 type of 'exit_code'. Optionally add exit_code attribute.
5523 (emit_exited_event): Change type of 'exit_code'.
5524 * python/py-event.h (emit_exited_event): Update.
5525 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5526 * infrun.c (handle_inferior_event): Set exit code fields on
5527 inferior.
5528 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5529 fields.
5530 * inferior.c (exit_inferior_1): Initialize new fields.
5531
8ddd9a20
TT
55322011-06-03 Tom Tromey <tromey@redhat.com>
5533
5534 * dwarf2expr.c (get_signed_type): New function.
5535 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5536
8dfd1e6d
KS
55372011-06-02 Keith Seitz <keiths@redhat.com>
5538
5539 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5540
65fdb766
PA
55412011-06-02 Pedro Alves <pedro@codesourcery.com>
5542
5543 * top.h (simplified_command_loop): Delete declaration.
5544
f4b8c29b
MF
55452011-06-01 Mike Frysinger <vapier@gentoo.org>
5546
5547 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5548 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5549
1706c199
YQ
55502011-06-01 Yao Qi <yao@codesourcery.com>
5551
5552 * objfiles.h (obj_section_addr): Update reference to objfile from
5553 `abfd' to `obfd'.
5554 (obj_section_endaddr): Likewise.
5555
d19cd713 55562011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5557
5558 * MAINTAINERS: Update my email address and affiliation. Also
5559 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5560
e8eb7bc5
KS
55612010-05-31 Keith Seitz <keiths@redhat.com>
5562
5563 PR c++/12750
5564 * linespec.c (get_search_block): New function.
5565 (find_methods): Add FILE_SYMTATB parameter and use it and
5566 get_search_block to pass an appropriate block to
5567 lookup_symbol_in_namespace.
5568 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5569 Check if *ARGPTR starts with a filename first.
5570 If it does, call locate_first_half again to locate the next
5571 "first half" of the linespec.
5572 Pass FILE_SYMTATB to decode_objc and decode_compound.
5573 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5574 (locate_first_half): Stop on the first colon seen.
5575 (decode_compound): Add FILE_SYMTAB parameter.
5576 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5577 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5578 get_search_block with lookup_symbol.
5579 (find_method): Add FILE_SYMTAB parameter and pass it to
5580 find_methods.
5581 (decode_objc): Use get_search_block.
5582
2b1dbab0
KS
55832010-05-31 Keith Seitz <keiths@redhat.com>
5584
5585 PR symtab/12704
5586 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5587 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5588 and CP_ANONYMOUS_NAMESPACE_LEN.
5589 (cp_is_anonymous): Likewise.
5590 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5591 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5592 * dwarf2read.c (namespace_name): Likewise.
5593 (fixup_partial_die): Likewise.
5594 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5595 seen in the input, keep it.
5596
6d549500
PA
55972011-05-30 Pedro Alves <pedro@codesourcery.com>
5598
5599 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5600 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5601 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5602 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5603 * remote.c (_initialize_remote): Register
5604 async_remote_interrupt_twice directly as
5605 sigint_remote_twice_token event.
5606
395bff70
PA
56072011-05-30 Pedro Alves <pedro@codesourcery.com>
5608
5609 * target.h (enum inferior_event_type): Delete INF_ERROR.
5610 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5611
97224164
PA
56122011-05-30 Pedro Alves <pedro@codesourcery.com>
5613
5614 * interps.c (interp_set): Don't cancel continuations.
5615
07e78767
JK
56162011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5617
5618 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5619
fa4cd53f
PA
56202011-05-30 Pedro Alves <pedro@codesourcery.com>
5621
5622 * continuations.h (continuation_ftype): Add `err' parameter.
5623 Document parameters.
5624 (do_all_continuations, do_all_continuations_thread)
5625 (do_all_intermediate_continuations)
5626 (do_all_intermediate_continuations_thread)
5627 (do_all_inferior_continuations): Add `err' parameter.
5628 * continuations.c (do_my_continuations_1, do_my_continuations)
5629 (do_all_inferior_continuations, do_all_continuations_ptid)
5630 (do_all_continuations_thread_callback)
5631 (do_all_continuations_thread, do_all_continuations)
5632 (do_all_intermediate_continuations_thread_callback)
5633 (do_all_intermediate_continuations_thread)
5634 (do_all_intermediate_continuations): Add `err' parameter, and pass
5635 it down all the way to the continuations proper.
5636 * inf-loop.c (inferior_event_handler): If fetching an inferior
5637 event throws an error, don't pop the target, and still call the
5638 continuations, but with `err' set. Adjust all other continuation
5639 calls.
5640 * breakpoint.c (until_break_command_continuation): Add `err'
5641 parameter.
5642 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5643 issue another step if `err' is set.
5644 (struct until_next_continuation_args): New.
5645 (until_next_continuation): Add `err' parameter. Adjust.
5646 (until_next_command): Adjust.
5647 (struct finish_command_continuation_args): Add `thread' field.
5648 (finish_command_continuation): Add `err' parameter. Handle it.
5649 (finish_forward): Adjust.
5650 (attach_command_continuation): Add `err' parameter. Handle it.
5651 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5652 cancel the continuations.
5653 * interps.c (interp_set): Adjust to cancel the continuations.
5654 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5655 continuations rather than discarding.
5656 (free_thread): Don't clear thread inferior resources here.
5657 (delete_thread_1): Do it here instead. And do it before removing
5658 the thread from the threads list. Tag the thread as exited before
5659 clearing thread inferior resources.
5660
c2949be0
JB
56612011-05-30 Joel Brobecker <brobecker@adacore.com>
5662
5663 * infcall.c (call_function_by_hand): Rephrase error message.
5664
619cebe8
PA
56652011-05-27 Pedro Alves <pedro@codesourcery.com>
5666
5667 * defs.h (struct thread_info, struct inferior): Delete forward
5668 declarations.
5669 * breakpoint.h (struct thread_info): New forward declaration.
5670 * observer.sh (struct inferior): New forward declaration.
5671 * python/python-internal.h (struct inferior): New forward
5672 declaration.
5673
be34f849
PA
56742011-05-27 Pedro Alves <pedro@codesourcery.com>
5675
5676 * defs.h (struct continuation, continuation_ftype)
5677 (continuation_free_arg_ftype, add_continuation)
5678 (do_all_continuations, do_all_continuations_thread)
5679 (discard_all_continuations, discard_all_continuations_thread)
5680 (add_intermediate_continuation, do_all_intermediate_continuations)
5681 (do_all_intermediate_continuations_thread)
5682 (discard_all_intermediate_continuations)
5683 (discard_all_intermediate_continuations_thread)
5684 (add_inferior_continuation, do_all_inferior_continuations)
5685 (discard_all_inferior_continuations): Move to ...
5686 * continuations.h: ... this new file.
5687 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5688 infcmd.c, inferior.c, infrun.c, interps.c: Include
5689 continuations.h.
5690
432b4d03
JK
56912011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5692 Doug Evans <dje@google.com>
5693
5694 Fix PR 10970, PR 12702.
5695 * linux-nat.c (linux_lwp_is_zombie): New function.
5696 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5697 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5698
b0f260d6
PA
56992011-05-27 Pedro Alves <pedro@codesourcery.com>
5700
5701 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5702 typedefs.
5703 (add_continuation, add_intermediate_continuation)
5704 (add_inferior_continuation): Use them.
5705 * continuations.c (struct continuation): Use them.
5706 (make_continuation_ftype): Delete.
5707 (make_continuation, add_inferior_continuation, add_continuation)
5708 (add_intermediate_continuation): Use continuation_ftype and
5709 continuation_free_arg_ftype. Rename parameters to shorter names.
5710
af1e9a32
PA
57112011-05-27 Pedro Alves <pedro@codesourcery.com>
5712
5713 * continuations.c (make_continuation): Make it return void.
5714 (do_my_continuations): Rename to ...
5715 (do_my_continuations_1): ... this. Remove old_chain parameter and
5716 adjust.
5717 (do_my_continuations): New.
5718 (discard_my_continuations): Rename to ...
5719 (discard_my_continuations_1): ... this. Remove old_chain
5720 parameter and adjust.
5721 (discard_my_continuations): New.
5722 (add_inferior_continuation): Simplify.
5723 (do_all_inferior_continuations): Reimplement on top
5724 do_my_continuations.
5725 (discard_all_inferior_continuations): Simplify.
5726 (add_continuation): Simplify.
5727 (do_all_continuations_ptid): Simplify.
5728 (discard_all_continuations_thread_callback): Simplify.
5729 (add_intermediate_continuation): Simplify.
5730 (discard_all_intermediate_continuations_thread_callback):
5731 Simplify.
5732
50c0c017
PA
57332011-05-27 Pedro Alves <pedro@codesourcery.com>
5734
5735 * utils.c (struct continuation, add_continuation)
5736 (add_inferior_continuation)
5737 (do_all_inferior_continuations, discard_all_inferior_continuations)
5738 (restore_thread_cleanup, do_all_continuations_ptid)
5739 (do_all_continuations_thread_callback)
5740 (do_all_continuations_thread, do_all_continuations)
5741 (discard_all_continuations_thread_callback)
5742 (discard_all_continuations_thread, discard_all_continuations)
5743 (add_intermediate_continuation)
5744 (do_all_intermediate_continuations_thread_callback)
5745 (do_all_intermediate_continuations_thread)
5746 (do_all_intermediate_continuations)
5747 (discard_all_intermediate_continuations_thread_callback)
5748 (discard_all_intermediate_continuations_thread)
5749 (discard_all_intermediate_continuations): Move to ...
5750 * continuations.c: ... this new file, and adjust to no longer
5751 implement continuations on top of cleanups.
5752 * Makefile.in (SFILES): Add continuations.c.
5753 (COMMON_OBS): Add continuations.o.
5754
d8b34453
PA
57552011-05-26 Pedro Alves <pedro@codesourcery.com>
5756
5757 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5758 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5759 Internal error on invalid values.
5760 * reverse.c: Don't handle EXEC_ERROR.
5761 * mi/mi-main.c: Don't handle EXEC_ERROR.
5762
32231432
PA
57632011-05-26 Pedro Alves <pedro@codesourcery.com>
5764
5765 * record.c: Include event-loop.h, inf-loop.h.
5766 (record_beneath_to_async): New global.
5767 (tmp_to_async): New global.
5768 (record_async_inferior_event_token): New global.
5769 (record_open_1): Don't error out if async is enabled.
5770 (record_open): Handle to_async. Create an async event source in
5771 the event loop.
5772 (record_close): Delete the async event source.
5773 (record_resumed): New global.
5774 (record_execution_dir): New global.
5775 (record_resume, record_core_resume): Set them. Register the
5776 target on the event loop.
5777 (record_wait): Rename to ...
5778 (record_wait_1): ... this. Add more debug output. Handle
5779 TARGET_WNOHANG, and the target beneath returning
5780 TARGET_WAITKIND_IGNORE.
5781 (record_wait): Reimplement on top of record_wait_1.
5782 (record_async_mask_value): New global.
5783 (record_async, record_async_mask, record_can_async_p)
5784 (record_is_async_p, record_execution_direction): New functions.
5785 (init_record_ops, init_record_core_ops): Install new methods.
5786 * infrun.c (fetch_inferior_event): Temporarily switch the global
5787 execution direction to the direction the target was going.
5788 (execution_direction): Change type to int.
5789 * target.c (default_execution_direction): New function.
5790 (update_current_target): Inherit and de_fault
5791 to_execution_direction.
5792 * target.h (struct target_ops) <to_execution_direction>: New
5793 field.
5794 (target_execution_direction): New macro.
5795 * inferior.h (execution_direction): Change type to int.
5796
949dc678
PA
57972011-05-26 Pedro Alves <pedro@codesourcery.com>
5798
5799 * infcall.c (call_function_by_hand): Don't allow calling functions
5800 in reverse execution mode.
5801
c13bd2b5
PA
58022011-05-26 Pedro Alves <pedro@codesourcery.com>
5803
5804 * infcmd.c (finish_command): Allow async finish in reverse.
5805
6938fd34
YQ
58062011-05-26 Yao Qi <yao@codesourcery.com>
5807
5808 * gdb_thread_db.h: Delete. Move to ...
5809 * common/gdb_thread_db.h: ... here.
5810
9da8c2a0
PA
58112011-05-26 Pedro Alves <pedro@codesourcery.com>
5812
5813 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5814 function's entry point instead of a manually managed momentary
5815 breakpoint, and only ever issue one proceed call.
5816 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5817 doing a reverse-finish, switch to stepi mode, to do another step.
5818 (insert_step_resume_breakpoint_at_sal): Make public.
5819 (normal_stop): No need to save function value return registers if
5820 going reverse.
5821 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5822
2c03e5be
PA
58232011-05-26 Pedro Alves <pedro@codesourcery.com>
5824
5825 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5826 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5827 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5828 at the end.
5829 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5830 step-resume breakpoints.
5831 (print_it_typical): Handle bp_hp_step_resume.
5832 (bpstat_what): Ditto.
5833 (bptype_string): Ditto.
5834 (print_one_breakpoint_location): Ditto.
5835 (allocate_bp_location): Ditto.
5836 (mention): Ditto.
5837 (breakpoint_re_set_one): Ditto.
5838 * infrun.c (handle_inferior_event): Adjust. Split
5839 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5840 BPSTAT_WHAT_HP_STEP_RESUME.
5841 (insert_step_resume_breakpoint_at_sal): Rename to ...
5842 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5843 parameter. Handle it.
5844 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5845 insert_step_resume_breakpoint_at_sal_1.
5846 (insert_step_resume_breakpoint_at_frame): Rename to ...
5847 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5848 set a high-priority step-resume breakpoint.
5849 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5850 (insert_step_resume_breakpoint_at_caller): Ditto.
5851
51be5b68
PA
58522011-05-26 Pedro Alves <pedro@codesourcery.com>
5853
5854 * breakpoint.c (iterate_over_related_breakpoints): New.
5855 (do_map_delete_breakpoint): New.
5856 (delete_command): Pass do_map_delete_breakpoint to
5857 map_breakpoint_numbers.
5858 (do_disable_breakpoint): New.
5859 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5860 breakpoints.
5861 (do_enable_breakpoint): Rename to ...
5862 (enable_breakpoint_disp): ... this.
5863 (enable_breakpoint): Adjust.
5864 (do_enable_breakpoint): New.
5865 (enable_once_breakpoint): Delete.
5866 (do_map_enable_breakpoint): New.
5867 (do_map_enable_once_breakpoint): New.
5868 (enable_once_command, enable_delete_command)
5869 (delete_trace_command): Iterate over the breakpoint's related
5870 breakpoints.
5871
4a1be8d2
PA
58722011-05-26 Pedro Alves <pedro@codesourcery.com>
5873
5874 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5875 for ALPHA_ZERO_REGNUM.
5876 (alpha_supply_int_regs): Explicitly supply zero as the value for
5877 ALPHA_ZERO_REGNUM in the register cache.
5878 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5879
59d70315
YQ
58802011-05-26 Yao Qi <yao@codesourcery.com>
5881
5882 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5883
251d32d9
TG
58842011-05-26 Tristan Gingold <gingold@adacore.com>
5885
5886 * symfile.h (struct dwarf2_section_names): New type.
5887 (struct dwarf2_debug_sections): New type.
5888 (dwarf2_has_info): Add parameter.
5889 * dwarf2read.c (dwarf2_elf_names): New variable.
5890 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5891 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5892 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5893 (dwarf2_has_info): Add names parameter. Pass names
5894 to dwarf2_locate_sections.
5895 (section_is_p): Rewrite using the names parameter.
5896 (dwarf2_locate_sections): Use section names from the names parameter.
5897 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5898 * elfread.c (read_psyms): Ditto.
5899 * machoread.c (macho_symfile_read): Ditto.
5900
652c71b4
AS
59012011-05-25 Andreas Schwab <schwab@redhat.com>
5902
5903 PR gdb/8677
5904 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5905
f17170e5
KS
59062011-05-24 Keith Seitz <keiths@redhat.com>
5907
5908 PR breakpoint/12803
5909 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5910 (decode_compound): Unconditionally call keep_name_info.
5911
cdac0397
PA
59122011-05-24 Pedro Alves <pedro@codesourcery.com>
5913
5914 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5915 scope, clear its command list.
5916 (map_breakpoint_numbers): Don't walk the related breakpoints list
5917 of each breakpoint.
5918
91d4fe3f
TT
59192011-05-24 Tom Tromey <tromey@redhat.com>
5920
5921 * MAINTAINERS: Move Jim Blandy to past maintainers.
5922
3017a003
TG
59232011-05-24 Tristan Gingold <gingold@adacore.com>
5924
5925 * symfile.h (enum dwarf2_section_enum): New type.
5926 (dwarf2_get_section_info): New prototype.
5927 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5928 section_name by sect. Use a switch to select the info.
5929 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5930 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5931
c91c8c16
PA
59322011-05-24 Pedro Alves <pedro@codesourcery.com>
5933
5934 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5935 shared library event breakpoint if there's no execution.
5936
77bc418a
TJB
59372011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5938
5939 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5940 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5941
c50491a7
TT
59422011-05-23 Tom Tromey <tromey@redhat.com>
5943
5944 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5945 NULL.
5946
6d64e6d4
DE
59472011-05-23 Doug Evans <dje@google.com>
5948
5949 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5950 entry for RuntimeError to doc string.
5951
2067c8d4
JG
59522011-05-23 Jerome Guitton <guitton@adacore.com>
5953
5954 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5955 sequence for probing loops.
5956
b136cd05
PA
59572011-05-23 Pedro Alves <pedro@codesourcery.com>
5958
5959 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5960 comment.
5961
22e74ef9
MK
59622011-05-21 Mark Kettenis <kettenis@gnu.org>
5963
5964 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5965 zero as the value for %g0 in the register cache.
5966 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5967 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5968
842951eb
PA
59692011-05-20 Pedro Alves <pedro@codesourcery.com>
5970
5971 * infrun.c (proceed): Set previous_inferior_ptid here.
5972 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5973 inferior_ptid, not null_ptid.
5974 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5975 (fetch_inferior_event): Nor here.
5976
46cf51e6
PA
59772011-05-20 Pedro Alves <pedro@codesourcery.com>
5978
5979 * inf-loop.c (inferior_event_handler): Only output a message if
5980 verbose.
5981
29ef4c46
LM
59822011-05-20 Luis Machado <lgustavo@codesourcery.com>
5983
5984 * MAINTAINERS: Update my e-mail address.
5985
f148b27e
PA
59862011-05-20 Pedro Alves <pedro@codesourcery.com>
5987
5988 * infrun.c (proceed): Switch the inferior event loop to
5989 INF_EXEC_COMPLETE if the target refused to resume from a
5990 vfork/fork.
5991
09cee04b
PA
59922011-05-20 Pedro Alves <pedro@codesourcery.com>
5993
5994 * infcmd.c: Include "inf-loop.h".
5995 (step_once): When stepping into an inline subroutine, pretend the
5996 target has run. If the target can async, switch the inferior
5997 event loop to INF_EXEC_COMPLETE.
5998 * inferior.h (user_visible_resume_ptid): Declare.
5999 * infrun.c (user_visible_resume_ptid): New function, factored out
6000 from `resume'.
6001 (resume): Use it.
6002 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6003 that the current thread is running. Merge async and sync
6004 branches.
6005
751b8ce1
PA
60062011-05-20 Pedro Alves <pedro@codesourcery.com>
6007
6008 * infcmd.c (step_1): Simplify synchronous case.
6009
e93a69ed
PA
60102011-05-20 Pedro Alves <pedro@codesourcery.com>
6011
6012 * tracepoint.c: Include exceptions.h.
6013 (TFILE_PID): Move higher in file.
6014 (tfile_open): Delay pushing the tfile target until we're assured
6015 the tfile header is present in the file. Wrap reading the initial
6016 newline-terminated lines in TRY_CATCH. Pop the target if the
6017 initial setup failed. Add the tfile's thread immediately
6018 aftwards, before any non-essential setup. Don't skip
6019 post_create_inferior if there are no traceframes present in the
6020 file.
6021 (tfile_close): Remove redundant check for null before xfree call.
6022 (tfile_thread_alive): New function.
6023 (init_tfile_ops): Register it as to_thread_alive callback.
6024
6823e2b1
PA
60252011-05-20 Pedro Alves <pedro@codesourcery.com>
6026
6027 * tracepoint.c (tfile_open): Delete #if 0'd code.
6028
b3c8eb43
JK
60292011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 Fix -readnow for -gdwarf-4 unused type units.
6032 * dwarf2read.c (struct signatured_type): Remove the field offset.
6033 (create_signatured_type_table_from_index): Remove its initialization.
6034 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6035 instead. Add a complaint call.
6036 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6037 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6038 (lookup_signatured_type_at_offset, read_signatured_type)
6039 (write_one_signatured_type): Update the field for per_cu.
6040
310afc76
TT
60412011-05-19 Tom Tromey <tromey@redhat.com>
6042
6043 * python/py-inferior.c (python_inferior_exit): Use
6044 target_gdbarch.
6045 (python_on_resume): Likewise.
6046
cf6c5ffb
TT
60472011-05-19 Matt Rice <ratmice@gmail.com>
6048
6049 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6050
fb80a3c5
HZ
60512011-05-19 Hui Zhu <teawater@gmail.com>
6052
6053 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6054
3672b1be
HZ
60552011-05-19 Hui Zhu <teawater@gmail.com>
6056
6057 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6058
ff355380
TT
60592011-05-18 Tom Tromey <tromey@redhat.com>
6060
6061 * dwarf2read.c (dwarf2_add_field): Constify.
6062 * value.c (value_static_field): Constify.
6063 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6064 Now const.
6065 * ax-gdb.c (gen_static_field): Constify
6066
ed731959
JK
60672011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * linux-nat.c (kill_callback): Use SIGKILL first.
6070
967cff16
JB
60712011-05-18 Joel Brobecker <brobecker@adacore.com>
6072
6073 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6074
1d06ead6
TT
60752011-05-18 Tom Tromey <tromey@redhat.com>
6076
6077 * value.c (value_fn_field): Constify.
6078 * symtab.c (gdb_mangle_name): Constify.
6079 * stabsread.c (update_method_name_from_physname): Make 'physname'
6080 argument const.
6081 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6082 const. Use explicit fputc_filtered loop.
6083 (pascal_type_print_base): Constify.
6084 * p-lang.h (pascal_type_print_method_args): Update.
6085 * linespec.c (add_matching_methods): Constify.
6086 (add_constructors): Likewise.
6087 * jv-typeprint.c (java_type_print_base): Constify.
6088 * gdbtypes.h (struct cplus_struct_type)
6089 <fn_fieldlist.fn_field.physname>: Now const.
6090 * dwarf2read.c (compute_delayed_physnames): Constify.
6091 (dwarf2_add_member_fn): Likewise.
6092 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6093
0d9a9a5f
PA
60942011-05-18 Pedro Alves <pedro@codesourcery.com>
6095
6096 * infrun.c (resume): Mention which is the current thread, and its
6097 current PC in debug output.
6098 (prepare_to_proceed): Mention the thread switching in debug
6099 output.
6100
05386e9e
TT
61012011-05-18 Tom Tromey <tromey@redhat.com>
6102
6103 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6104 path check. Use xmalloc and cleanups.
6105 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6106
ee86786c
TT
61072011-05-17 Tom Tromey <tromey@redhat.com>
6108
6109 * cp-valprint.c (cp_print_value_fields): Catch errors from
6110 value_static_field.
6111
9ff3b74f
TT
61122011-05-17 Tom Tromey <tromey@redhat.com>
6113
6114 * dwarf2read.c (dwarf2_get_die_type): Call
6115 get_die_type_at_offset.
6116 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6117 get_base_type function.
6118
cd3da28e
PA
61192011-05-17 Tomas Martinec <fyzmat@gmail.com>
6120
6121 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6122 trap_expected.
6123
fd20d931
DE
61242011-05-16 Doug Evans <dje@google.com>
6125
6126 * python/py-auto-load.c (source_section_scripts): Mention objfile
6127 name in warning.
6128
75fc9810
DE
61292011-05-15 Doug Evans <dje@google.com>
6130
290351b8
DE
6131 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6132 (try_thread_db_load_from_pdir): Call it. If unable to find
6133 libthread_db in directory of libpthread, see if we're looking at
6134 the separate-debug-info copy.
6135
75fc9810
DE
6136 * python/py-autoload.c (print_script): Print "Missing" instead of
6137 "No" for missing scripts.
6138 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6139
9f7bc587
DE
61402011-05-13 Doug Evans <dje@google.com>
6141
6142 * ui-file.c (stdio_file_write_async_safe): Add comment.
6143
093cee7d
HZ
61442011-05-14 Hui Zhu <teawater@gmail.com>
6145
6146 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6147
dbaefcf7
DE
61482011-05-13 Doug Evans <dje@google.com>
6149
98a5dd13
DE
6150 Support $pdir and $sdir in libthread-db-search-path.
6151 * NEWS: Mention $sdir,$pdir.
6152 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6153 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6154 (try_thread_db_load_from_sdir): New function.
6155 (try_thread_db_load_from_dir): New function.
6156 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6157 system directories if search of libthread-db-search-path fails,
6158 that is now done via $sdir.
6159 (has_libpthread): New function.
6160 (thread_db_load): Remove search for libthread_db in directory of
6161 libpthread, that is now done via $pdir.
6162
dbaefcf7
DE
6163 * NEWS: Mention "info auto-load-scripts".
6164 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6165 script_not_found_warning_printed.
6166 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6167 all callers updated. Initialize script_not_found_warning_printed.
6168 (get_auto_load_pspace_data_for_loading): New function.
6169 (maybe_add_script): New function.
6170 (source_section_scripts): Simplify. Only print one warning regardless
6171 of the number of auto-load scripts not found.
6172 (clear_section_scripts): Clear script_not_found_warning_printed.
6173 (auto_load_objfile_script): Record script in hash table.
6174 (count_matching_scripts): New function.
6175 (maybe_print_script): Renamed from maybe_print_section_script, all
6176 callers updated. Rewrite to use ui_out_*.
6177 (info_auto_load_scripts): Renamed from
6178 maintenance_print_section_scripts, all callers updated.
6179 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6180 renamed as "info auto-load-scripts".
6181
9930639c
TT
61822011-05-13 Tom Tromey <tromey@redhat.com>
6183
6184 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6185 (read_sleb128): Likewise.
6186
06826322
TT
61872011-05-13 Tom Tromey <tromey@redhat.com>
6188
6189 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6190 offset display.
6191
01124a23
DE
61922011-05-13 Doug Evans <dje@google.com>
6193
6194 * linux-nat.c (debug_linux_nat_async): Delete.
6195 Replace all references to use debug_linux_nat instead.
6196 (show_debug_linux_nat_async): Delete.
6197 (sigchld_handler): Call ui_file_write_async_safe instead of
6198 fprintf_unfiltered.
6199 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6200 * ui-file.c (struct ui_file): New member to_write_async_safe.
6201 (null_file_write_async_safe): New function.
6202 (ui_file_write_async_safe): New function.
6203 (set_ui_file_write_async_safe): New function.
6204 (ui_file_new): Initialize to_write_async_safe.
6205 (stdio_file_write_async_safe): New function.
6206 (struct stdio_file): New member fd.
6207 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6208 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6209 fileno.
01124a23
DE
6210 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6211 (set_ui_file_write_async_safe): Declare.
6212 (ui_file_write_async_safe): Declare.
6213
72fc29ff
TT
62142011-05-13 Tom Tromey <tromey@redhat.com>
6215
6216 * utils.c (do_value_free): New function.
6217 (make_cleanup_value_free): Likewise.
6218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6219 freeing correctly.
6220 (dwarf2_loc_desc_needs_frame): Call
6221 make_cleanup_value_free_to_mark.
6222 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6223 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6224 value_free_to_mark.
6225 (new_dwarf_expr_context): Don't call value_mark.
6226 * dwarf2-frame.c (execute_stack_op): Call
6227 make_cleanup_value_free_to_mark.
6228 * defs.h (make_cleanup_value_free): Declare.
6229
028d0ed5
TJB
62302011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6231
6232 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6233 prepare_execute_command.
6234 * top.c (prepare_execute_command): Return cleanup.
6235 (execute_command): Use cleanup from prepare_execute_command.
6236 * top.h (prepare_execute_command): Change prototype to return
6237 cleanup.
6238 * defs.h (struct value): Add opaque declaration.
6239 (make_cleanup_value_free_to_mark): Add prototype.
6240 * utils.c (do_value_free_to_mark): New function.
6241 (make_cleanup_value_free_to_mark): Likewise.
6242
b087e0ed
TT
62432011-05-12 Tom Tromey <tromey@redhat.com>
6244
6245 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6246 cast left-hand-side to unsigned.
6247
8a9b8146
TT
62482011-05-12 Tom Tromey <tromey@redhat.com>
6249
6250 PR gdb/12617:
6251 * value.h (value_from_contents): Declare.
6252 * value.c (value_from_contents): New function.
6253 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6254 (dwarf2_get_die_type): New function.
6255 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6256 (allocate_piece_closure): Acquire reference to values.
6257 (read_pieced_value): Update for value-based expressions.
6258 (write_pieced_value): Likewise.
6259 (free_pieced_value_closure): Call value_free as needed.
6260 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6261 Update for value-based expressions.
6262 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6263 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6264 <get_base_type>: New field.
6265 (struct dwarf_expr_piece) <v.value>: Change type.
6266 <v.regno>: New field.
6267 (struct dwarf_expr_context) <mark>: New field.
6268 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6269 (dwarf_expr_pop, dwarf_expr_push): Remove.
6270 (dwarf_expr_push_address): Declare.
6271 * dwarf2expr.c (dwarf_arch_cookie): New global.
6272 (struct dwarf_gdbarch_types): New.
6273 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6274 functions.
6275 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6276 static.
6277 (dwarf_expr_push_address): New function.
6278 (dwarf_expr_pop): Now static.
6279 (dwarf_expr_fetch): Change return type.
6280 (dwarf_require_integral): New function.
6281 (dwarf_expr_fetch): Simplify.
6282 (add_piece): Update.
6283 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6284 functions.
6285 (execute_stack_op) <sign_ext>: Remove.
6286 Use values for DWARF stack.
6287 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6288 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6289 New cases.
6290 (_initialize_dwarf2expr): New function.
6291 (add_piece): Update.
6292 (new_dwarf_expr_context): Set new field.
6293 (free_dwarf_expr_context): Call value_free_to_mark.
6294 * dwarf2-frame.c (no_base_type): New function.
6295 (execute_stack_op): Set get_base_type field. Update.
6296
e8d28ef4
TT
62972011-05-12 Tom Tromey <tromey@redhat.com>
6298
6299 * dwarf2read.c (read_common_block): Fix formatting.
6300
d248b706
KY
63012011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6302
6303 * breakpoint.c (disable_breakpoint): Disable all locations
6304 associated with a tracepoint on target if a trace experiment is
6305 running.
6306 (disable_command): Disable a specific tracepoint location on target if
6307 a trace experiment is running.
6308 (do_enable_breakpoint): Enable all locations associated with a
6309 tracepoint on target if a trace experiment is running.
6310 (enable_command) Enable a specific tracepoint location on target if a
6311 trace experiment is running.
6312 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6313 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6314 to_disable_tracepoint.
6315 * target.h: Add declaration of struct bp_location.
6316 (struct target_ops): Add new functions
6317 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6318 to_disable_tracepoint to target operations.
6319 (target_supports_enable_disable_tracepoint): New macro.
6320 (target_enable_tracepoint): New macro.
6321 (target_disable_tracepoint): New macro.
6322 * remote.c (struct remote_state): Add new field.
6323 (remote_enable_disable_tracepoint_feature): New.
6324 (remote_protocol_features): Add new entry.
6325 (remote_supports_enable_disable_tracepoint): New.
6326 (remote_enable_tracepoint): New.
6327 (remote_disable_tracepoint): New.
6328 (init_remote_ops): Add remote_enable_tracepoint,
6329 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6330 to remote operations.
6331 * tracepoint.c (start_tracing): Allow tracing to start without any
6332 tracepoints enabled with just a warning if they can be re-enabled
6333 later.
6334 * NEWS: Add news item for the new behaviour of the enable and disable
6335 GDB commands when applied to tracepoints.
6336 Add news items for the new remote packets QTEnable and QTDisable.
6337
cc88a640
JK
63382011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6339
6340 * config.in: Regenerate.
6341 * configure: Regenerate.
6342 * configure.ac <--with-system-readline> (for readline_echoing_p):
6343 Remove the test.
6344 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6345 (tui_old_rl_echoing_p): ... here.
6346 (tui_setup_io): Rename extern declaration readline_echoing_p to
6347 _rl_echoing_p. Adjust assignments for the both renames.
6348
1f84b619
TJB
63492011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6350
6351 * symtab.c (lookup_symtab): Run cleanup before returning.
6352
74ac6d43
TT
63532011-05-11 Tom Tromey <tromey@redhat.com>
6354
6355 * dwarf2read.c (handle_data_member_location): New function.
6356 (dwarf2_add_field): Use it.
6357 (read_common_block): Likewise.
6358
5488dafb
JK
63592011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6360
6361 Make addrs->SECTINDEX always defined.
6362 * symfile.c (relative_addr_info_to_section_offsets): Check for
6363 SECTINDEX -1, not for zero ADDR.
6364 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6365 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6366 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6367 on its validity.
6368
84e578fb
DE
63692011-05-10 Doug Evans <dje@google.com>
6370
2471d008
DE
6371 * linux-thread-db.c: Whitespace cleanup.
6372 (try_thread_db_load_1): Fix comment.
6373
84e578fb
DE
6374 * linux-thread-db.c (set_libthread_db_search_path): New function.
6375 (_initialize_thread_db): Add setter for libthread-db-search-path.
6376
673c2bbe
DE
63772011-05-09 Doug Evans <dje@google.com>
6378
478aac75
DE
6379 * NEWS: Mention --with-iconv-bin.
6380 * configure.ac: New option --with-iconv-bin.
6381 * configure: Regenerate.
6382 * config.in: Regenerate.
6383 * defs.h (relocate_gdb_directory): Declare.
6384 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6385 removed progname parameter, and exported. All callers updated.
6386 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6387
673c2bbe
DE
6388 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6389 adding missing call to restore_child_signals_mask.
6390
e4c8541f
PA
63912011-05-09 Pedro Alves <pedro@codesourcery.com>
6392
6393 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6394 parameter.
6395 * infrun.c (proceed, start_remote): Adjust.
6396 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6397 and adjust to not handle it.
6398 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6399 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6400 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6401 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6402 * windows-nat.c (do_initial_windows_stuff): Adjust.
6403 * infcmd.c (attach_command): Adjust.
6404 (notice_new_inferior): Adjust.
6405
a536c6d7
UW
64062011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6407
6408 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6409 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6410 * spu-tdep.c (op_selb): Use correct value.
6411
7845b013
UW
64122011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6413
6414 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6415 "parent" parameter to symbol_file_add_from_bfd call.
6416
9c06b0b4
TJB
64172011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6418 Thiago Jung Bauermann <bauerman@br.ibm.com>
6419
6420 Implement support for PowerPC BookE masked watchpoints.
6421 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6422 section.
6423 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6424 method. Initialize to NULL in all existing breakpoint_ops instances.
6425 (struct breakpoint) <hw_wp_mask>: New field.
6426 * breakpoint.c (is_masked_watchpoint): Add prototype.
6427 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6428 breakpoint's breakpoint_ops.works_in_software_mode if available.
6429 (watchpoints_triggered): Handle the case of a hardware masked
6430 watchpoint trigger.
6431 (watchpoint_check): Likewise.
6432 (works_in_software_mode_watchpoint): New function.
6433 (insert_masked_watchpoint, remove_masked_watchpoint)
6434 (resources_needed_masked_watchpoint)
6435 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6436 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6437 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6438 functions.
6439 (masked_watchpoint_breakpoint_ops): New structure.
6440 (watch_command_1): Check for the existence of the `mask' parameter.
6441 Set b->ops according to the type of hardware watchpoint being created.
6442 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6443 (ppc_linux_remove_mask_watchpoint)
6444 (ppc_linux_masked_watch_num_registers): New functions.
6445 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6446 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6447 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6448 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6449 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6450 (target_masked_watch_num_registers): New functions.
6451 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6452 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6453 methods.
6454 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6455 (target_masked_watch_num_registers): Add prototypes.
6456
8be455d7
JK
64572011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6458
6459 PR 12573
6460 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6461 (producer_is_gcc_ge_4_0): New function.
6462 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6463 symtab->language code.
6464 (var_decode_location): Set cu->has_loclist.
6465 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6466 skip. Intialize force_skip from locations_valid. Move the prologue
6467 skipping code into two passes.
6468 * symtab.h (struct symtab): Make the primary field a bitfield. New
6469 field locations_valid.
6470
d8228535
JK
64712011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6472
6473 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6474 (classify_inner_name): Call cp_lookup_nested_type with
6475 yylval.tsym.type.
6476 * cp-namespace.c (cp_lookup_nested_type): New variable
6477 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6478 type_name_no_tag_or_error with saved_parent_type.
6479 * dwarf2read.c (load_partial_dies): Read in any children of
6480 DW_TAG_typedef with complaint in such case.
6481 * gdbtypes.c (type_name_no_tag_or_error): New function.
6482 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6483 * valops.c (destructor_name_p): New comment for parameter type. Remove
6484 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6485 * value.h (destructor_name_p): Remove type const.
6486
1976171a
JK
64872011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 * symtab.c (compare_symbol_name): New function.
6490 (completion_list_add_name, expand_partial_symbol_name): Call it,
6491 remove the variable ncmp.
6492 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6493 gdb_assert it.
6494
a9634178
TJB
64952011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6496
6497 Demote to sw watchpoint only in update_watchpoint.
6498 * breakpoint.c (update_watchpoint): Change between software and
6499 hardware watchpoint for all kinds of watchpoints, not just
6500 read/write ones. Determine b->exact value here instead of
6501 in watch_command_1. Error out if there are not enough resources
6502 for a read or access hardware watchpoint.
6503 (watch_command_1): Remove logic of checking whether there are
6504 enough resources available, since update_watchpoint will do that
6505 work now. Don't set b->exact here. Catch exceptions thrown by
6506 update_watchpoint and delete the watchpoint.
6507 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6508 Use target_exact_watchpoints instead.
6509 (delete_breakpoint): Notify observers only if deleted watchpoint
6510 has a breakpoint number assigned to it.
6511
4c67c798
JJ
65122011-05-05 Janis Johnson <janisjo@codesourcery.com>
6513
6514 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6515
a3fcb948
JG
65162011-05-05 Jerome Guitton <guitton@adacore.com>
6517
6518 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6519 New functions.
6520 (i386_stack_tramp_frame_unwind): New static global.
6521 (i386_match_pattern): New function, extracted from i386_match_insn.
6522 (i386_match_insn): Use i386_match_pattern.
6523 (i386_match_insn_block): New function.
6524 (i386_tramp_chain_in_reg_insns)
6525 (i386_tramp_chain_on_stack_insns): New static variables.
6526 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6527 of unwinders.
6528
4d393d60
JM
65292011-05-04 Joseph Myers <joseph@codesourcery.com>
6530
6531 * configure.host (xscale*): Don't handle target.
6532 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6533 handle targets.
6534
f70bd40b
YQ
65352011-05-04 Yao Qi <yao@codesourcery.com>
6536
6537 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6538
dd3295ee
JB
65392011-05-03 Joel Brobecker <brobecker@adacore.com>
6540
6541 Revert:
6542 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6543 | * elfread.c (elf_symtab_read): Stop memory leak.
6544
90375a0e
PM
65452011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6546
6547 * nto-tdep.c (nto_target): Replace deprecated call to
6548 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6549
d07205c2
JK
65502011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 Fix false GCC warning.
6553 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6554
1e718ff1
TJB
65552011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6556
6557 * breakpoint.c (update_watchpoint): Move code to change
6558 the enable state of breakpoint from here ...
6559 (do_enable_breakpoint): ... to here.
6560
35bef4fd
TT
65612011-04-26 Andrew Gontarek <andrewg@cray.com>
6562
78290264
PP
6563 * valprint.c (val_print_array_elements): Fixed poor performance
6564 of printing very large arrays with repeat_count_threshold set
6565 to unlimited. New comment.
35bef4fd 6566
38a714bb
TT
65672011-04-29 Tom Tromey <tromey@redhat.com>
6568
6569 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6570 (mi_parse): Likewise.
6571 * breakpoint.c (break_range_command): Use sizeof char*, not
6572 char**.
6573 (create_breakpoint): Likewise.
6574 (parse_breakpoint_sals): Likewise.
6575
eb73ad13
PA
65762011-04-29 Pedro Alves <pedro@codesourcery.com>
6577
6578 * linux-nat.c (linux_child_remove_fork_catchpoint)
6579 (linux_child_remove_vfork_catchpoint)
6580 (linux_child_remove_exec_catchpoint): New functions.
6581 (linux_target_install_ops): Install them.
6582
d65aec65
PM
65832011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6584
6585 PR mi/12531
6586
6587 * varobj.c (install_default_visualizer): Do not install a
6588 visualizer if the varobj is CPLUS_FAKE_CHILD.
6589 (construct_visualizer): Likewise.
6590
165195f4
JK
65912011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6592
6593 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6594 case insensitive comparison.
6595
30852783
UW
65962011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6597
6598 * infrun.c (proceed): Revert previous change.
6599 (resume): Instead, handle the case of signal delivery while stepping
6600 off a breakpoint location here, and only if software single-stepping
6601 is used. Handle nested signals.
6602
7ff120b4
YQ
66032011-04-28 Yao Qi <yao@codesourcery.com>
6604
6605 * arm-tdep.c (copy_unmodified): Rename to ...
6606 (arm_copy_unmodified): .. this. New.
6607 (copy_preload): Move common part to ...
6608 (install_preload): .. this. New.
6609 (arm_copy_preload): New.
6610 (copy_preload_reg): Move common part to ...
6611 (install_preload_reg): ... this. New.
6612 (arm_copy_preload_reg): New.
6613 (copy_b_bl_blx): Move common part to ...
6614 (install_b_bl_blx): .. this. New.
6615 (arm_copy_b_bl_blx): New.
6616 (copy_bx_blx_reg): Move common part to ...
6617 (install_bx_blx_reg): ... this. New.
6618 (arm_copy_bx_blx_reg): New.
6619 (copy_alu_reg): Move common part to ...
6620 (install_alu_reg): ... this. New.
6621 (arm_copy_alu_reg): New.
6622 (copy_alu_shifted_reg): Move common part to ...
6623 (install_alu_shifted_reg): ... this. New.
6624 (copy_ldr_str_ldrb_strb): Move common part to ...
6625 (install_ldr_str_ldrb_strb): ... this. New.
6626 (arm_copy_ldr_str_ldrb_strb): New.
6627 (copy_copro_load_store): Move some common part to ...
6628 (install_copy_copro_load_store): ... this. New.
6629 (arm_copy_copro_load_store): New.
6630 (copy_svc): Delete.
6631 (arm_copy_svc): Renamed from copy_svc.
6632 (copy_undef): Delete.
6633 (arm_copy_undef): Renamed from copy_undef.
6634 (decode_ext_reg_ld_st): Delete.
6635 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6636 (decode_svc_copro): Delete.
6637 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6638 (copy_copro_load_store, copy_alu_imm): update callers.
6639 (copy_extra_ld_st, copy_block_xfer): Likewise.
6640 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6641 (decode_miscellaneous, decode_dp_misc): Likewise.
6642 (decode_ld_st_word_ubyte, decode_media): Likewise.
6643 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6644 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6645 (decode_unconditional, decode_miscellaneous): Likewise.
6646 (decode_media, decode_b_bl_ldmstm): Likewise.
6647 (arm_process_displaced_insn): Likewise..
6648 (decode_misc_memhint_neon): Delete.
6649 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6650 (decode_miscellaneous): Delete.
6651 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6652 (decode_dp_misc): Delete.
6653 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6654 (decode_ld_st_word_ubyte): Delete.
6655 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6656 (decode_media): Delete.
6657 (arm_decode_media): Renamed from decode_media.
6658 (decode_b_bl_ldmstm): Delete.
6659 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6660 (decode_ext_reg_ld_st): Delete.
6661 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6662 (decode_unconditional): Delete.
6663 (arm_decode_unconditional): Renamed from decode_unconditional.
6664
559a7a62
JK
66652011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 Case insensitive lookups implementation.
6668 * dwarf2read.c: Include ctype.h.
6669 (struct mapped_index): New field version.
6670 (mapped_index_string_hash): New parameter index_version. New comment
6671 for it. Call tolower appropriately.
6672 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6673 Choose the right index version for mapped_index_string_hash.
6674 (dwarf2_read_index): Support also the index version 5. Initialize the
6675 new struct mapped_index field version.
6676 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6677 (find_slot): Explain the version needs. Pass INT_MAX for the new
6678 parameter.
6679 (write_psymtabs_to_index): Produce version 5.
6680 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6681 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6682 * psymtab.c (lookup_partial_symbol): Find the
6683 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6684 entries.
6685 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6686 NAME lowercasing.
6687 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6688 (completion_list_add_name): New variable ncmp, initialize it, use it.
6689 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6690 * utils.c (strcmp_iw): Support case_sensitive_off.
6691 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6692 New function comment part. New variables saved_string1,
6693 saved_string2 and case_pass. Add a proper second pass.
6694
681bf369
JK
66952011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6696
6697 Replace re_comp/re_exec by regcomp/regexec.
6698 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6699 (search_symbols_name_matches): Use them, use regexec.
6700 (search_symbols): New variable retval_chain, adjust the use of
6701 old_chain against it. Replace re_comp by regcomp. Use the new struct
6702 search_symbols_data fields, use regexec instead of re_exec.
6703
b11b1f88
JK
67042011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6705
6706 Format the code for the next patch.
6707 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6708 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6709 New variables c1 and c2.
6710
2484c66b
UW
67112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6712
6713 * infrun.c (proceed): Do not single-step into signal delivery
6714 when stepping off a breakpoint location.
6715 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6716 (insert_step_resume_breakpoint_at_caller): Likewise.
6717 (insert_step_resume_breakpoint_at_sal): Likewise.
6718 (insert_longjmp_resume_breakpoint): Likewise.
6719
47423772
YQ
67202011-04-27 Yao Qi <yao@codesourcery.com>
6721
6722 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6723
13bdd2e7
JB
67242011-04-27 Joel Brobecker <brobecker@adacore.com>
6725
6726 * procfs.c (procfs_pass_signals): Fix advance declaration.
6727
2455069d
UW
67282011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6729
6730 * target.h (struct target_ops): Remove to_notice_signals;
6731 add to_pass_signals.
6732 (target_notice_signals): Remove.
6733 (target_pass_signals): Add prototype.
6734 * target.c (update_current_target): Remove to_notice_signals;
6735 mention to_pass_signals.
6736 (target_pass_signals): New function.
6737 (debug_to_notice_signals): Remove.
6738 (setup_target_debug): Do not install debug_to_notice_signals.
6739
6740 * infrun.c (signal_pass): New global.
6741 (resume): Call target_pass_signals.
6742 (handle_inferior_event): Report all signals while stepping over
6743 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6744 are re-inserted when stepping over a signal handler.
6745 (signal_cache_update): New function.
6746 (signal_stop_update): Call it.
6747 (signal_print_update): Likewise.
6748 (signal_pass_update): Likewise.
6749 (handle_command): Call signal_cache_update and target_pass_signals
6750 instead of target_notice_signals.
6751 (_initialize_infrun): Initialize signal_pass.
6752
6753 * linux-nat.c (pass_mask): New global.
6754 (linux_nat_pass_signals): New function.
6755 (linux_nat_create_inferior): Report all signals initially.
6756 (linux_nat_attach): Likewise.
6757 (linux_nat_resume): Use pass_mask to decide whether to directly
6758 handle an inferior signal.
6759 (linux_nat_wait_1): Likewise.
6760 (linux_nat_add_target): Install to_pass_signals callback.
6761
6762 * nto-procfs.c (notice_signals): Remove.
6763 (procfs_resume): Do not call notice_signals.
6764 (procfs_notice_signals): Remove.
6765 (procfs_pass_signals): New function.
6766 (init_procfs_ops): Install to_pass_signals callback instead of
6767 to_notice_signals callback.
6768 (_initialize_procfs): Report all signals initially.
6769
6770 * procfs.c (procfs_notice_signals): Remove.
6771 (procfs_pass_signals): New function.
6772 (procfs_target): Install to_pass_signals callback instead of
6773 to_notice_signals callback.
6774 (register_gdb_signals): Remove.
6775 (procfs_debug_inferior): Report all signals initially.
6776 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6777
6778 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6779 parameters; use them instead of calling signal_..._state routines.
6780 (remote_notice_signals): Remove.
6781 (remote_start_remote): Report all signals initially.
6782 (remote_resume): Do not call remote_pass_signals.
6783 (_initialize_remote): Install to_pass_signals callback instead of
6784 to_notice_signals callback.
6785
46c6471b
PA
67862011-04-27 Pedro Alves <pedro@codesourcery.com>
6787
6788 * breakpoint.c (user_settable_breakpoint): Delete.
6789 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6790 (delete_command): Check user_breakpoint_p instead of looking at
6791 the breakpoint's type.
6792 (disable_command): Ditto.
6793 (enable_command): Ditto.
6794 (delete_trace_command): Use user_breakpoint_p instead of looking
6795 at the breakpoint number directly. When checking if there are
6796 user visible tracepoints, in order to know whether to ask the user
6797 for confirmation, check whether the breakpoint is actually a
6798 tracepoint.
6799
f6d90398
VP
68002011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6801
6802 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6803 compilation.
6804
8d3788bd
VP
68052011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6806
6807 MI breakpoint notifications.
6808
f33edef8
PP
6809 * annotate.c (breakpoint_changed): Adjust parameter type.
6810 * breakpoint.c (set_breakpoint_condition): Adjust to change
6811 in breakpoint_modified type.
6812 (breakpoint_set_commands): Likewise.
6813 (do_map_commands_command): Likewise.
6814 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6815 changed after bumping hit count.
6816 (bpstat_stop_status): Likewise.
6817 (print_one_breakpoint_location): Don't wrap in tuple here.
6818 (print_one_breakpoint): Always print individual locations.
6819 For locations, use unnamed tuple.
6820 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6821 has changed.
6822 (create_catchpoint, create_syscall_event_catchpoint): Call
6823 breakpoint_created obsever.
6824 (mention): Don't call breakpoint_created observer.
6825 (create_breakpoint_sal): Call breakpoint_created observer.
6826 (create_breakpoint, watch_command_1): Likewise.
6827 (create_ada_exception_breakpoint): Likewise.
6828 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6829 (locations_are_equal): New.
6830 (update_breakpoint_locations): If locations were changed, notify.
6831 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6832 Call breakpoint_modified observer.
6833
6834 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6835 (mi_cmd_break_insert): Don't set observers for modify and delete.
6836 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6837 (mi_breakpoint_created, mi_breakpoint_deleted)
6838 (mi_breakpoint_modified): New.
6839 (mi_interpreter_init): Hook the above.
6840 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6841 while -break-* commands are executing.
6842 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6843 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6844 (mi_redirect): New.
6845 (mi_ui_out_impl): Hook in mi_redirect.
6846 (mi_field_skip): True to the name, skip the field, don't output
6847 a field with an empty value.
6848
6849 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6850 (gdbpy_breakpoint_deleted): Adjust.
6851 * tui/tui-hooks.c (tui_event_create_breakpoint)
6852 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6853
a8f42b45
UW
68542011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6855
6856 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6857 (procfs_remove_hw_watchpoint): Likewise.
6858
57e12211
TT
68592011-04-26 Michael Walle <michael@walle.cc>
6860
6861 * remote.c (remote_start_remote): Ack packet after sending the
6862 interrupt sequence.
6863
af96c192
YQ
68642011-04-26 Yao Qi <yao@codesourcery.com>
6865
f33edef8
PP
6866 * linux-nat.c: Move common macros to ...
6867 Include linux-ptrace.h.
6868 * common/linux-ptrace.h: ... here. New.
af96c192 6869
3e03848b
JK
68702011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6873 !objfile_has_partial_symbols. New comment.
6874 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6875 SYM_READ_PSYMBOLS is not present. Extend the comment.
6876 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6877
1ae0d051
JK
68782011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6879
6880 * defs.h (ENUM_BITFIELD): Remove.
6881
03f2bd59
JK
68822011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6883 Eli Zaretskii <eliz@gnu.org>
6884
6885 * NEWS: Document the new gdbserver --once option.
6886
4161fbb0
JZ
68872011-04-21 Jie Zhang <jzhang918@gmail.com>
6888
6889 * MAINTAINERS: Update my email address.
6890
bcb28afc
PM
68912011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6892
6893 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6894 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6895 function call if __STDC_ISO_10646__ macro is defined.
6896 (intermediate_encoding): New prototype.
6897 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6898 to generate compile time error for unsupported gdb_wchar_t size.
6899 (ENDIAN_SUFFIX): New macro.
6900 (intermediate_encoding): New function.
6901
7b08b9eb
JK
69022011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6903
6904 * ada-lang.c (struct add_partial_datum): Update the comment for
6905 expand_partial_symbol_name.
6906 (ada_add_partial_symbol_completions): Rename to ...
6907 (ada_expand_partial_symbol_name): ... here, change return type, update
6908 function comment, call symbol_completion_match instead of
6909 symbol_completion_add.
6910 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6911 and ada_expand_partial_symbol_name.
6912 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6913 FILE_MATCHER.
6914 (dw2_map_symbol_names): Remove.
6915 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6916 * psymtab.c (map_symbol_names_psymtab): Remove.
6917 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6918 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6919 order.
6920 (psym_functions): Unlist map_symbol_names_psymtab.
6921 (map_partial_symbol_names): Rename to ...
6922 (expand_partial_symbol_names): ... here, change the FUN type, call
6923 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6924 * psymtab.h (map_partial_symbol_names): Rename to ...
6925 (expand_partial_symbol_names): ... here, change the FUN type.
6926 * symfile.h (struct quick_symbol_functions): Update the description of
6927 expand_symtabs_matching. Remove map_symbol_names.
6928 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6929 (struct add_name_data): Update the comment for
6930 expand_partial_symbol_name.
6931 (add_partial_symbol_name): Rename to ...
6932 (expand_partial_symbol_name): ... here. Replace
6933 completion_list_add_name call by strncmp.
6934 (default_make_symbol_completion_list_break_on): Use now
6935 expand_partial_symbol_names and expand_partial_symbol_name.
6936 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6937
90476074
TT
69382011-04-20 Tom Tromey <tromey@redhat.com>
6939
6940 * dwarf2read.c (save_gdb_index_command): Replace format
6941 documentation with a pointer to the manual.
6942
c21236dc
PA
69432011-04-20 Pedro Alves <pedro@codesourcery.com>
6944
6945 * regcache.c: Include remote.h.
6946 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6947 (regcache_dump): Handle regcache_dump_remote.
6948 (maintenance_print_remote_registers): New function.
6949 (_initialize_regcache): Install "maint print remote-registers"
6950 command.
6951 * remote.c (map_regcache_remote_table): New function, factored out
6952 from ...
6953 (init_remote_state): ... here.
6954 (remote_register_number_and_offset): New.
6955 * remote.h (remote_register_number_and_offset): Declare.
6956
b78974c3
PA
69572011-04-20 Pedro Alves <pedro@codesourcery.com>
6958
6959 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6960 null_ptid, assume and allow a NULL address space, instead of
6961 asking the target for the ptid's address space.
6962 * infrun.c (ptid_is_pid): Remove assertion.
6963
7a9dd1b2
TT
69642011-04-19 Tom Tromey <tromey@redhat.com>
6965
6966 * windows-tdep.c (windows_xfer_shared_library):
6967 * windows-nat.c (get_module_name, windows_make_so):
6968 * v850-tdep.c (v850_handle_pushm):
6969 * utils.c (null_cleanup, gdb_realpath):
6970 * ui-out.c (get_next_header):
6971 * tracepoint.c (clear_traceframe_info):
6972 * symtab.c (lookup_symtab):
6973 * serial.h (struct serial_ops):
6974 * mipsread.c (read_alphacoff_dynamic_symtab):
6975 * infcmd.c (print_return_value):
6976 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6977 * f-exp.y (parse_number):
6978 * exceptions.c (catch_exceptions):
6979 * dummy-frame.c (dummy_frame_this_id):
6980 * defs.h (struct cleanup):
6981 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6982 * arm-tdep.c (arm_push_dummy_call):
6983 * amd64-tdep.h (amd64_collect_xsave):
6984 * amd64-tdep.c (amd64_collect_xsave):
6985 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6986 * README (typing): Remove duplicate words.
6987 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6988 * infrun.c (siginfo_value_read): Fix typo.
6989 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6990 * top.c (source_line_number): Add comma.
6991
9941e0c5
MK
69922011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6993
6994 * thread.c (any_live_thread_of_process): Prioritize threads
6995 that are not executing.
6996 * gdbthread.h (any_live_thread_of_process): Update comment
6997 as per above change.
6998
ed4b0e6a
AS
69992011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7000
7001 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7002 (scan_xcoff_symtab): Likewise.
7003
9b13a2db
PM
70042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7005
7006 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7007 inside if clause.
7008
1c6e1b0d
PM
70092011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7010 Pedro Alves <pedro@codesourcery.com>
7011
7012 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7013 variables to simplify code and avoid == operator at end of
7014 line as this is against GNU coding standards.
7015
74de0234
PM
70162011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7017
7018 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7019 lm_name to name_lm to avoid conflict with lm_name function.
7020
b23518f0
PM
70212011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7022
7023 ARI fixes: Use only lowercase function name for static functions.
7024 * nto-tdep.c (LM_ADDR): Rename to...
7025 (lm_addr): New function name.
7026 (nto_relocate_section_addresses): Adapt to change above.
7027 * solib-sunos.c (LM_ADDR): Rename to...
7028 (lm_addr): New function name.
7029 (LM_NEXT): Rename to...
7030 (lm_next): New function name.
7031 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7032 function name changes above.
7033 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7034 (lm_addr_from_link_map): New function name.
7035 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7036 (has_lm_dynamic_from_link_map): New function name.
7037 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7038 (lm_dynamic_from_link_map): New function name.
7039 (LM_ADDR_CHECK): Rename to...
7040 (lm_addr_check): New function name.
7041 (LM_NEXT): Rename to...
7042 (lm_next): New function name.
7043 (LM_PREV): Rename to...
7044 (lm_prev): New function name.
7045 (LM_NAME): Rename to...
7046 (lm_name): New function name.
7047 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7048 (ignore_first_link_map_entry): New function name.
7049 (svr4_keep_data_in_core): Adapt to function name changes above.
7050 (svr4_current_sos): Likewise.
7051 (enable_break): Likewise.
7052 (svr4_relocate_section_addresses): Likewise.
7053
1448a0a2
PM
70542011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7055
7056 ARI cleanup.
7057 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7058 sprintf. Simplify code and avoid loosing memory.
7059 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7060 (call0_frame_cache): Remove && operator from end of line.
7061
02835898
JK
70622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7063
7064 Fix libraries displacement if they change whether they were prelinked.
7065 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7066 does not match. Comment why.
7067
9a845ea2
JK
70682011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 * corelow.c: Include wrapper.h.
7071 (core_open): Call now gdb_target_find_new_threads.
7072 * wrapper.c: Include target.h.
7073 (gdb_target_find_new_threads): New.
7074 * wrapper.h (gdb_target_find_new_threads): New declaration.
7075
254f582e
JK
70762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7079 even if !TARGET_HAS_EXECUTION.
7080
63524580
JK
70812011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7082
7083 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7084 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7085 bfd_get_synthetic_symtab.
7086 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7087 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7088 parameter parent, remove the call to add_separate_debug_objfile.
7089 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7090 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7091 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7092 parent, new comment for it, call add_separate_debug_objfile for it.
7093 (symbol_file_add_separate): Pass objfile as the parameter parent,
7094 remove the call to add_separate_debug_objfile.
7095 (symbol_file_add_from_bfd): New parameter parent, pass it.
7096 (symbol_file_add): Pass NULL to the new parameter parent.
7097 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7098
90359a16
JK
70992011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7102 BSF_SYNTHETIC.
7103
626e7282
JK
71042011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 Fix Python access to inlined frames.
7107 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7108 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7109
cf31e6f9
TT
71102011-04-15 Tom Tromey <tromey@redhat.com>
7111
7112 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7113
c8d895f1
GB
71142011-04-15 Gary Benson <gbenson@redhat.com>
7115
7116 * MAINTAINERS: Add myself to write-after-approval section.
7117
56a9aa1d
MF
71182011-04-14 Mike Frysinger <vapier@gentoo.org>
7119
7120 * remote-sim.c (sim_command_completer): New function.
7121 (_initialize_remote_sim): Set completer to sim_command_completer.
7122
ba770c9c
TJB
71232011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7124
7125 * breakpoint.c (print_exception_catchpoint): Rename to ...
7126 (print_it_exception_catchpoint): ... this.
7127 (gnu_v3_exception_catchpoint_ops): Update with new name
7128 for print_it_exception_catchpoint.
7129
51bf2553
EBM
71302011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7131
7132 * MAINTAINERS: Add myself for write after approval privileges.
7133
d242658c
MP
71342011-04-13 Marek Polacek <mpolacek@redhat.com>
7135
7136 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7137
4a4106ca
TJB
71382011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7139
7140 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7141
26063d49
TJB
71422011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7143
7144 * breakpoint.c (save_breakpoints): Verify whether
7145 breakpoint_ops.print_recreate is defined before calling it.
7146
7782b183
GB
71472011-04-11 Gary Benson <gbenson@redhat.com>
7148
7149 Fix failure with --enable-maintainer-mode.
7150 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7151
e8930875
JK
71522011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 Code cleanup.
7155 * symtab.c (search_symbols): Reorder the KIND description in the
7156 function comment. Remove the unused 4th element of types, types2,
7157 types3 and types4. New gdb_assert on KIND.
7158 (symtab_symbol_info): Remove the unused 4th element of classnames.
7159 New gdb_assert on KIND.
7160 * symtab.h (enum search_domain): New warning in the enum comment.
7161 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7162 TYPES_DOMAIN.
7163
b4f2f049
JK
71642011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7165
7166 Fix crash of gdb save-index on a STABS file.
7167 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7168 PSYMTABS_ADDRMAP.
7169
60d5a603
JK
71702011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7171
7172 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7173 * dwarf2read.c: Include ctype.h.
7174 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7175 functions.
7176 (dwarf2_add_field): Fix new_field->accessibility by calling
7177 dwarf2_default_access_attribute. Restructure setting accessibility
7178 vs. virtuality.
7179 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7180 is_private and is_protected by calling
7181 dwarf2_default_access_attribute.
7182
e0f68161
KB
71832011-04-08 Kevin Buettner <kevinb@redhat.com>
7184
7185 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7186 to the initialization.
7187
2e1aae43
SE
71882011-04-08 Steve Ellcey <sje@cup.hp.com>
7189
7190 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7191 initalization.
7192
c6ca3dab
PM
71932011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7194
7195 Remove support for old Cygwin 1.5 versions.
7196 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7197 function on old Cygwin version.
7198 * windows-nat.c: Remove cygwin version check and always define
7199 __USEWIDE for Cygwin compilation.
7200
bd18283a
YQ
72012011-04-07 Yao Qi <yao@codesourcery.com>
7202
7203 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7204 and TO.
7205 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7206 (arm_copy_svc): Remove parameters INSN and TO.
7207 (decode_svc_copro): Update caller.
7208 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7209 from function pointer `copy_svc_os'.
7210
8c8dba6d
YQ
72112011-04-07 Yao Qi <yao@codesourcery.com>
7212
7213 * arm-tdep.c (cleanup_branch): Set a correct return address in
7214 LR for ARM and Thumb.
7215
59d7bcaf
JK
72162011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7217
7218 Code cleanup.
7219 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7220 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7221 in the function comment, a new note on values compatibility.
7222 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7223 * symtab.h (SYMBOL_HASH_NEXT): New.
7224
e7db58ea
TJB
72252011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7226
7227 * ppc-linux-nat.c (check_condition): Add len output parameter.
7228 Set it based on the memory region referenced in the condition
7229 expression. Update all callers.
7230
9f743ef6
JK
72312011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 Fix crash regression on systems featuring .gdb_index.
7234 * objfiles.c (free_objfile): Move the
7235 forget_cached_source_info_for_objfile call earlier. Comment it.
7236 Extend the comment for objfile_free_data.
7237
9182c5bc
JK
72382011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7239
7240 Fix regression of displaying the debug format.
7241 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7242 subfile.
7243
04bd08de
TT
72442011-04-04 Tom Tromey <tromey@redhat.com>
7245
7246 * cli/cli-interp.c (struct captured_execute_command_args):
7247 Remove.
7248 (do_captured_execute_command): Remove.
7249 (safe_execute_command): Use TRY_CATCH.
7250 * cli/cli-script.c (struct wrapped_read_command_file_args):
7251 Remove.
7252 (wrapped_read_command_file): Remove.
7253 (script_from_file): Use TRY_CATCH.
7254 * exceptions.c (catch_exception): Remove.
7255 * exceptions.h (catch_exception): Remove.
7256 (deprecated_throw_reason): Update comment.
7257 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7258 argument to 'context'.
7259 (mi_execute_command): Use TRY_CATCH.
7260 * remote.c (struct start_remote_args): Remove.
7261 (remote_start_remote): Update; change arguments.
7262 (remote_open_1): Use TRY_CATCH.
7263
58438ac1
TT
72642011-04-04 Tom Tromey <tromey@redhat.com>
7265
7266 * tracepoint.c (scope_info): Update.
7267 * symtab.c (decode_line_spec): Update.
7268 * python/python.c (gdbpy_decode_line): Update.
7269 * linespec.h (decode_line_1): Update.
7270 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7271 (decode_compound, find_method, symtab_from_filename)
7272 (decode_variable): Likewise.
7273 * cli/cli-cmds.c (edit_command): Update.
7274 (list_command): Update.
7275 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7276 argument.
7277 (create_breakpoint): Update.
7278 (until_break_command): Update.
7279 (addr_string_to_sals): Update.
7280 (decode_line_spec_1): Update.
7281
b78a6381
TT
72822011-04-04 Tom Tromey <tromey@redhat.com>
7283
7284 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7285 (do_captured_parse_breakpoint): Remove.
7286 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7287 Use TRY_CATCH directly.
7288
00174a86
TT
72892011-04-04 Tom Tromey <tromey@redhat.com>
7290
7291 * symtab.h (free_symtab): Remove.
7292 (forget_cached_source_info_for_objfile): Declare.
7293 * symmisc.c (free_symtab): Remove.
7294 * source.c (forget_cached_source_info_for_objfile): New function.
7295 (forget_cached_source_info): Use it.
7296 * objfiles.c (free_objfile): Simplify check before calling
7297 clear_current_source_symtab_and_line. Call
7298 forget_cached_source_info_for_objfile.
7299
30cc903e
TT
73002011-04-04 Tom Tromey <tromey@redhat.com>
7301
7302 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7303 (new_symtab): Don't set `free_code' on symtab.
7304 (new_linetable): Properly handle size==0.
7305 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7306 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7307 free_func.
7308 * jv-lang.c (struct jv_per_objfile_data): New.
7309 (jv_per_objfile_free): Free the data.
7310 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7311 (get_java_class_symtab): Set the `dict' field on the
7312 jv_per_objfile_data.
7313 (free_class_block): Remove.
7314 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7315 the symtab.
7316
0c2e6019
TT
73172011-04-04 Tom Tromey <tromey@redhat.com>
7318
7319 * symfile.c (reread_symbols): Update.
7320 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7321 field.
7322 * objfiles.c (allocate_objfile): Update.
7323 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7324 declare.
7325 * cp-namespace.c (lookup_symbol_file): Don't call
7326 lookup_possible_namespace_symbol.
7327 (initialize_namespace_symtab, get_possible_namespace_block)
7328 (free_namespace_block, cp_check_possible_namespace_symbols)
7329 (check_possible_namespace_symbols_loop)
7330 (check_one_possible_namespace_symbol)
7331 (lookup_possible_namespace_symbol): Remove.
7332 (maintenance_cplus_namespace): Replace with notice.
7333 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7334
554d387d
TT
73352011-04-04 Tom Tromey <tromey@redhat.com>
7336
7337 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7338 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7339 * symmisc.c (free_symtab): Don't free debugformat.
7340 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7341 (record_debugformat, record_producer): Document.
7342 * buildsym.c (end_symtab): Don't save debugformat and producer
7343 names on obstack.
7344 (end_symtab): Don't free debugformat and producer fields.
7345 (record_debugformat): Don't call xstrdup.
7346 (record_producer): Likewise.
7347
d4d4db8a
TT
73482011-04-04 Tom Tromey <tromey@redhat.com>
7349
7350 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7351 (source_line_charpos, source_charpos_line): Remove.
7352
8903c50d
TT
73532011-04-04 Tom Tromey <tromey@redhat.com>
7354
7355 * symtab.h (domain_enum): Split in two...
7356 (enum search_domain): New.
7357 (search_symbols): Update.
7358 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7359 redundant declarations.
7360 (search_symbols): Change 'kind' argument to search_domain.
7361 Update.
7362 (print_symbol_info): Likewise.
7363 (symtab_symbol_info): Likewise.
7364 * symfile.h (struct quick_symbol_functions)
7365 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7366 <expand_symtabs_matching>: Likewise.
7367 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7368 (expand_symtabs_matching_via_partial): Update.
7369 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7370 (dw2_expand_symtabs_for_function): Update.
7371 * block.h: Moved anonymous enum...
7372 * defs.h (enum block_enum): ... here. Now named.
7373
d9351f5f 73742011-04-03 Joel Brobecker <brobecker@adacore.com>
7375
7376 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7377 * version.in: Bump version to 7.3.50.20110403-cvs.
7378
d6e00af6
JB
73792011-04-03 Joel Brobecker <brobecker@adacore.com>
7380
7381 * NEWS: Create a new section for the next release branch.
7382 Rename the section of the current branch, now that it has
7383 been cut.
7384
2b9e5ea6
UW
73852011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7386
7387 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7388 for "fpscr" in target description.
7389
0cf03b49
JK
73902011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7391
7392 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7393 initialize it. Delay HASH initialization. Strip the part after open
7394 parenthesis for languages with qualifiers. Call do_cleanups.
7395
5d901a73
TT
73962011-04-01 Tom Tromey <tromey@redhat.com>
7397
7398 * utils.c (report_command_stats): Don't print `-' for negative
7399 number.
7400
b0dd7688
JB
74012011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7402
7403 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7404 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7405 typedefs.
7406
956a9fb9
JB
74072011-04-01 Joel Brobecker <brobecker@adacore.com>
7408
7409 * breakpoint.h (bpdisp_text): Add declaration.
7410 * breakpoint.c (bpdisp_text): Make non-static.
7411 * ada-lang.c: #include "mi/mi-common.h".
7412 (print_it_exception): Rewrite to improve GDB/MI output.
7413
3352110b
PA
74142011-04-01 Pedro Alves <pedro@codesourcery.com>
7415
7416 * arm-tdep.h (struct address_space): Add forward declaration.
7417
18819fa6
UW
74182011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7419
7420 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7421 * arm-tdep.c (arm_override_mode): New global.
7422 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7423 execution mode heuristics.
7424 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7425 second single-step breakpoint if needed, using
7426 arm_insert_single_step_breakpoint.
7427 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7428 ARM execution mode, do not call thumb_get_next_pc_raw.
7429 (arm_get_next_pc): Encode execution mode in return value. Call
7430 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7431 (arm_insert_single_step_breakpoint): New function.
7432 (arm_software_single_step): Call it.
7433 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7434 argument to return execution mode of sigreturn target.
7435 (arm_linux_syscall_next_pc): Use it.
7436 (arm_linux_copy_svc): Update call.
7437 (arm_linux_software_single_step): Call
7438 arm_insert_single_step_breakpoint.
7439
a6e293d1
JK
74402011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7441
7442 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7443 the comment.
7444
a4c8e806
TT
74452011-03-31 Tom Tromey <tromey@redhat.com>
7446
7447 * varobj.c (update_dynamic_varobj_children): Properly handle
7448 errors from iterator.
7449
df5c6c50
JK
74502011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7451
7452 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7453 struct linkage name twice.
7454
1dae3efc
TT
74552011-03-31 Tom Tromey <tromey@redhat.com>
7456
7457 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7458 missing ">" to message.
7459
f4f7ab05
TT
74602011-03-31 Tom Tromey <tromey@redhat.com>
7461
7462 * varobj.c (instantiate_pretty_printer): Remove duplicate
7463 'return'.
7464
fcf250e2
UW
74652011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7466
7467 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7468 if neither saved value nor register available (e.g. signal frame).
7469
ee6436e3
TJB
74702011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7471
7472 * macroexp.c (expand): Avoid uninitialized variable
7473 compiler warning.
7474
423f41a5
TJB
74752011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7476
7477 * breakpoint.c (break_range_command): Fix typo in comment.
7478
f1310107
TJB
74792011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7480 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7481
7482 Implement support for PowerPC BookE ranged breakpoints.
7483 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7484 * breakpoint.h (struct bp_target_info) <length>: New member
7485 variable.
7486 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7487 instead of struct breakpoint as argument, and also add ASPACE
7488 and BP_ADDR arguments. Update all callers.
7489 (struct breakpoint_ops) <print_one_detail>: New method.
7490 (struct breakpoint) <addr_string_range_end>: New member variable.
7491 * breakpoint.c (breakpoint_location_address_match): Add function
7492 prototype.
7493 (insert_bp_location): Set bl->target_info.length.
7494 (breakpoint_here_p): Call breakpoint_location_address_match.
7495 (moribund_breakpoint_here_p): Likewise.
7496 (regular_breakpoint_inserted_here_p): Likewise.
7497 (breakpoint_thread_match): Likewise.
7498 (bpstat_stop_status): Likewise.
7499 (bpstat_check_location): Move call to
7500 breakpoint_ops.breakpoint_hit to the top.
7501 (print_one_breakpoint_location): Call
7502 breakpoint_ops.print_one_detail if available.
7503 (breakpoint_address_match_range): New function.
7504 (breakpoint_location_address_match): Likewise.
7505 (breakpoint_locations_match): Compare the length field of the
7506 locations too.
7507 (hw_breakpoint_used_count): Count resources used by all locations
7508 in a breakpoint, and use breakpoint_ops.resources_needed if
7509 available.
7510 (breakpoint_hit_ranged_breakpoint): New function.
7511 (resources_needed_ranged_breakpoint): Likewise.
7512 (print_it_ranged_breakpoint): Likewise.
7513 (print_one_ranged_breakpoint): Likewise.
7514 (print_one_detail_ranged_breakpoint): Likewise.
7515 (print_mention_ranged_breakpoint): Likewise.
7516 (print_recreate_ranged_breakpoint): Likewise.
7517 (ranged_breakpoint_ops): New structure.
7518 (find_breakpoint_range_end): New function.
7519 (break_range_command): Likewise.
7520 (delete_breakpoint): Free addr_string_range_end.
7521 (update_breakpoint_locations): Add SALS_END argument. Update
7522 all callers. Calculate breakpoint length if a non-zero SALS_END
7523 is given. Call breakpoint_locations_match instead of
7524 breakpoint_address_match.
7525 (reset_breakpoint): Find SaL of the end of the range if B is a
7526 ranged breakpoint.
7527 (_initialize_breakpoint): Register break-range command.
7528 * defs.h (print_core_address): Add function prototype.
7529 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7530 function.
7531 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7532 (ppc_linux_remove_hw_breakpoint): Likewise.
7533 (_initialize_ppc_linux_nat): Initialize
7534 to_ranged_break_num_registers.
7535 * target.c (update_current_target): Add comment about
7536 to_ranged_break_num_registers.
7537 (target_ranged_break_num_registers): New function.
7538 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7539 New method.
7540 (target_ranged_break_num_registers): Add function prototype.
7541 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7542 * utils.c (print_core_address): ... here.
7543
02d20e4a
UW
75442011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7545
7546 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7547 variable compiler warning.
7548
ef23e705
TJB
75492011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7550
7551 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7552 code from here ...
7553 (re_set_breakpoint): ... to here ...
7554 (addr_string_to_sals): ... and here.
7555
311e6ab3
PM
75562011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7557
7558 * Makefile.in (SFILES): Add missing C sources.
7559 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7560 Add missing headers.
7561
acd1d99c
MF
75622011-03-29 Mike Frysinger <vapier@gentoo.org>
7563
7564 * .gitignore: New file.
7565
66ee2731
MF
75662011-03-29 Mike Frysinger <vapier@gentoo.org>
7567
7568 * NEWS: Mention new cfi device simulation.
7569
53832f31
TT
75702011-03-29 Tom Tromey <tromey@redhat.com>
7571
7572 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7573 otherwise anonymous types.
7574 (dwarf2_name): Likewise.
7575 * valops.c (value_struct_elt_for_reference): Refine artificial
7576 type logic. Call error if j==-1.
7577
09b58708
JK
75782011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7579
7580 Fix false GCC warning.
7581 * infcall.c (find_function_addr): Initialize funaddr.
7582
6023c606
PM
75832011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7584
7585 Fix mingw compilation with --enable-targets=all.
7586 * remote-mips.c (gdb_usleep.h): Include header.
7587 (mips_enter_debug): Use gdb_usleep instead of sleep.
7588
0e30163f
JK
75892011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7590
7591 Support resolution of STT_GNU_IFUNC via breakpoints.
7592 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7593 bp_gnu_ifunc_resolver_return.
7594 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7595 the loop. Support bp_gnu_ifunc_resolver and
7596 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7597 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7598 breakpoints.
7599 (bptype_string, print_one_breakpoint_location): Support
7600 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7601 (user_settable_breakpoint): Return true also for
7602 bp_gnu_ifunc_resolver.
7603 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7604 bp_gnu_ifunc_resolver_return.
7605 (set_breakpoint_location_function): New parameter explicit_loc,
7606 describe it. Call find_pc_partial_function_gnu_ifunc with new
7607 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7608 EXPLICIT_LOC is not set.
7609 (set_raw_breakpoint): Set EXPLICIT_LOC for
7610 set_breakpoint_location_function.
7611 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7612 set_breakpoint_location_function.
7613 (mention): Support bp_gnu_ifunc_resolver and
7614 bp_gnu_ifunc_resolver_return.
7615 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7616 set_breakpoint_location_function.
7617 (update_breakpoint_locations): Remove static.
7618 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7619 bp_gnu_ifunc_resolver_return.
7620 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7621 bp_gnu_ifunc_resolver_return.
7622 (update_breakpoint_locations): New declaration.
7623 * elfread.c: Include gdbthread.h and regcache.h.
7624 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7625 functions.
7626 (elf_gnu_ifunc_fns): Install them.
7627 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7628 (stub_gnu_ifunc_resolver_return_stop): New functions.
7629 (stub_gnu_ifunc_fns): Install them.
7630 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7631 and gnu_ifunc_resolver_return_stop.
7632 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7633
07be84bf
JK
76342011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7635
7636 STT_GNU_IFUNC reader implementation.
7637 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7638 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7639 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7640 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7641 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7642 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7643 (elf_gnu_ifunc_resolve_addr): New.
7644 (elf_symfile_read): Call elf_rel_plt_read.
7645 (elf_gnu_ifunc_fns): New.
7646 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7647 Install elf_gnu_ifunc_fns.
7648 * infcall.c (find_function_return_type): New function.
7649 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7650 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7651 (stub_gnu_ifunc_resolve_name): New functions.
7652 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7653 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7654 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7655
300f8e10
JK
76562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7657
7658 Code cleanup for later STT_GNU_IFUNC support.
7659 * infcall.c (find_function_addr): Remove variable code, use explicit
7660 dereferences for it. Move VALUE_TYPE initialization later.
7661
11c81455
JK
76622011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7663
7664 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7665 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7666 (clear_pc_function_cache): Clear it.
7667 (find_pc_partial_function): Rename to ...
7668 (find_pc_partial_function_gnu_ifunc): ... this function. New
7669 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7670 (find_pc_partial_function): New wrapper for this function.
7671 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7672
0875794a
JK
76732011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 GDB internal type support for STT_GNU_IFUNC.
7676 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7677 (elf_symtab_read): Set mst_text_gnu_ifunc for
7678 BSF_GNU_INDIRECT_FUNCTION.
7679 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7680 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7681 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7682 nodebug_got_plt_symbol.
7683 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7684 (TYPE_GNU_IFUNC): New.
7685 (struct main_type): New field flag_gnu_ifunc.
7686 (struct builtin_type): New field builtin_func_func.
7687 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7688 nodebug_got_plt_symbol.
7689 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7690 (in_gnu_ifunc_stub): New.
7691 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7692 mst_text_gnu_ifunc.
7693 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7694 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7695 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7696 in_gnu_ifunc_stub.
7697 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7698 * symtab.c (search_symbols): Likewise.
7699 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7700 and mst_slot_got_plt.
7701 (in_gnu_ifunc_stub): New declaration.
7702
d0fb5eae
JK
77032011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7704
7705 Support a ring of related breakpoints.
7706 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7707 other functions, add gdb_assert.
7708 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7709 watchpoint_del_at_next_stop.
7710 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7711 (bpstat_stop_status): Handle ring in related_breakpoint.
7712 (set_raw_breakpoint_without_location): Initialize ring in
7713 related_breakpoint.
7714 (delete_breakpoint): Handle ring in related_breakpoint, use
7715 watchpoint_del_at_next_stop.
7716 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7717
9cded63f
TT
77182011-03-28 Tom Tromey <tromey@redhat.com>
7719
7720 PR symtab/12441:
7721 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7722 with `language_minimal'.
7723
467d42c4
UW
77242011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7725
7726 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7727 instead of checking for STT_ARM_TFUNC symbol type.
7728
62853458
TT
77292011-03-25 Tom Tromey <tromey@redhat.com>
7730
7731 * linespec.c (symbol_found): Restore line-based result for
7732 non-LOC_LABEL symbols.
7733
a7417d46
KT
77342011-03-25 Kai Tietz <ktietz@redhat.com>
7735
7736 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7737 instead of strcmp for comparison.
7738 (tui_source_is_displayed): Likewise.
7739 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7740
55f1336d
TT
77412011-03-24 Mark Wielaard <mjw@redhat.com>
7742
f33edef8
PP
7743 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7744 complaint.
7745 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7746 (find_partial_die_in_comp_unit): Likewise in comment.
7747 (read_attribute_value): Likewise.
7748 (lookup_die_type): Likewise.
7749 (dwarf_form_name): Likewise.
7750 (dump_die_shallow): Likewise.
7751 (follow_die_ref_or_sig): Likewise.
55f1336d 7752
9ef07c8c
TT
77532011-03-24 Tom Tromey <tromey@redhat.com>
7754
7755 PR breakpoints/11816:
7756 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7757 (decode_compound): Update.
7758 (find_function_symbol): New function.
7759 (decode_dollar): Update.
7760 (decode_label): Add 'function_symbol' parameter. Handle
7761 function-relative labels.
7762 (decode_variable): Update.
7763 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7764 not its line. Set `special_display' and canonical name for
7765 labels.
7766
56435ebe
TT
77672011-03-24 Tom Tromey <tromey@redhat.com>
7768
7769 * linespec.h (struct linespec_result) <special_display>: New
7770 field.
7771 * breakpoint.h (struct breakpoint) <display_canonical>: New
7772 field.
7773 * breakpoint.c (print_breakpoint_location): Respect
7774 display_canonical.
7775 (create_breakpoint_sal): Add 'display_canonical' parameter.
7776 (create_breakpoints_sal): Update.
7777 (create_breakpoint): Update.
7778
7efd8fc2
TT
77792011-03-24 Tom Tromey <tromey@redhat.com>
7780
7781 * symtab.c (decode_line_spec): Update.
7782 * linespec.c (build_canonical_line_spec): Change type of
7783 'canonical'.
7784 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7785 (find_method, decode_all_digits, decode_dollar, decode_label)
7786 (symbol_found): Likewise.
7787 (init_linespec_result): New function.
7788 * breakpoint.c (struct captured_parse_breakpoint_args)
7789 <canonical_p>: New field, replaces addr_string_p.
7790 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7791 'addr_string'.
7792 (parse_breakpoint_sals): Likewise.
7793 (do_captured_parse_breakpoint): Update.
7794 (create_breakpoint): Use struct linespec_result.
7795 (until_break_command): Update.
7796 (breakpoint_re_set_one): Update.
7797 (decode_line_spec_1): Update.
7798 * linespec.h (struct linespec_result): New.
7799 (init_linespec_result): Declare.
7800
788c8b10
PA
78012011-03-23 Pedro Alves <pedro@codesourcery.com>
7802
7803 * regcache.c (regcache_raw_read): If the target didn't supply a
7804 given raw register, mark it as unavailable.
7805
0ba1096a
KT
78062011-03-23 Kai Tietz <ktietz@redhat.com>
7807
7808 * breakpoint.c (clear_command): Use filename_cmp
7809 instead of strcmp for comparison.
7810 * buildsym.c (watch_main_source_file_lossage): Likewise.
7811 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7812 checking just for slash.
7813 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7814 strrchr and filename_cmp instead of strcmp for filenames.
7815 (add_old_header_file): Use filename_cmp
7816 instead of strcmp for comparison.
7817 * exec.c (exec_set_section_address): Likewise.
7818 * macrotab.c (macro_lookup_inclusion): Likewise.
7819 (macro_lookup_inclusion): Likewise.
7820 * elfread.c (_initialize_elfread): Likewise.
7821 (elfstab_offset_sections): Likewise.
7822 (elfstab_offset_sections): Use lbasename instead of
7823 strrchr.
7824 * mdebugread.c (parse_partial_symbols): Likewise.
7825 (arse_partial_symbols): Use filename_(n)cmp instead of
7826 str(n)cmp for comparison.
7827 * minsyms.c (lookup_minimal_symbol): Likewise.
7828 * psymtab.c (read_psymtabs_with_filename): Likewise.
7829 * solib.c (solib_read_symbols): Likewise.
7830 (reload_shared_libraries_1): Likewise.
7831 * symmisc.c (maintenance_print_symbols): Likewise.
7832 * symfile.c (separate_debug_file_exists): Likewise.
7833 (reread_symbols): Likewise.
7834 (find_separate_debug_file_by_debuglink): Likewise.
7835 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7836 * source.c (add_path): Likewise.
7837 * symtab.c (filename_seen): Likewise.
7838 (file_matches): Likewise.
7839 (print_symbol_info): Likewise.
7840 (maybe_add_partial_symtab_filename): Likewise.
7841 (make_source_files_completion_list): Likewise.
7842 * xml-syscall.c (init_sysinfo): Likewise.
7843 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7844 IS_DIR_SEPARATOR for checking for trailing path separator.
7845
dd90784c
JK
78462011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7847
7848 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7849 label abort_expression.
7850 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7851 DWARF_VALUE_OPTIMIZED_OUT.
7852
3167638f
JK
78532011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7854
7855 Code cleanup.
7856 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7857 to linkage_name. Invert its value. Update the function comment.
7858 (c_type_print_varspec_suffix): Invert it at the caller.
7859 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7860
ce406537
PA
78612011-03-22 Pedro Alves <pedro@codesourcery.com>
7862
7863 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7864 errors when reading the `stop_pc'.
7865 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7866 get_frame_pc.
7867
da5d4055
PM
78682011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7869
7870 * NEWS: Document gdb.Write stream keyword.
7871
29e0eb9c
JK
78722011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 Revert:
7875 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7877 (dwarf2_add_field): Fix new_field->accessibility for
7878 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7879
05775840
PM
78802011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7881
f33edef8 7882 PR python/12183
05775840
PM
7883
7884 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7885 other error classes. Do not print stack trace.
7886
a0cb7835
JK
78872011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7890 (dwarf2_add_field): Fix new_field->accessibility for
7891 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7892
d19f7eee
UW
78932011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7894
7895 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7896 encountering a load via a non-SP register.
7897
4a2fbb50
UW
78982011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7899
7900 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7901 field in returned unwinder.
7902
3489610d
JB
79032012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7904
7905 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7906
8c1a34e7
JB
79072012-03-21 Joel Brobecker <brobecker@adacore.com>
7908
7909 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7910 of xmalloc.
7911
8fbca658
PA
79122012-03-18 Pedro Alves <pedro@codesourcery.com>
7913
7914 * frame.c (frame_unwind_register): Throw an error if unwinding the
7915 register failed.
7916 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7917 an unwind stop reason.
7918 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7919 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7920 UNWIND_UNAVAILABLE>: New.
7921 * inline-frame.c (inline_frame_unwind): Install
7922 default_frame_unwind_stop_reason.
7923 * frame-unwind.c: Include "exceptions.h".
7924 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7925 (default_frame_unwind_stop_reason): New.
7926 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7927 (default_frame_unwind_stop_reason): Declare.
7928 (struct frame_unwind) <stop_reason>: New function pointer.
7929
7930 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7931 * dwarf2-frame.c: Include exceptions.h.
7932 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7933 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7934 computing the CFA. If such an error was thrown, set
7935 unavailable_retaddr.
7936 (dwarf2_frame_unwind_stop_reason): New.
7937 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7938 unavailable.
7939 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7940 (dwarf2_signal_frame_unwind): Ditto.
7941
7942 * amd64-tdep.c: Include "exceptions.h".
7943 (struct amd64_frame_cache): New field "base_p".
7944 (amd64_init_frame_cache): Clear it.
7945 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7946 Avoid reading registers with functions that throw if the register
7947 is not necessary to compute the frame base.
7948 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7949 swallowing NOT_AVAILABLE_ERROR.
7950 (amd64_frame_unwind_stop_reason): New.
7951 (amd64_frame_this_id): Don't build a frame id if the frame base
7952 was unavailable.
7953 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7954 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7955 base_p if the frame base was computable.
7956 (amd64_sigtramp_frame_unwind_stop_reason): New.
7957 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7958 frame base was unavailable.
7959 (amd64_sigtramp_frame_unwind): Install
7960 amd64_sigtramp_frame_unwind_stop_reason.
7961 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7962 base_p if the frame base was computable.
7963 (amd64_epilogue_frame_unwind_stop_reason): New.
7964 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7965 frame base was unavailable.
7966 (amd64_epilogue_frame_unwind): Install
7967 amd64_epilogue_frame_unwind_stop_reason.
7968 * i386-tdep.c: Include "exceptions.h".
7969 (struct i386_frame_cache): New field "base_p".
7970 (i386_init_frame_cache): Clear it.
7971 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7972 Avoid reading registers with functions that throw if the register
7973 is not necessary to compute the frame base.
7974 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7975 swallowing NOT_AVAILABLE_ERROR.
7976 (i386_frame_unwind_stop_reason): New.
7977 (i386_frame_this_id): Don't build a frame id if the frame base was
7978 unavailable.
7979 (i386_frame_prev_register): Handle unavailable SP.
7980 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7981 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7982 base_p if the frame base was computable.
7983 (i386_epilogue_frame_unwind_stop_reason): New.
7984 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7985 base was unavailable.
7986 (i386_epilogue_frame_unwind): Install
7987 i386_epilogue_frame_unwind_stop_reason.
7988 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7989 base_p if the frame base was computable.
7990 (i386_sigtramp_frame_unwind_stop_reason): New.
7991 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7992 base was unavailable.
7993 (i386_sigtramp_frame_unwind): Install
7994 i386_sigtramp_frame_unwind_stop_reason.
7995 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7996 type's size, not the register's.
7997 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7998
7999 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8000 default_frame_unwind_stop_reason.
8001 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8002 (alpha_heuristic_frame_unwind): Ditto.
8003 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8004 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8005 * avr-tdep.c (avr_frame_unwind): Ditto.
8006 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8007 Ditto.
8008 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8009 * frv-tdep.c (frv_frame_unwind): Ditto.
8010 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8011 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8012 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8013 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8014 (hppa_stub_frame_unwind): Ditto.
8015 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8016 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8017 (ia64_libunwind_frame_unwind)
8018 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8019 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8020 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8021 * m32c-tdep.c (m32c_unwind): Ditto.
8022 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8023 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8024 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8025 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8026 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8027 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8028 * mep-tdep.c (mep_frame_unwind): Ditto.
8029 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8030 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8031 (mips_stub_frame_unwind): Ditto.
8032 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8033 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8034 * mt-tdep.c (mt_frame_unwind): Ditto.
8035 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8036 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8037 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8038 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8039 (s390_sigtramp_frame_unwind): Ditto.
8040 * score-tdep.c (score_prologue_unwind): Ditto.
8041 * sh-tdep.c (sh_frame_unwind): Ditto.
8042 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8043 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8044 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8045 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8046 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8047 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8048 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8049 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8050 (sparc64obsd_trapframe_unwind): Ditto.
8051 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8052 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8053 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8054 * v850-tdep.c (v850_frame_unwind): Ditto.
8055 * vax-tdep.c (vax_frame_unwind): Ditto.
8056 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8057 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8058 * xtensa-tdep.c (xtensa_unwind): Ditto.
8059
f23d1b92
PA
80602011-03-18 Pedro Alves <pedro@codesourcery.com>
8061
8062 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8063 there's always a frame. Use get_frame_pc_if_available instead of
8064 get_frame_pc, and if there's no PC available, don't look up a
8065 symtab.
8066
1d4f5741
PA
80672011-03-18 Pedro Alves <pedro@codesourcery.com>
8068
8069 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8070 unavailable PC.
8071
dba09041
PA
80722011-03-18 Pedro Alves <pedro@codesourcery.com>
8073
8074 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8075 gracefully.
8076
9a26e44c
PA
80772011-03-18 Pedro Alves <pedro@codesourcery.com>
8078
8079 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8080 * frame.c (frame_unwind_caller_pc_if_available): New.
8081 * stack.c (frame_info): Handle unavailable PC.
8082
80832011-03-18 Pedro Alves <pedro@codesourcery.com>
8084
8085 * frame.c (frame_unwind_pc): Rename to ...
8086 (frame_unwind_pc_if_available): ... this. New `pc' output
8087 parameter. Change return type to int. Gracefully handle
8088 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8089 happened, or 1 otherwise.
8090 (frame_unwind_pc): Reimplement on top of
8091 frame_unwind_pc_if_available.
8092 (get_frame_func): Rename to ...
8093 (get_frame_func_if_available): New `pc' output parameter. Change
8094 return type to int. Gracefully handle the PC not being available.
8095 (get_frame_func): Reimplement on top of
8096 get_frame_func_if_available.
8097 (select_frame): Handle the PC being unavailable.
8098 (get_prev_frame): Handle the PC being unavailable.
8099 (get_frame_pc_if_available): New.
8100 (get_frame_address_in_block_if_available): New.
8101 (find_frame_sal): Handle the frame PC not being available.
8102 * frame.h (get_frame_pc_if_available): Declare.
8103 (get_frame_address_in_block_if_available): Declare.
8104 (get_frame_func_if_available): Declare.
8105 * stack.c (print_frame_info): Handle the PC being unavailable.
8106 (find_frame_funname): Ditto.
8107 (print_frame): Handle the PC being unavailable.
8108 (get_frame_language): Ditto.
8109 * blockframe.c (get_frame_block): Ditto.
8110 * macroscope.c (default_macro_scope): Ditto.
8111 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8112
81132011-03-18 Pedro Alves <pedro@codesourcery.com>
8114
8115 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8116 NOT_AVAILABLE_ERROR when evaluating the location expression.
8117
81182011-03-18 Pedro Alves <pedro@codesourcery.com>
8119
8120 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8121 returning that the register piece is unavailable/optimized out.
8122 (write_pieced_value): Handle get_frame_register_bytes returning
8123 that the register piece is unavailable/optimized out when doing a
8124 read-modify write of a bitfield.
8125 * findvar.c (value_from_register): Handle get_frame_register_bytes
8126 returning that the register piece is unavailable/optimized out.
8127 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8128 and `unavailablep'. Throw error on bad debug info. Use
8129 frame_register instead of frame_register_read, to fill in the new
8130 arguments.
8131 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8132 and `unavailablep'.
8133 * valops.c: (value_assign): Adjust, and handle
8134 get_frame_register_bytes failing.
8135 * spu-tdep.c: Include exceptions.h.
8136 (spu_software_single_step): Adjust, and handle
8137 get_frame_register_bytes failing.
8138 (spu_get_longjmp_target): Ditto.
8139 * gdbarch.sh (register_to_value): Change to return int. New
8140 parameters `optimizedp' and `unavailablep'.
8141 * gdbarch.h, gdbarch.c: Regenerate.
8142 * i386-tdep.c (i386_register_to_value): Adjust to new
8143 gdbarch_register_to_value interface.
8144 * i387-tdep.c (i387_register_to_value): Ditto.
8145 * i387-tdep.h (i387_register_to_value): Ditto.
8146 * alpha-tdep.c (alpha_register_to_value): Ditto.
8147 * ia64-tdep.c (ia64_register_to_value): Ditto.
8148 * m68k-tdep.c (m68k_register_to_value): Ditto.
8149 * mips-tdep.c (mips_register_to_value): Ditto.
8150 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8151
0fdb4f18
PA
81522011-03-18 Pedro Alves <pedro@codesourcery.com>
8153
8154 * findvar.c (value_of_register): Mark the value as unavailable, if
8155 the register is unavailable.
8156 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8157 (frame_register): New `unavailablep' parameter.
8158 (frame_register_read): Update comment.
8159 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8160 Set it if the register is unavailable. If the register is
8161 unavailable, clear the output buffer.
8162 (frame_register): New `unavailablep' parameter. Pass it down.
8163 (frame_unwind_register): Adjust.
8164 (put_frame_register): Adjust.
8165 (frame_register_read): Adjust. Also return false if the register
8166 is not available.
8167 (frame_register_unwind_location): Adjust.
8168 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8169 is unavailable, mark the value accordingly.
8170 * stack.c (frame_info): Handle unavailable registers.
8171
e69aa73e
PA
81722011-03-18 Pedro Alves <pedro@codesourcery.com>
8173
8174 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8175 simplify, using regcache_cooked_read.
8176
05d1431c
PA
81772011-03-18 Pedro Alves <pedro@codesourcery.com>
8178
8179 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8180 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8181 (regcache_raw_read_unsigned, regcache_raw_read_part)
8182 (regcache_cooked_read, regcache_cooked_read_signed)
8183 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8184 (regcache_cooked_read_ftype): Change return to enum
8185 register_status.
8186 * regcache.c: Include exceptions.h
8187 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8188 (do_cooked_read): Change return to enum register_status. Always
8189 forward to regcache_cooked_read.
8190 (regcache_raw_read): Change return to enum register_status. If
8191 the register is not REG_VALID, memset the buffer. Return the
8192 register's status.
8193 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8194 return the register's status.
8195 (regcache_raw_read_unsigned): Ditto.
8196 (regcache_cooked_read): Change return to enum register_status.
8197 Assert that with read-only regcaches, the register's status must
8198 be known. If the regcache is read-only, and the register is not
8199 REG_VALID, memset the buffer. Return the register's status.
8200 (regcache_cooked_read_signed): Change return to enum
8201 register_status. Handle non-REG_VALID registers and return the
8202 register's status.
8203 (regcache_cooked_read_unsigned): Change return to enum
8204 register_status. Handle non-REG_VALID registers and return the
8205 register's status.
8206 (regcache_xfer_part, regcache_raw_read_part)
8207 (regcache_cooked_read_part): Change return to enum
8208 register_status. Return the register's status.
8209 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8210 unavailable.
8211 (regcache_dump): Handle unavailable cooked registers.
8212 * frame.c (do_frame_register_read): Adjust interface to match
8213 regcache_cooked_read_ftype.
8214 * gdbarch.sh (pseudo_register_read): Change return to enum
8215 register_status.
8216 * gdbarch.h, gdbarch.c: Regenerate.
8217
8218 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8219 register_status.
8220 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8221 register_status. If reading a raw register indicates the raw
8222 register is not valid, return the raw register's status,
8223 otherwise, return REG_VALID.
8224 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8225 register_status. Handle non-REG_VALID raw registers and return
8226 the register's status.
8227 * arm-tdep.c (arm_neon_quad_read)
8228 (arm_pseudo_read): Change return to enum register_status. Handle
8229 non-REG_VALID raw registers and return the register's status.
8230 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8231 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8232 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8233 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8234 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8235 register_status.
8236 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8237 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8238 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8239 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8240 (m32c_pseudo_register_read): Change return to enum
8241 register_status. Adjust.
8242 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8243 enum register_status. Return the register's status.
8244 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8245 register_status. Return the register's status.
8246 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8247 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8248 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8249 * rs6000-tdep.c (move_ev_register_func): New typedef.
8250 (e500_move_ev_register): Use it. Change return to enum
8251 register_status. Return the register's status.
8252 (do_regcache_raw_read): New function.
8253 (do_regcache_raw_write): New function.
8254 (e500_pseudo_register_read): Change return to enum
8255 register_status. Return the register's status. Use
8256 do_regcache_raw_read.
8257 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8258 (dfp_pseudo_register_read): Change return to enum register_status.
8259 Return the register's status.
8260 (vsx_pseudo_register_read): Ditto.
8261 (efpr_pseudo_register_read): Ditto.
8262 (rs6000_pseudo_register_read): Ditto.
8263 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8264 register_status. Return the register's status.
8265 * sh64-tdep.c (pseudo_register_read_portions): New function.
8266 (sh64_pseudo_register_read): Change return to enum
8267 register_status. Use pseudo_register_read_portions. Return the
8268 register's status.
8269 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8270 register_status. Return the register's status.
8271 * sh-tdep.c (pseudo_register_read_portions): New function.
8272 (sh_pseudo_register_read): Change return to enum register_status.
8273 Use pseudo_register_read_portions. Return the register's status.
8274 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8275 enum register_status. Return the register's status.
8276 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8277 * spu-tdep.c (spu_pseudo_register_read_spu)
8278 (spu_pseudo_register_read): Ditto.
8279 * xtensa-tdep.c (xtensa_register_read_masked)
8280 (xtensa_pseudo_register_read): Ditto.
8281 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8282
e10abd8f
PM
82832011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8284
8285 * python/py-value.c (valpy_getitem): Fix formatting of error function
8286 call.
8287
7ea6d463
PM
82882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8289
8290 ARI fixes: Add missing internationalization markups throughout
8291 C source files.
8292 * darwin-nat-info.c: Ditto.
8293 * record.c: Ditto.
8294 * remote.c: Ditto.
8295 * mi/mi-main.c: Ditto.
8296
001083c6
PM
82972011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8298
8299 ARI fixes: Add missing internationalization markups throughout
8300 yacc files.
8301 * c-exp.y: Ditto.
8302 * cp-name-parser.y: Ditto.
8303 * f-exp.y: Ditto.
8304 * m2-exp.y: Ditto.
8305 * objc-exp.y: Ditto.
8306 * p-exp.y: Ditto.
8307
4f1cdeec
PM
83082011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8309
8310 ARI fixes: Messages should have no trailing new lines.
8311 * darwin-nat.c (mach_check_error): Remove trailing new line from
8312 warning function call message.
8313 * record.c (bfdcore_read): Idem for error call.
8314
28e698f1
PM
83152011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8316
8317 * common/signals.c (target_signal_from_host): Add _ markup to error
8318 function call message.
8319 (target_signal_to_host): Add _ markup and remove trailing new line
8320 from warning call message.
8321 (target_signal_from_command): Add _ markup to error function call
8322 message.
8323
99c3dc11
PM
83242011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8325
f33edef8 8326 PR python/12149
99c3dc11
PM
8327
8328 * python/python.c (gdbpy_write): Accept a stream argument and
8329 operate to the appropriate stream.
8330 (gdbpy_flush): Likewise.
8331 (_initialize_python): Add stream constants.
8332 (finish_python_initialization): Add GdbOutputErrorFile class.
8333
c20800be
KY
83342011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8335
8336 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8337
f4a1794a
KY
83382011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8339
8340 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8341 to store_signed_integer. Add debug message when relocating CALL
8342 instructions. Fix formatting of debug message.
8343 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8344
d4862372
JB
83452011-03-17 Joel Brobecker <brobecker@gnat.com>
8346
8347 * target.h (struct target_ops): Remove to_lookup_symbol field.
8348 (target_lookup_symbol): Delete macro.
8349 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8350 (update_current_target, setup_target_debug): Remove handling
8351 of to_lookup_symbol target_ops field.
8352 * ada-tasks.c (get_known_tasks_addr): Remove use of
8353 target_lookup_symbol.
8354 * coffread.c (coff_symtab_read): Likewise.
8355 * dbxread.c (read_dbx_symtab): Ditto.
8356
d645e32e
JB
83572011-03-17 Joel Brobecker <brobecker@gnat.com>
8358
8359 PR gdb/12116:
8360 * configure.ac: Add getthrds declaration check.
8361 * configure, config.in: Regenerate.
8362 * aix-thread.c (getthrds): Declare only if not already declared
8363 in procinfo.h. More declaration out of get_signaled_thread to
8364 global scope.
8365
29703da4
PM
83662011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8367
8368 * python/py-symtab.c: Populate symtab_object_methods,
8369 sal_object_methods.
8370 (stpy_is_valid): New function.
8371 (salpy_is_valid): Ditto.
8372 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8373 (sympy_is_valid): New function.
8374 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8375 (objfpy_is_valid): New function.
8376 * python/py-inferior.c: Populate inferior_object_methods.
8377 (infpy_is_valid): New function.
8378 * python/py-infthread.c: Populate thread_object_methods.
8379 (thpy_is_valid): New function.
8380 * python/py-block.c: Declare block_object_methods. Populate. Declare
8381 block_iterator_object_methods. Populate.
8382 (blpy_is_valid): New function.
8383 (blpy_iter_is_valid): Ditto.
8384
c00f8484
KS
83852011-03-16 Keith Seitz <keiths@redhat.com>
8386
8387 * linespec.c (find_methods): Canonicalize NAME before looking
8388 up the symbol.
8389 (name_end): New function.
8390 (keep_name_info): New function.
8391 (decode_line_1): Use keep_name_info.
8392 (decode_compound): Likewise.
8393 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8394 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8395
8396 PR c++/12273
8397 * linespec.c (locate_first_half): Keep overload information, too.
8398 (decode_compound): Use a string to represent break characters
8399 to escape the loop.
8400 If P points to a break character, do not increment it.
8401 For C++ and Java, keep overload information and relevant keywords.
8402 If we cannot find a symbol, search the minimal symbols.
8403
8404 PR c++/11734
8405 * linespec.c (decode_compound): Rename SAVED_ARG to
8406 THE_REAL_SAVED_ARG.
8407 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8408 single-quotes.
8409 Pass a valid block to lookup_symbol.
8410 (lookup_prefix_sym): Likewise.
8411 (find_method): Construct search name based on SYM_CLASS instead
8412 of SAVED_ARG.
8413 * psymtab.c (lookup_partial_symbol): Add language parameter.
8414 (lookup_symbol_aux_psymtabs): Likewise.
8415 Don't assume that the psymtab we found was the right one. Search
8416 for the desired symbol in the symtab to be certain.
8417 (psymtab_search_name): New function.
8418 (lookup_partial_symbol): Use psymtab_search_name.
8419 Add language parameter.
8420 (read_symtabs_for_function): Add language parameter and pass to
8421 lookup_partial_symbol.
8422 (find_symbol_file_from_partial): Likewise.
8423
c91513d8
PP
84242011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8425
8426 PR gdb/12528
8427 * dwarf2read.c (noop_record_line): New function.
8428 (dwarf_decode_lines): Ignore line tables for GCd functions.
8429
b37520b6
PM
84302011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8431
8432 Fix ARI warnings about new lines at the end of messages, which
8433 are unneeded as there is a new line added at the end of the message
8434 automatically.
8435 * darwin-nat.c (darwin_stop_inferior): Ditto.
8436 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8437 * dfp.c (decimal_to_number): Ditto.
8438 * exec.c (print_section_info): Ditto.
8439 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8440 * osdata.c (get_osdata): Ditto.
8441 * record.c (bfdcore_write): Ditto.
8442 * remote-mips.c (mips_readchar): Ditto.
8443 * remote.c (read_ptid): Ditto.
8444 * ser-mingw.c (ser_windows_raw): Ditto.
8445 * tracepoint.c (add_local_symbols): Ditto.
8446 * windows-nat.c (fake_create_process): Ditto.
8447
b08ee6a2
TT
84482011-03-16 Tom Tromey <tromey@redhat.com>
8449
8450 * tracepoint.c (stop_tracing): Don't declare.
8451 * event-top.c (after_char_processing_hook): Add `(void)'.
8452
9a6f1302
PM
84532011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8454
8455 * NEWS: Add Parameter sub-classing description.
8456
7ceb86b1
KT
84572011-03-16 Kai Tietz <ktietz@redhat.com>
8458
8459 * MAINTAINERS: Update my e-mail address.
8460
efeff6cf
AT
84612011-03-15 Andreas Tobler <andreast@fgznet.ch>
8462
8463 * MAINTAINERS: Add myself for write after approval privileges.
8464
681c238c
MS
84652011-03-15 Michael Snyder <msnyder@vmware.com>
8466
f3df5b08
MS
8467 * frame.c (find_frame_sal): Assert sym is not null.
8468
13f6513c
MS
8469 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8470
50412521
MS
8471 * objc-lang.c (selectors_info): Check strchr for null result.
8472
681c238c
MS
8473 * stabsread.c (define_symbol): Guard against bad stabstring input.
8474
6ced1581
PM
84752011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8476
8477 Remove trailing spaces and tabulations from pascal language
8478 support sources.
8479 p-exp.y: Ditto.
8480 p-lang.c: Ditto.
8481 p-lang.h: Ditto.
8482 p-valprint.c: Ditto.
8483
9373cf26
JK
84842011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8485
8486 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8487 than LOW. Comment it.
8488 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8489 HIGHPC not strictly higher than LOWPC.
8490
9a1edae6
PM
84912011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8492
8493 Fix formatting of function declarations returning a pointer in
8494 previous commit.
8495 * varobj.c (varobj_add_child): Ditto.
8496 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8497 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8498
24e9cda0
UW
84992011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8500
8501 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8502 for the "generic" vector ABI used with GCC 4.3 and later.
8503 (ppc64_sysv_abi_return_value): Likewise.
8504
85052011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8506
8507 * infcall.c (call_function_by_hand): Function return value is
8508 always a non_lval, even when using struct_return.
8509
c9174737
PA
85102011-03-15 Pedro Alves <pedro@codesourcery.com>
8511
8512 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8513 (map_display_numbers): New.
8514 (do_delete_display): New.
8515 (undisplay_command): Use map_display_numbers.
8516 (do_enable_disable_display): New.
8517 (enable_disable_display_command): New function.
8518 (enable_display): Delete.
8519 (enable_display_command): New.
8520 (disable_display_command): Reimplement.
8521 (_initialize_printcmd): Adjust "enable display" command to use
8522 `enable_display_command' as callback.
8523
350c6c65
PM
85242011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8525
8526 * NEWS: Add Python breakpoint 'stop' operation.
8527
824446ad
PM
85282011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8529
8530 * NEWS: Delete duplicate entry. Fix typo.
8531
2021ad3a
PM
85322011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8533
8534 Fix ARI warning about function names in first column.
8535 Put prototype declaration on same line as return type.
8536 * objc-exp.y: Ditto.
8537 * p-exp.y: Ditto.
8538 * python/py-stopevent.h: Ditto.
8539 For long function names, split parameters to
8540 allow function name on same line as return type.
8541 * solib-pa64.c: Ditto.
8542 * varobj.c: Ditto.
8543 * varobj.h: Ditto.
8544 For long function declaration, use single line.
8545 * hppa-tdep.h: Ditto.
8546 * inferior.h: Ditto.
8547
7371cf6d
PM
85482011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8549
8550 * python/python.h: Declare gdbpy_should_stop and
8551 gdbpy_breakpoint_has_py_cond.
8552 * python/python.c: Add python.h to includes. Remove python.h from
8553 HAVE_PYTHON definition
8554 (gdbpy_should_stop): New dummy function.
8555 (gdbpy_breakpoint_has_py_cond): New dummy function.
8556 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8557 sub-classing capabilities.
8558 (gdbpy_should_stop): New function.
8559 (gdbpy_breakpoint_has_py_cond): New function.
8560 (local_setattro): New function.
8561 * breakpoint.c (condition_command): Add check for Python 'stop'
8562 operation.
8563 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8564 operation function as part of stop/continue tests.
8565
37b50a69
TT
85662011-03-14 Tom Tromey <tromey@redhat.com>
8567
8568 PR gdb/12576:
8569 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8570 (needs_frame_dwarf_call): Likewise.
8571
eeae04df
PM
85722011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8573
8574 Fix ARI warning about functions without parameters that do not
8575 use (void).
8576 * breakpoint.c (all_tracepoints): Replace () by (void).
8577 * f-exp.y (match_string_literal): Ditto.
8578 (yylex): Ditto.
8579 * m2-exp.y (yylex): Ditto.
8580 * mep-tdep.c (current_me_module): Ditto.
8581 (current_options): Ditto.
8582 (current_cop_data_bus_width): Ditto.
8583 (current_cr_names): Ditto.
8584 (current_cr_is_float): Ditto.
8585 (current_ccr_names): Ditto.
8586 * objc-exp.y (yylex): Ditto.
8587 * p-exp.y (yylex): Ditto.
8588 * remote.c (send_interrupt_sequence): Ditto.
8589 * tracepoint.c (current_trace_status): Ditto.
8590 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8591 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8592
6dc3565d
MS
85932011-03-11 Michael Snyder <msnyder@vmware.com>
8594
1427fe5e
MS
8595 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8596 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8597 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8598 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8599 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8600
60bc018f
MS
8601 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8602 (delete_async_event_handler): Ditto.
8603
f3be5b64
MS
8604 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8605
4c2d5724
MS
8606 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8607
6dc3565d
MS
8608 * top.c (set_verbose): Assert showcmd was found.
8609
4e6ca6d5
MG
86102011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8611
8612 * xtensa-tdep.c (warning_once): Correct style issues.
8613
815a83e4
YQ
86142011-03-11 Yao Qi <yao@codesourcery.com>
8615
8616 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8617
f2eb0bc8
AS
86182011-03-11 Andreas Schwab <schwab@redhat.com>
8619
8620 * common/aclocal.m4: Remove.
8621
b801de47
MG
86222011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8623
8624 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8625 (xtensa_write_register, xtensa_read_register): Likewise.
8626 (xtensa_hextochar): Removed.
8627 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8628
dbab50de
MG
86292011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8630
8631 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8632 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8633 (xtensa_alloc_frame_cache): Add initialization for new fields.
8634 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8635 (warning_once): New function.
8636 (xtensa_insn_kind): New item c0opc_and.
8637 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8638 (call0_track_op): Change arguments. New local variable litbase.
8639 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8640 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8641 in the prologue.
dbab50de 8642 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8643 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8644 Add the variety of updates to handle extended prologues, which now can
8645 conduct dynamic stack adjustments.
8646 (call0_frame_cache): Likewise.
8647 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8648 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8649
b2c04452
MS
86502011-03-10 Michael Snyder <msnyder@vmware.com>
8651
f8f67713
MS
8652 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8653 (cmd_qtframe): Ditto.
8654 (cmd_qtbuffer): Ditto.
8655 (cmd_bigqtbuffer): Ditto.
8656
197f0a60
TT
86572011-03-10 Tom Tromey <tromey@redhat.com>
8658
8659 * tracepoint.c (trace_actions_command): Update.
8660 * thread.c (thread_apply_command): Update.
8661 * reverse.c (delete_bookmark_command): Update.
8662 (bookmarks_info): Update.
8663 * printcmd.c (undisplay_command): Update.
8664 * memattr.c (mem_enable_command): Update.
8665 (mem_disable_command): Update.
8666 (mem_delete_command): Update.
8667 * inferior.c (detach_inferior_command): Update.
8668 (kill_inferior_command): Update.
8669 (remove_inferior_command): Update.
8670 * cli/cli-utils.h (struct get_number_or_range_state): New.
8671 (init_number_or_range): Declare.
8672 (get_number_or_range): Update.
8673 * cli/cli-utils.c (init_number_or_range): New function.
8674 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8675 static variables.
8676 (number_is_in_list): Update.
8677 * breakpoint.h (get_tracepoint_by_number): Update.
8678 * breakpoint.c (map_breakpoint_numbers): Update for change to
8679 get_number_or_range.
8680 (find_location_by_number): Use get_number, not
8681 get_number_or_range.
8682 (trace_pass_set_count): New function.
8683 (trace_pass_command): Update for change to get_number_or_range.
8684 Rework loop logic.
8685 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8686 'state' parameter.
8687
ecec24e6
PM
86882011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8689
8690 * python/py-param.c (add_setshow_generic): Add set/show callback
8691 parameters. Register Python object context.
8692 (get_show_value): New function.
8693 (get_set_value): New function.
8694 (call_doc_function): New function.
8695 (get_doc_string): Move behind get_show_value/get_set_value.
8696
6d6c6b1f
JK
86972011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8698
8699 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8700
68d6df83
MG
87012011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8702
dbab50de 8703 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8704 (xtensa_write_register): Likewise.
8705 (xtensa_hextochar): Add comment and update to match coding conventions.
8706 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8707 (execute_l32e, execute_s32e, execute_code): Update comments.
8708 (xtensa_exception_handler_t): Update to match coding conventions.
8709 (xtensa_insn_kind): Likewise.
8710
85c9d6a6
MS
87112011-03-09 Michael Snyder <msnyder@vmware.com>
8712
8713 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8714
91495617
PA
87152011-03-09 Pedro Alves <pedro@codesourcery.com>
8716
8717 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8718
eb8c0621
TT
87192011-03-09 Tom Tromey <tromey@redhat.com>
8720
8721 * thread.c (restore_selected_frame): Handle frame_level == -1.
8722 (make_cleanup_restore_current_thread): Use
8723 get_selected_frame_if_set.
8724 * frame.h (get_selected_frame_if_set): Declare.
8725 * frame.c (get_selected_frame_if_set): New function.
8726
9f37bbcc
PA
87272011-03-09 Pedro Alves <pedro@codesourcery.com>
8728
8729 * cli/cli-cmds.c (shell_escape): Use lbasename.
8730 * coffread.c (coff_start_symtab): Constify parameter.
8731 (complete_symtab): Constify `name' parameter.
8732 (coff_symtab_read): Constify `filestring' local.
8733 (coff_getfilename): Constify return and `result' local.
8734 Use lbasename.
8735 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8736 * linux-fork.c (info_checkpoints_command): Use lbasename.
8737 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8738 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8739 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8740 * procfs.c (procfs_make_note_section): Use lbasename.
8741 * tui/tui-io.c (printable_part): Constity return and parameter.
8742 Use lbasename.
8743 (print_filename): Constify parameters, and local `s'.
8744 (tui_rl_display_match_list): Constify local `temp'.
8745
f8de3c55
JK
87462011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 Revert:
8749 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8750 Fix DWARF-3+ DW_AT_accessibility default assumption.
8751 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8752 cu->header.version >= 3.
8753
d9837b00
YQ
87542011-03-09 Yao Qi <yao@codesourcery.com>
8755
8756 * common/Makefile.in: Remove.
8757 * common/configure: Remove.
8758 * common/configure.ac: Remove.
8759
e637a4f5
YQ
87602011-03-09 Yao Qi <yao@codesourcery.com>
8761
8762 Revert:
8763 2011-02-11 Yao Qi <yao@codesourcery.com>
8764
8765 * common/Makefile.in: Add copyright header.
8766
8767 2011-02-11 Yao Qi <yao@codesourcery.com>
8768
8769 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8770 libcommon.a.
8771 * configure.ac: Add common to sub dir.
8772 * configure: Regenerate.
8773
f976a05d
MG
87742011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8775
8776 * xtensa-tdep.c (call0_ret): New function.
8777 (xtensa_skip_prologue): Speed up analysis.
8778
57041825
MG
87792011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8780
8781 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8782 while executing MI command -data-list-changed-registers.
8783
08b9c608
MG
87842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8785
8786 * xtensa-tdep.c (xtensa_read_register): New function.
8787 (xtensa_write_register): New function.
8788 (xtensa_find_register_by_name): New function.
8789 (xtensa_windowed_frame_cache): Update comments in type description.
8790 (xtensa_frame_cache): Likewise.
8791 (xtensa_window_interrupt_insn): New function.
8792 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8793 (xtensa_insn_kind): Add new instructions.
8794 (rwx_special_register): New function.
8795 (call0_classify_opcode): Add new instructions to the analysis.
8796 (a0_saved, a7_saved, a11_saved): New variables.
8797 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8798 (execute_l32e): New function.
8799 (execute_s32e): New function.
8800 (xtensa_exception_handler_t): New type.
8801 (execute_code): New function.
8802 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8803 analysis for Xtensa Window Exception handlers.
8804
4d1acb11
MG
88052011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8806
98689b25
MG
8807 * xtensa-tdep.c (TX_PS): New.
8808 (windowing_enabled): Update to count for Call0 ABI.
8809 (xtensa_hextochar): New.
8810 (xtensa_init_reggroups): Make algorithm generic.
8811 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8812
88132011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8814
8815 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8816
d3f323f3
MS
88172011-03-08 Michael Snyder <msnyder@vmware.com>
8818
3dcabaa8
MS
8819 * i386-tdep.c (i386_follow_jump): Check return value of
8820 target_read_memory.
8821 (i386_analyze_struct_return): Ditto.
8822 (i386_skip_probe): Ditto.
8823 (i386_match_insn): Ditto.
8824 (i386_skip_noop): Ditto.
8825 (i386_analyze_frame_setup): Ditto.
8826 (i386_analyze_register_saves): Ditto.
8827 (i386_skip_prologue): Ditto.
8828 (i386_skip_main_prologue): Ditto.
8829
13b3fd9b
MS
8830 * target.c (read_whatever_is_readable): Fix memory leak.
8831
d3f323f3
MS
8832 * i386-tdep.c (i386_process_record): Document fall through.
8833
421d5c74
JK
88342011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8835
8836 Fix DWARF-3+ DW_AT_accessibility default assumption.
8837 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8838 cu->header.version >= 3.
8839
63154eca
PA
88402011-03-08 Pedro Alves <pedro@codesourcery.com>
8841
8842 * remote.c (remote_check_symbols): Skip if the target has no
8843 execution.
8844
f1a507a1
JB
88452011-03-08 Joel Brobecker <brobecker@adacore.com>
8846
8847 * target.c (read_whatever_is_readable): Reformat comment,
8848 with a minor typo fix. Minor reformatting of the code.
8849
36073a92
YQ
88502011-03-08 Yao Qi <yao@codesourcery.com>
8851
8852 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8853 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8854 Use cached result instead of calling displaced_in_arm_mode again.
8855 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8856 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8857 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8858 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8859 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8860 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8861 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8862 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8863 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8864 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8865 (arm_catch_kernel_helper_return): Likewise.
8866 * gdb/arm-tdep.h : Update function declarations.
8867
d3f323f3 88682011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8869
e0e40094
MS
8870 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8871
0b2381f5
MS
8872 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8873
0350914a
MS
8874 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8875
69feea6f
MS
8876 * elfread.c (elf_symtab_read): Stop memory leak.
8877
e6040cbd
MS
8878 * main.c (captured_main): Fix memory leak.
8879
052874e8
AS
88802011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8881
8882 * ada-lang.c (compare_names): Call is_name_suffix with string1
8883 instead of string2.
8884
b11896a5
TT
88852011-03-07 Tom Tromey <tromey@redhat.com>
8886
8887 * xcoffread.c (xcoff_sym_fns): Update.
8888 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8889 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8890 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8891 (symbol_file_add_with_addrs_or_offsets): Likewise.
8892 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8893 * somread.c (som_sym_fns): Update.
8894 * psymtab.h (require_partial_symbols): Declare.
8895 * psymtab.c (require_partial_symbols): New function.
8896 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8897 (ALL_OBJFILE_PSYMTABS): Undef.
8898 (ALL_PSYMTABS): Move from psympriv.h.
8899 (lookup_partial_symtab, find_pc_sect_psymtab)
8900 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8901 (find_last_source_symtab_from_partial)
8902 (forget_cached_source_info_partial)
8903 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8904 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8905 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8906 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8907 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8908 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8909 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8910 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8911 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8912 psymtabs.
8913 * mipsread.c (ecoff_sym_fns): Update.
8914 * machoread.c (macho_sym_fns): Update.
8915 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8916 (read_psyms): New function.
8917 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8918 (elf_sym_fns_lazy_psyms): New global.
8919 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8920 dwarf2_build_psymtabs.
8921 * dbxread.c (aout_sym_fns): Update.
8922 * coffread.c (coff_sym_fns): Update.
8923
fda326dd
TT
89242011-03-07 Tom Tromey <tromey@redhat.com>
8925
8926 * infrun.c (print_exited_reason): Include inferior id and pid in
8927 message.
8928
aeaec162
TT
89292011-03-07 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8932 parameter.
8933 (target_has_execution_1): Update.
8934 (target_has_execution_current): Declare.
8935 (target_has_execution): Call target_has_execution_current.
8936 (default_child_has_execution): Update.
8937 * target.c (default_child_has_execution): Add 'the_ptid'
8938 parameter.
8939 (target_has_execution_1): Likewise.
8940 (target_has_execution_current): New function.
8941 (add_target): Update.
8942 (init_dummy_target): Update.
8943 * remote-m32r-sdi.c (m32r_has_execution): New function.
8944 (init_m32r_ops): Use it.
8945 * record.c (record_core_has_execution): Now static. Add
8946 'the_ptid' parameter.
8947 * inferior.c (have_live_inferiors): Don't save current thread.
8948 Use target_has_execution_1.
8949
08e14083
YQ
89502011-03-07 Yao Qi <yao@codesourcery.com>
8951
8952 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8953
c05d19c5
JB
89542011-03-07 Joel Brobecker <brobecker@adacore.com>
8955
8956 * elfread.c (elf_symtab_read): Minor reformatting.
8957
3e6ef9e4
JB
89582011-03-07 Joel Brobecker <brobecker@adacore.com>
8959
8960 * objc-lang.c (selectors_info): Minor reformatting.
8961
dbb8534f
JB
89622011-03-07 Joel Brobecker <brobecker@adacore.com>
8963
8964 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8965
dd70cc93
JB
89662011-03-07 Joel Brobecker <brobecker@adacore.com>
8967 Michael Snyder <msnyder@vmware.com>
8968
8969 * ada-valprint.c (ada_val_print_array): Move the declaration of
8970 "byte_order" and "elttype" inside the block where these variables
8971 are actually used. Remove some special handling for the case
8972 where "elttype" and "eltlen" are null. Replace by a comment
8973 and a couple of assertion checks.
8974
b27cf2b3
MS
89752011-03-05 Michael Snyder <msnyder@vmware.com>
8976
8977 * source.c (add_path): Replace semicolon at end of block.
8978 * dwarf2expr.c (execute_stack_op): Ditto.
8979
5387a0c6
MF
89802011-03-05 Mike Frysinger <vapier@gentoo.org>
8981
8982 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8983 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8984 (bfin-*-*): Likewise.
8985
e3aa49af
MS
89862011-03-05 Michael Snyder <msnyder@vmware.com>
8987
82ae4854
MS
8988 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8989 * mdebugread.c (parse_symbol): Ditto.
8990 * parse.c (parse_exp_in_context): Ditto.
8991 * source.c (add_path): Ditto.
8992 * utils.c (gnu_debuglink_crc32): Ditto.
8993 * varobj.c (variable_language): Ditto.
8994
e3aa49af
MS
8995 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8996
154f592e
MS
89972011-03-04 Michael Snyder <msnyder@vmware.com>
8998
da3ecdc6
MS
8999 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9000
9cc89665
MS
9001 * symfile.c (simple_overlay_update): Check for null return value
9002 from lookup_minimal_symbol.
9003
154f592e
MS
9004 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9005
63ffa6ee
TJB
90062011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9007
9008 * eval.c (parse_and_eval_address_1): Remove function.
9009 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9010 instead of parse_and_eval_address_1.
9011 * value.h (parse_and_eval_address_1): Remove prototype.
9012
a17d146e
MS
90132011-03-04 Michael Snyder <msnyder@vmware.com>
9014
9015 * remote.c (putpkt_binary): Document that case stmt falls through.
9016
1a6a67de
TJB
90172011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9018
9019 * breakpointc (print_it_typical): Move NULL check from here...
9020 (print_bp_stop_message): ... to here.
9021
488919c4
MS
90222011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9023
9024 * breakpoint.c (enable_command): Use break instead of continue,
9025 and fill in a missing break.
9026 (disable_command): Ditto.
9027
1e182ce8
UW
90282011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9029
9030 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9031 (terminal_save_ours): Remove misleading comment.
9032 (inflow_inferior_data_cleanup): Free ttystate.
9033 (inflow_inferior_exit): Likewise.
9034 (copy_terminal_info): Copy ttystate.
9035
9036 * serial.c (serial_copy_tty_state): New function.
9037 * serial.h (serial_copy_tty_state): Add prototype.
9038 (struct serial_ops): Add copy_tty_state callback.
9039 * ser-base.c (ser_base_copy_tty_state): New function.
9040 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9041 * ser-go32.c (dos_copy_tty_state): New function.
9042 (dos_ops): Install copy_tty_state callback.
9043 * ser-mingw.c (_initialize_ser_windows): Likewise.
9044 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9045 * ser-unix.c (hardwire_copy_tty_state): New function.
9046 (_initialize_ser_hardwire): Install it.
9047
b2c5f112
MS
90482011-03-04 Michael Snyder <msnyder@vmware.com>
9049
2abae994
MS
9050 * breakpoint.c (create_breakpoint): Add missing break statement.
9051
7f5936f9
MS
9052 Reverting this patch:
9053 * infcall.c (call_function_by_hand): Add break statements for lint.
9054
b2c5f112
MS
9055 Reverting this patch:
9056 * cli/cli-script.c (script_from_file): Add break for lint.
9057
42b1321c
MS
90582011-03-04 Michael Snyder <msnyder@vmware.com>
9059
9060 * solib.c (reload_shared_libraries_1): Close memory leak.
9061
3e2a0cee
TT
90622011-03-03 Tom Tromey <tromey@redhat.com>
9063
9064 PR gdb/12538:
9065 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9066 DW_STRING is NULL.
9067
58397cb7
MS
90682011-03-03 Michael Snyder <msnyder@vmware.com>
9069
2e3fd767
MS
9070 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9071 fields of struct 'st' to zero.
9072
58397cb7
MS
9073 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9074 sal.pspace before calling set_current_source_symtab_and_line.
9075
ced54c8f
YQ
90762011-03-03 Yao Qi <yao@codesourcery.com>
9077
9078 * Makefile.in (configure-common): Remove. Let Makefile
9079 in dir common to rebuild itself.
9080 (common/Makefile): Likewise.
9081
3351ea09
JB
90822011-03-03 Joel Brobecker <brobecker@adacore.com>
9083
9084 * utils.c (parse_escape): Add i18n markup in error message.
9085
bf9f652a
YQ
90862011-03-03 Yao Qi <yao@codesourcery.com>
9087
9088 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9089 ARM_PC_REGNUM.
9090 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9091 (displaced_write_reg, displaced_read_reg): Likewise.
9092 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9093 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9094 (cleanup_branch): Replace magic number 14 and 15 with
9095 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9096
d42de051
MS
90972011-03-02 Michael Snyder <msnyder@vmware.com>
9098
240f9570
MS
9099 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9100
10dd8b54
MS
9101 * cli/cli-script.c (script_from_file): Add break for lint.
9102
b98bd911
MS
9103 * mdebugread.c (parse_partial_symbols): Fix indent.
9104
3494b66d
MS
9105 * target-descriptions.c (tdesc_gdb_type): No need to call
9106 xstrdup, callee saves a copy.
9107
daac021a
MS
9108 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9109
c38d16a7
MS
9110 * infcall.c (call_function_by_hand): Add break statements for lint.
9111
905b671b
MS
9112 * utils.c (parse_escape): Escape the escape char.
9113
f2eb0bc8 9114 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9115 PyList_Append fails.
9116 (gdbpy_inferiors): Error out if build_inferior_list fails.
9117
8c6a60d1
MS
9118 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9119 a function call.
9120
d42de051
MS
9121 * record.c (record_restore): Move printf to before error return.
9122
4db71c0b
YQ
91232011-03-02 Yao Qi <yao@codesourcery.com>
9124
9125 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9126 is_thumb and insn_size.
9127 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9128 on both ARM and Thumb mode.
9129 (arm_process_displaced_insn): Set is_thumb and insn_size.
9130 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9131 (arm_displaced_step_fixup): Likewise.
9132
a9dc8dcc
MS
91332011-03-01 Michael Snyder <msnyder@vmware.com>
9134
53624a93
MS
9135 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9136
77766669
MS
9137 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9138
62d5b8da
MS
9139 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9140
5e9e105f
MS
9141 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9142
dc19db01
MS
9143 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9144 with xmalloc.
9145
5ce64950
MS
9146 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9147 which shadows function parameter.
9148
a0aa2878
MS
9149 * tracepoint.c (create_tsv_from_upload): Superfluous call
9150 to xstrdup. Callee already calls xstrdup.
9151
e325fb69
MS
9152 * linespec.c (decode_line_1): Remove unnecessary null check.
9153
21cbba77
MS
9154 * tracepoint.c (scope_info): Fix mem leak, remove underused
9155 variable.
9156
63360adc
MS
9157 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9158 superfluous null check.
9159
18ea20ac 9160 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9161 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9162
d014929c
MS
9163 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9164
6e9130cf
MS
9165 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9166 be null.
9167
5f01dbc0
MS
9168 * linespec.c (decode_line_1): Check for null before dereference.
9169
d684ab85
MS
9170 * reverse.c (record_restore): Move null-check to before pointer
9171 dereference.
9172
bfffb7e3
MS
9173 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9174
a9dc8dcc
MS
9175 * objc-lang.c (selectors_info): Add explanitory comment.
9176 (classes_info): Ditto.
9177
478fd957
UW
91782011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9179
9180 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9181 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9182 versions of the trampoline. Handle Thumb vs. ARM addresses.
9183 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9184 (arm_linux_init_abi): Install it.
9185 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9186 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9187
0480cefa
MS
91882011-02-28 Michael Snyder <msnyder@vmware.com>
9189
ac50ab3b
MS
9190 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9191 a little bigger, to avoid possibility of an overflow.
9192
f63fbe86
MS
9193 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9194 buffers a little bigger, to avoid possibility of an overflow.
9195
9e91a352
MS
9196 * coffread.c (coff_getfilename): Add check to avoid overflow.
9197
f2eb0bc8 9198 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9199 avoid overflow.
9200 (classes_info): Error out on too long REGEXP.
9201
098ab512
MS
9202 * infrun.c (handle_inferior_event): Remove unused function call.
9203
bcbd1de9
MS
9204 * fork-child.c (fork_inferior): Remove ifdef'd code and
9205 unused variable.
9206
2e456570
MS
9207 * linux-thread-db.c (attach_thread): Discard unused value.
9208
14571dad
MS
9209 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9210
a9cbf802
MS
9211 * remote.c (remote_get_noisy_reply): Discard unused value.
9212 (remote_vcont_resume): Ditto.
9213 (remote_stop_ns): Ditto.
9214
5715d26e
MS
9215 * linespec.c (decode_objc): Delete unused variable.
9216
4a9bca80
MS
9217 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9218
f47fb265
MS
9219 * dwarf2read.c (add_partial_symbol): Discard unused values.
9220 (read_base_type): Delete unused variable.
9221
e81cff30
MS
9222 * dbxread.c (read_dbx_symtab): Discard unused value.
9223
262acaeb
MS
9224 * eval.c (evaluate_subexp_standard): Delete unused variable,
9225 and discard unused values.
9226
df983543
MS
9227 * infcmd.c (_initialize_infcmd): Discard unused values.
9228
89acf84d
MS
9229 * stabsread.c (rs6000_builtin_type): Missing break statement.
9230
ab8b8aca
MS
9231 * dbxread.c (process_one_symbol): Discard unused value.
9232
6b4511ab
MS
9233 * coffread.c (coff_end_symtab): Delete unused variable.
9234
e8e80198
MS
9235 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9236 (dwarf2_add_typedef): Delete unused variable.
9237 (read_namespace): Ditto.
9238 (dwarf_decode_macros): Ditto.
9239
976aa66e
MS
9240 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9241
5b92b49f
MS
9242 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9243
91e8df85
MS
9244 * p-valprint.c (pascal_val_print): Discard unused value.
9245
899500d6
MS
9246 * utils.c (nquery): Call va_end before return;
9247 (yquery): Ditto.
9248 (query): Ditto.
9249
0480cefa
MS
9250 * proc-service.c (ps_plog): Call va_end before return.
9251
fb6a3ed3
TT
92522011-02-28 Tom Tromey <tromey@redhat.com>
9253
9254 * python/python.c (gdbpy_value_cst): New global.
9255 (_initialize_python): Initialize it.
9256 * python/python-internal.h (gdbpy_value_cst): Declare.
9257 * python/py-value.c (convert_value_from_python): Use
9258 gdbpy_value_cst.
9259
c05202a1
MS
92602011-02-28 Michael Snyder <msnyder@vmware.com>
9261
e463f587
MS
9262 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9263
c38eea1a
MS
9264 * breakpoint.c (catch_syscall_completer): Free malloced list.
9265
3ef09ab5
MS
9266 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9267
8f9a01ee
MS
9268 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9269 (lval_func_check_synthetic_pointer): Ditto.
9270 (lval_func_free_closure): Fix use-after-free.
c05202a1 9271
477d0d57
TT
92722011-02-28 Tom Tromey <tromey@redhat.com>
9273
9274 * psymtab.c (expand_partial_symbol_tables): Use
9275 ALL_OBJFILE_PSYMTABS.
9276
20937029
JK
92772011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9278
9279 * objc-lang.c (selectors_info): Error on too long REGEXP.
9280
907b7f4f
MS
92812011-02-28 Michael Snyder <msnyder@vmware.com>
9282
92e96192
MS
9283 * python/py-param.c (set_parameter_value): Add missing
9284 break statement.
9285
907b7f4f
MS
9286 * linux-record.c (record_linux_system_call): Add missing
9287 break statement.
9288
12c5a436
UW
92892011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9290
9291 * breakpoint.c (print_one_breakpoint_location): Remove unused
9292 argument PRINT_ADDRESS_BITS. Update callers.
9293 (print_one_breakpoint): Likewise.
9294
170b53b2
UW
92952011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9296
9297 * breakpoint.c (wrap_indent_at_field): New function.
9298 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9299 Allocate ui_stream locally instead of using STB argument.
9300 (print_one_breakpoint_location): Update call.
9301 * ui-out.c (ui_out_query_field): New function.
9302 * ui-out.h (ui_out_query_field): Add prototype.
9303
8ab1f94d
JB
93042011-02-28 Joel Brobecker <brobecker@adacore.com>
9305
9306 From Michael Snyder <msnyder@vmware.com>
9307 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9308
7d488639
MS
93092011-02-27 Michael Snyder <msnyder@vmware.com>
9310
ae179fba
MS
9311 * objc-lang.c (selectors_info): Prevent string overrun.
9312
086dbf66
MS
9313 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9314 error in strncpy.
9315
f2eb0bc8 9316 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9317 outer scope.
9318
7d488639
MS
9319 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9320 param with a local variable of the same name.
9321
3bd0f5ef
MS
93222011-02-27 Michael Snyder <msnyder@vmware.com>
9323
9324 * value.c (value_from_history_ref): New function.
9325 * value.h (value_from_history_ref): Export.
9326 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9327 to parse value history references.
9328 * cli/cli-utils.h (get_number_trailer): Update comment.
9329
93302011-02-27 Michael Snyder <msnyder@vmware.com>
9331
9332 * inferior.c (detach_inferior_command): Use get_number_or_range.
9333 (kill_inferior_command): Ditto.
9334 (remove_inferior_command): Ditto.
9335 (initialize_inferiors): Make command names plural.
9336 Update help strings.
9337
766062f6
MS
93382011-02-27 Michael Snyder <msnyder@vmware.com>
9339
9340 * darwin-nat-info.c: Fix comment typo.
9341 * dwarf2expr.h: Ditto.
9342 * fbsd-nat.c: Ditto.
9343 * fbsd-nat.h: Ditto.
9344 * frame-unwind.h: Ditto.
9345 * frame.h: Ditto.
9346 * hppa-hpux-tdep.c: Ditto.
9347 * i386-linux-nat.c: Ditto.
9348 * linux-nat.c: Ditto.
9349 * nbsd-nat.c: Ditto.
9350 * nbsd-nat.h: Ditto.
9351 * ppc-linux-tdep.c: Ditto.
9352 * serial.c: Ditto.
9353 * ui-file.h: Ditto.
9354 * tui/tui-winsource.c: Ditto.
9355
f2c4ead5
MS
93562011-02-26 Michael Snyder <msnyder@vmware.com>
9357
86b887df
MS
9358 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9359
66fd3b1e
MS
9360 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9361
8c814cdd
MS
9362 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9363 with a local variable of the same name.
9364
6d5e094a 9365 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9366 param with a local variable of the same name.
6d5e094a 9367 (i387_supply_xsave): Ditto.
e5b3d7d6 9368
5eee517d
MS
9369 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9370 that it does not shadow a function parameter.
9371
8fbf6b93
MS
9372 * i386-nat.c (i386_length_and_rw_bits): Document that case
9373 statement is meant to fall through.
9374
cb969d61
MS
9375 * expprint.c (dump_subexp_body_standard): Document that case
9376 statement is meant to fall through.
9377
f2c4ead5
MS
9378 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9379 dead if statement. Condition can't be false.
9380
b021a221
MS
93812011-02-25 Michael Snyder <msnyder@vmware.com>
9382
9383 * arm-tdep.c: Fix typos in comments.
9384 * bsd-uthread.c: Ditto.
9385 * completer.c: Ditto.
9386 * corelow.c: Ditto.
9387 * cp-namespace.c: Ditto.
9388 * cp-support.c: Ditto.
9389 * cris-tdep.c: Ditto.
9390 * dbxread.c: Ditto.
9391 * dwarf2read.c: Ditto.
9392 * frame.h: Ditto.
9393 * gdbtypes.h: Ditto.
9394 * inferior.h: Ditto.
9395 * mdebugread.c: Ditto.
9396 * mips-tdep.c: Ditto.
9397 * ppc-linux-nat.c: Ditto.
9398 * ppc-linux-tdep.c: Ditto.
9399 * printcmd.c: Ditto.
9400 * sol-thread.c: Ditto.
9401 * solib-frv.c: Ditto.
9402 * solist.h: Ditto.
9403 * sparc64-tdep.c: Ditto.
9404 * spu-tdep.c: Ditto.
9405 * stabsread.c: Ditto.
9406 * symfile.c: Ditto.
9407 * valops.c: Ditto.
9408 * varobj.c: Ditto.
9409 * vax-nat.c: Ditto.
9410 * python/py-block.c: Ditto.
9411 * python/py-symbol.c: Ditto.
9412 * python/py-symtab.c: Ditto.
9413 * python/py-value.c: Ditto.
9414 * tui/tui-win.c: Ditto.
9415
c82c0b55
MS
94162011-02-25 Michael Snyder <msnyder@vmware.com>
9417
9418 * inferior.c (print_inferior): Accept a string instead of an int
9419 for requested_inferiors, and use get_number_or_range to parse it.
9420 (info_inferiors_command): Pass args string to print_inferior.
9421 (initialize_inferiors): Change help string for info inferiors.
9422 * inferior.h (print_inferior): Export prototype change.
9423
ee00cd23
TT
94242011-02-25 Tom Tromey <tromey@redhat.com>
9425
9426 * common/ax.def (invalid2): Set to 0x31.
9427
0502ed8c
JK
94282011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9429
9430 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9431 L and plongest.
9432 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9433 use L and plongest.
9434 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9435
2c9de912
MS
94362011-02-24 Michael Snyder <msnyder@vmware.com>
9437
9438 * Makefile.in (clean): Make clean should remove generated files
9439 observer.h and observer.inc.
9440
a04b0428
JB
94412011-02-24 Joel Brobecker <brobecker@adacore.com>
9442
9443 Revert the following patch (not approved yet):
9444 2011-02-21 Hui Zhu <teawater@gmail.com>
9445 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9446 * ax-gdb.c (gen_printf_expr_callback): New function.
9447 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9448 * ax-general.c (ax_memcpy): New function.
9449 (ax_print): Handle "printf".
9450 (ax_reqs): Ditto.
9451 * ax.h (ax_memcpy): Forward declare.
9452 * common/ax.def (invalid2): Removed.
9453 (printf): New entry.
9454 * printcmd.c (printcmd.h): New include.
9455 (string_printf): New function.
9456 (ui_printf): Removed.
9457 (printf_command): Remove static. Call string_printf.
9458 (eval_command): Call string_printf.
9459 * printcmd.h: New file.
9460 * tracepoint.c (validate_actionline,
9461 encode_actions_1): handle printf_command.
9462
2b52013f
TT
94632011-02-23 Tom Tromey <tromey@redhat.com>
9464
9465 * ax-general.c (ax_pick): Add missing newline.
9466
e5a67952
MS
94672011-02-23 Michael Snyder <msnyder@vmware.com>
9468
9469 * breakpoint.c (breakpoint_1): Change first argument from an int
9470 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9471 breakpoints rather than just one. Use new function
e5a67952
MS
9472 'number_is_in_list' to implement.
9473 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9474 (watchpoints_info): Ditto.
9475 (tracepoints_info): Ditto.
9476 (maintenance_info_breakpoints): Ditto.
9477 (_initialize_breakpoint): Update help strings to reflect the fact
9478 that these functions can now take more than one argument.
9479 * cli/cli-utils.c (number_is_in_list): New function.
9480 * cli/cli-utils.h (number_is_in_list): Export.
9481
94822011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9483
9484 * memattr.c (mem_enable_command): Use get_number_or_range.
9485 (mem_disable_command): Ditto.
9486 (mem_delete_command): Ditto.
9487 (_initialize_mem): Tweak usage message to reflect multiple
9488 arguments.
9489
6e6fbe60
DE
94902011-02-22 Doug Evans <dje@google.com>
9491
9492 Add gdb.lookup_global_symbol python function.
9493 * NEWS: Add entry.
9494 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9495 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9496 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9497
79b97fa8
TT
94982011-02-22 Tom Tromey <tromey@redhat.com>
9499
9500 * language.c (language_class_name_from_physname): Rename
9501 'curr_language' argument to 'lang'; use in body.
9502
298f437a
MS
95032011-02-22 Michael Snyder <msnyder@vmware.com>
9504
9505 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9506
b7ea3126
PA
95072011-02-22 Pedro Alves <pedro@codesourcery.com>
9508
9509 * frame-unwind.h: Fix comment to mention the this frame, not the
9510 next.
9511
58ee6d60
TT
95122011-02-22 Tom Tromey <tromey@redhat.com>
9513
9514 * symfile.c (auto_solib_limit): Remove.
9515 * symfile.h (auto_solib_limit): Remove.
9516
36238dbc
JB
95172011-02-22 Joel Brobecker <brobecker@adacore.com>
9518
9519 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9520
aea5b279
MS
95212011-02-21 Michael Snyder <msnyder@vmware.com>
9522
9523 * gdbthread.h (print_thread_info): Change prototype.
9524 * thread.c (print_thread_info): Accept char* instead of int for
9525 requested_threads argument. Use new function number_is_in_list
9526 to determine which threads to list.
9527 (info_threads_command): Pass char* to print_thread_info.
9528 * cli/cli-utils.c (number_is_in_list): New function.
9529 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9530 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9531 print_thread_info.
9532 (print_one_inferior): Ditto.
9533 (mi_cmd_list_thread_groups): Ditto.
9534
8caa75ee
JK
95352011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9536
9537 * common/Makefile.in (CFLAGS): New.
9538 (COMPILE): Add $(CFLAGS).
9539
ea666128
TT
95402011-02-21 Tom Tromey <tromey@redhat.com>
9541
9542 * breakpoint.c (catch_syscall_command_1): Fix typo.
9543
e9cafbcc
TT
95442011-02-21 Tom Tromey <tromey@redhat.com>
9545
9546 * reverse.c: Include cli-utils.h.
9547 * printcmd.c: Include cli-utils.h.
9548 (string_printf): Use skip_spaces.
9549 * cli/cli-utils.h: New file.
9550 * cli/cli-utils.c: New file.
9551 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9552 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9553 * breakpoint.h (get_number, get_number_or_range): Move to
9554 cli-utils.h.
9555 * breakpoint.c: Include cli-utils.h.
9556 (get_number_trailer, get_number, get_number_or_range)
9557 (ep_skip_leading_whitespace): Move to cli-utils.c.
9558 (create_breakpoint_sal, find_condition_and_thread)
9559 (decode_static_tracepoint_spec, watch_command_1)
9560 (watch_maybe_just_location, ep_parse_optional_if_clause)
9561 (catch_fork_command_1, catch_exec_command_1)
9562 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9563 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9564 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9565 (HFILES_NO_SRCDIR): Add cli-utils.h.
9566 (cli-utils.o): New target.
9567
f67fd822
PM
95682011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9569
9570 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9571 before calling discard_all_inferiors.
9572
c9def01d
UW
95732011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9574
9575 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9576 (struct builtin_opencl_type): Remove.
9577 (builtin_opencl_type): Change return type to "struct type **".
9578 (lookup_opencl_vector_type): Update caller.
9579 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9580 (build_opencl_types): Install plain array of "struct type *"
9581 instead of "struct builtin_opencl_type".
9582
e3039479
UW
95832011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9584 Ulrich Weigand <uweigand@de.ibm.com>
9585
9586 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9587 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9588 (struct arm_linux_hwbp_cap): New type.
9589 (arm_linux_get_hwbp_cap): New function.
9590 (arm_linux_get_hw_breakpoint_count): Likewise.
9591 (arm_linux_get_hw_watchpoint_count): Likewise.
9592 (arm_linux_can_use_hw_breakpoint): Likewise.
9593 (arm_hwbp_type): New type.
9594 (arm_hwbp_control_t): Likewise.
9595 (struct arm_linux_hw_breakpoint): Likewise.
9596 (struct arm_linux_thread_points): Likewise.
9597 (arm_threads): New global variable.
9598 (arm_linux_find_breakpoints_by_tid): New function.
9599 (arm_hwbp_control_initialize): Likewise.
9600 (arm_hwbp_control_is_enabled): Likewise.
9601 (arm_hwbp_control_disable): Likewise.
9602 (arm_linux_hw_breakpoint_initialize): Likewise.
9603 (arm_linux_get_hwbp_type): Likewise.
9604 (arm_linux_hw_watchpoint_initialize): Likewise.
9605 (arm_linux_hw_breakpoint_equal): Likewise.
9606 (arm_linux_insert_hw_breakpoint1): Likewise.
9607 (arm_linux_remove_hw_breakpoint1): Likewise.
9608 (arm_linux_insert_hw_breakpoint): Likewise.
9609 (arm_linux_remove_hw_breakpoint): Likewise.
9610 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9611 (arm_linux_insert_watchpoint): Likewise.
9612 (arm_linux_remove_watchpoint): Likewise.
9613 (arm_linux_stopped_data_address): Likewise.
9614 (arm_linux_stopped_by_watchpoint): Likewise.
9615 (arm_linux_watchpoint_addr_within_range): Likewise.
9616 (arm_linux_new_thread): Likewise.
9617 (arm_linux_thread_exit): Likewise.
9618 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9619 related target callbacks. Register arm_linux_new_thread and
9620 arm_linux_thread_exit.
9621 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9622 * arm-tdep.c (arm_pc_is_thumb): Make global.
9623 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9624
b5db5dfc
UW
96252011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9626
9627 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9628 per-frame locations while within a function epilogue.
9629
e25b2cfa
PM
96302011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9631
9632 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9633 to GNU coding standards.
9634
4af53f97
PM
96352011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9636
9637 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9638 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9639 (ser_windows_close): Only call CancelIo if function exists.
9640 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9641 to check for existence of CancelIo function in kernel32 DLL.
9642
d0e92d82
HZ
96432011-02-21 Hui Zhu <teawater@gmail.com>
9644
9645 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9646 * ax-gdb.c (gen_printf_expr_callback): New function.
9647 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9648 * ax-general.c (ax_memcpy): New function.
9649 (ax_print): Handle "printf".
9650 (ax_reqs): Ditto.
9651 * ax.h (ax_memcpy): Forward declare.
9652 * common/ax.def (invalid2): Removed.
9653 (printf): New entry.
9654 * printcmd.c (printcmd.h): New include.
9655 (string_printf): New function.
9656 (ui_printf): Removed.
9657 (printf_command): Remove static. Call string_printf.
9658 (eval_command): Call string_printf.
9659 * printcmd.h: New file.
9660 * tracepoint.c (validate_actionline,
9661 encode_actions_1): handle printf_command.
9662
7d357efd
MS
96632011-02-19 Michael Snyder <msnyder@vmware.com>
9664
9665 * reverse.c (delete_one_bookmark): Argument is now bookmark
9666 id rather than pointer to bookmark struct.
9667 (delete_bookmark_command): Use get_number_or_range.
9668 (goto_bookmark_command): Parse with get_number instead of strtoul.
9669 (bookmark_1): New function. Print info for one bookmark.
9670 (bookmarks_info): Use get_number_or_range and bookmark_1.
9671
7a45ebd7
MS
96722011-02-18 Michael Snyder <msnyder@vmware.com>
9673
f2eb0bc8 9674 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9675 get_number_or_range.
65ebfb52 9676 (thread_apply_command): Ditto.
7a45ebd7 9677
94d5e490
TT
96782011-02-18 Tom Tromey <tromey@redhat.com>
9679
9680 * common/ax.def: New file.
9681 * ax.h (enum agent_op): Use ax.def.
9682 * ax-general.c (aop_map): Use ax.def.
9683
c7f96d2b
TT
96842011-02-18 Tom Tromey <tromey@redhat.com>
9685
9686 * ax-general.c (aop_map): Add pick and rot.
9687 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9688 <DW_OP_rot>: Implement.
9689 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9690 (ax_pick): Declare.
9691 * ax-general.c (ax_pick): New function.
9692
66694b75
TT
96932011-02-18 Tom Tromey <tromey@redhat.com>
9694
9695 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9696
eeaafae2
JK
96972011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9698 Tom Tromey <tromey@redhat.com>
9699
9700 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9701 make_symbol_overload_list_block with NULL BLOCK.
9702 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9703
3c3fe74c
PA
97042011-02-18 Pedro Alves <pedro@codesourcery.com>
9705
9706 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9707 * breakpoint.h (get_number_or_range): Declare.
9708 * printcmd.c (ALL_DISPLAYS): Declare.
9709 (delete_display): Reimplement taking a display pointer.
9710 (undisplay_command): Accept a range of displays to delete, using
9711 get_number_or_range.
9712
13163d80
PM
97132011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9714
9715 * c-valprint.c (c_val_print): Add embedded_offset to address
9716 for arrays of unspecified length.
9717 * p-valprint.c (pascal_val_print): Likewise.
9718
b434a28f
YQ
97192011-02-18 Yao Qi <yao@codesourcery.com>
9720
9721 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9722 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9723 (thumb_process_displaced_insn): New.
9724 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9725 call to arm_process_displaced_insn.
9726 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9727
9f6f94ff
TT
97282011-02-17 Tom Tromey <tromey@redhat.com>
9729
9730 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9731 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9732 compile_dwarf_to_ax. No longer static. Call
9733 dwarf2_compile_cfa_to_ax.
9734 (locexpr_tracepoint_var_ref): Update.
9735 (loclist_tracepoint_var_ref): Update.
9736 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9737 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9738 argument; add 'gdbarch' and 'pc'.
9739 (dwarf2_compile_cfa_to_ax): New function.
9740 (dwarf2_frame_cache): Update.
9741
e67ad678
JB
97422011-02-17 Joel Brobecker <brobecker@adacore.com>
9743
9744 * ada-lang.c (ada_type_of_array): Fix the size of the array
9745 in the case of an unconstrained packed array.
9746
946ebb0d
YQ
97472011-02-17 Yao Qi <yao@codesourcery.com>
9748
9749 * common/Makefile.in: Add more targets for make.
9750
1ba1b353
TT
97512011-02-16 Tom Tromey <tromey@redhat.com>
9752
9753 * dwarf2loc.c (unimplemented): Fix typo.
9754
b1bfef65
TT
97552011-02-16 Tom Tromey <tromey@redhat.com>
9756
9757 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9758 (compile_dwarf_to_ax) <default>: Use unimplemented.
9759 <DW_OP_deref>: Update.
9760 (disassemble_dwarf_expression): Update.
9761 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9762 (decode_locdesc): Update.
9763 * dwarf2expr.h (dwarf_stack_op_name): Update.
9764
5f1e6f19
TT
97652011-02-16 Tom Tromey <tromey@redhat.com>
9766
9767 * ax.h (struct aop_map) <name>: Now const.
9768
a0c78a73
PA
97692011-02-16 Tom Tromey <tromey@redhat.com>
9770
9771 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9772 than axs_rvalue.
9773
946ebb0d 97742011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9775
9776 * infrun.c (get_displaced_step_closure_by_addr): New.
9777 * inferior.h: Declare it.
9778 * arm-tdep.c: (arm_pc_is_thumb): Call
9779 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9780 returns non-NULL.
9781
08807d5a
PA
97822011-02-16 Pedro Alves <pedro@codesourcery.com>
9783 Jan Kratochvil <jan.kratochvil@redhat.com>
9784
9785 gdb/
9786 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9787
29976f3f
PA
97882011-02-16 Pedro Alves <pedro@codesourcery.com>
9789 Jan Kratochvil <jan.kratochvil@redhat.com>
9790
9791 * value.c (value_contents_copy_raw): Extend describing comment.
9792 Assert that the destination contents we're overwriting are wholly
9793 available.
fb68ae73 9794 (value_contents_copy): Extend describing comment.
29976f3f 9795
cd24cfaa
PA
97962011-02-16 Pedro Alves <pedro@codesourcery.com>
9797 Jan Kratochvil <jan.kratochvil@redhat.com>
9798
9799 * value.c (value_available_contents_eq): Remove redundant local
9800 variables. Fix available contents comparision.
9801 * value.h (value_available_contents_eq): Extend describing
9802 comment.
9803
60bbf338
YQ
98042011-02-16 Yao Qi <yao@codesourcery.com>
9805
9806 * thread.c (info_threads_command): Add missing i18n markup and remove
9807 trailing newline.
9808
17450429
PP
98092011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9810
9811 * breakpoint.c (longjmp_names): New variable.
9812 (struct breakpoint_objfile_data): New type.
9813 (breakpoint_objfile_key): New variable.
9814 (msym_not_found): New variable.
9815 (msym_not_found_p): New predicate.
9816 (get_breakpoint_objfile_data): New function.
9817 (create_overlay_event_breakpoint): Check per-objfile cache for
9818 symbols first.
9819 (create_longjmp_master_breakpoint): Likewise.
9820 (create_std_terminate_master_breakpoint): Likewise.
9821 (create_exception_master_breakpoint): Likewise.
9822 (_initialize_breakpoint): Register per-objfile data key.
9823
af02033e
PP
98242011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9825
9826 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9827 parameter value.
9828 (create_longjmp_master_breakpoint): Loop over longjmp names.
9829 (create_std_terminate_master_breakpoint): Const-propagate parameter
9830 value.
9831 (update_breakpoints_after_exec): Adjust.
9832 (breakpoint_re_set): Adjust.
9833
60f98dde
MS
98342011-02-15 Michael Snyder <msnyder@vmware.com>
9835
cdf99611
MS
9836 * thread.c (info_threads_command): Process arg as thread id,
9837 or list of thread ids.
9838 (thread_find_command): New command.
9839 (_initialize_thread): Document argument for info threads.
9840 Document 'thread find' command.
9841 * NEWS: Document new command "thread find".
60f98dde 9842
0feedb2c
JK
98432011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9844
9845 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9846 * aclocal.m4: Regenerated with aclocal-1.11.1.
9847 * common/configure: Regenerate with autoconf-2.64.
9848
648cd113
KW
98492011-02-15 Ken Werner <ken.werner@de.ibm.com>
9850
9851 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9852 bool data type to a size of one byte.
9853
5657161f
PA
98542011-02-15 Pedro Alves <pedro@codesourcery.com>
9855 Jan Kratochvil <jan.kratochvil@redhat.com>
9856
9857 * target.c (memory_xfer_live_readonly_partial): Document where to
9858 look for interface description.
9859
494e194e
YQ
98602011-02-15 Yao Qi <yao@codesourcery.com>
9861
9862 PR tdep/12352
9863 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9864 order to store PC value on stack instead of text section.
9865
d9492458
TJB
98662011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9867
9868 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9869 the EFP register set size.
9870 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9871 data from the VMX register.
9872 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9873 and write data from/to the VMX register.
9874
cdf99611
MS
98752011-02-14 Michael Snyder <msnyder@vmware.com>
9876
9877 * command.h (enum command_class): New class 'no_set_class', for
9878 "show" commands without a corresponding "set" command.
9879 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9880 * copying.c (_initialize_copying): Ditto for "show copying" and
9881 "show warranty".
9882 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9883 "show version".
9884 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9885 which there is no corresponding "set" command (eg. "show copying").
9886
424447ee
PA
98872011-02-14 Pedro Alves <pedro@codesourcery.com>
9888 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * exec.c (section_table_available_memory): Change `len' parameter
9891 type to ULONGEST.
9892 * exec.h (section_table_available_memory): Ditto.
9893 * value.h (read_value_memory): Rename the `offset' parameter to
9894 `embedded_offset'.
9895
c0f61f9c 98962011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9897 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9898
9899 * memrange.c (compare_mem_ranges): Mention sort order in
9900 describing comment.
9901 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9902 * tracepoint.c (traceframe_available_memory): Extend comment to
9903 mention what happens to RESULT when the target does not support
9904 the query.
9905
6bfc80c7
PA
99062011-02-14 Pedro Alves <pedro@codesourcery.com>
9907 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9910 range.
9911
e7303042
PA
99122011-02-14 Pedro Alves <pedro@codesourcery.com>
9913
9914 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9915 No longer handle NULL values.
9916
8af8e3bc
PA
99172011-02-14 Pedro Alves <pedro@codesourcery.com>
9918
9919 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9920 * value.c: Include "exceptions.h".
9921 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9922 generic error.
9923 * cp-abi.c: Include gdb_assert.h.
9924 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9925 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9926 errors.
9927 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9928 parameters. No longer returns -1 on error.
9929 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9930 `val' parameters.
9931 * cp-valprint.c: Include exceptions.h.
9932 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9933 the baseclass_offset. Handle unavailable base classes. Use
9934 val_print_invalid_address.
9935 * p-valprint.c: Include exceptions.h.
9936 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9937 when fetching the baseclass_offset. No longer expect
9938 baseclass_offset returning -1. Handle unavailable base classes.
9939 Use val_print_invalid_address.
9940 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9941 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9942 `embedded_offset' and `val' parameters. Adjust.
9943 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9944 parameter, and change its type to gdb_byte pointer. Add
9945 `embedded_offset' and `val' parameters. Adjust. No longer expect
9946 baseclass_offset returning -1.
9947 (value_dynamic_cast): Use value_contents_for_printing rather than
9948 value_contents. Adjust.
9949 (search_struct_field): No longer expect baseclass_offset returning
9950 -1.
9951 (search_struct_method): If reading memory from the target is
9952 necessary, wrap it in a new value to pass to baseclass_offset. No
9953 longer expect baseclass_offset returning -1.
9954 (find_method_list): No longer expect baseclass_offset returning
9955 -1. Use value_contents_for_printing rather than value_contents.
9956 * valprint.c (val_print_invalid_address): New function.
9957 * valprint.h (val_print_invalid_address): Declare.
9958 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9959 and `val' parameters. No longer expect baseclass_offset returning
9960 -1. Adjust.
9961 * gnu-v2-abi.c: Include "exceptions.h".
9962 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9963 parameters. Handle unavailable memory. Recurse through
9964 gnuv2_baseclass_offset directly, rather than through
9965 baseclass_offset. No longer returns -1 on not found, instead
9966 throw an error.
9967 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9968 `val' parameters. Adjust.
9969
1b28d0b3
PA
99702011-02-14 Pedro Alves <pedro@codesourcery.com>
9971
9972 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9973 almost but not quite adjacent.
9974
ec0a52e1
PA
99752011-02-14 Pedro Alves <pedro@codesourcery.com>
9976
9977 * value.h (value_entirely_available): Declare.
9978 * value.c (value_entirely_available): New function.
9979 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9980 real type if the pointer is unavailable.
9981
24e6bcee
PA
99822011-02-14 Pedro Alves <pedro@codesourcery.com>
9983
9984 * valops.c (value_repeat): Use read_value_memory instead of
9985 read_memory.
9986
39d37385
PA
99872011-02-14 Pedro Alves <pedro@codesourcery.com>
9988
9989 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9990 * value.c (value_contents_copy_raw, value_contents_copy): New
9991 functions.
9992 (value_primitive_field): Use value_contents_copy_raw instead of
9993 memcpy.
9994 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9995 memcpy.
9996 (value_array, value_slice): Ditto.
9997 * valarith.c (value_subscripted_rvalue): Use
9998 value_contents_copy_raw instead of memcpy.
9999
a3d34bf4
PA
100002011-02-14 Pedro Alves <pedro@codesourcery.com>
10001
10002 <unavailable> references.
10003
10004 * valops.c (get_value_at): Use value_from_contents_and_address,
10005 avoiding read_memory.
10006
9fc6d940
PA
100072011-02-14 Pedro Alves <pedro@codesourcery.com>
10008
10009 * c-valprint.c (c_val_print): Print a string with unavailable
10010 contents as an array.
10011
5467c6c8
PA
100122011-02-14 Pedro Alves <pedro@codesourcery.com>
10013
10014 * value.h (unpack_bits_as_long): Delete declaration.
10015 (unpack_value_bits_as_long): Declare.
10016 (unpack_value_field_as_long): Declare.
10017 (value_field_bitfield): Declare.
10018 * value.c (unpack_bits_as_long): Rename to...
10019 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10020 value parameters. Return the extracted result in a new output
10021 parameter. If the value contents are unavailable, return false,
10022 otherwise return true.
10023 (unpack_value_bits_as_long): New.
10024 (unpack_field_as_long): Rename to...
10025 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10026 Add embedded_offset and value parameters. Return the extracted
10027 result in a new output parameter. If the value contents are
10028 unavailable, return false, otherwise return true.
10029 (unpack_value_field_as_long): New.
10030 (unpack_field_as_long_1): New.
10031 (unpack_field_as_long): Reimplement as wrapper around
10032 unpack_value_field_as_long_1.
10033 (value_field_bitfield): New function.
10034 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10035 unpack_value_bits_as_long. Mark the value as unavailable, if it
10036 is unavailable.
10037 * jv-valprint.c (java_print_value_fields): Use
10038 value_field_bitfield.
10039 * p-valprint.c (pascal_object_print_value_fields): Use
10040 value_field_bitfield.
10041 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10042
3158c6ed
PA
100432011-02-14 Pedro Alves <pedro@codesourcery.com>
10044
10045 * value.c (get_internalvar_integer): Also return the int value of
10046 TYPE_CODE_INT INTERNALVAR_VALUE values.
10047 (set_internalvar): Don't special case TYPE_CODE_INT.
10048
9fbdca0d
PA
100492011-02-14 Pedro Alves <pedro@codesourcery.com>
10050
10051 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10052 INTERNALVAR_POINTER.
10053 <pointer>: Delete.
10054 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10055 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10056 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10057
c8c1c22f
PA
100582011-02-14 Pedro Alves <pedro@codesourcery.com>
10059
10060 * value.h (value_available_contents_eq): Declare.
10061 * value.c (find_first_range_overlap): New function.
10062 (value_available_contents_eq): New function.
10063 * valprint.c (val_print_array_elements): Use
10064 value_available_contents_eq.
10065 * ada-valprint.c (val_print_packed_array_elements): Use
10066 value_available_contents_eq.
10067 * jv-valprint.c (java_value_print): Use
10068 value_available_contents_eq.
10069
e6e4e701
PA
100702011-02-14 Pedro Alves <pedro@codesourcery.com>
10071
10072 * target.c (target_read_live_memory): New function.
10073 (memory_xfer_live_readonly_partial): New.
10074 (memory_xfer_partial): If reading from a traceframe, fallback to
10075 reading unavailable read-only memory from read-only regions of
10076 live target memory.
10077 * tracepoint.c (disconnect_tracing): Adjust.
10078 (set_current_traceframe): New, factored out from
10079 set_traceframe_number.
10080 (set_traceframe_number): Reimplement to only change the traceframe
10081 number on the GDB side.
10082 (do_restore_current_traceframe_cleanup): Adjust.
10083 (make_cleanup_restore_traceframe_number): New.
10084 (cur_traceframe_number): New global.
10085 (tfile_open): Set cur_traceframe_number to no traceframe.
10086 (set_tfile_traceframe): New function.
10087 (tfile_trace_find): If looking up a traceframe using any method
10088 other than by number, make sure the current tfile traceframe
10089 matches gdb's current traceframe. Update the current tfile
10090 traceframe if the lookup succeeded.
10091 (tfile_fetch_registers, tfile_xfer_partial)
10092 (tfile_get_trace_state_variable_value): Make sure the remote
10093 traceframe matches gdb's current traceframe.
10094 * remote.c (remote_traceframe_number): New global.
10095 (remote_open_1): Set it to -1.
10096 (set_remote_traceframe): New function.
10097 (remote_fetch_registers, remote_store_registers)
10098 (remote_xfer_memory, remote_xfer_partial)
10099 (remote_get_trace_state_variable_value): Make sure the remote
10100 traceframe matches gdb's current traceframe.
10101 (remote_trace_find): If looking up a traceframe using any method
10102 other than by number, make sure the current remote traceframe
10103 matches gdb's current traceframe. Update the current remote
10104 traceframe if the lookup succeeded.
10105 * infrun.c (fetch_inferior_event): Adjust.
10106 * tracepoint.h (set_current_traceframe): Declare.
10107 (get_traceframe_number, set_traceframe_number): Add describing
10108 comments.
10109
e6ca34fc
PA
101102011-02-14 Pedro Alves <pedro@codesourcery.com>
10111
10112 Mark pieces of values as unavailable if the corresponding memory
10113 is unavailable.
10114
10115 * valops.c: Include tracepoint.h.
10116 (value_fetch_lazy): Use read_value_memory.
10117 (read_value_memory): New.
10118 * value.h (read_value_memory): Declare.
10119 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10120 * exec.c (section_table_available_memory): New function.
10121 * exec.h (section_table_available_memory): Declare.
10122
2a7498d8
PA
101232011-02-14 Pedro Alves <pedro@codesourcery.com>
10124
10125 * Makefile.in (SFILES): Add memrange.c.
10126 (HFILES_NO_SRCDIR): Add memrange.h.
10127 (COMMON_OBS): Add memrange.o.
10128 * memrange.c: New file.
10129 * memrange.h: New file.
10130 * tracepoint.c: Include memrange.h.
10131 (struct mem_range): Delete.
10132 (mem_range_s): Delete.
10133 (traceframe_available_memory): New function.
10134 * tracepoint.h (traceframe_available_memory): Declare.
10135
b3b9301e
PA
101362011-02-14 Pedro Alves <pedro@codesourcery.com>
10137
10138 * target.h (struct traceframe_info): Forward declare.
10139 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10140 (struct target_ops) <to_traceframe_info>: New field.
10141 (target_traceframe_info): New.
10142 * target.c (update_current_target): Inherit and default
10143 to_traceframe_info.
10144 * remote.c (PACKET_qXfer_traceframe_info): New.
10145 (remote_protocol_features): Register qXfer:traceframe-info:read.
10146 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10147 (remote_traceframe_info): New.
10148 (init_remote_ops): Install it.
10149 (_initialize_remote): Install "set/show remote traceframe-info"
10150 commands.
10151 * tracepoint.h (parse_traceframe_info): Declare.
10152 * tracepoint.c (struct mem_range): New.
10153 (mem_range_s): New typedef.
10154 (struct traceframe_info): New.
10155 (traceframe_info): New global.
10156 (free_traceframe_info): New function.
10157 (clear_traceframe_info): New function.
10158 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10159 info.
10160 (build_traceframe_info): New function.
10161 (tfile_traceframe_info): New function.
10162 (init_tfile_ops): Install tfile_traceframe_info.
10163 (traceframe_info_start_memory, free_result): New functions.
10164 (memory_attributes, traceframe_info_elements): New globals.
10165 (parse_traceframe_info, get_traceframe_info): New functions.
10166 * features/traceframe-info.dtd: New file.
10167 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10168
4e07d55f
PA
101692011-02-14 Pedro Alves <pedro@codesourcery.com>
10170
10171 Base support for <unavailable> value contents.
10172
4e07d55f
PA
10173 * value.h (value_bytes_available): Declare.
10174 (mark_value_bytes_unavailable): Declare.
10175 * value.c (struct range): New struct.
10176 (range_s): New typedef.
10177 (ranges_overlap): New function.
10178 (range_lessthan): New function.
10179 (ranges_contain_p): New function.
10180 (struct value) <unavailable>: New field.
10181 (value_bytes_available): New function.
10182 (mark_value_bytes_unavailable): New function.
10183 (require_not_optimized_out): Constify parameter.
10184 (require_available): New function.
10185 (value_contents_all, value_contents): Require all bytes be
10186 available.
10187 (value_free): Free `unavailable'.
10188 (value_copy): Copy `unavailable'.
10189 * valprint.h (val_print_unavailable): Declare.
10190 * valprint.c (valprint_check_validity): Rename `offset' parameter
10191 to `embedded_offset'. If printing a scalar, check whether the
10192 value chunk is available.
10193 (val_print_unavailable): New.
10194 (val_print_scalar_formatted): Check whether the value is
10195 available.
10196 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10197 pretty-printing unavailable values.
10198
bc9a5551
JK
101992011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10202 * c-typeprint.c (c_type_print_args): Update the function comment. New
10203 variable param_type, initialize it. Remove const/volatile qualifiers
10204 for language_cplus and !show_artificial. Use param_type.
10205
93b55aa1
JK
102062011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10207
10208 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10209 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10210 * symtab.h (struct symtab) <next>: Comment extension.
10211
181d9476
YQ
102122011-02-12 Yao Qi <yao@codesourcery.com>
10213
10214 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10215
b708a5c7
JK
102162011-02-11 Yao Qi <yao@codesourcery.com>
10217
10218 * common/Makefile.in: Add copyright header.
10219
c5187ac6
PA
102202011-02-11 Pedro Alves <pedro@codesourcery.com>
10221
10222 * infrun.c (proceed): Move switching out and in of tfind mode from
10223 here ...
10224 (fetch_inferior_event): ... to here.
10225
4f3e6fb7
YQ
102262011-02-11 Yao Qi <yao@codesourcery.com>
10227
10228 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10229 libcommon.a.
10230 * configure.ac: Add common to sub dir.
10231 * configure: Regenerate.
10232
b708a5c7
JK
102332011-02-11 Yao Qi <yao@codesourcery.com>
10234
10235 Build libcommon.a.
10236
10237 * common/Makefile.in: New.
10238 * common/configure.ac: New.
10239 * common/aclocal.m4: New.
10240 * common/configure: Generate.
10241
2287cc7e
PA
102422011-02-10 Pedro Alves <pedro@codesourcery.com>
10243
10244 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10245 side of the parenthesis.
10246
10247 Merge from GCC:
10248 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10249 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10250
fd62cb89
MS
102512011-02-08 Michael Snyder <msnyder@vmware.com>
10252
10253 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10254
56d2815c
JK
102552011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10256
10257 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10258 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10259 psubd and paddd.
10260
4f7d61a8
JK
102612011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 PR 12361.
10264 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10265 phsubsw.
10266 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10267 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10268
54fcddd0
UW
102692011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10270
10271 * dwarf2read.c (read_subroutine_type): Set special calling
10272 convention flag for functions compiled by IBM XL C for OpenCL.
10273 * ppc-sysv-tdep.c: Include "dwarf2.h"
10274 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10275 calling convention.
10276 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10277 IBM OpenCL vector types calling convention.
10278 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10279 (ppc_sysv_abi_broken_return_value): Likewise.
10280 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10281 types calling convention.
10282 (ppc64_sysv_abi_return_value): Likewise.
10283 * spu-tdep.c: Include "dwarf2.h"
10284 (spu_return_value): Implement IBM OpenCL vector types calling
10285 convention.
10286
d6dafb7c
UW
102872011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10288
10289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10290 correct ABI for AltiVec vector arguments.
10291
32b72a42
PA
102922011-02-07 Pedro Alves <pedro@codesourcery.com>
10293
10294 * valprint.c (val_print): Extend comment.
10295 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10296 interface explanation to val_print.
10297 (ada_val_print_array): Adjust comment to current interface.
10298 (print_field_values): Adjust comment to current interface.
10299 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10300 explanation to val_print.
10301 * f-valprint.c (f_val_print): Ditto.
10302 * jv-valprint.c (java_val_print): Ditto.
10303 * m2-valprint.c (m2_val_print): Ditto.
10304 * p-valprint.c (pascal_val_print): Ditto.
10305
9998af43
TJB
103062011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10307
10308 * breakpoint.c (parse_breakpoint_sals): Fix description.
10309
505500db 103102011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10311 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10312
10313 * python/py-inferior.c (python_on_normal_stop): New function.
10314 (python_on_resume): New function.
10315 (python_inferior_exit): New function.
10316 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10317 inferior_exit observers.
10318 * python/py-evtregistry.c: New file.
10319 * python/py-threadevent.c : New file.
10320 * python/py-event.c: New file.
10321 * python/py-evts.c: New file.
10322 * python/py-continueevent.c: New file.
10323 * python/py-bpevent.c: New file.
10324 * python/py-signalevent.c: New file.
10325 * python/py-exetiedevent.c: New file.
10326 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10327 Move struct breakpoint_object from here...
10328 * python/python-internal.h: ... to here.
10329 * python/py-event.h: New file.
10330 * python/py-events.h: New file.
10331 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10332 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10333 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10334 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10335 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10336 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10337 Add build rules for all the above.
10338
9e0ac564
TT
103392011-02-04 Tom Tromey <tromey@redhat.com>
10340
10341 * dwarf2read.c (dwarf2_section_empty_p): New function.
10342 (dwarf2_read_section): Use dwarf2_section_empty_p.
10343 (dwarf2_section_size): New function.
10344 (dwarf2_get_section_info): Unconditionally read section.
10345 (dwarf2_read_index): Use dwarf2_section_empty_p.
10346 (partial_read_comp_unit_head): Use dwarf2_section_size.
10347 (dwarf2_symbol_mark_computed): Likewise.
10348
eee5b35e
DD
103492011-02-04 David Daney <ddaney@caviumnetworks.com>
10350
10351 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10352
385203ed
DD
103532011-02-04 David Daney <ddaney@caviumnetworks.com>
10354
10355 * mips-linux-tdep.c: Include xml-syscall.h.
10356 (mips_linux_get_syscall_number): New function.
10357 (mips_linux_init_abi): Add calls to
10358 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10359 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10360 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10361 * syscalls/mips-n32-linux.xml: New file.
10362 * syscalls/mips-n64-linux.xml: New file.
10363 * syscalls/mips-o32-linux.xml: New file.
10364
9277c30c
UW
103652011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10366
10367 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10368 Complain about inverted range entries.
10369 (dwarf2_record_block_ranges): Likewise.
10370
a3be7890
TJB
103712011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10372
10373 Fix some typos.
10374 * breakpoint.c (update_watchpoint): Fix name of the
10375 update_global_location_list function.
10376 (print_one_breakpoint): Fix typo.
10377 (_initialize_breakpoint): Remove extra space in hbreak help
10378 string.
10379 * breakpoint.h (struct bp_location) <length>: Fix field
10380 description.
10381
041274d8
PA
103822011-02-04 Pedro Alves <pedro@codesourcery.com>
10383
10384 * regcache.c (registers_changed_ptid): Don't explictly always
10385 clear `current_regcache'. Only clear current_thread_ptid and
10386 current_thread_arch when PTID matches. Only reinit the frame
10387 cache if PTID matches the current inferior_ptid. Move alloca(0)
10388 call to ...
10389 (registers_changed): ... here.
10390
c1c2ab58
UW
103912011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10392
10393 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10394 starts with __stack_chk_guard as stack guard symbol.
10395
9011945e
AB
103962011-02-03 Andrew Burgess <aburgess@broadcom.com>
10397
10398 * disasm.c (compare_lines): Handle the end of sequence markers
10399 within the line table to better support disassembling over
10400 compilation unit boundaries.
10401
e0634ccf
UW
104022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10403
10404 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10405 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10406 implementation even if no symbols are available.
10407 (thumb_analyze_prologue): Update call to skip_prologue_function.
10408 (arm_analyze_prologue): Likewise.
10409
0e9e9abd
UW
104102011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10411
10412 * arm-tdep.c: Include "observer.h".
10413 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10414 (arm_exidx_data_key): New static variable.
10415 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10416 (struct arm_exidx_data): Likewise.
10417 (arm_exidx_data_free): New function.
10418 (arm_compare_exidx_entries): Likewise.
10419 (arm_obj_section_from_vma): Likewise.
10420 (arm_exidx_new_objfile): Likewise.
10421 (arm_find_exidx_entry): Likewise.
10422 (arm_exidx_fill_cache): Likewise.
10423 (arm_exidx_unwind_sniffer): Likewise.
10424 (arm_exidx_unwind): New global variable.
10425 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10426 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10427 observer. Register arm_exidx_data_key as objfile data.
10428
2e9e421f
UW
104292011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10430
10431 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10432 due to accessing uninitialized variable. Fix indentation.
10433
580688f3
PA
104342011-02-02 Pedro Alves <pedro@codesourcery.com>
10435
10436 * c-valprint.c (c_value_print): When doing virtual base pointer
10437 adjustment, create a new value with adjusted contents rather than
10438 changing the contents of the value being printed (and getting it
10439 wrong).
10440
3d2c1d41
PA
104412011-02-02 Pedro Alves <pedro@codesourcery.com>
10442
10443 * xml-support.c (xml_find_attribute): New.
10444 (xinclude_start_include): Use it.
10445 * xml-support.h (xml_find_attribute): Declare.
10446 * memory-map.c (memory_map_start_memory)
10447 (memory_map_start_property): Use xml_find_attribute.
10448 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10449 xml_find_attribute.
10450 * remote.c (start_thread): Use xml_find_attribute.
10451 * solib-target.c (library_list_start_segment)
10452 (library_list_start_section, library_list_start_library)
10453 (library_list_start_list): Use xml_find_attribute.
10454 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10455 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10456 (tdesc_start_field): Use xml_find_attribute.
10457
0af3e2db
UW
104582011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10459
10460 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10461 (BUILD_OCL_VTYPES): Update.
10462
c1039e3c
JB
104632011-02-02 Joel Brobecker <brobecker@adacore.com>
10464
10465 * configure.ac: Work around non-GNU sed limitation when computing
10466 python version number.
10467 * configure: Regenerate.
10468
600ea1be
JK
104692011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10470
10471 Fix debug printing of TYPE_INSTANCE.
10472 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10473 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10474
56c12414
JK
104752011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10476
10477 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10478 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10479 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10480 * ada-operator.inc: Rename the file to ...
10481 * ada-operator.def: ... here, wrap all the entries by macro OP.
10482 * expprint.c (op_name_standard): Remove all the entries. Include
10483 "std-operator.def" instead.
10484 * expression.h (enum exp_opcode): Include "std-operator.def" and
10485 "ada-operator.def". Move all the entries ...
10486 * std-operator.def: ... here, wrap all the entries by macro OP.
10487
c52b559d
PP
104882011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10489
10490 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10491 * breakpoint.c (remove_jit_event_breakpoints): New function.
10492 * jit.c (jit_descriptor_addr): Delete.
10493 (registering_code): Delete.
10494 (clear_int): Delete.
10495 (jit_inferior_data): New variable.
10496 (struct jit_inferior_data): New type.
10497 (get_jit_inferior_data): New function.
10498 (jit_inferior_data_cleanup): New function.
10499 (jit_read_descriptor): Adjust.
10500 (jit_register_code): Adjust.
10501 (jit_breakpoint_re_set_internal): New function; move code here ...
10502 (jit_inferior_init): ... from here.
10503 (jit_breakpoint_re_set): Adjust.
10504 (jit_reset_inferior_data_and_breakpoints): New function.
10505 (jit_inferior_created_observer): Adjust.
10506 (jit_inferior_exit_hook): Adjust.
10507 (jit_executable_changed_observer): New function.
10508 (jit_event_handler): Adjust.
10509 (_initialize_jit): Adjust.
10510
e839132d
MS
105112011-01-31 Michael Snyder <msnyder@vmware.com>
10512
10513 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10514 line.
10515
47a80e90
TT
105162011-01-31 Tom Tromey <tromey@redhat.com>
10517
10518 PR python/12216:
10519 * python/python.c (execute_gdb_command): Call
10520 prevent_dont_repeat.
10521 * top.c (suppress_dont_repeat): New global.
10522 (dont_repeat): Use it.
10523 (prevent_dont_repeat): New function.
10524 * command.h (prevent_dont_repeat): Declare.
10525
45a43567
TT
105262011-01-31 Tom Tromey <tromey@redhat.com>
10527
10528 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10529 * python/py-breakpoint.c (bppy_set_silent): Use
10530 breakpoint_set_silent.
10531 (bppy_set_thread): Use breakpoint_set_thread.
10532 (bppy_set_task): Use breakpoint_set_task.
10533 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10534 (breakpoint_set_task): Declare.
10535 (make_breakpoint_silent): Remove.
10536 * breakpoint.c (breakpoint_set_silent): New function.
10537 (breakpoint_set_thread): Likewise.
10538 (breakpoint_set_task): Likewise.
10539 (make_breakpoint_silent): Remove.
10540
09d682a4
TT
105412011-01-31 Tom Tromey <tromey@redhat.com>
10542
10543 * breakpoint.h (user_breakpoint_p): Declare.
10544 * breakpoint.c (user_breakpoint_p): New function.
10545 (breakpoint_1): Use it.
10546 (save_breakpoints): Likewise.
10547
9c4ea6c5
JB
105482011-01-31 Joel Brobecker <brobecker@adacore.com>
10549
10550 * configure.ac: Add handling of Python distribution on Windows.
10551 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10552 sysconfig variables are not defined, then do not use them.
10553 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10554 instead. On Windows, return all paths using forward-slashes
10555 rather than backslashes.
10556
ac534cba
JB
105572011-01-31 Joel Brobecker <brobecker@adacore.com>
10558
10559 * configure.ac: Remove fallback behavior for building
10560 against Python. Remove tweaking of Python include path.
10561 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10562 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10563 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10564 Always restore CPPFLAGS and LIBS after linking test.
10565 * configure: Regenerated.
10566 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10567 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10568 * python/python-internal.h: Adjust includes of Python .h files.
10569
c2f0d045
JB
105702011-01-31 Joel Brobecker <brobecker@adacore.com>
10571
10572 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10573 in error message.
10574
6b0c4c1f
JB
105752011-01-31 Joel Brobecker <brobecker@adacore.com>
10576
10577 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10578 value test.
10579
672c9795
YQ
105802011-01-31 Yao Qi <yao@codesourcery.com>
10581
10582 * arm-linux-nat.c: Update calls to regcache_register_status
10583 instead of regcache_valid_p.
10584 * aix-thread.c: Likewise.
10585 * i386gnu-nat.c: Likewise.
10586
80b23b6a
JK
105872011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10588
10589 Fix crash.
10590 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10591 touching TYPE_FIELD_ARTIFICIAL.
10592
4cd712bd
RE
105932011-01-28 Richard Earnshaw <rearnsha@arm.com>
10594
10595 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10596 Committers.
10597
ffd5ec24
PA
105982011-01-28 Pedro Alves <pedro@codesourcery.com>
10599
10600 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10601 selected, don't try iterating over the traceframe's blocks.
10602 (tfile_has_stack): If there's no traceframe selected, then there's
10603 no stack.
10604 (tfile_has_registers): If there's no traceframe selected, then
10605 there's no registers.
10606
e8c9e0a1
PA
106072011-01-28 Pedro Alves <pedro@codesourcery.com>
10608
10609 * target.c (memory_xfer_partial): No need to restore shadows if we
10610 haven't read anything.
10611
de15c4ab
PA
106122011-01-28 Pedro Alves <pedro@codesourcery.com>
10613
10614 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10615 and val_print_scalar_formatted.
10616
9f41c731
PA
106172011-01-27 Pedro Alves <pedro@codesourcery.com>
10618
10619 * tracepoint.c (tfile_read): New.
10620 (tfile_open): Use it.
10621 (tfile_get_traceframe_address): Use it.
10622 (tfile_trace_find): Use it.
10623 (walk_blocks_callback_func): New typedef.
10624 (match_blocktype): New function.
10625 (traceframe_walk_blocks): New function.
10626 (traceframe_find_block_type): New function.
10627 (tfile_fetch_registers, tfile_xfer_partial)
10628 (tfile_get_trace_state_variable_value): Use
10629 traceframe_find_block_type and tfile_read.
10630
cdefc55d
KB
106312011-01-26 Kevin Buettner <kevinb@redhat.com>
10632
10633 * remote-mips.c: Add internationalization mark ups. Remove
10634 trailing \n from already marked up strings.
10635
a81766d8
TT
106362011-01-26 Tom Tromey <tromey@redhat.com>
10637
10638 * python/py-prettyprint.c (print_string_repr): Clear
10639 'addressprint' option when calling val_print_string.
10640 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10641 option when calling val_print_string.
10642
74aedc46
TT
106432011-01-26 Tom Tromey <tromey@redhat.com>
10644
10645 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10646 GDB_PY_LL_ARG.
10647 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10648 macros.
10649 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10650 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10651 (gdb_py_long_as_ulongest): New defines.
10652 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10653 (gdb_py_int_as_long): Declare.
10654 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10655 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10656 (valpy_long): Add comment.
10657 * python/py-utils.c (get_addr_from_python): Use
10658 gdb_py_long_as_ulongest. Handle overflow properly.
10659 (gdb_py_object_from_longest): New function.
10660 (gdb_py_object_from_ulongest): Likewise.
10661 (gdb_py_int_as_long): Likewise.
10662 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10663 * python/py-symtab.c (salpy_get_pc): Use
10664 gdb_py_long_from_ulongest.
10665 (salpy_get_line): Use PyInt_FromLong.
10666 * python/py-param.c (set_parameter_value): Use
10667 gdb_py_int_as_long.
10668 * python/py-lazy-string.c (stpy_get_address): Use
10669 gdb_py_long_from_ulongest.
10670 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10671 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10672 * python/py-breakpoint.c (bppy_set_thread): Use
10673 gdb_py_int_as_long.
10674 (bppy_set_task): Likewise.
10675 (bppy_set_ignore_count): Likewise.
10676 (bppy_set_hit_count): Likewise.
10677 * python/py-block.c (blpy_get_start): Use
10678 gdb_py_object_from_ulongest.
10679 (blpy_get_end): Likewise.
10680 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10681
e4f6d2ec
TJB
106822011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10683
10684 PR/symtab 11766:
10685 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10686 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10687 equality test for objfile, initialize addr_low if needed.
10688
b30aa278
PA
106892011-01-25 Pedro Alves <pedro@codesourcery.com>
10690
10691 * tui/tui-regs.c (tui_register_format): Remove dead code.
10692
ab2188aa
PA
106932011-01-25 Pedro Alves <pedro@codesourcery.com>
10694
10695 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10696 instead of print_scalar_formatted.
10697 (print_scalar_formatted): Don't handle 's' format strings here,
10698 and add an assertion that we never see such format here.
10699 * valprint.h (val_print_scalar_formatted): Declare.
10700 * valprint.c (val_print_scalar_formatted): New.
10701 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10702 instead of print_scalar_formatted.
10703 * jv-valprint.c (java_val_print): Ditto.
10704 * p-valprint.c (pascal_val_print): Ditto.
10705 * ada-valprint.c (ada_val_print_1): Ditto.
10706 * f-valprint.c (f_val_print): Ditto.
10707 * infcmd.c (registers_info): Ditto.
10708 * m2-valprint.c (m2_val_print): Ditto.
10709
66d61a4c
PA
107102011-01-25 Pedro Alves <pedro@codesourcery.com>
10711
10712 * m2-valprint.c (print_unbounded_array): Pass
10713 value_contents_for_printing rather than value_contents, to
10714 m2_print_array_contents. Also pass in the value.
10715
831adc1f
JK
107162011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10717
10718 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10719 (save_gdb_index_command): Switch to .gdb_index version 4.
10720
20622269
PA
107212011-01-25 Pedro Alves <pedro@codesourcery.com>
10722
10723 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10724 than frame_register, and always pass a valid value to val_print.
10725
585fdaa1
PA
107262011-01-25 Pedro Alves <pedro@codesourcery.com>
10727
10728 Centralize printing "<optimized out>".
10729
10730 * valprint.h (val_print_optimized_out): Declare.
10731 * cp-valprint.c (cp_print_value_fields): Use
10732 val_print_optimized_out.
10733 * jv-valprint.c (java_print_value_fields): Ditto.
10734 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10735 * printcmd.c (print_formatted): Ditto.
10736 * valprint.c (valprint_check_validity): Ditto.
10737 (value_check_printable): Ditto.
10738 (val_print_optimized_out): New.
10739
29ec5263
PA
107402011-01-25 Pedro Alves <pedro@codesourcery.com>
10741
10742 * infcmd.c (default_print_registers_info): Allocate values so to
10743 never pass a NULL value to val_print.
10744
de4127a3
PA
107452011-01-25 Pedro Alves <pedro@codesourcery.com>
10746
10747 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10748 boolean. Make sure to always pass a value that matches the
10749 contents buffer to callees. Preserve `address' for following
10750 iterations.
10751 * value.c (value_contents_for_printing_const): New.
10752 (value_address): Constify value argument.
10753 * value.h (value_contents_for_printing_const): Declare.
10754 (value_address): Constify value argument.
10755
ee99023e
PA
107562011-01-25 Pedro Alves <pedro@codesourcery.com>
10757
10758 * regcache.c (struct regcache_descr): Rename
10759 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10760 and sizeof_cooked_register_valid_p to
10761 sizeof_cooked_register_status.
10762 (init_regcache_descr): Adjust.
10763 (struct regcache): Rename register_valid_p field to
10764 register_status.
10765 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10766 (do_cooked_read): Adjust.
10767 (regcache_valid_p): Rename to ...
10768 (regcache_register_status): ... this. Adjust.
10769 (regcache_invalidate): Adjust.
10770 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10771 Adjust.
10772 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10773 as unavailable, not valid.
10774 (regcache_dump): Adjust.
10775 * regcache.h (enum register_status): New.
10776 (regcache_register_status): Declare.
10777 (regcache_invalidate): Delete declaration.
10778 * corelow.c (get_core_registers): Adjust.
10779 * tracepoint.c (tfile_fetch_registers): Adjust.
10780 * trad-frame.c (REG_VALUE): Rename to ...
10781 (TF_REG_VALUE): ... this.
10782 (REG_UNKNOWN): Rename to ...
10783 (TF_REG_UNKNOWN): ... this.
10784 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10785 * mi/mi-main.c (register_changed_p): Adjust.
10786
99e42fd8
PA
107872011-01-25 Pedro Alves <pedro@codesourcery.com>
10788
10789 * regcache.c (struct regcache_descr): Remove outdated comment.
10790 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10791 overallocate hack.
10792 (regcache_xmalloc): Rename to ...
10793 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10794 Allocate the regcache type accordingly.
10795 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10796 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10797 cooked registers, not raw.
10798 (regcache_dup_no_passthrough): Delete.
10799 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10800 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10801 mention obsolete write_register_bytes.
10802 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10803
f7605bc2
PA
108042011-01-25 Pedro Alves <pedro@codesourcery.com>
10805
10806 Stop remote_read_bytes from handling partial reads itself.
10807
10808 * remote-fileio.c: Include target.h.
10809 (remote_fileio_write_bytes): Delete.
10810 (remote_fileio_func_open, remote_fileio_func_write)
10811 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10812 target_read_memory.
10813 (remote_fileio_func_stat): Use target_read_memory and
10814 target_write_memory.
10815 (remote_fileio_func_gettimeofday): Use target_write_memory.
10816 (remote_fileio_func_system): Use target_read_memory.
10817 * remote.c (remote_write_bytes): Make it static.
10818 (remote_read_bytes): Don't handle partial reads here.
10819 * remote.h (remote_read_bytes): Delete declaration.
10820
efc0eabd
PA
108212011-01-25 Pedro Alves <pedro@codesourcery.com>
10822
10823 Simplify XML parsing a bit.
10824
10825 * xml-support.h (gdb_xml_parse_quick): Declare.
10826 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10827 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10828 parameter.
10829 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10830 gdb_xml_create_parser_and_cleanup_1.
10831 (gdb_xml_parse_quick): New.
10832 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10833 * osdata.c (osdata_parse): Ditto.
10834 * remote.c (remote_threads_info): Ditto.
10835 * solib-target.c (solib_target_parse_libraries): Ditto.
10836 * xml-syscall.c (syscall_parse_xml): Ditto.
10837 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10838
314d366a
KB
108392011-01-24 Kevin Buettner <kevinb@redhat.com>
10840
10841 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10842 with remote-mips.o added to gdb_target_obs.
10843 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10844
a491d753
PA
108452011-01-24 Pedro Alves <pedro@codesourcery.com>
10846
10847 * ada-valprint.c (val_print_packed_array_elements): Pass the
10848 correct struct value to val_print.
10849 (ada_val_print_1): Ditto.
10850
490f124f
PA
108512011-01-24 Pedro Alves <pedro@codesourcery.com>
10852
10853 Don't lose embedded_offset in printing routines throughout.
10854
10855 * valprint.h (val_print_array_elements): Change prototype.
10856 * valprint.c (val_print_array_elements): Add `embedded_offset'
10857 parameter, and adjust to pass it down to val_print, while passing
10858 `valaddr' or `address' unmodified. Take embedded_offset into
10859 account when checking repetitions.
10860 * c-valprint.c (c_val_print): Pass embedded_offset to
10861 val_print_array_elements instead of adjusting `valaddr' and
10862 `address'.
10863 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10864 embedded_offset to val_print_array_elements instead of adjusting
10865 `valaddr'.
10866 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10867 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10868 val_print_array_elements and pascal_object_print_value_fields
10869 instead of adjusting `valaddr'.
10870 (pascal_object_print_value_fields): Add `offset' parameter, and
10871 adjust to use it.
10872 (pascal_object_print_value): Add `offset' parameter, and adjust to
10873 use it.
10874 (pascal_object_print_static_field): Use
10875 value_contents_for_printing/value_embedded_offset, rather than
10876 value_contents.
10877 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10878 parameter, and adjust to use it. Use
10879 value_contents_for_printing/value_embedded_offset, rather than
10880 value_contents.
10881 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10882 (ada_val_print_array): Add `offset' parameter, and adjust to use
10883 it.
10884 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10885 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10886 Instead work with offsets. Use
10887 value_contents_for_printing/value_embedded_offset, rather than
10888 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10889 and use value_from_pointer to extract a target pointer, rather
10890 than value_from_longest.
10891 (print_variant_part): Add `offset' parameter. Replace
10892 `outer_valaddr' parameter by a new `outer_offset' parameter.
10893 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10894 (ada_value_print): Use
10895 value_contents_for_printing/value_embedded_offset, rather than
10896 value_contents.
10897 (print_record): Add `offset' parameter, and adjust to pass it
10898 down.
10899 (print_field_values): Add `offset' parameter. Replace
10900 `outer_valaddr' parameter by a new `outer_offset' parameter.
10901 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10902 Use value_contents_for_printing/value_embedded_offset, rather than
10903 value_contents.
10904 * d-valprint.c (dynamic_array_type): Use
10905 value_contents_for_printing/value_embedded_offset, rather than
10906 value_contents.
10907 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10908 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10909 (java_print_value_fields): Take `offset' into account. Don't
10910 re-adjust `valaddr'. Instead pass down adjusted offsets.
10911 (java_val_print): Take `embedded_offset' into account. Pass it to
10912 java_print_value_fields.
10913 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10914 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10915 down adjusted offsets.
10916 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10917 (f_val_print): Take `embedded_offset' into account.
10918
7bfc9434
JB
109192011-01-21 Joel Brobecker <brobecker@adacore.com>
10920
10921 * inflow.c: Include "gdbcmd.h".
10922 (interactive_mode): New static global, moved here from top.c.
10923 (show_interactive_mode): New function, moved here from top.c.
10924 use gdb_has_a_terminal instead of input_from_terminal_p to
10925 determine the current mode.
10926 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10927 setting.
10928 (_initialize_inflow): Add the "set/show interactive-mode"
10929 commands. Moved here from top.c, after having adjusted slightly
10930 the help text.
10931 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10932 to inflow.c.
10933 (input_from_terminal_p): Remove handling of "interactive-mode"
10934 setting, moved to infow.c.
10935 (init_main): Remove creation of the "set/show interactive-mode"
10936 commands, moved to inflow.c.
10937
44603653
JB
109382011-01-19 Joel Brobecker <brobecker@adacore.com>
10939
10940 * NEWS: Add entry for native ia64-hpux support.
10941
4694da01
TT
109422011-01-19 Tom Tromey <tromey@redhat.com>
10943
10944 PR mi/8618:
10945 * thread.c (free_thread): Free 'name'.
10946 (print_thread_info): Emit thread name. Change CLI output.
10947 (thread_name_command): New function.
10948 (do_captured_thread_select): Emit newline.
10949 (_initialize_thread): Register 'thread name' command.
10950 * target.h (struct target_ops) <to_thread_name>: New field.
10951 (target_thread_name): New macro.
10952 * target.c (update_current_target): Handle to_thread_name.
10953 * python/py-infthread.c (thpy_get_name): New function.
10954 (thpy_set_name): Likewise.
10955 (thread_object_getset): Add "name".
10956 * linux-nat.c (linux_nat_thread_name): New function.
10957 (linux_nat_add_target): Set to_thread_name.
10958 * gdbthread.h (struct thread_info) <name>: New field.
10959
10d44370
JB
109602011-01-18 Joel Brobecker <brobecker@adacore.com>
10961
10962 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10963 (ada_val_print_1): Likewise.
10964
e3acb115
JB
109652011-01-18 Joel Brobecker <brobecker@adacore.com>
10966
10967 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10968 upper limit address is not greater than the function end address
10969 when the upper limit could not be computed using the debugging
10970 info.
10971
dc92e161
TT
109722011-01-17 Tom Tromey <tromey@redhat.com>
10973
10974 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10975 get_regcomp_error.
10976 * utils.c: Include gdb_regex.h.
10977 (do_regfree_cleanup): New function.
10978 (make_regfree_cleanup): Likewise.
10979 (get_regcomp_error): Likewise.
10980 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10981
f55af66d
TT
109822011-01-17 Tom Tromey <tromey@redhat.com>
10983
10984 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10985 re_compile_fastmap.
10986
a5a44b53
PM
109872011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10988
10989 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10990 for internal variables.
10991 (last_was_structop): New static variable.
10992 (COMPLETE): New token.
10993 (field_exp): New rule to group all '.' suffix handling.
10994 Add mark_struct_expression calls when approriate to be able
10995 to correctly find fields for completion.
10996 (yylex): Adapt to handle field completion and set INTVAR when
10997 required.
10998
2c291032
YQ
109992011-01-14 Yao Qi <yao@codesourcery.com>
11000
11001 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11002 save_reggroup, restore_reggroup and all_reggroup.
11003
447b483c
JB
110042011-01-14 Joel Brobecker <brobecker@adacore.com>
11005
11006 * ada-valprint. (ada_printchar): Use the correct type length
11007 in call to ada_emit_char.
11008 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11009
7b64a93b
PM
110102011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11011
11012 * solib-som.h (hpux_major_release): Declare variable here.
11013 * solib-som.c: Remove <sys/utsname.h> header.
11014 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11015 (hpux_major_release): Make global, change default value to
11016 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11017 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11018 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11019 Add "solib-som.h" header.
11020 (set_hpux_major_release): New function.
11021 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11022
4e18c053
MF
110232011-01-14 Mike Frysinger <vapier@gentoo.org>
11024
11025 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11026
a9df6b22
JB
110272011-01-14 Joel Brobecker <brobecker@adacore.com>
11028
11029 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11030 new-line at end of warning message.
11031 (ia64_hpux_store_register): Remove trailing new-line at end of
11032 error message.
11033 * ia64-hpux-tdep.c: Rephrase comment.
11034 * solib-ia64-hpux.c (struct dld_info): Change type of field
11035 dld_flags from "long long" to ULONGEST.
11036
ecb956dd
PA
110372011-01-14 Pedro Alves <pedro@codesourcery.com>
11038
11039 * target.h (deprecated_child_ops): Delete declaration.
11040 * target.c (deprecated_child_ops): Delete definition.
11041
76adfcae
PA
110422011-01-14 Pedro Alves <pedro@codesourcery.com>
11043
11044 * Makefile.in (hpux-thread.o): Delete rule.
11045 * configure.ac: Don't check for HPUX DCE threads support.
11046 * configure, config.in: Regenerate.
11047 * hppa-hpux-nat.c (child_suppress_run): Delete.
11048 (hppa_hpux_child_can_run): Delete.
11049 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11050 * hpux-thread.c: Delete.
11051
042e866e
JB
110522011-01-13 Joel Brobecker <brobecker@adacore.com>
11053
11054 * hpux-thread.c (hpux_pid_to_str): Delete.
11055
4ffa5a33
JB
110562011-01-13 Joel Brobecker <brobecker@adacore.com>
11057
11058 * ada-valprint.c (ada_emit_char): Remove strange code.
11059 Check that c is <= UCHAR_MAX before passing it to isascii.
11060 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11061
de8fa76c
JB
110622011-01-13 Joel Brobecker <brobecker@adacore.com>
11063
11064 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11065 to the case where instream is stdin.
11066
c4de7027
JB
110672011-01-13 Joel Brobecker <brobecker@adacore.com>
11068
11069 * ia64-tdep.h (struct regcache): Forward declare.
11070 (struct ia64_infcall_ops): New struct type.
11071 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11072 and "infcall_ops".
11073 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11074 Renames ia64_find_global_pointer.
11075 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11076 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11077 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11078 methods.
11079 (ia64_infcall_ops): New static global constant.
11080 (ia64_gdbarch_init): Set tdep->infcall_ops.
11081 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11082 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11083 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11084 (ia64_hpux_dummy_code): New static global constant.
11085 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11086 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11087 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11088 New function.
11089 (ia64_hpux_infcall_ops): New static global constant.
11090 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11091 for inferior function calls to work properly on ia64-hpux.
11092
77ca787b
JB
110932011-01-13 Joel Brobecker <brobecker@adacore.com>
11094
11095 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11096 * ia64-tdep.h (struct frame_info): forward declaration.
11097 (struct gdbarch_tdep): Add field size_of_register_frame.
11098 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11099 to determine the size of the register frame.
11100 (ia64_size_of_register_frame): New function.
11101 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11102 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11103 (IA64_HPUX_UREG_REASON): New macro.
11104 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11105 New functions.
11106 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11107 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11108 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11109 objects.
11110
92c9a463
JB
111112011-01-13 Joel Brobecker <brobecker@adacore.com>
11112
11113 Add support for ia64-hpux.
11114 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11115 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11116
11117 * configure.host: Add handling for ia64-hpux hosts. Add associated
11118 floatformats.
11119 * configure.tgt: Add handling for ia64-hpux targets.
11120 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11121 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11122 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11123
f688d93f
JB
111242011-01-13 Joel Brobecker <brobecker@adacore.com>
11125
11126 [ttrace] Compute thread list immediately after attach.
11127 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11128 New subprogram.
11129 (inf_ttrace_attach): Use it.
11130
1b89e62f
JB
111312011-01-13 Joel Brobecker <brobecker@adacore.com>
11132
11133 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11134 if we could not determine the frame's function address. Instead,
11135 use the frame's PC, and then continue.
11136
3e5e6e2a
JB
111372011-01-13 Joel Brobecker <brobecker@adacore.com>
11138
11139 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11140 not already defined.
11141
825d6d8a
JB
111422011-01-13 Joel Brobecker <brobecker@adacore.com>
11143
11144 * ia64-tdep.c (ia64_struct_type_p): New function.
11145 (ia64_extract_return_value): Handle integral values that are
11146 less than 8 bytes long.
11147 (ia64_push_dummy_call): Likewise.
11148
7458e667
JB
111492011-01-13 Joel Brobecker <brobecker@adacore.com>
11150
11151 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11152 floatformat_ia64_ext.
11153 (floatformat_ia64_ext_big): New static const.
11154 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11155
1b05df00
TT
111562011-01-12 Tom Tromey <tromey@redhat.com>
11157
11158 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11159 messages.
11160 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11161 (mi_cmd_thread_list_ids): Likewise.
11162 (mi_cmd_data_list_changed_registers): Likewise.
11163 (mi_cmd_data_list_register_values): Likewise.
11164 (mi_cmd_data_write_register_values): Likewise.
11165 (mi_cmd_data_evaluate_expression): Likewise.
11166 (mi_cmd_data_read_memory): Likewise.
11167 (mi_cmd_data_read_memory_bytes): Likewise.
11168 (mi_cmd_data_write_memory): Likewise.
11169 (mi_cmd_enable_timings): Likewise.
11170 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11171 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11172 (mi_cmd_var_delete): Likewise.
11173 (mi_cmd_var_set_format): Likewise.
11174 (mi_cmd_var_show_format): Likewise.
11175 (mi_cmd_var_info_num_children): Likewise.
11176 (mi_cmd_var_list_children): Likewise.
11177 (mi_cmd_var_info_type): Likewise.
11178 (mi_cmd_var_info_expression): Likewise.
11179 (mi_cmd_var_show_attributes): Likewise.
11180 (mi_cmd_var_assign): Likewise.
11181 (mi_cmd_var_update): Likewise.
11182 (mi_cmd_enable_pretty_printing): Likewise.
11183 (mi_cmd_var_set_update_range): Likewise.
11184 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11185 messages.
11186 (mi_cmd_target_file_put): Likewise.
11187 (mi_cmd_target_file_delete): Likewise.
11188 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11189 messages.
11190 (mi_cmd_stack_info_depth): Likewise.
11191 (mi_cmd_stack_list_locals): Likewise.
11192 (mi_cmd_stack_list_args): Likewise.
11193 (mi_cmd_stack_select_frame): Likewise.
11194 (mi_cmd_stack_select_frame): Likewise.
11195 (mi_cmd_stack_info_frame): Likewise.
11196 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11197 messages.
11198 (mi_cmd_file_list_exec_source_files): Likewise.
11199 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11200 (mi_cmd_env_cd): Likewise.
11201 (mi_cmd_env_path): Likewise.
11202 (mi_cmd_env_dir): Likewise.
11203 (mi_cmd_inferior_tty_show): Likewise.
11204 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11205 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11206 (mi_cmd_break_watch): Likewise.
11207
ad422571
TJB
112082011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11209
11210 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11211 (ppc_linux_insert_hw_breakpoint): Likewise.
11212 (ppc_linux_remove_hw_breakpoint): Likewise.
11213 (ppc_linux_insert_watchpoint): Likewise.
11214
c2ff108b
JK
112152011-01-12 Andrew Burgess <aburgess@broadcom.com>
11216 Jan Kratochvil <jan.kratochvil@redhat.com>
11217
11218 PR fortran/11104 and DWARF unbound arrays detection.
11219 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11220 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11221 unspecified upper bound.
11222 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11223 variables array_size_array, tmp_type and offset_item. New variable
11224 array. Remove call to f77_get_upperbound. New variables array_type
11225 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11226 the final call to deprecated_set_value_type.
11227
41e8491f
JK
112282011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11229
11230 Make value allocations more lazy.
11231 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11232 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11233 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11234 instead of allocate_value and set_value_lazy.
11235 * findvar.c (value_of_register_lazy): Likewise.
11236 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11237 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11238 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11239 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11240 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11241 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11242 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11243 the end, remove set_value_lazy there.
11244 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11245 instead of allocate_value and set_value_lazy when possible.
11246 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11247 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11248 of allocate_value and set_value_lazy.
11249 (value_from_contents_and_address): Use allocate_value_lazy instead of
11250 allocate_value and set_value_lazy when possible.
11251
b716877b
AB
112522011-01-12 Andrew Burgess <aburgess@broadcom.com>
11253
11254 * disasm.c (dump_insns): Support dumping opcodes for MI.
11255 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11256 dumping of instruction opcodes.
11257
d5ae309f
JB
112582011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11259
11260 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11261 appropiately.
11262
98871305
TT
112632011-01-11 Tom Tromey <tromey@redhat.com>
11264
11265 * thread.c (do_captured_thread_select): Emit newline before
11266 printing frame.
11267
c378eb4e
MS
112682011-01-11 Michael Snyder <msnyder@vmware.com>
11269
11270 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11271 * score-tdep.c: Ditto.
11272 * score-tdep.h: Ditto.
11273 * ser-base.c: Ditto.
11274 * ser-go32.c: Ditto.
11275 * serial.c: Ditto.
11276 * serial.h: Ditto.
11277 * ser-mingw.c: Ditto.
11278 * ser-pipe.c: Ditto.
11279 * ser-tcp.c: Ditto.
11280 * ser-unix.c: Ditto.
11281 * sh64-tdep.c: Ditto.
11282 * shnbsd-nat.c: Ditto.
11283 * sh-tdep.c: Ditto.
11284 * sh-tdep.h: Ditto.
11285 * solib.c: Ditto.
11286 * solib-darwin.c: Ditto.
11287 * solib-frv.c: Ditto.
11288 * solib.h: Ditto.
11289 * solib-irix.c: Ditto.
11290 * solib-osf.c: Ditto.
11291 * solib-pa64.c: Ditto.
11292 * solib-som.c: Ditto.
11293 * solib-spu.c: Ditto.
11294 * solib-sunos.c: Ditto.
11295 * solib-svr4.c: Ditto.
11296 * solist.h: Ditto.
11297 * sol-thread.c: Ditto.
11298 * somread.c: Ditto.
11299 * source.c: Ditto.
11300 * source.h: Ditto.
11301 * sparc64-linux-tdep.c: Ditto.
11302 * sparc64-tdep.c: Ditto.
11303 * sparc-linux-nat.c: Ditto.
11304 * sparc-linux-tdep.c: Ditto.
11305 * sparc-sol2-nat.c: Ditto.
11306 * sparc-sol2-tdep.c: Ditto.
11307 * sparc-tdep.c: Ditto.
11308 * sparc-tdep.h: Ditto.
11309 * spu-tdep.c: Ditto.
11310 * stabsread.c: Ditto.
11311 * stabsread.h: Ditto.
11312 * stack.c: Ditto.
11313 * symfile.c: Ditto.
11314 * symfile.h: Ditto.
11315 * symmisc.c: Ditto.
11316 * symtab.c: Ditto.
11317 * symtab.h: Ditto.
11318 * target.c: Ditto.
11319 * target-descriptions.c: Ditto.
11320 * target-descriptions.h: Ditto.
11321 * target.h: Ditto.
11322 * target-memory.c: Ditto.
11323 * terminal.h: Ditto.
11324 * thread.c: Ditto.
11325 * top.c: Ditto.
11326 * tracepoint.c: Ditto.
11327 * tracepoint.h: Ditto.
11328 * trad-frame.h: Ditto.
11329 * typeprint.c: Ditto.
11330
581e13c1
MS
113312011-01-11 Michael Snyder <msnyder@vmware.com>
11332
11333 * ui-file.c: Comment cleanup, mostly periods and spaces.
11334 * ui-file.h: Ditto.
11335 * ui-out.c: Ditto.
11336 * ui-out.h: Ditto.
11337 * utils.c: Ditto.
11338 * v850-tdep.c: Ditto.
11339 * valarith.c: Ditto.
11340 * valops.c: Ditto.
11341 * valprint.c: Ditto.
11342 * valprint.h: Ditto.
11343 * value.c: Ditto.
11344 * value.h: Ditto.
11345 * varobj.c: Ditto.
11346 * varobj.h: Ditto.
11347 * vax-tdep.c: Ditto.
11348 * vec.c: Ditto.
11349 * vec.h: Ditto.
11350 * version.h: Ditto.
11351 * windows-nat.c: Ditto.
11352 * windows-tdep.c: Ditto.
11353 * xcoffread.c: Ditto.
11354 * xcoffsolib.c: Ditto.
11355 * xml-support.c: Ditto.
11356 * xstormy16-tdep.c: Ditto.
11357 * xtensa-tdep.c: Ditto.
11358 * xtensa-tdep.h: Ditto.
11359
90e4670f
TJB
113602011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11361
11362 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11363 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11364
e09342b5
TJB
113652011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11366 Thiago Jung Bauermann <bauerman@br.ibm.com>
11367
11368 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11369 * breakpoint.h
e09342b5
TJB
11370 (struct breakpoint_ops) <resources_needed>: New method.
11371 Initialize to NULL in all existing breakpoint_ops instances.
11372 (struct breakpoint) <exact>: New field.
11373 (target_exact_watchpoints): Declare external global.
11374 * breakpoint.c (target_exact_watchpoints): New global flag.
11375 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11376 b->enable_state to bp_enabled before calling
11377 hw_watchpoint_used_count.
11378 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11379 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11380 if available.
11381 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11382 if the watchpoint is exact.
11383 (resources_needed_watchpoint): New function.
11384 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11385 (watch_command_1): Set b->exact if the user asked for an exact
11386 watchpoint and one can be set.
11387 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11388 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11389 the user asks for an exact watchpoint and one can be set. Return
11390 number of needed debug registers to watch the expression.
11391 * gdbtypes.c (is_scalar_type): New function, based on
11392 valprint.c:scalar_type_p.
11393 (is_scalar_type_recursive): New function.
11394 * gdbtypes.h (is_scalar_type_recursive): Declare.
11395 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11396 handle regions when ranged watchpoints are available.
11397 (create_watchpoint_request): New function.
11398 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11399 create_watchpoint_request.
11400 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11401 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11402 `set powerpc' and `show powerpc' commands.
11403 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11404 Mention documentation comment in the target macro.
11405 (target_region_ok_for_hw_watchpoint): Document return value.
11406
9fa40276
TJB
114072011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11408
11409 * breakpoint.c (update_watchpoint): Decide on using a software or
11410 hardware watchpoint after the bp_locations are created.
11411
77b06cd7
TJB
114122010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11413
11414 Convert hardware watchpoints to use breakpoint_ops.
11415 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11416 <insert_location>: ... this. Return int instead of void.
11417 Accept pointer to struct bp_location instead of pointer to
11418 struct breakpoint. Adapt all implementations.
f2eb0bc8 11419 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11420 <remove_location>: ... this. Accept pointer to struct bp_location
11421 instead of pointer to struct breakpoint. Adapt all implementations.
11422 * breakpoint.c (insert_catchpoint): Delete function.
11423 (insert_bp_location): Call the watchpoint or catchpoint's
11424 breakpoint_ops.insert method.
11425 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11426 breakpoint_ops.remove method.
11427 (insert_watchpoint, remove_watchpoint): New functions.
11428 (watchpoint_breakpoint_ops): New structure.
11429 (watch_command_1): Initialize the OPS field.
11430 * inf-child.c (inf_child_insert_fork_catchpoint)
11431 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11432 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11433 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11434 Delete functions.
11435 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11436 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11437 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11438 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11439 * target.c (update_current_target): Change default implementation of
11440 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11441 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11442 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11443 to_set_syscall_catchpoint to return_one.
11444 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11445 (debug_to_insert_exec_catchpoint): Report return value.
11446 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11447 (to_insert_exec_catchpoint): Change declaration to return int instead
11448 of void.
11449
9b20d036
MS
114502011-01-11 Michael Snyder <msnyder@vmware.com>
11451
11452 * arm-tdep.c: Internationalization.
11453 * c-lang.c: Ditto.
11454 * charset.c: Ditto.
11455 * fork-child.c: Ditto.
11456 * nto-procfs.c: Ditto.
11457 * ppc-sysv-tdep.c: Ditto.
11458 * procfs.c: Ditto.
11459 * remote-mips.c: Ditto.
11460 * remote.c: Ditto.
11461 * rs6000-nat.c: Ditto.
11462 * rs6000-tdep.c: Ditto.
11463 * target.c: Ditto.
11464 * valops.c: Ditto.
11465 * value.c: Ditto.
11466 * xml-support.c: Ditto.
11467 * mi/mi-cmd-break.c: Ditto.
11468 * mi/mi-cmd-var.c: Ditto.
11469 * mi/mi-interp.c: Ditto.
11470 * mi/mi-main.c: Ditto.
11471
dae477fe
AB
114722011-01-11 Andrew Burgess <aburgess@broadcom.com>
11473
11474 * remote-sim.c (gdbsim_store_register): Update API to
11475 sim_store_register to check more error conditions.
11476
0df8b418
MS
114772011-01-10 Michael Snyder <msnyder@vmware.com>
11478
11479 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11480 * nto-tdep.c: Ditto.
11481 * nto-tdep.h: Ditto.
11482 * objc-exp.y: Ditto.
11483 * objc-lang.c: Ditto.
11484 * objfiles.c: Ditto.
11485 * objfiles.h: Ditto.
11486 * observer.c: Ditto.
11487 * opencl-lang.c: Ditto.
11488 * osabi.c: Ditto.
11489 * parse.c: Ditto.
11490 * parser-defs.h: Ditto.
11491 * p-exp.y: Ditto.
11492 * p-lang.c: Ditto.
11493 * posix-hdep.c: Ditto.
11494 * ppcbug-rom.c: Ditto.
11495 * ppc-linux-nat.c: Ditto.
11496 * ppc-linux-tdep.c: Ditto.
11497 * ppc-linux-tdep.h: Ditto.
11498 * ppcnbsd-tdep.c: Ditto.
11499 * ppcobsd-tdep.c: Ditto.
11500 * ppcobsd-tdep.h: Ditto.
11501 * ppc-sysv-tdep.c: Ditto.
11502 * ppc-tdep.h: Ditto.
11503 * printcmd.c: Ditto.
11504 * proc-abi.c: Ditto.
11505 * proc-flags.c: Ditto.
11506 * procfs.c: Ditto.
11507 * proc-utils.h: Ditto.
11508 * progspace.h: Ditto.
11509 * prologue-value.c: Ditto.
11510 * prologue-value.h: Ditto.
11511 * psympriv.h: Ditto.
11512 * psymtab.c: Ditto.
11513 * p-typeprint.c: Ditto.
11514 * p-valprint.c: Ditto.
11515 * ravenscar-sparc-thread.c: Ditto.
11516 * ravenscar-thread.c: Ditto.
11517 * ravenscar-thread.h: Ditto.
11518 * record.c: Ditto.
11519 * regcache.c: Ditto.
11520 * regcache.h: Ditto.
11521 * remote.c: Ditto.
11522 * remote-fileio.c: Ditto.
11523 * remote-fileio.h: Ditto.
11524 * remote.h: Ditto.
11525 * remote-m32r-sdi.c: Ditto.
11526 * remote-mips.c: Ditto.
11527 * remote-sim.c: Ditto.
11528 * rs6000-aix-tdep.c: Ditto.
11529 * rs6000-nat.c: Ditto.
11530 * rs6000-tdep.c: Ditto.
11531
0d7a18f7
MS
115322011-01-10 Michael Snyder <msnyder@vmware.com>
11533
11534 * charset.c (validate): Internationalization.
11535 * coffread.c (read_one_sym): Ditto.
11536 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11537 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11538 * inflow.c (new_tty): Ditto.
11539 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11540 * m32c-tdep.c (m32c_return_value): Ditto.
11541 * mep-tdep.c (mep_store_return_value): Ditto.
11542 * score-tdep.c (score7_fetch_insn): Ditto.
11543 * ser-mingw.c (pipe_windows_open): Ditto.
11544 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11545 * spu-tdep.c (spu_register_type): Ditto.
11546 * tracepoint.c (trace_find_command): Ditto.
11547 * valarith.c (value_pos): Ditto.
11548
9a153e0b
JB
115492011-01-10 Joel Brobecker <brobecker@adacore.com>
11550
11551 * ada-valprint.c (printstr): Minor comment reformatting.
11552
35ecd2d6
MS
115532011-01-08 Michael Snyder <msnyder@vmware.com>
11554
11555 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11556 markup.
11557
1777feb0
MS
115582011-01-08 Michael Snyder <msnyder@vmware.com>
11559
11560 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11561 * hppa-hpux-tdep.c: Ditto.
11562 * hppa-linux-nat.c: Ditto.
11563 * hppa-linux-tdep.c: Ditto.
11564 * hppanbsd-tdep.c: Ditto.
11565 * hppa-tdep.c: Ditto.
11566 * hppa-tdep.h: Ditto.
11567 * hpux-thread.c: Ditto.
11568 * i386-cygwin-tdep.c: Ditto.
11569 * i386-darwin-nat.c: Ditto.
11570 * i386gnu-nat.c: Ditto.
11571 * i386-linux-nat.c: Ditto.
11572 * i386-linux-tdep.c: Ditto.
11573 * i386-nat.c: Ditto.
11574 * i386-nat.h: Ditto.
11575 * i386nbsd-tdep.c: Ditto.
11576 * i386-sol2-nat.c: Ditto.
11577 * i386-stub.c: Ditto.
11578 * i386-tdep.c: Ditto.
11579 * i386-tdep.h: Ditto.
11580 * i387-tdep.c: Ditto.
11581 * ia64-linux-nat.c: Ditto.
11582 * ia64-linux-tdep.c: Ditto.
11583 * ia64-tdep.c: Ditto.
11584 * infcall.c: Ditto.
11585 * infcall.h: Ditto.
11586 * infcmd.c: Ditto.
11587 * inferior.c: Ditto.
11588 * inferior.h: Ditto.
11589 * infloop.c: Ditto.
11590 * inflow.c: Ditto.
11591 * infrun.c: Ditto.
11592 * interps.c: Ditto.
11593 * interps.h: Ditto.
11594 * iq2000-tdep.c: Ditto.
11595 * irix5-nat.c: Ditto.
11596 * jit.c: Ditto.
11597 * jit.h: Ditto.
11598 * jv-exp.y: Ditto.
11599 * jv-lang.c: Ditto.
11600 * jv-lang.h: Ditto.
11601 * jv-typeprint.c: Ditto.
11602 * jv-valprint.c: Ditto.
11603 * language.c: Ditto.
11604 * language.h: Ditto.
11605 * linespec.c: Ditto.
11606 * linux-fork.c: Ditto.
11607 * linux-nat.c: Ditto.
11608 * linux-thread-db.c: Ditto.
11609 * lm32-tdep.c: Ditto.
11610
025bb325
MS
116112011-01-08 Michael Snyder <msnyder@vmware.com>
11612
11613 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11614 * m2-lang.c: Ditto.
11615 * m2-typeprint.c: Ditto.
11616 * m2-valprint.c: Ditto.
11617 * m32c-tdep.c: Ditto.
11618 * m32r-linux-nat.c: Ditto.
11619 * m32r-rom.c: Ditto.
11620 * m32r-tdep.c: Ditto.
11621 * m32r-tdep.h: Ditto.
11622 * m68hc11-tdep.c: Ditto.
11623 * m58klinux-nat.c: Ditto.
11624 * m68k-tdep.c: Ditto.
11625 * m88k-tdep.c: Ditto.
11626 * m88k-tdep.h: Ditto.
11627 * machoread.c: Ditto.
11628 * macrocmd.c: Ditto.
11629 * macroexp.c: Ditto.
11630 * macrotab.c: Ditto.
11631 * main.c: Ditto.
11632 * maint.c: Ditto.
11633 * mdebugread.c: Ditto.
11634 * mdebugread.h: Ditto.
11635 * memattr.c: Ditto.
11636 * memattr.h: Ditto.
11637 * memory-map.h: Ditto.
11638 * mep-tdep.c: Ditto.
11639 * microblaze-rom.c: Ditto.
11640 * microblaze-tdep.c: Ditto.
11641 * minsyms.c: Ditto.
11642 * mips-irix-tdep.c: Ditto.
11643 * mips-linux-nat.c: Ditto.
11644 * mips-linux-tdep.c: Ditto.
11645 * mips-linux-tdep.h: Ditto.
11646 * mipsnbsd-nat.c: Ditto.
11647 * mipsnbsd-tdep.c: Ditto.
11648 * mipsread.c: Ditto.
11649 * mips-tdep.c: Ditto.
11650 * mips-tdep.h: Ditto.
11651 * mn10300-linux-tdep.c: Ditto.
11652 * mn10300-tdep.c: Ditto.
11653 * mn10300-tdep.h: Ditto.
11654 * monitor.c: Ditto.
11655 * monitor.h: Ditto.
11656 * moxie-tdep.c: Ditto.
11657 * moxie-tdep.h: Ditto.
11658 * mt-tdep.c: Ditto.
11659
1642781b
MF
116602011-01-08 Mike Frysinger <vapier@gentoo.org>
11661
11662 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11663
394b0adb
JB
116642011-01-08 Robert Millan <rmh@gnu.org>
11665
11666 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11667
b670013c
MS
116682011-01-07 Michael Snyder <msnyder@vmware.com>
11669
11670 * charset.c (_initialize_charset): Fix typo in string.
11671
a743e542
MS
116722011-01-07 Michael Snyder <msnyder@vmware.com>
11673
11674 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11675 for i18n.
f2eb0bc8 11676 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11677 Split line so that operator goes to beginning of line.
11678 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11679 assignment out of if statement.
11680
0963b4bd
MS
116812011-01-07 Michael Snyder <msnyder@vmware.com>
11682
11683 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11684 * ada-lang.h: Ditto.
11685 * ada-tasks.c: Ditto.
11686 * ada-valprint.c: Ditto.
11687 * aix-threads.c: Ditto.
11688 * alpha-linux-nat.c: Ditto.
11689 * alpha-linux-tdep.c: Ditto.
11690 * alpha-mdebug-tdep.c: Ditto.
11691 * alpha-nat.c: Ditto.
11692 * alpha-osf1-tdep.c: Ditto.
11693 * alpha-tdep.c: Ditto.
11694 * alphabsd-nat.c: Ditto.
11695 * alphabsd-tdep.c: Ditto.
11696 * amd64-darwin-tdep.c: Ditto.
11697 * amd64-linux-nat.c: Ditto.
11698 * amd64-linux-tdep.c: Ditto.
11699 * amd64-sol2-tdep.c: Ditto.
11700 * amd64-tdep.c: Ditto.
11701 * amd64-fbsd-tdep.c: Ditto.
11702 * amd64-nbsd-tdep.c: Ditto.
11703 * amd64-obsd-tdep.c: Ditto.
11704 * amd64-linux-nat.c: Ditto.
11705 * amd64-linux-tdep.c: Ditto.
11706 * arm-tdep.c: Ditto.
11707 * arm-tdep.h: Ditto.
11708 * armnbsd-nat.c: Ditto.
11709 * avr-tdep.c: Ditto.
11710 * bfin-tdep.c: Ditto.
11711 * bsd-kvm.c: Ditto.
11712 * c-typeprintc: Ditto.
11713 * c-valprint.c: Ditto.
11714 * coff-pe-read.h: Ditto.
11715 * coffreead.c: Ditto.
11716 * cris-tdep.c: Ditto.
11717 * d-lang.c: Ditto.
11718 * darwin-nat-info.c: Ditto.
11719 * darwin-nat.c: Ditto.
11720 * dbug-rom.c: Ditto.
11721 * dbxread.c: Ditto.
11722 * dcache.c: Ditto.
11723 * dcache.h: Ditto.
11724 * dec-thread.c: Ditto.
11725 * defs.h: Ditto.
11726 * demangle.c: Ditto.
11727 * dicos-tdep.c: Ditto.
11728 * dictionary.c: Ditto.
11729 * dictionary.h: Ditto.
11730 * dink32-rom.c: Ditto.
11731 * disasm.c: Ditto.
11732 * doublest.c: Ditto.
11733 * dsrec.c: Ditto.
11734 * dummy-frame.c: Ditto.
11735 * dwarf2-frame.c: Ditto.
11736 * dwarf2expr.c: Ditto.
11737 * dwarf2loc.c: Ditto.
11738 * dwarf2read.c: Ditto.
11739 * elfread.c: Ditto.
11740 * environ.c: Ditto.
11741 * eval.c: Ditto.
11742 * event-top.h: Ditto.
11743 * exceptions.c: Ditto.
11744 * exceptions.h: Ditto.
11745 * exec.c: Ditto.
11746 * expprint.c: Ditto.
11747 * expression.h: Ditto.
11748 * f-exp.y: Ditto.
11749 * f-lang.c: Ditto.
11750 * f-lang.h: Ditto.
11751 * f-typeprint.c: Ditto.
11752 * f-valprint.c: Ditto.
11753 * fbsd-nat.c: Ditto.
11754 * findvar.c: Ditto.
11755 * fork-child.c: Ditto.
11756 * frame.c: Ditto.
11757 * frame.h: Ditto.
11758 * frv-linux-tdep.c: Ditto.
11759 * frv-tdep.c: Ditto.
11760 * gcore.c: Ditto.
11761 * gdb-stabs.h: Ditto.
11762 * gdb_assert.h: Ditto.
11763 * gdb_string.h: Ditto.
11764 * gdb_thread_db.h: Ditto.
11765 * gdb_wait.h: Ditto.
11766 * gdbarch.sh: Ditto.
11767 * gdbcore.h: Ditto.
11768 * gdbthread.h: Ditto.
11769 * gdbtypes.c: Ditto.
11770 * gdbtypes.h: Ditto.
11771 * gnu-nat.c: Ditto.
11772 * gnu-nat.h: Ditto.
11773 * gnu-v2-abi.c: Ditto.
11774 * gnu-v3-abi.c: Ditto.
11775 * go32-nat.c: Ditto.
11776 * gdbarch.c: Regenerate.
11777 * gdbarch.h: Regenerate.
11778
ac74f770
MS
117792011-01-07 Michael Snyder <msnyder@vmware.com>
11780
11781 * ax-gdb.c: Adjust some long output strings.
11782 * breakpoint.c: Ditto.
11783 * charset.c: Ditto.
11784 * cp-abi.c: Ditto.
11785 * infcall.c: Ditto.
11786 * infrun.c: Ditto.
11787 * linux-nat.c: Ditto.
11788 * solib-pa64.c: Ditto.
11789 * solib-som.c: Ditto.
11790
d8e22779
TT
117912011-01-06 Tom Tromey <tromey@redhat.com>
11792
11793 PR python/12367:
11794 * NEWS: Add item.
11795 * python/python.c (GdbMethods): Add "newest_frame" method.
11796 * python/python-internal.h (gdbpy_newest_frame): Declare.
11797 * python/py-frame.c (gdbpy_newest_frame): New function.
11798
a255712f
PP
117992010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11800
11801 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11802 * jit.c (jit_debug): New variable.
11803 (show_jit_debug): New function.
11804 (struct target_buffer): Use ULONGEST.
11805 (bfd_open_from_target_memory): Likewise.
11806 (jit_register_code, jit_inferior_init): Add debug output.
11807 (_initialize_jit): Register "debug jit" command.
11808
ccfc3d6e
TT
118092011-01-06 Tom Tromey <tromey@redhat.com>
11810
11811 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11812 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11813 and ARCH_FRAME.
11814
57126e4a
TT
118152011-01-06 Tom Tromey <tromey@redhat.com>
11816
11817 * python/py-frame.c (frapy_block): Use get_frame_block.
11818
16dfc9ce
JB
118192011-01-06 Joel Brobecker <brobecker@adacore.com>
11820
11821 Do not stop on SIGPRIO signals by default
11822 * infrun.c (_initialize_infrun): Unset signal_stop and
11823 signal_print for TARGET_SIGNAL_PRIO.
11824
b1ce2347
JB
118252011-01-06 Joel Brobecker <brobecker@adacore.com>
11826
11827 * ada-tasks.c: Fix style violation in comment.
11828
8f7e195f
JB
118292011-01-06 Joel Brobecker <brobecker@adacore.com>
11830
11831 * linespec.c (decode_compound, find_method): Remove trailing \n
11832 at end of error string.
11833 * solib-irix.c (irix_current_sos): Likewise.
11834 * varobj.c (uninstall_variable): Likewise.
11835
e9bdf92c
JB
118362011-01-06 Joel Brobecker <brobecker@adacore.com>
11837
11838 * copyright.py: New script.
11839 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11840 Launch emacs without exec'ing. Call copyright.py afterwards.
11841
3e43a32a
MS
118422011-01-05 Michael Snyder <msnyder@vmware.com>
11843
11844 * addrmap.c: Shorten lines of >= 80 columns.
11845 * arch-utils.c: Ditto.
11846 * arch-utils.h: Ditto.
11847 * ax-gdb.c: Ditto.
11848 * ax-general.c: Ditto.
11849 * bcache.c: Ditto.
11850 * blockframe.c: Ditto.
11851 * breakpoint.c: Ditto.
11852 * buildsym.c: Ditto.
11853 * c-lang.c: Ditto.
11854 * c-typeprint.c: Ditto.
11855 * charset.c: Ditto.
11856 * coffread.c: Ditto.
11857 * command.h: Ditto.
11858 * corelow.c: Ditto.
11859 * cp-abi.c: Ditto.
11860 * cp-namespace.c: Ditto.
11861 * cp-support.c: Ditto.
11862 * dbug-rom.c: Ditto.
11863 * dbxread.c: Ditto.
11864 * defs.h: Ditto.
11865 * dfp.c: Ditto.
11866 * dfp.h: Ditto.
11867 * dictionary.c: Ditto.
11868 * disasm.c: Ditto.
11869 * doublest.c: Ditto.
11870 * dwarf2-frame.c: Ditto.
11871 * dwarf2expr.c: Ditto.
11872 * dwarf2loc.c: Ditto.
11873 * dwarf2read.c: Ditto.
11874 * elfread.c: Ditto.
11875 * eval.c: Ditto.
11876 * event-loop.c: Ditto.
11877 * event-loop.h: Ditto.
11878 * exceptions.h: Ditto.
11879 * exec.c: Ditto.
11880 * expprint.c: Ditto.
11881 * expression.h: Ditto.
11882 * f-lang.c: Ditto.
11883 * f-valprint.c: Ditto.
11884 * findcmd.c: Ditto.
11885 * frame-base.c: Ditto.
11886 * frame-unwind.c: Ditto.
11887 * frame-unwind.h: Ditto.
11888 * frame.c: Ditto.
11889 * frame.h: Ditto.
11890 * gcore.c: Ditto.
11891 * gdb-stabs.h: Ditto.
11892 * gdb_assert.h: Ditto.
11893 * gdb_dirent.h: Ditto.
11894 * gdb_obstack.h: Ditto.
11895 * gdbcore.h: Ditto.
11896 * gdbtypes.c: Ditto.
11897 * gdbtypes.h: Ditto.
11898 * inf-ttrace.c: Ditto.
11899 * infcall.c: Ditto.
11900 * infcmd.c: Ditto.
11901 * inflow.c: Ditto.
11902 * infrun.c: Ditto.
11903 * inline-frame.h: Ditto.
11904 * language.c: Ditto.
11905 * language.h: Ditto.
11906 * libunwind-frame.c: Ditto.
11907 * libunwind-frame.h: Ditto.
11908 * linespec.c: Ditto.
11909 * linux-nat.c: Ditto.
11910 * linux-nat.h: Ditto.
11911 * linux-thread-db.c: Ditto.
11912 * machoread.c: Ditto.
11913 * macroexp.c: Ditto.
11914 * macrotab.c: Ditto.
11915 * main.c: Ditto.
11916 * maint.c: Ditto.
11917 * mdebugread.c: Ditto.
11918 * memattr.c: Ditto.
11919 * minsyms.c: Ditto.
11920 * monitor.c: Ditto.
11921 * monitor.h: Ditto.
11922 * objfiles.c: Ditto.
11923 * objfiles.h: Ditto.
11924 * osabi.c: Ditto.
11925 * p-typeprint.c: Ditto.
11926 * p-valprint.c: Ditto.
11927 * parse.c: Ditto.
11928 * printcmd.c: Ditto.
11929 * proc-events.c: Ditto.
11930 * procfs.c: Ditto.
11931 * progspace.c: Ditto.
11932 * progspace.h: Ditto.
11933 * psympriv.h: Ditto.
11934 * psymtab.c: Ditto.
11935 * record.c: Ditto.
11936 * regcache.c: Ditto.
11937 * regcache.h: Ditto.
11938 * remote-fileio.c: Ditto.
11939 * remote.c: Ditto.
11940 * ser-mingw.c: Ditto.
11941 * ser-tcp.c: Ditto.
11942 * ser-unix.c: Ditto.
11943 * serial.c: Ditto.
11944 * serial.h: Ditto.
11945 * solib-frv.c: Ditto.
11946 * solib-irix.c: Ditto.
11947 * solib-osf.c: Ditto.
11948 * solib-pa64.c: Ditto.
11949 * solib-som.c: Ditto.
11950 * solib-sunos.c: Ditto.
11951 * solib-svr4.c: Ditto.
11952 * solib-target.c: Ditto.
11953 * solib.c: Ditto.
11954 * somread.c: Ditto.
11955 * source.c: Ditto.
11956 * stabsread.c: Ditto.
11957 * stabsread.c: Ditto.
11958 * stack.c: Ditto.
11959 * stack.h: Ditto.
11960 * symfile-mem.c: Ditto.
11961 * symfile.c: Ditto.
11962 * symfile.h: Ditto.
11963 * symmisc.c: Ditto.
11964 * symtab.c: Ditto.
11965 * symtab.h: Ditto.
11966 * target-descriptions.c: Ditto.
11967 * target-memory.c: Ditto.
11968 * target.c: Ditto.
11969 * target.h: Ditto.
11970 * terminal.h: Ditto.
11971 * thread.c: Ditto.
11972 * top.c: Ditto.
11973 * tracepoint.c: Ditto.
11974 * tracepoint.h: Ditto.
11975 * ui-file.c: Ditto.
11976 * ui-file.h: Ditto.
11977 * ui-out.h: Ditto.
11978 * user-regs.c: Ditto.
11979 * user-regs.h: Ditto.
11980 * utils.c: Ditto.
11981 * valarith.c: Ditto.
11982 * valops.c: Ditto.
11983 * valprint.c: Ditto.
11984 * valprint.h: Ditto.
11985 * value.c: Ditto.
11986 * varobj.c: Ditto.
11987 * varobj.h: Ditto.
11988 * vec.h: Ditto.
11989 * xcoffread.c: Ditto.
11990 * xcoffsolib.c: Ditto.
11991 * xcoffsolib.h: Ditto.
11992 * xml-syscall.c: Ditto.
11993 * xml-tdesc.c: Ditto.
11994
9a2b4c1b
MS
119952011-01-05 Michael Snyder <msnyder@vmware.com>
11996
11997 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11998 * cli/cli-decode.c: Ditto.
11999 * cli/cli-dump.c: Ditto.
12000 * cli/cli-logging.c: Ditto.
12001 * cli/cli-script.c: Ditto.
12002 * cli/cli-setshow.c: Ditto.
12003 * common/signals.c: Ditto.
12004 * mi/mi-cmd-break.c: Ditto.
12005 * mi/mi-cmd-disas.c: Ditto.
12006 * mi/mi-cmd-stack.c: Ditto.
12007 * mi/mi-cmd-var.c: Ditto.
12008 * mi/mi-cmds.c: Ditto.
12009 * mi/mi-common.h: Ditto.
12010 * mi/mi-console.c: Ditto.
12011 * mi/mi-interp.c: Ditto.
12012 * mi/mi-main.c: Ditto.
12013 * osf-share/cma_attr.c: Ditto.
12014 * osf-share/cma_deb_core.h: Ditto.
12015 * osf-share/cma_debug_client.h: Ditto.
12016 * osf-share/cma_handle.h: Ditto.
12017 * osf-share/cma_mutex.h: Ditto.
12018 * osf-share/cma_stack_int.h: Ditto.
12019 * osf-share/cma_tcb_defs.h: Ditto.
12020 * python/py-auto-load.c: Ditto.
12021 * python/py-breakpoint.c: Ditto.
12022 * python/py-cmd.c: Ditto.
12023 * python/py-frame.c: Ditto.
12024 * python/py-objfile.c: Ditto.
12025 * python/py-param.c: Ditto.
12026 * python/py-progspace.c: Ditto.
12027 * python/py-symbol.c: Ditto.
12028 * python/py-value.c: Ditto.
12029 * python/python-internal.h: Ditto.
12030 * python/python.c: Ditto.
12031 * tui/tui-data.c: Ditto.
12032 * tui/tui-disasm.c: Ditto.
12033 * tui/tui-hooks.c: Ditto.
12034 * tui/tui-io.c: Ditto.
12035 * tui/tui-layout.c: Ditto.
12036 * tui/tui-regs.c: Ditto.
12037 * tui/tui-source.c: Ditto.
12038 * tui/tui-stack.c: Ditto.
12039 * tui/tui-win.c: Ditto.
12040 * tui/tui-windata.c: Ditto.
12041 * tui/tui-winsource.c: Ditto.
12042
44944448
JB
120432011-01-05 Joel Brobecker <brobecker@adacore.com>
12044
12045 * configure.ac, gdb.1: Copyright year update.
12046
ebedcab5
JK
120472011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12048
12049 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12050 this_pc_in_block, morestack_msym and morestack_name. Check for
12051 "__morestack" minimal symbol there.
12052
e5cc9f32
JB
120532011-01-03 Joel Brobecker <brobecker@adacore.com>
12054
12055 * symfile.c (find_sym_fns): Add call to dont_repeat.
12056
7b6bb8da
JB
120572011-01-01 Joel Brobecker <brobecker@adacore.com>
12058
12059 Copyright year update in most files (performed by copyright.sh).
12060
71ce852c
JB
120612011-01-01 Joel Brobecker <brobecker@adacore.com>
12062
12063 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12064
c3c1ebe8 12065For older changes see ChangeLog-2010.
c906108c
SS
12066\f
12067Local Variables:
12068mode: change-log
12069left-margin: 8
12070fill-column: 74
12071version-control: never
57da7796 12072coding: utf-8
c906108c 12073End:
This page took 1.852936 seconds and 4 git commands to generate.