* bfd-target.c (target_bfd_reopen): Rename `bfd' to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ad13d8df
AS
12011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
4 `abfd'(-Wshadow).
5
917793af
AS
62011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
7
8 * annotate.c (annotate_array_section_begin): Rename `index' to
9 `idx'(-Wshadow).
10
d48ebb5b
AS
112011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
12
13 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
14 `idx'(-Wshadow).
15
9ed936ec
AS
162011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
17
18 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
19 `syscall' to `syscall_number'(-Wshadow).
20
a35ddb44
AS
212011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
22
23 * ada-lang.c (remove_extra_symbols): Rename `remove' to
24 `remove_p'(-Wshadow).
25
e5e61bd7
AS
262011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
27
28 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
29 `ren_sym'(-Wshadow).
30
d200ab1e
DE
312011-12-10 Doug Evans <dje@google.com>
32
b0df02fd
DE
33 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
34 debug_types_section. All uses updated.
35 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
36 to is_debug_types_section.
37
d200ab1e
DE
38 * python/py-auto-load.c (source_section_scripts): Call xfree
39 instead of free.
40
4511b1ba
YQ
412011-12-10 Hui Zhu <teawater@gmail.com>
42 Yao Qi <yao@codesourcery.com>
43
44 * tracepoint.c (start_tracing): Clear `inserted' flag.
45
df5a4bd3
HZ
462011-12-10 Hui Zhu <teawater@gmail.com>
47
48 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
49
1afeeb75
AS
502011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
51
52 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
53 `bpoint'(-Wshadow).
54
80e1d417
AS
552011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
56
57 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
58 `marker' variables to `sal2' and `tpmarker' respectively
59 (-Wshadow).
60
04ca3c22
AP
612011-12-09 Andrew Pinski <apinski@cavium.com>
62
63 * linespec.c (hash_address_entry): Use iterative_hash_object on each
64 field rather than the struct itself.
65
8a2c437b
TT
662011-12-09 Tom Tromey <tromey@redhat.com>
67
68 * breakpoint.c (compare_breakpoints): New function.
69 (clear_command): Remove duplicate breakpoints. Properly clean
70 up.
71
280711e7
MR
722011-12-08 Maciej W. Rozycki <macro@mips.com>
73 Maciej W. Rozycki <macro@codesourcery.com>
74
75 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
76 address chunks retrieved from decoded lui/addiu pairs.
77
4c2051c6
MR
782011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
79
80 * mips-tdep.c (extended_offset): Correct calculation.
81 (unpack_mips16): Correct bitfield positions used for extraction
82 of the immediate argument; fix sign-extension of same.
83 (extended_mips16_next_pc): Correct B instruction's offset
84 calculation. Correct register decoding of the BEQZ and BNEZ
85 as well as jump-register instructions. Handle compact jumps.
86
ff011ed7
TT
872011-12-08 Tom Tromey <tromey@redhat.com>
88
89 * objfiles.h (struct objfile): Remove obsolete comment.
90 * objfiles.c (build_objfile_section_table): Remove obsolete
91 comment.
92
7cd3876c
SS
932011-12-07 Stan Shebs <stan@codesourcery.com>
94
95 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
96 maintainer of the tic6x target.
97
35f73cfc
UW
982011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
99
100 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
101 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
102 (arm_deal_with_atomic_sequence_raw): Likewise.
103 (arm_deal_with_atomic_sequence): Likewise.
104 (arm_software_single_step): Call it.
105 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
106
94eae614
UW
1072011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
108
109 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
110 where appropriate.
111 * s390-tdep.h: Likewise.
112
13b8d0c6
TG
1132011-12-07 Tristan Gingold <gingold@adacore.com>
114
115 * machoread.c (macho_symtab_read): Do not consider N_OPT as
116 a debugging stab. Improve complaint message.
117
5436df95
MR
1182011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
119
120 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
121 load adjustment if still within the prologue.
122
040dff2a
MR
1232011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
124
125 * mips-tdep.c (mips32_next_pc): Fix floating point condition
126 code mask.
127
754d7c78
MR
1282011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
129
130 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
131 of BLTZ* and BGEZ* instructions.
132
91912e4d
MR
1332011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
134
135 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
136 performed to determine whether an address refers to standard
137 MIPS or MIPS16 code.
138 (mips16_next_pc): Use mips_pc_is_mips16 instead of
139 is_mips16_addr.
140
f0ba3972
PA
1412011-12-06 Pedro Alves <pedro@codesourcery.com>
142
143 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
144 (breakpoint_xfer_memory): ... this. Change prototype. Handle
145 memory writes too.
146 * breakpoint.h (breakpoint_restore_shadows): Delete.
147 (breakpoint_xfer_memory): Declare.
148 * mem-break.c (default_memory_insert_breakpoint)
149 (default_memory_remove_breakpoint): Use target_write_raw_memory.
150 (memory_xfer_partial): Rename to ...
151 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
152 here.
153 (memory_xfer_partial): New.
154 (target_write_raw_memory): New.
155 * target.h (target_write_raw_memory): New.
156
31aba06f
DE
1572011-12-06 Doug Evans <dje@google.com>
158
159 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
160
f8eba3c6
TT
1612011-12-06 Joel Brobecker <brobecker@acacore.com>
162
163 * language.h (struct language_defn): Add new component
164 la_symbol_name_compare.
165 * symfile.h (struct quick_symbol_functions): Update the profile
166 of parameter "name_matcher" for the expand_symtabs_matching
167 method. Update the documentation accordingly.
168 * ada-lang.h (ada_name_for_lookup): Add declaration.
169 * ada-lang.c (ada_name_for_lookup): New function, extracted out
170 from ada_iterate_over_symbols.
171 (ada_iterate_over_symbols): Do not encode symbol name anymore.
172 (ada_expand_partial_symbol_name): Adjust profile.
173 (ada_language_defn): Add value for la_symbol_name_compare field.
174 * linespec.c: #include "ada-lang.h".
175 (iterate_name_matcher): Add language parameter. Replace call
176 to strcmp_iw by call to language->la_symbol_name_compare.
177 (decode_variable): Encode COPY if current language is Ada.
178 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
179 of name_matcher parameter. Adjust call to name_matcher.
180 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
181 (expand_partial_symbol_names): Update profile of parameter "fun".
182 * psymtab.h (expand_partial_symbol_names): Update profile of
183 parameter "fun".
184 * symtab.c (demangle_for_lookup): Update function documentation.
185 (search_symbols_name_matches): Add language parameter.
186 (expand_partial_symbol_name): Likewise.
187 * c-lang.c (c_language_defn, cplus_language_defn)
188 (asm_language_defn, minimal_language_defn): Add value for
189 la_symbol_name_compare field.
190 * d-lang.c (d_language_defn): Likewise.
191 * f-lang.c (f_language_defn): Ditto.
192 * jv-lang.c (java_language_defn): Ditto.
193 * m2-lang.c (m2_language_defn): Ditto.
194 * objc-lang.c (objc_language_defn): Ditto.
195 * opencl-lang.c (opencl_language_defn): Ditto.
196 * p-lang.c (pascal_language_defn): Ditto.
197 * language.c (unknown_language_defn, auto_language_defn)
198 (local_language_defn): Ditto.
199
2002011-12-06 Tom Tromey <tromey@redhat.com>
201
202 * linespec.c (iterate_over_all_matching_symtabs): Use
203 LA_ITERATE_OVER_SYMBOLS.
204 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
205 (find_function_symbols, decode_variable): Remove Ada special
206 case.
207 * language.h (struct language_defn) <la_iterate_over_symbols>: New
208 field.
209 (LA_ITERATE_OVER_SYMBOLS): New macro.
210 * language.c (unknown_language_defn, auto_language_defn)
211 (local_language_defn): Update.
212 * c-lang.c (c_language_defn, cplus_language_defn)
213 (asm_language_defn, minimal_language_defn): Update.
214 * d-lang.c (d_language_defn): Update.
215 * f-lang.c (f_language_defn): Update.
216 * jv-lang.c (java_language_defn): Update.
217 * m2-lang.c (m2_language_defn): Update.
218 * objc-lang.c (objc_language_defn): Update.
219 * opencl-lang.c (opencl_language_defn): Update.
220 * p-lang.c (pascal_language_defn): Update.
221 * ada-lang.c (ada_iterate_over_symbols): New function.
222 (ada_language_defn): Update.
223
2242011-12-06 Tom Tromey <tromey@redhat.com>
225 Joel Brobecker <brobecker@acacore.com>
226
227 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
228 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
229 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
230 PR shlibs/8929, PR shlibs/7393:
231 * python/py-type.c (compare_maybe_null_strings): Rename from
232 compare_strings.
233 (check_types_equal): Update.
234 * utils.c (compare_strings): New function.
235 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
236 location changes.
237 * tracepoint.c (scope_info): Update.
238 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
239 * symtab.h (iterate_over_minimal_symbols)
240 (iterate_over_some_symtabs, iterate_over_symtabs)
241 (find_pcs_for_symtab_line, iterate_over_symbols)
242 (demangle_for_lookup): Declare.
243 (expand_line_sal): Remove.
244 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
245 (lookup_symtab_callback): New functions.
246 (lookup_symtab): Rewrite.
247 (demangle_for_lookup): New function, extract from
248 lookup_symbol_in_language.
249 (lookup_symbol_in_language): Use it.
250 (iterate_over_symbols): New function.
251 (find_line_symtab): Update.
252 (find_pcs_for_symtab_line): New functions.
253 (find_line_common): Add 'start' argument.
254 (decode_line_spec): Update. Change argument to 'flags', change
255 interpretation.
256 (append_expanded_sal): Remove.
257 (append_exact_match_to_sals): Remove.
258 (expand_line_sal): Remove.
259 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
260 Remove.
261 <map_symtabs_matching_filename>: New field.
262 * stack.c (func_command): Only look in the current program space.
263 Use DECODE_LINE_FUNFIRSTLINE.
264 * source.c (line_info): Set pspace on sal. Check program space in
265 the loop. Use DECODE_LINE_LIST_MODE.
266 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
267 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
268 * python/python.c (gdbpy_decode_line): Update.
269 * psymtab.c (partial_map_expand_apply): New function.
270 (partial_map_symtabs_matching_filename): Rename from
271 lookup_partial_symbol. Update arguments.
272 (lookup_symtab_via_partial_symtab): Remove.
273 (psym_functions): Update.
274 * objc-lang.h (parse_selector, parse_method): Don't declare.
275 (find_imps): Update.
276 * objc-lang.c (parse_selector, parse_method): Now static.
277 (find_methods): Change arguments. Fill in a vector of symbol
278 names.
279 (uniquify_strings): New function.
280 (find_imps): Change arguments.
281 * minsyms.c (iterate_over_minimal_symbols): New function.
282 * linespec.h (enum decode_line_flags): New.
283 (struct linespec_sals): New.
284 (struct linespec_result) <canonical>: Remove.
285 <pre_expanded, addr_string, sals>: New fields.
286 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
287 (decode_line_full): Declare.
288 (decode_line_1): Update.
289 * linespec.c (struct address_entry, struct linespec_state, struct
290 collect_info): New types.
291 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
292 (eq_address_entry, maybe_add_address): New functions.
293 (total_number_of_methods): Remove.
294 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
295 functions.
296 (find_methods): Change arguments. Don't canonicalize input.
297 Simplify logic.
298 (add_matching_methods, add_constructors)
299 (build_canonical_line_spec): Remove.
300 (filter_results, convert_results_to_lsals): New functions.
301 (decode_line_2): Change arguments. Rewrite for new data
302 structures.
303 (decode_line_internal): Rename from decode_line_1. Change
304 arguments. Add cleanups. Update for new data structures.
305 (linespec_state_constructor, linespec_state_destructor)
306 (decode_line_full, decode_line_1): New functions.
307 (decode_indirect): Change arguments. Update.
308 (locate_first_half): Use skip_spaces.
309 (decode_objc): Change arguments. Update for new data structures.
310 Simplify logic.
311 (decode_compound): Change arguments. Add cleanups. Remove
312 fallback code, replace with error.
313 (struct decode_compound_collector): New type.
314 (collect_one_symbol): New function.
315 (lookup_prefix_sym): Change arguments. Update.
316 (compare_symbol_name, add_all_symbol_names_from_pspace)
317 (find_superclass_methods ): New functions.
318 (find_method): Rewrite.
319 (struct symtab_collector): New type.
320 (add_symtabs_to_list, collect_symtabs_from_filename): New
321 functions.
322 (symtabs_from_filename): Change API. Rename from
323 symtab_from_filename.
324 (collect_function_symbols): New function.
325 (find_function_symbols): Change API. Rename from
326 find_function_symbol. Rewrite.
327 (decode_all_digits): Change arguments. Rewrite.
328 (decode_dollar): Change arguments. Use decode_variable.
329 (decode_label): Change arguments. Rewrite.
330 (collect_symbols): New function.
331 (minsym_found): Change arguments. Rewrite.
332 (check_minsym, search_minsyms_for_name)
333 (add_matching_symbols_to_info): New function.
334 (decode_variable): Change arguments. Iterate over all symbols.
335 (symbol_found): Remove.
336 (symbol_to_sal): New function.
337 (init_linespec_result, destroy_linespec_result)
338 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
339 New functions.
340 (decode_digits_list_mode, decode_digits_ordinary): New functions.
341 * dwarf2read.c (dw2_map_expand_apply): New function.
342 (dw2_map_symtabs_matching_filename): Rename from
343 dw2_lookup_symtab. Change arguments.
344 (dwarf2_gdb_index_functions): Update.
345 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
346 * defs.h (compare_strings): Declare.
347 * cli/cli-cmds.c (compare_strings): Move to utils.c.
348 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
349 filter_sals.
350 (compare_symtabs, filter_sals): New functions.
351 * breakpoint.h (struct bp_location) <line_number, source_file>:
352 New fields.
353 (struct breakpoint) <line_number, source_file>: Remove.
354 <filter>: New field.
355 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
356 (momentary_breakpoint_from_master, add_location_to_breakpoint):
357 Update for changes to locations.
358 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
359 breakpoint.
360 (create_breakpoint_sal): Add 'filter' argument.
361 (remove_sal, expand_line_sal_maybe): Remove.
362 (create_breakpoints_sal): Remove 'sals' argument. Handle
363 pre-expanded sals and the filter.
364 (parse_breakpoint_sals): Use decode_line_full.
365 (check_fast_tracepoint_sals): Use get_sal_arch.
366 (create_breakpoint): Create a linespec_sals. Update.
367 (break_range_command): Use decode_line_full. Update.
368 (until_break_command): Update.
369 (clear_command): Update match conditions for linespec.c changes.
370 Use DECODE_LINE_LIST_MODE.
371 (say_where): Update for changes to locations.
372 (bp_location_dtor): Free 'source_file'.
373 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
374 (update_static_tracepoint): Update for changes to locations.
375 (update_breakpoint_locations): Disable ranged breakpoint if too
376 many locations match. Update.
377 (addr_string_to_sals): Use decode_line_full. Resolve all sal
378 PCs.
379 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
380 (decode_line_spec_1): Update. Change argument name to 'flags',
381 change interpretation.
382 * block.h (block_containing_function): Declare.
383 * block.c (block_containing_function): New function.
384 * skip.c (skip_function_command): Update.
385 (skip_re_set): Update.
386 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
387 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
388 * NEWS: Add entry.
389
3902011-12-06 Tom Tromey <tromey@redhat.com>
391
392 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
393 breakpoint's pspace to be NULL.
394 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
395 * breakpoint.c (init_raw_breakpoint): Conditionally set
396 breakpoint's pspace.
397 (init_breakpoint_sal): Don't set breakpoint's pspace.
398 (prepare_re_set_context): Conditionally switch program space.
399 (addr_string_to_sals): Check executing_startup on location's
400 program space.
401
4022011-12-06 Tom Tromey <tromey@redhat.com>
403
404 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
405 * breakpoint.c (should_be_inserted): Explicitly check if program
406 space is executing startup.
407 (describe_other_breakpoints): Update.
408 (disable_breakpoints_before_startup): Change executing_startup
409 earlier. Remove loop.
410 (enable_breakpoints_after_startup): Likewise.
411 (init_breakpoint_sal): Don't use bp_startup_disabled.
412 (create_breakpoint): Don't use bp_startup_disabled.
413 (update_global_location_list): Use should_be_inserted.
414 (bkpt_re_set): Update.
415
75c8c9d7
TT
4162011-12-06 Tom Tromey <tromey@redhat.com>
417
418 * python/lib/gdb/command/pretty_printers.py
419 (InfoPrettyPrinter.invoke1): Remove extra double quote.
420
7376e450
TT
4212011-12-06 Tom Tromey <tromey@redhat.com>
422
423 * NEWS: Add MI news.
424
c642a434
UW
4252011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
426
427 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
428 (S390_LAST_BREAK_REGNUM): Likewise.
429 (S390_SYSTEM_CALL_REGNUM): Likewise.
430 (S390_NUM_REGS): Update.
431
432 (s390_regmap_last_break): Add declaration.
433 (s390x_regmap_last_break): Likewise.
434 (s390_regmap_system_call): Likewise.
435
436 (tdesc_s390_linux32v1): Add declaration.
437 (tdesc_s390_linux32v2): Likewise.
438 (tdesc_s390_linux64v1): Likewise.
439 (tdesc_s390_linux64v2): Likewise.
440 (tdesc_s390x_linux64v1): Likewise.
441 (tdesc_s390x_linux64v2): Likewise.
442
443 * s390-tdep.c: Include new target description files
444 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
445 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
446 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
447 (s390_cannot_store_register): New function.
448 (s390_write_pc): Likewise.
449 (s390_dwarf_regmap): Add fields for new registers.
450 (s390_regmap_gregset): Likewise.
451 (s390x_regmap_gregset): Likewise.
452 (s390_regmap_fpregset): Likewise.
453 (s390_regmap_upper): Likewise.
454 (s390_regmap_last_break): New variable.
455 (s390x_regmap_last_break): Likewise.
456 (s390_regmap_system_call): Likewise.
457 (s390_last_break_regset): Likewise.
458 (s390x_last_break_regset): Likewise.
459 (s390_system_call_regset): Likewise.
460 (s390_upper_regset_sections): Rename to ...
461 (s390_linux64_regset_sections): ... this.
462 (s390_linux32_regset_sections): New variable.
463 (s390x_linux64_regset_sections): Likewise.
464 (s390_linux32v1_regset_sections): Likewise.
465 (s390_linux32v2_regset_sections): Likewise.
466 (s390_linux64v1_regset_sections): Likewise.
467 (s390_linux64v2_regset_sections): Likewise.
468 (s390x_linux64v1_regset_sections): Likewise.
469 (s390x_linux64v2_regset_sections): Likewise.
470 (s390_regset_from_core_section): Handle .reg-s390-last-break and
471 .reg-s390-system-call core file sections.
472 (s390_core_read_description): Check for presence of
473 .reg-s390-last-break and .reg-s390-system-call core file
474 sections and return appropriate target description.
475 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
476 "last_break" and "system_call" in target description. Install
477 appropriate gdbarch_core_regset_sections array.
478 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
479 (_initialize_s390_tdep): Initialize additional target descriptions.
480
481 * s390-nat.c: Include "elf/common.h".
482 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
483 (have_regset_last_break): New static variable.
484 (have_regset_system_call): Likewise.
485 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
486 (s390_native_collect): Likewise.
487 (fetch_regset, store_regset, check_regset): New functions.
488 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
489 and S390_SYSTEM_CALL_REGNUM.
490 (s390_linux_store_inferior_registers): Likewise.
491 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
492 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
493
494 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
495 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
496 (s390-linux32v1-expedite): Define.
497 (s390-linux32v2-expedite): Likewise.
498 (s390-linux64v1-expedite): Likewise.
499 (s390-linux64v2-expedite): Likewise.
500 (s390x-linux64v1-expedite): Likewise.
501 (s390x-linux64v2-expedite): Likewise.
502
503 * features/s390-linux32.xml: Add orig_r2 register.
504 * features/s390-linux64.xml: Likewise.
505 * features/s390x-linux64.xml: Likewise.
506 * features/s390-linux32v1.xml: New file.
507 * features/s390-linux32v2.xml: Likewise.
508 * features/s390-linux64v1.xml: Likewise.
509 * features/s390-linux64v2.xml: Likewise.
510 * features/s390x-linux64v1.xml: Likewise.
511 * features/s390x-linux64v2.xml: Likewise.
512
513 * features/s390-linux32.c: Regenerate.
514 * features/s390-linux64.c: Likewise.
515 * features/s390x-linux64.c: Likewise.
516 * features/s390-linux32v1.c: New generated file.
517 * features/s390-linux32v2.c: Likewise.
518 * features/s390-linux64v1.c: Likewise.
519 * features/s390-linux64v2.c: Likewise.
520 * features/s390x-linux64v1.c: Likewise.
521 * features/s390x-linux64v2.c: Likewise.
522
523 * regformats/s390-linux32.dat: Regenerate.
524 * regformats/s390-linux64.dat: Regenerate.
525 * regformats/s390x-linux64.dat: Regenerate.
526 * regformats/s390-linux32v1.dat: New generated file.
527 * regformats/s390-linux32v2.dat: Likewise.
528 * regformats/s390-linux64v1.dat: Likewise.
529 * regformats/s390-linux64v2.dat: Likewise.
530 * regformats/s390x-linux64v1.dat: Likewise.
531 * regformats/s390x-linux64v2.dat: Likewise.
532
336060f3
PA
5332011-12-05 Pedro Alves <pedro@codesourcery.com>
534
535 * linux-nat.c (resume_stopped_resumed_lwps): Call
536 registers_changed.
537
049e32d3
PA
5382011-12-05 Pedro Alves <pedro@codesourcery.com>
539
540 * breakpoint.c: Include record.h.
541 (breakpoints_always_inserted_mode): Return false when the record
542 target is in use.
543
5c03c7f9 5442011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
545
546 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
547 Reinstate perror_with_name call on ptrace error. Remove #if 0.
548 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
549 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
550
fbbd034e
AS
5512011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
552
553 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
554 `i'(-Wshadow).
555
a5ff8356 5562011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
557
558 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
559
5602011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
561
a5ff8356
AS
562 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
563 of `tdep'(-Wshadow).
564
93f2a35e
JK
5652011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
566
567 Fix compilation --without-expat.
568 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
569 from ...
570 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
571
2268b414
JK
5722011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
573 Jan Kratochvil <jan.kratochvil@redhat.com>
574
575 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
576 * features/library-list-svr4.dtd: New file.
577 * remote.c (PACKET_qXfer_libraries_svr4): New.
578 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
579 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
580 * solib-svr4.c (struct svr4_library_list): New.
581 [HAVE_LIBEXPAT]: Include xml-support.h.
582 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
583 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
584 [HAVE_LIBEXPAT] (svr4_library_list_children)
585 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
586 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
587 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
588 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
589 (svr4_read_so_list): Extend the corruption message by addresses.
590 (svr4_current_sos): New variable library_list, call
591 svr4_current_sos_via_xfer_libraries.
592 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
593
585861ea
JK
5942011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 PR threads/13448
597 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
598 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
599
9750bca9
JK
6002011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 PR breakpoints/13346
603 * dwarf2read.c (process_psymtab_comp_unit): Set
604 PSYMTABS_ADDRMAP_SUPPORTED.
605 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
606 validity. New field psymtabs_addrmap_supported.
607 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
608 psymtabs_addrmap_supported.
609 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
610 !PSYMTABS_ADDRMAP_SUPPORTED.
611 (dump_psymtab, maintenance_info_psymtabs): Print also
612 psymtabs_addrmap_supported.
613
f28c316a
DE
6142011-12-01 Doug Evans <dje@google.com>
615
616 * python/py-type.c (type_object_methods): Fix "array" doc string.
617
fc0ae648
AB
6182011-12-01 Andrew Burgess <aburgess@broadcom.com>
619
620 * source.c (print_source_lines_base): Fix missing braces on else
621 clause leading to additional output.
622
d6db1fab
UW
6232011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
624
625 * s390-nat.c (SUBOFF): Remove.
626 (s390_native_supply, s390_native_collect): New functions.
627 (supply_gregset, supply_fpregset): Use s390_native_supply.
628 (fill_gregset, fill_fpregset): Use s390_native_collect.
629
630 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
631 (s390_unwind_pseudo_register): New function.
632 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
633 registers instead of PC and CC.
634 (s390_backchain_frame_unwind_cache): Likewise.
635 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
636 full GPR pseudos.
637 (s390_trad_frame_prev_register): New function.
638 (s390_frame_prev_register): Use it.
639 (s390_sigtramp_frame_prev_register): Likewise.
640 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
641 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
642 special callback to unwind any pseudo.
643
644 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
645 * features/s390-core64.xml: Likewise.
646 * features/s390x-core64.xml: Likewise.
647 * features/s390-linux32.c: Regenerate.
648 * features/s390-linux64.c: Likewise.
649 * features/s390x-linux64.c: Likewise.
650
1dd635ac
UW
6512011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
652
653 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
654
0161e4b9
UW
6552011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
656
657 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
658 instruction. Add more diagnostic output.
659
0c36327f
AS
6602011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
661
662 * MAINTAINERS (Write After Approval): Add myself to the list.
663
b4264740
SD
6642011-11-29 Sanjoy Das <sdas@igalia.com>
665
666 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
667 (jit_bfd_try_read_symtab): Fix comments.
668
87326c78
DD
6692011-11-28 DJ Delorie <dj@redhat.com>
670
671 * NEWS: Mention RL78 simulator.
672
1e3a8f45
JB
6732011-11-28 Joel Brobecker <brobecker@adacore.com>
674
675 * symfile.h (struct quick_symbol_functions): Fix the documentation
676 of field map_matching_symbols, as symbols are sorted using
677 strcmp_iw_ordered, not strcmp_iw.
678
265e52c3
JB
6792011-11-28 Paul Hilfinger <hilfinger@adacore.com>
680
681 * symfile.h (struct quick_symbol_functions): Update the
682 documentation for field map_matching_symbols.
683
1a1d5513
JB
6842011-11-28 Joel Brobecker <brobecker@adacore.com>
685
686 * ada-lang.c (compare_names): Fix wrong return value in case
687 string1 starts with the same contents as string2, followed
688 by an underscore that do not start a symbol name suffix.
689
5d9c5995
PM
6902011-11-28 Phil Muldoon <pmuldoon@redhat.com>
691
692 PR python/13369
693 PR python/13374
694
695 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
696 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
697 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
698 exceptions.
699 * python/py-type.c (typy_strip_typedefs): Ditto.
700 (typy_legacy_template_argument): Ditto.
701 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
702 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
703
2bf50f6f
JB
7042011-11-27 Joel Brobecker <brobecker@acacore.com>
705
706 * remote.c (remote_get_tracepoint_status): Delete addrbuf
707 local variable. Avoid use of sprintf_vma.
708
744ab88c
SD
7092011-11-27 Sanjoy Das <sdas@igalia.com>
710
711 Fix regression in jit.exp.
712 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
713 (jit_register_code): Set the jit_objfile_data field to the correct
714 value.
715
46ad3598
UW
7162011-11-25  Uros Bizjak  <ubizjak@gmail.com>
717
718 * alpha-tdep.c (br_opcode): New.
719 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
720 (alpha_deal_with_atomic_sequence): New function.
721 (alpha_gdbarch_init): Handle single stepping of atomic sequences
722 with alpha_deal_with_atomic_sequence.
723
e4c5f296
TG
7242011-11-24 Tristan Gingold <gingold@adacore.com>
725
726 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
727 fields. Add oso_sym, end_sym and nbr_syms.
728 (macho_register_oso): Change interface.
729 (macho_symtab_add_minsym): New function.
730 (macho_symtab_read): Rewritten.
731 (get_archive_prefix_len): Remove trailing blanks.
732 (oso_el_compare_name): Add comment.
733 (struct macho_sym_hash_entry): New structure.
734 (macho_relocate_common_syms): Remove.
735 (macho_sym_hash_newfunc): New function.
736 (macho_resolve_oso_sym_with_minsym): Likewise.
737 (macho_add_oso_symfile): Rewritten.
738 (macho_symfile_read_all_oso): Remove trailing blanks.
739 Adjust code to free oso vector.
740 (macho_symfile_read): Likewise.
741 Move code to initialize minimal symbol
742
130854df
MR
7432011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
744
745 * mips-tdep.c (extended_offset): Fix formatting.
746
3d7bb9d9
DE
7472011-11-23 Doug Evans <dje@google.com>
748
749 * dwarf2read.c (dw2_lookup_symtab): Add comment.
750 (dw2_expand_symtabs_with_filename): Ditto.
751 (dw2_expand_symtabs_matching): Ditto.
752 (dw2_map_symbol_filenames): Ditto.
753
1fbf5ada
JB
7542011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
755
756 * ada-lang.c (assign_aggregate): Minor reformatting.
757
d984108d
JB
7582011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
759
760 * ada-lang.c (assign_aggregate): Remove declaration of local
761 variable `i' which is shadowing another variable with the same
762 name declared in the outer scope.
763
18af8284
JB
7642011-11-23 Joel Brobecker <brobecker@adacore.com>
765
766 * ada-lang.c (get_base_type): Renames base_type. Adjust all
767 calls throughout this file.
768
1fc7b5d7
JB
7692011-11-23 Joel Brobecker <brobecker@adacore.com>
770
771 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
772 FormatMessage.
773
36dfb11c
TT
7742011-11-22 Tom Tromey <tromey@redhat.com>
775
776 PR mi/8444:
777 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
778 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
779 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
780 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
781 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
782 (print_it_catch_syscall, print_it_catch_exec)
783 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
784 (bpstat_print): Add 'kind' argument. Handle
785 TARGET_WAITKIND_LOADED.
786 * infrun.c (normal_stop): Update for bpstat_print change. Don't
787 handle TARGET_WAITKIND_LOADED here.
788 * breakpoint.h (bpstat_print): Update.
789
5bd6aa83
TT
7902011-11-22 Tom Tromey <tromey@redhat.com>
791
792 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
793
f5afdc18
TT
7942011-11-22 Tom Tromey <tromey@redhat.com>
795
796 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
797 Use static_assert to check the size of
798 async_reason_string_lookup.
799 * common/gdb_assert.h (static_assert): New macro.
800
a3769e0c
AM
8012011-11-22 Alan Modra <amodra@gmail.com>
802
803 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
804 destination calculation. Don't expect >> to sign extend. Don't
805 add a break if branch lands inside the sequence anywhere.
806
56767571
KS
8072011-11-21 Keith Seitz <keiths@redhat.com>
808
809 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
810 -var-evaluate-expression of an enumeration and fix expected result.
811 * gdb.mi/mi2-varvdisplay.exp: Likewise.
812
8443c207
KY
8132011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
814
815 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
816 the case where osdata->items is empty. Rename column names to a
817 canonical form to avoid problems with unusual column names.
818
97643830
YQ
8192011-11-21 Yao Qi <yao@codesourcery.com>
820
821 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
822
f196051f
SS
8232011-11-20 Stan Shebs <stan@codesourcery.com>
824
825 * NEWS: Mention tracepoint additions.
826 * breakpoint.h (struct tracepoint): New field traceframe_usage.
827 * breakpoint.c (print_one_breakpoint_location): Identify
828 tracepoints as such when reporting hit counts, report
829 trace buffer usage.
830 (create_tracepoint_from_upload): Copy status info.
831 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
832 add fields user_name, notes, start_time, stop_time.
833 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
834 * tracepoint.c (trace_user): New global.
835 (trace_notes): New global.
836 (trace_stop_notes): New global.
837 (start_tracing): Add argument and trace note handling.
838 (stop_tracing): Ditto.
839 (trace_start_command): Add notes argument.
840 (trace_stop_command): Ditto.
841 (trace_status_command): Report additional status info.
842 (trace_status_mi): Similarly.
843 (trace_save): Update, record tracepoint status.
844 (set_disconnected_tracing): Call target method directly.
845 (send_disconnected_tracing_value): Remove.
846 (set_trace_user): New function.
847 (set_trace_notes): New function.
848 (set_trace_stop_notes): New function.
849 (parse_trace_status): Handle additional status.
850 (parse_tracepoint_status): New function.
851 (parse_tracepoint_definition): Call it.
852 (tfile_get_tracepoint_status): New function.
853 (init_tfile_ops): Use it.
854 (_initialize_tracepoint): Add new setshows.
855 * target.h (struct target_ops): New methods to_get_tracepoint_status
856 and to_set_trace_notes.
857 (target_get_tracepoint_status): New macro.
858 (target_set_trace_notes): New macro.
859 * target.c (update_current_target): Add new methods.
860 * remote.c (remote_get_tracepoint_status): New function.
861 (remote_set_trace_notes): New function.
862 (init_remote_ops): Add them.
863 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
864 (mi_cmd_trace_stop): Ditto.
865
3623dc3a
SD
8662011-11-20 Sanjoy Das <sdas@igalia.com>
867
868 * jit.c: Include regcache.h.
869 (jit_gdbarch_data, jit_frame_unwind): New static variables.
870 (jit_unwind_reg_set_impl, free_reg_value_impl)
871 (jit_unwind_reg_get_impl, jit_frame_sniffer)
872 (jit_frame_unwind_stop_reason, jit_frame_this_id)
873 (jit_frame_prev_register, jit_dealloc_cache)
874 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
875 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
876 jit_prepend_unwinder.
877 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
878
1825a88d
SD
8792011-11-20 Sanjoy Das <sdas@igalia.com>
880
881 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
882 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
883 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
884 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
885 (finalize_symtab, jit_object_close_impl)
886 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
887 (free_objfile_data): New functions.
888 (_initialize_jit): Register jit_objfile_data with a proper cleanup
889 function.
890
784c47ee
SD
8912011-11-20 Sanjoy Das <sdas@igalia.com>
892
893 * jit.c: Include gdb-dlfcn.h.
894 (loaded_jit_reader, reader_init_fn_sym): New static variables.
895 (jit_reader_load, jit_reader_load_command)
896 (jit_reader_unload_command): New functions.
897 (_initialize_jit): Add commands "jit-reader-load" and
898 "jit-reader-unload".
899
a2d08b9e
SD
9002011-11-20 Sanjoy Das <sdas@igalia.com>
901
902 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
903 * config.in: Add new #define HAVE_LIBDL.
904 * configure.ac: Add check for -ldl.
905 * configure: Re-generated by autoconf.
906 * gdb-dlfcn.c: New file.
907 * gdb-dlfcn.h: New file.
908
b8e0a31c
SD
9092011-11-20 Sanjoy Das <sdas@igalia.com>
910
911 * config.in: Add new #defines: JIT_READER_DIR and
912 JIT_READER_DIR_RELOCATABLE.
913 * configure.ac: New GDB directory entry for jit-reader-dir.
914 * configure: Re-generated by autoconf.
915 * jit.c: New static variable: const char *jit_reader_dir.
916 (_initialize_jit): Relocate jit_reader_dir.
917
f997c383
SD
9182011-11-20 Sanjoy Das <sdas@igalia.com>
919
920 * Makefile.in: Add jit-reader.h as a header. Have it installed in
921 $(includedir)/gdb.
922 * configure.ac: Generate a correct value for TARGET_PTR for
923 jit-reader.h. Tell configure to generate jit-reader.h from
924 jit-reader.in.
925 * configure: Re-generated by autoconf.
926 * jit-reader.in: New file.
927 * jit.c: Include jit-reader.h.
928
dc8c0494
SD
9292011-11-20 Sanjoy Das <sdas@igalia.com>
930
931 * MAINTAINERS (Write After Approval): Add myself to the list.
932
01efb936
UW
9332011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
934
935 * findvar.c (read_frame_register_value): Respect value_offset
936 of the register value. Remove big-endian special case.
937
732f3f12
TT
9382011-11-18 Tom Tromey <tromey@redhat.com>
939
940 PR build/7196:
941 * remote.c (putpkt_for_catch_errors): New function.
942 (remote_kill): Use it.
943
bfccc43c
YQ
9442011-11-18 Yao Qi <yao@codesourcery.com>
945
946 * breakpoint.c (create_breakpoint): Produce query message according to
947 breakpoint's type.
948 Allocate tracepoint per correct type.
949 Don't check SALs for pending fast tracepoints.
950 * tracepoint.c (process_tracepoint_on_disconnect): New.
951 (disconnect_tracing): Call process_tracepoint_on_disconnect.
952
3ea46bff
YQ
9532011-11-18 Yao Qi <yao@codesourcery.com>
954
955 * breakpoint.c (install_breakpoint): Add one more parameter so that
956 update_global_location_list is called conditionally.
957 (create_fork_vfork_event_catchpoint): Update.
958 (create_syscall_event_catchpoint): Update.
959 (create_breakpoint_sal): Update.
960 (create_breakpoint_sal): Update. Call do_cleanups before
961 install_breakpoint.
962 * ada-lang.c (create_ada_exception_catchpoint): Update.
963 * breakpoint.h (install_breakpoint): Update declaration.
964
598cfb71
UW
9652011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
966
967 * spu-tdep.c (spu_return_value): Fix handling of
968 TYPE_CALLING_CONVENTION annotation.
969
caf4328c
UW
9702011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
971
972 * skip.c (skip_function_command): Work around uninitialized
973 variable warning.
974
2b54dda2
DM
9752011-11-16 David S. Miller <davem@davemloft.net>
976
977 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
978 'tv_usec' to long for printf since these fields have a type which
979 varies.
980
93bf33fd
DE
9812011-11-15 Doug Evans <dje@google.com>
982
983 * buildsym.c (add_symbol_to_list): Delete outdated comment.
984
9cc10fd1
PK
9852011-11-15 Paul Koning <paul_koning@dell.com>
986
987 * python/py-type.c (typy_get_composite): New function.
988 (typy_nonzero): New function.
989 (typy_values): Rename from typy_fields.
990 (typy_fields): New function.
991 (typy_length): Raise exception if not struct, union, or enum type.
992 (typy_getitem): Ditto.
993 (typy_has_key): Ditto.
994 (typy_make_iter): Ditto.
995
c011a4f4
DE
9962011-11-15 Doug Evans <dje@google.com>
997
998 * NEWS: Mention new parameter basenames-may-differ.
999 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1000 ! basenames_may_differ.
1001 * psymtab.c (lookup_partial_symtab): Ditto.
1002 * symtab.c (lookup_symtab): Ditto.
1003 (basenames_may_differ): New global.
1004 (_initialize_symtab): New parameter basenames-may-differ.
1005 * symtab.h (basenames_may_differ): Declare.
1006
865ecab4
LM
10072011-11-15 Pedro Alves <pedro@codesourcery.com>
1008 Luis Machado <lgustavo@codesourcery.com>
1009
1010 * auxv.c: Include observer.h.
1011 (auxv_inferior_data_cleanup): New.
1012 (invalidate_auxv_cache_inf): New.
1013 (invalidate_auxv_cache): New.
1014 (get_auxv_inferior_data): New.
1015 (auxv_inferior_data): New static global.
1016 (auxv_info): New structure.
1017 (target_auxv_search): Use get_auxv_inferior_data instead of
1018 target_read_alloc and don't free cached buffers.
1019 (fprint_target_auxv): Likewise
1020 (_initialize_auxv): Register per-inferior auxv cache and register
1021 observers to invalidate auxv cache when needed.
1022
ed59ded5
DE
10232011-11-14 Doug Evans <dje@google.com>
1024
1025 Make "!" an alias for "shell".
1026 * NEWS: Add mention.
1027 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1028 adding "!" command, always add it.
1029 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1030 command of length one.
1031
405f8e94
SS
10322011-11-14 Stan Shebs <stan@codesourcery.com>
1033 Kwok Cheung Yeung <kcy@codesourcery.com>
1034
1035 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1036 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1037 the minimum instruction size for fast tracepoints.
1038 * target.h (struct target_ops): Add new method
1039 to_get_min_fast_tracepoint_insn_len.
1040 (target_get_min_fast_tracepoint_insn_len): New.
1041 * target.c (update_current_target): Set up new target operation.
1042 * remote.c (remote_write_bytes_aux): Fix typo.
1043 (remote_get_min_fast_tracepoint_insn_len): New.
1044 (init_remote_ops): Initialize new field.
1045
3e05895e
TT
10462011-11-14 Tom Tromey <tromey@redhat.com>
1047
1048 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1049 (encode_actions): Likewise.
1050
1e4d1764
YQ
10512011-11-14 Yao Qi <yao@codesourcery.com>
1052
1053 * remote.c (struct remote_state): <install_in_trace> new field.
1054 (PACKET_InstallInTrace): New enum value.
1055 (remote_install_in_trace_feature): Support InstallInTrace.
1056 (remote_supports_install_in_trace): Likewise.
1057 (remote_protocol_features): Likewise.
1058 (_initialize_remote): Likewise.
1059 (remote_can_download_tracepoint): New.
1060 * target.h (struct target): New field
1061 `to_can_download_tracepoint'.
1062 (target_can_download_tracepoint): New macro.
1063 * target.c (update_current_target): Update.
1064 * breakpoint.h (struct bp_location): Add comment on field
1065 `duplicate'.
3ccd4ac6
YQ
1066 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1067 and tracepoint.
1e4d1764
YQ
1068 (remove_breakpoints): Don't remove tracepoints.
1069 (tracepoint_locations_match ): New.
1070 (breakpoint_locations_match): Call it.
1071 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1072 (download_tracepoint_locations): New.
1073 (update_global_location_list): Call it.
1074 * tracepoint.c (find_matching_tracepoint): Delete.
1075 (find_matching_tracepoint_location): Renamed from
1076 find_matching_tracepoint. Return bp_location rather than
1077 tracepoint.
1078 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1079 tracepoint is found.
1080
e8ba3115
YQ
10812011-11-14 Yao Qi <yao@codesourcery.com>
1082
1083 * target.h (struct target): <to_download_tracepoint> Change type
1084 of parameter from tracepoint to bp_location.
1085 * target.c (update_current_target): Update.
1086 * tracepoint.c (start_tracing): Update.
1087 * remote.c (remote_download_tracepoint): Remove loop for each location
1088 of a tracepoint.
1089
edcc485a
MR
10902011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1091
1092 * i386-nat.c (i386_insert_hw_breakpoint): Call
1093 i386_update_inferior_debug_regs.
1094 (i386_remove_hw_breakpoint): Likewise.
1095
3742cc8b
YQ
10962011-11-14 Yao Qi <yao@codesourcery.com>
1097
1098 * breakpoint.c (init_raw_breakpoint): Call
1099 add_location_to_breakpoint to replace duplicated code.
1100 (add_location_to_breakpoint): Adjust the breakpoint's
1101 address prior to allocating a location.
1102
71eba9c2 11032011-11-12 Matt Rice <ratmice@gmail.com>
1104
1105 * macrocmd.c (macro_no_macro_info): New function.
1106 (macro_expand_command): Use macro_no_macro_info.
1107 (macro_expand_once_command): Ditto.
1108 (info_macro_command): Add argument processing,
1109 move info_definitions_command here.
1110 (_initialize_macrocmd): Remove info definitions command.
1111 Add arguments to info macro help text.
1112 * NEWS: Replace info definitions command with new info macro options.
1113
731971ed
KS
11142011-11-11 Keith Seitz <keiths@redhat.com>
1115
1116 PR gdb/12843
1117 * linespec.c (locate_first_half): Keep ':' if it looks
1118 like it could be part of a Windows path starting with
1119 a drive letter.
1120
6953d224
PA
11212011-11-10 Pedro Alves <pedro@codesourcery.com>
1122
1123 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1124 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1125
0c94aa73
PA
11262011-11-10 Pedro Alves <pedro@codesourcery.com>
1127
1128 * target.c (target_waitstatus_to_string): Handle
1129 TARGET_WAITKIND_NO_RESUMED.
1130
f6b47be4
DE
11312011-11-10 Doug Evans <dje@google.com>
1132
74e2f255
DE
1133 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1134 `need_fullname'.
1135 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1136 (map_partial_symbol_filenames): Ditto. All callers updated.
1137 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1138 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1139 parameter need_fullname.
1140
256f06f3
DE
1141 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1142 * source.c (symtab_to_fullname): Ditto.
1143
50f182aa
DE
1144 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1145 * gdb-demangle.h: ... here. New file.
1146 * demangle.c: #include "gdb-demangle.h".
1147 (_initialize_demangler): Use initialize_file_ftype for prototype.
1148 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1149 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1150 from utils.c
1151 * utils.c: Update. #include "gdb-demangle.h".
1152 * symtab.h (asm_demangle): Delete.
1153 (demangle): Move declaration next to use.
1154 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1155 * dwarf2read.c: #include "gdb-demangle.h".
1156 * gnu-v2-abi.c: Ditto.
1157 * jv-typeprint.c: Ditto.
1158 * mdebugread.c: Ditto.
1159 * p-typeprint.c: Ditto.
1160 * stabsread.c: Ditto.
1161 * printcmd.c: Ditto.
1162 (asm_demangle): Delete declaration.
1163 * tui/tui-stack.c: #include "gdb-demangle.h".
1164
f6b47be4
DE
1165 * python/py-type.c (typy_fields_items): Call check_typedef.
1166
22355c90
JB
11672011-11-10 Joel Brobecker <brobecker@adacore.com>
1168
1169 * findvar.c (read_frame_register_value): Read the correct bytes
1170 from registers on big-endian architectures.
1171
bd119cf1 11722011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1173
1174 * procfs.c (load_syscalls): Make a cleanup.
1175 (open_procinfo_files): fd==0 is ok.
1176
0a86f364
JB
11772011-11-10 Joel Brobecker <brobecker@adacore.com>
1178
1179 * procfs.c (iterate_over_mappings): Call do_cleanups before
1180 returning.
1181
9bc118a5
DE
11822011-11-09 Doug Evans <dje@google.com>
1183
1184 * gdbtypes.c (check_typedef): Document that this function can
1185 throw an exception.
1186
a7860e76
TT
11872011-11-09 Tom Tromey <tromey@redhat.com>
1188
1189 PR c++/13342:
1190 * valops.c (value_full_object): Return early if real type is
1191 smaller than the enclosing type.
1192
60965737
YQ
11932011-11-08 Yao Qi <yao@codesourcery.com>
1194
1195 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1196
72a2e3dc
MI
11972011-11-08 Meador Inge <meadori@codesourcery.com>
1198
1199 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1200 register when the frame can't be determined.
1201 * arm-tdep.c (arm_analyze_prologue): Ditto.
1202
ce3b0ff7
SS
12032011-11-07 Stan Shebs <stan@codesourcery.com>
1204
1205 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1206
2b914b52
JB
12072011-11-07 Joel Brobecker <brobecker@adacore.com>
1208
1209 * infrun.c (handle_inferior_event): Minor reformatting.
1210
6f809020
DE
12112011-11-05 Doug Evans <dje@google.com>
1212
1213 * source.c (forget_cached_source_info_for_objfile): Move call to
1214 objfile->sf->qf->forget_cached_source_info outside of
1215 ALL_OBJFILE_SYMTABS loop.
1216 (forget_cached_source_info): Delete unused variable `s'.
1217
75d12218
JK
12182011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1219
1220 * i386-nat.c (dr_ref_count): Remove unused variable.
1221
e565b837
DE
12222011-11-05 Doug Evans <dje@google.com>
1223
1224 * main.c (captured_main): Set lim_at_start before calling
1225 make_command_stats_cleanup.
1226
0a1c4d10
DE
12272011-11-04 Doug Evans <dje@google.com>
1228
1229 * utils.c: #include "timeval-utils.h".
1230 (cmd_stats): Rename start_time to start_cpu_time.
1231 New member start_wall_time.
1232 (report_command_stats): Report wall time.
1233 (make_command_stats_cleanup): Record start wall time.
1234
a1d705ee
TT
12352011-11-04 Tom Tromey <tromey@redhat.com>
1236
1237 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1238
81de56be
RO
12392011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1240
1241 * coff-pe-read.c: Include defs.h before bfd.h.
1242
3ab1ec27
PM
12432011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1244
1245 PR Python/13345
1246
1247 * python/python.c (python_run_simple_file): Expand tilde in path.
1248
cd829959
PM
12492011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1250
1251 PR Python/13363
1252
1253 * python/py-type.c (typy_lookup_type): Do not return a type in
1254 an exception handler.
1255
080ad648
JK
12562011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1257 Eli Zaretskii <eliz@gnu.org>
1258
1259 * linux-nat.c (_initialize_linux_nat): Improve help
1260 for `info proc stat', `info proc status', `info proc cwd',
1261 `info proc cmdline' and `info proc exe'.
1262
3065dfb6
SS
12632011-11-02 Stan Shebs <stan@codesourcery.com>
1264
1265 String collection for tracepoints.
1266 * NEWS: Mention string collection.
1267 * common/ax.def (tracenz): New bytecode.
1268 * ax-gdb.h (trace_string_kludge): Declare.
1269 * ax-gdb.c: Include valprint.h and c-lang.h.
1270 (trace_string_kludge): New global.
1271 (gen_traced_pop): Add string case.
1272 (agent_command): Add string case.
1273 * tracepoint.h (decode_agent_options): Declare.
1274 * tracepoint.c: Include cli-utils.h.
1275 (decode_agent_options): New function.
1276 (validate_actionline): Call it.
1277 (encode_actions_1): Ditto.
1278 * target.h (struct target_ops): New method to_supports_string_tracing.
1279 (target_supports_string_tracing): New macro.
1280 * target.c (update_current_target): Add to_supports_string_tracing.
1281 * remote.c (struct remote_state): New field string_tracing.
1282 (remote_string_tracing_feature): New function.
1283 (remote_protocol_features): New feature tracenz.
1284 (remote_supports_string_tracing): New function.
1285 (init_remote_ops): Set to_supports_string_tracing.
1286
f179e162
JK
12872011-11-02 Pedro Alves <pedro@codesourcery.com>
1288 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 * linux-nat.c: Include cli/cli-utils.h.
1291 (enum info_proc_what): New.
1292 (linux_nat_info_proc_cmd): Rename to ...
1293 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1294 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1295 status_f and stat_f from WHAT. Throw error on extra parameters.
1296 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1297 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1298 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1299 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1300 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1301 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1302 `info proc cmdline', `info proc exe' and `info proc all' as real
1303 subcommands of `info proc'.
1304
7b35ec7f 13052011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1306
1307 * Makefile.in: (SFILES): Add skip.c.
1308 (HFILES_NO_SRCDIR): Add skip.h.
1309 (COMMON_OBS): Add skip.o.
1310 * skip.h, skip.c: New.
1311 * breakpoint.h (set_default_breakpoint): Remove.
1312 (get_sal_arch): Declare.
1313 * breakpoint.c: Remove default_breakpoint_valid,
1314 default_breakpoint_address, default_breakpoint_symtab,
1315 default_breakpoint_line, default_breakpoint_pspace variables.
1316 (get_sal_arch): Make public.
1317 (set_default_breakpoint): Remove.
1318 (parse_breakpoint_sals, create_breakpoint, clear_command,
1319 decode_line_spec_1): Remove uses of default_breakpoint variables;
1320 replaced with function calls into stack.c.
1321 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1322 * cli/cli-cmds.c: Add skiplist.
1323 (init_cmd_lists): Initialize skiplist.
1324 (init_cli_cmds): Fix comment (classes of commands appear in
1325 alphabetical order).
1326 * infrun.c (handle_inferior_event): Add check that we don't step into
1327 a function whose pc is marked for skip.
1328 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1329 last_displayed_addr, last_displayed_symtab, last_displayed_line
1330 variables.
1331 (set_last_displayed_sal): New static function.
1332 (print_frame_info): Switch call to set_default_breakpoint to call to
1333 set_last_displayed_sal.
1334 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1335 get_last_displayed_pspace, get_last_displayed_addr,
1336 get_last_displayed_symtab, get_last_displayed_line,
1337 get_last_displayed_sal): New public functions.
1338 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1339 get_last_displayed_pspace, get_last_displayed_addr,
1340 get_last_displayed_symtab, get_last_displayed_line,
1341 get_last_displayed_sal): Declare.
1342
b60e1588
JL
13432011-11-01 Justin Lebar <justin.lebar@gmail.com>
1344
1345 * MAINTAINERS (Write After Approval): Add myself to the list.
1346
d31647d2
YQ
13472011-10-29 Yao Qi <yao@codesourcery.com>
1348
1349 * infcmd.c (disconnect_command): Call disconnect_tracing.
1350
b1d96efd
JK
13512011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 Code cleanup.
1354 * symtab.c (skip_prologue_sal): Code reformatting.
1355
4dfb2365
JK
13562011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1357
1358 PR symtab/13208
1359 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1360 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1361 SAI.
1362
0e5bf2a8
PA
13632011-10-28 Pedro Alves <pedro@codesourcery.com>
1364
1365 * linux-nat.c (linux_nat_filter_event): Remove `options'
1366 parameter, and dead code that used it. If we're handling a
1367 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1368 in our lwp list, re-add it.
1369 (check_zombie_leaders): New.
1370 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1371 wait for children with WNOHANG, and always wait for all children.
1372 Don't check for no resumed children upfront. Simplify wait loop.
1373 Check for zombie thread group leaders after handling all wait
1374 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1375 unwaited-for children left.
1376 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1377 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1378 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1379 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1380
821296b7
SA
13812011-10-28 Sterling Augustine <saugustine@google.com>
1382
1383 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1384 * symtab.c (free_completion_list): New function.
1385 (do_free_completion_list): Likewise.
1386 (default_make_symbol_completion_list_break_on): New variable
1387 back_to. Call make_cleanup and discard_cleanups.
1388 (make_source_files_completion_list): Likewise.
1389
03c3051a
PK
13902011-10-28 Paul Koning <paul_koning@dell.com>
1391
1392 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1393 * NEWS: Mention deep_items.
1394
8e7ebaf5
PA
13952011-10-28 Alen Skondro <askondro@gmail.com>
1396
8de33dc2 1397 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1398 defined.
1399
e0c6ef61
MI
14002011-10-27 Meador Inge <meadori@codesourcery.com>
1401
1402 * MAINTAINERS (Write After Approval): Add myself to the list.
1403
b56d6f31
JB
14042011-10-27 Joel Brobecker <brobecker@adacore.com>
1405
1406 * value.h (read_frame_register_value): Add declaration.
1407 * findvar.c (read_frame_register_value): New function.
1408 (value_from_register): Use read_frame_register_value
1409 instead of get_frame_register_value + value_contents_copy
1410 to get value contents.
1411
d234ef5c
DE
14122011-10-27 Doug Evans <dje@google.com>
1413
1414 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1415 source_script_from_stream if it may have been found on the search path.
1416 * python/py-auto-load.c (source_section_scripts): Pass full path to
1417 source_python_script_for_objfile.
1418 * python/python.c (source_python_script): Delete stream parameter.
1419 All callers updated.
1420 (source_python_script_for_objfile): Ditto.
1421 * python/python-internal.h (source_python_script_for_objfile): Update.
1422 * python/python.h (source_python_script): Update.
1423
d849d44f
TT
14242011-10-27 Tom Tromey <tromey@redhat.com>
1425
1426 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1427 (ada_sals_for_line): Remove declarations.
1428
2231f1fb
KP
14292011-10-27 Kevin Pouget <kevin.pouget@st.com>
1430
1431 Move unwind reasons to an external .def file
1432 * frame.c (frame_stop_reason_string): Rewrite using
1433 unwind_stop_reasons.def.
1434 * frame.h (enum unwind_stop_reason): Likewise.
1435 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1436 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1437 constants for bound-checking.
1438 * unwind_stop_reasons.def: New file.
1439 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1440 instead of a distinct value.
1441
f77b9a5d
PM
14422011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1443
1444 PR python/13331
1445
1446 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1447 (convert_values_to_python): Return on Python tuple allocation
1448 failure. Return NULL on value conversion error.
1449
76dce0be
PM
14502011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1451
1452 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1453 (bppy_set_task): Ditto.
1454 (bppy_delete_breakpoint): Ditto.
1455 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1456 (gdbpy_lookup_global_symbol): Ditto.
1457 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1458 * python/py-frame.c (frapy_is_valid): Ditto.
1459 (frame_info_to_frame_object): Ditto.
1460 * python/py-type.c (typy_lookup_type): Ditto.
1461 (typy_getitem): Ditto.
1462 (typy_has_key): Ditto.
1463 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1464
f17b6955
JB
14652011-10-26 Joel Brobecker <brobecker@adacore.com>
1466
1467 * gdbarch.h: Regenerate.
1468
86ba1042
JB
14692011-10-26 Meador Inge <meadori@codesourcery.com>
1470
1471 * gdbarch.sh (function_list): Use 'pstring' when printing
1472 'gcore_bfd_target'.
1473 * gdbarch.c: Regenerate.
1474
c34fd852
UW
14752011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1476
1477 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1478 and frame caches if PTID refers to all threads of a process.
1479
931bb47f
UW
14802011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1481
1482 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1483 to create_breakpoint.
1484
88aed45e
UW
14852011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1486
1487 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1488 (ppc_sysv_abi_push_dummy_call): Use it.
1489 (do_ppc_sysv_return_value): Likewise.
1490 (ppc64_sysv_abi_push_dummy_call): Likewise.
1491 (ppc64_sysv_abi_return_value): Likewise.
1492
3eaf3fa2
PK
14932011-10-26 Paul Koning <paul_koning@dell.com>
1494
1495 * python/lib/gdb/types.py (deepitems): New function.
1496
913460fc
PK
14972011-10-25 Paul Koning <paul_koning@dell.com>
1498
1499 PR python/13327
1500
1501 * python/py-value.c (value_to_value_object): Remove fetching of
1502 the value if it was lazy.
1503 (valpy_get_is_lazy): New function.
1504 (valpy_fetch_lazy): New function.
1505
2b5b9d09
JB
15062011-10-24 Joel Brobecker <brobecker@adacore.com>
1507
1508 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1509 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1510
e21ffe51
PA
15112011-10-24 Pedro Alves <pedro@codesourcery.com>
1512
1513 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1514 event, in non-stop, if not stopping, make sure the new lwp has
1515 last_resume_kind set to resume_continue. Assert that when we're
1516 resuming the new lwp, its last_resume_kind is resume_continue.
1517
7aee8dc2
PA
15182011-10-24 Pedro Alves <pedro@codesourcery.com>
1519
1520 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1521 already set when marking the event thread as not executing in
1522 non-stop mode.
1523
4b4e080e
PA
15242011-10-24 Pedro Alves <pedro@codesourcery.com>
1525
1526 * infrun.c (handle_inferior_event): Add debug output for
1527 TARGET_WAITKIND_NO_HISTORY.
1528
baacfb07
PM
15292011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1530
1531 * NEWS: Move set/show extended-prompt to "New Options". Expand
1532 description. Fix typos.
1533
8432bc41
PM
15342011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1535
1536 PR python/13310
1537
1538 * python/py-param.c (call_doc_function): Correctly deference on
1539 function exit.
1540
6cda5a20
JB
15412011-10-21 Joel Brobecker <brobecker@adacore.com>
1542
1543 * ada-tasks.c (print_ada_task_info): Fix computation of
1544 number of tasks displayed in command output.
1545
13294f7d
JK
15462011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1547 Ulrich Weigand <uweigand@de.ibm.com>
1548
1549 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1550 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1551 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1552 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1553 gdbarch_unwind_pc.
1554
460c1c54
CC
15552011-10-20 Cary Coutant <ccoutant@google.com>
1556
1557 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1558 section to...
1559 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1560 flag. Adjust all callers.
1561 (process_psymtab_comp_unit): Remove adjustment for type section.
1562
a10964d1
AR
15632011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1564
1565 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1566 arguments by adding OBJFILE. Instead of getting objfile from
1567 symbol's symtab, use new argument OBJFILE.
1568 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1569 arguments by adding OBJFILE.
1570 * gdb/dwarf2read.c (new_symbol_full): Change call to
1571 cp_scan_for_anonymous_namespaces to match new signature.
1572 * gdb/stabsread.c (define_symbol): Change call to
1573 cp_scan_for_anonymous_namespaces to match new signature.
1574
27ca1a5b
PM
15752011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1576
1577 PR python/13308
1578 PR python/13309
1579
1580 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1581 leak.
1582 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1583 leak. Delete unused variables.
1584
9df2fbc4
PM
15852011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1586
1587 PR python/12656
1588
1589 * python/py-frame.c (frapy_read_var): Use const struct *block.
1590 * python/py-type.c (typy_lookup_typename): Likewise.
1591 (typy_lookup_type): Likewise.
1592 (typy_legacy_template_argument): Likewise.
1593 (typy_template_argument): Likewise.
1594 (gdbpy_lookup_type): Likewise.
1595 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1596 * python/py-block.c (blpy_block_object): Likewise.
1597 (blpy_iter): Likewise.
1598 (blpy_get_start): Likewise.
1599 (blpy_get_end): Likewise.
1600 (blpy_get_function): Likewise.
1601 (blpy_get_superblock): Likewise.
1602 (set_block): Likewise.
1603 (block_to_block_object): Likewise.
1604 (block_object_to_block): Likewise.
1605 (blpy_is_valid): Likewise.
1606 (blpy_get_global_block): New function.
1607 (blpy_get_static_block): New function.
1608 (blpy_is_global): New function.
1609 (blpy_is_static): New function.
1610 * blockframe.c (block_innermost_frame): Likewise.
1611 * valops.c (value_of_variable): Likewise.
1612 * frame.h: Update prototypes.
1613 * python/python-internal.h: Likewise.
1614 * value.h: Likewise.
1615
4743b735
CC
16162011-10-19 Cary Coutant <ccoutant@google.com>
1617
1618 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1619 type_offset field.
1620
6caca83c
CC
16212011-10-19 Cary Coutant <ccoutant@google.com>
1622
1623 * dwarf2read.c (peek_abbrev_code): New function.
1624 (dw2_get_file_names): Check for dummy compilation units.
1625 (create_debug_types_hash_table): Likewise.
1626 (process_psymtab_comp_unit): Likewise.
1627 (load_partial_comp_unit): Likewise.
1628 (load_full_comp_unit): Likewise.
1629
43136979
AR
16302011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1631
1632 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1633 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1634 pt_phdr if PT_PHDR was found.
1635
0a07729b
TT
16362011-10-17 Joost van der Sluis <joost@cnoc.nl>
1637
1638 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1639 type or "<unnamed type"> when there is no name assigned.
1640 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1641 avoid a sigint when no name is assigned.
1642
21ae7a4d
JK
16432011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 Revert:
1646 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 * dwarf2expr.c (ctx_no_read_reg): New function.
1648 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1649 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1650 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1651 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1652
32d1c362
DE
16532011-10-16 Doug Evans <dje@google.com>
1654
1655 * NEWS: Document python gdb.printing.register_pretty_printer's new
1656 `replace' parameter.
1657
da096638
KS
16582011-10-14 Keith Seitz <keiths@redhat.com>
1659
1660 PR c++/13225
1661 * eval.c (evaluate_subexp_standard): Do not construct
1662 an array of types; pass the value array directly to
1663 find_overload_match.
1664 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1665 (rank_function): Take an array of values instead of types.
1666 (rank_one_type): Add struct value * parameter.
1667 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1668 (rank_function): For each argument, pass the argument's
1669 value to rank_one_type.
1670 (rank_one_type): Add VALUE parameter.
1671 If the parameter type is a pointer and the argument type
1672 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1673 VALUE is zero.
1674 Update all calls to rank_one_type, passing NULL for new
1675 VALUE parameter.
1676 * valarith.c (value_user_defined_cpp_op): Do not construct
1677 an array of types; pass the value array directly to
1678 find_overload_match.
1679 * valops.c (find_overload_method_list): Take an array of
1680 values instead of types.
1681 Save the type of OBJP for later use.
1682 Update calls to find_oload_champ, and find_oload_champ_namespace.
1683 (find_oload_champ_namespace): Take an array of values instead
1684 of types.
1685 (find_oload_champ_namespace_loop): Likewise.
1686 (find_oload_champ): Likewise.
1687 (classify_oload_match): Inspect all arguments
1688 until INCOMPATIBLE is found. Return the worst badness found
1689 otherwise.
1690 (compare_parameters): Update call to rank_one_type.
1691 * value.h (find_overload_match): Take an array of values instead
1692 of types.
1693
3957565a
JK
16942011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 Drop lazy lm_info reading.
1697 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1698 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1699 (lm_info_read): New function.
1700 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1701 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1702 lm_dynamic_from_link_map.
1703 (lm_next, lm_prev, lm_name): Remove.
1704 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1705 initialization incl. read_memory. No longer use lm_name.
1706 (svr4_free_so): Drop lm_info->lm freeing.
1707 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1708 explicit lm_addr and lm initialization.
1709 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1710 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1711 lm_name.
1712
cb08cc53
JK
17132011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 Paul Pluzhnikov <ppluzhnikov@google.com>
1715
1716 * defs.h (struct so_list): New forward declaration.
1717 (make_cleanup_free_so): New declaration.
1718 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1719 (svr4_free_so): Move the function here from downwards. Handle NULL
1720 so->lm_info.
1721 (svr4_free_library_list): New.
1722 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1723 Use more cleanups. Use new parameter ignore_first instead of
1724 ignore_first_link_map_entry.
1725 (svr4_current_sos): New variable ignore_first, initialize it. New
1726 variable back_to, use it for svr4_free_library_list protection.
1727 (svr4_free_so): Remove - move upwards.
1728 * utils.c: Include solist.h.
1729 (do_free_so, make_cleanup_free_so): New functions.
1730
22c05d8a
JK
17312011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 Fix internal error regression.
1734 * value.c (value_primitive_field): Handle value_optimized_out. Move
1735 packed bitfields comment.
1736
d930d06e
TT
17372011-10-13 Tom Tromey <tromey@redhat.com>
1738
1739 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1740 always released.
1741
2ff6b080
TT
17422011-10-13 Tom Tromey <tromey@redhat.com>
1743
1744 * python/py-type.c (typy_has_key): Make 'field' const.
1745
d6c5869f
LM
17462011-10-13 Luis Machado <lgustavo@codesourcery.com>
1747
1748 * remote.c (remote_save_trace_data): Invert comparison.
1749
a70633a2
LM
17502011-10-13 Luis Machado <lgustavo@codesourcery.com>
1751
1752 * tracepoint.c (trace_save_command): Use filename instead of
1753 args when printing.
1754
e103e986
JK
17552011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1758 if .size is 0.
1759
db24da6d
YQ
17602011-10-13 Yao Qi <yao@codesourcery.com>
1761
1762 PR gdb/12703
1763 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1764 whether insn is a 32-bit Thumb-2 instruction.
1765 (thumb_in_function_epilogue_p): Likewise.
1766 (thumb_get_next_pc_raw): Likewise.
1767 (arm_breakpoint_from_pc): Likewise.
1768
1d6edc3c
JK
17692011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1770
1771 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1772 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1773 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1774 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1775 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1776 zero DATA.
1777 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1778 validity.
1779 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1780 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1781 clear DATA on zero SIZE.
1782
adabb602
DE
17832011-10-12 Doug Evans <dje@google.com>
1784
1785 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1786 header->first_die_offset here. All callers updated.
1787
5048e516
JK
17882011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 Fix compatibility with texinfo versions older than 4.12.
1791 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1792 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1793 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1794 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1795 * configure: Regenerate.
1796 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1797 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1798 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1799
0574c78f
GB
18002011-10-12 Gary Benson <gbenson@redhat.com>
1801
1802 * breakpoint.h (pc_at_non_inline_function): Declare.
1803 * breakpoint.c (is_non_inline_function,
1804 pc_at_non_inline_function): New functions.
1805 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1806 if the stop is at a location where functions cannot be inlined.
1807
12d9289a
PA
18082011-10-12 Pedro Alves <pedro@codesourcery.com>
1809
1810 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1811 the core wanted them stopped, or if they now have a pending event
1812 to report.
ecf8e7f5
PA
1813 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1814 down to stop_and_resume_callback.
1815 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1816 having new pending events after calling linux_nat_filter_event.
12d9289a 1817
96408a79
SA
18182011-10-11 Sterling Augustine <saugustine@google.com>
1819
1820 * dwarf2read.c: Undo inadvertent changes in previous commit.
1821
9c6c53f7
SA
18222011-10-11 Sterling Augustine <saugustine@google.com>
1823
1824 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1825 logic.
1826
0e8aefe7
UW
18272011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1828
1829 * symfile.c (separate_debug_file_exists): Fix condition.
1830
349d1385
DM
18312011-10-11 David S. Miller <davem@davemloft.net>
1832
1833 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1834 static.
1835 * regcache.h (regcache_restore): Remove declaration.
1836
205c306f
DM
1837 * gdbarch.sh: New field 'long_long_align_bit'.
1838 * gdbarch.c, gdbarch.h: Regenerate.
1839 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1840 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1841
941b2081
JK
18422011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 Revert this part of:
1845 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1846 Support @entry in input expressions.
1847 * c-exp.y (ENTRY, unknown_cpp_name): New.
1848 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1849 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1850 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1851 (name_not_typename: ENTRY): New.
1852 (yylex): Recognize ENTRY.
1853
1854 Reimplement @entry in input expressions.
1855 * c-exp.y (ENTRY): New.
1856 (variable: name_not_typename ENTRY): New.
1857 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1858
3c4d7e12
PA
18592011-10-11 Pedro Alves <pedro@codesourcery.com>
1860
1861 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1862 parent and child's pids as soon as we detect a clone event.
1863 Adjust another debug message.
1864
ea23808b
PA
18652011-10-11 Pedro Alves <pedro@codesourcery.com>
1866
1867 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1868 not zombie instead of reading the whole file.
1869
904578ed
JK
18702011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 Fix separate debuginfo warning with "remote:" access.
1873 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1874 * symfile.c (get_file_crc): New function with the code moved from ...
1875 (separate_debug_file_exists): ... this function, specifically variables
1876 buffer and count. New variable verified_as_different, set it. Remove
1877 file_crc initialization. Verify also if both files are not the same
1878 manually, if needed.
1879
51370a33
YQ
18802011-10-11 Yao Qi <yao@codesourcery.com>
1881
1882 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1883 to get address.
1884
0838fb57
DE
18852011-10-10 Doug Evans <dje@google.com>
1886
1887 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1888 libthread_db when we load libpthread or the main symbol file.
1889 (thread_db_inferior_created): New function.
1890 (_initialize_thread_db): Attach inferior_created observer.
1891 * linux-nat.c (linux_child_post_attach): Remove call to
1892 check_for_thread_db.
1893 (linux_child_post_startup_inferior): Ditto.
1894 * objfiles.h (OBJF_MAINLINE): Define.
1895 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1896 allocate_objfile when appropriate.
1897
623bd5b7
UW
18982011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1899
1900 PR gdb/13218
1901 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1902 Remove unused variables.
1903 (get_linux_version): Remove function.
1904 (_initialize_arm_linux_nat): Do not call it.
1905
79395f92
PA
19062011-10-10 Pedro Alves <pedro@codesourcery.com>
1907
1908 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1909 new clone lwp if the core asked it to stop. Don't pass on
1910 unexpected signals to the new clone; leave them pending instead.
1911
eff3df78
PA
19122011-10-10 Pedro Alves <pedro@codesourcery.com>
1913
1914 * linux-nat.c (resume_lwp): Remove redundant debug output.
1915
4b60df3d
PA
19162011-10-10 Pedro Alves <pedro@codesourcery.com>
1917
1918 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1919 last_resume_kind before clearing it, and use the copy instead to
1920 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1921 resume_clear_callback in the non-stop path too.
1922
6501578c
YQ
19232011-10-09 Yao Qi <yao@codesourcery.com>
1924
1925 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1926 Honor OPTIONS and VAL's type.
1927 (common_val_print, value_print): Update to pass one more parameter.
1928
5a56e9c5
DE
19292011-10-09 Doug Evans <dje@google.com>
1930
1931 Add new "alias" command.
1932 * NEWS: Mention new command.
1933 * command.h (valid_user_defined_cmd_name_p): Declare.
1934 * defs.h (make_cleanup_dyn_string_delete): Declare.
1935 * utils.c: #include "dyn-string.h".
1936 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1937 * cli/cli-cmds.c: #include "dyn-string.h".
1938 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1939 (init_cli_cmds): Add new command.
1940 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1941
509f0fd9
JK
19422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1943
1944 Fix compatibility with older GCCs.
1945 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1946 * stack.c (read_frame_arg): Initialize val_deref.
1947
2bda9cc5
JK
19482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1949
1950 Entry values NEWS entries, DWARF disassembly support.
1951 * NEWS: New entry values entry.
1952 (set print entry-values, show print entry-values)
1953 (set debug entry-values, show debug entry-values): New entries.
1954 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1955 indent. Remove variable start. Move header printing out. Respect
1956 INDENT. Support DW_OP_GNU_entry_value.
1957 (locexpr_describe_location_1): Move the header printing here, extend
1958 the disassemble_dwarf_expression passed parameters.
1959
a471c594
JK
19602011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1961
1962 Display @entry parameter values even for references.
1963 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1964 coerce_ref_if_computed.
1965 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1966 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1967 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1968 existing push_dwarf_reg_entry_value call. Add new detection calling
1969 dwarf_block_to_dwarf_reg_deref. Update the error message.
1970 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1971 * dwarf2expr.h
1972 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1973 parameter deref_size, describe it in the comment.
1974 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1975 (dwarf_block_to_dwarf_reg_deref): New declaration.
1976 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1977 deref_size, describe it in the function comment. New variables
1978 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1979 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1980 describe it in the function comment. Fetch the alternative block
1981 accoring to DEREF_SIZE.
1982 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1983 (entry_data_value_free_closure, entry_data_value_funcs): New.
1984 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1985 outer_val, target_val, val and addr. Try to fetch and create also
1986 referenced value content.
1987 (pieced_value_funcs): NULL value for coerce_ref.
1988 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1989 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1990 coerce_ref_if_computed.
1991 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1992 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1993 * stack.c (read_frame_arg): Compare also dereferenced values.
1994 * value.c (value_computed_funcs): Make the parameter v const, use
1995 value_lval_const for it.
1996 (value_lval_const, coerce_ref_if_computed): New function.
1997 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1998 * value.h (struct lval_funcs): New field coerce_ref.
1999 (value_computed_funcs): Make the parameter v const.
2000 (value_lval_const, coerce_ref_if_computed): New declarations.
2001
36b11add
JK
20022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 Support @entry in input expressions.
2005 * c-exp.y (ENTRY, unknown_cpp_name): New.
2006 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2007 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2008 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2009 (name_not_typename: ENTRY): New.
2010 (yylex): Recognize ENTRY.
2011 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2012 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2013 Likewise.
2014 * parse.c (operator_length_standard): Likewise.
2015 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2016
3343315b
JK
20172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Display referenced values in backtraces.
2020 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2021 * stack.c (print_frame_arg): Likewise.
2022
ac71a68c
JK
20232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Make some lval_funcs methods to default on NULL.
2026 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2027 NULL.
2028 (value_assign): Check if lval_computed write method is NULL.
2029 * value.h (struct lval_funcs): Comment NULL values for read and write
2030 methods.
2031
e18b2753
JK
20322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 Display @entry parameter values (without references).
2035 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2036 New functions.
2037 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2038 New declarations.
2039 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2040 entry record.
2041 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2042 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2043 functions.
2044 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2045 (loclist_read_variable_at_entry): New function.
2046 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2047 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2048 DW_AT_location, call dwarf_block_to_sp_offset for it.
2049 * frame.h (print_entry_values_no, print_entry_values_only)
2050 (print_entry_values_preferred, print_entry_values_if_needed)
2051 (print_entry_values_both, print_entry_values_compact)
2052 (print_entry_values_default, print_entry_values): New declarations.
2053 (struct frame_arg): New field entry_kind.
2054 (read_frame_arg): New parameter entryargp.
2055 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2056 arg->entry_kind. Optionally print the `@entry' suffix.
2057 (list_args_or_locals): New variable entryarg, initialize it.
2058 Initialize also entry_kind of arg and entryarg. Conditionalize
2059 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2060 xfree for entryarg.error.
2061 * stack.c (print_entry_values_no, print_entry_values_only)
2062 (print_entry_values_preferred, print_entry_values_if_needed)
2063 (print_entry_values_both, print_entry_values_compact)
2064 (print_entry_values_default, print_entry_values_choices)
2065 (print_entry_values): New variables.
2066 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2067 print the `@entry' suffix, possibly in combination for
2068 print_entry_values_compact.
2069 (read_frame_arg): New parameter entryargp, new variables entryval,
2070 entryval_error and val_equal. Read in also entryargp, respect
2071 print_entry_values, compare the values using val_equal, fill in also
2072 argp->entry_kind (together with entryargp->entry_kind).
2073 (print_frame_args): New variable entryarg, initialize it.
2074 Conditionalize print_frame_arg for arg, add print_frame_arg for
2075 entryarg. Call xfree for entryarg.error.
2076 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2077 * symtab.h (struct symbol_computed_ops): New field
2078 read_variable_at_entry.
2079
93d86cef
JK
20802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2081
2082 Code reshuffle.
2083 * frame.h (struct frame_arg): New definition.
2084 (read_frame_arg): New declaration.
2085 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2086 (list_args_or_locals): ... the code here. New variable arg, call
2087 read_frame_arg and list_arg_or_local with it. Unify the
2088 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2089 arg.error.
2090 * stack.c (print_frame_arg): New functiom from the code of
2091 print_frame_args.
2092 (read_frame_arg): New function.
2093 (print_frame_args): Remove variable val. New variable arg, call
2094 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2095
2d6c5dc2
JK
20962011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 Protect entry values against self tail calls.
2099 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2100 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2101
111c6489
JK
21022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Recognize virtual tail call frames.
2105 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2106 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2107 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2108 * dwarf2-frame-tailcall.c: New file.
2109 * dwarf2-frame-tailcall.h: New file.
2110 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2111 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2112 REGS.PREV only after CIE execution.
2113 (struct dwarf2_frame_cache): New field tailcall_cache.
2114 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2115 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2116 parts, try to find entry_cfa_sp_offset. Call
2117 dwarf2_tailcall_sniffer_first.
2118 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2119 when appropriate.
2120 (dwarf2_frame_dealloc_cache): New function.
2121 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2122 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2123 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2124 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2125 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2126 * dwarf2loc.c (func_addr_to_tail_call_list)
2127 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2128 (call_site_find_chain_1, call_site_find_chain): New.
2129 * dwarf2loc.h (struct call_site_chain): New.
2130 (call_site_find_chain): New declaration.
2131 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2132 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2133 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2134 * stack.c (frame_info): Support also TAILCALL_FRAME.
2135
bb984ff1
JK
21362011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 Tail call sites reader implementation.
2139 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2140 fill in TYPE_TAIL_CALL_LIST.
2141 * gdbtypes.h (struct func_type): New field tail_call_list.
2142 (struct call_site): New field tail_call_next.
2143 (TYPE_TAIL_CALL_LIST): New definition.
2144
8e3b41a9
JK
21452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Implement basic support for DW_TAG_GNU_call_site.
2148 * block.c: Include gdbtypes.h and exceptions.h.
2149 (call_site_for_pc): New function.
2150 * block.h (call_site_for_pc): New declaration.
2151 * defs.h: Include hashtab.h.
2152 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2153 declarations.
2154 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2155 ctx_no_push_dwarf_reg_entry_value.
2156 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2157 (dwarf_block_to_dwarf_reg): New function.
2158 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2159 (ctx_no_push_dwarf_reg_entry_value): New function.
2160 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2161 push_dwarf_reg_entry_value.
2162 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2163 declarations.
2164 * dwarf2loc.c: Include gdbcmd.h.
2165 (dwarf_expr_ctx_funcs): New forward declaration.
2166 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2167 (dwarf_expr_reg_to_entry_parameter)
2168 (dwarf_expr_push_dwarf_reg_entry_value): New.
2169 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2170 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2171 (needs_dwarf_reg_entry_value): New function.
2172 (needs_frame_ctx_funcs): Install it.
2173 (_initialize_dwarf2loc): New function.
2174 * dwarf2loc.h (entry_values_debug): New declaration.
2175 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2176 (read_call_site_scope): New forward declaration.
2177 (process_full_comp_unit): Copy call_site_htab.
2178 (process_die): Support DW_TAG_GNU_call_site.
2179 (read_call_site_scope): New function.
2180 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2181 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2182 (cleanup_htab): Delete.
2183 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2184 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2185 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2186 FIELD_LOC_KIND_DWARF_BLOCK.
2187 * gdbtypes.h (enum field_loc_kind): New entry
2188 FIELD_LOC_KIND_DWARF_BLOCK.
2189 (struct main_type): New loc entry dwarf_block.
2190 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2191 (TYPE_FIELD_DWARF_BLOCK): New.
2192 * python/py-type.c: Include dwarf2loc.h.
2193 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2194 internal_error call on unknown FIELD_LOC_KIND.
2195 * symtab.h (struct symtab): New field call_site_htab.
2196 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2197 (core_addr_hash, core_addr_eq): New functions.
2198
b6cdc2c1
JK
21992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2200
2201 Code reshuffle.
2202 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2203 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2204 calling_convention under func_stuff there.
2205 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2206 (init_type) <TYPE_CODE_FUNC>: Likewise.
2207 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2208 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2209 * gdbtypes.h (enum type_specific_kind): Change
2210 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2211 (struct main_type) <type_specific>: Change calling_convention to
2212 func_stuff. Move calling_convention to ...
2213 (struct func_type): ... this new struct.
2214 (INIT_FUNC_SPECIFIC): New #define.
2215 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2216
181cebd4
JK
22172011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2220 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2221 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2222 ctx->ref_addr_size. Handle its invalid value.
2223 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2224 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2225 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2226 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2227 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2228 (dwarf2_per_cu_ref_addr_size): New function.
2229
c471e790
JK
22302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 Code cleanup.
2233 * dwarf2read.c (per_cu_header_read_in): New function.
2234 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2235 variables cu_header_local and cu_headerp.
2236
741f5e3c
JK
22372011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2238
2239 Fix initial language detection with -readnow.
2240 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2241 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2242 searches only for global symbols.
2243
a73d2258
JK
22442011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2245
2246 Fix printed anonymous struct name.
2247 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2248 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2249 (anonymous_struct_prefix): New function.
2250 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2251 (dwarf2_name): Strip for anonymous structs any prefixes.
2252
749fd4ea
DE
22532011-10-07 Doug Evans <dje@google.com>
2254
1fa57852
DE
2255 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2256 `replace'.
2257
690a4937
DE
2258 * python/lib/gdb/printing.py: Whitespace cleanup.
2259
749fd4ea
DE
2260 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2261 warning.
2262
4c38200f
PA
22632011-10-07 Pedro Alves <pedro@codesourcery.com>
2264
2265 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2266 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2267 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2268 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2269 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2270 (arm_linux_remove_watchpoint): Adjust.
2271 * i386-linux-nat.c (i386_linux_dr_set_control)
2272 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2273 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2274 (ia64_linux_remove_watchpoint): Adjust.
2275 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2276 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2277 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2278 (ppc_linux_insert_mask_watchpoint)
2279 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2280 (ppc_linux_remove_watchpoint): Adjust.
2281 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2282 Adjust.
2283
b7ff339d
CV
22842011-10-07 Corinna Vinschen <vinschen@redhat.com>
2285
2286 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2287 (clear_win32_environment): New function for Cygwin to clear out
2288 Win32 environment.
2289 (windows_create_inferior): Prepare new environment from in_env
2290 for Cygwin, too.
2291
f287c1f3
PM
22922011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2293
5631e596 2294 PR python/13264
f287c1f3
PM
2295 * python/py-value.c (valpy_call): Check that arguments are
2296 a tuple.
2297 (is_intlike): Remove call to CHECK_TYPEDEF.
2298 (valpy_nonzero): Catch GDB exceptions.
2299 (valpy_absolute): Ditto.
2300 (valpy_lazy_string): Ditto.
2301 (valpy_call): Ditto.
2302 (valpy_get_is_optimized_out): Ditto.
2303 (valpy_long): Ditto.
2304 (valpy_float): Ditto.
2305 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2306 (valpy_richcompare): Ditto.
2307
03583c20
UW
23082011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2309
2310 * inferior.h (disable_randomization): Declare.
2311 * infrun.c (disable_randomization): New global variable.
2312 (show_disable_randomization): New function.
2313 (set_disable_randomization): Likewise.
2314 (_initialize_infrun): Install set/show disable-randomization
2315 commands.
2316 * linux-nat.c (disable_randomization): Remove.
2317 (show_disable_randomization): Likewise.
2318 (set_disable_randomization): Likewise.
2319 (_initialize_linux_nat): No longer install set/show
2320 disable-randomization commands here.
2321 (linux_nat_supports_disable_randomization): New function.
2322 (linux_nat_add_target): Install it.
2323 * remote.c (PACKET_QDisableRandomization): New enum value.
2324 (remote_protocol_packets): Support QDisableRandomization.
2325 (_initialize_remote): Likewise.
2326 (remote_supports_disable_randomization): New function.
2327 (init_remote_ops): Install it.
2328 (extended_remote_supports_disable_randomization): New function.
2329 (init_extended_remote_ops): Install it.
2330 (extended_remote_disable_randomization): New function.
2331 (extended_remote_create_inferior_1): Call it.
2332 * target.h (struct target_ops): Add to_supports_disable_randomization.
2333 (target_supports_disable_randomization): Add prototype.
2334 * target.c (target_supports_disable_randomization): New function.
2335 (find_default_supports_disable_randomization): Likewise.
2336 (init_dummy_target): Install it.
2337
20c168b5
KP
23382011-10-07 Kevin Pouget <kevin.pouget@st.com>
2339
2340 Allow Python notification of new object-file loadings.
2341 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2342 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2343 Add build rule for this file.
2344 * python/py-event.h (emit_new_objfile_event): New prototype.
2345 (newobjfile): New Python event emitter.
2346 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2347 Python event registry.
2348 * python/py-inferior.c: Include objfiles.h
2349 (python_new_objfile): New function.
2350 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2351 observers.
2352 * python/py-newobjfileevent.c: New file.
2353 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2354 prototype.
2355 * python/python.c (_initialize_python): Add
2356 gdbpy_initialize_new_objfile_event call.
2357 * NEWS: Add item for new Python event "gdb.newobjfile"
2358
b1c8db38
TG
23592011-10-05 Tristan Gingold <gingold@adacore.com>
2360
2361 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2362 Extract the ravenscar task name from the symbol for the atcb.
2363
0dab82e9
PK
23642011-10-04 Paul Koning <paul_koning@dell.com>
2365
2366 * python/py-type.c (typy_make_iter): Add forward declaration.
2367 (typy_fields_items): Use the gdb.Type iterator.
2368
84ad80e6
PK
23692011-10-04 Paul Koning <paul_koning@dell.com>
2370
2371 * NEWS: Add entry for Python gdb.Type mapping methods.
2372
cb6be26b
KP
23732011-10-04 Kevin Pouget <kevin.pouget@st.com>
2374
2375 PR python/12691: Add the inferior to Python exited event
2376 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2377 to exited_event.
2378 * python/py-event.h (emit_exited_event): Likewise
2379 * python/-inferior.c (python_inferior_exit): Likewise
2380
6005b210
JB
23812011-10-03 Joel Brobecker <brobecker@adacore.com>
2382
2383 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2384 in output of -ada-task-info GDB/MI command.
2385
75082e8c
JB
23862011-10-03 Joel Brobecker <brobecker@adacore.com>
2387
2388 * ada-lang.h (struct inferior): Declare.
2389 (print_ada_task_info): Add declaration.
2390 * ada-tasks.c (print_ada_task_info): Make non-static.
2391 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2392 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2393 * mi/mi-main.c: #include "ada-lang.h".
2394 (mi_cmd_list_features): Add "ada-task-info" to the list
2395 of supported features.
2396 (mi_cmd_ada_task_info): New function.
2397
7ed7d719
JB
23982011-10-03 Joel Brobecker <brobecker@adacore.com>
2399
2400 * python/python.c (python_run_simple_file): New function.
2401 (source_python_script, source_python_script_for_objfile):
2402 Replace call to PyRun_SimpleFile by call to
2403 python_run_simple_file.
2404
3fcaed38
PK
24052011-10-03 Paul Koning <paul_koning@dell.com>
2406
2407 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2408 (value_to_value_object): Fetch value if it was lazy.
2409
8e5c319d
JK
24102011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 Code cleanup.
2413 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2414 Rearrange the code for it.
2415
dd11a36c
JB
24162011-10-02 Joel Brobecker <brobecker@adacore.com>
2417
2418 * breakpoint.c (bkpt_print_recreate): Add call to
2419 print_recreate_thread.
2420
723b724b
MF
24212011-09-29 Mike Frysinger <vapier@gentoo.org>
2422
2423 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2424 PTRACE_GETFDPIC_INTERP): Define.
2425
412946b6
YQ
24262011-09-28 Yao Qi <yao@codesourcery.com>
2427
2428 * symfile.c (add_symbol_file_command): Update message on usage.
2429
a73bb892
PK
24302011-09-28 Paul Koning <paul_koning@dell.com>
2431
2432 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2433 (typy_length, typy_get, typy_has_key, typy_make_iter)
2434 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2435 (typy_iterator_iter, typy_iterator_iternext)
2436 (typy_iterator_dealloc): New functions to implement standard
2437 Python mapping methods on gdb.Type object.
2438 (gdb.TypeIterator): New Python type.
2439 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2440
fe10a582
DM
24412011-09-28 David S. Miller <davem@davemloft.net>
2442
2443 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2444 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2445 * sparc-tdep.c (sparc_complex_floating_p): New function.
2446 (sparc32_store_arguments): Handle complex floats.
2447 (sparc32_extract_return_value): Likewise.
2448 (sparc32_store_return_value): Likewise.
2449 (sparc32_stabs_argument_has_addr): Likewise.
2450 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2451 (sparc64_store_floating_fields): Handle complex floats.
2452 (sparc64_store_arguments): Likewise.
2453 (sparc64_store_return_value): Likewise.
2454
c93dbcba
EZ
24552011-09-28 Eli Zaretskii <eliz@gnu.org>
2456
2457 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2458 before the change on 2006-12-09.
2459 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2460 generates the environment block for CreateProcessA, modulo the
2461 Cygwin-specific parts that are not needed here.
2462
f00c55f8
TG
24632011-09-27 Tristan Gingold <gingold@adacore.com>
2464
2465 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2466 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2467 (darwin_solib_get_all_image_info_addr_at_init): New function.
2468 (darwin_solib_read_all_image_info_addr): Likewise.
2469 (darwin_solib_create_inferior_hook): Use the above two functions.
2470 * darwin-nat.c (darwin_execvp): Renames retval to res.
2471 (darwin_read_write_inferior): Update comment.
2472 (darwin_read_dyld_info): New function.
2473 (darwin_xfer_partial): Handle DYLD_INFO.
2474
6710bf39
SS
24752011-09-27 Stan Shebs <stan@codesourcery.com>
2476
2477 Add return address collection for tracepoints.
2478 * tracepoint.c (encode_actions_1): Add case for $_ret.
2479 (validate_actionline): Check for $_ret.
2480 (trace_dump_actions): Ditto.
2481 * ax-gdb.h (gen_trace_for_return_address): Declare.
2482 * ax-gdb.c: Include arch-utils.h.
2483 (gen_trace_for_return_address): New function.
2484 (agent_command): Add return address special case.
2485 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2486 (amd64_gen_return_address): New function.
2487 (amd64_init_abi): Call it.
2488 * i386-tdep.c: Include ax.h and ax-gdb.h.
2489 (i386_gen_return_address): New function.
2490 (i386_init_abi): Call it.
2491 * arch-utils.h (default_gen_return_address): Declare.
2492 * arch-utils.c (default_gen_return_address): New function.
2493 * gdbarch.sh (gen_return_address): New method.
2494 * gdbarch.h, gdbarch.c: Regenerate.
2495
e04e5beb
JM
24962011-09-23 Joseph Myers <joseph@codesourcery.com>
2497
2498 PR gdb/13079
2499 * i386-tdep.c (i386_frame_align): New.
2500 (i386_gdbarch_init): Use i386_frame_align.
2501
f3d6df6d
YQ
25022011-09-23 Yao Qi <yao@codesourcery.com>
2503
2504 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2505 to get address.
2506
e69860f1
TG
25072011-09-22 Tristan Gingold <gingold@adacore.com>
2508
2509 * fork-child.c (fork_inferior): Add exec_fun parameter.
2510 Call exec_fun or execvp.
2511 * inferior.h: Adjust prototype.
2512 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2513 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2514 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2515 * procfs.c (procfs_create_inferior): Ditto.
2516 * darwin-nat.c (darwin_execvp): New function.
2517 (darwin_create_inferior): Use it.
2518
4b51d87b
YQ
25192011-09-22 Yao Qi <yao@codesourcery.com>
2520
2521 * infrun.c (context_switch): Print debug message when switching to
2522 a different thread.
2523
56b9d9ac
UW
25242011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2525
2526 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2527 complex and vector types.
2528 (s390_return_value_convention): Likewise.
2529
2530 (s390_value_from_register): Call check_typedef.
2531 (extend_simple_arg): Likewise.
2532 (alignment_of): Likewise.
2533 (s390_push_dummy_call): Likewise.
2534 (s390_return_value): Likewise.
2535
b2cd6b29
JM
25362011-09-21 Joseph Myers <joseph@codesourcery.com>
2537
2538 * event-top.c (async_disconnect): If an exception is thrown from
2539 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2540 catch_errors.
2541 * top.c (quit_cover): Return void and take no arguments.
2542 * top.h (quit_cover): Update prototype.
2543
67ba4e42
JM
25442011-09-20 Joseph Myers <joseph@codesourcery.com>
2545
2546 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2547 current_uiout, not uiout.
2548
562f943b
DE
25492011-09-19 Doug Evans <dje@google.com>
2550
2551 * python/py-auto-load.c (source_section_scripts): Fix file
2552 descriptor leak.
2553 * python/python.c (source_python_script_for_objfile): Tweak comments.
2554
34518530
YQ
25552011-09-18 Yao Qi <yao@codesourcery.com>
2556 Ulrich Weigand <ulrich.weigand@linaro.org>
2557
2558 Support displaced stepping for Thumb 16-bit insns.
2559 * arm-tdep.c (THUMB_NOP) Define.
2560 (thumb_copy_unmodified_16bit): New.
2561 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2562 (thumb_copy_alu_reg): New.
2563 (arm_copy_svc): Move some common code to ...
2564 (install_svc): ... here. New.
2565 (thumb_copy_svc): New.
2566 (install_pc_relative): New.
2567 (thumb_copy_pc_relative_16bit): New.
2568 (thumb_decode_pc_relative_16bit): New.
2569 (thumb_copy_16bit_ldr_literal): New.
2570 (thumb_copy_cbnz_cbz): New.
2571 (cleanup_pop_pc_16bit_all): New.
2572 (thumb_copy_pop_pc_16bit): New.
2573 (thumb_process_displaced_16bit_insn): New.
2574 (thumb_process_displaced_32bit_insn): New.
2575 (thumb_process_displaced_insn): process thumb instruction.
2576
2577 Support displaced stepping for Thumb 32-bit insns.
2578 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2579 (thumb2_copy_preload): New.
2580 (thumb2_copy_copro_load_store): New.
2581 (thumb2_copy_b_bl_blx): New.
2582 (thumb2_copy_alu_imm): New.
2583 (thumb2_copy_load_reg_imm): New.
2584 (thumb2_copy_load_literal): New
2585 (thumb2_copy_block_xfer): New.
2586 (thumb_32bit_copy_undef): New.
2587 (thumb_32bit_copy_unpred): New.
2588 (thumb2_decode_ext_reg_ld_st): New.
2589 (thumb2_decode_svc_copro): New.
2590 (decode_thumb_32bit_store_single_data_item): New.
2591 (thumb_copy_pc_relative_32bit): New.
2592 (thumb_decode_pc_relative_32bit): New.
2593 (decode_thumb_32bit_ld_mem_hints): New.
2594 (thumb2_copy_table_branch): New
2595 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2596 instructions.
2597
2b16b2e3
YQ
25982011-09-18 Yao Qi <yao@codesourcery.com>
2599
2600 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2601 (install_b_bl_blx): Likewise.
2602
0f6f04ba
YQ
26032011-09-17 Yao Qi <yao@codesourcery.com>
2604
2605 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2606 (install_load_store): ... this. New.
2607 Change parameter BYTE to SIZE.
2608 (arm_copy_ldr_str_ldrb_strb): Update caller.
2609 (arm_decode_ld_st_word_ubyte): Update caller.
2610
e2d96639
YQ
26112011-09-17 Yao Qi <yao@codesourcery.com>
2612
2613 * infrun.c (displaced_step_fixup): Move some code ...
2614 (displaced_step_restore): ... here. New function.
2615 (handle_inferior_event): Cleanup displaced stepping state for both
2616 child and parent when get forked or vforked event.
2617 * regcache.c (get_thread_arch_aspace_regcache): New function.
2618 get_thread_arch_regcache (): Call it.
2619
a8123151
JB
26202011-09-16 Joel Brobecker <brobecker@adacore.com>
2621
2622 * ada-tasks.c (print_ada_task_info): New function, merging
2623 short_task_info and info_tasks together. Reimplement using
2624 ui-out instead of printing to stdout directly. Move the code
2625 building and checking the task list here, instead of leaving it
2626 in info_tasks_command.
2627 (info_task): Move the code building and checking the task
2628 list here, instead of leaving it in info_tasks_command.
2629 (info_tasks_command): Delete code building and checking
2630 the task list - moved elsewhere. Update calls to info_tasks
2631 and info_task.
2632
fbf06824
JB
26332011-09-16 Joel Brobecker <brobecker@adacore.com>
2634
2635 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2636
34a0bc90
JB
26372011-09-16 Joel Brobecker <brobecker@adacore.com>
2638
2639 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2640
79779fa9
JB
26412011-09-16 Joel Brobecker <brobecker@adacore.com>
2642
2643 * ada-lang.h (ada_build_task_list): Remove parameter
2644 `warn_if_null'.
2645 * ada-tasks.c (ada_build_task_list): Remove parameter
2646 `warn_if_null'. Adjust implementation and documentation.
2647 (valid_task_id, ada_get_environment_task)
2648 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2649 (info_tasks_command): Adjust implementation.
2650 (task_command): Likewise.
2651 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2652 to ada_build_task_list.
2653
e225eb91
JB
26542011-09-16 Joel Brobecker <brobecker@adacore.com>
2655
2656 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2657 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2658 (ada_tasks_inferior_data_handle): New static global.
2659 (get_ada_tasks_inferior_data): New function.
2660 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2661 (ada_get_environment_task, iterate_over_live_ada_tasks)
2662 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2663 Adjust.
2664 (ada_set_current_inferior_known_tasks_addr): New function.
2665 (read_known_tasks, ada_build_task_list, short_task_info)
2666 (info_tasks, info_task, info_tasks_command, task_command_1)
2667 (task_command, ada_task_list_changed): Adjust.
2668 (ada_tasks_invalidate_inferior_data): New function.
2669 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2670 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2671 * ada-lang.h (struct inferior): Add declaration.
2672 (ada_task_list_changed): Update profile.
2673 * remote-wtx-pd.c: #include "inferior.h".
2674 (switch_to_pd_internal): Update call to ada_task_list_changed.
2675
6da9ca05
JB
26762011-09-16 Joel Brobecker <brobecker@adacore.com>
2677
2678 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2679 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2680 (atcb_fieldno): Delete these static globals.
2681 (struct ada_tasks_pspace_data): New struct.
2682 (ada_tasks_pspace_data_handle): New static global.
2683 (get_ada_tasks_pspace_data): New function.
2684 (ada_tasks_invalidate_pspace_data): New function.
2685 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2686 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2687 (_initialize_tasks): Create this module's per-progspace
2688 data handle.
2689
dccd3cbd
JB
26902011-09-16 Joel Brobecker <brobecker@adacore.com>
2691
2692 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2693
f877b031
TG
26942011-09-16 Tristan Gingold <gingold@adacore.com>
2695
2696 * fork-child.c (fork_inferior): Update comment. Use alloca
2697 instead of xmalloc for argv. Move len and shell_command
2698 declarations in the block where they are used.
2699 Only call execvp. Factorize failure code.
2700
ae0c443d
JK
27012011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2702
2703 Code cleanup.
2704 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2705 `exp_element' instead of an element of the same and make the function
2706 static.
2707 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2708 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2709 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2710 Change argument of `write_exp_elt' function call.
2711 Remove extra spaces from comments.
2712 * parser-defs.h (write_exp_elt): Remove prototype.
2713
5af65ec0
PK
27142011-09-15 Paul Koning <paul_koning@dell.com>
2715
2716 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2717 count of item appended to list.
2718 * python/py-type.c (typy_fields): Likewise.
2719
72be8ccc
PK
27202011-09-15 Paul Koning <paul_koning@dell.com>
2721
883640a8 2722 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2723
92f6badc
KP
27242011-09-15 Kevin Pouget <kevin.pouget@st.com>
2725
2726 PR threads/12628
2727 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2728 processes with multiple threads.
2729 (inf_has_multiple_thread_cb): New function.
2730 (inf_has_multiple_threads): New function.
2731
0672bf41 27322011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2733
2734 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2735 * python/py-inferior.c (GdbMethods): New Python method definition.
2736
6839b47f
KP
27372011-09-15 Kevin Pouget <kevin.pouget@st.com>
2738
2739 Handle multiple breakpoint hits in Python interface:
2740 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2741 variable to breakpoints.
2742 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2743 bps instead of single breakpoint. Fix some space typos.
2744 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2745 variable to breakpoints.
2746
672f9b60
KP
27472011-09-15 Kevin Pouget <kevin.pouget@st.com>
2748
2749 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2750 note if the breakpoint is internal.
2751
43675ae4
KP
27522011-09-15 Kevin Pouget <kevin.pouget@st.com>
2753
0672bf41 2754 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2755
15148d6a
PA
27562011-09-14 Pedro Alves <pedro@codesourcery.com>
2757
2758 * infrun.c (prepare_for_detach, wait_for_inferior)
2759 (fetch_inferior_event): Don't flush the register cache.
2760 * remote.c (struct stop_reply) <regcache>: Add comment.
2761
d83e736b
JK
27622011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2763
2764 Remove excessive DWARF expressions memory duplication.
2765 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2766 for block.data.
2767 (indirect_pieced_value): Remove variable result. Remove variable
2768 back_to and its use for baton.data.
2769 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2770 block.data.
2771 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2772 Update the function comment.
2773
c65b3e0d
PA
27742011-09-13 Pedro Alves <pedro@codesourcery.com>
2775
2776 * inferior.h (ALL_INFERIORS): New.
2777 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2778 for a stopped thread.
2779 (thread_db_find_new_threads): Look for threads in all inferiors.
2780
a1398e0c
PA
27812011-09-13 Pedro Alves <pedro@codesourcery.com>
2782
2783 * breakpoint.c (update_watchpoint): Handle the case of the
2784 watchpoint to update not being in the breakpoint list yet.
2785 (hw_watchpoint_use_count): New, factored out from
2786 hw_watchpoint_used_count.
2787 (hw_watchpoint_used_count): Rename to ...
2788 (hw_watchpoint_used_count_others): ... this. Add `except'
2789 parameter. Don't count resources of `except'. Use
2790 hw_watchpoint_use_count.
2791
30596231
PA
27922011-09-13 Pedro Alves <pedro@codesourcery.com>
2793
2794 * gdbthread.h (enum thread_state): Moved here.
2795 (struct thread_info): Rename `executing_' field to `executing' and
2796 `state_' to `state'.
2797 * thread.c (enum thread_state): Moved to gdbthread.h.
2798 (new_thread, add_thread_silent, delete_thread_1)
2799 (any_live_thread_of_process, thread_alive, set_running)
2800 (set_running, is_thread_state, any_running, is_executing)
2801 (set_executing, finish_thread_state, print_thread_info)
2802 (do_captured_thread_select): Adjust.
2803
bede5f5f
JK
28042011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2807 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2808
4801a9a3
PA
28092011-09-12 Pedro Alves <pedro@codesourcery.com>
2810 Matt Rice <ratmice@gmail.com>
2811
2812 PR gdb/13175
2813
2814 * interps.c (struct interp) <interpreter_out>: Delete field.
2815 (interp_new): Remove the data and uiout parameters and adjust.
2816 (interp_set): Only set the current_uiout from the interpreter's
2817 uiout after initializing the interpreter. Adjust call to
2818 init_proc.
2819 (interp_ui_out): Adjust to call procs->ui_out_proc.
2820 (interp_data, interp_name): New.
2821 * interps.h (interp_init_ftype): Add `self' parameter.
2822 (interp_ui_out_ftype): New typedef.
2823 (struct interp_procs) <ui_out_proc>: New method pointer.
2824 (interp_new): Remove the data and uiout parameters.
2825 (interp_data, interp_name): Declare.
2826 * tui/tui-interp.c (tui_init): Adjust prototype.
2827 (tui_ui_out): New.
2828 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2829 tui_out here. Adjust call to interp_new.
2830 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2831 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2832 (cli_ui_out): New.
2833 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2834 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2835 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2836 Initialize mi->uiout depending on the mi_version as extracted from
2837 the interpreter's name.
2838 (mi_ui_out): New.
2839 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2840 interp_new. Don't allocate the ui_out's of the interpreters here.
2841
d0afda03 28422011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2843
d0afda03 2844 * solib.c (solib_used): New function.
59145f8c
AR
2845 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2846 by another so_list object before freeing it.
2847
bdaf8d4a
JK
28482011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2849
2850 Code cleanup.
2851 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2852 values.
2853
df15bd07
JK
28542011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 Code cleanup.
2857 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2858 (amd64_skip_xmm_prologue): ... this new function. Describe its
2859 parameters. No longer use amd64_prologue_line_bug.
2860 * defs.h (producer_is_gcc_ge_4): New declaration.
2861 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2862 (process_full_comp_unit): Update its caller. Remove
2863 amd64_prologue_line_bug initialization.
2864 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2865 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2866
25289eb2
PA
28672011-09-09 Pedro Alves <pedro@codesourcery.com>
2868
2869 * linux-nat.h (enum resume_kind): New.
2870 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2871 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2872 resume_stop on the new lwp.
25289eb2
PA
2873 (add_lwp): Set last_resume_kind as resume_continue by default.
2874 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2875 (resume_lwp): New, factored out from resume_callback. Also check
2876 for pending status in lp->waitstatus.
2877 (resume_callback): Reimplement.
2878 (resume_clear_callback): Set last_resume_kind as resume_stop.
2879 (resume_set_callback): Set last_resume_kind as resume_continue.
2880 (linux_nat_resume, linux_handle_extended_wait): Set
2881 last_resume_kind.
2882 (running_callback): Also check lp->waitstatus for pending events.
2883 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2884 is resume_step.
2885 (stop_and_resume_callback): Don't re-resume if the core wanted the
2886 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2887 using an invalidated pointer.
2888 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2889 SIGSTOPs if the core wanted the LWP to stop.
2890 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2891 wanted the lwp to stop. If the core wanted the lwp to stop, and
2892 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2893 of TARGET_SIGNAL_STOP.
2894 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2895 here. Instead, signal the lwp, and set the last_resume_kind to
2896 resume_stop.
2897
f687d035
PA
28982011-09-09 Pedro Alves <pedro@codesourcery.com>
2899
2900 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2901 -1 (error), if the lwp exits right after attaching.
2902
bc587a6b
DE
29032011-09-08 Doug Evans <dje@google.com>
2904
63d97a20
DE
2905 * py-cmd.c: Some minor formatting fixes.
2906 (gdbpy_parse_command_name): Rename text arg to name, make const.
2907 All callers updated.
2908 * python-internal.h (gdbpy_parse_command_name): Update.
2909
bc587a6b
DE
2910 * cli/cli-decode.c (add_cmd): Add comment.
2911
08711b9a
JK
29122011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 PR breakpoints/12435
2915 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2916 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2917 * dwarf2read.c (process_full_comp_unit): Initialize
2918 amd64_prologue_line_bug.
2919 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2920
b2e7f004
JK
29212011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 Fix TUI screen corruption.
2924 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2925 batch_flag.
2926
8afd712c
JK
29272011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2928
2929 * findvar.c (read_var_value): Never return NULL, throw an error
2930 instead. Update the function comment. State symbol name in the error
2931 messages.
2932 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2933 read_var_value.
2934 * stack.c (print_frame_args): Likewise.
2935 * valops.c (value_of_variable): Likewise.
2936
b99b5f66
JK
29372011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2938
2939 * stack.c (print_frame_args): New variable except. Wrap
2940 read_var_value and common_val_print into TRY_CATCH.
2941
85bc8cb7
JK
29422011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2943
2944 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2945 caller to value_of_this.
2946 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2947 Twice.
2948 * valops.c (value_of_this): Remove parameter complain and variable ret.
2949 Update function comment. Never return NULL by this code.
2950 (value_of_this_silent): New function.
2951 * value.h (value_of_this): Remove parameter complain.
2952 (value_of_this_silent): New declaration.
2953
ede1849f
YQ
29542011-09-07 Yao Qi <yao@codesourcery.com>
2955
2956 * gdbthread.h (struct thread_info): Remove fields
2957 `stepping_through_solib_after_catch' and
2958 `stepping_through_solib_catchpoints'.
2959 * infrun.c (init_thread_stepping_state): Update.
2960 (process_event_stop_test, currently_stepping): Update.
2961 (currently_stepping_or_nexting_callback): Update.
2962
6aa27652
YQ
29632011-09-07 Yao Qi <yao@codesourcery.com>
2964
2965 * gdbthread.h (struct thread_info): Comment on field
2966 `step_after_step_resume_breakpoint'.
2967
00db5b94
PA
29682011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2969
2970 * remote.c (remote_console_output): Reindent.
2971
861152be
LM
29722011-09-06 Luis Machado <lgustavo@codesourcery.com>
2973
2974 * frame.c (has_stack_frames): Check for currently selected
2975 traceframe.
2976
ab821bc6
PA
29772011-09-06 Pedro Alves <pedro@codesourcery.com>
2978
2979 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2980 (set_async_annotation_level, set_async_prompt, pop_prompt)
2981 (push_prompt, new_async_prompt): Delete declarations.
2982 * top.h (get_prompt, set_prompt): Change prototype.
2983 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2984 declarations.
2985 * top.c (command_loop):
2986 (top_prompt): New global.
2987 (get_prefix, set_prefix, get_suffix, ): Delete.
2988 (get_prompt, set_prompt): Rewrite.
2989 (show_new_async_prompt): Rename to ...
2990 (show_prompt): ... this.
2991 (init_main): Adjust. Don't handle --annotate=2 here.
2992 * event-top.c (new_async_prompt): Delete.
2993 (the_prompts): Delete.
2994 (more_to_come): Make static.
2995 (display_gdb_prompt): Use top_level_prompt() to compute the top
2996 level prompt, and don't notify the before_prompt observers
2997 directly here. Always trick readline into not trying to display
2998 the prompt if sync_execution and displaying the primary prompt.
2999 If displaying a local/secondary prompt, always show it, even if
3000 sync_execution is set.
3001 (change_annotation_level): Delete.
3002 (top_level_prompt): New, based on change_annotation_level.
3003 (push_prompt, pop_prompt): Delete.
3004 (async_disable_stdin): No longer pushes prompt.
3005 (command_line_handler): No longer pushes or pops prompt. If more
3006 input is expected, call display_gdb_prompt with an explicit empty
3007 prompt.
3008 (async_stop_sig): Adjust.
3009 (set_async_annotation_level, set_async_prompt): Delete.
3010 * python/python.c (before_prompt_hook): Adjust.
3011
f1d90504
PA
30122011-09-05 Pedro Alves <pedro@codesourcery.com>
3013
3014 PR cli/13110
3015
3016 * infrun.c (fetch_inferior_event): Check if there's a selected
3017 thread before checking if the selected thread is executing.
3018
0f641c01
PA
30192011-09-05 Pedro Alves <pedro@codesourcery.com>
3020
3021 * inf-loop.c (execute_command): Don't check if the current thread
3022 if running before synchronously waiting for command completion.
3023 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3024 here.
3025 (normal_stop): Call async_enable_stdin here.
3026 * inf-loop.c (inferior_event_handler): Don't call
3027 async_enable_stdin, nor handle "set exec-done-display" here.
3028
30368258 30292011-09-04 Joel Brobecker <brobecker@adacore.com>
3030
3031 GDB 7.3.1 released.
3032
31916278
JB
30332011-09-04 Joel Brobecker <brobecker@adacore.com>
3034
3035 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3036
e8d56f18
JB
30372011-09-04 Joel Brobecker <brobecker@adacore.com>
3038
3039 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3040
5dd05d8c
JK
30412011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3042
3043 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3044
7d8e6458 30452011-09-02 Matt Rice <ratmice@gmail.com>
3046
3047 PR gdb/10720
3048 * event-top.c (cli_command_loop): Replace readline setup with
3049 direct call to display_gdb_prompt.
3050 (display_gdb_prompt): Do not call observer mechanism during
3051 synchronous execution.
3052
84636d28
PA
30532011-09-02 Pedro Alves <pedro@codesourcery.com>
3054
3055 * linux-nat.c (in_pid_list_p): New.
3056 (linux_record_stopped_pid): Delete.
3057 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3058 already attached to the LWP. Return an indication if so.
3059 (linux_nat_filter_event): Adjust.
3060 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3061 returning an indication to ignore this thread.
3062
b4a14fd0
PA
30632011-09-02 Pedro Alves <pedro@codesourcery.com>
3064
3065 * top.c: Include interps.h.
3066 (execute_command): If the target can async, but the interpreter is
3067 in sync mode, synchronously wait for the command to finish before
3068 returning.
3069 (execute_command_to_string): Force the interpreter to sync mode.
3070 * infrun.c: Include interps.h.
3071 (fetch_inferior_event): Don't restore the prompt yet if the
3072 interpreter is in sync mode.
3073 * interps.c (interpreter_async): New global.
3074 * interps.h (interpreter_async): Declare.
3075 * inf-loop.c: Include interps.h.
3076 (inferior_event_handler): Don't print the language change or run
3077 breakpoint commands yet if the interpreter in is sync mode.
3078 * main.c (captured_command_loop): Flip the interpreter to async
3079 mode.
3080 * cli/cli-script.c: Include interps.h.
3081 (execute_user_command, while_command, if_command): Force the
3082 interpreter to sync mode.
3083 * python/python.c: Include interps.h.
3084 (python_command, execute_gdb_command): Force the interpreter to
3085 sync mode.
3086
c709acd1
PA
30872011-09-02 Pedro Alves <pedro@codesourcery.com>
3088
3089 * value.c (show_convenience): Catch errors thrown while printing
3090 each internal variable.
3091 * infrun.c (validate_siginfo_access): New function.
3092 (siginfo_value_read, siginfo_value_write): Call it.
3093
9655e943
JK
30942011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3095
3096 Revert:
3097 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3099 attribute.
3100
cb457ae2
YQ
31012011-08-29 Yao Qi <yao@codesourcery.com>
3102
3103 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3104 (cmp_name): New.
3105 (enable_break2): Update caller.
3106 * solib-frv.c (bfd_lookup_symbol): Removed.
3107 (cmp_name): New.
3108 (enable_break2): Update caller.
3109 * solib-pa64.c (bfd_lookup_symbol): Removed.
3110 (cmp_name): New.
3111 * solib-svr4.c (bfd_lookup_symbol): Removed.
3112 (cmp_name_and_sec_flags): New.
3113 (enable_break): Update caller.
3114 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3115 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3116 (gdb_bfd_lookup_symbol): New.
3117 * solib.h: Functions declarations.
3118
83d1a36a
YQ
31192011-08-29 Yao Qi <yao@codesourcery.com>
3120
3121 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3122 and solib-dsbt.o.
3123
c04b3e8f
JK
31242011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Fix TUI stepi on code without symbols.
3127 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3128 current PC instead.
3129
cb0fd152
JK
31302011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 Code cleanup.
3133 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3134 and the static keyword.
3135 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3136 Make prefix an array.
3137 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3138 * mi/mi-main.c (get_register): Remove stb initialization and the static
3139 keyword.
3140
91174723
JK
31412011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3142
3143 Code cleanup - make mi_opt const.
3144 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3145 opts const.
3146 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3147 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3148 (mi_cmd_env_dir): Likewise.
3149 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3150 (mi_cmd_target_file_put): Likewise.
3151 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3152 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3153 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3154 (mi_valid_noargs): Make opts const.
3155 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3156 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3157 (mi_cmd_data_read_memory): Likewise.
3158 (mi_cmd_data_read_memory_bytes): Likewise.
3159 (mi_cmd_data_write_memory): Likewise.
3160
5068b8e8 31612011-08-26 Matt Rice <ratmice@gmail.com>
3162
3163 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3164 bcache_xmalloc, replace bcache_xmalloc with call to
3165 psymbol_bcache_init for psymbol_cache.
3166 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3167
a4f2ce05
JK
31682011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 * inf-loop.c (inferior_event_handler): Add exception_print in
3171 INF_EXEC_COMPLETE.
3172
353d1d73
JK
31732011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3176 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3177 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3178 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3179 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3180 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3181 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3182 * infrun.c (fetch_inferior_event): Call
3183 make_bpstat_clear_actions_cleanup.
3184 * top.c (execute_command): New variable cleanup_if_error, call
3185 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3186 * utils.c (do_bpstat_clear_actions_cleanup)
3187 (make_bpstat_clear_actions_cleanup): New functions.
3188
3ced3da4
PA
31892011-08-26 Pedro Alves <pedro@codesourcery.com>
3190
3191 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3192 either the parent or the child forks. Rename a couple locals.
3193
a9f4bb21
PA
31942011-08-26 Pedro Alves <pedro@codesourcery.com>
3195
3196 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3197 library call. Avoid reading the `status' local if all waitpid
3198 calls failed.
3199
e5798bef
PA
32002011-08-26 Pedro Alves <pedro@codesourcery.com>
3201
3202 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3203 opening /proc/PID/task always succeeds.
3204
edb2aadf
AR
32052011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3206
3207 * linespec.c (symtab_from_filename): Check for the end of string.
3208
0d932b2f
MK
32092011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3210
3211 PR mi/11912
3212 * varobj.c (cplus_describe_child): Add the keyword
3213 'class' to the output of the method when dealing
3214 with a cast to a base class.
3215
e93ca019
JK
32162011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 No functionality change.
3219 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3220 function comment a reference, new variables tp and bs, move here code
3221 from throw_exception.
3222 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3223 describe it in the comment.
3224 * exceptions.c (throw_exception): Remove variable tp, move the code for
3225 bpstat_clear_actions to bpstat_clear_actions.
3226
13da1c97
LM
32272011-08-24 Luis Machado <lgustavo@codesourcery.com>
3228
3229 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3230 * linux-nat.c: Include linux-procfs.h.
3231 (linux_proc_get_tgid): Move to ...
3232 * common/linux-procfs.c: ... here. New file.
3233 * common/linux-procfs.h: New file.
3234 * linux-thread-db.c: Include linux-procfs.h.
3235 * Makefile.in: Update dependencies.
3236 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3237 * config/arm/linux.mh: Likewise.
3238 * config/i386/linux.mh: Likewise.
3239 * config/i386/linux64.mh: Likewise.
3240 * config/ia64/linux.mh: Likewise.
3241 * config/m32r/linux.mh: Likewise.
3242 * config/m68k/linux.mh: Likewise.
3243 * config/mips/linux.mh: Likewise.
3244 * config/pa/linux.mh: Likewise.
3245 * config/pa/linux.mh: Likewise.
3246 * config/powerpc/linux.mh: Likewise.
3247 * config/powerpc/ppc64-linux.mh: Likewise.
3248 * config/powerpc/spu-linux.mh: Likewise.
3249 * config/sparc/linux.mh: Likewise.
3250 * config/sparc/linux64.mh: Likewise.
3251 * config/xtensa/linux.mh: Likewise.
3252
4e5c165d
HZ
32532011-08-24 Hui Zhu <teawater@gmail.com>
3254
3255 * tracepoint.c (cond_string_is_same): New function.
3256 (find_matching_tracepoint): Add condition check
3257 by cond_string_is_same.
3258
6e2f5b22
JK
32592011-08-23 Josh Matthews <josh@joshmatthews.net>
3260
3261 Fix build error in Darwin port.
3262 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3263
abf85f46
JK
32642011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 Code cleanup.
3267 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3268 (command_line_is_silent): New function.
3269 (bpstat_do_actions_1): No longer use commands_left, use
3270 command_line_is_silent for commands.
3271 (bpstat_alloc): Remove clearing of commands_left.
3272 (bpstat_stop_status): Remove initialization of commands_left, use
3273 command_line_is_silent.
3274 * breakpoint.h (struct bpstats): Remove commands_left.
3275
3a93a0c2
KS
32762011-08-18 Keith Seitz <keiths@redhat.com>
3277
3278 PR c++/12266
3279 * cp-name-parser.y (struct demangle_info): Remove unused
3280 member PREV.
3281 (d_grab): Likewise.
3282 (allocate_info): Change return type to struct demangle_info *.
3283 Always allocate a new demangle_info.
3284 Remove unused PREV pointer.
3285 (cp_new_demangle_parse_info): New function.
3286 (cp_demangled_name_parse_free): New function.
3287 (do_demangled_name_parse_free_cleanup): New function.
3288 (make_cleanup_cp_demangled_name_parse_free): New function.
3289 (cp_demangled_name_to_comp): Change return type to
3290 struct demangle_parse_info *.
3291 Allocate a new storage for each call.
3292 (main): Update usage for cp_demangled_name_to_comp
3293 API change.
3294 * cp-support.h (struct demangle_parse_info): New structure.
3295 (cp_demangled_name_to_comp): Update API change for
3296 return type.
3297 (cp_new_demangle_parse_info): Declare.
3298 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3299 (cp_demangled_name_parse_free): Declare.
3300 * cp-support.c (cp_canonicalize_string): Update API
3301 change for cp_demangled_name_to_comp.
3302 (mangled_name_to_comp): Likewise.
3303 Return struct demangle_parse_info, too.
3304 (cp_class_name_from_physname): Update mangled_name_to_comp
3305 API change.
3306 (method_name_from_physname): Likewise.
3307 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3308 (cp_remove_params): Likewise.
3309 * python/py-type.c (typy_legacy_template_argument): Likewise.
3310
3311 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3312 (cp_merge_demangle_parse_infos): Declare.
3313 * cp-support.c (ignore_typedefs): New file global.
3314 (copy_string_to_obstack): New function.
3315 (inspect_type): New function.
3316 (replace_typedefs): New function.
3317 (replace_typedefs_qualified_name): New function.
3318 (cp_canonicalize_string_no_typedefs): New function.
3319 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3320 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3321 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3322 instead of cp_canonicalize_string.
3323 (find_method): Likewise.
3324 (decode_compound): Before looking up the name, call
3325 cp_canonicalize_string_no_typedefs.
3326 (decode_variable): Likewise.
3327
fa3a4f15
PM
33282011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3329 Tom Tromey <tromey@redhat.com>
3330 Matt Rice <ratmice@gmail.com>
3331
3332 * python/lib/gdb/prompt.py: New file.
3333 * python/lib/gdb/command/prompt.py: New file.
3334 * NEWS: Document set extended-prompt and gdb.prompt library
3335
85661b1e
YQ
33362011-08-16 Yao Qi <yao@codesourcery.com>
3337
3338 * tic6x-linux-tdep.c: Move const arrays definition from here...
3339 * tic6x-tdep.c: to here ...
3340
11315641
YQ
33412011-08-14 Yao Qi <yao@codesourcery.com>
3342
3343 * NEWS: New port to Texas Instruments TMS320C6x.
3344
8cd64e00
YQ
33452011-08-14 Andrew Jenner <andrew@codesourcery.com>
3346 Bernd Schmidt <bernds@codesourcery.com>
3347 Yao Qi <yao@codesourcery.com>
3348
3349 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3350 * solib-dsbt.c: New file. Support DSBT shared object.
3351 * tic6x-linux-tdep.c: New file.
3352 * tic6x-tdep.c: New file.
3353 * tic6x-tdep.h: New file.
3354
78d85199
YQ
33552011-08-14 Andrew Stubbs <ams@codesourcery.com>
3356 Yao Qi <yao@codesourcery.com>
3357
3358 * remote.c (PACKET_qXfer_fdpic): New enum value.
3359 (remote_protocol_features): Add qXfer:fdpic:read packet.
3360 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3361 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3362 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3363
224bbe49
YQ
33642011-08-14 Yao Qi <yao@codesourcery.com>
3365
3366 Target description for tic6x.
3367 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3368 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3369 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3370 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3371 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3372 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3373 * features/tic6x-c64xp-linux.xml: New.
3374 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3375 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3376 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3377 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3378 * regformats/tic6x-c64xp.dat,
3379 regformats/tic6x-c62x-linux.dat: Generated.
3380 * regformats/tic6x-c64x-linux.dat,
3381 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3382 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3383 features/tic6x-*.c files.
3384 Add regformats/tic6x-*.dat files.
3385
457e09f0
DE
33862011-08-12 Doug Evans <dje@google.com>
3387
3388 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3389 * python/py-symbol.c (sympy_get_type): New function.
3390 (symbol_object_getset): Add "type".
3391
d20c1c3f
PA
33922011-08-12 Pedro Alves <pedro@codesourcery.com>
3393
3394 PR tui/13073
3395
3396 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3397 empty name.
3398 (tui_show_register_group): Don't store a byte buffer in the data
3399 element's value.
3400 (tui_register_format): Skip registers with an empty name.
3401 (tui_get_register): Store a struct value in the data element's
3402 value field instead of a byte buffer holding the raw register
3403 contents. Account for optimized-out and unavailable registers
3404 when comparing register contents.
3405
9d8fa392
PA
34062011-08-09 Pedro Alves <pedro@codesourcery.com>
3407
3408 * printcmd.c (current_display_number): Update comment.
3409 (disable_current_display_cleanup): Delete.
3410 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3411 catch errors thrown while evaluating and printing the display.
3412
401a70b8
TT
34132011-08-09 Tom Tromey <tromey@redhat.com>
3414
3415 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3416
7f86f058
PA
34172011-08-09 Pedro Alves <pedro@codesourcery.com>
3418
94b71cca 3419 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3420 * maint.c (maintenance_command): Ditto.
3421 * somread.c (som_symtab_read): Ditto.
3422 * solib.c (solib_find, solib_map_sections, update_solib_list)
3423 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3424 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3425 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3426 * solib-irix.c (locate_base, disable_break, enable_break)
3427 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3428 (irix_current_sos, irix_open_symbol_file_object)
3429 (irix_special_symbol_handling): Ditto.
3430 * solib-sunos.c (locate_base, first_link_map_member)
3431 (sunos_current_sos, disable_break, enable_break)
3432 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3433 Ditto.
3434 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3435 (open_symbol_file_object, svr4_current_sos, enable_break)
3436 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3437 Ditto.
3438 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3439 (frv_current_sos, enable_break, frv_special_symbol_handling)
3440 (frv_solib_create_inferior_hook): Ditto.
3441 * solist.h (struct target_so_ops): Extend the comments of the
3442 special_symbol_handling, current_sos and open_symbol_file_object
3443 methods.
3444
5e239b84
PM
34452011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3446
3447 * python/lib/gdb/__init__.py: Auto-load files in command and
3448 function directories.
3449 * python/python.c (finish_python_initialization): Use
3450 os.path.join.
3451 * python/lib/gdb/command/pretty_printers.py: Self register
3452 command.
3453 * NEWS: Document auto-loading.
3454
b6cede78
JK
34552011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3458 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3459 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3460
29d0bb3d
TT
34612011-08-08 Tom Tromey <tromey@redhat.com>
3462
3463 * breakpoint.c (clean_up_filters): Remove.
3464 (catch_syscall_split_args): Use VEC_cleanup.
3465
2f7fb8e4
JK
34662011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3467
3468 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3469 (main): Uncomment "Demangling error\n".
3470
d6c10e95
PP
34712011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3472
3473 * solib-target.c (segment_attributes): Make them static.
3474 (section_attributes, library_children, library_attributes): Likewise.
3475 (library_list_children, library_list_attributes): Likesise.
3476 (library_list_elements): Likewise.
3477
af6e93b2
PA
34782011-08-05 Pedro Alves <pedro@codesourcery.com>
3479
3480 * exceptions.c (throw_exception): Don't disable the current
3481 display.
3482 * printcmd.c (disable_current_display_cleanup): New function.
3483 (do_one_display): Install a cleanup to disable the current display
3484 if doing the display throws.
3485
6a1b1664
EZ
34862011-08-05 Eli Zaretskii <eliz@gnu.org>
3487
3488 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3489 initialization of the tp_new member to the corresponding
3490 gdbpy_initialize_* function.
3491 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3492 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3493 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3494 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3495 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3496
31a0ae49
JK
34972011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3500 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3501 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3502 references to current_uiout.
3503
e0dd0826
PA
35042011-08-04 Pedro Alves <pedro@codesourcery.com>
3505
3506 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3507 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3508 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3509 * top.c (gdb_readline_wrapper): Adjust.
3510 * tui/tui-interp.c (tui_command_loop):
3511 (_initialize_tui_interp): Don't install it.
3512
79a45e25
PA
35132011-08-04 Pedro Alves <pedro@codesourcery.com>
3514
3515 * ui-out.h (uiout): Rename to ...
3516 (current_uiout): ... this.
3517 * ui-out.c (uiout): Rename to ...
3518 (current_uiout): ... this.
3519 * ada-lang.c (print_it_exception, print_one_exception)
3520 (print_mention_exception): Adjust.
3521 * breakpoint.c (watchpoint_check): Adjust.
3522 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3523 (default_collect_info, watchpoints_info, print_one_catch_fork)
3524 (print_one_catch_vfork, print_one_catch_syscall)
3525 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3526 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3527 (print_it_watchpoint, print_mention_watchpoint)
3528 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3529 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3530 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3531 (bkpt_print_mention, momentary_bkpt_print_it)
3532 (tracepoint_print_mention, update_static_tracepoint)
3533 (tracepoints_info, save_breakpoints): Adjust.
3534 * cli-out.c (field_separator): Adjust.
3535 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3536 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3537 * frame.c (get_current_frame): Adjust.
3538 * infcmd.c (run_command_1, print_return_value): Adjust.
3539 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3540 * infrun.c (print_end_stepping_range_reason): Adjust.
3541 (print_signal_exited_reason, print_exited_reason): Adjust.
3542 (print_signal_received_reason, print_no_history_reason): Adjust.
3543 * interps.c (interp_set): Adjust.
3544 * osdata.c (info_osdata_command): Adjust.
3545 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3546 * remote-fileio.c (remote_fileio_request): Adjust.
3547 * remote.c (show_remote_cmd): Adjust.
3548 * solib.c (info_sharedlibrary_command): Adjust.
3549 * source.c (print_source_lines_base): Adjust.
3550 * stack.c (print_stack_frame): Adjust.
3551 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3552 * symfile-mem.c (add_vsyscall_page): Adjust.
3553 * symfile.c (load_progress, generic_load)
3554 (print_transfer_performance): Adjust.
3555 * thread.c (info_threads_command, restore_selected_frame)
3556 (thread_command): Adjust.
3557 * top.c (make_cleanup_restore_ui_file): Adjust.
3558 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3559 (print_one_static_tracepoint_marker): Adjust.
3560 * cli/cli-cmds.c (print_disassembly): Adjust.
3561 * cli/cli-decode.c (print_doc_line): Adjust.
3562 * cli/cli-interp.c (safe_execute_command): Adjust.
3563 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3564 (handle_redirections): Adjust.
3565 * cli/cli-script.c (show_user_1): Adjust.
3566 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3567 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3568 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3569 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3570 (mi_cmd_env_dir): Adjust.
3571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3572 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3573 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3574 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3575 (list_args_or_locals): Adjust.
3576 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3577 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3578 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3579 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3580 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3581 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3582 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3583 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3584 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3585 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3586 (list_available_thread_groups, mi_cmd_list_thread_groups)
3587 (mi_cmd_data_list_register_names)
3588 (mi_cmd_data_list_changed_registers)
3589 (mi_cmd_data_list_register_values, get_register)
3590 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3591 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3592 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3593 (mi_execute_command, mi_load_progress): Adjust.
3594 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3595 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3596 Adjust.
3597 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3598 * tui/tui-interp.c (tui_command_loop): Adjust.
3599 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3600
f9679975
PA
36012011-08-04 Pedro Alves <pedro@codesourcery.com>
3602
3603 * exceptions.c (struct catcher): Remove saved_uiout field.
3604 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3605 no longer save/resvore the global ui_out builder.
3606 (catch_exceptions_with_msg): Save/override/restore the global
3607 ui_out builder manually instead of relying on TRY_CATCH to do it.
3608 (catch_errors): Save/restore the global ui_out builder manually
3609 instead of relying on TRY_CATCH to do it.
3610 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3611 parameter.
3612 (TRY_CATCH): Adjust.
3613 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3614 the global ui_out builder manually instead of relying on TRY_CATCH
3615 to do it.
3616
934709f0
PW
36172011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3618
3619 * breakpoint.c (update_global_location_list): Ensure
3620 invariant 'first loc marked not duplicated and inserted,
3621 following locs marked duplicated/not inserted' is respected
3622 for multiple locations at the same address.
3623 (unduplicated_should_be_inserted) New function.
3624 (swap_insertion) New function.
3625
2421fe6f
JK
36262011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3627
3628 * stack.c (print_frame_arguments_choices): Comment typo fix.
3629
3fbb6ffa
TJB
36302011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3631
3632 Revert:
3633 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3634 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3635 argument. Update callers.
3636
fbe12357
PP
36372011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3638
3639 PR gdb/13045
3640 * doublest.c (convert_doublest_to_floatformat): Pass correct
3641 mantissa length to put_field.
3642
b1d288d3
JK
36432011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3644
3645 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3646 exception_print code path.
3647 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3648 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3649 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3650
311b5970
JK
36512011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3652
3653 Code cleanup.
3654 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3655 Remove, merge them into ...
3656 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3657 variable args and its initialization.
3658 (struct print_args_args, print_args_stub): Remove, merge them into
3659 print_frame.
3660 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3661 them into ...
3662 (do_gdb_disassembly): ... here. Remove variable args and its
3663 initialization.
3664 (print_frame): Remove variable args and its initialization, new
3665 variable gdbarch and numargs (from print_args_stub), inline here
3666 print_args_stub with a TRY_CATCH.
3667 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3668 them into ...
3669 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3670 New variable e, remove variable btargs and its initialization.
311b5970 3671
484a26a8
TG
36722011-08-01 Tristan Gingold <gingold@adacore.com>
3673
3674 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3675
c30eee59
TJB
36762011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3677
3678 * breakpoint.c (insert_bp_location): Document return value.
3679 (insert_breakpoint_locations): Fix documentation.
3680 (remove_breakpoints): Add documentation.
3681
f116073b
TJB
36822011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3683
3684 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3685 argument. Update callers.
3686
65aa373f
JK
36872011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 * stack.c (print_frame_info): Comment typo fix.
3690
a50242fb
SA
36912011-07-29 Sterling Augustine <saugustine@google.com>
3692
3693 * MAINTAINERS (Write After Approval): Add myself to the list.
3694
267f6504
TT
36952011-07-29 Tom Tromey <tromey@redhat.com>
3696
3697 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3698 (library_list_start_segment): Update.
3699 (library_list_start_section): Update.
3700
00bd41d6
PM
37012011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3702
3703 * varobj.c (value_get_print_value): Move hint check later into the
3704 function. Comment function. Free thevalue before reusing it.
3705
18a46dbe
JK
37062011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3707 Pedro Alves <pedro@codesourcery.com>
3708
3709 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3710 value_one.
3711 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3712 Assert the result kind.
3713 * value.h (value_one): Remove parameter lv.
3714
bb7da2bf
JK
37152011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3716
3717 Fix crash on lval_computed values.
3718 * valops.c (value_zero): Use not_lval for lval_computed.
3719
2d5213f8
TT
37202011-07-27 Tom Tromey <tromey@redhat.com>
3721
3722 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3723 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3724
11081198
JK
37252011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3726
3727 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3728 "ptype" by their typedefs difference.
3729
3c6e0cb3
JK
37302011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3731
3732 * dwarf2expr.c (ctx_no_read_reg): New function.
3733 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3734 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3735 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3736 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3737
523f3620
JK
37382011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3741 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3742 file.
3743 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3744 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3745 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3746 (ctx_no_get_base_type): Move the functions here.
3747 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3748 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3749 (ctx_no_get_base_type): New declarations.
3750
24d3216f
TT
37512011-07-27 Tom Tromey <tromey@redhat.com>
3752
3753 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3754 entries.
3755 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3756 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3757
5005c8a9
PP
37582011-07-26 Sterling Augustine <saugustine@google.com>
3759
3760 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3761 ULONGEST.
3762 (dump_bfd_file): Likewise.
3763
480a3f21
PW
37642011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3765
3766 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3767 (remote_hw_watchpoint_length_limit): New variable.
3768 (_initialize_remote) add set,show cmds for this new variable.
3769 * gdb.texinfo: document these new commands.
3770 * NEWS: Mention these new commands.
3771
efa80663
PA
37722011-07-26 Pedro Alves <pedro@codesourcery.com>
3773
3774 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3775 true for software watchpoints.
3776
dbdaa232 37772011-07-26 Joel Brobecker <brobecker@adacore.com>
3778
3779 GDB 7.3 released.
3780
cf2c3c16
TT
37812011-07-26 Tom Tromey <tromey@redhat.com>
3782
3783 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3784 * dwarf2read.c (read_indirect_string_at_offset): New function.
3785 (read_indirect_string): Use it.
3786 (dwarf_decode_macro_bytes): New function, taken from
3787 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3788 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3789 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3790 New functions.
3791 (struct dwarf2_per_objfile) <macro>: New field.
3792 (dwarf2_elf_names): Add .debug_macro.
3793 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3794 (dwarf2_locate_sections): Handle new section.
3795 (read_file_scope): Handle DW_AT_GNU_macros.
3796 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3797
1a532630
PP
37982011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3799
3800 * NEWS: Mention dcache configuration.
3801 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3802 (dcache_size, dcache_line_size): New variables.
3803 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3804 (struct dcache_block): Make it expandable.
3805 (struct dcache_struct): New field.
3806 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3807 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3808 (dcache_poke_byte, dcache_print_line): Adjust.
3809 (set_dcache_size, set_dcache_line_size): New functions.
3810 (set_dcache_command, show_dcache_command): New functions.
3811 (_initialize_dcache): Add new commands.
3812
2eff07b3
PP
38132011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3814
3815 * progspace.h (struct program_space): Add solib_add_generation.
3816 * infcmd.c (post_create_inferior): Only call solib_add if not
3817 already done.
3818 * solib.c (solib_add): Increment solib_add_generation.
3819
543305c9
JK
38202011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 Fix implicit pointer offsets.
3823 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3824 ptr.OFFSET.
3825
c0a91b2b
TT
38262011-07-25 Tom Tromey <tromey@redhat.com>
3827
3828 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3829 const.
3830 (ada_exception_sal): Make 'ops' const.
3831 (ada_decode_exception_location): Likewise.
3832 (ada_decode_assert_location): Likewise.
3833 (catch_assert_command): Update.
3834 (catch_ada_exception_command): Update.
3835 (create_ada_exception_catchpoint): Make 'ops' const.
3836 * breakpoint.c (set_raw_breakpoint_without_location)
3837 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3838 const.
3839 (create_internal_breakpoint): Update.
3840 (init_raw_breakpoint_without_location): Make 'ops' const.
3841 (init_raw_breakpoint, init_catchpoint)
3842 (create_fork_vfork_event_catchpoint)
3843 (create_syscall_event_catchpoint, init_breakpoint_sal)
3844 (create_breakpoint_sal, create_breakpoints_sal)
3845 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3846 * breakpoint.h (struct breakpoint) <ops>: Now const.
3847 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3848 const.
3849
6cb9b55b
PP
38502011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3851
3852 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3853
d9b3f62e
PA
38542011-07-25 Pedro Alves <pedro@codesourcery.com>
3855
3856 * breakpoint.h (print_recreate_thread): Declare.
3857 (struct breakpoint): Move step_count, pass_count,
3858 number_on_target, static_trace_marker_id,
3859 static_trace_marker_id_idx ...
3860 (struct tracepoint): ... to this new struct.
3861 (get_tracepoint, get_tracepoint_by_number_on_target)
3862 (get_tracepoint_by_number): Change return type to struct
3863 tracepoint pointer.
3864 * breakpoint.c (is_tracepoint_type): New, factored out from
3865 is_tracepoint.
3866 (is_tracepoint): Adjust.
3867 (print_one_breakpoint_location): Cast to struct tracepoint as
3868 necessary, and adjust.
3869 (print_recreate_catch_fork, print_recreate_catch_vfork)
3870 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3871 print_recreate_thread.
3872 (init_breakpoint_sal): New, factored out from
3873 create_breakpoint_sal.
3874 (create_breakpoint_sal): Reimplement.
3875 (create_breakpoint): Allocate a struct tracecepoint if the caller
3876 wanted a tracepoint. Use init_breakpoint_sal and
3877 install_breakpoint.
3878 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3879 (print_recreate_masked_watchpoint)
3880 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3881 (tracepoint_print_one_detail): Adjust.
3882 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3883 Dump the pass count here.
3884 (update_static_tracepoint): Adjust.
3885 (addr_string_to_sals): Adjust.
3886 (create_tracepoint_from_upload): Adjust. Change return type to
3887 struct tracepoint pointer.
3888 (trace_pass_set_count): Change parameter type to struct tracepoint
3889 pointer, and adjust.
3890 (trace_pass_command): Adjust.
3891 (get_tracepoint, get_tracepoint_by_number_on_target)
3892 (get_tracepoint_by_number): Change return type to struct
3893 tracepoint pointer, and adjust.
3894 (print_recreate_thread): New, factored out from save_breakpoints.
3895 (save_breakpoints): Don't print thread and task and passcount
3896 recreation here.
3897 * remote.c (remote_download_tracepoint): Adjust.
3898 * tracepoint.c (trace_actions_command, validate_actionline)
3899 (start_tracing, tfind_1, trace_find_tracepoint_command)
3900 (trace_dump_command): Adjust.
3901 (find_matching_tracepoint): Change return type to struct
3902 tracepoint pointer, and adjust.
3903 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3904 (tfile_trace_find, tfile_fetch_registers): Adjust.
3905 * tracepoint.h (create_tracepoint_from_upload): Change return type
3906 to struct tracepoint pointer.
3907 * ada-lang.c (print_recreate_exception): Call
3908 print_recreate_thread.
3909 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3910
3a5c3e22
PA
39112011-07-25 Pedro Alves <pedro@codesourcery.com>
3912
3913 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3914 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3915 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3916 watchpoint_thread, watchpoint_triggered ...
3917 (struct watchpoint): ... to this new struct.
3918 (is_watchpoint): Declare.
3919 (install_breakpoint): Add new `internal' parameter.
3920 * breakpoint.c (is_watchpoint): Delete declaration.
3921 (set_breakpoint_condition): Handle watchpoints.
3922 (is_watchpoint): Make public.
3923 (watchpoint_in_thread_scope): Change parameter type to struct
3924 watchpoint.
3925 (watchpoint_del_at_next_stop): Change parameter type to struct
3926 watchpoint. Remove assertion. Adjust.
3927 (update_watchpoint): Ditto.
3928 (insert_breakpoints, breakpoint_init_inferior)
3929 (watchpoints_triggered, watchpoint_check)
3930 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3931 (bpstat_stop_status, print_one_breakpoint_location)
3932 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3933 to struct watchpoint as necessary, and adjust.
3934 (install_breakpoint): Add `internal' argument. If true, don't
3935 mention the new breakpoint. Use set_breakpoint_number.
3936 (create_fork_vfork_event_catchpoint)
3937 (create_syscall_event_catchpoint): Adjust.
3938 (dtor_watchpoint): New.
3939 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3940 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3941 (print_it_watchpoint, print_mention_watchpoint)
3942 (print_recreate_watchpoint, insert_masked_watchpoint)
3943 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3944 (print_one_detail_masked_watchpoint)
3945 (print_mention_masked_watchpoint)
3946 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3947 necessary, and adjust.
3948 (watch_command_1): Allocate and initialize a struct watchpoint
3949 instead of a struct breakpoint. Use install_breakpoint.
3950 (catch_exec_command_1): Adjust.
3951 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3952 fields.
3953 (delete_breakpoint, enable_breakpoint_disp)
3954 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3955 as necessary, and adjust.
3956 (initialize_breakpoint_ops): Install dtor_watchpoint as
3957 watchpoints' dtor method.
3958 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3959 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3960 to struct watchpoint as necessary, and adjust.
3961
2060206e
PA
39622011-07-25 Pedro Alves <pedro@codesourcery.com>
3963
3964 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3965 the the base class ops table.
3966 (catch_exception_breakpoint_ops)
3967 (catch_exception_unhandled_breakpoint_ops)
3968 (catch_assert_breakpoint_ops): Don't statically initialize.
3969 (initialize_ada_catchpoint_ops): New.
3970 (_initialize_ada_language): Call it.
3971 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3972 (bkpt_breakpoint_ops): Forward declare.
3973 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3974 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3975 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3976 (masked_watchpoint_breakpoint_ops)
3977 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3978 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3979 base class ops table.
3980 (null_re_set, null_check_status, null_works_in_software_mode)
3981 (null_resources_needed, null_print_one_detail): Delete.
3982 (bkpt_dtor): Rename to ...
3983 (base_breakpoint_dtor): ... this. Make static.
3984 (bkpt_allocate_location): Rename to ...
3985 (base_breakpoint_allocate_location): ... this. Make static.
3986 (base_breakpoint_re_set): New.
3987 (internal_error_pure_virtual_called): New.
3988 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3989 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3990 (base_breakpoint_works_in_software_mode)
3991 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3992 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3993 (base_breakpoint_print_recreate): New functions.
3994 (base_breakpoint_ops): New global.
3995 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3996 (bkpt_breakpoint_hit): Make static.
3997 (bkpt_check_status): Delete.
3998 (bkpt_resources_needed): Make static.
3999 (bkpt_works_in_software_mode): Delete.
4000 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4001 static.
4002 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4003 (momentary_breakpoint_ops): Don't statically initialize.
4004 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4005 Delete.
4006 (tracepoint_insert_location, tracepoint_remove_location)
4007 (tracepoint_check_status, tracepoint_works_in_software_mode)
4008 (tracepoint_print_it): Delete.
4009 (tracepoint_breakpoint_ops): Don't statically initialize.
4010 (initialize_breakpoint_ops): New.
4011 (_initialize_breakpoint): Call it.
4012 * breakpoint.h (null_re_set, null_works_in_software_mode)
4013 (null_resources_needed, null_check_status, null_print_one_detail):
4014 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4015 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4016 (bkpt_check_status, bkpt_resources_needed)
4017 (bkpt_works_in_software_mode, bkpt_print_it)
4018 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4019 Delete declarations.
4020 (initialize_breakpoint_ops): Declare.
4021
001c8c33
PA
40222011-07-25 Pedro Alves <pedro@codesourcery.com>
4023
4024 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4025 (momentary_bkpt_print_it): Simplify.
4026
06edf0c0
PA
40272011-07-25 Pedro Alves <pedro@codesourcery.com>
4028
4029 Split internal, momentary and user breakpoints breakpoint_ops
4030 tables.
4031
4032 * breakpoint.c (internal_breakpoint_ops)
4033 (momentary_breakpoint_ops): Forward declare.
4034 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4035 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4036 (create_overlay_event_breakpoint)
4037 (create_std_terminate_master_breakpoint)
4038 (create_exception_master_breakpoint): Create breakpoints with
4039 internal_breakpoint_ops vtable.
4040 (set_longjmp_breakpoint): Create momentary breakpoints with
4041 momentary_breakpoint_ops vtable, using
4042 momentary_breakpoint_from_master.
4043 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4044 (create_solib_event_breakpoint): Create breakpoints with
4045 internal_breakpoint_ops vtable.
4046 (set_momentary_breakpoint): Create breakpoints with
4047 momentary_breakpoint_ops vtable.
4048 (momentary_breakpoint_from_master): New, factored out from
4049 clone_momentary_breakpoint.
4050 (clone_momentary_breakpoint): Adjust.
4051 (watch_command_1): Create scope breakpoints with
4052 momentary_breakpoint_ops vtable.
4053 (bkpt_re_set): Remove handling of internal and momentary
4054 breakpoints.
4055 (bkpt_print_mention, bkpt_print_recreate): New.
4056 (bkpt_breakpoint_ops): Adjust.
4057 (internal_bkpt_re_set, internal_bkpt_check_status)
4058 (internal_bkpt_print_it, internal_bkpt_print_mention)
4059 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4060 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4061 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4062 (momentary_bkpt_print_recreate): New.
4063 (momentary_breakpoint_ops): New.
4064
348d480f
PA
40652011-07-25 Pedro Alves <pedro@codesourcery.com>
4066
4067 Implement most breakpoint_ops methods for all breakpoint types,
4068 and move the default handlings to the proper callbacks.
4069
4070 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4071 works_in_software_mode method.
4072 (insert_bp_location): Go through breakpoint_ops->insert_location
4073 for software and hardware watchpoints.
4074 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4075 breakpoint_ops.
4076 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4077 for software and hardware watchpoints.
4078 (print_it_typical): Delete.
4079 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4080 method.
4081 (watchpoint_check): Adjust comment.
4082 (bpstat_check_location): Simply always call the breakpoint's
4083 breakpoint_hit method.
4084 (bpstat_stop_status): Always call the breakpoint's check_status
4085 method. Remove special cases for watchpoints and internal event
4086 breakpoints from here (moved to the check_status implementations).
4087 (print_one_breakpoint_location): Assume b->ops is never NULL.
4088 Remove static tracepoint marker id printing from here (moved to
4089 the print_one_detail callback implementation of tracepoints).
4090 (init_bp_location): Assert OPS is never NULL.
4091 (allocate_bp_location): Always call the breakpoint's
4092 allocate_location method, and remove the default code from here.
4093 (free_bp_location): Always call the location's dtor method, and
4094 remove the default code from here.
4095 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4096 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4097 parameter. Pass it down.
4098 (set_raw_breakpoint): Ditto.
4099 (print_it_catch_fork): Adjust to take a bpstat as argument.
4100 (catch_fork_breakpoint_ops): Install methods.
4101 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4102 (catch_vfork_breakpoint_ops): Install methods.
4103 (dtor_catch_syscall): Call the base dtor.
4104 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4105 (catch_syscall_breakpoint_ops): Install methods.
4106 (dtor_catch_exec): Call the base dtor.
4107 (print_it_catch_exec): Adjust to take a bpstat as argument.
4108 (catch_exec_breakpoint_ops): Install methods.
4109 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4110 the breakpoint's resources_needed method, and remove the default
4111 code from here.
4112 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4113 breakpoint_ops.
4114 (clone_momentary_breakpoint): Clone the original's ops.
4115 (mention): Always call the breakpoint's print_mention method, and
4116 remove the default code from here.
4117 (create_breakpoint_sal): Adjust to pass the ops to
4118 set_raw_breakpoint rather than setting it manually.
4119 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4120 ops to set_raw_breakpoint_without_location rather than setting it
4121 manually.
4122 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4123 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4124 (ranged_breakpoint_ops): Install methods.
4125 (break_range_command): Adjust to pass the ops to
4126 set_raw_breakpoint rather than setting it manually.
4127 (re_set_watchpoint, breakpoint_hit_watchpoint)
4128 (check_status_watchpoint, resources_needed_watchpoint)
4129 (works_in_software_mode_watchpoint, print_it_watchpoint)
4130 (print_mention_watchpoint, print_recreate_watchpoint): New
4131 functions.
4132 (watchpoint_breakpoint_ops): Install new methods.
4133 (print_it_masked_watchpoint): New function.
4134 (masked_watchpoint_breakpoint_ops): Install new methods.
4135 (watch_command_1): Adjust to pass the right breakpoint_ops to
4136 set_raw_breakpoint_without_location rather than setting it
4137 manually later. Record the current pspace.
4138 (print_it_exception_catchpoint): Adjust to take a bpstat as
4139 argument.
4140 (gnu_v3_exception_catchpoint_ops): Install new methods.
4141 (say_where): New function.
4142 (null_re_set, null_check_status, null_works_in_software_mode)
4143 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4144 New functions.
4145 (bp_location_ops): New global.
4146 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4147 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4148 (bkpt_check_status, bkpt_resources_needed)
4149 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4150 (bkpt_print_recreate): New functions.
4151 (bkpt_breakpoint_ops): New global.
4152 (tracepoint_re_set, tracepoint_insert_location)
4153 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4154 (tracepoint_check_status, tracepoint_works_in_software_mode)
4155 (tracepoint_print_it, tracepoint_print_one_detail)
4156 (tracepoint_print_mention, tracepoint_print_recreate): New
4157 functions.
4158 (tracepoint_breakpoint_ops): New global.
4159 (delete_breakpoint): Always call the breakpoint's dtor method, and
4160 remove the default handling from here.
4161 (breakpoint_re_set_default): Make static.
4162 (breakpoint_re_set_one): Always call the breakpoints re_set
4163 method, and remove the default handling from here.
4164 (trace_command, ftrace_command, strace_command)
4165 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4166 to create_breakpoint.
4167 (save_breakpoints): Always call the breakpoint's print_recreate
4168 method, and remove the default handling from here.
4169
4170 * ada-lang.c (dtor_exception): Call the base dtor.
4171 (re_set_exception): Call the base method.
4172 (print_it_exception, print_it_catch_exception): Adjust to take a
4173 bpstat as argument.
4174 (catch_exception_breakpoint_ops): Install methods.
4175 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4176 argument.
4177 (catch_exception_unhandled_breakpoint_ops): Install methods.
4178 (print_it_catch_assert): Adjust to take a bpstat as argument.
4179 (catch_assert_breakpoint_ops): Install methods.
4180
4181 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4182 to take a bpstat as argument.
4183 (enum print_stop_action): Add describing comments to each enum
4184 value.
4185 (breakpoint_re_set_default): Delete declaration.
4186 (null_re_set, null_works_in_software_mode, null_resources_needed)
4187 (null_check_status, null_print_one_detail): Declare.
4188 (bkpt_breakpoint_ops): Declare.
4189 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4190 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4191 (bkpt_check_status, bkpt_resources_needed)
4192 (bkpt_works_in_software_mode, bkpt_print_it)
4193 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4194 Declare.
4195
4196 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4197 bkpt_breakpoint_ops.
4198 * python/py-breakpoint.c (bppy_init): Ditto.
4199
be8f8133
PW
42002011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4201
4202 * MAINTAINERS (Write After Approval): Add myself to the list.
4203
3807f613
PP
42042011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4205
4206 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4207
1ced966e
PA
42082011-07-22 Pedro Alves <pedro@codesourcery.com>
4209
4210 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4211 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4212 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4213 adjust.
4214 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4215 (struct i386_debug_reg_state): New.
4216 (i386_init_dregs): New.
4217 (dr_mirror): New.
4218 (i386_cleanup_dregs): Use i386_init_dregs.
4219 (i386_show_dr): Add state parameter and adjust.
4220 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4221 the inferior here.
4222 (i386_remove_aligned_watchpoint): Likewise.
4223 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4224 (i386_update_inferior_debug_regs): New.
4225 (i386_insert_watchpoint): Work on a local mirror of the debug
4226 registers, and only update the inferior on success.
4227 (i386_remove_watchpoint): Ditto.
4228 (i386_region_ok_for_watchpoint): Adjust.
4229 (i386_stopped_data_address): Adjust.
4230 (i386_insert_hw_breakpoint): Adjust.
4231 (i386_remove_hw_breakpoint): Adjust.
4232
3543a589
TT
42332011-07-22 Tom Tromey <tromey@redhat.com>
4234
4235 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4236 from amd64_pseudo_register_read. Change arguments. Call
4237 mark_value_bytes_unavailable when needed.
4238 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4239 set_gdbarch_pseudo_register_read.
4240 * sentinel-frame.c (sentinel_frame_prev_register): Use
4241 regcache_cooked_read_value.
4242 * regcache.h (regcache_cooked_read_value): Declare.
4243 * regcache.c (regcache_cooked_read_value): New function.
4244 (regcache_cooked_read): Call
4245 gdbarch_pseudo_register_read_value if available.
4246 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4247 (i386_pseudo_register_read): Remove.
4248 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4249 i386_pseudo_register_read. Change arguments. Call
4250 mark_value_bytes_unavailable when needed.
4251 (i386_pseudo_register_read_value): New function.
4252 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4253 not set_gdbarch_pseudo_register_read.
4254 * gdbarch.sh (pseudo_register_read_value): New method.
4255 * gdbarch.c, gdbarch.h: Rebuild.
4256 * findvar.c (value_from_register): Call get_frame_register_value.
4257
95298e72
PM
42582011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4259
4260 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4261 get_prefix.
4262 (display_gdb_prompt): Likewise.
4263 (change_annotation_level): Likewise.
4264 (push_prompt): Likewise.
4265 (pop_prompt): Likewise.
4266 (handle_stop_sig): Use get_prompt with a level.
4267 * top.c (command_loop): Use get_prompt with a level.
4268 (set_async_annotation_level): Use set_prompt with a level.
4269 (get_prefix): New function.
4270 (set_prefix): Ditto.
4271 (set_suffix): Ditto.
4272 (get_suffix): Ditto.
4273 (get_prompt): Accept a level argument.
4274 (set_prompt): Accept a level argument. Free old prompts. Set
4275 new_async_prompt if level is 0.
4276 (init_main): Use set_prompt with a level. Do not set
4277 new_async_prompt.
4278 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4279 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4280 Modify set_prompt, get_prompt to account for levels.
4281 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4282 level.
4283 * python/python.c (before_prompt_hook): Use set_prompt.
4284
d26e3629
KY
42852011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4286
4287 * defs.h: Add guard against inclusion in gdbserver.
4288 (struct ptid, ptid_t): Move to common/ptid.h.
4289 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4290 xsnprintf, internal_error): Move to common/common-utils.h.
4291 (nomem): Delete.
4292 * gdb_assert.h: Move into common/ sub-directory.
4293 * gdb_locale.h: Ditto.
4294 * gdb_dirent.h: Ditto.
4295 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4296 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4297 Move into common/ptid.h.
4298 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4299 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4300 Change nomem to malloc_failure.
4301 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4302 * utils.c (nomem): Rename to malloc_failure.
4303 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4304 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4305 (gdb_buildargv): Change nomem to malloc_failure.
4306 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4307 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4308 ptid_is_pid): Move into common/ptid.c.
4309 (initialize_infrun): Delete initialization of null_ptid and
4310 minus_one_ptid.
4311 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4312 linux_common_xfer_osdata.
4313 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4314 common/ptid.c and common/buffer.c.
4315 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4316 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4317 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4318 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4319 rules.
4320 * common/gdb_assert.h: New.
4321 * common/gdb_dirent.h: New.
4322 * common/gdb_locale.h: New.
4323 * common/buffer.c: New.
4324 * common/buffer.h: New.
4325 * common/ptid.c: New.
4326 * common/ptid.h: New.
4327 * common/xml-utils.c: New.
4328 * common/xml-utils.h: New.
4329 * common/common-utils.c: New.
4330 * common/common-utils.h: New.
4331 * common/linux-osdata.c: New.
4332 * common/linux-osdata.h: New.
4333 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4334 * config/arm/linux.mh (NATDEPFILES): Ditto.
4335 * config/i386/linux.mh (NATDEPFILES): Ditto.
4336 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4337 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4338 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4339 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4340 * config/mips/linux.mh (NATDEPFILES): Ditto.
4341 * config/pa/linux.mh (NATDEPFILES): Ditto.
4342 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4343 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4344 * config/s390/s390.mh (NATDEPFILES): Ditto.
4345 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4346 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4347 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4348
edc84990 43492011-07-21 Matt Rice <ratmice@gmail.com>
4350
4351 * NEWS: Add info macros and info definitions commands.
4352
3a7bf607
PM
43532011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4354
4355 * NEWS: Document Python prompt substitution hook.
4356
9b158ba0 43572011-07-18 Matt Rice <ratmice@gmail.com>
4358
4359 PR macros/12999
4360 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4361 * macrotab.c (foreach_macro): Ditto.
4362 (foreach_macro_in_scope): Ditto.
4363 * macrocmd.c (print_macro_callback): New function.
4364 (info_macro_command): Move some code to print_macro_definition.
4365 (print_macro_definition): New function.
4366 (print_one_macro): Add new arguments to callback.
4367 (info_definitions_command): New function.
4368 (info_macros_command): Ditto.
4369 (_initialize_macrocmd): Add info macros and info definitions commands.
4370 * symtab.c (add_macro_name): Add new arguments to callback.
4371
d17b6f81
PM
43722011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4373 Tom Tromey <tromey@redhat.com>
4374
4375 * top.c (set_prompt): Rewrite to free previous prompt, free
4376 asynch_new_prompt and set both on new prompts.
4377 * event-top.c (display_gdb_prompt): Add prompt substitution
4378 logic.
4379 * python/python.c (before_prompt_hook): New function.
4380
1364323a 43812011-07-20 Matt Rice <ratmice@gmail.com>
4382
4383 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4384 arguments to store_unsigned_integer.
4385
8b70b953
TT
43862011-07-20 Tom Tromey <tromey@redhat.com>
4387
6c83ed52
TT
4388 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4389 in some declaration-only cases.
4390
43912011-07-18 Tom Tromey <tromey@redhat.com>
4392
8b70b953
TT
4393 PR symtab/12984:
4394 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4395 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4396 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4397 <debug_type_section>: New field.
4398 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4399 (load_cu): Use appropriate section.
4400 (create_signatured_type_table_from_index): Add 'section'
4401 argument.
4402 (dwarf2_read_index): Only allow a single .debug_types section.
4403 (dw2_get_file_names): Use appropriate section.
4404 (read_type_comp_unit_head): Add 'section' argument.
4405 (create_debug_types_hash_table): Loop over all .debug_types
4406 sections.
4407 (init_cu_die_reader): Use appropriate section.
4408 (process_psymtab_comp_unit, load_partial_comp_unit)
4409 (load_full_comp_unit, read_die_and_children, find_partial_die)
4410 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4411 (lookup_signatured_type_at_offset): Add 'section' argument.
4412 (read_signatured_type_at_offset): Add 'sect' argument.
4413 (read_signatured_type): Use appropriate section.
4414 (set_die_type, get_die_type_at_offset): Update.
4415 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4416 VEC.
4417 (write_psymtabs_to_index): Don't allow index with more than one
4418 .debug_types section.
4419
918dd910
JK
44202011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4421
4422 Fix crash if referenced CU is aged out.
4423 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4424 xfree of block.data.
4425 (indirect_pieced_value): New variable back_to, use to for xfree of
4426 baton.data.
4427 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4428 block.data.
4429 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4430 (load_cu): New function from ...
4431 (dw2_do_instantiate_symtab): ... the code here ...
4432 (process_full_comp_unit): ... and here.
4433 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4434 retval.data.
4435
0e37a63c
JK
44362011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4437
4438 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4439 type.
4440
7e324e48
GB
44412011-07-19 Gary Benson <gbenson@redhat.com>
4442
4443 * infrun.c (struct execution_control_state): New member
4444 stop_func_filled_in.
4445 (clear_stop_func, fill_in_stop_func): New functions.
4446 (handle_inferior_event): Call clear_stop_func rather than
4447 manipulating the execution control state directly.
4448 Call fill_in_stop_func lazily as required rather than
4449 directly calling find_pc_partial_function in all cases.
4450
d48323d8
TT
44512011-07-18 Tom Tromey <tromey@redhat.com>
4452
4453 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4454 checking for variable-sized array.
4455
40591b7d
JCD
44562011-07-18 Jean-Charles Delay <delay@adacore.com>
4457
4458 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4459 of supported languages.
4460 * varobj.c: Add top definitions and basic implementation of the
4461 following callbacks: ada_number_of_children, ada_name_of_variable,
4462 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4463 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4464 (languages): Register Ada-specific callbacks.
4465 (variable_language): Add the Ada case in the language setter switch.
4466
2e424e08
JK
44672011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4468
4469 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4470
9e8b7a03
JK
44712011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4472
4473 Code cleanup.
4474 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4475 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4476 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4477 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4478 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4479 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4480 (struct dwarf_expr_context_funcs): New, move here methods from ...
4481 (struct dwarf_expr_context): ... here. New fields funcs.
4482 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4483 (dwarf_expr_ctx_funcs): New.
4484 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4485 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4486 (needs_frame_ctx_funcs): New.
4487 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4488
2b1260ab
FM
44892011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4490
4491 * MAINTAINERS (Write After Approval): Add myself to the list.
4492
8bd90839
FM
44932011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4494
4495 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4496 that CIE pointer of an FDE really points to a CIE .
4497
953b98d1
HZ
44982011-07-15 Hui Zhu <teawater@gmail.com>
4499
4500 * remote.c (remote_get_trace_status): Add comments.
4501
c8f2448a
JK
45022011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4503
4504 Code cleanup - constify struct lval_funcs.
4505 * dwarf2loc.c (pieced_value_funcs): Make it const.
4506 * infrun.c (siginfo_value_funcs): Likewise.
4507 * opencl-lang.c (opencl_value_funcs): Likewise.
4508 * valops.c (value_assign, value_ind): Make the funcs variable const.
4509 * value.c (struct value): Make location.computed.funcs target const.
4510 Rearrange the comments.
4511 (allocate_computed_value): Make the funcs parameter target const.
4512 (value_computed_funcs): Return the funcs target const.
4513 (value_free, value_copy, set_value_component_location): Make the funcs
4514 variable const.
4515 * value.h (allocate_computed_value): Make the funcs parameter target
4516 const.
4517 (value_computed_funcs): Return the funcs target const.
4518 * windows-tdep.c (tlb_value_funcs): Make it const.
4519
f652de6f
HZ
45202011-07-14 Hui Zhu <teawater@gmail.com>
4521
4522 * remote.c (remote_get_trace_status): Initialize p.
4523
67f41397
JK
45242011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4525
4526 Work around kgdb.
4527 * remote.c (remote_get_trace_status): New variable ex. Put
4528 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4529
d1b66e6d
TT
45302011-07-13 Tom Tromey <tromey@redhat.com>
4531
4532 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4533 value_from_contents for final conversion.
4534
1632a688
JK
45352011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4536
4537 Code cleanup.
4538 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4539 Indent prototypes so they do not get into tags.
4540
a7035dbb
JK
45412011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4542
4543 Code cleanup making also optimized out values lazy.
4544 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4545 allocate_optimized_out_value. Twice.
4546 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4547 * findvar.c (read_var_value): Likewise.
4548 * value.c (allocate_optimized_out_value): New function.
4549 * value.h (allocate_optimized_out_value): New declaration.
4550
d07ed419
JK
45512011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4552
4553 Fix occasional crash of CTRL-C during DWARF read in.
4554 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4555
86d31898
TT
45562011-07-11 Tom Tromey <tromey@redhat.com>
4557
4558 * regcache.c (struct regcache_descr): Fix typo.
4559 * i387-tdep.c (i387_supply_xsave): Fix typo.
4560
2ab95328
TT
45612011-07-11 Tom Tromey <tromey@redhat.com>
4562
4563 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4564 (read_file_scope, read_type_unit_scope): Use it.
4565
04ad99e6
JK
45662011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4567
4568 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4569 `int'.
4570
713389e0
PM
45712011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4572
4573 PR python/12438
4574 * python/python.c: Set gdbpy_should_print_stack default to off.
4575 (set_python): Deprecate maint set python print-stack to
4576 class_deprecate.
4577 (_initialize_python): Deprecate maint set/show python print-stack.
4578 Add new prefix command, python. Add new setting, print-backtrace.
4579 * NEWS: Document set python print-stack. Document default change.
4580
754eadd1
PM
45812011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4582
4583 * python/py-inferior.c (infpy_dealloc): New function.
4584 (inferior_to_inferior_object): Return a new object, or a
4585 new reference to the existing object.
4586 (find_thread_object): Cleanup references to inferior.
4587 (delete_thread_object): Ditto.
4588 * python/py-infthread.c (create_thread_object): Do not increment
4589 inferior reference count.
4590
5e44ecb3
TT
45912011-07-08 Tom Tromey <tromey@redhat.com>
4592
4593 * dwarf2loc.c (locexpr_regname): New function.
4594 (locexpr_describe_location_piece): Use it.
4595 (disassemble_dwarf_expression): Add per_cu argument. Use
4596 locexpr_regname.
4597 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4598 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4599 New cases.
4600 (locexpr_describe_location_1): Add per_cu argument.
4601 (locexpr_describe_location): Update.
4602 (loclist_describe_location): Update.
4603
e0e9434c
TT
46042011-07-08 Tom Tromey <tromey@redhat.com>
4605
4606 * dwarf2expr.c (execute_stack_op): Add QUIT.
4607
26afc0d7
HZ
46082011-07-07 Hui Zhu <teawater@gmail.com>
4609
4610 Revert:
4611 2011-07-06 Hui Zhu <teawater@gmail.com>
4612 * remote.c (remote_start_remote): Add TRY_CATCH for
4613 remote_get_trace_status.
4614 * tracepoint.c (disconnect_tracing): Ditto.
4615
a40a111f
AB
46162011-07-07 Andrew Burgess <aburgess@broadcom.com>
4617
4618 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4619 variables as signed, not unsigned.
4620
e2bd3b15
JB
46212011-07-06 Joel Brobecker <brobecker@adacore.com>
4622
4623 * jit.c (jit_inferior_init): Reformat forward declaration.
4624
e3d961fe 46252011-07-06 Matt Rice <ratmice@gmail.com>
4626
4627 * MAINTAINERS (Write After Approval): Add myself to the list.
4628
0f3428f0
HZ
46292011-07-06 Hui Zhu <teawater@gmail.com>
4630
4631 * remote.c (remote_start_remote): Add TRY_CATCH for
4632 remote_get_trace_status.
4633 * tracepoint.c (disconnect_tracing): Ditto.
4634
fc9f3a69
TT
46352011-07-05 Tom Tromey <tromey@redhat.com>
4636
4637 * symtab.c (operator_chars): Now static.
4638 * linespec.c (operator_chars): Don't declare.
4639
26e519b9
TJB
46402011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4641
4642 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4643
eb2a6f42
TT
46442011-07-05 Tom Tromey <tromey@redhat.com>
4645
4646 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4647 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4648 (TYPE_CPLUS_REALLY_JAVA): New macro.
4649 * dwarf2read.c (process_structure_scope): Set
4650 TYPE_CPLUS_REALLY_JAVA.
4651
21083d0f 46522011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4653
4654 * ada-lang.c: Fix typos.
4655 * amd64-tdep.c: Likewise.
4656 * breakpoint.c: Likewise.
4657 * cli/cli-decode.c: Likewise.
4658 * findcmd.c: Likewise.
4659 * inline-frame.c: Likewise.
4660 * mi/mi-main.c: Likewise.
4661 * minsyms.c: Likewise.
4662 * monitor.c: Likewise.
4663 * monitor.h: Likewise.
4664 * prologue-value.c: Likewise.
4665 * reverse.c: Likewise.
4666 * s390-tdep.c: Likewise.
4667
3b2a0cf2
JB
46682011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4669
4670 * jit.c (jit_inferior_init): Forward declare.
4671 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4672
efae1d92
JB
46732011-07-04 Joel Brobecker <brobecker@adacore.com>
4674
4675 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4676
6040a59d
JB
46772011-07-04 Tristan Gingold <gingold@adacore.com>
4678
4679 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4680 (tcb_fieldno): Add activation_link field.
4681 (get_known_tasks_addr): Moved and rewritten.
4682 (get_tcb_types_info): Set activation_link field.
4683 (read_known_tasks_array): Add parameter. Rewritten.
4684 (read_known_tasks_list): New function.
4685 (read_known_tasks): New function.
4686 (ada_build_task_list): Call read_known_tasks instead of
4687 read_known_tasks_array.
4688 * ravenscar-thread.c: Add first_task_name constant.
4689 (has_ravenscar_runtime): Check for task list too.
4690
cb741e45
JB
46912011-07-04 Tristan Gingold <gingold@adacore.com>
4692
4693 * ada-tasks.c: Renames fieldno to actb_fieldno.
4694 (ada_get_task_number): Indentation.
4695 (get_tcb_types_info): Remove all parameters. Write directly
4696 the globals.
4697 (ptid_from_atcb_common): Adjust.
4698 (read_atcb): Adjust.
4699
7475b06c
TJB
47002011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4701
4702 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4703
15230f37
TJB
47042011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4705
4706 * ui-out.c (ui_out_field_core_addr): Mention that the function
4707 description is in the header file.
4708 * ui-out.h (ui_out_field_core_addr): Document function.
4709
65743aba
TJB
47102011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4711
4712 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4713 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4714
c37a5aab
TJB
47152011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4716
4717 * symtab.c (expand_line_sal): Remove empty line.
4718
59adf69e
TS
47192011-07-04 Thomas Schwinge <thomas@schwinge.name>
4720
4721 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4722 same way as ELFOSABI_NONE.
4723 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4724
e5dd4106
TJB
47252011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4726
4727 * breakpoint.c: Fix typos in comments.
4728 * linespec.c: Likewise.
4729 * symtab.c: Likewise.
4730
d40102a1
JB
47312011-07-04 Joel Brobecker <brobecker@adacore.com>
4732
4733 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4734 section in separate object files.
4735
2f741504
JK
47362011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4737
4738 Fix false GCC warning.
4739 * linespec.c (decode_line_1): Initialize values.
4740
418c7cf7
JK
47412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 * linespec.c (find_method): Accept the function type automatically only
4744 if it was specified with parameter types.
4745
3d50dd94
JK
47462011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 Stop on first linespec terminator instead of eating what we can.
4749 * linespec.c (is_linespec_boundary): New function.
4750 (name_end): Remove function.
4751 (keep_name_info): New parameter on_boundary, replace the body.
4752 (decode_line_1): Provide the parameter to keep_name_info.
4753 (decode_compound): Likewise. Drop the trailing java return type
4754 handling. Twice.
4755
dcf9f4ab
JK
47562011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4757
4758 Fall back linespec to minimal symbols.
4759 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4760 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4761 (find_method, symbol_found): Change error to cplusplus_error.
4762
3f542ed1
JK
47632011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4764
bc68c4e5 4765 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4766
900e11f9
JK
47672011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4768 Tom Tromey <tromey@redhat.com>
4769
4770 * dwarf2read.c (check_physname): New variable.
4771 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4772 (show_check_physname): New function.
4773 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4774
2301925d
JB
47752011-07-01 Joel Brobecker <brobecker@adacore.com>
4776
4777 * machoread.c (macho_symfile_read): Delete OBE comment.
4778
38947cca
JB
47792011-07-01 Joel Brobecker <brobecker@adacore.com>
4780
4781 * machoread.c (struct macho_oso_data): Delete.
4782 (current_oso): Delete.
4783 (macho_relocate_common_syms): New function, mostly extracted
4784 out of
4785 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4786 Remove code that sets and unset current_oso.
4787 (macho_symfile_relocate): Delete handling of common symbols,
4788 now moved to macho_relocate_common_syms.
4789
a7aa0d73
JB
47902011-07-01 Joel Brobecker <brobecker@adacore.com>
4791
4792 * darwin-nat.c (darwin_ptrace): Add documentation.
4793 Set errno to zero before calling ptrace. If ptrace returns
4794 -1 and errno is zero, then change then return zero.
4795 (darwin_kill_inferior): Issue a warning instead of triggering
4796 a failed assertion when the PT_KILL ptrace operations returned
4797 nonzero.
4798
5e9bc145
JB
47992011-07-01 Joel Brobecker <brobecker@adacore.com>
4800
4801 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4802 only when inf->private->no_ptrace.
4803
00eb2c4a
JB
48042011-07-01 Joel Brobecker <brobecker@adacore.com>
4805
4806 * ada-lang.c (print_it_exception): Print temporary catchpoints
4807 as "Temporary catchpoint".
4808 (print_mention_exception): Likewise.
4809
127c81bc
TT
48102011-07-01 Tom Tromey <tromey@redhat.com>
4811
4812 * jv-lang.c (java_language_defn): Use java_printchar,
4813 java_printstr.
4814 (java_get_encoding): New function.
4815 (java_emit_char): Use generic_emit_char.
4816 (java_printchar): New function.
4817 (java_printstr): Likewise.
4818
25552254
JB
48192011-07-01 Joel Brobecker <brobecker@adacore.com>
4820
4821 * ada-typeprint.c (print_record_type): If unable to decode
4822 the name of the parent type, use the encoded name.
4823
d2d43431
JB
48242011-07-01 Jean-Charles Delay <delay@adacore.com>
4825
4826 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4827 pointer to constrained packed array type output.
4828 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4829 packed array output.
4830
54ae186f
JB
48312011-07-01 Jean-Charles Delay <delay@adacore.com>
4832
4833 * ada-typeprint.c (print_array_type): removed if condition on show
4834 being negative for bounds printing.
4835
8f17729f
JB
48362011-07-01 Joel Brobecker <brobecker@adacore.com>
4837
4838 * ada-lang.c (ada_identical_enum_types_p): New function.
4839 (symbols_are_identical_enums): New function.
4840 (remove_extra_symbols): Do nothing if NSYMS < 2.
4841 Use symbols_are_identical_enums.
4842
f5aa6869
JB
48432011-07-01 Joel Brobecker <brobecker@adacore.com>
4844
4845 * ada-valprint.c (ada_value_print): Handle typedefs.
4846
8f465ea7
JB
48472011-07-01 Joel Brobecker <brobecker@adacore.com>
4848
4849 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4850
828292f2
JB
48512011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4852
4853 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4854 (decode_constrained_packed_array): Likewise.
4855 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4856
18920c42
JB
48572011-07-01 Joel Brobecker <brobecker@adacore.com>
4858
4859 * ada-exp.y (convert_char_literal): Handle typedef types.
4860
c90092fe
JB
48612011-07-01 Joel Brobecker <brobecker@adacore.com>
4862
4863 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4864
f748fb40
TT
48652011-06-30 Tom Tromey <tromey@redhat.com>
4866
4867 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4868 * valops.c (find_overload_match): Call do_cleanups on early exit
4869 path.
4870 * solib.c (solib_find): Call do_cleanups on early exit path.
4871
3bb47e8b
TT
48722011-06-30 Tom Tromey <tromey@redhat.com>
4873
4874 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4875 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4876 return paths. Defer final do_cleanups until last return.
4877 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4878 early return.
4879
4727bad3
TT
48802011-06-30 Tom Tromey <tromey@redhat.com>
4881
4882 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4883
bb361dbf
AB
48842011-06-30 Andrew Burgess <aburgess@broadcom.com>
4885
4886 * MAINTAINERS (Write After Approval): Add myself to the list.
4887
e0d00bc7
JK
48882011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4889
4890 Disable epilogue unwinders on recent GCCs.
4891 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4892 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4893 * dwarf2read.c (process_full_comp_unit): Initialize
4894 EPILOGUE_UNWIND_VALID.
4895 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4896 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4897 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4898
4632c0d0
JK
48992011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4900
4901 Code cleanup - reformatting.
4902 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4903 (producer_is_gcc_ge_4): ... here, change the return value.
4904 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4905 interpretation.
4906
32019081
JK
49072011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4908
4909 Fix non-only rename list for Fortran modules import.
4910 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4911 cp_add_using_directive caller.
4912 (cp_add_using_directive): New parameter excludes, describe it. New
4913 variables ix and param. Compare if also excludes match. Allocate NEW
4914 with variable size, initialize EXCLUDES there.
4915 (cp_lookup_symbol_imports): New variable excludep, test
4916 current->EXCLUDES with it.
4917 * cp-support.h: Include vec.h.
4918 (struct using_direct): New field excludes, describe it.
4919 (DEF_VEC_P (const_char_ptr)): New.
4920 (cp_add_using_directive): New parameter excludes.
4921 * defs.h (const_char_ptr): New typedef.
4922 * dwarf2read.c (read_import_statement): New variables child_die,
4923 excludes and cleanups, read in excludes.
4924 (read_namespace): Adjust the cp_add_using_directive caller.
4925
70c622a3
JK
49262011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4927
4928 Code cleanup.
4929 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4930 negative comparisons.
4931
39c4d40a
TT
49322011-06-29 André Pönitz <andre.poenitz@nokia.com>
4933
4934 * mi/mi-main.c (mi_cmd_list_features): Emit
4935 breakpoint-notifications.
4936
3b2b8fea
TT
49372011-06-29 Tom Tromey <tromey@redhat.com>
4938
4939 PR fortran/10036:
4940 * valprint.h (generic_emit_char, generic_printstr): Declare.
4941 * valprint.c (wchar_printable, append_string_as_wide)
4942 (print_wchar): Move from c-lang.c.
4943 (generic_emit_char): New function; mostly taken from c_emit_char.
4944 (generic_printstr): New function; mostly taken from c_printstr.
4945 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4946 represented as arrays.
4947 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4948 type.
4949 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4950 identically to TYPE_CODE_INT.
4951 * f-lang.c (f_get_encoding): New function.
4952 (f_emit_char): Use generic_emit_char.
4953 (f_printchar): Replace comment.
4954 (f_printstr): Use generic_printstr.
4955 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4956 "character" types specially.
4957 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4958 for Fortran.
4959 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4960 Move to valprint.c
4961 (c_emit_char): Call generic_emit_char.
4962 (c_printstr): Call generic_printstr.
4963
168e6d44
GB
49642011-06-29 Gary Benson <gbenson@redhat.com>
4965
4966 * breakpoint.c (bpstat_what): Removed duplicated case.
4967
1c033f8c
TT
49682011-06-28 Tom Tromey <tromey@redhat.com>
4969
4970 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4971
5fe41fbf
TT
49722011-06-27 Tom Tromey <tromey@redhat.com>
4973
4974 * valops.c (find_overload_match): Call do_cleanups before early
4975 return.
4976 * top.c (execute_command): Call do_cleanups before early return.
4977 (command_loop): Likewise.
4978 * stack.c (backtrace_command): Make a null cleanup early. Don't
4979 conditionally call do_cleanups.
4980 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4981 TRY_CATCH.
4982 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4983 so cleanups are always run.
4984 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4985 * findcmd.c (parse_find_args): Call do_cleanups on early return
4986 path.
4987 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4988 Don't conditionally call do_cleanups.
4989 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4990 later.
4991
e26bd57d
EB
49922011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4993
4994 * MAINTAINERS (Write After Approval): Use default email address.
4995
6c3097fc
JB
49962011-06-27 Joel Brobecker <brobecker@adacore.com>
4997
4998 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4999
369c397b
JB
50002011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5001
5002 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5003 saved_regs_mask and copied_regs_mask fields.
5004 (sparc_record_save_insn): New prototype.
5005 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5006 (sparc_record_save_insn): New function.
5007 (sparc_analyze_prologue): Add head comment. Recognize store insns
5008 of call-saved registers. Use OFFSET consistently. Recognize flat
5009 frames and cache their settings.
5010 (sparc32_skip_prologue): Handle flat frames.
5011 (sparc_frame_cache): Add frame_offset to the base address.
5012 (sparc32_frame_cache): Adjust to new frame description.
5013 (sparc32_frame_prev_register): Likewise.
5014 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5015 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5016 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5017 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5018 frame by calling sparc_record_save_insn.
5019 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5020 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5021 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5022
b315ab21
TG
50232011-06-27 Tristan Gingold <gingold@adacore.com>
5024
5025 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5026 field by map_addr and map_len.
5027 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5028 (munmap_section_buffer): Likewise.
5029
ddd49eee
TT
50302011-06-24 Tom Tromey <tromey@redhat.com>
5031
5032 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5033 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5034 * python/python.c (gdbpy_parameter): Make 'arg' const.
5035 (execute_gdb_command): Likewise.
5036 (gdbpy_decode_line): Likewise. Copy it.
5037 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5038 (gdbpy_write): Make 'arg' const.
5039 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5040 const.
5041 (gdbpy_lookup_type): Likewise.
5042 * python/py-prettyprint.c (print_children): Make 'name' const.
5043 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5044 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5045 Py_ssize_t.
5046 * python/py-function.c (fnpy_init): Make 'name' const.
5047 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5048 (gdbpy_string_to_argv): Make 'input' const.
5049 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5050 it.
5051 * gdbtypes.h (lookup_typename): Update.
5052 * gdbtypes.c (lookup_typename): Make 'name' const.
5053 (lookup_struct): Likewise.
5054 (lookup_union): Likewise.
5055 (lookup_enum): Likewise.
5056
5998129b
TT
50572011-06-24 Tom Tromey <tromey@redhat.com>
5058
5059 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5060 gdb_thread_db.h. Move all common/ entries to be together.
5061 (TAGS): Don't depend on DEPFILES.
5062
6e586cc5
YQ
50632011-06-23 Yao Qi <yao@codesourcery.com>
5064
5065 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5066 * remote.c (remote_start_remote): ... here.
5067 * monitor.c (monitor_open): ... here.
5068
86c3c1fc
AB
50692011-06-23 Andrew Burgess <aburgess@broadcom.com>
5070
5071 * gdbtypes.c (append_composite_type_field_aligned): Fix
5072 calculation of bit position based on alignment.
5073
28010a5d
PA
50742011-06-22 Pedro Alves <pedro@codesourcery.com>
5075
5076 * breakpoint.c (bpstat_stop_status): Call the check_status
5077 breakpoint_ops method.
5078 (print_one_breakpoint_location): Also print the condition for Ada
5079 exception catchpoints.
5080 (allocate_bp_location): New, factored out from
5081 allocate_bp_location.
5082 (allocate_bp_location): Adjust. Call the owner breakpoint's
5083 allocate_location method, if there is one.
5084 (free_bp_location): Call the locations's dtor method, if there is
5085 one.
5086 (init_raw_breakpoint_without_location): New breakpoint_ops
5087 parameter. Use it.
5088 (set_raw_breakpoint_without_location): Adjust.
5089 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5090 (set_raw_breakpoint): Adjust.
5091 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5092 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5093 re_set and check_status methods.
5094 (init_catchpoint): Don't memset, initialize thread, addr_string
5095 and enable_state. Pass the ops down to init_raw_breakpoint.
5096 (install_catchpoint): Rename to ...
5097 (install_breakpoint): ... this, and make extern.
5098 (create_fork_vfork_event_catchpoint): Adjust.
5099 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5100 re_set and check_status methods.
5101 (create_syscall_event_catchpoint): Adjust.
5102 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5103 (masked_watchpoint_breakpoint_ops): Install NULL
5104 allocate_location, re_set and check_status methods.
5105 (catch_exec_command_1): Adjust.
5106 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5107 re_set and check_status methods.
5108 (create_ada_exception_breakpoint): Rename to ...
5109 (init_ada_exception_breakpoint): ... this. Add a struct
5110 breakpoint parameter, and delete the exp_string, cond_string and
5111 cond parameters. Use init_raw_breakpoint, and don't install or
5112 mention the breakpoint yet. Don't clear breakpoint fields that
5113 init_raw_breakpoint already clears.
5114 (re_set_breakpoint): Delete, split into ...
5115 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5116 functions.
5117 (breakpoint_re_set_one): Call the breakpoint's
5118 breakpoint_ops->re_set implementation, if there's one. Adjust.
5119 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5120 (struct bp_location_ops): New type.
5121 (struct bp_location): New field `ops'.
5122 (struct breakpoint_ops): New `allocate_location', `re_set' and
5123 `check_status' fields. Make `breakpoint_hit''s description match
5124 reality.
5125 (init_bp_location): Declare.
5126 (breakpoint_re_set_default): Declare.
5127 (create_ada_exception_breakpoint): Rename to ...
5128 (init_ada_exception_breakpoint): ... this. Add a struct
5129 breakpoint parameter, and delete the exp_string, cond_string and
5130 cond parameters.
5131 (install_breakpoint): Declare.
5132 * ada-lang.c: Include exceptions.h.
5133 <Ada exceptions description>: Update.
5134 (struct ada_catchpoint_location): New type.
5135 (ada_catchpoint_location_dtor): New function.
5136 (ada_catchpoint_location_ops): New global.
5137 (ada_catchpoint): New type.
5138 (create_excep_cond_exprs): New function.
5139 (dtor_exception, allocate_location_exception, re_set_exception)
5140 (should_stop_exception, check_status_exception): New functions.
5141 (print_one_exception, print_mention_exception)
5142 (print_recreate_exception): Adjust.
5143 (dtor_catch_exception, allocate_location_catch_exception)
5144 (re_set_catch_exception, check_status_catch_exception): New
5145 functions.
5146 (catch_exception_breakpoint_ops): Install them.
5147 (dtor_catch_exception_unhandled)
5148 (allocate_location_catch_exception_unhandled)
5149 (re_set_catch_exception_unhandled)
5150 (check_status_catch_exception_unhandled): New functions.
5151 (catch_exception_unhandled_breakpoint_ops): Install them.
5152 (dtor_catch_assert, allocate_location_catch_assert)
5153 (re_set_catch_assert, check_status_catch_assert): New functions.
5154 (catch_assert_breakpoint_ops): Install them.
5155 (ada_exception_catchpoint_p): Delete.
5156 (catch_ada_exception_command_split)
5157 (ada_exception_catchpoint_cond_string): Rename exp_string
5158 parameter to excep_string. Adjust.
5159 (ada_parse_catchpoint_condition): Delete.
5160 (ada_exception_sal): Rename the exp_string parameter to
5161 excep_string. Delete the cond_string and cond parameters.
5162 Adjust.
5163 (ada_decode_exception_location): Rename the exp_string parameter
5164 to excep_string. Delete the cond_string and cond parameters.
5165 Adjust.
5166 (create_ada_exception_catchpoint): New function.
5167 (catch_ada_exception_command, ada_decode_assert_location)
5168 (catch_assert_command): Adjust.
5169 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5170
9ac4176b
PA
51712011-06-22 Pedro Alves <pedro@codesourcery.com>
5172
5173 * ada-lang.c: Include arch-utils.h.
5174 (ada_decode_exception_location): Make static.
5175 (catch_ada_exception_command): Moved here from breakpoint.c.
5176 (ada_decode_assert_location): Make static.
5177 (catch_assert_command): Moved here from breakpoint.c.
5178 (_initialize_ada_lang): Install the exception and assert
5179 catchpoint commands here.
5180 * ada-lang.h (ada_decode_exception_location)
5181 (ada_decode_assert_location): Delete declarations.
5182 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5183 breakpoint.h.
5184 (create_ada_exception_breakpoint): Make extern.
5185 (catch_ada_exception_command, catch_assert_command): Moved to
5186 ada-lang.c.
5187 (add_catch_command): Make extern.
5188 (_initilize_breakpoint): Don't install the exception and assert
5189 catchpoint commands here.
5190 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5191 breakpoint.c
5192 (add_catch_command, create_ada_exception_breakpoint): Declare.
5193
c56053d2
PA
51942011-06-22 Pedro Alves <pedro@codesourcery.com>
5195
5196 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5197 the breakpoint to the breakpoint chain here.
5198 (set_raw_breakpoint_without_location): Add the breakpoint to the
5199 breakpoint chain here.
5200 (init_raw_breakpoint): Adjust comments.
5201 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5202 here.
5203 (init_catchpoint): Don't set the catchpoint's breakpoint number
5204 here.
5205 (install_catchpoint): New function.
5206 (create_fork_vfork_event_catchpoint)
5207 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5208 use install_catchpoint.
5209
d2f3fc74
PA
52102011-06-22 Pedro Alves <pedro@codesourcery.com>
5211
5212 * breakpoint.c (create_catchpoint_without_mention)
5213 (create_catchpoint): Delete.
5214
b4d90040
PA
52152011-06-22 Pedro Alves <pedro@codesourcery.com>
5216
5217 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5218 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5219 reference to exec_pathname.
5220 (struct exec_catchpoint): New type.
5221 (dtor_catch_exec): New function.
5222 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5223 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5224 (catch_exec_command_1): Adjust to use init_catchpoint.
5225 (delete_breakpoint): Remove reference to exec_pathname.
5226
be5c67c1
PA
52272011-06-22 Pedro Alves <pedro@codesourcery.com>
5228
5229 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5230 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5231 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5232 reference to syscalls_to_be_caught.
5233 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5234 NULL `dtor'.
5235 (struct syscall_catchpoint): New type.
5236 (dtor_catch_syscall): New function.
5237 (insert_catch_syscall, remove_catch_syscall)
5238 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5239 (print_recreate_catch_syscall): Adjust.
5240 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5241 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5242 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5243 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5244 (masked_watchpoint_breakpoint_ops)
5245 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5246 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5247 there is one. Remove references to syscalls_to_be_caught.
5248 (catching_syscall_number): Adjust.
5249 * ada-lang.c (catch_exception_breakpoint_ops)
5250 (catch_exception_unhandled_breakpoint_ops)
5251 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5252
e29a4733
PA
52532011-06-22 Pedro Alves <pedro@codesourcery.com>
5254
5255 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5256 field.
5257 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5258 reference to forked_inferior_pid.
5259 (struct fork_catchpoint): New type.
5260 (breakpoint_hit_catch_fork, print_it_catch_fork)
5261 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5262 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5263 (create_fork_vfork_event_catchpoint): Adjust to use
5264 init_catchpoint.
5265
346774a9
PA
52662011-06-22 Pedro Alves <pedro@codesourcery.com>
5267
5268 * breakpoint.c (add_to_breakpoint_chain)
5269 (init_raw_breakpoint_without_location): New functions, factored
5270 out from ...
5271 (set_raw_breakpoint_without_location): ... this one.
5272 (init_raw_breakpoint): New function, factored out from
5273 set_raw_breakpoint and adjusted to use
5274 init_raw_breakpoint_without_location.
5275 (set_raw_breakpoint): Adjust.
5276 (init_catchpoint): New function, factored out from
5277 create_catchpoint_without_mention and adjusted to use
5278 init_raw_breakpoint.
5279 (create_catchpoint_without_mention): Adjust.
5280
c38c4bc5
TT
52812011-06-22 Tom Tromey <tromey@redhat.com>
5282
5283 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5284 argument of 0 specially.
5285
b138ce37
YQ
52862011-06-22 Yao Qi <yao@codesourcery.com>
5287
5288 * infrun.c (handle_inferior_event): Remove write-only local variable
5289 `sw_single_step_trap_p'.
5290
03de6823
TT
52912011-06-20 Tom Tromey <tromey@redhat.com>
5292
5293 * symtab.c (lookup_language_this): End loop if block is NULL.
5294
66a17cb6
TT
52952011-06-17 Tom Tromey <tromey@redhat.com>
5296
5297 * valops.c (value_of_this): Use lookup_language_this.
5298 * symtab.h (lookup_language_this): Declare.
5299 * symtab.c (lookup_language_this): New function.
5300 (lookup_symbol_aux): Use lookup_language_this.
5301 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5302
7518bff5
TT
53032011-06-17 Tom Tromey <tromey@redhat.com>
5304
5305 * value.h (value_of_this): Update.
5306 (value_of_local): Remove.
5307 * valops.c (value_of_this): Rename from value_of_local. Change
5308 parameters.
5309 * p-exp.y (exp): Update.
5310 (variable): Likewise.
5311 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5312
aee28ec6
TT
53132011-06-17 Tom Tromey <tromey@redhat.com>
5314
5315 * valops.c (value_of_local): Complain if NAME is NULL.
5316 * std-operator.def (OP_OBJC_SELF): Remove.
5317 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5318 * objc-exp.y (name_not_typename): Use OP_THIS.
5319 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5320 name for "this".
5321 <OP_OBJC_SELF>: Remove.
5322 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5323
eed8f803
TG
53242011-06-16 Tristan Gingold <gingold@adacore.com>
5325
5326 * python/py-events.h (gdb_py_events): Make it extern.
5327 * python/py-evtregistry.c (gdb_py_events): Declare.
5328
864ac8a7
HZ
53292011-06-16 Hui Zhu <teawater@gmail.com>
5330
5331 * remote.c (remote_trace_set_readonly_regions): Add check for
5332 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5333 output warning.
5334
ef7e8358
UW
53352011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5336
5337 * arm-linux-tdep.c: Include "auxv.h".
5338 (AT_HWCAP): Define.
5339 (ARM_LINUX_SIZEOF_VFP): Define.
5340 (arm_linux_supply_vfp): New function.
5341 (arm_linux_collect_vfp): Likewise.
5342 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5343 (arm_linux_fpa_regset_sections): New variable.
5344 (arm_linux_vfp_regset_sections): Likewise.
5345 (arm_linux_core_read_description): New function.
5346 (arm_linux_init_abi): Install arm_linux_core_read_description and
5347 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5348 appropriate for the architecture.
5349 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5350 (tdesc_arm_with_m): Declare.
5351 (tdesc_arm_with_iwmmxt): Likewise.
5352 (tdesc_arm_with_vfpv2): Likewise.
5353 (tdesc_arm_with_vfpv3): Likewise.
5354 (tdesc_arm_with_neon): Likewise.
5355 * arm-linux-nat.c: Move features/*.c includes ...
5356 * arm-tdep.c: ... here.
5357 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5358 target description data structures ...
5359 * arm-tdep.c (_initialize_arm_tdep): ... here.
5360 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5361 HWCAP_VFPv3D16): Move definitions ...
5362 * arm-linux-tdep.h: ... here.
5363
c2fa21f1
HZ
53642011-06-15 Hui Zhu <teawater@gmail.com>
5365
5366 * remote.c (remote_trace_set_readonly_regions): Add a check for
5367 target_buf_size.
5368
dd707e8e
TT
53692011-06-14 Tom Tromey <tromey@redhat.com>
5370
5371 * coffread.c (coffread_objfile): Rename from current_objfile.
5372 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5373 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5374
86cc0029
TT
53752011-06-14 Tom Tromey <tromey@redhat.com>
5376
5377 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5378 (class_symtab): Remove.
5379 (jv_dynamics_progspace_key): New global.
5380 (jv_per_objfile_free): Reset program space data. Update assert.
5381 Don't clear globals.
5382 (get_dynamics_objfile): Use and set program space data.
5383 (get_java_class_symtab): Use get_dynamics_objfile.
5384 (add_class_symbol): Likewise.
5385 (java_link_class_type): Likewise.
5386 (java_object_type, jv_clear_object_type, set_java_object_type):
5387 Remove.
5388 (get_java_object_type): Update. Don't cache result.
5389 (is_object_type): Don't call set_java_object_type.
5390 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5391 initialize jv_dynamics_progspace_key.
5392
91a81f69
TT
53932011-06-14 Tom Tromey <tromey@redhat.com>
5394
5395 * symtab.h (current_objfile): Don't declare.
5396 * objfiles.h (current_objfile): Don't declare.
5397 * objfiles.c (current_objfile): Remove.
5398 * mdebugread.c (current_objfile): New file-scope global.
5399 * dbxread.c (current_objfile): New file-scope global.
5400 * coffread.c (current_objfile): New file-scope global.
5401
dc7eb48e
PA
54022011-06-13 Pedro Alves <pedro@codesourcery.com>
5403
5404 * top.h (line): Rename to ...
5405 (saved_command_line): ... this.
5406 (linesize): Rename to ...
5407 (saved_command_line_size): ... this.
5408 * top.c (line): Rename to ...
5409 (saved_command_line): ... this.
5410 (linesize): Rename to ...
5411 (saved_command_line_size): ... this.
5412 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5413 * event-top.c (command_line_handler): Adjust.
5414 * main.c (captured_main): Adjust.
5415
0d6c2135
MK
54162011-06-12 Mark Kettenis <kettenis@gnu.org>
5417
5418 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5419 get_frame_func instead of get_frame_pc to determine the code
5420 address used to construct the frame ID.
5421 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5422 (i386_epilogue_frame_this_id): Likewise.
5423 (i386_epilogue_frame_prev_register): New function.
5424 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5425 (i386_stack_tramp_frame_sniffer): Fix coding style.
5426 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5427 (i386_gdbarch_init): Fix comments.
5428
8bbdd3f4
MK
54292011-06-12 Mark Kettenis <kettenis@gnu.org>
5430
5431 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5432 instruction when walking back through the instruction stream.
5433
533a737e
JK
54342011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5435
5436 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5437 fullname parameters order.
5438
44b13c5a
JK
54392011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5440
5441 Code cleanup.
5442 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5443 for fun.
5444 * psymtab.c (map_symbol_filenames_psymtab)
5445 (map_partial_symbol_filenames): Likewise.
5446 * psymtab.h: Include symfile.h.
5447 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5448 * symfile.h (symbol_filename_ftype): New.
5449 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5450 map_symbol_filenames, clarify more the naming in comment.
5451
0b5574da
DE
54522011-06-07 Doug Evans <dje@google.com>
5453
5454 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5455 Look for ../../gdb, for fullname.exp.
0b5574da 5456
5be4dfca
JK
54572011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5458 Pedro Alves <pedro@codesourcery.com>
5459
5460 * cli/cli-cmds.c (shell_escape): Use waitpid.
5461 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5462
316a8b21
TG
54632011-06-07 Tristan Gingold <gingold@adacore.com>
5464
5465 * xcoffread.c (dwarf2_xcoff_names): New variable.
5466 (aix_process_linenos): Add a guard.
5467 (xcoff_symfile_finish): Free dwarf2.
5468 (xcoff_initial_scan): Add dwarf2 support.
5469
3dd5b83d
PA
54702011-06-06 Pedro Alves <pedro@codesourcery.com>
5471
5472 * infcall.c (run_inferior_call): Don't mask async. Instead force
5473 a synchronous wait, if the target can async.
5474
5475 * target.h (struct target_ops): Delete to_async_mask.
5476 (target_async_mask): Delete.
5477 * target.c (update_current_target): Delete references to to_async_mask.
5478 * linux-nat.c (linux_nat_async_mask_value): Delete.
5479 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5480 to linux_nat_async_mask_value.
5481 (linux_nat_async_mask): Delete.
5482 (linux_nat_async, linux_nat_close): Remove references to
5483 linux_nat_async_mask_value.
5484 * record.c (record_async_mask_value): Delete.
5485 (record_async): Remove references to record_async_mask_value.
5486 (record_async_mask): Delete.
5487 (record_can_async_p, record_is_async_p): Remove references to
5488 record_async_mask_value.
5489 (init_record_ops, init_record_core_ops): Remove references to
5490 record_async_mask.
5491 * remote.c (remote_async_mask_value): Delete.
5492 (init_remote_ops): Remove reference to remote_async_mask.
5493 (remote_can_async_p, remote_is_async_p): Remove references to
5494 remote_async_mask_value.
5495 (remote_async): Remove references to remote_async_mask_value.
5496 (remote_async_mask): Delete.
5497
5498 * infrun.c (fetch_inferior_event): Don't claim registers changed
5499 if the current thread is already not executing.
5500
64b9b334
JB
55012011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5502
5503 From Stephen Kitt <steve@sk2.org>
5504 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5505 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5506
325663dc
JB
55072011-06-03 Joel Brobecker <brobecker@adacore.com>
5508
5509 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5510 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5511
8cf64490
TT
55122011-06-03 Tom Tromey <tromey@redhat.com>
5513
5514 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5515 code fields.
5516 * python/py-exitedevent.c (create_exited_event_object): Change
5517 type of 'exit_code'. Optionally add exit_code attribute.
5518 (emit_exited_event): Change type of 'exit_code'.
5519 * python/py-event.h (emit_exited_event): Update.
5520 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5521 * infrun.c (handle_inferior_event): Set exit code fields on
5522 inferior.
5523 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5524 fields.
5525 * inferior.c (exit_inferior_1): Initialize new fields.
5526
8ddd9a20
TT
55272011-06-03 Tom Tromey <tromey@redhat.com>
5528
5529 * dwarf2expr.c (get_signed_type): New function.
5530 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5531
8dfd1e6d
KS
55322011-06-02 Keith Seitz <keiths@redhat.com>
5533
5534 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5535
65fdb766
PA
55362011-06-02 Pedro Alves <pedro@codesourcery.com>
5537
5538 * top.h (simplified_command_loop): Delete declaration.
5539
f4b8c29b
MF
55402011-06-01 Mike Frysinger <vapier@gentoo.org>
5541
5542 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5543 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5544
1706c199
YQ
55452011-06-01 Yao Qi <yao@codesourcery.com>
5546
5547 * objfiles.h (obj_section_addr): Update reference to objfile from
5548 `abfd' to `obfd'.
5549 (obj_section_endaddr): Likewise.
5550
d19cd713 55512011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5552
5553 * MAINTAINERS: Update my email address and affiliation. Also
5554 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5555
e8eb7bc5
KS
55562010-05-31 Keith Seitz <keiths@redhat.com>
5557
5558 PR c++/12750
5559 * linespec.c (get_search_block): New function.
5560 (find_methods): Add FILE_SYMTATB parameter and use it and
5561 get_search_block to pass an appropriate block to
5562 lookup_symbol_in_namespace.
5563 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5564 Check if *ARGPTR starts with a filename first.
5565 If it does, call locate_first_half again to locate the next
5566 "first half" of the linespec.
5567 Pass FILE_SYMTATB to decode_objc and decode_compound.
5568 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5569 (locate_first_half): Stop on the first colon seen.
5570 (decode_compound): Add FILE_SYMTAB parameter.
5571 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5572 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5573 get_search_block with lookup_symbol.
5574 (find_method): Add FILE_SYMTAB parameter and pass it to
5575 find_methods.
5576 (decode_objc): Use get_search_block.
5577
2b1dbab0
KS
55782010-05-31 Keith Seitz <keiths@redhat.com>
5579
5580 PR symtab/12704
5581 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5582 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5583 and CP_ANONYMOUS_NAMESPACE_LEN.
5584 (cp_is_anonymous): Likewise.
5585 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5586 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5587 * dwarf2read.c (namespace_name): Likewise.
5588 (fixup_partial_die): Likewise.
5589 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5590 seen in the input, keep it.
5591
6d549500
PA
55922011-05-30 Pedro Alves <pedro@codesourcery.com>
5593
5594 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5595 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5596 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5597 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5598 * remote.c (_initialize_remote): Register
5599 async_remote_interrupt_twice directly as
5600 sigint_remote_twice_token event.
5601
395bff70
PA
56022011-05-30 Pedro Alves <pedro@codesourcery.com>
5603
5604 * target.h (enum inferior_event_type): Delete INF_ERROR.
5605 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5606
97224164
PA
56072011-05-30 Pedro Alves <pedro@codesourcery.com>
5608
5609 * interps.c (interp_set): Don't cancel continuations.
5610
07e78767
JK
56112011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5612
5613 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5614
fa4cd53f
PA
56152011-05-30 Pedro Alves <pedro@codesourcery.com>
5616
5617 * continuations.h (continuation_ftype): Add `err' parameter.
5618 Document parameters.
5619 (do_all_continuations, do_all_continuations_thread)
5620 (do_all_intermediate_continuations)
5621 (do_all_intermediate_continuations_thread)
5622 (do_all_inferior_continuations): Add `err' parameter.
5623 * continuations.c (do_my_continuations_1, do_my_continuations)
5624 (do_all_inferior_continuations, do_all_continuations_ptid)
5625 (do_all_continuations_thread_callback)
5626 (do_all_continuations_thread, do_all_continuations)
5627 (do_all_intermediate_continuations_thread_callback)
5628 (do_all_intermediate_continuations_thread)
5629 (do_all_intermediate_continuations): Add `err' parameter, and pass
5630 it down all the way to the continuations proper.
5631 * inf-loop.c (inferior_event_handler): If fetching an inferior
5632 event throws an error, don't pop the target, and still call the
5633 continuations, but with `err' set. Adjust all other continuation
5634 calls.
5635 * breakpoint.c (until_break_command_continuation): Add `err'
5636 parameter.
5637 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5638 issue another step if `err' is set.
5639 (struct until_next_continuation_args): New.
5640 (until_next_continuation): Add `err' parameter. Adjust.
5641 (until_next_command): Adjust.
5642 (struct finish_command_continuation_args): Add `thread' field.
5643 (finish_command_continuation): Add `err' parameter. Handle it.
5644 (finish_forward): Adjust.
5645 (attach_command_continuation): Add `err' parameter. Handle it.
5646 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5647 cancel the continuations.
5648 * interps.c (interp_set): Adjust to cancel the continuations.
5649 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5650 continuations rather than discarding.
5651 (free_thread): Don't clear thread inferior resources here.
5652 (delete_thread_1): Do it here instead. And do it before removing
5653 the thread from the threads list. Tag the thread as exited before
5654 clearing thread inferior resources.
5655
c2949be0
JB
56562011-05-30 Joel Brobecker <brobecker@adacore.com>
5657
5658 * infcall.c (call_function_by_hand): Rephrase error message.
5659
619cebe8
PA
56602011-05-27 Pedro Alves <pedro@codesourcery.com>
5661
5662 * defs.h (struct thread_info, struct inferior): Delete forward
5663 declarations.
5664 * breakpoint.h (struct thread_info): New forward declaration.
5665 * observer.sh (struct inferior): New forward declaration.
5666 * python/python-internal.h (struct inferior): New forward
5667 declaration.
5668
be34f849
PA
56692011-05-27 Pedro Alves <pedro@codesourcery.com>
5670
5671 * defs.h (struct continuation, continuation_ftype)
5672 (continuation_free_arg_ftype, add_continuation)
5673 (do_all_continuations, do_all_continuations_thread)
5674 (discard_all_continuations, discard_all_continuations_thread)
5675 (add_intermediate_continuation, do_all_intermediate_continuations)
5676 (do_all_intermediate_continuations_thread)
5677 (discard_all_intermediate_continuations)
5678 (discard_all_intermediate_continuations_thread)
5679 (add_inferior_continuation, do_all_inferior_continuations)
5680 (discard_all_inferior_continuations): Move to ...
5681 * continuations.h: ... this new file.
5682 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5683 infcmd.c, inferior.c, infrun.c, interps.c: Include
5684 continuations.h.
5685
432b4d03
JK
56862011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5687 Doug Evans <dje@google.com>
5688
5689 Fix PR 10970, PR 12702.
5690 * linux-nat.c (linux_lwp_is_zombie): New function.
5691 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5692 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5693
b0f260d6
PA
56942011-05-27 Pedro Alves <pedro@codesourcery.com>
5695
5696 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5697 typedefs.
5698 (add_continuation, add_intermediate_continuation)
5699 (add_inferior_continuation): Use them.
5700 * continuations.c (struct continuation): Use them.
5701 (make_continuation_ftype): Delete.
5702 (make_continuation, add_inferior_continuation, add_continuation)
5703 (add_intermediate_continuation): Use continuation_ftype and
5704 continuation_free_arg_ftype. Rename parameters to shorter names.
5705
af1e9a32
PA
57062011-05-27 Pedro Alves <pedro@codesourcery.com>
5707
5708 * continuations.c (make_continuation): Make it return void.
5709 (do_my_continuations): Rename to ...
5710 (do_my_continuations_1): ... this. Remove old_chain parameter and
5711 adjust.
5712 (do_my_continuations): New.
5713 (discard_my_continuations): Rename to ...
5714 (discard_my_continuations_1): ... this. Remove old_chain
5715 parameter and adjust.
5716 (discard_my_continuations): New.
5717 (add_inferior_continuation): Simplify.
5718 (do_all_inferior_continuations): Reimplement on top
5719 do_my_continuations.
5720 (discard_all_inferior_continuations): Simplify.
5721 (add_continuation): Simplify.
5722 (do_all_continuations_ptid): Simplify.
5723 (discard_all_continuations_thread_callback): Simplify.
5724 (add_intermediate_continuation): Simplify.
5725 (discard_all_intermediate_continuations_thread_callback):
5726 Simplify.
5727
50c0c017
PA
57282011-05-27 Pedro Alves <pedro@codesourcery.com>
5729
5730 * utils.c (struct continuation, add_continuation)
5731 (add_inferior_continuation)
5732 (do_all_inferior_continuations, discard_all_inferior_continuations)
5733 (restore_thread_cleanup, do_all_continuations_ptid)
5734 (do_all_continuations_thread_callback)
5735 (do_all_continuations_thread, do_all_continuations)
5736 (discard_all_continuations_thread_callback)
5737 (discard_all_continuations_thread, discard_all_continuations)
5738 (add_intermediate_continuation)
5739 (do_all_intermediate_continuations_thread_callback)
5740 (do_all_intermediate_continuations_thread)
5741 (do_all_intermediate_continuations)
5742 (discard_all_intermediate_continuations_thread_callback)
5743 (discard_all_intermediate_continuations_thread)
5744 (discard_all_intermediate_continuations): Move to ...
5745 * continuations.c: ... this new file, and adjust to no longer
5746 implement continuations on top of cleanups.
5747 * Makefile.in (SFILES): Add continuations.c.
5748 (COMMON_OBS): Add continuations.o.
5749
d8b34453
PA
57502011-05-26 Pedro Alves <pedro@codesourcery.com>
5751
5752 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5753 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5754 Internal error on invalid values.
5755 * reverse.c: Don't handle EXEC_ERROR.
5756 * mi/mi-main.c: Don't handle EXEC_ERROR.
5757
32231432
PA
57582011-05-26 Pedro Alves <pedro@codesourcery.com>
5759
5760 * record.c: Include event-loop.h, inf-loop.h.
5761 (record_beneath_to_async): New global.
5762 (tmp_to_async): New global.
5763 (record_async_inferior_event_token): New global.
5764 (record_open_1): Don't error out if async is enabled.
5765 (record_open): Handle to_async. Create an async event source in
5766 the event loop.
5767 (record_close): Delete the async event source.
5768 (record_resumed): New global.
5769 (record_execution_dir): New global.
5770 (record_resume, record_core_resume): Set them. Register the
5771 target on the event loop.
5772 (record_wait): Rename to ...
5773 (record_wait_1): ... this. Add more debug output. Handle
5774 TARGET_WNOHANG, and the target beneath returning
5775 TARGET_WAITKIND_IGNORE.
5776 (record_wait): Reimplement on top of record_wait_1.
5777 (record_async_mask_value): New global.
5778 (record_async, record_async_mask, record_can_async_p)
5779 (record_is_async_p, record_execution_direction): New functions.
5780 (init_record_ops, init_record_core_ops): Install new methods.
5781 * infrun.c (fetch_inferior_event): Temporarily switch the global
5782 execution direction to the direction the target was going.
5783 (execution_direction): Change type to int.
5784 * target.c (default_execution_direction): New function.
5785 (update_current_target): Inherit and de_fault
5786 to_execution_direction.
5787 * target.h (struct target_ops) <to_execution_direction>: New
5788 field.
5789 (target_execution_direction): New macro.
5790 * inferior.h (execution_direction): Change type to int.
5791
949dc678
PA
57922011-05-26 Pedro Alves <pedro@codesourcery.com>
5793
5794 * infcall.c (call_function_by_hand): Don't allow calling functions
5795 in reverse execution mode.
5796
c13bd2b5
PA
57972011-05-26 Pedro Alves <pedro@codesourcery.com>
5798
5799 * infcmd.c (finish_command): Allow async finish in reverse.
5800
6938fd34
YQ
58012011-05-26 Yao Qi <yao@codesourcery.com>
5802
5803 * gdb_thread_db.h: Delete. Move to ...
5804 * common/gdb_thread_db.h: ... here.
5805
9da8c2a0
PA
58062011-05-26 Pedro Alves <pedro@codesourcery.com>
5807
5808 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5809 function's entry point instead of a manually managed momentary
5810 breakpoint, and only ever issue one proceed call.
5811 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5812 doing a reverse-finish, switch to stepi mode, to do another step.
5813 (insert_step_resume_breakpoint_at_sal): Make public.
5814 (normal_stop): No need to save function value return registers if
5815 going reverse.
5816 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5817
2c03e5be
PA
58182011-05-26 Pedro Alves <pedro@codesourcery.com>
5819
5820 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5821 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5822 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5823 at the end.
5824 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5825 step-resume breakpoints.
5826 (print_it_typical): Handle bp_hp_step_resume.
5827 (bpstat_what): Ditto.
5828 (bptype_string): Ditto.
5829 (print_one_breakpoint_location): Ditto.
5830 (allocate_bp_location): Ditto.
5831 (mention): Ditto.
5832 (breakpoint_re_set_one): Ditto.
5833 * infrun.c (handle_inferior_event): Adjust. Split
5834 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5835 BPSTAT_WHAT_HP_STEP_RESUME.
5836 (insert_step_resume_breakpoint_at_sal): Rename to ...
5837 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5838 parameter. Handle it.
5839 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5840 insert_step_resume_breakpoint_at_sal_1.
5841 (insert_step_resume_breakpoint_at_frame): Rename to ...
5842 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5843 set a high-priority step-resume breakpoint.
5844 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5845 (insert_step_resume_breakpoint_at_caller): Ditto.
5846
51be5b68
PA
58472011-05-26 Pedro Alves <pedro@codesourcery.com>
5848
5849 * breakpoint.c (iterate_over_related_breakpoints): New.
5850 (do_map_delete_breakpoint): New.
5851 (delete_command): Pass do_map_delete_breakpoint to
5852 map_breakpoint_numbers.
5853 (do_disable_breakpoint): New.
5854 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5855 breakpoints.
5856 (do_enable_breakpoint): Rename to ...
5857 (enable_breakpoint_disp): ... this.
5858 (enable_breakpoint): Adjust.
5859 (do_enable_breakpoint): New.
5860 (enable_once_breakpoint): Delete.
5861 (do_map_enable_breakpoint): New.
5862 (do_map_enable_once_breakpoint): New.
5863 (enable_once_command, enable_delete_command)
5864 (delete_trace_command): Iterate over the breakpoint's related
5865 breakpoints.
5866
4a1be8d2
PA
58672011-05-26 Pedro Alves <pedro@codesourcery.com>
5868
5869 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5870 for ALPHA_ZERO_REGNUM.
5871 (alpha_supply_int_regs): Explicitly supply zero as the value for
5872 ALPHA_ZERO_REGNUM in the register cache.
5873 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5874
59d70315
YQ
58752011-05-26 Yao Qi <yao@codesourcery.com>
5876
5877 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5878
251d32d9
TG
58792011-05-26 Tristan Gingold <gingold@adacore.com>
5880
5881 * symfile.h (struct dwarf2_section_names): New type.
5882 (struct dwarf2_debug_sections): New type.
5883 (dwarf2_has_info): Add parameter.
5884 * dwarf2read.c (dwarf2_elf_names): New variable.
5885 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5886 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5887 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5888 (dwarf2_has_info): Add names parameter. Pass names
5889 to dwarf2_locate_sections.
5890 (section_is_p): Rewrite using the names parameter.
5891 (dwarf2_locate_sections): Use section names from the names parameter.
5892 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5893 * elfread.c (read_psyms): Ditto.
5894 * machoread.c (macho_symfile_read): Ditto.
5895
652c71b4
AS
58962011-05-25 Andreas Schwab <schwab@redhat.com>
5897
5898 PR gdb/8677
5899 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5900
f17170e5
KS
59012011-05-24 Keith Seitz <keiths@redhat.com>
5902
5903 PR breakpoint/12803
5904 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5905 (decode_compound): Unconditionally call keep_name_info.
5906
cdac0397
PA
59072011-05-24 Pedro Alves <pedro@codesourcery.com>
5908
5909 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5910 scope, clear its command list.
5911 (map_breakpoint_numbers): Don't walk the related breakpoints list
5912 of each breakpoint.
5913
91d4fe3f
TT
59142011-05-24 Tom Tromey <tromey@redhat.com>
5915
5916 * MAINTAINERS: Move Jim Blandy to past maintainers.
5917
3017a003
TG
59182011-05-24 Tristan Gingold <gingold@adacore.com>
5919
5920 * symfile.h (enum dwarf2_section_enum): New type.
5921 (dwarf2_get_section_info): New prototype.
5922 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5923 section_name by sect. Use a switch to select the info.
5924 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5925 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5926
c91c8c16
PA
59272011-05-24 Pedro Alves <pedro@codesourcery.com>
5928
5929 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5930 shared library event breakpoint if there's no execution.
5931
77bc418a
TJB
59322011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5933
5934 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5935 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5936
c50491a7
TT
59372011-05-23 Tom Tromey <tromey@redhat.com>
5938
5939 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5940 NULL.
5941
6d64e6d4
DE
59422011-05-23 Doug Evans <dje@google.com>
5943
5944 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5945 entry for RuntimeError to doc string.
5946
2067c8d4
JG
59472011-05-23 Jerome Guitton <guitton@adacore.com>
5948
5949 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5950 sequence for probing loops.
5951
b136cd05
PA
59522011-05-23 Pedro Alves <pedro@codesourcery.com>
5953
5954 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5955 comment.
5956
22e74ef9
MK
59572011-05-21 Mark Kettenis <kettenis@gnu.org>
5958
5959 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5960 zero as the value for %g0 in the register cache.
5961 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5962 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5963
842951eb
PA
59642011-05-20 Pedro Alves <pedro@codesourcery.com>
5965
5966 * infrun.c (proceed): Set previous_inferior_ptid here.
5967 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5968 inferior_ptid, not null_ptid.
5969 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5970 (fetch_inferior_event): Nor here.
5971
46cf51e6
PA
59722011-05-20 Pedro Alves <pedro@codesourcery.com>
5973
5974 * inf-loop.c (inferior_event_handler): Only output a message if
5975 verbose.
5976
29ef4c46
LM
59772011-05-20 Luis Machado <lgustavo@codesourcery.com>
5978
5979 * MAINTAINERS: Update my e-mail address.
5980
f148b27e
PA
59812011-05-20 Pedro Alves <pedro@codesourcery.com>
5982
5983 * infrun.c (proceed): Switch the inferior event loop to
5984 INF_EXEC_COMPLETE if the target refused to resume from a
5985 vfork/fork.
5986
09cee04b
PA
59872011-05-20 Pedro Alves <pedro@codesourcery.com>
5988
5989 * infcmd.c: Include "inf-loop.h".
5990 (step_once): When stepping into an inline subroutine, pretend the
5991 target has run. If the target can async, switch the inferior
5992 event loop to INF_EXEC_COMPLETE.
5993 * inferior.h (user_visible_resume_ptid): Declare.
5994 * infrun.c (user_visible_resume_ptid): New function, factored out
5995 from `resume'.
5996 (resume): Use it.
5997 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5998 that the current thread is running. Merge async and sync
5999 branches.
6000
751b8ce1
PA
60012011-05-20 Pedro Alves <pedro@codesourcery.com>
6002
6003 * infcmd.c (step_1): Simplify synchronous case.
6004
e93a69ed
PA
60052011-05-20 Pedro Alves <pedro@codesourcery.com>
6006
6007 * tracepoint.c: Include exceptions.h.
6008 (TFILE_PID): Move higher in file.
6009 (tfile_open): Delay pushing the tfile target until we're assured
6010 the tfile header is present in the file. Wrap reading the initial
6011 newline-terminated lines in TRY_CATCH. Pop the target if the
6012 initial setup failed. Add the tfile's thread immediately
6013 aftwards, before any non-essential setup. Don't skip
6014 post_create_inferior if there are no traceframes present in the
6015 file.
6016 (tfile_close): Remove redundant check for null before xfree call.
6017 (tfile_thread_alive): New function.
6018 (init_tfile_ops): Register it as to_thread_alive callback.
6019
6823e2b1
PA
60202011-05-20 Pedro Alves <pedro@codesourcery.com>
6021
6022 * tracepoint.c (tfile_open): Delete #if 0'd code.
6023
b3c8eb43
JK
60242011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6025
6026 Fix -readnow for -gdwarf-4 unused type units.
6027 * dwarf2read.c (struct signatured_type): Remove the field offset.
6028 (create_signatured_type_table_from_index): Remove its initialization.
6029 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6030 instead. Add a complaint call.
6031 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6032 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6033 (lookup_signatured_type_at_offset, read_signatured_type)
6034 (write_one_signatured_type): Update the field for per_cu.
6035
310afc76
TT
60362011-05-19 Tom Tromey <tromey@redhat.com>
6037
6038 * python/py-inferior.c (python_inferior_exit): Use
6039 target_gdbarch.
6040 (python_on_resume): Likewise.
6041
cf6c5ffb
TT
60422011-05-19 Matt Rice <ratmice@gmail.com>
6043
6044 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6045
fb80a3c5
HZ
60462011-05-19 Hui Zhu <teawater@gmail.com>
6047
6048 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6049
3672b1be
HZ
60502011-05-19 Hui Zhu <teawater@gmail.com>
6051
6052 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6053
ff355380
TT
60542011-05-18 Tom Tromey <tromey@redhat.com>
6055
6056 * dwarf2read.c (dwarf2_add_field): Constify.
6057 * value.c (value_static_field): Constify.
6058 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6059 Now const.
6060 * ax-gdb.c (gen_static_field): Constify
6061
ed731959
JK
60622011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6063
6064 * linux-nat.c (kill_callback): Use SIGKILL first.
6065
967cff16
JB
60662011-05-18 Joel Brobecker <brobecker@adacore.com>
6067
6068 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6069
1d06ead6
TT
60702011-05-18 Tom Tromey <tromey@redhat.com>
6071
6072 * value.c (value_fn_field): Constify.
6073 * symtab.c (gdb_mangle_name): Constify.
6074 * stabsread.c (update_method_name_from_physname): Make 'physname'
6075 argument const.
6076 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6077 const. Use explicit fputc_filtered loop.
6078 (pascal_type_print_base): Constify.
6079 * p-lang.h (pascal_type_print_method_args): Update.
6080 * linespec.c (add_matching_methods): Constify.
6081 (add_constructors): Likewise.
6082 * jv-typeprint.c (java_type_print_base): Constify.
6083 * gdbtypes.h (struct cplus_struct_type)
6084 <fn_fieldlist.fn_field.physname>: Now const.
6085 * dwarf2read.c (compute_delayed_physnames): Constify.
6086 (dwarf2_add_member_fn): Likewise.
6087 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6088
0d9a9a5f
PA
60892011-05-18 Pedro Alves <pedro@codesourcery.com>
6090
6091 * infrun.c (resume): Mention which is the current thread, and its
6092 current PC in debug output.
6093 (prepare_to_proceed): Mention the thread switching in debug
6094 output.
6095
05386e9e
TT
60962011-05-18 Tom Tromey <tromey@redhat.com>
6097
6098 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6099 path check. Use xmalloc and cleanups.
6100 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6101
ee86786c
TT
61022011-05-17 Tom Tromey <tromey@redhat.com>
6103
6104 * cp-valprint.c (cp_print_value_fields): Catch errors from
6105 value_static_field.
6106
9ff3b74f
TT
61072011-05-17 Tom Tromey <tromey@redhat.com>
6108
6109 * dwarf2read.c (dwarf2_get_die_type): Call
6110 get_die_type_at_offset.
6111 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6112 get_base_type function.
6113
cd3da28e
PA
61142011-05-17 Tomas Martinec <fyzmat@gmail.com>
6115
6116 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6117 trap_expected.
6118
fd20d931
DE
61192011-05-16 Doug Evans <dje@google.com>
6120
6121 * python/py-auto-load.c (source_section_scripts): Mention objfile
6122 name in warning.
6123
75fc9810
DE
61242011-05-15 Doug Evans <dje@google.com>
6125
290351b8
DE
6126 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6127 (try_thread_db_load_from_pdir): Call it. If unable to find
6128 libthread_db in directory of libpthread, see if we're looking at
6129 the separate-debug-info copy.
6130
75fc9810
DE
6131 * python/py-autoload.c (print_script): Print "Missing" instead of
6132 "No" for missing scripts.
6133 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6134
9f7bc587
DE
61352011-05-13 Doug Evans <dje@google.com>
6136
6137 * ui-file.c (stdio_file_write_async_safe): Add comment.
6138
093cee7d
HZ
61392011-05-14 Hui Zhu <teawater@gmail.com>
6140
6141 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6142
dbaefcf7
DE
61432011-05-13 Doug Evans <dje@google.com>
6144
98a5dd13
DE
6145 Support $pdir and $sdir in libthread-db-search-path.
6146 * NEWS: Mention $sdir,$pdir.
6147 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6148 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6149 (try_thread_db_load_from_sdir): New function.
6150 (try_thread_db_load_from_dir): New function.
6151 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6152 system directories if search of libthread-db-search-path fails,
6153 that is now done via $sdir.
6154 (has_libpthread): New function.
6155 (thread_db_load): Remove search for libthread_db in directory of
6156 libpthread, that is now done via $pdir.
6157
dbaefcf7
DE
6158 * NEWS: Mention "info auto-load-scripts".
6159 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6160 script_not_found_warning_printed.
6161 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6162 all callers updated. Initialize script_not_found_warning_printed.
6163 (get_auto_load_pspace_data_for_loading): New function.
6164 (maybe_add_script): New function.
6165 (source_section_scripts): Simplify. Only print one warning regardless
6166 of the number of auto-load scripts not found.
6167 (clear_section_scripts): Clear script_not_found_warning_printed.
6168 (auto_load_objfile_script): Record script in hash table.
6169 (count_matching_scripts): New function.
6170 (maybe_print_script): Renamed from maybe_print_section_script, all
6171 callers updated. Rewrite to use ui_out_*.
6172 (info_auto_load_scripts): Renamed from
6173 maintenance_print_section_scripts, all callers updated.
6174 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6175 renamed as "info auto-load-scripts".
6176
9930639c
TT
61772011-05-13 Tom Tromey <tromey@redhat.com>
6178
6179 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6180 (read_sleb128): Likewise.
6181
06826322
TT
61822011-05-13 Tom Tromey <tromey@redhat.com>
6183
6184 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6185 offset display.
6186
01124a23
DE
61872011-05-13 Doug Evans <dje@google.com>
6188
6189 * linux-nat.c (debug_linux_nat_async): Delete.
6190 Replace all references to use debug_linux_nat instead.
6191 (show_debug_linux_nat_async): Delete.
6192 (sigchld_handler): Call ui_file_write_async_safe instead of
6193 fprintf_unfiltered.
6194 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6195 * ui-file.c (struct ui_file): New member to_write_async_safe.
6196 (null_file_write_async_safe): New function.
6197 (ui_file_write_async_safe): New function.
6198 (set_ui_file_write_async_safe): New function.
6199 (ui_file_new): Initialize to_write_async_safe.
6200 (stdio_file_write_async_safe): New function.
6201 (struct stdio_file): New member fd.
6202 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6203 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6204 fileno.
01124a23
DE
6205 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6206 (set_ui_file_write_async_safe): Declare.
6207 (ui_file_write_async_safe): Declare.
6208
72fc29ff
TT
62092011-05-13 Tom Tromey <tromey@redhat.com>
6210
6211 * utils.c (do_value_free): New function.
6212 (make_cleanup_value_free): Likewise.
6213 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6214 freeing correctly.
6215 (dwarf2_loc_desc_needs_frame): Call
6216 make_cleanup_value_free_to_mark.
6217 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6218 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6219 value_free_to_mark.
6220 (new_dwarf_expr_context): Don't call value_mark.
6221 * dwarf2-frame.c (execute_stack_op): Call
6222 make_cleanup_value_free_to_mark.
6223 * defs.h (make_cleanup_value_free): Declare.
6224
028d0ed5
TJB
62252011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6226
6227 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6228 prepare_execute_command.
6229 * top.c (prepare_execute_command): Return cleanup.
6230 (execute_command): Use cleanup from prepare_execute_command.
6231 * top.h (prepare_execute_command): Change prototype to return
6232 cleanup.
6233 * defs.h (struct value): Add opaque declaration.
6234 (make_cleanup_value_free_to_mark): Add prototype.
6235 * utils.c (do_value_free_to_mark): New function.
6236 (make_cleanup_value_free_to_mark): Likewise.
6237
b087e0ed
TT
62382011-05-12 Tom Tromey <tromey@redhat.com>
6239
6240 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6241 cast left-hand-side to unsigned.
6242
8a9b8146
TT
62432011-05-12 Tom Tromey <tromey@redhat.com>
6244
6245 PR gdb/12617:
6246 * value.h (value_from_contents): Declare.
6247 * value.c (value_from_contents): New function.
6248 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6249 (dwarf2_get_die_type): New function.
6250 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6251 (allocate_piece_closure): Acquire reference to values.
6252 (read_pieced_value): Update for value-based expressions.
6253 (write_pieced_value): Likewise.
6254 (free_pieced_value_closure): Call value_free as needed.
6255 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6256 Update for value-based expressions.
6257 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6258 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6259 <get_base_type>: New field.
6260 (struct dwarf_expr_piece) <v.value>: Change type.
6261 <v.regno>: New field.
6262 (struct dwarf_expr_context) <mark>: New field.
6263 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6264 (dwarf_expr_pop, dwarf_expr_push): Remove.
6265 (dwarf_expr_push_address): Declare.
6266 * dwarf2expr.c (dwarf_arch_cookie): New global.
6267 (struct dwarf_gdbarch_types): New.
6268 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6269 functions.
6270 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6271 static.
6272 (dwarf_expr_push_address): New function.
6273 (dwarf_expr_pop): Now static.
6274 (dwarf_expr_fetch): Change return type.
6275 (dwarf_require_integral): New function.
6276 (dwarf_expr_fetch): Simplify.
6277 (add_piece): Update.
6278 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6279 functions.
6280 (execute_stack_op) <sign_ext>: Remove.
6281 Use values for DWARF stack.
6282 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6283 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6284 New cases.
6285 (_initialize_dwarf2expr): New function.
6286 (add_piece): Update.
6287 (new_dwarf_expr_context): Set new field.
6288 (free_dwarf_expr_context): Call value_free_to_mark.
6289 * dwarf2-frame.c (no_base_type): New function.
6290 (execute_stack_op): Set get_base_type field. Update.
6291
e8d28ef4
TT
62922011-05-12 Tom Tromey <tromey@redhat.com>
6293
6294 * dwarf2read.c (read_common_block): Fix formatting.
6295
d248b706
KY
62962011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6297
6298 * breakpoint.c (disable_breakpoint): Disable all locations
6299 associated with a tracepoint on target if a trace experiment is
6300 running.
6301 (disable_command): Disable a specific tracepoint location on target if
6302 a trace experiment is running.
6303 (do_enable_breakpoint): Enable all locations associated with a
6304 tracepoint on target if a trace experiment is running.
6305 (enable_command) Enable a specific tracepoint location on target if a
6306 trace experiment is running.
6307 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6308 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6309 to_disable_tracepoint.
6310 * target.h: Add declaration of struct bp_location.
6311 (struct target_ops): Add new functions
6312 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6313 to_disable_tracepoint to target operations.
6314 (target_supports_enable_disable_tracepoint): New macro.
6315 (target_enable_tracepoint): New macro.
6316 (target_disable_tracepoint): New macro.
6317 * remote.c (struct remote_state): Add new field.
6318 (remote_enable_disable_tracepoint_feature): New.
6319 (remote_protocol_features): Add new entry.
6320 (remote_supports_enable_disable_tracepoint): New.
6321 (remote_enable_tracepoint): New.
6322 (remote_disable_tracepoint): New.
6323 (init_remote_ops): Add remote_enable_tracepoint,
6324 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6325 to remote operations.
6326 * tracepoint.c (start_tracing): Allow tracing to start without any
6327 tracepoints enabled with just a warning if they can be re-enabled
6328 later.
6329 * NEWS: Add news item for the new behaviour of the enable and disable
6330 GDB commands when applied to tracepoints.
6331 Add news items for the new remote packets QTEnable and QTDisable.
6332
cc88a640
JK
63332011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 * config.in: Regenerate.
6336 * configure: Regenerate.
6337 * configure.ac <--with-system-readline> (for readline_echoing_p):
6338 Remove the test.
6339 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6340 (tui_old_rl_echoing_p): ... here.
6341 (tui_setup_io): Rename extern declaration readline_echoing_p to
6342 _rl_echoing_p. Adjust assignments for the both renames.
6343
1f84b619
TJB
63442011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6345
6346 * symtab.c (lookup_symtab): Run cleanup before returning.
6347
74ac6d43
TT
63482011-05-11 Tom Tromey <tromey@redhat.com>
6349
6350 * dwarf2read.c (handle_data_member_location): New function.
6351 (dwarf2_add_field): Use it.
6352 (read_common_block): Likewise.
6353
5488dafb
JK
63542011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 Make addrs->SECTINDEX always defined.
6357 * symfile.c (relative_addr_info_to_section_offsets): Check for
6358 SECTINDEX -1, not for zero ADDR.
6359 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6360 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6361 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6362 on its validity.
6363
84e578fb
DE
63642011-05-10 Doug Evans <dje@google.com>
6365
2471d008
DE
6366 * linux-thread-db.c: Whitespace cleanup.
6367 (try_thread_db_load_1): Fix comment.
6368
84e578fb
DE
6369 * linux-thread-db.c (set_libthread_db_search_path): New function.
6370 (_initialize_thread_db): Add setter for libthread-db-search-path.
6371
673c2bbe
DE
63722011-05-09 Doug Evans <dje@google.com>
6373
478aac75
DE
6374 * NEWS: Mention --with-iconv-bin.
6375 * configure.ac: New option --with-iconv-bin.
6376 * configure: Regenerate.
6377 * config.in: Regenerate.
6378 * defs.h (relocate_gdb_directory): Declare.
6379 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6380 removed progname parameter, and exported. All callers updated.
6381 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6382
673c2bbe
DE
6383 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6384 adding missing call to restore_child_signals_mask.
6385
e4c8541f
PA
63862011-05-09 Pedro Alves <pedro@codesourcery.com>
6387
6388 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6389 parameter.
6390 * infrun.c (proceed, start_remote): Adjust.
6391 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6392 and adjust to not handle it.
6393 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6394 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6395 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6396 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6397 * windows-nat.c (do_initial_windows_stuff): Adjust.
6398 * infcmd.c (attach_command): Adjust.
6399 (notice_new_inferior): Adjust.
6400
a536c6d7
UW
64012011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6402
6403 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6404 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6405 * spu-tdep.c (op_selb): Use correct value.
6406
7845b013
UW
64072011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6408
6409 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6410 "parent" parameter to symbol_file_add_from_bfd call.
6411
9c06b0b4
TJB
64122011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6413 Thiago Jung Bauermann <bauerman@br.ibm.com>
6414
6415 Implement support for PowerPC BookE masked watchpoints.
6416 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6417 section.
6418 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6419 method. Initialize to NULL in all existing breakpoint_ops instances.
6420 (struct breakpoint) <hw_wp_mask>: New field.
6421 * breakpoint.c (is_masked_watchpoint): Add prototype.
6422 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6423 breakpoint's breakpoint_ops.works_in_software_mode if available.
6424 (watchpoints_triggered): Handle the case of a hardware masked
6425 watchpoint trigger.
6426 (watchpoint_check): Likewise.
6427 (works_in_software_mode_watchpoint): New function.
6428 (insert_masked_watchpoint, remove_masked_watchpoint)
6429 (resources_needed_masked_watchpoint)
6430 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6431 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6432 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6433 functions.
6434 (masked_watchpoint_breakpoint_ops): New structure.
6435 (watch_command_1): Check for the existence of the `mask' parameter.
6436 Set b->ops according to the type of hardware watchpoint being created.
6437 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6438 (ppc_linux_remove_mask_watchpoint)
6439 (ppc_linux_masked_watch_num_registers): New functions.
6440 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6441 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6442 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6443 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6444 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6445 (target_masked_watch_num_registers): New functions.
6446 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6447 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6448 methods.
6449 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6450 (target_masked_watch_num_registers): Add prototypes.
6451
8be455d7
JK
64522011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6453
6454 PR 12573
6455 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6456 (producer_is_gcc_ge_4_0): New function.
6457 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6458 symtab->language code.
6459 (var_decode_location): Set cu->has_loclist.
6460 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6461 skip. Intialize force_skip from locations_valid. Move the prologue
6462 skipping code into two passes.
6463 * symtab.h (struct symtab): Make the primary field a bitfield. New
6464 field locations_valid.
6465
d8228535
JK
64662011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6467
6468 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6469 (classify_inner_name): Call cp_lookup_nested_type with
6470 yylval.tsym.type.
6471 * cp-namespace.c (cp_lookup_nested_type): New variable
6472 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6473 type_name_no_tag_or_error with saved_parent_type.
6474 * dwarf2read.c (load_partial_dies): Read in any children of
6475 DW_TAG_typedef with complaint in such case.
6476 * gdbtypes.c (type_name_no_tag_or_error): New function.
6477 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6478 * valops.c (destructor_name_p): New comment for parameter type. Remove
6479 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6480 * value.h (destructor_name_p): Remove type const.
6481
1976171a
JK
64822011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6483
6484 * symtab.c (compare_symbol_name): New function.
6485 (completion_list_add_name, expand_partial_symbol_name): Call it,
6486 remove the variable ncmp.
6487 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6488 gdb_assert it.
6489
a9634178
TJB
64902011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6491
6492 Demote to sw watchpoint only in update_watchpoint.
6493 * breakpoint.c (update_watchpoint): Change between software and
6494 hardware watchpoint for all kinds of watchpoints, not just
6495 read/write ones. Determine b->exact value here instead of
6496 in watch_command_1. Error out if there are not enough resources
6497 for a read or access hardware watchpoint.
6498 (watch_command_1): Remove logic of checking whether there are
6499 enough resources available, since update_watchpoint will do that
6500 work now. Don't set b->exact here. Catch exceptions thrown by
6501 update_watchpoint and delete the watchpoint.
6502 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6503 Use target_exact_watchpoints instead.
6504 (delete_breakpoint): Notify observers only if deleted watchpoint
6505 has a breakpoint number assigned to it.
6506
4c67c798
JJ
65072011-05-05 Janis Johnson <janisjo@codesourcery.com>
6508
6509 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6510
a3fcb948
JG
65112011-05-05 Jerome Guitton <guitton@adacore.com>
6512
6513 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6514 New functions.
6515 (i386_stack_tramp_frame_unwind): New static global.
6516 (i386_match_pattern): New function, extracted from i386_match_insn.
6517 (i386_match_insn): Use i386_match_pattern.
6518 (i386_match_insn_block): New function.
6519 (i386_tramp_chain_in_reg_insns)
6520 (i386_tramp_chain_on_stack_insns): New static variables.
6521 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6522 of unwinders.
6523
4d393d60
JM
65242011-05-04 Joseph Myers <joseph@codesourcery.com>
6525
6526 * configure.host (xscale*): Don't handle target.
6527 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6528 handle targets.
6529
f70bd40b
YQ
65302011-05-04 Yao Qi <yao@codesourcery.com>
6531
6532 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6533
dd3295ee
JB
65342011-05-03 Joel Brobecker <brobecker@adacore.com>
6535
6536 Revert:
6537 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6538 | * elfread.c (elf_symtab_read): Stop memory leak.
6539
90375a0e
PM
65402011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6541
6542 * nto-tdep.c (nto_target): Replace deprecated call to
6543 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6544
d07205c2
JK
65452011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6546
6547 Fix false GCC warning.
6548 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6549
1e718ff1
TJB
65502011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6551
6552 * breakpoint.c (update_watchpoint): Move code to change
6553 the enable state of breakpoint from here ...
6554 (do_enable_breakpoint): ... to here.
6555
35bef4fd
TT
65562011-04-26 Andrew Gontarek <andrewg@cray.com>
6557
78290264
PP
6558 * valprint.c (val_print_array_elements): Fixed poor performance
6559 of printing very large arrays with repeat_count_threshold set
6560 to unlimited. New comment.
35bef4fd 6561
38a714bb
TT
65622011-04-29 Tom Tromey <tromey@redhat.com>
6563
6564 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6565 (mi_parse): Likewise.
6566 * breakpoint.c (break_range_command): Use sizeof char*, not
6567 char**.
6568 (create_breakpoint): Likewise.
6569 (parse_breakpoint_sals): Likewise.
6570
eb73ad13
PA
65712011-04-29 Pedro Alves <pedro@codesourcery.com>
6572
6573 * linux-nat.c (linux_child_remove_fork_catchpoint)
6574 (linux_child_remove_vfork_catchpoint)
6575 (linux_child_remove_exec_catchpoint): New functions.
6576 (linux_target_install_ops): Install them.
6577
d65aec65
PM
65782011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6579
6580 PR mi/12531
6581
6582 * varobj.c (install_default_visualizer): Do not install a
6583 visualizer if the varobj is CPLUS_FAKE_CHILD.
6584 (construct_visualizer): Likewise.
6585
165195f4
JK
65862011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6587
6588 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6589 case insensitive comparison.
6590
30852783
UW
65912011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6592
6593 * infrun.c (proceed): Revert previous change.
6594 (resume): Instead, handle the case of signal delivery while stepping
6595 off a breakpoint location here, and only if software single-stepping
6596 is used. Handle nested signals.
6597
7ff120b4
YQ
65982011-04-28 Yao Qi <yao@codesourcery.com>
6599
6600 * arm-tdep.c (copy_unmodified): Rename to ...
6601 (arm_copy_unmodified): .. this. New.
6602 (copy_preload): Move common part to ...
6603 (install_preload): .. this. New.
6604 (arm_copy_preload): New.
6605 (copy_preload_reg): Move common part to ...
6606 (install_preload_reg): ... this. New.
6607 (arm_copy_preload_reg): New.
6608 (copy_b_bl_blx): Move common part to ...
6609 (install_b_bl_blx): .. this. New.
6610 (arm_copy_b_bl_blx): New.
6611 (copy_bx_blx_reg): Move common part to ...
6612 (install_bx_blx_reg): ... this. New.
6613 (arm_copy_bx_blx_reg): New.
6614 (copy_alu_reg): Move common part to ...
6615 (install_alu_reg): ... this. New.
6616 (arm_copy_alu_reg): New.
6617 (copy_alu_shifted_reg): Move common part to ...
6618 (install_alu_shifted_reg): ... this. New.
6619 (copy_ldr_str_ldrb_strb): Move common part to ...
6620 (install_ldr_str_ldrb_strb): ... this. New.
6621 (arm_copy_ldr_str_ldrb_strb): New.
6622 (copy_copro_load_store): Move some common part to ...
6623 (install_copy_copro_load_store): ... this. New.
6624 (arm_copy_copro_load_store): New.
6625 (copy_svc): Delete.
6626 (arm_copy_svc): Renamed from copy_svc.
6627 (copy_undef): Delete.
6628 (arm_copy_undef): Renamed from copy_undef.
6629 (decode_ext_reg_ld_st): Delete.
6630 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6631 (decode_svc_copro): Delete.
6632 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6633 (copy_copro_load_store, copy_alu_imm): update callers.
6634 (copy_extra_ld_st, copy_block_xfer): Likewise.
6635 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6636 (decode_miscellaneous, decode_dp_misc): Likewise.
6637 (decode_ld_st_word_ubyte, decode_media): Likewise.
6638 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6639 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6640 (decode_unconditional, decode_miscellaneous): Likewise.
6641 (decode_media, decode_b_bl_ldmstm): Likewise.
6642 (arm_process_displaced_insn): Likewise..
6643 (decode_misc_memhint_neon): Delete.
6644 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6645 (decode_miscellaneous): Delete.
6646 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6647 (decode_dp_misc): Delete.
6648 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6649 (decode_ld_st_word_ubyte): Delete.
6650 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6651 (decode_media): Delete.
6652 (arm_decode_media): Renamed from decode_media.
6653 (decode_b_bl_ldmstm): Delete.
6654 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6655 (decode_ext_reg_ld_st): Delete.
6656 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6657 (decode_unconditional): Delete.
6658 (arm_decode_unconditional): Renamed from decode_unconditional.
6659
559a7a62
JK
66602011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 Case insensitive lookups implementation.
6663 * dwarf2read.c: Include ctype.h.
6664 (struct mapped_index): New field version.
6665 (mapped_index_string_hash): New parameter index_version. New comment
6666 for it. Call tolower appropriately.
6667 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6668 Choose the right index version for mapped_index_string_hash.
6669 (dwarf2_read_index): Support also the index version 5. Initialize the
6670 new struct mapped_index field version.
6671 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6672 (find_slot): Explain the version needs. Pass INT_MAX for the new
6673 parameter.
6674 (write_psymtabs_to_index): Produce version 5.
6675 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6676 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6677 * psymtab.c (lookup_partial_symbol): Find the
6678 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6679 entries.
6680 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6681 NAME lowercasing.
6682 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6683 (completion_list_add_name): New variable ncmp, initialize it, use it.
6684 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6685 * utils.c (strcmp_iw): Support case_sensitive_off.
6686 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6687 New function comment part. New variables saved_string1,
6688 saved_string2 and case_pass. Add a proper second pass.
6689
681bf369
JK
66902011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6691
6692 Replace re_comp/re_exec by regcomp/regexec.
6693 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6694 (search_symbols_name_matches): Use them, use regexec.
6695 (search_symbols): New variable retval_chain, adjust the use of
6696 old_chain against it. Replace re_comp by regcomp. Use the new struct
6697 search_symbols_data fields, use regexec instead of re_exec.
6698
b11b1f88
JK
66992011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 Format the code for the next patch.
6702 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6703 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6704 New variables c1 and c2.
6705
2484c66b
UW
67062011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6707
6708 * infrun.c (proceed): Do not single-step into signal delivery
6709 when stepping off a breakpoint location.
6710 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6711 (insert_step_resume_breakpoint_at_caller): Likewise.
6712 (insert_step_resume_breakpoint_at_sal): Likewise.
6713 (insert_longjmp_resume_breakpoint): Likewise.
6714
47423772
YQ
67152011-04-27 Yao Qi <yao@codesourcery.com>
6716
6717 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6718
13bdd2e7
JB
67192011-04-27 Joel Brobecker <brobecker@adacore.com>
6720
6721 * procfs.c (procfs_pass_signals): Fix advance declaration.
6722
2455069d
UW
67232011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6724
6725 * target.h (struct target_ops): Remove to_notice_signals;
6726 add to_pass_signals.
6727 (target_notice_signals): Remove.
6728 (target_pass_signals): Add prototype.
6729 * target.c (update_current_target): Remove to_notice_signals;
6730 mention to_pass_signals.
6731 (target_pass_signals): New function.
6732 (debug_to_notice_signals): Remove.
6733 (setup_target_debug): Do not install debug_to_notice_signals.
6734
6735 * infrun.c (signal_pass): New global.
6736 (resume): Call target_pass_signals.
6737 (handle_inferior_event): Report all signals while stepping over
6738 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6739 are re-inserted when stepping over a signal handler.
6740 (signal_cache_update): New function.
6741 (signal_stop_update): Call it.
6742 (signal_print_update): Likewise.
6743 (signal_pass_update): Likewise.
6744 (handle_command): Call signal_cache_update and target_pass_signals
6745 instead of target_notice_signals.
6746 (_initialize_infrun): Initialize signal_pass.
6747
6748 * linux-nat.c (pass_mask): New global.
6749 (linux_nat_pass_signals): New function.
6750 (linux_nat_create_inferior): Report all signals initially.
6751 (linux_nat_attach): Likewise.
6752 (linux_nat_resume): Use pass_mask to decide whether to directly
6753 handle an inferior signal.
6754 (linux_nat_wait_1): Likewise.
6755 (linux_nat_add_target): Install to_pass_signals callback.
6756
6757 * nto-procfs.c (notice_signals): Remove.
6758 (procfs_resume): Do not call notice_signals.
6759 (procfs_notice_signals): Remove.
6760 (procfs_pass_signals): New function.
6761 (init_procfs_ops): Install to_pass_signals callback instead of
6762 to_notice_signals callback.
6763 (_initialize_procfs): Report all signals initially.
6764
6765 * procfs.c (procfs_notice_signals): Remove.
6766 (procfs_pass_signals): New function.
6767 (procfs_target): Install to_pass_signals callback instead of
6768 to_notice_signals callback.
6769 (register_gdb_signals): Remove.
6770 (procfs_debug_inferior): Report all signals initially.
6771 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6772
6773 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6774 parameters; use them instead of calling signal_..._state routines.
6775 (remote_notice_signals): Remove.
6776 (remote_start_remote): Report all signals initially.
6777 (remote_resume): Do not call remote_pass_signals.
6778 (_initialize_remote): Install to_pass_signals callback instead of
6779 to_notice_signals callback.
6780
46c6471b
PA
67812011-04-27 Pedro Alves <pedro@codesourcery.com>
6782
6783 * breakpoint.c (user_settable_breakpoint): Delete.
6784 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6785 (delete_command): Check user_breakpoint_p instead of looking at
6786 the breakpoint's type.
6787 (disable_command): Ditto.
6788 (enable_command): Ditto.
6789 (delete_trace_command): Use user_breakpoint_p instead of looking
6790 at the breakpoint number directly. When checking if there are
6791 user visible tracepoints, in order to know whether to ask the user
6792 for confirmation, check whether the breakpoint is actually a
6793 tracepoint.
6794
f6d90398
VP
67952011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6796
6797 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6798 compilation.
6799
8d3788bd
VP
68002011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6801
6802 MI breakpoint notifications.
6803
f33edef8
PP
6804 * annotate.c (breakpoint_changed): Adjust parameter type.
6805 * breakpoint.c (set_breakpoint_condition): Adjust to change
6806 in breakpoint_modified type.
6807 (breakpoint_set_commands): Likewise.
6808 (do_map_commands_command): Likewise.
6809 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6810 changed after bumping hit count.
6811 (bpstat_stop_status): Likewise.
6812 (print_one_breakpoint_location): Don't wrap in tuple here.
6813 (print_one_breakpoint): Always print individual locations.
6814 For locations, use unnamed tuple.
6815 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6816 has changed.
6817 (create_catchpoint, create_syscall_event_catchpoint): Call
6818 breakpoint_created obsever.
6819 (mention): Don't call breakpoint_created observer.
6820 (create_breakpoint_sal): Call breakpoint_created observer.
6821 (create_breakpoint, watch_command_1): Likewise.
6822 (create_ada_exception_breakpoint): Likewise.
6823 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6824 (locations_are_equal): New.
6825 (update_breakpoint_locations): If locations were changed, notify.
6826 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6827 Call breakpoint_modified observer.
6828
6829 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6830 (mi_cmd_break_insert): Don't set observers for modify and delete.
6831 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6832 (mi_breakpoint_created, mi_breakpoint_deleted)
6833 (mi_breakpoint_modified): New.
6834 (mi_interpreter_init): Hook the above.
6835 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6836 while -break-* commands are executing.
6837 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6838 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6839 (mi_redirect): New.
6840 (mi_ui_out_impl): Hook in mi_redirect.
6841 (mi_field_skip): True to the name, skip the field, don't output
6842 a field with an empty value.
6843
6844 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6845 (gdbpy_breakpoint_deleted): Adjust.
6846 * tui/tui-hooks.c (tui_event_create_breakpoint)
6847 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6848
a8f42b45
UW
68492011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6850
6851 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6852 (procfs_remove_hw_watchpoint): Likewise.
6853
57e12211
TT
68542011-04-26 Michael Walle <michael@walle.cc>
6855
6856 * remote.c (remote_start_remote): Ack packet after sending the
6857 interrupt sequence.
6858
af96c192
YQ
68592011-04-26 Yao Qi <yao@codesourcery.com>
6860
f33edef8
PP
6861 * linux-nat.c: Move common macros to ...
6862 Include linux-ptrace.h.
6863 * common/linux-ptrace.h: ... here. New.
af96c192 6864
3e03848b
JK
68652011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6868 !objfile_has_partial_symbols. New comment.
6869 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6870 SYM_READ_PSYMBOLS is not present. Extend the comment.
6871 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6872
1ae0d051
JK
68732011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6874
6875 * defs.h (ENUM_BITFIELD): Remove.
6876
03f2bd59
JK
68772011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 Eli Zaretskii <eliz@gnu.org>
6879
6880 * NEWS: Document the new gdbserver --once option.
6881
4161fbb0
JZ
68822011-04-21 Jie Zhang <jzhang918@gmail.com>
6883
6884 * MAINTAINERS: Update my email address.
6885
bcb28afc
PM
68862011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6887
6888 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6889 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6890 function call if __STDC_ISO_10646__ macro is defined.
6891 (intermediate_encoding): New prototype.
6892 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6893 to generate compile time error for unsupported gdb_wchar_t size.
6894 (ENDIAN_SUFFIX): New macro.
6895 (intermediate_encoding): New function.
6896
7b08b9eb
JK
68972011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6898
6899 * ada-lang.c (struct add_partial_datum): Update the comment for
6900 expand_partial_symbol_name.
6901 (ada_add_partial_symbol_completions): Rename to ...
6902 (ada_expand_partial_symbol_name): ... here, change return type, update
6903 function comment, call symbol_completion_match instead of
6904 symbol_completion_add.
6905 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6906 and ada_expand_partial_symbol_name.
6907 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6908 FILE_MATCHER.
6909 (dw2_map_symbol_names): Remove.
6910 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6911 * psymtab.c (map_symbol_names_psymtab): Remove.
6912 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6913 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6914 order.
6915 (psym_functions): Unlist map_symbol_names_psymtab.
6916 (map_partial_symbol_names): Rename to ...
6917 (expand_partial_symbol_names): ... here, change the FUN type, call
6918 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6919 * psymtab.h (map_partial_symbol_names): Rename to ...
6920 (expand_partial_symbol_names): ... here, change the FUN type.
6921 * symfile.h (struct quick_symbol_functions): Update the description of
6922 expand_symtabs_matching. Remove map_symbol_names.
6923 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6924 (struct add_name_data): Update the comment for
6925 expand_partial_symbol_name.
6926 (add_partial_symbol_name): Rename to ...
6927 (expand_partial_symbol_name): ... here. Replace
6928 completion_list_add_name call by strncmp.
6929 (default_make_symbol_completion_list_break_on): Use now
6930 expand_partial_symbol_names and expand_partial_symbol_name.
6931 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6932
90476074
TT
69332011-04-20 Tom Tromey <tromey@redhat.com>
6934
6935 * dwarf2read.c (save_gdb_index_command): Replace format
6936 documentation with a pointer to the manual.
6937
c21236dc
PA
69382011-04-20 Pedro Alves <pedro@codesourcery.com>
6939
6940 * regcache.c: Include remote.h.
6941 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6942 (regcache_dump): Handle regcache_dump_remote.
6943 (maintenance_print_remote_registers): New function.
6944 (_initialize_regcache): Install "maint print remote-registers"
6945 command.
6946 * remote.c (map_regcache_remote_table): New function, factored out
6947 from ...
6948 (init_remote_state): ... here.
6949 (remote_register_number_and_offset): New.
6950 * remote.h (remote_register_number_and_offset): Declare.
6951
b78974c3
PA
69522011-04-20 Pedro Alves <pedro@codesourcery.com>
6953
6954 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6955 null_ptid, assume and allow a NULL address space, instead of
6956 asking the target for the ptid's address space.
6957 * infrun.c (ptid_is_pid): Remove assertion.
6958
7a9dd1b2
TT
69592011-04-19 Tom Tromey <tromey@redhat.com>
6960
6961 * windows-tdep.c (windows_xfer_shared_library):
6962 * windows-nat.c (get_module_name, windows_make_so):
6963 * v850-tdep.c (v850_handle_pushm):
6964 * utils.c (null_cleanup, gdb_realpath):
6965 * ui-out.c (get_next_header):
6966 * tracepoint.c (clear_traceframe_info):
6967 * symtab.c (lookup_symtab):
6968 * serial.h (struct serial_ops):
6969 * mipsread.c (read_alphacoff_dynamic_symtab):
6970 * infcmd.c (print_return_value):
6971 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6972 * f-exp.y (parse_number):
6973 * exceptions.c (catch_exceptions):
6974 * dummy-frame.c (dummy_frame_this_id):
6975 * defs.h (struct cleanup):
6976 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6977 * arm-tdep.c (arm_push_dummy_call):
6978 * amd64-tdep.h (amd64_collect_xsave):
6979 * amd64-tdep.c (amd64_collect_xsave):
6980 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6981 * README (typing): Remove duplicate words.
6982 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6983 * infrun.c (siginfo_value_read): Fix typo.
6984 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6985 * top.c (source_line_number): Add comma.
6986
9941e0c5
MK
69872011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6988
6989 * thread.c (any_live_thread_of_process): Prioritize threads
6990 that are not executing.
6991 * gdbthread.h (any_live_thread_of_process): Update comment
6992 as per above change.
6993
ed4b0e6a
AS
69942011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6995
6996 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6997 (scan_xcoff_symtab): Likewise.
6998
9b13a2db
PM
69992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7000
7001 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7002 inside if clause.
7003
1c6e1b0d
PM
70042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7005 Pedro Alves <pedro@codesourcery.com>
7006
7007 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7008 variables to simplify code and avoid == operator at end of
7009 line as this is against GNU coding standards.
7010
74de0234
PM
70112011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7012
7013 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7014 lm_name to name_lm to avoid conflict with lm_name function.
7015
b23518f0
PM
70162011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7017
7018 ARI fixes: Use only lowercase function name for static functions.
7019 * nto-tdep.c (LM_ADDR): Rename to...
7020 (lm_addr): New function name.
7021 (nto_relocate_section_addresses): Adapt to change above.
7022 * solib-sunos.c (LM_ADDR): Rename to...
7023 (lm_addr): New function name.
7024 (LM_NEXT): Rename to...
7025 (lm_next): New function name.
7026 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7027 function name changes above.
7028 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7029 (lm_addr_from_link_map): New function name.
7030 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7031 (has_lm_dynamic_from_link_map): New function name.
7032 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7033 (lm_dynamic_from_link_map): New function name.
7034 (LM_ADDR_CHECK): Rename to...
7035 (lm_addr_check): New function name.
7036 (LM_NEXT): Rename to...
7037 (lm_next): New function name.
7038 (LM_PREV): Rename to...
7039 (lm_prev): New function name.
7040 (LM_NAME): Rename to...
7041 (lm_name): New function name.
7042 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7043 (ignore_first_link_map_entry): New function name.
7044 (svr4_keep_data_in_core): Adapt to function name changes above.
7045 (svr4_current_sos): Likewise.
7046 (enable_break): Likewise.
7047 (svr4_relocate_section_addresses): Likewise.
7048
1448a0a2
PM
70492011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7050
7051 ARI cleanup.
7052 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7053 sprintf. Simplify code and avoid loosing memory.
7054 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7055 (call0_frame_cache): Remove && operator from end of line.
7056
02835898
JK
70572011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7058
7059 Fix libraries displacement if they change whether they were prelinked.
7060 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7061 does not match. Comment why.
7062
9a845ea2
JK
70632011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7064
7065 * corelow.c: Include wrapper.h.
7066 (core_open): Call now gdb_target_find_new_threads.
7067 * wrapper.c: Include target.h.
7068 (gdb_target_find_new_threads): New.
7069 * wrapper.h (gdb_target_find_new_threads): New declaration.
7070
254f582e
JK
70712011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7072
7073 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7074 even if !TARGET_HAS_EXECUTION.
7075
63524580
JK
70762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7079 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7080 bfd_get_synthetic_symtab.
7081 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7082 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7083 parameter parent, remove the call to add_separate_debug_objfile.
7084 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7085 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7086 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7087 parent, new comment for it, call add_separate_debug_objfile for it.
7088 (symbol_file_add_separate): Pass objfile as the parameter parent,
7089 remove the call to add_separate_debug_objfile.
7090 (symbol_file_add_from_bfd): New parameter parent, pass it.
7091 (symbol_file_add): Pass NULL to the new parameter parent.
7092 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7093
90359a16
JK
70942011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7097 BSF_SYNTHETIC.
7098
626e7282
JK
70992011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 Fix Python access to inlined frames.
7102 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7103 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7104
cf31e6f9
TT
71052011-04-15 Tom Tromey <tromey@redhat.com>
7106
7107 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7108
c8d895f1
GB
71092011-04-15 Gary Benson <gbenson@redhat.com>
7110
7111 * MAINTAINERS: Add myself to write-after-approval section.
7112
56a9aa1d
MF
71132011-04-14 Mike Frysinger <vapier@gentoo.org>
7114
7115 * remote-sim.c (sim_command_completer): New function.
7116 (_initialize_remote_sim): Set completer to sim_command_completer.
7117
ba770c9c
TJB
71182011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7119
7120 * breakpoint.c (print_exception_catchpoint): Rename to ...
7121 (print_it_exception_catchpoint): ... this.
7122 (gnu_v3_exception_catchpoint_ops): Update with new name
7123 for print_it_exception_catchpoint.
7124
51bf2553
EBM
71252011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7126
7127 * MAINTAINERS: Add myself for write after approval privileges.
7128
d242658c
MP
71292011-04-13 Marek Polacek <mpolacek@redhat.com>
7130
7131 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7132
4a4106ca
TJB
71332011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7134
7135 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7136
26063d49
TJB
71372011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7138
7139 * breakpoint.c (save_breakpoints): Verify whether
7140 breakpoint_ops.print_recreate is defined before calling it.
7141
7782b183
GB
71422011-04-11 Gary Benson <gbenson@redhat.com>
7143
7144 Fix failure with --enable-maintainer-mode.
7145 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7146
e8930875
JK
71472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7148
7149 Code cleanup.
7150 * symtab.c (search_symbols): Reorder the KIND description in the
7151 function comment. Remove the unused 4th element of types, types2,
7152 types3 and types4. New gdb_assert on KIND.
7153 (symtab_symbol_info): Remove the unused 4th element of classnames.
7154 New gdb_assert on KIND.
7155 * symtab.h (enum search_domain): New warning in the enum comment.
7156 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7157 TYPES_DOMAIN.
7158
b4f2f049
JK
71592011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 Fix crash of gdb save-index on a STABS file.
7162 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7163 PSYMTABS_ADDRMAP.
7164
60d5a603
JK
71652011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7166
7167 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7168 * dwarf2read.c: Include ctype.h.
7169 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7170 functions.
7171 (dwarf2_add_field): Fix new_field->accessibility by calling
7172 dwarf2_default_access_attribute. Restructure setting accessibility
7173 vs. virtuality.
7174 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7175 is_private and is_protected by calling
7176 dwarf2_default_access_attribute.
7177
e0f68161
KB
71782011-04-08 Kevin Buettner <kevinb@redhat.com>
7179
7180 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7181 to the initialization.
7182
2e1aae43
SE
71832011-04-08 Steve Ellcey <sje@cup.hp.com>
7184
7185 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7186 initalization.
7187
c6ca3dab
PM
71882011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7189
7190 Remove support for old Cygwin 1.5 versions.
7191 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7192 function on old Cygwin version.
7193 * windows-nat.c: Remove cygwin version check and always define
7194 __USEWIDE for Cygwin compilation.
7195
bd18283a
YQ
71962011-04-07 Yao Qi <yao@codesourcery.com>
7197
7198 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7199 and TO.
7200 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7201 (arm_copy_svc): Remove parameters INSN and TO.
7202 (decode_svc_copro): Update caller.
7203 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7204 from function pointer `copy_svc_os'.
7205
8c8dba6d
YQ
72062011-04-07 Yao Qi <yao@codesourcery.com>
7207
7208 * arm-tdep.c (cleanup_branch): Set a correct return address in
7209 LR for ARM and Thumb.
7210
59d7bcaf
JK
72112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7212
7213 Code cleanup.
7214 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7215 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7216 in the function comment, a new note on values compatibility.
7217 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7218 * symtab.h (SYMBOL_HASH_NEXT): New.
7219
e7db58ea
TJB
72202011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7221
7222 * ppc-linux-nat.c (check_condition): Add len output parameter.
7223 Set it based on the memory region referenced in the condition
7224 expression. Update all callers.
7225
9f743ef6
JK
72262011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 Fix crash regression on systems featuring .gdb_index.
7229 * objfiles.c (free_objfile): Move the
7230 forget_cached_source_info_for_objfile call earlier. Comment it.
7231 Extend the comment for objfile_free_data.
7232
9182c5bc
JK
72332011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7234
7235 Fix regression of displaying the debug format.
7236 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7237 subfile.
7238
04bd08de
TT
72392011-04-04 Tom Tromey <tromey@redhat.com>
7240
7241 * cli/cli-interp.c (struct captured_execute_command_args):
7242 Remove.
7243 (do_captured_execute_command): Remove.
7244 (safe_execute_command): Use TRY_CATCH.
7245 * cli/cli-script.c (struct wrapped_read_command_file_args):
7246 Remove.
7247 (wrapped_read_command_file): Remove.
7248 (script_from_file): Use TRY_CATCH.
7249 * exceptions.c (catch_exception): Remove.
7250 * exceptions.h (catch_exception): Remove.
7251 (deprecated_throw_reason): Update comment.
7252 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7253 argument to 'context'.
7254 (mi_execute_command): Use TRY_CATCH.
7255 * remote.c (struct start_remote_args): Remove.
7256 (remote_start_remote): Update; change arguments.
7257 (remote_open_1): Use TRY_CATCH.
7258
58438ac1
TT
72592011-04-04 Tom Tromey <tromey@redhat.com>
7260
7261 * tracepoint.c (scope_info): Update.
7262 * symtab.c (decode_line_spec): Update.
7263 * python/python.c (gdbpy_decode_line): Update.
7264 * linespec.h (decode_line_1): Update.
7265 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7266 (decode_compound, find_method, symtab_from_filename)
7267 (decode_variable): Likewise.
7268 * cli/cli-cmds.c (edit_command): Update.
7269 (list_command): Update.
7270 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7271 argument.
7272 (create_breakpoint): Update.
7273 (until_break_command): Update.
7274 (addr_string_to_sals): Update.
7275 (decode_line_spec_1): Update.
7276
b78a6381
TT
72772011-04-04 Tom Tromey <tromey@redhat.com>
7278
7279 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7280 (do_captured_parse_breakpoint): Remove.
7281 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7282 Use TRY_CATCH directly.
7283
00174a86
TT
72842011-04-04 Tom Tromey <tromey@redhat.com>
7285
7286 * symtab.h (free_symtab): Remove.
7287 (forget_cached_source_info_for_objfile): Declare.
7288 * symmisc.c (free_symtab): Remove.
7289 * source.c (forget_cached_source_info_for_objfile): New function.
7290 (forget_cached_source_info): Use it.
7291 * objfiles.c (free_objfile): Simplify check before calling
7292 clear_current_source_symtab_and_line. Call
7293 forget_cached_source_info_for_objfile.
7294
30cc903e
TT
72952011-04-04 Tom Tromey <tromey@redhat.com>
7296
7297 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7298 (new_symtab): Don't set `free_code' on symtab.
7299 (new_linetable): Properly handle size==0.
7300 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7301 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7302 free_func.
7303 * jv-lang.c (struct jv_per_objfile_data): New.
7304 (jv_per_objfile_free): Free the data.
7305 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7306 (get_java_class_symtab): Set the `dict' field on the
7307 jv_per_objfile_data.
7308 (free_class_block): Remove.
7309 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7310 the symtab.
7311
0c2e6019
TT
73122011-04-04 Tom Tromey <tromey@redhat.com>
7313
7314 * symfile.c (reread_symbols): Update.
7315 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7316 field.
7317 * objfiles.c (allocate_objfile): Update.
7318 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7319 declare.
7320 * cp-namespace.c (lookup_symbol_file): Don't call
7321 lookup_possible_namespace_symbol.
7322 (initialize_namespace_symtab, get_possible_namespace_block)
7323 (free_namespace_block, cp_check_possible_namespace_symbols)
7324 (check_possible_namespace_symbols_loop)
7325 (check_one_possible_namespace_symbol)
7326 (lookup_possible_namespace_symbol): Remove.
7327 (maintenance_cplus_namespace): Replace with notice.
7328 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7329
554d387d
TT
73302011-04-04 Tom Tromey <tromey@redhat.com>
7331
7332 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7333 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7334 * symmisc.c (free_symtab): Don't free debugformat.
7335 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7336 (record_debugformat, record_producer): Document.
7337 * buildsym.c (end_symtab): Don't save debugformat and producer
7338 names on obstack.
7339 (end_symtab): Don't free debugformat and producer fields.
7340 (record_debugformat): Don't call xstrdup.
7341 (record_producer): Likewise.
7342
d4d4db8a
TT
73432011-04-04 Tom Tromey <tromey@redhat.com>
7344
7345 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7346 (source_line_charpos, source_charpos_line): Remove.
7347
8903c50d
TT
73482011-04-04 Tom Tromey <tromey@redhat.com>
7349
7350 * symtab.h (domain_enum): Split in two...
7351 (enum search_domain): New.
7352 (search_symbols): Update.
7353 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7354 redundant declarations.
7355 (search_symbols): Change 'kind' argument to search_domain.
7356 Update.
7357 (print_symbol_info): Likewise.
7358 (symtab_symbol_info): Likewise.
7359 * symfile.h (struct quick_symbol_functions)
7360 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7361 <expand_symtabs_matching>: Likewise.
7362 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7363 (expand_symtabs_matching_via_partial): Update.
7364 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7365 (dw2_expand_symtabs_for_function): Update.
7366 * block.h: Moved anonymous enum...
7367 * defs.h (enum block_enum): ... here. Now named.
7368
d9351f5f 73692011-04-03 Joel Brobecker <brobecker@adacore.com>
7370
7371 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7372 * version.in: Bump version to 7.3.50.20110403-cvs.
7373
d6e00af6
JB
73742011-04-03 Joel Brobecker <brobecker@adacore.com>
7375
7376 * NEWS: Create a new section for the next release branch.
7377 Rename the section of the current branch, now that it has
7378 been cut.
7379
2b9e5ea6
UW
73802011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7381
7382 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7383 for "fpscr" in target description.
7384
0cf03b49
JK
73852011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7386
7387 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7388 initialize it. Delay HASH initialization. Strip the part after open
7389 parenthesis for languages with qualifiers. Call do_cleanups.
7390
5d901a73
TT
73912011-04-01 Tom Tromey <tromey@redhat.com>
7392
7393 * utils.c (report_command_stats): Don't print `-' for negative
7394 number.
7395
b0dd7688
JB
73962011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7397
7398 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7399 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7400 typedefs.
7401
956a9fb9
JB
74022011-04-01 Joel Brobecker <brobecker@adacore.com>
7403
7404 * breakpoint.h (bpdisp_text): Add declaration.
7405 * breakpoint.c (bpdisp_text): Make non-static.
7406 * ada-lang.c: #include "mi/mi-common.h".
7407 (print_it_exception): Rewrite to improve GDB/MI output.
7408
3352110b
PA
74092011-04-01 Pedro Alves <pedro@codesourcery.com>
7410
7411 * arm-tdep.h (struct address_space): Add forward declaration.
7412
18819fa6
UW
74132011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7414
7415 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7416 * arm-tdep.c (arm_override_mode): New global.
7417 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7418 execution mode heuristics.
7419 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7420 second single-step breakpoint if needed, using
7421 arm_insert_single_step_breakpoint.
7422 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7423 ARM execution mode, do not call thumb_get_next_pc_raw.
7424 (arm_get_next_pc): Encode execution mode in return value. Call
7425 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7426 (arm_insert_single_step_breakpoint): New function.
7427 (arm_software_single_step): Call it.
7428 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7429 argument to return execution mode of sigreturn target.
7430 (arm_linux_syscall_next_pc): Use it.
7431 (arm_linux_copy_svc): Update call.
7432 (arm_linux_software_single_step): Call
7433 arm_insert_single_step_breakpoint.
7434
a6e293d1
JK
74352011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7436
7437 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7438 the comment.
7439
a4c8e806
TT
74402011-03-31 Tom Tromey <tromey@redhat.com>
7441
7442 * varobj.c (update_dynamic_varobj_children): Properly handle
7443 errors from iterator.
7444
df5c6c50
JK
74452011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7448 struct linkage name twice.
7449
1dae3efc
TT
74502011-03-31 Tom Tromey <tromey@redhat.com>
7451
7452 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7453 missing ">" to message.
7454
f4f7ab05
TT
74552011-03-31 Tom Tromey <tromey@redhat.com>
7456
7457 * varobj.c (instantiate_pretty_printer): Remove duplicate
7458 'return'.
7459
fcf250e2
UW
74602011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7461
7462 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7463 if neither saved value nor register available (e.g. signal frame).
7464
ee6436e3
TJB
74652011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7466
7467 * macroexp.c (expand): Avoid uninitialized variable
7468 compiler warning.
7469
423f41a5
TJB
74702011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7471
7472 * breakpoint.c (break_range_command): Fix typo in comment.
7473
f1310107
TJB
74742011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7475 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7476
7477 Implement support for PowerPC BookE ranged breakpoints.
7478 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7479 * breakpoint.h (struct bp_target_info) <length>: New member
7480 variable.
7481 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7482 instead of struct breakpoint as argument, and also add ASPACE
7483 and BP_ADDR arguments. Update all callers.
7484 (struct breakpoint_ops) <print_one_detail>: New method.
7485 (struct breakpoint) <addr_string_range_end>: New member variable.
7486 * breakpoint.c (breakpoint_location_address_match): Add function
7487 prototype.
7488 (insert_bp_location): Set bl->target_info.length.
7489 (breakpoint_here_p): Call breakpoint_location_address_match.
7490 (moribund_breakpoint_here_p): Likewise.
7491 (regular_breakpoint_inserted_here_p): Likewise.
7492 (breakpoint_thread_match): Likewise.
7493 (bpstat_stop_status): Likewise.
7494 (bpstat_check_location): Move call to
7495 breakpoint_ops.breakpoint_hit to the top.
7496 (print_one_breakpoint_location): Call
7497 breakpoint_ops.print_one_detail if available.
7498 (breakpoint_address_match_range): New function.
7499 (breakpoint_location_address_match): Likewise.
7500 (breakpoint_locations_match): Compare the length field of the
7501 locations too.
7502 (hw_breakpoint_used_count): Count resources used by all locations
7503 in a breakpoint, and use breakpoint_ops.resources_needed if
7504 available.
7505 (breakpoint_hit_ranged_breakpoint): New function.
7506 (resources_needed_ranged_breakpoint): Likewise.
7507 (print_it_ranged_breakpoint): Likewise.
7508 (print_one_ranged_breakpoint): Likewise.
7509 (print_one_detail_ranged_breakpoint): Likewise.
7510 (print_mention_ranged_breakpoint): Likewise.
7511 (print_recreate_ranged_breakpoint): Likewise.
7512 (ranged_breakpoint_ops): New structure.
7513 (find_breakpoint_range_end): New function.
7514 (break_range_command): Likewise.
7515 (delete_breakpoint): Free addr_string_range_end.
7516 (update_breakpoint_locations): Add SALS_END argument. Update
7517 all callers. Calculate breakpoint length if a non-zero SALS_END
7518 is given. Call breakpoint_locations_match instead of
7519 breakpoint_address_match.
7520 (reset_breakpoint): Find SaL of the end of the range if B is a
7521 ranged breakpoint.
7522 (_initialize_breakpoint): Register break-range command.
7523 * defs.h (print_core_address): Add function prototype.
7524 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7525 function.
7526 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7527 (ppc_linux_remove_hw_breakpoint): Likewise.
7528 (_initialize_ppc_linux_nat): Initialize
7529 to_ranged_break_num_registers.
7530 * target.c (update_current_target): Add comment about
7531 to_ranged_break_num_registers.
7532 (target_ranged_break_num_registers): New function.
7533 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7534 New method.
7535 (target_ranged_break_num_registers): Add function prototype.
7536 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7537 * utils.c (print_core_address): ... here.
7538
02d20e4a
UW
75392011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7540
7541 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7542 variable compiler warning.
7543
ef23e705
TJB
75442011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7545
7546 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7547 code from here ...
7548 (re_set_breakpoint): ... to here ...
7549 (addr_string_to_sals): ... and here.
7550
311e6ab3
PM
75512011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7552
7553 * Makefile.in (SFILES): Add missing C sources.
7554 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7555 Add missing headers.
7556
acd1d99c
MF
75572011-03-29 Mike Frysinger <vapier@gentoo.org>
7558
7559 * .gitignore: New file.
7560
66ee2731
MF
75612011-03-29 Mike Frysinger <vapier@gentoo.org>
7562
7563 * NEWS: Mention new cfi device simulation.
7564
53832f31
TT
75652011-03-29 Tom Tromey <tromey@redhat.com>
7566
7567 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7568 otherwise anonymous types.
7569 (dwarf2_name): Likewise.
7570 * valops.c (value_struct_elt_for_reference): Refine artificial
7571 type logic. Call error if j==-1.
7572
09b58708
JK
75732011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7574
7575 Fix false GCC warning.
7576 * infcall.c (find_function_addr): Initialize funaddr.
7577
6023c606
PM
75782011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7579
7580 Fix mingw compilation with --enable-targets=all.
7581 * remote-mips.c (gdb_usleep.h): Include header.
7582 (mips_enter_debug): Use gdb_usleep instead of sleep.
7583
0e30163f
JK
75842011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7585
7586 Support resolution of STT_GNU_IFUNC via breakpoints.
7587 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7588 bp_gnu_ifunc_resolver_return.
7589 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7590 the loop. Support bp_gnu_ifunc_resolver and
7591 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7592 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7593 breakpoints.
7594 (bptype_string, print_one_breakpoint_location): Support
7595 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7596 (user_settable_breakpoint): Return true also for
7597 bp_gnu_ifunc_resolver.
7598 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7599 bp_gnu_ifunc_resolver_return.
7600 (set_breakpoint_location_function): New parameter explicit_loc,
7601 describe it. Call find_pc_partial_function_gnu_ifunc with new
7602 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7603 EXPLICIT_LOC is not set.
7604 (set_raw_breakpoint): Set EXPLICIT_LOC for
7605 set_breakpoint_location_function.
7606 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7607 set_breakpoint_location_function.
7608 (mention): Support bp_gnu_ifunc_resolver and
7609 bp_gnu_ifunc_resolver_return.
7610 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7611 set_breakpoint_location_function.
7612 (update_breakpoint_locations): Remove static.
7613 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7614 bp_gnu_ifunc_resolver_return.
7615 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7616 bp_gnu_ifunc_resolver_return.
7617 (update_breakpoint_locations): New declaration.
7618 * elfread.c: Include gdbthread.h and regcache.h.
7619 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7620 functions.
7621 (elf_gnu_ifunc_fns): Install them.
7622 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7623 (stub_gnu_ifunc_resolver_return_stop): New functions.
7624 (stub_gnu_ifunc_fns): Install them.
7625 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7626 and gnu_ifunc_resolver_return_stop.
7627 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7628
07be84bf
JK
76292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 STT_GNU_IFUNC reader implementation.
7632 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7633 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7634 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7635 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7636 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7637 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7638 (elf_gnu_ifunc_resolve_addr): New.
7639 (elf_symfile_read): Call elf_rel_plt_read.
7640 (elf_gnu_ifunc_fns): New.
7641 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7642 Install elf_gnu_ifunc_fns.
7643 * infcall.c (find_function_return_type): New function.
7644 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7645 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7646 (stub_gnu_ifunc_resolve_name): New functions.
7647 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7648 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7649 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7650
300f8e10
JK
76512011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7652
7653 Code cleanup for later STT_GNU_IFUNC support.
7654 * infcall.c (find_function_addr): Remove variable code, use explicit
7655 dereferences for it. Move VALUE_TYPE initialization later.
7656
11c81455
JK
76572011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7658
7659 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7660 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7661 (clear_pc_function_cache): Clear it.
7662 (find_pc_partial_function): Rename to ...
7663 (find_pc_partial_function_gnu_ifunc): ... this function. New
7664 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7665 (find_pc_partial_function): New wrapper for this function.
7666 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7667
0875794a
JK
76682011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 GDB internal type support for STT_GNU_IFUNC.
7671 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7672 (elf_symtab_read): Set mst_text_gnu_ifunc for
7673 BSF_GNU_INDIRECT_FUNCTION.
7674 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7675 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7676 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7677 nodebug_got_plt_symbol.
7678 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7679 (TYPE_GNU_IFUNC): New.
7680 (struct main_type): New field flag_gnu_ifunc.
7681 (struct builtin_type): New field builtin_func_func.
7682 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7683 nodebug_got_plt_symbol.
7684 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7685 (in_gnu_ifunc_stub): New.
7686 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7687 mst_text_gnu_ifunc.
7688 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7689 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7690 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7691 in_gnu_ifunc_stub.
7692 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7693 * symtab.c (search_symbols): Likewise.
7694 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7695 and mst_slot_got_plt.
7696 (in_gnu_ifunc_stub): New declaration.
7697
d0fb5eae
JK
76982011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7699
7700 Support a ring of related breakpoints.
7701 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7702 other functions, add gdb_assert.
7703 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7704 watchpoint_del_at_next_stop.
7705 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7706 (bpstat_stop_status): Handle ring in related_breakpoint.
7707 (set_raw_breakpoint_without_location): Initialize ring in
7708 related_breakpoint.
7709 (delete_breakpoint): Handle ring in related_breakpoint, use
7710 watchpoint_del_at_next_stop.
7711 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7712
9cded63f
TT
77132011-03-28 Tom Tromey <tromey@redhat.com>
7714
7715 PR symtab/12441:
7716 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7717 with `language_minimal'.
7718
467d42c4
UW
77192011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7720
7721 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7722 instead of checking for STT_ARM_TFUNC symbol type.
7723
62853458
TT
77242011-03-25 Tom Tromey <tromey@redhat.com>
7725
7726 * linespec.c (symbol_found): Restore line-based result for
7727 non-LOC_LABEL symbols.
7728
a7417d46
KT
77292011-03-25 Kai Tietz <ktietz@redhat.com>
7730
7731 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7732 instead of strcmp for comparison.
7733 (tui_source_is_displayed): Likewise.
7734 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7735
55f1336d
TT
77362011-03-24 Mark Wielaard <mjw@redhat.com>
7737
f33edef8
PP
7738 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7739 complaint.
7740 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7741 (find_partial_die_in_comp_unit): Likewise in comment.
7742 (read_attribute_value): Likewise.
7743 (lookup_die_type): Likewise.
7744 (dwarf_form_name): Likewise.
7745 (dump_die_shallow): Likewise.
7746 (follow_die_ref_or_sig): Likewise.
55f1336d 7747
9ef07c8c
TT
77482011-03-24 Tom Tromey <tromey@redhat.com>
7749
7750 PR breakpoints/11816:
7751 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7752 (decode_compound): Update.
7753 (find_function_symbol): New function.
7754 (decode_dollar): Update.
7755 (decode_label): Add 'function_symbol' parameter. Handle
7756 function-relative labels.
7757 (decode_variable): Update.
7758 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7759 not its line. Set `special_display' and canonical name for
7760 labels.
7761
56435ebe
TT
77622011-03-24 Tom Tromey <tromey@redhat.com>
7763
7764 * linespec.h (struct linespec_result) <special_display>: New
7765 field.
7766 * breakpoint.h (struct breakpoint) <display_canonical>: New
7767 field.
7768 * breakpoint.c (print_breakpoint_location): Respect
7769 display_canonical.
7770 (create_breakpoint_sal): Add 'display_canonical' parameter.
7771 (create_breakpoints_sal): Update.
7772 (create_breakpoint): Update.
7773
7efd8fc2
TT
77742011-03-24 Tom Tromey <tromey@redhat.com>
7775
7776 * symtab.c (decode_line_spec): Update.
7777 * linespec.c (build_canonical_line_spec): Change type of
7778 'canonical'.
7779 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7780 (find_method, decode_all_digits, decode_dollar, decode_label)
7781 (symbol_found): Likewise.
7782 (init_linespec_result): New function.
7783 * breakpoint.c (struct captured_parse_breakpoint_args)
7784 <canonical_p>: New field, replaces addr_string_p.
7785 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7786 'addr_string'.
7787 (parse_breakpoint_sals): Likewise.
7788 (do_captured_parse_breakpoint): Update.
7789 (create_breakpoint): Use struct linespec_result.
7790 (until_break_command): Update.
7791 (breakpoint_re_set_one): Update.
7792 (decode_line_spec_1): Update.
7793 * linespec.h (struct linespec_result): New.
7794 (init_linespec_result): Declare.
7795
788c8b10
PA
77962011-03-23 Pedro Alves <pedro@codesourcery.com>
7797
7798 * regcache.c (regcache_raw_read): If the target didn't supply a
7799 given raw register, mark it as unavailable.
7800
0ba1096a
KT
78012011-03-23 Kai Tietz <ktietz@redhat.com>
7802
7803 * breakpoint.c (clear_command): Use filename_cmp
7804 instead of strcmp for comparison.
7805 * buildsym.c (watch_main_source_file_lossage): Likewise.
7806 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7807 checking just for slash.
7808 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7809 strrchr and filename_cmp instead of strcmp for filenames.
7810 (add_old_header_file): Use filename_cmp
7811 instead of strcmp for comparison.
7812 * exec.c (exec_set_section_address): Likewise.
7813 * macrotab.c (macro_lookup_inclusion): Likewise.
7814 (macro_lookup_inclusion): Likewise.
7815 * elfread.c (_initialize_elfread): Likewise.
7816 (elfstab_offset_sections): Likewise.
7817 (elfstab_offset_sections): Use lbasename instead of
7818 strrchr.
7819 * mdebugread.c (parse_partial_symbols): Likewise.
7820 (arse_partial_symbols): Use filename_(n)cmp instead of
7821 str(n)cmp for comparison.
7822 * minsyms.c (lookup_minimal_symbol): Likewise.
7823 * psymtab.c (read_psymtabs_with_filename): Likewise.
7824 * solib.c (solib_read_symbols): Likewise.
7825 (reload_shared_libraries_1): Likewise.
7826 * symmisc.c (maintenance_print_symbols): Likewise.
7827 * symfile.c (separate_debug_file_exists): Likewise.
7828 (reread_symbols): Likewise.
7829 (find_separate_debug_file_by_debuglink): Likewise.
7830 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7831 * source.c (add_path): Likewise.
7832 * symtab.c (filename_seen): Likewise.
7833 (file_matches): Likewise.
7834 (print_symbol_info): Likewise.
7835 (maybe_add_partial_symtab_filename): Likewise.
7836 (make_source_files_completion_list): Likewise.
7837 * xml-syscall.c (init_sysinfo): Likewise.
7838 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7839 IS_DIR_SEPARATOR for checking for trailing path separator.
7840
dd90784c
JK
78412011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7842
7843 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7844 label abort_expression.
7845 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7846 DWARF_VALUE_OPTIMIZED_OUT.
7847
3167638f
JK
78482011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Code cleanup.
7851 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7852 to linkage_name. Invert its value. Update the function comment.
7853 (c_type_print_varspec_suffix): Invert it at the caller.
7854 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7855
ce406537
PA
78562011-03-22 Pedro Alves <pedro@codesourcery.com>
7857
7858 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7859 errors when reading the `stop_pc'.
7860 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7861 get_frame_pc.
7862
da5d4055
PM
78632011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7864
7865 * NEWS: Document gdb.Write stream keyword.
7866
29e0eb9c
JK
78672011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 Revert:
7870 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7871 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7872 (dwarf2_add_field): Fix new_field->accessibility for
7873 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7874
05775840
PM
78752011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7876
f33edef8 7877 PR python/12183
05775840
PM
7878
7879 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7880 other error classes. Do not print stack trace.
7881
a0cb7835
JK
78822011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7883
7884 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7885 (dwarf2_add_field): Fix new_field->accessibility for
7886 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7887
d19f7eee
UW
78882011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7889
7890 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7891 encountering a load via a non-SP register.
7892
4a2fbb50
UW
78932011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7894
7895 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7896 field in returned unwinder.
7897
3489610d
JB
78982012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7899
7900 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7901
8c1a34e7
JB
79022012-03-21 Joel Brobecker <brobecker@adacore.com>
7903
7904 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7905 of xmalloc.
7906
8fbca658
PA
79072012-03-18 Pedro Alves <pedro@codesourcery.com>
7908
7909 * frame.c (frame_unwind_register): Throw an error if unwinding the
7910 register failed.
7911 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7912 an unwind stop reason.
7913 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7914 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7915 UNWIND_UNAVAILABLE>: New.
7916 * inline-frame.c (inline_frame_unwind): Install
7917 default_frame_unwind_stop_reason.
7918 * frame-unwind.c: Include "exceptions.h".
7919 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7920 (default_frame_unwind_stop_reason): New.
7921 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7922 (default_frame_unwind_stop_reason): Declare.
7923 (struct frame_unwind) <stop_reason>: New function pointer.
7924
7925 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7926 * dwarf2-frame.c: Include exceptions.h.
7927 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7928 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7929 computing the CFA. If such an error was thrown, set
7930 unavailable_retaddr.
7931 (dwarf2_frame_unwind_stop_reason): New.
7932 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7933 unavailable.
7934 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7935 (dwarf2_signal_frame_unwind): Ditto.
7936
7937 * amd64-tdep.c: Include "exceptions.h".
7938 (struct amd64_frame_cache): New field "base_p".
7939 (amd64_init_frame_cache): Clear it.
7940 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7941 Avoid reading registers with functions that throw if the register
7942 is not necessary to compute the frame base.
7943 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7944 swallowing NOT_AVAILABLE_ERROR.
7945 (amd64_frame_unwind_stop_reason): New.
7946 (amd64_frame_this_id): Don't build a frame id if the frame base
7947 was unavailable.
7948 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7949 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7950 base_p if the frame base was computable.
7951 (amd64_sigtramp_frame_unwind_stop_reason): New.
7952 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7953 frame base was unavailable.
7954 (amd64_sigtramp_frame_unwind): Install
7955 amd64_sigtramp_frame_unwind_stop_reason.
7956 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7957 base_p if the frame base was computable.
7958 (amd64_epilogue_frame_unwind_stop_reason): New.
7959 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7960 frame base was unavailable.
7961 (amd64_epilogue_frame_unwind): Install
7962 amd64_epilogue_frame_unwind_stop_reason.
7963 * i386-tdep.c: Include "exceptions.h".
7964 (struct i386_frame_cache): New field "base_p".
7965 (i386_init_frame_cache): Clear it.
7966 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7967 Avoid reading registers with functions that throw if the register
7968 is not necessary to compute the frame base.
7969 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7970 swallowing NOT_AVAILABLE_ERROR.
7971 (i386_frame_unwind_stop_reason): New.
7972 (i386_frame_this_id): Don't build a frame id if the frame base was
7973 unavailable.
7974 (i386_frame_prev_register): Handle unavailable SP.
7975 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7976 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7977 base_p if the frame base was computable.
7978 (i386_epilogue_frame_unwind_stop_reason): New.
7979 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7980 base was unavailable.
7981 (i386_epilogue_frame_unwind): Install
7982 i386_epilogue_frame_unwind_stop_reason.
7983 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7984 base_p if the frame base was computable.
7985 (i386_sigtramp_frame_unwind_stop_reason): New.
7986 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7987 base was unavailable.
7988 (i386_sigtramp_frame_unwind): Install
7989 i386_sigtramp_frame_unwind_stop_reason.
7990 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7991 type's size, not the register's.
7992 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7993
7994 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7995 default_frame_unwind_stop_reason.
7996 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7997 (alpha_heuristic_frame_unwind): Ditto.
7998 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7999 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8000 * avr-tdep.c (avr_frame_unwind): Ditto.
8001 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8002 Ditto.
8003 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8004 * frv-tdep.c (frv_frame_unwind): Ditto.
8005 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8006 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8007 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8008 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8009 (hppa_stub_frame_unwind): Ditto.
8010 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8011 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8012 (ia64_libunwind_frame_unwind)
8013 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8014 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8015 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8016 * m32c-tdep.c (m32c_unwind): Ditto.
8017 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8018 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8019 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8020 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8021 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8022 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8023 * mep-tdep.c (mep_frame_unwind): Ditto.
8024 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8025 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8026 (mips_stub_frame_unwind): Ditto.
8027 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8028 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8029 * mt-tdep.c (mt_frame_unwind): Ditto.
8030 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8031 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8032 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8033 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8034 (s390_sigtramp_frame_unwind): Ditto.
8035 * score-tdep.c (score_prologue_unwind): Ditto.
8036 * sh-tdep.c (sh_frame_unwind): Ditto.
8037 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8038 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8039 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8040 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8041 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8042 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8043 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8044 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8045 (sparc64obsd_trapframe_unwind): Ditto.
8046 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8047 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8048 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8049 * v850-tdep.c (v850_frame_unwind): Ditto.
8050 * vax-tdep.c (vax_frame_unwind): Ditto.
8051 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8052 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8053 * xtensa-tdep.c (xtensa_unwind): Ditto.
8054
f23d1b92
PA
80552011-03-18 Pedro Alves <pedro@codesourcery.com>
8056
8057 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8058 there's always a frame. Use get_frame_pc_if_available instead of
8059 get_frame_pc, and if there's no PC available, don't look up a
8060 symtab.
8061
1d4f5741
PA
80622011-03-18 Pedro Alves <pedro@codesourcery.com>
8063
8064 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8065 unavailable PC.
8066
dba09041
PA
80672011-03-18 Pedro Alves <pedro@codesourcery.com>
8068
8069 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8070 gracefully.
8071
9a26e44c
PA
80722011-03-18 Pedro Alves <pedro@codesourcery.com>
8073
8074 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8075 * frame.c (frame_unwind_caller_pc_if_available): New.
8076 * stack.c (frame_info): Handle unavailable PC.
8077
80782011-03-18 Pedro Alves <pedro@codesourcery.com>
8079
8080 * frame.c (frame_unwind_pc): Rename to ...
8081 (frame_unwind_pc_if_available): ... this. New `pc' output
8082 parameter. Change return type to int. Gracefully handle
8083 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8084 happened, or 1 otherwise.
8085 (frame_unwind_pc): Reimplement on top of
8086 frame_unwind_pc_if_available.
8087 (get_frame_func): Rename to ...
8088 (get_frame_func_if_available): New `pc' output parameter. Change
8089 return type to int. Gracefully handle the PC not being available.
8090 (get_frame_func): Reimplement on top of
8091 get_frame_func_if_available.
8092 (select_frame): Handle the PC being unavailable.
8093 (get_prev_frame): Handle the PC being unavailable.
8094 (get_frame_pc_if_available): New.
8095 (get_frame_address_in_block_if_available): New.
8096 (find_frame_sal): Handle the frame PC not being available.
8097 * frame.h (get_frame_pc_if_available): Declare.
8098 (get_frame_address_in_block_if_available): Declare.
8099 (get_frame_func_if_available): Declare.
8100 * stack.c (print_frame_info): Handle the PC being unavailable.
8101 (find_frame_funname): Ditto.
8102 (print_frame): Handle the PC being unavailable.
8103 (get_frame_language): Ditto.
8104 * blockframe.c (get_frame_block): Ditto.
8105 * macroscope.c (default_macro_scope): Ditto.
8106 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8107
81082011-03-18 Pedro Alves <pedro@codesourcery.com>
8109
8110 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8111 NOT_AVAILABLE_ERROR when evaluating the location expression.
8112
81132011-03-18 Pedro Alves <pedro@codesourcery.com>
8114
8115 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8116 returning that the register piece is unavailable/optimized out.
8117 (write_pieced_value): Handle get_frame_register_bytes returning
8118 that the register piece is unavailable/optimized out when doing a
8119 read-modify write of a bitfield.
8120 * findvar.c (value_from_register): Handle get_frame_register_bytes
8121 returning that the register piece is unavailable/optimized out.
8122 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8123 and `unavailablep'. Throw error on bad debug info. Use
8124 frame_register instead of frame_register_read, to fill in the new
8125 arguments.
8126 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8127 and `unavailablep'.
8128 * valops.c: (value_assign): Adjust, and handle
8129 get_frame_register_bytes failing.
8130 * spu-tdep.c: Include exceptions.h.
8131 (spu_software_single_step): Adjust, and handle
8132 get_frame_register_bytes failing.
8133 (spu_get_longjmp_target): Ditto.
8134 * gdbarch.sh (register_to_value): Change to return int. New
8135 parameters `optimizedp' and `unavailablep'.
8136 * gdbarch.h, gdbarch.c: Regenerate.
8137 * i386-tdep.c (i386_register_to_value): Adjust to new
8138 gdbarch_register_to_value interface.
8139 * i387-tdep.c (i387_register_to_value): Ditto.
8140 * i387-tdep.h (i387_register_to_value): Ditto.
8141 * alpha-tdep.c (alpha_register_to_value): Ditto.
8142 * ia64-tdep.c (ia64_register_to_value): Ditto.
8143 * m68k-tdep.c (m68k_register_to_value): Ditto.
8144 * mips-tdep.c (mips_register_to_value): Ditto.
8145 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8146
0fdb4f18
PA
81472011-03-18 Pedro Alves <pedro@codesourcery.com>
8148
8149 * findvar.c (value_of_register): Mark the value as unavailable, if
8150 the register is unavailable.
8151 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8152 (frame_register): New `unavailablep' parameter.
8153 (frame_register_read): Update comment.
8154 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8155 Set it if the register is unavailable. If the register is
8156 unavailable, clear the output buffer.
8157 (frame_register): New `unavailablep' parameter. Pass it down.
8158 (frame_unwind_register): Adjust.
8159 (put_frame_register): Adjust.
8160 (frame_register_read): Adjust. Also return false if the register
8161 is not available.
8162 (frame_register_unwind_location): Adjust.
8163 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8164 is unavailable, mark the value accordingly.
8165 * stack.c (frame_info): Handle unavailable registers.
8166
e69aa73e
PA
81672011-03-18 Pedro Alves <pedro@codesourcery.com>
8168
8169 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8170 simplify, using regcache_cooked_read.
8171
05d1431c
PA
81722011-03-18 Pedro Alves <pedro@codesourcery.com>
8173
8174 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8175 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8176 (regcache_raw_read_unsigned, regcache_raw_read_part)
8177 (regcache_cooked_read, regcache_cooked_read_signed)
8178 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8179 (regcache_cooked_read_ftype): Change return to enum
8180 register_status.
8181 * regcache.c: Include exceptions.h
8182 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8183 (do_cooked_read): Change return to enum register_status. Always
8184 forward to regcache_cooked_read.
8185 (regcache_raw_read): Change return to enum register_status. If
8186 the register is not REG_VALID, memset the buffer. Return the
8187 register's status.
8188 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8189 return the register's status.
8190 (regcache_raw_read_unsigned): Ditto.
8191 (regcache_cooked_read): Change return to enum register_status.
8192 Assert that with read-only regcaches, the register's status must
8193 be known. If the regcache is read-only, and the register is not
8194 REG_VALID, memset the buffer. Return the register's status.
8195 (regcache_cooked_read_signed): Change return to enum
8196 register_status. Handle non-REG_VALID registers and return the
8197 register's status.
8198 (regcache_cooked_read_unsigned): Change return to enum
8199 register_status. Handle non-REG_VALID registers and return the
8200 register's status.
8201 (regcache_xfer_part, regcache_raw_read_part)
8202 (regcache_cooked_read_part): Change return to enum
8203 register_status. Return the register's status.
8204 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8205 unavailable.
8206 (regcache_dump): Handle unavailable cooked registers.
8207 * frame.c (do_frame_register_read): Adjust interface to match
8208 regcache_cooked_read_ftype.
8209 * gdbarch.sh (pseudo_register_read): Change return to enum
8210 register_status.
8211 * gdbarch.h, gdbarch.c: Regenerate.
8212
8213 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8214 register_status.
8215 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8216 register_status. If reading a raw register indicates the raw
8217 register is not valid, return the raw register's status,
8218 otherwise, return REG_VALID.
8219 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8220 register_status. Handle non-REG_VALID raw registers and return
8221 the register's status.
8222 * arm-tdep.c (arm_neon_quad_read)
8223 (arm_pseudo_read): Change return to enum register_status. Handle
8224 non-REG_VALID raw registers and return the register's status.
8225 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8226 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8227 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8228 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8229 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8230 register_status.
8231 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8232 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8233 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8234 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8235 (m32c_pseudo_register_read): Change return to enum
8236 register_status. Adjust.
8237 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8238 enum register_status. Return the register's status.
8239 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8240 register_status. Return the register's status.
8241 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8242 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8243 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8244 * rs6000-tdep.c (move_ev_register_func): New typedef.
8245 (e500_move_ev_register): Use it. Change return to enum
8246 register_status. Return the register's status.
8247 (do_regcache_raw_read): New function.
8248 (do_regcache_raw_write): New function.
8249 (e500_pseudo_register_read): Change return to enum
8250 register_status. Return the register's status. Use
8251 do_regcache_raw_read.
8252 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8253 (dfp_pseudo_register_read): Change return to enum register_status.
8254 Return the register's status.
8255 (vsx_pseudo_register_read): Ditto.
8256 (efpr_pseudo_register_read): Ditto.
8257 (rs6000_pseudo_register_read): Ditto.
8258 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8259 register_status. Return the register's status.
8260 * sh64-tdep.c (pseudo_register_read_portions): New function.
8261 (sh64_pseudo_register_read): Change return to enum
8262 register_status. Use pseudo_register_read_portions. Return the
8263 register's status.
8264 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8265 register_status. Return the register's status.
8266 * sh-tdep.c (pseudo_register_read_portions): New function.
8267 (sh_pseudo_register_read): Change return to enum register_status.
8268 Use pseudo_register_read_portions. Return the register's status.
8269 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8270 enum register_status. Return the register's status.
8271 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8272 * spu-tdep.c (spu_pseudo_register_read_spu)
8273 (spu_pseudo_register_read): Ditto.
8274 * xtensa-tdep.c (xtensa_register_read_masked)
8275 (xtensa_pseudo_register_read): Ditto.
8276 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8277
e10abd8f
PM
82782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8279
8280 * python/py-value.c (valpy_getitem): Fix formatting of error function
8281 call.
8282
7ea6d463
PM
82832011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8284
8285 ARI fixes: Add missing internationalization markups throughout
8286 C source files.
8287 * darwin-nat-info.c: Ditto.
8288 * record.c: Ditto.
8289 * remote.c: Ditto.
8290 * mi/mi-main.c: Ditto.
8291
001083c6
PM
82922011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8293
8294 ARI fixes: Add missing internationalization markups throughout
8295 yacc files.
8296 * c-exp.y: Ditto.
8297 * cp-name-parser.y: Ditto.
8298 * f-exp.y: Ditto.
8299 * m2-exp.y: Ditto.
8300 * objc-exp.y: Ditto.
8301 * p-exp.y: Ditto.
8302
4f1cdeec
PM
83032011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8304
8305 ARI fixes: Messages should have no trailing new lines.
8306 * darwin-nat.c (mach_check_error): Remove trailing new line from
8307 warning function call message.
8308 * record.c (bfdcore_read): Idem for error call.
8309
28e698f1
PM
83102011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8311
8312 * common/signals.c (target_signal_from_host): Add _ markup to error
8313 function call message.
8314 (target_signal_to_host): Add _ markup and remove trailing new line
8315 from warning call message.
8316 (target_signal_from_command): Add _ markup to error function call
8317 message.
8318
99c3dc11
PM
83192011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8320
f33edef8 8321 PR python/12149
99c3dc11
PM
8322
8323 * python/python.c (gdbpy_write): Accept a stream argument and
8324 operate to the appropriate stream.
8325 (gdbpy_flush): Likewise.
8326 (_initialize_python): Add stream constants.
8327 (finish_python_initialization): Add GdbOutputErrorFile class.
8328
c20800be
KY
83292011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8330
8331 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8332
f4a1794a
KY
83332011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8334
8335 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8336 to store_signed_integer. Add debug message when relocating CALL
8337 instructions. Fix formatting of debug message.
8338 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8339
d4862372
JB
83402011-03-17 Joel Brobecker <brobecker@gnat.com>
8341
8342 * target.h (struct target_ops): Remove to_lookup_symbol field.
8343 (target_lookup_symbol): Delete macro.
8344 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8345 (update_current_target, setup_target_debug): Remove handling
8346 of to_lookup_symbol target_ops field.
8347 * ada-tasks.c (get_known_tasks_addr): Remove use of
8348 target_lookup_symbol.
8349 * coffread.c (coff_symtab_read): Likewise.
8350 * dbxread.c (read_dbx_symtab): Ditto.
8351
d645e32e
JB
83522011-03-17 Joel Brobecker <brobecker@gnat.com>
8353
8354 PR gdb/12116:
8355 * configure.ac: Add getthrds declaration check.
8356 * configure, config.in: Regenerate.
8357 * aix-thread.c (getthrds): Declare only if not already declared
8358 in procinfo.h. More declaration out of get_signaled_thread to
8359 global scope.
8360
29703da4
PM
83612011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8362
8363 * python/py-symtab.c: Populate symtab_object_methods,
8364 sal_object_methods.
8365 (stpy_is_valid): New function.
8366 (salpy_is_valid): Ditto.
8367 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8368 (sympy_is_valid): New function.
8369 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8370 (objfpy_is_valid): New function.
8371 * python/py-inferior.c: Populate inferior_object_methods.
8372 (infpy_is_valid): New function.
8373 * python/py-infthread.c: Populate thread_object_methods.
8374 (thpy_is_valid): New function.
8375 * python/py-block.c: Declare block_object_methods. Populate. Declare
8376 block_iterator_object_methods. Populate.
8377 (blpy_is_valid): New function.
8378 (blpy_iter_is_valid): Ditto.
8379
c00f8484
KS
83802011-03-16 Keith Seitz <keiths@redhat.com>
8381
8382 * linespec.c (find_methods): Canonicalize NAME before looking
8383 up the symbol.
8384 (name_end): New function.
8385 (keep_name_info): New function.
8386 (decode_line_1): Use keep_name_info.
8387 (decode_compound): Likewise.
8388 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8389 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8390
8391 PR c++/12273
8392 * linespec.c (locate_first_half): Keep overload information, too.
8393 (decode_compound): Use a string to represent break characters
8394 to escape the loop.
8395 If P points to a break character, do not increment it.
8396 For C++ and Java, keep overload information and relevant keywords.
8397 If we cannot find a symbol, search the minimal symbols.
8398
8399 PR c++/11734
8400 * linespec.c (decode_compound): Rename SAVED_ARG to
8401 THE_REAL_SAVED_ARG.
8402 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8403 single-quotes.
8404 Pass a valid block to lookup_symbol.
8405 (lookup_prefix_sym): Likewise.
8406 (find_method): Construct search name based on SYM_CLASS instead
8407 of SAVED_ARG.
8408 * psymtab.c (lookup_partial_symbol): Add language parameter.
8409 (lookup_symbol_aux_psymtabs): Likewise.
8410 Don't assume that the psymtab we found was the right one. Search
8411 for the desired symbol in the symtab to be certain.
8412 (psymtab_search_name): New function.
8413 (lookup_partial_symbol): Use psymtab_search_name.
8414 Add language parameter.
8415 (read_symtabs_for_function): Add language parameter and pass to
8416 lookup_partial_symbol.
8417 (find_symbol_file_from_partial): Likewise.
8418
c91513d8
PP
84192011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8420
8421 PR gdb/12528
8422 * dwarf2read.c (noop_record_line): New function.
8423 (dwarf_decode_lines): Ignore line tables for GCd functions.
8424
b37520b6
PM
84252011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8426
8427 Fix ARI warnings about new lines at the end of messages, which
8428 are unneeded as there is a new line added at the end of the message
8429 automatically.
8430 * darwin-nat.c (darwin_stop_inferior): Ditto.
8431 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8432 * dfp.c (decimal_to_number): Ditto.
8433 * exec.c (print_section_info): Ditto.
8434 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8435 * osdata.c (get_osdata): Ditto.
8436 * record.c (bfdcore_write): Ditto.
8437 * remote-mips.c (mips_readchar): Ditto.
8438 * remote.c (read_ptid): Ditto.
8439 * ser-mingw.c (ser_windows_raw): Ditto.
8440 * tracepoint.c (add_local_symbols): Ditto.
8441 * windows-nat.c (fake_create_process): Ditto.
8442
b08ee6a2
TT
84432011-03-16 Tom Tromey <tromey@redhat.com>
8444
8445 * tracepoint.c (stop_tracing): Don't declare.
8446 * event-top.c (after_char_processing_hook): Add `(void)'.
8447
9a6f1302
PM
84482011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8449
8450 * NEWS: Add Parameter sub-classing description.
8451
7ceb86b1
KT
84522011-03-16 Kai Tietz <ktietz@redhat.com>
8453
8454 * MAINTAINERS: Update my e-mail address.
8455
efeff6cf
AT
84562011-03-15 Andreas Tobler <andreast@fgznet.ch>
8457
8458 * MAINTAINERS: Add myself for write after approval privileges.
8459
681c238c
MS
84602011-03-15 Michael Snyder <msnyder@vmware.com>
8461
f3df5b08
MS
8462 * frame.c (find_frame_sal): Assert sym is not null.
8463
13f6513c
MS
8464 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8465
50412521
MS
8466 * objc-lang.c (selectors_info): Check strchr for null result.
8467
681c238c
MS
8468 * stabsread.c (define_symbol): Guard against bad stabstring input.
8469
6ced1581
PM
84702011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8471
8472 Remove trailing spaces and tabulations from pascal language
8473 support sources.
8474 p-exp.y: Ditto.
8475 p-lang.c: Ditto.
8476 p-lang.h: Ditto.
8477 p-valprint.c: Ditto.
8478
9373cf26
JK
84792011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8480
8481 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8482 than LOW. Comment it.
8483 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8484 HIGHPC not strictly higher than LOWPC.
8485
9a1edae6
PM
84862011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8487
8488 Fix formatting of function declarations returning a pointer in
8489 previous commit.
8490 * varobj.c (varobj_add_child): Ditto.
8491 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8492 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8493
24e9cda0
UW
84942011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8495
8496 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8497 for the "generic" vector ABI used with GCC 4.3 and later.
8498 (ppc64_sysv_abi_return_value): Likewise.
8499
85002011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8501
8502 * infcall.c (call_function_by_hand): Function return value is
8503 always a non_lval, even when using struct_return.
8504
c9174737
PA
85052011-03-15 Pedro Alves <pedro@codesourcery.com>
8506
8507 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8508 (map_display_numbers): New.
8509 (do_delete_display): New.
8510 (undisplay_command): Use map_display_numbers.
8511 (do_enable_disable_display): New.
8512 (enable_disable_display_command): New function.
8513 (enable_display): Delete.
8514 (enable_display_command): New.
8515 (disable_display_command): Reimplement.
8516 (_initialize_printcmd): Adjust "enable display" command to use
8517 `enable_display_command' as callback.
8518
350c6c65
PM
85192011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8520
8521 * NEWS: Add Python breakpoint 'stop' operation.
8522
824446ad
PM
85232011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8524
8525 * NEWS: Delete duplicate entry. Fix typo.
8526
2021ad3a
PM
85272011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8528
8529 Fix ARI warning about function names in first column.
8530 Put prototype declaration on same line as return type.
8531 * objc-exp.y: Ditto.
8532 * p-exp.y: Ditto.
8533 * python/py-stopevent.h: Ditto.
8534 For long function names, split parameters to
8535 allow function name on same line as return type.
8536 * solib-pa64.c: Ditto.
8537 * varobj.c: Ditto.
8538 * varobj.h: Ditto.
8539 For long function declaration, use single line.
8540 * hppa-tdep.h: Ditto.
8541 * inferior.h: Ditto.
8542
7371cf6d
PM
85432011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8544
8545 * python/python.h: Declare gdbpy_should_stop and
8546 gdbpy_breakpoint_has_py_cond.
8547 * python/python.c: Add python.h to includes. Remove python.h from
8548 HAVE_PYTHON definition
8549 (gdbpy_should_stop): New dummy function.
8550 (gdbpy_breakpoint_has_py_cond): New dummy function.
8551 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8552 sub-classing capabilities.
8553 (gdbpy_should_stop): New function.
8554 (gdbpy_breakpoint_has_py_cond): New function.
8555 (local_setattro): New function.
8556 * breakpoint.c (condition_command): Add check for Python 'stop'
8557 operation.
8558 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8559 operation function as part of stop/continue tests.
8560
37b50a69
TT
85612011-03-14 Tom Tromey <tromey@redhat.com>
8562
8563 PR gdb/12576:
8564 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8565 (needs_frame_dwarf_call): Likewise.
8566
eeae04df
PM
85672011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8568
8569 Fix ARI warning about functions without parameters that do not
8570 use (void).
8571 * breakpoint.c (all_tracepoints): Replace () by (void).
8572 * f-exp.y (match_string_literal): Ditto.
8573 (yylex): Ditto.
8574 * m2-exp.y (yylex): Ditto.
8575 * mep-tdep.c (current_me_module): Ditto.
8576 (current_options): Ditto.
8577 (current_cop_data_bus_width): Ditto.
8578 (current_cr_names): Ditto.
8579 (current_cr_is_float): Ditto.
8580 (current_ccr_names): Ditto.
8581 * objc-exp.y (yylex): Ditto.
8582 * p-exp.y (yylex): Ditto.
8583 * remote.c (send_interrupt_sequence): Ditto.
8584 * tracepoint.c (current_trace_status): Ditto.
8585 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8586 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8587
6dc3565d
MS
85882011-03-11 Michael Snyder <msnyder@vmware.com>
8589
1427fe5e
MS
8590 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8591 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8592 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8593 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8594 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8595
60bc018f
MS
8596 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8597 (delete_async_event_handler): Ditto.
8598
f3be5b64
MS
8599 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8600
4c2d5724
MS
8601 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8602
6dc3565d
MS
8603 * top.c (set_verbose): Assert showcmd was found.
8604
4e6ca6d5
MG
86052011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8606
8607 * xtensa-tdep.c (warning_once): Correct style issues.
8608
815a83e4
YQ
86092011-03-11 Yao Qi <yao@codesourcery.com>
8610
8611 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8612
f2eb0bc8
AS
86132011-03-11 Andreas Schwab <schwab@redhat.com>
8614
8615 * common/aclocal.m4: Remove.
8616
b801de47
MG
86172011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8618
8619 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8620 (xtensa_write_register, xtensa_read_register): Likewise.
8621 (xtensa_hextochar): Removed.
8622 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8623
dbab50de
MG
86242011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8625
8626 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8627 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8628 (xtensa_alloc_frame_cache): Add initialization for new fields.
8629 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8630 (warning_once): New function.
8631 (xtensa_insn_kind): New item c0opc_and.
8632 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8633 (call0_track_op): Change arguments. New local variable litbase.
8634 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8635 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8636 in the prologue.
dbab50de 8637 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8638 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8639 Add the variety of updates to handle extended prologues, which now can
8640 conduct dynamic stack adjustments.
8641 (call0_frame_cache): Likewise.
8642 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8643 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8644
b2c04452
MS
86452011-03-10 Michael Snyder <msnyder@vmware.com>
8646
f8f67713
MS
8647 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8648 (cmd_qtframe): Ditto.
8649 (cmd_qtbuffer): Ditto.
8650 (cmd_bigqtbuffer): Ditto.
8651
197f0a60
TT
86522011-03-10 Tom Tromey <tromey@redhat.com>
8653
8654 * tracepoint.c (trace_actions_command): Update.
8655 * thread.c (thread_apply_command): Update.
8656 * reverse.c (delete_bookmark_command): Update.
8657 (bookmarks_info): Update.
8658 * printcmd.c (undisplay_command): Update.
8659 * memattr.c (mem_enable_command): Update.
8660 (mem_disable_command): Update.
8661 (mem_delete_command): Update.
8662 * inferior.c (detach_inferior_command): Update.
8663 (kill_inferior_command): Update.
8664 (remove_inferior_command): Update.
8665 * cli/cli-utils.h (struct get_number_or_range_state): New.
8666 (init_number_or_range): Declare.
8667 (get_number_or_range): Update.
8668 * cli/cli-utils.c (init_number_or_range): New function.
8669 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8670 static variables.
8671 (number_is_in_list): Update.
8672 * breakpoint.h (get_tracepoint_by_number): Update.
8673 * breakpoint.c (map_breakpoint_numbers): Update for change to
8674 get_number_or_range.
8675 (find_location_by_number): Use get_number, not
8676 get_number_or_range.
8677 (trace_pass_set_count): New function.
8678 (trace_pass_command): Update for change to get_number_or_range.
8679 Rework loop logic.
8680 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8681 'state' parameter.
8682
ecec24e6
PM
86832011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8684
8685 * python/py-param.c (add_setshow_generic): Add set/show callback
8686 parameters. Register Python object context.
8687 (get_show_value): New function.
8688 (get_set_value): New function.
8689 (call_doc_function): New function.
8690 (get_doc_string): Move behind get_show_value/get_set_value.
8691
6d6c6b1f
JK
86922011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8693
8694 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8695
68d6df83
MG
86962011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8697
dbab50de 8698 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8699 (xtensa_write_register): Likewise.
8700 (xtensa_hextochar): Add comment and update to match coding conventions.
8701 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8702 (execute_l32e, execute_s32e, execute_code): Update comments.
8703 (xtensa_exception_handler_t): Update to match coding conventions.
8704 (xtensa_insn_kind): Likewise.
8705
85c9d6a6
MS
87062011-03-09 Michael Snyder <msnyder@vmware.com>
8707
8708 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8709
91495617
PA
87102011-03-09 Pedro Alves <pedro@codesourcery.com>
8711
8712 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8713
eb8c0621
TT
87142011-03-09 Tom Tromey <tromey@redhat.com>
8715
8716 * thread.c (restore_selected_frame): Handle frame_level == -1.
8717 (make_cleanup_restore_current_thread): Use
8718 get_selected_frame_if_set.
8719 * frame.h (get_selected_frame_if_set): Declare.
8720 * frame.c (get_selected_frame_if_set): New function.
8721
9f37bbcc
PA
87222011-03-09 Pedro Alves <pedro@codesourcery.com>
8723
8724 * cli/cli-cmds.c (shell_escape): Use lbasename.
8725 * coffread.c (coff_start_symtab): Constify parameter.
8726 (complete_symtab): Constify `name' parameter.
8727 (coff_symtab_read): Constify `filestring' local.
8728 (coff_getfilename): Constify return and `result' local.
8729 Use lbasename.
8730 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8731 * linux-fork.c (info_checkpoints_command): Use lbasename.
8732 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8733 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8734 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8735 * procfs.c (procfs_make_note_section): Use lbasename.
8736 * tui/tui-io.c (printable_part): Constity return and parameter.
8737 Use lbasename.
8738 (print_filename): Constify parameters, and local `s'.
8739 (tui_rl_display_match_list): Constify local `temp'.
8740
f8de3c55
JK
87412011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8742
8743 Revert:
8744 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8745 Fix DWARF-3+ DW_AT_accessibility default assumption.
8746 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8747 cu->header.version >= 3.
8748
d9837b00
YQ
87492011-03-09 Yao Qi <yao@codesourcery.com>
8750
8751 * common/Makefile.in: Remove.
8752 * common/configure: Remove.
8753 * common/configure.ac: Remove.
8754
e637a4f5
YQ
87552011-03-09 Yao Qi <yao@codesourcery.com>
8756
8757 Revert:
8758 2011-02-11 Yao Qi <yao@codesourcery.com>
8759
8760 * common/Makefile.in: Add copyright header.
8761
8762 2011-02-11 Yao Qi <yao@codesourcery.com>
8763
8764 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8765 libcommon.a.
8766 * configure.ac: Add common to sub dir.
8767 * configure: Regenerate.
8768
f976a05d
MG
87692011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8770
8771 * xtensa-tdep.c (call0_ret): New function.
8772 (xtensa_skip_prologue): Speed up analysis.
8773
57041825
MG
87742011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8775
8776 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8777 while executing MI command -data-list-changed-registers.
8778
08b9c608
MG
87792011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8780
8781 * xtensa-tdep.c (xtensa_read_register): New function.
8782 (xtensa_write_register): New function.
8783 (xtensa_find_register_by_name): New function.
8784 (xtensa_windowed_frame_cache): Update comments in type description.
8785 (xtensa_frame_cache): Likewise.
8786 (xtensa_window_interrupt_insn): New function.
8787 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8788 (xtensa_insn_kind): Add new instructions.
8789 (rwx_special_register): New function.
8790 (call0_classify_opcode): Add new instructions to the analysis.
8791 (a0_saved, a7_saved, a11_saved): New variables.
8792 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8793 (execute_l32e): New function.
8794 (execute_s32e): New function.
8795 (xtensa_exception_handler_t): New type.
8796 (execute_code): New function.
8797 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8798 analysis for Xtensa Window Exception handlers.
8799
4d1acb11
MG
88002011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8801
98689b25
MG
8802 * xtensa-tdep.c (TX_PS): New.
8803 (windowing_enabled): Update to count for Call0 ABI.
8804 (xtensa_hextochar): New.
8805 (xtensa_init_reggroups): Make algorithm generic.
8806 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8807
88082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8809
8810 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8811
d3f323f3
MS
88122011-03-08 Michael Snyder <msnyder@vmware.com>
8813
3dcabaa8
MS
8814 * i386-tdep.c (i386_follow_jump): Check return value of
8815 target_read_memory.
8816 (i386_analyze_struct_return): Ditto.
8817 (i386_skip_probe): Ditto.
8818 (i386_match_insn): Ditto.
8819 (i386_skip_noop): Ditto.
8820 (i386_analyze_frame_setup): Ditto.
8821 (i386_analyze_register_saves): Ditto.
8822 (i386_skip_prologue): Ditto.
8823 (i386_skip_main_prologue): Ditto.
8824
13b3fd9b
MS
8825 * target.c (read_whatever_is_readable): Fix memory leak.
8826
d3f323f3
MS
8827 * i386-tdep.c (i386_process_record): Document fall through.
8828
421d5c74
JK
88292011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 Fix DWARF-3+ DW_AT_accessibility default assumption.
8832 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8833 cu->header.version >= 3.
8834
63154eca
PA
88352011-03-08 Pedro Alves <pedro@codesourcery.com>
8836
8837 * remote.c (remote_check_symbols): Skip if the target has no
8838 execution.
8839
f1a507a1
JB
88402011-03-08 Joel Brobecker <brobecker@adacore.com>
8841
8842 * target.c (read_whatever_is_readable): Reformat comment,
8843 with a minor typo fix. Minor reformatting of the code.
8844
36073a92
YQ
88452011-03-08 Yao Qi <yao@codesourcery.com>
8846
8847 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8848 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8849 Use cached result instead of calling displaced_in_arm_mode again.
8850 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8851 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8852 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8853 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8854 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8855 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8856 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8857 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8858 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8859 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8860 (arm_catch_kernel_helper_return): Likewise.
8861 * gdb/arm-tdep.h : Update function declarations.
8862
d3f323f3 88632011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8864
e0e40094
MS
8865 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8866
0b2381f5
MS
8867 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8868
0350914a
MS
8869 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8870
69feea6f
MS
8871 * elfread.c (elf_symtab_read): Stop memory leak.
8872
e6040cbd
MS
8873 * main.c (captured_main): Fix memory leak.
8874
052874e8
AS
88752011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8876
8877 * ada-lang.c (compare_names): Call is_name_suffix with string1
8878 instead of string2.
8879
b11896a5
TT
88802011-03-07 Tom Tromey <tromey@redhat.com>
8881
8882 * xcoffread.c (xcoff_sym_fns): Update.
8883 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8884 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8885 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8886 (symbol_file_add_with_addrs_or_offsets): Likewise.
8887 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8888 * somread.c (som_sym_fns): Update.
8889 * psymtab.h (require_partial_symbols): Declare.
8890 * psymtab.c (require_partial_symbols): New function.
8891 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8892 (ALL_OBJFILE_PSYMTABS): Undef.
8893 (ALL_PSYMTABS): Move from psympriv.h.
8894 (lookup_partial_symtab, find_pc_sect_psymtab)
8895 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8896 (find_last_source_symtab_from_partial)
8897 (forget_cached_source_info_partial)
8898 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8899 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8900 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8901 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8902 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8903 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8904 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8905 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8906 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8907 psymtabs.
8908 * mipsread.c (ecoff_sym_fns): Update.
8909 * machoread.c (macho_sym_fns): Update.
8910 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8911 (read_psyms): New function.
8912 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8913 (elf_sym_fns_lazy_psyms): New global.
8914 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8915 dwarf2_build_psymtabs.
8916 * dbxread.c (aout_sym_fns): Update.
8917 * coffread.c (coff_sym_fns): Update.
8918
fda326dd
TT
89192011-03-07 Tom Tromey <tromey@redhat.com>
8920
8921 * infrun.c (print_exited_reason): Include inferior id and pid in
8922 message.
8923
aeaec162
TT
89242011-03-07 Tom Tromey <tromey@redhat.com>
8925
8926 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8927 parameter.
8928 (target_has_execution_1): Update.
8929 (target_has_execution_current): Declare.
8930 (target_has_execution): Call target_has_execution_current.
8931 (default_child_has_execution): Update.
8932 * target.c (default_child_has_execution): Add 'the_ptid'
8933 parameter.
8934 (target_has_execution_1): Likewise.
8935 (target_has_execution_current): New function.
8936 (add_target): Update.
8937 (init_dummy_target): Update.
8938 * remote-m32r-sdi.c (m32r_has_execution): New function.
8939 (init_m32r_ops): Use it.
8940 * record.c (record_core_has_execution): Now static. Add
8941 'the_ptid' parameter.
8942 * inferior.c (have_live_inferiors): Don't save current thread.
8943 Use target_has_execution_1.
8944
08e14083
YQ
89452011-03-07 Yao Qi <yao@codesourcery.com>
8946
8947 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8948
c05d19c5
JB
89492011-03-07 Joel Brobecker <brobecker@adacore.com>
8950
8951 * elfread.c (elf_symtab_read): Minor reformatting.
8952
3e6ef9e4
JB
89532011-03-07 Joel Brobecker <brobecker@adacore.com>
8954
8955 * objc-lang.c (selectors_info): Minor reformatting.
8956
dbb8534f
JB
89572011-03-07 Joel Brobecker <brobecker@adacore.com>
8958
8959 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8960
dd70cc93
JB
89612011-03-07 Joel Brobecker <brobecker@adacore.com>
8962 Michael Snyder <msnyder@vmware.com>
8963
8964 * ada-valprint.c (ada_val_print_array): Move the declaration of
8965 "byte_order" and "elttype" inside the block where these variables
8966 are actually used. Remove some special handling for the case
8967 where "elttype" and "eltlen" are null. Replace by a comment
8968 and a couple of assertion checks.
8969
b27cf2b3
MS
89702011-03-05 Michael Snyder <msnyder@vmware.com>
8971
8972 * source.c (add_path): Replace semicolon at end of block.
8973 * dwarf2expr.c (execute_stack_op): Ditto.
8974
5387a0c6
MF
89752011-03-05 Mike Frysinger <vapier@gentoo.org>
8976
8977 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8978 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8979 (bfin-*-*): Likewise.
8980
e3aa49af
MS
89812011-03-05 Michael Snyder <msnyder@vmware.com>
8982
82ae4854
MS
8983 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8984 * mdebugread.c (parse_symbol): Ditto.
8985 * parse.c (parse_exp_in_context): Ditto.
8986 * source.c (add_path): Ditto.
8987 * utils.c (gnu_debuglink_crc32): Ditto.
8988 * varobj.c (variable_language): Ditto.
8989
e3aa49af
MS
8990 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8991
154f592e
MS
89922011-03-04 Michael Snyder <msnyder@vmware.com>
8993
da3ecdc6
MS
8994 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8995
9cc89665
MS
8996 * symfile.c (simple_overlay_update): Check for null return value
8997 from lookup_minimal_symbol.
8998
154f592e
MS
8999 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9000
63ffa6ee
TJB
90012011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9002
9003 * eval.c (parse_and_eval_address_1): Remove function.
9004 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9005 instead of parse_and_eval_address_1.
9006 * value.h (parse_and_eval_address_1): Remove prototype.
9007
a17d146e
MS
90082011-03-04 Michael Snyder <msnyder@vmware.com>
9009
9010 * remote.c (putpkt_binary): Document that case stmt falls through.
9011
1a6a67de
TJB
90122011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9013
9014 * breakpointc (print_it_typical): Move NULL check from here...
9015 (print_bp_stop_message): ... to here.
9016
488919c4
MS
90172011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9018
9019 * breakpoint.c (enable_command): Use break instead of continue,
9020 and fill in a missing break.
9021 (disable_command): Ditto.
9022
1e182ce8
UW
90232011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9024
9025 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9026 (terminal_save_ours): Remove misleading comment.
9027 (inflow_inferior_data_cleanup): Free ttystate.
9028 (inflow_inferior_exit): Likewise.
9029 (copy_terminal_info): Copy ttystate.
9030
9031 * serial.c (serial_copy_tty_state): New function.
9032 * serial.h (serial_copy_tty_state): Add prototype.
9033 (struct serial_ops): Add copy_tty_state callback.
9034 * ser-base.c (ser_base_copy_tty_state): New function.
9035 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9036 * ser-go32.c (dos_copy_tty_state): New function.
9037 (dos_ops): Install copy_tty_state callback.
9038 * ser-mingw.c (_initialize_ser_windows): Likewise.
9039 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9040 * ser-unix.c (hardwire_copy_tty_state): New function.
9041 (_initialize_ser_hardwire): Install it.
9042
b2c5f112
MS
90432011-03-04 Michael Snyder <msnyder@vmware.com>
9044
2abae994
MS
9045 * breakpoint.c (create_breakpoint): Add missing break statement.
9046
7f5936f9
MS
9047 Reverting this patch:
9048 * infcall.c (call_function_by_hand): Add break statements for lint.
9049
b2c5f112
MS
9050 Reverting this patch:
9051 * cli/cli-script.c (script_from_file): Add break for lint.
9052
42b1321c
MS
90532011-03-04 Michael Snyder <msnyder@vmware.com>
9054
9055 * solib.c (reload_shared_libraries_1): Close memory leak.
9056
3e2a0cee
TT
90572011-03-03 Tom Tromey <tromey@redhat.com>
9058
9059 PR gdb/12538:
9060 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9061 DW_STRING is NULL.
9062
58397cb7
MS
90632011-03-03 Michael Snyder <msnyder@vmware.com>
9064
2e3fd767
MS
9065 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9066 fields of struct 'st' to zero.
9067
58397cb7
MS
9068 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9069 sal.pspace before calling set_current_source_symtab_and_line.
9070
ced54c8f
YQ
90712011-03-03 Yao Qi <yao@codesourcery.com>
9072
9073 * Makefile.in (configure-common): Remove. Let Makefile
9074 in dir common to rebuild itself.
9075 (common/Makefile): Likewise.
9076
3351ea09
JB
90772011-03-03 Joel Brobecker <brobecker@adacore.com>
9078
9079 * utils.c (parse_escape): Add i18n markup in error message.
9080
bf9f652a
YQ
90812011-03-03 Yao Qi <yao@codesourcery.com>
9082
9083 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9084 ARM_PC_REGNUM.
9085 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9086 (displaced_write_reg, displaced_read_reg): Likewise.
9087 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9088 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9089 (cleanup_branch): Replace magic number 14 and 15 with
9090 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9091
d42de051
MS
90922011-03-02 Michael Snyder <msnyder@vmware.com>
9093
240f9570
MS
9094 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9095
10dd8b54
MS
9096 * cli/cli-script.c (script_from_file): Add break for lint.
9097
b98bd911
MS
9098 * mdebugread.c (parse_partial_symbols): Fix indent.
9099
3494b66d
MS
9100 * target-descriptions.c (tdesc_gdb_type): No need to call
9101 xstrdup, callee saves a copy.
9102
daac021a
MS
9103 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9104
c38d16a7
MS
9105 * infcall.c (call_function_by_hand): Add break statements for lint.
9106
905b671b
MS
9107 * utils.c (parse_escape): Escape the escape char.
9108
f2eb0bc8 9109 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9110 PyList_Append fails.
9111 (gdbpy_inferiors): Error out if build_inferior_list fails.
9112
8c6a60d1
MS
9113 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9114 a function call.
9115
d42de051
MS
9116 * record.c (record_restore): Move printf to before error return.
9117
4db71c0b
YQ
91182011-03-02 Yao Qi <yao@codesourcery.com>
9119
9120 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9121 is_thumb and insn_size.
9122 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9123 on both ARM and Thumb mode.
9124 (arm_process_displaced_insn): Set is_thumb and insn_size.
9125 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9126 (arm_displaced_step_fixup): Likewise.
9127
a9dc8dcc
MS
91282011-03-01 Michael Snyder <msnyder@vmware.com>
9129
53624a93
MS
9130 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9131
77766669
MS
9132 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9133
62d5b8da
MS
9134 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9135
5e9e105f
MS
9136 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9137
dc19db01
MS
9138 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9139 with xmalloc.
9140
5ce64950
MS
9141 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9142 which shadows function parameter.
9143
a0aa2878
MS
9144 * tracepoint.c (create_tsv_from_upload): Superfluous call
9145 to xstrdup. Callee already calls xstrdup.
9146
e325fb69
MS
9147 * linespec.c (decode_line_1): Remove unnecessary null check.
9148
21cbba77
MS
9149 * tracepoint.c (scope_info): Fix mem leak, remove underused
9150 variable.
9151
63360adc
MS
9152 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9153 superfluous null check.
9154
18ea20ac 9155 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9156 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9157
d014929c
MS
9158 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9159
6e9130cf
MS
9160 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9161 be null.
9162
5f01dbc0
MS
9163 * linespec.c (decode_line_1): Check for null before dereference.
9164
d684ab85
MS
9165 * reverse.c (record_restore): Move null-check to before pointer
9166 dereference.
9167
bfffb7e3
MS
9168 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9169
a9dc8dcc
MS
9170 * objc-lang.c (selectors_info): Add explanitory comment.
9171 (classes_info): Ditto.
9172
478fd957
UW
91732011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9174
9175 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9176 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9177 versions of the trampoline. Handle Thumb vs. ARM addresses.
9178 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9179 (arm_linux_init_abi): Install it.
9180 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9181 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9182
0480cefa
MS
91832011-02-28 Michael Snyder <msnyder@vmware.com>
9184
ac50ab3b
MS
9185 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9186 a little bigger, to avoid possibility of an overflow.
9187
f63fbe86
MS
9188 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9189 buffers a little bigger, to avoid possibility of an overflow.
9190
9e91a352
MS
9191 * coffread.c (coff_getfilename): Add check to avoid overflow.
9192
f2eb0bc8 9193 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9194 avoid overflow.
9195 (classes_info): Error out on too long REGEXP.
9196
098ab512
MS
9197 * infrun.c (handle_inferior_event): Remove unused function call.
9198
bcbd1de9
MS
9199 * fork-child.c (fork_inferior): Remove ifdef'd code and
9200 unused variable.
9201
2e456570
MS
9202 * linux-thread-db.c (attach_thread): Discard unused value.
9203
14571dad
MS
9204 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9205
a9cbf802
MS
9206 * remote.c (remote_get_noisy_reply): Discard unused value.
9207 (remote_vcont_resume): Ditto.
9208 (remote_stop_ns): Ditto.
9209
5715d26e
MS
9210 * linespec.c (decode_objc): Delete unused variable.
9211
4a9bca80
MS
9212 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9213
f47fb265
MS
9214 * dwarf2read.c (add_partial_symbol): Discard unused values.
9215 (read_base_type): Delete unused variable.
9216
e81cff30
MS
9217 * dbxread.c (read_dbx_symtab): Discard unused value.
9218
262acaeb
MS
9219 * eval.c (evaluate_subexp_standard): Delete unused variable,
9220 and discard unused values.
9221
df983543
MS
9222 * infcmd.c (_initialize_infcmd): Discard unused values.
9223
89acf84d
MS
9224 * stabsread.c (rs6000_builtin_type): Missing break statement.
9225
ab8b8aca
MS
9226 * dbxread.c (process_one_symbol): Discard unused value.
9227
6b4511ab
MS
9228 * coffread.c (coff_end_symtab): Delete unused variable.
9229
e8e80198
MS
9230 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9231 (dwarf2_add_typedef): Delete unused variable.
9232 (read_namespace): Ditto.
9233 (dwarf_decode_macros): Ditto.
9234
976aa66e
MS
9235 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9236
5b92b49f
MS
9237 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9238
91e8df85
MS
9239 * p-valprint.c (pascal_val_print): Discard unused value.
9240
899500d6
MS
9241 * utils.c (nquery): Call va_end before return;
9242 (yquery): Ditto.
9243 (query): Ditto.
9244
0480cefa
MS
9245 * proc-service.c (ps_plog): Call va_end before return.
9246
fb6a3ed3
TT
92472011-02-28 Tom Tromey <tromey@redhat.com>
9248
9249 * python/python.c (gdbpy_value_cst): New global.
9250 (_initialize_python): Initialize it.
9251 * python/python-internal.h (gdbpy_value_cst): Declare.
9252 * python/py-value.c (convert_value_from_python): Use
9253 gdbpy_value_cst.
9254
c05202a1
MS
92552011-02-28 Michael Snyder <msnyder@vmware.com>
9256
e463f587
MS
9257 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9258
c38eea1a
MS
9259 * breakpoint.c (catch_syscall_completer): Free malloced list.
9260
3ef09ab5
MS
9261 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9262
8f9a01ee
MS
9263 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9264 (lval_func_check_synthetic_pointer): Ditto.
9265 (lval_func_free_closure): Fix use-after-free.
c05202a1 9266
477d0d57
TT
92672011-02-28 Tom Tromey <tromey@redhat.com>
9268
9269 * psymtab.c (expand_partial_symbol_tables): Use
9270 ALL_OBJFILE_PSYMTABS.
9271
20937029
JK
92722011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 * objc-lang.c (selectors_info): Error on too long REGEXP.
9275
907b7f4f
MS
92762011-02-28 Michael Snyder <msnyder@vmware.com>
9277
92e96192
MS
9278 * python/py-param.c (set_parameter_value): Add missing
9279 break statement.
9280
907b7f4f
MS
9281 * linux-record.c (record_linux_system_call): Add missing
9282 break statement.
9283
12c5a436
UW
92842011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9285
9286 * breakpoint.c (print_one_breakpoint_location): Remove unused
9287 argument PRINT_ADDRESS_BITS. Update callers.
9288 (print_one_breakpoint): Likewise.
9289
170b53b2
UW
92902011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9291
9292 * breakpoint.c (wrap_indent_at_field): New function.
9293 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9294 Allocate ui_stream locally instead of using STB argument.
9295 (print_one_breakpoint_location): Update call.
9296 * ui-out.c (ui_out_query_field): New function.
9297 * ui-out.h (ui_out_query_field): Add prototype.
9298
8ab1f94d
JB
92992011-02-28 Joel Brobecker <brobecker@adacore.com>
9300
9301 From Michael Snyder <msnyder@vmware.com>
9302 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9303
7d488639
MS
93042011-02-27 Michael Snyder <msnyder@vmware.com>
9305
ae179fba
MS
9306 * objc-lang.c (selectors_info): Prevent string overrun.
9307
086dbf66
MS
9308 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9309 error in strncpy.
9310
f2eb0bc8 9311 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9312 outer scope.
9313
7d488639
MS
9314 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9315 param with a local variable of the same name.
9316
3bd0f5ef
MS
93172011-02-27 Michael Snyder <msnyder@vmware.com>
9318
9319 * value.c (value_from_history_ref): New function.
9320 * value.h (value_from_history_ref): Export.
9321 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9322 to parse value history references.
9323 * cli/cli-utils.h (get_number_trailer): Update comment.
9324
93252011-02-27 Michael Snyder <msnyder@vmware.com>
9326
9327 * inferior.c (detach_inferior_command): Use get_number_or_range.
9328 (kill_inferior_command): Ditto.
9329 (remove_inferior_command): Ditto.
9330 (initialize_inferiors): Make command names plural.
9331 Update help strings.
9332
766062f6
MS
93332011-02-27 Michael Snyder <msnyder@vmware.com>
9334
9335 * darwin-nat-info.c: Fix comment typo.
9336 * dwarf2expr.h: Ditto.
9337 * fbsd-nat.c: Ditto.
9338 * fbsd-nat.h: Ditto.
9339 * frame-unwind.h: Ditto.
9340 * frame.h: Ditto.
9341 * hppa-hpux-tdep.c: Ditto.
9342 * i386-linux-nat.c: Ditto.
9343 * linux-nat.c: Ditto.
9344 * nbsd-nat.c: Ditto.
9345 * nbsd-nat.h: Ditto.
9346 * ppc-linux-tdep.c: Ditto.
9347 * serial.c: Ditto.
9348 * ui-file.h: Ditto.
9349 * tui/tui-winsource.c: Ditto.
9350
f2c4ead5
MS
93512011-02-26 Michael Snyder <msnyder@vmware.com>
9352
86b887df
MS
9353 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9354
66fd3b1e
MS
9355 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9356
8c814cdd
MS
9357 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9358 with a local variable of the same name.
9359
6d5e094a 9360 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9361 param with a local variable of the same name.
6d5e094a 9362 (i387_supply_xsave): Ditto.
e5b3d7d6 9363
5eee517d
MS
9364 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9365 that it does not shadow a function parameter.
9366
8fbf6b93
MS
9367 * i386-nat.c (i386_length_and_rw_bits): Document that case
9368 statement is meant to fall through.
9369
cb969d61
MS
9370 * expprint.c (dump_subexp_body_standard): Document that case
9371 statement is meant to fall through.
9372
f2c4ead5
MS
9373 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9374 dead if statement. Condition can't be false.
9375
b021a221
MS
93762011-02-25 Michael Snyder <msnyder@vmware.com>
9377
9378 * arm-tdep.c: Fix typos in comments.
9379 * bsd-uthread.c: Ditto.
9380 * completer.c: Ditto.
9381 * corelow.c: Ditto.
9382 * cp-namespace.c: Ditto.
9383 * cp-support.c: Ditto.
9384 * cris-tdep.c: Ditto.
9385 * dbxread.c: Ditto.
9386 * dwarf2read.c: Ditto.
9387 * frame.h: Ditto.
9388 * gdbtypes.h: Ditto.
9389 * inferior.h: Ditto.
9390 * mdebugread.c: Ditto.
9391 * mips-tdep.c: Ditto.
9392 * ppc-linux-nat.c: Ditto.
9393 * ppc-linux-tdep.c: Ditto.
9394 * printcmd.c: Ditto.
9395 * sol-thread.c: Ditto.
9396 * solib-frv.c: Ditto.
9397 * solist.h: Ditto.
9398 * sparc64-tdep.c: Ditto.
9399 * spu-tdep.c: Ditto.
9400 * stabsread.c: Ditto.
9401 * symfile.c: Ditto.
9402 * valops.c: Ditto.
9403 * varobj.c: Ditto.
9404 * vax-nat.c: Ditto.
9405 * python/py-block.c: Ditto.
9406 * python/py-symbol.c: Ditto.
9407 * python/py-symtab.c: Ditto.
9408 * python/py-value.c: Ditto.
9409 * tui/tui-win.c: Ditto.
9410
c82c0b55
MS
94112011-02-25 Michael Snyder <msnyder@vmware.com>
9412
9413 * inferior.c (print_inferior): Accept a string instead of an int
9414 for requested_inferiors, and use get_number_or_range to parse it.
9415 (info_inferiors_command): Pass args string to print_inferior.
9416 (initialize_inferiors): Change help string for info inferiors.
9417 * inferior.h (print_inferior): Export prototype change.
9418
ee00cd23
TT
94192011-02-25 Tom Tromey <tromey@redhat.com>
9420
9421 * common/ax.def (invalid2): Set to 0x31.
9422
0502ed8c
JK
94232011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9424
9425 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9426 L and plongest.
9427 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9428 use L and plongest.
9429 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9430
2c9de912
MS
94312011-02-24 Michael Snyder <msnyder@vmware.com>
9432
9433 * Makefile.in (clean): Make clean should remove generated files
9434 observer.h and observer.inc.
9435
a04b0428
JB
94362011-02-24 Joel Brobecker <brobecker@adacore.com>
9437
9438 Revert the following patch (not approved yet):
9439 2011-02-21 Hui Zhu <teawater@gmail.com>
9440 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9441 * ax-gdb.c (gen_printf_expr_callback): New function.
9442 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9443 * ax-general.c (ax_memcpy): New function.
9444 (ax_print): Handle "printf".
9445 (ax_reqs): Ditto.
9446 * ax.h (ax_memcpy): Forward declare.
9447 * common/ax.def (invalid2): Removed.
9448 (printf): New entry.
9449 * printcmd.c (printcmd.h): New include.
9450 (string_printf): New function.
9451 (ui_printf): Removed.
9452 (printf_command): Remove static. Call string_printf.
9453 (eval_command): Call string_printf.
9454 * printcmd.h: New file.
9455 * tracepoint.c (validate_actionline,
9456 encode_actions_1): handle printf_command.
9457
2b52013f
TT
94582011-02-23 Tom Tromey <tromey@redhat.com>
9459
9460 * ax-general.c (ax_pick): Add missing newline.
9461
e5a67952
MS
94622011-02-23 Michael Snyder <msnyder@vmware.com>
9463
9464 * breakpoint.c (breakpoint_1): Change first argument from an int
9465 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9466 breakpoints rather than just one. Use new function
e5a67952
MS
9467 'number_is_in_list' to implement.
9468 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9469 (watchpoints_info): Ditto.
9470 (tracepoints_info): Ditto.
9471 (maintenance_info_breakpoints): Ditto.
9472 (_initialize_breakpoint): Update help strings to reflect the fact
9473 that these functions can now take more than one argument.
9474 * cli/cli-utils.c (number_is_in_list): New function.
9475 * cli/cli-utils.h (number_is_in_list): Export.
9476
94772011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9478
9479 * memattr.c (mem_enable_command): Use get_number_or_range.
9480 (mem_disable_command): Ditto.
9481 (mem_delete_command): Ditto.
9482 (_initialize_mem): Tweak usage message to reflect multiple
9483 arguments.
9484
6e6fbe60
DE
94852011-02-22 Doug Evans <dje@google.com>
9486
9487 Add gdb.lookup_global_symbol python function.
9488 * NEWS: Add entry.
9489 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9490 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9491 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9492
79b97fa8
TT
94932011-02-22 Tom Tromey <tromey@redhat.com>
9494
9495 * language.c (language_class_name_from_physname): Rename
9496 'curr_language' argument to 'lang'; use in body.
9497
298f437a
MS
94982011-02-22 Michael Snyder <msnyder@vmware.com>
9499
9500 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9501
b7ea3126
PA
95022011-02-22 Pedro Alves <pedro@codesourcery.com>
9503
9504 * frame-unwind.h: Fix comment to mention the this frame, not the
9505 next.
9506
58ee6d60
TT
95072011-02-22 Tom Tromey <tromey@redhat.com>
9508
9509 * symfile.c (auto_solib_limit): Remove.
9510 * symfile.h (auto_solib_limit): Remove.
9511
36238dbc
JB
95122011-02-22 Joel Brobecker <brobecker@adacore.com>
9513
9514 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9515
aea5b279
MS
95162011-02-21 Michael Snyder <msnyder@vmware.com>
9517
9518 * gdbthread.h (print_thread_info): Change prototype.
9519 * thread.c (print_thread_info): Accept char* instead of int for
9520 requested_threads argument. Use new function number_is_in_list
9521 to determine which threads to list.
9522 (info_threads_command): Pass char* to print_thread_info.
9523 * cli/cli-utils.c (number_is_in_list): New function.
9524 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9525 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9526 print_thread_info.
9527 (print_one_inferior): Ditto.
9528 (mi_cmd_list_thread_groups): Ditto.
9529
8caa75ee
JK
95302011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9531
9532 * common/Makefile.in (CFLAGS): New.
9533 (COMPILE): Add $(CFLAGS).
9534
ea666128
TT
95352011-02-21 Tom Tromey <tromey@redhat.com>
9536
9537 * breakpoint.c (catch_syscall_command_1): Fix typo.
9538
e9cafbcc
TT
95392011-02-21 Tom Tromey <tromey@redhat.com>
9540
9541 * reverse.c: Include cli-utils.h.
9542 * printcmd.c: Include cli-utils.h.
9543 (string_printf): Use skip_spaces.
9544 * cli/cli-utils.h: New file.
9545 * cli/cli-utils.c: New file.
9546 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9547 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9548 * breakpoint.h (get_number, get_number_or_range): Move to
9549 cli-utils.h.
9550 * breakpoint.c: Include cli-utils.h.
9551 (get_number_trailer, get_number, get_number_or_range)
9552 (ep_skip_leading_whitespace): Move to cli-utils.c.
9553 (create_breakpoint_sal, find_condition_and_thread)
9554 (decode_static_tracepoint_spec, watch_command_1)
9555 (watch_maybe_just_location, ep_parse_optional_if_clause)
9556 (catch_fork_command_1, catch_exec_command_1)
9557 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9558 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9559 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9560 (HFILES_NO_SRCDIR): Add cli-utils.h.
9561 (cli-utils.o): New target.
9562
f67fd822
PM
95632011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9564
9565 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9566 before calling discard_all_inferiors.
9567
c9def01d
UW
95682011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9569
9570 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9571 (struct builtin_opencl_type): Remove.
9572 (builtin_opencl_type): Change return type to "struct type **".
9573 (lookup_opencl_vector_type): Update caller.
9574 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9575 (build_opencl_types): Install plain array of "struct type *"
9576 instead of "struct builtin_opencl_type".
9577
e3039479
UW
95782011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9579 Ulrich Weigand <uweigand@de.ibm.com>
9580
9581 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9582 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9583 (struct arm_linux_hwbp_cap): New type.
9584 (arm_linux_get_hwbp_cap): New function.
9585 (arm_linux_get_hw_breakpoint_count): Likewise.
9586 (arm_linux_get_hw_watchpoint_count): Likewise.
9587 (arm_linux_can_use_hw_breakpoint): Likewise.
9588 (arm_hwbp_type): New type.
9589 (arm_hwbp_control_t): Likewise.
9590 (struct arm_linux_hw_breakpoint): Likewise.
9591 (struct arm_linux_thread_points): Likewise.
9592 (arm_threads): New global variable.
9593 (arm_linux_find_breakpoints_by_tid): New function.
9594 (arm_hwbp_control_initialize): Likewise.
9595 (arm_hwbp_control_is_enabled): Likewise.
9596 (arm_hwbp_control_disable): Likewise.
9597 (arm_linux_hw_breakpoint_initialize): Likewise.
9598 (arm_linux_get_hwbp_type): Likewise.
9599 (arm_linux_hw_watchpoint_initialize): Likewise.
9600 (arm_linux_hw_breakpoint_equal): Likewise.
9601 (arm_linux_insert_hw_breakpoint1): Likewise.
9602 (arm_linux_remove_hw_breakpoint1): Likewise.
9603 (arm_linux_insert_hw_breakpoint): Likewise.
9604 (arm_linux_remove_hw_breakpoint): Likewise.
9605 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9606 (arm_linux_insert_watchpoint): Likewise.
9607 (arm_linux_remove_watchpoint): Likewise.
9608 (arm_linux_stopped_data_address): Likewise.
9609 (arm_linux_stopped_by_watchpoint): Likewise.
9610 (arm_linux_watchpoint_addr_within_range): Likewise.
9611 (arm_linux_new_thread): Likewise.
9612 (arm_linux_thread_exit): Likewise.
9613 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9614 related target callbacks. Register arm_linux_new_thread and
9615 arm_linux_thread_exit.
9616 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9617 * arm-tdep.c (arm_pc_is_thumb): Make global.
9618 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9619
b5db5dfc
UW
96202011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9621
9622 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9623 per-frame locations while within a function epilogue.
9624
e25b2cfa
PM
96252011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9626
9627 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9628 to GNU coding standards.
9629
4af53f97
PM
96302011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9631
9632 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9633 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9634 (ser_windows_close): Only call CancelIo if function exists.
9635 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9636 to check for existence of CancelIo function in kernel32 DLL.
9637
d0e92d82
HZ
96382011-02-21 Hui Zhu <teawater@gmail.com>
9639
9640 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9641 * ax-gdb.c (gen_printf_expr_callback): New function.
9642 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9643 * ax-general.c (ax_memcpy): New function.
9644 (ax_print): Handle "printf".
9645 (ax_reqs): Ditto.
9646 * ax.h (ax_memcpy): Forward declare.
9647 * common/ax.def (invalid2): Removed.
9648 (printf): New entry.
9649 * printcmd.c (printcmd.h): New include.
9650 (string_printf): New function.
9651 (ui_printf): Removed.
9652 (printf_command): Remove static. Call string_printf.
9653 (eval_command): Call string_printf.
9654 * printcmd.h: New file.
9655 * tracepoint.c (validate_actionline,
9656 encode_actions_1): handle printf_command.
9657
7d357efd
MS
96582011-02-19 Michael Snyder <msnyder@vmware.com>
9659
9660 * reverse.c (delete_one_bookmark): Argument is now bookmark
9661 id rather than pointer to bookmark struct.
9662 (delete_bookmark_command): Use get_number_or_range.
9663 (goto_bookmark_command): Parse with get_number instead of strtoul.
9664 (bookmark_1): New function. Print info for one bookmark.
9665 (bookmarks_info): Use get_number_or_range and bookmark_1.
9666
7a45ebd7
MS
96672011-02-18 Michael Snyder <msnyder@vmware.com>
9668
f2eb0bc8 9669 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9670 get_number_or_range.
65ebfb52 9671 (thread_apply_command): Ditto.
7a45ebd7 9672
94d5e490
TT
96732011-02-18 Tom Tromey <tromey@redhat.com>
9674
9675 * common/ax.def: New file.
9676 * ax.h (enum agent_op): Use ax.def.
9677 * ax-general.c (aop_map): Use ax.def.
9678
c7f96d2b
TT
96792011-02-18 Tom Tromey <tromey@redhat.com>
9680
9681 * ax-general.c (aop_map): Add pick and rot.
9682 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9683 <DW_OP_rot>: Implement.
9684 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9685 (ax_pick): Declare.
9686 * ax-general.c (ax_pick): New function.
9687
66694b75
TT
96882011-02-18 Tom Tromey <tromey@redhat.com>
9689
9690 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9691
eeaafae2
JK
96922011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9693 Tom Tromey <tromey@redhat.com>
9694
9695 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9696 make_symbol_overload_list_block with NULL BLOCK.
9697 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9698
3c3fe74c
PA
96992011-02-18 Pedro Alves <pedro@codesourcery.com>
9700
9701 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9702 * breakpoint.h (get_number_or_range): Declare.
9703 * printcmd.c (ALL_DISPLAYS): Declare.
9704 (delete_display): Reimplement taking a display pointer.
9705 (undisplay_command): Accept a range of displays to delete, using
9706 get_number_or_range.
9707
13163d80
PM
97082011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9709
9710 * c-valprint.c (c_val_print): Add embedded_offset to address
9711 for arrays of unspecified length.
9712 * p-valprint.c (pascal_val_print): Likewise.
9713
b434a28f
YQ
97142011-02-18 Yao Qi <yao@codesourcery.com>
9715
9716 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9717 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9718 (thumb_process_displaced_insn): New.
9719 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9720 call to arm_process_displaced_insn.
9721 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9722
9f6f94ff
TT
97232011-02-17 Tom Tromey <tromey@redhat.com>
9724
9725 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9726 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9727 compile_dwarf_to_ax. No longer static. Call
9728 dwarf2_compile_cfa_to_ax.
9729 (locexpr_tracepoint_var_ref): Update.
9730 (loclist_tracepoint_var_ref): Update.
9731 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9732 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9733 argument; add 'gdbarch' and 'pc'.
9734 (dwarf2_compile_cfa_to_ax): New function.
9735 (dwarf2_frame_cache): Update.
9736
e67ad678
JB
97372011-02-17 Joel Brobecker <brobecker@adacore.com>
9738
9739 * ada-lang.c (ada_type_of_array): Fix the size of the array
9740 in the case of an unconstrained packed array.
9741
946ebb0d
YQ
97422011-02-17 Yao Qi <yao@codesourcery.com>
9743
9744 * common/Makefile.in: Add more targets for make.
9745
1ba1b353
TT
97462011-02-16 Tom Tromey <tromey@redhat.com>
9747
9748 * dwarf2loc.c (unimplemented): Fix typo.
9749
b1bfef65
TT
97502011-02-16 Tom Tromey <tromey@redhat.com>
9751
9752 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9753 (compile_dwarf_to_ax) <default>: Use unimplemented.
9754 <DW_OP_deref>: Update.
9755 (disassemble_dwarf_expression): Update.
9756 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9757 (decode_locdesc): Update.
9758 * dwarf2expr.h (dwarf_stack_op_name): Update.
9759
5f1e6f19
TT
97602011-02-16 Tom Tromey <tromey@redhat.com>
9761
9762 * ax.h (struct aop_map) <name>: Now const.
9763
a0c78a73
PA
97642011-02-16 Tom Tromey <tromey@redhat.com>
9765
9766 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9767 than axs_rvalue.
9768
946ebb0d 97692011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9770
9771 * infrun.c (get_displaced_step_closure_by_addr): New.
9772 * inferior.h: Declare it.
9773 * arm-tdep.c: (arm_pc_is_thumb): Call
9774 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9775 returns non-NULL.
9776
08807d5a
PA
97772011-02-16 Pedro Alves <pedro@codesourcery.com>
9778 Jan Kratochvil <jan.kratochvil@redhat.com>
9779
9780 gdb/
9781 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9782
29976f3f
PA
97832011-02-16 Pedro Alves <pedro@codesourcery.com>
9784 Jan Kratochvil <jan.kratochvil@redhat.com>
9785
9786 * value.c (value_contents_copy_raw): Extend describing comment.
9787 Assert that the destination contents we're overwriting are wholly
9788 available.
fb68ae73 9789 (value_contents_copy): Extend describing comment.
29976f3f 9790
cd24cfaa
PA
97912011-02-16 Pedro Alves <pedro@codesourcery.com>
9792 Jan Kratochvil <jan.kratochvil@redhat.com>
9793
9794 * value.c (value_available_contents_eq): Remove redundant local
9795 variables. Fix available contents comparision.
9796 * value.h (value_available_contents_eq): Extend describing
9797 comment.
9798
60bbf338
YQ
97992011-02-16 Yao Qi <yao@codesourcery.com>
9800
9801 * thread.c (info_threads_command): Add missing i18n markup and remove
9802 trailing newline.
9803
17450429
PP
98042011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9805
9806 * breakpoint.c (longjmp_names): New variable.
9807 (struct breakpoint_objfile_data): New type.
9808 (breakpoint_objfile_key): New variable.
9809 (msym_not_found): New variable.
9810 (msym_not_found_p): New predicate.
9811 (get_breakpoint_objfile_data): New function.
9812 (create_overlay_event_breakpoint): Check per-objfile cache for
9813 symbols first.
9814 (create_longjmp_master_breakpoint): Likewise.
9815 (create_std_terminate_master_breakpoint): Likewise.
9816 (create_exception_master_breakpoint): Likewise.
9817 (_initialize_breakpoint): Register per-objfile data key.
9818
af02033e
PP
98192011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9820
9821 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9822 parameter value.
9823 (create_longjmp_master_breakpoint): Loop over longjmp names.
9824 (create_std_terminate_master_breakpoint): Const-propagate parameter
9825 value.
9826 (update_breakpoints_after_exec): Adjust.
9827 (breakpoint_re_set): Adjust.
9828
60f98dde
MS
98292011-02-15 Michael Snyder <msnyder@vmware.com>
9830
cdf99611
MS
9831 * thread.c (info_threads_command): Process arg as thread id,
9832 or list of thread ids.
9833 (thread_find_command): New command.
9834 (_initialize_thread): Document argument for info threads.
9835 Document 'thread find' command.
9836 * NEWS: Document new command "thread find".
60f98dde 9837
0feedb2c
JK
98382011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9839
9840 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9841 * aclocal.m4: Regenerated with aclocal-1.11.1.
9842 * common/configure: Regenerate with autoconf-2.64.
9843
648cd113
KW
98442011-02-15 Ken Werner <ken.werner@de.ibm.com>
9845
9846 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9847 bool data type to a size of one byte.
9848
5657161f
PA
98492011-02-15 Pedro Alves <pedro@codesourcery.com>
9850 Jan Kratochvil <jan.kratochvil@redhat.com>
9851
9852 * target.c (memory_xfer_live_readonly_partial): Document where to
9853 look for interface description.
9854
494e194e
YQ
98552011-02-15 Yao Qi <yao@codesourcery.com>
9856
9857 PR tdep/12352
9858 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9859 order to store PC value on stack instead of text section.
9860
d9492458
TJB
98612011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9862
9863 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9864 the EFP register set size.
9865 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9866 data from the VMX register.
9867 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9868 and write data from/to the VMX register.
9869
cdf99611
MS
98702011-02-14 Michael Snyder <msnyder@vmware.com>
9871
9872 * command.h (enum command_class): New class 'no_set_class', for
9873 "show" commands without a corresponding "set" command.
9874 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9875 * copying.c (_initialize_copying): Ditto for "show copying" and
9876 "show warranty".
9877 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9878 "show version".
9879 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9880 which there is no corresponding "set" command (eg. "show copying").
9881
424447ee
PA
98822011-02-14 Pedro Alves <pedro@codesourcery.com>
9883 Jan Kratochvil <jan.kratochvil@redhat.com>
9884
9885 * exec.c (section_table_available_memory): Change `len' parameter
9886 type to ULONGEST.
9887 * exec.h (section_table_available_memory): Ditto.
9888 * value.h (read_value_memory): Rename the `offset' parameter to
9889 `embedded_offset'.
9890
c0f61f9c 98912011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9892 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9893
9894 * memrange.c (compare_mem_ranges): Mention sort order in
9895 describing comment.
9896 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9897 * tracepoint.c (traceframe_available_memory): Extend comment to
9898 mention what happens to RESULT when the target does not support
9899 the query.
9900
6bfc80c7
PA
99012011-02-14 Pedro Alves <pedro@codesourcery.com>
9902 Jan Kratochvil <jan.kratochvil@redhat.com>
9903
9904 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9905 range.
9906
e7303042
PA
99072011-02-14 Pedro Alves <pedro@codesourcery.com>
9908
9909 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9910 No longer handle NULL values.
9911
8af8e3bc
PA
99122011-02-14 Pedro Alves <pedro@codesourcery.com>
9913
9914 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9915 * value.c: Include "exceptions.h".
9916 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9917 generic error.
9918 * cp-abi.c: Include gdb_assert.h.
9919 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9920 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9921 errors.
9922 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9923 parameters. No longer returns -1 on error.
9924 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9925 `val' parameters.
9926 * cp-valprint.c: Include exceptions.h.
9927 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9928 the baseclass_offset. Handle unavailable base classes. Use
9929 val_print_invalid_address.
9930 * p-valprint.c: Include exceptions.h.
9931 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9932 when fetching the baseclass_offset. No longer expect
9933 baseclass_offset returning -1. Handle unavailable base classes.
9934 Use val_print_invalid_address.
9935 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9936 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9937 `embedded_offset' and `val' parameters. Adjust.
9938 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9939 parameter, and change its type to gdb_byte pointer. Add
9940 `embedded_offset' and `val' parameters. Adjust. No longer expect
9941 baseclass_offset returning -1.
9942 (value_dynamic_cast): Use value_contents_for_printing rather than
9943 value_contents. Adjust.
9944 (search_struct_field): No longer expect baseclass_offset returning
9945 -1.
9946 (search_struct_method): If reading memory from the target is
9947 necessary, wrap it in a new value to pass to baseclass_offset. No
9948 longer expect baseclass_offset returning -1.
9949 (find_method_list): No longer expect baseclass_offset returning
9950 -1. Use value_contents_for_printing rather than value_contents.
9951 * valprint.c (val_print_invalid_address): New function.
9952 * valprint.h (val_print_invalid_address): Declare.
9953 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9954 and `val' parameters. No longer expect baseclass_offset returning
9955 -1. Adjust.
9956 * gnu-v2-abi.c: Include "exceptions.h".
9957 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9958 parameters. Handle unavailable memory. Recurse through
9959 gnuv2_baseclass_offset directly, rather than through
9960 baseclass_offset. No longer returns -1 on not found, instead
9961 throw an error.
9962 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9963 `val' parameters. Adjust.
9964
1b28d0b3
PA
99652011-02-14 Pedro Alves <pedro@codesourcery.com>
9966
9967 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9968 almost but not quite adjacent.
9969
ec0a52e1
PA
99702011-02-14 Pedro Alves <pedro@codesourcery.com>
9971
9972 * value.h (value_entirely_available): Declare.
9973 * value.c (value_entirely_available): New function.
9974 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9975 real type if the pointer is unavailable.
9976
24e6bcee
PA
99772011-02-14 Pedro Alves <pedro@codesourcery.com>
9978
9979 * valops.c (value_repeat): Use read_value_memory instead of
9980 read_memory.
9981
39d37385
PA
99822011-02-14 Pedro Alves <pedro@codesourcery.com>
9983
9984 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9985 * value.c (value_contents_copy_raw, value_contents_copy): New
9986 functions.
9987 (value_primitive_field): Use value_contents_copy_raw instead of
9988 memcpy.
9989 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9990 memcpy.
9991 (value_array, value_slice): Ditto.
9992 * valarith.c (value_subscripted_rvalue): Use
9993 value_contents_copy_raw instead of memcpy.
9994
a3d34bf4
PA
99952011-02-14 Pedro Alves <pedro@codesourcery.com>
9996
9997 <unavailable> references.
9998
9999 * valops.c (get_value_at): Use value_from_contents_and_address,
10000 avoiding read_memory.
10001
9fc6d940
PA
100022011-02-14 Pedro Alves <pedro@codesourcery.com>
10003
10004 * c-valprint.c (c_val_print): Print a string with unavailable
10005 contents as an array.
10006
5467c6c8
PA
100072011-02-14 Pedro Alves <pedro@codesourcery.com>
10008
10009 * value.h (unpack_bits_as_long): Delete declaration.
10010 (unpack_value_bits_as_long): Declare.
10011 (unpack_value_field_as_long): Declare.
10012 (value_field_bitfield): Declare.
10013 * value.c (unpack_bits_as_long): Rename to...
10014 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10015 value parameters. Return the extracted result in a new output
10016 parameter. If the value contents are unavailable, return false,
10017 otherwise return true.
10018 (unpack_value_bits_as_long): New.
10019 (unpack_field_as_long): Rename to...
10020 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10021 Add embedded_offset and value parameters. Return the extracted
10022 result in a new output parameter. If the value contents are
10023 unavailable, return false, otherwise return true.
10024 (unpack_value_field_as_long): New.
10025 (unpack_field_as_long_1): New.
10026 (unpack_field_as_long): Reimplement as wrapper around
10027 unpack_value_field_as_long_1.
10028 (value_field_bitfield): New function.
10029 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10030 unpack_value_bits_as_long. Mark the value as unavailable, if it
10031 is unavailable.
10032 * jv-valprint.c (java_print_value_fields): Use
10033 value_field_bitfield.
10034 * p-valprint.c (pascal_object_print_value_fields): Use
10035 value_field_bitfield.
10036 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10037
3158c6ed
PA
100382011-02-14 Pedro Alves <pedro@codesourcery.com>
10039
10040 * value.c (get_internalvar_integer): Also return the int value of
10041 TYPE_CODE_INT INTERNALVAR_VALUE values.
10042 (set_internalvar): Don't special case TYPE_CODE_INT.
10043
9fbdca0d
PA
100442011-02-14 Pedro Alves <pedro@codesourcery.com>
10045
10046 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10047 INTERNALVAR_POINTER.
10048 <pointer>: Delete.
10049 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10050 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10051 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10052
c8c1c22f
PA
100532011-02-14 Pedro Alves <pedro@codesourcery.com>
10054
10055 * value.h (value_available_contents_eq): Declare.
10056 * value.c (find_first_range_overlap): New function.
10057 (value_available_contents_eq): New function.
10058 * valprint.c (val_print_array_elements): Use
10059 value_available_contents_eq.
10060 * ada-valprint.c (val_print_packed_array_elements): Use
10061 value_available_contents_eq.
10062 * jv-valprint.c (java_value_print): Use
10063 value_available_contents_eq.
10064
e6e4e701
PA
100652011-02-14 Pedro Alves <pedro@codesourcery.com>
10066
10067 * target.c (target_read_live_memory): New function.
10068 (memory_xfer_live_readonly_partial): New.
10069 (memory_xfer_partial): If reading from a traceframe, fallback to
10070 reading unavailable read-only memory from read-only regions of
10071 live target memory.
10072 * tracepoint.c (disconnect_tracing): Adjust.
10073 (set_current_traceframe): New, factored out from
10074 set_traceframe_number.
10075 (set_traceframe_number): Reimplement to only change the traceframe
10076 number on the GDB side.
10077 (do_restore_current_traceframe_cleanup): Adjust.
10078 (make_cleanup_restore_traceframe_number): New.
10079 (cur_traceframe_number): New global.
10080 (tfile_open): Set cur_traceframe_number to no traceframe.
10081 (set_tfile_traceframe): New function.
10082 (tfile_trace_find): If looking up a traceframe using any method
10083 other than by number, make sure the current tfile traceframe
10084 matches gdb's current traceframe. Update the current tfile
10085 traceframe if the lookup succeeded.
10086 (tfile_fetch_registers, tfile_xfer_partial)
10087 (tfile_get_trace_state_variable_value): Make sure the remote
10088 traceframe matches gdb's current traceframe.
10089 * remote.c (remote_traceframe_number): New global.
10090 (remote_open_1): Set it to -1.
10091 (set_remote_traceframe): New function.
10092 (remote_fetch_registers, remote_store_registers)
10093 (remote_xfer_memory, remote_xfer_partial)
10094 (remote_get_trace_state_variable_value): Make sure the remote
10095 traceframe matches gdb's current traceframe.
10096 (remote_trace_find): If looking up a traceframe using any method
10097 other than by number, make sure the current remote traceframe
10098 matches gdb's current traceframe. Update the current remote
10099 traceframe if the lookup succeeded.
10100 * infrun.c (fetch_inferior_event): Adjust.
10101 * tracepoint.h (set_current_traceframe): Declare.
10102 (get_traceframe_number, set_traceframe_number): Add describing
10103 comments.
10104
e6ca34fc
PA
101052011-02-14 Pedro Alves <pedro@codesourcery.com>
10106
10107 Mark pieces of values as unavailable if the corresponding memory
10108 is unavailable.
10109
10110 * valops.c: Include tracepoint.h.
10111 (value_fetch_lazy): Use read_value_memory.
10112 (read_value_memory): New.
10113 * value.h (read_value_memory): Declare.
10114 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10115 * exec.c (section_table_available_memory): New function.
10116 * exec.h (section_table_available_memory): Declare.
10117
2a7498d8
PA
101182011-02-14 Pedro Alves <pedro@codesourcery.com>
10119
10120 * Makefile.in (SFILES): Add memrange.c.
10121 (HFILES_NO_SRCDIR): Add memrange.h.
10122 (COMMON_OBS): Add memrange.o.
10123 * memrange.c: New file.
10124 * memrange.h: New file.
10125 * tracepoint.c: Include memrange.h.
10126 (struct mem_range): Delete.
10127 (mem_range_s): Delete.
10128 (traceframe_available_memory): New function.
10129 * tracepoint.h (traceframe_available_memory): Declare.
10130
b3b9301e
PA
101312011-02-14 Pedro Alves <pedro@codesourcery.com>
10132
10133 * target.h (struct traceframe_info): Forward declare.
10134 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10135 (struct target_ops) <to_traceframe_info>: New field.
10136 (target_traceframe_info): New.
10137 * target.c (update_current_target): Inherit and default
10138 to_traceframe_info.
10139 * remote.c (PACKET_qXfer_traceframe_info): New.
10140 (remote_protocol_features): Register qXfer:traceframe-info:read.
10141 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10142 (remote_traceframe_info): New.
10143 (init_remote_ops): Install it.
10144 (_initialize_remote): Install "set/show remote traceframe-info"
10145 commands.
10146 * tracepoint.h (parse_traceframe_info): Declare.
10147 * tracepoint.c (struct mem_range): New.
10148 (mem_range_s): New typedef.
10149 (struct traceframe_info): New.
10150 (traceframe_info): New global.
10151 (free_traceframe_info): New function.
10152 (clear_traceframe_info): New function.
10153 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10154 info.
10155 (build_traceframe_info): New function.
10156 (tfile_traceframe_info): New function.
10157 (init_tfile_ops): Install tfile_traceframe_info.
10158 (traceframe_info_start_memory, free_result): New functions.
10159 (memory_attributes, traceframe_info_elements): New globals.
10160 (parse_traceframe_info, get_traceframe_info): New functions.
10161 * features/traceframe-info.dtd: New file.
10162 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10163
4e07d55f
PA
101642011-02-14 Pedro Alves <pedro@codesourcery.com>
10165
10166 Base support for <unavailable> value contents.
10167
4e07d55f
PA
10168 * value.h (value_bytes_available): Declare.
10169 (mark_value_bytes_unavailable): Declare.
10170 * value.c (struct range): New struct.
10171 (range_s): New typedef.
10172 (ranges_overlap): New function.
10173 (range_lessthan): New function.
10174 (ranges_contain_p): New function.
10175 (struct value) <unavailable>: New field.
10176 (value_bytes_available): New function.
10177 (mark_value_bytes_unavailable): New function.
10178 (require_not_optimized_out): Constify parameter.
10179 (require_available): New function.
10180 (value_contents_all, value_contents): Require all bytes be
10181 available.
10182 (value_free): Free `unavailable'.
10183 (value_copy): Copy `unavailable'.
10184 * valprint.h (val_print_unavailable): Declare.
10185 * valprint.c (valprint_check_validity): Rename `offset' parameter
10186 to `embedded_offset'. If printing a scalar, check whether the
10187 value chunk is available.
10188 (val_print_unavailable): New.
10189 (val_print_scalar_formatted): Check whether the value is
10190 available.
10191 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10192 pretty-printing unavailable values.
10193
bc9a5551
JK
101942011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10195
10196 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10197 * c-typeprint.c (c_type_print_args): Update the function comment. New
10198 variable param_type, initialize it. Remove const/volatile qualifiers
10199 for language_cplus and !show_artificial. Use param_type.
10200
93b55aa1
JK
102012011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10202
10203 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10204 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10205 * symtab.h (struct symtab) <next>: Comment extension.
10206
181d9476
YQ
102072011-02-12 Yao Qi <yao@codesourcery.com>
10208
10209 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10210
b708a5c7
JK
102112011-02-11 Yao Qi <yao@codesourcery.com>
10212
10213 * common/Makefile.in: Add copyright header.
10214
c5187ac6
PA
102152011-02-11 Pedro Alves <pedro@codesourcery.com>
10216
10217 * infrun.c (proceed): Move switching out and in of tfind mode from
10218 here ...
10219 (fetch_inferior_event): ... to here.
10220
4f3e6fb7
YQ
102212011-02-11 Yao Qi <yao@codesourcery.com>
10222
10223 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10224 libcommon.a.
10225 * configure.ac: Add common to sub dir.
10226 * configure: Regenerate.
10227
b708a5c7
JK
102282011-02-11 Yao Qi <yao@codesourcery.com>
10229
10230 Build libcommon.a.
10231
10232 * common/Makefile.in: New.
10233 * common/configure.ac: New.
10234 * common/aclocal.m4: New.
10235 * common/configure: Generate.
10236
2287cc7e
PA
102372011-02-10 Pedro Alves <pedro@codesourcery.com>
10238
10239 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10240 side of the parenthesis.
10241
10242 Merge from GCC:
10243 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10244 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10245
fd62cb89
MS
102462011-02-08 Michael Snyder <msnyder@vmware.com>
10247
10248 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10249
56d2815c
JK
102502011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10251
10252 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10253 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10254 psubd and paddd.
10255
4f7d61a8
JK
102562011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10257
10258 PR 12361.
10259 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10260 phsubsw.
10261 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10262 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10263
54fcddd0
UW
102642011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10265
10266 * dwarf2read.c (read_subroutine_type): Set special calling
10267 convention flag for functions compiled by IBM XL C for OpenCL.
10268 * ppc-sysv-tdep.c: Include "dwarf2.h"
10269 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10270 calling convention.
10271 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10272 IBM OpenCL vector types calling convention.
10273 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10274 (ppc_sysv_abi_broken_return_value): Likewise.
10275 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10276 types calling convention.
10277 (ppc64_sysv_abi_return_value): Likewise.
10278 * spu-tdep.c: Include "dwarf2.h"
10279 (spu_return_value): Implement IBM OpenCL vector types calling
10280 convention.
10281
d6dafb7c
UW
102822011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10283
10284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10285 correct ABI for AltiVec vector arguments.
10286
32b72a42
PA
102872011-02-07 Pedro Alves <pedro@codesourcery.com>
10288
10289 * valprint.c (val_print): Extend comment.
10290 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10291 interface explanation to val_print.
10292 (ada_val_print_array): Adjust comment to current interface.
10293 (print_field_values): Adjust comment to current interface.
10294 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10295 explanation to val_print.
10296 * f-valprint.c (f_val_print): Ditto.
10297 * jv-valprint.c (java_val_print): Ditto.
10298 * m2-valprint.c (m2_val_print): Ditto.
10299 * p-valprint.c (pascal_val_print): Ditto.
10300
9998af43
TJB
103012011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10302
10303 * breakpoint.c (parse_breakpoint_sals): Fix description.
10304
505500db 103052011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10306 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10307
10308 * python/py-inferior.c (python_on_normal_stop): New function.
10309 (python_on_resume): New function.
10310 (python_inferior_exit): New function.
10311 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10312 inferior_exit observers.
10313 * python/py-evtregistry.c: New file.
10314 * python/py-threadevent.c : New file.
10315 * python/py-event.c: New file.
10316 * python/py-evts.c: New file.
10317 * python/py-continueevent.c: New file.
10318 * python/py-bpevent.c: New file.
10319 * python/py-signalevent.c: New file.
10320 * python/py-exetiedevent.c: New file.
10321 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10322 Move struct breakpoint_object from here...
10323 * python/python-internal.h: ... to here.
10324 * python/py-event.h: New file.
10325 * python/py-events.h: New file.
10326 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10327 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10328 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10329 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10330 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10331 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10332 Add build rules for all the above.
10333
9e0ac564
TT
103342011-02-04 Tom Tromey <tromey@redhat.com>
10335
10336 * dwarf2read.c (dwarf2_section_empty_p): New function.
10337 (dwarf2_read_section): Use dwarf2_section_empty_p.
10338 (dwarf2_section_size): New function.
10339 (dwarf2_get_section_info): Unconditionally read section.
10340 (dwarf2_read_index): Use dwarf2_section_empty_p.
10341 (partial_read_comp_unit_head): Use dwarf2_section_size.
10342 (dwarf2_symbol_mark_computed): Likewise.
10343
eee5b35e
DD
103442011-02-04 David Daney <ddaney@caviumnetworks.com>
10345
10346 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10347
385203ed
DD
103482011-02-04 David Daney <ddaney@caviumnetworks.com>
10349
10350 * mips-linux-tdep.c: Include xml-syscall.h.
10351 (mips_linux_get_syscall_number): New function.
10352 (mips_linux_init_abi): Add calls to
10353 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10354 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10355 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10356 * syscalls/mips-n32-linux.xml: New file.
10357 * syscalls/mips-n64-linux.xml: New file.
10358 * syscalls/mips-o32-linux.xml: New file.
10359
9277c30c
UW
103602011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10361
10362 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10363 Complain about inverted range entries.
10364 (dwarf2_record_block_ranges): Likewise.
10365
a3be7890
TJB
103662011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10367
10368 Fix some typos.
10369 * breakpoint.c (update_watchpoint): Fix name of the
10370 update_global_location_list function.
10371 (print_one_breakpoint): Fix typo.
10372 (_initialize_breakpoint): Remove extra space in hbreak help
10373 string.
10374 * breakpoint.h (struct bp_location) <length>: Fix field
10375 description.
10376
041274d8
PA
103772011-02-04 Pedro Alves <pedro@codesourcery.com>
10378
10379 * regcache.c (registers_changed_ptid): Don't explictly always
10380 clear `current_regcache'. Only clear current_thread_ptid and
10381 current_thread_arch when PTID matches. Only reinit the frame
10382 cache if PTID matches the current inferior_ptid. Move alloca(0)
10383 call to ...
10384 (registers_changed): ... here.
10385
c1c2ab58
UW
103862011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10387
10388 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10389 starts with __stack_chk_guard as stack guard symbol.
10390
9011945e
AB
103912011-02-03 Andrew Burgess <aburgess@broadcom.com>
10392
10393 * disasm.c (compare_lines): Handle the end of sequence markers
10394 within the line table to better support disassembling over
10395 compilation unit boundaries.
10396
e0634ccf
UW
103972011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10398
10399 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10400 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10401 implementation even if no symbols are available.
10402 (thumb_analyze_prologue): Update call to skip_prologue_function.
10403 (arm_analyze_prologue): Likewise.
10404
0e9e9abd
UW
104052011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10406
10407 * arm-tdep.c: Include "observer.h".
10408 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10409 (arm_exidx_data_key): New static variable.
10410 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10411 (struct arm_exidx_data): Likewise.
10412 (arm_exidx_data_free): New function.
10413 (arm_compare_exidx_entries): Likewise.
10414 (arm_obj_section_from_vma): Likewise.
10415 (arm_exidx_new_objfile): Likewise.
10416 (arm_find_exidx_entry): Likewise.
10417 (arm_exidx_fill_cache): Likewise.
10418 (arm_exidx_unwind_sniffer): Likewise.
10419 (arm_exidx_unwind): New global variable.
10420 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10421 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10422 observer. Register arm_exidx_data_key as objfile data.
10423
2e9e421f
UW
104242011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10425
10426 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10427 due to accessing uninitialized variable. Fix indentation.
10428
580688f3
PA
104292011-02-02 Pedro Alves <pedro@codesourcery.com>
10430
10431 * c-valprint.c (c_value_print): When doing virtual base pointer
10432 adjustment, create a new value with adjusted contents rather than
10433 changing the contents of the value being printed (and getting it
10434 wrong).
10435
3d2c1d41
PA
104362011-02-02 Pedro Alves <pedro@codesourcery.com>
10437
10438 * xml-support.c (xml_find_attribute): New.
10439 (xinclude_start_include): Use it.
10440 * xml-support.h (xml_find_attribute): Declare.
10441 * memory-map.c (memory_map_start_memory)
10442 (memory_map_start_property): Use xml_find_attribute.
10443 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10444 xml_find_attribute.
10445 * remote.c (start_thread): Use xml_find_attribute.
10446 * solib-target.c (library_list_start_segment)
10447 (library_list_start_section, library_list_start_library)
10448 (library_list_start_list): Use xml_find_attribute.
10449 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10450 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10451 (tdesc_start_field): Use xml_find_attribute.
10452
0af3e2db
UW
104532011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10454
10455 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10456 (BUILD_OCL_VTYPES): Update.
10457
c1039e3c
JB
104582011-02-02 Joel Brobecker <brobecker@adacore.com>
10459
10460 * configure.ac: Work around non-GNU sed limitation when computing
10461 python version number.
10462 * configure: Regenerate.
10463
600ea1be
JK
104642011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10465
10466 Fix debug printing of TYPE_INSTANCE.
10467 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10468 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10469
56c12414
JK
104702011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10471
10472 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10473 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10474 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10475 * ada-operator.inc: Rename the file to ...
10476 * ada-operator.def: ... here, wrap all the entries by macro OP.
10477 * expprint.c (op_name_standard): Remove all the entries. Include
10478 "std-operator.def" instead.
10479 * expression.h (enum exp_opcode): Include "std-operator.def" and
10480 "ada-operator.def". Move all the entries ...
10481 * std-operator.def: ... here, wrap all the entries by macro OP.
10482
c52b559d
PP
104832011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10484
10485 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10486 * breakpoint.c (remove_jit_event_breakpoints): New function.
10487 * jit.c (jit_descriptor_addr): Delete.
10488 (registering_code): Delete.
10489 (clear_int): Delete.
10490 (jit_inferior_data): New variable.
10491 (struct jit_inferior_data): New type.
10492 (get_jit_inferior_data): New function.
10493 (jit_inferior_data_cleanup): New function.
10494 (jit_read_descriptor): Adjust.
10495 (jit_register_code): Adjust.
10496 (jit_breakpoint_re_set_internal): New function; move code here ...
10497 (jit_inferior_init): ... from here.
10498 (jit_breakpoint_re_set): Adjust.
10499 (jit_reset_inferior_data_and_breakpoints): New function.
10500 (jit_inferior_created_observer): Adjust.
10501 (jit_inferior_exit_hook): Adjust.
10502 (jit_executable_changed_observer): New function.
10503 (jit_event_handler): Adjust.
10504 (_initialize_jit): Adjust.
10505
e839132d
MS
105062011-01-31 Michael Snyder <msnyder@vmware.com>
10507
10508 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10509 line.
10510
47a80e90
TT
105112011-01-31 Tom Tromey <tromey@redhat.com>
10512
10513 PR python/12216:
10514 * python/python.c (execute_gdb_command): Call
10515 prevent_dont_repeat.
10516 * top.c (suppress_dont_repeat): New global.
10517 (dont_repeat): Use it.
10518 (prevent_dont_repeat): New function.
10519 * command.h (prevent_dont_repeat): Declare.
10520
45a43567
TT
105212011-01-31 Tom Tromey <tromey@redhat.com>
10522
10523 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10524 * python/py-breakpoint.c (bppy_set_silent): Use
10525 breakpoint_set_silent.
10526 (bppy_set_thread): Use breakpoint_set_thread.
10527 (bppy_set_task): Use breakpoint_set_task.
10528 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10529 (breakpoint_set_task): Declare.
10530 (make_breakpoint_silent): Remove.
10531 * breakpoint.c (breakpoint_set_silent): New function.
10532 (breakpoint_set_thread): Likewise.
10533 (breakpoint_set_task): Likewise.
10534 (make_breakpoint_silent): Remove.
10535
09d682a4
TT
105362011-01-31 Tom Tromey <tromey@redhat.com>
10537
10538 * breakpoint.h (user_breakpoint_p): Declare.
10539 * breakpoint.c (user_breakpoint_p): New function.
10540 (breakpoint_1): Use it.
10541 (save_breakpoints): Likewise.
10542
9c4ea6c5
JB
105432011-01-31 Joel Brobecker <brobecker@adacore.com>
10544
10545 * configure.ac: Add handling of Python distribution on Windows.
10546 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10547 sysconfig variables are not defined, then do not use them.
10548 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10549 instead. On Windows, return all paths using forward-slashes
10550 rather than backslashes.
10551
ac534cba
JB
105522011-01-31 Joel Brobecker <brobecker@adacore.com>
10553
10554 * configure.ac: Remove fallback behavior for building
10555 against Python. Remove tweaking of Python include path.
10556 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10557 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10558 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10559 Always restore CPPFLAGS and LIBS after linking test.
10560 * configure: Regenerated.
10561 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10562 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10563 * python/python-internal.h: Adjust includes of Python .h files.
10564
c2f0d045
JB
105652011-01-31 Joel Brobecker <brobecker@adacore.com>
10566
10567 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10568 in error message.
10569
6b0c4c1f
JB
105702011-01-31 Joel Brobecker <brobecker@adacore.com>
10571
10572 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10573 value test.
10574
672c9795
YQ
105752011-01-31 Yao Qi <yao@codesourcery.com>
10576
10577 * arm-linux-nat.c: Update calls to regcache_register_status
10578 instead of regcache_valid_p.
10579 * aix-thread.c: Likewise.
10580 * i386gnu-nat.c: Likewise.
10581
80b23b6a
JK
105822011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10583
10584 Fix crash.
10585 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10586 touching TYPE_FIELD_ARTIFICIAL.
10587
4cd712bd
RE
105882011-01-28 Richard Earnshaw <rearnsha@arm.com>
10589
10590 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10591 Committers.
10592
ffd5ec24
PA
105932011-01-28 Pedro Alves <pedro@codesourcery.com>
10594
10595 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10596 selected, don't try iterating over the traceframe's blocks.
10597 (tfile_has_stack): If there's no traceframe selected, then there's
10598 no stack.
10599 (tfile_has_registers): If there's no traceframe selected, then
10600 there's no registers.
10601
e8c9e0a1
PA
106022011-01-28 Pedro Alves <pedro@codesourcery.com>
10603
10604 * target.c (memory_xfer_partial): No need to restore shadows if we
10605 haven't read anything.
10606
de15c4ab
PA
106072011-01-28 Pedro Alves <pedro@codesourcery.com>
10608
10609 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10610 and val_print_scalar_formatted.
10611
9f41c731
PA
106122011-01-27 Pedro Alves <pedro@codesourcery.com>
10613
10614 * tracepoint.c (tfile_read): New.
10615 (tfile_open): Use it.
10616 (tfile_get_traceframe_address): Use it.
10617 (tfile_trace_find): Use it.
10618 (walk_blocks_callback_func): New typedef.
10619 (match_blocktype): New function.
10620 (traceframe_walk_blocks): New function.
10621 (traceframe_find_block_type): New function.
10622 (tfile_fetch_registers, tfile_xfer_partial)
10623 (tfile_get_trace_state_variable_value): Use
10624 traceframe_find_block_type and tfile_read.
10625
cdefc55d
KB
106262011-01-26 Kevin Buettner <kevinb@redhat.com>
10627
10628 * remote-mips.c: Add internationalization mark ups. Remove
10629 trailing \n from already marked up strings.
10630
a81766d8
TT
106312011-01-26 Tom Tromey <tromey@redhat.com>
10632
10633 * python/py-prettyprint.c (print_string_repr): Clear
10634 'addressprint' option when calling val_print_string.
10635 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10636 option when calling val_print_string.
10637
74aedc46
TT
106382011-01-26 Tom Tromey <tromey@redhat.com>
10639
10640 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10641 GDB_PY_LL_ARG.
10642 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10643 macros.
10644 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10645 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10646 (gdb_py_long_as_ulongest): New defines.
10647 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10648 (gdb_py_int_as_long): Declare.
10649 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10650 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10651 (valpy_long): Add comment.
10652 * python/py-utils.c (get_addr_from_python): Use
10653 gdb_py_long_as_ulongest. Handle overflow properly.
10654 (gdb_py_object_from_longest): New function.
10655 (gdb_py_object_from_ulongest): Likewise.
10656 (gdb_py_int_as_long): Likewise.
10657 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10658 * python/py-symtab.c (salpy_get_pc): Use
10659 gdb_py_long_from_ulongest.
10660 (salpy_get_line): Use PyInt_FromLong.
10661 * python/py-param.c (set_parameter_value): Use
10662 gdb_py_int_as_long.
10663 * python/py-lazy-string.c (stpy_get_address): Use
10664 gdb_py_long_from_ulongest.
10665 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10666 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10667 * python/py-breakpoint.c (bppy_set_thread): Use
10668 gdb_py_int_as_long.
10669 (bppy_set_task): Likewise.
10670 (bppy_set_ignore_count): Likewise.
10671 (bppy_set_hit_count): Likewise.
10672 * python/py-block.c (blpy_get_start): Use
10673 gdb_py_object_from_ulongest.
10674 (blpy_get_end): Likewise.
10675 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10676
e4f6d2ec
TJB
106772011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10678
10679 PR/symtab 11766:
10680 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10681 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10682 equality test for objfile, initialize addr_low if needed.
10683
b30aa278
PA
106842011-01-25 Pedro Alves <pedro@codesourcery.com>
10685
10686 * tui/tui-regs.c (tui_register_format): Remove dead code.
10687
ab2188aa
PA
106882011-01-25 Pedro Alves <pedro@codesourcery.com>
10689
10690 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10691 instead of print_scalar_formatted.
10692 (print_scalar_formatted): Don't handle 's' format strings here,
10693 and add an assertion that we never see such format here.
10694 * valprint.h (val_print_scalar_formatted): Declare.
10695 * valprint.c (val_print_scalar_formatted): New.
10696 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10697 instead of print_scalar_formatted.
10698 * jv-valprint.c (java_val_print): Ditto.
10699 * p-valprint.c (pascal_val_print): Ditto.
10700 * ada-valprint.c (ada_val_print_1): Ditto.
10701 * f-valprint.c (f_val_print): Ditto.
10702 * infcmd.c (registers_info): Ditto.
10703 * m2-valprint.c (m2_val_print): Ditto.
10704
66d61a4c
PA
107052011-01-25 Pedro Alves <pedro@codesourcery.com>
10706
10707 * m2-valprint.c (print_unbounded_array): Pass
10708 value_contents_for_printing rather than value_contents, to
10709 m2_print_array_contents. Also pass in the value.
10710
831adc1f
JK
107112011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10712
10713 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10714 (save_gdb_index_command): Switch to .gdb_index version 4.
10715
20622269
PA
107162011-01-25 Pedro Alves <pedro@codesourcery.com>
10717
10718 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10719 than frame_register, and always pass a valid value to val_print.
10720
585fdaa1
PA
107212011-01-25 Pedro Alves <pedro@codesourcery.com>
10722
10723 Centralize printing "<optimized out>".
10724
10725 * valprint.h (val_print_optimized_out): Declare.
10726 * cp-valprint.c (cp_print_value_fields): Use
10727 val_print_optimized_out.
10728 * jv-valprint.c (java_print_value_fields): Ditto.
10729 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10730 * printcmd.c (print_formatted): Ditto.
10731 * valprint.c (valprint_check_validity): Ditto.
10732 (value_check_printable): Ditto.
10733 (val_print_optimized_out): New.
10734
29ec5263
PA
107352011-01-25 Pedro Alves <pedro@codesourcery.com>
10736
10737 * infcmd.c (default_print_registers_info): Allocate values so to
10738 never pass a NULL value to val_print.
10739
de4127a3
PA
107402011-01-25 Pedro Alves <pedro@codesourcery.com>
10741
10742 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10743 boolean. Make sure to always pass a value that matches the
10744 contents buffer to callees. Preserve `address' for following
10745 iterations.
10746 * value.c (value_contents_for_printing_const): New.
10747 (value_address): Constify value argument.
10748 * value.h (value_contents_for_printing_const): Declare.
10749 (value_address): Constify value argument.
10750
ee99023e
PA
107512011-01-25 Pedro Alves <pedro@codesourcery.com>
10752
10753 * regcache.c (struct regcache_descr): Rename
10754 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10755 and sizeof_cooked_register_valid_p to
10756 sizeof_cooked_register_status.
10757 (init_regcache_descr): Adjust.
10758 (struct regcache): Rename register_valid_p field to
10759 register_status.
10760 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10761 (do_cooked_read): Adjust.
10762 (regcache_valid_p): Rename to ...
10763 (regcache_register_status): ... this. Adjust.
10764 (regcache_invalidate): Adjust.
10765 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10766 Adjust.
10767 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10768 as unavailable, not valid.
10769 (regcache_dump): Adjust.
10770 * regcache.h (enum register_status): New.
10771 (regcache_register_status): Declare.
10772 (regcache_invalidate): Delete declaration.
10773 * corelow.c (get_core_registers): Adjust.
10774 * tracepoint.c (tfile_fetch_registers): Adjust.
10775 * trad-frame.c (REG_VALUE): Rename to ...
10776 (TF_REG_VALUE): ... this.
10777 (REG_UNKNOWN): Rename to ...
10778 (TF_REG_UNKNOWN): ... this.
10779 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10780 * mi/mi-main.c (register_changed_p): Adjust.
10781
99e42fd8
PA
107822011-01-25 Pedro Alves <pedro@codesourcery.com>
10783
10784 * regcache.c (struct regcache_descr): Remove outdated comment.
10785 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10786 overallocate hack.
10787 (regcache_xmalloc): Rename to ...
10788 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10789 Allocate the regcache type accordingly.
10790 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10791 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10792 cooked registers, not raw.
10793 (regcache_dup_no_passthrough): Delete.
10794 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10795 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10796 mention obsolete write_register_bytes.
10797 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10798
f7605bc2
PA
107992011-01-25 Pedro Alves <pedro@codesourcery.com>
10800
10801 Stop remote_read_bytes from handling partial reads itself.
10802
10803 * remote-fileio.c: Include target.h.
10804 (remote_fileio_write_bytes): Delete.
10805 (remote_fileio_func_open, remote_fileio_func_write)
10806 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10807 target_read_memory.
10808 (remote_fileio_func_stat): Use target_read_memory and
10809 target_write_memory.
10810 (remote_fileio_func_gettimeofday): Use target_write_memory.
10811 (remote_fileio_func_system): Use target_read_memory.
10812 * remote.c (remote_write_bytes): Make it static.
10813 (remote_read_bytes): Don't handle partial reads here.
10814 * remote.h (remote_read_bytes): Delete declaration.
10815
efc0eabd
PA
108162011-01-25 Pedro Alves <pedro@codesourcery.com>
10817
10818 Simplify XML parsing a bit.
10819
10820 * xml-support.h (gdb_xml_parse_quick): Declare.
10821 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10822 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10823 parameter.
10824 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10825 gdb_xml_create_parser_and_cleanup_1.
10826 (gdb_xml_parse_quick): New.
10827 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10828 * osdata.c (osdata_parse): Ditto.
10829 * remote.c (remote_threads_info): Ditto.
10830 * solib-target.c (solib_target_parse_libraries): Ditto.
10831 * xml-syscall.c (syscall_parse_xml): Ditto.
10832 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10833
314d366a
KB
108342011-01-24 Kevin Buettner <kevinb@redhat.com>
10835
10836 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10837 with remote-mips.o added to gdb_target_obs.
10838 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10839
a491d753
PA
108402011-01-24 Pedro Alves <pedro@codesourcery.com>
10841
10842 * ada-valprint.c (val_print_packed_array_elements): Pass the
10843 correct struct value to val_print.
10844 (ada_val_print_1): Ditto.
10845
490f124f
PA
108462011-01-24 Pedro Alves <pedro@codesourcery.com>
10847
10848 Don't lose embedded_offset in printing routines throughout.
10849
10850 * valprint.h (val_print_array_elements): Change prototype.
10851 * valprint.c (val_print_array_elements): Add `embedded_offset'
10852 parameter, and adjust to pass it down to val_print, while passing
10853 `valaddr' or `address' unmodified. Take embedded_offset into
10854 account when checking repetitions.
10855 * c-valprint.c (c_val_print): Pass embedded_offset to
10856 val_print_array_elements instead of adjusting `valaddr' and
10857 `address'.
10858 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10859 embedded_offset to val_print_array_elements instead of adjusting
10860 `valaddr'.
10861 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10862 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10863 val_print_array_elements and pascal_object_print_value_fields
10864 instead of adjusting `valaddr'.
10865 (pascal_object_print_value_fields): Add `offset' parameter, and
10866 adjust to use it.
10867 (pascal_object_print_value): Add `offset' parameter, and adjust to
10868 use it.
10869 (pascal_object_print_static_field): Use
10870 value_contents_for_printing/value_embedded_offset, rather than
10871 value_contents.
10872 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10873 parameter, and adjust to use it. Use
10874 value_contents_for_printing/value_embedded_offset, rather than
10875 value_contents.
10876 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10877 (ada_val_print_array): Add `offset' parameter, and adjust to use
10878 it.
10879 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10880 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10881 Instead work with offsets. Use
10882 value_contents_for_printing/value_embedded_offset, rather than
10883 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10884 and use value_from_pointer to extract a target pointer, rather
10885 than value_from_longest.
10886 (print_variant_part): Add `offset' parameter. Replace
10887 `outer_valaddr' parameter by a new `outer_offset' parameter.
10888 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10889 (ada_value_print): Use
10890 value_contents_for_printing/value_embedded_offset, rather than
10891 value_contents.
10892 (print_record): Add `offset' parameter, and adjust to pass it
10893 down.
10894 (print_field_values): Add `offset' parameter. Replace
10895 `outer_valaddr' parameter by a new `outer_offset' parameter.
10896 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10897 Use value_contents_for_printing/value_embedded_offset, rather than
10898 value_contents.
10899 * d-valprint.c (dynamic_array_type): Use
10900 value_contents_for_printing/value_embedded_offset, rather than
10901 value_contents.
10902 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10903 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10904 (java_print_value_fields): Take `offset' into account. Don't
10905 re-adjust `valaddr'. Instead pass down adjusted offsets.
10906 (java_val_print): Take `embedded_offset' into account. Pass it to
10907 java_print_value_fields.
10908 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10909 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10910 down adjusted offsets.
10911 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10912 (f_val_print): Take `embedded_offset' into account.
10913
7bfc9434
JB
109142011-01-21 Joel Brobecker <brobecker@adacore.com>
10915
10916 * inflow.c: Include "gdbcmd.h".
10917 (interactive_mode): New static global, moved here from top.c.
10918 (show_interactive_mode): New function, moved here from top.c.
10919 use gdb_has_a_terminal instead of input_from_terminal_p to
10920 determine the current mode.
10921 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10922 setting.
10923 (_initialize_inflow): Add the "set/show interactive-mode"
10924 commands. Moved here from top.c, after having adjusted slightly
10925 the help text.
10926 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10927 to inflow.c.
10928 (input_from_terminal_p): Remove handling of "interactive-mode"
10929 setting, moved to infow.c.
10930 (init_main): Remove creation of the "set/show interactive-mode"
10931 commands, moved to inflow.c.
10932
44603653
JB
109332011-01-19 Joel Brobecker <brobecker@adacore.com>
10934
10935 * NEWS: Add entry for native ia64-hpux support.
10936
4694da01
TT
109372011-01-19 Tom Tromey <tromey@redhat.com>
10938
10939 PR mi/8618:
10940 * thread.c (free_thread): Free 'name'.
10941 (print_thread_info): Emit thread name. Change CLI output.
10942 (thread_name_command): New function.
10943 (do_captured_thread_select): Emit newline.
10944 (_initialize_thread): Register 'thread name' command.
10945 * target.h (struct target_ops) <to_thread_name>: New field.
10946 (target_thread_name): New macro.
10947 * target.c (update_current_target): Handle to_thread_name.
10948 * python/py-infthread.c (thpy_get_name): New function.
10949 (thpy_set_name): Likewise.
10950 (thread_object_getset): Add "name".
10951 * linux-nat.c (linux_nat_thread_name): New function.
10952 (linux_nat_add_target): Set to_thread_name.
10953 * gdbthread.h (struct thread_info) <name>: New field.
10954
10d44370
JB
109552011-01-18 Joel Brobecker <brobecker@adacore.com>
10956
10957 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10958 (ada_val_print_1): Likewise.
10959
e3acb115
JB
109602011-01-18 Joel Brobecker <brobecker@adacore.com>
10961
10962 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10963 upper limit address is not greater than the function end address
10964 when the upper limit could not be computed using the debugging
10965 info.
10966
dc92e161
TT
109672011-01-17 Tom Tromey <tromey@redhat.com>
10968
10969 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10970 get_regcomp_error.
10971 * utils.c: Include gdb_regex.h.
10972 (do_regfree_cleanup): New function.
10973 (make_regfree_cleanup): Likewise.
10974 (get_regcomp_error): Likewise.
10975 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10976
f55af66d
TT
109772011-01-17 Tom Tromey <tromey@redhat.com>
10978
10979 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10980 re_compile_fastmap.
10981
a5a44b53
PM
109822011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10983
10984 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10985 for internal variables.
10986 (last_was_structop): New static variable.
10987 (COMPLETE): New token.
10988 (field_exp): New rule to group all '.' suffix handling.
10989 Add mark_struct_expression calls when approriate to be able
10990 to correctly find fields for completion.
10991 (yylex): Adapt to handle field completion and set INTVAR when
10992 required.
10993
2c291032
YQ
109942011-01-14 Yao Qi <yao@codesourcery.com>
10995
10996 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10997 save_reggroup, restore_reggroup and all_reggroup.
10998
447b483c
JB
109992011-01-14 Joel Brobecker <brobecker@adacore.com>
11000
11001 * ada-valprint. (ada_printchar): Use the correct type length
11002 in call to ada_emit_char.
11003 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11004
7b64a93b
PM
110052011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11006
11007 * solib-som.h (hpux_major_release): Declare variable here.
11008 * solib-som.c: Remove <sys/utsname.h> header.
11009 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11010 (hpux_major_release): Make global, change default value to
11011 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11012 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11013 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11014 Add "solib-som.h" header.
11015 (set_hpux_major_release): New function.
11016 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11017
4e18c053
MF
110182011-01-14 Mike Frysinger <vapier@gentoo.org>
11019
11020 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11021
a9df6b22
JB
110222011-01-14 Joel Brobecker <brobecker@adacore.com>
11023
11024 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11025 new-line at end of warning message.
11026 (ia64_hpux_store_register): Remove trailing new-line at end of
11027 error message.
11028 * ia64-hpux-tdep.c: Rephrase comment.
11029 * solib-ia64-hpux.c (struct dld_info): Change type of field
11030 dld_flags from "long long" to ULONGEST.
11031
ecb956dd
PA
110322011-01-14 Pedro Alves <pedro@codesourcery.com>
11033
11034 * target.h (deprecated_child_ops): Delete declaration.
11035 * target.c (deprecated_child_ops): Delete definition.
11036
76adfcae
PA
110372011-01-14 Pedro Alves <pedro@codesourcery.com>
11038
11039 * Makefile.in (hpux-thread.o): Delete rule.
11040 * configure.ac: Don't check for HPUX DCE threads support.
11041 * configure, config.in: Regenerate.
11042 * hppa-hpux-nat.c (child_suppress_run): Delete.
11043 (hppa_hpux_child_can_run): Delete.
11044 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11045 * hpux-thread.c: Delete.
11046
042e866e
JB
110472011-01-13 Joel Brobecker <brobecker@adacore.com>
11048
11049 * hpux-thread.c (hpux_pid_to_str): Delete.
11050
4ffa5a33
JB
110512011-01-13 Joel Brobecker <brobecker@adacore.com>
11052
11053 * ada-valprint.c (ada_emit_char): Remove strange code.
11054 Check that c is <= UCHAR_MAX before passing it to isascii.
11055 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11056
de8fa76c
JB
110572011-01-13 Joel Brobecker <brobecker@adacore.com>
11058
11059 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11060 to the case where instream is stdin.
11061
c4de7027
JB
110622011-01-13 Joel Brobecker <brobecker@adacore.com>
11063
11064 * ia64-tdep.h (struct regcache): Forward declare.
11065 (struct ia64_infcall_ops): New struct type.
11066 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11067 and "infcall_ops".
11068 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11069 Renames ia64_find_global_pointer.
11070 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11071 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11072 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11073 methods.
11074 (ia64_infcall_ops): New static global constant.
11075 (ia64_gdbarch_init): Set tdep->infcall_ops.
11076 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11077 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11078 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11079 (ia64_hpux_dummy_code): New static global constant.
11080 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11081 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11082 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11083 New function.
11084 (ia64_hpux_infcall_ops): New static global constant.
11085 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11086 for inferior function calls to work properly on ia64-hpux.
11087
77ca787b
JB
110882011-01-13 Joel Brobecker <brobecker@adacore.com>
11089
11090 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11091 * ia64-tdep.h (struct frame_info): forward declaration.
11092 (struct gdbarch_tdep): Add field size_of_register_frame.
11093 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11094 to determine the size of the register frame.
11095 (ia64_size_of_register_frame): New function.
11096 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11097 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11098 (IA64_HPUX_UREG_REASON): New macro.
11099 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11100 New functions.
11101 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11102 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11103 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11104 objects.
11105
92c9a463
JB
111062011-01-13 Joel Brobecker <brobecker@adacore.com>
11107
11108 Add support for ia64-hpux.
11109 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11110 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11111
11112 * configure.host: Add handling for ia64-hpux hosts. Add associated
11113 floatformats.
11114 * configure.tgt: Add handling for ia64-hpux targets.
11115 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11116 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11117 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11118
f688d93f
JB
111192011-01-13 Joel Brobecker <brobecker@adacore.com>
11120
11121 [ttrace] Compute thread list immediately after attach.
11122 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11123 New subprogram.
11124 (inf_ttrace_attach): Use it.
11125
1b89e62f
JB
111262011-01-13 Joel Brobecker <brobecker@adacore.com>
11127
11128 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11129 if we could not determine the frame's function address. Instead,
11130 use the frame's PC, and then continue.
11131
3e5e6e2a
JB
111322011-01-13 Joel Brobecker <brobecker@adacore.com>
11133
11134 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11135 not already defined.
11136
825d6d8a
JB
111372011-01-13 Joel Brobecker <brobecker@adacore.com>
11138
11139 * ia64-tdep.c (ia64_struct_type_p): New function.
11140 (ia64_extract_return_value): Handle integral values that are
11141 less than 8 bytes long.
11142 (ia64_push_dummy_call): Likewise.
11143
7458e667
JB
111442011-01-13 Joel Brobecker <brobecker@adacore.com>
11145
11146 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11147 floatformat_ia64_ext.
11148 (floatformat_ia64_ext_big): New static const.
11149 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11150
1b05df00
TT
111512011-01-12 Tom Tromey <tromey@redhat.com>
11152
11153 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11154 messages.
11155 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11156 (mi_cmd_thread_list_ids): Likewise.
11157 (mi_cmd_data_list_changed_registers): Likewise.
11158 (mi_cmd_data_list_register_values): Likewise.
11159 (mi_cmd_data_write_register_values): Likewise.
11160 (mi_cmd_data_evaluate_expression): Likewise.
11161 (mi_cmd_data_read_memory): Likewise.
11162 (mi_cmd_data_read_memory_bytes): Likewise.
11163 (mi_cmd_data_write_memory): Likewise.
11164 (mi_cmd_enable_timings): Likewise.
11165 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11166 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11167 (mi_cmd_var_delete): Likewise.
11168 (mi_cmd_var_set_format): Likewise.
11169 (mi_cmd_var_show_format): Likewise.
11170 (mi_cmd_var_info_num_children): Likewise.
11171 (mi_cmd_var_list_children): Likewise.
11172 (mi_cmd_var_info_type): Likewise.
11173 (mi_cmd_var_info_expression): Likewise.
11174 (mi_cmd_var_show_attributes): Likewise.
11175 (mi_cmd_var_assign): Likewise.
11176 (mi_cmd_var_update): Likewise.
11177 (mi_cmd_enable_pretty_printing): Likewise.
11178 (mi_cmd_var_set_update_range): Likewise.
11179 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11180 messages.
11181 (mi_cmd_target_file_put): Likewise.
11182 (mi_cmd_target_file_delete): Likewise.
11183 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11184 messages.
11185 (mi_cmd_stack_info_depth): Likewise.
11186 (mi_cmd_stack_list_locals): Likewise.
11187 (mi_cmd_stack_list_args): Likewise.
11188 (mi_cmd_stack_select_frame): Likewise.
11189 (mi_cmd_stack_select_frame): Likewise.
11190 (mi_cmd_stack_info_frame): Likewise.
11191 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11192 messages.
11193 (mi_cmd_file_list_exec_source_files): Likewise.
11194 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11195 (mi_cmd_env_cd): Likewise.
11196 (mi_cmd_env_path): Likewise.
11197 (mi_cmd_env_dir): Likewise.
11198 (mi_cmd_inferior_tty_show): Likewise.
11199 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11200 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11201 (mi_cmd_break_watch): Likewise.
11202
ad422571
TJB
112032011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11204
11205 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11206 (ppc_linux_insert_hw_breakpoint): Likewise.
11207 (ppc_linux_remove_hw_breakpoint): Likewise.
11208 (ppc_linux_insert_watchpoint): Likewise.
11209
c2ff108b
JK
112102011-01-12 Andrew Burgess <aburgess@broadcom.com>
11211 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 PR fortran/11104 and DWARF unbound arrays detection.
11214 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11215 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11216 unspecified upper bound.
11217 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11218 variables array_size_array, tmp_type and offset_item. New variable
11219 array. Remove call to f77_get_upperbound. New variables array_type
11220 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11221 the final call to deprecated_set_value_type.
11222
41e8491f
JK
112232011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11224
11225 Make value allocations more lazy.
11226 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11227 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11228 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11229 instead of allocate_value and set_value_lazy.
11230 * findvar.c (value_of_register_lazy): Likewise.
11231 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11232 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11233 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11234 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11235 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11236 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11237 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11238 the end, remove set_value_lazy there.
11239 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11240 instead of allocate_value and set_value_lazy when possible.
11241 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11242 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11243 of allocate_value and set_value_lazy.
11244 (value_from_contents_and_address): Use allocate_value_lazy instead of
11245 allocate_value and set_value_lazy when possible.
11246
b716877b
AB
112472011-01-12 Andrew Burgess <aburgess@broadcom.com>
11248
11249 * disasm.c (dump_insns): Support dumping opcodes for MI.
11250 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11251 dumping of instruction opcodes.
11252
d5ae309f
JB
112532011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11254
11255 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11256 appropiately.
11257
98871305
TT
112582011-01-11 Tom Tromey <tromey@redhat.com>
11259
11260 * thread.c (do_captured_thread_select): Emit newline before
11261 printing frame.
11262
c378eb4e
MS
112632011-01-11 Michael Snyder <msnyder@vmware.com>
11264
11265 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11266 * score-tdep.c: Ditto.
11267 * score-tdep.h: Ditto.
11268 * ser-base.c: Ditto.
11269 * ser-go32.c: Ditto.
11270 * serial.c: Ditto.
11271 * serial.h: Ditto.
11272 * ser-mingw.c: Ditto.
11273 * ser-pipe.c: Ditto.
11274 * ser-tcp.c: Ditto.
11275 * ser-unix.c: Ditto.
11276 * sh64-tdep.c: Ditto.
11277 * shnbsd-nat.c: Ditto.
11278 * sh-tdep.c: Ditto.
11279 * sh-tdep.h: Ditto.
11280 * solib.c: Ditto.
11281 * solib-darwin.c: Ditto.
11282 * solib-frv.c: Ditto.
11283 * solib.h: Ditto.
11284 * solib-irix.c: Ditto.
11285 * solib-osf.c: Ditto.
11286 * solib-pa64.c: Ditto.
11287 * solib-som.c: Ditto.
11288 * solib-spu.c: Ditto.
11289 * solib-sunos.c: Ditto.
11290 * solib-svr4.c: Ditto.
11291 * solist.h: Ditto.
11292 * sol-thread.c: Ditto.
11293 * somread.c: Ditto.
11294 * source.c: Ditto.
11295 * source.h: Ditto.
11296 * sparc64-linux-tdep.c: Ditto.
11297 * sparc64-tdep.c: Ditto.
11298 * sparc-linux-nat.c: Ditto.
11299 * sparc-linux-tdep.c: Ditto.
11300 * sparc-sol2-nat.c: Ditto.
11301 * sparc-sol2-tdep.c: Ditto.
11302 * sparc-tdep.c: Ditto.
11303 * sparc-tdep.h: Ditto.
11304 * spu-tdep.c: Ditto.
11305 * stabsread.c: Ditto.
11306 * stabsread.h: Ditto.
11307 * stack.c: Ditto.
11308 * symfile.c: Ditto.
11309 * symfile.h: Ditto.
11310 * symmisc.c: Ditto.
11311 * symtab.c: Ditto.
11312 * symtab.h: Ditto.
11313 * target.c: Ditto.
11314 * target-descriptions.c: Ditto.
11315 * target-descriptions.h: Ditto.
11316 * target.h: Ditto.
11317 * target-memory.c: Ditto.
11318 * terminal.h: Ditto.
11319 * thread.c: Ditto.
11320 * top.c: Ditto.
11321 * tracepoint.c: Ditto.
11322 * tracepoint.h: Ditto.
11323 * trad-frame.h: Ditto.
11324 * typeprint.c: Ditto.
11325
581e13c1
MS
113262011-01-11 Michael Snyder <msnyder@vmware.com>
11327
11328 * ui-file.c: Comment cleanup, mostly periods and spaces.
11329 * ui-file.h: Ditto.
11330 * ui-out.c: Ditto.
11331 * ui-out.h: Ditto.
11332 * utils.c: Ditto.
11333 * v850-tdep.c: Ditto.
11334 * valarith.c: Ditto.
11335 * valops.c: Ditto.
11336 * valprint.c: Ditto.
11337 * valprint.h: Ditto.
11338 * value.c: Ditto.
11339 * value.h: Ditto.
11340 * varobj.c: Ditto.
11341 * varobj.h: Ditto.
11342 * vax-tdep.c: Ditto.
11343 * vec.c: Ditto.
11344 * vec.h: Ditto.
11345 * version.h: Ditto.
11346 * windows-nat.c: Ditto.
11347 * windows-tdep.c: Ditto.
11348 * xcoffread.c: Ditto.
11349 * xcoffsolib.c: Ditto.
11350 * xml-support.c: Ditto.
11351 * xstormy16-tdep.c: Ditto.
11352 * xtensa-tdep.c: Ditto.
11353 * xtensa-tdep.h: Ditto.
11354
90e4670f
TJB
113552011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11356
11357 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11358 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11359
e09342b5
TJB
113602011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11361 Thiago Jung Bauermann <bauerman@br.ibm.com>
11362
11363 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11364 * breakpoint.h
e09342b5
TJB
11365 (struct breakpoint_ops) <resources_needed>: New method.
11366 Initialize to NULL in all existing breakpoint_ops instances.
11367 (struct breakpoint) <exact>: New field.
11368 (target_exact_watchpoints): Declare external global.
11369 * breakpoint.c (target_exact_watchpoints): New global flag.
11370 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11371 b->enable_state to bp_enabled before calling
11372 hw_watchpoint_used_count.
11373 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11374 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11375 if available.
11376 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11377 if the watchpoint is exact.
11378 (resources_needed_watchpoint): New function.
11379 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11380 (watch_command_1): Set b->exact if the user asked for an exact
11381 watchpoint and one can be set.
11382 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11383 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11384 the user asks for an exact watchpoint and one can be set. Return
11385 number of needed debug registers to watch the expression.
11386 * gdbtypes.c (is_scalar_type): New function, based on
11387 valprint.c:scalar_type_p.
11388 (is_scalar_type_recursive): New function.
11389 * gdbtypes.h (is_scalar_type_recursive): Declare.
11390 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11391 handle regions when ranged watchpoints are available.
11392 (create_watchpoint_request): New function.
11393 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11394 create_watchpoint_request.
11395 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11396 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11397 `set powerpc' and `show powerpc' commands.
11398 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11399 Mention documentation comment in the target macro.
11400 (target_region_ok_for_hw_watchpoint): Document return value.
11401
9fa40276
TJB
114022011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11403
11404 * breakpoint.c (update_watchpoint): Decide on using a software or
11405 hardware watchpoint after the bp_locations are created.
11406
77b06cd7
TJB
114072010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11408
11409 Convert hardware watchpoints to use breakpoint_ops.
11410 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11411 <insert_location>: ... this. Return int instead of void.
11412 Accept pointer to struct bp_location instead of pointer to
11413 struct breakpoint. Adapt all implementations.
f2eb0bc8 11414 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11415 <remove_location>: ... this. Accept pointer to struct bp_location
11416 instead of pointer to struct breakpoint. Adapt all implementations.
11417 * breakpoint.c (insert_catchpoint): Delete function.
11418 (insert_bp_location): Call the watchpoint or catchpoint's
11419 breakpoint_ops.insert method.
11420 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11421 breakpoint_ops.remove method.
11422 (insert_watchpoint, remove_watchpoint): New functions.
11423 (watchpoint_breakpoint_ops): New structure.
11424 (watch_command_1): Initialize the OPS field.
11425 * inf-child.c (inf_child_insert_fork_catchpoint)
11426 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11427 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11428 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11429 Delete functions.
11430 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11431 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11432 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11433 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11434 * target.c (update_current_target): Change default implementation of
11435 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11436 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11437 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11438 to_set_syscall_catchpoint to return_one.
11439 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11440 (debug_to_insert_exec_catchpoint): Report return value.
11441 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11442 (to_insert_exec_catchpoint): Change declaration to return int instead
11443 of void.
11444
9b20d036
MS
114452011-01-11 Michael Snyder <msnyder@vmware.com>
11446
11447 * arm-tdep.c: Internationalization.
11448 * c-lang.c: Ditto.
11449 * charset.c: Ditto.
11450 * fork-child.c: Ditto.
11451 * nto-procfs.c: Ditto.
11452 * ppc-sysv-tdep.c: Ditto.
11453 * procfs.c: Ditto.
11454 * remote-mips.c: Ditto.
11455 * remote.c: Ditto.
11456 * rs6000-nat.c: Ditto.
11457 * rs6000-tdep.c: Ditto.
11458 * target.c: Ditto.
11459 * valops.c: Ditto.
11460 * value.c: Ditto.
11461 * xml-support.c: Ditto.
11462 * mi/mi-cmd-break.c: Ditto.
11463 * mi/mi-cmd-var.c: Ditto.
11464 * mi/mi-interp.c: Ditto.
11465 * mi/mi-main.c: Ditto.
11466
dae477fe
AB
114672011-01-11 Andrew Burgess <aburgess@broadcom.com>
11468
11469 * remote-sim.c (gdbsim_store_register): Update API to
11470 sim_store_register to check more error conditions.
11471
0df8b418
MS
114722011-01-10 Michael Snyder <msnyder@vmware.com>
11473
11474 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11475 * nto-tdep.c: Ditto.
11476 * nto-tdep.h: Ditto.
11477 * objc-exp.y: Ditto.
11478 * objc-lang.c: Ditto.
11479 * objfiles.c: Ditto.
11480 * objfiles.h: Ditto.
11481 * observer.c: Ditto.
11482 * opencl-lang.c: Ditto.
11483 * osabi.c: Ditto.
11484 * parse.c: Ditto.
11485 * parser-defs.h: Ditto.
11486 * p-exp.y: Ditto.
11487 * p-lang.c: Ditto.
11488 * posix-hdep.c: Ditto.
11489 * ppcbug-rom.c: Ditto.
11490 * ppc-linux-nat.c: Ditto.
11491 * ppc-linux-tdep.c: Ditto.
11492 * ppc-linux-tdep.h: Ditto.
11493 * ppcnbsd-tdep.c: Ditto.
11494 * ppcobsd-tdep.c: Ditto.
11495 * ppcobsd-tdep.h: Ditto.
11496 * ppc-sysv-tdep.c: Ditto.
11497 * ppc-tdep.h: Ditto.
11498 * printcmd.c: Ditto.
11499 * proc-abi.c: Ditto.
11500 * proc-flags.c: Ditto.
11501 * procfs.c: Ditto.
11502 * proc-utils.h: Ditto.
11503 * progspace.h: Ditto.
11504 * prologue-value.c: Ditto.
11505 * prologue-value.h: Ditto.
11506 * psympriv.h: Ditto.
11507 * psymtab.c: Ditto.
11508 * p-typeprint.c: Ditto.
11509 * p-valprint.c: Ditto.
11510 * ravenscar-sparc-thread.c: Ditto.
11511 * ravenscar-thread.c: Ditto.
11512 * ravenscar-thread.h: Ditto.
11513 * record.c: Ditto.
11514 * regcache.c: Ditto.
11515 * regcache.h: Ditto.
11516 * remote.c: Ditto.
11517 * remote-fileio.c: Ditto.
11518 * remote-fileio.h: Ditto.
11519 * remote.h: Ditto.
11520 * remote-m32r-sdi.c: Ditto.
11521 * remote-mips.c: Ditto.
11522 * remote-sim.c: Ditto.
11523 * rs6000-aix-tdep.c: Ditto.
11524 * rs6000-nat.c: Ditto.
11525 * rs6000-tdep.c: Ditto.
11526
0d7a18f7
MS
115272011-01-10 Michael Snyder <msnyder@vmware.com>
11528
11529 * charset.c (validate): Internationalization.
11530 * coffread.c (read_one_sym): Ditto.
11531 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11532 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11533 * inflow.c (new_tty): Ditto.
11534 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11535 * m32c-tdep.c (m32c_return_value): Ditto.
11536 * mep-tdep.c (mep_store_return_value): Ditto.
11537 * score-tdep.c (score7_fetch_insn): Ditto.
11538 * ser-mingw.c (pipe_windows_open): Ditto.
11539 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11540 * spu-tdep.c (spu_register_type): Ditto.
11541 * tracepoint.c (trace_find_command): Ditto.
11542 * valarith.c (value_pos): Ditto.
11543
9a153e0b
JB
115442011-01-10 Joel Brobecker <brobecker@adacore.com>
11545
11546 * ada-valprint.c (printstr): Minor comment reformatting.
11547
35ecd2d6
MS
115482011-01-08 Michael Snyder <msnyder@vmware.com>
11549
11550 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11551 markup.
11552
1777feb0
MS
115532011-01-08 Michael Snyder <msnyder@vmware.com>
11554
11555 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11556 * hppa-hpux-tdep.c: Ditto.
11557 * hppa-linux-nat.c: Ditto.
11558 * hppa-linux-tdep.c: Ditto.
11559 * hppanbsd-tdep.c: Ditto.
11560 * hppa-tdep.c: Ditto.
11561 * hppa-tdep.h: Ditto.
11562 * hpux-thread.c: Ditto.
11563 * i386-cygwin-tdep.c: Ditto.
11564 * i386-darwin-nat.c: Ditto.
11565 * i386gnu-nat.c: Ditto.
11566 * i386-linux-nat.c: Ditto.
11567 * i386-linux-tdep.c: Ditto.
11568 * i386-nat.c: Ditto.
11569 * i386-nat.h: Ditto.
11570 * i386nbsd-tdep.c: Ditto.
11571 * i386-sol2-nat.c: Ditto.
11572 * i386-stub.c: Ditto.
11573 * i386-tdep.c: Ditto.
11574 * i386-tdep.h: Ditto.
11575 * i387-tdep.c: Ditto.
11576 * ia64-linux-nat.c: Ditto.
11577 * ia64-linux-tdep.c: Ditto.
11578 * ia64-tdep.c: Ditto.
11579 * infcall.c: Ditto.
11580 * infcall.h: Ditto.
11581 * infcmd.c: Ditto.
11582 * inferior.c: Ditto.
11583 * inferior.h: Ditto.
11584 * infloop.c: Ditto.
11585 * inflow.c: Ditto.
11586 * infrun.c: Ditto.
11587 * interps.c: Ditto.
11588 * interps.h: Ditto.
11589 * iq2000-tdep.c: Ditto.
11590 * irix5-nat.c: Ditto.
11591 * jit.c: Ditto.
11592 * jit.h: Ditto.
11593 * jv-exp.y: Ditto.
11594 * jv-lang.c: Ditto.
11595 * jv-lang.h: Ditto.
11596 * jv-typeprint.c: Ditto.
11597 * jv-valprint.c: Ditto.
11598 * language.c: Ditto.
11599 * language.h: Ditto.
11600 * linespec.c: Ditto.
11601 * linux-fork.c: Ditto.
11602 * linux-nat.c: Ditto.
11603 * linux-thread-db.c: Ditto.
11604 * lm32-tdep.c: Ditto.
11605
025bb325
MS
116062011-01-08 Michael Snyder <msnyder@vmware.com>
11607
11608 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11609 * m2-lang.c: Ditto.
11610 * m2-typeprint.c: Ditto.
11611 * m2-valprint.c: Ditto.
11612 * m32c-tdep.c: Ditto.
11613 * m32r-linux-nat.c: Ditto.
11614 * m32r-rom.c: Ditto.
11615 * m32r-tdep.c: Ditto.
11616 * m32r-tdep.h: Ditto.
11617 * m68hc11-tdep.c: Ditto.
11618 * m58klinux-nat.c: Ditto.
11619 * m68k-tdep.c: Ditto.
11620 * m88k-tdep.c: Ditto.
11621 * m88k-tdep.h: Ditto.
11622 * machoread.c: Ditto.
11623 * macrocmd.c: Ditto.
11624 * macroexp.c: Ditto.
11625 * macrotab.c: Ditto.
11626 * main.c: Ditto.
11627 * maint.c: Ditto.
11628 * mdebugread.c: Ditto.
11629 * mdebugread.h: Ditto.
11630 * memattr.c: Ditto.
11631 * memattr.h: Ditto.
11632 * memory-map.h: Ditto.
11633 * mep-tdep.c: Ditto.
11634 * microblaze-rom.c: Ditto.
11635 * microblaze-tdep.c: Ditto.
11636 * minsyms.c: Ditto.
11637 * mips-irix-tdep.c: Ditto.
11638 * mips-linux-nat.c: Ditto.
11639 * mips-linux-tdep.c: Ditto.
11640 * mips-linux-tdep.h: Ditto.
11641 * mipsnbsd-nat.c: Ditto.
11642 * mipsnbsd-tdep.c: Ditto.
11643 * mipsread.c: Ditto.
11644 * mips-tdep.c: Ditto.
11645 * mips-tdep.h: Ditto.
11646 * mn10300-linux-tdep.c: Ditto.
11647 * mn10300-tdep.c: Ditto.
11648 * mn10300-tdep.h: Ditto.
11649 * monitor.c: Ditto.
11650 * monitor.h: Ditto.
11651 * moxie-tdep.c: Ditto.
11652 * moxie-tdep.h: Ditto.
11653 * mt-tdep.c: Ditto.
11654
1642781b
MF
116552011-01-08 Mike Frysinger <vapier@gentoo.org>
11656
11657 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11658
394b0adb
JB
116592011-01-08 Robert Millan <rmh@gnu.org>
11660
11661 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11662
b670013c
MS
116632011-01-07 Michael Snyder <msnyder@vmware.com>
11664
11665 * charset.c (_initialize_charset): Fix typo in string.
11666
a743e542
MS
116672011-01-07 Michael Snyder <msnyder@vmware.com>
11668
11669 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11670 for i18n.
f2eb0bc8 11671 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11672 Split line so that operator goes to beginning of line.
11673 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11674 assignment out of if statement.
11675
0963b4bd
MS
116762011-01-07 Michael Snyder <msnyder@vmware.com>
11677
11678 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11679 * ada-lang.h: Ditto.
11680 * ada-tasks.c: Ditto.
11681 * ada-valprint.c: Ditto.
11682 * aix-threads.c: Ditto.
11683 * alpha-linux-nat.c: Ditto.
11684 * alpha-linux-tdep.c: Ditto.
11685 * alpha-mdebug-tdep.c: Ditto.
11686 * alpha-nat.c: Ditto.
11687 * alpha-osf1-tdep.c: Ditto.
11688 * alpha-tdep.c: Ditto.
11689 * alphabsd-nat.c: Ditto.
11690 * alphabsd-tdep.c: Ditto.
11691 * amd64-darwin-tdep.c: Ditto.
11692 * amd64-linux-nat.c: Ditto.
11693 * amd64-linux-tdep.c: Ditto.
11694 * amd64-sol2-tdep.c: Ditto.
11695 * amd64-tdep.c: Ditto.
11696 * amd64-fbsd-tdep.c: Ditto.
11697 * amd64-nbsd-tdep.c: Ditto.
11698 * amd64-obsd-tdep.c: Ditto.
11699 * amd64-linux-nat.c: Ditto.
11700 * amd64-linux-tdep.c: Ditto.
11701 * arm-tdep.c: Ditto.
11702 * arm-tdep.h: Ditto.
11703 * armnbsd-nat.c: Ditto.
11704 * avr-tdep.c: Ditto.
11705 * bfin-tdep.c: Ditto.
11706 * bsd-kvm.c: Ditto.
11707 * c-typeprintc: Ditto.
11708 * c-valprint.c: Ditto.
11709 * coff-pe-read.h: Ditto.
11710 * coffreead.c: Ditto.
11711 * cris-tdep.c: Ditto.
11712 * d-lang.c: Ditto.
11713 * darwin-nat-info.c: Ditto.
11714 * darwin-nat.c: Ditto.
11715 * dbug-rom.c: Ditto.
11716 * dbxread.c: Ditto.
11717 * dcache.c: Ditto.
11718 * dcache.h: Ditto.
11719 * dec-thread.c: Ditto.
11720 * defs.h: Ditto.
11721 * demangle.c: Ditto.
11722 * dicos-tdep.c: Ditto.
11723 * dictionary.c: Ditto.
11724 * dictionary.h: Ditto.
11725 * dink32-rom.c: Ditto.
11726 * disasm.c: Ditto.
11727 * doublest.c: Ditto.
11728 * dsrec.c: Ditto.
11729 * dummy-frame.c: Ditto.
11730 * dwarf2-frame.c: Ditto.
11731 * dwarf2expr.c: Ditto.
11732 * dwarf2loc.c: Ditto.
11733 * dwarf2read.c: Ditto.
11734 * elfread.c: Ditto.
11735 * environ.c: Ditto.
11736 * eval.c: Ditto.
11737 * event-top.h: Ditto.
11738 * exceptions.c: Ditto.
11739 * exceptions.h: Ditto.
11740 * exec.c: Ditto.
11741 * expprint.c: Ditto.
11742 * expression.h: Ditto.
11743 * f-exp.y: Ditto.
11744 * f-lang.c: Ditto.
11745 * f-lang.h: Ditto.
11746 * f-typeprint.c: Ditto.
11747 * f-valprint.c: Ditto.
11748 * fbsd-nat.c: Ditto.
11749 * findvar.c: Ditto.
11750 * fork-child.c: Ditto.
11751 * frame.c: Ditto.
11752 * frame.h: Ditto.
11753 * frv-linux-tdep.c: Ditto.
11754 * frv-tdep.c: Ditto.
11755 * gcore.c: Ditto.
11756 * gdb-stabs.h: Ditto.
11757 * gdb_assert.h: Ditto.
11758 * gdb_string.h: Ditto.
11759 * gdb_thread_db.h: Ditto.
11760 * gdb_wait.h: Ditto.
11761 * gdbarch.sh: Ditto.
11762 * gdbcore.h: Ditto.
11763 * gdbthread.h: Ditto.
11764 * gdbtypes.c: Ditto.
11765 * gdbtypes.h: Ditto.
11766 * gnu-nat.c: Ditto.
11767 * gnu-nat.h: Ditto.
11768 * gnu-v2-abi.c: Ditto.
11769 * gnu-v3-abi.c: Ditto.
11770 * go32-nat.c: Ditto.
11771 * gdbarch.c: Regenerate.
11772 * gdbarch.h: Regenerate.
11773
ac74f770
MS
117742011-01-07 Michael Snyder <msnyder@vmware.com>
11775
11776 * ax-gdb.c: Adjust some long output strings.
11777 * breakpoint.c: Ditto.
11778 * charset.c: Ditto.
11779 * cp-abi.c: Ditto.
11780 * infcall.c: Ditto.
11781 * infrun.c: Ditto.
11782 * linux-nat.c: Ditto.
11783 * solib-pa64.c: Ditto.
11784 * solib-som.c: Ditto.
11785
d8e22779
TT
117862011-01-06 Tom Tromey <tromey@redhat.com>
11787
11788 PR python/12367:
11789 * NEWS: Add item.
11790 * python/python.c (GdbMethods): Add "newest_frame" method.
11791 * python/python-internal.h (gdbpy_newest_frame): Declare.
11792 * python/py-frame.c (gdbpy_newest_frame): New function.
11793
a255712f
PP
117942010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11795
11796 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11797 * jit.c (jit_debug): New variable.
11798 (show_jit_debug): New function.
11799 (struct target_buffer): Use ULONGEST.
11800 (bfd_open_from_target_memory): Likewise.
11801 (jit_register_code, jit_inferior_init): Add debug output.
11802 (_initialize_jit): Register "debug jit" command.
11803
ccfc3d6e
TT
118042011-01-06 Tom Tromey <tromey@redhat.com>
11805
11806 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11807 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11808 and ARCH_FRAME.
11809
57126e4a
TT
118102011-01-06 Tom Tromey <tromey@redhat.com>
11811
11812 * python/py-frame.c (frapy_block): Use get_frame_block.
11813
16dfc9ce
JB
118142011-01-06 Joel Brobecker <brobecker@adacore.com>
11815
11816 Do not stop on SIGPRIO signals by default
11817 * infrun.c (_initialize_infrun): Unset signal_stop and
11818 signal_print for TARGET_SIGNAL_PRIO.
11819
b1ce2347
JB
118202011-01-06 Joel Brobecker <brobecker@adacore.com>
11821
11822 * ada-tasks.c: Fix style violation in comment.
11823
8f7e195f
JB
118242011-01-06 Joel Brobecker <brobecker@adacore.com>
11825
11826 * linespec.c (decode_compound, find_method): Remove trailing \n
11827 at end of error string.
11828 * solib-irix.c (irix_current_sos): Likewise.
11829 * varobj.c (uninstall_variable): Likewise.
11830
e9bdf92c
JB
118312011-01-06 Joel Brobecker <brobecker@adacore.com>
11832
11833 * copyright.py: New script.
11834 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11835 Launch emacs without exec'ing. Call copyright.py afterwards.
11836
3e43a32a
MS
118372011-01-05 Michael Snyder <msnyder@vmware.com>
11838
11839 * addrmap.c: Shorten lines of >= 80 columns.
11840 * arch-utils.c: Ditto.
11841 * arch-utils.h: Ditto.
11842 * ax-gdb.c: Ditto.
11843 * ax-general.c: Ditto.
11844 * bcache.c: Ditto.
11845 * blockframe.c: Ditto.
11846 * breakpoint.c: Ditto.
11847 * buildsym.c: Ditto.
11848 * c-lang.c: Ditto.
11849 * c-typeprint.c: Ditto.
11850 * charset.c: Ditto.
11851 * coffread.c: Ditto.
11852 * command.h: Ditto.
11853 * corelow.c: Ditto.
11854 * cp-abi.c: Ditto.
11855 * cp-namespace.c: Ditto.
11856 * cp-support.c: Ditto.
11857 * dbug-rom.c: Ditto.
11858 * dbxread.c: Ditto.
11859 * defs.h: Ditto.
11860 * dfp.c: Ditto.
11861 * dfp.h: Ditto.
11862 * dictionary.c: Ditto.
11863 * disasm.c: Ditto.
11864 * doublest.c: Ditto.
11865 * dwarf2-frame.c: Ditto.
11866 * dwarf2expr.c: Ditto.
11867 * dwarf2loc.c: Ditto.
11868 * dwarf2read.c: Ditto.
11869 * elfread.c: Ditto.
11870 * eval.c: Ditto.
11871 * event-loop.c: Ditto.
11872 * event-loop.h: Ditto.
11873 * exceptions.h: Ditto.
11874 * exec.c: Ditto.
11875 * expprint.c: Ditto.
11876 * expression.h: Ditto.
11877 * f-lang.c: Ditto.
11878 * f-valprint.c: Ditto.
11879 * findcmd.c: Ditto.
11880 * frame-base.c: Ditto.
11881 * frame-unwind.c: Ditto.
11882 * frame-unwind.h: Ditto.
11883 * frame.c: Ditto.
11884 * frame.h: Ditto.
11885 * gcore.c: Ditto.
11886 * gdb-stabs.h: Ditto.
11887 * gdb_assert.h: Ditto.
11888 * gdb_dirent.h: Ditto.
11889 * gdb_obstack.h: Ditto.
11890 * gdbcore.h: Ditto.
11891 * gdbtypes.c: Ditto.
11892 * gdbtypes.h: Ditto.
11893 * inf-ttrace.c: Ditto.
11894 * infcall.c: Ditto.
11895 * infcmd.c: Ditto.
11896 * inflow.c: Ditto.
11897 * infrun.c: Ditto.
11898 * inline-frame.h: Ditto.
11899 * language.c: Ditto.
11900 * language.h: Ditto.
11901 * libunwind-frame.c: Ditto.
11902 * libunwind-frame.h: Ditto.
11903 * linespec.c: Ditto.
11904 * linux-nat.c: Ditto.
11905 * linux-nat.h: Ditto.
11906 * linux-thread-db.c: Ditto.
11907 * machoread.c: Ditto.
11908 * macroexp.c: Ditto.
11909 * macrotab.c: Ditto.
11910 * main.c: Ditto.
11911 * maint.c: Ditto.
11912 * mdebugread.c: Ditto.
11913 * memattr.c: Ditto.
11914 * minsyms.c: Ditto.
11915 * monitor.c: Ditto.
11916 * monitor.h: Ditto.
11917 * objfiles.c: Ditto.
11918 * objfiles.h: Ditto.
11919 * osabi.c: Ditto.
11920 * p-typeprint.c: Ditto.
11921 * p-valprint.c: Ditto.
11922 * parse.c: Ditto.
11923 * printcmd.c: Ditto.
11924 * proc-events.c: Ditto.
11925 * procfs.c: Ditto.
11926 * progspace.c: Ditto.
11927 * progspace.h: Ditto.
11928 * psympriv.h: Ditto.
11929 * psymtab.c: Ditto.
11930 * record.c: Ditto.
11931 * regcache.c: Ditto.
11932 * regcache.h: Ditto.
11933 * remote-fileio.c: Ditto.
11934 * remote.c: Ditto.
11935 * ser-mingw.c: Ditto.
11936 * ser-tcp.c: Ditto.
11937 * ser-unix.c: Ditto.
11938 * serial.c: Ditto.
11939 * serial.h: Ditto.
11940 * solib-frv.c: Ditto.
11941 * solib-irix.c: Ditto.
11942 * solib-osf.c: Ditto.
11943 * solib-pa64.c: Ditto.
11944 * solib-som.c: Ditto.
11945 * solib-sunos.c: Ditto.
11946 * solib-svr4.c: Ditto.
11947 * solib-target.c: Ditto.
11948 * solib.c: Ditto.
11949 * somread.c: Ditto.
11950 * source.c: Ditto.
11951 * stabsread.c: Ditto.
11952 * stabsread.c: Ditto.
11953 * stack.c: Ditto.
11954 * stack.h: Ditto.
11955 * symfile-mem.c: Ditto.
11956 * symfile.c: Ditto.
11957 * symfile.h: Ditto.
11958 * symmisc.c: Ditto.
11959 * symtab.c: Ditto.
11960 * symtab.h: Ditto.
11961 * target-descriptions.c: Ditto.
11962 * target-memory.c: Ditto.
11963 * target.c: Ditto.
11964 * target.h: Ditto.
11965 * terminal.h: Ditto.
11966 * thread.c: Ditto.
11967 * top.c: Ditto.
11968 * tracepoint.c: Ditto.
11969 * tracepoint.h: Ditto.
11970 * ui-file.c: Ditto.
11971 * ui-file.h: Ditto.
11972 * ui-out.h: Ditto.
11973 * user-regs.c: Ditto.
11974 * user-regs.h: Ditto.
11975 * utils.c: Ditto.
11976 * valarith.c: Ditto.
11977 * valops.c: Ditto.
11978 * valprint.c: Ditto.
11979 * valprint.h: Ditto.
11980 * value.c: Ditto.
11981 * varobj.c: Ditto.
11982 * varobj.h: Ditto.
11983 * vec.h: Ditto.
11984 * xcoffread.c: Ditto.
11985 * xcoffsolib.c: Ditto.
11986 * xcoffsolib.h: Ditto.
11987 * xml-syscall.c: Ditto.
11988 * xml-tdesc.c: Ditto.
11989
9a2b4c1b
MS
119902011-01-05 Michael Snyder <msnyder@vmware.com>
11991
11992 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11993 * cli/cli-decode.c: Ditto.
11994 * cli/cli-dump.c: Ditto.
11995 * cli/cli-logging.c: Ditto.
11996 * cli/cli-script.c: Ditto.
11997 * cli/cli-setshow.c: Ditto.
11998 * common/signals.c: Ditto.
11999 * mi/mi-cmd-break.c: Ditto.
12000 * mi/mi-cmd-disas.c: Ditto.
12001 * mi/mi-cmd-stack.c: Ditto.
12002 * mi/mi-cmd-var.c: Ditto.
12003 * mi/mi-cmds.c: Ditto.
12004 * mi/mi-common.h: Ditto.
12005 * mi/mi-console.c: Ditto.
12006 * mi/mi-interp.c: Ditto.
12007 * mi/mi-main.c: Ditto.
12008 * osf-share/cma_attr.c: Ditto.
12009 * osf-share/cma_deb_core.h: Ditto.
12010 * osf-share/cma_debug_client.h: Ditto.
12011 * osf-share/cma_handle.h: Ditto.
12012 * osf-share/cma_mutex.h: Ditto.
12013 * osf-share/cma_stack_int.h: Ditto.
12014 * osf-share/cma_tcb_defs.h: Ditto.
12015 * python/py-auto-load.c: Ditto.
12016 * python/py-breakpoint.c: Ditto.
12017 * python/py-cmd.c: Ditto.
12018 * python/py-frame.c: Ditto.
12019 * python/py-objfile.c: Ditto.
12020 * python/py-param.c: Ditto.
12021 * python/py-progspace.c: Ditto.
12022 * python/py-symbol.c: Ditto.
12023 * python/py-value.c: Ditto.
12024 * python/python-internal.h: Ditto.
12025 * python/python.c: Ditto.
12026 * tui/tui-data.c: Ditto.
12027 * tui/tui-disasm.c: Ditto.
12028 * tui/tui-hooks.c: Ditto.
12029 * tui/tui-io.c: Ditto.
12030 * tui/tui-layout.c: Ditto.
12031 * tui/tui-regs.c: Ditto.
12032 * tui/tui-source.c: Ditto.
12033 * tui/tui-stack.c: Ditto.
12034 * tui/tui-win.c: Ditto.
12035 * tui/tui-windata.c: Ditto.
12036 * tui/tui-winsource.c: Ditto.
12037
44944448
JB
120382011-01-05 Joel Brobecker <brobecker@adacore.com>
12039
12040 * configure.ac, gdb.1: Copyright year update.
12041
ebedcab5
JK
120422011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12043
12044 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12045 this_pc_in_block, morestack_msym and morestack_name. Check for
12046 "__morestack" minimal symbol there.
12047
e5cc9f32
JB
120482011-01-03 Joel Brobecker <brobecker@adacore.com>
12049
12050 * symfile.c (find_sym_fns): Add call to dont_repeat.
12051
7b6bb8da
JB
120522011-01-01 Joel Brobecker <brobecker@adacore.com>
12053
12054 Copyright year update in most files (performed by copyright.sh).
12055
71ce852c
JB
120562011-01-01 Joel Brobecker <brobecker@adacore.com>
12057
12058 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12059
c3c1ebe8 12060For older changes see ChangeLog-2010.
c906108c
SS
12061\f
12062Local Variables:
12063mode: change-log
12064left-margin: 8
12065fill-column: 74
12066version-control: never
57da7796 12067coding: utf-8
c906108c 12068End:
This page took 1.951235 seconds and 4 git commands to generate.