gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4511b1ba
YQ
12011-12-10 Hui Zhu <teawater@gmail.com>
2 Yao Qi <yao@codesourcery.com>
3
4 * tracepoint.c (start_tracing): Clear `inserted' flag.
5
df5a4bd3
HZ
62011-12-10 Hui Zhu <teawater@gmail.com>
7
8 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
9
1afeeb75
AS
102011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
11
12 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
13 `bpoint'(-Wshadow).
14
80e1d417
AS
152011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
16
17 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
18 `marker' variables to `sal2' and `tpmarker' respectively
19 (-Wshadow).
20
04ca3c22
AP
212011-12-09 Andrew Pinski <apinski@cavium.com>
22
23 * linespec.c (hash_address_entry): Use iterative_hash_object on each
24 field rather than the struct itself.
25
8a2c437b
TT
262011-12-09 Tom Tromey <tromey@redhat.com>
27
28 * breakpoint.c (compare_breakpoints): New function.
29 (clear_command): Remove duplicate breakpoints. Properly clean
30 up.
31
280711e7
MR
322011-12-08 Maciej W. Rozycki <macro@mips.com>
33 Maciej W. Rozycki <macro@codesourcery.com>
34
35 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
36 address chunks retrieved from decoded lui/addiu pairs.
37
4c2051c6
MR
382011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
39
40 * mips-tdep.c (extended_offset): Correct calculation.
41 (unpack_mips16): Correct bitfield positions used for extraction
42 of the immediate argument; fix sign-extension of same.
43 (extended_mips16_next_pc): Correct B instruction's offset
44 calculation. Correct register decoding of the BEQZ and BNEZ
45 as well as jump-register instructions. Handle compact jumps.
46
ff011ed7
TT
472011-12-08 Tom Tromey <tromey@redhat.com>
48
49 * objfiles.h (struct objfile): Remove obsolete comment.
50 * objfiles.c (build_objfile_section_table): Remove obsolete
51 comment.
52
7cd3876c
SS
532011-12-07 Stan Shebs <stan@codesourcery.com>
54
55 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
56 maintainer of the tic6x target.
57
35f73cfc
UW
582011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
59
60 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
61 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
62 (arm_deal_with_atomic_sequence_raw): Likewise.
63 (arm_deal_with_atomic_sequence): Likewise.
64 (arm_software_single_step): Call it.
65 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
66
94eae614
UW
672011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
68
69 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
70 where appropriate.
71 * s390-tdep.h: Likewise.
72
13b8d0c6
TG
732011-12-07 Tristan Gingold <gingold@adacore.com>
74
75 * machoread.c (macho_symtab_read): Do not consider N_OPT as
76 a debugging stab. Improve complaint message.
77
5436df95
MR
782011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
79
80 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
81 load adjustment if still within the prologue.
82
040dff2a
MR
832011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
84
85 * mips-tdep.c (mips32_next_pc): Fix floating point condition
86 code mask.
87
754d7c78
MR
882011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
89
90 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
91 of BLTZ* and BGEZ* instructions.
92
91912e4d
MR
932011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
94
95 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
96 performed to determine whether an address refers to standard
97 MIPS or MIPS16 code.
98 (mips16_next_pc): Use mips_pc_is_mips16 instead of
99 is_mips16_addr.
100
f0ba3972
PA
1012011-12-06 Pedro Alves <pedro@codesourcery.com>
102
103 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
104 (breakpoint_xfer_memory): ... this. Change prototype. Handle
105 memory writes too.
106 * breakpoint.h (breakpoint_restore_shadows): Delete.
107 (breakpoint_xfer_memory): Declare.
108 * mem-break.c (default_memory_insert_breakpoint)
109 (default_memory_remove_breakpoint): Use target_write_raw_memory.
110 (memory_xfer_partial): Rename to ...
111 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
112 here.
113 (memory_xfer_partial): New.
114 (target_write_raw_memory): New.
115 * target.h (target_write_raw_memory): New.
116
31aba06f
DE
1172011-12-06 Doug Evans <dje@google.com>
118
119 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
120
f8eba3c6
TT
1212011-12-06 Joel Brobecker <brobecker@acacore.com>
122
123 * language.h (struct language_defn): Add new component
124 la_symbol_name_compare.
125 * symfile.h (struct quick_symbol_functions): Update the profile
126 of parameter "name_matcher" for the expand_symtabs_matching
127 method. Update the documentation accordingly.
128 * ada-lang.h (ada_name_for_lookup): Add declaration.
129 * ada-lang.c (ada_name_for_lookup): New function, extracted out
130 from ada_iterate_over_symbols.
131 (ada_iterate_over_symbols): Do not encode symbol name anymore.
132 (ada_expand_partial_symbol_name): Adjust profile.
133 (ada_language_defn): Add value for la_symbol_name_compare field.
134 * linespec.c: #include "ada-lang.h".
135 (iterate_name_matcher): Add language parameter. Replace call
136 to strcmp_iw by call to language->la_symbol_name_compare.
137 (decode_variable): Encode COPY if current language is Ada.
138 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
139 of name_matcher parameter. Adjust call to name_matcher.
140 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
141 (expand_partial_symbol_names): Update profile of parameter "fun".
142 * psymtab.h (expand_partial_symbol_names): Update profile of
143 parameter "fun".
144 * symtab.c (demangle_for_lookup): Update function documentation.
145 (search_symbols_name_matches): Add language parameter.
146 (expand_partial_symbol_name): Likewise.
147 * c-lang.c (c_language_defn, cplus_language_defn)
148 (asm_language_defn, minimal_language_defn): Add value for
149 la_symbol_name_compare field.
150 * d-lang.c (d_language_defn): Likewise.
151 * f-lang.c (f_language_defn): Ditto.
152 * jv-lang.c (java_language_defn): Ditto.
153 * m2-lang.c (m2_language_defn): Ditto.
154 * objc-lang.c (objc_language_defn): Ditto.
155 * opencl-lang.c (opencl_language_defn): Ditto.
156 * p-lang.c (pascal_language_defn): Ditto.
157 * language.c (unknown_language_defn, auto_language_defn)
158 (local_language_defn): Ditto.
159
1602011-12-06 Tom Tromey <tromey@redhat.com>
161
162 * linespec.c (iterate_over_all_matching_symtabs): Use
163 LA_ITERATE_OVER_SYMBOLS.
164 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
165 (find_function_symbols, decode_variable): Remove Ada special
166 case.
167 * language.h (struct language_defn) <la_iterate_over_symbols>: New
168 field.
169 (LA_ITERATE_OVER_SYMBOLS): New macro.
170 * language.c (unknown_language_defn, auto_language_defn)
171 (local_language_defn): Update.
172 * c-lang.c (c_language_defn, cplus_language_defn)
173 (asm_language_defn, minimal_language_defn): Update.
174 * d-lang.c (d_language_defn): Update.
175 * f-lang.c (f_language_defn): Update.
176 * jv-lang.c (java_language_defn): Update.
177 * m2-lang.c (m2_language_defn): Update.
178 * objc-lang.c (objc_language_defn): Update.
179 * opencl-lang.c (opencl_language_defn): Update.
180 * p-lang.c (pascal_language_defn): Update.
181 * ada-lang.c (ada_iterate_over_symbols): New function.
182 (ada_language_defn): Update.
183
1842011-12-06 Tom Tromey <tromey@redhat.com>
185 Joel Brobecker <brobecker@acacore.com>
186
187 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
188 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
189 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
190 PR shlibs/8929, PR shlibs/7393:
191 * python/py-type.c (compare_maybe_null_strings): Rename from
192 compare_strings.
193 (check_types_equal): Update.
194 * utils.c (compare_strings): New function.
195 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
196 location changes.
197 * tracepoint.c (scope_info): Update.
198 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
199 * symtab.h (iterate_over_minimal_symbols)
200 (iterate_over_some_symtabs, iterate_over_symtabs)
201 (find_pcs_for_symtab_line, iterate_over_symbols)
202 (demangle_for_lookup): Declare.
203 (expand_line_sal): Remove.
204 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
205 (lookup_symtab_callback): New functions.
206 (lookup_symtab): Rewrite.
207 (demangle_for_lookup): New function, extract from
208 lookup_symbol_in_language.
209 (lookup_symbol_in_language): Use it.
210 (iterate_over_symbols): New function.
211 (find_line_symtab): Update.
212 (find_pcs_for_symtab_line): New functions.
213 (find_line_common): Add 'start' argument.
214 (decode_line_spec): Update. Change argument to 'flags', change
215 interpretation.
216 (append_expanded_sal): Remove.
217 (append_exact_match_to_sals): Remove.
218 (expand_line_sal): Remove.
219 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
220 Remove.
221 <map_symtabs_matching_filename>: New field.
222 * stack.c (func_command): Only look in the current program space.
223 Use DECODE_LINE_FUNFIRSTLINE.
224 * source.c (line_info): Set pspace on sal. Check program space in
225 the loop. Use DECODE_LINE_LIST_MODE.
226 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
227 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
228 * python/python.c (gdbpy_decode_line): Update.
229 * psymtab.c (partial_map_expand_apply): New function.
230 (partial_map_symtabs_matching_filename): Rename from
231 lookup_partial_symbol. Update arguments.
232 (lookup_symtab_via_partial_symtab): Remove.
233 (psym_functions): Update.
234 * objc-lang.h (parse_selector, parse_method): Don't declare.
235 (find_imps): Update.
236 * objc-lang.c (parse_selector, parse_method): Now static.
237 (find_methods): Change arguments. Fill in a vector of symbol
238 names.
239 (uniquify_strings): New function.
240 (find_imps): Change arguments.
241 * minsyms.c (iterate_over_minimal_symbols): New function.
242 * linespec.h (enum decode_line_flags): New.
243 (struct linespec_sals): New.
244 (struct linespec_result) <canonical>: Remove.
245 <pre_expanded, addr_string, sals>: New fields.
246 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
247 (decode_line_full): Declare.
248 (decode_line_1): Update.
249 * linespec.c (struct address_entry, struct linespec_state, struct
250 collect_info): New types.
251 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
252 (eq_address_entry, maybe_add_address): New functions.
253 (total_number_of_methods): Remove.
254 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
255 functions.
256 (find_methods): Change arguments. Don't canonicalize input.
257 Simplify logic.
258 (add_matching_methods, add_constructors)
259 (build_canonical_line_spec): Remove.
260 (filter_results, convert_results_to_lsals): New functions.
261 (decode_line_2): Change arguments. Rewrite for new data
262 structures.
263 (decode_line_internal): Rename from decode_line_1. Change
264 arguments. Add cleanups. Update for new data structures.
265 (linespec_state_constructor, linespec_state_destructor)
266 (decode_line_full, decode_line_1): New functions.
267 (decode_indirect): Change arguments. Update.
268 (locate_first_half): Use skip_spaces.
269 (decode_objc): Change arguments. Update for new data structures.
270 Simplify logic.
271 (decode_compound): Change arguments. Add cleanups. Remove
272 fallback code, replace with error.
273 (struct decode_compound_collector): New type.
274 (collect_one_symbol): New function.
275 (lookup_prefix_sym): Change arguments. Update.
276 (compare_symbol_name, add_all_symbol_names_from_pspace)
277 (find_superclass_methods ): New functions.
278 (find_method): Rewrite.
279 (struct symtab_collector): New type.
280 (add_symtabs_to_list, collect_symtabs_from_filename): New
281 functions.
282 (symtabs_from_filename): Change API. Rename from
283 symtab_from_filename.
284 (collect_function_symbols): New function.
285 (find_function_symbols): Change API. Rename from
286 find_function_symbol. Rewrite.
287 (decode_all_digits): Change arguments. Rewrite.
288 (decode_dollar): Change arguments. Use decode_variable.
289 (decode_label): Change arguments. Rewrite.
290 (collect_symbols): New function.
291 (minsym_found): Change arguments. Rewrite.
292 (check_minsym, search_minsyms_for_name)
293 (add_matching_symbols_to_info): New function.
294 (decode_variable): Change arguments. Iterate over all symbols.
295 (symbol_found): Remove.
296 (symbol_to_sal): New function.
297 (init_linespec_result, destroy_linespec_result)
298 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
299 New functions.
300 (decode_digits_list_mode, decode_digits_ordinary): New functions.
301 * dwarf2read.c (dw2_map_expand_apply): New function.
302 (dw2_map_symtabs_matching_filename): Rename from
303 dw2_lookup_symtab. Change arguments.
304 (dwarf2_gdb_index_functions): Update.
305 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
306 * defs.h (compare_strings): Declare.
307 * cli/cli-cmds.c (compare_strings): Move to utils.c.
308 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
309 filter_sals.
310 (compare_symtabs, filter_sals): New functions.
311 * breakpoint.h (struct bp_location) <line_number, source_file>:
312 New fields.
313 (struct breakpoint) <line_number, source_file>: Remove.
314 <filter>: New field.
315 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
316 (momentary_breakpoint_from_master, add_location_to_breakpoint):
317 Update for changes to locations.
318 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
319 breakpoint.
320 (create_breakpoint_sal): Add 'filter' argument.
321 (remove_sal, expand_line_sal_maybe): Remove.
322 (create_breakpoints_sal): Remove 'sals' argument. Handle
323 pre-expanded sals and the filter.
324 (parse_breakpoint_sals): Use decode_line_full.
325 (check_fast_tracepoint_sals): Use get_sal_arch.
326 (create_breakpoint): Create a linespec_sals. Update.
327 (break_range_command): Use decode_line_full. Update.
328 (until_break_command): Update.
329 (clear_command): Update match conditions for linespec.c changes.
330 Use DECODE_LINE_LIST_MODE.
331 (say_where): Update for changes to locations.
332 (bp_location_dtor): Free 'source_file'.
333 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
334 (update_static_tracepoint): Update for changes to locations.
335 (update_breakpoint_locations): Disable ranged breakpoint if too
336 many locations match. Update.
337 (addr_string_to_sals): Use decode_line_full. Resolve all sal
338 PCs.
339 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
340 (decode_line_spec_1): Update. Change argument name to 'flags',
341 change interpretation.
342 * block.h (block_containing_function): Declare.
343 * block.c (block_containing_function): New function.
344 * skip.c (skip_function_command): Update.
345 (skip_re_set): Update.
346 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
347 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
348 * NEWS: Add entry.
349
3502011-12-06 Tom Tromey <tromey@redhat.com>
351
352 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
353 breakpoint's pspace to be NULL.
354 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
355 * breakpoint.c (init_raw_breakpoint): Conditionally set
356 breakpoint's pspace.
357 (init_breakpoint_sal): Don't set breakpoint's pspace.
358 (prepare_re_set_context): Conditionally switch program space.
359 (addr_string_to_sals): Check executing_startup on location's
360 program space.
361
3622011-12-06 Tom Tromey <tromey@redhat.com>
363
364 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
365 * breakpoint.c (should_be_inserted): Explicitly check if program
366 space is executing startup.
367 (describe_other_breakpoints): Update.
368 (disable_breakpoints_before_startup): Change executing_startup
369 earlier. Remove loop.
370 (enable_breakpoints_after_startup): Likewise.
371 (init_breakpoint_sal): Don't use bp_startup_disabled.
372 (create_breakpoint): Don't use bp_startup_disabled.
373 (update_global_location_list): Use should_be_inserted.
374 (bkpt_re_set): Update.
375
75c8c9d7
TT
3762011-12-06 Tom Tromey <tromey@redhat.com>
377
378 * python/lib/gdb/command/pretty_printers.py
379 (InfoPrettyPrinter.invoke1): Remove extra double quote.
380
7376e450
TT
3812011-12-06 Tom Tromey <tromey@redhat.com>
382
383 * NEWS: Add MI news.
384
c642a434
UW
3852011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
386
387 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
388 (S390_LAST_BREAK_REGNUM): Likewise.
389 (S390_SYSTEM_CALL_REGNUM): Likewise.
390 (S390_NUM_REGS): Update.
391
392 (s390_regmap_last_break): Add declaration.
393 (s390x_regmap_last_break): Likewise.
394 (s390_regmap_system_call): Likewise.
395
396 (tdesc_s390_linux32v1): Add declaration.
397 (tdesc_s390_linux32v2): Likewise.
398 (tdesc_s390_linux64v1): Likewise.
399 (tdesc_s390_linux64v2): Likewise.
400 (tdesc_s390x_linux64v1): Likewise.
401 (tdesc_s390x_linux64v2): Likewise.
402
403 * s390-tdep.c: Include new target description files
404 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
405 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
406 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
407 (s390_cannot_store_register): New function.
408 (s390_write_pc): Likewise.
409 (s390_dwarf_regmap): Add fields for new registers.
410 (s390_regmap_gregset): Likewise.
411 (s390x_regmap_gregset): Likewise.
412 (s390_regmap_fpregset): Likewise.
413 (s390_regmap_upper): Likewise.
414 (s390_regmap_last_break): New variable.
415 (s390x_regmap_last_break): Likewise.
416 (s390_regmap_system_call): Likewise.
417 (s390_last_break_regset): Likewise.
418 (s390x_last_break_regset): Likewise.
419 (s390_system_call_regset): Likewise.
420 (s390_upper_regset_sections): Rename to ...
421 (s390_linux64_regset_sections): ... this.
422 (s390_linux32_regset_sections): New variable.
423 (s390x_linux64_regset_sections): Likewise.
424 (s390_linux32v1_regset_sections): Likewise.
425 (s390_linux32v2_regset_sections): Likewise.
426 (s390_linux64v1_regset_sections): Likewise.
427 (s390_linux64v2_regset_sections): Likewise.
428 (s390x_linux64v1_regset_sections): Likewise.
429 (s390x_linux64v2_regset_sections): Likewise.
430 (s390_regset_from_core_section): Handle .reg-s390-last-break and
431 .reg-s390-system-call core file sections.
432 (s390_core_read_description): Check for presence of
433 .reg-s390-last-break and .reg-s390-system-call core file
434 sections and return appropriate target description.
435 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
436 "last_break" and "system_call" in target description. Install
437 appropriate gdbarch_core_regset_sections array.
438 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
439 (_initialize_s390_tdep): Initialize additional target descriptions.
440
441 * s390-nat.c: Include "elf/common.h".
442 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
443 (have_regset_last_break): New static variable.
444 (have_regset_system_call): Likewise.
445 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
446 (s390_native_collect): Likewise.
447 (fetch_regset, store_regset, check_regset): New functions.
448 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
449 and S390_SYSTEM_CALL_REGNUM.
450 (s390_linux_store_inferior_registers): Likewise.
451 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
452 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
453
454 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
455 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
456 (s390-linux32v1-expedite): Define.
457 (s390-linux32v2-expedite): Likewise.
458 (s390-linux64v1-expedite): Likewise.
459 (s390-linux64v2-expedite): Likewise.
460 (s390x-linux64v1-expedite): Likewise.
461 (s390x-linux64v2-expedite): Likewise.
462
463 * features/s390-linux32.xml: Add orig_r2 register.
464 * features/s390-linux64.xml: Likewise.
465 * features/s390x-linux64.xml: Likewise.
466 * features/s390-linux32v1.xml: New file.
467 * features/s390-linux32v2.xml: Likewise.
468 * features/s390-linux64v1.xml: Likewise.
469 * features/s390-linux64v2.xml: Likewise.
470 * features/s390x-linux64v1.xml: Likewise.
471 * features/s390x-linux64v2.xml: Likewise.
472
473 * features/s390-linux32.c: Regenerate.
474 * features/s390-linux64.c: Likewise.
475 * features/s390x-linux64.c: Likewise.
476 * features/s390-linux32v1.c: New generated file.
477 * features/s390-linux32v2.c: Likewise.
478 * features/s390-linux64v1.c: Likewise.
479 * features/s390-linux64v2.c: Likewise.
480 * features/s390x-linux64v1.c: Likewise.
481 * features/s390x-linux64v2.c: Likewise.
482
483 * regformats/s390-linux32.dat: Regenerate.
484 * regformats/s390-linux64.dat: Regenerate.
485 * regformats/s390x-linux64.dat: Regenerate.
486 * regformats/s390-linux32v1.dat: New generated file.
487 * regformats/s390-linux32v2.dat: Likewise.
488 * regformats/s390-linux64v1.dat: Likewise.
489 * regformats/s390-linux64v2.dat: Likewise.
490 * regformats/s390x-linux64v1.dat: Likewise.
491 * regformats/s390x-linux64v2.dat: Likewise.
492
336060f3
PA
4932011-12-05 Pedro Alves <pedro@codesourcery.com>
494
495 * linux-nat.c (resume_stopped_resumed_lwps): Call
496 registers_changed.
497
049e32d3
PA
4982011-12-05 Pedro Alves <pedro@codesourcery.com>
499
500 * breakpoint.c: Include record.h.
501 (breakpoints_always_inserted_mode): Return false when the record
502 target is in use.
503
5c03c7f9 5042011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
505
506 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
507 Reinstate perror_with_name call on ptrace error. Remove #if 0.
508 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
509 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
510
fbbd034e
AS
5112011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
512
513 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
514 `i'(-Wshadow).
515
a5ff8356 5162011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
517
518 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
519
5202011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
521
a5ff8356
AS
522 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
523 of `tdep'(-Wshadow).
524
93f2a35e
JK
5252011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 Fix compilation --without-expat.
528 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
529 from ...
530 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
531
2268b414
JK
5322011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
533 Jan Kratochvil <jan.kratochvil@redhat.com>
534
535 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
536 * features/library-list-svr4.dtd: New file.
537 * remote.c (PACKET_qXfer_libraries_svr4): New.
538 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
539 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
540 * solib-svr4.c (struct svr4_library_list): New.
541 [HAVE_LIBEXPAT]: Include xml-support.h.
542 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
543 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
544 [HAVE_LIBEXPAT] (svr4_library_list_children)
545 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
546 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
547 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
548 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
549 (svr4_read_so_list): Extend the corruption message by addresses.
550 (svr4_current_sos): New variable library_list, call
551 svr4_current_sos_via_xfer_libraries.
552 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
553
585861ea
JK
5542011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
555
556 PR threads/13448
557 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
558 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
559
9750bca9
JK
5602011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 PR breakpoints/13346
563 * dwarf2read.c (process_psymtab_comp_unit): Set
564 PSYMTABS_ADDRMAP_SUPPORTED.
565 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
566 validity. New field psymtabs_addrmap_supported.
567 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
568 psymtabs_addrmap_supported.
569 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
570 !PSYMTABS_ADDRMAP_SUPPORTED.
571 (dump_psymtab, maintenance_info_psymtabs): Print also
572 psymtabs_addrmap_supported.
573
f28c316a
DE
5742011-12-01 Doug Evans <dje@google.com>
575
576 * python/py-type.c (type_object_methods): Fix "array" doc string.
577
fc0ae648
AB
5782011-12-01 Andrew Burgess <aburgess@broadcom.com>
579
580 * source.c (print_source_lines_base): Fix missing braces on else
581 clause leading to additional output.
582
d6db1fab
UW
5832011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
584
585 * s390-nat.c (SUBOFF): Remove.
586 (s390_native_supply, s390_native_collect): New functions.
587 (supply_gregset, supply_fpregset): Use s390_native_supply.
588 (fill_gregset, fill_fpregset): Use s390_native_collect.
589
590 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
591 (s390_unwind_pseudo_register): New function.
592 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
593 registers instead of PC and CC.
594 (s390_backchain_frame_unwind_cache): Likewise.
595 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
596 full GPR pseudos.
597 (s390_trad_frame_prev_register): New function.
598 (s390_frame_prev_register): Use it.
599 (s390_sigtramp_frame_prev_register): Likewise.
600 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
601 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
602 special callback to unwind any pseudo.
603
604 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
605 * features/s390-core64.xml: Likewise.
606 * features/s390x-core64.xml: Likewise.
607 * features/s390-linux32.c: Regenerate.
608 * features/s390-linux64.c: Likewise.
609 * features/s390x-linux64.c: Likewise.
610
1dd635ac
UW
6112011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
612
613 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
614
0161e4b9
UW
6152011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
616
617 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
618 instruction. Add more diagnostic output.
619
0c36327f
AS
6202011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
621
622 * MAINTAINERS (Write After Approval): Add myself to the list.
623
b4264740
SD
6242011-11-29 Sanjoy Das <sdas@igalia.com>
625
626 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
627 (jit_bfd_try_read_symtab): Fix comments.
628
87326c78
DD
6292011-11-28 DJ Delorie <dj@redhat.com>
630
631 * NEWS: Mention RL78 simulator.
632
1e3a8f45
JB
6332011-11-28 Joel Brobecker <brobecker@adacore.com>
634
635 * symfile.h (struct quick_symbol_functions): Fix the documentation
636 of field map_matching_symbols, as symbols are sorted using
637 strcmp_iw_ordered, not strcmp_iw.
638
265e52c3
JB
6392011-11-28 Paul Hilfinger <hilfinger@adacore.com>
640
641 * symfile.h (struct quick_symbol_functions): Update the
642 documentation for field map_matching_symbols.
643
1a1d5513
JB
6442011-11-28 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (compare_names): Fix wrong return value in case
647 string1 starts with the same contents as string2, followed
648 by an underscore that do not start a symbol name suffix.
649
5d9c5995
PM
6502011-11-28 Phil Muldoon <pmuldoon@redhat.com>
651
652 PR python/13369
653 PR python/13374
654
655 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
656 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
657 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
658 exceptions.
659 * python/py-type.c (typy_strip_typedefs): Ditto.
660 (typy_legacy_template_argument): Ditto.
661 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
662 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
663
2bf50f6f
JB
6642011-11-27 Joel Brobecker <brobecker@acacore.com>
665
666 * remote.c (remote_get_tracepoint_status): Delete addrbuf
667 local variable. Avoid use of sprintf_vma.
668
744ab88c
SD
6692011-11-27 Sanjoy Das <sdas@igalia.com>
670
671 Fix regression in jit.exp.
672 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
673 (jit_register_code): Set the jit_objfile_data field to the correct
674 value.
675
46ad3598
UW
6762011-11-25  Uros Bizjak  <ubizjak@gmail.com>
677
678 * alpha-tdep.c (br_opcode): New.
679 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
680 (alpha_deal_with_atomic_sequence): New function.
681 (alpha_gdbarch_init): Handle single stepping of atomic sequences
682 with alpha_deal_with_atomic_sequence.
683
e4c5f296
TG
6842011-11-24 Tristan Gingold <gingold@adacore.com>
685
686 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
687 fields. Add oso_sym, end_sym and nbr_syms.
688 (macho_register_oso): Change interface.
689 (macho_symtab_add_minsym): New function.
690 (macho_symtab_read): Rewritten.
691 (get_archive_prefix_len): Remove trailing blanks.
692 (oso_el_compare_name): Add comment.
693 (struct macho_sym_hash_entry): New structure.
694 (macho_relocate_common_syms): Remove.
695 (macho_sym_hash_newfunc): New function.
696 (macho_resolve_oso_sym_with_minsym): Likewise.
697 (macho_add_oso_symfile): Rewritten.
698 (macho_symfile_read_all_oso): Remove trailing blanks.
699 Adjust code to free oso vector.
700 (macho_symfile_read): Likewise.
701 Move code to initialize minimal symbol
702
130854df
MR
7032011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
704
705 * mips-tdep.c (extended_offset): Fix formatting.
706
3d7bb9d9
DE
7072011-11-23 Doug Evans <dje@google.com>
708
709 * dwarf2read.c (dw2_lookup_symtab): Add comment.
710 (dw2_expand_symtabs_with_filename): Ditto.
711 (dw2_expand_symtabs_matching): Ditto.
712 (dw2_map_symbol_filenames): Ditto.
713
1fbf5ada
JB
7142011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
715
716 * ada-lang.c (assign_aggregate): Minor reformatting.
717
d984108d
JB
7182011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
719
720 * ada-lang.c (assign_aggregate): Remove declaration of local
721 variable `i' which is shadowing another variable with the same
722 name declared in the outer scope.
723
18af8284
JB
7242011-11-23 Joel Brobecker <brobecker@adacore.com>
725
726 * ada-lang.c (get_base_type): Renames base_type. Adjust all
727 calls throughout this file.
728
1fc7b5d7
JB
7292011-11-23 Joel Brobecker <brobecker@adacore.com>
730
731 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
732 FormatMessage.
733
36dfb11c
TT
7342011-11-22 Tom Tromey <tromey@redhat.com>
735
736 PR mi/8444:
737 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
738 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
739 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
740 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
741 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
742 (print_it_catch_syscall, print_it_catch_exec)
743 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
744 (bpstat_print): Add 'kind' argument. Handle
745 TARGET_WAITKIND_LOADED.
746 * infrun.c (normal_stop): Update for bpstat_print change. Don't
747 handle TARGET_WAITKIND_LOADED here.
748 * breakpoint.h (bpstat_print): Update.
749
5bd6aa83
TT
7502011-11-22 Tom Tromey <tromey@redhat.com>
751
752 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
753
f5afdc18
TT
7542011-11-22 Tom Tromey <tromey@redhat.com>
755
756 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
757 Use static_assert to check the size of
758 async_reason_string_lookup.
759 * common/gdb_assert.h (static_assert): New macro.
760
a3769e0c
AM
7612011-11-22 Alan Modra <amodra@gmail.com>
762
763 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
764 destination calculation. Don't expect >> to sign extend. Don't
765 add a break if branch lands inside the sequence anywhere.
766
56767571
KS
7672011-11-21 Keith Seitz <keiths@redhat.com>
768
769 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
770 -var-evaluate-expression of an enumeration and fix expected result.
771 * gdb.mi/mi2-varvdisplay.exp: Likewise.
772
8443c207
KY
7732011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
774
775 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
776 the case where osdata->items is empty. Rename column names to a
777 canonical form to avoid problems with unusual column names.
778
97643830
YQ
7792011-11-21 Yao Qi <yao@codesourcery.com>
780
781 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
782
f196051f
SS
7832011-11-20 Stan Shebs <stan@codesourcery.com>
784
785 * NEWS: Mention tracepoint additions.
786 * breakpoint.h (struct tracepoint): New field traceframe_usage.
787 * breakpoint.c (print_one_breakpoint_location): Identify
788 tracepoints as such when reporting hit counts, report
789 trace buffer usage.
790 (create_tracepoint_from_upload): Copy status info.
791 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
792 add fields user_name, notes, start_time, stop_time.
793 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
794 * tracepoint.c (trace_user): New global.
795 (trace_notes): New global.
796 (trace_stop_notes): New global.
797 (start_tracing): Add argument and trace note handling.
798 (stop_tracing): Ditto.
799 (trace_start_command): Add notes argument.
800 (trace_stop_command): Ditto.
801 (trace_status_command): Report additional status info.
802 (trace_status_mi): Similarly.
803 (trace_save): Update, record tracepoint status.
804 (set_disconnected_tracing): Call target method directly.
805 (send_disconnected_tracing_value): Remove.
806 (set_trace_user): New function.
807 (set_trace_notes): New function.
808 (set_trace_stop_notes): New function.
809 (parse_trace_status): Handle additional status.
810 (parse_tracepoint_status): New function.
811 (parse_tracepoint_definition): Call it.
812 (tfile_get_tracepoint_status): New function.
813 (init_tfile_ops): Use it.
814 (_initialize_tracepoint): Add new setshows.
815 * target.h (struct target_ops): New methods to_get_tracepoint_status
816 and to_set_trace_notes.
817 (target_get_tracepoint_status): New macro.
818 (target_set_trace_notes): New macro.
819 * target.c (update_current_target): Add new methods.
820 * remote.c (remote_get_tracepoint_status): New function.
821 (remote_set_trace_notes): New function.
822 (init_remote_ops): Add them.
823 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
824 (mi_cmd_trace_stop): Ditto.
825
3623dc3a
SD
8262011-11-20 Sanjoy Das <sdas@igalia.com>
827
828 * jit.c: Include regcache.h.
829 (jit_gdbarch_data, jit_frame_unwind): New static variables.
830 (jit_unwind_reg_set_impl, free_reg_value_impl)
831 (jit_unwind_reg_get_impl, jit_frame_sniffer)
832 (jit_frame_unwind_stop_reason, jit_frame_this_id)
833 (jit_frame_prev_register, jit_dealloc_cache)
834 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
835 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
836 jit_prepend_unwinder.
837 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
838
1825a88d
SD
8392011-11-20 Sanjoy Das <sdas@igalia.com>
840
841 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
842 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
843 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
844 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
845 (finalize_symtab, jit_object_close_impl)
846 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
847 (free_objfile_data): New functions.
848 (_initialize_jit): Register jit_objfile_data with a proper cleanup
849 function.
850
784c47ee
SD
8512011-11-20 Sanjoy Das <sdas@igalia.com>
852
853 * jit.c: Include gdb-dlfcn.h.
854 (loaded_jit_reader, reader_init_fn_sym): New static variables.
855 (jit_reader_load, jit_reader_load_command)
856 (jit_reader_unload_command): New functions.
857 (_initialize_jit): Add commands "jit-reader-load" and
858 "jit-reader-unload".
859
a2d08b9e
SD
8602011-11-20 Sanjoy Das <sdas@igalia.com>
861
862 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
863 * config.in: Add new #define HAVE_LIBDL.
864 * configure.ac: Add check for -ldl.
865 * configure: Re-generated by autoconf.
866 * gdb-dlfcn.c: New file.
867 * gdb-dlfcn.h: New file.
868
b8e0a31c
SD
8692011-11-20 Sanjoy Das <sdas@igalia.com>
870
871 * config.in: Add new #defines: JIT_READER_DIR and
872 JIT_READER_DIR_RELOCATABLE.
873 * configure.ac: New GDB directory entry for jit-reader-dir.
874 * configure: Re-generated by autoconf.
875 * jit.c: New static variable: const char *jit_reader_dir.
876 (_initialize_jit): Relocate jit_reader_dir.
877
f997c383
SD
8782011-11-20 Sanjoy Das <sdas@igalia.com>
879
880 * Makefile.in: Add jit-reader.h as a header. Have it installed in
881 $(includedir)/gdb.
882 * configure.ac: Generate a correct value for TARGET_PTR for
883 jit-reader.h. Tell configure to generate jit-reader.h from
884 jit-reader.in.
885 * configure: Re-generated by autoconf.
886 * jit-reader.in: New file.
887 * jit.c: Include jit-reader.h.
888
dc8c0494
SD
8892011-11-20 Sanjoy Das <sdas@igalia.com>
890
891 * MAINTAINERS (Write After Approval): Add myself to the list.
892
01efb936
UW
8932011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
894
895 * findvar.c (read_frame_register_value): Respect value_offset
896 of the register value. Remove big-endian special case.
897
732f3f12
TT
8982011-11-18 Tom Tromey <tromey@redhat.com>
899
900 PR build/7196:
901 * remote.c (putpkt_for_catch_errors): New function.
902 (remote_kill): Use it.
903
bfccc43c
YQ
9042011-11-18 Yao Qi <yao@codesourcery.com>
905
906 * breakpoint.c (create_breakpoint): Produce query message according to
907 breakpoint's type.
908 Allocate tracepoint per correct type.
909 Don't check SALs for pending fast tracepoints.
910 * tracepoint.c (process_tracepoint_on_disconnect): New.
911 (disconnect_tracing): Call process_tracepoint_on_disconnect.
912
3ea46bff
YQ
9132011-11-18 Yao Qi <yao@codesourcery.com>
914
915 * breakpoint.c (install_breakpoint): Add one more parameter so that
916 update_global_location_list is called conditionally.
917 (create_fork_vfork_event_catchpoint): Update.
918 (create_syscall_event_catchpoint): Update.
919 (create_breakpoint_sal): Update.
920 (create_breakpoint_sal): Update. Call do_cleanups before
921 install_breakpoint.
922 * ada-lang.c (create_ada_exception_catchpoint): Update.
923 * breakpoint.h (install_breakpoint): Update declaration.
924
598cfb71
UW
9252011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
926
927 * spu-tdep.c (spu_return_value): Fix handling of
928 TYPE_CALLING_CONVENTION annotation.
929
caf4328c
UW
9302011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
931
932 * skip.c (skip_function_command): Work around uninitialized
933 variable warning.
934
2b54dda2
DM
9352011-11-16 David S. Miller <davem@davemloft.net>
936
937 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
938 'tv_usec' to long for printf since these fields have a type which
939 varies.
940
93bf33fd
DE
9412011-11-15 Doug Evans <dje@google.com>
942
943 * buildsym.c (add_symbol_to_list): Delete outdated comment.
944
9cc10fd1
PK
9452011-11-15 Paul Koning <paul_koning@dell.com>
946
947 * python/py-type.c (typy_get_composite): New function.
948 (typy_nonzero): New function.
949 (typy_values): Rename from typy_fields.
950 (typy_fields): New function.
951 (typy_length): Raise exception if not struct, union, or enum type.
952 (typy_getitem): Ditto.
953 (typy_has_key): Ditto.
954 (typy_make_iter): Ditto.
955
c011a4f4
DE
9562011-11-15 Doug Evans <dje@google.com>
957
958 * NEWS: Mention new parameter basenames-may-differ.
959 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
960 ! basenames_may_differ.
961 * psymtab.c (lookup_partial_symtab): Ditto.
962 * symtab.c (lookup_symtab): Ditto.
963 (basenames_may_differ): New global.
964 (_initialize_symtab): New parameter basenames-may-differ.
965 * symtab.h (basenames_may_differ): Declare.
966
865ecab4
LM
9672011-11-15 Pedro Alves <pedro@codesourcery.com>
968 Luis Machado <lgustavo@codesourcery.com>
969
970 * auxv.c: Include observer.h.
971 (auxv_inferior_data_cleanup): New.
972 (invalidate_auxv_cache_inf): New.
973 (invalidate_auxv_cache): New.
974 (get_auxv_inferior_data): New.
975 (auxv_inferior_data): New static global.
976 (auxv_info): New structure.
977 (target_auxv_search): Use get_auxv_inferior_data instead of
978 target_read_alloc and don't free cached buffers.
979 (fprint_target_auxv): Likewise
980 (_initialize_auxv): Register per-inferior auxv cache and register
981 observers to invalidate auxv cache when needed.
982
ed59ded5
DE
9832011-11-14 Doug Evans <dje@google.com>
984
985 Make "!" an alias for "shell".
986 * NEWS: Add mention.
987 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
988 adding "!" command, always add it.
989 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
990 command of length one.
991
405f8e94
SS
9922011-11-14 Stan Shebs <stan@codesourcery.com>
993 Kwok Cheung Yeung <kcy@codesourcery.com>
994
995 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
996 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
997 the minimum instruction size for fast tracepoints.
998 * target.h (struct target_ops): Add new method
999 to_get_min_fast_tracepoint_insn_len.
1000 (target_get_min_fast_tracepoint_insn_len): New.
1001 * target.c (update_current_target): Set up new target operation.
1002 * remote.c (remote_write_bytes_aux): Fix typo.
1003 (remote_get_min_fast_tracepoint_insn_len): New.
1004 (init_remote_ops): Initialize new field.
1005
3e05895e
TT
10062011-11-14 Tom Tromey <tromey@redhat.com>
1007
1008 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1009 (encode_actions): Likewise.
1010
1e4d1764
YQ
10112011-11-14 Yao Qi <yao@codesourcery.com>
1012
1013 * remote.c (struct remote_state): <install_in_trace> new field.
1014 (PACKET_InstallInTrace): New enum value.
1015 (remote_install_in_trace_feature): Support InstallInTrace.
1016 (remote_supports_install_in_trace): Likewise.
1017 (remote_protocol_features): Likewise.
1018 (_initialize_remote): Likewise.
1019 (remote_can_download_tracepoint): New.
1020 * target.h (struct target): New field
1021 `to_can_download_tracepoint'.
1022 (target_can_download_tracepoint): New macro.
1023 * target.c (update_current_target): Update.
1024 * breakpoint.h (struct bp_location): Add comment on field
1025 `duplicate'.
3ccd4ac6
YQ
1026 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1027 and tracepoint.
1e4d1764
YQ
1028 (remove_breakpoints): Don't remove tracepoints.
1029 (tracepoint_locations_match ): New.
1030 (breakpoint_locations_match): Call it.
1031 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1032 (download_tracepoint_locations): New.
1033 (update_global_location_list): Call it.
1034 * tracepoint.c (find_matching_tracepoint): Delete.
1035 (find_matching_tracepoint_location): Renamed from
1036 find_matching_tracepoint. Return bp_location rather than
1037 tracepoint.
1038 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1039 tracepoint is found.
1040
e8ba3115
YQ
10412011-11-14 Yao Qi <yao@codesourcery.com>
1042
1043 * target.h (struct target): <to_download_tracepoint> Change type
1044 of parameter from tracepoint to bp_location.
1045 * target.c (update_current_target): Update.
1046 * tracepoint.c (start_tracing): Update.
1047 * remote.c (remote_download_tracepoint): Remove loop for each location
1048 of a tracepoint.
1049
edcc485a
MR
10502011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1051
1052 * i386-nat.c (i386_insert_hw_breakpoint): Call
1053 i386_update_inferior_debug_regs.
1054 (i386_remove_hw_breakpoint): Likewise.
1055
3742cc8b
YQ
10562011-11-14 Yao Qi <yao@codesourcery.com>
1057
1058 * breakpoint.c (init_raw_breakpoint): Call
1059 add_location_to_breakpoint to replace duplicated code.
1060 (add_location_to_breakpoint): Adjust the breakpoint's
1061 address prior to allocating a location.
1062
71eba9c2 10632011-11-12 Matt Rice <ratmice@gmail.com>
1064
1065 * macrocmd.c (macro_no_macro_info): New function.
1066 (macro_expand_command): Use macro_no_macro_info.
1067 (macro_expand_once_command): Ditto.
1068 (info_macro_command): Add argument processing,
1069 move info_definitions_command here.
1070 (_initialize_macrocmd): Remove info definitions command.
1071 Add arguments to info macro help text.
1072 * NEWS: Replace info definitions command with new info macro options.
1073
731971ed
KS
10742011-11-11 Keith Seitz <keiths@redhat.com>
1075
1076 PR gdb/12843
1077 * linespec.c (locate_first_half): Keep ':' if it looks
1078 like it could be part of a Windows path starting with
1079 a drive letter.
1080
6953d224
PA
10812011-11-10 Pedro Alves <pedro@codesourcery.com>
1082
1083 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1084 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1085
0c94aa73
PA
10862011-11-10 Pedro Alves <pedro@codesourcery.com>
1087
1088 * target.c (target_waitstatus_to_string): Handle
1089 TARGET_WAITKIND_NO_RESUMED.
1090
f6b47be4
DE
10912011-11-10 Doug Evans <dje@google.com>
1092
74e2f255
DE
1093 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1094 `need_fullname'.
1095 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1096 (map_partial_symbol_filenames): Ditto. All callers updated.
1097 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1098 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1099 parameter need_fullname.
1100
256f06f3
DE
1101 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1102 * source.c (symtab_to_fullname): Ditto.
1103
50f182aa
DE
1104 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1105 * gdb-demangle.h: ... here. New file.
1106 * demangle.c: #include "gdb-demangle.h".
1107 (_initialize_demangler): Use initialize_file_ftype for prototype.
1108 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1109 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1110 from utils.c
1111 * utils.c: Update. #include "gdb-demangle.h".
1112 * symtab.h (asm_demangle): Delete.
1113 (demangle): Move declaration next to use.
1114 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1115 * dwarf2read.c: #include "gdb-demangle.h".
1116 * gnu-v2-abi.c: Ditto.
1117 * jv-typeprint.c: Ditto.
1118 * mdebugread.c: Ditto.
1119 * p-typeprint.c: Ditto.
1120 * stabsread.c: Ditto.
1121 * printcmd.c: Ditto.
1122 (asm_demangle): Delete declaration.
1123 * tui/tui-stack.c: #include "gdb-demangle.h".
1124
f6b47be4
DE
1125 * python/py-type.c (typy_fields_items): Call check_typedef.
1126
22355c90
JB
11272011-11-10 Joel Brobecker <brobecker@adacore.com>
1128
1129 * findvar.c (read_frame_register_value): Read the correct bytes
1130 from registers on big-endian architectures.
1131
bd119cf1 11322011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1133
1134 * procfs.c (load_syscalls): Make a cleanup.
1135 (open_procinfo_files): fd==0 is ok.
1136
0a86f364
JB
11372011-11-10 Joel Brobecker <brobecker@adacore.com>
1138
1139 * procfs.c (iterate_over_mappings): Call do_cleanups before
1140 returning.
1141
9bc118a5
DE
11422011-11-09 Doug Evans <dje@google.com>
1143
1144 * gdbtypes.c (check_typedef): Document that this function can
1145 throw an exception.
1146
a7860e76
TT
11472011-11-09 Tom Tromey <tromey@redhat.com>
1148
1149 PR c++/13342:
1150 * valops.c (value_full_object): Return early if real type is
1151 smaller than the enclosing type.
1152
60965737
YQ
11532011-11-08 Yao Qi <yao@codesourcery.com>
1154
1155 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1156
72a2e3dc
MI
11572011-11-08 Meador Inge <meadori@codesourcery.com>
1158
1159 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1160 register when the frame can't be determined.
1161 * arm-tdep.c (arm_analyze_prologue): Ditto.
1162
ce3b0ff7
SS
11632011-11-07 Stan Shebs <stan@codesourcery.com>
1164
1165 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1166
2b914b52
JB
11672011-11-07 Joel Brobecker <brobecker@adacore.com>
1168
1169 * infrun.c (handle_inferior_event): Minor reformatting.
1170
6f809020
DE
11712011-11-05 Doug Evans <dje@google.com>
1172
1173 * source.c (forget_cached_source_info_for_objfile): Move call to
1174 objfile->sf->qf->forget_cached_source_info outside of
1175 ALL_OBJFILE_SYMTABS loop.
1176 (forget_cached_source_info): Delete unused variable `s'.
1177
75d12218
JK
11782011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1179
1180 * i386-nat.c (dr_ref_count): Remove unused variable.
1181
e565b837
DE
11822011-11-05 Doug Evans <dje@google.com>
1183
1184 * main.c (captured_main): Set lim_at_start before calling
1185 make_command_stats_cleanup.
1186
0a1c4d10
DE
11872011-11-04 Doug Evans <dje@google.com>
1188
1189 * utils.c: #include "timeval-utils.h".
1190 (cmd_stats): Rename start_time to start_cpu_time.
1191 New member start_wall_time.
1192 (report_command_stats): Report wall time.
1193 (make_command_stats_cleanup): Record start wall time.
1194
a1d705ee
TT
11952011-11-04 Tom Tromey <tromey@redhat.com>
1196
1197 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1198
81de56be
RO
11992011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1200
1201 * coff-pe-read.c: Include defs.h before bfd.h.
1202
3ab1ec27
PM
12032011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1204
1205 PR Python/13345
1206
1207 * python/python.c (python_run_simple_file): Expand tilde in path.
1208
cd829959
PM
12092011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1210
1211 PR Python/13363
1212
1213 * python/py-type.c (typy_lookup_type): Do not return a type in
1214 an exception handler.
1215
080ad648
JK
12162011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1217 Eli Zaretskii <eliz@gnu.org>
1218
1219 * linux-nat.c (_initialize_linux_nat): Improve help
1220 for `info proc stat', `info proc status', `info proc cwd',
1221 `info proc cmdline' and `info proc exe'.
1222
3065dfb6
SS
12232011-11-02 Stan Shebs <stan@codesourcery.com>
1224
1225 String collection for tracepoints.
1226 * NEWS: Mention string collection.
1227 * common/ax.def (tracenz): New bytecode.
1228 * ax-gdb.h (trace_string_kludge): Declare.
1229 * ax-gdb.c: Include valprint.h and c-lang.h.
1230 (trace_string_kludge): New global.
1231 (gen_traced_pop): Add string case.
1232 (agent_command): Add string case.
1233 * tracepoint.h (decode_agent_options): Declare.
1234 * tracepoint.c: Include cli-utils.h.
1235 (decode_agent_options): New function.
1236 (validate_actionline): Call it.
1237 (encode_actions_1): Ditto.
1238 * target.h (struct target_ops): New method to_supports_string_tracing.
1239 (target_supports_string_tracing): New macro.
1240 * target.c (update_current_target): Add to_supports_string_tracing.
1241 * remote.c (struct remote_state): New field string_tracing.
1242 (remote_string_tracing_feature): New function.
1243 (remote_protocol_features): New feature tracenz.
1244 (remote_supports_string_tracing): New function.
1245 (init_remote_ops): Set to_supports_string_tracing.
1246
f179e162
JK
12472011-11-02 Pedro Alves <pedro@codesourcery.com>
1248 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 * linux-nat.c: Include cli/cli-utils.h.
1251 (enum info_proc_what): New.
1252 (linux_nat_info_proc_cmd): Rename to ...
1253 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1254 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1255 status_f and stat_f from WHAT. Throw error on extra parameters.
1256 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1257 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1258 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1259 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1260 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1261 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1262 `info proc cmdline', `info proc exe' and `info proc all' as real
1263 subcommands of `info proc'.
1264
7b35ec7f 12652011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1266
1267 * Makefile.in: (SFILES): Add skip.c.
1268 (HFILES_NO_SRCDIR): Add skip.h.
1269 (COMMON_OBS): Add skip.o.
1270 * skip.h, skip.c: New.
1271 * breakpoint.h (set_default_breakpoint): Remove.
1272 (get_sal_arch): Declare.
1273 * breakpoint.c: Remove default_breakpoint_valid,
1274 default_breakpoint_address, default_breakpoint_symtab,
1275 default_breakpoint_line, default_breakpoint_pspace variables.
1276 (get_sal_arch): Make public.
1277 (set_default_breakpoint): Remove.
1278 (parse_breakpoint_sals, create_breakpoint, clear_command,
1279 decode_line_spec_1): Remove uses of default_breakpoint variables;
1280 replaced with function calls into stack.c.
1281 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1282 * cli/cli-cmds.c: Add skiplist.
1283 (init_cmd_lists): Initialize skiplist.
1284 (init_cli_cmds): Fix comment (classes of commands appear in
1285 alphabetical order).
1286 * infrun.c (handle_inferior_event): Add check that we don't step into
1287 a function whose pc is marked for skip.
1288 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1289 last_displayed_addr, last_displayed_symtab, last_displayed_line
1290 variables.
1291 (set_last_displayed_sal): New static function.
1292 (print_frame_info): Switch call to set_default_breakpoint to call to
1293 set_last_displayed_sal.
1294 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1295 get_last_displayed_pspace, get_last_displayed_addr,
1296 get_last_displayed_symtab, get_last_displayed_line,
1297 get_last_displayed_sal): New public functions.
1298 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1299 get_last_displayed_pspace, get_last_displayed_addr,
1300 get_last_displayed_symtab, get_last_displayed_line,
1301 get_last_displayed_sal): Declare.
1302
b60e1588
JL
13032011-11-01 Justin Lebar <justin.lebar@gmail.com>
1304
1305 * MAINTAINERS (Write After Approval): Add myself to the list.
1306
d31647d2
YQ
13072011-10-29 Yao Qi <yao@codesourcery.com>
1308
1309 * infcmd.c (disconnect_command): Call disconnect_tracing.
1310
b1d96efd
JK
13112011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1312
1313 Code cleanup.
1314 * symtab.c (skip_prologue_sal): Code reformatting.
1315
4dfb2365
JK
13162011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1317
1318 PR symtab/13208
1319 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1320 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1321 SAI.
1322
0e5bf2a8
PA
13232011-10-28 Pedro Alves <pedro@codesourcery.com>
1324
1325 * linux-nat.c (linux_nat_filter_event): Remove `options'
1326 parameter, and dead code that used it. If we're handling a
1327 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1328 in our lwp list, re-add it.
1329 (check_zombie_leaders): New.
1330 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1331 wait for children with WNOHANG, and always wait for all children.
1332 Don't check for no resumed children upfront. Simplify wait loop.
1333 Check for zombie thread group leaders after handling all wait
1334 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1335 unwaited-for children left.
1336 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1337 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1338 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1339 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1340
821296b7
SA
13412011-10-28 Sterling Augustine <saugustine@google.com>
1342
1343 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1344 * symtab.c (free_completion_list): New function.
1345 (do_free_completion_list): Likewise.
1346 (default_make_symbol_completion_list_break_on): New variable
1347 back_to. Call make_cleanup and discard_cleanups.
1348 (make_source_files_completion_list): Likewise.
1349
03c3051a
PK
13502011-10-28 Paul Koning <paul_koning@dell.com>
1351
1352 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1353 * NEWS: Mention deep_items.
1354
8e7ebaf5
PA
13552011-10-28 Alen Skondro <askondro@gmail.com>
1356
8de33dc2 1357 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1358 defined.
1359
e0c6ef61
MI
13602011-10-27 Meador Inge <meadori@codesourcery.com>
1361
1362 * MAINTAINERS (Write After Approval): Add myself to the list.
1363
b56d6f31
JB
13642011-10-27 Joel Brobecker <brobecker@adacore.com>
1365
1366 * value.h (read_frame_register_value): Add declaration.
1367 * findvar.c (read_frame_register_value): New function.
1368 (value_from_register): Use read_frame_register_value
1369 instead of get_frame_register_value + value_contents_copy
1370 to get value contents.
1371
d234ef5c
DE
13722011-10-27 Doug Evans <dje@google.com>
1373
1374 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1375 source_script_from_stream if it may have been found on the search path.
1376 * python/py-auto-load.c (source_section_scripts): Pass full path to
1377 source_python_script_for_objfile.
1378 * python/python.c (source_python_script): Delete stream parameter.
1379 All callers updated.
1380 (source_python_script_for_objfile): Ditto.
1381 * python/python-internal.h (source_python_script_for_objfile): Update.
1382 * python/python.h (source_python_script): Update.
1383
d849d44f
TT
13842011-10-27 Tom Tromey <tromey@redhat.com>
1385
1386 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1387 (ada_sals_for_line): Remove declarations.
1388
2231f1fb
KP
13892011-10-27 Kevin Pouget <kevin.pouget@st.com>
1390
1391 Move unwind reasons to an external .def file
1392 * frame.c (frame_stop_reason_string): Rewrite using
1393 unwind_stop_reasons.def.
1394 * frame.h (enum unwind_stop_reason): Likewise.
1395 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1396 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1397 constants for bound-checking.
1398 * unwind_stop_reasons.def: New file.
1399 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1400 instead of a distinct value.
1401
f77b9a5d
PM
14022011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1403
1404 PR python/13331
1405
1406 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1407 (convert_values_to_python): Return on Python tuple allocation
1408 failure. Return NULL on value conversion error.
1409
76dce0be
PM
14102011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1411
1412 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1413 (bppy_set_task): Ditto.
1414 (bppy_delete_breakpoint): Ditto.
1415 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1416 (gdbpy_lookup_global_symbol): Ditto.
1417 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1418 * python/py-frame.c (frapy_is_valid): Ditto.
1419 (frame_info_to_frame_object): Ditto.
1420 * python/py-type.c (typy_lookup_type): Ditto.
1421 (typy_getitem): Ditto.
1422 (typy_has_key): Ditto.
1423 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1424
f17b6955
JB
14252011-10-26 Joel Brobecker <brobecker@adacore.com>
1426
1427 * gdbarch.h: Regenerate.
1428
86ba1042
JB
14292011-10-26 Meador Inge <meadori@codesourcery.com>
1430
1431 * gdbarch.sh (function_list): Use 'pstring' when printing
1432 'gcore_bfd_target'.
1433 * gdbarch.c: Regenerate.
1434
c34fd852
UW
14352011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1436
1437 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1438 and frame caches if PTID refers to all threads of a process.
1439
931bb47f
UW
14402011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1441
1442 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1443 to create_breakpoint.
1444
88aed45e
UW
14452011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1446
1447 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1448 (ppc_sysv_abi_push_dummy_call): Use it.
1449 (do_ppc_sysv_return_value): Likewise.
1450 (ppc64_sysv_abi_push_dummy_call): Likewise.
1451 (ppc64_sysv_abi_return_value): Likewise.
1452
3eaf3fa2
PK
14532011-10-26 Paul Koning <paul_koning@dell.com>
1454
1455 * python/lib/gdb/types.py (deepitems): New function.
1456
913460fc
PK
14572011-10-25 Paul Koning <paul_koning@dell.com>
1458
1459 PR python/13327
1460
1461 * python/py-value.c (value_to_value_object): Remove fetching of
1462 the value if it was lazy.
1463 (valpy_get_is_lazy): New function.
1464 (valpy_fetch_lazy): New function.
1465
2b5b9d09
JB
14662011-10-24 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1469 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1470
e21ffe51
PA
14712011-10-24 Pedro Alves <pedro@codesourcery.com>
1472
1473 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1474 event, in non-stop, if not stopping, make sure the new lwp has
1475 last_resume_kind set to resume_continue. Assert that when we're
1476 resuming the new lwp, its last_resume_kind is resume_continue.
1477
7aee8dc2
PA
14782011-10-24 Pedro Alves <pedro@codesourcery.com>
1479
1480 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1481 already set when marking the event thread as not executing in
1482 non-stop mode.
1483
4b4e080e
PA
14842011-10-24 Pedro Alves <pedro@codesourcery.com>
1485
1486 * infrun.c (handle_inferior_event): Add debug output for
1487 TARGET_WAITKIND_NO_HISTORY.
1488
baacfb07
PM
14892011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1490
1491 * NEWS: Move set/show extended-prompt to "New Options". Expand
1492 description. Fix typos.
1493
8432bc41
PM
14942011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1495
1496 PR python/13310
1497
1498 * python/py-param.c (call_doc_function): Correctly deference on
1499 function exit.
1500
6cda5a20
JB
15012011-10-21 Joel Brobecker <brobecker@adacore.com>
1502
1503 * ada-tasks.c (print_ada_task_info): Fix computation of
1504 number of tasks displayed in command output.
1505
13294f7d
JK
15062011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 Ulrich Weigand <uweigand@de.ibm.com>
1508
1509 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1510 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1511 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1512 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1513 gdbarch_unwind_pc.
1514
460c1c54
CC
15152011-10-20 Cary Coutant <ccoutant@google.com>
1516
1517 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1518 section to...
1519 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1520 flag. Adjust all callers.
1521 (process_psymtab_comp_unit): Remove adjustment for type section.
1522
a10964d1
AR
15232011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1524
1525 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1526 arguments by adding OBJFILE. Instead of getting objfile from
1527 symbol's symtab, use new argument OBJFILE.
1528 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1529 arguments by adding OBJFILE.
1530 * gdb/dwarf2read.c (new_symbol_full): Change call to
1531 cp_scan_for_anonymous_namespaces to match new signature.
1532 * gdb/stabsread.c (define_symbol): Change call to
1533 cp_scan_for_anonymous_namespaces to match new signature.
1534
27ca1a5b
PM
15352011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1536
1537 PR python/13308
1538 PR python/13309
1539
1540 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1541 leak.
1542 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1543 leak. Delete unused variables.
1544
9df2fbc4
PM
15452011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1546
1547 PR python/12656
1548
1549 * python/py-frame.c (frapy_read_var): Use const struct *block.
1550 * python/py-type.c (typy_lookup_typename): Likewise.
1551 (typy_lookup_type): Likewise.
1552 (typy_legacy_template_argument): Likewise.
1553 (typy_template_argument): Likewise.
1554 (gdbpy_lookup_type): Likewise.
1555 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1556 * python/py-block.c (blpy_block_object): Likewise.
1557 (blpy_iter): Likewise.
1558 (blpy_get_start): Likewise.
1559 (blpy_get_end): Likewise.
1560 (blpy_get_function): Likewise.
1561 (blpy_get_superblock): Likewise.
1562 (set_block): Likewise.
1563 (block_to_block_object): Likewise.
1564 (block_object_to_block): Likewise.
1565 (blpy_is_valid): Likewise.
1566 (blpy_get_global_block): New function.
1567 (blpy_get_static_block): New function.
1568 (blpy_is_global): New function.
1569 (blpy_is_static): New function.
1570 * blockframe.c (block_innermost_frame): Likewise.
1571 * valops.c (value_of_variable): Likewise.
1572 * frame.h: Update prototypes.
1573 * python/python-internal.h: Likewise.
1574 * value.h: Likewise.
1575
4743b735
CC
15762011-10-19 Cary Coutant <ccoutant@google.com>
1577
1578 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1579 type_offset field.
1580
6caca83c
CC
15812011-10-19 Cary Coutant <ccoutant@google.com>
1582
1583 * dwarf2read.c (peek_abbrev_code): New function.
1584 (dw2_get_file_names): Check for dummy compilation units.
1585 (create_debug_types_hash_table): Likewise.
1586 (process_psymtab_comp_unit): Likewise.
1587 (load_partial_comp_unit): Likewise.
1588 (load_full_comp_unit): Likewise.
1589
43136979
AR
15902011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1591
1592 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1593 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1594 pt_phdr if PT_PHDR was found.
1595
0a07729b
TT
15962011-10-17 Joost van der Sluis <joost@cnoc.nl>
1597
1598 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1599 type or "<unnamed type"> when there is no name assigned.
1600 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1601 avoid a sigint when no name is assigned.
1602
21ae7a4d
JK
16032011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1604
1605 Revert:
1606 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 * dwarf2expr.c (ctx_no_read_reg): New function.
1608 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1609 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1610 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1611 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1612
32d1c362
DE
16132011-10-16 Doug Evans <dje@google.com>
1614
1615 * NEWS: Document python gdb.printing.register_pretty_printer's new
1616 `replace' parameter.
1617
da096638
KS
16182011-10-14 Keith Seitz <keiths@redhat.com>
1619
1620 PR c++/13225
1621 * eval.c (evaluate_subexp_standard): Do not construct
1622 an array of types; pass the value array directly to
1623 find_overload_match.
1624 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1625 (rank_function): Take an array of values instead of types.
1626 (rank_one_type): Add struct value * parameter.
1627 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1628 (rank_function): For each argument, pass the argument's
1629 value to rank_one_type.
1630 (rank_one_type): Add VALUE parameter.
1631 If the parameter type is a pointer and the argument type
1632 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1633 VALUE is zero.
1634 Update all calls to rank_one_type, passing NULL for new
1635 VALUE parameter.
1636 * valarith.c (value_user_defined_cpp_op): Do not construct
1637 an array of types; pass the value array directly to
1638 find_overload_match.
1639 * valops.c (find_overload_method_list): Take an array of
1640 values instead of types.
1641 Save the type of OBJP for later use.
1642 Update calls to find_oload_champ, and find_oload_champ_namespace.
1643 (find_oload_champ_namespace): Take an array of values instead
1644 of types.
1645 (find_oload_champ_namespace_loop): Likewise.
1646 (find_oload_champ): Likewise.
1647 (classify_oload_match): Inspect all arguments
1648 until INCOMPATIBLE is found. Return the worst badness found
1649 otherwise.
1650 (compare_parameters): Update call to rank_one_type.
1651 * value.h (find_overload_match): Take an array of values instead
1652 of types.
1653
3957565a
JK
16542011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1655
1656 Drop lazy lm_info reading.
1657 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1658 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1659 (lm_info_read): New function.
1660 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1661 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1662 lm_dynamic_from_link_map.
1663 (lm_next, lm_prev, lm_name): Remove.
1664 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1665 initialization incl. read_memory. No longer use lm_name.
1666 (svr4_free_so): Drop lm_info->lm freeing.
1667 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1668 explicit lm_addr and lm initialization.
1669 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1670 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1671 lm_name.
1672
cb08cc53
JK
16732011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1674 Paul Pluzhnikov <ppluzhnikov@google.com>
1675
1676 * defs.h (struct so_list): New forward declaration.
1677 (make_cleanup_free_so): New declaration.
1678 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1679 (svr4_free_so): Move the function here from downwards. Handle NULL
1680 so->lm_info.
1681 (svr4_free_library_list): New.
1682 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1683 Use more cleanups. Use new parameter ignore_first instead of
1684 ignore_first_link_map_entry.
1685 (svr4_current_sos): New variable ignore_first, initialize it. New
1686 variable back_to, use it for svr4_free_library_list protection.
1687 (svr4_free_so): Remove - move upwards.
1688 * utils.c: Include solist.h.
1689 (do_free_so, make_cleanup_free_so): New functions.
1690
22c05d8a
JK
16912011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 Fix internal error regression.
1694 * value.c (value_primitive_field): Handle value_optimized_out. Move
1695 packed bitfields comment.
1696
d930d06e
TT
16972011-10-13 Tom Tromey <tromey@redhat.com>
1698
1699 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1700 always released.
1701
2ff6b080
TT
17022011-10-13 Tom Tromey <tromey@redhat.com>
1703
1704 * python/py-type.c (typy_has_key): Make 'field' const.
1705
d6c5869f
LM
17062011-10-13 Luis Machado <lgustavo@codesourcery.com>
1707
1708 * remote.c (remote_save_trace_data): Invert comparison.
1709
a70633a2
LM
17102011-10-13 Luis Machado <lgustavo@codesourcery.com>
1711
1712 * tracepoint.c (trace_save_command): Use filename instead of
1713 args when printing.
1714
e103e986
JK
17152011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1718 if .size is 0.
1719
db24da6d
YQ
17202011-10-13 Yao Qi <yao@codesourcery.com>
1721
1722 PR gdb/12703
1723 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1724 whether insn is a 32-bit Thumb-2 instruction.
1725 (thumb_in_function_epilogue_p): Likewise.
1726 (thumb_get_next_pc_raw): Likewise.
1727 (arm_breakpoint_from_pc): Likewise.
1728
1d6edc3c
JK
17292011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1730
1731 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1732 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1733 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1734 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1735 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1736 zero DATA.
1737 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1738 validity.
1739 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1740 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1741 clear DATA on zero SIZE.
1742
adabb602
DE
17432011-10-12 Doug Evans <dje@google.com>
1744
1745 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1746 header->first_die_offset here. All callers updated.
1747
5048e516
JK
17482011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 Fix compatibility with texinfo versions older than 4.12.
1751 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1752 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1753 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1754 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1755 * configure: Regenerate.
1756 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1757 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1758 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1759
0574c78f
GB
17602011-10-12 Gary Benson <gbenson@redhat.com>
1761
1762 * breakpoint.h (pc_at_non_inline_function): Declare.
1763 * breakpoint.c (is_non_inline_function,
1764 pc_at_non_inline_function): New functions.
1765 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1766 if the stop is at a location where functions cannot be inlined.
1767
12d9289a
PA
17682011-10-12 Pedro Alves <pedro@codesourcery.com>
1769
1770 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1771 the core wanted them stopped, or if they now have a pending event
1772 to report.
ecf8e7f5
PA
1773 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1774 down to stop_and_resume_callback.
1775 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1776 having new pending events after calling linux_nat_filter_event.
12d9289a 1777
96408a79
SA
17782011-10-11 Sterling Augustine <saugustine@google.com>
1779
1780 * dwarf2read.c: Undo inadvertent changes in previous commit.
1781
9c6c53f7
SA
17822011-10-11 Sterling Augustine <saugustine@google.com>
1783
1784 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1785 logic.
1786
0e8aefe7
UW
17872011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1788
1789 * symfile.c (separate_debug_file_exists): Fix condition.
1790
349d1385
DM
17912011-10-11 David S. Miller <davem@davemloft.net>
1792
1793 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1794 static.
1795 * regcache.h (regcache_restore): Remove declaration.
1796
205c306f
DM
1797 * gdbarch.sh: New field 'long_long_align_bit'.
1798 * gdbarch.c, gdbarch.h: Regenerate.
1799 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1800 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1801
941b2081
JK
18022011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 Revert this part of:
1805 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 Support @entry in input expressions.
1807 * c-exp.y (ENTRY, unknown_cpp_name): New.
1808 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1809 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1810 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1811 (name_not_typename: ENTRY): New.
1812 (yylex): Recognize ENTRY.
1813
1814 Reimplement @entry in input expressions.
1815 * c-exp.y (ENTRY): New.
1816 (variable: name_not_typename ENTRY): New.
1817 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1818
3c4d7e12
PA
18192011-10-11 Pedro Alves <pedro@codesourcery.com>
1820
1821 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1822 parent and child's pids as soon as we detect a clone event.
1823 Adjust another debug message.
1824
ea23808b
PA
18252011-10-11 Pedro Alves <pedro@codesourcery.com>
1826
1827 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1828 not zombie instead of reading the whole file.
1829
904578ed
JK
18302011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1831
1832 Fix separate debuginfo warning with "remote:" access.
1833 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1834 * symfile.c (get_file_crc): New function with the code moved from ...
1835 (separate_debug_file_exists): ... this function, specifically variables
1836 buffer and count. New variable verified_as_different, set it. Remove
1837 file_crc initialization. Verify also if both files are not the same
1838 manually, if needed.
1839
51370a33
YQ
18402011-10-11 Yao Qi <yao@codesourcery.com>
1841
1842 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1843 to get address.
1844
0838fb57
DE
18452011-10-10 Doug Evans <dje@google.com>
1846
1847 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1848 libthread_db when we load libpthread or the main symbol file.
1849 (thread_db_inferior_created): New function.
1850 (_initialize_thread_db): Attach inferior_created observer.
1851 * linux-nat.c (linux_child_post_attach): Remove call to
1852 check_for_thread_db.
1853 (linux_child_post_startup_inferior): Ditto.
1854 * objfiles.h (OBJF_MAINLINE): Define.
1855 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1856 allocate_objfile when appropriate.
1857
623bd5b7
UW
18582011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1859
1860 PR gdb/13218
1861 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1862 Remove unused variables.
1863 (get_linux_version): Remove function.
1864 (_initialize_arm_linux_nat): Do not call it.
1865
79395f92
PA
18662011-10-10 Pedro Alves <pedro@codesourcery.com>
1867
1868 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1869 new clone lwp if the core asked it to stop. Don't pass on
1870 unexpected signals to the new clone; leave them pending instead.
1871
eff3df78
PA
18722011-10-10 Pedro Alves <pedro@codesourcery.com>
1873
1874 * linux-nat.c (resume_lwp): Remove redundant debug output.
1875
4b60df3d
PA
18762011-10-10 Pedro Alves <pedro@codesourcery.com>
1877
1878 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1879 last_resume_kind before clearing it, and use the copy instead to
1880 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1881 resume_clear_callback in the non-stop path too.
1882
6501578c
YQ
18832011-10-09 Yao Qi <yao@codesourcery.com>
1884
1885 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1886 Honor OPTIONS and VAL's type.
1887 (common_val_print, value_print): Update to pass one more parameter.
1888
5a56e9c5
DE
18892011-10-09 Doug Evans <dje@google.com>
1890
1891 Add new "alias" command.
1892 * NEWS: Mention new command.
1893 * command.h (valid_user_defined_cmd_name_p): Declare.
1894 * defs.h (make_cleanup_dyn_string_delete): Declare.
1895 * utils.c: #include "dyn-string.h".
1896 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1897 * cli/cli-cmds.c: #include "dyn-string.h".
1898 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1899 (init_cli_cmds): Add new command.
1900 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1901
509f0fd9
JK
19022011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1903
1904 Fix compatibility with older GCCs.
1905 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1906 * stack.c (read_frame_arg): Initialize val_deref.
1907
2bda9cc5
JK
19082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1909
1910 Entry values NEWS entries, DWARF disassembly support.
1911 * NEWS: New entry values entry.
1912 (set print entry-values, show print entry-values)
1913 (set debug entry-values, show debug entry-values): New entries.
1914 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1915 indent. Remove variable start. Move header printing out. Respect
1916 INDENT. Support DW_OP_GNU_entry_value.
1917 (locexpr_describe_location_1): Move the header printing here, extend
1918 the disassemble_dwarf_expression passed parameters.
1919
a471c594
JK
19202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 Display @entry parameter values even for references.
1923 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1924 coerce_ref_if_computed.
1925 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1926 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1927 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1928 existing push_dwarf_reg_entry_value call. Add new detection calling
1929 dwarf_block_to_dwarf_reg_deref. Update the error message.
1930 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1931 * dwarf2expr.h
1932 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1933 parameter deref_size, describe it in the comment.
1934 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1935 (dwarf_block_to_dwarf_reg_deref): New declaration.
1936 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1937 deref_size, describe it in the function comment. New variables
1938 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1939 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1940 describe it in the function comment. Fetch the alternative block
1941 accoring to DEREF_SIZE.
1942 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1943 (entry_data_value_free_closure, entry_data_value_funcs): New.
1944 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1945 outer_val, target_val, val and addr. Try to fetch and create also
1946 referenced value content.
1947 (pieced_value_funcs): NULL value for coerce_ref.
1948 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1949 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1950 coerce_ref_if_computed.
1951 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1952 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1953 * stack.c (read_frame_arg): Compare also dereferenced values.
1954 * value.c (value_computed_funcs): Make the parameter v const, use
1955 value_lval_const for it.
1956 (value_lval_const, coerce_ref_if_computed): New function.
1957 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1958 * value.h (struct lval_funcs): New field coerce_ref.
1959 (value_computed_funcs): Make the parameter v const.
1960 (value_lval_const, coerce_ref_if_computed): New declarations.
1961
36b11add
JK
19622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 Support @entry in input expressions.
1965 * c-exp.y (ENTRY, unknown_cpp_name): New.
1966 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1967 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1968 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1969 (name_not_typename: ENTRY): New.
1970 (yylex): Recognize ENTRY.
1971 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1972 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1973 Likewise.
1974 * parse.c (operator_length_standard): Likewise.
1975 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1976
3343315b
JK
19772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1978
1979 Display referenced values in backtraces.
1980 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1981 * stack.c (print_frame_arg): Likewise.
1982
ac71a68c
JK
19832011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 Make some lval_funcs methods to default on NULL.
1986 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1987 NULL.
1988 (value_assign): Check if lval_computed write method is NULL.
1989 * value.h (struct lval_funcs): Comment NULL values for read and write
1990 methods.
1991
e18b2753
JK
19922011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 Display @entry parameter values (without references).
1995 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1996 New functions.
1997 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1998 New declarations.
1999 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2000 entry record.
2001 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2002 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2003 functions.
2004 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2005 (loclist_read_variable_at_entry): New function.
2006 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2007 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2008 DW_AT_location, call dwarf_block_to_sp_offset for it.
2009 * frame.h (print_entry_values_no, print_entry_values_only)
2010 (print_entry_values_preferred, print_entry_values_if_needed)
2011 (print_entry_values_both, print_entry_values_compact)
2012 (print_entry_values_default, print_entry_values): New declarations.
2013 (struct frame_arg): New field entry_kind.
2014 (read_frame_arg): New parameter entryargp.
2015 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2016 arg->entry_kind. Optionally print the `@entry' suffix.
2017 (list_args_or_locals): New variable entryarg, initialize it.
2018 Initialize also entry_kind of arg and entryarg. Conditionalize
2019 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2020 xfree for entryarg.error.
2021 * stack.c (print_entry_values_no, print_entry_values_only)
2022 (print_entry_values_preferred, print_entry_values_if_needed)
2023 (print_entry_values_both, print_entry_values_compact)
2024 (print_entry_values_default, print_entry_values_choices)
2025 (print_entry_values): New variables.
2026 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2027 print the `@entry' suffix, possibly in combination for
2028 print_entry_values_compact.
2029 (read_frame_arg): New parameter entryargp, new variables entryval,
2030 entryval_error and val_equal. Read in also entryargp, respect
2031 print_entry_values, compare the values using val_equal, fill in also
2032 argp->entry_kind (together with entryargp->entry_kind).
2033 (print_frame_args): New variable entryarg, initialize it.
2034 Conditionalize print_frame_arg for arg, add print_frame_arg for
2035 entryarg. Call xfree for entryarg.error.
2036 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2037 * symtab.h (struct symbol_computed_ops): New field
2038 read_variable_at_entry.
2039
93d86cef
JK
20402011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 Code reshuffle.
2043 * frame.h (struct frame_arg): New definition.
2044 (read_frame_arg): New declaration.
2045 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2046 (list_args_or_locals): ... the code here. New variable arg, call
2047 read_frame_arg and list_arg_or_local with it. Unify the
2048 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2049 arg.error.
2050 * stack.c (print_frame_arg): New functiom from the code of
2051 print_frame_args.
2052 (read_frame_arg): New function.
2053 (print_frame_args): Remove variable val. New variable arg, call
2054 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2055
2d6c5dc2
JK
20562011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2057
2058 Protect entry values against self tail calls.
2059 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2060 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2061
111c6489
JK
20622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 Recognize virtual tail call frames.
2065 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2066 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2067 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2068 * dwarf2-frame-tailcall.c: New file.
2069 * dwarf2-frame-tailcall.h: New file.
2070 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2071 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2072 REGS.PREV only after CIE execution.
2073 (struct dwarf2_frame_cache): New field tailcall_cache.
2074 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2075 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2076 parts, try to find entry_cfa_sp_offset. Call
2077 dwarf2_tailcall_sniffer_first.
2078 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2079 when appropriate.
2080 (dwarf2_frame_dealloc_cache): New function.
2081 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2082 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2083 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2084 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2085 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2086 * dwarf2loc.c (func_addr_to_tail_call_list)
2087 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2088 (call_site_find_chain_1, call_site_find_chain): New.
2089 * dwarf2loc.h (struct call_site_chain): New.
2090 (call_site_find_chain): New declaration.
2091 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2092 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2093 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2094 * stack.c (frame_info): Support also TAILCALL_FRAME.
2095
bb984ff1
JK
20962011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 Tail call sites reader implementation.
2099 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2100 fill in TYPE_TAIL_CALL_LIST.
2101 * gdbtypes.h (struct func_type): New field tail_call_list.
2102 (struct call_site): New field tail_call_next.
2103 (TYPE_TAIL_CALL_LIST): New definition.
2104
8e3b41a9
JK
21052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 Implement basic support for DW_TAG_GNU_call_site.
2108 * block.c: Include gdbtypes.h and exceptions.h.
2109 (call_site_for_pc): New function.
2110 * block.h (call_site_for_pc): New declaration.
2111 * defs.h: Include hashtab.h.
2112 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2113 declarations.
2114 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2115 ctx_no_push_dwarf_reg_entry_value.
2116 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2117 (dwarf_block_to_dwarf_reg): New function.
2118 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2119 (ctx_no_push_dwarf_reg_entry_value): New function.
2120 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2121 push_dwarf_reg_entry_value.
2122 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2123 declarations.
2124 * dwarf2loc.c: Include gdbcmd.h.
2125 (dwarf_expr_ctx_funcs): New forward declaration.
2126 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2127 (dwarf_expr_reg_to_entry_parameter)
2128 (dwarf_expr_push_dwarf_reg_entry_value): New.
2129 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2130 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2131 (needs_dwarf_reg_entry_value): New function.
2132 (needs_frame_ctx_funcs): Install it.
2133 (_initialize_dwarf2loc): New function.
2134 * dwarf2loc.h (entry_values_debug): New declaration.
2135 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2136 (read_call_site_scope): New forward declaration.
2137 (process_full_comp_unit): Copy call_site_htab.
2138 (process_die): Support DW_TAG_GNU_call_site.
2139 (read_call_site_scope): New function.
2140 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2141 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2142 (cleanup_htab): Delete.
2143 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2144 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2145 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2146 FIELD_LOC_KIND_DWARF_BLOCK.
2147 * gdbtypes.h (enum field_loc_kind): New entry
2148 FIELD_LOC_KIND_DWARF_BLOCK.
2149 (struct main_type): New loc entry dwarf_block.
2150 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2151 (TYPE_FIELD_DWARF_BLOCK): New.
2152 * python/py-type.c: Include dwarf2loc.h.
2153 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2154 internal_error call on unknown FIELD_LOC_KIND.
2155 * symtab.h (struct symtab): New field call_site_htab.
2156 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2157 (core_addr_hash, core_addr_eq): New functions.
2158
b6cdc2c1
JK
21592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 Code reshuffle.
2162 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2163 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2164 calling_convention under func_stuff there.
2165 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2166 (init_type) <TYPE_CODE_FUNC>: Likewise.
2167 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2168 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2169 * gdbtypes.h (enum type_specific_kind): Change
2170 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2171 (struct main_type) <type_specific>: Change calling_convention to
2172 func_stuff. Move calling_convention to ...
2173 (struct func_type): ... this new struct.
2174 (INIT_FUNC_SPECIFIC): New #define.
2175 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2176
181cebd4
JK
21772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2180 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2181 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2182 ctx->ref_addr_size. Handle its invalid value.
2183 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2184 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2185 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2186 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2187 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2188 (dwarf2_per_cu_ref_addr_size): New function.
2189
c471e790
JK
21902011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2191
2192 Code cleanup.
2193 * dwarf2read.c (per_cu_header_read_in): New function.
2194 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2195 variables cu_header_local and cu_headerp.
2196
741f5e3c
JK
21972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2198
2199 Fix initial language detection with -readnow.
2200 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2201 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2202 searches only for global symbols.
2203
a73d2258
JK
22042011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 Fix printed anonymous struct name.
2207 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2208 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2209 (anonymous_struct_prefix): New function.
2210 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2211 (dwarf2_name): Strip for anonymous structs any prefixes.
2212
749fd4ea
DE
22132011-10-07 Doug Evans <dje@google.com>
2214
1fa57852
DE
2215 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2216 `replace'.
2217
690a4937
DE
2218 * python/lib/gdb/printing.py: Whitespace cleanup.
2219
749fd4ea
DE
2220 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2221 warning.
2222
4c38200f
PA
22232011-10-07 Pedro Alves <pedro@codesourcery.com>
2224
2225 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2226 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2227 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2228 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2229 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2230 (arm_linux_remove_watchpoint): Adjust.
2231 * i386-linux-nat.c (i386_linux_dr_set_control)
2232 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2233 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2234 (ia64_linux_remove_watchpoint): Adjust.
2235 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2236 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2237 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2238 (ppc_linux_insert_mask_watchpoint)
2239 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2240 (ppc_linux_remove_watchpoint): Adjust.
2241 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2242 Adjust.
2243
b7ff339d
CV
22442011-10-07 Corinna Vinschen <vinschen@redhat.com>
2245
2246 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2247 (clear_win32_environment): New function for Cygwin to clear out
2248 Win32 environment.
2249 (windows_create_inferior): Prepare new environment from in_env
2250 for Cygwin, too.
2251
f287c1f3
PM
22522011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2253
5631e596 2254 PR python/13264
f287c1f3
PM
2255 * python/py-value.c (valpy_call): Check that arguments are
2256 a tuple.
2257 (is_intlike): Remove call to CHECK_TYPEDEF.
2258 (valpy_nonzero): Catch GDB exceptions.
2259 (valpy_absolute): Ditto.
2260 (valpy_lazy_string): Ditto.
2261 (valpy_call): Ditto.
2262 (valpy_get_is_optimized_out): Ditto.
2263 (valpy_long): Ditto.
2264 (valpy_float): Ditto.
2265 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2266 (valpy_richcompare): Ditto.
2267
03583c20
UW
22682011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2269
2270 * inferior.h (disable_randomization): Declare.
2271 * infrun.c (disable_randomization): New global variable.
2272 (show_disable_randomization): New function.
2273 (set_disable_randomization): Likewise.
2274 (_initialize_infrun): Install set/show disable-randomization
2275 commands.
2276 * linux-nat.c (disable_randomization): Remove.
2277 (show_disable_randomization): Likewise.
2278 (set_disable_randomization): Likewise.
2279 (_initialize_linux_nat): No longer install set/show
2280 disable-randomization commands here.
2281 (linux_nat_supports_disable_randomization): New function.
2282 (linux_nat_add_target): Install it.
2283 * remote.c (PACKET_QDisableRandomization): New enum value.
2284 (remote_protocol_packets): Support QDisableRandomization.
2285 (_initialize_remote): Likewise.
2286 (remote_supports_disable_randomization): New function.
2287 (init_remote_ops): Install it.
2288 (extended_remote_supports_disable_randomization): New function.
2289 (init_extended_remote_ops): Install it.
2290 (extended_remote_disable_randomization): New function.
2291 (extended_remote_create_inferior_1): Call it.
2292 * target.h (struct target_ops): Add to_supports_disable_randomization.
2293 (target_supports_disable_randomization): Add prototype.
2294 * target.c (target_supports_disable_randomization): New function.
2295 (find_default_supports_disable_randomization): Likewise.
2296 (init_dummy_target): Install it.
2297
20c168b5
KP
22982011-10-07 Kevin Pouget <kevin.pouget@st.com>
2299
2300 Allow Python notification of new object-file loadings.
2301 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2302 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2303 Add build rule for this file.
2304 * python/py-event.h (emit_new_objfile_event): New prototype.
2305 (newobjfile): New Python event emitter.
2306 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2307 Python event registry.
2308 * python/py-inferior.c: Include objfiles.h
2309 (python_new_objfile): New function.
2310 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2311 observers.
2312 * python/py-newobjfileevent.c: New file.
2313 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2314 prototype.
2315 * python/python.c (_initialize_python): Add
2316 gdbpy_initialize_new_objfile_event call.
2317 * NEWS: Add item for new Python event "gdb.newobjfile"
2318
b1c8db38
TG
23192011-10-05 Tristan Gingold <gingold@adacore.com>
2320
2321 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2322 Extract the ravenscar task name from the symbol for the atcb.
2323
0dab82e9
PK
23242011-10-04 Paul Koning <paul_koning@dell.com>
2325
2326 * python/py-type.c (typy_make_iter): Add forward declaration.
2327 (typy_fields_items): Use the gdb.Type iterator.
2328
84ad80e6
PK
23292011-10-04 Paul Koning <paul_koning@dell.com>
2330
2331 * NEWS: Add entry for Python gdb.Type mapping methods.
2332
cb6be26b
KP
23332011-10-04 Kevin Pouget <kevin.pouget@st.com>
2334
2335 PR python/12691: Add the inferior to Python exited event
2336 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2337 to exited_event.
2338 * python/py-event.h (emit_exited_event): Likewise
2339 * python/-inferior.c (python_inferior_exit): Likewise
2340
6005b210
JB
23412011-10-03 Joel Brobecker <brobecker@adacore.com>
2342
2343 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2344 in output of -ada-task-info GDB/MI command.
2345
75082e8c
JB
23462011-10-03 Joel Brobecker <brobecker@adacore.com>
2347
2348 * ada-lang.h (struct inferior): Declare.
2349 (print_ada_task_info): Add declaration.
2350 * ada-tasks.c (print_ada_task_info): Make non-static.
2351 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2352 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2353 * mi/mi-main.c: #include "ada-lang.h".
2354 (mi_cmd_list_features): Add "ada-task-info" to the list
2355 of supported features.
2356 (mi_cmd_ada_task_info): New function.
2357
7ed7d719
JB
23582011-10-03 Joel Brobecker <brobecker@adacore.com>
2359
2360 * python/python.c (python_run_simple_file): New function.
2361 (source_python_script, source_python_script_for_objfile):
2362 Replace call to PyRun_SimpleFile by call to
2363 python_run_simple_file.
2364
3fcaed38
PK
23652011-10-03 Paul Koning <paul_koning@dell.com>
2366
2367 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2368 (value_to_value_object): Fetch value if it was lazy.
2369
8e5c319d
JK
23702011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 Code cleanup.
2373 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2374 Rearrange the code for it.
2375
dd11a36c
JB
23762011-10-02 Joel Brobecker <brobecker@adacore.com>
2377
2378 * breakpoint.c (bkpt_print_recreate): Add call to
2379 print_recreate_thread.
2380
723b724b
MF
23812011-09-29 Mike Frysinger <vapier@gentoo.org>
2382
2383 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2384 PTRACE_GETFDPIC_INTERP): Define.
2385
412946b6
YQ
23862011-09-28 Yao Qi <yao@codesourcery.com>
2387
2388 * symfile.c (add_symbol_file_command): Update message on usage.
2389
a73bb892
PK
23902011-09-28 Paul Koning <paul_koning@dell.com>
2391
2392 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2393 (typy_length, typy_get, typy_has_key, typy_make_iter)
2394 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2395 (typy_iterator_iter, typy_iterator_iternext)
2396 (typy_iterator_dealloc): New functions to implement standard
2397 Python mapping methods on gdb.Type object.
2398 (gdb.TypeIterator): New Python type.
2399 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2400
fe10a582
DM
24012011-09-28 David S. Miller <davem@davemloft.net>
2402
2403 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2404 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2405 * sparc-tdep.c (sparc_complex_floating_p): New function.
2406 (sparc32_store_arguments): Handle complex floats.
2407 (sparc32_extract_return_value): Likewise.
2408 (sparc32_store_return_value): Likewise.
2409 (sparc32_stabs_argument_has_addr): Likewise.
2410 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2411 (sparc64_store_floating_fields): Handle complex floats.
2412 (sparc64_store_arguments): Likewise.
2413 (sparc64_store_return_value): Likewise.
2414
c93dbcba
EZ
24152011-09-28 Eli Zaretskii <eliz@gnu.org>
2416
2417 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2418 before the change on 2006-12-09.
2419 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2420 generates the environment block for CreateProcessA, modulo the
2421 Cygwin-specific parts that are not needed here.
2422
f00c55f8
TG
24232011-09-27 Tristan Gingold <gingold@adacore.com>
2424
2425 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2426 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2427 (darwin_solib_get_all_image_info_addr_at_init): New function.
2428 (darwin_solib_read_all_image_info_addr): Likewise.
2429 (darwin_solib_create_inferior_hook): Use the above two functions.
2430 * darwin-nat.c (darwin_execvp): Renames retval to res.
2431 (darwin_read_write_inferior): Update comment.
2432 (darwin_read_dyld_info): New function.
2433 (darwin_xfer_partial): Handle DYLD_INFO.
2434
6710bf39
SS
24352011-09-27 Stan Shebs <stan@codesourcery.com>
2436
2437 Add return address collection for tracepoints.
2438 * tracepoint.c (encode_actions_1): Add case for $_ret.
2439 (validate_actionline): Check for $_ret.
2440 (trace_dump_actions): Ditto.
2441 * ax-gdb.h (gen_trace_for_return_address): Declare.
2442 * ax-gdb.c: Include arch-utils.h.
2443 (gen_trace_for_return_address): New function.
2444 (agent_command): Add return address special case.
2445 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2446 (amd64_gen_return_address): New function.
2447 (amd64_init_abi): Call it.
2448 * i386-tdep.c: Include ax.h and ax-gdb.h.
2449 (i386_gen_return_address): New function.
2450 (i386_init_abi): Call it.
2451 * arch-utils.h (default_gen_return_address): Declare.
2452 * arch-utils.c (default_gen_return_address): New function.
2453 * gdbarch.sh (gen_return_address): New method.
2454 * gdbarch.h, gdbarch.c: Regenerate.
2455
e04e5beb
JM
24562011-09-23 Joseph Myers <joseph@codesourcery.com>
2457
2458 PR gdb/13079
2459 * i386-tdep.c (i386_frame_align): New.
2460 (i386_gdbarch_init): Use i386_frame_align.
2461
f3d6df6d
YQ
24622011-09-23 Yao Qi <yao@codesourcery.com>
2463
2464 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2465 to get address.
2466
e69860f1
TG
24672011-09-22 Tristan Gingold <gingold@adacore.com>
2468
2469 * fork-child.c (fork_inferior): Add exec_fun parameter.
2470 Call exec_fun or execvp.
2471 * inferior.h: Adjust prototype.
2472 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2473 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2474 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2475 * procfs.c (procfs_create_inferior): Ditto.
2476 * darwin-nat.c (darwin_execvp): New function.
2477 (darwin_create_inferior): Use it.
2478
4b51d87b
YQ
24792011-09-22 Yao Qi <yao@codesourcery.com>
2480
2481 * infrun.c (context_switch): Print debug message when switching to
2482 a different thread.
2483
56b9d9ac
UW
24842011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2485
2486 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2487 complex and vector types.
2488 (s390_return_value_convention): Likewise.
2489
2490 (s390_value_from_register): Call check_typedef.
2491 (extend_simple_arg): Likewise.
2492 (alignment_of): Likewise.
2493 (s390_push_dummy_call): Likewise.
2494 (s390_return_value): Likewise.
2495
b2cd6b29
JM
24962011-09-21 Joseph Myers <joseph@codesourcery.com>
2497
2498 * event-top.c (async_disconnect): If an exception is thrown from
2499 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2500 catch_errors.
2501 * top.c (quit_cover): Return void and take no arguments.
2502 * top.h (quit_cover): Update prototype.
2503
67ba4e42
JM
25042011-09-20 Joseph Myers <joseph@codesourcery.com>
2505
2506 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2507 current_uiout, not uiout.
2508
562f943b
DE
25092011-09-19 Doug Evans <dje@google.com>
2510
2511 * python/py-auto-load.c (source_section_scripts): Fix file
2512 descriptor leak.
2513 * python/python.c (source_python_script_for_objfile): Tweak comments.
2514
34518530
YQ
25152011-09-18 Yao Qi <yao@codesourcery.com>
2516 Ulrich Weigand <ulrich.weigand@linaro.org>
2517
2518 Support displaced stepping for Thumb 16-bit insns.
2519 * arm-tdep.c (THUMB_NOP) Define.
2520 (thumb_copy_unmodified_16bit): New.
2521 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2522 (thumb_copy_alu_reg): New.
2523 (arm_copy_svc): Move some common code to ...
2524 (install_svc): ... here. New.
2525 (thumb_copy_svc): New.
2526 (install_pc_relative): New.
2527 (thumb_copy_pc_relative_16bit): New.
2528 (thumb_decode_pc_relative_16bit): New.
2529 (thumb_copy_16bit_ldr_literal): New.
2530 (thumb_copy_cbnz_cbz): New.
2531 (cleanup_pop_pc_16bit_all): New.
2532 (thumb_copy_pop_pc_16bit): New.
2533 (thumb_process_displaced_16bit_insn): New.
2534 (thumb_process_displaced_32bit_insn): New.
2535 (thumb_process_displaced_insn): process thumb instruction.
2536
2537 Support displaced stepping for Thumb 32-bit insns.
2538 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2539 (thumb2_copy_preload): New.
2540 (thumb2_copy_copro_load_store): New.
2541 (thumb2_copy_b_bl_blx): New.
2542 (thumb2_copy_alu_imm): New.
2543 (thumb2_copy_load_reg_imm): New.
2544 (thumb2_copy_load_literal): New
2545 (thumb2_copy_block_xfer): New.
2546 (thumb_32bit_copy_undef): New.
2547 (thumb_32bit_copy_unpred): New.
2548 (thumb2_decode_ext_reg_ld_st): New.
2549 (thumb2_decode_svc_copro): New.
2550 (decode_thumb_32bit_store_single_data_item): New.
2551 (thumb_copy_pc_relative_32bit): New.
2552 (thumb_decode_pc_relative_32bit): New.
2553 (decode_thumb_32bit_ld_mem_hints): New.
2554 (thumb2_copy_table_branch): New
2555 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2556 instructions.
2557
2b16b2e3
YQ
25582011-09-18 Yao Qi <yao@codesourcery.com>
2559
2560 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2561 (install_b_bl_blx): Likewise.
2562
0f6f04ba
YQ
25632011-09-17 Yao Qi <yao@codesourcery.com>
2564
2565 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2566 (install_load_store): ... this. New.
2567 Change parameter BYTE to SIZE.
2568 (arm_copy_ldr_str_ldrb_strb): Update caller.
2569 (arm_decode_ld_st_word_ubyte): Update caller.
2570
e2d96639
YQ
25712011-09-17 Yao Qi <yao@codesourcery.com>
2572
2573 * infrun.c (displaced_step_fixup): Move some code ...
2574 (displaced_step_restore): ... here. New function.
2575 (handle_inferior_event): Cleanup displaced stepping state for both
2576 child and parent when get forked or vforked event.
2577 * regcache.c (get_thread_arch_aspace_regcache): New function.
2578 get_thread_arch_regcache (): Call it.
2579
a8123151
JB
25802011-09-16 Joel Brobecker <brobecker@adacore.com>
2581
2582 * ada-tasks.c (print_ada_task_info): New function, merging
2583 short_task_info and info_tasks together. Reimplement using
2584 ui-out instead of printing to stdout directly. Move the code
2585 building and checking the task list here, instead of leaving it
2586 in info_tasks_command.
2587 (info_task): Move the code building and checking the task
2588 list here, instead of leaving it in info_tasks_command.
2589 (info_tasks_command): Delete code building and checking
2590 the task list - moved elsewhere. Update calls to info_tasks
2591 and info_task.
2592
fbf06824
JB
25932011-09-16 Joel Brobecker <brobecker@adacore.com>
2594
2595 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2596
34a0bc90
JB
25972011-09-16 Joel Brobecker <brobecker@adacore.com>
2598
2599 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2600
79779fa9
JB
26012011-09-16 Joel Brobecker <brobecker@adacore.com>
2602
2603 * ada-lang.h (ada_build_task_list): Remove parameter
2604 `warn_if_null'.
2605 * ada-tasks.c (ada_build_task_list): Remove parameter
2606 `warn_if_null'. Adjust implementation and documentation.
2607 (valid_task_id, ada_get_environment_task)
2608 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2609 (info_tasks_command): Adjust implementation.
2610 (task_command): Likewise.
2611 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2612 to ada_build_task_list.
2613
e225eb91
JB
26142011-09-16 Joel Brobecker <brobecker@adacore.com>
2615
2616 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2617 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2618 (ada_tasks_inferior_data_handle): New static global.
2619 (get_ada_tasks_inferior_data): New function.
2620 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2621 (ada_get_environment_task, iterate_over_live_ada_tasks)
2622 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2623 Adjust.
2624 (ada_set_current_inferior_known_tasks_addr): New function.
2625 (read_known_tasks, ada_build_task_list, short_task_info)
2626 (info_tasks, info_task, info_tasks_command, task_command_1)
2627 (task_command, ada_task_list_changed): Adjust.
2628 (ada_tasks_invalidate_inferior_data): New function.
2629 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2630 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2631 * ada-lang.h (struct inferior): Add declaration.
2632 (ada_task_list_changed): Update profile.
2633 * remote-wtx-pd.c: #include "inferior.h".
2634 (switch_to_pd_internal): Update call to ada_task_list_changed.
2635
6da9ca05
JB
26362011-09-16 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2639 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2640 (atcb_fieldno): Delete these static globals.
2641 (struct ada_tasks_pspace_data): New struct.
2642 (ada_tasks_pspace_data_handle): New static global.
2643 (get_ada_tasks_pspace_data): New function.
2644 (ada_tasks_invalidate_pspace_data): New function.
2645 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2646 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2647 (_initialize_tasks): Create this module's per-progspace
2648 data handle.
2649
dccd3cbd
JB
26502011-09-16 Joel Brobecker <brobecker@adacore.com>
2651
2652 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2653
f877b031
TG
26542011-09-16 Tristan Gingold <gingold@adacore.com>
2655
2656 * fork-child.c (fork_inferior): Update comment. Use alloca
2657 instead of xmalloc for argv. Move len and shell_command
2658 declarations in the block where they are used.
2659 Only call execvp. Factorize failure code.
2660
ae0c443d
JK
26612011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2662
2663 Code cleanup.
2664 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2665 `exp_element' instead of an element of the same and make the function
2666 static.
2667 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2668 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2669 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2670 Change argument of `write_exp_elt' function call.
2671 Remove extra spaces from comments.
2672 * parser-defs.h (write_exp_elt): Remove prototype.
2673
5af65ec0
PK
26742011-09-15 Paul Koning <paul_koning@dell.com>
2675
2676 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2677 count of item appended to list.
2678 * python/py-type.c (typy_fields): Likewise.
2679
72be8ccc
PK
26802011-09-15 Paul Koning <paul_koning@dell.com>
2681
883640a8 2682 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2683
92f6badc
KP
26842011-09-15 Kevin Pouget <kevin.pouget@st.com>
2685
2686 PR threads/12628
2687 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2688 processes with multiple threads.
2689 (inf_has_multiple_thread_cb): New function.
2690 (inf_has_multiple_threads): New function.
2691
0672bf41 26922011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2693
2694 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2695 * python/py-inferior.c (GdbMethods): New Python method definition.
2696
6839b47f
KP
26972011-09-15 Kevin Pouget <kevin.pouget@st.com>
2698
2699 Handle multiple breakpoint hits in Python interface:
2700 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2701 variable to breakpoints.
2702 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2703 bps instead of single breakpoint. Fix some space typos.
2704 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2705 variable to breakpoints.
2706
672f9b60
KP
27072011-09-15 Kevin Pouget <kevin.pouget@st.com>
2708
2709 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2710 note if the breakpoint is internal.
2711
43675ae4
KP
27122011-09-15 Kevin Pouget <kevin.pouget@st.com>
2713
0672bf41 2714 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2715
15148d6a
PA
27162011-09-14 Pedro Alves <pedro@codesourcery.com>
2717
2718 * infrun.c (prepare_for_detach, wait_for_inferior)
2719 (fetch_inferior_event): Don't flush the register cache.
2720 * remote.c (struct stop_reply) <regcache>: Add comment.
2721
d83e736b
JK
27222011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2723
2724 Remove excessive DWARF expressions memory duplication.
2725 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2726 for block.data.
2727 (indirect_pieced_value): Remove variable result. Remove variable
2728 back_to and its use for baton.data.
2729 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2730 block.data.
2731 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2732 Update the function comment.
2733
c65b3e0d
PA
27342011-09-13 Pedro Alves <pedro@codesourcery.com>
2735
2736 * inferior.h (ALL_INFERIORS): New.
2737 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2738 for a stopped thread.
2739 (thread_db_find_new_threads): Look for threads in all inferiors.
2740
a1398e0c
PA
27412011-09-13 Pedro Alves <pedro@codesourcery.com>
2742
2743 * breakpoint.c (update_watchpoint): Handle the case of the
2744 watchpoint to update not being in the breakpoint list yet.
2745 (hw_watchpoint_use_count): New, factored out from
2746 hw_watchpoint_used_count.
2747 (hw_watchpoint_used_count): Rename to ...
2748 (hw_watchpoint_used_count_others): ... this. Add `except'
2749 parameter. Don't count resources of `except'. Use
2750 hw_watchpoint_use_count.
2751
30596231
PA
27522011-09-13 Pedro Alves <pedro@codesourcery.com>
2753
2754 * gdbthread.h (enum thread_state): Moved here.
2755 (struct thread_info): Rename `executing_' field to `executing' and
2756 `state_' to `state'.
2757 * thread.c (enum thread_state): Moved to gdbthread.h.
2758 (new_thread, add_thread_silent, delete_thread_1)
2759 (any_live_thread_of_process, thread_alive, set_running)
2760 (set_running, is_thread_state, any_running, is_executing)
2761 (set_executing, finish_thread_state, print_thread_info)
2762 (do_captured_thread_select): Adjust.
2763
bede5f5f
JK
27642011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2767 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2768
4801a9a3
PA
27692011-09-12 Pedro Alves <pedro@codesourcery.com>
2770 Matt Rice <ratmice@gmail.com>
2771
2772 PR gdb/13175
2773
2774 * interps.c (struct interp) <interpreter_out>: Delete field.
2775 (interp_new): Remove the data and uiout parameters and adjust.
2776 (interp_set): Only set the current_uiout from the interpreter's
2777 uiout after initializing the interpreter. Adjust call to
2778 init_proc.
2779 (interp_ui_out): Adjust to call procs->ui_out_proc.
2780 (interp_data, interp_name): New.
2781 * interps.h (interp_init_ftype): Add `self' parameter.
2782 (interp_ui_out_ftype): New typedef.
2783 (struct interp_procs) <ui_out_proc>: New method pointer.
2784 (interp_new): Remove the data and uiout parameters.
2785 (interp_data, interp_name): Declare.
2786 * tui/tui-interp.c (tui_init): Adjust prototype.
2787 (tui_ui_out): New.
2788 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2789 tui_out here. Adjust call to interp_new.
2790 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2791 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2792 (cli_ui_out): New.
2793 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2794 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2795 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2796 Initialize mi->uiout depending on the mi_version as extracted from
2797 the interpreter's name.
2798 (mi_ui_out): New.
2799 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2800 interp_new. Don't allocate the ui_out's of the interpreters here.
2801
d0afda03 28022011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2803
d0afda03 2804 * solib.c (solib_used): New function.
59145f8c
AR
2805 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2806 by another so_list object before freeing it.
2807
bdaf8d4a
JK
28082011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2809
2810 Code cleanup.
2811 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2812 values.
2813
df15bd07
JK
28142011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2815
2816 Code cleanup.
2817 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2818 (amd64_skip_xmm_prologue): ... this new function. Describe its
2819 parameters. No longer use amd64_prologue_line_bug.
2820 * defs.h (producer_is_gcc_ge_4): New declaration.
2821 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2822 (process_full_comp_unit): Update its caller. Remove
2823 amd64_prologue_line_bug initialization.
2824 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2825 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2826
25289eb2
PA
28272011-09-09 Pedro Alves <pedro@codesourcery.com>
2828
2829 * linux-nat.h (enum resume_kind): New.
2830 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2831 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2832 resume_stop on the new lwp.
25289eb2
PA
2833 (add_lwp): Set last_resume_kind as resume_continue by default.
2834 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2835 (resume_lwp): New, factored out from resume_callback. Also check
2836 for pending status in lp->waitstatus.
2837 (resume_callback): Reimplement.
2838 (resume_clear_callback): Set last_resume_kind as resume_stop.
2839 (resume_set_callback): Set last_resume_kind as resume_continue.
2840 (linux_nat_resume, linux_handle_extended_wait): Set
2841 last_resume_kind.
2842 (running_callback): Also check lp->waitstatus for pending events.
2843 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2844 is resume_step.
2845 (stop_and_resume_callback): Don't re-resume if the core wanted the
2846 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2847 using an invalidated pointer.
2848 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2849 SIGSTOPs if the core wanted the LWP to stop.
2850 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2851 wanted the lwp to stop. If the core wanted the lwp to stop, and
2852 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2853 of TARGET_SIGNAL_STOP.
2854 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2855 here. Instead, signal the lwp, and set the last_resume_kind to
2856 resume_stop.
2857
f687d035
PA
28582011-09-09 Pedro Alves <pedro@codesourcery.com>
2859
2860 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2861 -1 (error), if the lwp exits right after attaching.
2862
bc587a6b
DE
28632011-09-08 Doug Evans <dje@google.com>
2864
63d97a20
DE
2865 * py-cmd.c: Some minor formatting fixes.
2866 (gdbpy_parse_command_name): Rename text arg to name, make const.
2867 All callers updated.
2868 * python-internal.h (gdbpy_parse_command_name): Update.
2869
bc587a6b
DE
2870 * cli/cli-decode.c (add_cmd): Add comment.
2871
08711b9a
JK
28722011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2873
2874 PR breakpoints/12435
2875 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2876 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2877 * dwarf2read.c (process_full_comp_unit): Initialize
2878 amd64_prologue_line_bug.
2879 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2880
b2e7f004
JK
28812011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 Fix TUI screen corruption.
2884 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2885 batch_flag.
2886
8afd712c
JK
28872011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2888
2889 * findvar.c (read_var_value): Never return NULL, throw an error
2890 instead. Update the function comment. State symbol name in the error
2891 messages.
2892 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2893 read_var_value.
2894 * stack.c (print_frame_args): Likewise.
2895 * valops.c (value_of_variable): Likewise.
2896
b99b5f66
JK
28972011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 * stack.c (print_frame_args): New variable except. Wrap
2900 read_var_value and common_val_print into TRY_CATCH.
2901
85bc8cb7
JK
29022011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2903
2904 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2905 caller to value_of_this.
2906 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2907 Twice.
2908 * valops.c (value_of_this): Remove parameter complain and variable ret.
2909 Update function comment. Never return NULL by this code.
2910 (value_of_this_silent): New function.
2911 * value.h (value_of_this): Remove parameter complain.
2912 (value_of_this_silent): New declaration.
2913
ede1849f
YQ
29142011-09-07 Yao Qi <yao@codesourcery.com>
2915
2916 * gdbthread.h (struct thread_info): Remove fields
2917 `stepping_through_solib_after_catch' and
2918 `stepping_through_solib_catchpoints'.
2919 * infrun.c (init_thread_stepping_state): Update.
2920 (process_event_stop_test, currently_stepping): Update.
2921 (currently_stepping_or_nexting_callback): Update.
2922
6aa27652
YQ
29232011-09-07 Yao Qi <yao@codesourcery.com>
2924
2925 * gdbthread.h (struct thread_info): Comment on field
2926 `step_after_step_resume_breakpoint'.
2927
00db5b94
PA
29282011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2929
2930 * remote.c (remote_console_output): Reindent.
2931
861152be
LM
29322011-09-06 Luis Machado <lgustavo@codesourcery.com>
2933
2934 * frame.c (has_stack_frames): Check for currently selected
2935 traceframe.
2936
ab821bc6
PA
29372011-09-06 Pedro Alves <pedro@codesourcery.com>
2938
2939 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2940 (set_async_annotation_level, set_async_prompt, pop_prompt)
2941 (push_prompt, new_async_prompt): Delete declarations.
2942 * top.h (get_prompt, set_prompt): Change prototype.
2943 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2944 declarations.
2945 * top.c (command_loop):
2946 (top_prompt): New global.
2947 (get_prefix, set_prefix, get_suffix, ): Delete.
2948 (get_prompt, set_prompt): Rewrite.
2949 (show_new_async_prompt): Rename to ...
2950 (show_prompt): ... this.
2951 (init_main): Adjust. Don't handle --annotate=2 here.
2952 * event-top.c (new_async_prompt): Delete.
2953 (the_prompts): Delete.
2954 (more_to_come): Make static.
2955 (display_gdb_prompt): Use top_level_prompt() to compute the top
2956 level prompt, and don't notify the before_prompt observers
2957 directly here. Always trick readline into not trying to display
2958 the prompt if sync_execution and displaying the primary prompt.
2959 If displaying a local/secondary prompt, always show it, even if
2960 sync_execution is set.
2961 (change_annotation_level): Delete.
2962 (top_level_prompt): New, based on change_annotation_level.
2963 (push_prompt, pop_prompt): Delete.
2964 (async_disable_stdin): No longer pushes prompt.
2965 (command_line_handler): No longer pushes or pops prompt. If more
2966 input is expected, call display_gdb_prompt with an explicit empty
2967 prompt.
2968 (async_stop_sig): Adjust.
2969 (set_async_annotation_level, set_async_prompt): Delete.
2970 * python/python.c (before_prompt_hook): Adjust.
2971
f1d90504
PA
29722011-09-05 Pedro Alves <pedro@codesourcery.com>
2973
2974 PR cli/13110
2975
2976 * infrun.c (fetch_inferior_event): Check if there's a selected
2977 thread before checking if the selected thread is executing.
2978
0f641c01
PA
29792011-09-05 Pedro Alves <pedro@codesourcery.com>
2980
2981 * inf-loop.c (execute_command): Don't check if the current thread
2982 if running before synchronously waiting for command completion.
2983 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2984 here.
2985 (normal_stop): Call async_enable_stdin here.
2986 * inf-loop.c (inferior_event_handler): Don't call
2987 async_enable_stdin, nor handle "set exec-done-display" here.
2988
30368258 29892011-09-04 Joel Brobecker <brobecker@adacore.com>
2990
2991 GDB 7.3.1 released.
2992
31916278
JB
29932011-09-04 Joel Brobecker <brobecker@adacore.com>
2994
2995 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2996
e8d56f18
JB
29972011-09-04 Joel Brobecker <brobecker@adacore.com>
2998
2999 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3000
5dd05d8c
JK
30012011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3002
3003 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3004
7d8e6458 30052011-09-02 Matt Rice <ratmice@gmail.com>
3006
3007 PR gdb/10720
3008 * event-top.c (cli_command_loop): Replace readline setup with
3009 direct call to display_gdb_prompt.
3010 (display_gdb_prompt): Do not call observer mechanism during
3011 synchronous execution.
3012
84636d28
PA
30132011-09-02 Pedro Alves <pedro@codesourcery.com>
3014
3015 * linux-nat.c (in_pid_list_p): New.
3016 (linux_record_stopped_pid): Delete.
3017 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3018 already attached to the LWP. Return an indication if so.
3019 (linux_nat_filter_event): Adjust.
3020 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3021 returning an indication to ignore this thread.
3022
b4a14fd0
PA
30232011-09-02 Pedro Alves <pedro@codesourcery.com>
3024
3025 * top.c: Include interps.h.
3026 (execute_command): If the target can async, but the interpreter is
3027 in sync mode, synchronously wait for the command to finish before
3028 returning.
3029 (execute_command_to_string): Force the interpreter to sync mode.
3030 * infrun.c: Include interps.h.
3031 (fetch_inferior_event): Don't restore the prompt yet if the
3032 interpreter is in sync mode.
3033 * interps.c (interpreter_async): New global.
3034 * interps.h (interpreter_async): Declare.
3035 * inf-loop.c: Include interps.h.
3036 (inferior_event_handler): Don't print the language change or run
3037 breakpoint commands yet if the interpreter in is sync mode.
3038 * main.c (captured_command_loop): Flip the interpreter to async
3039 mode.
3040 * cli/cli-script.c: Include interps.h.
3041 (execute_user_command, while_command, if_command): Force the
3042 interpreter to sync mode.
3043 * python/python.c: Include interps.h.
3044 (python_command, execute_gdb_command): Force the interpreter to
3045 sync mode.
3046
c709acd1
PA
30472011-09-02 Pedro Alves <pedro@codesourcery.com>
3048
3049 * value.c (show_convenience): Catch errors thrown while printing
3050 each internal variable.
3051 * infrun.c (validate_siginfo_access): New function.
3052 (siginfo_value_read, siginfo_value_write): Call it.
3053
9655e943
JK
30542011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3055
3056 Revert:
3057 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3058 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3059 attribute.
3060
cb457ae2
YQ
30612011-08-29 Yao Qi <yao@codesourcery.com>
3062
3063 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3064 (cmp_name): New.
3065 (enable_break2): Update caller.
3066 * solib-frv.c (bfd_lookup_symbol): Removed.
3067 (cmp_name): New.
3068 (enable_break2): Update caller.
3069 * solib-pa64.c (bfd_lookup_symbol): Removed.
3070 (cmp_name): New.
3071 * solib-svr4.c (bfd_lookup_symbol): Removed.
3072 (cmp_name_and_sec_flags): New.
3073 (enable_break): Update caller.
3074 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3075 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3076 (gdb_bfd_lookup_symbol): New.
3077 * solib.h: Functions declarations.
3078
83d1a36a
YQ
30792011-08-29 Yao Qi <yao@codesourcery.com>
3080
3081 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3082 and solib-dsbt.o.
3083
c04b3e8f
JK
30842011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 Fix TUI stepi on code without symbols.
3087 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3088 current PC instead.
3089
cb0fd152
JK
30902011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3091
3092 Code cleanup.
3093 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3094 and the static keyword.
3095 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3096 Make prefix an array.
3097 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3098 * mi/mi-main.c (get_register): Remove stb initialization and the static
3099 keyword.
3100
91174723
JK
31012011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3102
3103 Code cleanup - make mi_opt const.
3104 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3105 opts const.
3106 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3107 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3108 (mi_cmd_env_dir): Likewise.
3109 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3110 (mi_cmd_target_file_put): Likewise.
3111 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3112 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3113 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3114 (mi_valid_noargs): Make opts const.
3115 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3116 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3117 (mi_cmd_data_read_memory): Likewise.
3118 (mi_cmd_data_read_memory_bytes): Likewise.
3119 (mi_cmd_data_write_memory): Likewise.
3120
5068b8e8 31212011-08-26 Matt Rice <ratmice@gmail.com>
3122
3123 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3124 bcache_xmalloc, replace bcache_xmalloc with call to
3125 psymbol_bcache_init for psymbol_cache.
3126 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3127
a4f2ce05
JK
31282011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3129
3130 * inf-loop.c (inferior_event_handler): Add exception_print in
3131 INF_EXEC_COMPLETE.
3132
353d1d73
JK
31332011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3136 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3137 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3138 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3139 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3140 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3141 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3142 * infrun.c (fetch_inferior_event): Call
3143 make_bpstat_clear_actions_cleanup.
3144 * top.c (execute_command): New variable cleanup_if_error, call
3145 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3146 * utils.c (do_bpstat_clear_actions_cleanup)
3147 (make_bpstat_clear_actions_cleanup): New functions.
3148
3ced3da4
PA
31492011-08-26 Pedro Alves <pedro@codesourcery.com>
3150
3151 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3152 either the parent or the child forks. Rename a couple locals.
3153
a9f4bb21
PA
31542011-08-26 Pedro Alves <pedro@codesourcery.com>
3155
3156 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3157 library call. Avoid reading the `status' local if all waitpid
3158 calls failed.
3159
e5798bef
PA
31602011-08-26 Pedro Alves <pedro@codesourcery.com>
3161
3162 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3163 opening /proc/PID/task always succeeds.
3164
edb2aadf
AR
31652011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3166
3167 * linespec.c (symtab_from_filename): Check for the end of string.
3168
0d932b2f
MK
31692011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3170
3171 PR mi/11912
3172 * varobj.c (cplus_describe_child): Add the keyword
3173 'class' to the output of the method when dealing
3174 with a cast to a base class.
3175
e93ca019
JK
31762011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3177
3178 No functionality change.
3179 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3180 function comment a reference, new variables tp and bs, move here code
3181 from throw_exception.
3182 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3183 describe it in the comment.
3184 * exceptions.c (throw_exception): Remove variable tp, move the code for
3185 bpstat_clear_actions to bpstat_clear_actions.
3186
13da1c97
LM
31872011-08-24 Luis Machado <lgustavo@codesourcery.com>
3188
3189 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3190 * linux-nat.c: Include linux-procfs.h.
3191 (linux_proc_get_tgid): Move to ...
3192 * common/linux-procfs.c: ... here. New file.
3193 * common/linux-procfs.h: New file.
3194 * linux-thread-db.c: Include linux-procfs.h.
3195 * Makefile.in: Update dependencies.
3196 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3197 * config/arm/linux.mh: Likewise.
3198 * config/i386/linux.mh: Likewise.
3199 * config/i386/linux64.mh: Likewise.
3200 * config/ia64/linux.mh: Likewise.
3201 * config/m32r/linux.mh: Likewise.
3202 * config/m68k/linux.mh: Likewise.
3203 * config/mips/linux.mh: Likewise.
3204 * config/pa/linux.mh: Likewise.
3205 * config/pa/linux.mh: Likewise.
3206 * config/powerpc/linux.mh: Likewise.
3207 * config/powerpc/ppc64-linux.mh: Likewise.
3208 * config/powerpc/spu-linux.mh: Likewise.
3209 * config/sparc/linux.mh: Likewise.
3210 * config/sparc/linux64.mh: Likewise.
3211 * config/xtensa/linux.mh: Likewise.
3212
4e5c165d
HZ
32132011-08-24 Hui Zhu <teawater@gmail.com>
3214
3215 * tracepoint.c (cond_string_is_same): New function.
3216 (find_matching_tracepoint): Add condition check
3217 by cond_string_is_same.
3218
6e2f5b22
JK
32192011-08-23 Josh Matthews <josh@joshmatthews.net>
3220
3221 Fix build error in Darwin port.
3222 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3223
abf85f46
JK
32242011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 Code cleanup.
3227 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3228 (command_line_is_silent): New function.
3229 (bpstat_do_actions_1): No longer use commands_left, use
3230 command_line_is_silent for commands.
3231 (bpstat_alloc): Remove clearing of commands_left.
3232 (bpstat_stop_status): Remove initialization of commands_left, use
3233 command_line_is_silent.
3234 * breakpoint.h (struct bpstats): Remove commands_left.
3235
3a93a0c2
KS
32362011-08-18 Keith Seitz <keiths@redhat.com>
3237
3238 PR c++/12266
3239 * cp-name-parser.y (struct demangle_info): Remove unused
3240 member PREV.
3241 (d_grab): Likewise.
3242 (allocate_info): Change return type to struct demangle_info *.
3243 Always allocate a new demangle_info.
3244 Remove unused PREV pointer.
3245 (cp_new_demangle_parse_info): New function.
3246 (cp_demangled_name_parse_free): New function.
3247 (do_demangled_name_parse_free_cleanup): New function.
3248 (make_cleanup_cp_demangled_name_parse_free): New function.
3249 (cp_demangled_name_to_comp): Change return type to
3250 struct demangle_parse_info *.
3251 Allocate a new storage for each call.
3252 (main): Update usage for cp_demangled_name_to_comp
3253 API change.
3254 * cp-support.h (struct demangle_parse_info): New structure.
3255 (cp_demangled_name_to_comp): Update API change for
3256 return type.
3257 (cp_new_demangle_parse_info): Declare.
3258 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3259 (cp_demangled_name_parse_free): Declare.
3260 * cp-support.c (cp_canonicalize_string): Update API
3261 change for cp_demangled_name_to_comp.
3262 (mangled_name_to_comp): Likewise.
3263 Return struct demangle_parse_info, too.
3264 (cp_class_name_from_physname): Update mangled_name_to_comp
3265 API change.
3266 (method_name_from_physname): Likewise.
3267 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3268 (cp_remove_params): Likewise.
3269 * python/py-type.c (typy_legacy_template_argument): Likewise.
3270
3271 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3272 (cp_merge_demangle_parse_infos): Declare.
3273 * cp-support.c (ignore_typedefs): New file global.
3274 (copy_string_to_obstack): New function.
3275 (inspect_type): New function.
3276 (replace_typedefs): New function.
3277 (replace_typedefs_qualified_name): New function.
3278 (cp_canonicalize_string_no_typedefs): New function.
3279 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3280 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3281 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3282 instead of cp_canonicalize_string.
3283 (find_method): Likewise.
3284 (decode_compound): Before looking up the name, call
3285 cp_canonicalize_string_no_typedefs.
3286 (decode_variable): Likewise.
3287
fa3a4f15
PM
32882011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3289 Tom Tromey <tromey@redhat.com>
3290 Matt Rice <ratmice@gmail.com>
3291
3292 * python/lib/gdb/prompt.py: New file.
3293 * python/lib/gdb/command/prompt.py: New file.
3294 * NEWS: Document set extended-prompt and gdb.prompt library
3295
85661b1e
YQ
32962011-08-16 Yao Qi <yao@codesourcery.com>
3297
3298 * tic6x-linux-tdep.c: Move const arrays definition from here...
3299 * tic6x-tdep.c: to here ...
3300
11315641
YQ
33012011-08-14 Yao Qi <yao@codesourcery.com>
3302
3303 * NEWS: New port to Texas Instruments TMS320C6x.
3304
8cd64e00
YQ
33052011-08-14 Andrew Jenner <andrew@codesourcery.com>
3306 Bernd Schmidt <bernds@codesourcery.com>
3307 Yao Qi <yao@codesourcery.com>
3308
3309 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3310 * solib-dsbt.c: New file. Support DSBT shared object.
3311 * tic6x-linux-tdep.c: New file.
3312 * tic6x-tdep.c: New file.
3313 * tic6x-tdep.h: New file.
3314
78d85199
YQ
33152011-08-14 Andrew Stubbs <ams@codesourcery.com>
3316 Yao Qi <yao@codesourcery.com>
3317
3318 * remote.c (PACKET_qXfer_fdpic): New enum value.
3319 (remote_protocol_features): Add qXfer:fdpic:read packet.
3320 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3321 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3322 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3323
224bbe49
YQ
33242011-08-14 Yao Qi <yao@codesourcery.com>
3325
3326 Target description for tic6x.
3327 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3328 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3329 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3330 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3331 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3332 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3333 * features/tic6x-c64xp-linux.xml: New.
3334 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3335 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3336 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3337 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3338 * regformats/tic6x-c64xp.dat,
3339 regformats/tic6x-c62x-linux.dat: Generated.
3340 * regformats/tic6x-c64x-linux.dat,
3341 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3342 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3343 features/tic6x-*.c files.
3344 Add regformats/tic6x-*.dat files.
3345
457e09f0
DE
33462011-08-12 Doug Evans <dje@google.com>
3347
3348 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3349 * python/py-symbol.c (sympy_get_type): New function.
3350 (symbol_object_getset): Add "type".
3351
d20c1c3f
PA
33522011-08-12 Pedro Alves <pedro@codesourcery.com>
3353
3354 PR tui/13073
3355
3356 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3357 empty name.
3358 (tui_show_register_group): Don't store a byte buffer in the data
3359 element's value.
3360 (tui_register_format): Skip registers with an empty name.
3361 (tui_get_register): Store a struct value in the data element's
3362 value field instead of a byte buffer holding the raw register
3363 contents. Account for optimized-out and unavailable registers
3364 when comparing register contents.
3365
9d8fa392
PA
33662011-08-09 Pedro Alves <pedro@codesourcery.com>
3367
3368 * printcmd.c (current_display_number): Update comment.
3369 (disable_current_display_cleanup): Delete.
3370 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3371 catch errors thrown while evaluating and printing the display.
3372
401a70b8
TT
33732011-08-09 Tom Tromey <tromey@redhat.com>
3374
3375 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3376
7f86f058
PA
33772011-08-09 Pedro Alves <pedro@codesourcery.com>
3378
94b71cca 3379 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3380 * maint.c (maintenance_command): Ditto.
3381 * somread.c (som_symtab_read): Ditto.
3382 * solib.c (solib_find, solib_map_sections, update_solib_list)
3383 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3384 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3385 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3386 * solib-irix.c (locate_base, disable_break, enable_break)
3387 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3388 (irix_current_sos, irix_open_symbol_file_object)
3389 (irix_special_symbol_handling): Ditto.
3390 * solib-sunos.c (locate_base, first_link_map_member)
3391 (sunos_current_sos, disable_break, enable_break)
3392 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3393 Ditto.
3394 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3395 (open_symbol_file_object, svr4_current_sos, enable_break)
3396 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3397 Ditto.
3398 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3399 (frv_current_sos, enable_break, frv_special_symbol_handling)
3400 (frv_solib_create_inferior_hook): Ditto.
3401 * solist.h (struct target_so_ops): Extend the comments of the
3402 special_symbol_handling, current_sos and open_symbol_file_object
3403 methods.
3404
5e239b84
PM
34052011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3406
3407 * python/lib/gdb/__init__.py: Auto-load files in command and
3408 function directories.
3409 * python/python.c (finish_python_initialization): Use
3410 os.path.join.
3411 * python/lib/gdb/command/pretty_printers.py: Self register
3412 command.
3413 * NEWS: Document auto-loading.
3414
b6cede78
JK
34152011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3418 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3419 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3420
29d0bb3d
TT
34212011-08-08 Tom Tromey <tromey@redhat.com>
3422
3423 * breakpoint.c (clean_up_filters): Remove.
3424 (catch_syscall_split_args): Use VEC_cleanup.
3425
2f7fb8e4
JK
34262011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3429 (main): Uncomment "Demangling error\n".
3430
d6c10e95
PP
34312011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3432
3433 * solib-target.c (segment_attributes): Make them static.
3434 (section_attributes, library_children, library_attributes): Likewise.
3435 (library_list_children, library_list_attributes): Likesise.
3436 (library_list_elements): Likewise.
3437
af6e93b2
PA
34382011-08-05 Pedro Alves <pedro@codesourcery.com>
3439
3440 * exceptions.c (throw_exception): Don't disable the current
3441 display.
3442 * printcmd.c (disable_current_display_cleanup): New function.
3443 (do_one_display): Install a cleanup to disable the current display
3444 if doing the display throws.
3445
6a1b1664
EZ
34462011-08-05 Eli Zaretskii <eliz@gnu.org>
3447
3448 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3449 initialization of the tp_new member to the corresponding
3450 gdbpy_initialize_* function.
3451 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3452 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3453 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3454 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3455 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3456
31a0ae49
JK
34572011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3460 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3461 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3462 references to current_uiout.
3463
e0dd0826
PA
34642011-08-04 Pedro Alves <pedro@codesourcery.com>
3465
3466 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3467 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3468 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3469 * top.c (gdb_readline_wrapper): Adjust.
3470 * tui/tui-interp.c (tui_command_loop):
3471 (_initialize_tui_interp): Don't install it.
3472
79a45e25
PA
34732011-08-04 Pedro Alves <pedro@codesourcery.com>
3474
3475 * ui-out.h (uiout): Rename to ...
3476 (current_uiout): ... this.
3477 * ui-out.c (uiout): Rename to ...
3478 (current_uiout): ... this.
3479 * ada-lang.c (print_it_exception, print_one_exception)
3480 (print_mention_exception): Adjust.
3481 * breakpoint.c (watchpoint_check): Adjust.
3482 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3483 (default_collect_info, watchpoints_info, print_one_catch_fork)
3484 (print_one_catch_vfork, print_one_catch_syscall)
3485 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3486 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3487 (print_it_watchpoint, print_mention_watchpoint)
3488 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3489 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3490 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3491 (bkpt_print_mention, momentary_bkpt_print_it)
3492 (tracepoint_print_mention, update_static_tracepoint)
3493 (tracepoints_info, save_breakpoints): Adjust.
3494 * cli-out.c (field_separator): Adjust.
3495 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3496 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3497 * frame.c (get_current_frame): Adjust.
3498 * infcmd.c (run_command_1, print_return_value): Adjust.
3499 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3500 * infrun.c (print_end_stepping_range_reason): Adjust.
3501 (print_signal_exited_reason, print_exited_reason): Adjust.
3502 (print_signal_received_reason, print_no_history_reason): Adjust.
3503 * interps.c (interp_set): Adjust.
3504 * osdata.c (info_osdata_command): Adjust.
3505 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3506 * remote-fileio.c (remote_fileio_request): Adjust.
3507 * remote.c (show_remote_cmd): Adjust.
3508 * solib.c (info_sharedlibrary_command): Adjust.
3509 * source.c (print_source_lines_base): Adjust.
3510 * stack.c (print_stack_frame): Adjust.
3511 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3512 * symfile-mem.c (add_vsyscall_page): Adjust.
3513 * symfile.c (load_progress, generic_load)
3514 (print_transfer_performance): Adjust.
3515 * thread.c (info_threads_command, restore_selected_frame)
3516 (thread_command): Adjust.
3517 * top.c (make_cleanup_restore_ui_file): Adjust.
3518 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3519 (print_one_static_tracepoint_marker): Adjust.
3520 * cli/cli-cmds.c (print_disassembly): Adjust.
3521 * cli/cli-decode.c (print_doc_line): Adjust.
3522 * cli/cli-interp.c (safe_execute_command): Adjust.
3523 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3524 (handle_redirections): Adjust.
3525 * cli/cli-script.c (show_user_1): Adjust.
3526 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3527 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3528 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3529 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3530 (mi_cmd_env_dir): Adjust.
3531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3532 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3533 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3534 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3535 (list_args_or_locals): Adjust.
3536 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3537 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3538 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3539 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3540 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3541 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3542 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3543 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3544 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3545 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3546 (list_available_thread_groups, mi_cmd_list_thread_groups)
3547 (mi_cmd_data_list_register_names)
3548 (mi_cmd_data_list_changed_registers)
3549 (mi_cmd_data_list_register_values, get_register)
3550 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3551 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3552 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3553 (mi_execute_command, mi_load_progress): Adjust.
3554 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3555 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3556 Adjust.
3557 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3558 * tui/tui-interp.c (tui_command_loop): Adjust.
3559 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3560
f9679975
PA
35612011-08-04 Pedro Alves <pedro@codesourcery.com>
3562
3563 * exceptions.c (struct catcher): Remove saved_uiout field.
3564 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3565 no longer save/resvore the global ui_out builder.
3566 (catch_exceptions_with_msg): Save/override/restore the global
3567 ui_out builder manually instead of relying on TRY_CATCH to do it.
3568 (catch_errors): Save/restore the global ui_out builder manually
3569 instead of relying on TRY_CATCH to do it.
3570 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3571 parameter.
3572 (TRY_CATCH): Adjust.
3573 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3574 the global ui_out builder manually instead of relying on TRY_CATCH
3575 to do it.
3576
934709f0
PW
35772011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3578
3579 * breakpoint.c (update_global_location_list): Ensure
3580 invariant 'first loc marked not duplicated and inserted,
3581 following locs marked duplicated/not inserted' is respected
3582 for multiple locations at the same address.
3583 (unduplicated_should_be_inserted) New function.
3584 (swap_insertion) New function.
3585
2421fe6f
JK
35862011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3587
3588 * stack.c (print_frame_arguments_choices): Comment typo fix.
3589
3fbb6ffa
TJB
35902011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3591
3592 Revert:
3593 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3594 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3595 argument. Update callers.
3596
fbe12357
PP
35972011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3598
3599 PR gdb/13045
3600 * doublest.c (convert_doublest_to_floatformat): Pass correct
3601 mantissa length to put_field.
3602
b1d288d3
JK
36032011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3604
3605 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3606 exception_print code path.
3607 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3608 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3609 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3610
311b5970
JK
36112011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3612
3613 Code cleanup.
3614 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3615 Remove, merge them into ...
3616 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3617 variable args and its initialization.
3618 (struct print_args_args, print_args_stub): Remove, merge them into
3619 print_frame.
3620 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3621 them into ...
3622 (do_gdb_disassembly): ... here. Remove variable args and its
3623 initialization.
3624 (print_frame): Remove variable args and its initialization, new
3625 variable gdbarch and numargs (from print_args_stub), inline here
3626 print_args_stub with a TRY_CATCH.
3627 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3628 them into ...
3629 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3630 New variable e, remove variable btargs and its initialization.
311b5970 3631
484a26a8
TG
36322011-08-01 Tristan Gingold <gingold@adacore.com>
3633
3634 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3635
c30eee59
TJB
36362011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3637
3638 * breakpoint.c (insert_bp_location): Document return value.
3639 (insert_breakpoint_locations): Fix documentation.
3640 (remove_breakpoints): Add documentation.
3641
f116073b
TJB
36422011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3643
3644 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3645 argument. Update callers.
3646
65aa373f
JK
36472011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 * stack.c (print_frame_info): Comment typo fix.
3650
a50242fb
SA
36512011-07-29 Sterling Augustine <saugustine@google.com>
3652
3653 * MAINTAINERS (Write After Approval): Add myself to the list.
3654
267f6504
TT
36552011-07-29 Tom Tromey <tromey@redhat.com>
3656
3657 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3658 (library_list_start_segment): Update.
3659 (library_list_start_section): Update.
3660
00bd41d6
PM
36612011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3662
3663 * varobj.c (value_get_print_value): Move hint check later into the
3664 function. Comment function. Free thevalue before reusing it.
3665
18a46dbe
JK
36662011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 Pedro Alves <pedro@codesourcery.com>
3668
3669 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3670 value_one.
3671 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3672 Assert the result kind.
3673 * value.h (value_one): Remove parameter lv.
3674
bb7da2bf
JK
36752011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3676
3677 Fix crash on lval_computed values.
3678 * valops.c (value_zero): Use not_lval for lval_computed.
3679
2d5213f8
TT
36802011-07-27 Tom Tromey <tromey@redhat.com>
3681
3682 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3683 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3684
11081198
JK
36852011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3686
3687 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3688 "ptype" by their typedefs difference.
3689
3c6e0cb3
JK
36902011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 * dwarf2expr.c (ctx_no_read_reg): New function.
3693 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3694 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3695 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3696 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3697
523f3620
JK
36982011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3699
3700 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3701 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3702 file.
3703 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3704 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3705 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3706 (ctx_no_get_base_type): Move the functions here.
3707 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3708 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3709 (ctx_no_get_base_type): New declarations.
3710
24d3216f
TT
37112011-07-27 Tom Tromey <tromey@redhat.com>
3712
3713 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3714 entries.
3715 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3716 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3717
5005c8a9
PP
37182011-07-26 Sterling Augustine <saugustine@google.com>
3719
3720 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3721 ULONGEST.
3722 (dump_bfd_file): Likewise.
3723
480a3f21
PW
37242011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3725
3726 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3727 (remote_hw_watchpoint_length_limit): New variable.
3728 (_initialize_remote) add set,show cmds for this new variable.
3729 * gdb.texinfo: document these new commands.
3730 * NEWS: Mention these new commands.
3731
efa80663
PA
37322011-07-26 Pedro Alves <pedro@codesourcery.com>
3733
3734 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3735 true for software watchpoints.
3736
dbdaa232 37372011-07-26 Joel Brobecker <brobecker@adacore.com>
3738
3739 GDB 7.3 released.
3740
cf2c3c16
TT
37412011-07-26 Tom Tromey <tromey@redhat.com>
3742
3743 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3744 * dwarf2read.c (read_indirect_string_at_offset): New function.
3745 (read_indirect_string): Use it.
3746 (dwarf_decode_macro_bytes): New function, taken from
3747 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3748 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3749 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3750 New functions.
3751 (struct dwarf2_per_objfile) <macro>: New field.
3752 (dwarf2_elf_names): Add .debug_macro.
3753 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3754 (dwarf2_locate_sections): Handle new section.
3755 (read_file_scope): Handle DW_AT_GNU_macros.
3756 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3757
1a532630
PP
37582011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3759
3760 * NEWS: Mention dcache configuration.
3761 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3762 (dcache_size, dcache_line_size): New variables.
3763 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3764 (struct dcache_block): Make it expandable.
3765 (struct dcache_struct): New field.
3766 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3767 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3768 (dcache_poke_byte, dcache_print_line): Adjust.
3769 (set_dcache_size, set_dcache_line_size): New functions.
3770 (set_dcache_command, show_dcache_command): New functions.
3771 (_initialize_dcache): Add new commands.
3772
2eff07b3
PP
37732011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3774
3775 * progspace.h (struct program_space): Add solib_add_generation.
3776 * infcmd.c (post_create_inferior): Only call solib_add if not
3777 already done.
3778 * solib.c (solib_add): Increment solib_add_generation.
3779
543305c9
JK
37802011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 Fix implicit pointer offsets.
3783 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3784 ptr.OFFSET.
3785
c0a91b2b
TT
37862011-07-25 Tom Tromey <tromey@redhat.com>
3787
3788 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3789 const.
3790 (ada_exception_sal): Make 'ops' const.
3791 (ada_decode_exception_location): Likewise.
3792 (ada_decode_assert_location): Likewise.
3793 (catch_assert_command): Update.
3794 (catch_ada_exception_command): Update.
3795 (create_ada_exception_catchpoint): Make 'ops' const.
3796 * breakpoint.c (set_raw_breakpoint_without_location)
3797 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3798 const.
3799 (create_internal_breakpoint): Update.
3800 (init_raw_breakpoint_without_location): Make 'ops' const.
3801 (init_raw_breakpoint, init_catchpoint)
3802 (create_fork_vfork_event_catchpoint)
3803 (create_syscall_event_catchpoint, init_breakpoint_sal)
3804 (create_breakpoint_sal, create_breakpoints_sal)
3805 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3806 * breakpoint.h (struct breakpoint) <ops>: Now const.
3807 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3808 const.
3809
6cb9b55b
PP
38102011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3811
3812 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3813
d9b3f62e
PA
38142011-07-25 Pedro Alves <pedro@codesourcery.com>
3815
3816 * breakpoint.h (print_recreate_thread): Declare.
3817 (struct breakpoint): Move step_count, pass_count,
3818 number_on_target, static_trace_marker_id,
3819 static_trace_marker_id_idx ...
3820 (struct tracepoint): ... to this new struct.
3821 (get_tracepoint, get_tracepoint_by_number_on_target)
3822 (get_tracepoint_by_number): Change return type to struct
3823 tracepoint pointer.
3824 * breakpoint.c (is_tracepoint_type): New, factored out from
3825 is_tracepoint.
3826 (is_tracepoint): Adjust.
3827 (print_one_breakpoint_location): Cast to struct tracepoint as
3828 necessary, and adjust.
3829 (print_recreate_catch_fork, print_recreate_catch_vfork)
3830 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3831 print_recreate_thread.
3832 (init_breakpoint_sal): New, factored out from
3833 create_breakpoint_sal.
3834 (create_breakpoint_sal): Reimplement.
3835 (create_breakpoint): Allocate a struct tracecepoint if the caller
3836 wanted a tracepoint. Use init_breakpoint_sal and
3837 install_breakpoint.
3838 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3839 (print_recreate_masked_watchpoint)
3840 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3841 (tracepoint_print_one_detail): Adjust.
3842 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3843 Dump the pass count here.
3844 (update_static_tracepoint): Adjust.
3845 (addr_string_to_sals): Adjust.
3846 (create_tracepoint_from_upload): Adjust. Change return type to
3847 struct tracepoint pointer.
3848 (trace_pass_set_count): Change parameter type to struct tracepoint
3849 pointer, and adjust.
3850 (trace_pass_command): Adjust.
3851 (get_tracepoint, get_tracepoint_by_number_on_target)
3852 (get_tracepoint_by_number): Change return type to struct
3853 tracepoint pointer, and adjust.
3854 (print_recreate_thread): New, factored out from save_breakpoints.
3855 (save_breakpoints): Don't print thread and task and passcount
3856 recreation here.
3857 * remote.c (remote_download_tracepoint): Adjust.
3858 * tracepoint.c (trace_actions_command, validate_actionline)
3859 (start_tracing, tfind_1, trace_find_tracepoint_command)
3860 (trace_dump_command): Adjust.
3861 (find_matching_tracepoint): Change return type to struct
3862 tracepoint pointer, and adjust.
3863 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3864 (tfile_trace_find, tfile_fetch_registers): Adjust.
3865 * tracepoint.h (create_tracepoint_from_upload): Change return type
3866 to struct tracepoint pointer.
3867 * ada-lang.c (print_recreate_exception): Call
3868 print_recreate_thread.
3869 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3870
3a5c3e22
PA
38712011-07-25 Pedro Alves <pedro@codesourcery.com>
3872
3873 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3874 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3875 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3876 watchpoint_thread, watchpoint_triggered ...
3877 (struct watchpoint): ... to this new struct.
3878 (is_watchpoint): Declare.
3879 (install_breakpoint): Add new `internal' parameter.
3880 * breakpoint.c (is_watchpoint): Delete declaration.
3881 (set_breakpoint_condition): Handle watchpoints.
3882 (is_watchpoint): Make public.
3883 (watchpoint_in_thread_scope): Change parameter type to struct
3884 watchpoint.
3885 (watchpoint_del_at_next_stop): Change parameter type to struct
3886 watchpoint. Remove assertion. Adjust.
3887 (update_watchpoint): Ditto.
3888 (insert_breakpoints, breakpoint_init_inferior)
3889 (watchpoints_triggered, watchpoint_check)
3890 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3891 (bpstat_stop_status, print_one_breakpoint_location)
3892 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3893 to struct watchpoint as necessary, and adjust.
3894 (install_breakpoint): Add `internal' argument. If true, don't
3895 mention the new breakpoint. Use set_breakpoint_number.
3896 (create_fork_vfork_event_catchpoint)
3897 (create_syscall_event_catchpoint): Adjust.
3898 (dtor_watchpoint): New.
3899 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3900 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3901 (print_it_watchpoint, print_mention_watchpoint)
3902 (print_recreate_watchpoint, insert_masked_watchpoint)
3903 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3904 (print_one_detail_masked_watchpoint)
3905 (print_mention_masked_watchpoint)
3906 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3907 necessary, and adjust.
3908 (watch_command_1): Allocate and initialize a struct watchpoint
3909 instead of a struct breakpoint. Use install_breakpoint.
3910 (catch_exec_command_1): Adjust.
3911 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3912 fields.
3913 (delete_breakpoint, enable_breakpoint_disp)
3914 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3915 as necessary, and adjust.
3916 (initialize_breakpoint_ops): Install dtor_watchpoint as
3917 watchpoints' dtor method.
3918 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3919 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3920 to struct watchpoint as necessary, and adjust.
3921
2060206e
PA
39222011-07-25 Pedro Alves <pedro@codesourcery.com>
3923
3924 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3925 the the base class ops table.
3926 (catch_exception_breakpoint_ops)
3927 (catch_exception_unhandled_breakpoint_ops)
3928 (catch_assert_breakpoint_ops): Don't statically initialize.
3929 (initialize_ada_catchpoint_ops): New.
3930 (_initialize_ada_language): Call it.
3931 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3932 (bkpt_breakpoint_ops): Forward declare.
3933 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3934 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3935 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3936 (masked_watchpoint_breakpoint_ops)
3937 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3938 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3939 base class ops table.
3940 (null_re_set, null_check_status, null_works_in_software_mode)
3941 (null_resources_needed, null_print_one_detail): Delete.
3942 (bkpt_dtor): Rename to ...
3943 (base_breakpoint_dtor): ... this. Make static.
3944 (bkpt_allocate_location): Rename to ...
3945 (base_breakpoint_allocate_location): ... this. Make static.
3946 (base_breakpoint_re_set): New.
3947 (internal_error_pure_virtual_called): New.
3948 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3949 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3950 (base_breakpoint_works_in_software_mode)
3951 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3952 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3953 (base_breakpoint_print_recreate): New functions.
3954 (base_breakpoint_ops): New global.
3955 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3956 (bkpt_breakpoint_hit): Make static.
3957 (bkpt_check_status): Delete.
3958 (bkpt_resources_needed): Make static.
3959 (bkpt_works_in_software_mode): Delete.
3960 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3961 static.
3962 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3963 (momentary_breakpoint_ops): Don't statically initialize.
3964 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3965 Delete.
3966 (tracepoint_insert_location, tracepoint_remove_location)
3967 (tracepoint_check_status, tracepoint_works_in_software_mode)
3968 (tracepoint_print_it): Delete.
3969 (tracepoint_breakpoint_ops): Don't statically initialize.
3970 (initialize_breakpoint_ops): New.
3971 (_initialize_breakpoint): Call it.
3972 * breakpoint.h (null_re_set, null_works_in_software_mode)
3973 (null_resources_needed, null_check_status, null_print_one_detail):
3974 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3975 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3976 (bkpt_check_status, bkpt_resources_needed)
3977 (bkpt_works_in_software_mode, bkpt_print_it)
3978 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3979 Delete declarations.
3980 (initialize_breakpoint_ops): Declare.
3981
001c8c33
PA
39822011-07-25 Pedro Alves <pedro@codesourcery.com>
3983
3984 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3985 (momentary_bkpt_print_it): Simplify.
3986
06edf0c0
PA
39872011-07-25 Pedro Alves <pedro@codesourcery.com>
3988
3989 Split internal, momentary and user breakpoints breakpoint_ops
3990 tables.
3991
3992 * breakpoint.c (internal_breakpoint_ops)
3993 (momentary_breakpoint_ops): Forward declare.
3994 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3995 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3996 (create_overlay_event_breakpoint)
3997 (create_std_terminate_master_breakpoint)
3998 (create_exception_master_breakpoint): Create breakpoints with
3999 internal_breakpoint_ops vtable.
4000 (set_longjmp_breakpoint): Create momentary breakpoints with
4001 momentary_breakpoint_ops vtable, using
4002 momentary_breakpoint_from_master.
4003 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4004 (create_solib_event_breakpoint): Create breakpoints with
4005 internal_breakpoint_ops vtable.
4006 (set_momentary_breakpoint): Create breakpoints with
4007 momentary_breakpoint_ops vtable.
4008 (momentary_breakpoint_from_master): New, factored out from
4009 clone_momentary_breakpoint.
4010 (clone_momentary_breakpoint): Adjust.
4011 (watch_command_1): Create scope breakpoints with
4012 momentary_breakpoint_ops vtable.
4013 (bkpt_re_set): Remove handling of internal and momentary
4014 breakpoints.
4015 (bkpt_print_mention, bkpt_print_recreate): New.
4016 (bkpt_breakpoint_ops): Adjust.
4017 (internal_bkpt_re_set, internal_bkpt_check_status)
4018 (internal_bkpt_print_it, internal_bkpt_print_mention)
4019 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4020 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4021 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4022 (momentary_bkpt_print_recreate): New.
4023 (momentary_breakpoint_ops): New.
4024
348d480f
PA
40252011-07-25 Pedro Alves <pedro@codesourcery.com>
4026
4027 Implement most breakpoint_ops methods for all breakpoint types,
4028 and move the default handlings to the proper callbacks.
4029
4030 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4031 works_in_software_mode method.
4032 (insert_bp_location): Go through breakpoint_ops->insert_location
4033 for software and hardware watchpoints.
4034 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4035 breakpoint_ops.
4036 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4037 for software and hardware watchpoints.
4038 (print_it_typical): Delete.
4039 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4040 method.
4041 (watchpoint_check): Adjust comment.
4042 (bpstat_check_location): Simply always call the breakpoint's
4043 breakpoint_hit method.
4044 (bpstat_stop_status): Always call the breakpoint's check_status
4045 method. Remove special cases for watchpoints and internal event
4046 breakpoints from here (moved to the check_status implementations).
4047 (print_one_breakpoint_location): Assume b->ops is never NULL.
4048 Remove static tracepoint marker id printing from here (moved to
4049 the print_one_detail callback implementation of tracepoints).
4050 (init_bp_location): Assert OPS is never NULL.
4051 (allocate_bp_location): Always call the breakpoint's
4052 allocate_location method, and remove the default code from here.
4053 (free_bp_location): Always call the location's dtor method, and
4054 remove the default code from here.
4055 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4056 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4057 parameter. Pass it down.
4058 (set_raw_breakpoint): Ditto.
4059 (print_it_catch_fork): Adjust to take a bpstat as argument.
4060 (catch_fork_breakpoint_ops): Install methods.
4061 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4062 (catch_vfork_breakpoint_ops): Install methods.
4063 (dtor_catch_syscall): Call the base dtor.
4064 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4065 (catch_syscall_breakpoint_ops): Install methods.
4066 (dtor_catch_exec): Call the base dtor.
4067 (print_it_catch_exec): Adjust to take a bpstat as argument.
4068 (catch_exec_breakpoint_ops): Install methods.
4069 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4070 the breakpoint's resources_needed method, and remove the default
4071 code from here.
4072 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4073 breakpoint_ops.
4074 (clone_momentary_breakpoint): Clone the original's ops.
4075 (mention): Always call the breakpoint's print_mention method, and
4076 remove the default code from here.
4077 (create_breakpoint_sal): Adjust to pass the ops to
4078 set_raw_breakpoint rather than setting it manually.
4079 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4080 ops to set_raw_breakpoint_without_location rather than setting it
4081 manually.
4082 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4083 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4084 (ranged_breakpoint_ops): Install methods.
4085 (break_range_command): Adjust to pass the ops to
4086 set_raw_breakpoint rather than setting it manually.
4087 (re_set_watchpoint, breakpoint_hit_watchpoint)
4088 (check_status_watchpoint, resources_needed_watchpoint)
4089 (works_in_software_mode_watchpoint, print_it_watchpoint)
4090 (print_mention_watchpoint, print_recreate_watchpoint): New
4091 functions.
4092 (watchpoint_breakpoint_ops): Install new methods.
4093 (print_it_masked_watchpoint): New function.
4094 (masked_watchpoint_breakpoint_ops): Install new methods.
4095 (watch_command_1): Adjust to pass the right breakpoint_ops to
4096 set_raw_breakpoint_without_location rather than setting it
4097 manually later. Record the current pspace.
4098 (print_it_exception_catchpoint): Adjust to take a bpstat as
4099 argument.
4100 (gnu_v3_exception_catchpoint_ops): Install new methods.
4101 (say_where): New function.
4102 (null_re_set, null_check_status, null_works_in_software_mode)
4103 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4104 New functions.
4105 (bp_location_ops): New global.
4106 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4107 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4108 (bkpt_check_status, bkpt_resources_needed)
4109 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4110 (bkpt_print_recreate): New functions.
4111 (bkpt_breakpoint_ops): New global.
4112 (tracepoint_re_set, tracepoint_insert_location)
4113 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4114 (tracepoint_check_status, tracepoint_works_in_software_mode)
4115 (tracepoint_print_it, tracepoint_print_one_detail)
4116 (tracepoint_print_mention, tracepoint_print_recreate): New
4117 functions.
4118 (tracepoint_breakpoint_ops): New global.
4119 (delete_breakpoint): Always call the breakpoint's dtor method, and
4120 remove the default handling from here.
4121 (breakpoint_re_set_default): Make static.
4122 (breakpoint_re_set_one): Always call the breakpoints re_set
4123 method, and remove the default handling from here.
4124 (trace_command, ftrace_command, strace_command)
4125 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4126 to create_breakpoint.
4127 (save_breakpoints): Always call the breakpoint's print_recreate
4128 method, and remove the default handling from here.
4129
4130 * ada-lang.c (dtor_exception): Call the base dtor.
4131 (re_set_exception): Call the base method.
4132 (print_it_exception, print_it_catch_exception): Adjust to take a
4133 bpstat as argument.
4134 (catch_exception_breakpoint_ops): Install methods.
4135 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4136 argument.
4137 (catch_exception_unhandled_breakpoint_ops): Install methods.
4138 (print_it_catch_assert): Adjust to take a bpstat as argument.
4139 (catch_assert_breakpoint_ops): Install methods.
4140
4141 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4142 to take a bpstat as argument.
4143 (enum print_stop_action): Add describing comments to each enum
4144 value.
4145 (breakpoint_re_set_default): Delete declaration.
4146 (null_re_set, null_works_in_software_mode, null_resources_needed)
4147 (null_check_status, null_print_one_detail): Declare.
4148 (bkpt_breakpoint_ops): Declare.
4149 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4150 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4151 (bkpt_check_status, bkpt_resources_needed)
4152 (bkpt_works_in_software_mode, bkpt_print_it)
4153 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4154 Declare.
4155
4156 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4157 bkpt_breakpoint_ops.
4158 * python/py-breakpoint.c (bppy_init): Ditto.
4159
be8f8133
PW
41602011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161
4162 * MAINTAINERS (Write After Approval): Add myself to the list.
4163
3807f613
PP
41642011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4165
4166 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4167
1ced966e
PA
41682011-07-22 Pedro Alves <pedro@codesourcery.com>
4169
4170 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4171 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4172 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4173 adjust.
4174 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4175 (struct i386_debug_reg_state): New.
4176 (i386_init_dregs): New.
4177 (dr_mirror): New.
4178 (i386_cleanup_dregs): Use i386_init_dregs.
4179 (i386_show_dr): Add state parameter and adjust.
4180 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4181 the inferior here.
4182 (i386_remove_aligned_watchpoint): Likewise.
4183 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4184 (i386_update_inferior_debug_regs): New.
4185 (i386_insert_watchpoint): Work on a local mirror of the debug
4186 registers, and only update the inferior on success.
4187 (i386_remove_watchpoint): Ditto.
4188 (i386_region_ok_for_watchpoint): Adjust.
4189 (i386_stopped_data_address): Adjust.
4190 (i386_insert_hw_breakpoint): Adjust.
4191 (i386_remove_hw_breakpoint): Adjust.
4192
3543a589
TT
41932011-07-22 Tom Tromey <tromey@redhat.com>
4194
4195 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4196 from amd64_pseudo_register_read. Change arguments. Call
4197 mark_value_bytes_unavailable when needed.
4198 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4199 set_gdbarch_pseudo_register_read.
4200 * sentinel-frame.c (sentinel_frame_prev_register): Use
4201 regcache_cooked_read_value.
4202 * regcache.h (regcache_cooked_read_value): Declare.
4203 * regcache.c (regcache_cooked_read_value): New function.
4204 (regcache_cooked_read): Call
4205 gdbarch_pseudo_register_read_value if available.
4206 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4207 (i386_pseudo_register_read): Remove.
4208 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4209 i386_pseudo_register_read. Change arguments. Call
4210 mark_value_bytes_unavailable when needed.
4211 (i386_pseudo_register_read_value): New function.
4212 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4213 not set_gdbarch_pseudo_register_read.
4214 * gdbarch.sh (pseudo_register_read_value): New method.
4215 * gdbarch.c, gdbarch.h: Rebuild.
4216 * findvar.c (value_from_register): Call get_frame_register_value.
4217
95298e72
PM
42182011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4219
4220 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4221 get_prefix.
4222 (display_gdb_prompt): Likewise.
4223 (change_annotation_level): Likewise.
4224 (push_prompt): Likewise.
4225 (pop_prompt): Likewise.
4226 (handle_stop_sig): Use get_prompt with a level.
4227 * top.c (command_loop): Use get_prompt with a level.
4228 (set_async_annotation_level): Use set_prompt with a level.
4229 (get_prefix): New function.
4230 (set_prefix): Ditto.
4231 (set_suffix): Ditto.
4232 (get_suffix): Ditto.
4233 (get_prompt): Accept a level argument.
4234 (set_prompt): Accept a level argument. Free old prompts. Set
4235 new_async_prompt if level is 0.
4236 (init_main): Use set_prompt with a level. Do not set
4237 new_async_prompt.
4238 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4239 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4240 Modify set_prompt, get_prompt to account for levels.
4241 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4242 level.
4243 * python/python.c (before_prompt_hook): Use set_prompt.
4244
d26e3629
KY
42452011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4246
4247 * defs.h: Add guard against inclusion in gdbserver.
4248 (struct ptid, ptid_t): Move to common/ptid.h.
4249 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4250 xsnprintf, internal_error): Move to common/common-utils.h.
4251 (nomem): Delete.
4252 * gdb_assert.h: Move into common/ sub-directory.
4253 * gdb_locale.h: Ditto.
4254 * gdb_dirent.h: Ditto.
4255 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4256 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4257 Move into common/ptid.h.
4258 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4259 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4260 Change nomem to malloc_failure.
4261 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4262 * utils.c (nomem): Rename to malloc_failure.
4263 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4264 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4265 (gdb_buildargv): Change nomem to malloc_failure.
4266 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4267 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4268 ptid_is_pid): Move into common/ptid.c.
4269 (initialize_infrun): Delete initialization of null_ptid and
4270 minus_one_ptid.
4271 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4272 linux_common_xfer_osdata.
4273 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4274 common/ptid.c and common/buffer.c.
4275 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4276 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4277 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4278 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4279 rules.
4280 * common/gdb_assert.h: New.
4281 * common/gdb_dirent.h: New.
4282 * common/gdb_locale.h: New.
4283 * common/buffer.c: New.
4284 * common/buffer.h: New.
4285 * common/ptid.c: New.
4286 * common/ptid.h: New.
4287 * common/xml-utils.c: New.
4288 * common/xml-utils.h: New.
4289 * common/common-utils.c: New.
4290 * common/common-utils.h: New.
4291 * common/linux-osdata.c: New.
4292 * common/linux-osdata.h: New.
4293 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4294 * config/arm/linux.mh (NATDEPFILES): Ditto.
4295 * config/i386/linux.mh (NATDEPFILES): Ditto.
4296 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4297 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4298 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4299 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4300 * config/mips/linux.mh (NATDEPFILES): Ditto.
4301 * config/pa/linux.mh (NATDEPFILES): Ditto.
4302 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4303 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4304 * config/s390/s390.mh (NATDEPFILES): Ditto.
4305 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4306 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4307 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4308
edc84990 43092011-07-21 Matt Rice <ratmice@gmail.com>
4310
4311 * NEWS: Add info macros and info definitions commands.
4312
3a7bf607
PM
43132011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4314
4315 * NEWS: Document Python prompt substitution hook.
4316
9b158ba0 43172011-07-18 Matt Rice <ratmice@gmail.com>
4318
4319 PR macros/12999
4320 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4321 * macrotab.c (foreach_macro): Ditto.
4322 (foreach_macro_in_scope): Ditto.
4323 * macrocmd.c (print_macro_callback): New function.
4324 (info_macro_command): Move some code to print_macro_definition.
4325 (print_macro_definition): New function.
4326 (print_one_macro): Add new arguments to callback.
4327 (info_definitions_command): New function.
4328 (info_macros_command): Ditto.
4329 (_initialize_macrocmd): Add info macros and info definitions commands.
4330 * symtab.c (add_macro_name): Add new arguments to callback.
4331
d17b6f81
PM
43322011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4333 Tom Tromey <tromey@redhat.com>
4334
4335 * top.c (set_prompt): Rewrite to free previous prompt, free
4336 asynch_new_prompt and set both on new prompts.
4337 * event-top.c (display_gdb_prompt): Add prompt substitution
4338 logic.
4339 * python/python.c (before_prompt_hook): New function.
4340
1364323a 43412011-07-20 Matt Rice <ratmice@gmail.com>
4342
4343 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4344 arguments to store_unsigned_integer.
4345
8b70b953
TT
43462011-07-20 Tom Tromey <tromey@redhat.com>
4347
6c83ed52
TT
4348 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4349 in some declaration-only cases.
4350
43512011-07-18 Tom Tromey <tromey@redhat.com>
4352
8b70b953
TT
4353 PR symtab/12984:
4354 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4355 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4356 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4357 <debug_type_section>: New field.
4358 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4359 (load_cu): Use appropriate section.
4360 (create_signatured_type_table_from_index): Add 'section'
4361 argument.
4362 (dwarf2_read_index): Only allow a single .debug_types section.
4363 (dw2_get_file_names): Use appropriate section.
4364 (read_type_comp_unit_head): Add 'section' argument.
4365 (create_debug_types_hash_table): Loop over all .debug_types
4366 sections.
4367 (init_cu_die_reader): Use appropriate section.
4368 (process_psymtab_comp_unit, load_partial_comp_unit)
4369 (load_full_comp_unit, read_die_and_children, find_partial_die)
4370 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4371 (lookup_signatured_type_at_offset): Add 'section' argument.
4372 (read_signatured_type_at_offset): Add 'sect' argument.
4373 (read_signatured_type): Use appropriate section.
4374 (set_die_type, get_die_type_at_offset): Update.
4375 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4376 VEC.
4377 (write_psymtabs_to_index): Don't allow index with more than one
4378 .debug_types section.
4379
918dd910
JK
43802011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 Fix crash if referenced CU is aged out.
4383 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4384 xfree of block.data.
4385 (indirect_pieced_value): New variable back_to, use to for xfree of
4386 baton.data.
4387 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4388 block.data.
4389 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4390 (load_cu): New function from ...
4391 (dw2_do_instantiate_symtab): ... the code here ...
4392 (process_full_comp_unit): ... and here.
4393 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4394 retval.data.
4395
0e37a63c
JK
43962011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4399 type.
4400
7e324e48
GB
44012011-07-19 Gary Benson <gbenson@redhat.com>
4402
4403 * infrun.c (struct execution_control_state): New member
4404 stop_func_filled_in.
4405 (clear_stop_func, fill_in_stop_func): New functions.
4406 (handle_inferior_event): Call clear_stop_func rather than
4407 manipulating the execution control state directly.
4408 Call fill_in_stop_func lazily as required rather than
4409 directly calling find_pc_partial_function in all cases.
4410
d48323d8
TT
44112011-07-18 Tom Tromey <tromey@redhat.com>
4412
4413 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4414 checking for variable-sized array.
4415
40591b7d
JCD
44162011-07-18 Jean-Charles Delay <delay@adacore.com>
4417
4418 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4419 of supported languages.
4420 * varobj.c: Add top definitions and basic implementation of the
4421 following callbacks: ada_number_of_children, ada_name_of_variable,
4422 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4423 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4424 (languages): Register Ada-specific callbacks.
4425 (variable_language): Add the Ada case in the language setter switch.
4426
2e424e08
JK
44272011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4428
4429 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4430
9e8b7a03
JK
44312011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4432
4433 Code cleanup.
4434 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4435 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4436 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4437 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4438 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4439 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4440 (struct dwarf_expr_context_funcs): New, move here methods from ...
4441 (struct dwarf_expr_context): ... here. New fields funcs.
4442 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4443 (dwarf_expr_ctx_funcs): New.
4444 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4445 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4446 (needs_frame_ctx_funcs): New.
4447 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4448
2b1260ab
FM
44492011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4450
4451 * MAINTAINERS (Write After Approval): Add myself to the list.
4452
8bd90839
FM
44532011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4454
4455 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4456 that CIE pointer of an FDE really points to a CIE .
4457
953b98d1
HZ
44582011-07-15 Hui Zhu <teawater@gmail.com>
4459
4460 * remote.c (remote_get_trace_status): Add comments.
4461
c8f2448a
JK
44622011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4463
4464 Code cleanup - constify struct lval_funcs.
4465 * dwarf2loc.c (pieced_value_funcs): Make it const.
4466 * infrun.c (siginfo_value_funcs): Likewise.
4467 * opencl-lang.c (opencl_value_funcs): Likewise.
4468 * valops.c (value_assign, value_ind): Make the funcs variable const.
4469 * value.c (struct value): Make location.computed.funcs target const.
4470 Rearrange the comments.
4471 (allocate_computed_value): Make the funcs parameter target const.
4472 (value_computed_funcs): Return the funcs target const.
4473 (value_free, value_copy, set_value_component_location): Make the funcs
4474 variable const.
4475 * value.h (allocate_computed_value): Make the funcs parameter target
4476 const.
4477 (value_computed_funcs): Return the funcs target const.
4478 * windows-tdep.c (tlb_value_funcs): Make it const.
4479
f652de6f
HZ
44802011-07-14 Hui Zhu <teawater@gmail.com>
4481
4482 * remote.c (remote_get_trace_status): Initialize p.
4483
67f41397
JK
44842011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4485
4486 Work around kgdb.
4487 * remote.c (remote_get_trace_status): New variable ex. Put
4488 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4489
d1b66e6d
TT
44902011-07-13 Tom Tromey <tromey@redhat.com>
4491
4492 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4493 value_from_contents for final conversion.
4494
1632a688
JK
44952011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4496
4497 Code cleanup.
4498 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4499 Indent prototypes so they do not get into tags.
4500
a7035dbb
JK
45012011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4502
4503 Code cleanup making also optimized out values lazy.
4504 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4505 allocate_optimized_out_value. Twice.
4506 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4507 * findvar.c (read_var_value): Likewise.
4508 * value.c (allocate_optimized_out_value): New function.
4509 * value.h (allocate_optimized_out_value): New declaration.
4510
d07ed419
JK
45112011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4512
4513 Fix occasional crash of CTRL-C during DWARF read in.
4514 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4515
86d31898
TT
45162011-07-11 Tom Tromey <tromey@redhat.com>
4517
4518 * regcache.c (struct regcache_descr): Fix typo.
4519 * i387-tdep.c (i387_supply_xsave): Fix typo.
4520
2ab95328
TT
45212011-07-11 Tom Tromey <tromey@redhat.com>
4522
4523 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4524 (read_file_scope, read_type_unit_scope): Use it.
4525
04ad99e6
JK
45262011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4527
4528 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4529 `int'.
4530
713389e0
PM
45312011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4532
4533 PR python/12438
4534 * python/python.c: Set gdbpy_should_print_stack default to off.
4535 (set_python): Deprecate maint set python print-stack to
4536 class_deprecate.
4537 (_initialize_python): Deprecate maint set/show python print-stack.
4538 Add new prefix command, python. Add new setting, print-backtrace.
4539 * NEWS: Document set python print-stack. Document default change.
4540
754eadd1
PM
45412011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4542
4543 * python/py-inferior.c (infpy_dealloc): New function.
4544 (inferior_to_inferior_object): Return a new object, or a
4545 new reference to the existing object.
4546 (find_thread_object): Cleanup references to inferior.
4547 (delete_thread_object): Ditto.
4548 * python/py-infthread.c (create_thread_object): Do not increment
4549 inferior reference count.
4550
5e44ecb3
TT
45512011-07-08 Tom Tromey <tromey@redhat.com>
4552
4553 * dwarf2loc.c (locexpr_regname): New function.
4554 (locexpr_describe_location_piece): Use it.
4555 (disassemble_dwarf_expression): Add per_cu argument. Use
4556 locexpr_regname.
4557 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4558 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4559 New cases.
4560 (locexpr_describe_location_1): Add per_cu argument.
4561 (locexpr_describe_location): Update.
4562 (loclist_describe_location): Update.
4563
e0e9434c
TT
45642011-07-08 Tom Tromey <tromey@redhat.com>
4565
4566 * dwarf2expr.c (execute_stack_op): Add QUIT.
4567
26afc0d7
HZ
45682011-07-07 Hui Zhu <teawater@gmail.com>
4569
4570 Revert:
4571 2011-07-06 Hui Zhu <teawater@gmail.com>
4572 * remote.c (remote_start_remote): Add TRY_CATCH for
4573 remote_get_trace_status.
4574 * tracepoint.c (disconnect_tracing): Ditto.
4575
a40a111f
AB
45762011-07-07 Andrew Burgess <aburgess@broadcom.com>
4577
4578 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4579 variables as signed, not unsigned.
4580
e2bd3b15
JB
45812011-07-06 Joel Brobecker <brobecker@adacore.com>
4582
4583 * jit.c (jit_inferior_init): Reformat forward declaration.
4584
e3d961fe 45852011-07-06 Matt Rice <ratmice@gmail.com>
4586
4587 * MAINTAINERS (Write After Approval): Add myself to the list.
4588
0f3428f0
HZ
45892011-07-06 Hui Zhu <teawater@gmail.com>
4590
4591 * remote.c (remote_start_remote): Add TRY_CATCH for
4592 remote_get_trace_status.
4593 * tracepoint.c (disconnect_tracing): Ditto.
4594
fc9f3a69
TT
45952011-07-05 Tom Tromey <tromey@redhat.com>
4596
4597 * symtab.c (operator_chars): Now static.
4598 * linespec.c (operator_chars): Don't declare.
4599
26e519b9
TJB
46002011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4601
4602 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4603
eb2a6f42
TT
46042011-07-05 Tom Tromey <tromey@redhat.com>
4605
4606 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4607 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4608 (TYPE_CPLUS_REALLY_JAVA): New macro.
4609 * dwarf2read.c (process_structure_scope): Set
4610 TYPE_CPLUS_REALLY_JAVA.
4611
21083d0f 46122011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4613
4614 * ada-lang.c: Fix typos.
4615 * amd64-tdep.c: Likewise.
4616 * breakpoint.c: Likewise.
4617 * cli/cli-decode.c: Likewise.
4618 * findcmd.c: Likewise.
4619 * inline-frame.c: Likewise.
4620 * mi/mi-main.c: Likewise.
4621 * minsyms.c: Likewise.
4622 * monitor.c: Likewise.
4623 * monitor.h: Likewise.
4624 * prologue-value.c: Likewise.
4625 * reverse.c: Likewise.
4626 * s390-tdep.c: Likewise.
4627
3b2a0cf2
JB
46282011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4629
4630 * jit.c (jit_inferior_init): Forward declare.
4631 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4632
efae1d92
JB
46332011-07-04 Joel Brobecker <brobecker@adacore.com>
4634
4635 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4636
6040a59d
JB
46372011-07-04 Tristan Gingold <gingold@adacore.com>
4638
4639 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4640 (tcb_fieldno): Add activation_link field.
4641 (get_known_tasks_addr): Moved and rewritten.
4642 (get_tcb_types_info): Set activation_link field.
4643 (read_known_tasks_array): Add parameter. Rewritten.
4644 (read_known_tasks_list): New function.
4645 (read_known_tasks): New function.
4646 (ada_build_task_list): Call read_known_tasks instead of
4647 read_known_tasks_array.
4648 * ravenscar-thread.c: Add first_task_name constant.
4649 (has_ravenscar_runtime): Check for task list too.
4650
cb741e45
JB
46512011-07-04 Tristan Gingold <gingold@adacore.com>
4652
4653 * ada-tasks.c: Renames fieldno to actb_fieldno.
4654 (ada_get_task_number): Indentation.
4655 (get_tcb_types_info): Remove all parameters. Write directly
4656 the globals.
4657 (ptid_from_atcb_common): Adjust.
4658 (read_atcb): Adjust.
4659
7475b06c
TJB
46602011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4661
4662 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4663
15230f37
TJB
46642011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4665
4666 * ui-out.c (ui_out_field_core_addr): Mention that the function
4667 description is in the header file.
4668 * ui-out.h (ui_out_field_core_addr): Document function.
4669
65743aba
TJB
46702011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4671
4672 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4673 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4674
c37a5aab
TJB
46752011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4676
4677 * symtab.c (expand_line_sal): Remove empty line.
4678
59adf69e
TS
46792011-07-04 Thomas Schwinge <thomas@schwinge.name>
4680
4681 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4682 same way as ELFOSABI_NONE.
4683 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4684
e5dd4106
TJB
46852011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4686
4687 * breakpoint.c: Fix typos in comments.
4688 * linespec.c: Likewise.
4689 * symtab.c: Likewise.
4690
d40102a1
JB
46912011-07-04 Joel Brobecker <brobecker@adacore.com>
4692
4693 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4694 section in separate object files.
4695
2f741504
JK
46962011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4697
4698 Fix false GCC warning.
4699 * linespec.c (decode_line_1): Initialize values.
4700
418c7cf7
JK
47012011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4702
4703 * linespec.c (find_method): Accept the function type automatically only
4704 if it was specified with parameter types.
4705
3d50dd94
JK
47062011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4707
4708 Stop on first linespec terminator instead of eating what we can.
4709 * linespec.c (is_linespec_boundary): New function.
4710 (name_end): Remove function.
4711 (keep_name_info): New parameter on_boundary, replace the body.
4712 (decode_line_1): Provide the parameter to keep_name_info.
4713 (decode_compound): Likewise. Drop the trailing java return type
4714 handling. Twice.
4715
dcf9f4ab
JK
47162011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 Fall back linespec to minimal symbols.
4719 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4720 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4721 (find_method, symbol_found): Change error to cplusplus_error.
4722
3f542ed1
JK
47232011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4724
bc68c4e5 4725 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4726
900e11f9
JK
47272011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 Tom Tromey <tromey@redhat.com>
4729
4730 * dwarf2read.c (check_physname): New variable.
4731 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4732 (show_check_physname): New function.
4733 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4734
2301925d
JB
47352011-07-01 Joel Brobecker <brobecker@adacore.com>
4736
4737 * machoread.c (macho_symfile_read): Delete OBE comment.
4738
38947cca
JB
47392011-07-01 Joel Brobecker <brobecker@adacore.com>
4740
4741 * machoread.c (struct macho_oso_data): Delete.
4742 (current_oso): Delete.
4743 (macho_relocate_common_syms): New function, mostly extracted
4744 out of
4745 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4746 Remove code that sets and unset current_oso.
4747 (macho_symfile_relocate): Delete handling of common symbols,
4748 now moved to macho_relocate_common_syms.
4749
a7aa0d73
JB
47502011-07-01 Joel Brobecker <brobecker@adacore.com>
4751
4752 * darwin-nat.c (darwin_ptrace): Add documentation.
4753 Set errno to zero before calling ptrace. If ptrace returns
4754 -1 and errno is zero, then change then return zero.
4755 (darwin_kill_inferior): Issue a warning instead of triggering
4756 a failed assertion when the PT_KILL ptrace operations returned
4757 nonzero.
4758
5e9bc145
JB
47592011-07-01 Joel Brobecker <brobecker@adacore.com>
4760
4761 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4762 only when inf->private->no_ptrace.
4763
00eb2c4a
JB
47642011-07-01 Joel Brobecker <brobecker@adacore.com>
4765
4766 * ada-lang.c (print_it_exception): Print temporary catchpoints
4767 as "Temporary catchpoint".
4768 (print_mention_exception): Likewise.
4769
127c81bc
TT
47702011-07-01 Tom Tromey <tromey@redhat.com>
4771
4772 * jv-lang.c (java_language_defn): Use java_printchar,
4773 java_printstr.
4774 (java_get_encoding): New function.
4775 (java_emit_char): Use generic_emit_char.
4776 (java_printchar): New function.
4777 (java_printstr): Likewise.
4778
25552254
JB
47792011-07-01 Joel Brobecker <brobecker@adacore.com>
4780
4781 * ada-typeprint.c (print_record_type): If unable to decode
4782 the name of the parent type, use the encoded name.
4783
d2d43431
JB
47842011-07-01 Jean-Charles Delay <delay@adacore.com>
4785
4786 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4787 pointer to constrained packed array type output.
4788 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4789 packed array output.
4790
54ae186f
JB
47912011-07-01 Jean-Charles Delay <delay@adacore.com>
4792
4793 * ada-typeprint.c (print_array_type): removed if condition on show
4794 being negative for bounds printing.
4795
8f17729f
JB
47962011-07-01 Joel Brobecker <brobecker@adacore.com>
4797
4798 * ada-lang.c (ada_identical_enum_types_p): New function.
4799 (symbols_are_identical_enums): New function.
4800 (remove_extra_symbols): Do nothing if NSYMS < 2.
4801 Use symbols_are_identical_enums.
4802
f5aa6869
JB
48032011-07-01 Joel Brobecker <brobecker@adacore.com>
4804
4805 * ada-valprint.c (ada_value_print): Handle typedefs.
4806
8f465ea7
JB
48072011-07-01 Joel Brobecker <brobecker@adacore.com>
4808
4809 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4810
828292f2
JB
48112011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4812
4813 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4814 (decode_constrained_packed_array): Likewise.
4815 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4816
18920c42
JB
48172011-07-01 Joel Brobecker <brobecker@adacore.com>
4818
4819 * ada-exp.y (convert_char_literal): Handle typedef types.
4820
c90092fe
JB
48212011-07-01 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4824
f748fb40
TT
48252011-06-30 Tom Tromey <tromey@redhat.com>
4826
4827 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4828 * valops.c (find_overload_match): Call do_cleanups on early exit
4829 path.
4830 * solib.c (solib_find): Call do_cleanups on early exit path.
4831
3bb47e8b
TT
48322011-06-30 Tom Tromey <tromey@redhat.com>
4833
4834 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4835 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4836 return paths. Defer final do_cleanups until last return.
4837 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4838 early return.
4839
4727bad3
TT
48402011-06-30 Tom Tromey <tromey@redhat.com>
4841
4842 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4843
bb361dbf
AB
48442011-06-30 Andrew Burgess <aburgess@broadcom.com>
4845
4846 * MAINTAINERS (Write After Approval): Add myself to the list.
4847
e0d00bc7
JK
48482011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4849
4850 Disable epilogue unwinders on recent GCCs.
4851 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4852 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4853 * dwarf2read.c (process_full_comp_unit): Initialize
4854 EPILOGUE_UNWIND_VALID.
4855 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4856 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4857 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4858
4632c0d0
JK
48592011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4860
4861 Code cleanup - reformatting.
4862 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4863 (producer_is_gcc_ge_4): ... here, change the return value.
4864 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4865 interpretation.
4866
32019081
JK
48672011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4868
4869 Fix non-only rename list for Fortran modules import.
4870 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4871 cp_add_using_directive caller.
4872 (cp_add_using_directive): New parameter excludes, describe it. New
4873 variables ix and param. Compare if also excludes match. Allocate NEW
4874 with variable size, initialize EXCLUDES there.
4875 (cp_lookup_symbol_imports): New variable excludep, test
4876 current->EXCLUDES with it.
4877 * cp-support.h: Include vec.h.
4878 (struct using_direct): New field excludes, describe it.
4879 (DEF_VEC_P (const_char_ptr)): New.
4880 (cp_add_using_directive): New parameter excludes.
4881 * defs.h (const_char_ptr): New typedef.
4882 * dwarf2read.c (read_import_statement): New variables child_die,
4883 excludes and cleanups, read in excludes.
4884 (read_namespace): Adjust the cp_add_using_directive caller.
4885
70c622a3
JK
48862011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4887
4888 Code cleanup.
4889 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4890 negative comparisons.
4891
39c4d40a
TT
48922011-06-29 André Pönitz <andre.poenitz@nokia.com>
4893
4894 * mi/mi-main.c (mi_cmd_list_features): Emit
4895 breakpoint-notifications.
4896
3b2b8fea
TT
48972011-06-29 Tom Tromey <tromey@redhat.com>
4898
4899 PR fortran/10036:
4900 * valprint.h (generic_emit_char, generic_printstr): Declare.
4901 * valprint.c (wchar_printable, append_string_as_wide)
4902 (print_wchar): Move from c-lang.c.
4903 (generic_emit_char): New function; mostly taken from c_emit_char.
4904 (generic_printstr): New function; mostly taken from c_printstr.
4905 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4906 represented as arrays.
4907 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4908 type.
4909 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4910 identically to TYPE_CODE_INT.
4911 * f-lang.c (f_get_encoding): New function.
4912 (f_emit_char): Use generic_emit_char.
4913 (f_printchar): Replace comment.
4914 (f_printstr): Use generic_printstr.
4915 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4916 "character" types specially.
4917 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4918 for Fortran.
4919 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4920 Move to valprint.c
4921 (c_emit_char): Call generic_emit_char.
4922 (c_printstr): Call generic_printstr.
4923
168e6d44
GB
49242011-06-29 Gary Benson <gbenson@redhat.com>
4925
4926 * breakpoint.c (bpstat_what): Removed duplicated case.
4927
1c033f8c
TT
49282011-06-28 Tom Tromey <tromey@redhat.com>
4929
4930 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4931
5fe41fbf
TT
49322011-06-27 Tom Tromey <tromey@redhat.com>
4933
4934 * valops.c (find_overload_match): Call do_cleanups before early
4935 return.
4936 * top.c (execute_command): Call do_cleanups before early return.
4937 (command_loop): Likewise.
4938 * stack.c (backtrace_command): Make a null cleanup early. Don't
4939 conditionally call do_cleanups.
4940 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4941 TRY_CATCH.
4942 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4943 so cleanups are always run.
4944 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4945 * findcmd.c (parse_find_args): Call do_cleanups on early return
4946 path.
4947 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4948 Don't conditionally call do_cleanups.
4949 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4950 later.
4951
e26bd57d
EB
49522011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4953
4954 * MAINTAINERS (Write After Approval): Use default email address.
4955
6c3097fc
JB
49562011-06-27 Joel Brobecker <brobecker@adacore.com>
4957
4958 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4959
369c397b
JB
49602011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4961
4962 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4963 saved_regs_mask and copied_regs_mask fields.
4964 (sparc_record_save_insn): New prototype.
4965 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4966 (sparc_record_save_insn): New function.
4967 (sparc_analyze_prologue): Add head comment. Recognize store insns
4968 of call-saved registers. Use OFFSET consistently. Recognize flat
4969 frames and cache their settings.
4970 (sparc32_skip_prologue): Handle flat frames.
4971 (sparc_frame_cache): Add frame_offset to the base address.
4972 (sparc32_frame_cache): Adjust to new frame description.
4973 (sparc32_frame_prev_register): Likewise.
4974 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4975 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4976 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4977 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4978 frame by calling sparc_record_save_insn.
4979 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4980 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4981 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4982
b315ab21
TG
49832011-06-27 Tristan Gingold <gingold@adacore.com>
4984
4985 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4986 field by map_addr and map_len.
4987 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4988 (munmap_section_buffer): Likewise.
4989
ddd49eee
TT
49902011-06-24 Tom Tromey <tromey@redhat.com>
4991
4992 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4993 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4994 * python/python.c (gdbpy_parameter): Make 'arg' const.
4995 (execute_gdb_command): Likewise.
4996 (gdbpy_decode_line): Likewise. Copy it.
4997 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4998 (gdbpy_write): Make 'arg' const.
4999 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5000 const.
5001 (gdbpy_lookup_type): Likewise.
5002 * python/py-prettyprint.c (print_children): Make 'name' const.
5003 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5004 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5005 Py_ssize_t.
5006 * python/py-function.c (fnpy_init): Make 'name' const.
5007 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5008 (gdbpy_string_to_argv): Make 'input' const.
5009 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5010 it.
5011 * gdbtypes.h (lookup_typename): Update.
5012 * gdbtypes.c (lookup_typename): Make 'name' const.
5013 (lookup_struct): Likewise.
5014 (lookup_union): Likewise.
5015 (lookup_enum): Likewise.
5016
5998129b
TT
50172011-06-24 Tom Tromey <tromey@redhat.com>
5018
5019 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5020 gdb_thread_db.h. Move all common/ entries to be together.
5021 (TAGS): Don't depend on DEPFILES.
5022
6e586cc5
YQ
50232011-06-23 Yao Qi <yao@codesourcery.com>
5024
5025 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5026 * remote.c (remote_start_remote): ... here.
5027 * monitor.c (monitor_open): ... here.
5028
86c3c1fc
AB
50292011-06-23 Andrew Burgess <aburgess@broadcom.com>
5030
5031 * gdbtypes.c (append_composite_type_field_aligned): Fix
5032 calculation of bit position based on alignment.
5033
28010a5d
PA
50342011-06-22 Pedro Alves <pedro@codesourcery.com>
5035
5036 * breakpoint.c (bpstat_stop_status): Call the check_status
5037 breakpoint_ops method.
5038 (print_one_breakpoint_location): Also print the condition for Ada
5039 exception catchpoints.
5040 (allocate_bp_location): New, factored out from
5041 allocate_bp_location.
5042 (allocate_bp_location): Adjust. Call the owner breakpoint's
5043 allocate_location method, if there is one.
5044 (free_bp_location): Call the locations's dtor method, if there is
5045 one.
5046 (init_raw_breakpoint_without_location): New breakpoint_ops
5047 parameter. Use it.
5048 (set_raw_breakpoint_without_location): Adjust.
5049 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5050 (set_raw_breakpoint): Adjust.
5051 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5052 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5053 re_set and check_status methods.
5054 (init_catchpoint): Don't memset, initialize thread, addr_string
5055 and enable_state. Pass the ops down to init_raw_breakpoint.
5056 (install_catchpoint): Rename to ...
5057 (install_breakpoint): ... this, and make extern.
5058 (create_fork_vfork_event_catchpoint): Adjust.
5059 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5060 re_set and check_status methods.
5061 (create_syscall_event_catchpoint): Adjust.
5062 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5063 (masked_watchpoint_breakpoint_ops): Install NULL
5064 allocate_location, re_set and check_status methods.
5065 (catch_exec_command_1): Adjust.
5066 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5067 re_set and check_status methods.
5068 (create_ada_exception_breakpoint): Rename to ...
5069 (init_ada_exception_breakpoint): ... this. Add a struct
5070 breakpoint parameter, and delete the exp_string, cond_string and
5071 cond parameters. Use init_raw_breakpoint, and don't install or
5072 mention the breakpoint yet. Don't clear breakpoint fields that
5073 init_raw_breakpoint already clears.
5074 (re_set_breakpoint): Delete, split into ...
5075 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5076 functions.
5077 (breakpoint_re_set_one): Call the breakpoint's
5078 breakpoint_ops->re_set implementation, if there's one. Adjust.
5079 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5080 (struct bp_location_ops): New type.
5081 (struct bp_location): New field `ops'.
5082 (struct breakpoint_ops): New `allocate_location', `re_set' and
5083 `check_status' fields. Make `breakpoint_hit''s description match
5084 reality.
5085 (init_bp_location): Declare.
5086 (breakpoint_re_set_default): Declare.
5087 (create_ada_exception_breakpoint): Rename to ...
5088 (init_ada_exception_breakpoint): ... this. Add a struct
5089 breakpoint parameter, and delete the exp_string, cond_string and
5090 cond parameters.
5091 (install_breakpoint): Declare.
5092 * ada-lang.c: Include exceptions.h.
5093 <Ada exceptions description>: Update.
5094 (struct ada_catchpoint_location): New type.
5095 (ada_catchpoint_location_dtor): New function.
5096 (ada_catchpoint_location_ops): New global.
5097 (ada_catchpoint): New type.
5098 (create_excep_cond_exprs): New function.
5099 (dtor_exception, allocate_location_exception, re_set_exception)
5100 (should_stop_exception, check_status_exception): New functions.
5101 (print_one_exception, print_mention_exception)
5102 (print_recreate_exception): Adjust.
5103 (dtor_catch_exception, allocate_location_catch_exception)
5104 (re_set_catch_exception, check_status_catch_exception): New
5105 functions.
5106 (catch_exception_breakpoint_ops): Install them.
5107 (dtor_catch_exception_unhandled)
5108 (allocate_location_catch_exception_unhandled)
5109 (re_set_catch_exception_unhandled)
5110 (check_status_catch_exception_unhandled): New functions.
5111 (catch_exception_unhandled_breakpoint_ops): Install them.
5112 (dtor_catch_assert, allocate_location_catch_assert)
5113 (re_set_catch_assert, check_status_catch_assert): New functions.
5114 (catch_assert_breakpoint_ops): Install them.
5115 (ada_exception_catchpoint_p): Delete.
5116 (catch_ada_exception_command_split)
5117 (ada_exception_catchpoint_cond_string): Rename exp_string
5118 parameter to excep_string. Adjust.
5119 (ada_parse_catchpoint_condition): Delete.
5120 (ada_exception_sal): Rename the exp_string parameter to
5121 excep_string. Delete the cond_string and cond parameters.
5122 Adjust.
5123 (ada_decode_exception_location): Rename the exp_string parameter
5124 to excep_string. Delete the cond_string and cond parameters.
5125 Adjust.
5126 (create_ada_exception_catchpoint): New function.
5127 (catch_ada_exception_command, ada_decode_assert_location)
5128 (catch_assert_command): Adjust.
5129 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5130
9ac4176b
PA
51312011-06-22 Pedro Alves <pedro@codesourcery.com>
5132
5133 * ada-lang.c: Include arch-utils.h.
5134 (ada_decode_exception_location): Make static.
5135 (catch_ada_exception_command): Moved here from breakpoint.c.
5136 (ada_decode_assert_location): Make static.
5137 (catch_assert_command): Moved here from breakpoint.c.
5138 (_initialize_ada_lang): Install the exception and assert
5139 catchpoint commands here.
5140 * ada-lang.h (ada_decode_exception_location)
5141 (ada_decode_assert_location): Delete declarations.
5142 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5143 breakpoint.h.
5144 (create_ada_exception_breakpoint): Make extern.
5145 (catch_ada_exception_command, catch_assert_command): Moved to
5146 ada-lang.c.
5147 (add_catch_command): Make extern.
5148 (_initilize_breakpoint): Don't install the exception and assert
5149 catchpoint commands here.
5150 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5151 breakpoint.c
5152 (add_catch_command, create_ada_exception_breakpoint): Declare.
5153
c56053d2
PA
51542011-06-22 Pedro Alves <pedro@codesourcery.com>
5155
5156 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5157 the breakpoint to the breakpoint chain here.
5158 (set_raw_breakpoint_without_location): Add the breakpoint to the
5159 breakpoint chain here.
5160 (init_raw_breakpoint): Adjust comments.
5161 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5162 here.
5163 (init_catchpoint): Don't set the catchpoint's breakpoint number
5164 here.
5165 (install_catchpoint): New function.
5166 (create_fork_vfork_event_catchpoint)
5167 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5168 use install_catchpoint.
5169
d2f3fc74
PA
51702011-06-22 Pedro Alves <pedro@codesourcery.com>
5171
5172 * breakpoint.c (create_catchpoint_without_mention)
5173 (create_catchpoint): Delete.
5174
b4d90040
PA
51752011-06-22 Pedro Alves <pedro@codesourcery.com>
5176
5177 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5178 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5179 reference to exec_pathname.
5180 (struct exec_catchpoint): New type.
5181 (dtor_catch_exec): New function.
5182 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5183 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5184 (catch_exec_command_1): Adjust to use init_catchpoint.
5185 (delete_breakpoint): Remove reference to exec_pathname.
5186
be5c67c1
PA
51872011-06-22 Pedro Alves <pedro@codesourcery.com>
5188
5189 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5190 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5191 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5192 reference to syscalls_to_be_caught.
5193 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5194 NULL `dtor'.
5195 (struct syscall_catchpoint): New type.
5196 (dtor_catch_syscall): New function.
5197 (insert_catch_syscall, remove_catch_syscall)
5198 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5199 (print_recreate_catch_syscall): Adjust.
5200 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5201 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5202 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5203 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5204 (masked_watchpoint_breakpoint_ops)
5205 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5206 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5207 there is one. Remove references to syscalls_to_be_caught.
5208 (catching_syscall_number): Adjust.
5209 * ada-lang.c (catch_exception_breakpoint_ops)
5210 (catch_exception_unhandled_breakpoint_ops)
5211 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5212
e29a4733
PA
52132011-06-22 Pedro Alves <pedro@codesourcery.com>
5214
5215 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5216 field.
5217 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5218 reference to forked_inferior_pid.
5219 (struct fork_catchpoint): New type.
5220 (breakpoint_hit_catch_fork, print_it_catch_fork)
5221 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5222 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5223 (create_fork_vfork_event_catchpoint): Adjust to use
5224 init_catchpoint.
5225
346774a9
PA
52262011-06-22 Pedro Alves <pedro@codesourcery.com>
5227
5228 * breakpoint.c (add_to_breakpoint_chain)
5229 (init_raw_breakpoint_without_location): New functions, factored
5230 out from ...
5231 (set_raw_breakpoint_without_location): ... this one.
5232 (init_raw_breakpoint): New function, factored out from
5233 set_raw_breakpoint and adjusted to use
5234 init_raw_breakpoint_without_location.
5235 (set_raw_breakpoint): Adjust.
5236 (init_catchpoint): New function, factored out from
5237 create_catchpoint_without_mention and adjusted to use
5238 init_raw_breakpoint.
5239 (create_catchpoint_without_mention): Adjust.
5240
c38c4bc5
TT
52412011-06-22 Tom Tromey <tromey@redhat.com>
5242
5243 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5244 argument of 0 specially.
5245
b138ce37
YQ
52462011-06-22 Yao Qi <yao@codesourcery.com>
5247
5248 * infrun.c (handle_inferior_event): Remove write-only local variable
5249 `sw_single_step_trap_p'.
5250
03de6823
TT
52512011-06-20 Tom Tromey <tromey@redhat.com>
5252
5253 * symtab.c (lookup_language_this): End loop if block is NULL.
5254
66a17cb6
TT
52552011-06-17 Tom Tromey <tromey@redhat.com>
5256
5257 * valops.c (value_of_this): Use lookup_language_this.
5258 * symtab.h (lookup_language_this): Declare.
5259 * symtab.c (lookup_language_this): New function.
5260 (lookup_symbol_aux): Use lookup_language_this.
5261 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5262
7518bff5
TT
52632011-06-17 Tom Tromey <tromey@redhat.com>
5264
5265 * value.h (value_of_this): Update.
5266 (value_of_local): Remove.
5267 * valops.c (value_of_this): Rename from value_of_local. Change
5268 parameters.
5269 * p-exp.y (exp): Update.
5270 (variable): Likewise.
5271 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5272
aee28ec6
TT
52732011-06-17 Tom Tromey <tromey@redhat.com>
5274
5275 * valops.c (value_of_local): Complain if NAME is NULL.
5276 * std-operator.def (OP_OBJC_SELF): Remove.
5277 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5278 * objc-exp.y (name_not_typename): Use OP_THIS.
5279 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5280 name for "this".
5281 <OP_OBJC_SELF>: Remove.
5282 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5283
eed8f803
TG
52842011-06-16 Tristan Gingold <gingold@adacore.com>
5285
5286 * python/py-events.h (gdb_py_events): Make it extern.
5287 * python/py-evtregistry.c (gdb_py_events): Declare.
5288
864ac8a7
HZ
52892011-06-16 Hui Zhu <teawater@gmail.com>
5290
5291 * remote.c (remote_trace_set_readonly_regions): Add check for
5292 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5293 output warning.
5294
ef7e8358
UW
52952011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5296
5297 * arm-linux-tdep.c: Include "auxv.h".
5298 (AT_HWCAP): Define.
5299 (ARM_LINUX_SIZEOF_VFP): Define.
5300 (arm_linux_supply_vfp): New function.
5301 (arm_linux_collect_vfp): Likewise.
5302 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5303 (arm_linux_fpa_regset_sections): New variable.
5304 (arm_linux_vfp_regset_sections): Likewise.
5305 (arm_linux_core_read_description): New function.
5306 (arm_linux_init_abi): Install arm_linux_core_read_description and
5307 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5308 appropriate for the architecture.
5309 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5310 (tdesc_arm_with_m): Declare.
5311 (tdesc_arm_with_iwmmxt): Likewise.
5312 (tdesc_arm_with_vfpv2): Likewise.
5313 (tdesc_arm_with_vfpv3): Likewise.
5314 (tdesc_arm_with_neon): Likewise.
5315 * arm-linux-nat.c: Move features/*.c includes ...
5316 * arm-tdep.c: ... here.
5317 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5318 target description data structures ...
5319 * arm-tdep.c (_initialize_arm_tdep): ... here.
5320 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5321 HWCAP_VFPv3D16): Move definitions ...
5322 * arm-linux-tdep.h: ... here.
5323
c2fa21f1
HZ
53242011-06-15 Hui Zhu <teawater@gmail.com>
5325
5326 * remote.c (remote_trace_set_readonly_regions): Add a check for
5327 target_buf_size.
5328
dd707e8e
TT
53292011-06-14 Tom Tromey <tromey@redhat.com>
5330
5331 * coffread.c (coffread_objfile): Rename from current_objfile.
5332 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5333 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5334
86cc0029
TT
53352011-06-14 Tom Tromey <tromey@redhat.com>
5336
5337 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5338 (class_symtab): Remove.
5339 (jv_dynamics_progspace_key): New global.
5340 (jv_per_objfile_free): Reset program space data. Update assert.
5341 Don't clear globals.
5342 (get_dynamics_objfile): Use and set program space data.
5343 (get_java_class_symtab): Use get_dynamics_objfile.
5344 (add_class_symbol): Likewise.
5345 (java_link_class_type): Likewise.
5346 (java_object_type, jv_clear_object_type, set_java_object_type):
5347 Remove.
5348 (get_java_object_type): Update. Don't cache result.
5349 (is_object_type): Don't call set_java_object_type.
5350 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5351 initialize jv_dynamics_progspace_key.
5352
91a81f69
TT
53532011-06-14 Tom Tromey <tromey@redhat.com>
5354
5355 * symtab.h (current_objfile): Don't declare.
5356 * objfiles.h (current_objfile): Don't declare.
5357 * objfiles.c (current_objfile): Remove.
5358 * mdebugread.c (current_objfile): New file-scope global.
5359 * dbxread.c (current_objfile): New file-scope global.
5360 * coffread.c (current_objfile): New file-scope global.
5361
dc7eb48e
PA
53622011-06-13 Pedro Alves <pedro@codesourcery.com>
5363
5364 * top.h (line): Rename to ...
5365 (saved_command_line): ... this.
5366 (linesize): Rename to ...
5367 (saved_command_line_size): ... this.
5368 * top.c (line): Rename to ...
5369 (saved_command_line): ... this.
5370 (linesize): Rename to ...
5371 (saved_command_line_size): ... this.
5372 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5373 * event-top.c (command_line_handler): Adjust.
5374 * main.c (captured_main): Adjust.
5375
0d6c2135
MK
53762011-06-12 Mark Kettenis <kettenis@gnu.org>
5377
5378 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5379 get_frame_func instead of get_frame_pc to determine the code
5380 address used to construct the frame ID.
5381 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5382 (i386_epilogue_frame_this_id): Likewise.
5383 (i386_epilogue_frame_prev_register): New function.
5384 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5385 (i386_stack_tramp_frame_sniffer): Fix coding style.
5386 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5387 (i386_gdbarch_init): Fix comments.
5388
8bbdd3f4
MK
53892011-06-12 Mark Kettenis <kettenis@gnu.org>
5390
5391 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5392 instruction when walking back through the instruction stream.
5393
533a737e
JK
53942011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5395
5396 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5397 fullname parameters order.
5398
44b13c5a
JK
53992011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5400
5401 Code cleanup.
5402 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5403 for fun.
5404 * psymtab.c (map_symbol_filenames_psymtab)
5405 (map_partial_symbol_filenames): Likewise.
5406 * psymtab.h: Include symfile.h.
5407 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5408 * symfile.h (symbol_filename_ftype): New.
5409 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5410 map_symbol_filenames, clarify more the naming in comment.
5411
0b5574da
DE
54122011-06-07 Doug Evans <dje@google.com>
5413
5414 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5415 Look for ../../gdb, for fullname.exp.
0b5574da 5416
5be4dfca
JK
54172011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5418 Pedro Alves <pedro@codesourcery.com>
5419
5420 * cli/cli-cmds.c (shell_escape): Use waitpid.
5421 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5422
316a8b21
TG
54232011-06-07 Tristan Gingold <gingold@adacore.com>
5424
5425 * xcoffread.c (dwarf2_xcoff_names): New variable.
5426 (aix_process_linenos): Add a guard.
5427 (xcoff_symfile_finish): Free dwarf2.
5428 (xcoff_initial_scan): Add dwarf2 support.
5429
3dd5b83d
PA
54302011-06-06 Pedro Alves <pedro@codesourcery.com>
5431
5432 * infcall.c (run_inferior_call): Don't mask async. Instead force
5433 a synchronous wait, if the target can async.
5434
5435 * target.h (struct target_ops): Delete to_async_mask.
5436 (target_async_mask): Delete.
5437 * target.c (update_current_target): Delete references to to_async_mask.
5438 * linux-nat.c (linux_nat_async_mask_value): Delete.
5439 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5440 to linux_nat_async_mask_value.
5441 (linux_nat_async_mask): Delete.
5442 (linux_nat_async, linux_nat_close): Remove references to
5443 linux_nat_async_mask_value.
5444 * record.c (record_async_mask_value): Delete.
5445 (record_async): Remove references to record_async_mask_value.
5446 (record_async_mask): Delete.
5447 (record_can_async_p, record_is_async_p): Remove references to
5448 record_async_mask_value.
5449 (init_record_ops, init_record_core_ops): Remove references to
5450 record_async_mask.
5451 * remote.c (remote_async_mask_value): Delete.
5452 (init_remote_ops): Remove reference to remote_async_mask.
5453 (remote_can_async_p, remote_is_async_p): Remove references to
5454 remote_async_mask_value.
5455 (remote_async): Remove references to remote_async_mask_value.
5456 (remote_async_mask): Delete.
5457
5458 * infrun.c (fetch_inferior_event): Don't claim registers changed
5459 if the current thread is already not executing.
5460
64b9b334
JB
54612011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5462
5463 From Stephen Kitt <steve@sk2.org>
5464 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5465 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5466
325663dc
JB
54672011-06-03 Joel Brobecker <brobecker@adacore.com>
5468
5469 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5470 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5471
8cf64490
TT
54722011-06-03 Tom Tromey <tromey@redhat.com>
5473
5474 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5475 code fields.
5476 * python/py-exitedevent.c (create_exited_event_object): Change
5477 type of 'exit_code'. Optionally add exit_code attribute.
5478 (emit_exited_event): Change type of 'exit_code'.
5479 * python/py-event.h (emit_exited_event): Update.
5480 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5481 * infrun.c (handle_inferior_event): Set exit code fields on
5482 inferior.
5483 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5484 fields.
5485 * inferior.c (exit_inferior_1): Initialize new fields.
5486
8ddd9a20
TT
54872011-06-03 Tom Tromey <tromey@redhat.com>
5488
5489 * dwarf2expr.c (get_signed_type): New function.
5490 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5491
8dfd1e6d
KS
54922011-06-02 Keith Seitz <keiths@redhat.com>
5493
5494 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5495
65fdb766
PA
54962011-06-02 Pedro Alves <pedro@codesourcery.com>
5497
5498 * top.h (simplified_command_loop): Delete declaration.
5499
f4b8c29b
MF
55002011-06-01 Mike Frysinger <vapier@gentoo.org>
5501
5502 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5503 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5504
1706c199
YQ
55052011-06-01 Yao Qi <yao@codesourcery.com>
5506
5507 * objfiles.h (obj_section_addr): Update reference to objfile from
5508 `abfd' to `obfd'.
5509 (obj_section_endaddr): Likewise.
5510
d19cd713 55112011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5512
5513 * MAINTAINERS: Update my email address and affiliation. Also
5514 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5515
e8eb7bc5
KS
55162010-05-31 Keith Seitz <keiths@redhat.com>
5517
5518 PR c++/12750
5519 * linespec.c (get_search_block): New function.
5520 (find_methods): Add FILE_SYMTATB parameter and use it and
5521 get_search_block to pass an appropriate block to
5522 lookup_symbol_in_namespace.
5523 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5524 Check if *ARGPTR starts with a filename first.
5525 If it does, call locate_first_half again to locate the next
5526 "first half" of the linespec.
5527 Pass FILE_SYMTATB to decode_objc and decode_compound.
5528 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5529 (locate_first_half): Stop on the first colon seen.
5530 (decode_compound): Add FILE_SYMTAB parameter.
5531 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5532 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5533 get_search_block with lookup_symbol.
5534 (find_method): Add FILE_SYMTAB parameter and pass it to
5535 find_methods.
5536 (decode_objc): Use get_search_block.
5537
2b1dbab0
KS
55382010-05-31 Keith Seitz <keiths@redhat.com>
5539
5540 PR symtab/12704
5541 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5542 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5543 and CP_ANONYMOUS_NAMESPACE_LEN.
5544 (cp_is_anonymous): Likewise.
5545 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5546 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5547 * dwarf2read.c (namespace_name): Likewise.
5548 (fixup_partial_die): Likewise.
5549 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5550 seen in the input, keep it.
5551
6d549500
PA
55522011-05-30 Pedro Alves <pedro@codesourcery.com>
5553
5554 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5555 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5556 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5557 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5558 * remote.c (_initialize_remote): Register
5559 async_remote_interrupt_twice directly as
5560 sigint_remote_twice_token event.
5561
395bff70
PA
55622011-05-30 Pedro Alves <pedro@codesourcery.com>
5563
5564 * target.h (enum inferior_event_type): Delete INF_ERROR.
5565 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5566
97224164
PA
55672011-05-30 Pedro Alves <pedro@codesourcery.com>
5568
5569 * interps.c (interp_set): Don't cancel continuations.
5570
07e78767
JK
55712011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5572
5573 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5574
fa4cd53f
PA
55752011-05-30 Pedro Alves <pedro@codesourcery.com>
5576
5577 * continuations.h (continuation_ftype): Add `err' parameter.
5578 Document parameters.
5579 (do_all_continuations, do_all_continuations_thread)
5580 (do_all_intermediate_continuations)
5581 (do_all_intermediate_continuations_thread)
5582 (do_all_inferior_continuations): Add `err' parameter.
5583 * continuations.c (do_my_continuations_1, do_my_continuations)
5584 (do_all_inferior_continuations, do_all_continuations_ptid)
5585 (do_all_continuations_thread_callback)
5586 (do_all_continuations_thread, do_all_continuations)
5587 (do_all_intermediate_continuations_thread_callback)
5588 (do_all_intermediate_continuations_thread)
5589 (do_all_intermediate_continuations): Add `err' parameter, and pass
5590 it down all the way to the continuations proper.
5591 * inf-loop.c (inferior_event_handler): If fetching an inferior
5592 event throws an error, don't pop the target, and still call the
5593 continuations, but with `err' set. Adjust all other continuation
5594 calls.
5595 * breakpoint.c (until_break_command_continuation): Add `err'
5596 parameter.
5597 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5598 issue another step if `err' is set.
5599 (struct until_next_continuation_args): New.
5600 (until_next_continuation): Add `err' parameter. Adjust.
5601 (until_next_command): Adjust.
5602 (struct finish_command_continuation_args): Add `thread' field.
5603 (finish_command_continuation): Add `err' parameter. Handle it.
5604 (finish_forward): Adjust.
5605 (attach_command_continuation): Add `err' parameter. Handle it.
5606 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5607 cancel the continuations.
5608 * interps.c (interp_set): Adjust to cancel the continuations.
5609 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5610 continuations rather than discarding.
5611 (free_thread): Don't clear thread inferior resources here.
5612 (delete_thread_1): Do it here instead. And do it before removing
5613 the thread from the threads list. Tag the thread as exited before
5614 clearing thread inferior resources.
5615
c2949be0
JB
56162011-05-30 Joel Brobecker <brobecker@adacore.com>
5617
5618 * infcall.c (call_function_by_hand): Rephrase error message.
5619
619cebe8
PA
56202011-05-27 Pedro Alves <pedro@codesourcery.com>
5621
5622 * defs.h (struct thread_info, struct inferior): Delete forward
5623 declarations.
5624 * breakpoint.h (struct thread_info): New forward declaration.
5625 * observer.sh (struct inferior): New forward declaration.
5626 * python/python-internal.h (struct inferior): New forward
5627 declaration.
5628
be34f849
PA
56292011-05-27 Pedro Alves <pedro@codesourcery.com>
5630
5631 * defs.h (struct continuation, continuation_ftype)
5632 (continuation_free_arg_ftype, add_continuation)
5633 (do_all_continuations, do_all_continuations_thread)
5634 (discard_all_continuations, discard_all_continuations_thread)
5635 (add_intermediate_continuation, do_all_intermediate_continuations)
5636 (do_all_intermediate_continuations_thread)
5637 (discard_all_intermediate_continuations)
5638 (discard_all_intermediate_continuations_thread)
5639 (add_inferior_continuation, do_all_inferior_continuations)
5640 (discard_all_inferior_continuations): Move to ...
5641 * continuations.h: ... this new file.
5642 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5643 infcmd.c, inferior.c, infrun.c, interps.c: Include
5644 continuations.h.
5645
432b4d03
JK
56462011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5647 Doug Evans <dje@google.com>
5648
5649 Fix PR 10970, PR 12702.
5650 * linux-nat.c (linux_lwp_is_zombie): New function.
5651 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5652 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5653
b0f260d6
PA
56542011-05-27 Pedro Alves <pedro@codesourcery.com>
5655
5656 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5657 typedefs.
5658 (add_continuation, add_intermediate_continuation)
5659 (add_inferior_continuation): Use them.
5660 * continuations.c (struct continuation): Use them.
5661 (make_continuation_ftype): Delete.
5662 (make_continuation, add_inferior_continuation, add_continuation)
5663 (add_intermediate_continuation): Use continuation_ftype and
5664 continuation_free_arg_ftype. Rename parameters to shorter names.
5665
af1e9a32
PA
56662011-05-27 Pedro Alves <pedro@codesourcery.com>
5667
5668 * continuations.c (make_continuation): Make it return void.
5669 (do_my_continuations): Rename to ...
5670 (do_my_continuations_1): ... this. Remove old_chain parameter and
5671 adjust.
5672 (do_my_continuations): New.
5673 (discard_my_continuations): Rename to ...
5674 (discard_my_continuations_1): ... this. Remove old_chain
5675 parameter and adjust.
5676 (discard_my_continuations): New.
5677 (add_inferior_continuation): Simplify.
5678 (do_all_inferior_continuations): Reimplement on top
5679 do_my_continuations.
5680 (discard_all_inferior_continuations): Simplify.
5681 (add_continuation): Simplify.
5682 (do_all_continuations_ptid): Simplify.
5683 (discard_all_continuations_thread_callback): Simplify.
5684 (add_intermediate_continuation): Simplify.
5685 (discard_all_intermediate_continuations_thread_callback):
5686 Simplify.
5687
50c0c017
PA
56882011-05-27 Pedro Alves <pedro@codesourcery.com>
5689
5690 * utils.c (struct continuation, add_continuation)
5691 (add_inferior_continuation)
5692 (do_all_inferior_continuations, discard_all_inferior_continuations)
5693 (restore_thread_cleanup, do_all_continuations_ptid)
5694 (do_all_continuations_thread_callback)
5695 (do_all_continuations_thread, do_all_continuations)
5696 (discard_all_continuations_thread_callback)
5697 (discard_all_continuations_thread, discard_all_continuations)
5698 (add_intermediate_continuation)
5699 (do_all_intermediate_continuations_thread_callback)
5700 (do_all_intermediate_continuations_thread)
5701 (do_all_intermediate_continuations)
5702 (discard_all_intermediate_continuations_thread_callback)
5703 (discard_all_intermediate_continuations_thread)
5704 (discard_all_intermediate_continuations): Move to ...
5705 * continuations.c: ... this new file, and adjust to no longer
5706 implement continuations on top of cleanups.
5707 * Makefile.in (SFILES): Add continuations.c.
5708 (COMMON_OBS): Add continuations.o.
5709
d8b34453
PA
57102011-05-26 Pedro Alves <pedro@codesourcery.com>
5711
5712 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5713 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5714 Internal error on invalid values.
5715 * reverse.c: Don't handle EXEC_ERROR.
5716 * mi/mi-main.c: Don't handle EXEC_ERROR.
5717
32231432
PA
57182011-05-26 Pedro Alves <pedro@codesourcery.com>
5719
5720 * record.c: Include event-loop.h, inf-loop.h.
5721 (record_beneath_to_async): New global.
5722 (tmp_to_async): New global.
5723 (record_async_inferior_event_token): New global.
5724 (record_open_1): Don't error out if async is enabled.
5725 (record_open): Handle to_async. Create an async event source in
5726 the event loop.
5727 (record_close): Delete the async event source.
5728 (record_resumed): New global.
5729 (record_execution_dir): New global.
5730 (record_resume, record_core_resume): Set them. Register the
5731 target on the event loop.
5732 (record_wait): Rename to ...
5733 (record_wait_1): ... this. Add more debug output. Handle
5734 TARGET_WNOHANG, and the target beneath returning
5735 TARGET_WAITKIND_IGNORE.
5736 (record_wait): Reimplement on top of record_wait_1.
5737 (record_async_mask_value): New global.
5738 (record_async, record_async_mask, record_can_async_p)
5739 (record_is_async_p, record_execution_direction): New functions.
5740 (init_record_ops, init_record_core_ops): Install new methods.
5741 * infrun.c (fetch_inferior_event): Temporarily switch the global
5742 execution direction to the direction the target was going.
5743 (execution_direction): Change type to int.
5744 * target.c (default_execution_direction): New function.
5745 (update_current_target): Inherit and de_fault
5746 to_execution_direction.
5747 * target.h (struct target_ops) <to_execution_direction>: New
5748 field.
5749 (target_execution_direction): New macro.
5750 * inferior.h (execution_direction): Change type to int.
5751
949dc678
PA
57522011-05-26 Pedro Alves <pedro@codesourcery.com>
5753
5754 * infcall.c (call_function_by_hand): Don't allow calling functions
5755 in reverse execution mode.
5756
c13bd2b5
PA
57572011-05-26 Pedro Alves <pedro@codesourcery.com>
5758
5759 * infcmd.c (finish_command): Allow async finish in reverse.
5760
6938fd34
YQ
57612011-05-26 Yao Qi <yao@codesourcery.com>
5762
5763 * gdb_thread_db.h: Delete. Move to ...
5764 * common/gdb_thread_db.h: ... here.
5765
9da8c2a0
PA
57662011-05-26 Pedro Alves <pedro@codesourcery.com>
5767
5768 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5769 function's entry point instead of a manually managed momentary
5770 breakpoint, and only ever issue one proceed call.
5771 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5772 doing a reverse-finish, switch to stepi mode, to do another step.
5773 (insert_step_resume_breakpoint_at_sal): Make public.
5774 (normal_stop): No need to save function value return registers if
5775 going reverse.
5776 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5777
2c03e5be
PA
57782011-05-26 Pedro Alves <pedro@codesourcery.com>
5779
5780 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5781 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5782 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5783 at the end.
5784 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5785 step-resume breakpoints.
5786 (print_it_typical): Handle bp_hp_step_resume.
5787 (bpstat_what): Ditto.
5788 (bptype_string): Ditto.
5789 (print_one_breakpoint_location): Ditto.
5790 (allocate_bp_location): Ditto.
5791 (mention): Ditto.
5792 (breakpoint_re_set_one): Ditto.
5793 * infrun.c (handle_inferior_event): Adjust. Split
5794 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5795 BPSTAT_WHAT_HP_STEP_RESUME.
5796 (insert_step_resume_breakpoint_at_sal): Rename to ...
5797 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5798 parameter. Handle it.
5799 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5800 insert_step_resume_breakpoint_at_sal_1.
5801 (insert_step_resume_breakpoint_at_frame): Rename to ...
5802 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5803 set a high-priority step-resume breakpoint.
5804 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5805 (insert_step_resume_breakpoint_at_caller): Ditto.
5806
51be5b68
PA
58072011-05-26 Pedro Alves <pedro@codesourcery.com>
5808
5809 * breakpoint.c (iterate_over_related_breakpoints): New.
5810 (do_map_delete_breakpoint): New.
5811 (delete_command): Pass do_map_delete_breakpoint to
5812 map_breakpoint_numbers.
5813 (do_disable_breakpoint): New.
5814 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5815 breakpoints.
5816 (do_enable_breakpoint): Rename to ...
5817 (enable_breakpoint_disp): ... this.
5818 (enable_breakpoint): Adjust.
5819 (do_enable_breakpoint): New.
5820 (enable_once_breakpoint): Delete.
5821 (do_map_enable_breakpoint): New.
5822 (do_map_enable_once_breakpoint): New.
5823 (enable_once_command, enable_delete_command)
5824 (delete_trace_command): Iterate over the breakpoint's related
5825 breakpoints.
5826
4a1be8d2
PA
58272011-05-26 Pedro Alves <pedro@codesourcery.com>
5828
5829 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5830 for ALPHA_ZERO_REGNUM.
5831 (alpha_supply_int_regs): Explicitly supply zero as the value for
5832 ALPHA_ZERO_REGNUM in the register cache.
5833 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5834
59d70315
YQ
58352011-05-26 Yao Qi <yao@codesourcery.com>
5836
5837 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5838
251d32d9
TG
58392011-05-26 Tristan Gingold <gingold@adacore.com>
5840
5841 * symfile.h (struct dwarf2_section_names): New type.
5842 (struct dwarf2_debug_sections): New type.
5843 (dwarf2_has_info): Add parameter.
5844 * dwarf2read.c (dwarf2_elf_names): New variable.
5845 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5846 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5847 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5848 (dwarf2_has_info): Add names parameter. Pass names
5849 to dwarf2_locate_sections.
5850 (section_is_p): Rewrite using the names parameter.
5851 (dwarf2_locate_sections): Use section names from the names parameter.
5852 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5853 * elfread.c (read_psyms): Ditto.
5854 * machoread.c (macho_symfile_read): Ditto.
5855
652c71b4
AS
58562011-05-25 Andreas Schwab <schwab@redhat.com>
5857
5858 PR gdb/8677
5859 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5860
f17170e5
KS
58612011-05-24 Keith Seitz <keiths@redhat.com>
5862
5863 PR breakpoint/12803
5864 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5865 (decode_compound): Unconditionally call keep_name_info.
5866
cdac0397
PA
58672011-05-24 Pedro Alves <pedro@codesourcery.com>
5868
5869 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5870 scope, clear its command list.
5871 (map_breakpoint_numbers): Don't walk the related breakpoints list
5872 of each breakpoint.
5873
91d4fe3f
TT
58742011-05-24 Tom Tromey <tromey@redhat.com>
5875
5876 * MAINTAINERS: Move Jim Blandy to past maintainers.
5877
3017a003
TG
58782011-05-24 Tristan Gingold <gingold@adacore.com>
5879
5880 * symfile.h (enum dwarf2_section_enum): New type.
5881 (dwarf2_get_section_info): New prototype.
5882 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5883 section_name by sect. Use a switch to select the info.
5884 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5885 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5886
c91c8c16
PA
58872011-05-24 Pedro Alves <pedro@codesourcery.com>
5888
5889 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5890 shared library event breakpoint if there's no execution.
5891
77bc418a
TJB
58922011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5893
5894 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5895 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5896
c50491a7
TT
58972011-05-23 Tom Tromey <tromey@redhat.com>
5898
5899 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5900 NULL.
5901
6d64e6d4
DE
59022011-05-23 Doug Evans <dje@google.com>
5903
5904 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5905 entry for RuntimeError to doc string.
5906
2067c8d4
JG
59072011-05-23 Jerome Guitton <guitton@adacore.com>
5908
5909 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5910 sequence for probing loops.
5911
b136cd05
PA
59122011-05-23 Pedro Alves <pedro@codesourcery.com>
5913
5914 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5915 comment.
5916
22e74ef9
MK
59172011-05-21 Mark Kettenis <kettenis@gnu.org>
5918
5919 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5920 zero as the value for %g0 in the register cache.
5921 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5922 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5923
842951eb
PA
59242011-05-20 Pedro Alves <pedro@codesourcery.com>
5925
5926 * infrun.c (proceed): Set previous_inferior_ptid here.
5927 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5928 inferior_ptid, not null_ptid.
5929 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5930 (fetch_inferior_event): Nor here.
5931
46cf51e6
PA
59322011-05-20 Pedro Alves <pedro@codesourcery.com>
5933
5934 * inf-loop.c (inferior_event_handler): Only output a message if
5935 verbose.
5936
29ef4c46
LM
59372011-05-20 Luis Machado <lgustavo@codesourcery.com>
5938
5939 * MAINTAINERS: Update my e-mail address.
5940
f148b27e
PA
59412011-05-20 Pedro Alves <pedro@codesourcery.com>
5942
5943 * infrun.c (proceed): Switch the inferior event loop to
5944 INF_EXEC_COMPLETE if the target refused to resume from a
5945 vfork/fork.
5946
09cee04b
PA
59472011-05-20 Pedro Alves <pedro@codesourcery.com>
5948
5949 * infcmd.c: Include "inf-loop.h".
5950 (step_once): When stepping into an inline subroutine, pretend the
5951 target has run. If the target can async, switch the inferior
5952 event loop to INF_EXEC_COMPLETE.
5953 * inferior.h (user_visible_resume_ptid): Declare.
5954 * infrun.c (user_visible_resume_ptid): New function, factored out
5955 from `resume'.
5956 (resume): Use it.
5957 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5958 that the current thread is running. Merge async and sync
5959 branches.
5960
751b8ce1
PA
59612011-05-20 Pedro Alves <pedro@codesourcery.com>
5962
5963 * infcmd.c (step_1): Simplify synchronous case.
5964
e93a69ed
PA
59652011-05-20 Pedro Alves <pedro@codesourcery.com>
5966
5967 * tracepoint.c: Include exceptions.h.
5968 (TFILE_PID): Move higher in file.
5969 (tfile_open): Delay pushing the tfile target until we're assured
5970 the tfile header is present in the file. Wrap reading the initial
5971 newline-terminated lines in TRY_CATCH. Pop the target if the
5972 initial setup failed. Add the tfile's thread immediately
5973 aftwards, before any non-essential setup. Don't skip
5974 post_create_inferior if there are no traceframes present in the
5975 file.
5976 (tfile_close): Remove redundant check for null before xfree call.
5977 (tfile_thread_alive): New function.
5978 (init_tfile_ops): Register it as to_thread_alive callback.
5979
6823e2b1
PA
59802011-05-20 Pedro Alves <pedro@codesourcery.com>
5981
5982 * tracepoint.c (tfile_open): Delete #if 0'd code.
5983
b3c8eb43
JK
59842011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5985
5986 Fix -readnow for -gdwarf-4 unused type units.
5987 * dwarf2read.c (struct signatured_type): Remove the field offset.
5988 (create_signatured_type_table_from_index): Remove its initialization.
5989 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5990 instead. Add a complaint call.
5991 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5992 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5993 (lookup_signatured_type_at_offset, read_signatured_type)
5994 (write_one_signatured_type): Update the field for per_cu.
5995
310afc76
TT
59962011-05-19 Tom Tromey <tromey@redhat.com>
5997
5998 * python/py-inferior.c (python_inferior_exit): Use
5999 target_gdbarch.
6000 (python_on_resume): Likewise.
6001
cf6c5ffb
TT
60022011-05-19 Matt Rice <ratmice@gmail.com>
6003
6004 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6005
fb80a3c5
HZ
60062011-05-19 Hui Zhu <teawater@gmail.com>
6007
6008 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6009
3672b1be
HZ
60102011-05-19 Hui Zhu <teawater@gmail.com>
6011
6012 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6013
ff355380
TT
60142011-05-18 Tom Tromey <tromey@redhat.com>
6015
6016 * dwarf2read.c (dwarf2_add_field): Constify.
6017 * value.c (value_static_field): Constify.
6018 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6019 Now const.
6020 * ax-gdb.c (gen_static_field): Constify
6021
ed731959
JK
60222011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6023
6024 * linux-nat.c (kill_callback): Use SIGKILL first.
6025
967cff16
JB
60262011-05-18 Joel Brobecker <brobecker@adacore.com>
6027
6028 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6029
1d06ead6
TT
60302011-05-18 Tom Tromey <tromey@redhat.com>
6031
6032 * value.c (value_fn_field): Constify.
6033 * symtab.c (gdb_mangle_name): Constify.
6034 * stabsread.c (update_method_name_from_physname): Make 'physname'
6035 argument const.
6036 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6037 const. Use explicit fputc_filtered loop.
6038 (pascal_type_print_base): Constify.
6039 * p-lang.h (pascal_type_print_method_args): Update.
6040 * linespec.c (add_matching_methods): Constify.
6041 (add_constructors): Likewise.
6042 * jv-typeprint.c (java_type_print_base): Constify.
6043 * gdbtypes.h (struct cplus_struct_type)
6044 <fn_fieldlist.fn_field.physname>: Now const.
6045 * dwarf2read.c (compute_delayed_physnames): Constify.
6046 (dwarf2_add_member_fn): Likewise.
6047 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6048
0d9a9a5f
PA
60492011-05-18 Pedro Alves <pedro@codesourcery.com>
6050
6051 * infrun.c (resume): Mention which is the current thread, and its
6052 current PC in debug output.
6053 (prepare_to_proceed): Mention the thread switching in debug
6054 output.
6055
05386e9e
TT
60562011-05-18 Tom Tromey <tromey@redhat.com>
6057
6058 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6059 path check. Use xmalloc and cleanups.
6060 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6061
ee86786c
TT
60622011-05-17 Tom Tromey <tromey@redhat.com>
6063
6064 * cp-valprint.c (cp_print_value_fields): Catch errors from
6065 value_static_field.
6066
9ff3b74f
TT
60672011-05-17 Tom Tromey <tromey@redhat.com>
6068
6069 * dwarf2read.c (dwarf2_get_die_type): Call
6070 get_die_type_at_offset.
6071 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6072 get_base_type function.
6073
cd3da28e
PA
60742011-05-17 Tomas Martinec <fyzmat@gmail.com>
6075
6076 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6077 trap_expected.
6078
fd20d931
DE
60792011-05-16 Doug Evans <dje@google.com>
6080
6081 * python/py-auto-load.c (source_section_scripts): Mention objfile
6082 name in warning.
6083
75fc9810
DE
60842011-05-15 Doug Evans <dje@google.com>
6085
290351b8
DE
6086 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6087 (try_thread_db_load_from_pdir): Call it. If unable to find
6088 libthread_db in directory of libpthread, see if we're looking at
6089 the separate-debug-info copy.
6090
75fc9810
DE
6091 * python/py-autoload.c (print_script): Print "Missing" instead of
6092 "No" for missing scripts.
6093 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6094
9f7bc587
DE
60952011-05-13 Doug Evans <dje@google.com>
6096
6097 * ui-file.c (stdio_file_write_async_safe): Add comment.
6098
093cee7d
HZ
60992011-05-14 Hui Zhu <teawater@gmail.com>
6100
6101 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6102
dbaefcf7
DE
61032011-05-13 Doug Evans <dje@google.com>
6104
98a5dd13
DE
6105 Support $pdir and $sdir in libthread-db-search-path.
6106 * NEWS: Mention $sdir,$pdir.
6107 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6108 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6109 (try_thread_db_load_from_sdir): New function.
6110 (try_thread_db_load_from_dir): New function.
6111 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6112 system directories if search of libthread-db-search-path fails,
6113 that is now done via $sdir.
6114 (has_libpthread): New function.
6115 (thread_db_load): Remove search for libthread_db in directory of
6116 libpthread, that is now done via $pdir.
6117
dbaefcf7
DE
6118 * NEWS: Mention "info auto-load-scripts".
6119 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6120 script_not_found_warning_printed.
6121 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6122 all callers updated. Initialize script_not_found_warning_printed.
6123 (get_auto_load_pspace_data_for_loading): New function.
6124 (maybe_add_script): New function.
6125 (source_section_scripts): Simplify. Only print one warning regardless
6126 of the number of auto-load scripts not found.
6127 (clear_section_scripts): Clear script_not_found_warning_printed.
6128 (auto_load_objfile_script): Record script in hash table.
6129 (count_matching_scripts): New function.
6130 (maybe_print_script): Renamed from maybe_print_section_script, all
6131 callers updated. Rewrite to use ui_out_*.
6132 (info_auto_load_scripts): Renamed from
6133 maintenance_print_section_scripts, all callers updated.
6134 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6135 renamed as "info auto-load-scripts".
6136
9930639c
TT
61372011-05-13 Tom Tromey <tromey@redhat.com>
6138
6139 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6140 (read_sleb128): Likewise.
6141
06826322
TT
61422011-05-13 Tom Tromey <tromey@redhat.com>
6143
6144 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6145 offset display.
6146
01124a23
DE
61472011-05-13 Doug Evans <dje@google.com>
6148
6149 * linux-nat.c (debug_linux_nat_async): Delete.
6150 Replace all references to use debug_linux_nat instead.
6151 (show_debug_linux_nat_async): Delete.
6152 (sigchld_handler): Call ui_file_write_async_safe instead of
6153 fprintf_unfiltered.
6154 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6155 * ui-file.c (struct ui_file): New member to_write_async_safe.
6156 (null_file_write_async_safe): New function.
6157 (ui_file_write_async_safe): New function.
6158 (set_ui_file_write_async_safe): New function.
6159 (ui_file_new): Initialize to_write_async_safe.
6160 (stdio_file_write_async_safe): New function.
6161 (struct stdio_file): New member fd.
6162 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6163 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6164 fileno.
01124a23
DE
6165 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6166 (set_ui_file_write_async_safe): Declare.
6167 (ui_file_write_async_safe): Declare.
6168
72fc29ff
TT
61692011-05-13 Tom Tromey <tromey@redhat.com>
6170
6171 * utils.c (do_value_free): New function.
6172 (make_cleanup_value_free): Likewise.
6173 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6174 freeing correctly.
6175 (dwarf2_loc_desc_needs_frame): Call
6176 make_cleanup_value_free_to_mark.
6177 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6178 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6179 value_free_to_mark.
6180 (new_dwarf_expr_context): Don't call value_mark.
6181 * dwarf2-frame.c (execute_stack_op): Call
6182 make_cleanup_value_free_to_mark.
6183 * defs.h (make_cleanup_value_free): Declare.
6184
028d0ed5
TJB
61852011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6186
6187 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6188 prepare_execute_command.
6189 * top.c (prepare_execute_command): Return cleanup.
6190 (execute_command): Use cleanup from prepare_execute_command.
6191 * top.h (prepare_execute_command): Change prototype to return
6192 cleanup.
6193 * defs.h (struct value): Add opaque declaration.
6194 (make_cleanup_value_free_to_mark): Add prototype.
6195 * utils.c (do_value_free_to_mark): New function.
6196 (make_cleanup_value_free_to_mark): Likewise.
6197
b087e0ed
TT
61982011-05-12 Tom Tromey <tromey@redhat.com>
6199
6200 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6201 cast left-hand-side to unsigned.
6202
8a9b8146
TT
62032011-05-12 Tom Tromey <tromey@redhat.com>
6204
6205 PR gdb/12617:
6206 * value.h (value_from_contents): Declare.
6207 * value.c (value_from_contents): New function.
6208 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6209 (dwarf2_get_die_type): New function.
6210 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6211 (allocate_piece_closure): Acquire reference to values.
6212 (read_pieced_value): Update for value-based expressions.
6213 (write_pieced_value): Likewise.
6214 (free_pieced_value_closure): Call value_free as needed.
6215 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6216 Update for value-based expressions.
6217 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6218 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6219 <get_base_type>: New field.
6220 (struct dwarf_expr_piece) <v.value>: Change type.
6221 <v.regno>: New field.
6222 (struct dwarf_expr_context) <mark>: New field.
6223 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6224 (dwarf_expr_pop, dwarf_expr_push): Remove.
6225 (dwarf_expr_push_address): Declare.
6226 * dwarf2expr.c (dwarf_arch_cookie): New global.
6227 (struct dwarf_gdbarch_types): New.
6228 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6229 functions.
6230 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6231 static.
6232 (dwarf_expr_push_address): New function.
6233 (dwarf_expr_pop): Now static.
6234 (dwarf_expr_fetch): Change return type.
6235 (dwarf_require_integral): New function.
6236 (dwarf_expr_fetch): Simplify.
6237 (add_piece): Update.
6238 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6239 functions.
6240 (execute_stack_op) <sign_ext>: Remove.
6241 Use values for DWARF stack.
6242 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6243 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6244 New cases.
6245 (_initialize_dwarf2expr): New function.
6246 (add_piece): Update.
6247 (new_dwarf_expr_context): Set new field.
6248 (free_dwarf_expr_context): Call value_free_to_mark.
6249 * dwarf2-frame.c (no_base_type): New function.
6250 (execute_stack_op): Set get_base_type field. Update.
6251
e8d28ef4
TT
62522011-05-12 Tom Tromey <tromey@redhat.com>
6253
6254 * dwarf2read.c (read_common_block): Fix formatting.
6255
d248b706
KY
62562011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6257
6258 * breakpoint.c (disable_breakpoint): Disable all locations
6259 associated with a tracepoint on target if a trace experiment is
6260 running.
6261 (disable_command): Disable a specific tracepoint location on target if
6262 a trace experiment is running.
6263 (do_enable_breakpoint): Enable all locations associated with a
6264 tracepoint on target if a trace experiment is running.
6265 (enable_command) Enable a specific tracepoint location on target if a
6266 trace experiment is running.
6267 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6268 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6269 to_disable_tracepoint.
6270 * target.h: Add declaration of struct bp_location.
6271 (struct target_ops): Add new functions
6272 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6273 to_disable_tracepoint to target operations.
6274 (target_supports_enable_disable_tracepoint): New macro.
6275 (target_enable_tracepoint): New macro.
6276 (target_disable_tracepoint): New macro.
6277 * remote.c (struct remote_state): Add new field.
6278 (remote_enable_disable_tracepoint_feature): New.
6279 (remote_protocol_features): Add new entry.
6280 (remote_supports_enable_disable_tracepoint): New.
6281 (remote_enable_tracepoint): New.
6282 (remote_disable_tracepoint): New.
6283 (init_remote_ops): Add remote_enable_tracepoint,
6284 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6285 to remote operations.
6286 * tracepoint.c (start_tracing): Allow tracing to start without any
6287 tracepoints enabled with just a warning if they can be re-enabled
6288 later.
6289 * NEWS: Add news item for the new behaviour of the enable and disable
6290 GDB commands when applied to tracepoints.
6291 Add news items for the new remote packets QTEnable and QTDisable.
6292
cc88a640
JK
62932011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6294
6295 * config.in: Regenerate.
6296 * configure: Regenerate.
6297 * configure.ac <--with-system-readline> (for readline_echoing_p):
6298 Remove the test.
6299 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6300 (tui_old_rl_echoing_p): ... here.
6301 (tui_setup_io): Rename extern declaration readline_echoing_p to
6302 _rl_echoing_p. Adjust assignments for the both renames.
6303
1f84b619
TJB
63042011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6305
6306 * symtab.c (lookup_symtab): Run cleanup before returning.
6307
74ac6d43
TT
63082011-05-11 Tom Tromey <tromey@redhat.com>
6309
6310 * dwarf2read.c (handle_data_member_location): New function.
6311 (dwarf2_add_field): Use it.
6312 (read_common_block): Likewise.
6313
5488dafb
JK
63142011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 Make addrs->SECTINDEX always defined.
6317 * symfile.c (relative_addr_info_to_section_offsets): Check for
6318 SECTINDEX -1, not for zero ADDR.
6319 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6320 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6321 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6322 on its validity.
6323
84e578fb
DE
63242011-05-10 Doug Evans <dje@google.com>
6325
2471d008
DE
6326 * linux-thread-db.c: Whitespace cleanup.
6327 (try_thread_db_load_1): Fix comment.
6328
84e578fb
DE
6329 * linux-thread-db.c (set_libthread_db_search_path): New function.
6330 (_initialize_thread_db): Add setter for libthread-db-search-path.
6331
673c2bbe
DE
63322011-05-09 Doug Evans <dje@google.com>
6333
478aac75
DE
6334 * NEWS: Mention --with-iconv-bin.
6335 * configure.ac: New option --with-iconv-bin.
6336 * configure: Regenerate.
6337 * config.in: Regenerate.
6338 * defs.h (relocate_gdb_directory): Declare.
6339 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6340 removed progname parameter, and exported. All callers updated.
6341 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6342
673c2bbe
DE
6343 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6344 adding missing call to restore_child_signals_mask.
6345
e4c8541f
PA
63462011-05-09 Pedro Alves <pedro@codesourcery.com>
6347
6348 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6349 parameter.
6350 * infrun.c (proceed, start_remote): Adjust.
6351 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6352 and adjust to not handle it.
6353 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6354 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6355 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6356 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6357 * windows-nat.c (do_initial_windows_stuff): Adjust.
6358 * infcmd.c (attach_command): Adjust.
6359 (notice_new_inferior): Adjust.
6360
a536c6d7
UW
63612011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6362
6363 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6364 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6365 * spu-tdep.c (op_selb): Use correct value.
6366
7845b013
UW
63672011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6368
6369 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6370 "parent" parameter to symbol_file_add_from_bfd call.
6371
9c06b0b4
TJB
63722011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6373 Thiago Jung Bauermann <bauerman@br.ibm.com>
6374
6375 Implement support for PowerPC BookE masked watchpoints.
6376 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6377 section.
6378 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6379 method. Initialize to NULL in all existing breakpoint_ops instances.
6380 (struct breakpoint) <hw_wp_mask>: New field.
6381 * breakpoint.c (is_masked_watchpoint): Add prototype.
6382 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6383 breakpoint's breakpoint_ops.works_in_software_mode if available.
6384 (watchpoints_triggered): Handle the case of a hardware masked
6385 watchpoint trigger.
6386 (watchpoint_check): Likewise.
6387 (works_in_software_mode_watchpoint): New function.
6388 (insert_masked_watchpoint, remove_masked_watchpoint)
6389 (resources_needed_masked_watchpoint)
6390 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6391 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6392 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6393 functions.
6394 (masked_watchpoint_breakpoint_ops): New structure.
6395 (watch_command_1): Check for the existence of the `mask' parameter.
6396 Set b->ops according to the type of hardware watchpoint being created.
6397 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6398 (ppc_linux_remove_mask_watchpoint)
6399 (ppc_linux_masked_watch_num_registers): New functions.
6400 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6401 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6402 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6403 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6404 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6405 (target_masked_watch_num_registers): New functions.
6406 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6407 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6408 methods.
6409 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6410 (target_masked_watch_num_registers): Add prototypes.
6411
8be455d7
JK
64122011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6413
6414 PR 12573
6415 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6416 (producer_is_gcc_ge_4_0): New function.
6417 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6418 symtab->language code.
6419 (var_decode_location): Set cu->has_loclist.
6420 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6421 skip. Intialize force_skip from locations_valid. Move the prologue
6422 skipping code into two passes.
6423 * symtab.h (struct symtab): Make the primary field a bitfield. New
6424 field locations_valid.
6425
d8228535
JK
64262011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6427
6428 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6429 (classify_inner_name): Call cp_lookup_nested_type with
6430 yylval.tsym.type.
6431 * cp-namespace.c (cp_lookup_nested_type): New variable
6432 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6433 type_name_no_tag_or_error with saved_parent_type.
6434 * dwarf2read.c (load_partial_dies): Read in any children of
6435 DW_TAG_typedef with complaint in such case.
6436 * gdbtypes.c (type_name_no_tag_or_error): New function.
6437 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6438 * valops.c (destructor_name_p): New comment for parameter type. Remove
6439 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6440 * value.h (destructor_name_p): Remove type const.
6441
1976171a
JK
64422011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6443
6444 * symtab.c (compare_symbol_name): New function.
6445 (completion_list_add_name, expand_partial_symbol_name): Call it,
6446 remove the variable ncmp.
6447 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6448 gdb_assert it.
6449
a9634178
TJB
64502011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6451
6452 Demote to sw watchpoint only in update_watchpoint.
6453 * breakpoint.c (update_watchpoint): Change between software and
6454 hardware watchpoint for all kinds of watchpoints, not just
6455 read/write ones. Determine b->exact value here instead of
6456 in watch_command_1. Error out if there are not enough resources
6457 for a read or access hardware watchpoint.
6458 (watch_command_1): Remove logic of checking whether there are
6459 enough resources available, since update_watchpoint will do that
6460 work now. Don't set b->exact here. Catch exceptions thrown by
6461 update_watchpoint and delete the watchpoint.
6462 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6463 Use target_exact_watchpoints instead.
6464 (delete_breakpoint): Notify observers only if deleted watchpoint
6465 has a breakpoint number assigned to it.
6466
4c67c798
JJ
64672011-05-05 Janis Johnson <janisjo@codesourcery.com>
6468
6469 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6470
a3fcb948
JG
64712011-05-05 Jerome Guitton <guitton@adacore.com>
6472
6473 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6474 New functions.
6475 (i386_stack_tramp_frame_unwind): New static global.
6476 (i386_match_pattern): New function, extracted from i386_match_insn.
6477 (i386_match_insn): Use i386_match_pattern.
6478 (i386_match_insn_block): New function.
6479 (i386_tramp_chain_in_reg_insns)
6480 (i386_tramp_chain_on_stack_insns): New static variables.
6481 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6482 of unwinders.
6483
4d393d60
JM
64842011-05-04 Joseph Myers <joseph@codesourcery.com>
6485
6486 * configure.host (xscale*): Don't handle target.
6487 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6488 handle targets.
6489
f70bd40b
YQ
64902011-05-04 Yao Qi <yao@codesourcery.com>
6491
6492 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6493
dd3295ee
JB
64942011-05-03 Joel Brobecker <brobecker@adacore.com>
6495
6496 Revert:
6497 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6498 | * elfread.c (elf_symtab_read): Stop memory leak.
6499
90375a0e
PM
65002011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6501
6502 * nto-tdep.c (nto_target): Replace deprecated call to
6503 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6504
d07205c2
JK
65052011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 Fix false GCC warning.
6508 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6509
1e718ff1
TJB
65102011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6511
6512 * breakpoint.c (update_watchpoint): Move code to change
6513 the enable state of breakpoint from here ...
6514 (do_enable_breakpoint): ... to here.
6515
35bef4fd
TT
65162011-04-26 Andrew Gontarek <andrewg@cray.com>
6517
78290264
PP
6518 * valprint.c (val_print_array_elements): Fixed poor performance
6519 of printing very large arrays with repeat_count_threshold set
6520 to unlimited. New comment.
35bef4fd 6521
38a714bb
TT
65222011-04-29 Tom Tromey <tromey@redhat.com>
6523
6524 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6525 (mi_parse): Likewise.
6526 * breakpoint.c (break_range_command): Use sizeof char*, not
6527 char**.
6528 (create_breakpoint): Likewise.
6529 (parse_breakpoint_sals): Likewise.
6530
eb73ad13
PA
65312011-04-29 Pedro Alves <pedro@codesourcery.com>
6532
6533 * linux-nat.c (linux_child_remove_fork_catchpoint)
6534 (linux_child_remove_vfork_catchpoint)
6535 (linux_child_remove_exec_catchpoint): New functions.
6536 (linux_target_install_ops): Install them.
6537
d65aec65
PM
65382011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6539
6540 PR mi/12531
6541
6542 * varobj.c (install_default_visualizer): Do not install a
6543 visualizer if the varobj is CPLUS_FAKE_CHILD.
6544 (construct_visualizer): Likewise.
6545
165195f4
JK
65462011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6547
6548 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6549 case insensitive comparison.
6550
30852783
UW
65512011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6552
6553 * infrun.c (proceed): Revert previous change.
6554 (resume): Instead, handle the case of signal delivery while stepping
6555 off a breakpoint location here, and only if software single-stepping
6556 is used. Handle nested signals.
6557
7ff120b4
YQ
65582011-04-28 Yao Qi <yao@codesourcery.com>
6559
6560 * arm-tdep.c (copy_unmodified): Rename to ...
6561 (arm_copy_unmodified): .. this. New.
6562 (copy_preload): Move common part to ...
6563 (install_preload): .. this. New.
6564 (arm_copy_preload): New.
6565 (copy_preload_reg): Move common part to ...
6566 (install_preload_reg): ... this. New.
6567 (arm_copy_preload_reg): New.
6568 (copy_b_bl_blx): Move common part to ...
6569 (install_b_bl_blx): .. this. New.
6570 (arm_copy_b_bl_blx): New.
6571 (copy_bx_blx_reg): Move common part to ...
6572 (install_bx_blx_reg): ... this. New.
6573 (arm_copy_bx_blx_reg): New.
6574 (copy_alu_reg): Move common part to ...
6575 (install_alu_reg): ... this. New.
6576 (arm_copy_alu_reg): New.
6577 (copy_alu_shifted_reg): Move common part to ...
6578 (install_alu_shifted_reg): ... this. New.
6579 (copy_ldr_str_ldrb_strb): Move common part to ...
6580 (install_ldr_str_ldrb_strb): ... this. New.
6581 (arm_copy_ldr_str_ldrb_strb): New.
6582 (copy_copro_load_store): Move some common part to ...
6583 (install_copy_copro_load_store): ... this. New.
6584 (arm_copy_copro_load_store): New.
6585 (copy_svc): Delete.
6586 (arm_copy_svc): Renamed from copy_svc.
6587 (copy_undef): Delete.
6588 (arm_copy_undef): Renamed from copy_undef.
6589 (decode_ext_reg_ld_st): Delete.
6590 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6591 (decode_svc_copro): Delete.
6592 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6593 (copy_copro_load_store, copy_alu_imm): update callers.
6594 (copy_extra_ld_st, copy_block_xfer): Likewise.
6595 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6596 (decode_miscellaneous, decode_dp_misc): Likewise.
6597 (decode_ld_st_word_ubyte, decode_media): Likewise.
6598 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6599 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6600 (decode_unconditional, decode_miscellaneous): Likewise.
6601 (decode_media, decode_b_bl_ldmstm): Likewise.
6602 (arm_process_displaced_insn): Likewise..
6603 (decode_misc_memhint_neon): Delete.
6604 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6605 (decode_miscellaneous): Delete.
6606 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6607 (decode_dp_misc): Delete.
6608 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6609 (decode_ld_st_word_ubyte): Delete.
6610 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6611 (decode_media): Delete.
6612 (arm_decode_media): Renamed from decode_media.
6613 (decode_b_bl_ldmstm): Delete.
6614 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6615 (decode_ext_reg_ld_st): Delete.
6616 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6617 (decode_unconditional): Delete.
6618 (arm_decode_unconditional): Renamed from decode_unconditional.
6619
559a7a62
JK
66202011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6621
6622 Case insensitive lookups implementation.
6623 * dwarf2read.c: Include ctype.h.
6624 (struct mapped_index): New field version.
6625 (mapped_index_string_hash): New parameter index_version. New comment
6626 for it. Call tolower appropriately.
6627 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6628 Choose the right index version for mapped_index_string_hash.
6629 (dwarf2_read_index): Support also the index version 5. Initialize the
6630 new struct mapped_index field version.
6631 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6632 (find_slot): Explain the version needs. Pass INT_MAX for the new
6633 parameter.
6634 (write_psymtabs_to_index): Produce version 5.
6635 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6636 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6637 * psymtab.c (lookup_partial_symbol): Find the
6638 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6639 entries.
6640 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6641 NAME lowercasing.
6642 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6643 (completion_list_add_name): New variable ncmp, initialize it, use it.
6644 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6645 * utils.c (strcmp_iw): Support case_sensitive_off.
6646 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6647 New function comment part. New variables saved_string1,
6648 saved_string2 and case_pass. Add a proper second pass.
6649
681bf369
JK
66502011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6651
6652 Replace re_comp/re_exec by regcomp/regexec.
6653 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6654 (search_symbols_name_matches): Use them, use regexec.
6655 (search_symbols): New variable retval_chain, adjust the use of
6656 old_chain against it. Replace re_comp by regcomp. Use the new struct
6657 search_symbols_data fields, use regexec instead of re_exec.
6658
b11b1f88
JK
66592011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6660
6661 Format the code for the next patch.
6662 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6663 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6664 New variables c1 and c2.
6665
2484c66b
UW
66662011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6667
6668 * infrun.c (proceed): Do not single-step into signal delivery
6669 when stepping off a breakpoint location.
6670 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6671 (insert_step_resume_breakpoint_at_caller): Likewise.
6672 (insert_step_resume_breakpoint_at_sal): Likewise.
6673 (insert_longjmp_resume_breakpoint): Likewise.
6674
47423772
YQ
66752011-04-27 Yao Qi <yao@codesourcery.com>
6676
6677 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6678
13bdd2e7
JB
66792011-04-27 Joel Brobecker <brobecker@adacore.com>
6680
6681 * procfs.c (procfs_pass_signals): Fix advance declaration.
6682
2455069d
UW
66832011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6684
6685 * target.h (struct target_ops): Remove to_notice_signals;
6686 add to_pass_signals.
6687 (target_notice_signals): Remove.
6688 (target_pass_signals): Add prototype.
6689 * target.c (update_current_target): Remove to_notice_signals;
6690 mention to_pass_signals.
6691 (target_pass_signals): New function.
6692 (debug_to_notice_signals): Remove.
6693 (setup_target_debug): Do not install debug_to_notice_signals.
6694
6695 * infrun.c (signal_pass): New global.
6696 (resume): Call target_pass_signals.
6697 (handle_inferior_event): Report all signals while stepping over
6698 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6699 are re-inserted when stepping over a signal handler.
6700 (signal_cache_update): New function.
6701 (signal_stop_update): Call it.
6702 (signal_print_update): Likewise.
6703 (signal_pass_update): Likewise.
6704 (handle_command): Call signal_cache_update and target_pass_signals
6705 instead of target_notice_signals.
6706 (_initialize_infrun): Initialize signal_pass.
6707
6708 * linux-nat.c (pass_mask): New global.
6709 (linux_nat_pass_signals): New function.
6710 (linux_nat_create_inferior): Report all signals initially.
6711 (linux_nat_attach): Likewise.
6712 (linux_nat_resume): Use pass_mask to decide whether to directly
6713 handle an inferior signal.
6714 (linux_nat_wait_1): Likewise.
6715 (linux_nat_add_target): Install to_pass_signals callback.
6716
6717 * nto-procfs.c (notice_signals): Remove.
6718 (procfs_resume): Do not call notice_signals.
6719 (procfs_notice_signals): Remove.
6720 (procfs_pass_signals): New function.
6721 (init_procfs_ops): Install to_pass_signals callback instead of
6722 to_notice_signals callback.
6723 (_initialize_procfs): Report all signals initially.
6724
6725 * procfs.c (procfs_notice_signals): Remove.
6726 (procfs_pass_signals): New function.
6727 (procfs_target): Install to_pass_signals callback instead of
6728 to_notice_signals callback.
6729 (register_gdb_signals): Remove.
6730 (procfs_debug_inferior): Report all signals initially.
6731 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6732
6733 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6734 parameters; use them instead of calling signal_..._state routines.
6735 (remote_notice_signals): Remove.
6736 (remote_start_remote): Report all signals initially.
6737 (remote_resume): Do not call remote_pass_signals.
6738 (_initialize_remote): Install to_pass_signals callback instead of
6739 to_notice_signals callback.
6740
46c6471b
PA
67412011-04-27 Pedro Alves <pedro@codesourcery.com>
6742
6743 * breakpoint.c (user_settable_breakpoint): Delete.
6744 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6745 (delete_command): Check user_breakpoint_p instead of looking at
6746 the breakpoint's type.
6747 (disable_command): Ditto.
6748 (enable_command): Ditto.
6749 (delete_trace_command): Use user_breakpoint_p instead of looking
6750 at the breakpoint number directly. When checking if there are
6751 user visible tracepoints, in order to know whether to ask the user
6752 for confirmation, check whether the breakpoint is actually a
6753 tracepoint.
6754
f6d90398
VP
67552011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6756
6757 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6758 compilation.
6759
8d3788bd
VP
67602011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6761
6762 MI breakpoint notifications.
6763
f33edef8
PP
6764 * annotate.c (breakpoint_changed): Adjust parameter type.
6765 * breakpoint.c (set_breakpoint_condition): Adjust to change
6766 in breakpoint_modified type.
6767 (breakpoint_set_commands): Likewise.
6768 (do_map_commands_command): Likewise.
6769 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6770 changed after bumping hit count.
6771 (bpstat_stop_status): Likewise.
6772 (print_one_breakpoint_location): Don't wrap in tuple here.
6773 (print_one_breakpoint): Always print individual locations.
6774 For locations, use unnamed tuple.
6775 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6776 has changed.
6777 (create_catchpoint, create_syscall_event_catchpoint): Call
6778 breakpoint_created obsever.
6779 (mention): Don't call breakpoint_created observer.
6780 (create_breakpoint_sal): Call breakpoint_created observer.
6781 (create_breakpoint, watch_command_1): Likewise.
6782 (create_ada_exception_breakpoint): Likewise.
6783 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6784 (locations_are_equal): New.
6785 (update_breakpoint_locations): If locations were changed, notify.
6786 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6787 Call breakpoint_modified observer.
6788
6789 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6790 (mi_cmd_break_insert): Don't set observers for modify and delete.
6791 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6792 (mi_breakpoint_created, mi_breakpoint_deleted)
6793 (mi_breakpoint_modified): New.
6794 (mi_interpreter_init): Hook the above.
6795 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6796 while -break-* commands are executing.
6797 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6798 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6799 (mi_redirect): New.
6800 (mi_ui_out_impl): Hook in mi_redirect.
6801 (mi_field_skip): True to the name, skip the field, don't output
6802 a field with an empty value.
6803
6804 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6805 (gdbpy_breakpoint_deleted): Adjust.
6806 * tui/tui-hooks.c (tui_event_create_breakpoint)
6807 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6808
a8f42b45
UW
68092011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6810
6811 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6812 (procfs_remove_hw_watchpoint): Likewise.
6813
57e12211
TT
68142011-04-26 Michael Walle <michael@walle.cc>
6815
6816 * remote.c (remote_start_remote): Ack packet after sending the
6817 interrupt sequence.
6818
af96c192
YQ
68192011-04-26 Yao Qi <yao@codesourcery.com>
6820
f33edef8
PP
6821 * linux-nat.c: Move common macros to ...
6822 Include linux-ptrace.h.
6823 * common/linux-ptrace.h: ... here. New.
af96c192 6824
3e03848b
JK
68252011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6826
6827 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6828 !objfile_has_partial_symbols. New comment.
6829 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6830 SYM_READ_PSYMBOLS is not present. Extend the comment.
6831 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6832
1ae0d051
JK
68332011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 * defs.h (ENUM_BITFIELD): Remove.
6836
03f2bd59
JK
68372011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6838 Eli Zaretskii <eliz@gnu.org>
6839
6840 * NEWS: Document the new gdbserver --once option.
6841
4161fbb0
JZ
68422011-04-21 Jie Zhang <jzhang918@gmail.com>
6843
6844 * MAINTAINERS: Update my email address.
6845
bcb28afc
PM
68462011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6847
6848 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6849 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6850 function call if __STDC_ISO_10646__ macro is defined.
6851 (intermediate_encoding): New prototype.
6852 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6853 to generate compile time error for unsupported gdb_wchar_t size.
6854 (ENDIAN_SUFFIX): New macro.
6855 (intermediate_encoding): New function.
6856
7b08b9eb
JK
68572011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 * ada-lang.c (struct add_partial_datum): Update the comment for
6860 expand_partial_symbol_name.
6861 (ada_add_partial_symbol_completions): Rename to ...
6862 (ada_expand_partial_symbol_name): ... here, change return type, update
6863 function comment, call symbol_completion_match instead of
6864 symbol_completion_add.
6865 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6866 and ada_expand_partial_symbol_name.
6867 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6868 FILE_MATCHER.
6869 (dw2_map_symbol_names): Remove.
6870 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6871 * psymtab.c (map_symbol_names_psymtab): Remove.
6872 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6873 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6874 order.
6875 (psym_functions): Unlist map_symbol_names_psymtab.
6876 (map_partial_symbol_names): Rename to ...
6877 (expand_partial_symbol_names): ... here, change the FUN type, call
6878 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6879 * psymtab.h (map_partial_symbol_names): Rename to ...
6880 (expand_partial_symbol_names): ... here, change the FUN type.
6881 * symfile.h (struct quick_symbol_functions): Update the description of
6882 expand_symtabs_matching. Remove map_symbol_names.
6883 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6884 (struct add_name_data): Update the comment for
6885 expand_partial_symbol_name.
6886 (add_partial_symbol_name): Rename to ...
6887 (expand_partial_symbol_name): ... here. Replace
6888 completion_list_add_name call by strncmp.
6889 (default_make_symbol_completion_list_break_on): Use now
6890 expand_partial_symbol_names and expand_partial_symbol_name.
6891 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6892
90476074
TT
68932011-04-20 Tom Tromey <tromey@redhat.com>
6894
6895 * dwarf2read.c (save_gdb_index_command): Replace format
6896 documentation with a pointer to the manual.
6897
c21236dc
PA
68982011-04-20 Pedro Alves <pedro@codesourcery.com>
6899
6900 * regcache.c: Include remote.h.
6901 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6902 (regcache_dump): Handle regcache_dump_remote.
6903 (maintenance_print_remote_registers): New function.
6904 (_initialize_regcache): Install "maint print remote-registers"
6905 command.
6906 * remote.c (map_regcache_remote_table): New function, factored out
6907 from ...
6908 (init_remote_state): ... here.
6909 (remote_register_number_and_offset): New.
6910 * remote.h (remote_register_number_and_offset): Declare.
6911
b78974c3
PA
69122011-04-20 Pedro Alves <pedro@codesourcery.com>
6913
6914 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6915 null_ptid, assume and allow a NULL address space, instead of
6916 asking the target for the ptid's address space.
6917 * infrun.c (ptid_is_pid): Remove assertion.
6918
7a9dd1b2
TT
69192011-04-19 Tom Tromey <tromey@redhat.com>
6920
6921 * windows-tdep.c (windows_xfer_shared_library):
6922 * windows-nat.c (get_module_name, windows_make_so):
6923 * v850-tdep.c (v850_handle_pushm):
6924 * utils.c (null_cleanup, gdb_realpath):
6925 * ui-out.c (get_next_header):
6926 * tracepoint.c (clear_traceframe_info):
6927 * symtab.c (lookup_symtab):
6928 * serial.h (struct serial_ops):
6929 * mipsread.c (read_alphacoff_dynamic_symtab):
6930 * infcmd.c (print_return_value):
6931 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6932 * f-exp.y (parse_number):
6933 * exceptions.c (catch_exceptions):
6934 * dummy-frame.c (dummy_frame_this_id):
6935 * defs.h (struct cleanup):
6936 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6937 * arm-tdep.c (arm_push_dummy_call):
6938 * amd64-tdep.h (amd64_collect_xsave):
6939 * amd64-tdep.c (amd64_collect_xsave):
6940 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6941 * README (typing): Remove duplicate words.
6942 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6943 * infrun.c (siginfo_value_read): Fix typo.
6944 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6945 * top.c (source_line_number): Add comma.
6946
9941e0c5
MK
69472011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6948
6949 * thread.c (any_live_thread_of_process): Prioritize threads
6950 that are not executing.
6951 * gdbthread.h (any_live_thread_of_process): Update comment
6952 as per above change.
6953
ed4b0e6a
AS
69542011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6955
6956 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6957 (scan_xcoff_symtab): Likewise.
6958
9b13a2db
PM
69592011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6960
6961 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6962 inside if clause.
6963
1c6e1b0d
PM
69642011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6965 Pedro Alves <pedro@codesourcery.com>
6966
6967 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6968 variables to simplify code and avoid == operator at end of
6969 line as this is against GNU coding standards.
6970
74de0234
PM
69712011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6972
6973 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6974 lm_name to name_lm to avoid conflict with lm_name function.
6975
b23518f0
PM
69762011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6977
6978 ARI fixes: Use only lowercase function name for static functions.
6979 * nto-tdep.c (LM_ADDR): Rename to...
6980 (lm_addr): New function name.
6981 (nto_relocate_section_addresses): Adapt to change above.
6982 * solib-sunos.c (LM_ADDR): Rename to...
6983 (lm_addr): New function name.
6984 (LM_NEXT): Rename to...
6985 (lm_next): New function name.
6986 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6987 function name changes above.
6988 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6989 (lm_addr_from_link_map): New function name.
6990 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6991 (has_lm_dynamic_from_link_map): New function name.
6992 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6993 (lm_dynamic_from_link_map): New function name.
6994 (LM_ADDR_CHECK): Rename to...
6995 (lm_addr_check): New function name.
6996 (LM_NEXT): Rename to...
6997 (lm_next): New function name.
6998 (LM_PREV): Rename to...
6999 (lm_prev): New function name.
7000 (LM_NAME): Rename to...
7001 (lm_name): New function name.
7002 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7003 (ignore_first_link_map_entry): New function name.
7004 (svr4_keep_data_in_core): Adapt to function name changes above.
7005 (svr4_current_sos): Likewise.
7006 (enable_break): Likewise.
7007 (svr4_relocate_section_addresses): Likewise.
7008
1448a0a2
PM
70092011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7010
7011 ARI cleanup.
7012 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7013 sprintf. Simplify code and avoid loosing memory.
7014 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7015 (call0_frame_cache): Remove && operator from end of line.
7016
02835898
JK
70172011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7018
7019 Fix libraries displacement if they change whether they were prelinked.
7020 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7021 does not match. Comment why.
7022
9a845ea2
JK
70232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7024
7025 * corelow.c: Include wrapper.h.
7026 (core_open): Call now gdb_target_find_new_threads.
7027 * wrapper.c: Include target.h.
7028 (gdb_target_find_new_threads): New.
7029 * wrapper.h (gdb_target_find_new_threads): New declaration.
7030
254f582e
JK
70312011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7032
7033 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7034 even if !TARGET_HAS_EXECUTION.
7035
63524580
JK
70362011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7037
7038 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7039 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7040 bfd_get_synthetic_symtab.
7041 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7042 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7043 parameter parent, remove the call to add_separate_debug_objfile.
7044 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7045 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7046 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7047 parent, new comment for it, call add_separate_debug_objfile for it.
7048 (symbol_file_add_separate): Pass objfile as the parameter parent,
7049 remove the call to add_separate_debug_objfile.
7050 (symbol_file_add_from_bfd): New parameter parent, pass it.
7051 (symbol_file_add): Pass NULL to the new parameter parent.
7052 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7053
90359a16
JK
70542011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7055
7056 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7057 BSF_SYNTHETIC.
7058
626e7282
JK
70592011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7060
7061 Fix Python access to inlined frames.
7062 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7063 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7064
cf31e6f9
TT
70652011-04-15 Tom Tromey <tromey@redhat.com>
7066
7067 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7068
c8d895f1
GB
70692011-04-15 Gary Benson <gbenson@redhat.com>
7070
7071 * MAINTAINERS: Add myself to write-after-approval section.
7072
56a9aa1d
MF
70732011-04-14 Mike Frysinger <vapier@gentoo.org>
7074
7075 * remote-sim.c (sim_command_completer): New function.
7076 (_initialize_remote_sim): Set completer to sim_command_completer.
7077
ba770c9c
TJB
70782011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7079
7080 * breakpoint.c (print_exception_catchpoint): Rename to ...
7081 (print_it_exception_catchpoint): ... this.
7082 (gnu_v3_exception_catchpoint_ops): Update with new name
7083 for print_it_exception_catchpoint.
7084
51bf2553
EBM
70852011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7086
7087 * MAINTAINERS: Add myself for write after approval privileges.
7088
d242658c
MP
70892011-04-13 Marek Polacek <mpolacek@redhat.com>
7090
7091 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7092
4a4106ca
TJB
70932011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7094
7095 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7096
26063d49
TJB
70972011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7098
7099 * breakpoint.c (save_breakpoints): Verify whether
7100 breakpoint_ops.print_recreate is defined before calling it.
7101
7782b183
GB
71022011-04-11 Gary Benson <gbenson@redhat.com>
7103
7104 Fix failure with --enable-maintainer-mode.
7105 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7106
e8930875
JK
71072011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7108
7109 Code cleanup.
7110 * symtab.c (search_symbols): Reorder the KIND description in the
7111 function comment. Remove the unused 4th element of types, types2,
7112 types3 and types4. New gdb_assert on KIND.
7113 (symtab_symbol_info): Remove the unused 4th element of classnames.
7114 New gdb_assert on KIND.
7115 * symtab.h (enum search_domain): New warning in the enum comment.
7116 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7117 TYPES_DOMAIN.
7118
b4f2f049
JK
71192011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Fix crash of gdb save-index on a STABS file.
7122 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7123 PSYMTABS_ADDRMAP.
7124
60d5a603
JK
71252011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7128 * dwarf2read.c: Include ctype.h.
7129 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7130 functions.
7131 (dwarf2_add_field): Fix new_field->accessibility by calling
7132 dwarf2_default_access_attribute. Restructure setting accessibility
7133 vs. virtuality.
7134 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7135 is_private and is_protected by calling
7136 dwarf2_default_access_attribute.
7137
e0f68161
KB
71382011-04-08 Kevin Buettner <kevinb@redhat.com>
7139
7140 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7141 to the initialization.
7142
2e1aae43
SE
71432011-04-08 Steve Ellcey <sje@cup.hp.com>
7144
7145 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7146 initalization.
7147
c6ca3dab
PM
71482011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7149
7150 Remove support for old Cygwin 1.5 versions.
7151 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7152 function on old Cygwin version.
7153 * windows-nat.c: Remove cygwin version check and always define
7154 __USEWIDE for Cygwin compilation.
7155
bd18283a
YQ
71562011-04-07 Yao Qi <yao@codesourcery.com>
7157
7158 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7159 and TO.
7160 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7161 (arm_copy_svc): Remove parameters INSN and TO.
7162 (decode_svc_copro): Update caller.
7163 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7164 from function pointer `copy_svc_os'.
7165
8c8dba6d
YQ
71662011-04-07 Yao Qi <yao@codesourcery.com>
7167
7168 * arm-tdep.c (cleanup_branch): Set a correct return address in
7169 LR for ARM and Thumb.
7170
59d7bcaf
JK
71712011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7172
7173 Code cleanup.
7174 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7175 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7176 in the function comment, a new note on values compatibility.
7177 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7178 * symtab.h (SYMBOL_HASH_NEXT): New.
7179
e7db58ea
TJB
71802011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7181
7182 * ppc-linux-nat.c (check_condition): Add len output parameter.
7183 Set it based on the memory region referenced in the condition
7184 expression. Update all callers.
7185
9f743ef6
JK
71862011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7187
7188 Fix crash regression on systems featuring .gdb_index.
7189 * objfiles.c (free_objfile): Move the
7190 forget_cached_source_info_for_objfile call earlier. Comment it.
7191 Extend the comment for objfile_free_data.
7192
9182c5bc
JK
71932011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7194
7195 Fix regression of displaying the debug format.
7196 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7197 subfile.
7198
04bd08de
TT
71992011-04-04 Tom Tromey <tromey@redhat.com>
7200
7201 * cli/cli-interp.c (struct captured_execute_command_args):
7202 Remove.
7203 (do_captured_execute_command): Remove.
7204 (safe_execute_command): Use TRY_CATCH.
7205 * cli/cli-script.c (struct wrapped_read_command_file_args):
7206 Remove.
7207 (wrapped_read_command_file): Remove.
7208 (script_from_file): Use TRY_CATCH.
7209 * exceptions.c (catch_exception): Remove.
7210 * exceptions.h (catch_exception): Remove.
7211 (deprecated_throw_reason): Update comment.
7212 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7213 argument to 'context'.
7214 (mi_execute_command): Use TRY_CATCH.
7215 * remote.c (struct start_remote_args): Remove.
7216 (remote_start_remote): Update; change arguments.
7217 (remote_open_1): Use TRY_CATCH.
7218
58438ac1
TT
72192011-04-04 Tom Tromey <tromey@redhat.com>
7220
7221 * tracepoint.c (scope_info): Update.
7222 * symtab.c (decode_line_spec): Update.
7223 * python/python.c (gdbpy_decode_line): Update.
7224 * linespec.h (decode_line_1): Update.
7225 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7226 (decode_compound, find_method, symtab_from_filename)
7227 (decode_variable): Likewise.
7228 * cli/cli-cmds.c (edit_command): Update.
7229 (list_command): Update.
7230 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7231 argument.
7232 (create_breakpoint): Update.
7233 (until_break_command): Update.
7234 (addr_string_to_sals): Update.
7235 (decode_line_spec_1): Update.
7236
b78a6381
TT
72372011-04-04 Tom Tromey <tromey@redhat.com>
7238
7239 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7240 (do_captured_parse_breakpoint): Remove.
7241 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7242 Use TRY_CATCH directly.
7243
00174a86
TT
72442011-04-04 Tom Tromey <tromey@redhat.com>
7245
7246 * symtab.h (free_symtab): Remove.
7247 (forget_cached_source_info_for_objfile): Declare.
7248 * symmisc.c (free_symtab): Remove.
7249 * source.c (forget_cached_source_info_for_objfile): New function.
7250 (forget_cached_source_info): Use it.
7251 * objfiles.c (free_objfile): Simplify check before calling
7252 clear_current_source_symtab_and_line. Call
7253 forget_cached_source_info_for_objfile.
7254
30cc903e
TT
72552011-04-04 Tom Tromey <tromey@redhat.com>
7256
7257 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7258 (new_symtab): Don't set `free_code' on symtab.
7259 (new_linetable): Properly handle size==0.
7260 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7261 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7262 free_func.
7263 * jv-lang.c (struct jv_per_objfile_data): New.
7264 (jv_per_objfile_free): Free the data.
7265 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7266 (get_java_class_symtab): Set the `dict' field on the
7267 jv_per_objfile_data.
7268 (free_class_block): Remove.
7269 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7270 the symtab.
7271
0c2e6019
TT
72722011-04-04 Tom Tromey <tromey@redhat.com>
7273
7274 * symfile.c (reread_symbols): Update.
7275 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7276 field.
7277 * objfiles.c (allocate_objfile): Update.
7278 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7279 declare.
7280 * cp-namespace.c (lookup_symbol_file): Don't call
7281 lookup_possible_namespace_symbol.
7282 (initialize_namespace_symtab, get_possible_namespace_block)
7283 (free_namespace_block, cp_check_possible_namespace_symbols)
7284 (check_possible_namespace_symbols_loop)
7285 (check_one_possible_namespace_symbol)
7286 (lookup_possible_namespace_symbol): Remove.
7287 (maintenance_cplus_namespace): Replace with notice.
7288 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7289
554d387d
TT
72902011-04-04 Tom Tromey <tromey@redhat.com>
7291
7292 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7293 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7294 * symmisc.c (free_symtab): Don't free debugformat.
7295 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7296 (record_debugformat, record_producer): Document.
7297 * buildsym.c (end_symtab): Don't save debugformat and producer
7298 names on obstack.
7299 (end_symtab): Don't free debugformat and producer fields.
7300 (record_debugformat): Don't call xstrdup.
7301 (record_producer): Likewise.
7302
d4d4db8a
TT
73032011-04-04 Tom Tromey <tromey@redhat.com>
7304
7305 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7306 (source_line_charpos, source_charpos_line): Remove.
7307
8903c50d
TT
73082011-04-04 Tom Tromey <tromey@redhat.com>
7309
7310 * symtab.h (domain_enum): Split in two...
7311 (enum search_domain): New.
7312 (search_symbols): Update.
7313 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7314 redundant declarations.
7315 (search_symbols): Change 'kind' argument to search_domain.
7316 Update.
7317 (print_symbol_info): Likewise.
7318 (symtab_symbol_info): Likewise.
7319 * symfile.h (struct quick_symbol_functions)
7320 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7321 <expand_symtabs_matching>: Likewise.
7322 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7323 (expand_symtabs_matching_via_partial): Update.
7324 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7325 (dw2_expand_symtabs_for_function): Update.
7326 * block.h: Moved anonymous enum...
7327 * defs.h (enum block_enum): ... here. Now named.
7328
d9351f5f 73292011-04-03 Joel Brobecker <brobecker@adacore.com>
7330
7331 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7332 * version.in: Bump version to 7.3.50.20110403-cvs.
7333
d6e00af6
JB
73342011-04-03 Joel Brobecker <brobecker@adacore.com>
7335
7336 * NEWS: Create a new section for the next release branch.
7337 Rename the section of the current branch, now that it has
7338 been cut.
7339
2b9e5ea6
UW
73402011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7341
7342 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7343 for "fpscr" in target description.
7344
0cf03b49
JK
73452011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7348 initialize it. Delay HASH initialization. Strip the part after open
7349 parenthesis for languages with qualifiers. Call do_cleanups.
7350
5d901a73
TT
73512011-04-01 Tom Tromey <tromey@redhat.com>
7352
7353 * utils.c (report_command_stats): Don't print `-' for negative
7354 number.
7355
b0dd7688
JB
73562011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7357
7358 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7359 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7360 typedefs.
7361
956a9fb9
JB
73622011-04-01 Joel Brobecker <brobecker@adacore.com>
7363
7364 * breakpoint.h (bpdisp_text): Add declaration.
7365 * breakpoint.c (bpdisp_text): Make non-static.
7366 * ada-lang.c: #include "mi/mi-common.h".
7367 (print_it_exception): Rewrite to improve GDB/MI output.
7368
3352110b
PA
73692011-04-01 Pedro Alves <pedro@codesourcery.com>
7370
7371 * arm-tdep.h (struct address_space): Add forward declaration.
7372
18819fa6
UW
73732011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7374
7375 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7376 * arm-tdep.c (arm_override_mode): New global.
7377 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7378 execution mode heuristics.
7379 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7380 second single-step breakpoint if needed, using
7381 arm_insert_single_step_breakpoint.
7382 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7383 ARM execution mode, do not call thumb_get_next_pc_raw.
7384 (arm_get_next_pc): Encode execution mode in return value. Call
7385 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7386 (arm_insert_single_step_breakpoint): New function.
7387 (arm_software_single_step): Call it.
7388 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7389 argument to return execution mode of sigreturn target.
7390 (arm_linux_syscall_next_pc): Use it.
7391 (arm_linux_copy_svc): Update call.
7392 (arm_linux_software_single_step): Call
7393 arm_insert_single_step_breakpoint.
7394
a6e293d1
JK
73952011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7396
7397 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7398 the comment.
7399
a4c8e806
TT
74002011-03-31 Tom Tromey <tromey@redhat.com>
7401
7402 * varobj.c (update_dynamic_varobj_children): Properly handle
7403 errors from iterator.
7404
df5c6c50
JK
74052011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7406
7407 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7408 struct linkage name twice.
7409
1dae3efc
TT
74102011-03-31 Tom Tromey <tromey@redhat.com>
7411
7412 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7413 missing ">" to message.
7414
f4f7ab05
TT
74152011-03-31 Tom Tromey <tromey@redhat.com>
7416
7417 * varobj.c (instantiate_pretty_printer): Remove duplicate
7418 'return'.
7419
fcf250e2
UW
74202011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7421
7422 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7423 if neither saved value nor register available (e.g. signal frame).
7424
ee6436e3
TJB
74252011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7426
7427 * macroexp.c (expand): Avoid uninitialized variable
7428 compiler warning.
7429
423f41a5
TJB
74302011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7431
7432 * breakpoint.c (break_range_command): Fix typo in comment.
7433
f1310107
TJB
74342011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7435 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7436
7437 Implement support for PowerPC BookE ranged breakpoints.
7438 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7439 * breakpoint.h (struct bp_target_info) <length>: New member
7440 variable.
7441 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7442 instead of struct breakpoint as argument, and also add ASPACE
7443 and BP_ADDR arguments. Update all callers.
7444 (struct breakpoint_ops) <print_one_detail>: New method.
7445 (struct breakpoint) <addr_string_range_end>: New member variable.
7446 * breakpoint.c (breakpoint_location_address_match): Add function
7447 prototype.
7448 (insert_bp_location): Set bl->target_info.length.
7449 (breakpoint_here_p): Call breakpoint_location_address_match.
7450 (moribund_breakpoint_here_p): Likewise.
7451 (regular_breakpoint_inserted_here_p): Likewise.
7452 (breakpoint_thread_match): Likewise.
7453 (bpstat_stop_status): Likewise.
7454 (bpstat_check_location): Move call to
7455 breakpoint_ops.breakpoint_hit to the top.
7456 (print_one_breakpoint_location): Call
7457 breakpoint_ops.print_one_detail if available.
7458 (breakpoint_address_match_range): New function.
7459 (breakpoint_location_address_match): Likewise.
7460 (breakpoint_locations_match): Compare the length field of the
7461 locations too.
7462 (hw_breakpoint_used_count): Count resources used by all locations
7463 in a breakpoint, and use breakpoint_ops.resources_needed if
7464 available.
7465 (breakpoint_hit_ranged_breakpoint): New function.
7466 (resources_needed_ranged_breakpoint): Likewise.
7467 (print_it_ranged_breakpoint): Likewise.
7468 (print_one_ranged_breakpoint): Likewise.
7469 (print_one_detail_ranged_breakpoint): Likewise.
7470 (print_mention_ranged_breakpoint): Likewise.
7471 (print_recreate_ranged_breakpoint): Likewise.
7472 (ranged_breakpoint_ops): New structure.
7473 (find_breakpoint_range_end): New function.
7474 (break_range_command): Likewise.
7475 (delete_breakpoint): Free addr_string_range_end.
7476 (update_breakpoint_locations): Add SALS_END argument. Update
7477 all callers. Calculate breakpoint length if a non-zero SALS_END
7478 is given. Call breakpoint_locations_match instead of
7479 breakpoint_address_match.
7480 (reset_breakpoint): Find SaL of the end of the range if B is a
7481 ranged breakpoint.
7482 (_initialize_breakpoint): Register break-range command.
7483 * defs.h (print_core_address): Add function prototype.
7484 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7485 function.
7486 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7487 (ppc_linux_remove_hw_breakpoint): Likewise.
7488 (_initialize_ppc_linux_nat): Initialize
7489 to_ranged_break_num_registers.
7490 * target.c (update_current_target): Add comment about
7491 to_ranged_break_num_registers.
7492 (target_ranged_break_num_registers): New function.
7493 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7494 New method.
7495 (target_ranged_break_num_registers): Add function prototype.
7496 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7497 * utils.c (print_core_address): ... here.
7498
02d20e4a
UW
74992011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7500
7501 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7502 variable compiler warning.
7503
ef23e705
TJB
75042011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7505
7506 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7507 code from here ...
7508 (re_set_breakpoint): ... to here ...
7509 (addr_string_to_sals): ... and here.
7510
311e6ab3
PM
75112011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7512
7513 * Makefile.in (SFILES): Add missing C sources.
7514 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7515 Add missing headers.
7516
acd1d99c
MF
75172011-03-29 Mike Frysinger <vapier@gentoo.org>
7518
7519 * .gitignore: New file.
7520
66ee2731
MF
75212011-03-29 Mike Frysinger <vapier@gentoo.org>
7522
7523 * NEWS: Mention new cfi device simulation.
7524
53832f31
TT
75252011-03-29 Tom Tromey <tromey@redhat.com>
7526
7527 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7528 otherwise anonymous types.
7529 (dwarf2_name): Likewise.
7530 * valops.c (value_struct_elt_for_reference): Refine artificial
7531 type logic. Call error if j==-1.
7532
09b58708
JK
75332011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7534
7535 Fix false GCC warning.
7536 * infcall.c (find_function_addr): Initialize funaddr.
7537
6023c606
PM
75382011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7539
7540 Fix mingw compilation with --enable-targets=all.
7541 * remote-mips.c (gdb_usleep.h): Include header.
7542 (mips_enter_debug): Use gdb_usleep instead of sleep.
7543
0e30163f
JK
75442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7545
7546 Support resolution of STT_GNU_IFUNC via breakpoints.
7547 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7548 bp_gnu_ifunc_resolver_return.
7549 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7550 the loop. Support bp_gnu_ifunc_resolver and
7551 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7552 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7553 breakpoints.
7554 (bptype_string, print_one_breakpoint_location): Support
7555 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7556 (user_settable_breakpoint): Return true also for
7557 bp_gnu_ifunc_resolver.
7558 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7559 bp_gnu_ifunc_resolver_return.
7560 (set_breakpoint_location_function): New parameter explicit_loc,
7561 describe it. Call find_pc_partial_function_gnu_ifunc with new
7562 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7563 EXPLICIT_LOC is not set.
7564 (set_raw_breakpoint): Set EXPLICIT_LOC for
7565 set_breakpoint_location_function.
7566 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7567 set_breakpoint_location_function.
7568 (mention): Support bp_gnu_ifunc_resolver and
7569 bp_gnu_ifunc_resolver_return.
7570 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7571 set_breakpoint_location_function.
7572 (update_breakpoint_locations): Remove static.
7573 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7574 bp_gnu_ifunc_resolver_return.
7575 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7576 bp_gnu_ifunc_resolver_return.
7577 (update_breakpoint_locations): New declaration.
7578 * elfread.c: Include gdbthread.h and regcache.h.
7579 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7580 functions.
7581 (elf_gnu_ifunc_fns): Install them.
7582 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7583 (stub_gnu_ifunc_resolver_return_stop): New functions.
7584 (stub_gnu_ifunc_fns): Install them.
7585 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7586 and gnu_ifunc_resolver_return_stop.
7587 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7588
07be84bf
JK
75892011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7590
7591 STT_GNU_IFUNC reader implementation.
7592 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7593 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7594 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7595 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7596 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7597 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7598 (elf_gnu_ifunc_resolve_addr): New.
7599 (elf_symfile_read): Call elf_rel_plt_read.
7600 (elf_gnu_ifunc_fns): New.
7601 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7602 Install elf_gnu_ifunc_fns.
7603 * infcall.c (find_function_return_type): New function.
7604 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7605 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7606 (stub_gnu_ifunc_resolve_name): New functions.
7607 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7608 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7609 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7610
300f8e10
JK
76112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7612
7613 Code cleanup for later STT_GNU_IFUNC support.
7614 * infcall.c (find_function_addr): Remove variable code, use explicit
7615 dereferences for it. Move VALUE_TYPE initialization later.
7616
11c81455
JK
76172011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7620 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7621 (clear_pc_function_cache): Clear it.
7622 (find_pc_partial_function): Rename to ...
7623 (find_pc_partial_function_gnu_ifunc): ... this function. New
7624 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7625 (find_pc_partial_function): New wrapper for this function.
7626 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7627
0875794a
JK
76282011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7629
7630 GDB internal type support for STT_GNU_IFUNC.
7631 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7632 (elf_symtab_read): Set mst_text_gnu_ifunc for
7633 BSF_GNU_INDIRECT_FUNCTION.
7634 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7635 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7636 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7637 nodebug_got_plt_symbol.
7638 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7639 (TYPE_GNU_IFUNC): New.
7640 (struct main_type): New field flag_gnu_ifunc.
7641 (struct builtin_type): New field builtin_func_func.
7642 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7643 nodebug_got_plt_symbol.
7644 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7645 (in_gnu_ifunc_stub): New.
7646 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7647 mst_text_gnu_ifunc.
7648 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7649 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7650 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7651 in_gnu_ifunc_stub.
7652 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7653 * symtab.c (search_symbols): Likewise.
7654 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7655 and mst_slot_got_plt.
7656 (in_gnu_ifunc_stub): New declaration.
7657
d0fb5eae
JK
76582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 Support a ring of related breakpoints.
7661 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7662 other functions, add gdb_assert.
7663 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7664 watchpoint_del_at_next_stop.
7665 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7666 (bpstat_stop_status): Handle ring in related_breakpoint.
7667 (set_raw_breakpoint_without_location): Initialize ring in
7668 related_breakpoint.
7669 (delete_breakpoint): Handle ring in related_breakpoint, use
7670 watchpoint_del_at_next_stop.
7671 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7672
9cded63f
TT
76732011-03-28 Tom Tromey <tromey@redhat.com>
7674
7675 PR symtab/12441:
7676 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7677 with `language_minimal'.
7678
467d42c4
UW
76792011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7680
7681 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7682 instead of checking for STT_ARM_TFUNC symbol type.
7683
62853458
TT
76842011-03-25 Tom Tromey <tromey@redhat.com>
7685
7686 * linespec.c (symbol_found): Restore line-based result for
7687 non-LOC_LABEL symbols.
7688
a7417d46
KT
76892011-03-25 Kai Tietz <ktietz@redhat.com>
7690
7691 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7692 instead of strcmp for comparison.
7693 (tui_source_is_displayed): Likewise.
7694 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7695
55f1336d
TT
76962011-03-24 Mark Wielaard <mjw@redhat.com>
7697
f33edef8
PP
7698 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7699 complaint.
7700 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7701 (find_partial_die_in_comp_unit): Likewise in comment.
7702 (read_attribute_value): Likewise.
7703 (lookup_die_type): Likewise.
7704 (dwarf_form_name): Likewise.
7705 (dump_die_shallow): Likewise.
7706 (follow_die_ref_or_sig): Likewise.
55f1336d 7707
9ef07c8c
TT
77082011-03-24 Tom Tromey <tromey@redhat.com>
7709
7710 PR breakpoints/11816:
7711 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7712 (decode_compound): Update.
7713 (find_function_symbol): New function.
7714 (decode_dollar): Update.
7715 (decode_label): Add 'function_symbol' parameter. Handle
7716 function-relative labels.
7717 (decode_variable): Update.
7718 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7719 not its line. Set `special_display' and canonical name for
7720 labels.
7721
56435ebe
TT
77222011-03-24 Tom Tromey <tromey@redhat.com>
7723
7724 * linespec.h (struct linespec_result) <special_display>: New
7725 field.
7726 * breakpoint.h (struct breakpoint) <display_canonical>: New
7727 field.
7728 * breakpoint.c (print_breakpoint_location): Respect
7729 display_canonical.
7730 (create_breakpoint_sal): Add 'display_canonical' parameter.
7731 (create_breakpoints_sal): Update.
7732 (create_breakpoint): Update.
7733
7efd8fc2
TT
77342011-03-24 Tom Tromey <tromey@redhat.com>
7735
7736 * symtab.c (decode_line_spec): Update.
7737 * linespec.c (build_canonical_line_spec): Change type of
7738 'canonical'.
7739 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7740 (find_method, decode_all_digits, decode_dollar, decode_label)
7741 (symbol_found): Likewise.
7742 (init_linespec_result): New function.
7743 * breakpoint.c (struct captured_parse_breakpoint_args)
7744 <canonical_p>: New field, replaces addr_string_p.
7745 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7746 'addr_string'.
7747 (parse_breakpoint_sals): Likewise.
7748 (do_captured_parse_breakpoint): Update.
7749 (create_breakpoint): Use struct linespec_result.
7750 (until_break_command): Update.
7751 (breakpoint_re_set_one): Update.
7752 (decode_line_spec_1): Update.
7753 * linespec.h (struct linespec_result): New.
7754 (init_linespec_result): Declare.
7755
788c8b10
PA
77562011-03-23 Pedro Alves <pedro@codesourcery.com>
7757
7758 * regcache.c (regcache_raw_read): If the target didn't supply a
7759 given raw register, mark it as unavailable.
7760
0ba1096a
KT
77612011-03-23 Kai Tietz <ktietz@redhat.com>
7762
7763 * breakpoint.c (clear_command): Use filename_cmp
7764 instead of strcmp for comparison.
7765 * buildsym.c (watch_main_source_file_lossage): Likewise.
7766 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7767 checking just for slash.
7768 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7769 strrchr and filename_cmp instead of strcmp for filenames.
7770 (add_old_header_file): Use filename_cmp
7771 instead of strcmp for comparison.
7772 * exec.c (exec_set_section_address): Likewise.
7773 * macrotab.c (macro_lookup_inclusion): Likewise.
7774 (macro_lookup_inclusion): Likewise.
7775 * elfread.c (_initialize_elfread): Likewise.
7776 (elfstab_offset_sections): Likewise.
7777 (elfstab_offset_sections): Use lbasename instead of
7778 strrchr.
7779 * mdebugread.c (parse_partial_symbols): Likewise.
7780 (arse_partial_symbols): Use filename_(n)cmp instead of
7781 str(n)cmp for comparison.
7782 * minsyms.c (lookup_minimal_symbol): Likewise.
7783 * psymtab.c (read_psymtabs_with_filename): Likewise.
7784 * solib.c (solib_read_symbols): Likewise.
7785 (reload_shared_libraries_1): Likewise.
7786 * symmisc.c (maintenance_print_symbols): Likewise.
7787 * symfile.c (separate_debug_file_exists): Likewise.
7788 (reread_symbols): Likewise.
7789 (find_separate_debug_file_by_debuglink): Likewise.
7790 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7791 * source.c (add_path): Likewise.
7792 * symtab.c (filename_seen): Likewise.
7793 (file_matches): Likewise.
7794 (print_symbol_info): Likewise.
7795 (maybe_add_partial_symtab_filename): Likewise.
7796 (make_source_files_completion_list): Likewise.
7797 * xml-syscall.c (init_sysinfo): Likewise.
7798 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7799 IS_DIR_SEPARATOR for checking for trailing path separator.
7800
dd90784c
JK
78012011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7802
7803 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7804 label abort_expression.
7805 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7806 DWARF_VALUE_OPTIMIZED_OUT.
7807
3167638f
JK
78082011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7809
7810 Code cleanup.
7811 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7812 to linkage_name. Invert its value. Update the function comment.
7813 (c_type_print_varspec_suffix): Invert it at the caller.
7814 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7815
ce406537
PA
78162011-03-22 Pedro Alves <pedro@codesourcery.com>
7817
7818 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7819 errors when reading the `stop_pc'.
7820 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7821 get_frame_pc.
7822
da5d4055
PM
78232011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7824
7825 * NEWS: Document gdb.Write stream keyword.
7826
29e0eb9c
JK
78272011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7828
7829 Revert:
7830 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7832 (dwarf2_add_field): Fix new_field->accessibility for
7833 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7834
05775840
PM
78352011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7836
f33edef8 7837 PR python/12183
05775840
PM
7838
7839 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7840 other error classes. Do not print stack trace.
7841
a0cb7835
JK
78422011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7843
7844 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7845 (dwarf2_add_field): Fix new_field->accessibility for
7846 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7847
d19f7eee
UW
78482011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7849
7850 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7851 encountering a load via a non-SP register.
7852
4a2fbb50
UW
78532011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7854
7855 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7856 field in returned unwinder.
7857
3489610d
JB
78582012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7859
7860 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7861
8c1a34e7
JB
78622012-03-21 Joel Brobecker <brobecker@adacore.com>
7863
7864 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7865 of xmalloc.
7866
8fbca658
PA
78672012-03-18 Pedro Alves <pedro@codesourcery.com>
7868
7869 * frame.c (frame_unwind_register): Throw an error if unwinding the
7870 register failed.
7871 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7872 an unwind stop reason.
7873 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7874 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7875 UNWIND_UNAVAILABLE>: New.
7876 * inline-frame.c (inline_frame_unwind): Install
7877 default_frame_unwind_stop_reason.
7878 * frame-unwind.c: Include "exceptions.h".
7879 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7880 (default_frame_unwind_stop_reason): New.
7881 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7882 (default_frame_unwind_stop_reason): Declare.
7883 (struct frame_unwind) <stop_reason>: New function pointer.
7884
7885 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7886 * dwarf2-frame.c: Include exceptions.h.
7887 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7888 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7889 computing the CFA. If such an error was thrown, set
7890 unavailable_retaddr.
7891 (dwarf2_frame_unwind_stop_reason): New.
7892 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7893 unavailable.
7894 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7895 (dwarf2_signal_frame_unwind): Ditto.
7896
7897 * amd64-tdep.c: Include "exceptions.h".
7898 (struct amd64_frame_cache): New field "base_p".
7899 (amd64_init_frame_cache): Clear it.
7900 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7901 Avoid reading registers with functions that throw if the register
7902 is not necessary to compute the frame base.
7903 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7904 swallowing NOT_AVAILABLE_ERROR.
7905 (amd64_frame_unwind_stop_reason): New.
7906 (amd64_frame_this_id): Don't build a frame id if the frame base
7907 was unavailable.
7908 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7909 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7910 base_p if the frame base was computable.
7911 (amd64_sigtramp_frame_unwind_stop_reason): New.
7912 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7913 frame base was unavailable.
7914 (amd64_sigtramp_frame_unwind): Install
7915 amd64_sigtramp_frame_unwind_stop_reason.
7916 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7917 base_p if the frame base was computable.
7918 (amd64_epilogue_frame_unwind_stop_reason): New.
7919 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7920 frame base was unavailable.
7921 (amd64_epilogue_frame_unwind): Install
7922 amd64_epilogue_frame_unwind_stop_reason.
7923 * i386-tdep.c: Include "exceptions.h".
7924 (struct i386_frame_cache): New field "base_p".
7925 (i386_init_frame_cache): Clear it.
7926 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7927 Avoid reading registers with functions that throw if the register
7928 is not necessary to compute the frame base.
7929 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7930 swallowing NOT_AVAILABLE_ERROR.
7931 (i386_frame_unwind_stop_reason): New.
7932 (i386_frame_this_id): Don't build a frame id if the frame base was
7933 unavailable.
7934 (i386_frame_prev_register): Handle unavailable SP.
7935 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7936 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7937 base_p if the frame base was computable.
7938 (i386_epilogue_frame_unwind_stop_reason): New.
7939 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7940 base was unavailable.
7941 (i386_epilogue_frame_unwind): Install
7942 i386_epilogue_frame_unwind_stop_reason.
7943 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7944 base_p if the frame base was computable.
7945 (i386_sigtramp_frame_unwind_stop_reason): New.
7946 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7947 base was unavailable.
7948 (i386_sigtramp_frame_unwind): Install
7949 i386_sigtramp_frame_unwind_stop_reason.
7950 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7951 type's size, not the register's.
7952 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7953
7954 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7955 default_frame_unwind_stop_reason.
7956 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7957 (alpha_heuristic_frame_unwind): Ditto.
7958 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7959 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7960 * avr-tdep.c (avr_frame_unwind): Ditto.
7961 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7962 Ditto.
7963 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7964 * frv-tdep.c (frv_frame_unwind): Ditto.
7965 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7966 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7967 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7968 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7969 (hppa_stub_frame_unwind): Ditto.
7970 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7971 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7972 (ia64_libunwind_frame_unwind)
7973 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7974 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7975 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7976 * m32c-tdep.c (m32c_unwind): Ditto.
7977 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7978 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7979 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7980 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7981 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7982 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7983 * mep-tdep.c (mep_frame_unwind): Ditto.
7984 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7985 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7986 (mips_stub_frame_unwind): Ditto.
7987 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7988 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7989 * mt-tdep.c (mt_frame_unwind): Ditto.
7990 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7991 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7992 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7993 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7994 (s390_sigtramp_frame_unwind): Ditto.
7995 * score-tdep.c (score_prologue_unwind): Ditto.
7996 * sh-tdep.c (sh_frame_unwind): Ditto.
7997 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7998 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7999 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8000 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8001 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8002 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8003 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8004 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8005 (sparc64obsd_trapframe_unwind): Ditto.
8006 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8007 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8008 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8009 * v850-tdep.c (v850_frame_unwind): Ditto.
8010 * vax-tdep.c (vax_frame_unwind): Ditto.
8011 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8012 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8013 * xtensa-tdep.c (xtensa_unwind): Ditto.
8014
f23d1b92
PA
80152011-03-18 Pedro Alves <pedro@codesourcery.com>
8016
8017 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8018 there's always a frame. Use get_frame_pc_if_available instead of
8019 get_frame_pc, and if there's no PC available, don't look up a
8020 symtab.
8021
1d4f5741
PA
80222011-03-18 Pedro Alves <pedro@codesourcery.com>
8023
8024 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8025 unavailable PC.
8026
dba09041
PA
80272011-03-18 Pedro Alves <pedro@codesourcery.com>
8028
8029 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8030 gracefully.
8031
9a26e44c
PA
80322011-03-18 Pedro Alves <pedro@codesourcery.com>
8033
8034 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8035 * frame.c (frame_unwind_caller_pc_if_available): New.
8036 * stack.c (frame_info): Handle unavailable PC.
8037
80382011-03-18 Pedro Alves <pedro@codesourcery.com>
8039
8040 * frame.c (frame_unwind_pc): Rename to ...
8041 (frame_unwind_pc_if_available): ... this. New `pc' output
8042 parameter. Change return type to int. Gracefully handle
8043 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8044 happened, or 1 otherwise.
8045 (frame_unwind_pc): Reimplement on top of
8046 frame_unwind_pc_if_available.
8047 (get_frame_func): Rename to ...
8048 (get_frame_func_if_available): New `pc' output parameter. Change
8049 return type to int. Gracefully handle the PC not being available.
8050 (get_frame_func): Reimplement on top of
8051 get_frame_func_if_available.
8052 (select_frame): Handle the PC being unavailable.
8053 (get_prev_frame): Handle the PC being unavailable.
8054 (get_frame_pc_if_available): New.
8055 (get_frame_address_in_block_if_available): New.
8056 (find_frame_sal): Handle the frame PC not being available.
8057 * frame.h (get_frame_pc_if_available): Declare.
8058 (get_frame_address_in_block_if_available): Declare.
8059 (get_frame_func_if_available): Declare.
8060 * stack.c (print_frame_info): Handle the PC being unavailable.
8061 (find_frame_funname): Ditto.
8062 (print_frame): Handle the PC being unavailable.
8063 (get_frame_language): Ditto.
8064 * blockframe.c (get_frame_block): Ditto.
8065 * macroscope.c (default_macro_scope): Ditto.
8066 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8067
80682011-03-18 Pedro Alves <pedro@codesourcery.com>
8069
8070 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8071 NOT_AVAILABLE_ERROR when evaluating the location expression.
8072
80732011-03-18 Pedro Alves <pedro@codesourcery.com>
8074
8075 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8076 returning that the register piece is unavailable/optimized out.
8077 (write_pieced_value): Handle get_frame_register_bytes returning
8078 that the register piece is unavailable/optimized out when doing a
8079 read-modify write of a bitfield.
8080 * findvar.c (value_from_register): Handle get_frame_register_bytes
8081 returning that the register piece is unavailable/optimized out.
8082 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8083 and `unavailablep'. Throw error on bad debug info. Use
8084 frame_register instead of frame_register_read, to fill in the new
8085 arguments.
8086 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8087 and `unavailablep'.
8088 * valops.c: (value_assign): Adjust, and handle
8089 get_frame_register_bytes failing.
8090 * spu-tdep.c: Include exceptions.h.
8091 (spu_software_single_step): Adjust, and handle
8092 get_frame_register_bytes failing.
8093 (spu_get_longjmp_target): Ditto.
8094 * gdbarch.sh (register_to_value): Change to return int. New
8095 parameters `optimizedp' and `unavailablep'.
8096 * gdbarch.h, gdbarch.c: Regenerate.
8097 * i386-tdep.c (i386_register_to_value): Adjust to new
8098 gdbarch_register_to_value interface.
8099 * i387-tdep.c (i387_register_to_value): Ditto.
8100 * i387-tdep.h (i387_register_to_value): Ditto.
8101 * alpha-tdep.c (alpha_register_to_value): Ditto.
8102 * ia64-tdep.c (ia64_register_to_value): Ditto.
8103 * m68k-tdep.c (m68k_register_to_value): Ditto.
8104 * mips-tdep.c (mips_register_to_value): Ditto.
8105 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8106
0fdb4f18
PA
81072011-03-18 Pedro Alves <pedro@codesourcery.com>
8108
8109 * findvar.c (value_of_register): Mark the value as unavailable, if
8110 the register is unavailable.
8111 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8112 (frame_register): New `unavailablep' parameter.
8113 (frame_register_read): Update comment.
8114 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8115 Set it if the register is unavailable. If the register is
8116 unavailable, clear the output buffer.
8117 (frame_register): New `unavailablep' parameter. Pass it down.
8118 (frame_unwind_register): Adjust.
8119 (put_frame_register): Adjust.
8120 (frame_register_read): Adjust. Also return false if the register
8121 is not available.
8122 (frame_register_unwind_location): Adjust.
8123 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8124 is unavailable, mark the value accordingly.
8125 * stack.c (frame_info): Handle unavailable registers.
8126
e69aa73e
PA
81272011-03-18 Pedro Alves <pedro@codesourcery.com>
8128
8129 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8130 simplify, using regcache_cooked_read.
8131
05d1431c
PA
81322011-03-18 Pedro Alves <pedro@codesourcery.com>
8133
8134 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8135 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8136 (regcache_raw_read_unsigned, regcache_raw_read_part)
8137 (regcache_cooked_read, regcache_cooked_read_signed)
8138 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8139 (regcache_cooked_read_ftype): Change return to enum
8140 register_status.
8141 * regcache.c: Include exceptions.h
8142 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8143 (do_cooked_read): Change return to enum register_status. Always
8144 forward to regcache_cooked_read.
8145 (regcache_raw_read): Change return to enum register_status. If
8146 the register is not REG_VALID, memset the buffer. Return the
8147 register's status.
8148 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8149 return the register's status.
8150 (regcache_raw_read_unsigned): Ditto.
8151 (regcache_cooked_read): Change return to enum register_status.
8152 Assert that with read-only regcaches, the register's status must
8153 be known. If the regcache is read-only, and the register is not
8154 REG_VALID, memset the buffer. Return the register's status.
8155 (regcache_cooked_read_signed): Change return to enum
8156 register_status. Handle non-REG_VALID registers and return the
8157 register's status.
8158 (regcache_cooked_read_unsigned): Change return to enum
8159 register_status. Handle non-REG_VALID registers and return the
8160 register's status.
8161 (regcache_xfer_part, regcache_raw_read_part)
8162 (regcache_cooked_read_part): Change return to enum
8163 register_status. Return the register's status.
8164 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8165 unavailable.
8166 (regcache_dump): Handle unavailable cooked registers.
8167 * frame.c (do_frame_register_read): Adjust interface to match
8168 regcache_cooked_read_ftype.
8169 * gdbarch.sh (pseudo_register_read): Change return to enum
8170 register_status.
8171 * gdbarch.h, gdbarch.c: Regenerate.
8172
8173 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8174 register_status.
8175 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8176 register_status. If reading a raw register indicates the raw
8177 register is not valid, return the raw register's status,
8178 otherwise, return REG_VALID.
8179 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8180 register_status. Handle non-REG_VALID raw registers and return
8181 the register's status.
8182 * arm-tdep.c (arm_neon_quad_read)
8183 (arm_pseudo_read): Change return to enum register_status. Handle
8184 non-REG_VALID raw registers and return the register's status.
8185 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8186 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8187 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8188 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8189 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8190 register_status.
8191 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8192 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8193 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8194 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8195 (m32c_pseudo_register_read): Change return to enum
8196 register_status. Adjust.
8197 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8198 enum register_status. Return the register's status.
8199 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8200 register_status. Return the register's status.
8201 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8202 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8203 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8204 * rs6000-tdep.c (move_ev_register_func): New typedef.
8205 (e500_move_ev_register): Use it. Change return to enum
8206 register_status. Return the register's status.
8207 (do_regcache_raw_read): New function.
8208 (do_regcache_raw_write): New function.
8209 (e500_pseudo_register_read): Change return to enum
8210 register_status. Return the register's status. Use
8211 do_regcache_raw_read.
8212 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8213 (dfp_pseudo_register_read): Change return to enum register_status.
8214 Return the register's status.
8215 (vsx_pseudo_register_read): Ditto.
8216 (efpr_pseudo_register_read): Ditto.
8217 (rs6000_pseudo_register_read): Ditto.
8218 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8219 register_status. Return the register's status.
8220 * sh64-tdep.c (pseudo_register_read_portions): New function.
8221 (sh64_pseudo_register_read): Change return to enum
8222 register_status. Use pseudo_register_read_portions. Return the
8223 register's status.
8224 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8225 register_status. Return the register's status.
8226 * sh-tdep.c (pseudo_register_read_portions): New function.
8227 (sh_pseudo_register_read): Change return to enum register_status.
8228 Use pseudo_register_read_portions. Return the register's status.
8229 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8230 enum register_status. Return the register's status.
8231 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8232 * spu-tdep.c (spu_pseudo_register_read_spu)
8233 (spu_pseudo_register_read): Ditto.
8234 * xtensa-tdep.c (xtensa_register_read_masked)
8235 (xtensa_pseudo_register_read): Ditto.
8236 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8237
e10abd8f
PM
82382011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8239
8240 * python/py-value.c (valpy_getitem): Fix formatting of error function
8241 call.
8242
7ea6d463
PM
82432011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8244
8245 ARI fixes: Add missing internationalization markups throughout
8246 C source files.
8247 * darwin-nat-info.c: Ditto.
8248 * record.c: Ditto.
8249 * remote.c: Ditto.
8250 * mi/mi-main.c: Ditto.
8251
001083c6
PM
82522011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8253
8254 ARI fixes: Add missing internationalization markups throughout
8255 yacc files.
8256 * c-exp.y: Ditto.
8257 * cp-name-parser.y: Ditto.
8258 * f-exp.y: Ditto.
8259 * m2-exp.y: Ditto.
8260 * objc-exp.y: Ditto.
8261 * p-exp.y: Ditto.
8262
4f1cdeec
PM
82632011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8264
8265 ARI fixes: Messages should have no trailing new lines.
8266 * darwin-nat.c (mach_check_error): Remove trailing new line from
8267 warning function call message.
8268 * record.c (bfdcore_read): Idem for error call.
8269
28e698f1
PM
82702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8271
8272 * common/signals.c (target_signal_from_host): Add _ markup to error
8273 function call message.
8274 (target_signal_to_host): Add _ markup and remove trailing new line
8275 from warning call message.
8276 (target_signal_from_command): Add _ markup to error function call
8277 message.
8278
99c3dc11
PM
82792011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8280
f33edef8 8281 PR python/12149
99c3dc11
PM
8282
8283 * python/python.c (gdbpy_write): Accept a stream argument and
8284 operate to the appropriate stream.
8285 (gdbpy_flush): Likewise.
8286 (_initialize_python): Add stream constants.
8287 (finish_python_initialization): Add GdbOutputErrorFile class.
8288
c20800be
KY
82892011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8290
8291 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8292
f4a1794a
KY
82932011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8294
8295 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8296 to store_signed_integer. Add debug message when relocating CALL
8297 instructions. Fix formatting of debug message.
8298 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8299
d4862372
JB
83002011-03-17 Joel Brobecker <brobecker@gnat.com>
8301
8302 * target.h (struct target_ops): Remove to_lookup_symbol field.
8303 (target_lookup_symbol): Delete macro.
8304 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8305 (update_current_target, setup_target_debug): Remove handling
8306 of to_lookup_symbol target_ops field.
8307 * ada-tasks.c (get_known_tasks_addr): Remove use of
8308 target_lookup_symbol.
8309 * coffread.c (coff_symtab_read): Likewise.
8310 * dbxread.c (read_dbx_symtab): Ditto.
8311
d645e32e
JB
83122011-03-17 Joel Brobecker <brobecker@gnat.com>
8313
8314 PR gdb/12116:
8315 * configure.ac: Add getthrds declaration check.
8316 * configure, config.in: Regenerate.
8317 * aix-thread.c (getthrds): Declare only if not already declared
8318 in procinfo.h. More declaration out of get_signaled_thread to
8319 global scope.
8320
29703da4
PM
83212011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8322
8323 * python/py-symtab.c: Populate symtab_object_methods,
8324 sal_object_methods.
8325 (stpy_is_valid): New function.
8326 (salpy_is_valid): Ditto.
8327 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8328 (sympy_is_valid): New function.
8329 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8330 (objfpy_is_valid): New function.
8331 * python/py-inferior.c: Populate inferior_object_methods.
8332 (infpy_is_valid): New function.
8333 * python/py-infthread.c: Populate thread_object_methods.
8334 (thpy_is_valid): New function.
8335 * python/py-block.c: Declare block_object_methods. Populate. Declare
8336 block_iterator_object_methods. Populate.
8337 (blpy_is_valid): New function.
8338 (blpy_iter_is_valid): Ditto.
8339
c00f8484
KS
83402011-03-16 Keith Seitz <keiths@redhat.com>
8341
8342 * linespec.c (find_methods): Canonicalize NAME before looking
8343 up the symbol.
8344 (name_end): New function.
8345 (keep_name_info): New function.
8346 (decode_line_1): Use keep_name_info.
8347 (decode_compound): Likewise.
8348 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8349 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8350
8351 PR c++/12273
8352 * linespec.c (locate_first_half): Keep overload information, too.
8353 (decode_compound): Use a string to represent break characters
8354 to escape the loop.
8355 If P points to a break character, do not increment it.
8356 For C++ and Java, keep overload information and relevant keywords.
8357 If we cannot find a symbol, search the minimal symbols.
8358
8359 PR c++/11734
8360 * linespec.c (decode_compound): Rename SAVED_ARG to
8361 THE_REAL_SAVED_ARG.
8362 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8363 single-quotes.
8364 Pass a valid block to lookup_symbol.
8365 (lookup_prefix_sym): Likewise.
8366 (find_method): Construct search name based on SYM_CLASS instead
8367 of SAVED_ARG.
8368 * psymtab.c (lookup_partial_symbol): Add language parameter.
8369 (lookup_symbol_aux_psymtabs): Likewise.
8370 Don't assume that the psymtab we found was the right one. Search
8371 for the desired symbol in the symtab to be certain.
8372 (psymtab_search_name): New function.
8373 (lookup_partial_symbol): Use psymtab_search_name.
8374 Add language parameter.
8375 (read_symtabs_for_function): Add language parameter and pass to
8376 lookup_partial_symbol.
8377 (find_symbol_file_from_partial): Likewise.
8378
c91513d8
PP
83792011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8380
8381 PR gdb/12528
8382 * dwarf2read.c (noop_record_line): New function.
8383 (dwarf_decode_lines): Ignore line tables for GCd functions.
8384
b37520b6
PM
83852011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8386
8387 Fix ARI warnings about new lines at the end of messages, which
8388 are unneeded as there is a new line added at the end of the message
8389 automatically.
8390 * darwin-nat.c (darwin_stop_inferior): Ditto.
8391 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8392 * dfp.c (decimal_to_number): Ditto.
8393 * exec.c (print_section_info): Ditto.
8394 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8395 * osdata.c (get_osdata): Ditto.
8396 * record.c (bfdcore_write): Ditto.
8397 * remote-mips.c (mips_readchar): Ditto.
8398 * remote.c (read_ptid): Ditto.
8399 * ser-mingw.c (ser_windows_raw): Ditto.
8400 * tracepoint.c (add_local_symbols): Ditto.
8401 * windows-nat.c (fake_create_process): Ditto.
8402
b08ee6a2
TT
84032011-03-16 Tom Tromey <tromey@redhat.com>
8404
8405 * tracepoint.c (stop_tracing): Don't declare.
8406 * event-top.c (after_char_processing_hook): Add `(void)'.
8407
9a6f1302
PM
84082011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8409
8410 * NEWS: Add Parameter sub-classing description.
8411
7ceb86b1
KT
84122011-03-16 Kai Tietz <ktietz@redhat.com>
8413
8414 * MAINTAINERS: Update my e-mail address.
8415
efeff6cf
AT
84162011-03-15 Andreas Tobler <andreast@fgznet.ch>
8417
8418 * MAINTAINERS: Add myself for write after approval privileges.
8419
681c238c
MS
84202011-03-15 Michael Snyder <msnyder@vmware.com>
8421
f3df5b08
MS
8422 * frame.c (find_frame_sal): Assert sym is not null.
8423
13f6513c
MS
8424 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8425
50412521
MS
8426 * objc-lang.c (selectors_info): Check strchr for null result.
8427
681c238c
MS
8428 * stabsread.c (define_symbol): Guard against bad stabstring input.
8429
6ced1581
PM
84302011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8431
8432 Remove trailing spaces and tabulations from pascal language
8433 support sources.
8434 p-exp.y: Ditto.
8435 p-lang.c: Ditto.
8436 p-lang.h: Ditto.
8437 p-valprint.c: Ditto.
8438
9373cf26
JK
84392011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8440
8441 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8442 than LOW. Comment it.
8443 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8444 HIGHPC not strictly higher than LOWPC.
8445
9a1edae6
PM
84462011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8447
8448 Fix formatting of function declarations returning a pointer in
8449 previous commit.
8450 * varobj.c (varobj_add_child): Ditto.
8451 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8452 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8453
24e9cda0
UW
84542011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8455
8456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8457 for the "generic" vector ABI used with GCC 4.3 and later.
8458 (ppc64_sysv_abi_return_value): Likewise.
8459
84602011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8461
8462 * infcall.c (call_function_by_hand): Function return value is
8463 always a non_lval, even when using struct_return.
8464
c9174737
PA
84652011-03-15 Pedro Alves <pedro@codesourcery.com>
8466
8467 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8468 (map_display_numbers): New.
8469 (do_delete_display): New.
8470 (undisplay_command): Use map_display_numbers.
8471 (do_enable_disable_display): New.
8472 (enable_disable_display_command): New function.
8473 (enable_display): Delete.
8474 (enable_display_command): New.
8475 (disable_display_command): Reimplement.
8476 (_initialize_printcmd): Adjust "enable display" command to use
8477 `enable_display_command' as callback.
8478
350c6c65
PM
84792011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8480
8481 * NEWS: Add Python breakpoint 'stop' operation.
8482
824446ad
PM
84832011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8484
8485 * NEWS: Delete duplicate entry. Fix typo.
8486
2021ad3a
PM
84872011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8488
8489 Fix ARI warning about function names in first column.
8490 Put prototype declaration on same line as return type.
8491 * objc-exp.y: Ditto.
8492 * p-exp.y: Ditto.
8493 * python/py-stopevent.h: Ditto.
8494 For long function names, split parameters to
8495 allow function name on same line as return type.
8496 * solib-pa64.c: Ditto.
8497 * varobj.c: Ditto.
8498 * varobj.h: Ditto.
8499 For long function declaration, use single line.
8500 * hppa-tdep.h: Ditto.
8501 * inferior.h: Ditto.
8502
7371cf6d
PM
85032011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8504
8505 * python/python.h: Declare gdbpy_should_stop and
8506 gdbpy_breakpoint_has_py_cond.
8507 * python/python.c: Add python.h to includes. Remove python.h from
8508 HAVE_PYTHON definition
8509 (gdbpy_should_stop): New dummy function.
8510 (gdbpy_breakpoint_has_py_cond): New dummy function.
8511 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8512 sub-classing capabilities.
8513 (gdbpy_should_stop): New function.
8514 (gdbpy_breakpoint_has_py_cond): New function.
8515 (local_setattro): New function.
8516 * breakpoint.c (condition_command): Add check for Python 'stop'
8517 operation.
8518 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8519 operation function as part of stop/continue tests.
8520
37b50a69
TT
85212011-03-14 Tom Tromey <tromey@redhat.com>
8522
8523 PR gdb/12576:
8524 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8525 (needs_frame_dwarf_call): Likewise.
8526
eeae04df
PM
85272011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8528
8529 Fix ARI warning about functions without parameters that do not
8530 use (void).
8531 * breakpoint.c (all_tracepoints): Replace () by (void).
8532 * f-exp.y (match_string_literal): Ditto.
8533 (yylex): Ditto.
8534 * m2-exp.y (yylex): Ditto.
8535 * mep-tdep.c (current_me_module): Ditto.
8536 (current_options): Ditto.
8537 (current_cop_data_bus_width): Ditto.
8538 (current_cr_names): Ditto.
8539 (current_cr_is_float): Ditto.
8540 (current_ccr_names): Ditto.
8541 * objc-exp.y (yylex): Ditto.
8542 * p-exp.y (yylex): Ditto.
8543 * remote.c (send_interrupt_sequence): Ditto.
8544 * tracepoint.c (current_trace_status): Ditto.
8545 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8546 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8547
6dc3565d
MS
85482011-03-11 Michael Snyder <msnyder@vmware.com>
8549
1427fe5e
MS
8550 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8551 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8552 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8553 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8554 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8555
60bc018f
MS
8556 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8557 (delete_async_event_handler): Ditto.
8558
f3be5b64
MS
8559 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8560
4c2d5724
MS
8561 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8562
6dc3565d
MS
8563 * top.c (set_verbose): Assert showcmd was found.
8564
4e6ca6d5
MG
85652011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8566
8567 * xtensa-tdep.c (warning_once): Correct style issues.
8568
815a83e4
YQ
85692011-03-11 Yao Qi <yao@codesourcery.com>
8570
8571 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8572
f2eb0bc8
AS
85732011-03-11 Andreas Schwab <schwab@redhat.com>
8574
8575 * common/aclocal.m4: Remove.
8576
b801de47
MG
85772011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8578
8579 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8580 (xtensa_write_register, xtensa_read_register): Likewise.
8581 (xtensa_hextochar): Removed.
8582 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8583
dbab50de
MG
85842011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8585
8586 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8587 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8588 (xtensa_alloc_frame_cache): Add initialization for new fields.
8589 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8590 (warning_once): New function.
8591 (xtensa_insn_kind): New item c0opc_and.
8592 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8593 (call0_track_op): Change arguments. New local variable litbase.
8594 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8595 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8596 in the prologue.
dbab50de 8597 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8598 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8599 Add the variety of updates to handle extended prologues, which now can
8600 conduct dynamic stack adjustments.
8601 (call0_frame_cache): Likewise.
8602 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8603 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8604
b2c04452
MS
86052011-03-10 Michael Snyder <msnyder@vmware.com>
8606
f8f67713
MS
8607 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8608 (cmd_qtframe): Ditto.
8609 (cmd_qtbuffer): Ditto.
8610 (cmd_bigqtbuffer): Ditto.
8611
197f0a60
TT
86122011-03-10 Tom Tromey <tromey@redhat.com>
8613
8614 * tracepoint.c (trace_actions_command): Update.
8615 * thread.c (thread_apply_command): Update.
8616 * reverse.c (delete_bookmark_command): Update.
8617 (bookmarks_info): Update.
8618 * printcmd.c (undisplay_command): Update.
8619 * memattr.c (mem_enable_command): Update.
8620 (mem_disable_command): Update.
8621 (mem_delete_command): Update.
8622 * inferior.c (detach_inferior_command): Update.
8623 (kill_inferior_command): Update.
8624 (remove_inferior_command): Update.
8625 * cli/cli-utils.h (struct get_number_or_range_state): New.
8626 (init_number_or_range): Declare.
8627 (get_number_or_range): Update.
8628 * cli/cli-utils.c (init_number_or_range): New function.
8629 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8630 static variables.
8631 (number_is_in_list): Update.
8632 * breakpoint.h (get_tracepoint_by_number): Update.
8633 * breakpoint.c (map_breakpoint_numbers): Update for change to
8634 get_number_or_range.
8635 (find_location_by_number): Use get_number, not
8636 get_number_or_range.
8637 (trace_pass_set_count): New function.
8638 (trace_pass_command): Update for change to get_number_or_range.
8639 Rework loop logic.
8640 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8641 'state' parameter.
8642
ecec24e6
PM
86432011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8644
8645 * python/py-param.c (add_setshow_generic): Add set/show callback
8646 parameters. Register Python object context.
8647 (get_show_value): New function.
8648 (get_set_value): New function.
8649 (call_doc_function): New function.
8650 (get_doc_string): Move behind get_show_value/get_set_value.
8651
6d6c6b1f
JK
86522011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8653
8654 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8655
68d6df83
MG
86562011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8657
dbab50de 8658 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8659 (xtensa_write_register): Likewise.
8660 (xtensa_hextochar): Add comment and update to match coding conventions.
8661 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8662 (execute_l32e, execute_s32e, execute_code): Update comments.
8663 (xtensa_exception_handler_t): Update to match coding conventions.
8664 (xtensa_insn_kind): Likewise.
8665
85c9d6a6
MS
86662011-03-09 Michael Snyder <msnyder@vmware.com>
8667
8668 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8669
91495617
PA
86702011-03-09 Pedro Alves <pedro@codesourcery.com>
8671
8672 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8673
eb8c0621
TT
86742011-03-09 Tom Tromey <tromey@redhat.com>
8675
8676 * thread.c (restore_selected_frame): Handle frame_level == -1.
8677 (make_cleanup_restore_current_thread): Use
8678 get_selected_frame_if_set.
8679 * frame.h (get_selected_frame_if_set): Declare.
8680 * frame.c (get_selected_frame_if_set): New function.
8681
9f37bbcc
PA
86822011-03-09 Pedro Alves <pedro@codesourcery.com>
8683
8684 * cli/cli-cmds.c (shell_escape): Use lbasename.
8685 * coffread.c (coff_start_symtab): Constify parameter.
8686 (complete_symtab): Constify `name' parameter.
8687 (coff_symtab_read): Constify `filestring' local.
8688 (coff_getfilename): Constify return and `result' local.
8689 Use lbasename.
8690 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8691 * linux-fork.c (info_checkpoints_command): Use lbasename.
8692 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8693 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8694 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8695 * procfs.c (procfs_make_note_section): Use lbasename.
8696 * tui/tui-io.c (printable_part): Constity return and parameter.
8697 Use lbasename.
8698 (print_filename): Constify parameters, and local `s'.
8699 (tui_rl_display_match_list): Constify local `temp'.
8700
f8de3c55
JK
87012011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8702
8703 Revert:
8704 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8705 Fix DWARF-3+ DW_AT_accessibility default assumption.
8706 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8707 cu->header.version >= 3.
8708
d9837b00
YQ
87092011-03-09 Yao Qi <yao@codesourcery.com>
8710
8711 * common/Makefile.in: Remove.
8712 * common/configure: Remove.
8713 * common/configure.ac: Remove.
8714
e637a4f5
YQ
87152011-03-09 Yao Qi <yao@codesourcery.com>
8716
8717 Revert:
8718 2011-02-11 Yao Qi <yao@codesourcery.com>
8719
8720 * common/Makefile.in: Add copyright header.
8721
8722 2011-02-11 Yao Qi <yao@codesourcery.com>
8723
8724 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8725 libcommon.a.
8726 * configure.ac: Add common to sub dir.
8727 * configure: Regenerate.
8728
f976a05d
MG
87292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8730
8731 * xtensa-tdep.c (call0_ret): New function.
8732 (xtensa_skip_prologue): Speed up analysis.
8733
57041825
MG
87342011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8735
8736 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8737 while executing MI command -data-list-changed-registers.
8738
08b9c608
MG
87392011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8740
8741 * xtensa-tdep.c (xtensa_read_register): New function.
8742 (xtensa_write_register): New function.
8743 (xtensa_find_register_by_name): New function.
8744 (xtensa_windowed_frame_cache): Update comments in type description.
8745 (xtensa_frame_cache): Likewise.
8746 (xtensa_window_interrupt_insn): New function.
8747 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8748 (xtensa_insn_kind): Add new instructions.
8749 (rwx_special_register): New function.
8750 (call0_classify_opcode): Add new instructions to the analysis.
8751 (a0_saved, a7_saved, a11_saved): New variables.
8752 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8753 (execute_l32e): New function.
8754 (execute_s32e): New function.
8755 (xtensa_exception_handler_t): New type.
8756 (execute_code): New function.
8757 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8758 analysis for Xtensa Window Exception handlers.
8759
4d1acb11
MG
87602011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8761
98689b25
MG
8762 * xtensa-tdep.c (TX_PS): New.
8763 (windowing_enabled): Update to count for Call0 ABI.
8764 (xtensa_hextochar): New.
8765 (xtensa_init_reggroups): Make algorithm generic.
8766 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8767
87682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8769
8770 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8771
d3f323f3
MS
87722011-03-08 Michael Snyder <msnyder@vmware.com>
8773
3dcabaa8
MS
8774 * i386-tdep.c (i386_follow_jump): Check return value of
8775 target_read_memory.
8776 (i386_analyze_struct_return): Ditto.
8777 (i386_skip_probe): Ditto.
8778 (i386_match_insn): Ditto.
8779 (i386_skip_noop): Ditto.
8780 (i386_analyze_frame_setup): Ditto.
8781 (i386_analyze_register_saves): Ditto.
8782 (i386_skip_prologue): Ditto.
8783 (i386_skip_main_prologue): Ditto.
8784
13b3fd9b
MS
8785 * target.c (read_whatever_is_readable): Fix memory leak.
8786
d3f323f3
MS
8787 * i386-tdep.c (i386_process_record): Document fall through.
8788
421d5c74
JK
87892011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8790
8791 Fix DWARF-3+ DW_AT_accessibility default assumption.
8792 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8793 cu->header.version >= 3.
8794
63154eca
PA
87952011-03-08 Pedro Alves <pedro@codesourcery.com>
8796
8797 * remote.c (remote_check_symbols): Skip if the target has no
8798 execution.
8799
f1a507a1
JB
88002011-03-08 Joel Brobecker <brobecker@adacore.com>
8801
8802 * target.c (read_whatever_is_readable): Reformat comment,
8803 with a minor typo fix. Minor reformatting of the code.
8804
36073a92
YQ
88052011-03-08 Yao Qi <yao@codesourcery.com>
8806
8807 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8808 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8809 Use cached result instead of calling displaced_in_arm_mode again.
8810 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8811 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8812 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8813 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8814 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8815 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8816 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8817 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8818 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8819 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8820 (arm_catch_kernel_helper_return): Likewise.
8821 * gdb/arm-tdep.h : Update function declarations.
8822
d3f323f3 88232011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8824
e0e40094
MS
8825 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8826
0b2381f5
MS
8827 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8828
0350914a
MS
8829 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8830
69feea6f
MS
8831 * elfread.c (elf_symtab_read): Stop memory leak.
8832
e6040cbd
MS
8833 * main.c (captured_main): Fix memory leak.
8834
052874e8
AS
88352011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8836
8837 * ada-lang.c (compare_names): Call is_name_suffix with string1
8838 instead of string2.
8839
b11896a5
TT
88402011-03-07 Tom Tromey <tromey@redhat.com>
8841
8842 * xcoffread.c (xcoff_sym_fns): Update.
8843 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8844 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8845 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8846 (symbol_file_add_with_addrs_or_offsets): Likewise.
8847 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8848 * somread.c (som_sym_fns): Update.
8849 * psymtab.h (require_partial_symbols): Declare.
8850 * psymtab.c (require_partial_symbols): New function.
8851 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8852 (ALL_OBJFILE_PSYMTABS): Undef.
8853 (ALL_PSYMTABS): Move from psympriv.h.
8854 (lookup_partial_symtab, find_pc_sect_psymtab)
8855 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8856 (find_last_source_symtab_from_partial)
8857 (forget_cached_source_info_partial)
8858 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8859 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8860 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8861 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8862 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8863 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8864 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8865 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8866 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8867 psymtabs.
8868 * mipsread.c (ecoff_sym_fns): Update.
8869 * machoread.c (macho_sym_fns): Update.
8870 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8871 (read_psyms): New function.
8872 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8873 (elf_sym_fns_lazy_psyms): New global.
8874 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8875 dwarf2_build_psymtabs.
8876 * dbxread.c (aout_sym_fns): Update.
8877 * coffread.c (coff_sym_fns): Update.
8878
fda326dd
TT
88792011-03-07 Tom Tromey <tromey@redhat.com>
8880
8881 * infrun.c (print_exited_reason): Include inferior id and pid in
8882 message.
8883
aeaec162
TT
88842011-03-07 Tom Tromey <tromey@redhat.com>
8885
8886 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8887 parameter.
8888 (target_has_execution_1): Update.
8889 (target_has_execution_current): Declare.
8890 (target_has_execution): Call target_has_execution_current.
8891 (default_child_has_execution): Update.
8892 * target.c (default_child_has_execution): Add 'the_ptid'
8893 parameter.
8894 (target_has_execution_1): Likewise.
8895 (target_has_execution_current): New function.
8896 (add_target): Update.
8897 (init_dummy_target): Update.
8898 * remote-m32r-sdi.c (m32r_has_execution): New function.
8899 (init_m32r_ops): Use it.
8900 * record.c (record_core_has_execution): Now static. Add
8901 'the_ptid' parameter.
8902 * inferior.c (have_live_inferiors): Don't save current thread.
8903 Use target_has_execution_1.
8904
08e14083
YQ
89052011-03-07 Yao Qi <yao@codesourcery.com>
8906
8907 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8908
c05d19c5
JB
89092011-03-07 Joel Brobecker <brobecker@adacore.com>
8910
8911 * elfread.c (elf_symtab_read): Minor reformatting.
8912
3e6ef9e4
JB
89132011-03-07 Joel Brobecker <brobecker@adacore.com>
8914
8915 * objc-lang.c (selectors_info): Minor reformatting.
8916
dbb8534f
JB
89172011-03-07 Joel Brobecker <brobecker@adacore.com>
8918
8919 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8920
dd70cc93
JB
89212011-03-07 Joel Brobecker <brobecker@adacore.com>
8922 Michael Snyder <msnyder@vmware.com>
8923
8924 * ada-valprint.c (ada_val_print_array): Move the declaration of
8925 "byte_order" and "elttype" inside the block where these variables
8926 are actually used. Remove some special handling for the case
8927 where "elttype" and "eltlen" are null. Replace by a comment
8928 and a couple of assertion checks.
8929
b27cf2b3
MS
89302011-03-05 Michael Snyder <msnyder@vmware.com>
8931
8932 * source.c (add_path): Replace semicolon at end of block.
8933 * dwarf2expr.c (execute_stack_op): Ditto.
8934
5387a0c6
MF
89352011-03-05 Mike Frysinger <vapier@gentoo.org>
8936
8937 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8938 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8939 (bfin-*-*): Likewise.
8940
e3aa49af
MS
89412011-03-05 Michael Snyder <msnyder@vmware.com>
8942
82ae4854
MS
8943 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8944 * mdebugread.c (parse_symbol): Ditto.
8945 * parse.c (parse_exp_in_context): Ditto.
8946 * source.c (add_path): Ditto.
8947 * utils.c (gnu_debuglink_crc32): Ditto.
8948 * varobj.c (variable_language): Ditto.
8949
e3aa49af
MS
8950 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8951
154f592e
MS
89522011-03-04 Michael Snyder <msnyder@vmware.com>
8953
da3ecdc6
MS
8954 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8955
9cc89665
MS
8956 * symfile.c (simple_overlay_update): Check for null return value
8957 from lookup_minimal_symbol.
8958
154f592e
MS
8959 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8960
63ffa6ee
TJB
89612011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8962
8963 * eval.c (parse_and_eval_address_1): Remove function.
8964 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8965 instead of parse_and_eval_address_1.
8966 * value.h (parse_and_eval_address_1): Remove prototype.
8967
a17d146e
MS
89682011-03-04 Michael Snyder <msnyder@vmware.com>
8969
8970 * remote.c (putpkt_binary): Document that case stmt falls through.
8971
1a6a67de
TJB
89722011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8973
8974 * breakpointc (print_it_typical): Move NULL check from here...
8975 (print_bp_stop_message): ... to here.
8976
488919c4
MS
89772011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8978
8979 * breakpoint.c (enable_command): Use break instead of continue,
8980 and fill in a missing break.
8981 (disable_command): Ditto.
8982
1e182ce8
UW
89832011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8984
8985 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8986 (terminal_save_ours): Remove misleading comment.
8987 (inflow_inferior_data_cleanup): Free ttystate.
8988 (inflow_inferior_exit): Likewise.
8989 (copy_terminal_info): Copy ttystate.
8990
8991 * serial.c (serial_copy_tty_state): New function.
8992 * serial.h (serial_copy_tty_state): Add prototype.
8993 (struct serial_ops): Add copy_tty_state callback.
8994 * ser-base.c (ser_base_copy_tty_state): New function.
8995 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8996 * ser-go32.c (dos_copy_tty_state): New function.
8997 (dos_ops): Install copy_tty_state callback.
8998 * ser-mingw.c (_initialize_ser_windows): Likewise.
8999 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9000 * ser-unix.c (hardwire_copy_tty_state): New function.
9001 (_initialize_ser_hardwire): Install it.
9002
b2c5f112
MS
90032011-03-04 Michael Snyder <msnyder@vmware.com>
9004
2abae994
MS
9005 * breakpoint.c (create_breakpoint): Add missing break statement.
9006
7f5936f9
MS
9007 Reverting this patch:
9008 * infcall.c (call_function_by_hand): Add break statements for lint.
9009
b2c5f112
MS
9010 Reverting this patch:
9011 * cli/cli-script.c (script_from_file): Add break for lint.
9012
42b1321c
MS
90132011-03-04 Michael Snyder <msnyder@vmware.com>
9014
9015 * solib.c (reload_shared_libraries_1): Close memory leak.
9016
3e2a0cee
TT
90172011-03-03 Tom Tromey <tromey@redhat.com>
9018
9019 PR gdb/12538:
9020 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9021 DW_STRING is NULL.
9022
58397cb7
MS
90232011-03-03 Michael Snyder <msnyder@vmware.com>
9024
2e3fd767
MS
9025 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9026 fields of struct 'st' to zero.
9027
58397cb7
MS
9028 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9029 sal.pspace before calling set_current_source_symtab_and_line.
9030
ced54c8f
YQ
90312011-03-03 Yao Qi <yao@codesourcery.com>
9032
9033 * Makefile.in (configure-common): Remove. Let Makefile
9034 in dir common to rebuild itself.
9035 (common/Makefile): Likewise.
9036
3351ea09
JB
90372011-03-03 Joel Brobecker <brobecker@adacore.com>
9038
9039 * utils.c (parse_escape): Add i18n markup in error message.
9040
bf9f652a
YQ
90412011-03-03 Yao Qi <yao@codesourcery.com>
9042
9043 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9044 ARM_PC_REGNUM.
9045 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9046 (displaced_write_reg, displaced_read_reg): Likewise.
9047 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9048 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9049 (cleanup_branch): Replace magic number 14 and 15 with
9050 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9051
d42de051
MS
90522011-03-02 Michael Snyder <msnyder@vmware.com>
9053
240f9570
MS
9054 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9055
10dd8b54
MS
9056 * cli/cli-script.c (script_from_file): Add break for lint.
9057
b98bd911
MS
9058 * mdebugread.c (parse_partial_symbols): Fix indent.
9059
3494b66d
MS
9060 * target-descriptions.c (tdesc_gdb_type): No need to call
9061 xstrdup, callee saves a copy.
9062
daac021a
MS
9063 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9064
c38d16a7
MS
9065 * infcall.c (call_function_by_hand): Add break statements for lint.
9066
905b671b
MS
9067 * utils.c (parse_escape): Escape the escape char.
9068
f2eb0bc8 9069 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9070 PyList_Append fails.
9071 (gdbpy_inferiors): Error out if build_inferior_list fails.
9072
8c6a60d1
MS
9073 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9074 a function call.
9075
d42de051
MS
9076 * record.c (record_restore): Move printf to before error return.
9077
4db71c0b
YQ
90782011-03-02 Yao Qi <yao@codesourcery.com>
9079
9080 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9081 is_thumb and insn_size.
9082 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9083 on both ARM and Thumb mode.
9084 (arm_process_displaced_insn): Set is_thumb and insn_size.
9085 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9086 (arm_displaced_step_fixup): Likewise.
9087
a9dc8dcc
MS
90882011-03-01 Michael Snyder <msnyder@vmware.com>
9089
53624a93
MS
9090 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9091
77766669
MS
9092 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9093
62d5b8da
MS
9094 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9095
5e9e105f
MS
9096 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9097
dc19db01
MS
9098 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9099 with xmalloc.
9100
5ce64950
MS
9101 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9102 which shadows function parameter.
9103
a0aa2878
MS
9104 * tracepoint.c (create_tsv_from_upload): Superfluous call
9105 to xstrdup. Callee already calls xstrdup.
9106
e325fb69
MS
9107 * linespec.c (decode_line_1): Remove unnecessary null check.
9108
21cbba77
MS
9109 * tracepoint.c (scope_info): Fix mem leak, remove underused
9110 variable.
9111
63360adc
MS
9112 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9113 superfluous null check.
9114
18ea20ac 9115 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9116 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9117
d014929c
MS
9118 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9119
6e9130cf
MS
9120 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9121 be null.
9122
5f01dbc0
MS
9123 * linespec.c (decode_line_1): Check for null before dereference.
9124
d684ab85
MS
9125 * reverse.c (record_restore): Move null-check to before pointer
9126 dereference.
9127
bfffb7e3
MS
9128 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9129
a9dc8dcc
MS
9130 * objc-lang.c (selectors_info): Add explanitory comment.
9131 (classes_info): Ditto.
9132
478fd957
UW
91332011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9134
9135 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9136 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9137 versions of the trampoline. Handle Thumb vs. ARM addresses.
9138 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9139 (arm_linux_init_abi): Install it.
9140 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9141 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9142
0480cefa
MS
91432011-02-28 Michael Snyder <msnyder@vmware.com>
9144
ac50ab3b
MS
9145 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9146 a little bigger, to avoid possibility of an overflow.
9147
f63fbe86
MS
9148 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9149 buffers a little bigger, to avoid possibility of an overflow.
9150
9e91a352
MS
9151 * coffread.c (coff_getfilename): Add check to avoid overflow.
9152
f2eb0bc8 9153 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9154 avoid overflow.
9155 (classes_info): Error out on too long REGEXP.
9156
098ab512
MS
9157 * infrun.c (handle_inferior_event): Remove unused function call.
9158
bcbd1de9
MS
9159 * fork-child.c (fork_inferior): Remove ifdef'd code and
9160 unused variable.
9161
2e456570
MS
9162 * linux-thread-db.c (attach_thread): Discard unused value.
9163
14571dad
MS
9164 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9165
a9cbf802
MS
9166 * remote.c (remote_get_noisy_reply): Discard unused value.
9167 (remote_vcont_resume): Ditto.
9168 (remote_stop_ns): Ditto.
9169
5715d26e
MS
9170 * linespec.c (decode_objc): Delete unused variable.
9171
4a9bca80
MS
9172 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9173
f47fb265
MS
9174 * dwarf2read.c (add_partial_symbol): Discard unused values.
9175 (read_base_type): Delete unused variable.
9176
e81cff30
MS
9177 * dbxread.c (read_dbx_symtab): Discard unused value.
9178
262acaeb
MS
9179 * eval.c (evaluate_subexp_standard): Delete unused variable,
9180 and discard unused values.
9181
df983543
MS
9182 * infcmd.c (_initialize_infcmd): Discard unused values.
9183
89acf84d
MS
9184 * stabsread.c (rs6000_builtin_type): Missing break statement.
9185
ab8b8aca
MS
9186 * dbxread.c (process_one_symbol): Discard unused value.
9187
6b4511ab
MS
9188 * coffread.c (coff_end_symtab): Delete unused variable.
9189
e8e80198
MS
9190 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9191 (dwarf2_add_typedef): Delete unused variable.
9192 (read_namespace): Ditto.
9193 (dwarf_decode_macros): Ditto.
9194
976aa66e
MS
9195 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9196
5b92b49f
MS
9197 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9198
91e8df85
MS
9199 * p-valprint.c (pascal_val_print): Discard unused value.
9200
899500d6
MS
9201 * utils.c (nquery): Call va_end before return;
9202 (yquery): Ditto.
9203 (query): Ditto.
9204
0480cefa
MS
9205 * proc-service.c (ps_plog): Call va_end before return.
9206
fb6a3ed3
TT
92072011-02-28 Tom Tromey <tromey@redhat.com>
9208
9209 * python/python.c (gdbpy_value_cst): New global.
9210 (_initialize_python): Initialize it.
9211 * python/python-internal.h (gdbpy_value_cst): Declare.
9212 * python/py-value.c (convert_value_from_python): Use
9213 gdbpy_value_cst.
9214
c05202a1
MS
92152011-02-28 Michael Snyder <msnyder@vmware.com>
9216
e463f587
MS
9217 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9218
c38eea1a
MS
9219 * breakpoint.c (catch_syscall_completer): Free malloced list.
9220
3ef09ab5
MS
9221 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9222
8f9a01ee
MS
9223 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9224 (lval_func_check_synthetic_pointer): Ditto.
9225 (lval_func_free_closure): Fix use-after-free.
c05202a1 9226
477d0d57
TT
92272011-02-28 Tom Tromey <tromey@redhat.com>
9228
9229 * psymtab.c (expand_partial_symbol_tables): Use
9230 ALL_OBJFILE_PSYMTABS.
9231
20937029
JK
92322011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 * objc-lang.c (selectors_info): Error on too long REGEXP.
9235
907b7f4f
MS
92362011-02-28 Michael Snyder <msnyder@vmware.com>
9237
92e96192
MS
9238 * python/py-param.c (set_parameter_value): Add missing
9239 break statement.
9240
907b7f4f
MS
9241 * linux-record.c (record_linux_system_call): Add missing
9242 break statement.
9243
12c5a436
UW
92442011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9245
9246 * breakpoint.c (print_one_breakpoint_location): Remove unused
9247 argument PRINT_ADDRESS_BITS. Update callers.
9248 (print_one_breakpoint): Likewise.
9249
170b53b2
UW
92502011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9251
9252 * breakpoint.c (wrap_indent_at_field): New function.
9253 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9254 Allocate ui_stream locally instead of using STB argument.
9255 (print_one_breakpoint_location): Update call.
9256 * ui-out.c (ui_out_query_field): New function.
9257 * ui-out.h (ui_out_query_field): Add prototype.
9258
8ab1f94d
JB
92592011-02-28 Joel Brobecker <brobecker@adacore.com>
9260
9261 From Michael Snyder <msnyder@vmware.com>
9262 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9263
7d488639
MS
92642011-02-27 Michael Snyder <msnyder@vmware.com>
9265
ae179fba
MS
9266 * objc-lang.c (selectors_info): Prevent string overrun.
9267
086dbf66
MS
9268 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9269 error in strncpy.
9270
f2eb0bc8 9271 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9272 outer scope.
9273
7d488639
MS
9274 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9275 param with a local variable of the same name.
9276
3bd0f5ef
MS
92772011-02-27 Michael Snyder <msnyder@vmware.com>
9278
9279 * value.c (value_from_history_ref): New function.
9280 * value.h (value_from_history_ref): Export.
9281 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9282 to parse value history references.
9283 * cli/cli-utils.h (get_number_trailer): Update comment.
9284
92852011-02-27 Michael Snyder <msnyder@vmware.com>
9286
9287 * inferior.c (detach_inferior_command): Use get_number_or_range.
9288 (kill_inferior_command): Ditto.
9289 (remove_inferior_command): Ditto.
9290 (initialize_inferiors): Make command names plural.
9291 Update help strings.
9292
766062f6
MS
92932011-02-27 Michael Snyder <msnyder@vmware.com>
9294
9295 * darwin-nat-info.c: Fix comment typo.
9296 * dwarf2expr.h: Ditto.
9297 * fbsd-nat.c: Ditto.
9298 * fbsd-nat.h: Ditto.
9299 * frame-unwind.h: Ditto.
9300 * frame.h: Ditto.
9301 * hppa-hpux-tdep.c: Ditto.
9302 * i386-linux-nat.c: Ditto.
9303 * linux-nat.c: Ditto.
9304 * nbsd-nat.c: Ditto.
9305 * nbsd-nat.h: Ditto.
9306 * ppc-linux-tdep.c: Ditto.
9307 * serial.c: Ditto.
9308 * ui-file.h: Ditto.
9309 * tui/tui-winsource.c: Ditto.
9310
f2c4ead5
MS
93112011-02-26 Michael Snyder <msnyder@vmware.com>
9312
86b887df
MS
9313 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9314
66fd3b1e
MS
9315 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9316
8c814cdd
MS
9317 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9318 with a local variable of the same name.
9319
6d5e094a 9320 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9321 param with a local variable of the same name.
6d5e094a 9322 (i387_supply_xsave): Ditto.
e5b3d7d6 9323
5eee517d
MS
9324 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9325 that it does not shadow a function parameter.
9326
8fbf6b93
MS
9327 * i386-nat.c (i386_length_and_rw_bits): Document that case
9328 statement is meant to fall through.
9329
cb969d61
MS
9330 * expprint.c (dump_subexp_body_standard): Document that case
9331 statement is meant to fall through.
9332
f2c4ead5
MS
9333 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9334 dead if statement. Condition can't be false.
9335
b021a221
MS
93362011-02-25 Michael Snyder <msnyder@vmware.com>
9337
9338 * arm-tdep.c: Fix typos in comments.
9339 * bsd-uthread.c: Ditto.
9340 * completer.c: Ditto.
9341 * corelow.c: Ditto.
9342 * cp-namespace.c: Ditto.
9343 * cp-support.c: Ditto.
9344 * cris-tdep.c: Ditto.
9345 * dbxread.c: Ditto.
9346 * dwarf2read.c: Ditto.
9347 * frame.h: Ditto.
9348 * gdbtypes.h: Ditto.
9349 * inferior.h: Ditto.
9350 * mdebugread.c: Ditto.
9351 * mips-tdep.c: Ditto.
9352 * ppc-linux-nat.c: Ditto.
9353 * ppc-linux-tdep.c: Ditto.
9354 * printcmd.c: Ditto.
9355 * sol-thread.c: Ditto.
9356 * solib-frv.c: Ditto.
9357 * solist.h: Ditto.
9358 * sparc64-tdep.c: Ditto.
9359 * spu-tdep.c: Ditto.
9360 * stabsread.c: Ditto.
9361 * symfile.c: Ditto.
9362 * valops.c: Ditto.
9363 * varobj.c: Ditto.
9364 * vax-nat.c: Ditto.
9365 * python/py-block.c: Ditto.
9366 * python/py-symbol.c: Ditto.
9367 * python/py-symtab.c: Ditto.
9368 * python/py-value.c: Ditto.
9369 * tui/tui-win.c: Ditto.
9370
c82c0b55
MS
93712011-02-25 Michael Snyder <msnyder@vmware.com>
9372
9373 * inferior.c (print_inferior): Accept a string instead of an int
9374 for requested_inferiors, and use get_number_or_range to parse it.
9375 (info_inferiors_command): Pass args string to print_inferior.
9376 (initialize_inferiors): Change help string for info inferiors.
9377 * inferior.h (print_inferior): Export prototype change.
9378
ee00cd23
TT
93792011-02-25 Tom Tromey <tromey@redhat.com>
9380
9381 * common/ax.def (invalid2): Set to 0x31.
9382
0502ed8c
JK
93832011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9384
9385 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9386 L and plongest.
9387 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9388 use L and plongest.
9389 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9390
2c9de912
MS
93912011-02-24 Michael Snyder <msnyder@vmware.com>
9392
9393 * Makefile.in (clean): Make clean should remove generated files
9394 observer.h and observer.inc.
9395
a04b0428
JB
93962011-02-24 Joel Brobecker <brobecker@adacore.com>
9397
9398 Revert the following patch (not approved yet):
9399 2011-02-21 Hui Zhu <teawater@gmail.com>
9400 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9401 * ax-gdb.c (gen_printf_expr_callback): New function.
9402 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9403 * ax-general.c (ax_memcpy): New function.
9404 (ax_print): Handle "printf".
9405 (ax_reqs): Ditto.
9406 * ax.h (ax_memcpy): Forward declare.
9407 * common/ax.def (invalid2): Removed.
9408 (printf): New entry.
9409 * printcmd.c (printcmd.h): New include.
9410 (string_printf): New function.
9411 (ui_printf): Removed.
9412 (printf_command): Remove static. Call string_printf.
9413 (eval_command): Call string_printf.
9414 * printcmd.h: New file.
9415 * tracepoint.c (validate_actionline,
9416 encode_actions_1): handle printf_command.
9417
2b52013f
TT
94182011-02-23 Tom Tromey <tromey@redhat.com>
9419
9420 * ax-general.c (ax_pick): Add missing newline.
9421
e5a67952
MS
94222011-02-23 Michael Snyder <msnyder@vmware.com>
9423
9424 * breakpoint.c (breakpoint_1): Change first argument from an int
9425 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9426 breakpoints rather than just one. Use new function
e5a67952
MS
9427 'number_is_in_list' to implement.
9428 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9429 (watchpoints_info): Ditto.
9430 (tracepoints_info): Ditto.
9431 (maintenance_info_breakpoints): Ditto.
9432 (_initialize_breakpoint): Update help strings to reflect the fact
9433 that these functions can now take more than one argument.
9434 * cli/cli-utils.c (number_is_in_list): New function.
9435 * cli/cli-utils.h (number_is_in_list): Export.
9436
94372011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9438
9439 * memattr.c (mem_enable_command): Use get_number_or_range.
9440 (mem_disable_command): Ditto.
9441 (mem_delete_command): Ditto.
9442 (_initialize_mem): Tweak usage message to reflect multiple
9443 arguments.
9444
6e6fbe60
DE
94452011-02-22 Doug Evans <dje@google.com>
9446
9447 Add gdb.lookup_global_symbol python function.
9448 * NEWS: Add entry.
9449 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9450 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9451 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9452
79b97fa8
TT
94532011-02-22 Tom Tromey <tromey@redhat.com>
9454
9455 * language.c (language_class_name_from_physname): Rename
9456 'curr_language' argument to 'lang'; use in body.
9457
298f437a
MS
94582011-02-22 Michael Snyder <msnyder@vmware.com>
9459
9460 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9461
b7ea3126
PA
94622011-02-22 Pedro Alves <pedro@codesourcery.com>
9463
9464 * frame-unwind.h: Fix comment to mention the this frame, not the
9465 next.
9466
58ee6d60
TT
94672011-02-22 Tom Tromey <tromey@redhat.com>
9468
9469 * symfile.c (auto_solib_limit): Remove.
9470 * symfile.h (auto_solib_limit): Remove.
9471
36238dbc
JB
94722011-02-22 Joel Brobecker <brobecker@adacore.com>
9473
9474 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9475
aea5b279
MS
94762011-02-21 Michael Snyder <msnyder@vmware.com>
9477
9478 * gdbthread.h (print_thread_info): Change prototype.
9479 * thread.c (print_thread_info): Accept char* instead of int for
9480 requested_threads argument. Use new function number_is_in_list
9481 to determine which threads to list.
9482 (info_threads_command): Pass char* to print_thread_info.
9483 * cli/cli-utils.c (number_is_in_list): New function.
9484 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9485 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9486 print_thread_info.
9487 (print_one_inferior): Ditto.
9488 (mi_cmd_list_thread_groups): Ditto.
9489
8caa75ee
JK
94902011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9491
9492 * common/Makefile.in (CFLAGS): New.
9493 (COMPILE): Add $(CFLAGS).
9494
ea666128
TT
94952011-02-21 Tom Tromey <tromey@redhat.com>
9496
9497 * breakpoint.c (catch_syscall_command_1): Fix typo.
9498
e9cafbcc
TT
94992011-02-21 Tom Tromey <tromey@redhat.com>
9500
9501 * reverse.c: Include cli-utils.h.
9502 * printcmd.c: Include cli-utils.h.
9503 (string_printf): Use skip_spaces.
9504 * cli/cli-utils.h: New file.
9505 * cli/cli-utils.c: New file.
9506 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9507 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9508 * breakpoint.h (get_number, get_number_or_range): Move to
9509 cli-utils.h.
9510 * breakpoint.c: Include cli-utils.h.
9511 (get_number_trailer, get_number, get_number_or_range)
9512 (ep_skip_leading_whitespace): Move to cli-utils.c.
9513 (create_breakpoint_sal, find_condition_and_thread)
9514 (decode_static_tracepoint_spec, watch_command_1)
9515 (watch_maybe_just_location, ep_parse_optional_if_clause)
9516 (catch_fork_command_1, catch_exec_command_1)
9517 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9518 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9519 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9520 (HFILES_NO_SRCDIR): Add cli-utils.h.
9521 (cli-utils.o): New target.
9522
f67fd822
PM
95232011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9524
9525 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9526 before calling discard_all_inferiors.
9527
c9def01d
UW
95282011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9529
9530 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9531 (struct builtin_opencl_type): Remove.
9532 (builtin_opencl_type): Change return type to "struct type **".
9533 (lookup_opencl_vector_type): Update caller.
9534 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9535 (build_opencl_types): Install plain array of "struct type *"
9536 instead of "struct builtin_opencl_type".
9537
e3039479
UW
95382011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9539 Ulrich Weigand <uweigand@de.ibm.com>
9540
9541 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9542 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9543 (struct arm_linux_hwbp_cap): New type.
9544 (arm_linux_get_hwbp_cap): New function.
9545 (arm_linux_get_hw_breakpoint_count): Likewise.
9546 (arm_linux_get_hw_watchpoint_count): Likewise.
9547 (arm_linux_can_use_hw_breakpoint): Likewise.
9548 (arm_hwbp_type): New type.
9549 (arm_hwbp_control_t): Likewise.
9550 (struct arm_linux_hw_breakpoint): Likewise.
9551 (struct arm_linux_thread_points): Likewise.
9552 (arm_threads): New global variable.
9553 (arm_linux_find_breakpoints_by_tid): New function.
9554 (arm_hwbp_control_initialize): Likewise.
9555 (arm_hwbp_control_is_enabled): Likewise.
9556 (arm_hwbp_control_disable): Likewise.
9557 (arm_linux_hw_breakpoint_initialize): Likewise.
9558 (arm_linux_get_hwbp_type): Likewise.
9559 (arm_linux_hw_watchpoint_initialize): Likewise.
9560 (arm_linux_hw_breakpoint_equal): Likewise.
9561 (arm_linux_insert_hw_breakpoint1): Likewise.
9562 (arm_linux_remove_hw_breakpoint1): Likewise.
9563 (arm_linux_insert_hw_breakpoint): Likewise.
9564 (arm_linux_remove_hw_breakpoint): Likewise.
9565 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9566 (arm_linux_insert_watchpoint): Likewise.
9567 (arm_linux_remove_watchpoint): Likewise.
9568 (arm_linux_stopped_data_address): Likewise.
9569 (arm_linux_stopped_by_watchpoint): Likewise.
9570 (arm_linux_watchpoint_addr_within_range): Likewise.
9571 (arm_linux_new_thread): Likewise.
9572 (arm_linux_thread_exit): Likewise.
9573 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9574 related target callbacks. Register arm_linux_new_thread and
9575 arm_linux_thread_exit.
9576 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9577 * arm-tdep.c (arm_pc_is_thumb): Make global.
9578 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9579
b5db5dfc
UW
95802011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9581
9582 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9583 per-frame locations while within a function epilogue.
9584
e25b2cfa
PM
95852011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9586
9587 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9588 to GNU coding standards.
9589
4af53f97
PM
95902011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9591
9592 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9593 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9594 (ser_windows_close): Only call CancelIo if function exists.
9595 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9596 to check for existence of CancelIo function in kernel32 DLL.
9597
d0e92d82
HZ
95982011-02-21 Hui Zhu <teawater@gmail.com>
9599
9600 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9601 * ax-gdb.c (gen_printf_expr_callback): New function.
9602 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9603 * ax-general.c (ax_memcpy): New function.
9604 (ax_print): Handle "printf".
9605 (ax_reqs): Ditto.
9606 * ax.h (ax_memcpy): Forward declare.
9607 * common/ax.def (invalid2): Removed.
9608 (printf): New entry.
9609 * printcmd.c (printcmd.h): New include.
9610 (string_printf): New function.
9611 (ui_printf): Removed.
9612 (printf_command): Remove static. Call string_printf.
9613 (eval_command): Call string_printf.
9614 * printcmd.h: New file.
9615 * tracepoint.c (validate_actionline,
9616 encode_actions_1): handle printf_command.
9617
7d357efd
MS
96182011-02-19 Michael Snyder <msnyder@vmware.com>
9619
9620 * reverse.c (delete_one_bookmark): Argument is now bookmark
9621 id rather than pointer to bookmark struct.
9622 (delete_bookmark_command): Use get_number_or_range.
9623 (goto_bookmark_command): Parse with get_number instead of strtoul.
9624 (bookmark_1): New function. Print info for one bookmark.
9625 (bookmarks_info): Use get_number_or_range and bookmark_1.
9626
7a45ebd7
MS
96272011-02-18 Michael Snyder <msnyder@vmware.com>
9628
f2eb0bc8 9629 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9630 get_number_or_range.
65ebfb52 9631 (thread_apply_command): Ditto.
7a45ebd7 9632
94d5e490
TT
96332011-02-18 Tom Tromey <tromey@redhat.com>
9634
9635 * common/ax.def: New file.
9636 * ax.h (enum agent_op): Use ax.def.
9637 * ax-general.c (aop_map): Use ax.def.
9638
c7f96d2b
TT
96392011-02-18 Tom Tromey <tromey@redhat.com>
9640
9641 * ax-general.c (aop_map): Add pick and rot.
9642 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9643 <DW_OP_rot>: Implement.
9644 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9645 (ax_pick): Declare.
9646 * ax-general.c (ax_pick): New function.
9647
66694b75
TT
96482011-02-18 Tom Tromey <tromey@redhat.com>
9649
9650 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9651
eeaafae2
JK
96522011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9653 Tom Tromey <tromey@redhat.com>
9654
9655 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9656 make_symbol_overload_list_block with NULL BLOCK.
9657 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9658
3c3fe74c
PA
96592011-02-18 Pedro Alves <pedro@codesourcery.com>
9660
9661 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9662 * breakpoint.h (get_number_or_range): Declare.
9663 * printcmd.c (ALL_DISPLAYS): Declare.
9664 (delete_display): Reimplement taking a display pointer.
9665 (undisplay_command): Accept a range of displays to delete, using
9666 get_number_or_range.
9667
13163d80
PM
96682011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9669
9670 * c-valprint.c (c_val_print): Add embedded_offset to address
9671 for arrays of unspecified length.
9672 * p-valprint.c (pascal_val_print): Likewise.
9673
b434a28f
YQ
96742011-02-18 Yao Qi <yao@codesourcery.com>
9675
9676 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9677 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9678 (thumb_process_displaced_insn): New.
9679 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9680 call to arm_process_displaced_insn.
9681 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9682
9f6f94ff
TT
96832011-02-17 Tom Tromey <tromey@redhat.com>
9684
9685 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9686 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9687 compile_dwarf_to_ax. No longer static. Call
9688 dwarf2_compile_cfa_to_ax.
9689 (locexpr_tracepoint_var_ref): Update.
9690 (loclist_tracepoint_var_ref): Update.
9691 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9692 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9693 argument; add 'gdbarch' and 'pc'.
9694 (dwarf2_compile_cfa_to_ax): New function.
9695 (dwarf2_frame_cache): Update.
9696
e67ad678
JB
96972011-02-17 Joel Brobecker <brobecker@adacore.com>
9698
9699 * ada-lang.c (ada_type_of_array): Fix the size of the array
9700 in the case of an unconstrained packed array.
9701
946ebb0d
YQ
97022011-02-17 Yao Qi <yao@codesourcery.com>
9703
9704 * common/Makefile.in: Add more targets for make.
9705
1ba1b353
TT
97062011-02-16 Tom Tromey <tromey@redhat.com>
9707
9708 * dwarf2loc.c (unimplemented): Fix typo.
9709
b1bfef65
TT
97102011-02-16 Tom Tromey <tromey@redhat.com>
9711
9712 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9713 (compile_dwarf_to_ax) <default>: Use unimplemented.
9714 <DW_OP_deref>: Update.
9715 (disassemble_dwarf_expression): Update.
9716 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9717 (decode_locdesc): Update.
9718 * dwarf2expr.h (dwarf_stack_op_name): Update.
9719
5f1e6f19
TT
97202011-02-16 Tom Tromey <tromey@redhat.com>
9721
9722 * ax.h (struct aop_map) <name>: Now const.
9723
a0c78a73
PA
97242011-02-16 Tom Tromey <tromey@redhat.com>
9725
9726 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9727 than axs_rvalue.
9728
946ebb0d 97292011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9730
9731 * infrun.c (get_displaced_step_closure_by_addr): New.
9732 * inferior.h: Declare it.
9733 * arm-tdep.c: (arm_pc_is_thumb): Call
9734 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9735 returns non-NULL.
9736
08807d5a
PA
97372011-02-16 Pedro Alves <pedro@codesourcery.com>
9738 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 gdb/
9741 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9742
29976f3f
PA
97432011-02-16 Pedro Alves <pedro@codesourcery.com>
9744 Jan Kratochvil <jan.kratochvil@redhat.com>
9745
9746 * value.c (value_contents_copy_raw): Extend describing comment.
9747 Assert that the destination contents we're overwriting are wholly
9748 available.
fb68ae73 9749 (value_contents_copy): Extend describing comment.
29976f3f 9750
cd24cfaa
PA
97512011-02-16 Pedro Alves <pedro@codesourcery.com>
9752 Jan Kratochvil <jan.kratochvil@redhat.com>
9753
9754 * value.c (value_available_contents_eq): Remove redundant local
9755 variables. Fix available contents comparision.
9756 * value.h (value_available_contents_eq): Extend describing
9757 comment.
9758
60bbf338
YQ
97592011-02-16 Yao Qi <yao@codesourcery.com>
9760
9761 * thread.c (info_threads_command): Add missing i18n markup and remove
9762 trailing newline.
9763
17450429
PP
97642011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9765
9766 * breakpoint.c (longjmp_names): New variable.
9767 (struct breakpoint_objfile_data): New type.
9768 (breakpoint_objfile_key): New variable.
9769 (msym_not_found): New variable.
9770 (msym_not_found_p): New predicate.
9771 (get_breakpoint_objfile_data): New function.
9772 (create_overlay_event_breakpoint): Check per-objfile cache for
9773 symbols first.
9774 (create_longjmp_master_breakpoint): Likewise.
9775 (create_std_terminate_master_breakpoint): Likewise.
9776 (create_exception_master_breakpoint): Likewise.
9777 (_initialize_breakpoint): Register per-objfile data key.
9778
af02033e
PP
97792011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9780
9781 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9782 parameter value.
9783 (create_longjmp_master_breakpoint): Loop over longjmp names.
9784 (create_std_terminate_master_breakpoint): Const-propagate parameter
9785 value.
9786 (update_breakpoints_after_exec): Adjust.
9787 (breakpoint_re_set): Adjust.
9788
60f98dde
MS
97892011-02-15 Michael Snyder <msnyder@vmware.com>
9790
cdf99611
MS
9791 * thread.c (info_threads_command): Process arg as thread id,
9792 or list of thread ids.
9793 (thread_find_command): New command.
9794 (_initialize_thread): Document argument for info threads.
9795 Document 'thread find' command.
9796 * NEWS: Document new command "thread find".
60f98dde 9797
0feedb2c
JK
97982011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9799
9800 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9801 * aclocal.m4: Regenerated with aclocal-1.11.1.
9802 * common/configure: Regenerate with autoconf-2.64.
9803
648cd113
KW
98042011-02-15 Ken Werner <ken.werner@de.ibm.com>
9805
9806 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9807 bool data type to a size of one byte.
9808
5657161f
PA
98092011-02-15 Pedro Alves <pedro@codesourcery.com>
9810 Jan Kratochvil <jan.kratochvil@redhat.com>
9811
9812 * target.c (memory_xfer_live_readonly_partial): Document where to
9813 look for interface description.
9814
494e194e
YQ
98152011-02-15 Yao Qi <yao@codesourcery.com>
9816
9817 PR tdep/12352
9818 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9819 order to store PC value on stack instead of text section.
9820
d9492458
TJB
98212011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9822
9823 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9824 the EFP register set size.
9825 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9826 data from the VMX register.
9827 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9828 and write data from/to the VMX register.
9829
cdf99611
MS
98302011-02-14 Michael Snyder <msnyder@vmware.com>
9831
9832 * command.h (enum command_class): New class 'no_set_class', for
9833 "show" commands without a corresponding "set" command.
9834 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9835 * copying.c (_initialize_copying): Ditto for "show copying" and
9836 "show warranty".
9837 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9838 "show version".
9839 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9840 which there is no corresponding "set" command (eg. "show copying").
9841
424447ee
PA
98422011-02-14 Pedro Alves <pedro@codesourcery.com>
9843 Jan Kratochvil <jan.kratochvil@redhat.com>
9844
9845 * exec.c (section_table_available_memory): Change `len' parameter
9846 type to ULONGEST.
9847 * exec.h (section_table_available_memory): Ditto.
9848 * value.h (read_value_memory): Rename the `offset' parameter to
9849 `embedded_offset'.
9850
c0f61f9c 98512011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9852 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9853
9854 * memrange.c (compare_mem_ranges): Mention sort order in
9855 describing comment.
9856 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9857 * tracepoint.c (traceframe_available_memory): Extend comment to
9858 mention what happens to RESULT when the target does not support
9859 the query.
9860
6bfc80c7
PA
98612011-02-14 Pedro Alves <pedro@codesourcery.com>
9862 Jan Kratochvil <jan.kratochvil@redhat.com>
9863
9864 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9865 range.
9866
e7303042
PA
98672011-02-14 Pedro Alves <pedro@codesourcery.com>
9868
9869 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9870 No longer handle NULL values.
9871
8af8e3bc
PA
98722011-02-14 Pedro Alves <pedro@codesourcery.com>
9873
9874 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9875 * value.c: Include "exceptions.h".
9876 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9877 generic error.
9878 * cp-abi.c: Include gdb_assert.h.
9879 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9880 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9881 errors.
9882 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9883 parameters. No longer returns -1 on error.
9884 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9885 `val' parameters.
9886 * cp-valprint.c: Include exceptions.h.
9887 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9888 the baseclass_offset. Handle unavailable base classes. Use
9889 val_print_invalid_address.
9890 * p-valprint.c: Include exceptions.h.
9891 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9892 when fetching the baseclass_offset. No longer expect
9893 baseclass_offset returning -1. Handle unavailable base classes.
9894 Use val_print_invalid_address.
9895 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9896 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9897 `embedded_offset' and `val' parameters. Adjust.
9898 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9899 parameter, and change its type to gdb_byte pointer. Add
9900 `embedded_offset' and `val' parameters. Adjust. No longer expect
9901 baseclass_offset returning -1.
9902 (value_dynamic_cast): Use value_contents_for_printing rather than
9903 value_contents. Adjust.
9904 (search_struct_field): No longer expect baseclass_offset returning
9905 -1.
9906 (search_struct_method): If reading memory from the target is
9907 necessary, wrap it in a new value to pass to baseclass_offset. No
9908 longer expect baseclass_offset returning -1.
9909 (find_method_list): No longer expect baseclass_offset returning
9910 -1. Use value_contents_for_printing rather than value_contents.
9911 * valprint.c (val_print_invalid_address): New function.
9912 * valprint.h (val_print_invalid_address): Declare.
9913 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9914 and `val' parameters. No longer expect baseclass_offset returning
9915 -1. Adjust.
9916 * gnu-v2-abi.c: Include "exceptions.h".
9917 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9918 parameters. Handle unavailable memory. Recurse through
9919 gnuv2_baseclass_offset directly, rather than through
9920 baseclass_offset. No longer returns -1 on not found, instead
9921 throw an error.
9922 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9923 `val' parameters. Adjust.
9924
1b28d0b3
PA
99252011-02-14 Pedro Alves <pedro@codesourcery.com>
9926
9927 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9928 almost but not quite adjacent.
9929
ec0a52e1
PA
99302011-02-14 Pedro Alves <pedro@codesourcery.com>
9931
9932 * value.h (value_entirely_available): Declare.
9933 * value.c (value_entirely_available): New function.
9934 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9935 real type if the pointer is unavailable.
9936
24e6bcee
PA
99372011-02-14 Pedro Alves <pedro@codesourcery.com>
9938
9939 * valops.c (value_repeat): Use read_value_memory instead of
9940 read_memory.
9941
39d37385
PA
99422011-02-14 Pedro Alves <pedro@codesourcery.com>
9943
9944 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9945 * value.c (value_contents_copy_raw, value_contents_copy): New
9946 functions.
9947 (value_primitive_field): Use value_contents_copy_raw instead of
9948 memcpy.
9949 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9950 memcpy.
9951 (value_array, value_slice): Ditto.
9952 * valarith.c (value_subscripted_rvalue): Use
9953 value_contents_copy_raw instead of memcpy.
9954
a3d34bf4
PA
99552011-02-14 Pedro Alves <pedro@codesourcery.com>
9956
9957 <unavailable> references.
9958
9959 * valops.c (get_value_at): Use value_from_contents_and_address,
9960 avoiding read_memory.
9961
9fc6d940
PA
99622011-02-14 Pedro Alves <pedro@codesourcery.com>
9963
9964 * c-valprint.c (c_val_print): Print a string with unavailable
9965 contents as an array.
9966
5467c6c8
PA
99672011-02-14 Pedro Alves <pedro@codesourcery.com>
9968
9969 * value.h (unpack_bits_as_long): Delete declaration.
9970 (unpack_value_bits_as_long): Declare.
9971 (unpack_value_field_as_long): Declare.
9972 (value_field_bitfield): Declare.
9973 * value.c (unpack_bits_as_long): Rename to...
9974 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9975 value parameters. Return the extracted result in a new output
9976 parameter. If the value contents are unavailable, return false,
9977 otherwise return true.
9978 (unpack_value_bits_as_long): New.
9979 (unpack_field_as_long): Rename to...
9980 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9981 Add embedded_offset and value parameters. Return the extracted
9982 result in a new output parameter. If the value contents are
9983 unavailable, return false, otherwise return true.
9984 (unpack_value_field_as_long): New.
9985 (unpack_field_as_long_1): New.
9986 (unpack_field_as_long): Reimplement as wrapper around
9987 unpack_value_field_as_long_1.
9988 (value_field_bitfield): New function.
9989 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9990 unpack_value_bits_as_long. Mark the value as unavailable, if it
9991 is unavailable.
9992 * jv-valprint.c (java_print_value_fields): Use
9993 value_field_bitfield.
9994 * p-valprint.c (pascal_object_print_value_fields): Use
9995 value_field_bitfield.
9996 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9997
3158c6ed
PA
99982011-02-14 Pedro Alves <pedro@codesourcery.com>
9999
10000 * value.c (get_internalvar_integer): Also return the int value of
10001 TYPE_CODE_INT INTERNALVAR_VALUE values.
10002 (set_internalvar): Don't special case TYPE_CODE_INT.
10003
9fbdca0d
PA
100042011-02-14 Pedro Alves <pedro@codesourcery.com>
10005
10006 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10007 INTERNALVAR_POINTER.
10008 <pointer>: Delete.
10009 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10010 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10011 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10012
c8c1c22f
PA
100132011-02-14 Pedro Alves <pedro@codesourcery.com>
10014
10015 * value.h (value_available_contents_eq): Declare.
10016 * value.c (find_first_range_overlap): New function.
10017 (value_available_contents_eq): New function.
10018 * valprint.c (val_print_array_elements): Use
10019 value_available_contents_eq.
10020 * ada-valprint.c (val_print_packed_array_elements): Use
10021 value_available_contents_eq.
10022 * jv-valprint.c (java_value_print): Use
10023 value_available_contents_eq.
10024
e6e4e701
PA
100252011-02-14 Pedro Alves <pedro@codesourcery.com>
10026
10027 * target.c (target_read_live_memory): New function.
10028 (memory_xfer_live_readonly_partial): New.
10029 (memory_xfer_partial): If reading from a traceframe, fallback to
10030 reading unavailable read-only memory from read-only regions of
10031 live target memory.
10032 * tracepoint.c (disconnect_tracing): Adjust.
10033 (set_current_traceframe): New, factored out from
10034 set_traceframe_number.
10035 (set_traceframe_number): Reimplement to only change the traceframe
10036 number on the GDB side.
10037 (do_restore_current_traceframe_cleanup): Adjust.
10038 (make_cleanup_restore_traceframe_number): New.
10039 (cur_traceframe_number): New global.
10040 (tfile_open): Set cur_traceframe_number to no traceframe.
10041 (set_tfile_traceframe): New function.
10042 (tfile_trace_find): If looking up a traceframe using any method
10043 other than by number, make sure the current tfile traceframe
10044 matches gdb's current traceframe. Update the current tfile
10045 traceframe if the lookup succeeded.
10046 (tfile_fetch_registers, tfile_xfer_partial)
10047 (tfile_get_trace_state_variable_value): Make sure the remote
10048 traceframe matches gdb's current traceframe.
10049 * remote.c (remote_traceframe_number): New global.
10050 (remote_open_1): Set it to -1.
10051 (set_remote_traceframe): New function.
10052 (remote_fetch_registers, remote_store_registers)
10053 (remote_xfer_memory, remote_xfer_partial)
10054 (remote_get_trace_state_variable_value): Make sure the remote
10055 traceframe matches gdb's current traceframe.
10056 (remote_trace_find): If looking up a traceframe using any method
10057 other than by number, make sure the current remote traceframe
10058 matches gdb's current traceframe. Update the current remote
10059 traceframe if the lookup succeeded.
10060 * infrun.c (fetch_inferior_event): Adjust.
10061 * tracepoint.h (set_current_traceframe): Declare.
10062 (get_traceframe_number, set_traceframe_number): Add describing
10063 comments.
10064
e6ca34fc
PA
100652011-02-14 Pedro Alves <pedro@codesourcery.com>
10066
10067 Mark pieces of values as unavailable if the corresponding memory
10068 is unavailable.
10069
10070 * valops.c: Include tracepoint.h.
10071 (value_fetch_lazy): Use read_value_memory.
10072 (read_value_memory): New.
10073 * value.h (read_value_memory): Declare.
10074 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10075 * exec.c (section_table_available_memory): New function.
10076 * exec.h (section_table_available_memory): Declare.
10077
2a7498d8
PA
100782011-02-14 Pedro Alves <pedro@codesourcery.com>
10079
10080 * Makefile.in (SFILES): Add memrange.c.
10081 (HFILES_NO_SRCDIR): Add memrange.h.
10082 (COMMON_OBS): Add memrange.o.
10083 * memrange.c: New file.
10084 * memrange.h: New file.
10085 * tracepoint.c: Include memrange.h.
10086 (struct mem_range): Delete.
10087 (mem_range_s): Delete.
10088 (traceframe_available_memory): New function.
10089 * tracepoint.h (traceframe_available_memory): Declare.
10090
b3b9301e
PA
100912011-02-14 Pedro Alves <pedro@codesourcery.com>
10092
10093 * target.h (struct traceframe_info): Forward declare.
10094 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10095 (struct target_ops) <to_traceframe_info>: New field.
10096 (target_traceframe_info): New.
10097 * target.c (update_current_target): Inherit and default
10098 to_traceframe_info.
10099 * remote.c (PACKET_qXfer_traceframe_info): New.
10100 (remote_protocol_features): Register qXfer:traceframe-info:read.
10101 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10102 (remote_traceframe_info): New.
10103 (init_remote_ops): Install it.
10104 (_initialize_remote): Install "set/show remote traceframe-info"
10105 commands.
10106 * tracepoint.h (parse_traceframe_info): Declare.
10107 * tracepoint.c (struct mem_range): New.
10108 (mem_range_s): New typedef.
10109 (struct traceframe_info): New.
10110 (traceframe_info): New global.
10111 (free_traceframe_info): New function.
10112 (clear_traceframe_info): New function.
10113 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10114 info.
10115 (build_traceframe_info): New function.
10116 (tfile_traceframe_info): New function.
10117 (init_tfile_ops): Install tfile_traceframe_info.
10118 (traceframe_info_start_memory, free_result): New functions.
10119 (memory_attributes, traceframe_info_elements): New globals.
10120 (parse_traceframe_info, get_traceframe_info): New functions.
10121 * features/traceframe-info.dtd: New file.
10122 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10123
4e07d55f
PA
101242011-02-14 Pedro Alves <pedro@codesourcery.com>
10125
10126 Base support for <unavailable> value contents.
10127
4e07d55f
PA
10128 * value.h (value_bytes_available): Declare.
10129 (mark_value_bytes_unavailable): Declare.
10130 * value.c (struct range): New struct.
10131 (range_s): New typedef.
10132 (ranges_overlap): New function.
10133 (range_lessthan): New function.
10134 (ranges_contain_p): New function.
10135 (struct value) <unavailable>: New field.
10136 (value_bytes_available): New function.
10137 (mark_value_bytes_unavailable): New function.
10138 (require_not_optimized_out): Constify parameter.
10139 (require_available): New function.
10140 (value_contents_all, value_contents): Require all bytes be
10141 available.
10142 (value_free): Free `unavailable'.
10143 (value_copy): Copy `unavailable'.
10144 * valprint.h (val_print_unavailable): Declare.
10145 * valprint.c (valprint_check_validity): Rename `offset' parameter
10146 to `embedded_offset'. If printing a scalar, check whether the
10147 value chunk is available.
10148 (val_print_unavailable): New.
10149 (val_print_scalar_formatted): Check whether the value is
10150 available.
10151 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10152 pretty-printing unavailable values.
10153
bc9a5551
JK
101542011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10155
10156 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10157 * c-typeprint.c (c_type_print_args): Update the function comment. New
10158 variable param_type, initialize it. Remove const/volatile qualifiers
10159 for language_cplus and !show_artificial. Use param_type.
10160
93b55aa1
JK
101612011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10162
10163 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10164 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10165 * symtab.h (struct symtab) <next>: Comment extension.
10166
181d9476
YQ
101672011-02-12 Yao Qi <yao@codesourcery.com>
10168
10169 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10170
b708a5c7
JK
101712011-02-11 Yao Qi <yao@codesourcery.com>
10172
10173 * common/Makefile.in: Add copyright header.
10174
c5187ac6
PA
101752011-02-11 Pedro Alves <pedro@codesourcery.com>
10176
10177 * infrun.c (proceed): Move switching out and in of tfind mode from
10178 here ...
10179 (fetch_inferior_event): ... to here.
10180
4f3e6fb7
YQ
101812011-02-11 Yao Qi <yao@codesourcery.com>
10182
10183 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10184 libcommon.a.
10185 * configure.ac: Add common to sub dir.
10186 * configure: Regenerate.
10187
b708a5c7
JK
101882011-02-11 Yao Qi <yao@codesourcery.com>
10189
10190 Build libcommon.a.
10191
10192 * common/Makefile.in: New.
10193 * common/configure.ac: New.
10194 * common/aclocal.m4: New.
10195 * common/configure: Generate.
10196
2287cc7e
PA
101972011-02-10 Pedro Alves <pedro@codesourcery.com>
10198
10199 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10200 side of the parenthesis.
10201
10202 Merge from GCC:
10203 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10204 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10205
fd62cb89
MS
102062011-02-08 Michael Snyder <msnyder@vmware.com>
10207
10208 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10209
56d2815c
JK
102102011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10211
10212 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10213 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10214 psubd and paddd.
10215
4f7d61a8
JK
102162011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10217
10218 PR 12361.
10219 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10220 phsubsw.
10221 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10222 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10223
54fcddd0
UW
102242011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10225
10226 * dwarf2read.c (read_subroutine_type): Set special calling
10227 convention flag for functions compiled by IBM XL C for OpenCL.
10228 * ppc-sysv-tdep.c: Include "dwarf2.h"
10229 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10230 calling convention.
10231 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10232 IBM OpenCL vector types calling convention.
10233 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10234 (ppc_sysv_abi_broken_return_value): Likewise.
10235 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10236 types calling convention.
10237 (ppc64_sysv_abi_return_value): Likewise.
10238 * spu-tdep.c: Include "dwarf2.h"
10239 (spu_return_value): Implement IBM OpenCL vector types calling
10240 convention.
10241
d6dafb7c
UW
102422011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10243
10244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10245 correct ABI for AltiVec vector arguments.
10246
32b72a42
PA
102472011-02-07 Pedro Alves <pedro@codesourcery.com>
10248
10249 * valprint.c (val_print): Extend comment.
10250 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10251 interface explanation to val_print.
10252 (ada_val_print_array): Adjust comment to current interface.
10253 (print_field_values): Adjust comment to current interface.
10254 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10255 explanation to val_print.
10256 * f-valprint.c (f_val_print): Ditto.
10257 * jv-valprint.c (java_val_print): Ditto.
10258 * m2-valprint.c (m2_val_print): Ditto.
10259 * p-valprint.c (pascal_val_print): Ditto.
10260
9998af43
TJB
102612011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10262
10263 * breakpoint.c (parse_breakpoint_sals): Fix description.
10264
505500db 102652011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10266 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10267
10268 * python/py-inferior.c (python_on_normal_stop): New function.
10269 (python_on_resume): New function.
10270 (python_inferior_exit): New function.
10271 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10272 inferior_exit observers.
10273 * python/py-evtregistry.c: New file.
10274 * python/py-threadevent.c : New file.
10275 * python/py-event.c: New file.
10276 * python/py-evts.c: New file.
10277 * python/py-continueevent.c: New file.
10278 * python/py-bpevent.c: New file.
10279 * python/py-signalevent.c: New file.
10280 * python/py-exetiedevent.c: New file.
10281 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10282 Move struct breakpoint_object from here...
10283 * python/python-internal.h: ... to here.
10284 * python/py-event.h: New file.
10285 * python/py-events.h: New file.
10286 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10287 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10288 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10289 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10290 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10291 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10292 Add build rules for all the above.
10293
9e0ac564
TT
102942011-02-04 Tom Tromey <tromey@redhat.com>
10295
10296 * dwarf2read.c (dwarf2_section_empty_p): New function.
10297 (dwarf2_read_section): Use dwarf2_section_empty_p.
10298 (dwarf2_section_size): New function.
10299 (dwarf2_get_section_info): Unconditionally read section.
10300 (dwarf2_read_index): Use dwarf2_section_empty_p.
10301 (partial_read_comp_unit_head): Use dwarf2_section_size.
10302 (dwarf2_symbol_mark_computed): Likewise.
10303
eee5b35e
DD
103042011-02-04 David Daney <ddaney@caviumnetworks.com>
10305
10306 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10307
385203ed
DD
103082011-02-04 David Daney <ddaney@caviumnetworks.com>
10309
10310 * mips-linux-tdep.c: Include xml-syscall.h.
10311 (mips_linux_get_syscall_number): New function.
10312 (mips_linux_init_abi): Add calls to
10313 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10314 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10315 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10316 * syscalls/mips-n32-linux.xml: New file.
10317 * syscalls/mips-n64-linux.xml: New file.
10318 * syscalls/mips-o32-linux.xml: New file.
10319
9277c30c
UW
103202011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10321
10322 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10323 Complain about inverted range entries.
10324 (dwarf2_record_block_ranges): Likewise.
10325
a3be7890
TJB
103262011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10327
10328 Fix some typos.
10329 * breakpoint.c (update_watchpoint): Fix name of the
10330 update_global_location_list function.
10331 (print_one_breakpoint): Fix typo.
10332 (_initialize_breakpoint): Remove extra space in hbreak help
10333 string.
10334 * breakpoint.h (struct bp_location) <length>: Fix field
10335 description.
10336
041274d8
PA
103372011-02-04 Pedro Alves <pedro@codesourcery.com>
10338
10339 * regcache.c (registers_changed_ptid): Don't explictly always
10340 clear `current_regcache'. Only clear current_thread_ptid and
10341 current_thread_arch when PTID matches. Only reinit the frame
10342 cache if PTID matches the current inferior_ptid. Move alloca(0)
10343 call to ...
10344 (registers_changed): ... here.
10345
c1c2ab58
UW
103462011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10347
10348 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10349 starts with __stack_chk_guard as stack guard symbol.
10350
9011945e
AB
103512011-02-03 Andrew Burgess <aburgess@broadcom.com>
10352
10353 * disasm.c (compare_lines): Handle the end of sequence markers
10354 within the line table to better support disassembling over
10355 compilation unit boundaries.
10356
e0634ccf
UW
103572011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10358
10359 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10360 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10361 implementation even if no symbols are available.
10362 (thumb_analyze_prologue): Update call to skip_prologue_function.
10363 (arm_analyze_prologue): Likewise.
10364
0e9e9abd
UW
103652011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10366
10367 * arm-tdep.c: Include "observer.h".
10368 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10369 (arm_exidx_data_key): New static variable.
10370 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10371 (struct arm_exidx_data): Likewise.
10372 (arm_exidx_data_free): New function.
10373 (arm_compare_exidx_entries): Likewise.
10374 (arm_obj_section_from_vma): Likewise.
10375 (arm_exidx_new_objfile): Likewise.
10376 (arm_find_exidx_entry): Likewise.
10377 (arm_exidx_fill_cache): Likewise.
10378 (arm_exidx_unwind_sniffer): Likewise.
10379 (arm_exidx_unwind): New global variable.
10380 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10381 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10382 observer. Register arm_exidx_data_key as objfile data.
10383
2e9e421f
UW
103842011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10385
10386 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10387 due to accessing uninitialized variable. Fix indentation.
10388
580688f3
PA
103892011-02-02 Pedro Alves <pedro@codesourcery.com>
10390
10391 * c-valprint.c (c_value_print): When doing virtual base pointer
10392 adjustment, create a new value with adjusted contents rather than
10393 changing the contents of the value being printed (and getting it
10394 wrong).
10395
3d2c1d41
PA
103962011-02-02 Pedro Alves <pedro@codesourcery.com>
10397
10398 * xml-support.c (xml_find_attribute): New.
10399 (xinclude_start_include): Use it.
10400 * xml-support.h (xml_find_attribute): Declare.
10401 * memory-map.c (memory_map_start_memory)
10402 (memory_map_start_property): Use xml_find_attribute.
10403 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10404 xml_find_attribute.
10405 * remote.c (start_thread): Use xml_find_attribute.
10406 * solib-target.c (library_list_start_segment)
10407 (library_list_start_section, library_list_start_library)
10408 (library_list_start_list): Use xml_find_attribute.
10409 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10410 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10411 (tdesc_start_field): Use xml_find_attribute.
10412
0af3e2db
UW
104132011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10414
10415 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10416 (BUILD_OCL_VTYPES): Update.
10417
c1039e3c
JB
104182011-02-02 Joel Brobecker <brobecker@adacore.com>
10419
10420 * configure.ac: Work around non-GNU sed limitation when computing
10421 python version number.
10422 * configure: Regenerate.
10423
600ea1be
JK
104242011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10425
10426 Fix debug printing of TYPE_INSTANCE.
10427 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10428 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10429
56c12414
JK
104302011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10433 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10434 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10435 * ada-operator.inc: Rename the file to ...
10436 * ada-operator.def: ... here, wrap all the entries by macro OP.
10437 * expprint.c (op_name_standard): Remove all the entries. Include
10438 "std-operator.def" instead.
10439 * expression.h (enum exp_opcode): Include "std-operator.def" and
10440 "ada-operator.def". Move all the entries ...
10441 * std-operator.def: ... here, wrap all the entries by macro OP.
10442
c52b559d
PP
104432011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10444
10445 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10446 * breakpoint.c (remove_jit_event_breakpoints): New function.
10447 * jit.c (jit_descriptor_addr): Delete.
10448 (registering_code): Delete.
10449 (clear_int): Delete.
10450 (jit_inferior_data): New variable.
10451 (struct jit_inferior_data): New type.
10452 (get_jit_inferior_data): New function.
10453 (jit_inferior_data_cleanup): New function.
10454 (jit_read_descriptor): Adjust.
10455 (jit_register_code): Adjust.
10456 (jit_breakpoint_re_set_internal): New function; move code here ...
10457 (jit_inferior_init): ... from here.
10458 (jit_breakpoint_re_set): Adjust.
10459 (jit_reset_inferior_data_and_breakpoints): New function.
10460 (jit_inferior_created_observer): Adjust.
10461 (jit_inferior_exit_hook): Adjust.
10462 (jit_executable_changed_observer): New function.
10463 (jit_event_handler): Adjust.
10464 (_initialize_jit): Adjust.
10465
e839132d
MS
104662011-01-31 Michael Snyder <msnyder@vmware.com>
10467
10468 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10469 line.
10470
47a80e90
TT
104712011-01-31 Tom Tromey <tromey@redhat.com>
10472
10473 PR python/12216:
10474 * python/python.c (execute_gdb_command): Call
10475 prevent_dont_repeat.
10476 * top.c (suppress_dont_repeat): New global.
10477 (dont_repeat): Use it.
10478 (prevent_dont_repeat): New function.
10479 * command.h (prevent_dont_repeat): Declare.
10480
45a43567
TT
104812011-01-31 Tom Tromey <tromey@redhat.com>
10482
10483 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10484 * python/py-breakpoint.c (bppy_set_silent): Use
10485 breakpoint_set_silent.
10486 (bppy_set_thread): Use breakpoint_set_thread.
10487 (bppy_set_task): Use breakpoint_set_task.
10488 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10489 (breakpoint_set_task): Declare.
10490 (make_breakpoint_silent): Remove.
10491 * breakpoint.c (breakpoint_set_silent): New function.
10492 (breakpoint_set_thread): Likewise.
10493 (breakpoint_set_task): Likewise.
10494 (make_breakpoint_silent): Remove.
10495
09d682a4
TT
104962011-01-31 Tom Tromey <tromey@redhat.com>
10497
10498 * breakpoint.h (user_breakpoint_p): Declare.
10499 * breakpoint.c (user_breakpoint_p): New function.
10500 (breakpoint_1): Use it.
10501 (save_breakpoints): Likewise.
10502
9c4ea6c5
JB
105032011-01-31 Joel Brobecker <brobecker@adacore.com>
10504
10505 * configure.ac: Add handling of Python distribution on Windows.
10506 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10507 sysconfig variables are not defined, then do not use them.
10508 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10509 instead. On Windows, return all paths using forward-slashes
10510 rather than backslashes.
10511
ac534cba
JB
105122011-01-31 Joel Brobecker <brobecker@adacore.com>
10513
10514 * configure.ac: Remove fallback behavior for building
10515 against Python. Remove tweaking of Python include path.
10516 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10517 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10518 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10519 Always restore CPPFLAGS and LIBS after linking test.
10520 * configure: Regenerated.
10521 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10522 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10523 * python/python-internal.h: Adjust includes of Python .h files.
10524
c2f0d045
JB
105252011-01-31 Joel Brobecker <brobecker@adacore.com>
10526
10527 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10528 in error message.
10529
6b0c4c1f
JB
105302011-01-31 Joel Brobecker <brobecker@adacore.com>
10531
10532 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10533 value test.
10534
672c9795
YQ
105352011-01-31 Yao Qi <yao@codesourcery.com>
10536
10537 * arm-linux-nat.c: Update calls to regcache_register_status
10538 instead of regcache_valid_p.
10539 * aix-thread.c: Likewise.
10540 * i386gnu-nat.c: Likewise.
10541
80b23b6a
JK
105422011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10543
10544 Fix crash.
10545 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10546 touching TYPE_FIELD_ARTIFICIAL.
10547
4cd712bd
RE
105482011-01-28 Richard Earnshaw <rearnsha@arm.com>
10549
10550 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10551 Committers.
10552
ffd5ec24
PA
105532011-01-28 Pedro Alves <pedro@codesourcery.com>
10554
10555 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10556 selected, don't try iterating over the traceframe's blocks.
10557 (tfile_has_stack): If there's no traceframe selected, then there's
10558 no stack.
10559 (tfile_has_registers): If there's no traceframe selected, then
10560 there's no registers.
10561
e8c9e0a1
PA
105622011-01-28 Pedro Alves <pedro@codesourcery.com>
10563
10564 * target.c (memory_xfer_partial): No need to restore shadows if we
10565 haven't read anything.
10566
de15c4ab
PA
105672011-01-28 Pedro Alves <pedro@codesourcery.com>
10568
10569 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10570 and val_print_scalar_formatted.
10571
9f41c731
PA
105722011-01-27 Pedro Alves <pedro@codesourcery.com>
10573
10574 * tracepoint.c (tfile_read): New.
10575 (tfile_open): Use it.
10576 (tfile_get_traceframe_address): Use it.
10577 (tfile_trace_find): Use it.
10578 (walk_blocks_callback_func): New typedef.
10579 (match_blocktype): New function.
10580 (traceframe_walk_blocks): New function.
10581 (traceframe_find_block_type): New function.
10582 (tfile_fetch_registers, tfile_xfer_partial)
10583 (tfile_get_trace_state_variable_value): Use
10584 traceframe_find_block_type and tfile_read.
10585
cdefc55d
KB
105862011-01-26 Kevin Buettner <kevinb@redhat.com>
10587
10588 * remote-mips.c: Add internationalization mark ups. Remove
10589 trailing \n from already marked up strings.
10590
a81766d8
TT
105912011-01-26 Tom Tromey <tromey@redhat.com>
10592
10593 * python/py-prettyprint.c (print_string_repr): Clear
10594 'addressprint' option when calling val_print_string.
10595 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10596 option when calling val_print_string.
10597
74aedc46
TT
105982011-01-26 Tom Tromey <tromey@redhat.com>
10599
10600 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10601 GDB_PY_LL_ARG.
10602 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10603 macros.
10604 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10605 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10606 (gdb_py_long_as_ulongest): New defines.
10607 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10608 (gdb_py_int_as_long): Declare.
10609 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10610 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10611 (valpy_long): Add comment.
10612 * python/py-utils.c (get_addr_from_python): Use
10613 gdb_py_long_as_ulongest. Handle overflow properly.
10614 (gdb_py_object_from_longest): New function.
10615 (gdb_py_object_from_ulongest): Likewise.
10616 (gdb_py_int_as_long): Likewise.
10617 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10618 * python/py-symtab.c (salpy_get_pc): Use
10619 gdb_py_long_from_ulongest.
10620 (salpy_get_line): Use PyInt_FromLong.
10621 * python/py-param.c (set_parameter_value): Use
10622 gdb_py_int_as_long.
10623 * python/py-lazy-string.c (stpy_get_address): Use
10624 gdb_py_long_from_ulongest.
10625 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10626 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10627 * python/py-breakpoint.c (bppy_set_thread): Use
10628 gdb_py_int_as_long.
10629 (bppy_set_task): Likewise.
10630 (bppy_set_ignore_count): Likewise.
10631 (bppy_set_hit_count): Likewise.
10632 * python/py-block.c (blpy_get_start): Use
10633 gdb_py_object_from_ulongest.
10634 (blpy_get_end): Likewise.
10635 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10636
e4f6d2ec
TJB
106372011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10638
10639 PR/symtab 11766:
10640 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10641 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10642 equality test for objfile, initialize addr_low if needed.
10643
b30aa278
PA
106442011-01-25 Pedro Alves <pedro@codesourcery.com>
10645
10646 * tui/tui-regs.c (tui_register_format): Remove dead code.
10647
ab2188aa
PA
106482011-01-25 Pedro Alves <pedro@codesourcery.com>
10649
10650 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10651 instead of print_scalar_formatted.
10652 (print_scalar_formatted): Don't handle 's' format strings here,
10653 and add an assertion that we never see such format here.
10654 * valprint.h (val_print_scalar_formatted): Declare.
10655 * valprint.c (val_print_scalar_formatted): New.
10656 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10657 instead of print_scalar_formatted.
10658 * jv-valprint.c (java_val_print): Ditto.
10659 * p-valprint.c (pascal_val_print): Ditto.
10660 * ada-valprint.c (ada_val_print_1): Ditto.
10661 * f-valprint.c (f_val_print): Ditto.
10662 * infcmd.c (registers_info): Ditto.
10663 * m2-valprint.c (m2_val_print): Ditto.
10664
66d61a4c
PA
106652011-01-25 Pedro Alves <pedro@codesourcery.com>
10666
10667 * m2-valprint.c (print_unbounded_array): Pass
10668 value_contents_for_printing rather than value_contents, to
10669 m2_print_array_contents. Also pass in the value.
10670
831adc1f
JK
106712011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10672
10673 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10674 (save_gdb_index_command): Switch to .gdb_index version 4.
10675
20622269
PA
106762011-01-25 Pedro Alves <pedro@codesourcery.com>
10677
10678 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10679 than frame_register, and always pass a valid value to val_print.
10680
585fdaa1
PA
106812011-01-25 Pedro Alves <pedro@codesourcery.com>
10682
10683 Centralize printing "<optimized out>".
10684
10685 * valprint.h (val_print_optimized_out): Declare.
10686 * cp-valprint.c (cp_print_value_fields): Use
10687 val_print_optimized_out.
10688 * jv-valprint.c (java_print_value_fields): Ditto.
10689 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10690 * printcmd.c (print_formatted): Ditto.
10691 * valprint.c (valprint_check_validity): Ditto.
10692 (value_check_printable): Ditto.
10693 (val_print_optimized_out): New.
10694
29ec5263
PA
106952011-01-25 Pedro Alves <pedro@codesourcery.com>
10696
10697 * infcmd.c (default_print_registers_info): Allocate values so to
10698 never pass a NULL value to val_print.
10699
de4127a3
PA
107002011-01-25 Pedro Alves <pedro@codesourcery.com>
10701
10702 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10703 boolean. Make sure to always pass a value that matches the
10704 contents buffer to callees. Preserve `address' for following
10705 iterations.
10706 * value.c (value_contents_for_printing_const): New.
10707 (value_address): Constify value argument.
10708 * value.h (value_contents_for_printing_const): Declare.
10709 (value_address): Constify value argument.
10710
ee99023e
PA
107112011-01-25 Pedro Alves <pedro@codesourcery.com>
10712
10713 * regcache.c (struct regcache_descr): Rename
10714 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10715 and sizeof_cooked_register_valid_p to
10716 sizeof_cooked_register_status.
10717 (init_regcache_descr): Adjust.
10718 (struct regcache): Rename register_valid_p field to
10719 register_status.
10720 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10721 (do_cooked_read): Adjust.
10722 (regcache_valid_p): Rename to ...
10723 (regcache_register_status): ... this. Adjust.
10724 (regcache_invalidate): Adjust.
10725 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10726 Adjust.
10727 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10728 as unavailable, not valid.
10729 (regcache_dump): Adjust.
10730 * regcache.h (enum register_status): New.
10731 (regcache_register_status): Declare.
10732 (regcache_invalidate): Delete declaration.
10733 * corelow.c (get_core_registers): Adjust.
10734 * tracepoint.c (tfile_fetch_registers): Adjust.
10735 * trad-frame.c (REG_VALUE): Rename to ...
10736 (TF_REG_VALUE): ... this.
10737 (REG_UNKNOWN): Rename to ...
10738 (TF_REG_UNKNOWN): ... this.
10739 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10740 * mi/mi-main.c (register_changed_p): Adjust.
10741
99e42fd8
PA
107422011-01-25 Pedro Alves <pedro@codesourcery.com>
10743
10744 * regcache.c (struct regcache_descr): Remove outdated comment.
10745 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10746 overallocate hack.
10747 (regcache_xmalloc): Rename to ...
10748 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10749 Allocate the regcache type accordingly.
10750 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10751 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10752 cooked registers, not raw.
10753 (regcache_dup_no_passthrough): Delete.
10754 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10755 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10756 mention obsolete write_register_bytes.
10757 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10758
f7605bc2
PA
107592011-01-25 Pedro Alves <pedro@codesourcery.com>
10760
10761 Stop remote_read_bytes from handling partial reads itself.
10762
10763 * remote-fileio.c: Include target.h.
10764 (remote_fileio_write_bytes): Delete.
10765 (remote_fileio_func_open, remote_fileio_func_write)
10766 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10767 target_read_memory.
10768 (remote_fileio_func_stat): Use target_read_memory and
10769 target_write_memory.
10770 (remote_fileio_func_gettimeofday): Use target_write_memory.
10771 (remote_fileio_func_system): Use target_read_memory.
10772 * remote.c (remote_write_bytes): Make it static.
10773 (remote_read_bytes): Don't handle partial reads here.
10774 * remote.h (remote_read_bytes): Delete declaration.
10775
efc0eabd
PA
107762011-01-25 Pedro Alves <pedro@codesourcery.com>
10777
10778 Simplify XML parsing a bit.
10779
10780 * xml-support.h (gdb_xml_parse_quick): Declare.
10781 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10782 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10783 parameter.
10784 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10785 gdb_xml_create_parser_and_cleanup_1.
10786 (gdb_xml_parse_quick): New.
10787 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10788 * osdata.c (osdata_parse): Ditto.
10789 * remote.c (remote_threads_info): Ditto.
10790 * solib-target.c (solib_target_parse_libraries): Ditto.
10791 * xml-syscall.c (syscall_parse_xml): Ditto.
10792 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10793
314d366a
KB
107942011-01-24 Kevin Buettner <kevinb@redhat.com>
10795
10796 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10797 with remote-mips.o added to gdb_target_obs.
10798 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10799
a491d753
PA
108002011-01-24 Pedro Alves <pedro@codesourcery.com>
10801
10802 * ada-valprint.c (val_print_packed_array_elements): Pass the
10803 correct struct value to val_print.
10804 (ada_val_print_1): Ditto.
10805
490f124f
PA
108062011-01-24 Pedro Alves <pedro@codesourcery.com>
10807
10808 Don't lose embedded_offset in printing routines throughout.
10809
10810 * valprint.h (val_print_array_elements): Change prototype.
10811 * valprint.c (val_print_array_elements): Add `embedded_offset'
10812 parameter, and adjust to pass it down to val_print, while passing
10813 `valaddr' or `address' unmodified. Take embedded_offset into
10814 account when checking repetitions.
10815 * c-valprint.c (c_val_print): Pass embedded_offset to
10816 val_print_array_elements instead of adjusting `valaddr' and
10817 `address'.
10818 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10819 embedded_offset to val_print_array_elements instead of adjusting
10820 `valaddr'.
10821 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10822 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10823 val_print_array_elements and pascal_object_print_value_fields
10824 instead of adjusting `valaddr'.
10825 (pascal_object_print_value_fields): Add `offset' parameter, and
10826 adjust to use it.
10827 (pascal_object_print_value): Add `offset' parameter, and adjust to
10828 use it.
10829 (pascal_object_print_static_field): Use
10830 value_contents_for_printing/value_embedded_offset, rather than
10831 value_contents.
10832 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10833 parameter, and adjust to use it. Use
10834 value_contents_for_printing/value_embedded_offset, rather than
10835 value_contents.
10836 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10837 (ada_val_print_array): Add `offset' parameter, and adjust to use
10838 it.
10839 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10840 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10841 Instead work with offsets. Use
10842 value_contents_for_printing/value_embedded_offset, rather than
10843 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10844 and use value_from_pointer to extract a target pointer, rather
10845 than value_from_longest.
10846 (print_variant_part): Add `offset' parameter. Replace
10847 `outer_valaddr' parameter by a new `outer_offset' parameter.
10848 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10849 (ada_value_print): Use
10850 value_contents_for_printing/value_embedded_offset, rather than
10851 value_contents.
10852 (print_record): Add `offset' parameter, and adjust to pass it
10853 down.
10854 (print_field_values): Add `offset' parameter. Replace
10855 `outer_valaddr' parameter by a new `outer_offset' parameter.
10856 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10857 Use value_contents_for_printing/value_embedded_offset, rather than
10858 value_contents.
10859 * d-valprint.c (dynamic_array_type): Use
10860 value_contents_for_printing/value_embedded_offset, rather than
10861 value_contents.
10862 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10863 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10864 (java_print_value_fields): Take `offset' into account. Don't
10865 re-adjust `valaddr'. Instead pass down adjusted offsets.
10866 (java_val_print): Take `embedded_offset' into account. Pass it to
10867 java_print_value_fields.
10868 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10869 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10870 down adjusted offsets.
10871 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10872 (f_val_print): Take `embedded_offset' into account.
10873
7bfc9434
JB
108742011-01-21 Joel Brobecker <brobecker@adacore.com>
10875
10876 * inflow.c: Include "gdbcmd.h".
10877 (interactive_mode): New static global, moved here from top.c.
10878 (show_interactive_mode): New function, moved here from top.c.
10879 use gdb_has_a_terminal instead of input_from_terminal_p to
10880 determine the current mode.
10881 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10882 setting.
10883 (_initialize_inflow): Add the "set/show interactive-mode"
10884 commands. Moved here from top.c, after having adjusted slightly
10885 the help text.
10886 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10887 to inflow.c.
10888 (input_from_terminal_p): Remove handling of "interactive-mode"
10889 setting, moved to infow.c.
10890 (init_main): Remove creation of the "set/show interactive-mode"
10891 commands, moved to inflow.c.
10892
44603653
JB
108932011-01-19 Joel Brobecker <brobecker@adacore.com>
10894
10895 * NEWS: Add entry for native ia64-hpux support.
10896
4694da01
TT
108972011-01-19 Tom Tromey <tromey@redhat.com>
10898
10899 PR mi/8618:
10900 * thread.c (free_thread): Free 'name'.
10901 (print_thread_info): Emit thread name. Change CLI output.
10902 (thread_name_command): New function.
10903 (do_captured_thread_select): Emit newline.
10904 (_initialize_thread): Register 'thread name' command.
10905 * target.h (struct target_ops) <to_thread_name>: New field.
10906 (target_thread_name): New macro.
10907 * target.c (update_current_target): Handle to_thread_name.
10908 * python/py-infthread.c (thpy_get_name): New function.
10909 (thpy_set_name): Likewise.
10910 (thread_object_getset): Add "name".
10911 * linux-nat.c (linux_nat_thread_name): New function.
10912 (linux_nat_add_target): Set to_thread_name.
10913 * gdbthread.h (struct thread_info) <name>: New field.
10914
10d44370
JB
109152011-01-18 Joel Brobecker <brobecker@adacore.com>
10916
10917 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10918 (ada_val_print_1): Likewise.
10919
e3acb115
JB
109202011-01-18 Joel Brobecker <brobecker@adacore.com>
10921
10922 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10923 upper limit address is not greater than the function end address
10924 when the upper limit could not be computed using the debugging
10925 info.
10926
dc92e161
TT
109272011-01-17 Tom Tromey <tromey@redhat.com>
10928
10929 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10930 get_regcomp_error.
10931 * utils.c: Include gdb_regex.h.
10932 (do_regfree_cleanup): New function.
10933 (make_regfree_cleanup): Likewise.
10934 (get_regcomp_error): Likewise.
10935 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10936
f55af66d
TT
109372011-01-17 Tom Tromey <tromey@redhat.com>
10938
10939 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10940 re_compile_fastmap.
10941
a5a44b53
PM
109422011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10943
10944 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10945 for internal variables.
10946 (last_was_structop): New static variable.
10947 (COMPLETE): New token.
10948 (field_exp): New rule to group all '.' suffix handling.
10949 Add mark_struct_expression calls when approriate to be able
10950 to correctly find fields for completion.
10951 (yylex): Adapt to handle field completion and set INTVAR when
10952 required.
10953
2c291032
YQ
109542011-01-14 Yao Qi <yao@codesourcery.com>
10955
10956 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10957 save_reggroup, restore_reggroup and all_reggroup.
10958
447b483c
JB
109592011-01-14 Joel Brobecker <brobecker@adacore.com>
10960
10961 * ada-valprint. (ada_printchar): Use the correct type length
10962 in call to ada_emit_char.
10963 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10964
7b64a93b
PM
109652011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10966
10967 * solib-som.h (hpux_major_release): Declare variable here.
10968 * solib-som.c: Remove <sys/utsname.h> header.
10969 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10970 (hpux_major_release): Make global, change default value to
10971 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10972 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10973 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10974 Add "solib-som.h" header.
10975 (set_hpux_major_release): New function.
10976 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10977
4e18c053
MF
109782011-01-14 Mike Frysinger <vapier@gentoo.org>
10979
10980 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10981
a9df6b22
JB
109822011-01-14 Joel Brobecker <brobecker@adacore.com>
10983
10984 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10985 new-line at end of warning message.
10986 (ia64_hpux_store_register): Remove trailing new-line at end of
10987 error message.
10988 * ia64-hpux-tdep.c: Rephrase comment.
10989 * solib-ia64-hpux.c (struct dld_info): Change type of field
10990 dld_flags from "long long" to ULONGEST.
10991
ecb956dd
PA
109922011-01-14 Pedro Alves <pedro@codesourcery.com>
10993
10994 * target.h (deprecated_child_ops): Delete declaration.
10995 * target.c (deprecated_child_ops): Delete definition.
10996
76adfcae
PA
109972011-01-14 Pedro Alves <pedro@codesourcery.com>
10998
10999 * Makefile.in (hpux-thread.o): Delete rule.
11000 * configure.ac: Don't check for HPUX DCE threads support.
11001 * configure, config.in: Regenerate.
11002 * hppa-hpux-nat.c (child_suppress_run): Delete.
11003 (hppa_hpux_child_can_run): Delete.
11004 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11005 * hpux-thread.c: Delete.
11006
042e866e
JB
110072011-01-13 Joel Brobecker <brobecker@adacore.com>
11008
11009 * hpux-thread.c (hpux_pid_to_str): Delete.
11010
4ffa5a33
JB
110112011-01-13 Joel Brobecker <brobecker@adacore.com>
11012
11013 * ada-valprint.c (ada_emit_char): Remove strange code.
11014 Check that c is <= UCHAR_MAX before passing it to isascii.
11015 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11016
de8fa76c
JB
110172011-01-13 Joel Brobecker <brobecker@adacore.com>
11018
11019 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11020 to the case where instream is stdin.
11021
c4de7027
JB
110222011-01-13 Joel Brobecker <brobecker@adacore.com>
11023
11024 * ia64-tdep.h (struct regcache): Forward declare.
11025 (struct ia64_infcall_ops): New struct type.
11026 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11027 and "infcall_ops".
11028 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11029 Renames ia64_find_global_pointer.
11030 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11031 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11032 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11033 methods.
11034 (ia64_infcall_ops): New static global constant.
11035 (ia64_gdbarch_init): Set tdep->infcall_ops.
11036 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11037 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11038 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11039 (ia64_hpux_dummy_code): New static global constant.
11040 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11041 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11042 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11043 New function.
11044 (ia64_hpux_infcall_ops): New static global constant.
11045 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11046 for inferior function calls to work properly on ia64-hpux.
11047
77ca787b
JB
110482011-01-13 Joel Brobecker <brobecker@adacore.com>
11049
11050 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11051 * ia64-tdep.h (struct frame_info): forward declaration.
11052 (struct gdbarch_tdep): Add field size_of_register_frame.
11053 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11054 to determine the size of the register frame.
11055 (ia64_size_of_register_frame): New function.
11056 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11057 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11058 (IA64_HPUX_UREG_REASON): New macro.
11059 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11060 New functions.
11061 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11062 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11063 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11064 objects.
11065
92c9a463
JB
110662011-01-13 Joel Brobecker <brobecker@adacore.com>
11067
11068 Add support for ia64-hpux.
11069 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11070 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11071
11072 * configure.host: Add handling for ia64-hpux hosts. Add associated
11073 floatformats.
11074 * configure.tgt: Add handling for ia64-hpux targets.
11075 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11076 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11077 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11078
f688d93f
JB
110792011-01-13 Joel Brobecker <brobecker@adacore.com>
11080
11081 [ttrace] Compute thread list immediately after attach.
11082 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11083 New subprogram.
11084 (inf_ttrace_attach): Use it.
11085
1b89e62f
JB
110862011-01-13 Joel Brobecker <brobecker@adacore.com>
11087
11088 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11089 if we could not determine the frame's function address. Instead,
11090 use the frame's PC, and then continue.
11091
3e5e6e2a
JB
110922011-01-13 Joel Brobecker <brobecker@adacore.com>
11093
11094 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11095 not already defined.
11096
825d6d8a
JB
110972011-01-13 Joel Brobecker <brobecker@adacore.com>
11098
11099 * ia64-tdep.c (ia64_struct_type_p): New function.
11100 (ia64_extract_return_value): Handle integral values that are
11101 less than 8 bytes long.
11102 (ia64_push_dummy_call): Likewise.
11103
7458e667
JB
111042011-01-13 Joel Brobecker <brobecker@adacore.com>
11105
11106 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11107 floatformat_ia64_ext.
11108 (floatformat_ia64_ext_big): New static const.
11109 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11110
1b05df00
TT
111112011-01-12 Tom Tromey <tromey@redhat.com>
11112
11113 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11114 messages.
11115 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11116 (mi_cmd_thread_list_ids): Likewise.
11117 (mi_cmd_data_list_changed_registers): Likewise.
11118 (mi_cmd_data_list_register_values): Likewise.
11119 (mi_cmd_data_write_register_values): Likewise.
11120 (mi_cmd_data_evaluate_expression): Likewise.
11121 (mi_cmd_data_read_memory): Likewise.
11122 (mi_cmd_data_read_memory_bytes): Likewise.
11123 (mi_cmd_data_write_memory): Likewise.
11124 (mi_cmd_enable_timings): Likewise.
11125 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11126 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11127 (mi_cmd_var_delete): Likewise.
11128 (mi_cmd_var_set_format): Likewise.
11129 (mi_cmd_var_show_format): Likewise.
11130 (mi_cmd_var_info_num_children): Likewise.
11131 (mi_cmd_var_list_children): Likewise.
11132 (mi_cmd_var_info_type): Likewise.
11133 (mi_cmd_var_info_expression): Likewise.
11134 (mi_cmd_var_show_attributes): Likewise.
11135 (mi_cmd_var_assign): Likewise.
11136 (mi_cmd_var_update): Likewise.
11137 (mi_cmd_enable_pretty_printing): Likewise.
11138 (mi_cmd_var_set_update_range): Likewise.
11139 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11140 messages.
11141 (mi_cmd_target_file_put): Likewise.
11142 (mi_cmd_target_file_delete): Likewise.
11143 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11144 messages.
11145 (mi_cmd_stack_info_depth): Likewise.
11146 (mi_cmd_stack_list_locals): Likewise.
11147 (mi_cmd_stack_list_args): Likewise.
11148 (mi_cmd_stack_select_frame): Likewise.
11149 (mi_cmd_stack_select_frame): Likewise.
11150 (mi_cmd_stack_info_frame): Likewise.
11151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11152 messages.
11153 (mi_cmd_file_list_exec_source_files): Likewise.
11154 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11155 (mi_cmd_env_cd): Likewise.
11156 (mi_cmd_env_path): Likewise.
11157 (mi_cmd_env_dir): Likewise.
11158 (mi_cmd_inferior_tty_show): Likewise.
11159 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11160 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11161 (mi_cmd_break_watch): Likewise.
11162
ad422571
TJB
111632011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11164
11165 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11166 (ppc_linux_insert_hw_breakpoint): Likewise.
11167 (ppc_linux_remove_hw_breakpoint): Likewise.
11168 (ppc_linux_insert_watchpoint): Likewise.
11169
c2ff108b
JK
111702011-01-12 Andrew Burgess <aburgess@broadcom.com>
11171 Jan Kratochvil <jan.kratochvil@redhat.com>
11172
11173 PR fortran/11104 and DWARF unbound arrays detection.
11174 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11175 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11176 unspecified upper bound.
11177 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11178 variables array_size_array, tmp_type and offset_item. New variable
11179 array. Remove call to f77_get_upperbound. New variables array_type
11180 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11181 the final call to deprecated_set_value_type.
11182
41e8491f
JK
111832011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11184
11185 Make value allocations more lazy.
11186 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11187 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11188 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11189 instead of allocate_value and set_value_lazy.
11190 * findvar.c (value_of_register_lazy): Likewise.
11191 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11192 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11193 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11194 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11195 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11196 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11197 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11198 the end, remove set_value_lazy there.
11199 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11200 instead of allocate_value and set_value_lazy when possible.
11201 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11202 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11203 of allocate_value and set_value_lazy.
11204 (value_from_contents_and_address): Use allocate_value_lazy instead of
11205 allocate_value and set_value_lazy when possible.
11206
b716877b
AB
112072011-01-12 Andrew Burgess <aburgess@broadcom.com>
11208
11209 * disasm.c (dump_insns): Support dumping opcodes for MI.
11210 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11211 dumping of instruction opcodes.
11212
d5ae309f
JB
112132011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11214
11215 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11216 appropiately.
11217
98871305
TT
112182011-01-11 Tom Tromey <tromey@redhat.com>
11219
11220 * thread.c (do_captured_thread_select): Emit newline before
11221 printing frame.
11222
c378eb4e
MS
112232011-01-11 Michael Snyder <msnyder@vmware.com>
11224
11225 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11226 * score-tdep.c: Ditto.
11227 * score-tdep.h: Ditto.
11228 * ser-base.c: Ditto.
11229 * ser-go32.c: Ditto.
11230 * serial.c: Ditto.
11231 * serial.h: Ditto.
11232 * ser-mingw.c: Ditto.
11233 * ser-pipe.c: Ditto.
11234 * ser-tcp.c: Ditto.
11235 * ser-unix.c: Ditto.
11236 * sh64-tdep.c: Ditto.
11237 * shnbsd-nat.c: Ditto.
11238 * sh-tdep.c: Ditto.
11239 * sh-tdep.h: Ditto.
11240 * solib.c: Ditto.
11241 * solib-darwin.c: Ditto.
11242 * solib-frv.c: Ditto.
11243 * solib.h: Ditto.
11244 * solib-irix.c: Ditto.
11245 * solib-osf.c: Ditto.
11246 * solib-pa64.c: Ditto.
11247 * solib-som.c: Ditto.
11248 * solib-spu.c: Ditto.
11249 * solib-sunos.c: Ditto.
11250 * solib-svr4.c: Ditto.
11251 * solist.h: Ditto.
11252 * sol-thread.c: Ditto.
11253 * somread.c: Ditto.
11254 * source.c: Ditto.
11255 * source.h: Ditto.
11256 * sparc64-linux-tdep.c: Ditto.
11257 * sparc64-tdep.c: Ditto.
11258 * sparc-linux-nat.c: Ditto.
11259 * sparc-linux-tdep.c: Ditto.
11260 * sparc-sol2-nat.c: Ditto.
11261 * sparc-sol2-tdep.c: Ditto.
11262 * sparc-tdep.c: Ditto.
11263 * sparc-tdep.h: Ditto.
11264 * spu-tdep.c: Ditto.
11265 * stabsread.c: Ditto.
11266 * stabsread.h: Ditto.
11267 * stack.c: Ditto.
11268 * symfile.c: Ditto.
11269 * symfile.h: Ditto.
11270 * symmisc.c: Ditto.
11271 * symtab.c: Ditto.
11272 * symtab.h: Ditto.
11273 * target.c: Ditto.
11274 * target-descriptions.c: Ditto.
11275 * target-descriptions.h: Ditto.
11276 * target.h: Ditto.
11277 * target-memory.c: Ditto.
11278 * terminal.h: Ditto.
11279 * thread.c: Ditto.
11280 * top.c: Ditto.
11281 * tracepoint.c: Ditto.
11282 * tracepoint.h: Ditto.
11283 * trad-frame.h: Ditto.
11284 * typeprint.c: Ditto.
11285
581e13c1
MS
112862011-01-11 Michael Snyder <msnyder@vmware.com>
11287
11288 * ui-file.c: Comment cleanup, mostly periods and spaces.
11289 * ui-file.h: Ditto.
11290 * ui-out.c: Ditto.
11291 * ui-out.h: Ditto.
11292 * utils.c: Ditto.
11293 * v850-tdep.c: Ditto.
11294 * valarith.c: Ditto.
11295 * valops.c: Ditto.
11296 * valprint.c: Ditto.
11297 * valprint.h: Ditto.
11298 * value.c: Ditto.
11299 * value.h: Ditto.
11300 * varobj.c: Ditto.
11301 * varobj.h: Ditto.
11302 * vax-tdep.c: Ditto.
11303 * vec.c: Ditto.
11304 * vec.h: Ditto.
11305 * version.h: Ditto.
11306 * windows-nat.c: Ditto.
11307 * windows-tdep.c: Ditto.
11308 * xcoffread.c: Ditto.
11309 * xcoffsolib.c: Ditto.
11310 * xml-support.c: Ditto.
11311 * xstormy16-tdep.c: Ditto.
11312 * xtensa-tdep.c: Ditto.
11313 * xtensa-tdep.h: Ditto.
11314
90e4670f
TJB
113152011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11316
11317 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11318 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11319
e09342b5
TJB
113202011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11321 Thiago Jung Bauermann <bauerman@br.ibm.com>
11322
11323 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11324 * breakpoint.h
e09342b5
TJB
11325 (struct breakpoint_ops) <resources_needed>: New method.
11326 Initialize to NULL in all existing breakpoint_ops instances.
11327 (struct breakpoint) <exact>: New field.
11328 (target_exact_watchpoints): Declare external global.
11329 * breakpoint.c (target_exact_watchpoints): New global flag.
11330 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11331 b->enable_state to bp_enabled before calling
11332 hw_watchpoint_used_count.
11333 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11334 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11335 if available.
11336 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11337 if the watchpoint is exact.
11338 (resources_needed_watchpoint): New function.
11339 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11340 (watch_command_1): Set b->exact if the user asked for an exact
11341 watchpoint and one can be set.
11342 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11343 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11344 the user asks for an exact watchpoint and one can be set. Return
11345 number of needed debug registers to watch the expression.
11346 * gdbtypes.c (is_scalar_type): New function, based on
11347 valprint.c:scalar_type_p.
11348 (is_scalar_type_recursive): New function.
11349 * gdbtypes.h (is_scalar_type_recursive): Declare.
11350 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11351 handle regions when ranged watchpoints are available.
11352 (create_watchpoint_request): New function.
11353 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11354 create_watchpoint_request.
11355 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11356 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11357 `set powerpc' and `show powerpc' commands.
11358 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11359 Mention documentation comment in the target macro.
11360 (target_region_ok_for_hw_watchpoint): Document return value.
11361
9fa40276
TJB
113622011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11363
11364 * breakpoint.c (update_watchpoint): Decide on using a software or
11365 hardware watchpoint after the bp_locations are created.
11366
77b06cd7
TJB
113672010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11368
11369 Convert hardware watchpoints to use breakpoint_ops.
11370 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11371 <insert_location>: ... this. Return int instead of void.
11372 Accept pointer to struct bp_location instead of pointer to
11373 struct breakpoint. Adapt all implementations.
f2eb0bc8 11374 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11375 <remove_location>: ... this. Accept pointer to struct bp_location
11376 instead of pointer to struct breakpoint. Adapt all implementations.
11377 * breakpoint.c (insert_catchpoint): Delete function.
11378 (insert_bp_location): Call the watchpoint or catchpoint's
11379 breakpoint_ops.insert method.
11380 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11381 breakpoint_ops.remove method.
11382 (insert_watchpoint, remove_watchpoint): New functions.
11383 (watchpoint_breakpoint_ops): New structure.
11384 (watch_command_1): Initialize the OPS field.
11385 * inf-child.c (inf_child_insert_fork_catchpoint)
11386 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11387 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11388 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11389 Delete functions.
11390 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11391 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11392 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11393 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11394 * target.c (update_current_target): Change default implementation of
11395 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11396 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11397 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11398 to_set_syscall_catchpoint to return_one.
11399 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11400 (debug_to_insert_exec_catchpoint): Report return value.
11401 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11402 (to_insert_exec_catchpoint): Change declaration to return int instead
11403 of void.
11404
9b20d036
MS
114052011-01-11 Michael Snyder <msnyder@vmware.com>
11406
11407 * arm-tdep.c: Internationalization.
11408 * c-lang.c: Ditto.
11409 * charset.c: Ditto.
11410 * fork-child.c: Ditto.
11411 * nto-procfs.c: Ditto.
11412 * ppc-sysv-tdep.c: Ditto.
11413 * procfs.c: Ditto.
11414 * remote-mips.c: Ditto.
11415 * remote.c: Ditto.
11416 * rs6000-nat.c: Ditto.
11417 * rs6000-tdep.c: Ditto.
11418 * target.c: Ditto.
11419 * valops.c: Ditto.
11420 * value.c: Ditto.
11421 * xml-support.c: Ditto.
11422 * mi/mi-cmd-break.c: Ditto.
11423 * mi/mi-cmd-var.c: Ditto.
11424 * mi/mi-interp.c: Ditto.
11425 * mi/mi-main.c: Ditto.
11426
dae477fe
AB
114272011-01-11 Andrew Burgess <aburgess@broadcom.com>
11428
11429 * remote-sim.c (gdbsim_store_register): Update API to
11430 sim_store_register to check more error conditions.
11431
0df8b418
MS
114322011-01-10 Michael Snyder <msnyder@vmware.com>
11433
11434 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11435 * nto-tdep.c: Ditto.
11436 * nto-tdep.h: Ditto.
11437 * objc-exp.y: Ditto.
11438 * objc-lang.c: Ditto.
11439 * objfiles.c: Ditto.
11440 * objfiles.h: Ditto.
11441 * observer.c: Ditto.
11442 * opencl-lang.c: Ditto.
11443 * osabi.c: Ditto.
11444 * parse.c: Ditto.
11445 * parser-defs.h: Ditto.
11446 * p-exp.y: Ditto.
11447 * p-lang.c: Ditto.
11448 * posix-hdep.c: Ditto.
11449 * ppcbug-rom.c: Ditto.
11450 * ppc-linux-nat.c: Ditto.
11451 * ppc-linux-tdep.c: Ditto.
11452 * ppc-linux-tdep.h: Ditto.
11453 * ppcnbsd-tdep.c: Ditto.
11454 * ppcobsd-tdep.c: Ditto.
11455 * ppcobsd-tdep.h: Ditto.
11456 * ppc-sysv-tdep.c: Ditto.
11457 * ppc-tdep.h: Ditto.
11458 * printcmd.c: Ditto.
11459 * proc-abi.c: Ditto.
11460 * proc-flags.c: Ditto.
11461 * procfs.c: Ditto.
11462 * proc-utils.h: Ditto.
11463 * progspace.h: Ditto.
11464 * prologue-value.c: Ditto.
11465 * prologue-value.h: Ditto.
11466 * psympriv.h: Ditto.
11467 * psymtab.c: Ditto.
11468 * p-typeprint.c: Ditto.
11469 * p-valprint.c: Ditto.
11470 * ravenscar-sparc-thread.c: Ditto.
11471 * ravenscar-thread.c: Ditto.
11472 * ravenscar-thread.h: Ditto.
11473 * record.c: Ditto.
11474 * regcache.c: Ditto.
11475 * regcache.h: Ditto.
11476 * remote.c: Ditto.
11477 * remote-fileio.c: Ditto.
11478 * remote-fileio.h: Ditto.
11479 * remote.h: Ditto.
11480 * remote-m32r-sdi.c: Ditto.
11481 * remote-mips.c: Ditto.
11482 * remote-sim.c: Ditto.
11483 * rs6000-aix-tdep.c: Ditto.
11484 * rs6000-nat.c: Ditto.
11485 * rs6000-tdep.c: Ditto.
11486
0d7a18f7
MS
114872011-01-10 Michael Snyder <msnyder@vmware.com>
11488
11489 * charset.c (validate): Internationalization.
11490 * coffread.c (read_one_sym): Ditto.
11491 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11492 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11493 * inflow.c (new_tty): Ditto.
11494 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11495 * m32c-tdep.c (m32c_return_value): Ditto.
11496 * mep-tdep.c (mep_store_return_value): Ditto.
11497 * score-tdep.c (score7_fetch_insn): Ditto.
11498 * ser-mingw.c (pipe_windows_open): Ditto.
11499 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11500 * spu-tdep.c (spu_register_type): Ditto.
11501 * tracepoint.c (trace_find_command): Ditto.
11502 * valarith.c (value_pos): Ditto.
11503
9a153e0b
JB
115042011-01-10 Joel Brobecker <brobecker@adacore.com>
11505
11506 * ada-valprint.c (printstr): Minor comment reformatting.
11507
35ecd2d6
MS
115082011-01-08 Michael Snyder <msnyder@vmware.com>
11509
11510 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11511 markup.
11512
1777feb0
MS
115132011-01-08 Michael Snyder <msnyder@vmware.com>
11514
11515 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11516 * hppa-hpux-tdep.c: Ditto.
11517 * hppa-linux-nat.c: Ditto.
11518 * hppa-linux-tdep.c: Ditto.
11519 * hppanbsd-tdep.c: Ditto.
11520 * hppa-tdep.c: Ditto.
11521 * hppa-tdep.h: Ditto.
11522 * hpux-thread.c: Ditto.
11523 * i386-cygwin-tdep.c: Ditto.
11524 * i386-darwin-nat.c: Ditto.
11525 * i386gnu-nat.c: Ditto.
11526 * i386-linux-nat.c: Ditto.
11527 * i386-linux-tdep.c: Ditto.
11528 * i386-nat.c: Ditto.
11529 * i386-nat.h: Ditto.
11530 * i386nbsd-tdep.c: Ditto.
11531 * i386-sol2-nat.c: Ditto.
11532 * i386-stub.c: Ditto.
11533 * i386-tdep.c: Ditto.
11534 * i386-tdep.h: Ditto.
11535 * i387-tdep.c: Ditto.
11536 * ia64-linux-nat.c: Ditto.
11537 * ia64-linux-tdep.c: Ditto.
11538 * ia64-tdep.c: Ditto.
11539 * infcall.c: Ditto.
11540 * infcall.h: Ditto.
11541 * infcmd.c: Ditto.
11542 * inferior.c: Ditto.
11543 * inferior.h: Ditto.
11544 * infloop.c: Ditto.
11545 * inflow.c: Ditto.
11546 * infrun.c: Ditto.
11547 * interps.c: Ditto.
11548 * interps.h: Ditto.
11549 * iq2000-tdep.c: Ditto.
11550 * irix5-nat.c: Ditto.
11551 * jit.c: Ditto.
11552 * jit.h: Ditto.
11553 * jv-exp.y: Ditto.
11554 * jv-lang.c: Ditto.
11555 * jv-lang.h: Ditto.
11556 * jv-typeprint.c: Ditto.
11557 * jv-valprint.c: Ditto.
11558 * language.c: Ditto.
11559 * language.h: Ditto.
11560 * linespec.c: Ditto.
11561 * linux-fork.c: Ditto.
11562 * linux-nat.c: Ditto.
11563 * linux-thread-db.c: Ditto.
11564 * lm32-tdep.c: Ditto.
11565
025bb325
MS
115662011-01-08 Michael Snyder <msnyder@vmware.com>
11567
11568 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11569 * m2-lang.c: Ditto.
11570 * m2-typeprint.c: Ditto.
11571 * m2-valprint.c: Ditto.
11572 * m32c-tdep.c: Ditto.
11573 * m32r-linux-nat.c: Ditto.
11574 * m32r-rom.c: Ditto.
11575 * m32r-tdep.c: Ditto.
11576 * m32r-tdep.h: Ditto.
11577 * m68hc11-tdep.c: Ditto.
11578 * m58klinux-nat.c: Ditto.
11579 * m68k-tdep.c: Ditto.
11580 * m88k-tdep.c: Ditto.
11581 * m88k-tdep.h: Ditto.
11582 * machoread.c: Ditto.
11583 * macrocmd.c: Ditto.
11584 * macroexp.c: Ditto.
11585 * macrotab.c: Ditto.
11586 * main.c: Ditto.
11587 * maint.c: Ditto.
11588 * mdebugread.c: Ditto.
11589 * mdebugread.h: Ditto.
11590 * memattr.c: Ditto.
11591 * memattr.h: Ditto.
11592 * memory-map.h: Ditto.
11593 * mep-tdep.c: Ditto.
11594 * microblaze-rom.c: Ditto.
11595 * microblaze-tdep.c: Ditto.
11596 * minsyms.c: Ditto.
11597 * mips-irix-tdep.c: Ditto.
11598 * mips-linux-nat.c: Ditto.
11599 * mips-linux-tdep.c: Ditto.
11600 * mips-linux-tdep.h: Ditto.
11601 * mipsnbsd-nat.c: Ditto.
11602 * mipsnbsd-tdep.c: Ditto.
11603 * mipsread.c: Ditto.
11604 * mips-tdep.c: Ditto.
11605 * mips-tdep.h: Ditto.
11606 * mn10300-linux-tdep.c: Ditto.
11607 * mn10300-tdep.c: Ditto.
11608 * mn10300-tdep.h: Ditto.
11609 * monitor.c: Ditto.
11610 * monitor.h: Ditto.
11611 * moxie-tdep.c: Ditto.
11612 * moxie-tdep.h: Ditto.
11613 * mt-tdep.c: Ditto.
11614
1642781b
MF
116152011-01-08 Mike Frysinger <vapier@gentoo.org>
11616
11617 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11618
394b0adb
JB
116192011-01-08 Robert Millan <rmh@gnu.org>
11620
11621 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11622
b670013c
MS
116232011-01-07 Michael Snyder <msnyder@vmware.com>
11624
11625 * charset.c (_initialize_charset): Fix typo in string.
11626
a743e542
MS
116272011-01-07 Michael Snyder <msnyder@vmware.com>
11628
11629 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11630 for i18n.
f2eb0bc8 11631 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11632 Split line so that operator goes to beginning of line.
11633 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11634 assignment out of if statement.
11635
0963b4bd
MS
116362011-01-07 Michael Snyder <msnyder@vmware.com>
11637
11638 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11639 * ada-lang.h: Ditto.
11640 * ada-tasks.c: Ditto.
11641 * ada-valprint.c: Ditto.
11642 * aix-threads.c: Ditto.
11643 * alpha-linux-nat.c: Ditto.
11644 * alpha-linux-tdep.c: Ditto.
11645 * alpha-mdebug-tdep.c: Ditto.
11646 * alpha-nat.c: Ditto.
11647 * alpha-osf1-tdep.c: Ditto.
11648 * alpha-tdep.c: Ditto.
11649 * alphabsd-nat.c: Ditto.
11650 * alphabsd-tdep.c: Ditto.
11651 * amd64-darwin-tdep.c: Ditto.
11652 * amd64-linux-nat.c: Ditto.
11653 * amd64-linux-tdep.c: Ditto.
11654 * amd64-sol2-tdep.c: Ditto.
11655 * amd64-tdep.c: Ditto.
11656 * amd64-fbsd-tdep.c: Ditto.
11657 * amd64-nbsd-tdep.c: Ditto.
11658 * amd64-obsd-tdep.c: Ditto.
11659 * amd64-linux-nat.c: Ditto.
11660 * amd64-linux-tdep.c: Ditto.
11661 * arm-tdep.c: Ditto.
11662 * arm-tdep.h: Ditto.
11663 * armnbsd-nat.c: Ditto.
11664 * avr-tdep.c: Ditto.
11665 * bfin-tdep.c: Ditto.
11666 * bsd-kvm.c: Ditto.
11667 * c-typeprintc: Ditto.
11668 * c-valprint.c: Ditto.
11669 * coff-pe-read.h: Ditto.
11670 * coffreead.c: Ditto.
11671 * cris-tdep.c: Ditto.
11672 * d-lang.c: Ditto.
11673 * darwin-nat-info.c: Ditto.
11674 * darwin-nat.c: Ditto.
11675 * dbug-rom.c: Ditto.
11676 * dbxread.c: Ditto.
11677 * dcache.c: Ditto.
11678 * dcache.h: Ditto.
11679 * dec-thread.c: Ditto.
11680 * defs.h: Ditto.
11681 * demangle.c: Ditto.
11682 * dicos-tdep.c: Ditto.
11683 * dictionary.c: Ditto.
11684 * dictionary.h: Ditto.
11685 * dink32-rom.c: Ditto.
11686 * disasm.c: Ditto.
11687 * doublest.c: Ditto.
11688 * dsrec.c: Ditto.
11689 * dummy-frame.c: Ditto.
11690 * dwarf2-frame.c: Ditto.
11691 * dwarf2expr.c: Ditto.
11692 * dwarf2loc.c: Ditto.
11693 * dwarf2read.c: Ditto.
11694 * elfread.c: Ditto.
11695 * environ.c: Ditto.
11696 * eval.c: Ditto.
11697 * event-top.h: Ditto.
11698 * exceptions.c: Ditto.
11699 * exceptions.h: Ditto.
11700 * exec.c: Ditto.
11701 * expprint.c: Ditto.
11702 * expression.h: Ditto.
11703 * f-exp.y: Ditto.
11704 * f-lang.c: Ditto.
11705 * f-lang.h: Ditto.
11706 * f-typeprint.c: Ditto.
11707 * f-valprint.c: Ditto.
11708 * fbsd-nat.c: Ditto.
11709 * findvar.c: Ditto.
11710 * fork-child.c: Ditto.
11711 * frame.c: Ditto.
11712 * frame.h: Ditto.
11713 * frv-linux-tdep.c: Ditto.
11714 * frv-tdep.c: Ditto.
11715 * gcore.c: Ditto.
11716 * gdb-stabs.h: Ditto.
11717 * gdb_assert.h: Ditto.
11718 * gdb_string.h: Ditto.
11719 * gdb_thread_db.h: Ditto.
11720 * gdb_wait.h: Ditto.
11721 * gdbarch.sh: Ditto.
11722 * gdbcore.h: Ditto.
11723 * gdbthread.h: Ditto.
11724 * gdbtypes.c: Ditto.
11725 * gdbtypes.h: Ditto.
11726 * gnu-nat.c: Ditto.
11727 * gnu-nat.h: Ditto.
11728 * gnu-v2-abi.c: Ditto.
11729 * gnu-v3-abi.c: Ditto.
11730 * go32-nat.c: Ditto.
11731 * gdbarch.c: Regenerate.
11732 * gdbarch.h: Regenerate.
11733
ac74f770
MS
117342011-01-07 Michael Snyder <msnyder@vmware.com>
11735
11736 * ax-gdb.c: Adjust some long output strings.
11737 * breakpoint.c: Ditto.
11738 * charset.c: Ditto.
11739 * cp-abi.c: Ditto.
11740 * infcall.c: Ditto.
11741 * infrun.c: Ditto.
11742 * linux-nat.c: Ditto.
11743 * solib-pa64.c: Ditto.
11744 * solib-som.c: Ditto.
11745
d8e22779
TT
117462011-01-06 Tom Tromey <tromey@redhat.com>
11747
11748 PR python/12367:
11749 * NEWS: Add item.
11750 * python/python.c (GdbMethods): Add "newest_frame" method.
11751 * python/python-internal.h (gdbpy_newest_frame): Declare.
11752 * python/py-frame.c (gdbpy_newest_frame): New function.
11753
a255712f
PP
117542010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11755
11756 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11757 * jit.c (jit_debug): New variable.
11758 (show_jit_debug): New function.
11759 (struct target_buffer): Use ULONGEST.
11760 (bfd_open_from_target_memory): Likewise.
11761 (jit_register_code, jit_inferior_init): Add debug output.
11762 (_initialize_jit): Register "debug jit" command.
11763
ccfc3d6e
TT
117642011-01-06 Tom Tromey <tromey@redhat.com>
11765
11766 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11767 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11768 and ARCH_FRAME.
11769
57126e4a
TT
117702011-01-06 Tom Tromey <tromey@redhat.com>
11771
11772 * python/py-frame.c (frapy_block): Use get_frame_block.
11773
16dfc9ce
JB
117742011-01-06 Joel Brobecker <brobecker@adacore.com>
11775
11776 Do not stop on SIGPRIO signals by default
11777 * infrun.c (_initialize_infrun): Unset signal_stop and
11778 signal_print for TARGET_SIGNAL_PRIO.
11779
b1ce2347
JB
117802011-01-06 Joel Brobecker <brobecker@adacore.com>
11781
11782 * ada-tasks.c: Fix style violation in comment.
11783
8f7e195f
JB
117842011-01-06 Joel Brobecker <brobecker@adacore.com>
11785
11786 * linespec.c (decode_compound, find_method): Remove trailing \n
11787 at end of error string.
11788 * solib-irix.c (irix_current_sos): Likewise.
11789 * varobj.c (uninstall_variable): Likewise.
11790
e9bdf92c
JB
117912011-01-06 Joel Brobecker <brobecker@adacore.com>
11792
11793 * copyright.py: New script.
11794 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11795 Launch emacs without exec'ing. Call copyright.py afterwards.
11796
3e43a32a
MS
117972011-01-05 Michael Snyder <msnyder@vmware.com>
11798
11799 * addrmap.c: Shorten lines of >= 80 columns.
11800 * arch-utils.c: Ditto.
11801 * arch-utils.h: Ditto.
11802 * ax-gdb.c: Ditto.
11803 * ax-general.c: Ditto.
11804 * bcache.c: Ditto.
11805 * blockframe.c: Ditto.
11806 * breakpoint.c: Ditto.
11807 * buildsym.c: Ditto.
11808 * c-lang.c: Ditto.
11809 * c-typeprint.c: Ditto.
11810 * charset.c: Ditto.
11811 * coffread.c: Ditto.
11812 * command.h: Ditto.
11813 * corelow.c: Ditto.
11814 * cp-abi.c: Ditto.
11815 * cp-namespace.c: Ditto.
11816 * cp-support.c: Ditto.
11817 * dbug-rom.c: Ditto.
11818 * dbxread.c: Ditto.
11819 * defs.h: Ditto.
11820 * dfp.c: Ditto.
11821 * dfp.h: Ditto.
11822 * dictionary.c: Ditto.
11823 * disasm.c: Ditto.
11824 * doublest.c: Ditto.
11825 * dwarf2-frame.c: Ditto.
11826 * dwarf2expr.c: Ditto.
11827 * dwarf2loc.c: Ditto.
11828 * dwarf2read.c: Ditto.
11829 * elfread.c: Ditto.
11830 * eval.c: Ditto.
11831 * event-loop.c: Ditto.
11832 * event-loop.h: Ditto.
11833 * exceptions.h: Ditto.
11834 * exec.c: Ditto.
11835 * expprint.c: Ditto.
11836 * expression.h: Ditto.
11837 * f-lang.c: Ditto.
11838 * f-valprint.c: Ditto.
11839 * findcmd.c: Ditto.
11840 * frame-base.c: Ditto.
11841 * frame-unwind.c: Ditto.
11842 * frame-unwind.h: Ditto.
11843 * frame.c: Ditto.
11844 * frame.h: Ditto.
11845 * gcore.c: Ditto.
11846 * gdb-stabs.h: Ditto.
11847 * gdb_assert.h: Ditto.
11848 * gdb_dirent.h: Ditto.
11849 * gdb_obstack.h: Ditto.
11850 * gdbcore.h: Ditto.
11851 * gdbtypes.c: Ditto.
11852 * gdbtypes.h: Ditto.
11853 * inf-ttrace.c: Ditto.
11854 * infcall.c: Ditto.
11855 * infcmd.c: Ditto.
11856 * inflow.c: Ditto.
11857 * infrun.c: Ditto.
11858 * inline-frame.h: Ditto.
11859 * language.c: Ditto.
11860 * language.h: Ditto.
11861 * libunwind-frame.c: Ditto.
11862 * libunwind-frame.h: Ditto.
11863 * linespec.c: Ditto.
11864 * linux-nat.c: Ditto.
11865 * linux-nat.h: Ditto.
11866 * linux-thread-db.c: Ditto.
11867 * machoread.c: Ditto.
11868 * macroexp.c: Ditto.
11869 * macrotab.c: Ditto.
11870 * main.c: Ditto.
11871 * maint.c: Ditto.
11872 * mdebugread.c: Ditto.
11873 * memattr.c: Ditto.
11874 * minsyms.c: Ditto.
11875 * monitor.c: Ditto.
11876 * monitor.h: Ditto.
11877 * objfiles.c: Ditto.
11878 * objfiles.h: Ditto.
11879 * osabi.c: Ditto.
11880 * p-typeprint.c: Ditto.
11881 * p-valprint.c: Ditto.
11882 * parse.c: Ditto.
11883 * printcmd.c: Ditto.
11884 * proc-events.c: Ditto.
11885 * procfs.c: Ditto.
11886 * progspace.c: Ditto.
11887 * progspace.h: Ditto.
11888 * psympriv.h: Ditto.
11889 * psymtab.c: Ditto.
11890 * record.c: Ditto.
11891 * regcache.c: Ditto.
11892 * regcache.h: Ditto.
11893 * remote-fileio.c: Ditto.
11894 * remote.c: Ditto.
11895 * ser-mingw.c: Ditto.
11896 * ser-tcp.c: Ditto.
11897 * ser-unix.c: Ditto.
11898 * serial.c: Ditto.
11899 * serial.h: Ditto.
11900 * solib-frv.c: Ditto.
11901 * solib-irix.c: Ditto.
11902 * solib-osf.c: Ditto.
11903 * solib-pa64.c: Ditto.
11904 * solib-som.c: Ditto.
11905 * solib-sunos.c: Ditto.
11906 * solib-svr4.c: Ditto.
11907 * solib-target.c: Ditto.
11908 * solib.c: Ditto.
11909 * somread.c: Ditto.
11910 * source.c: Ditto.
11911 * stabsread.c: Ditto.
11912 * stabsread.c: Ditto.
11913 * stack.c: Ditto.
11914 * stack.h: Ditto.
11915 * symfile-mem.c: Ditto.
11916 * symfile.c: Ditto.
11917 * symfile.h: Ditto.
11918 * symmisc.c: Ditto.
11919 * symtab.c: Ditto.
11920 * symtab.h: Ditto.
11921 * target-descriptions.c: Ditto.
11922 * target-memory.c: Ditto.
11923 * target.c: Ditto.
11924 * target.h: Ditto.
11925 * terminal.h: Ditto.
11926 * thread.c: Ditto.
11927 * top.c: Ditto.
11928 * tracepoint.c: Ditto.
11929 * tracepoint.h: Ditto.
11930 * ui-file.c: Ditto.
11931 * ui-file.h: Ditto.
11932 * ui-out.h: Ditto.
11933 * user-regs.c: Ditto.
11934 * user-regs.h: Ditto.
11935 * utils.c: Ditto.
11936 * valarith.c: Ditto.
11937 * valops.c: Ditto.
11938 * valprint.c: Ditto.
11939 * valprint.h: Ditto.
11940 * value.c: Ditto.
11941 * varobj.c: Ditto.
11942 * varobj.h: Ditto.
11943 * vec.h: Ditto.
11944 * xcoffread.c: Ditto.
11945 * xcoffsolib.c: Ditto.
11946 * xcoffsolib.h: Ditto.
11947 * xml-syscall.c: Ditto.
11948 * xml-tdesc.c: Ditto.
11949
9a2b4c1b
MS
119502011-01-05 Michael Snyder <msnyder@vmware.com>
11951
11952 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11953 * cli/cli-decode.c: Ditto.
11954 * cli/cli-dump.c: Ditto.
11955 * cli/cli-logging.c: Ditto.
11956 * cli/cli-script.c: Ditto.
11957 * cli/cli-setshow.c: Ditto.
11958 * common/signals.c: Ditto.
11959 * mi/mi-cmd-break.c: Ditto.
11960 * mi/mi-cmd-disas.c: Ditto.
11961 * mi/mi-cmd-stack.c: Ditto.
11962 * mi/mi-cmd-var.c: Ditto.
11963 * mi/mi-cmds.c: Ditto.
11964 * mi/mi-common.h: Ditto.
11965 * mi/mi-console.c: Ditto.
11966 * mi/mi-interp.c: Ditto.
11967 * mi/mi-main.c: Ditto.
11968 * osf-share/cma_attr.c: Ditto.
11969 * osf-share/cma_deb_core.h: Ditto.
11970 * osf-share/cma_debug_client.h: Ditto.
11971 * osf-share/cma_handle.h: Ditto.
11972 * osf-share/cma_mutex.h: Ditto.
11973 * osf-share/cma_stack_int.h: Ditto.
11974 * osf-share/cma_tcb_defs.h: Ditto.
11975 * python/py-auto-load.c: Ditto.
11976 * python/py-breakpoint.c: Ditto.
11977 * python/py-cmd.c: Ditto.
11978 * python/py-frame.c: Ditto.
11979 * python/py-objfile.c: Ditto.
11980 * python/py-param.c: Ditto.
11981 * python/py-progspace.c: Ditto.
11982 * python/py-symbol.c: Ditto.
11983 * python/py-value.c: Ditto.
11984 * python/python-internal.h: Ditto.
11985 * python/python.c: Ditto.
11986 * tui/tui-data.c: Ditto.
11987 * tui/tui-disasm.c: Ditto.
11988 * tui/tui-hooks.c: Ditto.
11989 * tui/tui-io.c: Ditto.
11990 * tui/tui-layout.c: Ditto.
11991 * tui/tui-regs.c: Ditto.
11992 * tui/tui-source.c: Ditto.
11993 * tui/tui-stack.c: Ditto.
11994 * tui/tui-win.c: Ditto.
11995 * tui/tui-windata.c: Ditto.
11996 * tui/tui-winsource.c: Ditto.
11997
44944448
JB
119982011-01-05 Joel Brobecker <brobecker@adacore.com>
11999
12000 * configure.ac, gdb.1: Copyright year update.
12001
ebedcab5
JK
120022011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12003
12004 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12005 this_pc_in_block, morestack_msym and morestack_name. Check for
12006 "__morestack" minimal symbol there.
12007
e5cc9f32
JB
120082011-01-03 Joel Brobecker <brobecker@adacore.com>
12009
12010 * symfile.c (find_sym_fns): Add call to dont_repeat.
12011
7b6bb8da
JB
120122011-01-01 Joel Brobecker <brobecker@adacore.com>
12013
12014 Copyright year update in most files (performed by copyright.sh).
12015
71ce852c
JB
120162011-01-01 Joel Brobecker <brobecker@adacore.com>
12017
12018 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12019
c3c1ebe8 12020For older changes see ChangeLog-2010.
c906108c
SS
12021\f
12022Local Variables:
12023mode: change-log
12024left-margin: 8
12025fill-column: 74
12026version-control: never
57da7796 12027coding: utf-8
c906108c 12028End:
This page took 1.761185 seconds and 4 git commands to generate.