* breakpoint.c (update_static_tracepoint): Rename nested `sal' and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
80e1d417
AS
12011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
4 `marker' variables to `sal2' and `tpmarker' respectively
5 (-Wshadow).
6
04ca3c22
AP
72011-12-09 Andrew Pinski <apinski@cavium.com>
8
9 * linespec.c (hash_address_entry): Use iterative_hash_object on each
10 field rather than the struct itself.
11
8a2c437b
TT
122011-12-09 Tom Tromey <tromey@redhat.com>
13
14 * breakpoint.c (compare_breakpoints): New function.
15 (clear_command): Remove duplicate breakpoints. Properly clean
16 up.
17
280711e7
MR
182011-12-08 Maciej W. Rozycki <macro@mips.com>
19 Maciej W. Rozycki <macro@codesourcery.com>
20
21 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
22 address chunks retrieved from decoded lui/addiu pairs.
23
4c2051c6
MR
242011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
25
26 * mips-tdep.c (extended_offset): Correct calculation.
27 (unpack_mips16): Correct bitfield positions used for extraction
28 of the immediate argument; fix sign-extension of same.
29 (extended_mips16_next_pc): Correct B instruction's offset
30 calculation. Correct register decoding of the BEQZ and BNEZ
31 as well as jump-register instructions. Handle compact jumps.
32
ff011ed7
TT
332011-12-08 Tom Tromey <tromey@redhat.com>
34
35 * objfiles.h (struct objfile): Remove obsolete comment.
36 * objfiles.c (build_objfile_section_table): Remove obsolete
37 comment.
38
7cd3876c
SS
392011-12-07 Stan Shebs <stan@codesourcery.com>
40
41 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
42 maintainer of the tic6x target.
43
35f73cfc
UW
442011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
45
46 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
47 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
48 (arm_deal_with_atomic_sequence_raw): Likewise.
49 (arm_deal_with_atomic_sequence): Likewise.
50 (arm_software_single_step): Call it.
51 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
52
94eae614
UW
532011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
54
55 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
56 where appropriate.
57 * s390-tdep.h: Likewise.
58
13b8d0c6
TG
592011-12-07 Tristan Gingold <gingold@adacore.com>
60
61 * machoread.c (macho_symtab_read): Do not consider N_OPT as
62 a debugging stab. Improve complaint message.
63
5436df95
MR
642011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
65
66 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
67 load adjustment if still within the prologue.
68
040dff2a
MR
692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
70
71 * mips-tdep.c (mips32_next_pc): Fix floating point condition
72 code mask.
73
754d7c78
MR
742011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
75
76 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
77 of BLTZ* and BGEZ* instructions.
78
91912e4d
MR
792011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
80
81 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
82 performed to determine whether an address refers to standard
83 MIPS or MIPS16 code.
84 (mips16_next_pc): Use mips_pc_is_mips16 instead of
85 is_mips16_addr.
86
f0ba3972
PA
872011-12-06 Pedro Alves <pedro@codesourcery.com>
88
89 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
90 (breakpoint_xfer_memory): ... this. Change prototype. Handle
91 memory writes too.
92 * breakpoint.h (breakpoint_restore_shadows): Delete.
93 (breakpoint_xfer_memory): Declare.
94 * mem-break.c (default_memory_insert_breakpoint)
95 (default_memory_remove_breakpoint): Use target_write_raw_memory.
96 (memory_xfer_partial): Rename to ...
97 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
98 here.
99 (memory_xfer_partial): New.
100 (target_write_raw_memory): New.
101 * target.h (target_write_raw_memory): New.
102
31aba06f
DE
1032011-12-06 Doug Evans <dje@google.com>
104
105 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
106
f8eba3c6
TT
1072011-12-06 Joel Brobecker <brobecker@acacore.com>
108
109 * language.h (struct language_defn): Add new component
110 la_symbol_name_compare.
111 * symfile.h (struct quick_symbol_functions): Update the profile
112 of parameter "name_matcher" for the expand_symtabs_matching
113 method. Update the documentation accordingly.
114 * ada-lang.h (ada_name_for_lookup): Add declaration.
115 * ada-lang.c (ada_name_for_lookup): New function, extracted out
116 from ada_iterate_over_symbols.
117 (ada_iterate_over_symbols): Do not encode symbol name anymore.
118 (ada_expand_partial_symbol_name): Adjust profile.
119 (ada_language_defn): Add value for la_symbol_name_compare field.
120 * linespec.c: #include "ada-lang.h".
121 (iterate_name_matcher): Add language parameter. Replace call
122 to strcmp_iw by call to language->la_symbol_name_compare.
123 (decode_variable): Encode COPY if current language is Ada.
124 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
125 of name_matcher parameter. Adjust call to name_matcher.
126 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
127 (expand_partial_symbol_names): Update profile of parameter "fun".
128 * psymtab.h (expand_partial_symbol_names): Update profile of
129 parameter "fun".
130 * symtab.c (demangle_for_lookup): Update function documentation.
131 (search_symbols_name_matches): Add language parameter.
132 (expand_partial_symbol_name): Likewise.
133 * c-lang.c (c_language_defn, cplus_language_defn)
134 (asm_language_defn, minimal_language_defn): Add value for
135 la_symbol_name_compare field.
136 * d-lang.c (d_language_defn): Likewise.
137 * f-lang.c (f_language_defn): Ditto.
138 * jv-lang.c (java_language_defn): Ditto.
139 * m2-lang.c (m2_language_defn): Ditto.
140 * objc-lang.c (objc_language_defn): Ditto.
141 * opencl-lang.c (opencl_language_defn): Ditto.
142 * p-lang.c (pascal_language_defn): Ditto.
143 * language.c (unknown_language_defn, auto_language_defn)
144 (local_language_defn): Ditto.
145
1462011-12-06 Tom Tromey <tromey@redhat.com>
147
148 * linespec.c (iterate_over_all_matching_symtabs): Use
149 LA_ITERATE_OVER_SYMBOLS.
150 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
151 (find_function_symbols, decode_variable): Remove Ada special
152 case.
153 * language.h (struct language_defn) <la_iterate_over_symbols>: New
154 field.
155 (LA_ITERATE_OVER_SYMBOLS): New macro.
156 * language.c (unknown_language_defn, auto_language_defn)
157 (local_language_defn): Update.
158 * c-lang.c (c_language_defn, cplus_language_defn)
159 (asm_language_defn, minimal_language_defn): Update.
160 * d-lang.c (d_language_defn): Update.
161 * f-lang.c (f_language_defn): Update.
162 * jv-lang.c (java_language_defn): Update.
163 * m2-lang.c (m2_language_defn): Update.
164 * objc-lang.c (objc_language_defn): Update.
165 * opencl-lang.c (opencl_language_defn): Update.
166 * p-lang.c (pascal_language_defn): Update.
167 * ada-lang.c (ada_iterate_over_symbols): New function.
168 (ada_language_defn): Update.
169
1702011-12-06 Tom Tromey <tromey@redhat.com>
171 Joel Brobecker <brobecker@acacore.com>
172
173 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
174 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
175 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
176 PR shlibs/8929, PR shlibs/7393:
177 * python/py-type.c (compare_maybe_null_strings): Rename from
178 compare_strings.
179 (check_types_equal): Update.
180 * utils.c (compare_strings): New function.
181 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
182 location changes.
183 * tracepoint.c (scope_info): Update.
184 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
185 * symtab.h (iterate_over_minimal_symbols)
186 (iterate_over_some_symtabs, iterate_over_symtabs)
187 (find_pcs_for_symtab_line, iterate_over_symbols)
188 (demangle_for_lookup): Declare.
189 (expand_line_sal): Remove.
190 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
191 (lookup_symtab_callback): New functions.
192 (lookup_symtab): Rewrite.
193 (demangle_for_lookup): New function, extract from
194 lookup_symbol_in_language.
195 (lookup_symbol_in_language): Use it.
196 (iterate_over_symbols): New function.
197 (find_line_symtab): Update.
198 (find_pcs_for_symtab_line): New functions.
199 (find_line_common): Add 'start' argument.
200 (decode_line_spec): Update. Change argument to 'flags', change
201 interpretation.
202 (append_expanded_sal): Remove.
203 (append_exact_match_to_sals): Remove.
204 (expand_line_sal): Remove.
205 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
206 Remove.
207 <map_symtabs_matching_filename>: New field.
208 * stack.c (func_command): Only look in the current program space.
209 Use DECODE_LINE_FUNFIRSTLINE.
210 * source.c (line_info): Set pspace on sal. Check program space in
211 the loop. Use DECODE_LINE_LIST_MODE.
212 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
213 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
214 * python/python.c (gdbpy_decode_line): Update.
215 * psymtab.c (partial_map_expand_apply): New function.
216 (partial_map_symtabs_matching_filename): Rename from
217 lookup_partial_symbol. Update arguments.
218 (lookup_symtab_via_partial_symtab): Remove.
219 (psym_functions): Update.
220 * objc-lang.h (parse_selector, parse_method): Don't declare.
221 (find_imps): Update.
222 * objc-lang.c (parse_selector, parse_method): Now static.
223 (find_methods): Change arguments. Fill in a vector of symbol
224 names.
225 (uniquify_strings): New function.
226 (find_imps): Change arguments.
227 * minsyms.c (iterate_over_minimal_symbols): New function.
228 * linespec.h (enum decode_line_flags): New.
229 (struct linespec_sals): New.
230 (struct linespec_result) <canonical>: Remove.
231 <pre_expanded, addr_string, sals>: New fields.
232 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
233 (decode_line_full): Declare.
234 (decode_line_1): Update.
235 * linespec.c (struct address_entry, struct linespec_state, struct
236 collect_info): New types.
237 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
238 (eq_address_entry, maybe_add_address): New functions.
239 (total_number_of_methods): Remove.
240 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
241 functions.
242 (find_methods): Change arguments. Don't canonicalize input.
243 Simplify logic.
244 (add_matching_methods, add_constructors)
245 (build_canonical_line_spec): Remove.
246 (filter_results, convert_results_to_lsals): New functions.
247 (decode_line_2): Change arguments. Rewrite for new data
248 structures.
249 (decode_line_internal): Rename from decode_line_1. Change
250 arguments. Add cleanups. Update for new data structures.
251 (linespec_state_constructor, linespec_state_destructor)
252 (decode_line_full, decode_line_1): New functions.
253 (decode_indirect): Change arguments. Update.
254 (locate_first_half): Use skip_spaces.
255 (decode_objc): Change arguments. Update for new data structures.
256 Simplify logic.
257 (decode_compound): Change arguments. Add cleanups. Remove
258 fallback code, replace with error.
259 (struct decode_compound_collector): New type.
260 (collect_one_symbol): New function.
261 (lookup_prefix_sym): Change arguments. Update.
262 (compare_symbol_name, add_all_symbol_names_from_pspace)
263 (find_superclass_methods ): New functions.
264 (find_method): Rewrite.
265 (struct symtab_collector): New type.
266 (add_symtabs_to_list, collect_symtabs_from_filename): New
267 functions.
268 (symtabs_from_filename): Change API. Rename from
269 symtab_from_filename.
270 (collect_function_symbols): New function.
271 (find_function_symbols): Change API. Rename from
272 find_function_symbol. Rewrite.
273 (decode_all_digits): Change arguments. Rewrite.
274 (decode_dollar): Change arguments. Use decode_variable.
275 (decode_label): Change arguments. Rewrite.
276 (collect_symbols): New function.
277 (minsym_found): Change arguments. Rewrite.
278 (check_minsym, search_minsyms_for_name)
279 (add_matching_symbols_to_info): New function.
280 (decode_variable): Change arguments. Iterate over all symbols.
281 (symbol_found): Remove.
282 (symbol_to_sal): New function.
283 (init_linespec_result, destroy_linespec_result)
284 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
285 New functions.
286 (decode_digits_list_mode, decode_digits_ordinary): New functions.
287 * dwarf2read.c (dw2_map_expand_apply): New function.
288 (dw2_map_symtabs_matching_filename): Rename from
289 dw2_lookup_symtab. Change arguments.
290 (dwarf2_gdb_index_functions): Update.
291 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
292 * defs.h (compare_strings): Declare.
293 * cli/cli-cmds.c (compare_strings): Move to utils.c.
294 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
295 filter_sals.
296 (compare_symtabs, filter_sals): New functions.
297 * breakpoint.h (struct bp_location) <line_number, source_file>:
298 New fields.
299 (struct breakpoint) <line_number, source_file>: Remove.
300 <filter>: New field.
301 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
302 (momentary_breakpoint_from_master, add_location_to_breakpoint):
303 Update for changes to locations.
304 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
305 breakpoint.
306 (create_breakpoint_sal): Add 'filter' argument.
307 (remove_sal, expand_line_sal_maybe): Remove.
308 (create_breakpoints_sal): Remove 'sals' argument. Handle
309 pre-expanded sals and the filter.
310 (parse_breakpoint_sals): Use decode_line_full.
311 (check_fast_tracepoint_sals): Use get_sal_arch.
312 (create_breakpoint): Create a linespec_sals. Update.
313 (break_range_command): Use decode_line_full. Update.
314 (until_break_command): Update.
315 (clear_command): Update match conditions for linespec.c changes.
316 Use DECODE_LINE_LIST_MODE.
317 (say_where): Update for changes to locations.
318 (bp_location_dtor): Free 'source_file'.
319 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
320 (update_static_tracepoint): Update for changes to locations.
321 (update_breakpoint_locations): Disable ranged breakpoint if too
322 many locations match. Update.
323 (addr_string_to_sals): Use decode_line_full. Resolve all sal
324 PCs.
325 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
326 (decode_line_spec_1): Update. Change argument name to 'flags',
327 change interpretation.
328 * block.h (block_containing_function): Declare.
329 * block.c (block_containing_function): New function.
330 * skip.c (skip_function_command): Update.
331 (skip_re_set): Update.
332 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
333 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
334 * NEWS: Add entry.
335
3362011-12-06 Tom Tromey <tromey@redhat.com>
337
338 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
339 breakpoint's pspace to be NULL.
340 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
341 * breakpoint.c (init_raw_breakpoint): Conditionally set
342 breakpoint's pspace.
343 (init_breakpoint_sal): Don't set breakpoint's pspace.
344 (prepare_re_set_context): Conditionally switch program space.
345 (addr_string_to_sals): Check executing_startup on location's
346 program space.
347
3482011-12-06 Tom Tromey <tromey@redhat.com>
349
350 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
351 * breakpoint.c (should_be_inserted): Explicitly check if program
352 space is executing startup.
353 (describe_other_breakpoints): Update.
354 (disable_breakpoints_before_startup): Change executing_startup
355 earlier. Remove loop.
356 (enable_breakpoints_after_startup): Likewise.
357 (init_breakpoint_sal): Don't use bp_startup_disabled.
358 (create_breakpoint): Don't use bp_startup_disabled.
359 (update_global_location_list): Use should_be_inserted.
360 (bkpt_re_set): Update.
361
75c8c9d7
TT
3622011-12-06 Tom Tromey <tromey@redhat.com>
363
364 * python/lib/gdb/command/pretty_printers.py
365 (InfoPrettyPrinter.invoke1): Remove extra double quote.
366
7376e450
TT
3672011-12-06 Tom Tromey <tromey@redhat.com>
368
369 * NEWS: Add MI news.
370
c642a434
UW
3712011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
372
373 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
374 (S390_LAST_BREAK_REGNUM): Likewise.
375 (S390_SYSTEM_CALL_REGNUM): Likewise.
376 (S390_NUM_REGS): Update.
377
378 (s390_regmap_last_break): Add declaration.
379 (s390x_regmap_last_break): Likewise.
380 (s390_regmap_system_call): Likewise.
381
382 (tdesc_s390_linux32v1): Add declaration.
383 (tdesc_s390_linux32v2): Likewise.
384 (tdesc_s390_linux64v1): Likewise.
385 (tdesc_s390_linux64v2): Likewise.
386 (tdesc_s390x_linux64v1): Likewise.
387 (tdesc_s390x_linux64v2): Likewise.
388
389 * s390-tdep.c: Include new target description files
390 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
391 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
392 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
393 (s390_cannot_store_register): New function.
394 (s390_write_pc): Likewise.
395 (s390_dwarf_regmap): Add fields for new registers.
396 (s390_regmap_gregset): Likewise.
397 (s390x_regmap_gregset): Likewise.
398 (s390_regmap_fpregset): Likewise.
399 (s390_regmap_upper): Likewise.
400 (s390_regmap_last_break): New variable.
401 (s390x_regmap_last_break): Likewise.
402 (s390_regmap_system_call): Likewise.
403 (s390_last_break_regset): Likewise.
404 (s390x_last_break_regset): Likewise.
405 (s390_system_call_regset): Likewise.
406 (s390_upper_regset_sections): Rename to ...
407 (s390_linux64_regset_sections): ... this.
408 (s390_linux32_regset_sections): New variable.
409 (s390x_linux64_regset_sections): Likewise.
410 (s390_linux32v1_regset_sections): Likewise.
411 (s390_linux32v2_regset_sections): Likewise.
412 (s390_linux64v1_regset_sections): Likewise.
413 (s390_linux64v2_regset_sections): Likewise.
414 (s390x_linux64v1_regset_sections): Likewise.
415 (s390x_linux64v2_regset_sections): Likewise.
416 (s390_regset_from_core_section): Handle .reg-s390-last-break and
417 .reg-s390-system-call core file sections.
418 (s390_core_read_description): Check for presence of
419 .reg-s390-last-break and .reg-s390-system-call core file
420 sections and return appropriate target description.
421 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
422 "last_break" and "system_call" in target description. Install
423 appropriate gdbarch_core_regset_sections array.
424 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
425 (_initialize_s390_tdep): Initialize additional target descriptions.
426
427 * s390-nat.c: Include "elf/common.h".
428 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
429 (have_regset_last_break): New static variable.
430 (have_regset_system_call): Likewise.
431 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
432 (s390_native_collect): Likewise.
433 (fetch_regset, store_regset, check_regset): New functions.
434 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
435 and S390_SYSTEM_CALL_REGNUM.
436 (s390_linux_store_inferior_registers): Likewise.
437 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
438 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
439
440 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
441 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
442 (s390-linux32v1-expedite): Define.
443 (s390-linux32v2-expedite): Likewise.
444 (s390-linux64v1-expedite): Likewise.
445 (s390-linux64v2-expedite): Likewise.
446 (s390x-linux64v1-expedite): Likewise.
447 (s390x-linux64v2-expedite): Likewise.
448
449 * features/s390-linux32.xml: Add orig_r2 register.
450 * features/s390-linux64.xml: Likewise.
451 * features/s390x-linux64.xml: Likewise.
452 * features/s390-linux32v1.xml: New file.
453 * features/s390-linux32v2.xml: Likewise.
454 * features/s390-linux64v1.xml: Likewise.
455 * features/s390-linux64v2.xml: Likewise.
456 * features/s390x-linux64v1.xml: Likewise.
457 * features/s390x-linux64v2.xml: Likewise.
458
459 * features/s390-linux32.c: Regenerate.
460 * features/s390-linux64.c: Likewise.
461 * features/s390x-linux64.c: Likewise.
462 * features/s390-linux32v1.c: New generated file.
463 * features/s390-linux32v2.c: Likewise.
464 * features/s390-linux64v1.c: Likewise.
465 * features/s390-linux64v2.c: Likewise.
466 * features/s390x-linux64v1.c: Likewise.
467 * features/s390x-linux64v2.c: Likewise.
468
469 * regformats/s390-linux32.dat: Regenerate.
470 * regformats/s390-linux64.dat: Regenerate.
471 * regformats/s390x-linux64.dat: Regenerate.
472 * regformats/s390-linux32v1.dat: New generated file.
473 * regformats/s390-linux32v2.dat: Likewise.
474 * regformats/s390-linux64v1.dat: Likewise.
475 * regformats/s390-linux64v2.dat: Likewise.
476 * regformats/s390x-linux64v1.dat: Likewise.
477 * regformats/s390x-linux64v2.dat: Likewise.
478
336060f3
PA
4792011-12-05 Pedro Alves <pedro@codesourcery.com>
480
481 * linux-nat.c (resume_stopped_resumed_lwps): Call
482 registers_changed.
483
049e32d3
PA
4842011-12-05 Pedro Alves <pedro@codesourcery.com>
485
486 * breakpoint.c: Include record.h.
487 (breakpoints_always_inserted_mode): Return false when the record
488 target is in use.
489
5c03c7f9 4902011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
491
492 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
493 Reinstate perror_with_name call on ptrace error. Remove #if 0.
494 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
495 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
496
fbbd034e
AS
4972011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
498
499 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
500 `i'(-Wshadow).
501
a5ff8356 5022011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
503
504 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
505
5062011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
507
a5ff8356
AS
508 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
509 of `tdep'(-Wshadow).
510
93f2a35e
JK
5112011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
512
513 Fix compilation --without-expat.
514 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
515 from ...
516 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
517
2268b414
JK
5182011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
519 Jan Kratochvil <jan.kratochvil@redhat.com>
520
521 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
522 * features/library-list-svr4.dtd: New file.
523 * remote.c (PACKET_qXfer_libraries_svr4): New.
524 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
525 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
526 * solib-svr4.c (struct svr4_library_list): New.
527 [HAVE_LIBEXPAT]: Include xml-support.h.
528 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
529 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
530 [HAVE_LIBEXPAT] (svr4_library_list_children)
531 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
532 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
533 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
534 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
535 (svr4_read_so_list): Extend the corruption message by addresses.
536 (svr4_current_sos): New variable library_list, call
537 svr4_current_sos_via_xfer_libraries.
538 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
539
585861ea
JK
5402011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 PR threads/13448
543 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
544 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
545
9750bca9
JK
5462011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
547
548 PR breakpoints/13346
549 * dwarf2read.c (process_psymtab_comp_unit): Set
550 PSYMTABS_ADDRMAP_SUPPORTED.
551 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
552 validity. New field psymtabs_addrmap_supported.
553 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
554 psymtabs_addrmap_supported.
555 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
556 !PSYMTABS_ADDRMAP_SUPPORTED.
557 (dump_psymtab, maintenance_info_psymtabs): Print also
558 psymtabs_addrmap_supported.
559
f28c316a
DE
5602011-12-01 Doug Evans <dje@google.com>
561
562 * python/py-type.c (type_object_methods): Fix "array" doc string.
563
fc0ae648
AB
5642011-12-01 Andrew Burgess <aburgess@broadcom.com>
565
566 * source.c (print_source_lines_base): Fix missing braces on else
567 clause leading to additional output.
568
d6db1fab
UW
5692011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
570
571 * s390-nat.c (SUBOFF): Remove.
572 (s390_native_supply, s390_native_collect): New functions.
573 (supply_gregset, supply_fpregset): Use s390_native_supply.
574 (fill_gregset, fill_fpregset): Use s390_native_collect.
575
576 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
577 (s390_unwind_pseudo_register): New function.
578 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
579 registers instead of PC and CC.
580 (s390_backchain_frame_unwind_cache): Likewise.
581 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
582 full GPR pseudos.
583 (s390_trad_frame_prev_register): New function.
584 (s390_frame_prev_register): Use it.
585 (s390_sigtramp_frame_prev_register): Likewise.
586 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
587 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
588 special callback to unwind any pseudo.
589
590 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
591 * features/s390-core64.xml: Likewise.
592 * features/s390x-core64.xml: Likewise.
593 * features/s390-linux32.c: Regenerate.
594 * features/s390-linux64.c: Likewise.
595 * features/s390x-linux64.c: Likewise.
596
1dd635ac
UW
5972011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
598
599 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
600
0161e4b9
UW
6012011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
602
603 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
604 instruction. Add more diagnostic output.
605
0c36327f
AS
6062011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
607
608 * MAINTAINERS (Write After Approval): Add myself to the list.
609
b4264740
SD
6102011-11-29 Sanjoy Das <sdas@igalia.com>
611
612 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
613 (jit_bfd_try_read_symtab): Fix comments.
614
87326c78
DD
6152011-11-28 DJ Delorie <dj@redhat.com>
616
617 * NEWS: Mention RL78 simulator.
618
1e3a8f45
JB
6192011-11-28 Joel Brobecker <brobecker@adacore.com>
620
621 * symfile.h (struct quick_symbol_functions): Fix the documentation
622 of field map_matching_symbols, as symbols are sorted using
623 strcmp_iw_ordered, not strcmp_iw.
624
265e52c3
JB
6252011-11-28 Paul Hilfinger <hilfinger@adacore.com>
626
627 * symfile.h (struct quick_symbol_functions): Update the
628 documentation for field map_matching_symbols.
629
1a1d5513
JB
6302011-11-28 Joel Brobecker <brobecker@adacore.com>
631
632 * ada-lang.c (compare_names): Fix wrong return value in case
633 string1 starts with the same contents as string2, followed
634 by an underscore that do not start a symbol name suffix.
635
5d9c5995
PM
6362011-11-28 Phil Muldoon <pmuldoon@redhat.com>
637
638 PR python/13369
639 PR python/13374
640
641 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
642 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
643 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
644 exceptions.
645 * python/py-type.c (typy_strip_typedefs): Ditto.
646 (typy_legacy_template_argument): Ditto.
647 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
648 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
649
2bf50f6f
JB
6502011-11-27 Joel Brobecker <brobecker@acacore.com>
651
652 * remote.c (remote_get_tracepoint_status): Delete addrbuf
653 local variable. Avoid use of sprintf_vma.
654
744ab88c
SD
6552011-11-27 Sanjoy Das <sdas@igalia.com>
656
657 Fix regression in jit.exp.
658 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
659 (jit_register_code): Set the jit_objfile_data field to the correct
660 value.
661
46ad3598
UW
6622011-11-25  Uros Bizjak  <ubizjak@gmail.com>
663
664 * alpha-tdep.c (br_opcode): New.
665 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
666 (alpha_deal_with_atomic_sequence): New function.
667 (alpha_gdbarch_init): Handle single stepping of atomic sequences
668 with alpha_deal_with_atomic_sequence.
669
e4c5f296
TG
6702011-11-24 Tristan Gingold <gingold@adacore.com>
671
672 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
673 fields. Add oso_sym, end_sym and nbr_syms.
674 (macho_register_oso): Change interface.
675 (macho_symtab_add_minsym): New function.
676 (macho_symtab_read): Rewritten.
677 (get_archive_prefix_len): Remove trailing blanks.
678 (oso_el_compare_name): Add comment.
679 (struct macho_sym_hash_entry): New structure.
680 (macho_relocate_common_syms): Remove.
681 (macho_sym_hash_newfunc): New function.
682 (macho_resolve_oso_sym_with_minsym): Likewise.
683 (macho_add_oso_symfile): Rewritten.
684 (macho_symfile_read_all_oso): Remove trailing blanks.
685 Adjust code to free oso vector.
686 (macho_symfile_read): Likewise.
687 Move code to initialize minimal symbol
688
130854df
MR
6892011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
690
691 * mips-tdep.c (extended_offset): Fix formatting.
692
3d7bb9d9
DE
6932011-11-23 Doug Evans <dje@google.com>
694
695 * dwarf2read.c (dw2_lookup_symtab): Add comment.
696 (dw2_expand_symtabs_with_filename): Ditto.
697 (dw2_expand_symtabs_matching): Ditto.
698 (dw2_map_symbol_filenames): Ditto.
699
1fbf5ada
JB
7002011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
701
702 * ada-lang.c (assign_aggregate): Minor reformatting.
703
d984108d
JB
7042011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
705
706 * ada-lang.c (assign_aggregate): Remove declaration of local
707 variable `i' which is shadowing another variable with the same
708 name declared in the outer scope.
709
18af8284
JB
7102011-11-23 Joel Brobecker <brobecker@adacore.com>
711
712 * ada-lang.c (get_base_type): Renames base_type. Adjust all
713 calls throughout this file.
714
1fc7b5d7
JB
7152011-11-23 Joel Brobecker <brobecker@adacore.com>
716
717 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
718 FormatMessage.
719
36dfb11c
TT
7202011-11-22 Tom Tromey <tromey@redhat.com>
721
722 PR mi/8444:
723 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
724 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
725 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
726 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
727 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
728 (print_it_catch_syscall, print_it_catch_exec)
729 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
730 (bpstat_print): Add 'kind' argument. Handle
731 TARGET_WAITKIND_LOADED.
732 * infrun.c (normal_stop): Update for bpstat_print change. Don't
733 handle TARGET_WAITKIND_LOADED here.
734 * breakpoint.h (bpstat_print): Update.
735
5bd6aa83
TT
7362011-11-22 Tom Tromey <tromey@redhat.com>
737
738 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
739
f5afdc18
TT
7402011-11-22 Tom Tromey <tromey@redhat.com>
741
742 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
743 Use static_assert to check the size of
744 async_reason_string_lookup.
745 * common/gdb_assert.h (static_assert): New macro.
746
a3769e0c
AM
7472011-11-22 Alan Modra <amodra@gmail.com>
748
749 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
750 destination calculation. Don't expect >> to sign extend. Don't
751 add a break if branch lands inside the sequence anywhere.
752
56767571
KS
7532011-11-21 Keith Seitz <keiths@redhat.com>
754
755 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
756 -var-evaluate-expression of an enumeration and fix expected result.
757 * gdb.mi/mi2-varvdisplay.exp: Likewise.
758
8443c207
KY
7592011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
760
761 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
762 the case where osdata->items is empty. Rename column names to a
763 canonical form to avoid problems with unusual column names.
764
97643830
YQ
7652011-11-21 Yao Qi <yao@codesourcery.com>
766
767 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
768
f196051f
SS
7692011-11-20 Stan Shebs <stan@codesourcery.com>
770
771 * NEWS: Mention tracepoint additions.
772 * breakpoint.h (struct tracepoint): New field traceframe_usage.
773 * breakpoint.c (print_one_breakpoint_location): Identify
774 tracepoints as such when reporting hit counts, report
775 trace buffer usage.
776 (create_tracepoint_from_upload): Copy status info.
777 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
778 add fields user_name, notes, start_time, stop_time.
779 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
780 * tracepoint.c (trace_user): New global.
781 (trace_notes): New global.
782 (trace_stop_notes): New global.
783 (start_tracing): Add argument and trace note handling.
784 (stop_tracing): Ditto.
785 (trace_start_command): Add notes argument.
786 (trace_stop_command): Ditto.
787 (trace_status_command): Report additional status info.
788 (trace_status_mi): Similarly.
789 (trace_save): Update, record tracepoint status.
790 (set_disconnected_tracing): Call target method directly.
791 (send_disconnected_tracing_value): Remove.
792 (set_trace_user): New function.
793 (set_trace_notes): New function.
794 (set_trace_stop_notes): New function.
795 (parse_trace_status): Handle additional status.
796 (parse_tracepoint_status): New function.
797 (parse_tracepoint_definition): Call it.
798 (tfile_get_tracepoint_status): New function.
799 (init_tfile_ops): Use it.
800 (_initialize_tracepoint): Add new setshows.
801 * target.h (struct target_ops): New methods to_get_tracepoint_status
802 and to_set_trace_notes.
803 (target_get_tracepoint_status): New macro.
804 (target_set_trace_notes): New macro.
805 * target.c (update_current_target): Add new methods.
806 * remote.c (remote_get_tracepoint_status): New function.
807 (remote_set_trace_notes): New function.
808 (init_remote_ops): Add them.
809 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
810 (mi_cmd_trace_stop): Ditto.
811
3623dc3a
SD
8122011-11-20 Sanjoy Das <sdas@igalia.com>
813
814 * jit.c: Include regcache.h.
815 (jit_gdbarch_data, jit_frame_unwind): New static variables.
816 (jit_unwind_reg_set_impl, free_reg_value_impl)
817 (jit_unwind_reg_get_impl, jit_frame_sniffer)
818 (jit_frame_unwind_stop_reason, jit_frame_this_id)
819 (jit_frame_prev_register, jit_dealloc_cache)
820 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
821 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
822 jit_prepend_unwinder.
823 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
824
1825a88d
SD
8252011-11-20 Sanjoy Das <sdas@igalia.com>
826
827 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
828 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
829 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
830 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
831 (finalize_symtab, jit_object_close_impl)
832 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
833 (free_objfile_data): New functions.
834 (_initialize_jit): Register jit_objfile_data with a proper cleanup
835 function.
836
784c47ee
SD
8372011-11-20 Sanjoy Das <sdas@igalia.com>
838
839 * jit.c: Include gdb-dlfcn.h.
840 (loaded_jit_reader, reader_init_fn_sym): New static variables.
841 (jit_reader_load, jit_reader_load_command)
842 (jit_reader_unload_command): New functions.
843 (_initialize_jit): Add commands "jit-reader-load" and
844 "jit-reader-unload".
845
a2d08b9e
SD
8462011-11-20 Sanjoy Das <sdas@igalia.com>
847
848 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
849 * config.in: Add new #define HAVE_LIBDL.
850 * configure.ac: Add check for -ldl.
851 * configure: Re-generated by autoconf.
852 * gdb-dlfcn.c: New file.
853 * gdb-dlfcn.h: New file.
854
b8e0a31c
SD
8552011-11-20 Sanjoy Das <sdas@igalia.com>
856
857 * config.in: Add new #defines: JIT_READER_DIR and
858 JIT_READER_DIR_RELOCATABLE.
859 * configure.ac: New GDB directory entry for jit-reader-dir.
860 * configure: Re-generated by autoconf.
861 * jit.c: New static variable: const char *jit_reader_dir.
862 (_initialize_jit): Relocate jit_reader_dir.
863
f997c383
SD
8642011-11-20 Sanjoy Das <sdas@igalia.com>
865
866 * Makefile.in: Add jit-reader.h as a header. Have it installed in
867 $(includedir)/gdb.
868 * configure.ac: Generate a correct value for TARGET_PTR for
869 jit-reader.h. Tell configure to generate jit-reader.h from
870 jit-reader.in.
871 * configure: Re-generated by autoconf.
872 * jit-reader.in: New file.
873 * jit.c: Include jit-reader.h.
874
dc8c0494
SD
8752011-11-20 Sanjoy Das <sdas@igalia.com>
876
877 * MAINTAINERS (Write After Approval): Add myself to the list.
878
01efb936
UW
8792011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
880
881 * findvar.c (read_frame_register_value): Respect value_offset
882 of the register value. Remove big-endian special case.
883
732f3f12
TT
8842011-11-18 Tom Tromey <tromey@redhat.com>
885
886 PR build/7196:
887 * remote.c (putpkt_for_catch_errors): New function.
888 (remote_kill): Use it.
889
bfccc43c
YQ
8902011-11-18 Yao Qi <yao@codesourcery.com>
891
892 * breakpoint.c (create_breakpoint): Produce query message according to
893 breakpoint's type.
894 Allocate tracepoint per correct type.
895 Don't check SALs for pending fast tracepoints.
896 * tracepoint.c (process_tracepoint_on_disconnect): New.
897 (disconnect_tracing): Call process_tracepoint_on_disconnect.
898
3ea46bff
YQ
8992011-11-18 Yao Qi <yao@codesourcery.com>
900
901 * breakpoint.c (install_breakpoint): Add one more parameter so that
902 update_global_location_list is called conditionally.
903 (create_fork_vfork_event_catchpoint): Update.
904 (create_syscall_event_catchpoint): Update.
905 (create_breakpoint_sal): Update.
906 (create_breakpoint_sal): Update. Call do_cleanups before
907 install_breakpoint.
908 * ada-lang.c (create_ada_exception_catchpoint): Update.
909 * breakpoint.h (install_breakpoint): Update declaration.
910
598cfb71
UW
9112011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
912
913 * spu-tdep.c (spu_return_value): Fix handling of
914 TYPE_CALLING_CONVENTION annotation.
915
caf4328c
UW
9162011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
917
918 * skip.c (skip_function_command): Work around uninitialized
919 variable warning.
920
2b54dda2
DM
9212011-11-16 David S. Miller <davem@davemloft.net>
922
923 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
924 'tv_usec' to long for printf since these fields have a type which
925 varies.
926
93bf33fd
DE
9272011-11-15 Doug Evans <dje@google.com>
928
929 * buildsym.c (add_symbol_to_list): Delete outdated comment.
930
9cc10fd1
PK
9312011-11-15 Paul Koning <paul_koning@dell.com>
932
933 * python/py-type.c (typy_get_composite): New function.
934 (typy_nonzero): New function.
935 (typy_values): Rename from typy_fields.
936 (typy_fields): New function.
937 (typy_length): Raise exception if not struct, union, or enum type.
938 (typy_getitem): Ditto.
939 (typy_has_key): Ditto.
940 (typy_make_iter): Ditto.
941
c011a4f4
DE
9422011-11-15 Doug Evans <dje@google.com>
943
944 * NEWS: Mention new parameter basenames-may-differ.
945 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
946 ! basenames_may_differ.
947 * psymtab.c (lookup_partial_symtab): Ditto.
948 * symtab.c (lookup_symtab): Ditto.
949 (basenames_may_differ): New global.
950 (_initialize_symtab): New parameter basenames-may-differ.
951 * symtab.h (basenames_may_differ): Declare.
952
865ecab4
LM
9532011-11-15 Pedro Alves <pedro@codesourcery.com>
954 Luis Machado <lgustavo@codesourcery.com>
955
956 * auxv.c: Include observer.h.
957 (auxv_inferior_data_cleanup): New.
958 (invalidate_auxv_cache_inf): New.
959 (invalidate_auxv_cache): New.
960 (get_auxv_inferior_data): New.
961 (auxv_inferior_data): New static global.
962 (auxv_info): New structure.
963 (target_auxv_search): Use get_auxv_inferior_data instead of
964 target_read_alloc and don't free cached buffers.
965 (fprint_target_auxv): Likewise
966 (_initialize_auxv): Register per-inferior auxv cache and register
967 observers to invalidate auxv cache when needed.
968
ed59ded5
DE
9692011-11-14 Doug Evans <dje@google.com>
970
971 Make "!" an alias for "shell".
972 * NEWS: Add mention.
973 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
974 adding "!" command, always add it.
975 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
976 command of length one.
977
405f8e94
SS
9782011-11-14 Stan Shebs <stan@codesourcery.com>
979 Kwok Cheung Yeung <kcy@codesourcery.com>
980
981 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
982 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
983 the minimum instruction size for fast tracepoints.
984 * target.h (struct target_ops): Add new method
985 to_get_min_fast_tracepoint_insn_len.
986 (target_get_min_fast_tracepoint_insn_len): New.
987 * target.c (update_current_target): Set up new target operation.
988 * remote.c (remote_write_bytes_aux): Fix typo.
989 (remote_get_min_fast_tracepoint_insn_len): New.
990 (init_remote_ops): Initialize new field.
991
3e05895e
TT
9922011-11-14 Tom Tromey <tromey@redhat.com>
993
994 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
995 (encode_actions): Likewise.
996
1e4d1764
YQ
9972011-11-14 Yao Qi <yao@codesourcery.com>
998
999 * remote.c (struct remote_state): <install_in_trace> new field.
1000 (PACKET_InstallInTrace): New enum value.
1001 (remote_install_in_trace_feature): Support InstallInTrace.
1002 (remote_supports_install_in_trace): Likewise.
1003 (remote_protocol_features): Likewise.
1004 (_initialize_remote): Likewise.
1005 (remote_can_download_tracepoint): New.
1006 * target.h (struct target): New field
1007 `to_can_download_tracepoint'.
1008 (target_can_download_tracepoint): New macro.
1009 * target.c (update_current_target): Update.
1010 * breakpoint.h (struct bp_location): Add comment on field
1011 `duplicate'.
3ccd4ac6
YQ
1012 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1013 and tracepoint.
1e4d1764
YQ
1014 (remove_breakpoints): Don't remove tracepoints.
1015 (tracepoint_locations_match ): New.
1016 (breakpoint_locations_match): Call it.
1017 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1018 (download_tracepoint_locations): New.
1019 (update_global_location_list): Call it.
1020 * tracepoint.c (find_matching_tracepoint): Delete.
1021 (find_matching_tracepoint_location): Renamed from
1022 find_matching_tracepoint. Return bp_location rather than
1023 tracepoint.
1024 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1025 tracepoint is found.
1026
e8ba3115
YQ
10272011-11-14 Yao Qi <yao@codesourcery.com>
1028
1029 * target.h (struct target): <to_download_tracepoint> Change type
1030 of parameter from tracepoint to bp_location.
1031 * target.c (update_current_target): Update.
1032 * tracepoint.c (start_tracing): Update.
1033 * remote.c (remote_download_tracepoint): Remove loop for each location
1034 of a tracepoint.
1035
edcc485a
MR
10362011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1037
1038 * i386-nat.c (i386_insert_hw_breakpoint): Call
1039 i386_update_inferior_debug_regs.
1040 (i386_remove_hw_breakpoint): Likewise.
1041
3742cc8b
YQ
10422011-11-14 Yao Qi <yao@codesourcery.com>
1043
1044 * breakpoint.c (init_raw_breakpoint): Call
1045 add_location_to_breakpoint to replace duplicated code.
1046 (add_location_to_breakpoint): Adjust the breakpoint's
1047 address prior to allocating a location.
1048
71eba9c2 10492011-11-12 Matt Rice <ratmice@gmail.com>
1050
1051 * macrocmd.c (macro_no_macro_info): New function.
1052 (macro_expand_command): Use macro_no_macro_info.
1053 (macro_expand_once_command): Ditto.
1054 (info_macro_command): Add argument processing,
1055 move info_definitions_command here.
1056 (_initialize_macrocmd): Remove info definitions command.
1057 Add arguments to info macro help text.
1058 * NEWS: Replace info definitions command with new info macro options.
1059
731971ed
KS
10602011-11-11 Keith Seitz <keiths@redhat.com>
1061
1062 PR gdb/12843
1063 * linespec.c (locate_first_half): Keep ':' if it looks
1064 like it could be part of a Windows path starting with
1065 a drive letter.
1066
6953d224
PA
10672011-11-10 Pedro Alves <pedro@codesourcery.com>
1068
1069 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1070 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1071
0c94aa73
PA
10722011-11-10 Pedro Alves <pedro@codesourcery.com>
1073
1074 * target.c (target_waitstatus_to_string): Handle
1075 TARGET_WAITKIND_NO_RESUMED.
1076
f6b47be4
DE
10772011-11-10 Doug Evans <dje@google.com>
1078
74e2f255
DE
1079 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1080 `need_fullname'.
1081 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1082 (map_partial_symbol_filenames): Ditto. All callers updated.
1083 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1084 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1085 parameter need_fullname.
1086
256f06f3
DE
1087 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1088 * source.c (symtab_to_fullname): Ditto.
1089
50f182aa
DE
1090 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1091 * gdb-demangle.h: ... here. New file.
1092 * demangle.c: #include "gdb-demangle.h".
1093 (_initialize_demangler): Use initialize_file_ftype for prototype.
1094 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1095 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1096 from utils.c
1097 * utils.c: Update. #include "gdb-demangle.h".
1098 * symtab.h (asm_demangle): Delete.
1099 (demangle): Move declaration next to use.
1100 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1101 * dwarf2read.c: #include "gdb-demangle.h".
1102 * gnu-v2-abi.c: Ditto.
1103 * jv-typeprint.c: Ditto.
1104 * mdebugread.c: Ditto.
1105 * p-typeprint.c: Ditto.
1106 * stabsread.c: Ditto.
1107 * printcmd.c: Ditto.
1108 (asm_demangle): Delete declaration.
1109 * tui/tui-stack.c: #include "gdb-demangle.h".
1110
f6b47be4
DE
1111 * python/py-type.c (typy_fields_items): Call check_typedef.
1112
22355c90
JB
11132011-11-10 Joel Brobecker <brobecker@adacore.com>
1114
1115 * findvar.c (read_frame_register_value): Read the correct bytes
1116 from registers on big-endian architectures.
1117
bd119cf1 11182011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1119
1120 * procfs.c (load_syscalls): Make a cleanup.
1121 (open_procinfo_files): fd==0 is ok.
1122
0a86f364
JB
11232011-11-10 Joel Brobecker <brobecker@adacore.com>
1124
1125 * procfs.c (iterate_over_mappings): Call do_cleanups before
1126 returning.
1127
9bc118a5
DE
11282011-11-09 Doug Evans <dje@google.com>
1129
1130 * gdbtypes.c (check_typedef): Document that this function can
1131 throw an exception.
1132
a7860e76
TT
11332011-11-09 Tom Tromey <tromey@redhat.com>
1134
1135 PR c++/13342:
1136 * valops.c (value_full_object): Return early if real type is
1137 smaller than the enclosing type.
1138
60965737
YQ
11392011-11-08 Yao Qi <yao@codesourcery.com>
1140
1141 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1142
72a2e3dc
MI
11432011-11-08 Meador Inge <meadori@codesourcery.com>
1144
1145 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1146 register when the frame can't be determined.
1147 * arm-tdep.c (arm_analyze_prologue): Ditto.
1148
ce3b0ff7
SS
11492011-11-07 Stan Shebs <stan@codesourcery.com>
1150
1151 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1152
2b914b52
JB
11532011-11-07 Joel Brobecker <brobecker@adacore.com>
1154
1155 * infrun.c (handle_inferior_event): Minor reformatting.
1156
6f809020
DE
11572011-11-05 Doug Evans <dje@google.com>
1158
1159 * source.c (forget_cached_source_info_for_objfile): Move call to
1160 objfile->sf->qf->forget_cached_source_info outside of
1161 ALL_OBJFILE_SYMTABS loop.
1162 (forget_cached_source_info): Delete unused variable `s'.
1163
75d12218
JK
11642011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1165
1166 * i386-nat.c (dr_ref_count): Remove unused variable.
1167
e565b837
DE
11682011-11-05 Doug Evans <dje@google.com>
1169
1170 * main.c (captured_main): Set lim_at_start before calling
1171 make_command_stats_cleanup.
1172
0a1c4d10
DE
11732011-11-04 Doug Evans <dje@google.com>
1174
1175 * utils.c: #include "timeval-utils.h".
1176 (cmd_stats): Rename start_time to start_cpu_time.
1177 New member start_wall_time.
1178 (report_command_stats): Report wall time.
1179 (make_command_stats_cleanup): Record start wall time.
1180
a1d705ee
TT
11812011-11-04 Tom Tromey <tromey@redhat.com>
1182
1183 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1184
81de56be
RO
11852011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186
1187 * coff-pe-read.c: Include defs.h before bfd.h.
1188
3ab1ec27
PM
11892011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1190
1191 PR Python/13345
1192
1193 * python/python.c (python_run_simple_file): Expand tilde in path.
1194
cd829959
PM
11952011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1196
1197 PR Python/13363
1198
1199 * python/py-type.c (typy_lookup_type): Do not return a type in
1200 an exception handler.
1201
080ad648
JK
12022011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1203 Eli Zaretskii <eliz@gnu.org>
1204
1205 * linux-nat.c (_initialize_linux_nat): Improve help
1206 for `info proc stat', `info proc status', `info proc cwd',
1207 `info proc cmdline' and `info proc exe'.
1208
3065dfb6
SS
12092011-11-02 Stan Shebs <stan@codesourcery.com>
1210
1211 String collection for tracepoints.
1212 * NEWS: Mention string collection.
1213 * common/ax.def (tracenz): New bytecode.
1214 * ax-gdb.h (trace_string_kludge): Declare.
1215 * ax-gdb.c: Include valprint.h and c-lang.h.
1216 (trace_string_kludge): New global.
1217 (gen_traced_pop): Add string case.
1218 (agent_command): Add string case.
1219 * tracepoint.h (decode_agent_options): Declare.
1220 * tracepoint.c: Include cli-utils.h.
1221 (decode_agent_options): New function.
1222 (validate_actionline): Call it.
1223 (encode_actions_1): Ditto.
1224 * target.h (struct target_ops): New method to_supports_string_tracing.
1225 (target_supports_string_tracing): New macro.
1226 * target.c (update_current_target): Add to_supports_string_tracing.
1227 * remote.c (struct remote_state): New field string_tracing.
1228 (remote_string_tracing_feature): New function.
1229 (remote_protocol_features): New feature tracenz.
1230 (remote_supports_string_tracing): New function.
1231 (init_remote_ops): Set to_supports_string_tracing.
1232
f179e162
JK
12332011-11-02 Pedro Alves <pedro@codesourcery.com>
1234 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 * linux-nat.c: Include cli/cli-utils.h.
1237 (enum info_proc_what): New.
1238 (linux_nat_info_proc_cmd): Rename to ...
1239 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1240 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1241 status_f and stat_f from WHAT. Throw error on extra parameters.
1242 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1243 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1244 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1245 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1246 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1247 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1248 `info proc cmdline', `info proc exe' and `info proc all' as real
1249 subcommands of `info proc'.
1250
7b35ec7f 12512011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1252
1253 * Makefile.in: (SFILES): Add skip.c.
1254 (HFILES_NO_SRCDIR): Add skip.h.
1255 (COMMON_OBS): Add skip.o.
1256 * skip.h, skip.c: New.
1257 * breakpoint.h (set_default_breakpoint): Remove.
1258 (get_sal_arch): Declare.
1259 * breakpoint.c: Remove default_breakpoint_valid,
1260 default_breakpoint_address, default_breakpoint_symtab,
1261 default_breakpoint_line, default_breakpoint_pspace variables.
1262 (get_sal_arch): Make public.
1263 (set_default_breakpoint): Remove.
1264 (parse_breakpoint_sals, create_breakpoint, clear_command,
1265 decode_line_spec_1): Remove uses of default_breakpoint variables;
1266 replaced with function calls into stack.c.
1267 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1268 * cli/cli-cmds.c: Add skiplist.
1269 (init_cmd_lists): Initialize skiplist.
1270 (init_cli_cmds): Fix comment (classes of commands appear in
1271 alphabetical order).
1272 * infrun.c (handle_inferior_event): Add check that we don't step into
1273 a function whose pc is marked for skip.
1274 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1275 last_displayed_addr, last_displayed_symtab, last_displayed_line
1276 variables.
1277 (set_last_displayed_sal): New static function.
1278 (print_frame_info): Switch call to set_default_breakpoint to call to
1279 set_last_displayed_sal.
1280 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1281 get_last_displayed_pspace, get_last_displayed_addr,
1282 get_last_displayed_symtab, get_last_displayed_line,
1283 get_last_displayed_sal): New public functions.
1284 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1285 get_last_displayed_pspace, get_last_displayed_addr,
1286 get_last_displayed_symtab, get_last_displayed_line,
1287 get_last_displayed_sal): Declare.
1288
b60e1588
JL
12892011-11-01 Justin Lebar <justin.lebar@gmail.com>
1290
1291 * MAINTAINERS (Write After Approval): Add myself to the list.
1292
d31647d2
YQ
12932011-10-29 Yao Qi <yao@codesourcery.com>
1294
1295 * infcmd.c (disconnect_command): Call disconnect_tracing.
1296
b1d96efd
JK
12972011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1298
1299 Code cleanup.
1300 * symtab.c (skip_prologue_sal): Code reformatting.
1301
4dfb2365
JK
13022011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 PR symtab/13208
1305 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1306 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1307 SAI.
1308
0e5bf2a8
PA
13092011-10-28 Pedro Alves <pedro@codesourcery.com>
1310
1311 * linux-nat.c (linux_nat_filter_event): Remove `options'
1312 parameter, and dead code that used it. If we're handling a
1313 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1314 in our lwp list, re-add it.
1315 (check_zombie_leaders): New.
1316 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1317 wait for children with WNOHANG, and always wait for all children.
1318 Don't check for no resumed children upfront. Simplify wait loop.
1319 Check for zombie thread group leaders after handling all wait
1320 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1321 unwaited-for children left.
1322 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1323 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1324 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1325 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1326
821296b7
SA
13272011-10-28 Sterling Augustine <saugustine@google.com>
1328
1329 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1330 * symtab.c (free_completion_list): New function.
1331 (do_free_completion_list): Likewise.
1332 (default_make_symbol_completion_list_break_on): New variable
1333 back_to. Call make_cleanup and discard_cleanups.
1334 (make_source_files_completion_list): Likewise.
1335
03c3051a
PK
13362011-10-28 Paul Koning <paul_koning@dell.com>
1337
1338 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1339 * NEWS: Mention deep_items.
1340
8e7ebaf5
PA
13412011-10-28 Alen Skondro <askondro@gmail.com>
1342
8de33dc2 1343 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1344 defined.
1345
e0c6ef61
MI
13462011-10-27 Meador Inge <meadori@codesourcery.com>
1347
1348 * MAINTAINERS (Write After Approval): Add myself to the list.
1349
b56d6f31
JB
13502011-10-27 Joel Brobecker <brobecker@adacore.com>
1351
1352 * value.h (read_frame_register_value): Add declaration.
1353 * findvar.c (read_frame_register_value): New function.
1354 (value_from_register): Use read_frame_register_value
1355 instead of get_frame_register_value + value_contents_copy
1356 to get value contents.
1357
d234ef5c
DE
13582011-10-27 Doug Evans <dje@google.com>
1359
1360 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1361 source_script_from_stream if it may have been found on the search path.
1362 * python/py-auto-load.c (source_section_scripts): Pass full path to
1363 source_python_script_for_objfile.
1364 * python/python.c (source_python_script): Delete stream parameter.
1365 All callers updated.
1366 (source_python_script_for_objfile): Ditto.
1367 * python/python-internal.h (source_python_script_for_objfile): Update.
1368 * python/python.h (source_python_script): Update.
1369
d849d44f
TT
13702011-10-27 Tom Tromey <tromey@redhat.com>
1371
1372 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1373 (ada_sals_for_line): Remove declarations.
1374
2231f1fb
KP
13752011-10-27 Kevin Pouget <kevin.pouget@st.com>
1376
1377 Move unwind reasons to an external .def file
1378 * frame.c (frame_stop_reason_string): Rewrite using
1379 unwind_stop_reasons.def.
1380 * frame.h (enum unwind_stop_reason): Likewise.
1381 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1382 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1383 constants for bound-checking.
1384 * unwind_stop_reasons.def: New file.
1385 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1386 instead of a distinct value.
1387
f77b9a5d
PM
13882011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1389
1390 PR python/13331
1391
1392 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1393 (convert_values_to_python): Return on Python tuple allocation
1394 failure. Return NULL on value conversion error.
1395
76dce0be
PM
13962011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1397
1398 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1399 (bppy_set_task): Ditto.
1400 (bppy_delete_breakpoint): Ditto.
1401 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1402 (gdbpy_lookup_global_symbol): Ditto.
1403 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1404 * python/py-frame.c (frapy_is_valid): Ditto.
1405 (frame_info_to_frame_object): Ditto.
1406 * python/py-type.c (typy_lookup_type): Ditto.
1407 (typy_getitem): Ditto.
1408 (typy_has_key): Ditto.
1409 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1410
f17b6955
JB
14112011-10-26 Joel Brobecker <brobecker@adacore.com>
1412
1413 * gdbarch.h: Regenerate.
1414
86ba1042
JB
14152011-10-26 Meador Inge <meadori@codesourcery.com>
1416
1417 * gdbarch.sh (function_list): Use 'pstring' when printing
1418 'gcore_bfd_target'.
1419 * gdbarch.c: Regenerate.
1420
c34fd852
UW
14212011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1422
1423 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1424 and frame caches if PTID refers to all threads of a process.
1425
931bb47f
UW
14262011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1429 to create_breakpoint.
1430
88aed45e
UW
14312011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1432
1433 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1434 (ppc_sysv_abi_push_dummy_call): Use it.
1435 (do_ppc_sysv_return_value): Likewise.
1436 (ppc64_sysv_abi_push_dummy_call): Likewise.
1437 (ppc64_sysv_abi_return_value): Likewise.
1438
3eaf3fa2
PK
14392011-10-26 Paul Koning <paul_koning@dell.com>
1440
1441 * python/lib/gdb/types.py (deepitems): New function.
1442
913460fc
PK
14432011-10-25 Paul Koning <paul_koning@dell.com>
1444
1445 PR python/13327
1446
1447 * python/py-value.c (value_to_value_object): Remove fetching of
1448 the value if it was lazy.
1449 (valpy_get_is_lazy): New function.
1450 (valpy_fetch_lazy): New function.
1451
2b5b9d09
JB
14522011-10-24 Joel Brobecker <brobecker@adacore.com>
1453
1454 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1455 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1456
e21ffe51
PA
14572011-10-24 Pedro Alves <pedro@codesourcery.com>
1458
1459 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1460 event, in non-stop, if not stopping, make sure the new lwp has
1461 last_resume_kind set to resume_continue. Assert that when we're
1462 resuming the new lwp, its last_resume_kind is resume_continue.
1463
7aee8dc2
PA
14642011-10-24 Pedro Alves <pedro@codesourcery.com>
1465
1466 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1467 already set when marking the event thread as not executing in
1468 non-stop mode.
1469
4b4e080e
PA
14702011-10-24 Pedro Alves <pedro@codesourcery.com>
1471
1472 * infrun.c (handle_inferior_event): Add debug output for
1473 TARGET_WAITKIND_NO_HISTORY.
1474
baacfb07
PM
14752011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1476
1477 * NEWS: Move set/show extended-prompt to "New Options". Expand
1478 description. Fix typos.
1479
8432bc41
PM
14802011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1481
1482 PR python/13310
1483
1484 * python/py-param.c (call_doc_function): Correctly deference on
1485 function exit.
1486
6cda5a20
JB
14872011-10-21 Joel Brobecker <brobecker@adacore.com>
1488
1489 * ada-tasks.c (print_ada_task_info): Fix computation of
1490 number of tasks displayed in command output.
1491
13294f7d
JK
14922011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1493 Ulrich Weigand <uweigand@de.ibm.com>
1494
1495 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1496 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1497 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1498 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1499 gdbarch_unwind_pc.
1500
460c1c54
CC
15012011-10-20 Cary Coutant <ccoutant@google.com>
1502
1503 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1504 section to...
1505 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1506 flag. Adjust all callers.
1507 (process_psymtab_comp_unit): Remove adjustment for type section.
1508
a10964d1
AR
15092011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1510
1511 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1512 arguments by adding OBJFILE. Instead of getting objfile from
1513 symbol's symtab, use new argument OBJFILE.
1514 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1515 arguments by adding OBJFILE.
1516 * gdb/dwarf2read.c (new_symbol_full): Change call to
1517 cp_scan_for_anonymous_namespaces to match new signature.
1518 * gdb/stabsread.c (define_symbol): Change call to
1519 cp_scan_for_anonymous_namespaces to match new signature.
1520
27ca1a5b
PM
15212011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1522
1523 PR python/13308
1524 PR python/13309
1525
1526 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1527 leak.
1528 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1529 leak. Delete unused variables.
1530
9df2fbc4
PM
15312011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1532
1533 PR python/12656
1534
1535 * python/py-frame.c (frapy_read_var): Use const struct *block.
1536 * python/py-type.c (typy_lookup_typename): Likewise.
1537 (typy_lookup_type): Likewise.
1538 (typy_legacy_template_argument): Likewise.
1539 (typy_template_argument): Likewise.
1540 (gdbpy_lookup_type): Likewise.
1541 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1542 * python/py-block.c (blpy_block_object): Likewise.
1543 (blpy_iter): Likewise.
1544 (blpy_get_start): Likewise.
1545 (blpy_get_end): Likewise.
1546 (blpy_get_function): Likewise.
1547 (blpy_get_superblock): Likewise.
1548 (set_block): Likewise.
1549 (block_to_block_object): Likewise.
1550 (block_object_to_block): Likewise.
1551 (blpy_is_valid): Likewise.
1552 (blpy_get_global_block): New function.
1553 (blpy_get_static_block): New function.
1554 (blpy_is_global): New function.
1555 (blpy_is_static): New function.
1556 * blockframe.c (block_innermost_frame): Likewise.
1557 * valops.c (value_of_variable): Likewise.
1558 * frame.h: Update prototypes.
1559 * python/python-internal.h: Likewise.
1560 * value.h: Likewise.
1561
4743b735
CC
15622011-10-19 Cary Coutant <ccoutant@google.com>
1563
1564 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1565 type_offset field.
1566
6caca83c
CC
15672011-10-19 Cary Coutant <ccoutant@google.com>
1568
1569 * dwarf2read.c (peek_abbrev_code): New function.
1570 (dw2_get_file_names): Check for dummy compilation units.
1571 (create_debug_types_hash_table): Likewise.
1572 (process_psymtab_comp_unit): Likewise.
1573 (load_partial_comp_unit): Likewise.
1574 (load_full_comp_unit): Likewise.
1575
43136979
AR
15762011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1577
1578 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1579 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1580 pt_phdr if PT_PHDR was found.
1581
0a07729b
TT
15822011-10-17 Joost van der Sluis <joost@cnoc.nl>
1583
1584 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1585 type or "<unnamed type"> when there is no name assigned.
1586 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1587 avoid a sigint when no name is assigned.
1588
21ae7a4d
JK
15892011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1590
1591 Revert:
1592 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1593 * dwarf2expr.c (ctx_no_read_reg): New function.
1594 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1595 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1596 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1597 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1598
32d1c362
DE
15992011-10-16 Doug Evans <dje@google.com>
1600
1601 * NEWS: Document python gdb.printing.register_pretty_printer's new
1602 `replace' parameter.
1603
da096638
KS
16042011-10-14 Keith Seitz <keiths@redhat.com>
1605
1606 PR c++/13225
1607 * eval.c (evaluate_subexp_standard): Do not construct
1608 an array of types; pass the value array directly to
1609 find_overload_match.
1610 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1611 (rank_function): Take an array of values instead of types.
1612 (rank_one_type): Add struct value * parameter.
1613 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1614 (rank_function): For each argument, pass the argument's
1615 value to rank_one_type.
1616 (rank_one_type): Add VALUE parameter.
1617 If the parameter type is a pointer and the argument type
1618 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1619 VALUE is zero.
1620 Update all calls to rank_one_type, passing NULL for new
1621 VALUE parameter.
1622 * valarith.c (value_user_defined_cpp_op): Do not construct
1623 an array of types; pass the value array directly to
1624 find_overload_match.
1625 * valops.c (find_overload_method_list): Take an array of
1626 values instead of types.
1627 Save the type of OBJP for later use.
1628 Update calls to find_oload_champ, and find_oload_champ_namespace.
1629 (find_oload_champ_namespace): Take an array of values instead
1630 of types.
1631 (find_oload_champ_namespace_loop): Likewise.
1632 (find_oload_champ): Likewise.
1633 (classify_oload_match): Inspect all arguments
1634 until INCOMPATIBLE is found. Return the worst badness found
1635 otherwise.
1636 (compare_parameters): Update call to rank_one_type.
1637 * value.h (find_overload_match): Take an array of values instead
1638 of types.
1639
3957565a
JK
16402011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 Drop lazy lm_info reading.
1643 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1644 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1645 (lm_info_read): New function.
1646 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1647 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1648 lm_dynamic_from_link_map.
1649 (lm_next, lm_prev, lm_name): Remove.
1650 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1651 initialization incl. read_memory. No longer use lm_name.
1652 (svr4_free_so): Drop lm_info->lm freeing.
1653 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1654 explicit lm_addr and lm initialization.
1655 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1656 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1657 lm_name.
1658
cb08cc53
JK
16592011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1660 Paul Pluzhnikov <ppluzhnikov@google.com>
1661
1662 * defs.h (struct so_list): New forward declaration.
1663 (make_cleanup_free_so): New declaration.
1664 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1665 (svr4_free_so): Move the function here from downwards. Handle NULL
1666 so->lm_info.
1667 (svr4_free_library_list): New.
1668 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1669 Use more cleanups. Use new parameter ignore_first instead of
1670 ignore_first_link_map_entry.
1671 (svr4_current_sos): New variable ignore_first, initialize it. New
1672 variable back_to, use it for svr4_free_library_list protection.
1673 (svr4_free_so): Remove - move upwards.
1674 * utils.c: Include solist.h.
1675 (do_free_so, make_cleanup_free_so): New functions.
1676
22c05d8a
JK
16772011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1678
1679 Fix internal error regression.
1680 * value.c (value_primitive_field): Handle value_optimized_out. Move
1681 packed bitfields comment.
1682
d930d06e
TT
16832011-10-13 Tom Tromey <tromey@redhat.com>
1684
1685 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1686 always released.
1687
2ff6b080
TT
16882011-10-13 Tom Tromey <tromey@redhat.com>
1689
1690 * python/py-type.c (typy_has_key): Make 'field' const.
1691
d6c5869f
LM
16922011-10-13 Luis Machado <lgustavo@codesourcery.com>
1693
1694 * remote.c (remote_save_trace_data): Invert comparison.
1695
a70633a2
LM
16962011-10-13 Luis Machado <lgustavo@codesourcery.com>
1697
1698 * tracepoint.c (trace_save_command): Use filename instead of
1699 args when printing.
1700
e103e986
JK
17012011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1704 if .size is 0.
1705
db24da6d
YQ
17062011-10-13 Yao Qi <yao@codesourcery.com>
1707
1708 PR gdb/12703
1709 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1710 whether insn is a 32-bit Thumb-2 instruction.
1711 (thumb_in_function_epilogue_p): Likewise.
1712 (thumb_get_next_pc_raw): Likewise.
1713 (arm_breakpoint_from_pc): Likewise.
1714
1d6edc3c
JK
17152011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1718 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1719 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1720 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1721 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1722 zero DATA.
1723 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1724 validity.
1725 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1726 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1727 clear DATA on zero SIZE.
1728
adabb602
DE
17292011-10-12 Doug Evans <dje@google.com>
1730
1731 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1732 header->first_die_offset here. All callers updated.
1733
5048e516
JK
17342011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 Fix compatibility with texinfo versions older than 4.12.
1737 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1738 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1739 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1740 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1741 * configure: Regenerate.
1742 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1743 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1744 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1745
0574c78f
GB
17462011-10-12 Gary Benson <gbenson@redhat.com>
1747
1748 * breakpoint.h (pc_at_non_inline_function): Declare.
1749 * breakpoint.c (is_non_inline_function,
1750 pc_at_non_inline_function): New functions.
1751 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1752 if the stop is at a location where functions cannot be inlined.
1753
12d9289a
PA
17542011-10-12 Pedro Alves <pedro@codesourcery.com>
1755
1756 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1757 the core wanted them stopped, or if they now have a pending event
1758 to report.
ecf8e7f5
PA
1759 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1760 down to stop_and_resume_callback.
1761 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1762 having new pending events after calling linux_nat_filter_event.
12d9289a 1763
96408a79
SA
17642011-10-11 Sterling Augustine <saugustine@google.com>
1765
1766 * dwarf2read.c: Undo inadvertent changes in previous commit.
1767
9c6c53f7
SA
17682011-10-11 Sterling Augustine <saugustine@google.com>
1769
1770 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1771 logic.
1772
0e8aefe7
UW
17732011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1774
1775 * symfile.c (separate_debug_file_exists): Fix condition.
1776
349d1385
DM
17772011-10-11 David S. Miller <davem@davemloft.net>
1778
1779 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1780 static.
1781 * regcache.h (regcache_restore): Remove declaration.
1782
205c306f
DM
1783 * gdbarch.sh: New field 'long_long_align_bit'.
1784 * gdbarch.c, gdbarch.h: Regenerate.
1785 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1786 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1787
941b2081
JK
17882011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 Revert this part of:
1791 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 Support @entry in input expressions.
1793 * c-exp.y (ENTRY, unknown_cpp_name): New.
1794 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1795 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1796 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1797 (name_not_typename: ENTRY): New.
1798 (yylex): Recognize ENTRY.
1799
1800 Reimplement @entry in input expressions.
1801 * c-exp.y (ENTRY): New.
1802 (variable: name_not_typename ENTRY): New.
1803 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1804
3c4d7e12
PA
18052011-10-11 Pedro Alves <pedro@codesourcery.com>
1806
1807 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1808 parent and child's pids as soon as we detect a clone event.
1809 Adjust another debug message.
1810
ea23808b
PA
18112011-10-11 Pedro Alves <pedro@codesourcery.com>
1812
1813 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1814 not zombie instead of reading the whole file.
1815
904578ed
JK
18162011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1817
1818 Fix separate debuginfo warning with "remote:" access.
1819 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1820 * symfile.c (get_file_crc): New function with the code moved from ...
1821 (separate_debug_file_exists): ... this function, specifically variables
1822 buffer and count. New variable verified_as_different, set it. Remove
1823 file_crc initialization. Verify also if both files are not the same
1824 manually, if needed.
1825
51370a33
YQ
18262011-10-11 Yao Qi <yao@codesourcery.com>
1827
1828 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1829 to get address.
1830
0838fb57
DE
18312011-10-10 Doug Evans <dje@google.com>
1832
1833 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1834 libthread_db when we load libpthread or the main symbol file.
1835 (thread_db_inferior_created): New function.
1836 (_initialize_thread_db): Attach inferior_created observer.
1837 * linux-nat.c (linux_child_post_attach): Remove call to
1838 check_for_thread_db.
1839 (linux_child_post_startup_inferior): Ditto.
1840 * objfiles.h (OBJF_MAINLINE): Define.
1841 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1842 allocate_objfile when appropriate.
1843
623bd5b7
UW
18442011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1845
1846 PR gdb/13218
1847 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1848 Remove unused variables.
1849 (get_linux_version): Remove function.
1850 (_initialize_arm_linux_nat): Do not call it.
1851
79395f92
PA
18522011-10-10 Pedro Alves <pedro@codesourcery.com>
1853
1854 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1855 new clone lwp if the core asked it to stop. Don't pass on
1856 unexpected signals to the new clone; leave them pending instead.
1857
eff3df78
PA
18582011-10-10 Pedro Alves <pedro@codesourcery.com>
1859
1860 * linux-nat.c (resume_lwp): Remove redundant debug output.
1861
4b60df3d
PA
18622011-10-10 Pedro Alves <pedro@codesourcery.com>
1863
1864 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1865 last_resume_kind before clearing it, and use the copy instead to
1866 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1867 resume_clear_callback in the non-stop path too.
1868
6501578c
YQ
18692011-10-09 Yao Qi <yao@codesourcery.com>
1870
1871 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1872 Honor OPTIONS and VAL's type.
1873 (common_val_print, value_print): Update to pass one more parameter.
1874
5a56e9c5
DE
18752011-10-09 Doug Evans <dje@google.com>
1876
1877 Add new "alias" command.
1878 * NEWS: Mention new command.
1879 * command.h (valid_user_defined_cmd_name_p): Declare.
1880 * defs.h (make_cleanup_dyn_string_delete): Declare.
1881 * utils.c: #include "dyn-string.h".
1882 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1883 * cli/cli-cmds.c: #include "dyn-string.h".
1884 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1885 (init_cli_cmds): Add new command.
1886 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1887
509f0fd9
JK
18882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1889
1890 Fix compatibility with older GCCs.
1891 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1892 * stack.c (read_frame_arg): Initialize val_deref.
1893
2bda9cc5
JK
18942011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1895
1896 Entry values NEWS entries, DWARF disassembly support.
1897 * NEWS: New entry values entry.
1898 (set print entry-values, show print entry-values)
1899 (set debug entry-values, show debug entry-values): New entries.
1900 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1901 indent. Remove variable start. Move header printing out. Respect
1902 INDENT. Support DW_OP_GNU_entry_value.
1903 (locexpr_describe_location_1): Move the header printing here, extend
1904 the disassemble_dwarf_expression passed parameters.
1905
a471c594
JK
19062011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1907
1908 Display @entry parameter values even for references.
1909 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1910 coerce_ref_if_computed.
1911 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1912 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1913 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1914 existing push_dwarf_reg_entry_value call. Add new detection calling
1915 dwarf_block_to_dwarf_reg_deref. Update the error message.
1916 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1917 * dwarf2expr.h
1918 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1919 parameter deref_size, describe it in the comment.
1920 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1921 (dwarf_block_to_dwarf_reg_deref): New declaration.
1922 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1923 deref_size, describe it in the function comment. New variables
1924 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1925 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1926 describe it in the function comment. Fetch the alternative block
1927 accoring to DEREF_SIZE.
1928 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1929 (entry_data_value_free_closure, entry_data_value_funcs): New.
1930 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1931 outer_val, target_val, val and addr. Try to fetch and create also
1932 referenced value content.
1933 (pieced_value_funcs): NULL value for coerce_ref.
1934 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1935 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1936 coerce_ref_if_computed.
1937 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1938 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1939 * stack.c (read_frame_arg): Compare also dereferenced values.
1940 * value.c (value_computed_funcs): Make the parameter v const, use
1941 value_lval_const for it.
1942 (value_lval_const, coerce_ref_if_computed): New function.
1943 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1944 * value.h (struct lval_funcs): New field coerce_ref.
1945 (value_computed_funcs): Make the parameter v const.
1946 (value_lval_const, coerce_ref_if_computed): New declarations.
1947
36b11add
JK
19482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1949
1950 Support @entry in input expressions.
1951 * c-exp.y (ENTRY, unknown_cpp_name): New.
1952 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1953 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1954 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1955 (name_not_typename: ENTRY): New.
1956 (yylex): Recognize ENTRY.
1957 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1958 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1959 Likewise.
1960 * parse.c (operator_length_standard): Likewise.
1961 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1962
3343315b
JK
19632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1964
1965 Display referenced values in backtraces.
1966 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1967 * stack.c (print_frame_arg): Likewise.
1968
ac71a68c
JK
19692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1970
1971 Make some lval_funcs methods to default on NULL.
1972 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1973 NULL.
1974 (value_assign): Check if lval_computed write method is NULL.
1975 * value.h (struct lval_funcs): Comment NULL values for read and write
1976 methods.
1977
e18b2753
JK
19782011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1979
1980 Display @entry parameter values (without references).
1981 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1982 New functions.
1983 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1984 New declarations.
1985 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1986 entry record.
1987 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1988 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1989 functions.
1990 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1991 (loclist_read_variable_at_entry): New function.
1992 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1993 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1994 DW_AT_location, call dwarf_block_to_sp_offset for it.
1995 * frame.h (print_entry_values_no, print_entry_values_only)
1996 (print_entry_values_preferred, print_entry_values_if_needed)
1997 (print_entry_values_both, print_entry_values_compact)
1998 (print_entry_values_default, print_entry_values): New declarations.
1999 (struct frame_arg): New field entry_kind.
2000 (read_frame_arg): New parameter entryargp.
2001 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2002 arg->entry_kind. Optionally print the `@entry' suffix.
2003 (list_args_or_locals): New variable entryarg, initialize it.
2004 Initialize also entry_kind of arg and entryarg. Conditionalize
2005 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2006 xfree for entryarg.error.
2007 * stack.c (print_entry_values_no, print_entry_values_only)
2008 (print_entry_values_preferred, print_entry_values_if_needed)
2009 (print_entry_values_both, print_entry_values_compact)
2010 (print_entry_values_default, print_entry_values_choices)
2011 (print_entry_values): New variables.
2012 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2013 print the `@entry' suffix, possibly in combination for
2014 print_entry_values_compact.
2015 (read_frame_arg): New parameter entryargp, new variables entryval,
2016 entryval_error and val_equal. Read in also entryargp, respect
2017 print_entry_values, compare the values using val_equal, fill in also
2018 argp->entry_kind (together with entryargp->entry_kind).
2019 (print_frame_args): New variable entryarg, initialize it.
2020 Conditionalize print_frame_arg for arg, add print_frame_arg for
2021 entryarg. Call xfree for entryarg.error.
2022 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2023 * symtab.h (struct symbol_computed_ops): New field
2024 read_variable_at_entry.
2025
93d86cef
JK
20262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2027
2028 Code reshuffle.
2029 * frame.h (struct frame_arg): New definition.
2030 (read_frame_arg): New declaration.
2031 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2032 (list_args_or_locals): ... the code here. New variable arg, call
2033 read_frame_arg and list_arg_or_local with it. Unify the
2034 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2035 arg.error.
2036 * stack.c (print_frame_arg): New functiom from the code of
2037 print_frame_args.
2038 (read_frame_arg): New function.
2039 (print_frame_args): Remove variable val. New variable arg, call
2040 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2041
2d6c5dc2
JK
20422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2043
2044 Protect entry values against self tail calls.
2045 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2046 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2047
111c6489
JK
20482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2049
2050 Recognize virtual tail call frames.
2051 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2052 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2053 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2054 * dwarf2-frame-tailcall.c: New file.
2055 * dwarf2-frame-tailcall.h: New file.
2056 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2057 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2058 REGS.PREV only after CIE execution.
2059 (struct dwarf2_frame_cache): New field tailcall_cache.
2060 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2061 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2062 parts, try to find entry_cfa_sp_offset. Call
2063 dwarf2_tailcall_sniffer_first.
2064 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2065 when appropriate.
2066 (dwarf2_frame_dealloc_cache): New function.
2067 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2068 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2069 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2070 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2071 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2072 * dwarf2loc.c (func_addr_to_tail_call_list)
2073 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2074 (call_site_find_chain_1, call_site_find_chain): New.
2075 * dwarf2loc.h (struct call_site_chain): New.
2076 (call_site_find_chain): New declaration.
2077 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2078 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2079 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2080 * stack.c (frame_info): Support also TAILCALL_FRAME.
2081
bb984ff1
JK
20822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2083
2084 Tail call sites reader implementation.
2085 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2086 fill in TYPE_TAIL_CALL_LIST.
2087 * gdbtypes.h (struct func_type): New field tail_call_list.
2088 (struct call_site): New field tail_call_next.
2089 (TYPE_TAIL_CALL_LIST): New definition.
2090
8e3b41a9
JK
20912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2092
2093 Implement basic support for DW_TAG_GNU_call_site.
2094 * block.c: Include gdbtypes.h and exceptions.h.
2095 (call_site_for_pc): New function.
2096 * block.h (call_site_for_pc): New declaration.
2097 * defs.h: Include hashtab.h.
2098 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2099 declarations.
2100 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2101 ctx_no_push_dwarf_reg_entry_value.
2102 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2103 (dwarf_block_to_dwarf_reg): New function.
2104 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2105 (ctx_no_push_dwarf_reg_entry_value): New function.
2106 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2107 push_dwarf_reg_entry_value.
2108 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2109 declarations.
2110 * dwarf2loc.c: Include gdbcmd.h.
2111 (dwarf_expr_ctx_funcs): New forward declaration.
2112 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2113 (dwarf_expr_reg_to_entry_parameter)
2114 (dwarf_expr_push_dwarf_reg_entry_value): New.
2115 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2116 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2117 (needs_dwarf_reg_entry_value): New function.
2118 (needs_frame_ctx_funcs): Install it.
2119 (_initialize_dwarf2loc): New function.
2120 * dwarf2loc.h (entry_values_debug): New declaration.
2121 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2122 (read_call_site_scope): New forward declaration.
2123 (process_full_comp_unit): Copy call_site_htab.
2124 (process_die): Support DW_TAG_GNU_call_site.
2125 (read_call_site_scope): New function.
2126 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2127 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2128 (cleanup_htab): Delete.
2129 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2130 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2131 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2132 FIELD_LOC_KIND_DWARF_BLOCK.
2133 * gdbtypes.h (enum field_loc_kind): New entry
2134 FIELD_LOC_KIND_DWARF_BLOCK.
2135 (struct main_type): New loc entry dwarf_block.
2136 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2137 (TYPE_FIELD_DWARF_BLOCK): New.
2138 * python/py-type.c: Include dwarf2loc.h.
2139 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2140 internal_error call on unknown FIELD_LOC_KIND.
2141 * symtab.h (struct symtab): New field call_site_htab.
2142 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2143 (core_addr_hash, core_addr_eq): New functions.
2144
b6cdc2c1
JK
21452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Code reshuffle.
2148 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2149 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2150 calling_convention under func_stuff there.
2151 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2152 (init_type) <TYPE_CODE_FUNC>: Likewise.
2153 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2154 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2155 * gdbtypes.h (enum type_specific_kind): Change
2156 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2157 (struct main_type) <type_specific>: Change calling_convention to
2158 func_stuff. Move calling_convention to ...
2159 (struct func_type): ... this new struct.
2160 (INIT_FUNC_SPECIFIC): New #define.
2161 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2162
181cebd4
JK
21632011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2166 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2167 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2168 ctx->ref_addr_size. Handle its invalid value.
2169 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2170 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2171 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2172 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2173 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2174 (dwarf2_per_cu_ref_addr_size): New function.
2175
c471e790
JK
21762011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 Code cleanup.
2179 * dwarf2read.c (per_cu_header_read_in): New function.
2180 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2181 variables cu_header_local and cu_headerp.
2182
741f5e3c
JK
21832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2184
2185 Fix initial language detection with -readnow.
2186 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2187 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2188 searches only for global symbols.
2189
a73d2258
JK
21902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2191
2192 Fix printed anonymous struct name.
2193 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2194 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2195 (anonymous_struct_prefix): New function.
2196 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2197 (dwarf2_name): Strip for anonymous structs any prefixes.
2198
749fd4ea
DE
21992011-10-07 Doug Evans <dje@google.com>
2200
1fa57852
DE
2201 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2202 `replace'.
2203
690a4937
DE
2204 * python/lib/gdb/printing.py: Whitespace cleanup.
2205
749fd4ea
DE
2206 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2207 warning.
2208
4c38200f
PA
22092011-10-07 Pedro Alves <pedro@codesourcery.com>
2210
2211 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2212 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2213 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2214 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2215 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2216 (arm_linux_remove_watchpoint): Adjust.
2217 * i386-linux-nat.c (i386_linux_dr_set_control)
2218 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2219 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2220 (ia64_linux_remove_watchpoint): Adjust.
2221 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2222 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2223 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2224 (ppc_linux_insert_mask_watchpoint)
2225 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2226 (ppc_linux_remove_watchpoint): Adjust.
2227 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2228 Adjust.
2229
b7ff339d
CV
22302011-10-07 Corinna Vinschen <vinschen@redhat.com>
2231
2232 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2233 (clear_win32_environment): New function for Cygwin to clear out
2234 Win32 environment.
2235 (windows_create_inferior): Prepare new environment from in_env
2236 for Cygwin, too.
2237
f287c1f3
PM
22382011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2239
5631e596 2240 PR python/13264
f287c1f3
PM
2241 * python/py-value.c (valpy_call): Check that arguments are
2242 a tuple.
2243 (is_intlike): Remove call to CHECK_TYPEDEF.
2244 (valpy_nonzero): Catch GDB exceptions.
2245 (valpy_absolute): Ditto.
2246 (valpy_lazy_string): Ditto.
2247 (valpy_call): Ditto.
2248 (valpy_get_is_optimized_out): Ditto.
2249 (valpy_long): Ditto.
2250 (valpy_float): Ditto.
2251 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2252 (valpy_richcompare): Ditto.
2253
03583c20
UW
22542011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2255
2256 * inferior.h (disable_randomization): Declare.
2257 * infrun.c (disable_randomization): New global variable.
2258 (show_disable_randomization): New function.
2259 (set_disable_randomization): Likewise.
2260 (_initialize_infrun): Install set/show disable-randomization
2261 commands.
2262 * linux-nat.c (disable_randomization): Remove.
2263 (show_disable_randomization): Likewise.
2264 (set_disable_randomization): Likewise.
2265 (_initialize_linux_nat): No longer install set/show
2266 disable-randomization commands here.
2267 (linux_nat_supports_disable_randomization): New function.
2268 (linux_nat_add_target): Install it.
2269 * remote.c (PACKET_QDisableRandomization): New enum value.
2270 (remote_protocol_packets): Support QDisableRandomization.
2271 (_initialize_remote): Likewise.
2272 (remote_supports_disable_randomization): New function.
2273 (init_remote_ops): Install it.
2274 (extended_remote_supports_disable_randomization): New function.
2275 (init_extended_remote_ops): Install it.
2276 (extended_remote_disable_randomization): New function.
2277 (extended_remote_create_inferior_1): Call it.
2278 * target.h (struct target_ops): Add to_supports_disable_randomization.
2279 (target_supports_disable_randomization): Add prototype.
2280 * target.c (target_supports_disable_randomization): New function.
2281 (find_default_supports_disable_randomization): Likewise.
2282 (init_dummy_target): Install it.
2283
20c168b5
KP
22842011-10-07 Kevin Pouget <kevin.pouget@st.com>
2285
2286 Allow Python notification of new object-file loadings.
2287 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2288 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2289 Add build rule for this file.
2290 * python/py-event.h (emit_new_objfile_event): New prototype.
2291 (newobjfile): New Python event emitter.
2292 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2293 Python event registry.
2294 * python/py-inferior.c: Include objfiles.h
2295 (python_new_objfile): New function.
2296 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2297 observers.
2298 * python/py-newobjfileevent.c: New file.
2299 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2300 prototype.
2301 * python/python.c (_initialize_python): Add
2302 gdbpy_initialize_new_objfile_event call.
2303 * NEWS: Add item for new Python event "gdb.newobjfile"
2304
b1c8db38
TG
23052011-10-05 Tristan Gingold <gingold@adacore.com>
2306
2307 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2308 Extract the ravenscar task name from the symbol for the atcb.
2309
0dab82e9
PK
23102011-10-04 Paul Koning <paul_koning@dell.com>
2311
2312 * python/py-type.c (typy_make_iter): Add forward declaration.
2313 (typy_fields_items): Use the gdb.Type iterator.
2314
84ad80e6
PK
23152011-10-04 Paul Koning <paul_koning@dell.com>
2316
2317 * NEWS: Add entry for Python gdb.Type mapping methods.
2318
cb6be26b
KP
23192011-10-04 Kevin Pouget <kevin.pouget@st.com>
2320
2321 PR python/12691: Add the inferior to Python exited event
2322 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2323 to exited_event.
2324 * python/py-event.h (emit_exited_event): Likewise
2325 * python/-inferior.c (python_inferior_exit): Likewise
2326
6005b210
JB
23272011-10-03 Joel Brobecker <brobecker@adacore.com>
2328
2329 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2330 in output of -ada-task-info GDB/MI command.
2331
75082e8c
JB
23322011-10-03 Joel Brobecker <brobecker@adacore.com>
2333
2334 * ada-lang.h (struct inferior): Declare.
2335 (print_ada_task_info): Add declaration.
2336 * ada-tasks.c (print_ada_task_info): Make non-static.
2337 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2338 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2339 * mi/mi-main.c: #include "ada-lang.h".
2340 (mi_cmd_list_features): Add "ada-task-info" to the list
2341 of supported features.
2342 (mi_cmd_ada_task_info): New function.
2343
7ed7d719
JB
23442011-10-03 Joel Brobecker <brobecker@adacore.com>
2345
2346 * python/python.c (python_run_simple_file): New function.
2347 (source_python_script, source_python_script_for_objfile):
2348 Replace call to PyRun_SimpleFile by call to
2349 python_run_simple_file.
2350
3fcaed38
PK
23512011-10-03 Paul Koning <paul_koning@dell.com>
2352
2353 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2354 (value_to_value_object): Fetch value if it was lazy.
2355
8e5c319d
JK
23562011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 Code cleanup.
2359 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2360 Rearrange the code for it.
2361
dd11a36c
JB
23622011-10-02 Joel Brobecker <brobecker@adacore.com>
2363
2364 * breakpoint.c (bkpt_print_recreate): Add call to
2365 print_recreate_thread.
2366
723b724b
MF
23672011-09-29 Mike Frysinger <vapier@gentoo.org>
2368
2369 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2370 PTRACE_GETFDPIC_INTERP): Define.
2371
412946b6
YQ
23722011-09-28 Yao Qi <yao@codesourcery.com>
2373
2374 * symfile.c (add_symbol_file_command): Update message on usage.
2375
a73bb892
PK
23762011-09-28 Paul Koning <paul_koning@dell.com>
2377
2378 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2379 (typy_length, typy_get, typy_has_key, typy_make_iter)
2380 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2381 (typy_iterator_iter, typy_iterator_iternext)
2382 (typy_iterator_dealloc): New functions to implement standard
2383 Python mapping methods on gdb.Type object.
2384 (gdb.TypeIterator): New Python type.
2385 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2386
fe10a582
DM
23872011-09-28 David S. Miller <davem@davemloft.net>
2388
2389 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2390 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2391 * sparc-tdep.c (sparc_complex_floating_p): New function.
2392 (sparc32_store_arguments): Handle complex floats.
2393 (sparc32_extract_return_value): Likewise.
2394 (sparc32_store_return_value): Likewise.
2395 (sparc32_stabs_argument_has_addr): Likewise.
2396 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2397 (sparc64_store_floating_fields): Handle complex floats.
2398 (sparc64_store_arguments): Likewise.
2399 (sparc64_store_return_value): Likewise.
2400
c93dbcba
EZ
24012011-09-28 Eli Zaretskii <eliz@gnu.org>
2402
2403 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2404 before the change on 2006-12-09.
2405 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2406 generates the environment block for CreateProcessA, modulo the
2407 Cygwin-specific parts that are not needed here.
2408
f00c55f8
TG
24092011-09-27 Tristan Gingold <gingold@adacore.com>
2410
2411 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2412 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2413 (darwin_solib_get_all_image_info_addr_at_init): New function.
2414 (darwin_solib_read_all_image_info_addr): Likewise.
2415 (darwin_solib_create_inferior_hook): Use the above two functions.
2416 * darwin-nat.c (darwin_execvp): Renames retval to res.
2417 (darwin_read_write_inferior): Update comment.
2418 (darwin_read_dyld_info): New function.
2419 (darwin_xfer_partial): Handle DYLD_INFO.
2420
6710bf39
SS
24212011-09-27 Stan Shebs <stan@codesourcery.com>
2422
2423 Add return address collection for tracepoints.
2424 * tracepoint.c (encode_actions_1): Add case for $_ret.
2425 (validate_actionline): Check for $_ret.
2426 (trace_dump_actions): Ditto.
2427 * ax-gdb.h (gen_trace_for_return_address): Declare.
2428 * ax-gdb.c: Include arch-utils.h.
2429 (gen_trace_for_return_address): New function.
2430 (agent_command): Add return address special case.
2431 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2432 (amd64_gen_return_address): New function.
2433 (amd64_init_abi): Call it.
2434 * i386-tdep.c: Include ax.h and ax-gdb.h.
2435 (i386_gen_return_address): New function.
2436 (i386_init_abi): Call it.
2437 * arch-utils.h (default_gen_return_address): Declare.
2438 * arch-utils.c (default_gen_return_address): New function.
2439 * gdbarch.sh (gen_return_address): New method.
2440 * gdbarch.h, gdbarch.c: Regenerate.
2441
e04e5beb
JM
24422011-09-23 Joseph Myers <joseph@codesourcery.com>
2443
2444 PR gdb/13079
2445 * i386-tdep.c (i386_frame_align): New.
2446 (i386_gdbarch_init): Use i386_frame_align.
2447
f3d6df6d
YQ
24482011-09-23 Yao Qi <yao@codesourcery.com>
2449
2450 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2451 to get address.
2452
e69860f1
TG
24532011-09-22 Tristan Gingold <gingold@adacore.com>
2454
2455 * fork-child.c (fork_inferior): Add exec_fun parameter.
2456 Call exec_fun or execvp.
2457 * inferior.h: Adjust prototype.
2458 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2459 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2460 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2461 * procfs.c (procfs_create_inferior): Ditto.
2462 * darwin-nat.c (darwin_execvp): New function.
2463 (darwin_create_inferior): Use it.
2464
4b51d87b
YQ
24652011-09-22 Yao Qi <yao@codesourcery.com>
2466
2467 * infrun.c (context_switch): Print debug message when switching to
2468 a different thread.
2469
56b9d9ac
UW
24702011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2471
2472 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2473 complex and vector types.
2474 (s390_return_value_convention): Likewise.
2475
2476 (s390_value_from_register): Call check_typedef.
2477 (extend_simple_arg): Likewise.
2478 (alignment_of): Likewise.
2479 (s390_push_dummy_call): Likewise.
2480 (s390_return_value): Likewise.
2481
b2cd6b29
JM
24822011-09-21 Joseph Myers <joseph@codesourcery.com>
2483
2484 * event-top.c (async_disconnect): If an exception is thrown from
2485 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2486 catch_errors.
2487 * top.c (quit_cover): Return void and take no arguments.
2488 * top.h (quit_cover): Update prototype.
2489
67ba4e42
JM
24902011-09-20 Joseph Myers <joseph@codesourcery.com>
2491
2492 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2493 current_uiout, not uiout.
2494
562f943b
DE
24952011-09-19 Doug Evans <dje@google.com>
2496
2497 * python/py-auto-load.c (source_section_scripts): Fix file
2498 descriptor leak.
2499 * python/python.c (source_python_script_for_objfile): Tweak comments.
2500
34518530
YQ
25012011-09-18 Yao Qi <yao@codesourcery.com>
2502 Ulrich Weigand <ulrich.weigand@linaro.org>
2503
2504 Support displaced stepping for Thumb 16-bit insns.
2505 * arm-tdep.c (THUMB_NOP) Define.
2506 (thumb_copy_unmodified_16bit): New.
2507 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2508 (thumb_copy_alu_reg): New.
2509 (arm_copy_svc): Move some common code to ...
2510 (install_svc): ... here. New.
2511 (thumb_copy_svc): New.
2512 (install_pc_relative): New.
2513 (thumb_copy_pc_relative_16bit): New.
2514 (thumb_decode_pc_relative_16bit): New.
2515 (thumb_copy_16bit_ldr_literal): New.
2516 (thumb_copy_cbnz_cbz): New.
2517 (cleanup_pop_pc_16bit_all): New.
2518 (thumb_copy_pop_pc_16bit): New.
2519 (thumb_process_displaced_16bit_insn): New.
2520 (thumb_process_displaced_32bit_insn): New.
2521 (thumb_process_displaced_insn): process thumb instruction.
2522
2523 Support displaced stepping for Thumb 32-bit insns.
2524 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2525 (thumb2_copy_preload): New.
2526 (thumb2_copy_copro_load_store): New.
2527 (thumb2_copy_b_bl_blx): New.
2528 (thumb2_copy_alu_imm): New.
2529 (thumb2_copy_load_reg_imm): New.
2530 (thumb2_copy_load_literal): New
2531 (thumb2_copy_block_xfer): New.
2532 (thumb_32bit_copy_undef): New.
2533 (thumb_32bit_copy_unpred): New.
2534 (thumb2_decode_ext_reg_ld_st): New.
2535 (thumb2_decode_svc_copro): New.
2536 (decode_thumb_32bit_store_single_data_item): New.
2537 (thumb_copy_pc_relative_32bit): New.
2538 (thumb_decode_pc_relative_32bit): New.
2539 (decode_thumb_32bit_ld_mem_hints): New.
2540 (thumb2_copy_table_branch): New
2541 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2542 instructions.
2543
2b16b2e3
YQ
25442011-09-18 Yao Qi <yao@codesourcery.com>
2545
2546 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2547 (install_b_bl_blx): Likewise.
2548
0f6f04ba
YQ
25492011-09-17 Yao Qi <yao@codesourcery.com>
2550
2551 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2552 (install_load_store): ... this. New.
2553 Change parameter BYTE to SIZE.
2554 (arm_copy_ldr_str_ldrb_strb): Update caller.
2555 (arm_decode_ld_st_word_ubyte): Update caller.
2556
e2d96639
YQ
25572011-09-17 Yao Qi <yao@codesourcery.com>
2558
2559 * infrun.c (displaced_step_fixup): Move some code ...
2560 (displaced_step_restore): ... here. New function.
2561 (handle_inferior_event): Cleanup displaced stepping state for both
2562 child and parent when get forked or vforked event.
2563 * regcache.c (get_thread_arch_aspace_regcache): New function.
2564 get_thread_arch_regcache (): Call it.
2565
a8123151
JB
25662011-09-16 Joel Brobecker <brobecker@adacore.com>
2567
2568 * ada-tasks.c (print_ada_task_info): New function, merging
2569 short_task_info and info_tasks together. Reimplement using
2570 ui-out instead of printing to stdout directly. Move the code
2571 building and checking the task list here, instead of leaving it
2572 in info_tasks_command.
2573 (info_task): Move the code building and checking the task
2574 list here, instead of leaving it in info_tasks_command.
2575 (info_tasks_command): Delete code building and checking
2576 the task list - moved elsewhere. Update calls to info_tasks
2577 and info_task.
2578
fbf06824
JB
25792011-09-16 Joel Brobecker <brobecker@adacore.com>
2580
2581 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2582
34a0bc90
JB
25832011-09-16 Joel Brobecker <brobecker@adacore.com>
2584
2585 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2586
79779fa9
JB
25872011-09-16 Joel Brobecker <brobecker@adacore.com>
2588
2589 * ada-lang.h (ada_build_task_list): Remove parameter
2590 `warn_if_null'.
2591 * ada-tasks.c (ada_build_task_list): Remove parameter
2592 `warn_if_null'. Adjust implementation and documentation.
2593 (valid_task_id, ada_get_environment_task)
2594 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2595 (info_tasks_command): Adjust implementation.
2596 (task_command): Likewise.
2597 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2598 to ada_build_task_list.
2599
e225eb91
JB
26002011-09-16 Joel Brobecker <brobecker@adacore.com>
2601
2602 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2603 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2604 (ada_tasks_inferior_data_handle): New static global.
2605 (get_ada_tasks_inferior_data): New function.
2606 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2607 (ada_get_environment_task, iterate_over_live_ada_tasks)
2608 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2609 Adjust.
2610 (ada_set_current_inferior_known_tasks_addr): New function.
2611 (read_known_tasks, ada_build_task_list, short_task_info)
2612 (info_tasks, info_task, info_tasks_command, task_command_1)
2613 (task_command, ada_task_list_changed): Adjust.
2614 (ada_tasks_invalidate_inferior_data): New function.
2615 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2616 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2617 * ada-lang.h (struct inferior): Add declaration.
2618 (ada_task_list_changed): Update profile.
2619 * remote-wtx-pd.c: #include "inferior.h".
2620 (switch_to_pd_internal): Update call to ada_task_list_changed.
2621
6da9ca05
JB
26222011-09-16 Joel Brobecker <brobecker@adacore.com>
2623
2624 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2625 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2626 (atcb_fieldno): Delete these static globals.
2627 (struct ada_tasks_pspace_data): New struct.
2628 (ada_tasks_pspace_data_handle): New static global.
2629 (get_ada_tasks_pspace_data): New function.
2630 (ada_tasks_invalidate_pspace_data): New function.
2631 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2632 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2633 (_initialize_tasks): Create this module's per-progspace
2634 data handle.
2635
dccd3cbd
JB
26362011-09-16 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2639
f877b031
TG
26402011-09-16 Tristan Gingold <gingold@adacore.com>
2641
2642 * fork-child.c (fork_inferior): Update comment. Use alloca
2643 instead of xmalloc for argv. Move len and shell_command
2644 declarations in the block where they are used.
2645 Only call execvp. Factorize failure code.
2646
ae0c443d
JK
26472011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2648
2649 Code cleanup.
2650 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2651 `exp_element' instead of an element of the same and make the function
2652 static.
2653 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2654 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2655 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2656 Change argument of `write_exp_elt' function call.
2657 Remove extra spaces from comments.
2658 * parser-defs.h (write_exp_elt): Remove prototype.
2659
5af65ec0
PK
26602011-09-15 Paul Koning <paul_koning@dell.com>
2661
2662 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2663 count of item appended to list.
2664 * python/py-type.c (typy_fields): Likewise.
2665
72be8ccc
PK
26662011-09-15 Paul Koning <paul_koning@dell.com>
2667
883640a8 2668 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2669
92f6badc
KP
26702011-09-15 Kevin Pouget <kevin.pouget@st.com>
2671
2672 PR threads/12628
2673 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2674 processes with multiple threads.
2675 (inf_has_multiple_thread_cb): New function.
2676 (inf_has_multiple_threads): New function.
2677
0672bf41 26782011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2679
2680 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2681 * python/py-inferior.c (GdbMethods): New Python method definition.
2682
6839b47f
KP
26832011-09-15 Kevin Pouget <kevin.pouget@st.com>
2684
2685 Handle multiple breakpoint hits in Python interface:
2686 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2687 variable to breakpoints.
2688 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2689 bps instead of single breakpoint. Fix some space typos.
2690 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2691 variable to breakpoints.
2692
672f9b60
KP
26932011-09-15 Kevin Pouget <kevin.pouget@st.com>
2694
2695 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2696 note if the breakpoint is internal.
2697
43675ae4
KP
26982011-09-15 Kevin Pouget <kevin.pouget@st.com>
2699
0672bf41 2700 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2701
15148d6a
PA
27022011-09-14 Pedro Alves <pedro@codesourcery.com>
2703
2704 * infrun.c (prepare_for_detach, wait_for_inferior)
2705 (fetch_inferior_event): Don't flush the register cache.
2706 * remote.c (struct stop_reply) <regcache>: Add comment.
2707
d83e736b
JK
27082011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
2710 Remove excessive DWARF expressions memory duplication.
2711 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2712 for block.data.
2713 (indirect_pieced_value): Remove variable result. Remove variable
2714 back_to and its use for baton.data.
2715 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2716 block.data.
2717 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2718 Update the function comment.
2719
c65b3e0d
PA
27202011-09-13 Pedro Alves <pedro@codesourcery.com>
2721
2722 * inferior.h (ALL_INFERIORS): New.
2723 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2724 for a stopped thread.
2725 (thread_db_find_new_threads): Look for threads in all inferiors.
2726
a1398e0c
PA
27272011-09-13 Pedro Alves <pedro@codesourcery.com>
2728
2729 * breakpoint.c (update_watchpoint): Handle the case of the
2730 watchpoint to update not being in the breakpoint list yet.
2731 (hw_watchpoint_use_count): New, factored out from
2732 hw_watchpoint_used_count.
2733 (hw_watchpoint_used_count): Rename to ...
2734 (hw_watchpoint_used_count_others): ... this. Add `except'
2735 parameter. Don't count resources of `except'. Use
2736 hw_watchpoint_use_count.
2737
30596231
PA
27382011-09-13 Pedro Alves <pedro@codesourcery.com>
2739
2740 * gdbthread.h (enum thread_state): Moved here.
2741 (struct thread_info): Rename `executing_' field to `executing' and
2742 `state_' to `state'.
2743 * thread.c (enum thread_state): Moved to gdbthread.h.
2744 (new_thread, add_thread_silent, delete_thread_1)
2745 (any_live_thread_of_process, thread_alive, set_running)
2746 (set_running, is_thread_state, any_running, is_executing)
2747 (set_executing, finish_thread_state, print_thread_info)
2748 (do_captured_thread_select): Adjust.
2749
bede5f5f
JK
27502011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2751
2752 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2753 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2754
4801a9a3
PA
27552011-09-12 Pedro Alves <pedro@codesourcery.com>
2756 Matt Rice <ratmice@gmail.com>
2757
2758 PR gdb/13175
2759
2760 * interps.c (struct interp) <interpreter_out>: Delete field.
2761 (interp_new): Remove the data and uiout parameters and adjust.
2762 (interp_set): Only set the current_uiout from the interpreter's
2763 uiout after initializing the interpreter. Adjust call to
2764 init_proc.
2765 (interp_ui_out): Adjust to call procs->ui_out_proc.
2766 (interp_data, interp_name): New.
2767 * interps.h (interp_init_ftype): Add `self' parameter.
2768 (interp_ui_out_ftype): New typedef.
2769 (struct interp_procs) <ui_out_proc>: New method pointer.
2770 (interp_new): Remove the data and uiout parameters.
2771 (interp_data, interp_name): Declare.
2772 * tui/tui-interp.c (tui_init): Adjust prototype.
2773 (tui_ui_out): New.
2774 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2775 tui_out here. Adjust call to interp_new.
2776 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2777 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2778 (cli_ui_out): New.
2779 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2780 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2781 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2782 Initialize mi->uiout depending on the mi_version as extracted from
2783 the interpreter's name.
2784 (mi_ui_out): New.
2785 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2786 interp_new. Don't allocate the ui_out's of the interpreters here.
2787
d0afda03 27882011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2789
d0afda03 2790 * solib.c (solib_used): New function.
59145f8c
AR
2791 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2792 by another so_list object before freeing it.
2793
bdaf8d4a
JK
27942011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 Code cleanup.
2797 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2798 values.
2799
df15bd07
JK
28002011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 Code cleanup.
2803 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2804 (amd64_skip_xmm_prologue): ... this new function. Describe its
2805 parameters. No longer use amd64_prologue_line_bug.
2806 * defs.h (producer_is_gcc_ge_4): New declaration.
2807 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2808 (process_full_comp_unit): Update its caller. Remove
2809 amd64_prologue_line_bug initialization.
2810 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2811 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2812
25289eb2
PA
28132011-09-09 Pedro Alves <pedro@codesourcery.com>
2814
2815 * linux-nat.h (enum resume_kind): New.
2816 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2817 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2818 resume_stop on the new lwp.
25289eb2
PA
2819 (add_lwp): Set last_resume_kind as resume_continue by default.
2820 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2821 (resume_lwp): New, factored out from resume_callback. Also check
2822 for pending status in lp->waitstatus.
2823 (resume_callback): Reimplement.
2824 (resume_clear_callback): Set last_resume_kind as resume_stop.
2825 (resume_set_callback): Set last_resume_kind as resume_continue.
2826 (linux_nat_resume, linux_handle_extended_wait): Set
2827 last_resume_kind.
2828 (running_callback): Also check lp->waitstatus for pending events.
2829 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2830 is resume_step.
2831 (stop_and_resume_callback): Don't re-resume if the core wanted the
2832 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2833 using an invalidated pointer.
2834 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2835 SIGSTOPs if the core wanted the LWP to stop.
2836 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2837 wanted the lwp to stop. If the core wanted the lwp to stop, and
2838 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2839 of TARGET_SIGNAL_STOP.
2840 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2841 here. Instead, signal the lwp, and set the last_resume_kind to
2842 resume_stop.
2843
f687d035
PA
28442011-09-09 Pedro Alves <pedro@codesourcery.com>
2845
2846 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2847 -1 (error), if the lwp exits right after attaching.
2848
bc587a6b
DE
28492011-09-08 Doug Evans <dje@google.com>
2850
63d97a20
DE
2851 * py-cmd.c: Some minor formatting fixes.
2852 (gdbpy_parse_command_name): Rename text arg to name, make const.
2853 All callers updated.
2854 * python-internal.h (gdbpy_parse_command_name): Update.
2855
bc587a6b
DE
2856 * cli/cli-decode.c (add_cmd): Add comment.
2857
08711b9a
JK
28582011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2859
2860 PR breakpoints/12435
2861 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2862 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2863 * dwarf2read.c (process_full_comp_unit): Initialize
2864 amd64_prologue_line_bug.
2865 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2866
b2e7f004
JK
28672011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2868
2869 Fix TUI screen corruption.
2870 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2871 batch_flag.
2872
8afd712c
JK
28732011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 * findvar.c (read_var_value): Never return NULL, throw an error
2876 instead. Update the function comment. State symbol name in the error
2877 messages.
2878 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2879 read_var_value.
2880 * stack.c (print_frame_args): Likewise.
2881 * valops.c (value_of_variable): Likewise.
2882
b99b5f66
JK
28832011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2884
2885 * stack.c (print_frame_args): New variable except. Wrap
2886 read_var_value and common_val_print into TRY_CATCH.
2887
85bc8cb7
JK
28882011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2889
2890 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2891 caller to value_of_this.
2892 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2893 Twice.
2894 * valops.c (value_of_this): Remove parameter complain and variable ret.
2895 Update function comment. Never return NULL by this code.
2896 (value_of_this_silent): New function.
2897 * value.h (value_of_this): Remove parameter complain.
2898 (value_of_this_silent): New declaration.
2899
ede1849f
YQ
29002011-09-07 Yao Qi <yao@codesourcery.com>
2901
2902 * gdbthread.h (struct thread_info): Remove fields
2903 `stepping_through_solib_after_catch' and
2904 `stepping_through_solib_catchpoints'.
2905 * infrun.c (init_thread_stepping_state): Update.
2906 (process_event_stop_test, currently_stepping): Update.
2907 (currently_stepping_or_nexting_callback): Update.
2908
6aa27652
YQ
29092011-09-07 Yao Qi <yao@codesourcery.com>
2910
2911 * gdbthread.h (struct thread_info): Comment on field
2912 `step_after_step_resume_breakpoint'.
2913
00db5b94
PA
29142011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2915
2916 * remote.c (remote_console_output): Reindent.
2917
861152be
LM
29182011-09-06 Luis Machado <lgustavo@codesourcery.com>
2919
2920 * frame.c (has_stack_frames): Check for currently selected
2921 traceframe.
2922
ab821bc6
PA
29232011-09-06 Pedro Alves <pedro@codesourcery.com>
2924
2925 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2926 (set_async_annotation_level, set_async_prompt, pop_prompt)
2927 (push_prompt, new_async_prompt): Delete declarations.
2928 * top.h (get_prompt, set_prompt): Change prototype.
2929 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2930 declarations.
2931 * top.c (command_loop):
2932 (top_prompt): New global.
2933 (get_prefix, set_prefix, get_suffix, ): Delete.
2934 (get_prompt, set_prompt): Rewrite.
2935 (show_new_async_prompt): Rename to ...
2936 (show_prompt): ... this.
2937 (init_main): Adjust. Don't handle --annotate=2 here.
2938 * event-top.c (new_async_prompt): Delete.
2939 (the_prompts): Delete.
2940 (more_to_come): Make static.
2941 (display_gdb_prompt): Use top_level_prompt() to compute the top
2942 level prompt, and don't notify the before_prompt observers
2943 directly here. Always trick readline into not trying to display
2944 the prompt if sync_execution and displaying the primary prompt.
2945 If displaying a local/secondary prompt, always show it, even if
2946 sync_execution is set.
2947 (change_annotation_level): Delete.
2948 (top_level_prompt): New, based on change_annotation_level.
2949 (push_prompt, pop_prompt): Delete.
2950 (async_disable_stdin): No longer pushes prompt.
2951 (command_line_handler): No longer pushes or pops prompt. If more
2952 input is expected, call display_gdb_prompt with an explicit empty
2953 prompt.
2954 (async_stop_sig): Adjust.
2955 (set_async_annotation_level, set_async_prompt): Delete.
2956 * python/python.c (before_prompt_hook): Adjust.
2957
f1d90504
PA
29582011-09-05 Pedro Alves <pedro@codesourcery.com>
2959
2960 PR cli/13110
2961
2962 * infrun.c (fetch_inferior_event): Check if there's a selected
2963 thread before checking if the selected thread is executing.
2964
0f641c01
PA
29652011-09-05 Pedro Alves <pedro@codesourcery.com>
2966
2967 * inf-loop.c (execute_command): Don't check if the current thread
2968 if running before synchronously waiting for command completion.
2969 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2970 here.
2971 (normal_stop): Call async_enable_stdin here.
2972 * inf-loop.c (inferior_event_handler): Don't call
2973 async_enable_stdin, nor handle "set exec-done-display" here.
2974
30368258 29752011-09-04 Joel Brobecker <brobecker@adacore.com>
2976
2977 GDB 7.3.1 released.
2978
31916278
JB
29792011-09-04 Joel Brobecker <brobecker@adacore.com>
2980
2981 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2982
e8d56f18
JB
29832011-09-04 Joel Brobecker <brobecker@adacore.com>
2984
2985 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2986
5dd05d8c
JK
29872011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2990
7d8e6458 29912011-09-02 Matt Rice <ratmice@gmail.com>
2992
2993 PR gdb/10720
2994 * event-top.c (cli_command_loop): Replace readline setup with
2995 direct call to display_gdb_prompt.
2996 (display_gdb_prompt): Do not call observer mechanism during
2997 synchronous execution.
2998
84636d28
PA
29992011-09-02 Pedro Alves <pedro@codesourcery.com>
3000
3001 * linux-nat.c (in_pid_list_p): New.
3002 (linux_record_stopped_pid): Delete.
3003 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3004 already attached to the LWP. Return an indication if so.
3005 (linux_nat_filter_event): Adjust.
3006 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3007 returning an indication to ignore this thread.
3008
b4a14fd0
PA
30092011-09-02 Pedro Alves <pedro@codesourcery.com>
3010
3011 * top.c: Include interps.h.
3012 (execute_command): If the target can async, but the interpreter is
3013 in sync mode, synchronously wait for the command to finish before
3014 returning.
3015 (execute_command_to_string): Force the interpreter to sync mode.
3016 * infrun.c: Include interps.h.
3017 (fetch_inferior_event): Don't restore the prompt yet if the
3018 interpreter is in sync mode.
3019 * interps.c (interpreter_async): New global.
3020 * interps.h (interpreter_async): Declare.
3021 * inf-loop.c: Include interps.h.
3022 (inferior_event_handler): Don't print the language change or run
3023 breakpoint commands yet if the interpreter in is sync mode.
3024 * main.c (captured_command_loop): Flip the interpreter to async
3025 mode.
3026 * cli/cli-script.c: Include interps.h.
3027 (execute_user_command, while_command, if_command): Force the
3028 interpreter to sync mode.
3029 * python/python.c: Include interps.h.
3030 (python_command, execute_gdb_command): Force the interpreter to
3031 sync mode.
3032
c709acd1
PA
30332011-09-02 Pedro Alves <pedro@codesourcery.com>
3034
3035 * value.c (show_convenience): Catch errors thrown while printing
3036 each internal variable.
3037 * infrun.c (validate_siginfo_access): New function.
3038 (siginfo_value_read, siginfo_value_write): Call it.
3039
9655e943
JK
30402011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 Revert:
3043 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3044 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3045 attribute.
3046
cb457ae2
YQ
30472011-08-29 Yao Qi <yao@codesourcery.com>
3048
3049 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3050 (cmp_name): New.
3051 (enable_break2): Update caller.
3052 * solib-frv.c (bfd_lookup_symbol): Removed.
3053 (cmp_name): New.
3054 (enable_break2): Update caller.
3055 * solib-pa64.c (bfd_lookup_symbol): Removed.
3056 (cmp_name): New.
3057 * solib-svr4.c (bfd_lookup_symbol): Removed.
3058 (cmp_name_and_sec_flags): New.
3059 (enable_break): Update caller.
3060 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3061 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3062 (gdb_bfd_lookup_symbol): New.
3063 * solib.h: Functions declarations.
3064
83d1a36a
YQ
30652011-08-29 Yao Qi <yao@codesourcery.com>
3066
3067 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3068 and solib-dsbt.o.
3069
c04b3e8f
JK
30702011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 Fix TUI stepi on code without symbols.
3073 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3074 current PC instead.
3075
cb0fd152
JK
30762011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 Code cleanup.
3079 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3080 and the static keyword.
3081 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3082 Make prefix an array.
3083 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3084 * mi/mi-main.c (get_register): Remove stb initialization and the static
3085 keyword.
3086
91174723
JK
30872011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 Code cleanup - make mi_opt const.
3090 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3091 opts const.
3092 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3093 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3094 (mi_cmd_env_dir): Likewise.
3095 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3096 (mi_cmd_target_file_put): Likewise.
3097 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3098 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3099 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3100 (mi_valid_noargs): Make opts const.
3101 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3102 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3103 (mi_cmd_data_read_memory): Likewise.
3104 (mi_cmd_data_read_memory_bytes): Likewise.
3105 (mi_cmd_data_write_memory): Likewise.
3106
5068b8e8 31072011-08-26 Matt Rice <ratmice@gmail.com>
3108
3109 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3110 bcache_xmalloc, replace bcache_xmalloc with call to
3111 psymbol_bcache_init for psymbol_cache.
3112 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3113
a4f2ce05
JK
31142011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 * inf-loop.c (inferior_event_handler): Add exception_print in
3117 INF_EXEC_COMPLETE.
3118
353d1d73
JK
31192011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3122 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3123 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3124 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3125 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3126 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3127 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3128 * infrun.c (fetch_inferior_event): Call
3129 make_bpstat_clear_actions_cleanup.
3130 * top.c (execute_command): New variable cleanup_if_error, call
3131 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3132 * utils.c (do_bpstat_clear_actions_cleanup)
3133 (make_bpstat_clear_actions_cleanup): New functions.
3134
3ced3da4
PA
31352011-08-26 Pedro Alves <pedro@codesourcery.com>
3136
3137 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3138 either the parent or the child forks. Rename a couple locals.
3139
a9f4bb21
PA
31402011-08-26 Pedro Alves <pedro@codesourcery.com>
3141
3142 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3143 library call. Avoid reading the `status' local if all waitpid
3144 calls failed.
3145
e5798bef
PA
31462011-08-26 Pedro Alves <pedro@codesourcery.com>
3147
3148 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3149 opening /proc/PID/task always succeeds.
3150
edb2aadf
AR
31512011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3152
3153 * linespec.c (symtab_from_filename): Check for the end of string.
3154
0d932b2f
MK
31552011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3156
3157 PR mi/11912
3158 * varobj.c (cplus_describe_child): Add the keyword
3159 'class' to the output of the method when dealing
3160 with a cast to a base class.
3161
e93ca019
JK
31622011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3163
3164 No functionality change.
3165 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3166 function comment a reference, new variables tp and bs, move here code
3167 from throw_exception.
3168 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3169 describe it in the comment.
3170 * exceptions.c (throw_exception): Remove variable tp, move the code for
3171 bpstat_clear_actions to bpstat_clear_actions.
3172
13da1c97
LM
31732011-08-24 Luis Machado <lgustavo@codesourcery.com>
3174
3175 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3176 * linux-nat.c: Include linux-procfs.h.
3177 (linux_proc_get_tgid): Move to ...
3178 * common/linux-procfs.c: ... here. New file.
3179 * common/linux-procfs.h: New file.
3180 * linux-thread-db.c: Include linux-procfs.h.
3181 * Makefile.in: Update dependencies.
3182 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3183 * config/arm/linux.mh: Likewise.
3184 * config/i386/linux.mh: Likewise.
3185 * config/i386/linux64.mh: Likewise.
3186 * config/ia64/linux.mh: Likewise.
3187 * config/m32r/linux.mh: Likewise.
3188 * config/m68k/linux.mh: Likewise.
3189 * config/mips/linux.mh: Likewise.
3190 * config/pa/linux.mh: Likewise.
3191 * config/pa/linux.mh: Likewise.
3192 * config/powerpc/linux.mh: Likewise.
3193 * config/powerpc/ppc64-linux.mh: Likewise.
3194 * config/powerpc/spu-linux.mh: Likewise.
3195 * config/sparc/linux.mh: Likewise.
3196 * config/sparc/linux64.mh: Likewise.
3197 * config/xtensa/linux.mh: Likewise.
3198
4e5c165d
HZ
31992011-08-24 Hui Zhu <teawater@gmail.com>
3200
3201 * tracepoint.c (cond_string_is_same): New function.
3202 (find_matching_tracepoint): Add condition check
3203 by cond_string_is_same.
3204
6e2f5b22
JK
32052011-08-23 Josh Matthews <josh@joshmatthews.net>
3206
3207 Fix build error in Darwin port.
3208 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3209
abf85f46
JK
32102011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3211
3212 Code cleanup.
3213 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3214 (command_line_is_silent): New function.
3215 (bpstat_do_actions_1): No longer use commands_left, use
3216 command_line_is_silent for commands.
3217 (bpstat_alloc): Remove clearing of commands_left.
3218 (bpstat_stop_status): Remove initialization of commands_left, use
3219 command_line_is_silent.
3220 * breakpoint.h (struct bpstats): Remove commands_left.
3221
3a93a0c2
KS
32222011-08-18 Keith Seitz <keiths@redhat.com>
3223
3224 PR c++/12266
3225 * cp-name-parser.y (struct demangle_info): Remove unused
3226 member PREV.
3227 (d_grab): Likewise.
3228 (allocate_info): Change return type to struct demangle_info *.
3229 Always allocate a new demangle_info.
3230 Remove unused PREV pointer.
3231 (cp_new_demangle_parse_info): New function.
3232 (cp_demangled_name_parse_free): New function.
3233 (do_demangled_name_parse_free_cleanup): New function.
3234 (make_cleanup_cp_demangled_name_parse_free): New function.
3235 (cp_demangled_name_to_comp): Change return type to
3236 struct demangle_parse_info *.
3237 Allocate a new storage for each call.
3238 (main): Update usage for cp_demangled_name_to_comp
3239 API change.
3240 * cp-support.h (struct demangle_parse_info): New structure.
3241 (cp_demangled_name_to_comp): Update API change for
3242 return type.
3243 (cp_new_demangle_parse_info): Declare.
3244 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3245 (cp_demangled_name_parse_free): Declare.
3246 * cp-support.c (cp_canonicalize_string): Update API
3247 change for cp_demangled_name_to_comp.
3248 (mangled_name_to_comp): Likewise.
3249 Return struct demangle_parse_info, too.
3250 (cp_class_name_from_physname): Update mangled_name_to_comp
3251 API change.
3252 (method_name_from_physname): Likewise.
3253 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3254 (cp_remove_params): Likewise.
3255 * python/py-type.c (typy_legacy_template_argument): Likewise.
3256
3257 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3258 (cp_merge_demangle_parse_infos): Declare.
3259 * cp-support.c (ignore_typedefs): New file global.
3260 (copy_string_to_obstack): New function.
3261 (inspect_type): New function.
3262 (replace_typedefs): New function.
3263 (replace_typedefs_qualified_name): New function.
3264 (cp_canonicalize_string_no_typedefs): New function.
3265 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3266 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3267 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3268 instead of cp_canonicalize_string.
3269 (find_method): Likewise.
3270 (decode_compound): Before looking up the name, call
3271 cp_canonicalize_string_no_typedefs.
3272 (decode_variable): Likewise.
3273
fa3a4f15
PM
32742011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3275 Tom Tromey <tromey@redhat.com>
3276 Matt Rice <ratmice@gmail.com>
3277
3278 * python/lib/gdb/prompt.py: New file.
3279 * python/lib/gdb/command/prompt.py: New file.
3280 * NEWS: Document set extended-prompt and gdb.prompt library
3281
85661b1e
YQ
32822011-08-16 Yao Qi <yao@codesourcery.com>
3283
3284 * tic6x-linux-tdep.c: Move const arrays definition from here...
3285 * tic6x-tdep.c: to here ...
3286
11315641
YQ
32872011-08-14 Yao Qi <yao@codesourcery.com>
3288
3289 * NEWS: New port to Texas Instruments TMS320C6x.
3290
8cd64e00
YQ
32912011-08-14 Andrew Jenner <andrew@codesourcery.com>
3292 Bernd Schmidt <bernds@codesourcery.com>
3293 Yao Qi <yao@codesourcery.com>
3294
3295 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3296 * solib-dsbt.c: New file. Support DSBT shared object.
3297 * tic6x-linux-tdep.c: New file.
3298 * tic6x-tdep.c: New file.
3299 * tic6x-tdep.h: New file.
3300
78d85199
YQ
33012011-08-14 Andrew Stubbs <ams@codesourcery.com>
3302 Yao Qi <yao@codesourcery.com>
3303
3304 * remote.c (PACKET_qXfer_fdpic): New enum value.
3305 (remote_protocol_features): Add qXfer:fdpic:read packet.
3306 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3307 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3308 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3309
224bbe49
YQ
33102011-08-14 Yao Qi <yao@codesourcery.com>
3311
3312 Target description for tic6x.
3313 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3314 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3315 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3316 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3317 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3318 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3319 * features/tic6x-c64xp-linux.xml: New.
3320 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3321 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3322 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3323 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3324 * regformats/tic6x-c64xp.dat,
3325 regformats/tic6x-c62x-linux.dat: Generated.
3326 * regformats/tic6x-c64x-linux.dat,
3327 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3328 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3329 features/tic6x-*.c files.
3330 Add regformats/tic6x-*.dat files.
3331
457e09f0
DE
33322011-08-12 Doug Evans <dje@google.com>
3333
3334 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3335 * python/py-symbol.c (sympy_get_type): New function.
3336 (symbol_object_getset): Add "type".
3337
d20c1c3f
PA
33382011-08-12 Pedro Alves <pedro@codesourcery.com>
3339
3340 PR tui/13073
3341
3342 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3343 empty name.
3344 (tui_show_register_group): Don't store a byte buffer in the data
3345 element's value.
3346 (tui_register_format): Skip registers with an empty name.
3347 (tui_get_register): Store a struct value in the data element's
3348 value field instead of a byte buffer holding the raw register
3349 contents. Account for optimized-out and unavailable registers
3350 when comparing register contents.
3351
9d8fa392
PA
33522011-08-09 Pedro Alves <pedro@codesourcery.com>
3353
3354 * printcmd.c (current_display_number): Update comment.
3355 (disable_current_display_cleanup): Delete.
3356 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3357 catch errors thrown while evaluating and printing the display.
3358
401a70b8
TT
33592011-08-09 Tom Tromey <tromey@redhat.com>
3360
3361 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3362
7f86f058
PA
33632011-08-09 Pedro Alves <pedro@codesourcery.com>
3364
94b71cca 3365 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3366 * maint.c (maintenance_command): Ditto.
3367 * somread.c (som_symtab_read): Ditto.
3368 * solib.c (solib_find, solib_map_sections, update_solib_list)
3369 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3370 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3371 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3372 * solib-irix.c (locate_base, disable_break, enable_break)
3373 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3374 (irix_current_sos, irix_open_symbol_file_object)
3375 (irix_special_symbol_handling): Ditto.
3376 * solib-sunos.c (locate_base, first_link_map_member)
3377 (sunos_current_sos, disable_break, enable_break)
3378 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3379 Ditto.
3380 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3381 (open_symbol_file_object, svr4_current_sos, enable_break)
3382 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3383 Ditto.
3384 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3385 (frv_current_sos, enable_break, frv_special_symbol_handling)
3386 (frv_solib_create_inferior_hook): Ditto.
3387 * solist.h (struct target_so_ops): Extend the comments of the
3388 special_symbol_handling, current_sos and open_symbol_file_object
3389 methods.
3390
5e239b84
PM
33912011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3392
3393 * python/lib/gdb/__init__.py: Auto-load files in command and
3394 function directories.
3395 * python/python.c (finish_python_initialization): Use
3396 os.path.join.
3397 * python/lib/gdb/command/pretty_printers.py: Self register
3398 command.
3399 * NEWS: Document auto-loading.
3400
b6cede78
JK
34012011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3402
3403 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3404 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3405 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3406
29d0bb3d
TT
34072011-08-08 Tom Tromey <tromey@redhat.com>
3408
3409 * breakpoint.c (clean_up_filters): Remove.
3410 (catch_syscall_split_args): Use VEC_cleanup.
3411
2f7fb8e4
JK
34122011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3415 (main): Uncomment "Demangling error\n".
3416
d6c10e95
PP
34172011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3418
3419 * solib-target.c (segment_attributes): Make them static.
3420 (section_attributes, library_children, library_attributes): Likewise.
3421 (library_list_children, library_list_attributes): Likesise.
3422 (library_list_elements): Likewise.
3423
af6e93b2
PA
34242011-08-05 Pedro Alves <pedro@codesourcery.com>
3425
3426 * exceptions.c (throw_exception): Don't disable the current
3427 display.
3428 * printcmd.c (disable_current_display_cleanup): New function.
3429 (do_one_display): Install a cleanup to disable the current display
3430 if doing the display throws.
3431
6a1b1664
EZ
34322011-08-05 Eli Zaretskii <eliz@gnu.org>
3433
3434 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3435 initialization of the tp_new member to the corresponding
3436 gdbpy_initialize_* function.
3437 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3438 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3439 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3440 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3441 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3442
31a0ae49
JK
34432011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3446 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3447 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3448 references to current_uiout.
3449
e0dd0826
PA
34502011-08-04 Pedro Alves <pedro@codesourcery.com>
3451
3452 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3453 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3454 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3455 * top.c (gdb_readline_wrapper): Adjust.
3456 * tui/tui-interp.c (tui_command_loop):
3457 (_initialize_tui_interp): Don't install it.
3458
79a45e25
PA
34592011-08-04 Pedro Alves <pedro@codesourcery.com>
3460
3461 * ui-out.h (uiout): Rename to ...
3462 (current_uiout): ... this.
3463 * ui-out.c (uiout): Rename to ...
3464 (current_uiout): ... this.
3465 * ada-lang.c (print_it_exception, print_one_exception)
3466 (print_mention_exception): Adjust.
3467 * breakpoint.c (watchpoint_check): Adjust.
3468 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3469 (default_collect_info, watchpoints_info, print_one_catch_fork)
3470 (print_one_catch_vfork, print_one_catch_syscall)
3471 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3472 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3473 (print_it_watchpoint, print_mention_watchpoint)
3474 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3475 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3476 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3477 (bkpt_print_mention, momentary_bkpt_print_it)
3478 (tracepoint_print_mention, update_static_tracepoint)
3479 (tracepoints_info, save_breakpoints): Adjust.
3480 * cli-out.c (field_separator): Adjust.
3481 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3482 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3483 * frame.c (get_current_frame): Adjust.
3484 * infcmd.c (run_command_1, print_return_value): Adjust.
3485 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3486 * infrun.c (print_end_stepping_range_reason): Adjust.
3487 (print_signal_exited_reason, print_exited_reason): Adjust.
3488 (print_signal_received_reason, print_no_history_reason): Adjust.
3489 * interps.c (interp_set): Adjust.
3490 * osdata.c (info_osdata_command): Adjust.
3491 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3492 * remote-fileio.c (remote_fileio_request): Adjust.
3493 * remote.c (show_remote_cmd): Adjust.
3494 * solib.c (info_sharedlibrary_command): Adjust.
3495 * source.c (print_source_lines_base): Adjust.
3496 * stack.c (print_stack_frame): Adjust.
3497 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3498 * symfile-mem.c (add_vsyscall_page): Adjust.
3499 * symfile.c (load_progress, generic_load)
3500 (print_transfer_performance): Adjust.
3501 * thread.c (info_threads_command, restore_selected_frame)
3502 (thread_command): Adjust.
3503 * top.c (make_cleanup_restore_ui_file): Adjust.
3504 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3505 (print_one_static_tracepoint_marker): Adjust.
3506 * cli/cli-cmds.c (print_disassembly): Adjust.
3507 * cli/cli-decode.c (print_doc_line): Adjust.
3508 * cli/cli-interp.c (safe_execute_command): Adjust.
3509 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3510 (handle_redirections): Adjust.
3511 * cli/cli-script.c (show_user_1): Adjust.
3512 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3513 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3515 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3516 (mi_cmd_env_dir): Adjust.
3517 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3518 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3519 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3520 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3521 (list_args_or_locals): Adjust.
3522 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3523 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3524 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3525 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3526 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3527 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3528 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3529 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3530 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3531 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3532 (list_available_thread_groups, mi_cmd_list_thread_groups)
3533 (mi_cmd_data_list_register_names)
3534 (mi_cmd_data_list_changed_registers)
3535 (mi_cmd_data_list_register_values, get_register)
3536 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3537 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3538 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3539 (mi_execute_command, mi_load_progress): Adjust.
3540 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3541 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3542 Adjust.
3543 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3544 * tui/tui-interp.c (tui_command_loop): Adjust.
3545 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3546
f9679975
PA
35472011-08-04 Pedro Alves <pedro@codesourcery.com>
3548
3549 * exceptions.c (struct catcher): Remove saved_uiout field.
3550 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3551 no longer save/resvore the global ui_out builder.
3552 (catch_exceptions_with_msg): Save/override/restore the global
3553 ui_out builder manually instead of relying on TRY_CATCH to do it.
3554 (catch_errors): Save/restore the global ui_out builder manually
3555 instead of relying on TRY_CATCH to do it.
3556 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3557 parameter.
3558 (TRY_CATCH): Adjust.
3559 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3560 the global ui_out builder manually instead of relying on TRY_CATCH
3561 to do it.
3562
934709f0
PW
35632011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3564
3565 * breakpoint.c (update_global_location_list): Ensure
3566 invariant 'first loc marked not duplicated and inserted,
3567 following locs marked duplicated/not inserted' is respected
3568 for multiple locations at the same address.
3569 (unduplicated_should_be_inserted) New function.
3570 (swap_insertion) New function.
3571
2421fe6f
JK
35722011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 * stack.c (print_frame_arguments_choices): Comment typo fix.
3575
3fbb6ffa
TJB
35762011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3577
3578 Revert:
3579 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3580 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3581 argument. Update callers.
3582
fbe12357
PP
35832011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3584
3585 PR gdb/13045
3586 * doublest.c (convert_doublest_to_floatformat): Pass correct
3587 mantissa length to put_field.
3588
b1d288d3
JK
35892011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3592 exception_print code path.
3593 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3594 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3595 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3596
311b5970
JK
35972011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3598
3599 Code cleanup.
3600 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3601 Remove, merge them into ...
3602 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3603 variable args and its initialization.
3604 (struct print_args_args, print_args_stub): Remove, merge them into
3605 print_frame.
3606 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3607 them into ...
3608 (do_gdb_disassembly): ... here. Remove variable args and its
3609 initialization.
3610 (print_frame): Remove variable args and its initialization, new
3611 variable gdbarch and numargs (from print_args_stub), inline here
3612 print_args_stub with a TRY_CATCH.
3613 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3614 them into ...
3615 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3616 New variable e, remove variable btargs and its initialization.
311b5970 3617
484a26a8
TG
36182011-08-01 Tristan Gingold <gingold@adacore.com>
3619
3620 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3621
c30eee59
TJB
36222011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3623
3624 * breakpoint.c (insert_bp_location): Document return value.
3625 (insert_breakpoint_locations): Fix documentation.
3626 (remove_breakpoints): Add documentation.
3627
f116073b
TJB
36282011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3629
3630 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3631 argument. Update callers.
3632
65aa373f
JK
36332011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3634
3635 * stack.c (print_frame_info): Comment typo fix.
3636
a50242fb
SA
36372011-07-29 Sterling Augustine <saugustine@google.com>
3638
3639 * MAINTAINERS (Write After Approval): Add myself to the list.
3640
267f6504
TT
36412011-07-29 Tom Tromey <tromey@redhat.com>
3642
3643 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3644 (library_list_start_segment): Update.
3645 (library_list_start_section): Update.
3646
00bd41d6
PM
36472011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3648
3649 * varobj.c (value_get_print_value): Move hint check later into the
3650 function. Comment function. Free thevalue before reusing it.
3651
18a46dbe
JK
36522011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3653 Pedro Alves <pedro@codesourcery.com>
3654
3655 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3656 value_one.
3657 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3658 Assert the result kind.
3659 * value.h (value_one): Remove parameter lv.
3660
bb7da2bf
JK
36612011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3662
3663 Fix crash on lval_computed values.
3664 * valops.c (value_zero): Use not_lval for lval_computed.
3665
2d5213f8
TT
36662011-07-27 Tom Tromey <tromey@redhat.com>
3667
3668 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3669 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3670
11081198
JK
36712011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3672
3673 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3674 "ptype" by their typedefs difference.
3675
3c6e0cb3
JK
36762011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 * dwarf2expr.c (ctx_no_read_reg): New function.
3679 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3680 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3681 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3682 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3683
523f3620
JK
36842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3687 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3688 file.
3689 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3690 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3691 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3692 (ctx_no_get_base_type): Move the functions here.
3693 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3694 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3695 (ctx_no_get_base_type): New declarations.
3696
24d3216f
TT
36972011-07-27 Tom Tromey <tromey@redhat.com>
3698
3699 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3700 entries.
3701 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3702 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3703
5005c8a9
PP
37042011-07-26 Sterling Augustine <saugustine@google.com>
3705
3706 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3707 ULONGEST.
3708 (dump_bfd_file): Likewise.
3709
480a3f21
PW
37102011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3711
3712 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3713 (remote_hw_watchpoint_length_limit): New variable.
3714 (_initialize_remote) add set,show cmds for this new variable.
3715 * gdb.texinfo: document these new commands.
3716 * NEWS: Mention these new commands.
3717
efa80663
PA
37182011-07-26 Pedro Alves <pedro@codesourcery.com>
3719
3720 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3721 true for software watchpoints.
3722
dbdaa232 37232011-07-26 Joel Brobecker <brobecker@adacore.com>
3724
3725 GDB 7.3 released.
3726
cf2c3c16
TT
37272011-07-26 Tom Tromey <tromey@redhat.com>
3728
3729 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3730 * dwarf2read.c (read_indirect_string_at_offset): New function.
3731 (read_indirect_string): Use it.
3732 (dwarf_decode_macro_bytes): New function, taken from
3733 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3734 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3735 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3736 New functions.
3737 (struct dwarf2_per_objfile) <macro>: New field.
3738 (dwarf2_elf_names): Add .debug_macro.
3739 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3740 (dwarf2_locate_sections): Handle new section.
3741 (read_file_scope): Handle DW_AT_GNU_macros.
3742 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3743
1a532630
PP
37442011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3745
3746 * NEWS: Mention dcache configuration.
3747 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3748 (dcache_size, dcache_line_size): New variables.
3749 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3750 (struct dcache_block): Make it expandable.
3751 (struct dcache_struct): New field.
3752 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3753 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3754 (dcache_poke_byte, dcache_print_line): Adjust.
3755 (set_dcache_size, set_dcache_line_size): New functions.
3756 (set_dcache_command, show_dcache_command): New functions.
3757 (_initialize_dcache): Add new commands.
3758
2eff07b3
PP
37592011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3760
3761 * progspace.h (struct program_space): Add solib_add_generation.
3762 * infcmd.c (post_create_inferior): Only call solib_add if not
3763 already done.
3764 * solib.c (solib_add): Increment solib_add_generation.
3765
543305c9
JK
37662011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3767
3768 Fix implicit pointer offsets.
3769 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3770 ptr.OFFSET.
3771
c0a91b2b
TT
37722011-07-25 Tom Tromey <tromey@redhat.com>
3773
3774 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3775 const.
3776 (ada_exception_sal): Make 'ops' const.
3777 (ada_decode_exception_location): Likewise.
3778 (ada_decode_assert_location): Likewise.
3779 (catch_assert_command): Update.
3780 (catch_ada_exception_command): Update.
3781 (create_ada_exception_catchpoint): Make 'ops' const.
3782 * breakpoint.c (set_raw_breakpoint_without_location)
3783 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3784 const.
3785 (create_internal_breakpoint): Update.
3786 (init_raw_breakpoint_without_location): Make 'ops' const.
3787 (init_raw_breakpoint, init_catchpoint)
3788 (create_fork_vfork_event_catchpoint)
3789 (create_syscall_event_catchpoint, init_breakpoint_sal)
3790 (create_breakpoint_sal, create_breakpoints_sal)
3791 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3792 * breakpoint.h (struct breakpoint) <ops>: Now const.
3793 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3794 const.
3795
6cb9b55b
PP
37962011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3797
3798 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3799
d9b3f62e
PA
38002011-07-25 Pedro Alves <pedro@codesourcery.com>
3801
3802 * breakpoint.h (print_recreate_thread): Declare.
3803 (struct breakpoint): Move step_count, pass_count,
3804 number_on_target, static_trace_marker_id,
3805 static_trace_marker_id_idx ...
3806 (struct tracepoint): ... to this new struct.
3807 (get_tracepoint, get_tracepoint_by_number_on_target)
3808 (get_tracepoint_by_number): Change return type to struct
3809 tracepoint pointer.
3810 * breakpoint.c (is_tracepoint_type): New, factored out from
3811 is_tracepoint.
3812 (is_tracepoint): Adjust.
3813 (print_one_breakpoint_location): Cast to struct tracepoint as
3814 necessary, and adjust.
3815 (print_recreate_catch_fork, print_recreate_catch_vfork)
3816 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3817 print_recreate_thread.
3818 (init_breakpoint_sal): New, factored out from
3819 create_breakpoint_sal.
3820 (create_breakpoint_sal): Reimplement.
3821 (create_breakpoint): Allocate a struct tracecepoint if the caller
3822 wanted a tracepoint. Use init_breakpoint_sal and
3823 install_breakpoint.
3824 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3825 (print_recreate_masked_watchpoint)
3826 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3827 (tracepoint_print_one_detail): Adjust.
3828 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3829 Dump the pass count here.
3830 (update_static_tracepoint): Adjust.
3831 (addr_string_to_sals): Adjust.
3832 (create_tracepoint_from_upload): Adjust. Change return type to
3833 struct tracepoint pointer.
3834 (trace_pass_set_count): Change parameter type to struct tracepoint
3835 pointer, and adjust.
3836 (trace_pass_command): Adjust.
3837 (get_tracepoint, get_tracepoint_by_number_on_target)
3838 (get_tracepoint_by_number): Change return type to struct
3839 tracepoint pointer, and adjust.
3840 (print_recreate_thread): New, factored out from save_breakpoints.
3841 (save_breakpoints): Don't print thread and task and passcount
3842 recreation here.
3843 * remote.c (remote_download_tracepoint): Adjust.
3844 * tracepoint.c (trace_actions_command, validate_actionline)
3845 (start_tracing, tfind_1, trace_find_tracepoint_command)
3846 (trace_dump_command): Adjust.
3847 (find_matching_tracepoint): Change return type to struct
3848 tracepoint pointer, and adjust.
3849 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3850 (tfile_trace_find, tfile_fetch_registers): Adjust.
3851 * tracepoint.h (create_tracepoint_from_upload): Change return type
3852 to struct tracepoint pointer.
3853 * ada-lang.c (print_recreate_exception): Call
3854 print_recreate_thread.
3855 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3856
3a5c3e22
PA
38572011-07-25 Pedro Alves <pedro@codesourcery.com>
3858
3859 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3860 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3861 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3862 watchpoint_thread, watchpoint_triggered ...
3863 (struct watchpoint): ... to this new struct.
3864 (is_watchpoint): Declare.
3865 (install_breakpoint): Add new `internal' parameter.
3866 * breakpoint.c (is_watchpoint): Delete declaration.
3867 (set_breakpoint_condition): Handle watchpoints.
3868 (is_watchpoint): Make public.
3869 (watchpoint_in_thread_scope): Change parameter type to struct
3870 watchpoint.
3871 (watchpoint_del_at_next_stop): Change parameter type to struct
3872 watchpoint. Remove assertion. Adjust.
3873 (update_watchpoint): Ditto.
3874 (insert_breakpoints, breakpoint_init_inferior)
3875 (watchpoints_triggered, watchpoint_check)
3876 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3877 (bpstat_stop_status, print_one_breakpoint_location)
3878 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3879 to struct watchpoint as necessary, and adjust.
3880 (install_breakpoint): Add `internal' argument. If true, don't
3881 mention the new breakpoint. Use set_breakpoint_number.
3882 (create_fork_vfork_event_catchpoint)
3883 (create_syscall_event_catchpoint): Adjust.
3884 (dtor_watchpoint): New.
3885 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3886 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3887 (print_it_watchpoint, print_mention_watchpoint)
3888 (print_recreate_watchpoint, insert_masked_watchpoint)
3889 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3890 (print_one_detail_masked_watchpoint)
3891 (print_mention_masked_watchpoint)
3892 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3893 necessary, and adjust.
3894 (watch_command_1): Allocate and initialize a struct watchpoint
3895 instead of a struct breakpoint. Use install_breakpoint.
3896 (catch_exec_command_1): Adjust.
3897 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3898 fields.
3899 (delete_breakpoint, enable_breakpoint_disp)
3900 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3901 as necessary, and adjust.
3902 (initialize_breakpoint_ops): Install dtor_watchpoint as
3903 watchpoints' dtor method.
3904 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3905 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3906 to struct watchpoint as necessary, and adjust.
3907
2060206e
PA
39082011-07-25 Pedro Alves <pedro@codesourcery.com>
3909
3910 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3911 the the base class ops table.
3912 (catch_exception_breakpoint_ops)
3913 (catch_exception_unhandled_breakpoint_ops)
3914 (catch_assert_breakpoint_ops): Don't statically initialize.
3915 (initialize_ada_catchpoint_ops): New.
3916 (_initialize_ada_language): Call it.
3917 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3918 (bkpt_breakpoint_ops): Forward declare.
3919 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3920 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3921 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3922 (masked_watchpoint_breakpoint_ops)
3923 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3924 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3925 base class ops table.
3926 (null_re_set, null_check_status, null_works_in_software_mode)
3927 (null_resources_needed, null_print_one_detail): Delete.
3928 (bkpt_dtor): Rename to ...
3929 (base_breakpoint_dtor): ... this. Make static.
3930 (bkpt_allocate_location): Rename to ...
3931 (base_breakpoint_allocate_location): ... this. Make static.
3932 (base_breakpoint_re_set): New.
3933 (internal_error_pure_virtual_called): New.
3934 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3935 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3936 (base_breakpoint_works_in_software_mode)
3937 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3938 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3939 (base_breakpoint_print_recreate): New functions.
3940 (base_breakpoint_ops): New global.
3941 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3942 (bkpt_breakpoint_hit): Make static.
3943 (bkpt_check_status): Delete.
3944 (bkpt_resources_needed): Make static.
3945 (bkpt_works_in_software_mode): Delete.
3946 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3947 static.
3948 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3949 (momentary_breakpoint_ops): Don't statically initialize.
3950 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3951 Delete.
3952 (tracepoint_insert_location, tracepoint_remove_location)
3953 (tracepoint_check_status, tracepoint_works_in_software_mode)
3954 (tracepoint_print_it): Delete.
3955 (tracepoint_breakpoint_ops): Don't statically initialize.
3956 (initialize_breakpoint_ops): New.
3957 (_initialize_breakpoint): Call it.
3958 * breakpoint.h (null_re_set, null_works_in_software_mode)
3959 (null_resources_needed, null_check_status, null_print_one_detail):
3960 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3961 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3962 (bkpt_check_status, bkpt_resources_needed)
3963 (bkpt_works_in_software_mode, bkpt_print_it)
3964 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3965 Delete declarations.
3966 (initialize_breakpoint_ops): Declare.
3967
001c8c33
PA
39682011-07-25 Pedro Alves <pedro@codesourcery.com>
3969
3970 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3971 (momentary_bkpt_print_it): Simplify.
3972
06edf0c0
PA
39732011-07-25 Pedro Alves <pedro@codesourcery.com>
3974
3975 Split internal, momentary and user breakpoints breakpoint_ops
3976 tables.
3977
3978 * breakpoint.c (internal_breakpoint_ops)
3979 (momentary_breakpoint_ops): Forward declare.
3980 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3981 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3982 (create_overlay_event_breakpoint)
3983 (create_std_terminate_master_breakpoint)
3984 (create_exception_master_breakpoint): Create breakpoints with
3985 internal_breakpoint_ops vtable.
3986 (set_longjmp_breakpoint): Create momentary breakpoints with
3987 momentary_breakpoint_ops vtable, using
3988 momentary_breakpoint_from_master.
3989 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3990 (create_solib_event_breakpoint): Create breakpoints with
3991 internal_breakpoint_ops vtable.
3992 (set_momentary_breakpoint): Create breakpoints with
3993 momentary_breakpoint_ops vtable.
3994 (momentary_breakpoint_from_master): New, factored out from
3995 clone_momentary_breakpoint.
3996 (clone_momentary_breakpoint): Adjust.
3997 (watch_command_1): Create scope breakpoints with
3998 momentary_breakpoint_ops vtable.
3999 (bkpt_re_set): Remove handling of internal and momentary
4000 breakpoints.
4001 (bkpt_print_mention, bkpt_print_recreate): New.
4002 (bkpt_breakpoint_ops): Adjust.
4003 (internal_bkpt_re_set, internal_bkpt_check_status)
4004 (internal_bkpt_print_it, internal_bkpt_print_mention)
4005 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4006 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4007 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4008 (momentary_bkpt_print_recreate): New.
4009 (momentary_breakpoint_ops): New.
4010
348d480f
PA
40112011-07-25 Pedro Alves <pedro@codesourcery.com>
4012
4013 Implement most breakpoint_ops methods for all breakpoint types,
4014 and move the default handlings to the proper callbacks.
4015
4016 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4017 works_in_software_mode method.
4018 (insert_bp_location): Go through breakpoint_ops->insert_location
4019 for software and hardware watchpoints.
4020 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4021 breakpoint_ops.
4022 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4023 for software and hardware watchpoints.
4024 (print_it_typical): Delete.
4025 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4026 method.
4027 (watchpoint_check): Adjust comment.
4028 (bpstat_check_location): Simply always call the breakpoint's
4029 breakpoint_hit method.
4030 (bpstat_stop_status): Always call the breakpoint's check_status
4031 method. Remove special cases for watchpoints and internal event
4032 breakpoints from here (moved to the check_status implementations).
4033 (print_one_breakpoint_location): Assume b->ops is never NULL.
4034 Remove static tracepoint marker id printing from here (moved to
4035 the print_one_detail callback implementation of tracepoints).
4036 (init_bp_location): Assert OPS is never NULL.
4037 (allocate_bp_location): Always call the breakpoint's
4038 allocate_location method, and remove the default code from here.
4039 (free_bp_location): Always call the location's dtor method, and
4040 remove the default code from here.
4041 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4042 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4043 parameter. Pass it down.
4044 (set_raw_breakpoint): Ditto.
4045 (print_it_catch_fork): Adjust to take a bpstat as argument.
4046 (catch_fork_breakpoint_ops): Install methods.
4047 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4048 (catch_vfork_breakpoint_ops): Install methods.
4049 (dtor_catch_syscall): Call the base dtor.
4050 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4051 (catch_syscall_breakpoint_ops): Install methods.
4052 (dtor_catch_exec): Call the base dtor.
4053 (print_it_catch_exec): Adjust to take a bpstat as argument.
4054 (catch_exec_breakpoint_ops): Install methods.
4055 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4056 the breakpoint's resources_needed method, and remove the default
4057 code from here.
4058 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4059 breakpoint_ops.
4060 (clone_momentary_breakpoint): Clone the original's ops.
4061 (mention): Always call the breakpoint's print_mention method, and
4062 remove the default code from here.
4063 (create_breakpoint_sal): Adjust to pass the ops to
4064 set_raw_breakpoint rather than setting it manually.
4065 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4066 ops to set_raw_breakpoint_without_location rather than setting it
4067 manually.
4068 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4069 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4070 (ranged_breakpoint_ops): Install methods.
4071 (break_range_command): Adjust to pass the ops to
4072 set_raw_breakpoint rather than setting it manually.
4073 (re_set_watchpoint, breakpoint_hit_watchpoint)
4074 (check_status_watchpoint, resources_needed_watchpoint)
4075 (works_in_software_mode_watchpoint, print_it_watchpoint)
4076 (print_mention_watchpoint, print_recreate_watchpoint): New
4077 functions.
4078 (watchpoint_breakpoint_ops): Install new methods.
4079 (print_it_masked_watchpoint): New function.
4080 (masked_watchpoint_breakpoint_ops): Install new methods.
4081 (watch_command_1): Adjust to pass the right breakpoint_ops to
4082 set_raw_breakpoint_without_location rather than setting it
4083 manually later. Record the current pspace.
4084 (print_it_exception_catchpoint): Adjust to take a bpstat as
4085 argument.
4086 (gnu_v3_exception_catchpoint_ops): Install new methods.
4087 (say_where): New function.
4088 (null_re_set, null_check_status, null_works_in_software_mode)
4089 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4090 New functions.
4091 (bp_location_ops): New global.
4092 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4093 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4094 (bkpt_check_status, bkpt_resources_needed)
4095 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4096 (bkpt_print_recreate): New functions.
4097 (bkpt_breakpoint_ops): New global.
4098 (tracepoint_re_set, tracepoint_insert_location)
4099 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4100 (tracepoint_check_status, tracepoint_works_in_software_mode)
4101 (tracepoint_print_it, tracepoint_print_one_detail)
4102 (tracepoint_print_mention, tracepoint_print_recreate): New
4103 functions.
4104 (tracepoint_breakpoint_ops): New global.
4105 (delete_breakpoint): Always call the breakpoint's dtor method, and
4106 remove the default handling from here.
4107 (breakpoint_re_set_default): Make static.
4108 (breakpoint_re_set_one): Always call the breakpoints re_set
4109 method, and remove the default handling from here.
4110 (trace_command, ftrace_command, strace_command)
4111 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4112 to create_breakpoint.
4113 (save_breakpoints): Always call the breakpoint's print_recreate
4114 method, and remove the default handling from here.
4115
4116 * ada-lang.c (dtor_exception): Call the base dtor.
4117 (re_set_exception): Call the base method.
4118 (print_it_exception, print_it_catch_exception): Adjust to take a
4119 bpstat as argument.
4120 (catch_exception_breakpoint_ops): Install methods.
4121 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4122 argument.
4123 (catch_exception_unhandled_breakpoint_ops): Install methods.
4124 (print_it_catch_assert): Adjust to take a bpstat as argument.
4125 (catch_assert_breakpoint_ops): Install methods.
4126
4127 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4128 to take a bpstat as argument.
4129 (enum print_stop_action): Add describing comments to each enum
4130 value.
4131 (breakpoint_re_set_default): Delete declaration.
4132 (null_re_set, null_works_in_software_mode, null_resources_needed)
4133 (null_check_status, null_print_one_detail): Declare.
4134 (bkpt_breakpoint_ops): Declare.
4135 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4136 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4137 (bkpt_check_status, bkpt_resources_needed)
4138 (bkpt_works_in_software_mode, bkpt_print_it)
4139 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4140 Declare.
4141
4142 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4143 bkpt_breakpoint_ops.
4144 * python/py-breakpoint.c (bppy_init): Ditto.
4145
be8f8133
PW
41462011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * MAINTAINERS (Write After Approval): Add myself to the list.
4149
3807f613
PP
41502011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4151
4152 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4153
1ced966e
PA
41542011-07-22 Pedro Alves <pedro@codesourcery.com>
4155
4156 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4157 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4158 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4159 adjust.
4160 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4161 (struct i386_debug_reg_state): New.
4162 (i386_init_dregs): New.
4163 (dr_mirror): New.
4164 (i386_cleanup_dregs): Use i386_init_dregs.
4165 (i386_show_dr): Add state parameter and adjust.
4166 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4167 the inferior here.
4168 (i386_remove_aligned_watchpoint): Likewise.
4169 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4170 (i386_update_inferior_debug_regs): New.
4171 (i386_insert_watchpoint): Work on a local mirror of the debug
4172 registers, and only update the inferior on success.
4173 (i386_remove_watchpoint): Ditto.
4174 (i386_region_ok_for_watchpoint): Adjust.
4175 (i386_stopped_data_address): Adjust.
4176 (i386_insert_hw_breakpoint): Adjust.
4177 (i386_remove_hw_breakpoint): Adjust.
4178
3543a589
TT
41792011-07-22 Tom Tromey <tromey@redhat.com>
4180
4181 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4182 from amd64_pseudo_register_read. Change arguments. Call
4183 mark_value_bytes_unavailable when needed.
4184 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4185 set_gdbarch_pseudo_register_read.
4186 * sentinel-frame.c (sentinel_frame_prev_register): Use
4187 regcache_cooked_read_value.
4188 * regcache.h (regcache_cooked_read_value): Declare.
4189 * regcache.c (regcache_cooked_read_value): New function.
4190 (regcache_cooked_read): Call
4191 gdbarch_pseudo_register_read_value if available.
4192 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4193 (i386_pseudo_register_read): Remove.
4194 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4195 i386_pseudo_register_read. Change arguments. Call
4196 mark_value_bytes_unavailable when needed.
4197 (i386_pseudo_register_read_value): New function.
4198 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4199 not set_gdbarch_pseudo_register_read.
4200 * gdbarch.sh (pseudo_register_read_value): New method.
4201 * gdbarch.c, gdbarch.h: Rebuild.
4202 * findvar.c (value_from_register): Call get_frame_register_value.
4203
95298e72
PM
42042011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4205
4206 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4207 get_prefix.
4208 (display_gdb_prompt): Likewise.
4209 (change_annotation_level): Likewise.
4210 (push_prompt): Likewise.
4211 (pop_prompt): Likewise.
4212 (handle_stop_sig): Use get_prompt with a level.
4213 * top.c (command_loop): Use get_prompt with a level.
4214 (set_async_annotation_level): Use set_prompt with a level.
4215 (get_prefix): New function.
4216 (set_prefix): Ditto.
4217 (set_suffix): Ditto.
4218 (get_suffix): Ditto.
4219 (get_prompt): Accept a level argument.
4220 (set_prompt): Accept a level argument. Free old prompts. Set
4221 new_async_prompt if level is 0.
4222 (init_main): Use set_prompt with a level. Do not set
4223 new_async_prompt.
4224 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4225 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4226 Modify set_prompt, get_prompt to account for levels.
4227 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4228 level.
4229 * python/python.c (before_prompt_hook): Use set_prompt.
4230
d26e3629
KY
42312011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4232
4233 * defs.h: Add guard against inclusion in gdbserver.
4234 (struct ptid, ptid_t): Move to common/ptid.h.
4235 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4236 xsnprintf, internal_error): Move to common/common-utils.h.
4237 (nomem): Delete.
4238 * gdb_assert.h: Move into common/ sub-directory.
4239 * gdb_locale.h: Ditto.
4240 * gdb_dirent.h: Ditto.
4241 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4242 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4243 Move into common/ptid.h.
4244 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4245 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4246 Change nomem to malloc_failure.
4247 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4248 * utils.c (nomem): Rename to malloc_failure.
4249 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4250 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4251 (gdb_buildargv): Change nomem to malloc_failure.
4252 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4253 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4254 ptid_is_pid): Move into common/ptid.c.
4255 (initialize_infrun): Delete initialization of null_ptid and
4256 minus_one_ptid.
4257 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4258 linux_common_xfer_osdata.
4259 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4260 common/ptid.c and common/buffer.c.
4261 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4262 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4263 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4264 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4265 rules.
4266 * common/gdb_assert.h: New.
4267 * common/gdb_dirent.h: New.
4268 * common/gdb_locale.h: New.
4269 * common/buffer.c: New.
4270 * common/buffer.h: New.
4271 * common/ptid.c: New.
4272 * common/ptid.h: New.
4273 * common/xml-utils.c: New.
4274 * common/xml-utils.h: New.
4275 * common/common-utils.c: New.
4276 * common/common-utils.h: New.
4277 * common/linux-osdata.c: New.
4278 * common/linux-osdata.h: New.
4279 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4280 * config/arm/linux.mh (NATDEPFILES): Ditto.
4281 * config/i386/linux.mh (NATDEPFILES): Ditto.
4282 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4283 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4284 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4285 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4286 * config/mips/linux.mh (NATDEPFILES): Ditto.
4287 * config/pa/linux.mh (NATDEPFILES): Ditto.
4288 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4289 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4290 * config/s390/s390.mh (NATDEPFILES): Ditto.
4291 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4292 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4293 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4294
edc84990 42952011-07-21 Matt Rice <ratmice@gmail.com>
4296
4297 * NEWS: Add info macros and info definitions commands.
4298
3a7bf607
PM
42992011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4300
4301 * NEWS: Document Python prompt substitution hook.
4302
9b158ba0 43032011-07-18 Matt Rice <ratmice@gmail.com>
4304
4305 PR macros/12999
4306 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4307 * macrotab.c (foreach_macro): Ditto.
4308 (foreach_macro_in_scope): Ditto.
4309 * macrocmd.c (print_macro_callback): New function.
4310 (info_macro_command): Move some code to print_macro_definition.
4311 (print_macro_definition): New function.
4312 (print_one_macro): Add new arguments to callback.
4313 (info_definitions_command): New function.
4314 (info_macros_command): Ditto.
4315 (_initialize_macrocmd): Add info macros and info definitions commands.
4316 * symtab.c (add_macro_name): Add new arguments to callback.
4317
d17b6f81
PM
43182011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4319 Tom Tromey <tromey@redhat.com>
4320
4321 * top.c (set_prompt): Rewrite to free previous prompt, free
4322 asynch_new_prompt and set both on new prompts.
4323 * event-top.c (display_gdb_prompt): Add prompt substitution
4324 logic.
4325 * python/python.c (before_prompt_hook): New function.
4326
1364323a 43272011-07-20 Matt Rice <ratmice@gmail.com>
4328
4329 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4330 arguments to store_unsigned_integer.
4331
8b70b953
TT
43322011-07-20 Tom Tromey <tromey@redhat.com>
4333
6c83ed52
TT
4334 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4335 in some declaration-only cases.
4336
43372011-07-18 Tom Tromey <tromey@redhat.com>
4338
8b70b953
TT
4339 PR symtab/12984:
4340 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4341 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4342 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4343 <debug_type_section>: New field.
4344 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4345 (load_cu): Use appropriate section.
4346 (create_signatured_type_table_from_index): Add 'section'
4347 argument.
4348 (dwarf2_read_index): Only allow a single .debug_types section.
4349 (dw2_get_file_names): Use appropriate section.
4350 (read_type_comp_unit_head): Add 'section' argument.
4351 (create_debug_types_hash_table): Loop over all .debug_types
4352 sections.
4353 (init_cu_die_reader): Use appropriate section.
4354 (process_psymtab_comp_unit, load_partial_comp_unit)
4355 (load_full_comp_unit, read_die_and_children, find_partial_die)
4356 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4357 (lookup_signatured_type_at_offset): Add 'section' argument.
4358 (read_signatured_type_at_offset): Add 'sect' argument.
4359 (read_signatured_type): Use appropriate section.
4360 (set_die_type, get_die_type_at_offset): Update.
4361 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4362 VEC.
4363 (write_psymtabs_to_index): Don't allow index with more than one
4364 .debug_types section.
4365
918dd910
JK
43662011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4367
4368 Fix crash if referenced CU is aged out.
4369 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4370 xfree of block.data.
4371 (indirect_pieced_value): New variable back_to, use to for xfree of
4372 baton.data.
4373 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4374 block.data.
4375 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4376 (load_cu): New function from ...
4377 (dw2_do_instantiate_symtab): ... the code here ...
4378 (process_full_comp_unit): ... and here.
4379 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4380 retval.data.
4381
0e37a63c
JK
43822011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4383
4384 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4385 type.
4386
7e324e48
GB
43872011-07-19 Gary Benson <gbenson@redhat.com>
4388
4389 * infrun.c (struct execution_control_state): New member
4390 stop_func_filled_in.
4391 (clear_stop_func, fill_in_stop_func): New functions.
4392 (handle_inferior_event): Call clear_stop_func rather than
4393 manipulating the execution control state directly.
4394 Call fill_in_stop_func lazily as required rather than
4395 directly calling find_pc_partial_function in all cases.
4396
d48323d8
TT
43972011-07-18 Tom Tromey <tromey@redhat.com>
4398
4399 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4400 checking for variable-sized array.
4401
40591b7d
JCD
44022011-07-18 Jean-Charles Delay <delay@adacore.com>
4403
4404 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4405 of supported languages.
4406 * varobj.c: Add top definitions and basic implementation of the
4407 following callbacks: ada_number_of_children, ada_name_of_variable,
4408 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4409 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4410 (languages): Register Ada-specific callbacks.
4411 (variable_language): Add the Ada case in the language setter switch.
4412
2e424e08
JK
44132011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4414
4415 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4416
9e8b7a03
JK
44172011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4418
4419 Code cleanup.
4420 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4421 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4422 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4423 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4424 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4425 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4426 (struct dwarf_expr_context_funcs): New, move here methods from ...
4427 (struct dwarf_expr_context): ... here. New fields funcs.
4428 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4429 (dwarf_expr_ctx_funcs): New.
4430 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4431 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4432 (needs_frame_ctx_funcs): New.
4433 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4434
2b1260ab
FM
44352011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4436
4437 * MAINTAINERS (Write After Approval): Add myself to the list.
4438
8bd90839
FM
44392011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4440
4441 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4442 that CIE pointer of an FDE really points to a CIE .
4443
953b98d1
HZ
44442011-07-15 Hui Zhu <teawater@gmail.com>
4445
4446 * remote.c (remote_get_trace_status): Add comments.
4447
c8f2448a
JK
44482011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4449
4450 Code cleanup - constify struct lval_funcs.
4451 * dwarf2loc.c (pieced_value_funcs): Make it const.
4452 * infrun.c (siginfo_value_funcs): Likewise.
4453 * opencl-lang.c (opencl_value_funcs): Likewise.
4454 * valops.c (value_assign, value_ind): Make the funcs variable const.
4455 * value.c (struct value): Make location.computed.funcs target const.
4456 Rearrange the comments.
4457 (allocate_computed_value): Make the funcs parameter target const.
4458 (value_computed_funcs): Return the funcs target const.
4459 (value_free, value_copy, set_value_component_location): Make the funcs
4460 variable const.
4461 * value.h (allocate_computed_value): Make the funcs parameter target
4462 const.
4463 (value_computed_funcs): Return the funcs target const.
4464 * windows-tdep.c (tlb_value_funcs): Make it const.
4465
f652de6f
HZ
44662011-07-14 Hui Zhu <teawater@gmail.com>
4467
4468 * remote.c (remote_get_trace_status): Initialize p.
4469
67f41397
JK
44702011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4471
4472 Work around kgdb.
4473 * remote.c (remote_get_trace_status): New variable ex. Put
4474 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4475
d1b66e6d
TT
44762011-07-13 Tom Tromey <tromey@redhat.com>
4477
4478 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4479 value_from_contents for final conversion.
4480
1632a688
JK
44812011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4482
4483 Code cleanup.
4484 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4485 Indent prototypes so they do not get into tags.
4486
a7035dbb
JK
44872011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4488
4489 Code cleanup making also optimized out values lazy.
4490 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4491 allocate_optimized_out_value. Twice.
4492 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4493 * findvar.c (read_var_value): Likewise.
4494 * value.c (allocate_optimized_out_value): New function.
4495 * value.h (allocate_optimized_out_value): New declaration.
4496
d07ed419
JK
44972011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 Fix occasional crash of CTRL-C during DWARF read in.
4500 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4501
86d31898
TT
45022011-07-11 Tom Tromey <tromey@redhat.com>
4503
4504 * regcache.c (struct regcache_descr): Fix typo.
4505 * i387-tdep.c (i387_supply_xsave): Fix typo.
4506
2ab95328
TT
45072011-07-11 Tom Tromey <tromey@redhat.com>
4508
4509 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4510 (read_file_scope, read_type_unit_scope): Use it.
4511
04ad99e6
JK
45122011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4513
4514 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4515 `int'.
4516
713389e0
PM
45172011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4518
4519 PR python/12438
4520 * python/python.c: Set gdbpy_should_print_stack default to off.
4521 (set_python): Deprecate maint set python print-stack to
4522 class_deprecate.
4523 (_initialize_python): Deprecate maint set/show python print-stack.
4524 Add new prefix command, python. Add new setting, print-backtrace.
4525 * NEWS: Document set python print-stack. Document default change.
4526
754eadd1
PM
45272011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4528
4529 * python/py-inferior.c (infpy_dealloc): New function.
4530 (inferior_to_inferior_object): Return a new object, or a
4531 new reference to the existing object.
4532 (find_thread_object): Cleanup references to inferior.
4533 (delete_thread_object): Ditto.
4534 * python/py-infthread.c (create_thread_object): Do not increment
4535 inferior reference count.
4536
5e44ecb3
TT
45372011-07-08 Tom Tromey <tromey@redhat.com>
4538
4539 * dwarf2loc.c (locexpr_regname): New function.
4540 (locexpr_describe_location_piece): Use it.
4541 (disassemble_dwarf_expression): Add per_cu argument. Use
4542 locexpr_regname.
4543 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4544 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4545 New cases.
4546 (locexpr_describe_location_1): Add per_cu argument.
4547 (locexpr_describe_location): Update.
4548 (loclist_describe_location): Update.
4549
e0e9434c
TT
45502011-07-08 Tom Tromey <tromey@redhat.com>
4551
4552 * dwarf2expr.c (execute_stack_op): Add QUIT.
4553
26afc0d7
HZ
45542011-07-07 Hui Zhu <teawater@gmail.com>
4555
4556 Revert:
4557 2011-07-06 Hui Zhu <teawater@gmail.com>
4558 * remote.c (remote_start_remote): Add TRY_CATCH for
4559 remote_get_trace_status.
4560 * tracepoint.c (disconnect_tracing): Ditto.
4561
a40a111f
AB
45622011-07-07 Andrew Burgess <aburgess@broadcom.com>
4563
4564 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4565 variables as signed, not unsigned.
4566
e2bd3b15
JB
45672011-07-06 Joel Brobecker <brobecker@adacore.com>
4568
4569 * jit.c (jit_inferior_init): Reformat forward declaration.
4570
e3d961fe 45712011-07-06 Matt Rice <ratmice@gmail.com>
4572
4573 * MAINTAINERS (Write After Approval): Add myself to the list.
4574
0f3428f0
HZ
45752011-07-06 Hui Zhu <teawater@gmail.com>
4576
4577 * remote.c (remote_start_remote): Add TRY_CATCH for
4578 remote_get_trace_status.
4579 * tracepoint.c (disconnect_tracing): Ditto.
4580
fc9f3a69
TT
45812011-07-05 Tom Tromey <tromey@redhat.com>
4582
4583 * symtab.c (operator_chars): Now static.
4584 * linespec.c (operator_chars): Don't declare.
4585
26e519b9
TJB
45862011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4587
4588 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4589
eb2a6f42
TT
45902011-07-05 Tom Tromey <tromey@redhat.com>
4591
4592 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4593 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4594 (TYPE_CPLUS_REALLY_JAVA): New macro.
4595 * dwarf2read.c (process_structure_scope): Set
4596 TYPE_CPLUS_REALLY_JAVA.
4597
21083d0f 45982011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4599
4600 * ada-lang.c: Fix typos.
4601 * amd64-tdep.c: Likewise.
4602 * breakpoint.c: Likewise.
4603 * cli/cli-decode.c: Likewise.
4604 * findcmd.c: Likewise.
4605 * inline-frame.c: Likewise.
4606 * mi/mi-main.c: Likewise.
4607 * minsyms.c: Likewise.
4608 * monitor.c: Likewise.
4609 * monitor.h: Likewise.
4610 * prologue-value.c: Likewise.
4611 * reverse.c: Likewise.
4612 * s390-tdep.c: Likewise.
4613
3b2a0cf2
JB
46142011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4615
4616 * jit.c (jit_inferior_init): Forward declare.
4617 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4618
efae1d92
JB
46192011-07-04 Joel Brobecker <brobecker@adacore.com>
4620
4621 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4622
6040a59d
JB
46232011-07-04 Tristan Gingold <gingold@adacore.com>
4624
4625 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4626 (tcb_fieldno): Add activation_link field.
4627 (get_known_tasks_addr): Moved and rewritten.
4628 (get_tcb_types_info): Set activation_link field.
4629 (read_known_tasks_array): Add parameter. Rewritten.
4630 (read_known_tasks_list): New function.
4631 (read_known_tasks): New function.
4632 (ada_build_task_list): Call read_known_tasks instead of
4633 read_known_tasks_array.
4634 * ravenscar-thread.c: Add first_task_name constant.
4635 (has_ravenscar_runtime): Check for task list too.
4636
cb741e45
JB
46372011-07-04 Tristan Gingold <gingold@adacore.com>
4638
4639 * ada-tasks.c: Renames fieldno to actb_fieldno.
4640 (ada_get_task_number): Indentation.
4641 (get_tcb_types_info): Remove all parameters. Write directly
4642 the globals.
4643 (ptid_from_atcb_common): Adjust.
4644 (read_atcb): Adjust.
4645
7475b06c
TJB
46462011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4647
4648 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4649
15230f37
TJB
46502011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4651
4652 * ui-out.c (ui_out_field_core_addr): Mention that the function
4653 description is in the header file.
4654 * ui-out.h (ui_out_field_core_addr): Document function.
4655
65743aba
TJB
46562011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4657
4658 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4659 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4660
c37a5aab
TJB
46612011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4662
4663 * symtab.c (expand_line_sal): Remove empty line.
4664
59adf69e
TS
46652011-07-04 Thomas Schwinge <thomas@schwinge.name>
4666
4667 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4668 same way as ELFOSABI_NONE.
4669 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4670
e5dd4106
TJB
46712011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4672
4673 * breakpoint.c: Fix typos in comments.
4674 * linespec.c: Likewise.
4675 * symtab.c: Likewise.
4676
d40102a1
JB
46772011-07-04 Joel Brobecker <brobecker@adacore.com>
4678
4679 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4680 section in separate object files.
4681
2f741504
JK
46822011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4683
4684 Fix false GCC warning.
4685 * linespec.c (decode_line_1): Initialize values.
4686
418c7cf7
JK
46872011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4688
4689 * linespec.c (find_method): Accept the function type automatically only
4690 if it was specified with parameter types.
4691
3d50dd94
JK
46922011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
4694 Stop on first linespec terminator instead of eating what we can.
4695 * linespec.c (is_linespec_boundary): New function.
4696 (name_end): Remove function.
4697 (keep_name_info): New parameter on_boundary, replace the body.
4698 (decode_line_1): Provide the parameter to keep_name_info.
4699 (decode_compound): Likewise. Drop the trailing java return type
4700 handling. Twice.
4701
dcf9f4ab
JK
47022011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4703
4704 Fall back linespec to minimal symbols.
4705 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4706 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4707 (find_method, symbol_found): Change error to cplusplus_error.
4708
3f542ed1
JK
47092011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4710
bc68c4e5 4711 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4712
900e11f9
JK
47132011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4714 Tom Tromey <tromey@redhat.com>
4715
4716 * dwarf2read.c (check_physname): New variable.
4717 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4718 (show_check_physname): New function.
4719 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4720
2301925d
JB
47212011-07-01 Joel Brobecker <brobecker@adacore.com>
4722
4723 * machoread.c (macho_symfile_read): Delete OBE comment.
4724
38947cca
JB
47252011-07-01 Joel Brobecker <brobecker@adacore.com>
4726
4727 * machoread.c (struct macho_oso_data): Delete.
4728 (current_oso): Delete.
4729 (macho_relocate_common_syms): New function, mostly extracted
4730 out of
4731 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4732 Remove code that sets and unset current_oso.
4733 (macho_symfile_relocate): Delete handling of common symbols,
4734 now moved to macho_relocate_common_syms.
4735
a7aa0d73
JB
47362011-07-01 Joel Brobecker <brobecker@adacore.com>
4737
4738 * darwin-nat.c (darwin_ptrace): Add documentation.
4739 Set errno to zero before calling ptrace. If ptrace returns
4740 -1 and errno is zero, then change then return zero.
4741 (darwin_kill_inferior): Issue a warning instead of triggering
4742 a failed assertion when the PT_KILL ptrace operations returned
4743 nonzero.
4744
5e9bc145
JB
47452011-07-01 Joel Brobecker <brobecker@adacore.com>
4746
4747 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4748 only when inf->private->no_ptrace.
4749
00eb2c4a
JB
47502011-07-01 Joel Brobecker <brobecker@adacore.com>
4751
4752 * ada-lang.c (print_it_exception): Print temporary catchpoints
4753 as "Temporary catchpoint".
4754 (print_mention_exception): Likewise.
4755
127c81bc
TT
47562011-07-01 Tom Tromey <tromey@redhat.com>
4757
4758 * jv-lang.c (java_language_defn): Use java_printchar,
4759 java_printstr.
4760 (java_get_encoding): New function.
4761 (java_emit_char): Use generic_emit_char.
4762 (java_printchar): New function.
4763 (java_printstr): Likewise.
4764
25552254
JB
47652011-07-01 Joel Brobecker <brobecker@adacore.com>
4766
4767 * ada-typeprint.c (print_record_type): If unable to decode
4768 the name of the parent type, use the encoded name.
4769
d2d43431
JB
47702011-07-01 Jean-Charles Delay <delay@adacore.com>
4771
4772 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4773 pointer to constrained packed array type output.
4774 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4775 packed array output.
4776
54ae186f
JB
47772011-07-01 Jean-Charles Delay <delay@adacore.com>
4778
4779 * ada-typeprint.c (print_array_type): removed if condition on show
4780 being negative for bounds printing.
4781
8f17729f
JB
47822011-07-01 Joel Brobecker <brobecker@adacore.com>
4783
4784 * ada-lang.c (ada_identical_enum_types_p): New function.
4785 (symbols_are_identical_enums): New function.
4786 (remove_extra_symbols): Do nothing if NSYMS < 2.
4787 Use symbols_are_identical_enums.
4788
f5aa6869
JB
47892011-07-01 Joel Brobecker <brobecker@adacore.com>
4790
4791 * ada-valprint.c (ada_value_print): Handle typedefs.
4792
8f465ea7
JB
47932011-07-01 Joel Brobecker <brobecker@adacore.com>
4794
4795 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4796
828292f2
JB
47972011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4798
4799 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4800 (decode_constrained_packed_array): Likewise.
4801 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4802
18920c42
JB
48032011-07-01 Joel Brobecker <brobecker@adacore.com>
4804
4805 * ada-exp.y (convert_char_literal): Handle typedef types.
4806
c90092fe
JB
48072011-07-01 Joel Brobecker <brobecker@adacore.com>
4808
4809 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4810
f748fb40
TT
48112011-06-30 Tom Tromey <tromey@redhat.com>
4812
4813 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4814 * valops.c (find_overload_match): Call do_cleanups on early exit
4815 path.
4816 * solib.c (solib_find): Call do_cleanups on early exit path.
4817
3bb47e8b
TT
48182011-06-30 Tom Tromey <tromey@redhat.com>
4819
4820 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4821 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4822 return paths. Defer final do_cleanups until last return.
4823 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4824 early return.
4825
4727bad3
TT
48262011-06-30 Tom Tromey <tromey@redhat.com>
4827
4828 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4829
bb361dbf
AB
48302011-06-30 Andrew Burgess <aburgess@broadcom.com>
4831
4832 * MAINTAINERS (Write After Approval): Add myself to the list.
4833
e0d00bc7
JK
48342011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 Disable epilogue unwinders on recent GCCs.
4837 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4838 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4839 * dwarf2read.c (process_full_comp_unit): Initialize
4840 EPILOGUE_UNWIND_VALID.
4841 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4842 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4843 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4844
4632c0d0
JK
48452011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4846
4847 Code cleanup - reformatting.
4848 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4849 (producer_is_gcc_ge_4): ... here, change the return value.
4850 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4851 interpretation.
4852
32019081
JK
48532011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Fix non-only rename list for Fortran modules import.
4856 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4857 cp_add_using_directive caller.
4858 (cp_add_using_directive): New parameter excludes, describe it. New
4859 variables ix and param. Compare if also excludes match. Allocate NEW
4860 with variable size, initialize EXCLUDES there.
4861 (cp_lookup_symbol_imports): New variable excludep, test
4862 current->EXCLUDES with it.
4863 * cp-support.h: Include vec.h.
4864 (struct using_direct): New field excludes, describe it.
4865 (DEF_VEC_P (const_char_ptr)): New.
4866 (cp_add_using_directive): New parameter excludes.
4867 * defs.h (const_char_ptr): New typedef.
4868 * dwarf2read.c (read_import_statement): New variables child_die,
4869 excludes and cleanups, read in excludes.
4870 (read_namespace): Adjust the cp_add_using_directive caller.
4871
70c622a3
JK
48722011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4873
4874 Code cleanup.
4875 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4876 negative comparisons.
4877
39c4d40a
TT
48782011-06-29 André Pönitz <andre.poenitz@nokia.com>
4879
4880 * mi/mi-main.c (mi_cmd_list_features): Emit
4881 breakpoint-notifications.
4882
3b2b8fea
TT
48832011-06-29 Tom Tromey <tromey@redhat.com>
4884
4885 PR fortran/10036:
4886 * valprint.h (generic_emit_char, generic_printstr): Declare.
4887 * valprint.c (wchar_printable, append_string_as_wide)
4888 (print_wchar): Move from c-lang.c.
4889 (generic_emit_char): New function; mostly taken from c_emit_char.
4890 (generic_printstr): New function; mostly taken from c_printstr.
4891 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4892 represented as arrays.
4893 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4894 type.
4895 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4896 identically to TYPE_CODE_INT.
4897 * f-lang.c (f_get_encoding): New function.
4898 (f_emit_char): Use generic_emit_char.
4899 (f_printchar): Replace comment.
4900 (f_printstr): Use generic_printstr.
4901 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4902 "character" types specially.
4903 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4904 for Fortran.
4905 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4906 Move to valprint.c
4907 (c_emit_char): Call generic_emit_char.
4908 (c_printstr): Call generic_printstr.
4909
168e6d44
GB
49102011-06-29 Gary Benson <gbenson@redhat.com>
4911
4912 * breakpoint.c (bpstat_what): Removed duplicated case.
4913
1c033f8c
TT
49142011-06-28 Tom Tromey <tromey@redhat.com>
4915
4916 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4917
5fe41fbf
TT
49182011-06-27 Tom Tromey <tromey@redhat.com>
4919
4920 * valops.c (find_overload_match): Call do_cleanups before early
4921 return.
4922 * top.c (execute_command): Call do_cleanups before early return.
4923 (command_loop): Likewise.
4924 * stack.c (backtrace_command): Make a null cleanup early. Don't
4925 conditionally call do_cleanups.
4926 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4927 TRY_CATCH.
4928 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4929 so cleanups are always run.
4930 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4931 * findcmd.c (parse_find_args): Call do_cleanups on early return
4932 path.
4933 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4934 Don't conditionally call do_cleanups.
4935 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4936 later.
4937
e26bd57d
EB
49382011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4939
4940 * MAINTAINERS (Write After Approval): Use default email address.
4941
6c3097fc
JB
49422011-06-27 Joel Brobecker <brobecker@adacore.com>
4943
4944 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4945
369c397b
JB
49462011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4947
4948 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4949 saved_regs_mask and copied_regs_mask fields.
4950 (sparc_record_save_insn): New prototype.
4951 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4952 (sparc_record_save_insn): New function.
4953 (sparc_analyze_prologue): Add head comment. Recognize store insns
4954 of call-saved registers. Use OFFSET consistently. Recognize flat
4955 frames and cache their settings.
4956 (sparc32_skip_prologue): Handle flat frames.
4957 (sparc_frame_cache): Add frame_offset to the base address.
4958 (sparc32_frame_cache): Adjust to new frame description.
4959 (sparc32_frame_prev_register): Likewise.
4960 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4961 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4962 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4963 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4964 frame by calling sparc_record_save_insn.
4965 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4966 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4967 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4968
b315ab21
TG
49692011-06-27 Tristan Gingold <gingold@adacore.com>
4970
4971 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4972 field by map_addr and map_len.
4973 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4974 (munmap_section_buffer): Likewise.
4975
ddd49eee
TT
49762011-06-24 Tom Tromey <tromey@redhat.com>
4977
4978 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4979 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4980 * python/python.c (gdbpy_parameter): Make 'arg' const.
4981 (execute_gdb_command): Likewise.
4982 (gdbpy_decode_line): Likewise. Copy it.
4983 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4984 (gdbpy_write): Make 'arg' const.
4985 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4986 const.
4987 (gdbpy_lookup_type): Likewise.
4988 * python/py-prettyprint.c (print_children): Make 'name' const.
4989 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4990 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4991 Py_ssize_t.
4992 * python/py-function.c (fnpy_init): Make 'name' const.
4993 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4994 (gdbpy_string_to_argv): Make 'input' const.
4995 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4996 it.
4997 * gdbtypes.h (lookup_typename): Update.
4998 * gdbtypes.c (lookup_typename): Make 'name' const.
4999 (lookup_struct): Likewise.
5000 (lookup_union): Likewise.
5001 (lookup_enum): Likewise.
5002
5998129b
TT
50032011-06-24 Tom Tromey <tromey@redhat.com>
5004
5005 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5006 gdb_thread_db.h. Move all common/ entries to be together.
5007 (TAGS): Don't depend on DEPFILES.
5008
6e586cc5
YQ
50092011-06-23 Yao Qi <yao@codesourcery.com>
5010
5011 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5012 * remote.c (remote_start_remote): ... here.
5013 * monitor.c (monitor_open): ... here.
5014
86c3c1fc
AB
50152011-06-23 Andrew Burgess <aburgess@broadcom.com>
5016
5017 * gdbtypes.c (append_composite_type_field_aligned): Fix
5018 calculation of bit position based on alignment.
5019
28010a5d
PA
50202011-06-22 Pedro Alves <pedro@codesourcery.com>
5021
5022 * breakpoint.c (bpstat_stop_status): Call the check_status
5023 breakpoint_ops method.
5024 (print_one_breakpoint_location): Also print the condition for Ada
5025 exception catchpoints.
5026 (allocate_bp_location): New, factored out from
5027 allocate_bp_location.
5028 (allocate_bp_location): Adjust. Call the owner breakpoint's
5029 allocate_location method, if there is one.
5030 (free_bp_location): Call the locations's dtor method, if there is
5031 one.
5032 (init_raw_breakpoint_without_location): New breakpoint_ops
5033 parameter. Use it.
5034 (set_raw_breakpoint_without_location): Adjust.
5035 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5036 (set_raw_breakpoint): Adjust.
5037 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5038 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5039 re_set and check_status methods.
5040 (init_catchpoint): Don't memset, initialize thread, addr_string
5041 and enable_state. Pass the ops down to init_raw_breakpoint.
5042 (install_catchpoint): Rename to ...
5043 (install_breakpoint): ... this, and make extern.
5044 (create_fork_vfork_event_catchpoint): Adjust.
5045 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5046 re_set and check_status methods.
5047 (create_syscall_event_catchpoint): Adjust.
5048 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5049 (masked_watchpoint_breakpoint_ops): Install NULL
5050 allocate_location, re_set and check_status methods.
5051 (catch_exec_command_1): Adjust.
5052 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5053 re_set and check_status methods.
5054 (create_ada_exception_breakpoint): Rename to ...
5055 (init_ada_exception_breakpoint): ... this. Add a struct
5056 breakpoint parameter, and delete the exp_string, cond_string and
5057 cond parameters. Use init_raw_breakpoint, and don't install or
5058 mention the breakpoint yet. Don't clear breakpoint fields that
5059 init_raw_breakpoint already clears.
5060 (re_set_breakpoint): Delete, split into ...
5061 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5062 functions.
5063 (breakpoint_re_set_one): Call the breakpoint's
5064 breakpoint_ops->re_set implementation, if there's one. Adjust.
5065 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5066 (struct bp_location_ops): New type.
5067 (struct bp_location): New field `ops'.
5068 (struct breakpoint_ops): New `allocate_location', `re_set' and
5069 `check_status' fields. Make `breakpoint_hit''s description match
5070 reality.
5071 (init_bp_location): Declare.
5072 (breakpoint_re_set_default): Declare.
5073 (create_ada_exception_breakpoint): Rename to ...
5074 (init_ada_exception_breakpoint): ... this. Add a struct
5075 breakpoint parameter, and delete the exp_string, cond_string and
5076 cond parameters.
5077 (install_breakpoint): Declare.
5078 * ada-lang.c: Include exceptions.h.
5079 <Ada exceptions description>: Update.
5080 (struct ada_catchpoint_location): New type.
5081 (ada_catchpoint_location_dtor): New function.
5082 (ada_catchpoint_location_ops): New global.
5083 (ada_catchpoint): New type.
5084 (create_excep_cond_exprs): New function.
5085 (dtor_exception, allocate_location_exception, re_set_exception)
5086 (should_stop_exception, check_status_exception): New functions.
5087 (print_one_exception, print_mention_exception)
5088 (print_recreate_exception): Adjust.
5089 (dtor_catch_exception, allocate_location_catch_exception)
5090 (re_set_catch_exception, check_status_catch_exception): New
5091 functions.
5092 (catch_exception_breakpoint_ops): Install them.
5093 (dtor_catch_exception_unhandled)
5094 (allocate_location_catch_exception_unhandled)
5095 (re_set_catch_exception_unhandled)
5096 (check_status_catch_exception_unhandled): New functions.
5097 (catch_exception_unhandled_breakpoint_ops): Install them.
5098 (dtor_catch_assert, allocate_location_catch_assert)
5099 (re_set_catch_assert, check_status_catch_assert): New functions.
5100 (catch_assert_breakpoint_ops): Install them.
5101 (ada_exception_catchpoint_p): Delete.
5102 (catch_ada_exception_command_split)
5103 (ada_exception_catchpoint_cond_string): Rename exp_string
5104 parameter to excep_string. Adjust.
5105 (ada_parse_catchpoint_condition): Delete.
5106 (ada_exception_sal): Rename the exp_string parameter to
5107 excep_string. Delete the cond_string and cond parameters.
5108 Adjust.
5109 (ada_decode_exception_location): Rename the exp_string parameter
5110 to excep_string. Delete the cond_string and cond parameters.
5111 Adjust.
5112 (create_ada_exception_catchpoint): New function.
5113 (catch_ada_exception_command, ada_decode_assert_location)
5114 (catch_assert_command): Adjust.
5115 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5116
9ac4176b
PA
51172011-06-22 Pedro Alves <pedro@codesourcery.com>
5118
5119 * ada-lang.c: Include arch-utils.h.
5120 (ada_decode_exception_location): Make static.
5121 (catch_ada_exception_command): Moved here from breakpoint.c.
5122 (ada_decode_assert_location): Make static.
5123 (catch_assert_command): Moved here from breakpoint.c.
5124 (_initialize_ada_lang): Install the exception and assert
5125 catchpoint commands here.
5126 * ada-lang.h (ada_decode_exception_location)
5127 (ada_decode_assert_location): Delete declarations.
5128 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5129 breakpoint.h.
5130 (create_ada_exception_breakpoint): Make extern.
5131 (catch_ada_exception_command, catch_assert_command): Moved to
5132 ada-lang.c.
5133 (add_catch_command): Make extern.
5134 (_initilize_breakpoint): Don't install the exception and assert
5135 catchpoint commands here.
5136 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5137 breakpoint.c
5138 (add_catch_command, create_ada_exception_breakpoint): Declare.
5139
c56053d2
PA
51402011-06-22 Pedro Alves <pedro@codesourcery.com>
5141
5142 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5143 the breakpoint to the breakpoint chain here.
5144 (set_raw_breakpoint_without_location): Add the breakpoint to the
5145 breakpoint chain here.
5146 (init_raw_breakpoint): Adjust comments.
5147 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5148 here.
5149 (init_catchpoint): Don't set the catchpoint's breakpoint number
5150 here.
5151 (install_catchpoint): New function.
5152 (create_fork_vfork_event_catchpoint)
5153 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5154 use install_catchpoint.
5155
d2f3fc74
PA
51562011-06-22 Pedro Alves <pedro@codesourcery.com>
5157
5158 * breakpoint.c (create_catchpoint_without_mention)
5159 (create_catchpoint): Delete.
5160
b4d90040
PA
51612011-06-22 Pedro Alves <pedro@codesourcery.com>
5162
5163 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5164 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5165 reference to exec_pathname.
5166 (struct exec_catchpoint): New type.
5167 (dtor_catch_exec): New function.
5168 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5169 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5170 (catch_exec_command_1): Adjust to use init_catchpoint.
5171 (delete_breakpoint): Remove reference to exec_pathname.
5172
be5c67c1
PA
51732011-06-22 Pedro Alves <pedro@codesourcery.com>
5174
5175 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5176 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5177 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5178 reference to syscalls_to_be_caught.
5179 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5180 NULL `dtor'.
5181 (struct syscall_catchpoint): New type.
5182 (dtor_catch_syscall): New function.
5183 (insert_catch_syscall, remove_catch_syscall)
5184 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5185 (print_recreate_catch_syscall): Adjust.
5186 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5187 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5188 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5189 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5190 (masked_watchpoint_breakpoint_ops)
5191 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5192 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5193 there is one. Remove references to syscalls_to_be_caught.
5194 (catching_syscall_number): Adjust.
5195 * ada-lang.c (catch_exception_breakpoint_ops)
5196 (catch_exception_unhandled_breakpoint_ops)
5197 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5198
e29a4733
PA
51992011-06-22 Pedro Alves <pedro@codesourcery.com>
5200
5201 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5202 field.
5203 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5204 reference to forked_inferior_pid.
5205 (struct fork_catchpoint): New type.
5206 (breakpoint_hit_catch_fork, print_it_catch_fork)
5207 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5208 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5209 (create_fork_vfork_event_catchpoint): Adjust to use
5210 init_catchpoint.
5211
346774a9
PA
52122011-06-22 Pedro Alves <pedro@codesourcery.com>
5213
5214 * breakpoint.c (add_to_breakpoint_chain)
5215 (init_raw_breakpoint_without_location): New functions, factored
5216 out from ...
5217 (set_raw_breakpoint_without_location): ... this one.
5218 (init_raw_breakpoint): New function, factored out from
5219 set_raw_breakpoint and adjusted to use
5220 init_raw_breakpoint_without_location.
5221 (set_raw_breakpoint): Adjust.
5222 (init_catchpoint): New function, factored out from
5223 create_catchpoint_without_mention and adjusted to use
5224 init_raw_breakpoint.
5225 (create_catchpoint_without_mention): Adjust.
5226
c38c4bc5
TT
52272011-06-22 Tom Tromey <tromey@redhat.com>
5228
5229 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5230 argument of 0 specially.
5231
b138ce37
YQ
52322011-06-22 Yao Qi <yao@codesourcery.com>
5233
5234 * infrun.c (handle_inferior_event): Remove write-only local variable
5235 `sw_single_step_trap_p'.
5236
03de6823
TT
52372011-06-20 Tom Tromey <tromey@redhat.com>
5238
5239 * symtab.c (lookup_language_this): End loop if block is NULL.
5240
66a17cb6
TT
52412011-06-17 Tom Tromey <tromey@redhat.com>
5242
5243 * valops.c (value_of_this): Use lookup_language_this.
5244 * symtab.h (lookup_language_this): Declare.
5245 * symtab.c (lookup_language_this): New function.
5246 (lookup_symbol_aux): Use lookup_language_this.
5247 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5248
7518bff5
TT
52492011-06-17 Tom Tromey <tromey@redhat.com>
5250
5251 * value.h (value_of_this): Update.
5252 (value_of_local): Remove.
5253 * valops.c (value_of_this): Rename from value_of_local. Change
5254 parameters.
5255 * p-exp.y (exp): Update.
5256 (variable): Likewise.
5257 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5258
aee28ec6
TT
52592011-06-17 Tom Tromey <tromey@redhat.com>
5260
5261 * valops.c (value_of_local): Complain if NAME is NULL.
5262 * std-operator.def (OP_OBJC_SELF): Remove.
5263 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5264 * objc-exp.y (name_not_typename): Use OP_THIS.
5265 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5266 name for "this".
5267 <OP_OBJC_SELF>: Remove.
5268 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5269
eed8f803
TG
52702011-06-16 Tristan Gingold <gingold@adacore.com>
5271
5272 * python/py-events.h (gdb_py_events): Make it extern.
5273 * python/py-evtregistry.c (gdb_py_events): Declare.
5274
864ac8a7
HZ
52752011-06-16 Hui Zhu <teawater@gmail.com>
5276
5277 * remote.c (remote_trace_set_readonly_regions): Add check for
5278 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5279 output warning.
5280
ef7e8358
UW
52812011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5282
5283 * arm-linux-tdep.c: Include "auxv.h".
5284 (AT_HWCAP): Define.
5285 (ARM_LINUX_SIZEOF_VFP): Define.
5286 (arm_linux_supply_vfp): New function.
5287 (arm_linux_collect_vfp): Likewise.
5288 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5289 (arm_linux_fpa_regset_sections): New variable.
5290 (arm_linux_vfp_regset_sections): Likewise.
5291 (arm_linux_core_read_description): New function.
5292 (arm_linux_init_abi): Install arm_linux_core_read_description and
5293 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5294 appropriate for the architecture.
5295 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5296 (tdesc_arm_with_m): Declare.
5297 (tdesc_arm_with_iwmmxt): Likewise.
5298 (tdesc_arm_with_vfpv2): Likewise.
5299 (tdesc_arm_with_vfpv3): Likewise.
5300 (tdesc_arm_with_neon): Likewise.
5301 * arm-linux-nat.c: Move features/*.c includes ...
5302 * arm-tdep.c: ... here.
5303 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5304 target description data structures ...
5305 * arm-tdep.c (_initialize_arm_tdep): ... here.
5306 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5307 HWCAP_VFPv3D16): Move definitions ...
5308 * arm-linux-tdep.h: ... here.
5309
c2fa21f1
HZ
53102011-06-15 Hui Zhu <teawater@gmail.com>
5311
5312 * remote.c (remote_trace_set_readonly_regions): Add a check for
5313 target_buf_size.
5314
dd707e8e
TT
53152011-06-14 Tom Tromey <tromey@redhat.com>
5316
5317 * coffread.c (coffread_objfile): Rename from current_objfile.
5318 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5319 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5320
86cc0029
TT
53212011-06-14 Tom Tromey <tromey@redhat.com>
5322
5323 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5324 (class_symtab): Remove.
5325 (jv_dynamics_progspace_key): New global.
5326 (jv_per_objfile_free): Reset program space data. Update assert.
5327 Don't clear globals.
5328 (get_dynamics_objfile): Use and set program space data.
5329 (get_java_class_symtab): Use get_dynamics_objfile.
5330 (add_class_symbol): Likewise.
5331 (java_link_class_type): Likewise.
5332 (java_object_type, jv_clear_object_type, set_java_object_type):
5333 Remove.
5334 (get_java_object_type): Update. Don't cache result.
5335 (is_object_type): Don't call set_java_object_type.
5336 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5337 initialize jv_dynamics_progspace_key.
5338
91a81f69
TT
53392011-06-14 Tom Tromey <tromey@redhat.com>
5340
5341 * symtab.h (current_objfile): Don't declare.
5342 * objfiles.h (current_objfile): Don't declare.
5343 * objfiles.c (current_objfile): Remove.
5344 * mdebugread.c (current_objfile): New file-scope global.
5345 * dbxread.c (current_objfile): New file-scope global.
5346 * coffread.c (current_objfile): New file-scope global.
5347
dc7eb48e
PA
53482011-06-13 Pedro Alves <pedro@codesourcery.com>
5349
5350 * top.h (line): Rename to ...
5351 (saved_command_line): ... this.
5352 (linesize): Rename to ...
5353 (saved_command_line_size): ... this.
5354 * top.c (line): Rename to ...
5355 (saved_command_line): ... this.
5356 (linesize): Rename to ...
5357 (saved_command_line_size): ... this.
5358 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5359 * event-top.c (command_line_handler): Adjust.
5360 * main.c (captured_main): Adjust.
5361
0d6c2135
MK
53622011-06-12 Mark Kettenis <kettenis@gnu.org>
5363
5364 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5365 get_frame_func instead of get_frame_pc to determine the code
5366 address used to construct the frame ID.
5367 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5368 (i386_epilogue_frame_this_id): Likewise.
5369 (i386_epilogue_frame_prev_register): New function.
5370 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5371 (i386_stack_tramp_frame_sniffer): Fix coding style.
5372 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5373 (i386_gdbarch_init): Fix comments.
5374
8bbdd3f4
MK
53752011-06-12 Mark Kettenis <kettenis@gnu.org>
5376
5377 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5378 instruction when walking back through the instruction stream.
5379
533a737e
JK
53802011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5381
5382 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5383 fullname parameters order.
5384
44b13c5a
JK
53852011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5386
5387 Code cleanup.
5388 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5389 for fun.
5390 * psymtab.c (map_symbol_filenames_psymtab)
5391 (map_partial_symbol_filenames): Likewise.
5392 * psymtab.h: Include symfile.h.
5393 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5394 * symfile.h (symbol_filename_ftype): New.
5395 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5396 map_symbol_filenames, clarify more the naming in comment.
5397
0b5574da
DE
53982011-06-07 Doug Evans <dje@google.com>
5399
5400 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5401 Look for ../../gdb, for fullname.exp.
0b5574da 5402
5be4dfca
JK
54032011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5404 Pedro Alves <pedro@codesourcery.com>
5405
5406 * cli/cli-cmds.c (shell_escape): Use waitpid.
5407 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5408
316a8b21
TG
54092011-06-07 Tristan Gingold <gingold@adacore.com>
5410
5411 * xcoffread.c (dwarf2_xcoff_names): New variable.
5412 (aix_process_linenos): Add a guard.
5413 (xcoff_symfile_finish): Free dwarf2.
5414 (xcoff_initial_scan): Add dwarf2 support.
5415
3dd5b83d
PA
54162011-06-06 Pedro Alves <pedro@codesourcery.com>
5417
5418 * infcall.c (run_inferior_call): Don't mask async. Instead force
5419 a synchronous wait, if the target can async.
5420
5421 * target.h (struct target_ops): Delete to_async_mask.
5422 (target_async_mask): Delete.
5423 * target.c (update_current_target): Delete references to to_async_mask.
5424 * linux-nat.c (linux_nat_async_mask_value): Delete.
5425 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5426 to linux_nat_async_mask_value.
5427 (linux_nat_async_mask): Delete.
5428 (linux_nat_async, linux_nat_close): Remove references to
5429 linux_nat_async_mask_value.
5430 * record.c (record_async_mask_value): Delete.
5431 (record_async): Remove references to record_async_mask_value.
5432 (record_async_mask): Delete.
5433 (record_can_async_p, record_is_async_p): Remove references to
5434 record_async_mask_value.
5435 (init_record_ops, init_record_core_ops): Remove references to
5436 record_async_mask.
5437 * remote.c (remote_async_mask_value): Delete.
5438 (init_remote_ops): Remove reference to remote_async_mask.
5439 (remote_can_async_p, remote_is_async_p): Remove references to
5440 remote_async_mask_value.
5441 (remote_async): Remove references to remote_async_mask_value.
5442 (remote_async_mask): Delete.
5443
5444 * infrun.c (fetch_inferior_event): Don't claim registers changed
5445 if the current thread is already not executing.
5446
64b9b334
JB
54472011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5448
5449 From Stephen Kitt <steve@sk2.org>
5450 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5451 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5452
325663dc
JB
54532011-06-03 Joel Brobecker <brobecker@adacore.com>
5454
5455 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5456 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5457
8cf64490
TT
54582011-06-03 Tom Tromey <tromey@redhat.com>
5459
5460 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5461 code fields.
5462 * python/py-exitedevent.c (create_exited_event_object): Change
5463 type of 'exit_code'. Optionally add exit_code attribute.
5464 (emit_exited_event): Change type of 'exit_code'.
5465 * python/py-event.h (emit_exited_event): Update.
5466 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5467 * infrun.c (handle_inferior_event): Set exit code fields on
5468 inferior.
5469 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5470 fields.
5471 * inferior.c (exit_inferior_1): Initialize new fields.
5472
8ddd9a20
TT
54732011-06-03 Tom Tromey <tromey@redhat.com>
5474
5475 * dwarf2expr.c (get_signed_type): New function.
5476 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5477
8dfd1e6d
KS
54782011-06-02 Keith Seitz <keiths@redhat.com>
5479
5480 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5481
65fdb766
PA
54822011-06-02 Pedro Alves <pedro@codesourcery.com>
5483
5484 * top.h (simplified_command_loop): Delete declaration.
5485
f4b8c29b
MF
54862011-06-01 Mike Frysinger <vapier@gentoo.org>
5487
5488 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5489 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5490
1706c199
YQ
54912011-06-01 Yao Qi <yao@codesourcery.com>
5492
5493 * objfiles.h (obj_section_addr): Update reference to objfile from
5494 `abfd' to `obfd'.
5495 (obj_section_endaddr): Likewise.
5496
d19cd713 54972011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5498
5499 * MAINTAINERS: Update my email address and affiliation. Also
5500 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5501
e8eb7bc5
KS
55022010-05-31 Keith Seitz <keiths@redhat.com>
5503
5504 PR c++/12750
5505 * linespec.c (get_search_block): New function.
5506 (find_methods): Add FILE_SYMTATB parameter and use it and
5507 get_search_block to pass an appropriate block to
5508 lookup_symbol_in_namespace.
5509 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5510 Check if *ARGPTR starts with a filename first.
5511 If it does, call locate_first_half again to locate the next
5512 "first half" of the linespec.
5513 Pass FILE_SYMTATB to decode_objc and decode_compound.
5514 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5515 (locate_first_half): Stop on the first colon seen.
5516 (decode_compound): Add FILE_SYMTAB parameter.
5517 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5518 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5519 get_search_block with lookup_symbol.
5520 (find_method): Add FILE_SYMTAB parameter and pass it to
5521 find_methods.
5522 (decode_objc): Use get_search_block.
5523
2b1dbab0
KS
55242010-05-31 Keith Seitz <keiths@redhat.com>
5525
5526 PR symtab/12704
5527 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5528 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5529 and CP_ANONYMOUS_NAMESPACE_LEN.
5530 (cp_is_anonymous): Likewise.
5531 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5532 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5533 * dwarf2read.c (namespace_name): Likewise.
5534 (fixup_partial_die): Likewise.
5535 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5536 seen in the input, keep it.
5537
6d549500
PA
55382011-05-30 Pedro Alves <pedro@codesourcery.com>
5539
5540 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5541 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5542 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5543 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5544 * remote.c (_initialize_remote): Register
5545 async_remote_interrupt_twice directly as
5546 sigint_remote_twice_token event.
5547
395bff70
PA
55482011-05-30 Pedro Alves <pedro@codesourcery.com>
5549
5550 * target.h (enum inferior_event_type): Delete INF_ERROR.
5551 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5552
97224164
PA
55532011-05-30 Pedro Alves <pedro@codesourcery.com>
5554
5555 * interps.c (interp_set): Don't cancel continuations.
5556
07e78767
JK
55572011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5558
5559 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5560
fa4cd53f
PA
55612011-05-30 Pedro Alves <pedro@codesourcery.com>
5562
5563 * continuations.h (continuation_ftype): Add `err' parameter.
5564 Document parameters.
5565 (do_all_continuations, do_all_continuations_thread)
5566 (do_all_intermediate_continuations)
5567 (do_all_intermediate_continuations_thread)
5568 (do_all_inferior_continuations): Add `err' parameter.
5569 * continuations.c (do_my_continuations_1, do_my_continuations)
5570 (do_all_inferior_continuations, do_all_continuations_ptid)
5571 (do_all_continuations_thread_callback)
5572 (do_all_continuations_thread, do_all_continuations)
5573 (do_all_intermediate_continuations_thread_callback)
5574 (do_all_intermediate_continuations_thread)
5575 (do_all_intermediate_continuations): Add `err' parameter, and pass
5576 it down all the way to the continuations proper.
5577 * inf-loop.c (inferior_event_handler): If fetching an inferior
5578 event throws an error, don't pop the target, and still call the
5579 continuations, but with `err' set. Adjust all other continuation
5580 calls.
5581 * breakpoint.c (until_break_command_continuation): Add `err'
5582 parameter.
5583 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5584 issue another step if `err' is set.
5585 (struct until_next_continuation_args): New.
5586 (until_next_continuation): Add `err' parameter. Adjust.
5587 (until_next_command): Adjust.
5588 (struct finish_command_continuation_args): Add `thread' field.
5589 (finish_command_continuation): Add `err' parameter. Handle it.
5590 (finish_forward): Adjust.
5591 (attach_command_continuation): Add `err' parameter. Handle it.
5592 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5593 cancel the continuations.
5594 * interps.c (interp_set): Adjust to cancel the continuations.
5595 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5596 continuations rather than discarding.
5597 (free_thread): Don't clear thread inferior resources here.
5598 (delete_thread_1): Do it here instead. And do it before removing
5599 the thread from the threads list. Tag the thread as exited before
5600 clearing thread inferior resources.
5601
c2949be0
JB
56022011-05-30 Joel Brobecker <brobecker@adacore.com>
5603
5604 * infcall.c (call_function_by_hand): Rephrase error message.
5605
619cebe8
PA
56062011-05-27 Pedro Alves <pedro@codesourcery.com>
5607
5608 * defs.h (struct thread_info, struct inferior): Delete forward
5609 declarations.
5610 * breakpoint.h (struct thread_info): New forward declaration.
5611 * observer.sh (struct inferior): New forward declaration.
5612 * python/python-internal.h (struct inferior): New forward
5613 declaration.
5614
be34f849
PA
56152011-05-27 Pedro Alves <pedro@codesourcery.com>
5616
5617 * defs.h (struct continuation, continuation_ftype)
5618 (continuation_free_arg_ftype, add_continuation)
5619 (do_all_continuations, do_all_continuations_thread)
5620 (discard_all_continuations, discard_all_continuations_thread)
5621 (add_intermediate_continuation, do_all_intermediate_continuations)
5622 (do_all_intermediate_continuations_thread)
5623 (discard_all_intermediate_continuations)
5624 (discard_all_intermediate_continuations_thread)
5625 (add_inferior_continuation, do_all_inferior_continuations)
5626 (discard_all_inferior_continuations): Move to ...
5627 * continuations.h: ... this new file.
5628 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5629 infcmd.c, inferior.c, infrun.c, interps.c: Include
5630 continuations.h.
5631
432b4d03
JK
56322011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5633 Doug Evans <dje@google.com>
5634
5635 Fix PR 10970, PR 12702.
5636 * linux-nat.c (linux_lwp_is_zombie): New function.
5637 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5638 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5639
b0f260d6
PA
56402011-05-27 Pedro Alves <pedro@codesourcery.com>
5641
5642 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5643 typedefs.
5644 (add_continuation, add_intermediate_continuation)
5645 (add_inferior_continuation): Use them.
5646 * continuations.c (struct continuation): Use them.
5647 (make_continuation_ftype): Delete.
5648 (make_continuation, add_inferior_continuation, add_continuation)
5649 (add_intermediate_continuation): Use continuation_ftype and
5650 continuation_free_arg_ftype. Rename parameters to shorter names.
5651
af1e9a32
PA
56522011-05-27 Pedro Alves <pedro@codesourcery.com>
5653
5654 * continuations.c (make_continuation): Make it return void.
5655 (do_my_continuations): Rename to ...
5656 (do_my_continuations_1): ... this. Remove old_chain parameter and
5657 adjust.
5658 (do_my_continuations): New.
5659 (discard_my_continuations): Rename to ...
5660 (discard_my_continuations_1): ... this. Remove old_chain
5661 parameter and adjust.
5662 (discard_my_continuations): New.
5663 (add_inferior_continuation): Simplify.
5664 (do_all_inferior_continuations): Reimplement on top
5665 do_my_continuations.
5666 (discard_all_inferior_continuations): Simplify.
5667 (add_continuation): Simplify.
5668 (do_all_continuations_ptid): Simplify.
5669 (discard_all_continuations_thread_callback): Simplify.
5670 (add_intermediate_continuation): Simplify.
5671 (discard_all_intermediate_continuations_thread_callback):
5672 Simplify.
5673
50c0c017
PA
56742011-05-27 Pedro Alves <pedro@codesourcery.com>
5675
5676 * utils.c (struct continuation, add_continuation)
5677 (add_inferior_continuation)
5678 (do_all_inferior_continuations, discard_all_inferior_continuations)
5679 (restore_thread_cleanup, do_all_continuations_ptid)
5680 (do_all_continuations_thread_callback)
5681 (do_all_continuations_thread, do_all_continuations)
5682 (discard_all_continuations_thread_callback)
5683 (discard_all_continuations_thread, discard_all_continuations)
5684 (add_intermediate_continuation)
5685 (do_all_intermediate_continuations_thread_callback)
5686 (do_all_intermediate_continuations_thread)
5687 (do_all_intermediate_continuations)
5688 (discard_all_intermediate_continuations_thread_callback)
5689 (discard_all_intermediate_continuations_thread)
5690 (discard_all_intermediate_continuations): Move to ...
5691 * continuations.c: ... this new file, and adjust to no longer
5692 implement continuations on top of cleanups.
5693 * Makefile.in (SFILES): Add continuations.c.
5694 (COMMON_OBS): Add continuations.o.
5695
d8b34453
PA
56962011-05-26 Pedro Alves <pedro@codesourcery.com>
5697
5698 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5699 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5700 Internal error on invalid values.
5701 * reverse.c: Don't handle EXEC_ERROR.
5702 * mi/mi-main.c: Don't handle EXEC_ERROR.
5703
32231432
PA
57042011-05-26 Pedro Alves <pedro@codesourcery.com>
5705
5706 * record.c: Include event-loop.h, inf-loop.h.
5707 (record_beneath_to_async): New global.
5708 (tmp_to_async): New global.
5709 (record_async_inferior_event_token): New global.
5710 (record_open_1): Don't error out if async is enabled.
5711 (record_open): Handle to_async. Create an async event source in
5712 the event loop.
5713 (record_close): Delete the async event source.
5714 (record_resumed): New global.
5715 (record_execution_dir): New global.
5716 (record_resume, record_core_resume): Set them. Register the
5717 target on the event loop.
5718 (record_wait): Rename to ...
5719 (record_wait_1): ... this. Add more debug output. Handle
5720 TARGET_WNOHANG, and the target beneath returning
5721 TARGET_WAITKIND_IGNORE.
5722 (record_wait): Reimplement on top of record_wait_1.
5723 (record_async_mask_value): New global.
5724 (record_async, record_async_mask, record_can_async_p)
5725 (record_is_async_p, record_execution_direction): New functions.
5726 (init_record_ops, init_record_core_ops): Install new methods.
5727 * infrun.c (fetch_inferior_event): Temporarily switch the global
5728 execution direction to the direction the target was going.
5729 (execution_direction): Change type to int.
5730 * target.c (default_execution_direction): New function.
5731 (update_current_target): Inherit and de_fault
5732 to_execution_direction.
5733 * target.h (struct target_ops) <to_execution_direction>: New
5734 field.
5735 (target_execution_direction): New macro.
5736 * inferior.h (execution_direction): Change type to int.
5737
949dc678
PA
57382011-05-26 Pedro Alves <pedro@codesourcery.com>
5739
5740 * infcall.c (call_function_by_hand): Don't allow calling functions
5741 in reverse execution mode.
5742
c13bd2b5
PA
57432011-05-26 Pedro Alves <pedro@codesourcery.com>
5744
5745 * infcmd.c (finish_command): Allow async finish in reverse.
5746
6938fd34
YQ
57472011-05-26 Yao Qi <yao@codesourcery.com>
5748
5749 * gdb_thread_db.h: Delete. Move to ...
5750 * common/gdb_thread_db.h: ... here.
5751
9da8c2a0
PA
57522011-05-26 Pedro Alves <pedro@codesourcery.com>
5753
5754 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5755 function's entry point instead of a manually managed momentary
5756 breakpoint, and only ever issue one proceed call.
5757 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5758 doing a reverse-finish, switch to stepi mode, to do another step.
5759 (insert_step_resume_breakpoint_at_sal): Make public.
5760 (normal_stop): No need to save function value return registers if
5761 going reverse.
5762 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5763
2c03e5be
PA
57642011-05-26 Pedro Alves <pedro@codesourcery.com>
5765
5766 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5767 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5768 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5769 at the end.
5770 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5771 step-resume breakpoints.
5772 (print_it_typical): Handle bp_hp_step_resume.
5773 (bpstat_what): Ditto.
5774 (bptype_string): Ditto.
5775 (print_one_breakpoint_location): Ditto.
5776 (allocate_bp_location): Ditto.
5777 (mention): Ditto.
5778 (breakpoint_re_set_one): Ditto.
5779 * infrun.c (handle_inferior_event): Adjust. Split
5780 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5781 BPSTAT_WHAT_HP_STEP_RESUME.
5782 (insert_step_resume_breakpoint_at_sal): Rename to ...
5783 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5784 parameter. Handle it.
5785 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5786 insert_step_resume_breakpoint_at_sal_1.
5787 (insert_step_resume_breakpoint_at_frame): Rename to ...
5788 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5789 set a high-priority step-resume breakpoint.
5790 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5791 (insert_step_resume_breakpoint_at_caller): Ditto.
5792
51be5b68
PA
57932011-05-26 Pedro Alves <pedro@codesourcery.com>
5794
5795 * breakpoint.c (iterate_over_related_breakpoints): New.
5796 (do_map_delete_breakpoint): New.
5797 (delete_command): Pass do_map_delete_breakpoint to
5798 map_breakpoint_numbers.
5799 (do_disable_breakpoint): New.
5800 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5801 breakpoints.
5802 (do_enable_breakpoint): Rename to ...
5803 (enable_breakpoint_disp): ... this.
5804 (enable_breakpoint): Adjust.
5805 (do_enable_breakpoint): New.
5806 (enable_once_breakpoint): Delete.
5807 (do_map_enable_breakpoint): New.
5808 (do_map_enable_once_breakpoint): New.
5809 (enable_once_command, enable_delete_command)
5810 (delete_trace_command): Iterate over the breakpoint's related
5811 breakpoints.
5812
4a1be8d2
PA
58132011-05-26 Pedro Alves <pedro@codesourcery.com>
5814
5815 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5816 for ALPHA_ZERO_REGNUM.
5817 (alpha_supply_int_regs): Explicitly supply zero as the value for
5818 ALPHA_ZERO_REGNUM in the register cache.
5819 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5820
59d70315
YQ
58212011-05-26 Yao Qi <yao@codesourcery.com>
5822
5823 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5824
251d32d9
TG
58252011-05-26 Tristan Gingold <gingold@adacore.com>
5826
5827 * symfile.h (struct dwarf2_section_names): New type.
5828 (struct dwarf2_debug_sections): New type.
5829 (dwarf2_has_info): Add parameter.
5830 * dwarf2read.c (dwarf2_elf_names): New variable.
5831 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5832 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5833 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5834 (dwarf2_has_info): Add names parameter. Pass names
5835 to dwarf2_locate_sections.
5836 (section_is_p): Rewrite using the names parameter.
5837 (dwarf2_locate_sections): Use section names from the names parameter.
5838 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5839 * elfread.c (read_psyms): Ditto.
5840 * machoread.c (macho_symfile_read): Ditto.
5841
652c71b4
AS
58422011-05-25 Andreas Schwab <schwab@redhat.com>
5843
5844 PR gdb/8677
5845 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5846
f17170e5
KS
58472011-05-24 Keith Seitz <keiths@redhat.com>
5848
5849 PR breakpoint/12803
5850 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5851 (decode_compound): Unconditionally call keep_name_info.
5852
cdac0397
PA
58532011-05-24 Pedro Alves <pedro@codesourcery.com>
5854
5855 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5856 scope, clear its command list.
5857 (map_breakpoint_numbers): Don't walk the related breakpoints list
5858 of each breakpoint.
5859
91d4fe3f
TT
58602011-05-24 Tom Tromey <tromey@redhat.com>
5861
5862 * MAINTAINERS: Move Jim Blandy to past maintainers.
5863
3017a003
TG
58642011-05-24 Tristan Gingold <gingold@adacore.com>
5865
5866 * symfile.h (enum dwarf2_section_enum): New type.
5867 (dwarf2_get_section_info): New prototype.
5868 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5869 section_name by sect. Use a switch to select the info.
5870 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5871 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5872
c91c8c16
PA
58732011-05-24 Pedro Alves <pedro@codesourcery.com>
5874
5875 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5876 shared library event breakpoint if there's no execution.
5877
77bc418a
TJB
58782011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5879
5880 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5881 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5882
c50491a7
TT
58832011-05-23 Tom Tromey <tromey@redhat.com>
5884
5885 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5886 NULL.
5887
6d64e6d4
DE
58882011-05-23 Doug Evans <dje@google.com>
5889
5890 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5891 entry for RuntimeError to doc string.
5892
2067c8d4
JG
58932011-05-23 Jerome Guitton <guitton@adacore.com>
5894
5895 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5896 sequence for probing loops.
5897
b136cd05
PA
58982011-05-23 Pedro Alves <pedro@codesourcery.com>
5899
5900 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5901 comment.
5902
22e74ef9
MK
59032011-05-21 Mark Kettenis <kettenis@gnu.org>
5904
5905 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5906 zero as the value for %g0 in the register cache.
5907 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5908 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5909
842951eb
PA
59102011-05-20 Pedro Alves <pedro@codesourcery.com>
5911
5912 * infrun.c (proceed): Set previous_inferior_ptid here.
5913 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5914 inferior_ptid, not null_ptid.
5915 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5916 (fetch_inferior_event): Nor here.
5917
46cf51e6
PA
59182011-05-20 Pedro Alves <pedro@codesourcery.com>
5919
5920 * inf-loop.c (inferior_event_handler): Only output a message if
5921 verbose.
5922
29ef4c46
LM
59232011-05-20 Luis Machado <lgustavo@codesourcery.com>
5924
5925 * MAINTAINERS: Update my e-mail address.
5926
f148b27e
PA
59272011-05-20 Pedro Alves <pedro@codesourcery.com>
5928
5929 * infrun.c (proceed): Switch the inferior event loop to
5930 INF_EXEC_COMPLETE if the target refused to resume from a
5931 vfork/fork.
5932
09cee04b
PA
59332011-05-20 Pedro Alves <pedro@codesourcery.com>
5934
5935 * infcmd.c: Include "inf-loop.h".
5936 (step_once): When stepping into an inline subroutine, pretend the
5937 target has run. If the target can async, switch the inferior
5938 event loop to INF_EXEC_COMPLETE.
5939 * inferior.h (user_visible_resume_ptid): Declare.
5940 * infrun.c (user_visible_resume_ptid): New function, factored out
5941 from `resume'.
5942 (resume): Use it.
5943 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5944 that the current thread is running. Merge async and sync
5945 branches.
5946
751b8ce1
PA
59472011-05-20 Pedro Alves <pedro@codesourcery.com>
5948
5949 * infcmd.c (step_1): Simplify synchronous case.
5950
e93a69ed
PA
59512011-05-20 Pedro Alves <pedro@codesourcery.com>
5952
5953 * tracepoint.c: Include exceptions.h.
5954 (TFILE_PID): Move higher in file.
5955 (tfile_open): Delay pushing the tfile target until we're assured
5956 the tfile header is present in the file. Wrap reading the initial
5957 newline-terminated lines in TRY_CATCH. Pop the target if the
5958 initial setup failed. Add the tfile's thread immediately
5959 aftwards, before any non-essential setup. Don't skip
5960 post_create_inferior if there are no traceframes present in the
5961 file.
5962 (tfile_close): Remove redundant check for null before xfree call.
5963 (tfile_thread_alive): New function.
5964 (init_tfile_ops): Register it as to_thread_alive callback.
5965
6823e2b1
PA
59662011-05-20 Pedro Alves <pedro@codesourcery.com>
5967
5968 * tracepoint.c (tfile_open): Delete #if 0'd code.
5969
b3c8eb43
JK
59702011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 Fix -readnow for -gdwarf-4 unused type units.
5973 * dwarf2read.c (struct signatured_type): Remove the field offset.
5974 (create_signatured_type_table_from_index): Remove its initialization.
5975 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5976 instead. Add a complaint call.
5977 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5978 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5979 (lookup_signatured_type_at_offset, read_signatured_type)
5980 (write_one_signatured_type): Update the field for per_cu.
5981
310afc76
TT
59822011-05-19 Tom Tromey <tromey@redhat.com>
5983
5984 * python/py-inferior.c (python_inferior_exit): Use
5985 target_gdbarch.
5986 (python_on_resume): Likewise.
5987
cf6c5ffb
TT
59882011-05-19 Matt Rice <ratmice@gmail.com>
5989
5990 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5991
fb80a3c5
HZ
59922011-05-19 Hui Zhu <teawater@gmail.com>
5993
5994 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5995
3672b1be
HZ
59962011-05-19 Hui Zhu <teawater@gmail.com>
5997
5998 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5999
ff355380
TT
60002011-05-18 Tom Tromey <tromey@redhat.com>
6001
6002 * dwarf2read.c (dwarf2_add_field): Constify.
6003 * value.c (value_static_field): Constify.
6004 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6005 Now const.
6006 * ax-gdb.c (gen_static_field): Constify
6007
ed731959
JK
60082011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * linux-nat.c (kill_callback): Use SIGKILL first.
6011
967cff16
JB
60122011-05-18 Joel Brobecker <brobecker@adacore.com>
6013
6014 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6015
1d06ead6
TT
60162011-05-18 Tom Tromey <tromey@redhat.com>
6017
6018 * value.c (value_fn_field): Constify.
6019 * symtab.c (gdb_mangle_name): Constify.
6020 * stabsread.c (update_method_name_from_physname): Make 'physname'
6021 argument const.
6022 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6023 const. Use explicit fputc_filtered loop.
6024 (pascal_type_print_base): Constify.
6025 * p-lang.h (pascal_type_print_method_args): Update.
6026 * linespec.c (add_matching_methods): Constify.
6027 (add_constructors): Likewise.
6028 * jv-typeprint.c (java_type_print_base): Constify.
6029 * gdbtypes.h (struct cplus_struct_type)
6030 <fn_fieldlist.fn_field.physname>: Now const.
6031 * dwarf2read.c (compute_delayed_physnames): Constify.
6032 (dwarf2_add_member_fn): Likewise.
6033 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6034
0d9a9a5f
PA
60352011-05-18 Pedro Alves <pedro@codesourcery.com>
6036
6037 * infrun.c (resume): Mention which is the current thread, and its
6038 current PC in debug output.
6039 (prepare_to_proceed): Mention the thread switching in debug
6040 output.
6041
05386e9e
TT
60422011-05-18 Tom Tromey <tromey@redhat.com>
6043
6044 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6045 path check. Use xmalloc and cleanups.
6046 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6047
ee86786c
TT
60482011-05-17 Tom Tromey <tromey@redhat.com>
6049
6050 * cp-valprint.c (cp_print_value_fields): Catch errors from
6051 value_static_field.
6052
9ff3b74f
TT
60532011-05-17 Tom Tromey <tromey@redhat.com>
6054
6055 * dwarf2read.c (dwarf2_get_die_type): Call
6056 get_die_type_at_offset.
6057 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6058 get_base_type function.
6059
cd3da28e
PA
60602011-05-17 Tomas Martinec <fyzmat@gmail.com>
6061
6062 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6063 trap_expected.
6064
fd20d931
DE
60652011-05-16 Doug Evans <dje@google.com>
6066
6067 * python/py-auto-load.c (source_section_scripts): Mention objfile
6068 name in warning.
6069
75fc9810
DE
60702011-05-15 Doug Evans <dje@google.com>
6071
290351b8
DE
6072 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6073 (try_thread_db_load_from_pdir): Call it. If unable to find
6074 libthread_db in directory of libpthread, see if we're looking at
6075 the separate-debug-info copy.
6076
75fc9810
DE
6077 * python/py-autoload.c (print_script): Print "Missing" instead of
6078 "No" for missing scripts.
6079 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6080
9f7bc587
DE
60812011-05-13 Doug Evans <dje@google.com>
6082
6083 * ui-file.c (stdio_file_write_async_safe): Add comment.
6084
093cee7d
HZ
60852011-05-14 Hui Zhu <teawater@gmail.com>
6086
6087 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6088
dbaefcf7
DE
60892011-05-13 Doug Evans <dje@google.com>
6090
98a5dd13
DE
6091 Support $pdir and $sdir in libthread-db-search-path.
6092 * NEWS: Mention $sdir,$pdir.
6093 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6094 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6095 (try_thread_db_load_from_sdir): New function.
6096 (try_thread_db_load_from_dir): New function.
6097 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6098 system directories if search of libthread-db-search-path fails,
6099 that is now done via $sdir.
6100 (has_libpthread): New function.
6101 (thread_db_load): Remove search for libthread_db in directory of
6102 libpthread, that is now done via $pdir.
6103
dbaefcf7
DE
6104 * NEWS: Mention "info auto-load-scripts".
6105 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6106 script_not_found_warning_printed.
6107 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6108 all callers updated. Initialize script_not_found_warning_printed.
6109 (get_auto_load_pspace_data_for_loading): New function.
6110 (maybe_add_script): New function.
6111 (source_section_scripts): Simplify. Only print one warning regardless
6112 of the number of auto-load scripts not found.
6113 (clear_section_scripts): Clear script_not_found_warning_printed.
6114 (auto_load_objfile_script): Record script in hash table.
6115 (count_matching_scripts): New function.
6116 (maybe_print_script): Renamed from maybe_print_section_script, all
6117 callers updated. Rewrite to use ui_out_*.
6118 (info_auto_load_scripts): Renamed from
6119 maintenance_print_section_scripts, all callers updated.
6120 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6121 renamed as "info auto-load-scripts".
6122
9930639c
TT
61232011-05-13 Tom Tromey <tromey@redhat.com>
6124
6125 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6126 (read_sleb128): Likewise.
6127
06826322
TT
61282011-05-13 Tom Tromey <tromey@redhat.com>
6129
6130 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6131 offset display.
6132
01124a23
DE
61332011-05-13 Doug Evans <dje@google.com>
6134
6135 * linux-nat.c (debug_linux_nat_async): Delete.
6136 Replace all references to use debug_linux_nat instead.
6137 (show_debug_linux_nat_async): Delete.
6138 (sigchld_handler): Call ui_file_write_async_safe instead of
6139 fprintf_unfiltered.
6140 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6141 * ui-file.c (struct ui_file): New member to_write_async_safe.
6142 (null_file_write_async_safe): New function.
6143 (ui_file_write_async_safe): New function.
6144 (set_ui_file_write_async_safe): New function.
6145 (ui_file_new): Initialize to_write_async_safe.
6146 (stdio_file_write_async_safe): New function.
6147 (struct stdio_file): New member fd.
6148 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6149 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6150 fileno.
01124a23
DE
6151 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6152 (set_ui_file_write_async_safe): Declare.
6153 (ui_file_write_async_safe): Declare.
6154
72fc29ff
TT
61552011-05-13 Tom Tromey <tromey@redhat.com>
6156
6157 * utils.c (do_value_free): New function.
6158 (make_cleanup_value_free): Likewise.
6159 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6160 freeing correctly.
6161 (dwarf2_loc_desc_needs_frame): Call
6162 make_cleanup_value_free_to_mark.
6163 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6164 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6165 value_free_to_mark.
6166 (new_dwarf_expr_context): Don't call value_mark.
6167 * dwarf2-frame.c (execute_stack_op): Call
6168 make_cleanup_value_free_to_mark.
6169 * defs.h (make_cleanup_value_free): Declare.
6170
028d0ed5
TJB
61712011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6172
6173 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6174 prepare_execute_command.
6175 * top.c (prepare_execute_command): Return cleanup.
6176 (execute_command): Use cleanup from prepare_execute_command.
6177 * top.h (prepare_execute_command): Change prototype to return
6178 cleanup.
6179 * defs.h (struct value): Add opaque declaration.
6180 (make_cleanup_value_free_to_mark): Add prototype.
6181 * utils.c (do_value_free_to_mark): New function.
6182 (make_cleanup_value_free_to_mark): Likewise.
6183
b087e0ed
TT
61842011-05-12 Tom Tromey <tromey@redhat.com>
6185
6186 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6187 cast left-hand-side to unsigned.
6188
8a9b8146
TT
61892011-05-12 Tom Tromey <tromey@redhat.com>
6190
6191 PR gdb/12617:
6192 * value.h (value_from_contents): Declare.
6193 * value.c (value_from_contents): New function.
6194 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6195 (dwarf2_get_die_type): New function.
6196 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6197 (allocate_piece_closure): Acquire reference to values.
6198 (read_pieced_value): Update for value-based expressions.
6199 (write_pieced_value): Likewise.
6200 (free_pieced_value_closure): Call value_free as needed.
6201 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6202 Update for value-based expressions.
6203 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6204 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6205 <get_base_type>: New field.
6206 (struct dwarf_expr_piece) <v.value>: Change type.
6207 <v.regno>: New field.
6208 (struct dwarf_expr_context) <mark>: New field.
6209 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6210 (dwarf_expr_pop, dwarf_expr_push): Remove.
6211 (dwarf_expr_push_address): Declare.
6212 * dwarf2expr.c (dwarf_arch_cookie): New global.
6213 (struct dwarf_gdbarch_types): New.
6214 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6215 functions.
6216 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6217 static.
6218 (dwarf_expr_push_address): New function.
6219 (dwarf_expr_pop): Now static.
6220 (dwarf_expr_fetch): Change return type.
6221 (dwarf_require_integral): New function.
6222 (dwarf_expr_fetch): Simplify.
6223 (add_piece): Update.
6224 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6225 functions.
6226 (execute_stack_op) <sign_ext>: Remove.
6227 Use values for DWARF stack.
6228 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6229 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6230 New cases.
6231 (_initialize_dwarf2expr): New function.
6232 (add_piece): Update.
6233 (new_dwarf_expr_context): Set new field.
6234 (free_dwarf_expr_context): Call value_free_to_mark.
6235 * dwarf2-frame.c (no_base_type): New function.
6236 (execute_stack_op): Set get_base_type field. Update.
6237
e8d28ef4
TT
62382011-05-12 Tom Tromey <tromey@redhat.com>
6239
6240 * dwarf2read.c (read_common_block): Fix formatting.
6241
d248b706
KY
62422011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6243
6244 * breakpoint.c (disable_breakpoint): Disable all locations
6245 associated with a tracepoint on target if a trace experiment is
6246 running.
6247 (disable_command): Disable a specific tracepoint location on target if
6248 a trace experiment is running.
6249 (do_enable_breakpoint): Enable all locations associated with a
6250 tracepoint on target if a trace experiment is running.
6251 (enable_command) Enable a specific tracepoint location on target if a
6252 trace experiment is running.
6253 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6254 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6255 to_disable_tracepoint.
6256 * target.h: Add declaration of struct bp_location.
6257 (struct target_ops): Add new functions
6258 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6259 to_disable_tracepoint to target operations.
6260 (target_supports_enable_disable_tracepoint): New macro.
6261 (target_enable_tracepoint): New macro.
6262 (target_disable_tracepoint): New macro.
6263 * remote.c (struct remote_state): Add new field.
6264 (remote_enable_disable_tracepoint_feature): New.
6265 (remote_protocol_features): Add new entry.
6266 (remote_supports_enable_disable_tracepoint): New.
6267 (remote_enable_tracepoint): New.
6268 (remote_disable_tracepoint): New.
6269 (init_remote_ops): Add remote_enable_tracepoint,
6270 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6271 to remote operations.
6272 * tracepoint.c (start_tracing): Allow tracing to start without any
6273 tracepoints enabled with just a warning if they can be re-enabled
6274 later.
6275 * NEWS: Add news item for the new behaviour of the enable and disable
6276 GDB commands when applied to tracepoints.
6277 Add news items for the new remote packets QTEnable and QTDisable.
6278
cc88a640
JK
62792011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6280
6281 * config.in: Regenerate.
6282 * configure: Regenerate.
6283 * configure.ac <--with-system-readline> (for readline_echoing_p):
6284 Remove the test.
6285 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6286 (tui_old_rl_echoing_p): ... here.
6287 (tui_setup_io): Rename extern declaration readline_echoing_p to
6288 _rl_echoing_p. Adjust assignments for the both renames.
6289
1f84b619
TJB
62902011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6291
6292 * symtab.c (lookup_symtab): Run cleanup before returning.
6293
74ac6d43
TT
62942011-05-11 Tom Tromey <tromey@redhat.com>
6295
6296 * dwarf2read.c (handle_data_member_location): New function.
6297 (dwarf2_add_field): Use it.
6298 (read_common_block): Likewise.
6299
5488dafb
JK
63002011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6301
6302 Make addrs->SECTINDEX always defined.
6303 * symfile.c (relative_addr_info_to_section_offsets): Check for
6304 SECTINDEX -1, not for zero ADDR.
6305 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6306 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6307 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6308 on its validity.
6309
84e578fb
DE
63102011-05-10 Doug Evans <dje@google.com>
6311
2471d008
DE
6312 * linux-thread-db.c: Whitespace cleanup.
6313 (try_thread_db_load_1): Fix comment.
6314
84e578fb
DE
6315 * linux-thread-db.c (set_libthread_db_search_path): New function.
6316 (_initialize_thread_db): Add setter for libthread-db-search-path.
6317
673c2bbe
DE
63182011-05-09 Doug Evans <dje@google.com>
6319
478aac75
DE
6320 * NEWS: Mention --with-iconv-bin.
6321 * configure.ac: New option --with-iconv-bin.
6322 * configure: Regenerate.
6323 * config.in: Regenerate.
6324 * defs.h (relocate_gdb_directory): Declare.
6325 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6326 removed progname parameter, and exported. All callers updated.
6327 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6328
673c2bbe
DE
6329 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6330 adding missing call to restore_child_signals_mask.
6331
e4c8541f
PA
63322011-05-09 Pedro Alves <pedro@codesourcery.com>
6333
6334 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6335 parameter.
6336 * infrun.c (proceed, start_remote): Adjust.
6337 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6338 and adjust to not handle it.
6339 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6340 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6341 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6342 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6343 * windows-nat.c (do_initial_windows_stuff): Adjust.
6344 * infcmd.c (attach_command): Adjust.
6345 (notice_new_inferior): Adjust.
6346
a536c6d7
UW
63472011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6348
6349 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6350 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6351 * spu-tdep.c (op_selb): Use correct value.
6352
7845b013
UW
63532011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6354
6355 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6356 "parent" parameter to symbol_file_add_from_bfd call.
6357
9c06b0b4
TJB
63582011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6359 Thiago Jung Bauermann <bauerman@br.ibm.com>
6360
6361 Implement support for PowerPC BookE masked watchpoints.
6362 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6363 section.
6364 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6365 method. Initialize to NULL in all existing breakpoint_ops instances.
6366 (struct breakpoint) <hw_wp_mask>: New field.
6367 * breakpoint.c (is_masked_watchpoint): Add prototype.
6368 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6369 breakpoint's breakpoint_ops.works_in_software_mode if available.
6370 (watchpoints_triggered): Handle the case of a hardware masked
6371 watchpoint trigger.
6372 (watchpoint_check): Likewise.
6373 (works_in_software_mode_watchpoint): New function.
6374 (insert_masked_watchpoint, remove_masked_watchpoint)
6375 (resources_needed_masked_watchpoint)
6376 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6377 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6378 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6379 functions.
6380 (masked_watchpoint_breakpoint_ops): New structure.
6381 (watch_command_1): Check for the existence of the `mask' parameter.
6382 Set b->ops according to the type of hardware watchpoint being created.
6383 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6384 (ppc_linux_remove_mask_watchpoint)
6385 (ppc_linux_masked_watch_num_registers): New functions.
6386 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6387 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6388 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6389 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6390 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6391 (target_masked_watch_num_registers): New functions.
6392 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6393 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6394 methods.
6395 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6396 (target_masked_watch_num_registers): Add prototypes.
6397
8be455d7
JK
63982011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6399
6400 PR 12573
6401 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6402 (producer_is_gcc_ge_4_0): New function.
6403 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6404 symtab->language code.
6405 (var_decode_location): Set cu->has_loclist.
6406 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6407 skip. Intialize force_skip from locations_valid. Move the prologue
6408 skipping code into two passes.
6409 * symtab.h (struct symtab): Make the primary field a bitfield. New
6410 field locations_valid.
6411
d8228535
JK
64122011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6413
6414 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6415 (classify_inner_name): Call cp_lookup_nested_type with
6416 yylval.tsym.type.
6417 * cp-namespace.c (cp_lookup_nested_type): New variable
6418 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6419 type_name_no_tag_or_error with saved_parent_type.
6420 * dwarf2read.c (load_partial_dies): Read in any children of
6421 DW_TAG_typedef with complaint in such case.
6422 * gdbtypes.c (type_name_no_tag_or_error): New function.
6423 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6424 * valops.c (destructor_name_p): New comment for parameter type. Remove
6425 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6426 * value.h (destructor_name_p): Remove type const.
6427
1976171a
JK
64282011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6429
6430 * symtab.c (compare_symbol_name): New function.
6431 (completion_list_add_name, expand_partial_symbol_name): Call it,
6432 remove the variable ncmp.
6433 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6434 gdb_assert it.
6435
a9634178
TJB
64362011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6437
6438 Demote to sw watchpoint only in update_watchpoint.
6439 * breakpoint.c (update_watchpoint): Change between software and
6440 hardware watchpoint for all kinds of watchpoints, not just
6441 read/write ones. Determine b->exact value here instead of
6442 in watch_command_1. Error out if there are not enough resources
6443 for a read or access hardware watchpoint.
6444 (watch_command_1): Remove logic of checking whether there are
6445 enough resources available, since update_watchpoint will do that
6446 work now. Don't set b->exact here. Catch exceptions thrown by
6447 update_watchpoint and delete the watchpoint.
6448 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6449 Use target_exact_watchpoints instead.
6450 (delete_breakpoint): Notify observers only if deleted watchpoint
6451 has a breakpoint number assigned to it.
6452
4c67c798
JJ
64532011-05-05 Janis Johnson <janisjo@codesourcery.com>
6454
6455 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6456
a3fcb948
JG
64572011-05-05 Jerome Guitton <guitton@adacore.com>
6458
6459 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6460 New functions.
6461 (i386_stack_tramp_frame_unwind): New static global.
6462 (i386_match_pattern): New function, extracted from i386_match_insn.
6463 (i386_match_insn): Use i386_match_pattern.
6464 (i386_match_insn_block): New function.
6465 (i386_tramp_chain_in_reg_insns)
6466 (i386_tramp_chain_on_stack_insns): New static variables.
6467 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6468 of unwinders.
6469
4d393d60
JM
64702011-05-04 Joseph Myers <joseph@codesourcery.com>
6471
6472 * configure.host (xscale*): Don't handle target.
6473 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6474 handle targets.
6475
f70bd40b
YQ
64762011-05-04 Yao Qi <yao@codesourcery.com>
6477
6478 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6479
dd3295ee
JB
64802011-05-03 Joel Brobecker <brobecker@adacore.com>
6481
6482 Revert:
6483 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6484 | * elfread.c (elf_symtab_read): Stop memory leak.
6485
90375a0e
PM
64862011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6487
6488 * nto-tdep.c (nto_target): Replace deprecated call to
6489 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6490
d07205c2
JK
64912011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6492
6493 Fix false GCC warning.
6494 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6495
1e718ff1
TJB
64962011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6497
6498 * breakpoint.c (update_watchpoint): Move code to change
6499 the enable state of breakpoint from here ...
6500 (do_enable_breakpoint): ... to here.
6501
35bef4fd
TT
65022011-04-26 Andrew Gontarek <andrewg@cray.com>
6503
78290264
PP
6504 * valprint.c (val_print_array_elements): Fixed poor performance
6505 of printing very large arrays with repeat_count_threshold set
6506 to unlimited. New comment.
35bef4fd 6507
38a714bb
TT
65082011-04-29 Tom Tromey <tromey@redhat.com>
6509
6510 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6511 (mi_parse): Likewise.
6512 * breakpoint.c (break_range_command): Use sizeof char*, not
6513 char**.
6514 (create_breakpoint): Likewise.
6515 (parse_breakpoint_sals): Likewise.
6516
eb73ad13
PA
65172011-04-29 Pedro Alves <pedro@codesourcery.com>
6518
6519 * linux-nat.c (linux_child_remove_fork_catchpoint)
6520 (linux_child_remove_vfork_catchpoint)
6521 (linux_child_remove_exec_catchpoint): New functions.
6522 (linux_target_install_ops): Install them.
6523
d65aec65
PM
65242011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6525
6526 PR mi/12531
6527
6528 * varobj.c (install_default_visualizer): Do not install a
6529 visualizer if the varobj is CPLUS_FAKE_CHILD.
6530 (construct_visualizer): Likewise.
6531
165195f4
JK
65322011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6533
6534 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6535 case insensitive comparison.
6536
30852783
UW
65372011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6538
6539 * infrun.c (proceed): Revert previous change.
6540 (resume): Instead, handle the case of signal delivery while stepping
6541 off a breakpoint location here, and only if software single-stepping
6542 is used. Handle nested signals.
6543
7ff120b4
YQ
65442011-04-28 Yao Qi <yao@codesourcery.com>
6545
6546 * arm-tdep.c (copy_unmodified): Rename to ...
6547 (arm_copy_unmodified): .. this. New.
6548 (copy_preload): Move common part to ...
6549 (install_preload): .. this. New.
6550 (arm_copy_preload): New.
6551 (copy_preload_reg): Move common part to ...
6552 (install_preload_reg): ... this. New.
6553 (arm_copy_preload_reg): New.
6554 (copy_b_bl_blx): Move common part to ...
6555 (install_b_bl_blx): .. this. New.
6556 (arm_copy_b_bl_blx): New.
6557 (copy_bx_blx_reg): Move common part to ...
6558 (install_bx_blx_reg): ... this. New.
6559 (arm_copy_bx_blx_reg): New.
6560 (copy_alu_reg): Move common part to ...
6561 (install_alu_reg): ... this. New.
6562 (arm_copy_alu_reg): New.
6563 (copy_alu_shifted_reg): Move common part to ...
6564 (install_alu_shifted_reg): ... this. New.
6565 (copy_ldr_str_ldrb_strb): Move common part to ...
6566 (install_ldr_str_ldrb_strb): ... this. New.
6567 (arm_copy_ldr_str_ldrb_strb): New.
6568 (copy_copro_load_store): Move some common part to ...
6569 (install_copy_copro_load_store): ... this. New.
6570 (arm_copy_copro_load_store): New.
6571 (copy_svc): Delete.
6572 (arm_copy_svc): Renamed from copy_svc.
6573 (copy_undef): Delete.
6574 (arm_copy_undef): Renamed from copy_undef.
6575 (decode_ext_reg_ld_st): Delete.
6576 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6577 (decode_svc_copro): Delete.
6578 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6579 (copy_copro_load_store, copy_alu_imm): update callers.
6580 (copy_extra_ld_st, copy_block_xfer): Likewise.
6581 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6582 (decode_miscellaneous, decode_dp_misc): Likewise.
6583 (decode_ld_st_word_ubyte, decode_media): Likewise.
6584 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6585 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6586 (decode_unconditional, decode_miscellaneous): Likewise.
6587 (decode_media, decode_b_bl_ldmstm): Likewise.
6588 (arm_process_displaced_insn): Likewise..
6589 (decode_misc_memhint_neon): Delete.
6590 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6591 (decode_miscellaneous): Delete.
6592 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6593 (decode_dp_misc): Delete.
6594 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6595 (decode_ld_st_word_ubyte): Delete.
6596 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6597 (decode_media): Delete.
6598 (arm_decode_media): Renamed from decode_media.
6599 (decode_b_bl_ldmstm): Delete.
6600 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6601 (decode_ext_reg_ld_st): Delete.
6602 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6603 (decode_unconditional): Delete.
6604 (arm_decode_unconditional): Renamed from decode_unconditional.
6605
559a7a62
JK
66062011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6607
6608 Case insensitive lookups implementation.
6609 * dwarf2read.c: Include ctype.h.
6610 (struct mapped_index): New field version.
6611 (mapped_index_string_hash): New parameter index_version. New comment
6612 for it. Call tolower appropriately.
6613 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6614 Choose the right index version for mapped_index_string_hash.
6615 (dwarf2_read_index): Support also the index version 5. Initialize the
6616 new struct mapped_index field version.
6617 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6618 (find_slot): Explain the version needs. Pass INT_MAX for the new
6619 parameter.
6620 (write_psymtabs_to_index): Produce version 5.
6621 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6622 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6623 * psymtab.c (lookup_partial_symbol): Find the
6624 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6625 entries.
6626 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6627 NAME lowercasing.
6628 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6629 (completion_list_add_name): New variable ncmp, initialize it, use it.
6630 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6631 * utils.c (strcmp_iw): Support case_sensitive_off.
6632 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6633 New function comment part. New variables saved_string1,
6634 saved_string2 and case_pass. Add a proper second pass.
6635
681bf369
JK
66362011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6637
6638 Replace re_comp/re_exec by regcomp/regexec.
6639 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6640 (search_symbols_name_matches): Use them, use regexec.
6641 (search_symbols): New variable retval_chain, adjust the use of
6642 old_chain against it. Replace re_comp by regcomp. Use the new struct
6643 search_symbols_data fields, use regexec instead of re_exec.
6644
b11b1f88
JK
66452011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6646
6647 Format the code for the next patch.
6648 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6649 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6650 New variables c1 and c2.
6651
2484c66b
UW
66522011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6653
6654 * infrun.c (proceed): Do not single-step into signal delivery
6655 when stepping off a breakpoint location.
6656 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6657 (insert_step_resume_breakpoint_at_caller): Likewise.
6658 (insert_step_resume_breakpoint_at_sal): Likewise.
6659 (insert_longjmp_resume_breakpoint): Likewise.
6660
47423772
YQ
66612011-04-27 Yao Qi <yao@codesourcery.com>
6662
6663 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6664
13bdd2e7
JB
66652011-04-27 Joel Brobecker <brobecker@adacore.com>
6666
6667 * procfs.c (procfs_pass_signals): Fix advance declaration.
6668
2455069d
UW
66692011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6670
6671 * target.h (struct target_ops): Remove to_notice_signals;
6672 add to_pass_signals.
6673 (target_notice_signals): Remove.
6674 (target_pass_signals): Add prototype.
6675 * target.c (update_current_target): Remove to_notice_signals;
6676 mention to_pass_signals.
6677 (target_pass_signals): New function.
6678 (debug_to_notice_signals): Remove.
6679 (setup_target_debug): Do not install debug_to_notice_signals.
6680
6681 * infrun.c (signal_pass): New global.
6682 (resume): Call target_pass_signals.
6683 (handle_inferior_event): Report all signals while stepping over
6684 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6685 are re-inserted when stepping over a signal handler.
6686 (signal_cache_update): New function.
6687 (signal_stop_update): Call it.
6688 (signal_print_update): Likewise.
6689 (signal_pass_update): Likewise.
6690 (handle_command): Call signal_cache_update and target_pass_signals
6691 instead of target_notice_signals.
6692 (_initialize_infrun): Initialize signal_pass.
6693
6694 * linux-nat.c (pass_mask): New global.
6695 (linux_nat_pass_signals): New function.
6696 (linux_nat_create_inferior): Report all signals initially.
6697 (linux_nat_attach): Likewise.
6698 (linux_nat_resume): Use pass_mask to decide whether to directly
6699 handle an inferior signal.
6700 (linux_nat_wait_1): Likewise.
6701 (linux_nat_add_target): Install to_pass_signals callback.
6702
6703 * nto-procfs.c (notice_signals): Remove.
6704 (procfs_resume): Do not call notice_signals.
6705 (procfs_notice_signals): Remove.
6706 (procfs_pass_signals): New function.
6707 (init_procfs_ops): Install to_pass_signals callback instead of
6708 to_notice_signals callback.
6709 (_initialize_procfs): Report all signals initially.
6710
6711 * procfs.c (procfs_notice_signals): Remove.
6712 (procfs_pass_signals): New function.
6713 (procfs_target): Install to_pass_signals callback instead of
6714 to_notice_signals callback.
6715 (register_gdb_signals): Remove.
6716 (procfs_debug_inferior): Report all signals initially.
6717 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6718
6719 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6720 parameters; use them instead of calling signal_..._state routines.
6721 (remote_notice_signals): Remove.
6722 (remote_start_remote): Report all signals initially.
6723 (remote_resume): Do not call remote_pass_signals.
6724 (_initialize_remote): Install to_pass_signals callback instead of
6725 to_notice_signals callback.
6726
46c6471b
PA
67272011-04-27 Pedro Alves <pedro@codesourcery.com>
6728
6729 * breakpoint.c (user_settable_breakpoint): Delete.
6730 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6731 (delete_command): Check user_breakpoint_p instead of looking at
6732 the breakpoint's type.
6733 (disable_command): Ditto.
6734 (enable_command): Ditto.
6735 (delete_trace_command): Use user_breakpoint_p instead of looking
6736 at the breakpoint number directly. When checking if there are
6737 user visible tracepoints, in order to know whether to ask the user
6738 for confirmation, check whether the breakpoint is actually a
6739 tracepoint.
6740
f6d90398
VP
67412011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6742
6743 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6744 compilation.
6745
8d3788bd
VP
67462011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6747
6748 MI breakpoint notifications.
6749
f33edef8
PP
6750 * annotate.c (breakpoint_changed): Adjust parameter type.
6751 * breakpoint.c (set_breakpoint_condition): Adjust to change
6752 in breakpoint_modified type.
6753 (breakpoint_set_commands): Likewise.
6754 (do_map_commands_command): Likewise.
6755 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6756 changed after bumping hit count.
6757 (bpstat_stop_status): Likewise.
6758 (print_one_breakpoint_location): Don't wrap in tuple here.
6759 (print_one_breakpoint): Always print individual locations.
6760 For locations, use unnamed tuple.
6761 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6762 has changed.
6763 (create_catchpoint, create_syscall_event_catchpoint): Call
6764 breakpoint_created obsever.
6765 (mention): Don't call breakpoint_created observer.
6766 (create_breakpoint_sal): Call breakpoint_created observer.
6767 (create_breakpoint, watch_command_1): Likewise.
6768 (create_ada_exception_breakpoint): Likewise.
6769 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6770 (locations_are_equal): New.
6771 (update_breakpoint_locations): If locations were changed, notify.
6772 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6773 Call breakpoint_modified observer.
6774
6775 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6776 (mi_cmd_break_insert): Don't set observers for modify and delete.
6777 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6778 (mi_breakpoint_created, mi_breakpoint_deleted)
6779 (mi_breakpoint_modified): New.
6780 (mi_interpreter_init): Hook the above.
6781 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6782 while -break-* commands are executing.
6783 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6784 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6785 (mi_redirect): New.
6786 (mi_ui_out_impl): Hook in mi_redirect.
6787 (mi_field_skip): True to the name, skip the field, don't output
6788 a field with an empty value.
6789
6790 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6791 (gdbpy_breakpoint_deleted): Adjust.
6792 * tui/tui-hooks.c (tui_event_create_breakpoint)
6793 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6794
a8f42b45
UW
67952011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6796
6797 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6798 (procfs_remove_hw_watchpoint): Likewise.
6799
57e12211
TT
68002011-04-26 Michael Walle <michael@walle.cc>
6801
6802 * remote.c (remote_start_remote): Ack packet after sending the
6803 interrupt sequence.
6804
af96c192
YQ
68052011-04-26 Yao Qi <yao@codesourcery.com>
6806
f33edef8
PP
6807 * linux-nat.c: Move common macros to ...
6808 Include linux-ptrace.h.
6809 * common/linux-ptrace.h: ... here. New.
af96c192 6810
3e03848b
JK
68112011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6812
6813 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6814 !objfile_has_partial_symbols. New comment.
6815 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6816 SYM_READ_PSYMBOLS is not present. Extend the comment.
6817 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6818
1ae0d051
JK
68192011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6820
6821 * defs.h (ENUM_BITFIELD): Remove.
6822
03f2bd59
JK
68232011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6824 Eli Zaretskii <eliz@gnu.org>
6825
6826 * NEWS: Document the new gdbserver --once option.
6827
4161fbb0
JZ
68282011-04-21 Jie Zhang <jzhang918@gmail.com>
6829
6830 * MAINTAINERS: Update my email address.
6831
bcb28afc
PM
68322011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6833
6834 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6835 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6836 function call if __STDC_ISO_10646__ macro is defined.
6837 (intermediate_encoding): New prototype.
6838 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6839 to generate compile time error for unsupported gdb_wchar_t size.
6840 (ENDIAN_SUFFIX): New macro.
6841 (intermediate_encoding): New function.
6842
7b08b9eb
JK
68432011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 * ada-lang.c (struct add_partial_datum): Update the comment for
6846 expand_partial_symbol_name.
6847 (ada_add_partial_symbol_completions): Rename to ...
6848 (ada_expand_partial_symbol_name): ... here, change return type, update
6849 function comment, call symbol_completion_match instead of
6850 symbol_completion_add.
6851 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6852 and ada_expand_partial_symbol_name.
6853 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6854 FILE_MATCHER.
6855 (dw2_map_symbol_names): Remove.
6856 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6857 * psymtab.c (map_symbol_names_psymtab): Remove.
6858 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6859 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6860 order.
6861 (psym_functions): Unlist map_symbol_names_psymtab.
6862 (map_partial_symbol_names): Rename to ...
6863 (expand_partial_symbol_names): ... here, change the FUN type, call
6864 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6865 * psymtab.h (map_partial_symbol_names): Rename to ...
6866 (expand_partial_symbol_names): ... here, change the FUN type.
6867 * symfile.h (struct quick_symbol_functions): Update the description of
6868 expand_symtabs_matching. Remove map_symbol_names.
6869 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6870 (struct add_name_data): Update the comment for
6871 expand_partial_symbol_name.
6872 (add_partial_symbol_name): Rename to ...
6873 (expand_partial_symbol_name): ... here. Replace
6874 completion_list_add_name call by strncmp.
6875 (default_make_symbol_completion_list_break_on): Use now
6876 expand_partial_symbol_names and expand_partial_symbol_name.
6877 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6878
90476074
TT
68792011-04-20 Tom Tromey <tromey@redhat.com>
6880
6881 * dwarf2read.c (save_gdb_index_command): Replace format
6882 documentation with a pointer to the manual.
6883
c21236dc
PA
68842011-04-20 Pedro Alves <pedro@codesourcery.com>
6885
6886 * regcache.c: Include remote.h.
6887 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6888 (regcache_dump): Handle regcache_dump_remote.
6889 (maintenance_print_remote_registers): New function.
6890 (_initialize_regcache): Install "maint print remote-registers"
6891 command.
6892 * remote.c (map_regcache_remote_table): New function, factored out
6893 from ...
6894 (init_remote_state): ... here.
6895 (remote_register_number_and_offset): New.
6896 * remote.h (remote_register_number_and_offset): Declare.
6897
b78974c3
PA
68982011-04-20 Pedro Alves <pedro@codesourcery.com>
6899
6900 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6901 null_ptid, assume and allow a NULL address space, instead of
6902 asking the target for the ptid's address space.
6903 * infrun.c (ptid_is_pid): Remove assertion.
6904
7a9dd1b2
TT
69052011-04-19 Tom Tromey <tromey@redhat.com>
6906
6907 * windows-tdep.c (windows_xfer_shared_library):
6908 * windows-nat.c (get_module_name, windows_make_so):
6909 * v850-tdep.c (v850_handle_pushm):
6910 * utils.c (null_cleanup, gdb_realpath):
6911 * ui-out.c (get_next_header):
6912 * tracepoint.c (clear_traceframe_info):
6913 * symtab.c (lookup_symtab):
6914 * serial.h (struct serial_ops):
6915 * mipsread.c (read_alphacoff_dynamic_symtab):
6916 * infcmd.c (print_return_value):
6917 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6918 * f-exp.y (parse_number):
6919 * exceptions.c (catch_exceptions):
6920 * dummy-frame.c (dummy_frame_this_id):
6921 * defs.h (struct cleanup):
6922 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6923 * arm-tdep.c (arm_push_dummy_call):
6924 * amd64-tdep.h (amd64_collect_xsave):
6925 * amd64-tdep.c (amd64_collect_xsave):
6926 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6927 * README (typing): Remove duplicate words.
6928 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6929 * infrun.c (siginfo_value_read): Fix typo.
6930 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6931 * top.c (source_line_number): Add comma.
6932
9941e0c5
MK
69332011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6934
6935 * thread.c (any_live_thread_of_process): Prioritize threads
6936 that are not executing.
6937 * gdbthread.h (any_live_thread_of_process): Update comment
6938 as per above change.
6939
ed4b0e6a
AS
69402011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6941
6942 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6943 (scan_xcoff_symtab): Likewise.
6944
9b13a2db
PM
69452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6946
6947 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6948 inside if clause.
6949
1c6e1b0d
PM
69502011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6951 Pedro Alves <pedro@codesourcery.com>
6952
6953 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6954 variables to simplify code and avoid == operator at end of
6955 line as this is against GNU coding standards.
6956
74de0234
PM
69572011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6958
6959 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6960 lm_name to name_lm to avoid conflict with lm_name function.
6961
b23518f0
PM
69622011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6963
6964 ARI fixes: Use only lowercase function name for static functions.
6965 * nto-tdep.c (LM_ADDR): Rename to...
6966 (lm_addr): New function name.
6967 (nto_relocate_section_addresses): Adapt to change above.
6968 * solib-sunos.c (LM_ADDR): Rename to...
6969 (lm_addr): New function name.
6970 (LM_NEXT): Rename to...
6971 (lm_next): New function name.
6972 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6973 function name changes above.
6974 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6975 (lm_addr_from_link_map): New function name.
6976 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6977 (has_lm_dynamic_from_link_map): New function name.
6978 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6979 (lm_dynamic_from_link_map): New function name.
6980 (LM_ADDR_CHECK): Rename to...
6981 (lm_addr_check): New function name.
6982 (LM_NEXT): Rename to...
6983 (lm_next): New function name.
6984 (LM_PREV): Rename to...
6985 (lm_prev): New function name.
6986 (LM_NAME): Rename to...
6987 (lm_name): New function name.
6988 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6989 (ignore_first_link_map_entry): New function name.
6990 (svr4_keep_data_in_core): Adapt to function name changes above.
6991 (svr4_current_sos): Likewise.
6992 (enable_break): Likewise.
6993 (svr4_relocate_section_addresses): Likewise.
6994
1448a0a2
PM
69952011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6996
6997 ARI cleanup.
6998 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6999 sprintf. Simplify code and avoid loosing memory.
7000 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7001 (call0_frame_cache): Remove && operator from end of line.
7002
02835898
JK
70032011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 Fix libraries displacement if they change whether they were prelinked.
7006 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7007 does not match. Comment why.
7008
9a845ea2
JK
70092011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7010
7011 * corelow.c: Include wrapper.h.
7012 (core_open): Call now gdb_target_find_new_threads.
7013 * wrapper.c: Include target.h.
7014 (gdb_target_find_new_threads): New.
7015 * wrapper.h (gdb_target_find_new_threads): New declaration.
7016
254f582e
JK
70172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7018
7019 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7020 even if !TARGET_HAS_EXECUTION.
7021
63524580
JK
70222011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7023
7024 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7025 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7026 bfd_get_synthetic_symtab.
7027 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7028 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7029 parameter parent, remove the call to add_separate_debug_objfile.
7030 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7031 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7032 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7033 parent, new comment for it, call add_separate_debug_objfile for it.
7034 (symbol_file_add_separate): Pass objfile as the parameter parent,
7035 remove the call to add_separate_debug_objfile.
7036 (symbol_file_add_from_bfd): New parameter parent, pass it.
7037 (symbol_file_add): Pass NULL to the new parameter parent.
7038 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7039
90359a16
JK
70402011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7041
7042 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7043 BSF_SYNTHETIC.
7044
626e7282
JK
70452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7046
7047 Fix Python access to inlined frames.
7048 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7049 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7050
cf31e6f9
TT
70512011-04-15 Tom Tromey <tromey@redhat.com>
7052
7053 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7054
c8d895f1
GB
70552011-04-15 Gary Benson <gbenson@redhat.com>
7056
7057 * MAINTAINERS: Add myself to write-after-approval section.
7058
56a9aa1d
MF
70592011-04-14 Mike Frysinger <vapier@gentoo.org>
7060
7061 * remote-sim.c (sim_command_completer): New function.
7062 (_initialize_remote_sim): Set completer to sim_command_completer.
7063
ba770c9c
TJB
70642011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7065
7066 * breakpoint.c (print_exception_catchpoint): Rename to ...
7067 (print_it_exception_catchpoint): ... this.
7068 (gnu_v3_exception_catchpoint_ops): Update with new name
7069 for print_it_exception_catchpoint.
7070
51bf2553
EBM
70712011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7072
7073 * MAINTAINERS: Add myself for write after approval privileges.
7074
d242658c
MP
70752011-04-13 Marek Polacek <mpolacek@redhat.com>
7076
7077 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7078
4a4106ca
TJB
70792011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7080
7081 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7082
26063d49
TJB
70832011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7084
7085 * breakpoint.c (save_breakpoints): Verify whether
7086 breakpoint_ops.print_recreate is defined before calling it.
7087
7782b183
GB
70882011-04-11 Gary Benson <gbenson@redhat.com>
7089
7090 Fix failure with --enable-maintainer-mode.
7091 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7092
e8930875
JK
70932011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 Code cleanup.
7096 * symtab.c (search_symbols): Reorder the KIND description in the
7097 function comment. Remove the unused 4th element of types, types2,
7098 types3 and types4. New gdb_assert on KIND.
7099 (symtab_symbol_info): Remove the unused 4th element of classnames.
7100 New gdb_assert on KIND.
7101 * symtab.h (enum search_domain): New warning in the enum comment.
7102 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7103 TYPES_DOMAIN.
7104
b4f2f049
JK
71052011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7106
7107 Fix crash of gdb save-index on a STABS file.
7108 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7109 PSYMTABS_ADDRMAP.
7110
60d5a603
JK
71112011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7112
7113 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7114 * dwarf2read.c: Include ctype.h.
7115 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7116 functions.
7117 (dwarf2_add_field): Fix new_field->accessibility by calling
7118 dwarf2_default_access_attribute. Restructure setting accessibility
7119 vs. virtuality.
7120 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7121 is_private and is_protected by calling
7122 dwarf2_default_access_attribute.
7123
e0f68161
KB
71242011-04-08 Kevin Buettner <kevinb@redhat.com>
7125
7126 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7127 to the initialization.
7128
2e1aae43
SE
71292011-04-08 Steve Ellcey <sje@cup.hp.com>
7130
7131 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7132 initalization.
7133
c6ca3dab
PM
71342011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7135
7136 Remove support for old Cygwin 1.5 versions.
7137 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7138 function on old Cygwin version.
7139 * windows-nat.c: Remove cygwin version check and always define
7140 __USEWIDE for Cygwin compilation.
7141
bd18283a
YQ
71422011-04-07 Yao Qi <yao@codesourcery.com>
7143
7144 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7145 and TO.
7146 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7147 (arm_copy_svc): Remove parameters INSN and TO.
7148 (decode_svc_copro): Update caller.
7149 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7150 from function pointer `copy_svc_os'.
7151
8c8dba6d
YQ
71522011-04-07 Yao Qi <yao@codesourcery.com>
7153
7154 * arm-tdep.c (cleanup_branch): Set a correct return address in
7155 LR for ARM and Thumb.
7156
59d7bcaf
JK
71572011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7158
7159 Code cleanup.
7160 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7161 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7162 in the function comment, a new note on values compatibility.
7163 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7164 * symtab.h (SYMBOL_HASH_NEXT): New.
7165
e7db58ea
TJB
71662011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7167
7168 * ppc-linux-nat.c (check_condition): Add len output parameter.
7169 Set it based on the memory region referenced in the condition
7170 expression. Update all callers.
7171
9f743ef6
JK
71722011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7173
7174 Fix crash regression on systems featuring .gdb_index.
7175 * objfiles.c (free_objfile): Move the
7176 forget_cached_source_info_for_objfile call earlier. Comment it.
7177 Extend the comment for objfile_free_data.
7178
9182c5bc
JK
71792011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7180
7181 Fix regression of displaying the debug format.
7182 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7183 subfile.
7184
04bd08de
TT
71852011-04-04 Tom Tromey <tromey@redhat.com>
7186
7187 * cli/cli-interp.c (struct captured_execute_command_args):
7188 Remove.
7189 (do_captured_execute_command): Remove.
7190 (safe_execute_command): Use TRY_CATCH.
7191 * cli/cli-script.c (struct wrapped_read_command_file_args):
7192 Remove.
7193 (wrapped_read_command_file): Remove.
7194 (script_from_file): Use TRY_CATCH.
7195 * exceptions.c (catch_exception): Remove.
7196 * exceptions.h (catch_exception): Remove.
7197 (deprecated_throw_reason): Update comment.
7198 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7199 argument to 'context'.
7200 (mi_execute_command): Use TRY_CATCH.
7201 * remote.c (struct start_remote_args): Remove.
7202 (remote_start_remote): Update; change arguments.
7203 (remote_open_1): Use TRY_CATCH.
7204
58438ac1
TT
72052011-04-04 Tom Tromey <tromey@redhat.com>
7206
7207 * tracepoint.c (scope_info): Update.
7208 * symtab.c (decode_line_spec): Update.
7209 * python/python.c (gdbpy_decode_line): Update.
7210 * linespec.h (decode_line_1): Update.
7211 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7212 (decode_compound, find_method, symtab_from_filename)
7213 (decode_variable): Likewise.
7214 * cli/cli-cmds.c (edit_command): Update.
7215 (list_command): Update.
7216 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7217 argument.
7218 (create_breakpoint): Update.
7219 (until_break_command): Update.
7220 (addr_string_to_sals): Update.
7221 (decode_line_spec_1): Update.
7222
b78a6381
TT
72232011-04-04 Tom Tromey <tromey@redhat.com>
7224
7225 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7226 (do_captured_parse_breakpoint): Remove.
7227 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7228 Use TRY_CATCH directly.
7229
00174a86
TT
72302011-04-04 Tom Tromey <tromey@redhat.com>
7231
7232 * symtab.h (free_symtab): Remove.
7233 (forget_cached_source_info_for_objfile): Declare.
7234 * symmisc.c (free_symtab): Remove.
7235 * source.c (forget_cached_source_info_for_objfile): New function.
7236 (forget_cached_source_info): Use it.
7237 * objfiles.c (free_objfile): Simplify check before calling
7238 clear_current_source_symtab_and_line. Call
7239 forget_cached_source_info_for_objfile.
7240
30cc903e
TT
72412011-04-04 Tom Tromey <tromey@redhat.com>
7242
7243 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7244 (new_symtab): Don't set `free_code' on symtab.
7245 (new_linetable): Properly handle size==0.
7246 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7247 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7248 free_func.
7249 * jv-lang.c (struct jv_per_objfile_data): New.
7250 (jv_per_objfile_free): Free the data.
7251 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7252 (get_java_class_symtab): Set the `dict' field on the
7253 jv_per_objfile_data.
7254 (free_class_block): Remove.
7255 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7256 the symtab.
7257
0c2e6019
TT
72582011-04-04 Tom Tromey <tromey@redhat.com>
7259
7260 * symfile.c (reread_symbols): Update.
7261 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7262 field.
7263 * objfiles.c (allocate_objfile): Update.
7264 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7265 declare.
7266 * cp-namespace.c (lookup_symbol_file): Don't call
7267 lookup_possible_namespace_symbol.
7268 (initialize_namespace_symtab, get_possible_namespace_block)
7269 (free_namespace_block, cp_check_possible_namespace_symbols)
7270 (check_possible_namespace_symbols_loop)
7271 (check_one_possible_namespace_symbol)
7272 (lookup_possible_namespace_symbol): Remove.
7273 (maintenance_cplus_namespace): Replace with notice.
7274 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7275
554d387d
TT
72762011-04-04 Tom Tromey <tromey@redhat.com>
7277
7278 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7279 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7280 * symmisc.c (free_symtab): Don't free debugformat.
7281 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7282 (record_debugformat, record_producer): Document.
7283 * buildsym.c (end_symtab): Don't save debugformat and producer
7284 names on obstack.
7285 (end_symtab): Don't free debugformat and producer fields.
7286 (record_debugformat): Don't call xstrdup.
7287 (record_producer): Likewise.
7288
d4d4db8a
TT
72892011-04-04 Tom Tromey <tromey@redhat.com>
7290
7291 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7292 (source_line_charpos, source_charpos_line): Remove.
7293
8903c50d
TT
72942011-04-04 Tom Tromey <tromey@redhat.com>
7295
7296 * symtab.h (domain_enum): Split in two...
7297 (enum search_domain): New.
7298 (search_symbols): Update.
7299 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7300 redundant declarations.
7301 (search_symbols): Change 'kind' argument to search_domain.
7302 Update.
7303 (print_symbol_info): Likewise.
7304 (symtab_symbol_info): Likewise.
7305 * symfile.h (struct quick_symbol_functions)
7306 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7307 <expand_symtabs_matching>: Likewise.
7308 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7309 (expand_symtabs_matching_via_partial): Update.
7310 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7311 (dw2_expand_symtabs_for_function): Update.
7312 * block.h: Moved anonymous enum...
7313 * defs.h (enum block_enum): ... here. Now named.
7314
d9351f5f 73152011-04-03 Joel Brobecker <brobecker@adacore.com>
7316
7317 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7318 * version.in: Bump version to 7.3.50.20110403-cvs.
7319
d6e00af6
JB
73202011-04-03 Joel Brobecker <brobecker@adacore.com>
7321
7322 * NEWS: Create a new section for the next release branch.
7323 Rename the section of the current branch, now that it has
7324 been cut.
7325
2b9e5ea6
UW
73262011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7327
7328 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7329 for "fpscr" in target description.
7330
0cf03b49
JK
73312011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7334 initialize it. Delay HASH initialization. Strip the part after open
7335 parenthesis for languages with qualifiers. Call do_cleanups.
7336
5d901a73
TT
73372011-04-01 Tom Tromey <tromey@redhat.com>
7338
7339 * utils.c (report_command_stats): Don't print `-' for negative
7340 number.
7341
b0dd7688
JB
73422011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7343
7344 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7345 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7346 typedefs.
7347
956a9fb9
JB
73482011-04-01 Joel Brobecker <brobecker@adacore.com>
7349
7350 * breakpoint.h (bpdisp_text): Add declaration.
7351 * breakpoint.c (bpdisp_text): Make non-static.
7352 * ada-lang.c: #include "mi/mi-common.h".
7353 (print_it_exception): Rewrite to improve GDB/MI output.
7354
3352110b
PA
73552011-04-01 Pedro Alves <pedro@codesourcery.com>
7356
7357 * arm-tdep.h (struct address_space): Add forward declaration.
7358
18819fa6
UW
73592011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7360
7361 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7362 * arm-tdep.c (arm_override_mode): New global.
7363 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7364 execution mode heuristics.
7365 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7366 second single-step breakpoint if needed, using
7367 arm_insert_single_step_breakpoint.
7368 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7369 ARM execution mode, do not call thumb_get_next_pc_raw.
7370 (arm_get_next_pc): Encode execution mode in return value. Call
7371 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7372 (arm_insert_single_step_breakpoint): New function.
7373 (arm_software_single_step): Call it.
7374 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7375 argument to return execution mode of sigreturn target.
7376 (arm_linux_syscall_next_pc): Use it.
7377 (arm_linux_copy_svc): Update call.
7378 (arm_linux_software_single_step): Call
7379 arm_insert_single_step_breakpoint.
7380
a6e293d1
JK
73812011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7382
7383 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7384 the comment.
7385
a4c8e806
TT
73862011-03-31 Tom Tromey <tromey@redhat.com>
7387
7388 * varobj.c (update_dynamic_varobj_children): Properly handle
7389 errors from iterator.
7390
df5c6c50
JK
73912011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7392
7393 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7394 struct linkage name twice.
7395
1dae3efc
TT
73962011-03-31 Tom Tromey <tromey@redhat.com>
7397
7398 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7399 missing ">" to message.
7400
f4f7ab05
TT
74012011-03-31 Tom Tromey <tromey@redhat.com>
7402
7403 * varobj.c (instantiate_pretty_printer): Remove duplicate
7404 'return'.
7405
fcf250e2
UW
74062011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7407
7408 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7409 if neither saved value nor register available (e.g. signal frame).
7410
ee6436e3
TJB
74112011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7412
7413 * macroexp.c (expand): Avoid uninitialized variable
7414 compiler warning.
7415
423f41a5
TJB
74162011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7417
7418 * breakpoint.c (break_range_command): Fix typo in comment.
7419
f1310107
TJB
74202011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7421 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7422
7423 Implement support for PowerPC BookE ranged breakpoints.
7424 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7425 * breakpoint.h (struct bp_target_info) <length>: New member
7426 variable.
7427 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7428 instead of struct breakpoint as argument, and also add ASPACE
7429 and BP_ADDR arguments. Update all callers.
7430 (struct breakpoint_ops) <print_one_detail>: New method.
7431 (struct breakpoint) <addr_string_range_end>: New member variable.
7432 * breakpoint.c (breakpoint_location_address_match): Add function
7433 prototype.
7434 (insert_bp_location): Set bl->target_info.length.
7435 (breakpoint_here_p): Call breakpoint_location_address_match.
7436 (moribund_breakpoint_here_p): Likewise.
7437 (regular_breakpoint_inserted_here_p): Likewise.
7438 (breakpoint_thread_match): Likewise.
7439 (bpstat_stop_status): Likewise.
7440 (bpstat_check_location): Move call to
7441 breakpoint_ops.breakpoint_hit to the top.
7442 (print_one_breakpoint_location): Call
7443 breakpoint_ops.print_one_detail if available.
7444 (breakpoint_address_match_range): New function.
7445 (breakpoint_location_address_match): Likewise.
7446 (breakpoint_locations_match): Compare the length field of the
7447 locations too.
7448 (hw_breakpoint_used_count): Count resources used by all locations
7449 in a breakpoint, and use breakpoint_ops.resources_needed if
7450 available.
7451 (breakpoint_hit_ranged_breakpoint): New function.
7452 (resources_needed_ranged_breakpoint): Likewise.
7453 (print_it_ranged_breakpoint): Likewise.
7454 (print_one_ranged_breakpoint): Likewise.
7455 (print_one_detail_ranged_breakpoint): Likewise.
7456 (print_mention_ranged_breakpoint): Likewise.
7457 (print_recreate_ranged_breakpoint): Likewise.
7458 (ranged_breakpoint_ops): New structure.
7459 (find_breakpoint_range_end): New function.
7460 (break_range_command): Likewise.
7461 (delete_breakpoint): Free addr_string_range_end.
7462 (update_breakpoint_locations): Add SALS_END argument. Update
7463 all callers. Calculate breakpoint length if a non-zero SALS_END
7464 is given. Call breakpoint_locations_match instead of
7465 breakpoint_address_match.
7466 (reset_breakpoint): Find SaL of the end of the range if B is a
7467 ranged breakpoint.
7468 (_initialize_breakpoint): Register break-range command.
7469 * defs.h (print_core_address): Add function prototype.
7470 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7471 function.
7472 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7473 (ppc_linux_remove_hw_breakpoint): Likewise.
7474 (_initialize_ppc_linux_nat): Initialize
7475 to_ranged_break_num_registers.
7476 * target.c (update_current_target): Add comment about
7477 to_ranged_break_num_registers.
7478 (target_ranged_break_num_registers): New function.
7479 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7480 New method.
7481 (target_ranged_break_num_registers): Add function prototype.
7482 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7483 * utils.c (print_core_address): ... here.
7484
02d20e4a
UW
74852011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7486
7487 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7488 variable compiler warning.
7489
ef23e705
TJB
74902011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7491
7492 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7493 code from here ...
7494 (re_set_breakpoint): ... to here ...
7495 (addr_string_to_sals): ... and here.
7496
311e6ab3
PM
74972011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7498
7499 * Makefile.in (SFILES): Add missing C sources.
7500 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7501 Add missing headers.
7502
acd1d99c
MF
75032011-03-29 Mike Frysinger <vapier@gentoo.org>
7504
7505 * .gitignore: New file.
7506
66ee2731
MF
75072011-03-29 Mike Frysinger <vapier@gentoo.org>
7508
7509 * NEWS: Mention new cfi device simulation.
7510
53832f31
TT
75112011-03-29 Tom Tromey <tromey@redhat.com>
7512
7513 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7514 otherwise anonymous types.
7515 (dwarf2_name): Likewise.
7516 * valops.c (value_struct_elt_for_reference): Refine artificial
7517 type logic. Call error if j==-1.
7518
09b58708
JK
75192011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7520
7521 Fix false GCC warning.
7522 * infcall.c (find_function_addr): Initialize funaddr.
7523
6023c606
PM
75242011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7525
7526 Fix mingw compilation with --enable-targets=all.
7527 * remote-mips.c (gdb_usleep.h): Include header.
7528 (mips_enter_debug): Use gdb_usleep instead of sleep.
7529
0e30163f
JK
75302011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7531
7532 Support resolution of STT_GNU_IFUNC via breakpoints.
7533 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7534 bp_gnu_ifunc_resolver_return.
7535 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7536 the loop. Support bp_gnu_ifunc_resolver and
7537 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7538 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7539 breakpoints.
7540 (bptype_string, print_one_breakpoint_location): Support
7541 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7542 (user_settable_breakpoint): Return true also for
7543 bp_gnu_ifunc_resolver.
7544 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7545 bp_gnu_ifunc_resolver_return.
7546 (set_breakpoint_location_function): New parameter explicit_loc,
7547 describe it. Call find_pc_partial_function_gnu_ifunc with new
7548 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7549 EXPLICIT_LOC is not set.
7550 (set_raw_breakpoint): Set EXPLICIT_LOC for
7551 set_breakpoint_location_function.
7552 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7553 set_breakpoint_location_function.
7554 (mention): Support bp_gnu_ifunc_resolver and
7555 bp_gnu_ifunc_resolver_return.
7556 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7557 set_breakpoint_location_function.
7558 (update_breakpoint_locations): Remove static.
7559 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7560 bp_gnu_ifunc_resolver_return.
7561 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7562 bp_gnu_ifunc_resolver_return.
7563 (update_breakpoint_locations): New declaration.
7564 * elfread.c: Include gdbthread.h and regcache.h.
7565 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7566 functions.
7567 (elf_gnu_ifunc_fns): Install them.
7568 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7569 (stub_gnu_ifunc_resolver_return_stop): New functions.
7570 (stub_gnu_ifunc_fns): Install them.
7571 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7572 and gnu_ifunc_resolver_return_stop.
7573 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7574
07be84bf
JK
75752011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7576
7577 STT_GNU_IFUNC reader implementation.
7578 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7579 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7580 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7581 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7582 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7583 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7584 (elf_gnu_ifunc_resolve_addr): New.
7585 (elf_symfile_read): Call elf_rel_plt_read.
7586 (elf_gnu_ifunc_fns): New.
7587 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7588 Install elf_gnu_ifunc_fns.
7589 * infcall.c (find_function_return_type): New function.
7590 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7591 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7592 (stub_gnu_ifunc_resolve_name): New functions.
7593 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7594 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7595 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7596
300f8e10
JK
75972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 Code cleanup for later STT_GNU_IFUNC support.
7600 * infcall.c (find_function_addr): Remove variable code, use explicit
7601 dereferences for it. Move VALUE_TYPE initialization later.
7602
11c81455
JK
76032011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7606 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7607 (clear_pc_function_cache): Clear it.
7608 (find_pc_partial_function): Rename to ...
7609 (find_pc_partial_function_gnu_ifunc): ... this function. New
7610 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7611 (find_pc_partial_function): New wrapper for this function.
7612 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7613
0875794a
JK
76142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 GDB internal type support for STT_GNU_IFUNC.
7617 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7618 (elf_symtab_read): Set mst_text_gnu_ifunc for
7619 BSF_GNU_INDIRECT_FUNCTION.
7620 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7621 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7622 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7623 nodebug_got_plt_symbol.
7624 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7625 (TYPE_GNU_IFUNC): New.
7626 (struct main_type): New field flag_gnu_ifunc.
7627 (struct builtin_type): New field builtin_func_func.
7628 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7629 nodebug_got_plt_symbol.
7630 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7631 (in_gnu_ifunc_stub): New.
7632 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7633 mst_text_gnu_ifunc.
7634 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7635 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7636 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7637 in_gnu_ifunc_stub.
7638 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7639 * symtab.c (search_symbols): Likewise.
7640 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7641 and mst_slot_got_plt.
7642 (in_gnu_ifunc_stub): New declaration.
7643
d0fb5eae
JK
76442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 Support a ring of related breakpoints.
7647 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7648 other functions, add gdb_assert.
7649 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7650 watchpoint_del_at_next_stop.
7651 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7652 (bpstat_stop_status): Handle ring in related_breakpoint.
7653 (set_raw_breakpoint_without_location): Initialize ring in
7654 related_breakpoint.
7655 (delete_breakpoint): Handle ring in related_breakpoint, use
7656 watchpoint_del_at_next_stop.
7657 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7658
9cded63f
TT
76592011-03-28 Tom Tromey <tromey@redhat.com>
7660
7661 PR symtab/12441:
7662 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7663 with `language_minimal'.
7664
467d42c4
UW
76652011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7666
7667 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7668 instead of checking for STT_ARM_TFUNC symbol type.
7669
62853458
TT
76702011-03-25 Tom Tromey <tromey@redhat.com>
7671
7672 * linespec.c (symbol_found): Restore line-based result for
7673 non-LOC_LABEL symbols.
7674
a7417d46
KT
76752011-03-25 Kai Tietz <ktietz@redhat.com>
7676
7677 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7678 instead of strcmp for comparison.
7679 (tui_source_is_displayed): Likewise.
7680 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7681
55f1336d
TT
76822011-03-24 Mark Wielaard <mjw@redhat.com>
7683
f33edef8
PP
7684 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7685 complaint.
7686 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7687 (find_partial_die_in_comp_unit): Likewise in comment.
7688 (read_attribute_value): Likewise.
7689 (lookup_die_type): Likewise.
7690 (dwarf_form_name): Likewise.
7691 (dump_die_shallow): Likewise.
7692 (follow_die_ref_or_sig): Likewise.
55f1336d 7693
9ef07c8c
TT
76942011-03-24 Tom Tromey <tromey@redhat.com>
7695
7696 PR breakpoints/11816:
7697 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7698 (decode_compound): Update.
7699 (find_function_symbol): New function.
7700 (decode_dollar): Update.
7701 (decode_label): Add 'function_symbol' parameter. Handle
7702 function-relative labels.
7703 (decode_variable): Update.
7704 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7705 not its line. Set `special_display' and canonical name for
7706 labels.
7707
56435ebe
TT
77082011-03-24 Tom Tromey <tromey@redhat.com>
7709
7710 * linespec.h (struct linespec_result) <special_display>: New
7711 field.
7712 * breakpoint.h (struct breakpoint) <display_canonical>: New
7713 field.
7714 * breakpoint.c (print_breakpoint_location): Respect
7715 display_canonical.
7716 (create_breakpoint_sal): Add 'display_canonical' parameter.
7717 (create_breakpoints_sal): Update.
7718 (create_breakpoint): Update.
7719
7efd8fc2
TT
77202011-03-24 Tom Tromey <tromey@redhat.com>
7721
7722 * symtab.c (decode_line_spec): Update.
7723 * linespec.c (build_canonical_line_spec): Change type of
7724 'canonical'.
7725 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7726 (find_method, decode_all_digits, decode_dollar, decode_label)
7727 (symbol_found): Likewise.
7728 (init_linespec_result): New function.
7729 * breakpoint.c (struct captured_parse_breakpoint_args)
7730 <canonical_p>: New field, replaces addr_string_p.
7731 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7732 'addr_string'.
7733 (parse_breakpoint_sals): Likewise.
7734 (do_captured_parse_breakpoint): Update.
7735 (create_breakpoint): Use struct linespec_result.
7736 (until_break_command): Update.
7737 (breakpoint_re_set_one): Update.
7738 (decode_line_spec_1): Update.
7739 * linespec.h (struct linespec_result): New.
7740 (init_linespec_result): Declare.
7741
788c8b10
PA
77422011-03-23 Pedro Alves <pedro@codesourcery.com>
7743
7744 * regcache.c (regcache_raw_read): If the target didn't supply a
7745 given raw register, mark it as unavailable.
7746
0ba1096a
KT
77472011-03-23 Kai Tietz <ktietz@redhat.com>
7748
7749 * breakpoint.c (clear_command): Use filename_cmp
7750 instead of strcmp for comparison.
7751 * buildsym.c (watch_main_source_file_lossage): Likewise.
7752 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7753 checking just for slash.
7754 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7755 strrchr and filename_cmp instead of strcmp for filenames.
7756 (add_old_header_file): Use filename_cmp
7757 instead of strcmp for comparison.
7758 * exec.c (exec_set_section_address): Likewise.
7759 * macrotab.c (macro_lookup_inclusion): Likewise.
7760 (macro_lookup_inclusion): Likewise.
7761 * elfread.c (_initialize_elfread): Likewise.
7762 (elfstab_offset_sections): Likewise.
7763 (elfstab_offset_sections): Use lbasename instead of
7764 strrchr.
7765 * mdebugread.c (parse_partial_symbols): Likewise.
7766 (arse_partial_symbols): Use filename_(n)cmp instead of
7767 str(n)cmp for comparison.
7768 * minsyms.c (lookup_minimal_symbol): Likewise.
7769 * psymtab.c (read_psymtabs_with_filename): Likewise.
7770 * solib.c (solib_read_symbols): Likewise.
7771 (reload_shared_libraries_1): Likewise.
7772 * symmisc.c (maintenance_print_symbols): Likewise.
7773 * symfile.c (separate_debug_file_exists): Likewise.
7774 (reread_symbols): Likewise.
7775 (find_separate_debug_file_by_debuglink): Likewise.
7776 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7777 * source.c (add_path): Likewise.
7778 * symtab.c (filename_seen): Likewise.
7779 (file_matches): Likewise.
7780 (print_symbol_info): Likewise.
7781 (maybe_add_partial_symtab_filename): Likewise.
7782 (make_source_files_completion_list): Likewise.
7783 * xml-syscall.c (init_sysinfo): Likewise.
7784 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7785 IS_DIR_SEPARATOR for checking for trailing path separator.
7786
dd90784c
JK
77872011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7790 label abort_expression.
7791 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7792 DWARF_VALUE_OPTIMIZED_OUT.
7793
3167638f
JK
77942011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7795
7796 Code cleanup.
7797 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7798 to linkage_name. Invert its value. Update the function comment.
7799 (c_type_print_varspec_suffix): Invert it at the caller.
7800 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7801
ce406537
PA
78022011-03-22 Pedro Alves <pedro@codesourcery.com>
7803
7804 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7805 errors when reading the `stop_pc'.
7806 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7807 get_frame_pc.
7808
da5d4055
PM
78092011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7810
7811 * NEWS: Document gdb.Write stream keyword.
7812
29e0eb9c
JK
78132011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7814
7815 Revert:
7816 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7817 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7818 (dwarf2_add_field): Fix new_field->accessibility for
7819 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7820
05775840
PM
78212011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7822
f33edef8 7823 PR python/12183
05775840
PM
7824
7825 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7826 other error classes. Do not print stack trace.
7827
a0cb7835
JK
78282011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7829
7830 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7831 (dwarf2_add_field): Fix new_field->accessibility for
7832 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7833
d19f7eee
UW
78342011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7835
7836 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7837 encountering a load via a non-SP register.
7838
4a2fbb50
UW
78392011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7840
7841 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7842 field in returned unwinder.
7843
3489610d
JB
78442012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7845
7846 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7847
8c1a34e7
JB
78482012-03-21 Joel Brobecker <brobecker@adacore.com>
7849
7850 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7851 of xmalloc.
7852
8fbca658
PA
78532012-03-18 Pedro Alves <pedro@codesourcery.com>
7854
7855 * frame.c (frame_unwind_register): Throw an error if unwinding the
7856 register failed.
7857 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7858 an unwind stop reason.
7859 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7860 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7861 UNWIND_UNAVAILABLE>: New.
7862 * inline-frame.c (inline_frame_unwind): Install
7863 default_frame_unwind_stop_reason.
7864 * frame-unwind.c: Include "exceptions.h".
7865 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7866 (default_frame_unwind_stop_reason): New.
7867 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7868 (default_frame_unwind_stop_reason): Declare.
7869 (struct frame_unwind) <stop_reason>: New function pointer.
7870
7871 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7872 * dwarf2-frame.c: Include exceptions.h.
7873 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7874 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7875 computing the CFA. If such an error was thrown, set
7876 unavailable_retaddr.
7877 (dwarf2_frame_unwind_stop_reason): New.
7878 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7879 unavailable.
7880 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7881 (dwarf2_signal_frame_unwind): Ditto.
7882
7883 * amd64-tdep.c: Include "exceptions.h".
7884 (struct amd64_frame_cache): New field "base_p".
7885 (amd64_init_frame_cache): Clear it.
7886 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7887 Avoid reading registers with functions that throw if the register
7888 is not necessary to compute the frame base.
7889 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7890 swallowing NOT_AVAILABLE_ERROR.
7891 (amd64_frame_unwind_stop_reason): New.
7892 (amd64_frame_this_id): Don't build a frame id if the frame base
7893 was unavailable.
7894 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7895 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7896 base_p if the frame base was computable.
7897 (amd64_sigtramp_frame_unwind_stop_reason): New.
7898 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7899 frame base was unavailable.
7900 (amd64_sigtramp_frame_unwind): Install
7901 amd64_sigtramp_frame_unwind_stop_reason.
7902 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7903 base_p if the frame base was computable.
7904 (amd64_epilogue_frame_unwind_stop_reason): New.
7905 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7906 frame base was unavailable.
7907 (amd64_epilogue_frame_unwind): Install
7908 amd64_epilogue_frame_unwind_stop_reason.
7909 * i386-tdep.c: Include "exceptions.h".
7910 (struct i386_frame_cache): New field "base_p".
7911 (i386_init_frame_cache): Clear it.
7912 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7913 Avoid reading registers with functions that throw if the register
7914 is not necessary to compute the frame base.
7915 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7916 swallowing NOT_AVAILABLE_ERROR.
7917 (i386_frame_unwind_stop_reason): New.
7918 (i386_frame_this_id): Don't build a frame id if the frame base was
7919 unavailable.
7920 (i386_frame_prev_register): Handle unavailable SP.
7921 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7922 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7923 base_p if the frame base was computable.
7924 (i386_epilogue_frame_unwind_stop_reason): New.
7925 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7926 base was unavailable.
7927 (i386_epilogue_frame_unwind): Install
7928 i386_epilogue_frame_unwind_stop_reason.
7929 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7930 base_p if the frame base was computable.
7931 (i386_sigtramp_frame_unwind_stop_reason): New.
7932 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7933 base was unavailable.
7934 (i386_sigtramp_frame_unwind): Install
7935 i386_sigtramp_frame_unwind_stop_reason.
7936 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7937 type's size, not the register's.
7938 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7939
7940 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7941 default_frame_unwind_stop_reason.
7942 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7943 (alpha_heuristic_frame_unwind): Ditto.
7944 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7945 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7946 * avr-tdep.c (avr_frame_unwind): Ditto.
7947 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7948 Ditto.
7949 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7950 * frv-tdep.c (frv_frame_unwind): Ditto.
7951 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7952 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7953 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7954 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7955 (hppa_stub_frame_unwind): Ditto.
7956 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7957 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7958 (ia64_libunwind_frame_unwind)
7959 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7960 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7961 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7962 * m32c-tdep.c (m32c_unwind): Ditto.
7963 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7964 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7965 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7966 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7967 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7968 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7969 * mep-tdep.c (mep_frame_unwind): Ditto.
7970 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7971 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7972 (mips_stub_frame_unwind): Ditto.
7973 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7974 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7975 * mt-tdep.c (mt_frame_unwind): Ditto.
7976 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7977 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7978 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7979 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7980 (s390_sigtramp_frame_unwind): Ditto.
7981 * score-tdep.c (score_prologue_unwind): Ditto.
7982 * sh-tdep.c (sh_frame_unwind): Ditto.
7983 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7984 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7985 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7986 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7987 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7988 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7989 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7990 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7991 (sparc64obsd_trapframe_unwind): Ditto.
7992 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7993 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7994 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7995 * v850-tdep.c (v850_frame_unwind): Ditto.
7996 * vax-tdep.c (vax_frame_unwind): Ditto.
7997 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7998 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7999 * xtensa-tdep.c (xtensa_unwind): Ditto.
8000
f23d1b92
PA
80012011-03-18 Pedro Alves <pedro@codesourcery.com>
8002
8003 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8004 there's always a frame. Use get_frame_pc_if_available instead of
8005 get_frame_pc, and if there's no PC available, don't look up a
8006 symtab.
8007
1d4f5741
PA
80082011-03-18 Pedro Alves <pedro@codesourcery.com>
8009
8010 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8011 unavailable PC.
8012
dba09041
PA
80132011-03-18 Pedro Alves <pedro@codesourcery.com>
8014
8015 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8016 gracefully.
8017
9a26e44c
PA
80182011-03-18 Pedro Alves <pedro@codesourcery.com>
8019
8020 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8021 * frame.c (frame_unwind_caller_pc_if_available): New.
8022 * stack.c (frame_info): Handle unavailable PC.
8023
80242011-03-18 Pedro Alves <pedro@codesourcery.com>
8025
8026 * frame.c (frame_unwind_pc): Rename to ...
8027 (frame_unwind_pc_if_available): ... this. New `pc' output
8028 parameter. Change return type to int. Gracefully handle
8029 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8030 happened, or 1 otherwise.
8031 (frame_unwind_pc): Reimplement on top of
8032 frame_unwind_pc_if_available.
8033 (get_frame_func): Rename to ...
8034 (get_frame_func_if_available): New `pc' output parameter. Change
8035 return type to int. Gracefully handle the PC not being available.
8036 (get_frame_func): Reimplement on top of
8037 get_frame_func_if_available.
8038 (select_frame): Handle the PC being unavailable.
8039 (get_prev_frame): Handle the PC being unavailable.
8040 (get_frame_pc_if_available): New.
8041 (get_frame_address_in_block_if_available): New.
8042 (find_frame_sal): Handle the frame PC not being available.
8043 * frame.h (get_frame_pc_if_available): Declare.
8044 (get_frame_address_in_block_if_available): Declare.
8045 (get_frame_func_if_available): Declare.
8046 * stack.c (print_frame_info): Handle the PC being unavailable.
8047 (find_frame_funname): Ditto.
8048 (print_frame): Handle the PC being unavailable.
8049 (get_frame_language): Ditto.
8050 * blockframe.c (get_frame_block): Ditto.
8051 * macroscope.c (default_macro_scope): Ditto.
8052 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8053
80542011-03-18 Pedro Alves <pedro@codesourcery.com>
8055
8056 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8057 NOT_AVAILABLE_ERROR when evaluating the location expression.
8058
80592011-03-18 Pedro Alves <pedro@codesourcery.com>
8060
8061 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8062 returning that the register piece is unavailable/optimized out.
8063 (write_pieced_value): Handle get_frame_register_bytes returning
8064 that the register piece is unavailable/optimized out when doing a
8065 read-modify write of a bitfield.
8066 * findvar.c (value_from_register): Handle get_frame_register_bytes
8067 returning that the register piece is unavailable/optimized out.
8068 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8069 and `unavailablep'. Throw error on bad debug info. Use
8070 frame_register instead of frame_register_read, to fill in the new
8071 arguments.
8072 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8073 and `unavailablep'.
8074 * valops.c: (value_assign): Adjust, and handle
8075 get_frame_register_bytes failing.
8076 * spu-tdep.c: Include exceptions.h.
8077 (spu_software_single_step): Adjust, and handle
8078 get_frame_register_bytes failing.
8079 (spu_get_longjmp_target): Ditto.
8080 * gdbarch.sh (register_to_value): Change to return int. New
8081 parameters `optimizedp' and `unavailablep'.
8082 * gdbarch.h, gdbarch.c: Regenerate.
8083 * i386-tdep.c (i386_register_to_value): Adjust to new
8084 gdbarch_register_to_value interface.
8085 * i387-tdep.c (i387_register_to_value): Ditto.
8086 * i387-tdep.h (i387_register_to_value): Ditto.
8087 * alpha-tdep.c (alpha_register_to_value): Ditto.
8088 * ia64-tdep.c (ia64_register_to_value): Ditto.
8089 * m68k-tdep.c (m68k_register_to_value): Ditto.
8090 * mips-tdep.c (mips_register_to_value): Ditto.
8091 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8092
0fdb4f18
PA
80932011-03-18 Pedro Alves <pedro@codesourcery.com>
8094
8095 * findvar.c (value_of_register): Mark the value as unavailable, if
8096 the register is unavailable.
8097 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8098 (frame_register): New `unavailablep' parameter.
8099 (frame_register_read): Update comment.
8100 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8101 Set it if the register is unavailable. If the register is
8102 unavailable, clear the output buffer.
8103 (frame_register): New `unavailablep' parameter. Pass it down.
8104 (frame_unwind_register): Adjust.
8105 (put_frame_register): Adjust.
8106 (frame_register_read): Adjust. Also return false if the register
8107 is not available.
8108 (frame_register_unwind_location): Adjust.
8109 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8110 is unavailable, mark the value accordingly.
8111 * stack.c (frame_info): Handle unavailable registers.
8112
e69aa73e
PA
81132011-03-18 Pedro Alves <pedro@codesourcery.com>
8114
8115 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8116 simplify, using regcache_cooked_read.
8117
05d1431c
PA
81182011-03-18 Pedro Alves <pedro@codesourcery.com>
8119
8120 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8121 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8122 (regcache_raw_read_unsigned, regcache_raw_read_part)
8123 (regcache_cooked_read, regcache_cooked_read_signed)
8124 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8125 (regcache_cooked_read_ftype): Change return to enum
8126 register_status.
8127 * regcache.c: Include exceptions.h
8128 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8129 (do_cooked_read): Change return to enum register_status. Always
8130 forward to regcache_cooked_read.
8131 (regcache_raw_read): Change return to enum register_status. If
8132 the register is not REG_VALID, memset the buffer. Return the
8133 register's status.
8134 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8135 return the register's status.
8136 (regcache_raw_read_unsigned): Ditto.
8137 (regcache_cooked_read): Change return to enum register_status.
8138 Assert that with read-only regcaches, the register's status must
8139 be known. If the regcache is read-only, and the register is not
8140 REG_VALID, memset the buffer. Return the register's status.
8141 (regcache_cooked_read_signed): Change return to enum
8142 register_status. Handle non-REG_VALID registers and return the
8143 register's status.
8144 (regcache_cooked_read_unsigned): Change return to enum
8145 register_status. Handle non-REG_VALID registers and return the
8146 register's status.
8147 (regcache_xfer_part, regcache_raw_read_part)
8148 (regcache_cooked_read_part): Change return to enum
8149 register_status. Return the register's status.
8150 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8151 unavailable.
8152 (regcache_dump): Handle unavailable cooked registers.
8153 * frame.c (do_frame_register_read): Adjust interface to match
8154 regcache_cooked_read_ftype.
8155 * gdbarch.sh (pseudo_register_read): Change return to enum
8156 register_status.
8157 * gdbarch.h, gdbarch.c: Regenerate.
8158
8159 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8160 register_status.
8161 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8162 register_status. If reading a raw register indicates the raw
8163 register is not valid, return the raw register's status,
8164 otherwise, return REG_VALID.
8165 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8166 register_status. Handle non-REG_VALID raw registers and return
8167 the register's status.
8168 * arm-tdep.c (arm_neon_quad_read)
8169 (arm_pseudo_read): Change return to enum register_status. Handle
8170 non-REG_VALID raw registers and return the register's status.
8171 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8172 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8173 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8174 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8175 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8176 register_status.
8177 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8178 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8179 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8180 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8181 (m32c_pseudo_register_read): Change return to enum
8182 register_status. Adjust.
8183 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8184 enum register_status. Return the register's status.
8185 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8186 register_status. Return the register's status.
8187 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8188 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8189 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8190 * rs6000-tdep.c (move_ev_register_func): New typedef.
8191 (e500_move_ev_register): Use it. Change return to enum
8192 register_status. Return the register's status.
8193 (do_regcache_raw_read): New function.
8194 (do_regcache_raw_write): New function.
8195 (e500_pseudo_register_read): Change return to enum
8196 register_status. Return the register's status. Use
8197 do_regcache_raw_read.
8198 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8199 (dfp_pseudo_register_read): Change return to enum register_status.
8200 Return the register's status.
8201 (vsx_pseudo_register_read): Ditto.
8202 (efpr_pseudo_register_read): Ditto.
8203 (rs6000_pseudo_register_read): Ditto.
8204 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8205 register_status. Return the register's status.
8206 * sh64-tdep.c (pseudo_register_read_portions): New function.
8207 (sh64_pseudo_register_read): Change return to enum
8208 register_status. Use pseudo_register_read_portions. Return the
8209 register's status.
8210 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8211 register_status. Return the register's status.
8212 * sh-tdep.c (pseudo_register_read_portions): New function.
8213 (sh_pseudo_register_read): Change return to enum register_status.
8214 Use pseudo_register_read_portions. Return the register's status.
8215 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8216 enum register_status. Return the register's status.
8217 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8218 * spu-tdep.c (spu_pseudo_register_read_spu)
8219 (spu_pseudo_register_read): Ditto.
8220 * xtensa-tdep.c (xtensa_register_read_masked)
8221 (xtensa_pseudo_register_read): Ditto.
8222 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8223
e10abd8f
PM
82242011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8225
8226 * python/py-value.c (valpy_getitem): Fix formatting of error function
8227 call.
8228
7ea6d463
PM
82292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8230
8231 ARI fixes: Add missing internationalization markups throughout
8232 C source files.
8233 * darwin-nat-info.c: Ditto.
8234 * record.c: Ditto.
8235 * remote.c: Ditto.
8236 * mi/mi-main.c: Ditto.
8237
001083c6
PM
82382011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8239
8240 ARI fixes: Add missing internationalization markups throughout
8241 yacc files.
8242 * c-exp.y: Ditto.
8243 * cp-name-parser.y: Ditto.
8244 * f-exp.y: Ditto.
8245 * m2-exp.y: Ditto.
8246 * objc-exp.y: Ditto.
8247 * p-exp.y: Ditto.
8248
4f1cdeec
PM
82492011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8250
8251 ARI fixes: Messages should have no trailing new lines.
8252 * darwin-nat.c (mach_check_error): Remove trailing new line from
8253 warning function call message.
8254 * record.c (bfdcore_read): Idem for error call.
8255
28e698f1
PM
82562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8257
8258 * common/signals.c (target_signal_from_host): Add _ markup to error
8259 function call message.
8260 (target_signal_to_host): Add _ markup and remove trailing new line
8261 from warning call message.
8262 (target_signal_from_command): Add _ markup to error function call
8263 message.
8264
99c3dc11
PM
82652011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8266
f33edef8 8267 PR python/12149
99c3dc11
PM
8268
8269 * python/python.c (gdbpy_write): Accept a stream argument and
8270 operate to the appropriate stream.
8271 (gdbpy_flush): Likewise.
8272 (_initialize_python): Add stream constants.
8273 (finish_python_initialization): Add GdbOutputErrorFile class.
8274
c20800be
KY
82752011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8276
8277 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8278
f4a1794a
KY
82792011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8280
8281 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8282 to store_signed_integer. Add debug message when relocating CALL
8283 instructions. Fix formatting of debug message.
8284 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8285
d4862372
JB
82862011-03-17 Joel Brobecker <brobecker@gnat.com>
8287
8288 * target.h (struct target_ops): Remove to_lookup_symbol field.
8289 (target_lookup_symbol): Delete macro.
8290 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8291 (update_current_target, setup_target_debug): Remove handling
8292 of to_lookup_symbol target_ops field.
8293 * ada-tasks.c (get_known_tasks_addr): Remove use of
8294 target_lookup_symbol.
8295 * coffread.c (coff_symtab_read): Likewise.
8296 * dbxread.c (read_dbx_symtab): Ditto.
8297
d645e32e
JB
82982011-03-17 Joel Brobecker <brobecker@gnat.com>
8299
8300 PR gdb/12116:
8301 * configure.ac: Add getthrds declaration check.
8302 * configure, config.in: Regenerate.
8303 * aix-thread.c (getthrds): Declare only if not already declared
8304 in procinfo.h. More declaration out of get_signaled_thread to
8305 global scope.
8306
29703da4
PM
83072011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8308
8309 * python/py-symtab.c: Populate symtab_object_methods,
8310 sal_object_methods.
8311 (stpy_is_valid): New function.
8312 (salpy_is_valid): Ditto.
8313 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8314 (sympy_is_valid): New function.
8315 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8316 (objfpy_is_valid): New function.
8317 * python/py-inferior.c: Populate inferior_object_methods.
8318 (infpy_is_valid): New function.
8319 * python/py-infthread.c: Populate thread_object_methods.
8320 (thpy_is_valid): New function.
8321 * python/py-block.c: Declare block_object_methods. Populate. Declare
8322 block_iterator_object_methods. Populate.
8323 (blpy_is_valid): New function.
8324 (blpy_iter_is_valid): Ditto.
8325
c00f8484
KS
83262011-03-16 Keith Seitz <keiths@redhat.com>
8327
8328 * linespec.c (find_methods): Canonicalize NAME before looking
8329 up the symbol.
8330 (name_end): New function.
8331 (keep_name_info): New function.
8332 (decode_line_1): Use keep_name_info.
8333 (decode_compound): Likewise.
8334 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8335 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8336
8337 PR c++/12273
8338 * linespec.c (locate_first_half): Keep overload information, too.
8339 (decode_compound): Use a string to represent break characters
8340 to escape the loop.
8341 If P points to a break character, do not increment it.
8342 For C++ and Java, keep overload information and relevant keywords.
8343 If we cannot find a symbol, search the minimal symbols.
8344
8345 PR c++/11734
8346 * linespec.c (decode_compound): Rename SAVED_ARG to
8347 THE_REAL_SAVED_ARG.
8348 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8349 single-quotes.
8350 Pass a valid block to lookup_symbol.
8351 (lookup_prefix_sym): Likewise.
8352 (find_method): Construct search name based on SYM_CLASS instead
8353 of SAVED_ARG.
8354 * psymtab.c (lookup_partial_symbol): Add language parameter.
8355 (lookup_symbol_aux_psymtabs): Likewise.
8356 Don't assume that the psymtab we found was the right one. Search
8357 for the desired symbol in the symtab to be certain.
8358 (psymtab_search_name): New function.
8359 (lookup_partial_symbol): Use psymtab_search_name.
8360 Add language parameter.
8361 (read_symtabs_for_function): Add language parameter and pass to
8362 lookup_partial_symbol.
8363 (find_symbol_file_from_partial): Likewise.
8364
c91513d8
PP
83652011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8366
8367 PR gdb/12528
8368 * dwarf2read.c (noop_record_line): New function.
8369 (dwarf_decode_lines): Ignore line tables for GCd functions.
8370
b37520b6
PM
83712011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8372
8373 Fix ARI warnings about new lines at the end of messages, which
8374 are unneeded as there is a new line added at the end of the message
8375 automatically.
8376 * darwin-nat.c (darwin_stop_inferior): Ditto.
8377 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8378 * dfp.c (decimal_to_number): Ditto.
8379 * exec.c (print_section_info): Ditto.
8380 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8381 * osdata.c (get_osdata): Ditto.
8382 * record.c (bfdcore_write): Ditto.
8383 * remote-mips.c (mips_readchar): Ditto.
8384 * remote.c (read_ptid): Ditto.
8385 * ser-mingw.c (ser_windows_raw): Ditto.
8386 * tracepoint.c (add_local_symbols): Ditto.
8387 * windows-nat.c (fake_create_process): Ditto.
8388
b08ee6a2
TT
83892011-03-16 Tom Tromey <tromey@redhat.com>
8390
8391 * tracepoint.c (stop_tracing): Don't declare.
8392 * event-top.c (after_char_processing_hook): Add `(void)'.
8393
9a6f1302
PM
83942011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8395
8396 * NEWS: Add Parameter sub-classing description.
8397
7ceb86b1
KT
83982011-03-16 Kai Tietz <ktietz@redhat.com>
8399
8400 * MAINTAINERS: Update my e-mail address.
8401
efeff6cf
AT
84022011-03-15 Andreas Tobler <andreast@fgznet.ch>
8403
8404 * MAINTAINERS: Add myself for write after approval privileges.
8405
681c238c
MS
84062011-03-15 Michael Snyder <msnyder@vmware.com>
8407
f3df5b08
MS
8408 * frame.c (find_frame_sal): Assert sym is not null.
8409
13f6513c
MS
8410 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8411
50412521
MS
8412 * objc-lang.c (selectors_info): Check strchr for null result.
8413
681c238c
MS
8414 * stabsread.c (define_symbol): Guard against bad stabstring input.
8415
6ced1581
PM
84162011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8417
8418 Remove trailing spaces and tabulations from pascal language
8419 support sources.
8420 p-exp.y: Ditto.
8421 p-lang.c: Ditto.
8422 p-lang.h: Ditto.
8423 p-valprint.c: Ditto.
8424
9373cf26
JK
84252011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8426
8427 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8428 than LOW. Comment it.
8429 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8430 HIGHPC not strictly higher than LOWPC.
8431
9a1edae6
PM
84322011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8433
8434 Fix formatting of function declarations returning a pointer in
8435 previous commit.
8436 * varobj.c (varobj_add_child): Ditto.
8437 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8438 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8439
24e9cda0
UW
84402011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8441
8442 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8443 for the "generic" vector ABI used with GCC 4.3 and later.
8444 (ppc64_sysv_abi_return_value): Likewise.
8445
84462011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8447
8448 * infcall.c (call_function_by_hand): Function return value is
8449 always a non_lval, even when using struct_return.
8450
c9174737
PA
84512011-03-15 Pedro Alves <pedro@codesourcery.com>
8452
8453 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8454 (map_display_numbers): New.
8455 (do_delete_display): New.
8456 (undisplay_command): Use map_display_numbers.
8457 (do_enable_disable_display): New.
8458 (enable_disable_display_command): New function.
8459 (enable_display): Delete.
8460 (enable_display_command): New.
8461 (disable_display_command): Reimplement.
8462 (_initialize_printcmd): Adjust "enable display" command to use
8463 `enable_display_command' as callback.
8464
350c6c65
PM
84652011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8466
8467 * NEWS: Add Python breakpoint 'stop' operation.
8468
824446ad
PM
84692011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8470
8471 * NEWS: Delete duplicate entry. Fix typo.
8472
2021ad3a
PM
84732011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8474
8475 Fix ARI warning about function names in first column.
8476 Put prototype declaration on same line as return type.
8477 * objc-exp.y: Ditto.
8478 * p-exp.y: Ditto.
8479 * python/py-stopevent.h: Ditto.
8480 For long function names, split parameters to
8481 allow function name on same line as return type.
8482 * solib-pa64.c: Ditto.
8483 * varobj.c: Ditto.
8484 * varobj.h: Ditto.
8485 For long function declaration, use single line.
8486 * hppa-tdep.h: Ditto.
8487 * inferior.h: Ditto.
8488
7371cf6d
PM
84892011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8490
8491 * python/python.h: Declare gdbpy_should_stop and
8492 gdbpy_breakpoint_has_py_cond.
8493 * python/python.c: Add python.h to includes. Remove python.h from
8494 HAVE_PYTHON definition
8495 (gdbpy_should_stop): New dummy function.
8496 (gdbpy_breakpoint_has_py_cond): New dummy function.
8497 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8498 sub-classing capabilities.
8499 (gdbpy_should_stop): New function.
8500 (gdbpy_breakpoint_has_py_cond): New function.
8501 (local_setattro): New function.
8502 * breakpoint.c (condition_command): Add check for Python 'stop'
8503 operation.
8504 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8505 operation function as part of stop/continue tests.
8506
37b50a69
TT
85072011-03-14 Tom Tromey <tromey@redhat.com>
8508
8509 PR gdb/12576:
8510 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8511 (needs_frame_dwarf_call): Likewise.
8512
eeae04df
PM
85132011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8514
8515 Fix ARI warning about functions without parameters that do not
8516 use (void).
8517 * breakpoint.c (all_tracepoints): Replace () by (void).
8518 * f-exp.y (match_string_literal): Ditto.
8519 (yylex): Ditto.
8520 * m2-exp.y (yylex): Ditto.
8521 * mep-tdep.c (current_me_module): Ditto.
8522 (current_options): Ditto.
8523 (current_cop_data_bus_width): Ditto.
8524 (current_cr_names): Ditto.
8525 (current_cr_is_float): Ditto.
8526 (current_ccr_names): Ditto.
8527 * objc-exp.y (yylex): Ditto.
8528 * p-exp.y (yylex): Ditto.
8529 * remote.c (send_interrupt_sequence): Ditto.
8530 * tracepoint.c (current_trace_status): Ditto.
8531 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8532 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8533
6dc3565d
MS
85342011-03-11 Michael Snyder <msnyder@vmware.com>
8535
1427fe5e
MS
8536 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8537 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8538 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8539 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8540 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8541
60bc018f
MS
8542 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8543 (delete_async_event_handler): Ditto.
8544
f3be5b64
MS
8545 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8546
4c2d5724
MS
8547 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8548
6dc3565d
MS
8549 * top.c (set_verbose): Assert showcmd was found.
8550
4e6ca6d5
MG
85512011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8552
8553 * xtensa-tdep.c (warning_once): Correct style issues.
8554
815a83e4
YQ
85552011-03-11 Yao Qi <yao@codesourcery.com>
8556
8557 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8558
f2eb0bc8
AS
85592011-03-11 Andreas Schwab <schwab@redhat.com>
8560
8561 * common/aclocal.m4: Remove.
8562
b801de47
MG
85632011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8564
8565 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8566 (xtensa_write_register, xtensa_read_register): Likewise.
8567 (xtensa_hextochar): Removed.
8568 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8569
dbab50de
MG
85702011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8571
8572 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8573 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8574 (xtensa_alloc_frame_cache): Add initialization for new fields.
8575 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8576 (warning_once): New function.
8577 (xtensa_insn_kind): New item c0opc_and.
8578 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8579 (call0_track_op): Change arguments. New local variable litbase.
8580 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8581 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8582 in the prologue.
dbab50de 8583 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8584 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8585 Add the variety of updates to handle extended prologues, which now can
8586 conduct dynamic stack adjustments.
8587 (call0_frame_cache): Likewise.
8588 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8589 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8590
b2c04452
MS
85912011-03-10 Michael Snyder <msnyder@vmware.com>
8592
f8f67713
MS
8593 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8594 (cmd_qtframe): Ditto.
8595 (cmd_qtbuffer): Ditto.
8596 (cmd_bigqtbuffer): Ditto.
8597
197f0a60
TT
85982011-03-10 Tom Tromey <tromey@redhat.com>
8599
8600 * tracepoint.c (trace_actions_command): Update.
8601 * thread.c (thread_apply_command): Update.
8602 * reverse.c (delete_bookmark_command): Update.
8603 (bookmarks_info): Update.
8604 * printcmd.c (undisplay_command): Update.
8605 * memattr.c (mem_enable_command): Update.
8606 (mem_disable_command): Update.
8607 (mem_delete_command): Update.
8608 * inferior.c (detach_inferior_command): Update.
8609 (kill_inferior_command): Update.
8610 (remove_inferior_command): Update.
8611 * cli/cli-utils.h (struct get_number_or_range_state): New.
8612 (init_number_or_range): Declare.
8613 (get_number_or_range): Update.
8614 * cli/cli-utils.c (init_number_or_range): New function.
8615 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8616 static variables.
8617 (number_is_in_list): Update.
8618 * breakpoint.h (get_tracepoint_by_number): Update.
8619 * breakpoint.c (map_breakpoint_numbers): Update for change to
8620 get_number_or_range.
8621 (find_location_by_number): Use get_number, not
8622 get_number_or_range.
8623 (trace_pass_set_count): New function.
8624 (trace_pass_command): Update for change to get_number_or_range.
8625 Rework loop logic.
8626 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8627 'state' parameter.
8628
ecec24e6
PM
86292011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8630
8631 * python/py-param.c (add_setshow_generic): Add set/show callback
8632 parameters. Register Python object context.
8633 (get_show_value): New function.
8634 (get_set_value): New function.
8635 (call_doc_function): New function.
8636 (get_doc_string): Move behind get_show_value/get_set_value.
8637
6d6c6b1f
JK
86382011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8639
8640 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8641
68d6df83
MG
86422011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8643
dbab50de 8644 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8645 (xtensa_write_register): Likewise.
8646 (xtensa_hextochar): Add comment and update to match coding conventions.
8647 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8648 (execute_l32e, execute_s32e, execute_code): Update comments.
8649 (xtensa_exception_handler_t): Update to match coding conventions.
8650 (xtensa_insn_kind): Likewise.
8651
85c9d6a6
MS
86522011-03-09 Michael Snyder <msnyder@vmware.com>
8653
8654 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8655
91495617
PA
86562011-03-09 Pedro Alves <pedro@codesourcery.com>
8657
8658 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8659
eb8c0621
TT
86602011-03-09 Tom Tromey <tromey@redhat.com>
8661
8662 * thread.c (restore_selected_frame): Handle frame_level == -1.
8663 (make_cleanup_restore_current_thread): Use
8664 get_selected_frame_if_set.
8665 * frame.h (get_selected_frame_if_set): Declare.
8666 * frame.c (get_selected_frame_if_set): New function.
8667
9f37bbcc
PA
86682011-03-09 Pedro Alves <pedro@codesourcery.com>
8669
8670 * cli/cli-cmds.c (shell_escape): Use lbasename.
8671 * coffread.c (coff_start_symtab): Constify parameter.
8672 (complete_symtab): Constify `name' parameter.
8673 (coff_symtab_read): Constify `filestring' local.
8674 (coff_getfilename): Constify return and `result' local.
8675 Use lbasename.
8676 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8677 * linux-fork.c (info_checkpoints_command): Use lbasename.
8678 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8679 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8680 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8681 * procfs.c (procfs_make_note_section): Use lbasename.
8682 * tui/tui-io.c (printable_part): Constity return and parameter.
8683 Use lbasename.
8684 (print_filename): Constify parameters, and local `s'.
8685 (tui_rl_display_match_list): Constify local `temp'.
8686
f8de3c55
JK
86872011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8688
8689 Revert:
8690 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 Fix DWARF-3+ DW_AT_accessibility default assumption.
8692 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8693 cu->header.version >= 3.
8694
d9837b00
YQ
86952011-03-09 Yao Qi <yao@codesourcery.com>
8696
8697 * common/Makefile.in: Remove.
8698 * common/configure: Remove.
8699 * common/configure.ac: Remove.
8700
e637a4f5
YQ
87012011-03-09 Yao Qi <yao@codesourcery.com>
8702
8703 Revert:
8704 2011-02-11 Yao Qi <yao@codesourcery.com>
8705
8706 * common/Makefile.in: Add copyright header.
8707
8708 2011-02-11 Yao Qi <yao@codesourcery.com>
8709
8710 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8711 libcommon.a.
8712 * configure.ac: Add common to sub dir.
8713 * configure: Regenerate.
8714
f976a05d
MG
87152011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8716
8717 * xtensa-tdep.c (call0_ret): New function.
8718 (xtensa_skip_prologue): Speed up analysis.
8719
57041825
MG
87202011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8721
8722 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8723 while executing MI command -data-list-changed-registers.
8724
08b9c608
MG
87252011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8726
8727 * xtensa-tdep.c (xtensa_read_register): New function.
8728 (xtensa_write_register): New function.
8729 (xtensa_find_register_by_name): New function.
8730 (xtensa_windowed_frame_cache): Update comments in type description.
8731 (xtensa_frame_cache): Likewise.
8732 (xtensa_window_interrupt_insn): New function.
8733 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8734 (xtensa_insn_kind): Add new instructions.
8735 (rwx_special_register): New function.
8736 (call0_classify_opcode): Add new instructions to the analysis.
8737 (a0_saved, a7_saved, a11_saved): New variables.
8738 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8739 (execute_l32e): New function.
8740 (execute_s32e): New function.
8741 (xtensa_exception_handler_t): New type.
8742 (execute_code): New function.
8743 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8744 analysis for Xtensa Window Exception handlers.
8745
4d1acb11
MG
87462011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8747
98689b25
MG
8748 * xtensa-tdep.c (TX_PS): New.
8749 (windowing_enabled): Update to count for Call0 ABI.
8750 (xtensa_hextochar): New.
8751 (xtensa_init_reggroups): Make algorithm generic.
8752 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8753
87542011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8755
8756 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8757
d3f323f3
MS
87582011-03-08 Michael Snyder <msnyder@vmware.com>
8759
3dcabaa8
MS
8760 * i386-tdep.c (i386_follow_jump): Check return value of
8761 target_read_memory.
8762 (i386_analyze_struct_return): Ditto.
8763 (i386_skip_probe): Ditto.
8764 (i386_match_insn): Ditto.
8765 (i386_skip_noop): Ditto.
8766 (i386_analyze_frame_setup): Ditto.
8767 (i386_analyze_register_saves): Ditto.
8768 (i386_skip_prologue): Ditto.
8769 (i386_skip_main_prologue): Ditto.
8770
13b3fd9b
MS
8771 * target.c (read_whatever_is_readable): Fix memory leak.
8772
d3f323f3
MS
8773 * i386-tdep.c (i386_process_record): Document fall through.
8774
421d5c74
JK
87752011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8776
8777 Fix DWARF-3+ DW_AT_accessibility default assumption.
8778 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8779 cu->header.version >= 3.
8780
63154eca
PA
87812011-03-08 Pedro Alves <pedro@codesourcery.com>
8782
8783 * remote.c (remote_check_symbols): Skip if the target has no
8784 execution.
8785
f1a507a1
JB
87862011-03-08 Joel Brobecker <brobecker@adacore.com>
8787
8788 * target.c (read_whatever_is_readable): Reformat comment,
8789 with a minor typo fix. Minor reformatting of the code.
8790
36073a92
YQ
87912011-03-08 Yao Qi <yao@codesourcery.com>
8792
8793 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8794 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8795 Use cached result instead of calling displaced_in_arm_mode again.
8796 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8797 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8798 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8799 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8800 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8801 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8802 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8803 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8804 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8805 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8806 (arm_catch_kernel_helper_return): Likewise.
8807 * gdb/arm-tdep.h : Update function declarations.
8808
d3f323f3 88092011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8810
e0e40094
MS
8811 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8812
0b2381f5
MS
8813 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8814
0350914a
MS
8815 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8816
69feea6f
MS
8817 * elfread.c (elf_symtab_read): Stop memory leak.
8818
e6040cbd
MS
8819 * main.c (captured_main): Fix memory leak.
8820
052874e8
AS
88212011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8822
8823 * ada-lang.c (compare_names): Call is_name_suffix with string1
8824 instead of string2.
8825
b11896a5
TT
88262011-03-07 Tom Tromey <tromey@redhat.com>
8827
8828 * xcoffread.c (xcoff_sym_fns): Update.
8829 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8830 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8831 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8832 (symbol_file_add_with_addrs_or_offsets): Likewise.
8833 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8834 * somread.c (som_sym_fns): Update.
8835 * psymtab.h (require_partial_symbols): Declare.
8836 * psymtab.c (require_partial_symbols): New function.
8837 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8838 (ALL_OBJFILE_PSYMTABS): Undef.
8839 (ALL_PSYMTABS): Move from psympriv.h.
8840 (lookup_partial_symtab, find_pc_sect_psymtab)
8841 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8842 (find_last_source_symtab_from_partial)
8843 (forget_cached_source_info_partial)
8844 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8845 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8846 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8847 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8848 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8849 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8850 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8851 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8852 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8853 psymtabs.
8854 * mipsread.c (ecoff_sym_fns): Update.
8855 * machoread.c (macho_sym_fns): Update.
8856 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8857 (read_psyms): New function.
8858 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8859 (elf_sym_fns_lazy_psyms): New global.
8860 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8861 dwarf2_build_psymtabs.
8862 * dbxread.c (aout_sym_fns): Update.
8863 * coffread.c (coff_sym_fns): Update.
8864
fda326dd
TT
88652011-03-07 Tom Tromey <tromey@redhat.com>
8866
8867 * infrun.c (print_exited_reason): Include inferior id and pid in
8868 message.
8869
aeaec162
TT
88702011-03-07 Tom Tromey <tromey@redhat.com>
8871
8872 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8873 parameter.
8874 (target_has_execution_1): Update.
8875 (target_has_execution_current): Declare.
8876 (target_has_execution): Call target_has_execution_current.
8877 (default_child_has_execution): Update.
8878 * target.c (default_child_has_execution): Add 'the_ptid'
8879 parameter.
8880 (target_has_execution_1): Likewise.
8881 (target_has_execution_current): New function.
8882 (add_target): Update.
8883 (init_dummy_target): Update.
8884 * remote-m32r-sdi.c (m32r_has_execution): New function.
8885 (init_m32r_ops): Use it.
8886 * record.c (record_core_has_execution): Now static. Add
8887 'the_ptid' parameter.
8888 * inferior.c (have_live_inferiors): Don't save current thread.
8889 Use target_has_execution_1.
8890
08e14083
YQ
88912011-03-07 Yao Qi <yao@codesourcery.com>
8892
8893 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8894
c05d19c5
JB
88952011-03-07 Joel Brobecker <brobecker@adacore.com>
8896
8897 * elfread.c (elf_symtab_read): Minor reformatting.
8898
3e6ef9e4
JB
88992011-03-07 Joel Brobecker <brobecker@adacore.com>
8900
8901 * objc-lang.c (selectors_info): Minor reformatting.
8902
dbb8534f
JB
89032011-03-07 Joel Brobecker <brobecker@adacore.com>
8904
8905 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8906
dd70cc93
JB
89072011-03-07 Joel Brobecker <brobecker@adacore.com>
8908 Michael Snyder <msnyder@vmware.com>
8909
8910 * ada-valprint.c (ada_val_print_array): Move the declaration of
8911 "byte_order" and "elttype" inside the block where these variables
8912 are actually used. Remove some special handling for the case
8913 where "elttype" and "eltlen" are null. Replace by a comment
8914 and a couple of assertion checks.
8915
b27cf2b3
MS
89162011-03-05 Michael Snyder <msnyder@vmware.com>
8917
8918 * source.c (add_path): Replace semicolon at end of block.
8919 * dwarf2expr.c (execute_stack_op): Ditto.
8920
5387a0c6
MF
89212011-03-05 Mike Frysinger <vapier@gentoo.org>
8922
8923 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8924 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8925 (bfin-*-*): Likewise.
8926
e3aa49af
MS
89272011-03-05 Michael Snyder <msnyder@vmware.com>
8928
82ae4854
MS
8929 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8930 * mdebugread.c (parse_symbol): Ditto.
8931 * parse.c (parse_exp_in_context): Ditto.
8932 * source.c (add_path): Ditto.
8933 * utils.c (gnu_debuglink_crc32): Ditto.
8934 * varobj.c (variable_language): Ditto.
8935
e3aa49af
MS
8936 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8937
154f592e
MS
89382011-03-04 Michael Snyder <msnyder@vmware.com>
8939
da3ecdc6
MS
8940 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8941
9cc89665
MS
8942 * symfile.c (simple_overlay_update): Check for null return value
8943 from lookup_minimal_symbol.
8944
154f592e
MS
8945 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8946
63ffa6ee
TJB
89472011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8948
8949 * eval.c (parse_and_eval_address_1): Remove function.
8950 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8951 instead of parse_and_eval_address_1.
8952 * value.h (parse_and_eval_address_1): Remove prototype.
8953
a17d146e
MS
89542011-03-04 Michael Snyder <msnyder@vmware.com>
8955
8956 * remote.c (putpkt_binary): Document that case stmt falls through.
8957
1a6a67de
TJB
89582011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8959
8960 * breakpointc (print_it_typical): Move NULL check from here...
8961 (print_bp_stop_message): ... to here.
8962
488919c4
MS
89632011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8964
8965 * breakpoint.c (enable_command): Use break instead of continue,
8966 and fill in a missing break.
8967 (disable_command): Ditto.
8968
1e182ce8
UW
89692011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8970
8971 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8972 (terminal_save_ours): Remove misleading comment.
8973 (inflow_inferior_data_cleanup): Free ttystate.
8974 (inflow_inferior_exit): Likewise.
8975 (copy_terminal_info): Copy ttystate.
8976
8977 * serial.c (serial_copy_tty_state): New function.
8978 * serial.h (serial_copy_tty_state): Add prototype.
8979 (struct serial_ops): Add copy_tty_state callback.
8980 * ser-base.c (ser_base_copy_tty_state): New function.
8981 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8982 * ser-go32.c (dos_copy_tty_state): New function.
8983 (dos_ops): Install copy_tty_state callback.
8984 * ser-mingw.c (_initialize_ser_windows): Likewise.
8985 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8986 * ser-unix.c (hardwire_copy_tty_state): New function.
8987 (_initialize_ser_hardwire): Install it.
8988
b2c5f112
MS
89892011-03-04 Michael Snyder <msnyder@vmware.com>
8990
2abae994
MS
8991 * breakpoint.c (create_breakpoint): Add missing break statement.
8992
7f5936f9
MS
8993 Reverting this patch:
8994 * infcall.c (call_function_by_hand): Add break statements for lint.
8995
b2c5f112
MS
8996 Reverting this patch:
8997 * cli/cli-script.c (script_from_file): Add break for lint.
8998
42b1321c
MS
89992011-03-04 Michael Snyder <msnyder@vmware.com>
9000
9001 * solib.c (reload_shared_libraries_1): Close memory leak.
9002
3e2a0cee
TT
90032011-03-03 Tom Tromey <tromey@redhat.com>
9004
9005 PR gdb/12538:
9006 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9007 DW_STRING is NULL.
9008
58397cb7
MS
90092011-03-03 Michael Snyder <msnyder@vmware.com>
9010
2e3fd767
MS
9011 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9012 fields of struct 'st' to zero.
9013
58397cb7
MS
9014 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9015 sal.pspace before calling set_current_source_symtab_and_line.
9016
ced54c8f
YQ
90172011-03-03 Yao Qi <yao@codesourcery.com>
9018
9019 * Makefile.in (configure-common): Remove. Let Makefile
9020 in dir common to rebuild itself.
9021 (common/Makefile): Likewise.
9022
3351ea09
JB
90232011-03-03 Joel Brobecker <brobecker@adacore.com>
9024
9025 * utils.c (parse_escape): Add i18n markup in error message.
9026
bf9f652a
YQ
90272011-03-03 Yao Qi <yao@codesourcery.com>
9028
9029 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9030 ARM_PC_REGNUM.
9031 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9032 (displaced_write_reg, displaced_read_reg): Likewise.
9033 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9034 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9035 (cleanup_branch): Replace magic number 14 and 15 with
9036 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9037
d42de051
MS
90382011-03-02 Michael Snyder <msnyder@vmware.com>
9039
240f9570
MS
9040 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9041
10dd8b54
MS
9042 * cli/cli-script.c (script_from_file): Add break for lint.
9043
b98bd911
MS
9044 * mdebugread.c (parse_partial_symbols): Fix indent.
9045
3494b66d
MS
9046 * target-descriptions.c (tdesc_gdb_type): No need to call
9047 xstrdup, callee saves a copy.
9048
daac021a
MS
9049 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9050
c38d16a7
MS
9051 * infcall.c (call_function_by_hand): Add break statements for lint.
9052
905b671b
MS
9053 * utils.c (parse_escape): Escape the escape char.
9054
f2eb0bc8 9055 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9056 PyList_Append fails.
9057 (gdbpy_inferiors): Error out if build_inferior_list fails.
9058
8c6a60d1
MS
9059 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9060 a function call.
9061
d42de051
MS
9062 * record.c (record_restore): Move printf to before error return.
9063
4db71c0b
YQ
90642011-03-02 Yao Qi <yao@codesourcery.com>
9065
9066 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9067 is_thumb and insn_size.
9068 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9069 on both ARM and Thumb mode.
9070 (arm_process_displaced_insn): Set is_thumb and insn_size.
9071 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9072 (arm_displaced_step_fixup): Likewise.
9073
a9dc8dcc
MS
90742011-03-01 Michael Snyder <msnyder@vmware.com>
9075
53624a93
MS
9076 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9077
77766669
MS
9078 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9079
62d5b8da
MS
9080 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9081
5e9e105f
MS
9082 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9083
dc19db01
MS
9084 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9085 with xmalloc.
9086
5ce64950
MS
9087 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9088 which shadows function parameter.
9089
a0aa2878
MS
9090 * tracepoint.c (create_tsv_from_upload): Superfluous call
9091 to xstrdup. Callee already calls xstrdup.
9092
e325fb69
MS
9093 * linespec.c (decode_line_1): Remove unnecessary null check.
9094
21cbba77
MS
9095 * tracepoint.c (scope_info): Fix mem leak, remove underused
9096 variable.
9097
63360adc
MS
9098 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9099 superfluous null check.
9100
18ea20ac 9101 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9102 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9103
d014929c
MS
9104 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9105
6e9130cf
MS
9106 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9107 be null.
9108
5f01dbc0
MS
9109 * linespec.c (decode_line_1): Check for null before dereference.
9110
d684ab85
MS
9111 * reverse.c (record_restore): Move null-check to before pointer
9112 dereference.
9113
bfffb7e3
MS
9114 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9115
a9dc8dcc
MS
9116 * objc-lang.c (selectors_info): Add explanitory comment.
9117 (classes_info): Ditto.
9118
478fd957
UW
91192011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9120
9121 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9122 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9123 versions of the trampoline. Handle Thumb vs. ARM addresses.
9124 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9125 (arm_linux_init_abi): Install it.
9126 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9127 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9128
0480cefa
MS
91292011-02-28 Michael Snyder <msnyder@vmware.com>
9130
ac50ab3b
MS
9131 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9132 a little bigger, to avoid possibility of an overflow.
9133
f63fbe86
MS
9134 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9135 buffers a little bigger, to avoid possibility of an overflow.
9136
9e91a352
MS
9137 * coffread.c (coff_getfilename): Add check to avoid overflow.
9138
f2eb0bc8 9139 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9140 avoid overflow.
9141 (classes_info): Error out on too long REGEXP.
9142
098ab512
MS
9143 * infrun.c (handle_inferior_event): Remove unused function call.
9144
bcbd1de9
MS
9145 * fork-child.c (fork_inferior): Remove ifdef'd code and
9146 unused variable.
9147
2e456570
MS
9148 * linux-thread-db.c (attach_thread): Discard unused value.
9149
14571dad
MS
9150 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9151
a9cbf802
MS
9152 * remote.c (remote_get_noisy_reply): Discard unused value.
9153 (remote_vcont_resume): Ditto.
9154 (remote_stop_ns): Ditto.
9155
5715d26e
MS
9156 * linespec.c (decode_objc): Delete unused variable.
9157
4a9bca80
MS
9158 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9159
f47fb265
MS
9160 * dwarf2read.c (add_partial_symbol): Discard unused values.
9161 (read_base_type): Delete unused variable.
9162
e81cff30
MS
9163 * dbxread.c (read_dbx_symtab): Discard unused value.
9164
262acaeb
MS
9165 * eval.c (evaluate_subexp_standard): Delete unused variable,
9166 and discard unused values.
9167
df983543
MS
9168 * infcmd.c (_initialize_infcmd): Discard unused values.
9169
89acf84d
MS
9170 * stabsread.c (rs6000_builtin_type): Missing break statement.
9171
ab8b8aca
MS
9172 * dbxread.c (process_one_symbol): Discard unused value.
9173
6b4511ab
MS
9174 * coffread.c (coff_end_symtab): Delete unused variable.
9175
e8e80198
MS
9176 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9177 (dwarf2_add_typedef): Delete unused variable.
9178 (read_namespace): Ditto.
9179 (dwarf_decode_macros): Ditto.
9180
976aa66e
MS
9181 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9182
5b92b49f
MS
9183 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9184
91e8df85
MS
9185 * p-valprint.c (pascal_val_print): Discard unused value.
9186
899500d6
MS
9187 * utils.c (nquery): Call va_end before return;
9188 (yquery): Ditto.
9189 (query): Ditto.
9190
0480cefa
MS
9191 * proc-service.c (ps_plog): Call va_end before return.
9192
fb6a3ed3
TT
91932011-02-28 Tom Tromey <tromey@redhat.com>
9194
9195 * python/python.c (gdbpy_value_cst): New global.
9196 (_initialize_python): Initialize it.
9197 * python/python-internal.h (gdbpy_value_cst): Declare.
9198 * python/py-value.c (convert_value_from_python): Use
9199 gdbpy_value_cst.
9200
c05202a1
MS
92012011-02-28 Michael Snyder <msnyder@vmware.com>
9202
e463f587
MS
9203 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9204
c38eea1a
MS
9205 * breakpoint.c (catch_syscall_completer): Free malloced list.
9206
3ef09ab5
MS
9207 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9208
8f9a01ee
MS
9209 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9210 (lval_func_check_synthetic_pointer): Ditto.
9211 (lval_func_free_closure): Fix use-after-free.
c05202a1 9212
477d0d57
TT
92132011-02-28 Tom Tromey <tromey@redhat.com>
9214
9215 * psymtab.c (expand_partial_symbol_tables): Use
9216 ALL_OBJFILE_PSYMTABS.
9217
20937029
JK
92182011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 * objc-lang.c (selectors_info): Error on too long REGEXP.
9221
907b7f4f
MS
92222011-02-28 Michael Snyder <msnyder@vmware.com>
9223
92e96192
MS
9224 * python/py-param.c (set_parameter_value): Add missing
9225 break statement.
9226
907b7f4f
MS
9227 * linux-record.c (record_linux_system_call): Add missing
9228 break statement.
9229
12c5a436
UW
92302011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9231
9232 * breakpoint.c (print_one_breakpoint_location): Remove unused
9233 argument PRINT_ADDRESS_BITS. Update callers.
9234 (print_one_breakpoint): Likewise.
9235
170b53b2
UW
92362011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9237
9238 * breakpoint.c (wrap_indent_at_field): New function.
9239 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9240 Allocate ui_stream locally instead of using STB argument.
9241 (print_one_breakpoint_location): Update call.
9242 * ui-out.c (ui_out_query_field): New function.
9243 * ui-out.h (ui_out_query_field): Add prototype.
9244
8ab1f94d
JB
92452011-02-28 Joel Brobecker <brobecker@adacore.com>
9246
9247 From Michael Snyder <msnyder@vmware.com>
9248 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9249
7d488639
MS
92502011-02-27 Michael Snyder <msnyder@vmware.com>
9251
ae179fba
MS
9252 * objc-lang.c (selectors_info): Prevent string overrun.
9253
086dbf66
MS
9254 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9255 error in strncpy.
9256
f2eb0bc8 9257 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9258 outer scope.
9259
7d488639
MS
9260 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9261 param with a local variable of the same name.
9262
3bd0f5ef
MS
92632011-02-27 Michael Snyder <msnyder@vmware.com>
9264
9265 * value.c (value_from_history_ref): New function.
9266 * value.h (value_from_history_ref): Export.
9267 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9268 to parse value history references.
9269 * cli/cli-utils.h (get_number_trailer): Update comment.
9270
92712011-02-27 Michael Snyder <msnyder@vmware.com>
9272
9273 * inferior.c (detach_inferior_command): Use get_number_or_range.
9274 (kill_inferior_command): Ditto.
9275 (remove_inferior_command): Ditto.
9276 (initialize_inferiors): Make command names plural.
9277 Update help strings.
9278
766062f6
MS
92792011-02-27 Michael Snyder <msnyder@vmware.com>
9280
9281 * darwin-nat-info.c: Fix comment typo.
9282 * dwarf2expr.h: Ditto.
9283 * fbsd-nat.c: Ditto.
9284 * fbsd-nat.h: Ditto.
9285 * frame-unwind.h: Ditto.
9286 * frame.h: Ditto.
9287 * hppa-hpux-tdep.c: Ditto.
9288 * i386-linux-nat.c: Ditto.
9289 * linux-nat.c: Ditto.
9290 * nbsd-nat.c: Ditto.
9291 * nbsd-nat.h: Ditto.
9292 * ppc-linux-tdep.c: Ditto.
9293 * serial.c: Ditto.
9294 * ui-file.h: Ditto.
9295 * tui/tui-winsource.c: Ditto.
9296
f2c4ead5
MS
92972011-02-26 Michael Snyder <msnyder@vmware.com>
9298
86b887df
MS
9299 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9300
66fd3b1e
MS
9301 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9302
8c814cdd
MS
9303 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9304 with a local variable of the same name.
9305
6d5e094a 9306 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9307 param with a local variable of the same name.
6d5e094a 9308 (i387_supply_xsave): Ditto.
e5b3d7d6 9309
5eee517d
MS
9310 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9311 that it does not shadow a function parameter.
9312
8fbf6b93
MS
9313 * i386-nat.c (i386_length_and_rw_bits): Document that case
9314 statement is meant to fall through.
9315
cb969d61
MS
9316 * expprint.c (dump_subexp_body_standard): Document that case
9317 statement is meant to fall through.
9318
f2c4ead5
MS
9319 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9320 dead if statement. Condition can't be false.
9321
b021a221
MS
93222011-02-25 Michael Snyder <msnyder@vmware.com>
9323
9324 * arm-tdep.c: Fix typos in comments.
9325 * bsd-uthread.c: Ditto.
9326 * completer.c: Ditto.
9327 * corelow.c: Ditto.
9328 * cp-namespace.c: Ditto.
9329 * cp-support.c: Ditto.
9330 * cris-tdep.c: Ditto.
9331 * dbxread.c: Ditto.
9332 * dwarf2read.c: Ditto.
9333 * frame.h: Ditto.
9334 * gdbtypes.h: Ditto.
9335 * inferior.h: Ditto.
9336 * mdebugread.c: Ditto.
9337 * mips-tdep.c: Ditto.
9338 * ppc-linux-nat.c: Ditto.
9339 * ppc-linux-tdep.c: Ditto.
9340 * printcmd.c: Ditto.
9341 * sol-thread.c: Ditto.
9342 * solib-frv.c: Ditto.
9343 * solist.h: Ditto.
9344 * sparc64-tdep.c: Ditto.
9345 * spu-tdep.c: Ditto.
9346 * stabsread.c: Ditto.
9347 * symfile.c: Ditto.
9348 * valops.c: Ditto.
9349 * varobj.c: Ditto.
9350 * vax-nat.c: Ditto.
9351 * python/py-block.c: Ditto.
9352 * python/py-symbol.c: Ditto.
9353 * python/py-symtab.c: Ditto.
9354 * python/py-value.c: Ditto.
9355 * tui/tui-win.c: Ditto.
9356
c82c0b55
MS
93572011-02-25 Michael Snyder <msnyder@vmware.com>
9358
9359 * inferior.c (print_inferior): Accept a string instead of an int
9360 for requested_inferiors, and use get_number_or_range to parse it.
9361 (info_inferiors_command): Pass args string to print_inferior.
9362 (initialize_inferiors): Change help string for info inferiors.
9363 * inferior.h (print_inferior): Export prototype change.
9364
ee00cd23
TT
93652011-02-25 Tom Tromey <tromey@redhat.com>
9366
9367 * common/ax.def (invalid2): Set to 0x31.
9368
0502ed8c
JK
93692011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9370
9371 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9372 L and plongest.
9373 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9374 use L and plongest.
9375 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9376
2c9de912
MS
93772011-02-24 Michael Snyder <msnyder@vmware.com>
9378
9379 * Makefile.in (clean): Make clean should remove generated files
9380 observer.h and observer.inc.
9381
a04b0428
JB
93822011-02-24 Joel Brobecker <brobecker@adacore.com>
9383
9384 Revert the following patch (not approved yet):
9385 2011-02-21 Hui Zhu <teawater@gmail.com>
9386 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9387 * ax-gdb.c (gen_printf_expr_callback): New function.
9388 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9389 * ax-general.c (ax_memcpy): New function.
9390 (ax_print): Handle "printf".
9391 (ax_reqs): Ditto.
9392 * ax.h (ax_memcpy): Forward declare.
9393 * common/ax.def (invalid2): Removed.
9394 (printf): New entry.
9395 * printcmd.c (printcmd.h): New include.
9396 (string_printf): New function.
9397 (ui_printf): Removed.
9398 (printf_command): Remove static. Call string_printf.
9399 (eval_command): Call string_printf.
9400 * printcmd.h: New file.
9401 * tracepoint.c (validate_actionline,
9402 encode_actions_1): handle printf_command.
9403
2b52013f
TT
94042011-02-23 Tom Tromey <tromey@redhat.com>
9405
9406 * ax-general.c (ax_pick): Add missing newline.
9407
e5a67952
MS
94082011-02-23 Michael Snyder <msnyder@vmware.com>
9409
9410 * breakpoint.c (breakpoint_1): Change first argument from an int
9411 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9412 breakpoints rather than just one. Use new function
e5a67952
MS
9413 'number_is_in_list' to implement.
9414 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9415 (watchpoints_info): Ditto.
9416 (tracepoints_info): Ditto.
9417 (maintenance_info_breakpoints): Ditto.
9418 (_initialize_breakpoint): Update help strings to reflect the fact
9419 that these functions can now take more than one argument.
9420 * cli/cli-utils.c (number_is_in_list): New function.
9421 * cli/cli-utils.h (number_is_in_list): Export.
9422
94232011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9424
9425 * memattr.c (mem_enable_command): Use get_number_or_range.
9426 (mem_disable_command): Ditto.
9427 (mem_delete_command): Ditto.
9428 (_initialize_mem): Tweak usage message to reflect multiple
9429 arguments.
9430
6e6fbe60
DE
94312011-02-22 Doug Evans <dje@google.com>
9432
9433 Add gdb.lookup_global_symbol python function.
9434 * NEWS: Add entry.
9435 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9436 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9437 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9438
79b97fa8
TT
94392011-02-22 Tom Tromey <tromey@redhat.com>
9440
9441 * language.c (language_class_name_from_physname): Rename
9442 'curr_language' argument to 'lang'; use in body.
9443
298f437a
MS
94442011-02-22 Michael Snyder <msnyder@vmware.com>
9445
9446 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9447
b7ea3126
PA
94482011-02-22 Pedro Alves <pedro@codesourcery.com>
9449
9450 * frame-unwind.h: Fix comment to mention the this frame, not the
9451 next.
9452
58ee6d60
TT
94532011-02-22 Tom Tromey <tromey@redhat.com>
9454
9455 * symfile.c (auto_solib_limit): Remove.
9456 * symfile.h (auto_solib_limit): Remove.
9457
36238dbc
JB
94582011-02-22 Joel Brobecker <brobecker@adacore.com>
9459
9460 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9461
aea5b279
MS
94622011-02-21 Michael Snyder <msnyder@vmware.com>
9463
9464 * gdbthread.h (print_thread_info): Change prototype.
9465 * thread.c (print_thread_info): Accept char* instead of int for
9466 requested_threads argument. Use new function number_is_in_list
9467 to determine which threads to list.
9468 (info_threads_command): Pass char* to print_thread_info.
9469 * cli/cli-utils.c (number_is_in_list): New function.
9470 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9471 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9472 print_thread_info.
9473 (print_one_inferior): Ditto.
9474 (mi_cmd_list_thread_groups): Ditto.
9475
8caa75ee
JK
94762011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 * common/Makefile.in (CFLAGS): New.
9479 (COMPILE): Add $(CFLAGS).
9480
ea666128
TT
94812011-02-21 Tom Tromey <tromey@redhat.com>
9482
9483 * breakpoint.c (catch_syscall_command_1): Fix typo.
9484
e9cafbcc
TT
94852011-02-21 Tom Tromey <tromey@redhat.com>
9486
9487 * reverse.c: Include cli-utils.h.
9488 * printcmd.c: Include cli-utils.h.
9489 (string_printf): Use skip_spaces.
9490 * cli/cli-utils.h: New file.
9491 * cli/cli-utils.c: New file.
9492 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9493 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9494 * breakpoint.h (get_number, get_number_or_range): Move to
9495 cli-utils.h.
9496 * breakpoint.c: Include cli-utils.h.
9497 (get_number_trailer, get_number, get_number_or_range)
9498 (ep_skip_leading_whitespace): Move to cli-utils.c.
9499 (create_breakpoint_sal, find_condition_and_thread)
9500 (decode_static_tracepoint_spec, watch_command_1)
9501 (watch_maybe_just_location, ep_parse_optional_if_clause)
9502 (catch_fork_command_1, catch_exec_command_1)
9503 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9504 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9505 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9506 (HFILES_NO_SRCDIR): Add cli-utils.h.
9507 (cli-utils.o): New target.
9508
f67fd822
PM
95092011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9510
9511 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9512 before calling discard_all_inferiors.
9513
c9def01d
UW
95142011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9515
9516 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9517 (struct builtin_opencl_type): Remove.
9518 (builtin_opencl_type): Change return type to "struct type **".
9519 (lookup_opencl_vector_type): Update caller.
9520 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9521 (build_opencl_types): Install plain array of "struct type *"
9522 instead of "struct builtin_opencl_type".
9523
e3039479
UW
95242011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9525 Ulrich Weigand <uweigand@de.ibm.com>
9526
9527 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9528 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9529 (struct arm_linux_hwbp_cap): New type.
9530 (arm_linux_get_hwbp_cap): New function.
9531 (arm_linux_get_hw_breakpoint_count): Likewise.
9532 (arm_linux_get_hw_watchpoint_count): Likewise.
9533 (arm_linux_can_use_hw_breakpoint): Likewise.
9534 (arm_hwbp_type): New type.
9535 (arm_hwbp_control_t): Likewise.
9536 (struct arm_linux_hw_breakpoint): Likewise.
9537 (struct arm_linux_thread_points): Likewise.
9538 (arm_threads): New global variable.
9539 (arm_linux_find_breakpoints_by_tid): New function.
9540 (arm_hwbp_control_initialize): Likewise.
9541 (arm_hwbp_control_is_enabled): Likewise.
9542 (arm_hwbp_control_disable): Likewise.
9543 (arm_linux_hw_breakpoint_initialize): Likewise.
9544 (arm_linux_get_hwbp_type): Likewise.
9545 (arm_linux_hw_watchpoint_initialize): Likewise.
9546 (arm_linux_hw_breakpoint_equal): Likewise.
9547 (arm_linux_insert_hw_breakpoint1): Likewise.
9548 (arm_linux_remove_hw_breakpoint1): Likewise.
9549 (arm_linux_insert_hw_breakpoint): Likewise.
9550 (arm_linux_remove_hw_breakpoint): Likewise.
9551 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9552 (arm_linux_insert_watchpoint): Likewise.
9553 (arm_linux_remove_watchpoint): Likewise.
9554 (arm_linux_stopped_data_address): Likewise.
9555 (arm_linux_stopped_by_watchpoint): Likewise.
9556 (arm_linux_watchpoint_addr_within_range): Likewise.
9557 (arm_linux_new_thread): Likewise.
9558 (arm_linux_thread_exit): Likewise.
9559 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9560 related target callbacks. Register arm_linux_new_thread and
9561 arm_linux_thread_exit.
9562 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9563 * arm-tdep.c (arm_pc_is_thumb): Make global.
9564 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9565
b5db5dfc
UW
95662011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9567
9568 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9569 per-frame locations while within a function epilogue.
9570
e25b2cfa
PM
95712011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9572
9573 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9574 to GNU coding standards.
9575
4af53f97
PM
95762011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9577
9578 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9579 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9580 (ser_windows_close): Only call CancelIo if function exists.
9581 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9582 to check for existence of CancelIo function in kernel32 DLL.
9583
d0e92d82
HZ
95842011-02-21 Hui Zhu <teawater@gmail.com>
9585
9586 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9587 * ax-gdb.c (gen_printf_expr_callback): New function.
9588 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9589 * ax-general.c (ax_memcpy): New function.
9590 (ax_print): Handle "printf".
9591 (ax_reqs): Ditto.
9592 * ax.h (ax_memcpy): Forward declare.
9593 * common/ax.def (invalid2): Removed.
9594 (printf): New entry.
9595 * printcmd.c (printcmd.h): New include.
9596 (string_printf): New function.
9597 (ui_printf): Removed.
9598 (printf_command): Remove static. Call string_printf.
9599 (eval_command): Call string_printf.
9600 * printcmd.h: New file.
9601 * tracepoint.c (validate_actionline,
9602 encode_actions_1): handle printf_command.
9603
7d357efd
MS
96042011-02-19 Michael Snyder <msnyder@vmware.com>
9605
9606 * reverse.c (delete_one_bookmark): Argument is now bookmark
9607 id rather than pointer to bookmark struct.
9608 (delete_bookmark_command): Use get_number_or_range.
9609 (goto_bookmark_command): Parse with get_number instead of strtoul.
9610 (bookmark_1): New function. Print info for one bookmark.
9611 (bookmarks_info): Use get_number_or_range and bookmark_1.
9612
7a45ebd7
MS
96132011-02-18 Michael Snyder <msnyder@vmware.com>
9614
f2eb0bc8 9615 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9616 get_number_or_range.
65ebfb52 9617 (thread_apply_command): Ditto.
7a45ebd7 9618
94d5e490
TT
96192011-02-18 Tom Tromey <tromey@redhat.com>
9620
9621 * common/ax.def: New file.
9622 * ax.h (enum agent_op): Use ax.def.
9623 * ax-general.c (aop_map): Use ax.def.
9624
c7f96d2b
TT
96252011-02-18 Tom Tromey <tromey@redhat.com>
9626
9627 * ax-general.c (aop_map): Add pick and rot.
9628 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9629 <DW_OP_rot>: Implement.
9630 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9631 (ax_pick): Declare.
9632 * ax-general.c (ax_pick): New function.
9633
66694b75
TT
96342011-02-18 Tom Tromey <tromey@redhat.com>
9635
9636 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9637
eeaafae2
JK
96382011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9639 Tom Tromey <tromey@redhat.com>
9640
9641 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9642 make_symbol_overload_list_block with NULL BLOCK.
9643 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9644
3c3fe74c
PA
96452011-02-18 Pedro Alves <pedro@codesourcery.com>
9646
9647 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9648 * breakpoint.h (get_number_or_range): Declare.
9649 * printcmd.c (ALL_DISPLAYS): Declare.
9650 (delete_display): Reimplement taking a display pointer.
9651 (undisplay_command): Accept a range of displays to delete, using
9652 get_number_or_range.
9653
13163d80
PM
96542011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9655
9656 * c-valprint.c (c_val_print): Add embedded_offset to address
9657 for arrays of unspecified length.
9658 * p-valprint.c (pascal_val_print): Likewise.
9659
b434a28f
YQ
96602011-02-18 Yao Qi <yao@codesourcery.com>
9661
9662 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9663 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9664 (thumb_process_displaced_insn): New.
9665 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9666 call to arm_process_displaced_insn.
9667 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9668
9f6f94ff
TT
96692011-02-17 Tom Tromey <tromey@redhat.com>
9670
9671 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9672 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9673 compile_dwarf_to_ax. No longer static. Call
9674 dwarf2_compile_cfa_to_ax.
9675 (locexpr_tracepoint_var_ref): Update.
9676 (loclist_tracepoint_var_ref): Update.
9677 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9678 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9679 argument; add 'gdbarch' and 'pc'.
9680 (dwarf2_compile_cfa_to_ax): New function.
9681 (dwarf2_frame_cache): Update.
9682
e67ad678
JB
96832011-02-17 Joel Brobecker <brobecker@adacore.com>
9684
9685 * ada-lang.c (ada_type_of_array): Fix the size of the array
9686 in the case of an unconstrained packed array.
9687
946ebb0d
YQ
96882011-02-17 Yao Qi <yao@codesourcery.com>
9689
9690 * common/Makefile.in: Add more targets for make.
9691
1ba1b353
TT
96922011-02-16 Tom Tromey <tromey@redhat.com>
9693
9694 * dwarf2loc.c (unimplemented): Fix typo.
9695
b1bfef65
TT
96962011-02-16 Tom Tromey <tromey@redhat.com>
9697
9698 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9699 (compile_dwarf_to_ax) <default>: Use unimplemented.
9700 <DW_OP_deref>: Update.
9701 (disassemble_dwarf_expression): Update.
9702 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9703 (decode_locdesc): Update.
9704 * dwarf2expr.h (dwarf_stack_op_name): Update.
9705
5f1e6f19
TT
97062011-02-16 Tom Tromey <tromey@redhat.com>
9707
9708 * ax.h (struct aop_map) <name>: Now const.
9709
a0c78a73
PA
97102011-02-16 Tom Tromey <tromey@redhat.com>
9711
9712 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9713 than axs_rvalue.
9714
946ebb0d 97152011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9716
9717 * infrun.c (get_displaced_step_closure_by_addr): New.
9718 * inferior.h: Declare it.
9719 * arm-tdep.c: (arm_pc_is_thumb): Call
9720 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9721 returns non-NULL.
9722
08807d5a
PA
97232011-02-16 Pedro Alves <pedro@codesourcery.com>
9724 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 gdb/
9727 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9728
29976f3f
PA
97292011-02-16 Pedro Alves <pedro@codesourcery.com>
9730 Jan Kratochvil <jan.kratochvil@redhat.com>
9731
9732 * value.c (value_contents_copy_raw): Extend describing comment.
9733 Assert that the destination contents we're overwriting are wholly
9734 available.
fb68ae73 9735 (value_contents_copy): Extend describing comment.
29976f3f 9736
cd24cfaa
PA
97372011-02-16 Pedro Alves <pedro@codesourcery.com>
9738 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 * value.c (value_available_contents_eq): Remove redundant local
9741 variables. Fix available contents comparision.
9742 * value.h (value_available_contents_eq): Extend describing
9743 comment.
9744
60bbf338
YQ
97452011-02-16 Yao Qi <yao@codesourcery.com>
9746
9747 * thread.c (info_threads_command): Add missing i18n markup and remove
9748 trailing newline.
9749
17450429
PP
97502011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9751
9752 * breakpoint.c (longjmp_names): New variable.
9753 (struct breakpoint_objfile_data): New type.
9754 (breakpoint_objfile_key): New variable.
9755 (msym_not_found): New variable.
9756 (msym_not_found_p): New predicate.
9757 (get_breakpoint_objfile_data): New function.
9758 (create_overlay_event_breakpoint): Check per-objfile cache for
9759 symbols first.
9760 (create_longjmp_master_breakpoint): Likewise.
9761 (create_std_terminate_master_breakpoint): Likewise.
9762 (create_exception_master_breakpoint): Likewise.
9763 (_initialize_breakpoint): Register per-objfile data key.
9764
af02033e
PP
97652011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9766
9767 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9768 parameter value.
9769 (create_longjmp_master_breakpoint): Loop over longjmp names.
9770 (create_std_terminate_master_breakpoint): Const-propagate parameter
9771 value.
9772 (update_breakpoints_after_exec): Adjust.
9773 (breakpoint_re_set): Adjust.
9774
60f98dde
MS
97752011-02-15 Michael Snyder <msnyder@vmware.com>
9776
cdf99611
MS
9777 * thread.c (info_threads_command): Process arg as thread id,
9778 or list of thread ids.
9779 (thread_find_command): New command.
9780 (_initialize_thread): Document argument for info threads.
9781 Document 'thread find' command.
9782 * NEWS: Document new command "thread find".
60f98dde 9783
0feedb2c
JK
97842011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9785
9786 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9787 * aclocal.m4: Regenerated with aclocal-1.11.1.
9788 * common/configure: Regenerate with autoconf-2.64.
9789
648cd113
KW
97902011-02-15 Ken Werner <ken.werner@de.ibm.com>
9791
9792 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9793 bool data type to a size of one byte.
9794
5657161f
PA
97952011-02-15 Pedro Alves <pedro@codesourcery.com>
9796 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 * target.c (memory_xfer_live_readonly_partial): Document where to
9799 look for interface description.
9800
494e194e
YQ
98012011-02-15 Yao Qi <yao@codesourcery.com>
9802
9803 PR tdep/12352
9804 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9805 order to store PC value on stack instead of text section.
9806
d9492458
TJB
98072011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9808
9809 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9810 the EFP register set size.
9811 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9812 data from the VMX register.
9813 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9814 and write data from/to the VMX register.
9815
cdf99611
MS
98162011-02-14 Michael Snyder <msnyder@vmware.com>
9817
9818 * command.h (enum command_class): New class 'no_set_class', for
9819 "show" commands without a corresponding "set" command.
9820 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9821 * copying.c (_initialize_copying): Ditto for "show copying" and
9822 "show warranty".
9823 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9824 "show version".
9825 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9826 which there is no corresponding "set" command (eg. "show copying").
9827
424447ee
PA
98282011-02-14 Pedro Alves <pedro@codesourcery.com>
9829 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 * exec.c (section_table_available_memory): Change `len' parameter
9832 type to ULONGEST.
9833 * exec.h (section_table_available_memory): Ditto.
9834 * value.h (read_value_memory): Rename the `offset' parameter to
9835 `embedded_offset'.
9836
c0f61f9c 98372011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9838 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9839
9840 * memrange.c (compare_mem_ranges): Mention sort order in
9841 describing comment.
9842 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9843 * tracepoint.c (traceframe_available_memory): Extend comment to
9844 mention what happens to RESULT when the target does not support
9845 the query.
9846
6bfc80c7
PA
98472011-02-14 Pedro Alves <pedro@codesourcery.com>
9848 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9851 range.
9852
e7303042
PA
98532011-02-14 Pedro Alves <pedro@codesourcery.com>
9854
9855 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9856 No longer handle NULL values.
9857
8af8e3bc
PA
98582011-02-14 Pedro Alves <pedro@codesourcery.com>
9859
9860 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9861 * value.c: Include "exceptions.h".
9862 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9863 generic error.
9864 * cp-abi.c: Include gdb_assert.h.
9865 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9866 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9867 errors.
9868 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9869 parameters. No longer returns -1 on error.
9870 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9871 `val' parameters.
9872 * cp-valprint.c: Include exceptions.h.
9873 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9874 the baseclass_offset. Handle unavailable base classes. Use
9875 val_print_invalid_address.
9876 * p-valprint.c: Include exceptions.h.
9877 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9878 when fetching the baseclass_offset. No longer expect
9879 baseclass_offset returning -1. Handle unavailable base classes.
9880 Use val_print_invalid_address.
9881 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9882 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9883 `embedded_offset' and `val' parameters. Adjust.
9884 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9885 parameter, and change its type to gdb_byte pointer. Add
9886 `embedded_offset' and `val' parameters. Adjust. No longer expect
9887 baseclass_offset returning -1.
9888 (value_dynamic_cast): Use value_contents_for_printing rather than
9889 value_contents. Adjust.
9890 (search_struct_field): No longer expect baseclass_offset returning
9891 -1.
9892 (search_struct_method): If reading memory from the target is
9893 necessary, wrap it in a new value to pass to baseclass_offset. No
9894 longer expect baseclass_offset returning -1.
9895 (find_method_list): No longer expect baseclass_offset returning
9896 -1. Use value_contents_for_printing rather than value_contents.
9897 * valprint.c (val_print_invalid_address): New function.
9898 * valprint.h (val_print_invalid_address): Declare.
9899 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9900 and `val' parameters. No longer expect baseclass_offset returning
9901 -1. Adjust.
9902 * gnu-v2-abi.c: Include "exceptions.h".
9903 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9904 parameters. Handle unavailable memory. Recurse through
9905 gnuv2_baseclass_offset directly, rather than through
9906 baseclass_offset. No longer returns -1 on not found, instead
9907 throw an error.
9908 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9909 `val' parameters. Adjust.
9910
1b28d0b3
PA
99112011-02-14 Pedro Alves <pedro@codesourcery.com>
9912
9913 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9914 almost but not quite adjacent.
9915
ec0a52e1
PA
99162011-02-14 Pedro Alves <pedro@codesourcery.com>
9917
9918 * value.h (value_entirely_available): Declare.
9919 * value.c (value_entirely_available): New function.
9920 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9921 real type if the pointer is unavailable.
9922
24e6bcee
PA
99232011-02-14 Pedro Alves <pedro@codesourcery.com>
9924
9925 * valops.c (value_repeat): Use read_value_memory instead of
9926 read_memory.
9927
39d37385
PA
99282011-02-14 Pedro Alves <pedro@codesourcery.com>
9929
9930 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9931 * value.c (value_contents_copy_raw, value_contents_copy): New
9932 functions.
9933 (value_primitive_field): Use value_contents_copy_raw instead of
9934 memcpy.
9935 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9936 memcpy.
9937 (value_array, value_slice): Ditto.
9938 * valarith.c (value_subscripted_rvalue): Use
9939 value_contents_copy_raw instead of memcpy.
9940
a3d34bf4
PA
99412011-02-14 Pedro Alves <pedro@codesourcery.com>
9942
9943 <unavailable> references.
9944
9945 * valops.c (get_value_at): Use value_from_contents_and_address,
9946 avoiding read_memory.
9947
9fc6d940
PA
99482011-02-14 Pedro Alves <pedro@codesourcery.com>
9949
9950 * c-valprint.c (c_val_print): Print a string with unavailable
9951 contents as an array.
9952
5467c6c8
PA
99532011-02-14 Pedro Alves <pedro@codesourcery.com>
9954
9955 * value.h (unpack_bits_as_long): Delete declaration.
9956 (unpack_value_bits_as_long): Declare.
9957 (unpack_value_field_as_long): Declare.
9958 (value_field_bitfield): Declare.
9959 * value.c (unpack_bits_as_long): Rename to...
9960 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9961 value parameters. Return the extracted result in a new output
9962 parameter. If the value contents are unavailable, return false,
9963 otherwise return true.
9964 (unpack_value_bits_as_long): New.
9965 (unpack_field_as_long): Rename to...
9966 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9967 Add embedded_offset and value parameters. Return the extracted
9968 result in a new output parameter. If the value contents are
9969 unavailable, return false, otherwise return true.
9970 (unpack_value_field_as_long): New.
9971 (unpack_field_as_long_1): New.
9972 (unpack_field_as_long): Reimplement as wrapper around
9973 unpack_value_field_as_long_1.
9974 (value_field_bitfield): New function.
9975 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9976 unpack_value_bits_as_long. Mark the value as unavailable, if it
9977 is unavailable.
9978 * jv-valprint.c (java_print_value_fields): Use
9979 value_field_bitfield.
9980 * p-valprint.c (pascal_object_print_value_fields): Use
9981 value_field_bitfield.
9982 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9983
3158c6ed
PA
99842011-02-14 Pedro Alves <pedro@codesourcery.com>
9985
9986 * value.c (get_internalvar_integer): Also return the int value of
9987 TYPE_CODE_INT INTERNALVAR_VALUE values.
9988 (set_internalvar): Don't special case TYPE_CODE_INT.
9989
9fbdca0d
PA
99902011-02-14 Pedro Alves <pedro@codesourcery.com>
9991
9992 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9993 INTERNALVAR_POINTER.
9994 <pointer>: Delete.
9995 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9996 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9997 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9998
c8c1c22f
PA
99992011-02-14 Pedro Alves <pedro@codesourcery.com>
10000
10001 * value.h (value_available_contents_eq): Declare.
10002 * value.c (find_first_range_overlap): New function.
10003 (value_available_contents_eq): New function.
10004 * valprint.c (val_print_array_elements): Use
10005 value_available_contents_eq.
10006 * ada-valprint.c (val_print_packed_array_elements): Use
10007 value_available_contents_eq.
10008 * jv-valprint.c (java_value_print): Use
10009 value_available_contents_eq.
10010
e6e4e701
PA
100112011-02-14 Pedro Alves <pedro@codesourcery.com>
10012
10013 * target.c (target_read_live_memory): New function.
10014 (memory_xfer_live_readonly_partial): New.
10015 (memory_xfer_partial): If reading from a traceframe, fallback to
10016 reading unavailable read-only memory from read-only regions of
10017 live target memory.
10018 * tracepoint.c (disconnect_tracing): Adjust.
10019 (set_current_traceframe): New, factored out from
10020 set_traceframe_number.
10021 (set_traceframe_number): Reimplement to only change the traceframe
10022 number on the GDB side.
10023 (do_restore_current_traceframe_cleanup): Adjust.
10024 (make_cleanup_restore_traceframe_number): New.
10025 (cur_traceframe_number): New global.
10026 (tfile_open): Set cur_traceframe_number to no traceframe.
10027 (set_tfile_traceframe): New function.
10028 (tfile_trace_find): If looking up a traceframe using any method
10029 other than by number, make sure the current tfile traceframe
10030 matches gdb's current traceframe. Update the current tfile
10031 traceframe if the lookup succeeded.
10032 (tfile_fetch_registers, tfile_xfer_partial)
10033 (tfile_get_trace_state_variable_value): Make sure the remote
10034 traceframe matches gdb's current traceframe.
10035 * remote.c (remote_traceframe_number): New global.
10036 (remote_open_1): Set it to -1.
10037 (set_remote_traceframe): New function.
10038 (remote_fetch_registers, remote_store_registers)
10039 (remote_xfer_memory, remote_xfer_partial)
10040 (remote_get_trace_state_variable_value): Make sure the remote
10041 traceframe matches gdb's current traceframe.
10042 (remote_trace_find): If looking up a traceframe using any method
10043 other than by number, make sure the current remote traceframe
10044 matches gdb's current traceframe. Update the current remote
10045 traceframe if the lookup succeeded.
10046 * infrun.c (fetch_inferior_event): Adjust.
10047 * tracepoint.h (set_current_traceframe): Declare.
10048 (get_traceframe_number, set_traceframe_number): Add describing
10049 comments.
10050
e6ca34fc
PA
100512011-02-14 Pedro Alves <pedro@codesourcery.com>
10052
10053 Mark pieces of values as unavailable if the corresponding memory
10054 is unavailable.
10055
10056 * valops.c: Include tracepoint.h.
10057 (value_fetch_lazy): Use read_value_memory.
10058 (read_value_memory): New.
10059 * value.h (read_value_memory): Declare.
10060 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10061 * exec.c (section_table_available_memory): New function.
10062 * exec.h (section_table_available_memory): Declare.
10063
2a7498d8
PA
100642011-02-14 Pedro Alves <pedro@codesourcery.com>
10065
10066 * Makefile.in (SFILES): Add memrange.c.
10067 (HFILES_NO_SRCDIR): Add memrange.h.
10068 (COMMON_OBS): Add memrange.o.
10069 * memrange.c: New file.
10070 * memrange.h: New file.
10071 * tracepoint.c: Include memrange.h.
10072 (struct mem_range): Delete.
10073 (mem_range_s): Delete.
10074 (traceframe_available_memory): New function.
10075 * tracepoint.h (traceframe_available_memory): Declare.
10076
b3b9301e
PA
100772011-02-14 Pedro Alves <pedro@codesourcery.com>
10078
10079 * target.h (struct traceframe_info): Forward declare.
10080 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10081 (struct target_ops) <to_traceframe_info>: New field.
10082 (target_traceframe_info): New.
10083 * target.c (update_current_target): Inherit and default
10084 to_traceframe_info.
10085 * remote.c (PACKET_qXfer_traceframe_info): New.
10086 (remote_protocol_features): Register qXfer:traceframe-info:read.
10087 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10088 (remote_traceframe_info): New.
10089 (init_remote_ops): Install it.
10090 (_initialize_remote): Install "set/show remote traceframe-info"
10091 commands.
10092 * tracepoint.h (parse_traceframe_info): Declare.
10093 * tracepoint.c (struct mem_range): New.
10094 (mem_range_s): New typedef.
10095 (struct traceframe_info): New.
10096 (traceframe_info): New global.
10097 (free_traceframe_info): New function.
10098 (clear_traceframe_info): New function.
10099 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10100 info.
10101 (build_traceframe_info): New function.
10102 (tfile_traceframe_info): New function.
10103 (init_tfile_ops): Install tfile_traceframe_info.
10104 (traceframe_info_start_memory, free_result): New functions.
10105 (memory_attributes, traceframe_info_elements): New globals.
10106 (parse_traceframe_info, get_traceframe_info): New functions.
10107 * features/traceframe-info.dtd: New file.
10108 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10109
4e07d55f
PA
101102011-02-14 Pedro Alves <pedro@codesourcery.com>
10111
10112 Base support for <unavailable> value contents.
10113
4e07d55f
PA
10114 * value.h (value_bytes_available): Declare.
10115 (mark_value_bytes_unavailable): Declare.
10116 * value.c (struct range): New struct.
10117 (range_s): New typedef.
10118 (ranges_overlap): New function.
10119 (range_lessthan): New function.
10120 (ranges_contain_p): New function.
10121 (struct value) <unavailable>: New field.
10122 (value_bytes_available): New function.
10123 (mark_value_bytes_unavailable): New function.
10124 (require_not_optimized_out): Constify parameter.
10125 (require_available): New function.
10126 (value_contents_all, value_contents): Require all bytes be
10127 available.
10128 (value_free): Free `unavailable'.
10129 (value_copy): Copy `unavailable'.
10130 * valprint.h (val_print_unavailable): Declare.
10131 * valprint.c (valprint_check_validity): Rename `offset' parameter
10132 to `embedded_offset'. If printing a scalar, check whether the
10133 value chunk is available.
10134 (val_print_unavailable): New.
10135 (val_print_scalar_formatted): Check whether the value is
10136 available.
10137 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10138 pretty-printing unavailable values.
10139
bc9a5551
JK
101402011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10143 * c-typeprint.c (c_type_print_args): Update the function comment. New
10144 variable param_type, initialize it. Remove const/volatile qualifiers
10145 for language_cplus and !show_artificial. Use param_type.
10146
93b55aa1
JK
101472011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10148
10149 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10150 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10151 * symtab.h (struct symtab) <next>: Comment extension.
10152
181d9476
YQ
101532011-02-12 Yao Qi <yao@codesourcery.com>
10154
10155 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10156
b708a5c7
JK
101572011-02-11 Yao Qi <yao@codesourcery.com>
10158
10159 * common/Makefile.in: Add copyright header.
10160
c5187ac6
PA
101612011-02-11 Pedro Alves <pedro@codesourcery.com>
10162
10163 * infrun.c (proceed): Move switching out and in of tfind mode from
10164 here ...
10165 (fetch_inferior_event): ... to here.
10166
4f3e6fb7
YQ
101672011-02-11 Yao Qi <yao@codesourcery.com>
10168
10169 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10170 libcommon.a.
10171 * configure.ac: Add common to sub dir.
10172 * configure: Regenerate.
10173
b708a5c7
JK
101742011-02-11 Yao Qi <yao@codesourcery.com>
10175
10176 Build libcommon.a.
10177
10178 * common/Makefile.in: New.
10179 * common/configure.ac: New.
10180 * common/aclocal.m4: New.
10181 * common/configure: Generate.
10182
2287cc7e
PA
101832011-02-10 Pedro Alves <pedro@codesourcery.com>
10184
10185 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10186 side of the parenthesis.
10187
10188 Merge from GCC:
10189 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10190 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10191
fd62cb89
MS
101922011-02-08 Michael Snyder <msnyder@vmware.com>
10193
10194 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10195
56d2815c
JK
101962011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10197
10198 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10199 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10200 psubd and paddd.
10201
4f7d61a8
JK
102022011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10203
10204 PR 12361.
10205 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10206 phsubsw.
10207 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10208 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10209
54fcddd0
UW
102102011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10211
10212 * dwarf2read.c (read_subroutine_type): Set special calling
10213 convention flag for functions compiled by IBM XL C for OpenCL.
10214 * ppc-sysv-tdep.c: Include "dwarf2.h"
10215 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10216 calling convention.
10217 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10218 IBM OpenCL vector types calling convention.
10219 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10220 (ppc_sysv_abi_broken_return_value): Likewise.
10221 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10222 types calling convention.
10223 (ppc64_sysv_abi_return_value): Likewise.
10224 * spu-tdep.c: Include "dwarf2.h"
10225 (spu_return_value): Implement IBM OpenCL vector types calling
10226 convention.
10227
d6dafb7c
UW
102282011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10229
10230 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10231 correct ABI for AltiVec vector arguments.
10232
32b72a42
PA
102332011-02-07 Pedro Alves <pedro@codesourcery.com>
10234
10235 * valprint.c (val_print): Extend comment.
10236 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10237 interface explanation to val_print.
10238 (ada_val_print_array): Adjust comment to current interface.
10239 (print_field_values): Adjust comment to current interface.
10240 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10241 explanation to val_print.
10242 * f-valprint.c (f_val_print): Ditto.
10243 * jv-valprint.c (java_val_print): Ditto.
10244 * m2-valprint.c (m2_val_print): Ditto.
10245 * p-valprint.c (pascal_val_print): Ditto.
10246
9998af43
TJB
102472011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10248
10249 * breakpoint.c (parse_breakpoint_sals): Fix description.
10250
505500db 102512011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10252 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10253
10254 * python/py-inferior.c (python_on_normal_stop): New function.
10255 (python_on_resume): New function.
10256 (python_inferior_exit): New function.
10257 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10258 inferior_exit observers.
10259 * python/py-evtregistry.c: New file.
10260 * python/py-threadevent.c : New file.
10261 * python/py-event.c: New file.
10262 * python/py-evts.c: New file.
10263 * python/py-continueevent.c: New file.
10264 * python/py-bpevent.c: New file.
10265 * python/py-signalevent.c: New file.
10266 * python/py-exetiedevent.c: New file.
10267 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10268 Move struct breakpoint_object from here...
10269 * python/python-internal.h: ... to here.
10270 * python/py-event.h: New file.
10271 * python/py-events.h: New file.
10272 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10273 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10274 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10275 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10276 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10277 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10278 Add build rules for all the above.
10279
9e0ac564
TT
102802011-02-04 Tom Tromey <tromey@redhat.com>
10281
10282 * dwarf2read.c (dwarf2_section_empty_p): New function.
10283 (dwarf2_read_section): Use dwarf2_section_empty_p.
10284 (dwarf2_section_size): New function.
10285 (dwarf2_get_section_info): Unconditionally read section.
10286 (dwarf2_read_index): Use dwarf2_section_empty_p.
10287 (partial_read_comp_unit_head): Use dwarf2_section_size.
10288 (dwarf2_symbol_mark_computed): Likewise.
10289
eee5b35e
DD
102902011-02-04 David Daney <ddaney@caviumnetworks.com>
10291
10292 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10293
385203ed
DD
102942011-02-04 David Daney <ddaney@caviumnetworks.com>
10295
10296 * mips-linux-tdep.c: Include xml-syscall.h.
10297 (mips_linux_get_syscall_number): New function.
10298 (mips_linux_init_abi): Add calls to
10299 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10300 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10301 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10302 * syscalls/mips-n32-linux.xml: New file.
10303 * syscalls/mips-n64-linux.xml: New file.
10304 * syscalls/mips-o32-linux.xml: New file.
10305
9277c30c
UW
103062011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10307
10308 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10309 Complain about inverted range entries.
10310 (dwarf2_record_block_ranges): Likewise.
10311
a3be7890
TJB
103122011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10313
10314 Fix some typos.
10315 * breakpoint.c (update_watchpoint): Fix name of the
10316 update_global_location_list function.
10317 (print_one_breakpoint): Fix typo.
10318 (_initialize_breakpoint): Remove extra space in hbreak help
10319 string.
10320 * breakpoint.h (struct bp_location) <length>: Fix field
10321 description.
10322
041274d8
PA
103232011-02-04 Pedro Alves <pedro@codesourcery.com>
10324
10325 * regcache.c (registers_changed_ptid): Don't explictly always
10326 clear `current_regcache'. Only clear current_thread_ptid and
10327 current_thread_arch when PTID matches. Only reinit the frame
10328 cache if PTID matches the current inferior_ptid. Move alloca(0)
10329 call to ...
10330 (registers_changed): ... here.
10331
c1c2ab58
UW
103322011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10333
10334 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10335 starts with __stack_chk_guard as stack guard symbol.
10336
9011945e
AB
103372011-02-03 Andrew Burgess <aburgess@broadcom.com>
10338
10339 * disasm.c (compare_lines): Handle the end of sequence markers
10340 within the line table to better support disassembling over
10341 compilation unit boundaries.
10342
e0634ccf
UW
103432011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10344
10345 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10346 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10347 implementation even if no symbols are available.
10348 (thumb_analyze_prologue): Update call to skip_prologue_function.
10349 (arm_analyze_prologue): Likewise.
10350
0e9e9abd
UW
103512011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10352
10353 * arm-tdep.c: Include "observer.h".
10354 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10355 (arm_exidx_data_key): New static variable.
10356 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10357 (struct arm_exidx_data): Likewise.
10358 (arm_exidx_data_free): New function.
10359 (arm_compare_exidx_entries): Likewise.
10360 (arm_obj_section_from_vma): Likewise.
10361 (arm_exidx_new_objfile): Likewise.
10362 (arm_find_exidx_entry): Likewise.
10363 (arm_exidx_fill_cache): Likewise.
10364 (arm_exidx_unwind_sniffer): Likewise.
10365 (arm_exidx_unwind): New global variable.
10366 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10367 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10368 observer. Register arm_exidx_data_key as objfile data.
10369
2e9e421f
UW
103702011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10371
10372 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10373 due to accessing uninitialized variable. Fix indentation.
10374
580688f3
PA
103752011-02-02 Pedro Alves <pedro@codesourcery.com>
10376
10377 * c-valprint.c (c_value_print): When doing virtual base pointer
10378 adjustment, create a new value with adjusted contents rather than
10379 changing the contents of the value being printed (and getting it
10380 wrong).
10381
3d2c1d41
PA
103822011-02-02 Pedro Alves <pedro@codesourcery.com>
10383
10384 * xml-support.c (xml_find_attribute): New.
10385 (xinclude_start_include): Use it.
10386 * xml-support.h (xml_find_attribute): Declare.
10387 * memory-map.c (memory_map_start_memory)
10388 (memory_map_start_property): Use xml_find_attribute.
10389 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10390 xml_find_attribute.
10391 * remote.c (start_thread): Use xml_find_attribute.
10392 * solib-target.c (library_list_start_segment)
10393 (library_list_start_section, library_list_start_library)
10394 (library_list_start_list): Use xml_find_attribute.
10395 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10396 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10397 (tdesc_start_field): Use xml_find_attribute.
10398
0af3e2db
UW
103992011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10400
10401 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10402 (BUILD_OCL_VTYPES): Update.
10403
c1039e3c
JB
104042011-02-02 Joel Brobecker <brobecker@adacore.com>
10405
10406 * configure.ac: Work around non-GNU sed limitation when computing
10407 python version number.
10408 * configure: Regenerate.
10409
600ea1be
JK
104102011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10411
10412 Fix debug printing of TYPE_INSTANCE.
10413 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10414 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10415
56c12414
JK
104162011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10417
10418 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10419 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10420 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10421 * ada-operator.inc: Rename the file to ...
10422 * ada-operator.def: ... here, wrap all the entries by macro OP.
10423 * expprint.c (op_name_standard): Remove all the entries. Include
10424 "std-operator.def" instead.
10425 * expression.h (enum exp_opcode): Include "std-operator.def" and
10426 "ada-operator.def". Move all the entries ...
10427 * std-operator.def: ... here, wrap all the entries by macro OP.
10428
c52b559d
PP
104292011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10430
10431 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10432 * breakpoint.c (remove_jit_event_breakpoints): New function.
10433 * jit.c (jit_descriptor_addr): Delete.
10434 (registering_code): Delete.
10435 (clear_int): Delete.
10436 (jit_inferior_data): New variable.
10437 (struct jit_inferior_data): New type.
10438 (get_jit_inferior_data): New function.
10439 (jit_inferior_data_cleanup): New function.
10440 (jit_read_descriptor): Adjust.
10441 (jit_register_code): Adjust.
10442 (jit_breakpoint_re_set_internal): New function; move code here ...
10443 (jit_inferior_init): ... from here.
10444 (jit_breakpoint_re_set): Adjust.
10445 (jit_reset_inferior_data_and_breakpoints): New function.
10446 (jit_inferior_created_observer): Adjust.
10447 (jit_inferior_exit_hook): Adjust.
10448 (jit_executable_changed_observer): New function.
10449 (jit_event_handler): Adjust.
10450 (_initialize_jit): Adjust.
10451
e839132d
MS
104522011-01-31 Michael Snyder <msnyder@vmware.com>
10453
10454 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10455 line.
10456
47a80e90
TT
104572011-01-31 Tom Tromey <tromey@redhat.com>
10458
10459 PR python/12216:
10460 * python/python.c (execute_gdb_command): Call
10461 prevent_dont_repeat.
10462 * top.c (suppress_dont_repeat): New global.
10463 (dont_repeat): Use it.
10464 (prevent_dont_repeat): New function.
10465 * command.h (prevent_dont_repeat): Declare.
10466
45a43567
TT
104672011-01-31 Tom Tromey <tromey@redhat.com>
10468
10469 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10470 * python/py-breakpoint.c (bppy_set_silent): Use
10471 breakpoint_set_silent.
10472 (bppy_set_thread): Use breakpoint_set_thread.
10473 (bppy_set_task): Use breakpoint_set_task.
10474 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10475 (breakpoint_set_task): Declare.
10476 (make_breakpoint_silent): Remove.
10477 * breakpoint.c (breakpoint_set_silent): New function.
10478 (breakpoint_set_thread): Likewise.
10479 (breakpoint_set_task): Likewise.
10480 (make_breakpoint_silent): Remove.
10481
09d682a4
TT
104822011-01-31 Tom Tromey <tromey@redhat.com>
10483
10484 * breakpoint.h (user_breakpoint_p): Declare.
10485 * breakpoint.c (user_breakpoint_p): New function.
10486 (breakpoint_1): Use it.
10487 (save_breakpoints): Likewise.
10488
9c4ea6c5
JB
104892011-01-31 Joel Brobecker <brobecker@adacore.com>
10490
10491 * configure.ac: Add handling of Python distribution on Windows.
10492 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10493 sysconfig variables are not defined, then do not use them.
10494 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10495 instead. On Windows, return all paths using forward-slashes
10496 rather than backslashes.
10497
ac534cba
JB
104982011-01-31 Joel Brobecker <brobecker@adacore.com>
10499
10500 * configure.ac: Remove fallback behavior for building
10501 against Python. Remove tweaking of Python include path.
10502 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10503 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10504 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10505 Always restore CPPFLAGS and LIBS after linking test.
10506 * configure: Regenerated.
10507 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10508 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10509 * python/python-internal.h: Adjust includes of Python .h files.
10510
c2f0d045
JB
105112011-01-31 Joel Brobecker <brobecker@adacore.com>
10512
10513 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10514 in error message.
10515
6b0c4c1f
JB
105162011-01-31 Joel Brobecker <brobecker@adacore.com>
10517
10518 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10519 value test.
10520
672c9795
YQ
105212011-01-31 Yao Qi <yao@codesourcery.com>
10522
10523 * arm-linux-nat.c: Update calls to regcache_register_status
10524 instead of regcache_valid_p.
10525 * aix-thread.c: Likewise.
10526 * i386gnu-nat.c: Likewise.
10527
80b23b6a
JK
105282011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10529
10530 Fix crash.
10531 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10532 touching TYPE_FIELD_ARTIFICIAL.
10533
4cd712bd
RE
105342011-01-28 Richard Earnshaw <rearnsha@arm.com>
10535
10536 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10537 Committers.
10538
ffd5ec24
PA
105392011-01-28 Pedro Alves <pedro@codesourcery.com>
10540
10541 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10542 selected, don't try iterating over the traceframe's blocks.
10543 (tfile_has_stack): If there's no traceframe selected, then there's
10544 no stack.
10545 (tfile_has_registers): If there's no traceframe selected, then
10546 there's no registers.
10547
e8c9e0a1
PA
105482011-01-28 Pedro Alves <pedro@codesourcery.com>
10549
10550 * target.c (memory_xfer_partial): No need to restore shadows if we
10551 haven't read anything.
10552
de15c4ab
PA
105532011-01-28 Pedro Alves <pedro@codesourcery.com>
10554
10555 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10556 and val_print_scalar_formatted.
10557
9f41c731
PA
105582011-01-27 Pedro Alves <pedro@codesourcery.com>
10559
10560 * tracepoint.c (tfile_read): New.
10561 (tfile_open): Use it.
10562 (tfile_get_traceframe_address): Use it.
10563 (tfile_trace_find): Use it.
10564 (walk_blocks_callback_func): New typedef.
10565 (match_blocktype): New function.
10566 (traceframe_walk_blocks): New function.
10567 (traceframe_find_block_type): New function.
10568 (tfile_fetch_registers, tfile_xfer_partial)
10569 (tfile_get_trace_state_variable_value): Use
10570 traceframe_find_block_type and tfile_read.
10571
cdefc55d
KB
105722011-01-26 Kevin Buettner <kevinb@redhat.com>
10573
10574 * remote-mips.c: Add internationalization mark ups. Remove
10575 trailing \n from already marked up strings.
10576
a81766d8
TT
105772011-01-26 Tom Tromey <tromey@redhat.com>
10578
10579 * python/py-prettyprint.c (print_string_repr): Clear
10580 'addressprint' option when calling val_print_string.
10581 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10582 option when calling val_print_string.
10583
74aedc46
TT
105842011-01-26 Tom Tromey <tromey@redhat.com>
10585
10586 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10587 GDB_PY_LL_ARG.
10588 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10589 macros.
10590 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10591 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10592 (gdb_py_long_as_ulongest): New defines.
10593 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10594 (gdb_py_int_as_long): Declare.
10595 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10596 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10597 (valpy_long): Add comment.
10598 * python/py-utils.c (get_addr_from_python): Use
10599 gdb_py_long_as_ulongest. Handle overflow properly.
10600 (gdb_py_object_from_longest): New function.
10601 (gdb_py_object_from_ulongest): Likewise.
10602 (gdb_py_int_as_long): Likewise.
10603 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10604 * python/py-symtab.c (salpy_get_pc): Use
10605 gdb_py_long_from_ulongest.
10606 (salpy_get_line): Use PyInt_FromLong.
10607 * python/py-param.c (set_parameter_value): Use
10608 gdb_py_int_as_long.
10609 * python/py-lazy-string.c (stpy_get_address): Use
10610 gdb_py_long_from_ulongest.
10611 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10612 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10613 * python/py-breakpoint.c (bppy_set_thread): Use
10614 gdb_py_int_as_long.
10615 (bppy_set_task): Likewise.
10616 (bppy_set_ignore_count): Likewise.
10617 (bppy_set_hit_count): Likewise.
10618 * python/py-block.c (blpy_get_start): Use
10619 gdb_py_object_from_ulongest.
10620 (blpy_get_end): Likewise.
10621 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10622
e4f6d2ec
TJB
106232011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10624
10625 PR/symtab 11766:
10626 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10627 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10628 equality test for objfile, initialize addr_low if needed.
10629
b30aa278
PA
106302011-01-25 Pedro Alves <pedro@codesourcery.com>
10631
10632 * tui/tui-regs.c (tui_register_format): Remove dead code.
10633
ab2188aa
PA
106342011-01-25 Pedro Alves <pedro@codesourcery.com>
10635
10636 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10637 instead of print_scalar_formatted.
10638 (print_scalar_formatted): Don't handle 's' format strings here,
10639 and add an assertion that we never see such format here.
10640 * valprint.h (val_print_scalar_formatted): Declare.
10641 * valprint.c (val_print_scalar_formatted): New.
10642 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10643 instead of print_scalar_formatted.
10644 * jv-valprint.c (java_val_print): Ditto.
10645 * p-valprint.c (pascal_val_print): Ditto.
10646 * ada-valprint.c (ada_val_print_1): Ditto.
10647 * f-valprint.c (f_val_print): Ditto.
10648 * infcmd.c (registers_info): Ditto.
10649 * m2-valprint.c (m2_val_print): Ditto.
10650
66d61a4c
PA
106512011-01-25 Pedro Alves <pedro@codesourcery.com>
10652
10653 * m2-valprint.c (print_unbounded_array): Pass
10654 value_contents_for_printing rather than value_contents, to
10655 m2_print_array_contents. Also pass in the value.
10656
831adc1f
JK
106572011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10658
10659 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10660 (save_gdb_index_command): Switch to .gdb_index version 4.
10661
20622269
PA
106622011-01-25 Pedro Alves <pedro@codesourcery.com>
10663
10664 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10665 than frame_register, and always pass a valid value to val_print.
10666
585fdaa1
PA
106672011-01-25 Pedro Alves <pedro@codesourcery.com>
10668
10669 Centralize printing "<optimized out>".
10670
10671 * valprint.h (val_print_optimized_out): Declare.
10672 * cp-valprint.c (cp_print_value_fields): Use
10673 val_print_optimized_out.
10674 * jv-valprint.c (java_print_value_fields): Ditto.
10675 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10676 * printcmd.c (print_formatted): Ditto.
10677 * valprint.c (valprint_check_validity): Ditto.
10678 (value_check_printable): Ditto.
10679 (val_print_optimized_out): New.
10680
29ec5263
PA
106812011-01-25 Pedro Alves <pedro@codesourcery.com>
10682
10683 * infcmd.c (default_print_registers_info): Allocate values so to
10684 never pass a NULL value to val_print.
10685
de4127a3
PA
106862011-01-25 Pedro Alves <pedro@codesourcery.com>
10687
10688 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10689 boolean. Make sure to always pass a value that matches the
10690 contents buffer to callees. Preserve `address' for following
10691 iterations.
10692 * value.c (value_contents_for_printing_const): New.
10693 (value_address): Constify value argument.
10694 * value.h (value_contents_for_printing_const): Declare.
10695 (value_address): Constify value argument.
10696
ee99023e
PA
106972011-01-25 Pedro Alves <pedro@codesourcery.com>
10698
10699 * regcache.c (struct regcache_descr): Rename
10700 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10701 and sizeof_cooked_register_valid_p to
10702 sizeof_cooked_register_status.
10703 (init_regcache_descr): Adjust.
10704 (struct regcache): Rename register_valid_p field to
10705 register_status.
10706 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10707 (do_cooked_read): Adjust.
10708 (regcache_valid_p): Rename to ...
10709 (regcache_register_status): ... this. Adjust.
10710 (regcache_invalidate): Adjust.
10711 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10712 Adjust.
10713 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10714 as unavailable, not valid.
10715 (regcache_dump): Adjust.
10716 * regcache.h (enum register_status): New.
10717 (regcache_register_status): Declare.
10718 (regcache_invalidate): Delete declaration.
10719 * corelow.c (get_core_registers): Adjust.
10720 * tracepoint.c (tfile_fetch_registers): Adjust.
10721 * trad-frame.c (REG_VALUE): Rename to ...
10722 (TF_REG_VALUE): ... this.
10723 (REG_UNKNOWN): Rename to ...
10724 (TF_REG_UNKNOWN): ... this.
10725 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10726 * mi/mi-main.c (register_changed_p): Adjust.
10727
99e42fd8
PA
107282011-01-25 Pedro Alves <pedro@codesourcery.com>
10729
10730 * regcache.c (struct regcache_descr): Remove outdated comment.
10731 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10732 overallocate hack.
10733 (regcache_xmalloc): Rename to ...
10734 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10735 Allocate the regcache type accordingly.
10736 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10737 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10738 cooked registers, not raw.
10739 (regcache_dup_no_passthrough): Delete.
10740 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10741 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10742 mention obsolete write_register_bytes.
10743 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10744
f7605bc2
PA
107452011-01-25 Pedro Alves <pedro@codesourcery.com>
10746
10747 Stop remote_read_bytes from handling partial reads itself.
10748
10749 * remote-fileio.c: Include target.h.
10750 (remote_fileio_write_bytes): Delete.
10751 (remote_fileio_func_open, remote_fileio_func_write)
10752 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10753 target_read_memory.
10754 (remote_fileio_func_stat): Use target_read_memory and
10755 target_write_memory.
10756 (remote_fileio_func_gettimeofday): Use target_write_memory.
10757 (remote_fileio_func_system): Use target_read_memory.
10758 * remote.c (remote_write_bytes): Make it static.
10759 (remote_read_bytes): Don't handle partial reads here.
10760 * remote.h (remote_read_bytes): Delete declaration.
10761
efc0eabd
PA
107622011-01-25 Pedro Alves <pedro@codesourcery.com>
10763
10764 Simplify XML parsing a bit.
10765
10766 * xml-support.h (gdb_xml_parse_quick): Declare.
10767 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10768 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10769 parameter.
10770 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10771 gdb_xml_create_parser_and_cleanup_1.
10772 (gdb_xml_parse_quick): New.
10773 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10774 * osdata.c (osdata_parse): Ditto.
10775 * remote.c (remote_threads_info): Ditto.
10776 * solib-target.c (solib_target_parse_libraries): Ditto.
10777 * xml-syscall.c (syscall_parse_xml): Ditto.
10778 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10779
314d366a
KB
107802011-01-24 Kevin Buettner <kevinb@redhat.com>
10781
10782 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10783 with remote-mips.o added to gdb_target_obs.
10784 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10785
a491d753
PA
107862011-01-24 Pedro Alves <pedro@codesourcery.com>
10787
10788 * ada-valprint.c (val_print_packed_array_elements): Pass the
10789 correct struct value to val_print.
10790 (ada_val_print_1): Ditto.
10791
490f124f
PA
107922011-01-24 Pedro Alves <pedro@codesourcery.com>
10793
10794 Don't lose embedded_offset in printing routines throughout.
10795
10796 * valprint.h (val_print_array_elements): Change prototype.
10797 * valprint.c (val_print_array_elements): Add `embedded_offset'
10798 parameter, and adjust to pass it down to val_print, while passing
10799 `valaddr' or `address' unmodified. Take embedded_offset into
10800 account when checking repetitions.
10801 * c-valprint.c (c_val_print): Pass embedded_offset to
10802 val_print_array_elements instead of adjusting `valaddr' and
10803 `address'.
10804 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10805 embedded_offset to val_print_array_elements instead of adjusting
10806 `valaddr'.
10807 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10808 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10809 val_print_array_elements and pascal_object_print_value_fields
10810 instead of adjusting `valaddr'.
10811 (pascal_object_print_value_fields): Add `offset' parameter, and
10812 adjust to use it.
10813 (pascal_object_print_value): Add `offset' parameter, and adjust to
10814 use it.
10815 (pascal_object_print_static_field): Use
10816 value_contents_for_printing/value_embedded_offset, rather than
10817 value_contents.
10818 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10819 parameter, and adjust to use it. Use
10820 value_contents_for_printing/value_embedded_offset, rather than
10821 value_contents.
10822 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10823 (ada_val_print_array): Add `offset' parameter, and adjust to use
10824 it.
10825 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10826 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10827 Instead work with offsets. Use
10828 value_contents_for_printing/value_embedded_offset, rather than
10829 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10830 and use value_from_pointer to extract a target pointer, rather
10831 than value_from_longest.
10832 (print_variant_part): Add `offset' parameter. Replace
10833 `outer_valaddr' parameter by a new `outer_offset' parameter.
10834 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10835 (ada_value_print): Use
10836 value_contents_for_printing/value_embedded_offset, rather than
10837 value_contents.
10838 (print_record): Add `offset' parameter, and adjust to pass it
10839 down.
10840 (print_field_values): Add `offset' parameter. Replace
10841 `outer_valaddr' parameter by a new `outer_offset' parameter.
10842 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10843 Use value_contents_for_printing/value_embedded_offset, rather than
10844 value_contents.
10845 * d-valprint.c (dynamic_array_type): Use
10846 value_contents_for_printing/value_embedded_offset, rather than
10847 value_contents.
10848 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10849 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10850 (java_print_value_fields): Take `offset' into account. Don't
10851 re-adjust `valaddr'. Instead pass down adjusted offsets.
10852 (java_val_print): Take `embedded_offset' into account. Pass it to
10853 java_print_value_fields.
10854 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10855 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10856 down adjusted offsets.
10857 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10858 (f_val_print): Take `embedded_offset' into account.
10859
7bfc9434
JB
108602011-01-21 Joel Brobecker <brobecker@adacore.com>
10861
10862 * inflow.c: Include "gdbcmd.h".
10863 (interactive_mode): New static global, moved here from top.c.
10864 (show_interactive_mode): New function, moved here from top.c.
10865 use gdb_has_a_terminal instead of input_from_terminal_p to
10866 determine the current mode.
10867 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10868 setting.
10869 (_initialize_inflow): Add the "set/show interactive-mode"
10870 commands. Moved here from top.c, after having adjusted slightly
10871 the help text.
10872 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10873 to inflow.c.
10874 (input_from_terminal_p): Remove handling of "interactive-mode"
10875 setting, moved to infow.c.
10876 (init_main): Remove creation of the "set/show interactive-mode"
10877 commands, moved to inflow.c.
10878
44603653
JB
108792011-01-19 Joel Brobecker <brobecker@adacore.com>
10880
10881 * NEWS: Add entry for native ia64-hpux support.
10882
4694da01
TT
108832011-01-19 Tom Tromey <tromey@redhat.com>
10884
10885 PR mi/8618:
10886 * thread.c (free_thread): Free 'name'.
10887 (print_thread_info): Emit thread name. Change CLI output.
10888 (thread_name_command): New function.
10889 (do_captured_thread_select): Emit newline.
10890 (_initialize_thread): Register 'thread name' command.
10891 * target.h (struct target_ops) <to_thread_name>: New field.
10892 (target_thread_name): New macro.
10893 * target.c (update_current_target): Handle to_thread_name.
10894 * python/py-infthread.c (thpy_get_name): New function.
10895 (thpy_set_name): Likewise.
10896 (thread_object_getset): Add "name".
10897 * linux-nat.c (linux_nat_thread_name): New function.
10898 (linux_nat_add_target): Set to_thread_name.
10899 * gdbthread.h (struct thread_info) <name>: New field.
10900
10d44370
JB
109012011-01-18 Joel Brobecker <brobecker@adacore.com>
10902
10903 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10904 (ada_val_print_1): Likewise.
10905
e3acb115
JB
109062011-01-18 Joel Brobecker <brobecker@adacore.com>
10907
10908 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10909 upper limit address is not greater than the function end address
10910 when the upper limit could not be computed using the debugging
10911 info.
10912
dc92e161
TT
109132011-01-17 Tom Tromey <tromey@redhat.com>
10914
10915 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10916 get_regcomp_error.
10917 * utils.c: Include gdb_regex.h.
10918 (do_regfree_cleanup): New function.
10919 (make_regfree_cleanup): Likewise.
10920 (get_regcomp_error): Likewise.
10921 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10922
f55af66d
TT
109232011-01-17 Tom Tromey <tromey@redhat.com>
10924
10925 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10926 re_compile_fastmap.
10927
a5a44b53
PM
109282011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10929
10930 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10931 for internal variables.
10932 (last_was_structop): New static variable.
10933 (COMPLETE): New token.
10934 (field_exp): New rule to group all '.' suffix handling.
10935 Add mark_struct_expression calls when approriate to be able
10936 to correctly find fields for completion.
10937 (yylex): Adapt to handle field completion and set INTVAR when
10938 required.
10939
2c291032
YQ
109402011-01-14 Yao Qi <yao@codesourcery.com>
10941
10942 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10943 save_reggroup, restore_reggroup and all_reggroup.
10944
447b483c
JB
109452011-01-14 Joel Brobecker <brobecker@adacore.com>
10946
10947 * ada-valprint. (ada_printchar): Use the correct type length
10948 in call to ada_emit_char.
10949 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10950
7b64a93b
PM
109512011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10952
10953 * solib-som.h (hpux_major_release): Declare variable here.
10954 * solib-som.c: Remove <sys/utsname.h> header.
10955 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10956 (hpux_major_release): Make global, change default value to
10957 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10958 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10959 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10960 Add "solib-som.h" header.
10961 (set_hpux_major_release): New function.
10962 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10963
4e18c053
MF
109642011-01-14 Mike Frysinger <vapier@gentoo.org>
10965
10966 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10967
a9df6b22
JB
109682011-01-14 Joel Brobecker <brobecker@adacore.com>
10969
10970 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10971 new-line at end of warning message.
10972 (ia64_hpux_store_register): Remove trailing new-line at end of
10973 error message.
10974 * ia64-hpux-tdep.c: Rephrase comment.
10975 * solib-ia64-hpux.c (struct dld_info): Change type of field
10976 dld_flags from "long long" to ULONGEST.
10977
ecb956dd
PA
109782011-01-14 Pedro Alves <pedro@codesourcery.com>
10979
10980 * target.h (deprecated_child_ops): Delete declaration.
10981 * target.c (deprecated_child_ops): Delete definition.
10982
76adfcae
PA
109832011-01-14 Pedro Alves <pedro@codesourcery.com>
10984
10985 * Makefile.in (hpux-thread.o): Delete rule.
10986 * configure.ac: Don't check for HPUX DCE threads support.
10987 * configure, config.in: Regenerate.
10988 * hppa-hpux-nat.c (child_suppress_run): Delete.
10989 (hppa_hpux_child_can_run): Delete.
10990 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10991 * hpux-thread.c: Delete.
10992
042e866e
JB
109932011-01-13 Joel Brobecker <brobecker@adacore.com>
10994
10995 * hpux-thread.c (hpux_pid_to_str): Delete.
10996
4ffa5a33
JB
109972011-01-13 Joel Brobecker <brobecker@adacore.com>
10998
10999 * ada-valprint.c (ada_emit_char): Remove strange code.
11000 Check that c is <= UCHAR_MAX before passing it to isascii.
11001 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11002
de8fa76c
JB
110032011-01-13 Joel Brobecker <brobecker@adacore.com>
11004
11005 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11006 to the case where instream is stdin.
11007
c4de7027
JB
110082011-01-13 Joel Brobecker <brobecker@adacore.com>
11009
11010 * ia64-tdep.h (struct regcache): Forward declare.
11011 (struct ia64_infcall_ops): New struct type.
11012 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11013 and "infcall_ops".
11014 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11015 Renames ia64_find_global_pointer.
11016 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11017 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11018 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11019 methods.
11020 (ia64_infcall_ops): New static global constant.
11021 (ia64_gdbarch_init): Set tdep->infcall_ops.
11022 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11023 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11024 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11025 (ia64_hpux_dummy_code): New static global constant.
11026 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11027 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11028 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11029 New function.
11030 (ia64_hpux_infcall_ops): New static global constant.
11031 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11032 for inferior function calls to work properly on ia64-hpux.
11033
77ca787b
JB
110342011-01-13 Joel Brobecker <brobecker@adacore.com>
11035
11036 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11037 * ia64-tdep.h (struct frame_info): forward declaration.
11038 (struct gdbarch_tdep): Add field size_of_register_frame.
11039 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11040 to determine the size of the register frame.
11041 (ia64_size_of_register_frame): New function.
11042 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11043 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11044 (IA64_HPUX_UREG_REASON): New macro.
11045 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11046 New functions.
11047 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11048 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11049 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11050 objects.
11051
92c9a463
JB
110522011-01-13 Joel Brobecker <brobecker@adacore.com>
11053
11054 Add support for ia64-hpux.
11055 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11056 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11057
11058 * configure.host: Add handling for ia64-hpux hosts. Add associated
11059 floatformats.
11060 * configure.tgt: Add handling for ia64-hpux targets.
11061 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11062 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11063 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11064
f688d93f
JB
110652011-01-13 Joel Brobecker <brobecker@adacore.com>
11066
11067 [ttrace] Compute thread list immediately after attach.
11068 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11069 New subprogram.
11070 (inf_ttrace_attach): Use it.
11071
1b89e62f
JB
110722011-01-13 Joel Brobecker <brobecker@adacore.com>
11073
11074 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11075 if we could not determine the frame's function address. Instead,
11076 use the frame's PC, and then continue.
11077
3e5e6e2a
JB
110782011-01-13 Joel Brobecker <brobecker@adacore.com>
11079
11080 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11081 not already defined.
11082
825d6d8a
JB
110832011-01-13 Joel Brobecker <brobecker@adacore.com>
11084
11085 * ia64-tdep.c (ia64_struct_type_p): New function.
11086 (ia64_extract_return_value): Handle integral values that are
11087 less than 8 bytes long.
11088 (ia64_push_dummy_call): Likewise.
11089
7458e667
JB
110902011-01-13 Joel Brobecker <brobecker@adacore.com>
11091
11092 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11093 floatformat_ia64_ext.
11094 (floatformat_ia64_ext_big): New static const.
11095 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11096
1b05df00
TT
110972011-01-12 Tom Tromey <tromey@redhat.com>
11098
11099 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11100 messages.
11101 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11102 (mi_cmd_thread_list_ids): Likewise.
11103 (mi_cmd_data_list_changed_registers): Likewise.
11104 (mi_cmd_data_list_register_values): Likewise.
11105 (mi_cmd_data_write_register_values): Likewise.
11106 (mi_cmd_data_evaluate_expression): Likewise.
11107 (mi_cmd_data_read_memory): Likewise.
11108 (mi_cmd_data_read_memory_bytes): Likewise.
11109 (mi_cmd_data_write_memory): Likewise.
11110 (mi_cmd_enable_timings): Likewise.
11111 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11112 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11113 (mi_cmd_var_delete): Likewise.
11114 (mi_cmd_var_set_format): Likewise.
11115 (mi_cmd_var_show_format): Likewise.
11116 (mi_cmd_var_info_num_children): Likewise.
11117 (mi_cmd_var_list_children): Likewise.
11118 (mi_cmd_var_info_type): Likewise.
11119 (mi_cmd_var_info_expression): Likewise.
11120 (mi_cmd_var_show_attributes): Likewise.
11121 (mi_cmd_var_assign): Likewise.
11122 (mi_cmd_var_update): Likewise.
11123 (mi_cmd_enable_pretty_printing): Likewise.
11124 (mi_cmd_var_set_update_range): Likewise.
11125 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11126 messages.
11127 (mi_cmd_target_file_put): Likewise.
11128 (mi_cmd_target_file_delete): Likewise.
11129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11130 messages.
11131 (mi_cmd_stack_info_depth): Likewise.
11132 (mi_cmd_stack_list_locals): Likewise.
11133 (mi_cmd_stack_list_args): Likewise.
11134 (mi_cmd_stack_select_frame): Likewise.
11135 (mi_cmd_stack_select_frame): Likewise.
11136 (mi_cmd_stack_info_frame): Likewise.
11137 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11138 messages.
11139 (mi_cmd_file_list_exec_source_files): Likewise.
11140 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11141 (mi_cmd_env_cd): Likewise.
11142 (mi_cmd_env_path): Likewise.
11143 (mi_cmd_env_dir): Likewise.
11144 (mi_cmd_inferior_tty_show): Likewise.
11145 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11146 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11147 (mi_cmd_break_watch): Likewise.
11148
ad422571
TJB
111492011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11150
11151 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11152 (ppc_linux_insert_hw_breakpoint): Likewise.
11153 (ppc_linux_remove_hw_breakpoint): Likewise.
11154 (ppc_linux_insert_watchpoint): Likewise.
11155
c2ff108b
JK
111562011-01-12 Andrew Burgess <aburgess@broadcom.com>
11157 Jan Kratochvil <jan.kratochvil@redhat.com>
11158
11159 PR fortran/11104 and DWARF unbound arrays detection.
11160 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11161 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11162 unspecified upper bound.
11163 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11164 variables array_size_array, tmp_type and offset_item. New variable
11165 array. Remove call to f77_get_upperbound. New variables array_type
11166 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11167 the final call to deprecated_set_value_type.
11168
41e8491f
JK
111692011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11170
11171 Make value allocations more lazy.
11172 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11173 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11174 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11175 instead of allocate_value and set_value_lazy.
11176 * findvar.c (value_of_register_lazy): Likewise.
11177 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11178 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11179 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11180 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11181 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11182 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11183 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11184 the end, remove set_value_lazy there.
11185 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11186 instead of allocate_value and set_value_lazy when possible.
11187 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11188 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11189 of allocate_value and set_value_lazy.
11190 (value_from_contents_and_address): Use allocate_value_lazy instead of
11191 allocate_value and set_value_lazy when possible.
11192
b716877b
AB
111932011-01-12 Andrew Burgess <aburgess@broadcom.com>
11194
11195 * disasm.c (dump_insns): Support dumping opcodes for MI.
11196 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11197 dumping of instruction opcodes.
11198
d5ae309f
JB
111992011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11200
11201 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11202 appropiately.
11203
98871305
TT
112042011-01-11 Tom Tromey <tromey@redhat.com>
11205
11206 * thread.c (do_captured_thread_select): Emit newline before
11207 printing frame.
11208
c378eb4e
MS
112092011-01-11 Michael Snyder <msnyder@vmware.com>
11210
11211 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11212 * score-tdep.c: Ditto.
11213 * score-tdep.h: Ditto.
11214 * ser-base.c: Ditto.
11215 * ser-go32.c: Ditto.
11216 * serial.c: Ditto.
11217 * serial.h: Ditto.
11218 * ser-mingw.c: Ditto.
11219 * ser-pipe.c: Ditto.
11220 * ser-tcp.c: Ditto.
11221 * ser-unix.c: Ditto.
11222 * sh64-tdep.c: Ditto.
11223 * shnbsd-nat.c: Ditto.
11224 * sh-tdep.c: Ditto.
11225 * sh-tdep.h: Ditto.
11226 * solib.c: Ditto.
11227 * solib-darwin.c: Ditto.
11228 * solib-frv.c: Ditto.
11229 * solib.h: Ditto.
11230 * solib-irix.c: Ditto.
11231 * solib-osf.c: Ditto.
11232 * solib-pa64.c: Ditto.
11233 * solib-som.c: Ditto.
11234 * solib-spu.c: Ditto.
11235 * solib-sunos.c: Ditto.
11236 * solib-svr4.c: Ditto.
11237 * solist.h: Ditto.
11238 * sol-thread.c: Ditto.
11239 * somread.c: Ditto.
11240 * source.c: Ditto.
11241 * source.h: Ditto.
11242 * sparc64-linux-tdep.c: Ditto.
11243 * sparc64-tdep.c: Ditto.
11244 * sparc-linux-nat.c: Ditto.
11245 * sparc-linux-tdep.c: Ditto.
11246 * sparc-sol2-nat.c: Ditto.
11247 * sparc-sol2-tdep.c: Ditto.
11248 * sparc-tdep.c: Ditto.
11249 * sparc-tdep.h: Ditto.
11250 * spu-tdep.c: Ditto.
11251 * stabsread.c: Ditto.
11252 * stabsread.h: Ditto.
11253 * stack.c: Ditto.
11254 * symfile.c: Ditto.
11255 * symfile.h: Ditto.
11256 * symmisc.c: Ditto.
11257 * symtab.c: Ditto.
11258 * symtab.h: Ditto.
11259 * target.c: Ditto.
11260 * target-descriptions.c: Ditto.
11261 * target-descriptions.h: Ditto.
11262 * target.h: Ditto.
11263 * target-memory.c: Ditto.
11264 * terminal.h: Ditto.
11265 * thread.c: Ditto.
11266 * top.c: Ditto.
11267 * tracepoint.c: Ditto.
11268 * tracepoint.h: Ditto.
11269 * trad-frame.h: Ditto.
11270 * typeprint.c: Ditto.
11271
581e13c1
MS
112722011-01-11 Michael Snyder <msnyder@vmware.com>
11273
11274 * ui-file.c: Comment cleanup, mostly periods and spaces.
11275 * ui-file.h: Ditto.
11276 * ui-out.c: Ditto.
11277 * ui-out.h: Ditto.
11278 * utils.c: Ditto.
11279 * v850-tdep.c: Ditto.
11280 * valarith.c: Ditto.
11281 * valops.c: Ditto.
11282 * valprint.c: Ditto.
11283 * valprint.h: Ditto.
11284 * value.c: Ditto.
11285 * value.h: Ditto.
11286 * varobj.c: Ditto.
11287 * varobj.h: Ditto.
11288 * vax-tdep.c: Ditto.
11289 * vec.c: Ditto.
11290 * vec.h: Ditto.
11291 * version.h: Ditto.
11292 * windows-nat.c: Ditto.
11293 * windows-tdep.c: Ditto.
11294 * xcoffread.c: Ditto.
11295 * xcoffsolib.c: Ditto.
11296 * xml-support.c: Ditto.
11297 * xstormy16-tdep.c: Ditto.
11298 * xtensa-tdep.c: Ditto.
11299 * xtensa-tdep.h: Ditto.
11300
90e4670f
TJB
113012011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11302
11303 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11304 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11305
e09342b5
TJB
113062011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11307 Thiago Jung Bauermann <bauerman@br.ibm.com>
11308
11309 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11310 * breakpoint.h
e09342b5
TJB
11311 (struct breakpoint_ops) <resources_needed>: New method.
11312 Initialize to NULL in all existing breakpoint_ops instances.
11313 (struct breakpoint) <exact>: New field.
11314 (target_exact_watchpoints): Declare external global.
11315 * breakpoint.c (target_exact_watchpoints): New global flag.
11316 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11317 b->enable_state to bp_enabled before calling
11318 hw_watchpoint_used_count.
11319 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11320 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11321 if available.
11322 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11323 if the watchpoint is exact.
11324 (resources_needed_watchpoint): New function.
11325 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11326 (watch_command_1): Set b->exact if the user asked for an exact
11327 watchpoint and one can be set.
11328 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11329 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11330 the user asks for an exact watchpoint and one can be set. Return
11331 number of needed debug registers to watch the expression.
11332 * gdbtypes.c (is_scalar_type): New function, based on
11333 valprint.c:scalar_type_p.
11334 (is_scalar_type_recursive): New function.
11335 * gdbtypes.h (is_scalar_type_recursive): Declare.
11336 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11337 handle regions when ranged watchpoints are available.
11338 (create_watchpoint_request): New function.
11339 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11340 create_watchpoint_request.
11341 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11342 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11343 `set powerpc' and `show powerpc' commands.
11344 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11345 Mention documentation comment in the target macro.
11346 (target_region_ok_for_hw_watchpoint): Document return value.
11347
9fa40276
TJB
113482011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11349
11350 * breakpoint.c (update_watchpoint): Decide on using a software or
11351 hardware watchpoint after the bp_locations are created.
11352
77b06cd7
TJB
113532010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11354
11355 Convert hardware watchpoints to use breakpoint_ops.
11356 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11357 <insert_location>: ... this. Return int instead of void.
11358 Accept pointer to struct bp_location instead of pointer to
11359 struct breakpoint. Adapt all implementations.
f2eb0bc8 11360 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11361 <remove_location>: ... this. Accept pointer to struct bp_location
11362 instead of pointer to struct breakpoint. Adapt all implementations.
11363 * breakpoint.c (insert_catchpoint): Delete function.
11364 (insert_bp_location): Call the watchpoint or catchpoint's
11365 breakpoint_ops.insert method.
11366 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11367 breakpoint_ops.remove method.
11368 (insert_watchpoint, remove_watchpoint): New functions.
11369 (watchpoint_breakpoint_ops): New structure.
11370 (watch_command_1): Initialize the OPS field.
11371 * inf-child.c (inf_child_insert_fork_catchpoint)
11372 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11373 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11374 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11375 Delete functions.
11376 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11377 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11378 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11379 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11380 * target.c (update_current_target): Change default implementation of
11381 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11382 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11383 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11384 to_set_syscall_catchpoint to return_one.
11385 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11386 (debug_to_insert_exec_catchpoint): Report return value.
11387 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11388 (to_insert_exec_catchpoint): Change declaration to return int instead
11389 of void.
11390
9b20d036
MS
113912011-01-11 Michael Snyder <msnyder@vmware.com>
11392
11393 * arm-tdep.c: Internationalization.
11394 * c-lang.c: Ditto.
11395 * charset.c: Ditto.
11396 * fork-child.c: Ditto.
11397 * nto-procfs.c: Ditto.
11398 * ppc-sysv-tdep.c: Ditto.
11399 * procfs.c: Ditto.
11400 * remote-mips.c: Ditto.
11401 * remote.c: Ditto.
11402 * rs6000-nat.c: Ditto.
11403 * rs6000-tdep.c: Ditto.
11404 * target.c: Ditto.
11405 * valops.c: Ditto.
11406 * value.c: Ditto.
11407 * xml-support.c: Ditto.
11408 * mi/mi-cmd-break.c: Ditto.
11409 * mi/mi-cmd-var.c: Ditto.
11410 * mi/mi-interp.c: Ditto.
11411 * mi/mi-main.c: Ditto.
11412
dae477fe
AB
114132011-01-11 Andrew Burgess <aburgess@broadcom.com>
11414
11415 * remote-sim.c (gdbsim_store_register): Update API to
11416 sim_store_register to check more error conditions.
11417
0df8b418
MS
114182011-01-10 Michael Snyder <msnyder@vmware.com>
11419
11420 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11421 * nto-tdep.c: Ditto.
11422 * nto-tdep.h: Ditto.
11423 * objc-exp.y: Ditto.
11424 * objc-lang.c: Ditto.
11425 * objfiles.c: Ditto.
11426 * objfiles.h: Ditto.
11427 * observer.c: Ditto.
11428 * opencl-lang.c: Ditto.
11429 * osabi.c: Ditto.
11430 * parse.c: Ditto.
11431 * parser-defs.h: Ditto.
11432 * p-exp.y: Ditto.
11433 * p-lang.c: Ditto.
11434 * posix-hdep.c: Ditto.
11435 * ppcbug-rom.c: Ditto.
11436 * ppc-linux-nat.c: Ditto.
11437 * ppc-linux-tdep.c: Ditto.
11438 * ppc-linux-tdep.h: Ditto.
11439 * ppcnbsd-tdep.c: Ditto.
11440 * ppcobsd-tdep.c: Ditto.
11441 * ppcobsd-tdep.h: Ditto.
11442 * ppc-sysv-tdep.c: Ditto.
11443 * ppc-tdep.h: Ditto.
11444 * printcmd.c: Ditto.
11445 * proc-abi.c: Ditto.
11446 * proc-flags.c: Ditto.
11447 * procfs.c: Ditto.
11448 * proc-utils.h: Ditto.
11449 * progspace.h: Ditto.
11450 * prologue-value.c: Ditto.
11451 * prologue-value.h: Ditto.
11452 * psympriv.h: Ditto.
11453 * psymtab.c: Ditto.
11454 * p-typeprint.c: Ditto.
11455 * p-valprint.c: Ditto.
11456 * ravenscar-sparc-thread.c: Ditto.
11457 * ravenscar-thread.c: Ditto.
11458 * ravenscar-thread.h: Ditto.
11459 * record.c: Ditto.
11460 * regcache.c: Ditto.
11461 * regcache.h: Ditto.
11462 * remote.c: Ditto.
11463 * remote-fileio.c: Ditto.
11464 * remote-fileio.h: Ditto.
11465 * remote.h: Ditto.
11466 * remote-m32r-sdi.c: Ditto.
11467 * remote-mips.c: Ditto.
11468 * remote-sim.c: Ditto.
11469 * rs6000-aix-tdep.c: Ditto.
11470 * rs6000-nat.c: Ditto.
11471 * rs6000-tdep.c: Ditto.
11472
0d7a18f7
MS
114732011-01-10 Michael Snyder <msnyder@vmware.com>
11474
11475 * charset.c (validate): Internationalization.
11476 * coffread.c (read_one_sym): Ditto.
11477 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11478 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11479 * inflow.c (new_tty): Ditto.
11480 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11481 * m32c-tdep.c (m32c_return_value): Ditto.
11482 * mep-tdep.c (mep_store_return_value): Ditto.
11483 * score-tdep.c (score7_fetch_insn): Ditto.
11484 * ser-mingw.c (pipe_windows_open): Ditto.
11485 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11486 * spu-tdep.c (spu_register_type): Ditto.
11487 * tracepoint.c (trace_find_command): Ditto.
11488 * valarith.c (value_pos): Ditto.
11489
9a153e0b
JB
114902011-01-10 Joel Brobecker <brobecker@adacore.com>
11491
11492 * ada-valprint.c (printstr): Minor comment reformatting.
11493
35ecd2d6
MS
114942011-01-08 Michael Snyder <msnyder@vmware.com>
11495
11496 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11497 markup.
11498
1777feb0
MS
114992011-01-08 Michael Snyder <msnyder@vmware.com>
11500
11501 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11502 * hppa-hpux-tdep.c: Ditto.
11503 * hppa-linux-nat.c: Ditto.
11504 * hppa-linux-tdep.c: Ditto.
11505 * hppanbsd-tdep.c: Ditto.
11506 * hppa-tdep.c: Ditto.
11507 * hppa-tdep.h: Ditto.
11508 * hpux-thread.c: Ditto.
11509 * i386-cygwin-tdep.c: Ditto.
11510 * i386-darwin-nat.c: Ditto.
11511 * i386gnu-nat.c: Ditto.
11512 * i386-linux-nat.c: Ditto.
11513 * i386-linux-tdep.c: Ditto.
11514 * i386-nat.c: Ditto.
11515 * i386-nat.h: Ditto.
11516 * i386nbsd-tdep.c: Ditto.
11517 * i386-sol2-nat.c: Ditto.
11518 * i386-stub.c: Ditto.
11519 * i386-tdep.c: Ditto.
11520 * i386-tdep.h: Ditto.
11521 * i387-tdep.c: Ditto.
11522 * ia64-linux-nat.c: Ditto.
11523 * ia64-linux-tdep.c: Ditto.
11524 * ia64-tdep.c: Ditto.
11525 * infcall.c: Ditto.
11526 * infcall.h: Ditto.
11527 * infcmd.c: Ditto.
11528 * inferior.c: Ditto.
11529 * inferior.h: Ditto.
11530 * infloop.c: Ditto.
11531 * inflow.c: Ditto.
11532 * infrun.c: Ditto.
11533 * interps.c: Ditto.
11534 * interps.h: Ditto.
11535 * iq2000-tdep.c: Ditto.
11536 * irix5-nat.c: Ditto.
11537 * jit.c: Ditto.
11538 * jit.h: Ditto.
11539 * jv-exp.y: Ditto.
11540 * jv-lang.c: Ditto.
11541 * jv-lang.h: Ditto.
11542 * jv-typeprint.c: Ditto.
11543 * jv-valprint.c: Ditto.
11544 * language.c: Ditto.
11545 * language.h: Ditto.
11546 * linespec.c: Ditto.
11547 * linux-fork.c: Ditto.
11548 * linux-nat.c: Ditto.
11549 * linux-thread-db.c: Ditto.
11550 * lm32-tdep.c: Ditto.
11551
025bb325
MS
115522011-01-08 Michael Snyder <msnyder@vmware.com>
11553
11554 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11555 * m2-lang.c: Ditto.
11556 * m2-typeprint.c: Ditto.
11557 * m2-valprint.c: Ditto.
11558 * m32c-tdep.c: Ditto.
11559 * m32r-linux-nat.c: Ditto.
11560 * m32r-rom.c: Ditto.
11561 * m32r-tdep.c: Ditto.
11562 * m32r-tdep.h: Ditto.
11563 * m68hc11-tdep.c: Ditto.
11564 * m58klinux-nat.c: Ditto.
11565 * m68k-tdep.c: Ditto.
11566 * m88k-tdep.c: Ditto.
11567 * m88k-tdep.h: Ditto.
11568 * machoread.c: Ditto.
11569 * macrocmd.c: Ditto.
11570 * macroexp.c: Ditto.
11571 * macrotab.c: Ditto.
11572 * main.c: Ditto.
11573 * maint.c: Ditto.
11574 * mdebugread.c: Ditto.
11575 * mdebugread.h: Ditto.
11576 * memattr.c: Ditto.
11577 * memattr.h: Ditto.
11578 * memory-map.h: Ditto.
11579 * mep-tdep.c: Ditto.
11580 * microblaze-rom.c: Ditto.
11581 * microblaze-tdep.c: Ditto.
11582 * minsyms.c: Ditto.
11583 * mips-irix-tdep.c: Ditto.
11584 * mips-linux-nat.c: Ditto.
11585 * mips-linux-tdep.c: Ditto.
11586 * mips-linux-tdep.h: Ditto.
11587 * mipsnbsd-nat.c: Ditto.
11588 * mipsnbsd-tdep.c: Ditto.
11589 * mipsread.c: Ditto.
11590 * mips-tdep.c: Ditto.
11591 * mips-tdep.h: Ditto.
11592 * mn10300-linux-tdep.c: Ditto.
11593 * mn10300-tdep.c: Ditto.
11594 * mn10300-tdep.h: Ditto.
11595 * monitor.c: Ditto.
11596 * monitor.h: Ditto.
11597 * moxie-tdep.c: Ditto.
11598 * moxie-tdep.h: Ditto.
11599 * mt-tdep.c: Ditto.
11600
1642781b
MF
116012011-01-08 Mike Frysinger <vapier@gentoo.org>
11602
11603 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11604
394b0adb
JB
116052011-01-08 Robert Millan <rmh@gnu.org>
11606
11607 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11608
b670013c
MS
116092011-01-07 Michael Snyder <msnyder@vmware.com>
11610
11611 * charset.c (_initialize_charset): Fix typo in string.
11612
a743e542
MS
116132011-01-07 Michael Snyder <msnyder@vmware.com>
11614
11615 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11616 for i18n.
f2eb0bc8 11617 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11618 Split line so that operator goes to beginning of line.
11619 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11620 assignment out of if statement.
11621
0963b4bd
MS
116222011-01-07 Michael Snyder <msnyder@vmware.com>
11623
11624 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11625 * ada-lang.h: Ditto.
11626 * ada-tasks.c: Ditto.
11627 * ada-valprint.c: Ditto.
11628 * aix-threads.c: Ditto.
11629 * alpha-linux-nat.c: Ditto.
11630 * alpha-linux-tdep.c: Ditto.
11631 * alpha-mdebug-tdep.c: Ditto.
11632 * alpha-nat.c: Ditto.
11633 * alpha-osf1-tdep.c: Ditto.
11634 * alpha-tdep.c: Ditto.
11635 * alphabsd-nat.c: Ditto.
11636 * alphabsd-tdep.c: Ditto.
11637 * amd64-darwin-tdep.c: Ditto.
11638 * amd64-linux-nat.c: Ditto.
11639 * amd64-linux-tdep.c: Ditto.
11640 * amd64-sol2-tdep.c: Ditto.
11641 * amd64-tdep.c: Ditto.
11642 * amd64-fbsd-tdep.c: Ditto.
11643 * amd64-nbsd-tdep.c: Ditto.
11644 * amd64-obsd-tdep.c: Ditto.
11645 * amd64-linux-nat.c: Ditto.
11646 * amd64-linux-tdep.c: Ditto.
11647 * arm-tdep.c: Ditto.
11648 * arm-tdep.h: Ditto.
11649 * armnbsd-nat.c: Ditto.
11650 * avr-tdep.c: Ditto.
11651 * bfin-tdep.c: Ditto.
11652 * bsd-kvm.c: Ditto.
11653 * c-typeprintc: Ditto.
11654 * c-valprint.c: Ditto.
11655 * coff-pe-read.h: Ditto.
11656 * coffreead.c: Ditto.
11657 * cris-tdep.c: Ditto.
11658 * d-lang.c: Ditto.
11659 * darwin-nat-info.c: Ditto.
11660 * darwin-nat.c: Ditto.
11661 * dbug-rom.c: Ditto.
11662 * dbxread.c: Ditto.
11663 * dcache.c: Ditto.
11664 * dcache.h: Ditto.
11665 * dec-thread.c: Ditto.
11666 * defs.h: Ditto.
11667 * demangle.c: Ditto.
11668 * dicos-tdep.c: Ditto.
11669 * dictionary.c: Ditto.
11670 * dictionary.h: Ditto.
11671 * dink32-rom.c: Ditto.
11672 * disasm.c: Ditto.
11673 * doublest.c: Ditto.
11674 * dsrec.c: Ditto.
11675 * dummy-frame.c: Ditto.
11676 * dwarf2-frame.c: Ditto.
11677 * dwarf2expr.c: Ditto.
11678 * dwarf2loc.c: Ditto.
11679 * dwarf2read.c: Ditto.
11680 * elfread.c: Ditto.
11681 * environ.c: Ditto.
11682 * eval.c: Ditto.
11683 * event-top.h: Ditto.
11684 * exceptions.c: Ditto.
11685 * exceptions.h: Ditto.
11686 * exec.c: Ditto.
11687 * expprint.c: Ditto.
11688 * expression.h: Ditto.
11689 * f-exp.y: Ditto.
11690 * f-lang.c: Ditto.
11691 * f-lang.h: Ditto.
11692 * f-typeprint.c: Ditto.
11693 * f-valprint.c: Ditto.
11694 * fbsd-nat.c: Ditto.
11695 * findvar.c: Ditto.
11696 * fork-child.c: Ditto.
11697 * frame.c: Ditto.
11698 * frame.h: Ditto.
11699 * frv-linux-tdep.c: Ditto.
11700 * frv-tdep.c: Ditto.
11701 * gcore.c: Ditto.
11702 * gdb-stabs.h: Ditto.
11703 * gdb_assert.h: Ditto.
11704 * gdb_string.h: Ditto.
11705 * gdb_thread_db.h: Ditto.
11706 * gdb_wait.h: Ditto.
11707 * gdbarch.sh: Ditto.
11708 * gdbcore.h: Ditto.
11709 * gdbthread.h: Ditto.
11710 * gdbtypes.c: Ditto.
11711 * gdbtypes.h: Ditto.
11712 * gnu-nat.c: Ditto.
11713 * gnu-nat.h: Ditto.
11714 * gnu-v2-abi.c: Ditto.
11715 * gnu-v3-abi.c: Ditto.
11716 * go32-nat.c: Ditto.
11717 * gdbarch.c: Regenerate.
11718 * gdbarch.h: Regenerate.
11719
ac74f770
MS
117202011-01-07 Michael Snyder <msnyder@vmware.com>
11721
11722 * ax-gdb.c: Adjust some long output strings.
11723 * breakpoint.c: Ditto.
11724 * charset.c: Ditto.
11725 * cp-abi.c: Ditto.
11726 * infcall.c: Ditto.
11727 * infrun.c: Ditto.
11728 * linux-nat.c: Ditto.
11729 * solib-pa64.c: Ditto.
11730 * solib-som.c: Ditto.
11731
d8e22779
TT
117322011-01-06 Tom Tromey <tromey@redhat.com>
11733
11734 PR python/12367:
11735 * NEWS: Add item.
11736 * python/python.c (GdbMethods): Add "newest_frame" method.
11737 * python/python-internal.h (gdbpy_newest_frame): Declare.
11738 * python/py-frame.c (gdbpy_newest_frame): New function.
11739
a255712f
PP
117402010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11741
11742 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11743 * jit.c (jit_debug): New variable.
11744 (show_jit_debug): New function.
11745 (struct target_buffer): Use ULONGEST.
11746 (bfd_open_from_target_memory): Likewise.
11747 (jit_register_code, jit_inferior_init): Add debug output.
11748 (_initialize_jit): Register "debug jit" command.
11749
ccfc3d6e
TT
117502011-01-06 Tom Tromey <tromey@redhat.com>
11751
11752 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11753 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11754 and ARCH_FRAME.
11755
57126e4a
TT
117562011-01-06 Tom Tromey <tromey@redhat.com>
11757
11758 * python/py-frame.c (frapy_block): Use get_frame_block.
11759
16dfc9ce
JB
117602011-01-06 Joel Brobecker <brobecker@adacore.com>
11761
11762 Do not stop on SIGPRIO signals by default
11763 * infrun.c (_initialize_infrun): Unset signal_stop and
11764 signal_print for TARGET_SIGNAL_PRIO.
11765
b1ce2347
JB
117662011-01-06 Joel Brobecker <brobecker@adacore.com>
11767
11768 * ada-tasks.c: Fix style violation in comment.
11769
8f7e195f
JB
117702011-01-06 Joel Brobecker <brobecker@adacore.com>
11771
11772 * linespec.c (decode_compound, find_method): Remove trailing \n
11773 at end of error string.
11774 * solib-irix.c (irix_current_sos): Likewise.
11775 * varobj.c (uninstall_variable): Likewise.
11776
e9bdf92c
JB
117772011-01-06 Joel Brobecker <brobecker@adacore.com>
11778
11779 * copyright.py: New script.
11780 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11781 Launch emacs without exec'ing. Call copyright.py afterwards.
11782
3e43a32a
MS
117832011-01-05 Michael Snyder <msnyder@vmware.com>
11784
11785 * addrmap.c: Shorten lines of >= 80 columns.
11786 * arch-utils.c: Ditto.
11787 * arch-utils.h: Ditto.
11788 * ax-gdb.c: Ditto.
11789 * ax-general.c: Ditto.
11790 * bcache.c: Ditto.
11791 * blockframe.c: Ditto.
11792 * breakpoint.c: Ditto.
11793 * buildsym.c: Ditto.
11794 * c-lang.c: Ditto.
11795 * c-typeprint.c: Ditto.
11796 * charset.c: Ditto.
11797 * coffread.c: Ditto.
11798 * command.h: Ditto.
11799 * corelow.c: Ditto.
11800 * cp-abi.c: Ditto.
11801 * cp-namespace.c: Ditto.
11802 * cp-support.c: Ditto.
11803 * dbug-rom.c: Ditto.
11804 * dbxread.c: Ditto.
11805 * defs.h: Ditto.
11806 * dfp.c: Ditto.
11807 * dfp.h: Ditto.
11808 * dictionary.c: Ditto.
11809 * disasm.c: Ditto.
11810 * doublest.c: Ditto.
11811 * dwarf2-frame.c: Ditto.
11812 * dwarf2expr.c: Ditto.
11813 * dwarf2loc.c: Ditto.
11814 * dwarf2read.c: Ditto.
11815 * elfread.c: Ditto.
11816 * eval.c: Ditto.
11817 * event-loop.c: Ditto.
11818 * event-loop.h: Ditto.
11819 * exceptions.h: Ditto.
11820 * exec.c: Ditto.
11821 * expprint.c: Ditto.
11822 * expression.h: Ditto.
11823 * f-lang.c: Ditto.
11824 * f-valprint.c: Ditto.
11825 * findcmd.c: Ditto.
11826 * frame-base.c: Ditto.
11827 * frame-unwind.c: Ditto.
11828 * frame-unwind.h: Ditto.
11829 * frame.c: Ditto.
11830 * frame.h: Ditto.
11831 * gcore.c: Ditto.
11832 * gdb-stabs.h: Ditto.
11833 * gdb_assert.h: Ditto.
11834 * gdb_dirent.h: Ditto.
11835 * gdb_obstack.h: Ditto.
11836 * gdbcore.h: Ditto.
11837 * gdbtypes.c: Ditto.
11838 * gdbtypes.h: Ditto.
11839 * inf-ttrace.c: Ditto.
11840 * infcall.c: Ditto.
11841 * infcmd.c: Ditto.
11842 * inflow.c: Ditto.
11843 * infrun.c: Ditto.
11844 * inline-frame.h: Ditto.
11845 * language.c: Ditto.
11846 * language.h: Ditto.
11847 * libunwind-frame.c: Ditto.
11848 * libunwind-frame.h: Ditto.
11849 * linespec.c: Ditto.
11850 * linux-nat.c: Ditto.
11851 * linux-nat.h: Ditto.
11852 * linux-thread-db.c: Ditto.
11853 * machoread.c: Ditto.
11854 * macroexp.c: Ditto.
11855 * macrotab.c: Ditto.
11856 * main.c: Ditto.
11857 * maint.c: Ditto.
11858 * mdebugread.c: Ditto.
11859 * memattr.c: Ditto.
11860 * minsyms.c: Ditto.
11861 * monitor.c: Ditto.
11862 * monitor.h: Ditto.
11863 * objfiles.c: Ditto.
11864 * objfiles.h: Ditto.
11865 * osabi.c: Ditto.
11866 * p-typeprint.c: Ditto.
11867 * p-valprint.c: Ditto.
11868 * parse.c: Ditto.
11869 * printcmd.c: Ditto.
11870 * proc-events.c: Ditto.
11871 * procfs.c: Ditto.
11872 * progspace.c: Ditto.
11873 * progspace.h: Ditto.
11874 * psympriv.h: Ditto.
11875 * psymtab.c: Ditto.
11876 * record.c: Ditto.
11877 * regcache.c: Ditto.
11878 * regcache.h: Ditto.
11879 * remote-fileio.c: Ditto.
11880 * remote.c: Ditto.
11881 * ser-mingw.c: Ditto.
11882 * ser-tcp.c: Ditto.
11883 * ser-unix.c: Ditto.
11884 * serial.c: Ditto.
11885 * serial.h: Ditto.
11886 * solib-frv.c: Ditto.
11887 * solib-irix.c: Ditto.
11888 * solib-osf.c: Ditto.
11889 * solib-pa64.c: Ditto.
11890 * solib-som.c: Ditto.
11891 * solib-sunos.c: Ditto.
11892 * solib-svr4.c: Ditto.
11893 * solib-target.c: Ditto.
11894 * solib.c: Ditto.
11895 * somread.c: Ditto.
11896 * source.c: Ditto.
11897 * stabsread.c: Ditto.
11898 * stabsread.c: Ditto.
11899 * stack.c: Ditto.
11900 * stack.h: Ditto.
11901 * symfile-mem.c: Ditto.
11902 * symfile.c: Ditto.
11903 * symfile.h: Ditto.
11904 * symmisc.c: Ditto.
11905 * symtab.c: Ditto.
11906 * symtab.h: Ditto.
11907 * target-descriptions.c: Ditto.
11908 * target-memory.c: Ditto.
11909 * target.c: Ditto.
11910 * target.h: Ditto.
11911 * terminal.h: Ditto.
11912 * thread.c: Ditto.
11913 * top.c: Ditto.
11914 * tracepoint.c: Ditto.
11915 * tracepoint.h: Ditto.
11916 * ui-file.c: Ditto.
11917 * ui-file.h: Ditto.
11918 * ui-out.h: Ditto.
11919 * user-regs.c: Ditto.
11920 * user-regs.h: Ditto.
11921 * utils.c: Ditto.
11922 * valarith.c: Ditto.
11923 * valops.c: Ditto.
11924 * valprint.c: Ditto.
11925 * valprint.h: Ditto.
11926 * value.c: Ditto.
11927 * varobj.c: Ditto.
11928 * varobj.h: Ditto.
11929 * vec.h: Ditto.
11930 * xcoffread.c: Ditto.
11931 * xcoffsolib.c: Ditto.
11932 * xcoffsolib.h: Ditto.
11933 * xml-syscall.c: Ditto.
11934 * xml-tdesc.c: Ditto.
11935
9a2b4c1b
MS
119362011-01-05 Michael Snyder <msnyder@vmware.com>
11937
11938 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11939 * cli/cli-decode.c: Ditto.
11940 * cli/cli-dump.c: Ditto.
11941 * cli/cli-logging.c: Ditto.
11942 * cli/cli-script.c: Ditto.
11943 * cli/cli-setshow.c: Ditto.
11944 * common/signals.c: Ditto.
11945 * mi/mi-cmd-break.c: Ditto.
11946 * mi/mi-cmd-disas.c: Ditto.
11947 * mi/mi-cmd-stack.c: Ditto.
11948 * mi/mi-cmd-var.c: Ditto.
11949 * mi/mi-cmds.c: Ditto.
11950 * mi/mi-common.h: Ditto.
11951 * mi/mi-console.c: Ditto.
11952 * mi/mi-interp.c: Ditto.
11953 * mi/mi-main.c: Ditto.
11954 * osf-share/cma_attr.c: Ditto.
11955 * osf-share/cma_deb_core.h: Ditto.
11956 * osf-share/cma_debug_client.h: Ditto.
11957 * osf-share/cma_handle.h: Ditto.
11958 * osf-share/cma_mutex.h: Ditto.
11959 * osf-share/cma_stack_int.h: Ditto.
11960 * osf-share/cma_tcb_defs.h: Ditto.
11961 * python/py-auto-load.c: Ditto.
11962 * python/py-breakpoint.c: Ditto.
11963 * python/py-cmd.c: Ditto.
11964 * python/py-frame.c: Ditto.
11965 * python/py-objfile.c: Ditto.
11966 * python/py-param.c: Ditto.
11967 * python/py-progspace.c: Ditto.
11968 * python/py-symbol.c: Ditto.
11969 * python/py-value.c: Ditto.
11970 * python/python-internal.h: Ditto.
11971 * python/python.c: Ditto.
11972 * tui/tui-data.c: Ditto.
11973 * tui/tui-disasm.c: Ditto.
11974 * tui/tui-hooks.c: Ditto.
11975 * tui/tui-io.c: Ditto.
11976 * tui/tui-layout.c: Ditto.
11977 * tui/tui-regs.c: Ditto.
11978 * tui/tui-source.c: Ditto.
11979 * tui/tui-stack.c: Ditto.
11980 * tui/tui-win.c: Ditto.
11981 * tui/tui-windata.c: Ditto.
11982 * tui/tui-winsource.c: Ditto.
11983
44944448
JB
119842011-01-05 Joel Brobecker <brobecker@adacore.com>
11985
11986 * configure.ac, gdb.1: Copyright year update.
11987
ebedcab5
JK
119882011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11991 this_pc_in_block, morestack_msym and morestack_name. Check for
11992 "__morestack" minimal symbol there.
11993
e5cc9f32
JB
119942011-01-03 Joel Brobecker <brobecker@adacore.com>
11995
11996 * symfile.c (find_sym_fns): Add call to dont_repeat.
11997
7b6bb8da
JB
119982011-01-01 Joel Brobecker <brobecker@adacore.com>
11999
12000 Copyright year update in most files (performed by copyright.sh).
12001
71ce852c
JB
120022011-01-01 Joel Brobecker <brobecker@adacore.com>
12003
12004 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12005
c3c1ebe8 12006For older changes see ChangeLog-2010.
c906108c
SS
12007\f
12008Local Variables:
12009mode: change-log
12010left-margin: 8
12011fill-column: 74
12012version-control: never
57da7796 12013coding: utf-8
c906108c 12014End:
This page took 1.879387 seconds and 4 git commands to generate.