gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
280711e7
MR
12011-12-08 Maciej W. Rozycki <macro@mips.com>
2 Maciej W. Rozycki <macro@codesourcery.com>
3
4 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
5 address chunks retrieved from decoded lui/addiu pairs.
6
4c2051c6
MR
72011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
8
9 * mips-tdep.c (extended_offset): Correct calculation.
10 (unpack_mips16): Correct bitfield positions used for extraction
11 of the immediate argument; fix sign-extension of same.
12 (extended_mips16_next_pc): Correct B instruction's offset
13 calculation. Correct register decoding of the BEQZ and BNEZ
14 as well as jump-register instructions. Handle compact jumps.
15
ff011ed7
TT
162011-12-08 Tom Tromey <tromey@redhat.com>
17
18 * objfiles.h (struct objfile): Remove obsolete comment.
19 * objfiles.c (build_objfile_section_table): Remove obsolete
20 comment.
21
7cd3876c
SS
222011-12-07 Stan Shebs <stan@codesourcery.com>
23
24 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
25 maintainer of the tic6x target.
26
35f73cfc
UW
272011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
28
29 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
30 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
31 (arm_deal_with_atomic_sequence_raw): Likewise.
32 (arm_deal_with_atomic_sequence): Likewise.
33 (arm_software_single_step): Call it.
34 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
35
94eae614
UW
362011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
37
38 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
39 where appropriate.
40 * s390-tdep.h: Likewise.
41
13b8d0c6
TG
422011-12-07 Tristan Gingold <gingold@adacore.com>
43
44 * machoread.c (macho_symtab_read): Do not consider N_OPT as
45 a debugging stab. Improve complaint message.
46
5436df95
MR
472011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
48
49 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
50 load adjustment if still within the prologue.
51
040dff2a
MR
522011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
53
54 * mips-tdep.c (mips32_next_pc): Fix floating point condition
55 code mask.
56
754d7c78
MR
572011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
58
59 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
60 of BLTZ* and BGEZ* instructions.
61
91912e4d
MR
622011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
63
64 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
65 performed to determine whether an address refers to standard
66 MIPS or MIPS16 code.
67 (mips16_next_pc): Use mips_pc_is_mips16 instead of
68 is_mips16_addr.
69
f0ba3972
PA
702011-12-06 Pedro Alves <pedro@codesourcery.com>
71
72 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
73 (breakpoint_xfer_memory): ... this. Change prototype. Handle
74 memory writes too.
75 * breakpoint.h (breakpoint_restore_shadows): Delete.
76 (breakpoint_xfer_memory): Declare.
77 * mem-break.c (default_memory_insert_breakpoint)
78 (default_memory_remove_breakpoint): Use target_write_raw_memory.
79 (memory_xfer_partial): Rename to ...
80 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
81 here.
82 (memory_xfer_partial): New.
83 (target_write_raw_memory): New.
84 * target.h (target_write_raw_memory): New.
85
31aba06f
DE
862011-12-06 Doug Evans <dje@google.com>
87
88 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
89
f8eba3c6
TT
902011-12-06 Joel Brobecker <brobecker@acacore.com>
91
92 * language.h (struct language_defn): Add new component
93 la_symbol_name_compare.
94 * symfile.h (struct quick_symbol_functions): Update the profile
95 of parameter "name_matcher" for the expand_symtabs_matching
96 method. Update the documentation accordingly.
97 * ada-lang.h (ada_name_for_lookup): Add declaration.
98 * ada-lang.c (ada_name_for_lookup): New function, extracted out
99 from ada_iterate_over_symbols.
100 (ada_iterate_over_symbols): Do not encode symbol name anymore.
101 (ada_expand_partial_symbol_name): Adjust profile.
102 (ada_language_defn): Add value for la_symbol_name_compare field.
103 * linespec.c: #include "ada-lang.h".
104 (iterate_name_matcher): Add language parameter. Replace call
105 to strcmp_iw by call to language->la_symbol_name_compare.
106 (decode_variable): Encode COPY if current language is Ada.
107 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
108 of name_matcher parameter. Adjust call to name_matcher.
109 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
110 (expand_partial_symbol_names): Update profile of parameter "fun".
111 * psymtab.h (expand_partial_symbol_names): Update profile of
112 parameter "fun".
113 * symtab.c (demangle_for_lookup): Update function documentation.
114 (search_symbols_name_matches): Add language parameter.
115 (expand_partial_symbol_name): Likewise.
116 * c-lang.c (c_language_defn, cplus_language_defn)
117 (asm_language_defn, minimal_language_defn): Add value for
118 la_symbol_name_compare field.
119 * d-lang.c (d_language_defn): Likewise.
120 * f-lang.c (f_language_defn): Ditto.
121 * jv-lang.c (java_language_defn): Ditto.
122 * m2-lang.c (m2_language_defn): Ditto.
123 * objc-lang.c (objc_language_defn): Ditto.
124 * opencl-lang.c (opencl_language_defn): Ditto.
125 * p-lang.c (pascal_language_defn): Ditto.
126 * language.c (unknown_language_defn, auto_language_defn)
127 (local_language_defn): Ditto.
128
1292011-12-06 Tom Tromey <tromey@redhat.com>
130
131 * linespec.c (iterate_over_all_matching_symtabs): Use
132 LA_ITERATE_OVER_SYMBOLS.
133 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
134 (find_function_symbols, decode_variable): Remove Ada special
135 case.
136 * language.h (struct language_defn) <la_iterate_over_symbols>: New
137 field.
138 (LA_ITERATE_OVER_SYMBOLS): New macro.
139 * language.c (unknown_language_defn, auto_language_defn)
140 (local_language_defn): Update.
141 * c-lang.c (c_language_defn, cplus_language_defn)
142 (asm_language_defn, minimal_language_defn): Update.
143 * d-lang.c (d_language_defn): Update.
144 * f-lang.c (f_language_defn): Update.
145 * jv-lang.c (java_language_defn): Update.
146 * m2-lang.c (m2_language_defn): Update.
147 * objc-lang.c (objc_language_defn): Update.
148 * opencl-lang.c (opencl_language_defn): Update.
149 * p-lang.c (pascal_language_defn): Update.
150 * ada-lang.c (ada_iterate_over_symbols): New function.
151 (ada_language_defn): Update.
152
1532011-12-06 Tom Tromey <tromey@redhat.com>
154 Joel Brobecker <brobecker@acacore.com>
155
156 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
157 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
158 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
159 PR shlibs/8929, PR shlibs/7393:
160 * python/py-type.c (compare_maybe_null_strings): Rename from
161 compare_strings.
162 (check_types_equal): Update.
163 * utils.c (compare_strings): New function.
164 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
165 location changes.
166 * tracepoint.c (scope_info): Update.
167 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
168 * symtab.h (iterate_over_minimal_symbols)
169 (iterate_over_some_symtabs, iterate_over_symtabs)
170 (find_pcs_for_symtab_line, iterate_over_symbols)
171 (demangle_for_lookup): Declare.
172 (expand_line_sal): Remove.
173 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
174 (lookup_symtab_callback): New functions.
175 (lookup_symtab): Rewrite.
176 (demangle_for_lookup): New function, extract from
177 lookup_symbol_in_language.
178 (lookup_symbol_in_language): Use it.
179 (iterate_over_symbols): New function.
180 (find_line_symtab): Update.
181 (find_pcs_for_symtab_line): New functions.
182 (find_line_common): Add 'start' argument.
183 (decode_line_spec): Update. Change argument to 'flags', change
184 interpretation.
185 (append_expanded_sal): Remove.
186 (append_exact_match_to_sals): Remove.
187 (expand_line_sal): Remove.
188 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
189 Remove.
190 <map_symtabs_matching_filename>: New field.
191 * stack.c (func_command): Only look in the current program space.
192 Use DECODE_LINE_FUNFIRSTLINE.
193 * source.c (line_info): Set pspace on sal. Check program space in
194 the loop. Use DECODE_LINE_LIST_MODE.
195 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
196 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
197 * python/python.c (gdbpy_decode_line): Update.
198 * psymtab.c (partial_map_expand_apply): New function.
199 (partial_map_symtabs_matching_filename): Rename from
200 lookup_partial_symbol. Update arguments.
201 (lookup_symtab_via_partial_symtab): Remove.
202 (psym_functions): Update.
203 * objc-lang.h (parse_selector, parse_method): Don't declare.
204 (find_imps): Update.
205 * objc-lang.c (parse_selector, parse_method): Now static.
206 (find_methods): Change arguments. Fill in a vector of symbol
207 names.
208 (uniquify_strings): New function.
209 (find_imps): Change arguments.
210 * minsyms.c (iterate_over_minimal_symbols): New function.
211 * linespec.h (enum decode_line_flags): New.
212 (struct linespec_sals): New.
213 (struct linespec_result) <canonical>: Remove.
214 <pre_expanded, addr_string, sals>: New fields.
215 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
216 (decode_line_full): Declare.
217 (decode_line_1): Update.
218 * linespec.c (struct address_entry, struct linespec_state, struct
219 collect_info): New types.
220 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
221 (eq_address_entry, maybe_add_address): New functions.
222 (total_number_of_methods): Remove.
223 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
224 functions.
225 (find_methods): Change arguments. Don't canonicalize input.
226 Simplify logic.
227 (add_matching_methods, add_constructors)
228 (build_canonical_line_spec): Remove.
229 (filter_results, convert_results_to_lsals): New functions.
230 (decode_line_2): Change arguments. Rewrite for new data
231 structures.
232 (decode_line_internal): Rename from decode_line_1. Change
233 arguments. Add cleanups. Update for new data structures.
234 (linespec_state_constructor, linespec_state_destructor)
235 (decode_line_full, decode_line_1): New functions.
236 (decode_indirect): Change arguments. Update.
237 (locate_first_half): Use skip_spaces.
238 (decode_objc): Change arguments. Update for new data structures.
239 Simplify logic.
240 (decode_compound): Change arguments. Add cleanups. Remove
241 fallback code, replace with error.
242 (struct decode_compound_collector): New type.
243 (collect_one_symbol): New function.
244 (lookup_prefix_sym): Change arguments. Update.
245 (compare_symbol_name, add_all_symbol_names_from_pspace)
246 (find_superclass_methods ): New functions.
247 (find_method): Rewrite.
248 (struct symtab_collector): New type.
249 (add_symtabs_to_list, collect_symtabs_from_filename): New
250 functions.
251 (symtabs_from_filename): Change API. Rename from
252 symtab_from_filename.
253 (collect_function_symbols): New function.
254 (find_function_symbols): Change API. Rename from
255 find_function_symbol. Rewrite.
256 (decode_all_digits): Change arguments. Rewrite.
257 (decode_dollar): Change arguments. Use decode_variable.
258 (decode_label): Change arguments. Rewrite.
259 (collect_symbols): New function.
260 (minsym_found): Change arguments. Rewrite.
261 (check_minsym, search_minsyms_for_name)
262 (add_matching_symbols_to_info): New function.
263 (decode_variable): Change arguments. Iterate over all symbols.
264 (symbol_found): Remove.
265 (symbol_to_sal): New function.
266 (init_linespec_result, destroy_linespec_result)
267 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
268 New functions.
269 (decode_digits_list_mode, decode_digits_ordinary): New functions.
270 * dwarf2read.c (dw2_map_expand_apply): New function.
271 (dw2_map_symtabs_matching_filename): Rename from
272 dw2_lookup_symtab. Change arguments.
273 (dwarf2_gdb_index_functions): Update.
274 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
275 * defs.h (compare_strings): Declare.
276 * cli/cli-cmds.c (compare_strings): Move to utils.c.
277 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
278 filter_sals.
279 (compare_symtabs, filter_sals): New functions.
280 * breakpoint.h (struct bp_location) <line_number, source_file>:
281 New fields.
282 (struct breakpoint) <line_number, source_file>: Remove.
283 <filter>: New field.
284 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
285 (momentary_breakpoint_from_master, add_location_to_breakpoint):
286 Update for changes to locations.
287 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
288 breakpoint.
289 (create_breakpoint_sal): Add 'filter' argument.
290 (remove_sal, expand_line_sal_maybe): Remove.
291 (create_breakpoints_sal): Remove 'sals' argument. Handle
292 pre-expanded sals and the filter.
293 (parse_breakpoint_sals): Use decode_line_full.
294 (check_fast_tracepoint_sals): Use get_sal_arch.
295 (create_breakpoint): Create a linespec_sals. Update.
296 (break_range_command): Use decode_line_full. Update.
297 (until_break_command): Update.
298 (clear_command): Update match conditions for linespec.c changes.
299 Use DECODE_LINE_LIST_MODE.
300 (say_where): Update for changes to locations.
301 (bp_location_dtor): Free 'source_file'.
302 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
303 (update_static_tracepoint): Update for changes to locations.
304 (update_breakpoint_locations): Disable ranged breakpoint if too
305 many locations match. Update.
306 (addr_string_to_sals): Use decode_line_full. Resolve all sal
307 PCs.
308 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
309 (decode_line_spec_1): Update. Change argument name to 'flags',
310 change interpretation.
311 * block.h (block_containing_function): Declare.
312 * block.c (block_containing_function): New function.
313 * skip.c (skip_function_command): Update.
314 (skip_re_set): Update.
315 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
316 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
317 * NEWS: Add entry.
318
3192011-12-06 Tom Tromey <tromey@redhat.com>
320
321 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
322 breakpoint's pspace to be NULL.
323 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
324 * breakpoint.c (init_raw_breakpoint): Conditionally set
325 breakpoint's pspace.
326 (init_breakpoint_sal): Don't set breakpoint's pspace.
327 (prepare_re_set_context): Conditionally switch program space.
328 (addr_string_to_sals): Check executing_startup on location's
329 program space.
330
3312011-12-06 Tom Tromey <tromey@redhat.com>
332
333 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
334 * breakpoint.c (should_be_inserted): Explicitly check if program
335 space is executing startup.
336 (describe_other_breakpoints): Update.
337 (disable_breakpoints_before_startup): Change executing_startup
338 earlier. Remove loop.
339 (enable_breakpoints_after_startup): Likewise.
340 (init_breakpoint_sal): Don't use bp_startup_disabled.
341 (create_breakpoint): Don't use bp_startup_disabled.
342 (update_global_location_list): Use should_be_inserted.
343 (bkpt_re_set): Update.
344
75c8c9d7
TT
3452011-12-06 Tom Tromey <tromey@redhat.com>
346
347 * python/lib/gdb/command/pretty_printers.py
348 (InfoPrettyPrinter.invoke1): Remove extra double quote.
349
7376e450
TT
3502011-12-06 Tom Tromey <tromey@redhat.com>
351
352 * NEWS: Add MI news.
353
c642a434
UW
3542011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
355
356 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
357 (S390_LAST_BREAK_REGNUM): Likewise.
358 (S390_SYSTEM_CALL_REGNUM): Likewise.
359 (S390_NUM_REGS): Update.
360
361 (s390_regmap_last_break): Add declaration.
362 (s390x_regmap_last_break): Likewise.
363 (s390_regmap_system_call): Likewise.
364
365 (tdesc_s390_linux32v1): Add declaration.
366 (tdesc_s390_linux32v2): Likewise.
367 (tdesc_s390_linux64v1): Likewise.
368 (tdesc_s390_linux64v2): Likewise.
369 (tdesc_s390x_linux64v1): Likewise.
370 (tdesc_s390x_linux64v2): Likewise.
371
372 * s390-tdep.c: Include new target description files
373 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
374 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
375 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
376 (s390_cannot_store_register): New function.
377 (s390_write_pc): Likewise.
378 (s390_dwarf_regmap): Add fields for new registers.
379 (s390_regmap_gregset): Likewise.
380 (s390x_regmap_gregset): Likewise.
381 (s390_regmap_fpregset): Likewise.
382 (s390_regmap_upper): Likewise.
383 (s390_regmap_last_break): New variable.
384 (s390x_regmap_last_break): Likewise.
385 (s390_regmap_system_call): Likewise.
386 (s390_last_break_regset): Likewise.
387 (s390x_last_break_regset): Likewise.
388 (s390_system_call_regset): Likewise.
389 (s390_upper_regset_sections): Rename to ...
390 (s390_linux64_regset_sections): ... this.
391 (s390_linux32_regset_sections): New variable.
392 (s390x_linux64_regset_sections): Likewise.
393 (s390_linux32v1_regset_sections): Likewise.
394 (s390_linux32v2_regset_sections): Likewise.
395 (s390_linux64v1_regset_sections): Likewise.
396 (s390_linux64v2_regset_sections): Likewise.
397 (s390x_linux64v1_regset_sections): Likewise.
398 (s390x_linux64v2_regset_sections): Likewise.
399 (s390_regset_from_core_section): Handle .reg-s390-last-break and
400 .reg-s390-system-call core file sections.
401 (s390_core_read_description): Check for presence of
402 .reg-s390-last-break and .reg-s390-system-call core file
403 sections and return appropriate target description.
404 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
405 "last_break" and "system_call" in target description. Install
406 appropriate gdbarch_core_regset_sections array.
407 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
408 (_initialize_s390_tdep): Initialize additional target descriptions.
409
410 * s390-nat.c: Include "elf/common.h".
411 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
412 (have_regset_last_break): New static variable.
413 (have_regset_system_call): Likewise.
414 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
415 (s390_native_collect): Likewise.
416 (fetch_regset, store_regset, check_regset): New functions.
417 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
418 and S390_SYSTEM_CALL_REGNUM.
419 (s390_linux_store_inferior_registers): Likewise.
420 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
421 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
422
423 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
424 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
425 (s390-linux32v1-expedite): Define.
426 (s390-linux32v2-expedite): Likewise.
427 (s390-linux64v1-expedite): Likewise.
428 (s390-linux64v2-expedite): Likewise.
429 (s390x-linux64v1-expedite): Likewise.
430 (s390x-linux64v2-expedite): Likewise.
431
432 * features/s390-linux32.xml: Add orig_r2 register.
433 * features/s390-linux64.xml: Likewise.
434 * features/s390x-linux64.xml: Likewise.
435 * features/s390-linux32v1.xml: New file.
436 * features/s390-linux32v2.xml: Likewise.
437 * features/s390-linux64v1.xml: Likewise.
438 * features/s390-linux64v2.xml: Likewise.
439 * features/s390x-linux64v1.xml: Likewise.
440 * features/s390x-linux64v2.xml: Likewise.
441
442 * features/s390-linux32.c: Regenerate.
443 * features/s390-linux64.c: Likewise.
444 * features/s390x-linux64.c: Likewise.
445 * features/s390-linux32v1.c: New generated file.
446 * features/s390-linux32v2.c: Likewise.
447 * features/s390-linux64v1.c: Likewise.
448 * features/s390-linux64v2.c: Likewise.
449 * features/s390x-linux64v1.c: Likewise.
450 * features/s390x-linux64v2.c: Likewise.
451
452 * regformats/s390-linux32.dat: Regenerate.
453 * regformats/s390-linux64.dat: Regenerate.
454 * regformats/s390x-linux64.dat: Regenerate.
455 * regformats/s390-linux32v1.dat: New generated file.
456 * regformats/s390-linux32v2.dat: Likewise.
457 * regformats/s390-linux64v1.dat: Likewise.
458 * regformats/s390-linux64v2.dat: Likewise.
459 * regformats/s390x-linux64v1.dat: Likewise.
460 * regformats/s390x-linux64v2.dat: Likewise.
461
336060f3
PA
4622011-12-05 Pedro Alves <pedro@codesourcery.com>
463
464 * linux-nat.c (resume_stopped_resumed_lwps): Call
465 registers_changed.
466
049e32d3
PA
4672011-12-05 Pedro Alves <pedro@codesourcery.com>
468
469 * breakpoint.c: Include record.h.
470 (breakpoints_always_inserted_mode): Return false when the record
471 target is in use.
472
5c03c7f9 4732011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
474
475 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
476 Reinstate perror_with_name call on ptrace error. Remove #if 0.
477 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
478 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
479
fbbd034e
AS
4802011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
481
482 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
483 `i'(-Wshadow).
484
a5ff8356 4852011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
486
487 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
488
4892011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
490
a5ff8356
AS
491 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
492 of `tdep'(-Wshadow).
493
93f2a35e
JK
4942011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 Fix compilation --without-expat.
497 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
498 from ...
499 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
500
2268b414
JK
5012011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
502 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
505 * features/library-list-svr4.dtd: New file.
506 * remote.c (PACKET_qXfer_libraries_svr4): New.
507 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
508 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
509 * solib-svr4.c (struct svr4_library_list): New.
510 [HAVE_LIBEXPAT]: Include xml-support.h.
511 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
512 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
513 [HAVE_LIBEXPAT] (svr4_library_list_children)
514 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
515 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
516 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
517 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
518 (svr4_read_so_list): Extend the corruption message by addresses.
519 (svr4_current_sos): New variable library_list, call
520 svr4_current_sos_via_xfer_libraries.
521 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
522
585861ea
JK
5232011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 PR threads/13448
526 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
527 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
528
9750bca9
JK
5292011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 PR breakpoints/13346
532 * dwarf2read.c (process_psymtab_comp_unit): Set
533 PSYMTABS_ADDRMAP_SUPPORTED.
534 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
535 validity. New field psymtabs_addrmap_supported.
536 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
537 psymtabs_addrmap_supported.
538 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
539 !PSYMTABS_ADDRMAP_SUPPORTED.
540 (dump_psymtab, maintenance_info_psymtabs): Print also
541 psymtabs_addrmap_supported.
542
f28c316a
DE
5432011-12-01 Doug Evans <dje@google.com>
544
545 * python/py-type.c (type_object_methods): Fix "array" doc string.
546
fc0ae648
AB
5472011-12-01 Andrew Burgess <aburgess@broadcom.com>
548
549 * source.c (print_source_lines_base): Fix missing braces on else
550 clause leading to additional output.
551
d6db1fab
UW
5522011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
553
554 * s390-nat.c (SUBOFF): Remove.
555 (s390_native_supply, s390_native_collect): New functions.
556 (supply_gregset, supply_fpregset): Use s390_native_supply.
557 (fill_gregset, fill_fpregset): Use s390_native_collect.
558
559 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
560 (s390_unwind_pseudo_register): New function.
561 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
562 registers instead of PC and CC.
563 (s390_backchain_frame_unwind_cache): Likewise.
564 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
565 full GPR pseudos.
566 (s390_trad_frame_prev_register): New function.
567 (s390_frame_prev_register): Use it.
568 (s390_sigtramp_frame_prev_register): Likewise.
569 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
570 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
571 special callback to unwind any pseudo.
572
573 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
574 * features/s390-core64.xml: Likewise.
575 * features/s390x-core64.xml: Likewise.
576 * features/s390-linux32.c: Regenerate.
577 * features/s390-linux64.c: Likewise.
578 * features/s390x-linux64.c: Likewise.
579
1dd635ac
UW
5802011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
581
582 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
583
0161e4b9
UW
5842011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
585
586 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
587 instruction. Add more diagnostic output.
588
0c36327f
AS
5892011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
590
591 * MAINTAINERS (Write After Approval): Add myself to the list.
592
b4264740
SD
5932011-11-29 Sanjoy Das <sdas@igalia.com>
594
595 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
596 (jit_bfd_try_read_symtab): Fix comments.
597
87326c78
DD
5982011-11-28 DJ Delorie <dj@redhat.com>
599
600 * NEWS: Mention RL78 simulator.
601
1e3a8f45
JB
6022011-11-28 Joel Brobecker <brobecker@adacore.com>
603
604 * symfile.h (struct quick_symbol_functions): Fix the documentation
605 of field map_matching_symbols, as symbols are sorted using
606 strcmp_iw_ordered, not strcmp_iw.
607
265e52c3
JB
6082011-11-28 Paul Hilfinger <hilfinger@adacore.com>
609
610 * symfile.h (struct quick_symbol_functions): Update the
611 documentation for field map_matching_symbols.
612
1a1d5513
JB
6132011-11-28 Joel Brobecker <brobecker@adacore.com>
614
615 * ada-lang.c (compare_names): Fix wrong return value in case
616 string1 starts with the same contents as string2, followed
617 by an underscore that do not start a symbol name suffix.
618
5d9c5995
PM
6192011-11-28 Phil Muldoon <pmuldoon@redhat.com>
620
621 PR python/13369
622 PR python/13374
623
624 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
625 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
626 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
627 exceptions.
628 * python/py-type.c (typy_strip_typedefs): Ditto.
629 (typy_legacy_template_argument): Ditto.
630 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
631 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
632
2bf50f6f
JB
6332011-11-27 Joel Brobecker <brobecker@acacore.com>
634
635 * remote.c (remote_get_tracepoint_status): Delete addrbuf
636 local variable. Avoid use of sprintf_vma.
637
744ab88c
SD
6382011-11-27 Sanjoy Das <sdas@igalia.com>
639
640 Fix regression in jit.exp.
641 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
642 (jit_register_code): Set the jit_objfile_data field to the correct
643 value.
644
46ad3598
UW
6452011-11-25  Uros Bizjak  <ubizjak@gmail.com>
646
647 * alpha-tdep.c (br_opcode): New.
648 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
649 (alpha_deal_with_atomic_sequence): New function.
650 (alpha_gdbarch_init): Handle single stepping of atomic sequences
651 with alpha_deal_with_atomic_sequence.
652
e4c5f296
TG
6532011-11-24 Tristan Gingold <gingold@adacore.com>
654
655 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
656 fields. Add oso_sym, end_sym and nbr_syms.
657 (macho_register_oso): Change interface.
658 (macho_symtab_add_minsym): New function.
659 (macho_symtab_read): Rewritten.
660 (get_archive_prefix_len): Remove trailing blanks.
661 (oso_el_compare_name): Add comment.
662 (struct macho_sym_hash_entry): New structure.
663 (macho_relocate_common_syms): Remove.
664 (macho_sym_hash_newfunc): New function.
665 (macho_resolve_oso_sym_with_minsym): Likewise.
666 (macho_add_oso_symfile): Rewritten.
667 (macho_symfile_read_all_oso): Remove trailing blanks.
668 Adjust code to free oso vector.
669 (macho_symfile_read): Likewise.
670 Move code to initialize minimal symbol
671
130854df
MR
6722011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
673
674 * mips-tdep.c (extended_offset): Fix formatting.
675
3d7bb9d9
DE
6762011-11-23 Doug Evans <dje@google.com>
677
678 * dwarf2read.c (dw2_lookup_symtab): Add comment.
679 (dw2_expand_symtabs_with_filename): Ditto.
680 (dw2_expand_symtabs_matching): Ditto.
681 (dw2_map_symbol_filenames): Ditto.
682
1fbf5ada
JB
6832011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
684
685 * ada-lang.c (assign_aggregate): Minor reformatting.
686
d984108d
JB
6872011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
688
689 * ada-lang.c (assign_aggregate): Remove declaration of local
690 variable `i' which is shadowing another variable with the same
691 name declared in the outer scope.
692
18af8284
JB
6932011-11-23 Joel Brobecker <brobecker@adacore.com>
694
695 * ada-lang.c (get_base_type): Renames base_type. Adjust all
696 calls throughout this file.
697
1fc7b5d7
JB
6982011-11-23 Joel Brobecker <brobecker@adacore.com>
699
700 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
701 FormatMessage.
702
36dfb11c
TT
7032011-11-22 Tom Tromey <tromey@redhat.com>
704
705 PR mi/8444:
706 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
707 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
708 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
709 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
710 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
711 (print_it_catch_syscall, print_it_catch_exec)
712 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
713 (bpstat_print): Add 'kind' argument. Handle
714 TARGET_WAITKIND_LOADED.
715 * infrun.c (normal_stop): Update for bpstat_print change. Don't
716 handle TARGET_WAITKIND_LOADED here.
717 * breakpoint.h (bpstat_print): Update.
718
5bd6aa83
TT
7192011-11-22 Tom Tromey <tromey@redhat.com>
720
721 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
722
f5afdc18
TT
7232011-11-22 Tom Tromey <tromey@redhat.com>
724
725 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
726 Use static_assert to check the size of
727 async_reason_string_lookup.
728 * common/gdb_assert.h (static_assert): New macro.
729
a3769e0c
AM
7302011-11-22 Alan Modra <amodra@gmail.com>
731
732 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
733 destination calculation. Don't expect >> to sign extend. Don't
734 add a break if branch lands inside the sequence anywhere.
735
56767571
KS
7362011-11-21 Keith Seitz <keiths@redhat.com>
737
738 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
739 -var-evaluate-expression of an enumeration and fix expected result.
740 * gdb.mi/mi2-varvdisplay.exp: Likewise.
741
8443c207
KY
7422011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
743
744 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
745 the case where osdata->items is empty. Rename column names to a
746 canonical form to avoid problems with unusual column names.
747
97643830
YQ
7482011-11-21 Yao Qi <yao@codesourcery.com>
749
750 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
751
f196051f
SS
7522011-11-20 Stan Shebs <stan@codesourcery.com>
753
754 * NEWS: Mention tracepoint additions.
755 * breakpoint.h (struct tracepoint): New field traceframe_usage.
756 * breakpoint.c (print_one_breakpoint_location): Identify
757 tracepoints as such when reporting hit counts, report
758 trace buffer usage.
759 (create_tracepoint_from_upload): Copy status info.
760 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
761 add fields user_name, notes, start_time, stop_time.
762 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
763 * tracepoint.c (trace_user): New global.
764 (trace_notes): New global.
765 (trace_stop_notes): New global.
766 (start_tracing): Add argument and trace note handling.
767 (stop_tracing): Ditto.
768 (trace_start_command): Add notes argument.
769 (trace_stop_command): Ditto.
770 (trace_status_command): Report additional status info.
771 (trace_status_mi): Similarly.
772 (trace_save): Update, record tracepoint status.
773 (set_disconnected_tracing): Call target method directly.
774 (send_disconnected_tracing_value): Remove.
775 (set_trace_user): New function.
776 (set_trace_notes): New function.
777 (set_trace_stop_notes): New function.
778 (parse_trace_status): Handle additional status.
779 (parse_tracepoint_status): New function.
780 (parse_tracepoint_definition): Call it.
781 (tfile_get_tracepoint_status): New function.
782 (init_tfile_ops): Use it.
783 (_initialize_tracepoint): Add new setshows.
784 * target.h (struct target_ops): New methods to_get_tracepoint_status
785 and to_set_trace_notes.
786 (target_get_tracepoint_status): New macro.
787 (target_set_trace_notes): New macro.
788 * target.c (update_current_target): Add new methods.
789 * remote.c (remote_get_tracepoint_status): New function.
790 (remote_set_trace_notes): New function.
791 (init_remote_ops): Add them.
792 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
793 (mi_cmd_trace_stop): Ditto.
794
3623dc3a
SD
7952011-11-20 Sanjoy Das <sdas@igalia.com>
796
797 * jit.c: Include regcache.h.
798 (jit_gdbarch_data, jit_frame_unwind): New static variables.
799 (jit_unwind_reg_set_impl, free_reg_value_impl)
800 (jit_unwind_reg_get_impl, jit_frame_sniffer)
801 (jit_frame_unwind_stop_reason, jit_frame_this_id)
802 (jit_frame_prev_register, jit_dealloc_cache)
803 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
804 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
805 jit_prepend_unwinder.
806 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
807
1825a88d
SD
8082011-11-20 Sanjoy Das <sdas@igalia.com>
809
810 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
811 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
812 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
813 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
814 (finalize_symtab, jit_object_close_impl)
815 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
816 (free_objfile_data): New functions.
817 (_initialize_jit): Register jit_objfile_data with a proper cleanup
818 function.
819
784c47ee
SD
8202011-11-20 Sanjoy Das <sdas@igalia.com>
821
822 * jit.c: Include gdb-dlfcn.h.
823 (loaded_jit_reader, reader_init_fn_sym): New static variables.
824 (jit_reader_load, jit_reader_load_command)
825 (jit_reader_unload_command): New functions.
826 (_initialize_jit): Add commands "jit-reader-load" and
827 "jit-reader-unload".
828
a2d08b9e
SD
8292011-11-20 Sanjoy Das <sdas@igalia.com>
830
831 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
832 * config.in: Add new #define HAVE_LIBDL.
833 * configure.ac: Add check for -ldl.
834 * configure: Re-generated by autoconf.
835 * gdb-dlfcn.c: New file.
836 * gdb-dlfcn.h: New file.
837
b8e0a31c
SD
8382011-11-20 Sanjoy Das <sdas@igalia.com>
839
840 * config.in: Add new #defines: JIT_READER_DIR and
841 JIT_READER_DIR_RELOCATABLE.
842 * configure.ac: New GDB directory entry for jit-reader-dir.
843 * configure: Re-generated by autoconf.
844 * jit.c: New static variable: const char *jit_reader_dir.
845 (_initialize_jit): Relocate jit_reader_dir.
846
f997c383
SD
8472011-11-20 Sanjoy Das <sdas@igalia.com>
848
849 * Makefile.in: Add jit-reader.h as a header. Have it installed in
850 $(includedir)/gdb.
851 * configure.ac: Generate a correct value for TARGET_PTR for
852 jit-reader.h. Tell configure to generate jit-reader.h from
853 jit-reader.in.
854 * configure: Re-generated by autoconf.
855 * jit-reader.in: New file.
856 * jit.c: Include jit-reader.h.
857
dc8c0494
SD
8582011-11-20 Sanjoy Das <sdas@igalia.com>
859
860 * MAINTAINERS (Write After Approval): Add myself to the list.
861
01efb936
UW
8622011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
863
864 * findvar.c (read_frame_register_value): Respect value_offset
865 of the register value. Remove big-endian special case.
866
732f3f12
TT
8672011-11-18 Tom Tromey <tromey@redhat.com>
868
869 PR build/7196:
870 * remote.c (putpkt_for_catch_errors): New function.
871 (remote_kill): Use it.
872
bfccc43c
YQ
8732011-11-18 Yao Qi <yao@codesourcery.com>
874
875 * breakpoint.c (create_breakpoint): Produce query message according to
876 breakpoint's type.
877 Allocate tracepoint per correct type.
878 Don't check SALs for pending fast tracepoints.
879 * tracepoint.c (process_tracepoint_on_disconnect): New.
880 (disconnect_tracing): Call process_tracepoint_on_disconnect.
881
3ea46bff
YQ
8822011-11-18 Yao Qi <yao@codesourcery.com>
883
884 * breakpoint.c (install_breakpoint): Add one more parameter so that
885 update_global_location_list is called conditionally.
886 (create_fork_vfork_event_catchpoint): Update.
887 (create_syscall_event_catchpoint): Update.
888 (create_breakpoint_sal): Update.
889 (create_breakpoint_sal): Update. Call do_cleanups before
890 install_breakpoint.
891 * ada-lang.c (create_ada_exception_catchpoint): Update.
892 * breakpoint.h (install_breakpoint): Update declaration.
893
598cfb71
UW
8942011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
895
896 * spu-tdep.c (spu_return_value): Fix handling of
897 TYPE_CALLING_CONVENTION annotation.
898
caf4328c
UW
8992011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
900
901 * skip.c (skip_function_command): Work around uninitialized
902 variable warning.
903
2b54dda2
DM
9042011-11-16 David S. Miller <davem@davemloft.net>
905
906 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
907 'tv_usec' to long for printf since these fields have a type which
908 varies.
909
93bf33fd
DE
9102011-11-15 Doug Evans <dje@google.com>
911
912 * buildsym.c (add_symbol_to_list): Delete outdated comment.
913
9cc10fd1
PK
9142011-11-15 Paul Koning <paul_koning@dell.com>
915
916 * python/py-type.c (typy_get_composite): New function.
917 (typy_nonzero): New function.
918 (typy_values): Rename from typy_fields.
919 (typy_fields): New function.
920 (typy_length): Raise exception if not struct, union, or enum type.
921 (typy_getitem): Ditto.
922 (typy_has_key): Ditto.
923 (typy_make_iter): Ditto.
924
c011a4f4
DE
9252011-11-15 Doug Evans <dje@google.com>
926
927 * NEWS: Mention new parameter basenames-may-differ.
928 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
929 ! basenames_may_differ.
930 * psymtab.c (lookup_partial_symtab): Ditto.
931 * symtab.c (lookup_symtab): Ditto.
932 (basenames_may_differ): New global.
933 (_initialize_symtab): New parameter basenames-may-differ.
934 * symtab.h (basenames_may_differ): Declare.
935
865ecab4
LM
9362011-11-15 Pedro Alves <pedro@codesourcery.com>
937 Luis Machado <lgustavo@codesourcery.com>
938
939 * auxv.c: Include observer.h.
940 (auxv_inferior_data_cleanup): New.
941 (invalidate_auxv_cache_inf): New.
942 (invalidate_auxv_cache): New.
943 (get_auxv_inferior_data): New.
944 (auxv_inferior_data): New static global.
945 (auxv_info): New structure.
946 (target_auxv_search): Use get_auxv_inferior_data instead of
947 target_read_alloc and don't free cached buffers.
948 (fprint_target_auxv): Likewise
949 (_initialize_auxv): Register per-inferior auxv cache and register
950 observers to invalidate auxv cache when needed.
951
ed59ded5
DE
9522011-11-14 Doug Evans <dje@google.com>
953
954 Make "!" an alias for "shell".
955 * NEWS: Add mention.
956 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
957 adding "!" command, always add it.
958 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
959 command of length one.
960
405f8e94
SS
9612011-11-14 Stan Shebs <stan@codesourcery.com>
962 Kwok Cheung Yeung <kcy@codesourcery.com>
963
964 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
965 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
966 the minimum instruction size for fast tracepoints.
967 * target.h (struct target_ops): Add new method
968 to_get_min_fast_tracepoint_insn_len.
969 (target_get_min_fast_tracepoint_insn_len): New.
970 * target.c (update_current_target): Set up new target operation.
971 * remote.c (remote_write_bytes_aux): Fix typo.
972 (remote_get_min_fast_tracepoint_insn_len): New.
973 (init_remote_ops): Initialize new field.
974
3e05895e
TT
9752011-11-14 Tom Tromey <tromey@redhat.com>
976
977 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
978 (encode_actions): Likewise.
979
1e4d1764
YQ
9802011-11-14 Yao Qi <yao@codesourcery.com>
981
982 * remote.c (struct remote_state): <install_in_trace> new field.
983 (PACKET_InstallInTrace): New enum value.
984 (remote_install_in_trace_feature): Support InstallInTrace.
985 (remote_supports_install_in_trace): Likewise.
986 (remote_protocol_features): Likewise.
987 (_initialize_remote): Likewise.
988 (remote_can_download_tracepoint): New.
989 * target.h (struct target): New field
990 `to_can_download_tracepoint'.
991 (target_can_download_tracepoint): New macro.
992 * target.c (update_current_target): Update.
993 * breakpoint.h (struct bp_location): Add comment on field
994 `duplicate'.
3ccd4ac6
YQ
995 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
996 and tracepoint.
1e4d1764
YQ
997 (remove_breakpoints): Don't remove tracepoints.
998 (tracepoint_locations_match ): New.
999 (breakpoint_locations_match): Call it.
1000 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1001 (download_tracepoint_locations): New.
1002 (update_global_location_list): Call it.
1003 * tracepoint.c (find_matching_tracepoint): Delete.
1004 (find_matching_tracepoint_location): Renamed from
1005 find_matching_tracepoint. Return bp_location rather than
1006 tracepoint.
1007 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1008 tracepoint is found.
1009
e8ba3115
YQ
10102011-11-14 Yao Qi <yao@codesourcery.com>
1011
1012 * target.h (struct target): <to_download_tracepoint> Change type
1013 of parameter from tracepoint to bp_location.
1014 * target.c (update_current_target): Update.
1015 * tracepoint.c (start_tracing): Update.
1016 * remote.c (remote_download_tracepoint): Remove loop for each location
1017 of a tracepoint.
1018
edcc485a
MR
10192011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1020
1021 * i386-nat.c (i386_insert_hw_breakpoint): Call
1022 i386_update_inferior_debug_regs.
1023 (i386_remove_hw_breakpoint): Likewise.
1024
3742cc8b
YQ
10252011-11-14 Yao Qi <yao@codesourcery.com>
1026
1027 * breakpoint.c (init_raw_breakpoint): Call
1028 add_location_to_breakpoint to replace duplicated code.
1029 (add_location_to_breakpoint): Adjust the breakpoint's
1030 address prior to allocating a location.
1031
71eba9c2 10322011-11-12 Matt Rice <ratmice@gmail.com>
1033
1034 * macrocmd.c (macro_no_macro_info): New function.
1035 (macro_expand_command): Use macro_no_macro_info.
1036 (macro_expand_once_command): Ditto.
1037 (info_macro_command): Add argument processing,
1038 move info_definitions_command here.
1039 (_initialize_macrocmd): Remove info definitions command.
1040 Add arguments to info macro help text.
1041 * NEWS: Replace info definitions command with new info macro options.
1042
731971ed
KS
10432011-11-11 Keith Seitz <keiths@redhat.com>
1044
1045 PR gdb/12843
1046 * linespec.c (locate_first_half): Keep ':' if it looks
1047 like it could be part of a Windows path starting with
1048 a drive letter.
1049
6953d224
PA
10502011-11-10 Pedro Alves <pedro@codesourcery.com>
1051
1052 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1053 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1054
0c94aa73
PA
10552011-11-10 Pedro Alves <pedro@codesourcery.com>
1056
1057 * target.c (target_waitstatus_to_string): Handle
1058 TARGET_WAITKIND_NO_RESUMED.
1059
f6b47be4
DE
10602011-11-10 Doug Evans <dje@google.com>
1061
74e2f255
DE
1062 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1063 `need_fullname'.
1064 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1065 (map_partial_symbol_filenames): Ditto. All callers updated.
1066 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1067 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1068 parameter need_fullname.
1069
256f06f3
DE
1070 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1071 * source.c (symtab_to_fullname): Ditto.
1072
50f182aa
DE
1073 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1074 * gdb-demangle.h: ... here. New file.
1075 * demangle.c: #include "gdb-demangle.h".
1076 (_initialize_demangler): Use initialize_file_ftype for prototype.
1077 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1078 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1079 from utils.c
1080 * utils.c: Update. #include "gdb-demangle.h".
1081 * symtab.h (asm_demangle): Delete.
1082 (demangle): Move declaration next to use.
1083 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1084 * dwarf2read.c: #include "gdb-demangle.h".
1085 * gnu-v2-abi.c: Ditto.
1086 * jv-typeprint.c: Ditto.
1087 * mdebugread.c: Ditto.
1088 * p-typeprint.c: Ditto.
1089 * stabsread.c: Ditto.
1090 * printcmd.c: Ditto.
1091 (asm_demangle): Delete declaration.
1092 * tui/tui-stack.c: #include "gdb-demangle.h".
1093
f6b47be4
DE
1094 * python/py-type.c (typy_fields_items): Call check_typedef.
1095
22355c90
JB
10962011-11-10 Joel Brobecker <brobecker@adacore.com>
1097
1098 * findvar.c (read_frame_register_value): Read the correct bytes
1099 from registers on big-endian architectures.
1100
bd119cf1 11012011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1102
1103 * procfs.c (load_syscalls): Make a cleanup.
1104 (open_procinfo_files): fd==0 is ok.
1105
0a86f364
JB
11062011-11-10 Joel Brobecker <brobecker@adacore.com>
1107
1108 * procfs.c (iterate_over_mappings): Call do_cleanups before
1109 returning.
1110
9bc118a5
DE
11112011-11-09 Doug Evans <dje@google.com>
1112
1113 * gdbtypes.c (check_typedef): Document that this function can
1114 throw an exception.
1115
a7860e76
TT
11162011-11-09 Tom Tromey <tromey@redhat.com>
1117
1118 PR c++/13342:
1119 * valops.c (value_full_object): Return early if real type is
1120 smaller than the enclosing type.
1121
60965737
YQ
11222011-11-08 Yao Qi <yao@codesourcery.com>
1123
1124 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1125
72a2e3dc
MI
11262011-11-08 Meador Inge <meadori@codesourcery.com>
1127
1128 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1129 register when the frame can't be determined.
1130 * arm-tdep.c (arm_analyze_prologue): Ditto.
1131
ce3b0ff7
SS
11322011-11-07 Stan Shebs <stan@codesourcery.com>
1133
1134 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1135
2b914b52
JB
11362011-11-07 Joel Brobecker <brobecker@adacore.com>
1137
1138 * infrun.c (handle_inferior_event): Minor reformatting.
1139
6f809020
DE
11402011-11-05 Doug Evans <dje@google.com>
1141
1142 * source.c (forget_cached_source_info_for_objfile): Move call to
1143 objfile->sf->qf->forget_cached_source_info outside of
1144 ALL_OBJFILE_SYMTABS loop.
1145 (forget_cached_source_info): Delete unused variable `s'.
1146
75d12218
JK
11472011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1148
1149 * i386-nat.c (dr_ref_count): Remove unused variable.
1150
e565b837
DE
11512011-11-05 Doug Evans <dje@google.com>
1152
1153 * main.c (captured_main): Set lim_at_start before calling
1154 make_command_stats_cleanup.
1155
0a1c4d10
DE
11562011-11-04 Doug Evans <dje@google.com>
1157
1158 * utils.c: #include "timeval-utils.h".
1159 (cmd_stats): Rename start_time to start_cpu_time.
1160 New member start_wall_time.
1161 (report_command_stats): Report wall time.
1162 (make_command_stats_cleanup): Record start wall time.
1163
a1d705ee
TT
11642011-11-04 Tom Tromey <tromey@redhat.com>
1165
1166 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1167
81de56be
RO
11682011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169
1170 * coff-pe-read.c: Include defs.h before bfd.h.
1171
3ab1ec27
PM
11722011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1173
1174 PR Python/13345
1175
1176 * python/python.c (python_run_simple_file): Expand tilde in path.
1177
cd829959
PM
11782011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1179
1180 PR Python/13363
1181
1182 * python/py-type.c (typy_lookup_type): Do not return a type in
1183 an exception handler.
1184
080ad648
JK
11852011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1186 Eli Zaretskii <eliz@gnu.org>
1187
1188 * linux-nat.c (_initialize_linux_nat): Improve help
1189 for `info proc stat', `info proc status', `info proc cwd',
1190 `info proc cmdline' and `info proc exe'.
1191
3065dfb6
SS
11922011-11-02 Stan Shebs <stan@codesourcery.com>
1193
1194 String collection for tracepoints.
1195 * NEWS: Mention string collection.
1196 * common/ax.def (tracenz): New bytecode.
1197 * ax-gdb.h (trace_string_kludge): Declare.
1198 * ax-gdb.c: Include valprint.h and c-lang.h.
1199 (trace_string_kludge): New global.
1200 (gen_traced_pop): Add string case.
1201 (agent_command): Add string case.
1202 * tracepoint.h (decode_agent_options): Declare.
1203 * tracepoint.c: Include cli-utils.h.
1204 (decode_agent_options): New function.
1205 (validate_actionline): Call it.
1206 (encode_actions_1): Ditto.
1207 * target.h (struct target_ops): New method to_supports_string_tracing.
1208 (target_supports_string_tracing): New macro.
1209 * target.c (update_current_target): Add to_supports_string_tracing.
1210 * remote.c (struct remote_state): New field string_tracing.
1211 (remote_string_tracing_feature): New function.
1212 (remote_protocol_features): New feature tracenz.
1213 (remote_supports_string_tracing): New function.
1214 (init_remote_ops): Set to_supports_string_tracing.
1215
f179e162
JK
12162011-11-02 Pedro Alves <pedro@codesourcery.com>
1217 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 * linux-nat.c: Include cli/cli-utils.h.
1220 (enum info_proc_what): New.
1221 (linux_nat_info_proc_cmd): Rename to ...
1222 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1223 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1224 status_f and stat_f from WHAT. Throw error on extra parameters.
1225 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1226 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1227 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1228 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1229 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1230 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1231 `info proc cmdline', `info proc exe' and `info proc all' as real
1232 subcommands of `info proc'.
1233
7b35ec7f 12342011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1235
1236 * Makefile.in: (SFILES): Add skip.c.
1237 (HFILES_NO_SRCDIR): Add skip.h.
1238 (COMMON_OBS): Add skip.o.
1239 * skip.h, skip.c: New.
1240 * breakpoint.h (set_default_breakpoint): Remove.
1241 (get_sal_arch): Declare.
1242 * breakpoint.c: Remove default_breakpoint_valid,
1243 default_breakpoint_address, default_breakpoint_symtab,
1244 default_breakpoint_line, default_breakpoint_pspace variables.
1245 (get_sal_arch): Make public.
1246 (set_default_breakpoint): Remove.
1247 (parse_breakpoint_sals, create_breakpoint, clear_command,
1248 decode_line_spec_1): Remove uses of default_breakpoint variables;
1249 replaced with function calls into stack.c.
1250 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1251 * cli/cli-cmds.c: Add skiplist.
1252 (init_cmd_lists): Initialize skiplist.
1253 (init_cli_cmds): Fix comment (classes of commands appear in
1254 alphabetical order).
1255 * infrun.c (handle_inferior_event): Add check that we don't step into
1256 a function whose pc is marked for skip.
1257 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1258 last_displayed_addr, last_displayed_symtab, last_displayed_line
1259 variables.
1260 (set_last_displayed_sal): New static function.
1261 (print_frame_info): Switch call to set_default_breakpoint to call to
1262 set_last_displayed_sal.
1263 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1264 get_last_displayed_pspace, get_last_displayed_addr,
1265 get_last_displayed_symtab, get_last_displayed_line,
1266 get_last_displayed_sal): New public functions.
1267 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1268 get_last_displayed_pspace, get_last_displayed_addr,
1269 get_last_displayed_symtab, get_last_displayed_line,
1270 get_last_displayed_sal): Declare.
1271
b60e1588
JL
12722011-11-01 Justin Lebar <justin.lebar@gmail.com>
1273
1274 * MAINTAINERS (Write After Approval): Add myself to the list.
1275
d31647d2
YQ
12762011-10-29 Yao Qi <yao@codesourcery.com>
1277
1278 * infcmd.c (disconnect_command): Call disconnect_tracing.
1279
b1d96efd
JK
12802011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Code cleanup.
1283 * symtab.c (skip_prologue_sal): Code reformatting.
1284
4dfb2365
JK
12852011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1286
1287 PR symtab/13208
1288 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1289 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1290 SAI.
1291
0e5bf2a8
PA
12922011-10-28 Pedro Alves <pedro@codesourcery.com>
1293
1294 * linux-nat.c (linux_nat_filter_event): Remove `options'
1295 parameter, and dead code that used it. If we're handling a
1296 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1297 in our lwp list, re-add it.
1298 (check_zombie_leaders): New.
1299 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1300 wait for children with WNOHANG, and always wait for all children.
1301 Don't check for no resumed children upfront. Simplify wait loop.
1302 Check for zombie thread group leaders after handling all wait
1303 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1304 unwaited-for children left.
1305 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1306 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1307 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1308 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1309
821296b7
SA
13102011-10-28 Sterling Augustine <saugustine@google.com>
1311
1312 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1313 * symtab.c (free_completion_list): New function.
1314 (do_free_completion_list): Likewise.
1315 (default_make_symbol_completion_list_break_on): New variable
1316 back_to. Call make_cleanup and discard_cleanups.
1317 (make_source_files_completion_list): Likewise.
1318
03c3051a
PK
13192011-10-28 Paul Koning <paul_koning@dell.com>
1320
1321 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1322 * NEWS: Mention deep_items.
1323
8e7ebaf5
PA
13242011-10-28 Alen Skondro <askondro@gmail.com>
1325
8de33dc2 1326 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1327 defined.
1328
e0c6ef61
MI
13292011-10-27 Meador Inge <meadori@codesourcery.com>
1330
1331 * MAINTAINERS (Write After Approval): Add myself to the list.
1332
b56d6f31
JB
13332011-10-27 Joel Brobecker <brobecker@adacore.com>
1334
1335 * value.h (read_frame_register_value): Add declaration.
1336 * findvar.c (read_frame_register_value): New function.
1337 (value_from_register): Use read_frame_register_value
1338 instead of get_frame_register_value + value_contents_copy
1339 to get value contents.
1340
d234ef5c
DE
13412011-10-27 Doug Evans <dje@google.com>
1342
1343 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1344 source_script_from_stream if it may have been found on the search path.
1345 * python/py-auto-load.c (source_section_scripts): Pass full path to
1346 source_python_script_for_objfile.
1347 * python/python.c (source_python_script): Delete stream parameter.
1348 All callers updated.
1349 (source_python_script_for_objfile): Ditto.
1350 * python/python-internal.h (source_python_script_for_objfile): Update.
1351 * python/python.h (source_python_script): Update.
1352
d849d44f
TT
13532011-10-27 Tom Tromey <tromey@redhat.com>
1354
1355 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1356 (ada_sals_for_line): Remove declarations.
1357
2231f1fb
KP
13582011-10-27 Kevin Pouget <kevin.pouget@st.com>
1359
1360 Move unwind reasons to an external .def file
1361 * frame.c (frame_stop_reason_string): Rewrite using
1362 unwind_stop_reasons.def.
1363 * frame.h (enum unwind_stop_reason): Likewise.
1364 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1365 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1366 constants for bound-checking.
1367 * unwind_stop_reasons.def: New file.
1368 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1369 instead of a distinct value.
1370
f77b9a5d
PM
13712011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1372
1373 PR python/13331
1374
1375 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1376 (convert_values_to_python): Return on Python tuple allocation
1377 failure. Return NULL on value conversion error.
1378
76dce0be
PM
13792011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1380
1381 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1382 (bppy_set_task): Ditto.
1383 (bppy_delete_breakpoint): Ditto.
1384 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1385 (gdbpy_lookup_global_symbol): Ditto.
1386 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1387 * python/py-frame.c (frapy_is_valid): Ditto.
1388 (frame_info_to_frame_object): Ditto.
1389 * python/py-type.c (typy_lookup_type): Ditto.
1390 (typy_getitem): Ditto.
1391 (typy_has_key): Ditto.
1392 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1393
f17b6955
JB
13942011-10-26 Joel Brobecker <brobecker@adacore.com>
1395
1396 * gdbarch.h: Regenerate.
1397
86ba1042
JB
13982011-10-26 Meador Inge <meadori@codesourcery.com>
1399
1400 * gdbarch.sh (function_list): Use 'pstring' when printing
1401 'gcore_bfd_target'.
1402 * gdbarch.c: Regenerate.
1403
c34fd852
UW
14042011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1405
1406 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1407 and frame caches if PTID refers to all threads of a process.
1408
931bb47f
UW
14092011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1410
1411 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1412 to create_breakpoint.
1413
88aed45e
UW
14142011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1415
1416 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1417 (ppc_sysv_abi_push_dummy_call): Use it.
1418 (do_ppc_sysv_return_value): Likewise.
1419 (ppc64_sysv_abi_push_dummy_call): Likewise.
1420 (ppc64_sysv_abi_return_value): Likewise.
1421
3eaf3fa2
PK
14222011-10-26 Paul Koning <paul_koning@dell.com>
1423
1424 * python/lib/gdb/types.py (deepitems): New function.
1425
913460fc
PK
14262011-10-25 Paul Koning <paul_koning@dell.com>
1427
1428 PR python/13327
1429
1430 * python/py-value.c (value_to_value_object): Remove fetching of
1431 the value if it was lazy.
1432 (valpy_get_is_lazy): New function.
1433 (valpy_fetch_lazy): New function.
1434
2b5b9d09
JB
14352011-10-24 Joel Brobecker <brobecker@adacore.com>
1436
1437 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1438 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1439
e21ffe51
PA
14402011-10-24 Pedro Alves <pedro@codesourcery.com>
1441
1442 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1443 event, in non-stop, if not stopping, make sure the new lwp has
1444 last_resume_kind set to resume_continue. Assert that when we're
1445 resuming the new lwp, its last_resume_kind is resume_continue.
1446
7aee8dc2
PA
14472011-10-24 Pedro Alves <pedro@codesourcery.com>
1448
1449 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1450 already set when marking the event thread as not executing in
1451 non-stop mode.
1452
4b4e080e
PA
14532011-10-24 Pedro Alves <pedro@codesourcery.com>
1454
1455 * infrun.c (handle_inferior_event): Add debug output for
1456 TARGET_WAITKIND_NO_HISTORY.
1457
baacfb07
PM
14582011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1459
1460 * NEWS: Move set/show extended-prompt to "New Options". Expand
1461 description. Fix typos.
1462
8432bc41
PM
14632011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1464
1465 PR python/13310
1466
1467 * python/py-param.c (call_doc_function): Correctly deference on
1468 function exit.
1469
6cda5a20
JB
14702011-10-21 Joel Brobecker <brobecker@adacore.com>
1471
1472 * ada-tasks.c (print_ada_task_info): Fix computation of
1473 number of tasks displayed in command output.
1474
13294f7d
JK
14752011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1476 Ulrich Weigand <uweigand@de.ibm.com>
1477
1478 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1479 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1480 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1481 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1482 gdbarch_unwind_pc.
1483
460c1c54
CC
14842011-10-20 Cary Coutant <ccoutant@google.com>
1485
1486 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1487 section to...
1488 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1489 flag. Adjust all callers.
1490 (process_psymtab_comp_unit): Remove adjustment for type section.
1491
a10964d1
AR
14922011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1493
1494 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1495 arguments by adding OBJFILE. Instead of getting objfile from
1496 symbol's symtab, use new argument OBJFILE.
1497 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1498 arguments by adding OBJFILE.
1499 * gdb/dwarf2read.c (new_symbol_full): Change call to
1500 cp_scan_for_anonymous_namespaces to match new signature.
1501 * gdb/stabsread.c (define_symbol): Change call to
1502 cp_scan_for_anonymous_namespaces to match new signature.
1503
27ca1a5b
PM
15042011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1505
1506 PR python/13308
1507 PR python/13309
1508
1509 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1510 leak.
1511 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1512 leak. Delete unused variables.
1513
9df2fbc4
PM
15142011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1515
1516 PR python/12656
1517
1518 * python/py-frame.c (frapy_read_var): Use const struct *block.
1519 * python/py-type.c (typy_lookup_typename): Likewise.
1520 (typy_lookup_type): Likewise.
1521 (typy_legacy_template_argument): Likewise.
1522 (typy_template_argument): Likewise.
1523 (gdbpy_lookup_type): Likewise.
1524 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1525 * python/py-block.c (blpy_block_object): Likewise.
1526 (blpy_iter): Likewise.
1527 (blpy_get_start): Likewise.
1528 (blpy_get_end): Likewise.
1529 (blpy_get_function): Likewise.
1530 (blpy_get_superblock): Likewise.
1531 (set_block): Likewise.
1532 (block_to_block_object): Likewise.
1533 (block_object_to_block): Likewise.
1534 (blpy_is_valid): Likewise.
1535 (blpy_get_global_block): New function.
1536 (blpy_get_static_block): New function.
1537 (blpy_is_global): New function.
1538 (blpy_is_static): New function.
1539 * blockframe.c (block_innermost_frame): Likewise.
1540 * valops.c (value_of_variable): Likewise.
1541 * frame.h: Update prototypes.
1542 * python/python-internal.h: Likewise.
1543 * value.h: Likewise.
1544
4743b735
CC
15452011-10-19 Cary Coutant <ccoutant@google.com>
1546
1547 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1548 type_offset field.
1549
6caca83c
CC
15502011-10-19 Cary Coutant <ccoutant@google.com>
1551
1552 * dwarf2read.c (peek_abbrev_code): New function.
1553 (dw2_get_file_names): Check for dummy compilation units.
1554 (create_debug_types_hash_table): Likewise.
1555 (process_psymtab_comp_unit): Likewise.
1556 (load_partial_comp_unit): Likewise.
1557 (load_full_comp_unit): Likewise.
1558
43136979
AR
15592011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1560
1561 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1562 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1563 pt_phdr if PT_PHDR was found.
1564
0a07729b
TT
15652011-10-17 Joost van der Sluis <joost@cnoc.nl>
1566
1567 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1568 type or "<unnamed type"> when there is no name assigned.
1569 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1570 avoid a sigint when no name is assigned.
1571
21ae7a4d
JK
15722011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1573
1574 Revert:
1575 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 * dwarf2expr.c (ctx_no_read_reg): New function.
1577 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1578 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1579 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1580 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1581
32d1c362
DE
15822011-10-16 Doug Evans <dje@google.com>
1583
1584 * NEWS: Document python gdb.printing.register_pretty_printer's new
1585 `replace' parameter.
1586
da096638
KS
15872011-10-14 Keith Seitz <keiths@redhat.com>
1588
1589 PR c++/13225
1590 * eval.c (evaluate_subexp_standard): Do not construct
1591 an array of types; pass the value array directly to
1592 find_overload_match.
1593 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1594 (rank_function): Take an array of values instead of types.
1595 (rank_one_type): Add struct value * parameter.
1596 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1597 (rank_function): For each argument, pass the argument's
1598 value to rank_one_type.
1599 (rank_one_type): Add VALUE parameter.
1600 If the parameter type is a pointer and the argument type
1601 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1602 VALUE is zero.
1603 Update all calls to rank_one_type, passing NULL for new
1604 VALUE parameter.
1605 * valarith.c (value_user_defined_cpp_op): Do not construct
1606 an array of types; pass the value array directly to
1607 find_overload_match.
1608 * valops.c (find_overload_method_list): Take an array of
1609 values instead of types.
1610 Save the type of OBJP for later use.
1611 Update calls to find_oload_champ, and find_oload_champ_namespace.
1612 (find_oload_champ_namespace): Take an array of values instead
1613 of types.
1614 (find_oload_champ_namespace_loop): Likewise.
1615 (find_oload_champ): Likewise.
1616 (classify_oload_match): Inspect all arguments
1617 until INCOMPATIBLE is found. Return the worst badness found
1618 otherwise.
1619 (compare_parameters): Update call to rank_one_type.
1620 * value.h (find_overload_match): Take an array of values instead
1621 of types.
1622
3957565a
JK
16232011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1624
1625 Drop lazy lm_info reading.
1626 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1627 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1628 (lm_info_read): New function.
1629 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1630 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1631 lm_dynamic_from_link_map.
1632 (lm_next, lm_prev, lm_name): Remove.
1633 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1634 initialization incl. read_memory. No longer use lm_name.
1635 (svr4_free_so): Drop lm_info->lm freeing.
1636 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1637 explicit lm_addr and lm initialization.
1638 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1639 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1640 lm_name.
1641
cb08cc53
JK
16422011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1643 Paul Pluzhnikov <ppluzhnikov@google.com>
1644
1645 * defs.h (struct so_list): New forward declaration.
1646 (make_cleanup_free_so): New declaration.
1647 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1648 (svr4_free_so): Move the function here from downwards. Handle NULL
1649 so->lm_info.
1650 (svr4_free_library_list): New.
1651 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1652 Use more cleanups. Use new parameter ignore_first instead of
1653 ignore_first_link_map_entry.
1654 (svr4_current_sos): New variable ignore_first, initialize it. New
1655 variable back_to, use it for svr4_free_library_list protection.
1656 (svr4_free_so): Remove - move upwards.
1657 * utils.c: Include solist.h.
1658 (do_free_so, make_cleanup_free_so): New functions.
1659
22c05d8a
JK
16602011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1661
1662 Fix internal error regression.
1663 * value.c (value_primitive_field): Handle value_optimized_out. Move
1664 packed bitfields comment.
1665
d930d06e
TT
16662011-10-13 Tom Tromey <tromey@redhat.com>
1667
1668 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1669 always released.
1670
2ff6b080
TT
16712011-10-13 Tom Tromey <tromey@redhat.com>
1672
1673 * python/py-type.c (typy_has_key): Make 'field' const.
1674
d6c5869f
LM
16752011-10-13 Luis Machado <lgustavo@codesourcery.com>
1676
1677 * remote.c (remote_save_trace_data): Invert comparison.
1678
a70633a2
LM
16792011-10-13 Luis Machado <lgustavo@codesourcery.com>
1680
1681 * tracepoint.c (trace_save_command): Use filename instead of
1682 args when printing.
1683
e103e986
JK
16842011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1685
1686 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1687 if .size is 0.
1688
db24da6d
YQ
16892011-10-13 Yao Qi <yao@codesourcery.com>
1690
1691 PR gdb/12703
1692 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1693 whether insn is a 32-bit Thumb-2 instruction.
1694 (thumb_in_function_epilogue_p): Likewise.
1695 (thumb_get_next_pc_raw): Likewise.
1696 (arm_breakpoint_from_pc): Likewise.
1697
1d6edc3c
JK
16982011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1699
1700 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1701 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1702 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1703 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1704 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1705 zero DATA.
1706 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1707 validity.
1708 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1709 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1710 clear DATA on zero SIZE.
1711
adabb602
DE
17122011-10-12 Doug Evans <dje@google.com>
1713
1714 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1715 header->first_die_offset here. All callers updated.
1716
5048e516
JK
17172011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Fix compatibility with texinfo versions older than 4.12.
1720 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1721 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1722 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1723 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1724 * configure: Regenerate.
1725 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1726 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1727 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1728
0574c78f
GB
17292011-10-12 Gary Benson <gbenson@redhat.com>
1730
1731 * breakpoint.h (pc_at_non_inline_function): Declare.
1732 * breakpoint.c (is_non_inline_function,
1733 pc_at_non_inline_function): New functions.
1734 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1735 if the stop is at a location where functions cannot be inlined.
1736
12d9289a
PA
17372011-10-12 Pedro Alves <pedro@codesourcery.com>
1738
1739 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1740 the core wanted them stopped, or if they now have a pending event
1741 to report.
ecf8e7f5
PA
1742 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1743 down to stop_and_resume_callback.
1744 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1745 having new pending events after calling linux_nat_filter_event.
12d9289a 1746
96408a79
SA
17472011-10-11 Sterling Augustine <saugustine@google.com>
1748
1749 * dwarf2read.c: Undo inadvertent changes in previous commit.
1750
9c6c53f7
SA
17512011-10-11 Sterling Augustine <saugustine@google.com>
1752
1753 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1754 logic.
1755
0e8aefe7
UW
17562011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1757
1758 * symfile.c (separate_debug_file_exists): Fix condition.
1759
349d1385
DM
17602011-10-11 David S. Miller <davem@davemloft.net>
1761
1762 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1763 static.
1764 * regcache.h (regcache_restore): Remove declaration.
1765
205c306f
DM
1766 * gdbarch.sh: New field 'long_long_align_bit'.
1767 * gdbarch.c, gdbarch.h: Regenerate.
1768 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1769 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1770
941b2081
JK
17712011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1772
1773 Revert this part of:
1774 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1775 Support @entry in input expressions.
1776 * c-exp.y (ENTRY, unknown_cpp_name): New.
1777 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1778 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1779 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1780 (name_not_typename: ENTRY): New.
1781 (yylex): Recognize ENTRY.
1782
1783 Reimplement @entry in input expressions.
1784 * c-exp.y (ENTRY): New.
1785 (variable: name_not_typename ENTRY): New.
1786 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1787
3c4d7e12
PA
17882011-10-11 Pedro Alves <pedro@codesourcery.com>
1789
1790 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1791 parent and child's pids as soon as we detect a clone event.
1792 Adjust another debug message.
1793
ea23808b
PA
17942011-10-11 Pedro Alves <pedro@codesourcery.com>
1795
1796 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1797 not zombie instead of reading the whole file.
1798
904578ed
JK
17992011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1800
1801 Fix separate debuginfo warning with "remote:" access.
1802 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1803 * symfile.c (get_file_crc): New function with the code moved from ...
1804 (separate_debug_file_exists): ... this function, specifically variables
1805 buffer and count. New variable verified_as_different, set it. Remove
1806 file_crc initialization. Verify also if both files are not the same
1807 manually, if needed.
1808
51370a33
YQ
18092011-10-11 Yao Qi <yao@codesourcery.com>
1810
1811 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1812 to get address.
1813
0838fb57
DE
18142011-10-10 Doug Evans <dje@google.com>
1815
1816 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1817 libthread_db when we load libpthread or the main symbol file.
1818 (thread_db_inferior_created): New function.
1819 (_initialize_thread_db): Attach inferior_created observer.
1820 * linux-nat.c (linux_child_post_attach): Remove call to
1821 check_for_thread_db.
1822 (linux_child_post_startup_inferior): Ditto.
1823 * objfiles.h (OBJF_MAINLINE): Define.
1824 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1825 allocate_objfile when appropriate.
1826
623bd5b7
UW
18272011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1828
1829 PR gdb/13218
1830 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1831 Remove unused variables.
1832 (get_linux_version): Remove function.
1833 (_initialize_arm_linux_nat): Do not call it.
1834
79395f92
PA
18352011-10-10 Pedro Alves <pedro@codesourcery.com>
1836
1837 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1838 new clone lwp if the core asked it to stop. Don't pass on
1839 unexpected signals to the new clone; leave them pending instead.
1840
eff3df78
PA
18412011-10-10 Pedro Alves <pedro@codesourcery.com>
1842
1843 * linux-nat.c (resume_lwp): Remove redundant debug output.
1844
4b60df3d
PA
18452011-10-10 Pedro Alves <pedro@codesourcery.com>
1846
1847 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1848 last_resume_kind before clearing it, and use the copy instead to
1849 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1850 resume_clear_callback in the non-stop path too.
1851
6501578c
YQ
18522011-10-09 Yao Qi <yao@codesourcery.com>
1853
1854 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1855 Honor OPTIONS and VAL's type.
1856 (common_val_print, value_print): Update to pass one more parameter.
1857
5a56e9c5
DE
18582011-10-09 Doug Evans <dje@google.com>
1859
1860 Add new "alias" command.
1861 * NEWS: Mention new command.
1862 * command.h (valid_user_defined_cmd_name_p): Declare.
1863 * defs.h (make_cleanup_dyn_string_delete): Declare.
1864 * utils.c: #include "dyn-string.h".
1865 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1866 * cli/cli-cmds.c: #include "dyn-string.h".
1867 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1868 (init_cli_cmds): Add new command.
1869 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1870
509f0fd9
JK
18712011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1872
1873 Fix compatibility with older GCCs.
1874 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1875 * stack.c (read_frame_arg): Initialize val_deref.
1876
2bda9cc5
JK
18772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 Entry values NEWS entries, DWARF disassembly support.
1880 * NEWS: New entry values entry.
1881 (set print entry-values, show print entry-values)
1882 (set debug entry-values, show debug entry-values): New entries.
1883 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1884 indent. Remove variable start. Move header printing out. Respect
1885 INDENT. Support DW_OP_GNU_entry_value.
1886 (locexpr_describe_location_1): Move the header printing here, extend
1887 the disassemble_dwarf_expression passed parameters.
1888
a471c594
JK
18892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 Display @entry parameter values even for references.
1892 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1893 coerce_ref_if_computed.
1894 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1895 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1896 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1897 existing push_dwarf_reg_entry_value call. Add new detection calling
1898 dwarf_block_to_dwarf_reg_deref. Update the error message.
1899 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1900 * dwarf2expr.h
1901 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1902 parameter deref_size, describe it in the comment.
1903 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1904 (dwarf_block_to_dwarf_reg_deref): New declaration.
1905 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1906 deref_size, describe it in the function comment. New variables
1907 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1908 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1909 describe it in the function comment. Fetch the alternative block
1910 accoring to DEREF_SIZE.
1911 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1912 (entry_data_value_free_closure, entry_data_value_funcs): New.
1913 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1914 outer_val, target_val, val and addr. Try to fetch and create also
1915 referenced value content.
1916 (pieced_value_funcs): NULL value for coerce_ref.
1917 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1918 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1919 coerce_ref_if_computed.
1920 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1921 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1922 * stack.c (read_frame_arg): Compare also dereferenced values.
1923 * value.c (value_computed_funcs): Make the parameter v const, use
1924 value_lval_const for it.
1925 (value_lval_const, coerce_ref_if_computed): New function.
1926 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1927 * value.h (struct lval_funcs): New field coerce_ref.
1928 (value_computed_funcs): Make the parameter v const.
1929 (value_lval_const, coerce_ref_if_computed): New declarations.
1930
36b11add
JK
19312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1932
1933 Support @entry in input expressions.
1934 * c-exp.y (ENTRY, unknown_cpp_name): New.
1935 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1936 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1937 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1938 (name_not_typename: ENTRY): New.
1939 (yylex): Recognize ENTRY.
1940 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1941 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1942 Likewise.
1943 * parse.c (operator_length_standard): Likewise.
1944 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1945
3343315b
JK
19462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 Display referenced values in backtraces.
1949 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1950 * stack.c (print_frame_arg): Likewise.
1951
ac71a68c
JK
19522011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 Make some lval_funcs methods to default on NULL.
1955 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1956 NULL.
1957 (value_assign): Check if lval_computed write method is NULL.
1958 * value.h (struct lval_funcs): Comment NULL values for read and write
1959 methods.
1960
e18b2753
JK
19612011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1962
1963 Display @entry parameter values (without references).
1964 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1965 New functions.
1966 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1967 New declarations.
1968 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1969 entry record.
1970 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1971 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1972 functions.
1973 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1974 (loclist_read_variable_at_entry): New function.
1975 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1976 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1977 DW_AT_location, call dwarf_block_to_sp_offset for it.
1978 * frame.h (print_entry_values_no, print_entry_values_only)
1979 (print_entry_values_preferred, print_entry_values_if_needed)
1980 (print_entry_values_both, print_entry_values_compact)
1981 (print_entry_values_default, print_entry_values): New declarations.
1982 (struct frame_arg): New field entry_kind.
1983 (read_frame_arg): New parameter entryargp.
1984 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1985 arg->entry_kind. Optionally print the `@entry' suffix.
1986 (list_args_or_locals): New variable entryarg, initialize it.
1987 Initialize also entry_kind of arg and entryarg. Conditionalize
1988 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1989 xfree for entryarg.error.
1990 * stack.c (print_entry_values_no, print_entry_values_only)
1991 (print_entry_values_preferred, print_entry_values_if_needed)
1992 (print_entry_values_both, print_entry_values_compact)
1993 (print_entry_values_default, print_entry_values_choices)
1994 (print_entry_values): New variables.
1995 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1996 print the `@entry' suffix, possibly in combination for
1997 print_entry_values_compact.
1998 (read_frame_arg): New parameter entryargp, new variables entryval,
1999 entryval_error and val_equal. Read in also entryargp, respect
2000 print_entry_values, compare the values using val_equal, fill in also
2001 argp->entry_kind (together with entryargp->entry_kind).
2002 (print_frame_args): New variable entryarg, initialize it.
2003 Conditionalize print_frame_arg for arg, add print_frame_arg for
2004 entryarg. Call xfree for entryarg.error.
2005 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2006 * symtab.h (struct symbol_computed_ops): New field
2007 read_variable_at_entry.
2008
93d86cef
JK
20092011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2010
2011 Code reshuffle.
2012 * frame.h (struct frame_arg): New definition.
2013 (read_frame_arg): New declaration.
2014 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2015 (list_args_or_locals): ... the code here. New variable arg, call
2016 read_frame_arg and list_arg_or_local with it. Unify the
2017 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2018 arg.error.
2019 * stack.c (print_frame_arg): New functiom from the code of
2020 print_frame_args.
2021 (read_frame_arg): New function.
2022 (print_frame_args): Remove variable val. New variable arg, call
2023 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2024
2d6c5dc2
JK
20252011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 Protect entry values against self tail calls.
2028 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2029 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2030
111c6489
JK
20312011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 Recognize virtual tail call frames.
2034 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2035 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2036 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2037 * dwarf2-frame-tailcall.c: New file.
2038 * dwarf2-frame-tailcall.h: New file.
2039 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2040 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2041 REGS.PREV only after CIE execution.
2042 (struct dwarf2_frame_cache): New field tailcall_cache.
2043 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2044 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2045 parts, try to find entry_cfa_sp_offset. Call
2046 dwarf2_tailcall_sniffer_first.
2047 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2048 when appropriate.
2049 (dwarf2_frame_dealloc_cache): New function.
2050 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2051 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2052 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2053 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2054 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2055 * dwarf2loc.c (func_addr_to_tail_call_list)
2056 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2057 (call_site_find_chain_1, call_site_find_chain): New.
2058 * dwarf2loc.h (struct call_site_chain): New.
2059 (call_site_find_chain): New declaration.
2060 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2061 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2062 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2063 * stack.c (frame_info): Support also TAILCALL_FRAME.
2064
bb984ff1
JK
20652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2066
2067 Tail call sites reader implementation.
2068 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2069 fill in TYPE_TAIL_CALL_LIST.
2070 * gdbtypes.h (struct func_type): New field tail_call_list.
2071 (struct call_site): New field tail_call_next.
2072 (TYPE_TAIL_CALL_LIST): New definition.
2073
8e3b41a9
JK
20742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2075
2076 Implement basic support for DW_TAG_GNU_call_site.
2077 * block.c: Include gdbtypes.h and exceptions.h.
2078 (call_site_for_pc): New function.
2079 * block.h (call_site_for_pc): New declaration.
2080 * defs.h: Include hashtab.h.
2081 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2082 declarations.
2083 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2084 ctx_no_push_dwarf_reg_entry_value.
2085 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2086 (dwarf_block_to_dwarf_reg): New function.
2087 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2088 (ctx_no_push_dwarf_reg_entry_value): New function.
2089 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2090 push_dwarf_reg_entry_value.
2091 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2092 declarations.
2093 * dwarf2loc.c: Include gdbcmd.h.
2094 (dwarf_expr_ctx_funcs): New forward declaration.
2095 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2096 (dwarf_expr_reg_to_entry_parameter)
2097 (dwarf_expr_push_dwarf_reg_entry_value): New.
2098 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2099 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2100 (needs_dwarf_reg_entry_value): New function.
2101 (needs_frame_ctx_funcs): Install it.
2102 (_initialize_dwarf2loc): New function.
2103 * dwarf2loc.h (entry_values_debug): New declaration.
2104 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2105 (read_call_site_scope): New forward declaration.
2106 (process_full_comp_unit): Copy call_site_htab.
2107 (process_die): Support DW_TAG_GNU_call_site.
2108 (read_call_site_scope): New function.
2109 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2110 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2111 (cleanup_htab): Delete.
2112 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2113 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2114 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2115 FIELD_LOC_KIND_DWARF_BLOCK.
2116 * gdbtypes.h (enum field_loc_kind): New entry
2117 FIELD_LOC_KIND_DWARF_BLOCK.
2118 (struct main_type): New loc entry dwarf_block.
2119 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2120 (TYPE_FIELD_DWARF_BLOCK): New.
2121 * python/py-type.c: Include dwarf2loc.h.
2122 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2123 internal_error call on unknown FIELD_LOC_KIND.
2124 * symtab.h (struct symtab): New field call_site_htab.
2125 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2126 (core_addr_hash, core_addr_eq): New functions.
2127
b6cdc2c1
JK
21282011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 Code reshuffle.
2131 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2132 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2133 calling_convention under func_stuff there.
2134 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2135 (init_type) <TYPE_CODE_FUNC>: Likewise.
2136 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2137 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2138 * gdbtypes.h (enum type_specific_kind): Change
2139 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2140 (struct main_type) <type_specific>: Change calling_convention to
2141 func_stuff. Move calling_convention to ...
2142 (struct func_type): ... this new struct.
2143 (INIT_FUNC_SPECIFIC): New #define.
2144 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2145
181cebd4
JK
21462011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2147
2148 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2149 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2150 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2151 ctx->ref_addr_size. Handle its invalid value.
2152 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2153 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2154 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2155 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2156 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2157 (dwarf2_per_cu_ref_addr_size): New function.
2158
c471e790
JK
21592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 Code cleanup.
2162 * dwarf2read.c (per_cu_header_read_in): New function.
2163 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2164 variables cu_header_local and cu_headerp.
2165
741f5e3c
JK
21662011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2167
2168 Fix initial language detection with -readnow.
2169 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2170 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2171 searches only for global symbols.
2172
a73d2258
JK
21732011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 Fix printed anonymous struct name.
2176 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2177 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2178 (anonymous_struct_prefix): New function.
2179 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2180 (dwarf2_name): Strip for anonymous structs any prefixes.
2181
749fd4ea
DE
21822011-10-07 Doug Evans <dje@google.com>
2183
1fa57852
DE
2184 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2185 `replace'.
2186
690a4937
DE
2187 * python/lib/gdb/printing.py: Whitespace cleanup.
2188
749fd4ea
DE
2189 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2190 warning.
2191
4c38200f
PA
21922011-10-07 Pedro Alves <pedro@codesourcery.com>
2193
2194 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2195 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2196 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2197 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2198 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2199 (arm_linux_remove_watchpoint): Adjust.
2200 * i386-linux-nat.c (i386_linux_dr_set_control)
2201 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2202 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2203 (ia64_linux_remove_watchpoint): Adjust.
2204 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2205 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2206 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2207 (ppc_linux_insert_mask_watchpoint)
2208 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2209 (ppc_linux_remove_watchpoint): Adjust.
2210 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2211 Adjust.
2212
b7ff339d
CV
22132011-10-07 Corinna Vinschen <vinschen@redhat.com>
2214
2215 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2216 (clear_win32_environment): New function for Cygwin to clear out
2217 Win32 environment.
2218 (windows_create_inferior): Prepare new environment from in_env
2219 for Cygwin, too.
2220
f287c1f3
PM
22212011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2222
5631e596 2223 PR python/13264
f287c1f3
PM
2224 * python/py-value.c (valpy_call): Check that arguments are
2225 a tuple.
2226 (is_intlike): Remove call to CHECK_TYPEDEF.
2227 (valpy_nonzero): Catch GDB exceptions.
2228 (valpy_absolute): Ditto.
2229 (valpy_lazy_string): Ditto.
2230 (valpy_call): Ditto.
2231 (valpy_get_is_optimized_out): Ditto.
2232 (valpy_long): Ditto.
2233 (valpy_float): Ditto.
2234 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2235 (valpy_richcompare): Ditto.
2236
03583c20
UW
22372011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2238
2239 * inferior.h (disable_randomization): Declare.
2240 * infrun.c (disable_randomization): New global variable.
2241 (show_disable_randomization): New function.
2242 (set_disable_randomization): Likewise.
2243 (_initialize_infrun): Install set/show disable-randomization
2244 commands.
2245 * linux-nat.c (disable_randomization): Remove.
2246 (show_disable_randomization): Likewise.
2247 (set_disable_randomization): Likewise.
2248 (_initialize_linux_nat): No longer install set/show
2249 disable-randomization commands here.
2250 (linux_nat_supports_disable_randomization): New function.
2251 (linux_nat_add_target): Install it.
2252 * remote.c (PACKET_QDisableRandomization): New enum value.
2253 (remote_protocol_packets): Support QDisableRandomization.
2254 (_initialize_remote): Likewise.
2255 (remote_supports_disable_randomization): New function.
2256 (init_remote_ops): Install it.
2257 (extended_remote_supports_disable_randomization): New function.
2258 (init_extended_remote_ops): Install it.
2259 (extended_remote_disable_randomization): New function.
2260 (extended_remote_create_inferior_1): Call it.
2261 * target.h (struct target_ops): Add to_supports_disable_randomization.
2262 (target_supports_disable_randomization): Add prototype.
2263 * target.c (target_supports_disable_randomization): New function.
2264 (find_default_supports_disable_randomization): Likewise.
2265 (init_dummy_target): Install it.
2266
20c168b5
KP
22672011-10-07 Kevin Pouget <kevin.pouget@st.com>
2268
2269 Allow Python notification of new object-file loadings.
2270 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2271 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2272 Add build rule for this file.
2273 * python/py-event.h (emit_new_objfile_event): New prototype.
2274 (newobjfile): New Python event emitter.
2275 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2276 Python event registry.
2277 * python/py-inferior.c: Include objfiles.h
2278 (python_new_objfile): New function.
2279 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2280 observers.
2281 * python/py-newobjfileevent.c: New file.
2282 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2283 prototype.
2284 * python/python.c (_initialize_python): Add
2285 gdbpy_initialize_new_objfile_event call.
2286 * NEWS: Add item for new Python event "gdb.newobjfile"
2287
b1c8db38
TG
22882011-10-05 Tristan Gingold <gingold@adacore.com>
2289
2290 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2291 Extract the ravenscar task name from the symbol for the atcb.
2292
0dab82e9
PK
22932011-10-04 Paul Koning <paul_koning@dell.com>
2294
2295 * python/py-type.c (typy_make_iter): Add forward declaration.
2296 (typy_fields_items): Use the gdb.Type iterator.
2297
84ad80e6
PK
22982011-10-04 Paul Koning <paul_koning@dell.com>
2299
2300 * NEWS: Add entry for Python gdb.Type mapping methods.
2301
cb6be26b
KP
23022011-10-04 Kevin Pouget <kevin.pouget@st.com>
2303
2304 PR python/12691: Add the inferior to Python exited event
2305 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2306 to exited_event.
2307 * python/py-event.h (emit_exited_event): Likewise
2308 * python/-inferior.c (python_inferior_exit): Likewise
2309
6005b210
JB
23102011-10-03 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2313 in output of -ada-task-info GDB/MI command.
2314
75082e8c
JB
23152011-10-03 Joel Brobecker <brobecker@adacore.com>
2316
2317 * ada-lang.h (struct inferior): Declare.
2318 (print_ada_task_info): Add declaration.
2319 * ada-tasks.c (print_ada_task_info): Make non-static.
2320 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2321 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2322 * mi/mi-main.c: #include "ada-lang.h".
2323 (mi_cmd_list_features): Add "ada-task-info" to the list
2324 of supported features.
2325 (mi_cmd_ada_task_info): New function.
2326
7ed7d719
JB
23272011-10-03 Joel Brobecker <brobecker@adacore.com>
2328
2329 * python/python.c (python_run_simple_file): New function.
2330 (source_python_script, source_python_script_for_objfile):
2331 Replace call to PyRun_SimpleFile by call to
2332 python_run_simple_file.
2333
3fcaed38
PK
23342011-10-03 Paul Koning <paul_koning@dell.com>
2335
2336 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2337 (value_to_value_object): Fetch value if it was lazy.
2338
8e5c319d
JK
23392011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Code cleanup.
2342 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2343 Rearrange the code for it.
2344
dd11a36c
JB
23452011-10-02 Joel Brobecker <brobecker@adacore.com>
2346
2347 * breakpoint.c (bkpt_print_recreate): Add call to
2348 print_recreate_thread.
2349
723b724b
MF
23502011-09-29 Mike Frysinger <vapier@gentoo.org>
2351
2352 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2353 PTRACE_GETFDPIC_INTERP): Define.
2354
412946b6
YQ
23552011-09-28 Yao Qi <yao@codesourcery.com>
2356
2357 * symfile.c (add_symbol_file_command): Update message on usage.
2358
a73bb892
PK
23592011-09-28 Paul Koning <paul_koning@dell.com>
2360
2361 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2362 (typy_length, typy_get, typy_has_key, typy_make_iter)
2363 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2364 (typy_iterator_iter, typy_iterator_iternext)
2365 (typy_iterator_dealloc): New functions to implement standard
2366 Python mapping methods on gdb.Type object.
2367 (gdb.TypeIterator): New Python type.
2368 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2369
fe10a582
DM
23702011-09-28 David S. Miller <davem@davemloft.net>
2371
2372 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2373 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2374 * sparc-tdep.c (sparc_complex_floating_p): New function.
2375 (sparc32_store_arguments): Handle complex floats.
2376 (sparc32_extract_return_value): Likewise.
2377 (sparc32_store_return_value): Likewise.
2378 (sparc32_stabs_argument_has_addr): Likewise.
2379 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2380 (sparc64_store_floating_fields): Handle complex floats.
2381 (sparc64_store_arguments): Likewise.
2382 (sparc64_store_return_value): Likewise.
2383
c93dbcba
EZ
23842011-09-28 Eli Zaretskii <eliz@gnu.org>
2385
2386 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2387 before the change on 2006-12-09.
2388 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2389 generates the environment block for CreateProcessA, modulo the
2390 Cygwin-specific parts that are not needed here.
2391
f00c55f8
TG
23922011-09-27 Tristan Gingold <gingold@adacore.com>
2393
2394 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2395 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2396 (darwin_solib_get_all_image_info_addr_at_init): New function.
2397 (darwin_solib_read_all_image_info_addr): Likewise.
2398 (darwin_solib_create_inferior_hook): Use the above two functions.
2399 * darwin-nat.c (darwin_execvp): Renames retval to res.
2400 (darwin_read_write_inferior): Update comment.
2401 (darwin_read_dyld_info): New function.
2402 (darwin_xfer_partial): Handle DYLD_INFO.
2403
6710bf39
SS
24042011-09-27 Stan Shebs <stan@codesourcery.com>
2405
2406 Add return address collection for tracepoints.
2407 * tracepoint.c (encode_actions_1): Add case for $_ret.
2408 (validate_actionline): Check for $_ret.
2409 (trace_dump_actions): Ditto.
2410 * ax-gdb.h (gen_trace_for_return_address): Declare.
2411 * ax-gdb.c: Include arch-utils.h.
2412 (gen_trace_for_return_address): New function.
2413 (agent_command): Add return address special case.
2414 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2415 (amd64_gen_return_address): New function.
2416 (amd64_init_abi): Call it.
2417 * i386-tdep.c: Include ax.h and ax-gdb.h.
2418 (i386_gen_return_address): New function.
2419 (i386_init_abi): Call it.
2420 * arch-utils.h (default_gen_return_address): Declare.
2421 * arch-utils.c (default_gen_return_address): New function.
2422 * gdbarch.sh (gen_return_address): New method.
2423 * gdbarch.h, gdbarch.c: Regenerate.
2424
e04e5beb
JM
24252011-09-23 Joseph Myers <joseph@codesourcery.com>
2426
2427 PR gdb/13079
2428 * i386-tdep.c (i386_frame_align): New.
2429 (i386_gdbarch_init): Use i386_frame_align.
2430
f3d6df6d
YQ
24312011-09-23 Yao Qi <yao@codesourcery.com>
2432
2433 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2434 to get address.
2435
e69860f1
TG
24362011-09-22 Tristan Gingold <gingold@adacore.com>
2437
2438 * fork-child.c (fork_inferior): Add exec_fun parameter.
2439 Call exec_fun or execvp.
2440 * inferior.h: Adjust prototype.
2441 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2442 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2443 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2444 * procfs.c (procfs_create_inferior): Ditto.
2445 * darwin-nat.c (darwin_execvp): New function.
2446 (darwin_create_inferior): Use it.
2447
4b51d87b
YQ
24482011-09-22 Yao Qi <yao@codesourcery.com>
2449
2450 * infrun.c (context_switch): Print debug message when switching to
2451 a different thread.
2452
56b9d9ac
UW
24532011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2454
2455 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2456 complex and vector types.
2457 (s390_return_value_convention): Likewise.
2458
2459 (s390_value_from_register): Call check_typedef.
2460 (extend_simple_arg): Likewise.
2461 (alignment_of): Likewise.
2462 (s390_push_dummy_call): Likewise.
2463 (s390_return_value): Likewise.
2464
b2cd6b29
JM
24652011-09-21 Joseph Myers <joseph@codesourcery.com>
2466
2467 * event-top.c (async_disconnect): If an exception is thrown from
2468 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2469 catch_errors.
2470 * top.c (quit_cover): Return void and take no arguments.
2471 * top.h (quit_cover): Update prototype.
2472
67ba4e42
JM
24732011-09-20 Joseph Myers <joseph@codesourcery.com>
2474
2475 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2476 current_uiout, not uiout.
2477
562f943b
DE
24782011-09-19 Doug Evans <dje@google.com>
2479
2480 * python/py-auto-load.c (source_section_scripts): Fix file
2481 descriptor leak.
2482 * python/python.c (source_python_script_for_objfile): Tweak comments.
2483
34518530
YQ
24842011-09-18 Yao Qi <yao@codesourcery.com>
2485 Ulrich Weigand <ulrich.weigand@linaro.org>
2486
2487 Support displaced stepping for Thumb 16-bit insns.
2488 * arm-tdep.c (THUMB_NOP) Define.
2489 (thumb_copy_unmodified_16bit): New.
2490 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2491 (thumb_copy_alu_reg): New.
2492 (arm_copy_svc): Move some common code to ...
2493 (install_svc): ... here. New.
2494 (thumb_copy_svc): New.
2495 (install_pc_relative): New.
2496 (thumb_copy_pc_relative_16bit): New.
2497 (thumb_decode_pc_relative_16bit): New.
2498 (thumb_copy_16bit_ldr_literal): New.
2499 (thumb_copy_cbnz_cbz): New.
2500 (cleanup_pop_pc_16bit_all): New.
2501 (thumb_copy_pop_pc_16bit): New.
2502 (thumb_process_displaced_16bit_insn): New.
2503 (thumb_process_displaced_32bit_insn): New.
2504 (thumb_process_displaced_insn): process thumb instruction.
2505
2506 Support displaced stepping for Thumb 32-bit insns.
2507 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2508 (thumb2_copy_preload): New.
2509 (thumb2_copy_copro_load_store): New.
2510 (thumb2_copy_b_bl_blx): New.
2511 (thumb2_copy_alu_imm): New.
2512 (thumb2_copy_load_reg_imm): New.
2513 (thumb2_copy_load_literal): New
2514 (thumb2_copy_block_xfer): New.
2515 (thumb_32bit_copy_undef): New.
2516 (thumb_32bit_copy_unpred): New.
2517 (thumb2_decode_ext_reg_ld_st): New.
2518 (thumb2_decode_svc_copro): New.
2519 (decode_thumb_32bit_store_single_data_item): New.
2520 (thumb_copy_pc_relative_32bit): New.
2521 (thumb_decode_pc_relative_32bit): New.
2522 (decode_thumb_32bit_ld_mem_hints): New.
2523 (thumb2_copy_table_branch): New
2524 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2525 instructions.
2526
2b16b2e3
YQ
25272011-09-18 Yao Qi <yao@codesourcery.com>
2528
2529 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2530 (install_b_bl_blx): Likewise.
2531
0f6f04ba
YQ
25322011-09-17 Yao Qi <yao@codesourcery.com>
2533
2534 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2535 (install_load_store): ... this. New.
2536 Change parameter BYTE to SIZE.
2537 (arm_copy_ldr_str_ldrb_strb): Update caller.
2538 (arm_decode_ld_st_word_ubyte): Update caller.
2539
e2d96639
YQ
25402011-09-17 Yao Qi <yao@codesourcery.com>
2541
2542 * infrun.c (displaced_step_fixup): Move some code ...
2543 (displaced_step_restore): ... here. New function.
2544 (handle_inferior_event): Cleanup displaced stepping state for both
2545 child and parent when get forked or vforked event.
2546 * regcache.c (get_thread_arch_aspace_regcache): New function.
2547 get_thread_arch_regcache (): Call it.
2548
a8123151
JB
25492011-09-16 Joel Brobecker <brobecker@adacore.com>
2550
2551 * ada-tasks.c (print_ada_task_info): New function, merging
2552 short_task_info and info_tasks together. Reimplement using
2553 ui-out instead of printing to stdout directly. Move the code
2554 building and checking the task list here, instead of leaving it
2555 in info_tasks_command.
2556 (info_task): Move the code building and checking the task
2557 list here, instead of leaving it in info_tasks_command.
2558 (info_tasks_command): Delete code building and checking
2559 the task list - moved elsewhere. Update calls to info_tasks
2560 and info_task.
2561
fbf06824
JB
25622011-09-16 Joel Brobecker <brobecker@adacore.com>
2563
2564 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2565
34a0bc90
JB
25662011-09-16 Joel Brobecker <brobecker@adacore.com>
2567
2568 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2569
79779fa9
JB
25702011-09-16 Joel Brobecker <brobecker@adacore.com>
2571
2572 * ada-lang.h (ada_build_task_list): Remove parameter
2573 `warn_if_null'.
2574 * ada-tasks.c (ada_build_task_list): Remove parameter
2575 `warn_if_null'. Adjust implementation and documentation.
2576 (valid_task_id, ada_get_environment_task)
2577 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2578 (info_tasks_command): Adjust implementation.
2579 (task_command): Likewise.
2580 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2581 to ada_build_task_list.
2582
e225eb91
JB
25832011-09-16 Joel Brobecker <brobecker@adacore.com>
2584
2585 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2586 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2587 (ada_tasks_inferior_data_handle): New static global.
2588 (get_ada_tasks_inferior_data): New function.
2589 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2590 (ada_get_environment_task, iterate_over_live_ada_tasks)
2591 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2592 Adjust.
2593 (ada_set_current_inferior_known_tasks_addr): New function.
2594 (read_known_tasks, ada_build_task_list, short_task_info)
2595 (info_tasks, info_task, info_tasks_command, task_command_1)
2596 (task_command, ada_task_list_changed): Adjust.
2597 (ada_tasks_invalidate_inferior_data): New function.
2598 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2599 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2600 * ada-lang.h (struct inferior): Add declaration.
2601 (ada_task_list_changed): Update profile.
2602 * remote-wtx-pd.c: #include "inferior.h".
2603 (switch_to_pd_internal): Update call to ada_task_list_changed.
2604
6da9ca05
JB
26052011-09-16 Joel Brobecker <brobecker@adacore.com>
2606
2607 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2608 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2609 (atcb_fieldno): Delete these static globals.
2610 (struct ada_tasks_pspace_data): New struct.
2611 (ada_tasks_pspace_data_handle): New static global.
2612 (get_ada_tasks_pspace_data): New function.
2613 (ada_tasks_invalidate_pspace_data): New function.
2614 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2615 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2616 (_initialize_tasks): Create this module's per-progspace
2617 data handle.
2618
dccd3cbd
JB
26192011-09-16 Joel Brobecker <brobecker@adacore.com>
2620
2621 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2622
f877b031
TG
26232011-09-16 Tristan Gingold <gingold@adacore.com>
2624
2625 * fork-child.c (fork_inferior): Update comment. Use alloca
2626 instead of xmalloc for argv. Move len and shell_command
2627 declarations in the block where they are used.
2628 Only call execvp. Factorize failure code.
2629
ae0c443d
JK
26302011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2631
2632 Code cleanup.
2633 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2634 `exp_element' instead of an element of the same and make the function
2635 static.
2636 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2637 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2638 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2639 Change argument of `write_exp_elt' function call.
2640 Remove extra spaces from comments.
2641 * parser-defs.h (write_exp_elt): Remove prototype.
2642
5af65ec0
PK
26432011-09-15 Paul Koning <paul_koning@dell.com>
2644
2645 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2646 count of item appended to list.
2647 * python/py-type.c (typy_fields): Likewise.
2648
72be8ccc
PK
26492011-09-15 Paul Koning <paul_koning@dell.com>
2650
883640a8 2651 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2652
92f6badc
KP
26532011-09-15 Kevin Pouget <kevin.pouget@st.com>
2654
2655 PR threads/12628
2656 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2657 processes with multiple threads.
2658 (inf_has_multiple_thread_cb): New function.
2659 (inf_has_multiple_threads): New function.
2660
0672bf41 26612011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2662
2663 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2664 * python/py-inferior.c (GdbMethods): New Python method definition.
2665
6839b47f
KP
26662011-09-15 Kevin Pouget <kevin.pouget@st.com>
2667
2668 Handle multiple breakpoint hits in Python interface:
2669 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2670 variable to breakpoints.
2671 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2672 bps instead of single breakpoint. Fix some space typos.
2673 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2674 variable to breakpoints.
2675
672f9b60
KP
26762011-09-15 Kevin Pouget <kevin.pouget@st.com>
2677
2678 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2679 note if the breakpoint is internal.
2680
43675ae4
KP
26812011-09-15 Kevin Pouget <kevin.pouget@st.com>
2682
0672bf41 2683 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2684
15148d6a
PA
26852011-09-14 Pedro Alves <pedro@codesourcery.com>
2686
2687 * infrun.c (prepare_for_detach, wait_for_inferior)
2688 (fetch_inferior_event): Don't flush the register cache.
2689 * remote.c (struct stop_reply) <regcache>: Add comment.
2690
d83e736b
JK
26912011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 Remove excessive DWARF expressions memory duplication.
2694 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2695 for block.data.
2696 (indirect_pieced_value): Remove variable result. Remove variable
2697 back_to and its use for baton.data.
2698 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2699 block.data.
2700 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2701 Update the function comment.
2702
c65b3e0d
PA
27032011-09-13 Pedro Alves <pedro@codesourcery.com>
2704
2705 * inferior.h (ALL_INFERIORS): New.
2706 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2707 for a stopped thread.
2708 (thread_db_find_new_threads): Look for threads in all inferiors.
2709
a1398e0c
PA
27102011-09-13 Pedro Alves <pedro@codesourcery.com>
2711
2712 * breakpoint.c (update_watchpoint): Handle the case of the
2713 watchpoint to update not being in the breakpoint list yet.
2714 (hw_watchpoint_use_count): New, factored out from
2715 hw_watchpoint_used_count.
2716 (hw_watchpoint_used_count): Rename to ...
2717 (hw_watchpoint_used_count_others): ... this. Add `except'
2718 parameter. Don't count resources of `except'. Use
2719 hw_watchpoint_use_count.
2720
30596231
PA
27212011-09-13 Pedro Alves <pedro@codesourcery.com>
2722
2723 * gdbthread.h (enum thread_state): Moved here.
2724 (struct thread_info): Rename `executing_' field to `executing' and
2725 `state_' to `state'.
2726 * thread.c (enum thread_state): Moved to gdbthread.h.
2727 (new_thread, add_thread_silent, delete_thread_1)
2728 (any_live_thread_of_process, thread_alive, set_running)
2729 (set_running, is_thread_state, any_running, is_executing)
2730 (set_executing, finish_thread_state, print_thread_info)
2731 (do_captured_thread_select): Adjust.
2732
bede5f5f
JK
27332011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2736 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2737
4801a9a3
PA
27382011-09-12 Pedro Alves <pedro@codesourcery.com>
2739 Matt Rice <ratmice@gmail.com>
2740
2741 PR gdb/13175
2742
2743 * interps.c (struct interp) <interpreter_out>: Delete field.
2744 (interp_new): Remove the data and uiout parameters and adjust.
2745 (interp_set): Only set the current_uiout from the interpreter's
2746 uiout after initializing the interpreter. Adjust call to
2747 init_proc.
2748 (interp_ui_out): Adjust to call procs->ui_out_proc.
2749 (interp_data, interp_name): New.
2750 * interps.h (interp_init_ftype): Add `self' parameter.
2751 (interp_ui_out_ftype): New typedef.
2752 (struct interp_procs) <ui_out_proc>: New method pointer.
2753 (interp_new): Remove the data and uiout parameters.
2754 (interp_data, interp_name): Declare.
2755 * tui/tui-interp.c (tui_init): Adjust prototype.
2756 (tui_ui_out): New.
2757 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2758 tui_out here. Adjust call to interp_new.
2759 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2760 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2761 (cli_ui_out): New.
2762 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2763 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2764 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2765 Initialize mi->uiout depending on the mi_version as extracted from
2766 the interpreter's name.
2767 (mi_ui_out): New.
2768 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2769 interp_new. Don't allocate the ui_out's of the interpreters here.
2770
d0afda03 27712011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2772
d0afda03 2773 * solib.c (solib_used): New function.
59145f8c
AR
2774 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2775 by another so_list object before freeing it.
2776
bdaf8d4a
JK
27772011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 Code cleanup.
2780 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2781 values.
2782
df15bd07
JK
27832011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 Code cleanup.
2786 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2787 (amd64_skip_xmm_prologue): ... this new function. Describe its
2788 parameters. No longer use amd64_prologue_line_bug.
2789 * defs.h (producer_is_gcc_ge_4): New declaration.
2790 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2791 (process_full_comp_unit): Update its caller. Remove
2792 amd64_prologue_line_bug initialization.
2793 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2794 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2795
25289eb2
PA
27962011-09-09 Pedro Alves <pedro@codesourcery.com>
2797
2798 * linux-nat.h (enum resume_kind): New.
2799 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2800 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2801 resume_stop on the new lwp.
25289eb2
PA
2802 (add_lwp): Set last_resume_kind as resume_continue by default.
2803 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2804 (resume_lwp): New, factored out from resume_callback. Also check
2805 for pending status in lp->waitstatus.
2806 (resume_callback): Reimplement.
2807 (resume_clear_callback): Set last_resume_kind as resume_stop.
2808 (resume_set_callback): Set last_resume_kind as resume_continue.
2809 (linux_nat_resume, linux_handle_extended_wait): Set
2810 last_resume_kind.
2811 (running_callback): Also check lp->waitstatus for pending events.
2812 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2813 is resume_step.
2814 (stop_and_resume_callback): Don't re-resume if the core wanted the
2815 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2816 using an invalidated pointer.
2817 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2818 SIGSTOPs if the core wanted the LWP to stop.
2819 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2820 wanted the lwp to stop. If the core wanted the lwp to stop, and
2821 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2822 of TARGET_SIGNAL_STOP.
2823 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2824 here. Instead, signal the lwp, and set the last_resume_kind to
2825 resume_stop.
2826
f687d035
PA
28272011-09-09 Pedro Alves <pedro@codesourcery.com>
2828
2829 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2830 -1 (error), if the lwp exits right after attaching.
2831
bc587a6b
DE
28322011-09-08 Doug Evans <dje@google.com>
2833
63d97a20
DE
2834 * py-cmd.c: Some minor formatting fixes.
2835 (gdbpy_parse_command_name): Rename text arg to name, make const.
2836 All callers updated.
2837 * python-internal.h (gdbpy_parse_command_name): Update.
2838
bc587a6b
DE
2839 * cli/cli-decode.c (add_cmd): Add comment.
2840
08711b9a
JK
28412011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2842
2843 PR breakpoints/12435
2844 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2845 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2846 * dwarf2read.c (process_full_comp_unit): Initialize
2847 amd64_prologue_line_bug.
2848 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2849
b2e7f004
JK
28502011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 Fix TUI screen corruption.
2853 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2854 batch_flag.
2855
8afd712c
JK
28562011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2857
2858 * findvar.c (read_var_value): Never return NULL, throw an error
2859 instead. Update the function comment. State symbol name in the error
2860 messages.
2861 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2862 read_var_value.
2863 * stack.c (print_frame_args): Likewise.
2864 * valops.c (value_of_variable): Likewise.
2865
b99b5f66
JK
28662011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2867
2868 * stack.c (print_frame_args): New variable except. Wrap
2869 read_var_value and common_val_print into TRY_CATCH.
2870
85bc8cb7
JK
28712011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2874 caller to value_of_this.
2875 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2876 Twice.
2877 * valops.c (value_of_this): Remove parameter complain and variable ret.
2878 Update function comment. Never return NULL by this code.
2879 (value_of_this_silent): New function.
2880 * value.h (value_of_this): Remove parameter complain.
2881 (value_of_this_silent): New declaration.
2882
ede1849f
YQ
28832011-09-07 Yao Qi <yao@codesourcery.com>
2884
2885 * gdbthread.h (struct thread_info): Remove fields
2886 `stepping_through_solib_after_catch' and
2887 `stepping_through_solib_catchpoints'.
2888 * infrun.c (init_thread_stepping_state): Update.
2889 (process_event_stop_test, currently_stepping): Update.
2890 (currently_stepping_or_nexting_callback): Update.
2891
6aa27652
YQ
28922011-09-07 Yao Qi <yao@codesourcery.com>
2893
2894 * gdbthread.h (struct thread_info): Comment on field
2895 `step_after_step_resume_breakpoint'.
2896
00db5b94
PA
28972011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2898
2899 * remote.c (remote_console_output): Reindent.
2900
861152be
LM
29012011-09-06 Luis Machado <lgustavo@codesourcery.com>
2902
2903 * frame.c (has_stack_frames): Check for currently selected
2904 traceframe.
2905
ab821bc6
PA
29062011-09-06 Pedro Alves <pedro@codesourcery.com>
2907
2908 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2909 (set_async_annotation_level, set_async_prompt, pop_prompt)
2910 (push_prompt, new_async_prompt): Delete declarations.
2911 * top.h (get_prompt, set_prompt): Change prototype.
2912 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2913 declarations.
2914 * top.c (command_loop):
2915 (top_prompt): New global.
2916 (get_prefix, set_prefix, get_suffix, ): Delete.
2917 (get_prompt, set_prompt): Rewrite.
2918 (show_new_async_prompt): Rename to ...
2919 (show_prompt): ... this.
2920 (init_main): Adjust. Don't handle --annotate=2 here.
2921 * event-top.c (new_async_prompt): Delete.
2922 (the_prompts): Delete.
2923 (more_to_come): Make static.
2924 (display_gdb_prompt): Use top_level_prompt() to compute the top
2925 level prompt, and don't notify the before_prompt observers
2926 directly here. Always trick readline into not trying to display
2927 the prompt if sync_execution and displaying the primary prompt.
2928 If displaying a local/secondary prompt, always show it, even if
2929 sync_execution is set.
2930 (change_annotation_level): Delete.
2931 (top_level_prompt): New, based on change_annotation_level.
2932 (push_prompt, pop_prompt): Delete.
2933 (async_disable_stdin): No longer pushes prompt.
2934 (command_line_handler): No longer pushes or pops prompt. If more
2935 input is expected, call display_gdb_prompt with an explicit empty
2936 prompt.
2937 (async_stop_sig): Adjust.
2938 (set_async_annotation_level, set_async_prompt): Delete.
2939 * python/python.c (before_prompt_hook): Adjust.
2940
f1d90504
PA
29412011-09-05 Pedro Alves <pedro@codesourcery.com>
2942
2943 PR cli/13110
2944
2945 * infrun.c (fetch_inferior_event): Check if there's a selected
2946 thread before checking if the selected thread is executing.
2947
0f641c01
PA
29482011-09-05 Pedro Alves <pedro@codesourcery.com>
2949
2950 * inf-loop.c (execute_command): Don't check if the current thread
2951 if running before synchronously waiting for command completion.
2952 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2953 here.
2954 (normal_stop): Call async_enable_stdin here.
2955 * inf-loop.c (inferior_event_handler): Don't call
2956 async_enable_stdin, nor handle "set exec-done-display" here.
2957
30368258 29582011-09-04 Joel Brobecker <brobecker@adacore.com>
2959
2960 GDB 7.3.1 released.
2961
31916278
JB
29622011-09-04 Joel Brobecker <brobecker@adacore.com>
2963
2964 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2965
e8d56f18
JB
29662011-09-04 Joel Brobecker <brobecker@adacore.com>
2967
2968 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2969
5dd05d8c
JK
29702011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2971
2972 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2973
7d8e6458 29742011-09-02 Matt Rice <ratmice@gmail.com>
2975
2976 PR gdb/10720
2977 * event-top.c (cli_command_loop): Replace readline setup with
2978 direct call to display_gdb_prompt.
2979 (display_gdb_prompt): Do not call observer mechanism during
2980 synchronous execution.
2981
84636d28
PA
29822011-09-02 Pedro Alves <pedro@codesourcery.com>
2983
2984 * linux-nat.c (in_pid_list_p): New.
2985 (linux_record_stopped_pid): Delete.
2986 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2987 already attached to the LWP. Return an indication if so.
2988 (linux_nat_filter_event): Adjust.
2989 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2990 returning an indication to ignore this thread.
2991
b4a14fd0
PA
29922011-09-02 Pedro Alves <pedro@codesourcery.com>
2993
2994 * top.c: Include interps.h.
2995 (execute_command): If the target can async, but the interpreter is
2996 in sync mode, synchronously wait for the command to finish before
2997 returning.
2998 (execute_command_to_string): Force the interpreter to sync mode.
2999 * infrun.c: Include interps.h.
3000 (fetch_inferior_event): Don't restore the prompt yet if the
3001 interpreter is in sync mode.
3002 * interps.c (interpreter_async): New global.
3003 * interps.h (interpreter_async): Declare.
3004 * inf-loop.c: Include interps.h.
3005 (inferior_event_handler): Don't print the language change or run
3006 breakpoint commands yet if the interpreter in is sync mode.
3007 * main.c (captured_command_loop): Flip the interpreter to async
3008 mode.
3009 * cli/cli-script.c: Include interps.h.
3010 (execute_user_command, while_command, if_command): Force the
3011 interpreter to sync mode.
3012 * python/python.c: Include interps.h.
3013 (python_command, execute_gdb_command): Force the interpreter to
3014 sync mode.
3015
c709acd1
PA
30162011-09-02 Pedro Alves <pedro@codesourcery.com>
3017
3018 * value.c (show_convenience): Catch errors thrown while printing
3019 each internal variable.
3020 * infrun.c (validate_siginfo_access): New function.
3021 (siginfo_value_read, siginfo_value_write): Call it.
3022
9655e943
JK
30232011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 Revert:
3026 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3027 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3028 attribute.
3029
cb457ae2
YQ
30302011-08-29 Yao Qi <yao@codesourcery.com>
3031
3032 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3033 (cmp_name): New.
3034 (enable_break2): Update caller.
3035 * solib-frv.c (bfd_lookup_symbol): Removed.
3036 (cmp_name): New.
3037 (enable_break2): Update caller.
3038 * solib-pa64.c (bfd_lookup_symbol): Removed.
3039 (cmp_name): New.
3040 * solib-svr4.c (bfd_lookup_symbol): Removed.
3041 (cmp_name_and_sec_flags): New.
3042 (enable_break): Update caller.
3043 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3044 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3045 (gdb_bfd_lookup_symbol): New.
3046 * solib.h: Functions declarations.
3047
83d1a36a
YQ
30482011-08-29 Yao Qi <yao@codesourcery.com>
3049
3050 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3051 and solib-dsbt.o.
3052
c04b3e8f
JK
30532011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 Fix TUI stepi on code without symbols.
3056 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3057 current PC instead.
3058
cb0fd152
JK
30592011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3060
3061 Code cleanup.
3062 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3063 and the static keyword.
3064 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3065 Make prefix an array.
3066 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3067 * mi/mi-main.c (get_register): Remove stb initialization and the static
3068 keyword.
3069
91174723
JK
30702011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 Code cleanup - make mi_opt const.
3073 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3074 opts const.
3075 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3076 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3077 (mi_cmd_env_dir): Likewise.
3078 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3079 (mi_cmd_target_file_put): Likewise.
3080 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3081 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3082 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3083 (mi_valid_noargs): Make opts const.
3084 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3085 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3086 (mi_cmd_data_read_memory): Likewise.
3087 (mi_cmd_data_read_memory_bytes): Likewise.
3088 (mi_cmd_data_write_memory): Likewise.
3089
5068b8e8 30902011-08-26 Matt Rice <ratmice@gmail.com>
3091
3092 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3093 bcache_xmalloc, replace bcache_xmalloc with call to
3094 psymbol_bcache_init for psymbol_cache.
3095 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3096
a4f2ce05
JK
30972011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3098
3099 * inf-loop.c (inferior_event_handler): Add exception_print in
3100 INF_EXEC_COMPLETE.
3101
353d1d73
JK
31022011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3103
3104 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3105 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3106 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3107 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3108 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3109 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3110 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3111 * infrun.c (fetch_inferior_event): Call
3112 make_bpstat_clear_actions_cleanup.
3113 * top.c (execute_command): New variable cleanup_if_error, call
3114 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3115 * utils.c (do_bpstat_clear_actions_cleanup)
3116 (make_bpstat_clear_actions_cleanup): New functions.
3117
3ced3da4
PA
31182011-08-26 Pedro Alves <pedro@codesourcery.com>
3119
3120 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3121 either the parent or the child forks. Rename a couple locals.
3122
a9f4bb21
PA
31232011-08-26 Pedro Alves <pedro@codesourcery.com>
3124
3125 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3126 library call. Avoid reading the `status' local if all waitpid
3127 calls failed.
3128
e5798bef
PA
31292011-08-26 Pedro Alves <pedro@codesourcery.com>
3130
3131 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3132 opening /proc/PID/task always succeeds.
3133
edb2aadf
AR
31342011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3135
3136 * linespec.c (symtab_from_filename): Check for the end of string.
3137
0d932b2f
MK
31382011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3139
3140 PR mi/11912
3141 * varobj.c (cplus_describe_child): Add the keyword
3142 'class' to the output of the method when dealing
3143 with a cast to a base class.
3144
e93ca019
JK
31452011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3146
3147 No functionality change.
3148 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3149 function comment a reference, new variables tp and bs, move here code
3150 from throw_exception.
3151 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3152 describe it in the comment.
3153 * exceptions.c (throw_exception): Remove variable tp, move the code for
3154 bpstat_clear_actions to bpstat_clear_actions.
3155
13da1c97
LM
31562011-08-24 Luis Machado <lgustavo@codesourcery.com>
3157
3158 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3159 * linux-nat.c: Include linux-procfs.h.
3160 (linux_proc_get_tgid): Move to ...
3161 * common/linux-procfs.c: ... here. New file.
3162 * common/linux-procfs.h: New file.
3163 * linux-thread-db.c: Include linux-procfs.h.
3164 * Makefile.in: Update dependencies.
3165 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3166 * config/arm/linux.mh: Likewise.
3167 * config/i386/linux.mh: Likewise.
3168 * config/i386/linux64.mh: Likewise.
3169 * config/ia64/linux.mh: Likewise.
3170 * config/m32r/linux.mh: Likewise.
3171 * config/m68k/linux.mh: Likewise.
3172 * config/mips/linux.mh: Likewise.
3173 * config/pa/linux.mh: Likewise.
3174 * config/pa/linux.mh: Likewise.
3175 * config/powerpc/linux.mh: Likewise.
3176 * config/powerpc/ppc64-linux.mh: Likewise.
3177 * config/powerpc/spu-linux.mh: Likewise.
3178 * config/sparc/linux.mh: Likewise.
3179 * config/sparc/linux64.mh: Likewise.
3180 * config/xtensa/linux.mh: Likewise.
3181
4e5c165d
HZ
31822011-08-24 Hui Zhu <teawater@gmail.com>
3183
3184 * tracepoint.c (cond_string_is_same): New function.
3185 (find_matching_tracepoint): Add condition check
3186 by cond_string_is_same.
3187
6e2f5b22
JK
31882011-08-23 Josh Matthews <josh@joshmatthews.net>
3189
3190 Fix build error in Darwin port.
3191 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3192
abf85f46
JK
31932011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 Code cleanup.
3196 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3197 (command_line_is_silent): New function.
3198 (bpstat_do_actions_1): No longer use commands_left, use
3199 command_line_is_silent for commands.
3200 (bpstat_alloc): Remove clearing of commands_left.
3201 (bpstat_stop_status): Remove initialization of commands_left, use
3202 command_line_is_silent.
3203 * breakpoint.h (struct bpstats): Remove commands_left.
3204
3a93a0c2
KS
32052011-08-18 Keith Seitz <keiths@redhat.com>
3206
3207 PR c++/12266
3208 * cp-name-parser.y (struct demangle_info): Remove unused
3209 member PREV.
3210 (d_grab): Likewise.
3211 (allocate_info): Change return type to struct demangle_info *.
3212 Always allocate a new demangle_info.
3213 Remove unused PREV pointer.
3214 (cp_new_demangle_parse_info): New function.
3215 (cp_demangled_name_parse_free): New function.
3216 (do_demangled_name_parse_free_cleanup): New function.
3217 (make_cleanup_cp_demangled_name_parse_free): New function.
3218 (cp_demangled_name_to_comp): Change return type to
3219 struct demangle_parse_info *.
3220 Allocate a new storage for each call.
3221 (main): Update usage for cp_demangled_name_to_comp
3222 API change.
3223 * cp-support.h (struct demangle_parse_info): New structure.
3224 (cp_demangled_name_to_comp): Update API change for
3225 return type.
3226 (cp_new_demangle_parse_info): Declare.
3227 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3228 (cp_demangled_name_parse_free): Declare.
3229 * cp-support.c (cp_canonicalize_string): Update API
3230 change for cp_demangled_name_to_comp.
3231 (mangled_name_to_comp): Likewise.
3232 Return struct demangle_parse_info, too.
3233 (cp_class_name_from_physname): Update mangled_name_to_comp
3234 API change.
3235 (method_name_from_physname): Likewise.
3236 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3237 (cp_remove_params): Likewise.
3238 * python/py-type.c (typy_legacy_template_argument): Likewise.
3239
3240 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3241 (cp_merge_demangle_parse_infos): Declare.
3242 * cp-support.c (ignore_typedefs): New file global.
3243 (copy_string_to_obstack): New function.
3244 (inspect_type): New function.
3245 (replace_typedefs): New function.
3246 (replace_typedefs_qualified_name): New function.
3247 (cp_canonicalize_string_no_typedefs): New function.
3248 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3249 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3250 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3251 instead of cp_canonicalize_string.
3252 (find_method): Likewise.
3253 (decode_compound): Before looking up the name, call
3254 cp_canonicalize_string_no_typedefs.
3255 (decode_variable): Likewise.
3256
fa3a4f15
PM
32572011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3258 Tom Tromey <tromey@redhat.com>
3259 Matt Rice <ratmice@gmail.com>
3260
3261 * python/lib/gdb/prompt.py: New file.
3262 * python/lib/gdb/command/prompt.py: New file.
3263 * NEWS: Document set extended-prompt and gdb.prompt library
3264
85661b1e
YQ
32652011-08-16 Yao Qi <yao@codesourcery.com>
3266
3267 * tic6x-linux-tdep.c: Move const arrays definition from here...
3268 * tic6x-tdep.c: to here ...
3269
11315641
YQ
32702011-08-14 Yao Qi <yao@codesourcery.com>
3271
3272 * NEWS: New port to Texas Instruments TMS320C6x.
3273
8cd64e00
YQ
32742011-08-14 Andrew Jenner <andrew@codesourcery.com>
3275 Bernd Schmidt <bernds@codesourcery.com>
3276 Yao Qi <yao@codesourcery.com>
3277
3278 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3279 * solib-dsbt.c: New file. Support DSBT shared object.
3280 * tic6x-linux-tdep.c: New file.
3281 * tic6x-tdep.c: New file.
3282 * tic6x-tdep.h: New file.
3283
78d85199
YQ
32842011-08-14 Andrew Stubbs <ams@codesourcery.com>
3285 Yao Qi <yao@codesourcery.com>
3286
3287 * remote.c (PACKET_qXfer_fdpic): New enum value.
3288 (remote_protocol_features): Add qXfer:fdpic:read packet.
3289 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3290 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3291 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3292
224bbe49
YQ
32932011-08-14 Yao Qi <yao@codesourcery.com>
3294
3295 Target description for tic6x.
3296 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3297 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3298 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3299 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3300 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3301 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3302 * features/tic6x-c64xp-linux.xml: New.
3303 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3304 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3305 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3306 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3307 * regformats/tic6x-c64xp.dat,
3308 regformats/tic6x-c62x-linux.dat: Generated.
3309 * regformats/tic6x-c64x-linux.dat,
3310 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3311 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3312 features/tic6x-*.c files.
3313 Add regformats/tic6x-*.dat files.
3314
457e09f0
DE
33152011-08-12 Doug Evans <dje@google.com>
3316
3317 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3318 * python/py-symbol.c (sympy_get_type): New function.
3319 (symbol_object_getset): Add "type".
3320
d20c1c3f
PA
33212011-08-12 Pedro Alves <pedro@codesourcery.com>
3322
3323 PR tui/13073
3324
3325 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3326 empty name.
3327 (tui_show_register_group): Don't store a byte buffer in the data
3328 element's value.
3329 (tui_register_format): Skip registers with an empty name.
3330 (tui_get_register): Store a struct value in the data element's
3331 value field instead of a byte buffer holding the raw register
3332 contents. Account for optimized-out and unavailable registers
3333 when comparing register contents.
3334
9d8fa392
PA
33352011-08-09 Pedro Alves <pedro@codesourcery.com>
3336
3337 * printcmd.c (current_display_number): Update comment.
3338 (disable_current_display_cleanup): Delete.
3339 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3340 catch errors thrown while evaluating and printing the display.
3341
401a70b8
TT
33422011-08-09 Tom Tromey <tromey@redhat.com>
3343
3344 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3345
7f86f058
PA
33462011-08-09 Pedro Alves <pedro@codesourcery.com>
3347
94b71cca 3348 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3349 * maint.c (maintenance_command): Ditto.
3350 * somread.c (som_symtab_read): Ditto.
3351 * solib.c (solib_find, solib_map_sections, update_solib_list)
3352 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3353 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3354 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3355 * solib-irix.c (locate_base, disable_break, enable_break)
3356 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3357 (irix_current_sos, irix_open_symbol_file_object)
3358 (irix_special_symbol_handling): Ditto.
3359 * solib-sunos.c (locate_base, first_link_map_member)
3360 (sunos_current_sos, disable_break, enable_break)
3361 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3362 Ditto.
3363 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3364 (open_symbol_file_object, svr4_current_sos, enable_break)
3365 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3366 Ditto.
3367 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3368 (frv_current_sos, enable_break, frv_special_symbol_handling)
3369 (frv_solib_create_inferior_hook): Ditto.
3370 * solist.h (struct target_so_ops): Extend the comments of the
3371 special_symbol_handling, current_sos and open_symbol_file_object
3372 methods.
3373
5e239b84
PM
33742011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3375
3376 * python/lib/gdb/__init__.py: Auto-load files in command and
3377 function directories.
3378 * python/python.c (finish_python_initialization): Use
3379 os.path.join.
3380 * python/lib/gdb/command/pretty_printers.py: Self register
3381 command.
3382 * NEWS: Document auto-loading.
3383
b6cede78
JK
33842011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3387 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3388 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3389
29d0bb3d
TT
33902011-08-08 Tom Tromey <tromey@redhat.com>
3391
3392 * breakpoint.c (clean_up_filters): Remove.
3393 (catch_syscall_split_args): Use VEC_cleanup.
3394
2f7fb8e4
JK
33952011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3398 (main): Uncomment "Demangling error\n".
3399
d6c10e95
PP
34002011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3401
3402 * solib-target.c (segment_attributes): Make them static.
3403 (section_attributes, library_children, library_attributes): Likewise.
3404 (library_list_children, library_list_attributes): Likesise.
3405 (library_list_elements): Likewise.
3406
af6e93b2
PA
34072011-08-05 Pedro Alves <pedro@codesourcery.com>
3408
3409 * exceptions.c (throw_exception): Don't disable the current
3410 display.
3411 * printcmd.c (disable_current_display_cleanup): New function.
3412 (do_one_display): Install a cleanup to disable the current display
3413 if doing the display throws.
3414
6a1b1664
EZ
34152011-08-05 Eli Zaretskii <eliz@gnu.org>
3416
3417 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3418 initialization of the tp_new member to the corresponding
3419 gdbpy_initialize_* function.
3420 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3421 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3422 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3423 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3424 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3425
31a0ae49
JK
34262011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3429 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3430 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3431 references to current_uiout.
3432
e0dd0826
PA
34332011-08-04 Pedro Alves <pedro@codesourcery.com>
3434
3435 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3436 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3437 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3438 * top.c (gdb_readline_wrapper): Adjust.
3439 * tui/tui-interp.c (tui_command_loop):
3440 (_initialize_tui_interp): Don't install it.
3441
79a45e25
PA
34422011-08-04 Pedro Alves <pedro@codesourcery.com>
3443
3444 * ui-out.h (uiout): Rename to ...
3445 (current_uiout): ... this.
3446 * ui-out.c (uiout): Rename to ...
3447 (current_uiout): ... this.
3448 * ada-lang.c (print_it_exception, print_one_exception)
3449 (print_mention_exception): Adjust.
3450 * breakpoint.c (watchpoint_check): Adjust.
3451 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3452 (default_collect_info, watchpoints_info, print_one_catch_fork)
3453 (print_one_catch_vfork, print_one_catch_syscall)
3454 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3455 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3456 (print_it_watchpoint, print_mention_watchpoint)
3457 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3458 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3459 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3460 (bkpt_print_mention, momentary_bkpt_print_it)
3461 (tracepoint_print_mention, update_static_tracepoint)
3462 (tracepoints_info, save_breakpoints): Adjust.
3463 * cli-out.c (field_separator): Adjust.
3464 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3465 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3466 * frame.c (get_current_frame): Adjust.
3467 * infcmd.c (run_command_1, print_return_value): Adjust.
3468 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3469 * infrun.c (print_end_stepping_range_reason): Adjust.
3470 (print_signal_exited_reason, print_exited_reason): Adjust.
3471 (print_signal_received_reason, print_no_history_reason): Adjust.
3472 * interps.c (interp_set): Adjust.
3473 * osdata.c (info_osdata_command): Adjust.
3474 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3475 * remote-fileio.c (remote_fileio_request): Adjust.
3476 * remote.c (show_remote_cmd): Adjust.
3477 * solib.c (info_sharedlibrary_command): Adjust.
3478 * source.c (print_source_lines_base): Adjust.
3479 * stack.c (print_stack_frame): Adjust.
3480 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3481 * symfile-mem.c (add_vsyscall_page): Adjust.
3482 * symfile.c (load_progress, generic_load)
3483 (print_transfer_performance): Adjust.
3484 * thread.c (info_threads_command, restore_selected_frame)
3485 (thread_command): Adjust.
3486 * top.c (make_cleanup_restore_ui_file): Adjust.
3487 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3488 (print_one_static_tracepoint_marker): Adjust.
3489 * cli/cli-cmds.c (print_disassembly): Adjust.
3490 * cli/cli-decode.c (print_doc_line): Adjust.
3491 * cli/cli-interp.c (safe_execute_command): Adjust.
3492 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3493 (handle_redirections): Adjust.
3494 * cli/cli-script.c (show_user_1): Adjust.
3495 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3496 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3497 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3498 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3499 (mi_cmd_env_dir): Adjust.
3500 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3501 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3502 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3503 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3504 (list_args_or_locals): Adjust.
3505 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3506 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3507 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3508 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3509 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3510 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3511 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3512 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3513 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3514 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3515 (list_available_thread_groups, mi_cmd_list_thread_groups)
3516 (mi_cmd_data_list_register_names)
3517 (mi_cmd_data_list_changed_registers)
3518 (mi_cmd_data_list_register_values, get_register)
3519 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3520 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3521 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3522 (mi_execute_command, mi_load_progress): Adjust.
3523 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3524 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3525 Adjust.
3526 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3527 * tui/tui-interp.c (tui_command_loop): Adjust.
3528 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3529
f9679975
PA
35302011-08-04 Pedro Alves <pedro@codesourcery.com>
3531
3532 * exceptions.c (struct catcher): Remove saved_uiout field.
3533 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3534 no longer save/resvore the global ui_out builder.
3535 (catch_exceptions_with_msg): Save/override/restore the global
3536 ui_out builder manually instead of relying on TRY_CATCH to do it.
3537 (catch_errors): Save/restore the global ui_out builder manually
3538 instead of relying on TRY_CATCH to do it.
3539 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3540 parameter.
3541 (TRY_CATCH): Adjust.
3542 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3543 the global ui_out builder manually instead of relying on TRY_CATCH
3544 to do it.
3545
934709f0
PW
35462011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3547
3548 * breakpoint.c (update_global_location_list): Ensure
3549 invariant 'first loc marked not duplicated and inserted,
3550 following locs marked duplicated/not inserted' is respected
3551 for multiple locations at the same address.
3552 (unduplicated_should_be_inserted) New function.
3553 (swap_insertion) New function.
3554
2421fe6f
JK
35552011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 * stack.c (print_frame_arguments_choices): Comment typo fix.
3558
3fbb6ffa
TJB
35592011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3560
3561 Revert:
3562 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3563 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3564 argument. Update callers.
3565
fbe12357
PP
35662011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3567
3568 PR gdb/13045
3569 * doublest.c (convert_doublest_to_floatformat): Pass correct
3570 mantissa length to put_field.
3571
b1d288d3
JK
35722011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3575 exception_print code path.
3576 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3577 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3578 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3579
311b5970
JK
35802011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3581
3582 Code cleanup.
3583 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3584 Remove, merge them into ...
3585 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3586 variable args and its initialization.
3587 (struct print_args_args, print_args_stub): Remove, merge them into
3588 print_frame.
3589 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3590 them into ...
3591 (do_gdb_disassembly): ... here. Remove variable args and its
3592 initialization.
3593 (print_frame): Remove variable args and its initialization, new
3594 variable gdbarch and numargs (from print_args_stub), inline here
3595 print_args_stub with a TRY_CATCH.
3596 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3597 them into ...
3598 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3599 New variable e, remove variable btargs and its initialization.
311b5970 3600
484a26a8
TG
36012011-08-01 Tristan Gingold <gingold@adacore.com>
3602
3603 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3604
c30eee59
TJB
36052011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3606
3607 * breakpoint.c (insert_bp_location): Document return value.
3608 (insert_breakpoint_locations): Fix documentation.
3609 (remove_breakpoints): Add documentation.
3610
f116073b
TJB
36112011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3612
3613 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3614 argument. Update callers.
3615
65aa373f
JK
36162011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 * stack.c (print_frame_info): Comment typo fix.
3619
a50242fb
SA
36202011-07-29 Sterling Augustine <saugustine@google.com>
3621
3622 * MAINTAINERS (Write After Approval): Add myself to the list.
3623
267f6504
TT
36242011-07-29 Tom Tromey <tromey@redhat.com>
3625
3626 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3627 (library_list_start_segment): Update.
3628 (library_list_start_section): Update.
3629
00bd41d6
PM
36302011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3631
3632 * varobj.c (value_get_print_value): Move hint check later into the
3633 function. Comment function. Free thevalue before reusing it.
3634
18a46dbe
JK
36352011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3636 Pedro Alves <pedro@codesourcery.com>
3637
3638 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3639 value_one.
3640 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3641 Assert the result kind.
3642 * value.h (value_one): Remove parameter lv.
3643
bb7da2bf
JK
36442011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3645
3646 Fix crash on lval_computed values.
3647 * valops.c (value_zero): Use not_lval for lval_computed.
3648
2d5213f8
TT
36492011-07-27 Tom Tromey <tromey@redhat.com>
3650
3651 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3652 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3653
11081198
JK
36542011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3657 "ptype" by their typedefs difference.
3658
3c6e0cb3
JK
36592011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 * dwarf2expr.c (ctx_no_read_reg): New function.
3662 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3663 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3664 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3665 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3666
523f3620
JK
36672011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3668
3669 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3670 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3671 file.
3672 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3673 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3674 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3675 (ctx_no_get_base_type): Move the functions here.
3676 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3677 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3678 (ctx_no_get_base_type): New declarations.
3679
24d3216f
TT
36802011-07-27 Tom Tromey <tromey@redhat.com>
3681
3682 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3683 entries.
3684 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3685 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3686
5005c8a9
PP
36872011-07-26 Sterling Augustine <saugustine@google.com>
3688
3689 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3690 ULONGEST.
3691 (dump_bfd_file): Likewise.
3692
480a3f21
PW
36932011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3694
3695 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3696 (remote_hw_watchpoint_length_limit): New variable.
3697 (_initialize_remote) add set,show cmds for this new variable.
3698 * gdb.texinfo: document these new commands.
3699 * NEWS: Mention these new commands.
3700
efa80663
PA
37012011-07-26 Pedro Alves <pedro@codesourcery.com>
3702
3703 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3704 true for software watchpoints.
3705
dbdaa232 37062011-07-26 Joel Brobecker <brobecker@adacore.com>
3707
3708 GDB 7.3 released.
3709
cf2c3c16
TT
37102011-07-26 Tom Tromey <tromey@redhat.com>
3711
3712 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3713 * dwarf2read.c (read_indirect_string_at_offset): New function.
3714 (read_indirect_string): Use it.
3715 (dwarf_decode_macro_bytes): New function, taken from
3716 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3717 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3718 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3719 New functions.
3720 (struct dwarf2_per_objfile) <macro>: New field.
3721 (dwarf2_elf_names): Add .debug_macro.
3722 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3723 (dwarf2_locate_sections): Handle new section.
3724 (read_file_scope): Handle DW_AT_GNU_macros.
3725 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3726
1a532630
PP
37272011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3728
3729 * NEWS: Mention dcache configuration.
3730 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3731 (dcache_size, dcache_line_size): New variables.
3732 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3733 (struct dcache_block): Make it expandable.
3734 (struct dcache_struct): New field.
3735 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3736 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3737 (dcache_poke_byte, dcache_print_line): Adjust.
3738 (set_dcache_size, set_dcache_line_size): New functions.
3739 (set_dcache_command, show_dcache_command): New functions.
3740 (_initialize_dcache): Add new commands.
3741
2eff07b3
PP
37422011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3743
3744 * progspace.h (struct program_space): Add solib_add_generation.
3745 * infcmd.c (post_create_inferior): Only call solib_add if not
3746 already done.
3747 * solib.c (solib_add): Increment solib_add_generation.
3748
543305c9
JK
37492011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3750
3751 Fix implicit pointer offsets.
3752 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3753 ptr.OFFSET.
3754
c0a91b2b
TT
37552011-07-25 Tom Tromey <tromey@redhat.com>
3756
3757 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3758 const.
3759 (ada_exception_sal): Make 'ops' const.
3760 (ada_decode_exception_location): Likewise.
3761 (ada_decode_assert_location): Likewise.
3762 (catch_assert_command): Update.
3763 (catch_ada_exception_command): Update.
3764 (create_ada_exception_catchpoint): Make 'ops' const.
3765 * breakpoint.c (set_raw_breakpoint_without_location)
3766 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3767 const.
3768 (create_internal_breakpoint): Update.
3769 (init_raw_breakpoint_without_location): Make 'ops' const.
3770 (init_raw_breakpoint, init_catchpoint)
3771 (create_fork_vfork_event_catchpoint)
3772 (create_syscall_event_catchpoint, init_breakpoint_sal)
3773 (create_breakpoint_sal, create_breakpoints_sal)
3774 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3775 * breakpoint.h (struct breakpoint) <ops>: Now const.
3776 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3777 const.
3778
6cb9b55b
PP
37792011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3780
3781 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3782
d9b3f62e
PA
37832011-07-25 Pedro Alves <pedro@codesourcery.com>
3784
3785 * breakpoint.h (print_recreate_thread): Declare.
3786 (struct breakpoint): Move step_count, pass_count,
3787 number_on_target, static_trace_marker_id,
3788 static_trace_marker_id_idx ...
3789 (struct tracepoint): ... to this new struct.
3790 (get_tracepoint, get_tracepoint_by_number_on_target)
3791 (get_tracepoint_by_number): Change return type to struct
3792 tracepoint pointer.
3793 * breakpoint.c (is_tracepoint_type): New, factored out from
3794 is_tracepoint.
3795 (is_tracepoint): Adjust.
3796 (print_one_breakpoint_location): Cast to struct tracepoint as
3797 necessary, and adjust.
3798 (print_recreate_catch_fork, print_recreate_catch_vfork)
3799 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3800 print_recreate_thread.
3801 (init_breakpoint_sal): New, factored out from
3802 create_breakpoint_sal.
3803 (create_breakpoint_sal): Reimplement.
3804 (create_breakpoint): Allocate a struct tracecepoint if the caller
3805 wanted a tracepoint. Use init_breakpoint_sal and
3806 install_breakpoint.
3807 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3808 (print_recreate_masked_watchpoint)
3809 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3810 (tracepoint_print_one_detail): Adjust.
3811 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3812 Dump the pass count here.
3813 (update_static_tracepoint): Adjust.
3814 (addr_string_to_sals): Adjust.
3815 (create_tracepoint_from_upload): Adjust. Change return type to
3816 struct tracepoint pointer.
3817 (trace_pass_set_count): Change parameter type to struct tracepoint
3818 pointer, and adjust.
3819 (trace_pass_command): Adjust.
3820 (get_tracepoint, get_tracepoint_by_number_on_target)
3821 (get_tracepoint_by_number): Change return type to struct
3822 tracepoint pointer, and adjust.
3823 (print_recreate_thread): New, factored out from save_breakpoints.
3824 (save_breakpoints): Don't print thread and task and passcount
3825 recreation here.
3826 * remote.c (remote_download_tracepoint): Adjust.
3827 * tracepoint.c (trace_actions_command, validate_actionline)
3828 (start_tracing, tfind_1, trace_find_tracepoint_command)
3829 (trace_dump_command): Adjust.
3830 (find_matching_tracepoint): Change return type to struct
3831 tracepoint pointer, and adjust.
3832 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3833 (tfile_trace_find, tfile_fetch_registers): Adjust.
3834 * tracepoint.h (create_tracepoint_from_upload): Change return type
3835 to struct tracepoint pointer.
3836 * ada-lang.c (print_recreate_exception): Call
3837 print_recreate_thread.
3838 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3839
3a5c3e22
PA
38402011-07-25 Pedro Alves <pedro@codesourcery.com>
3841
3842 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3843 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3844 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3845 watchpoint_thread, watchpoint_triggered ...
3846 (struct watchpoint): ... to this new struct.
3847 (is_watchpoint): Declare.
3848 (install_breakpoint): Add new `internal' parameter.
3849 * breakpoint.c (is_watchpoint): Delete declaration.
3850 (set_breakpoint_condition): Handle watchpoints.
3851 (is_watchpoint): Make public.
3852 (watchpoint_in_thread_scope): Change parameter type to struct
3853 watchpoint.
3854 (watchpoint_del_at_next_stop): Change parameter type to struct
3855 watchpoint. Remove assertion. Adjust.
3856 (update_watchpoint): Ditto.
3857 (insert_breakpoints, breakpoint_init_inferior)
3858 (watchpoints_triggered, watchpoint_check)
3859 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3860 (bpstat_stop_status, print_one_breakpoint_location)
3861 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3862 to struct watchpoint as necessary, and adjust.
3863 (install_breakpoint): Add `internal' argument. If true, don't
3864 mention the new breakpoint. Use set_breakpoint_number.
3865 (create_fork_vfork_event_catchpoint)
3866 (create_syscall_event_catchpoint): Adjust.
3867 (dtor_watchpoint): New.
3868 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3869 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3870 (print_it_watchpoint, print_mention_watchpoint)
3871 (print_recreate_watchpoint, insert_masked_watchpoint)
3872 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3873 (print_one_detail_masked_watchpoint)
3874 (print_mention_masked_watchpoint)
3875 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3876 necessary, and adjust.
3877 (watch_command_1): Allocate and initialize a struct watchpoint
3878 instead of a struct breakpoint. Use install_breakpoint.
3879 (catch_exec_command_1): Adjust.
3880 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3881 fields.
3882 (delete_breakpoint, enable_breakpoint_disp)
3883 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3884 as necessary, and adjust.
3885 (initialize_breakpoint_ops): Install dtor_watchpoint as
3886 watchpoints' dtor method.
3887 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3888 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3889 to struct watchpoint as necessary, and adjust.
3890
2060206e
PA
38912011-07-25 Pedro Alves <pedro@codesourcery.com>
3892
3893 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3894 the the base class ops table.
3895 (catch_exception_breakpoint_ops)
3896 (catch_exception_unhandled_breakpoint_ops)
3897 (catch_assert_breakpoint_ops): Don't statically initialize.
3898 (initialize_ada_catchpoint_ops): New.
3899 (_initialize_ada_language): Call it.
3900 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3901 (bkpt_breakpoint_ops): Forward declare.
3902 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3903 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3904 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3905 (masked_watchpoint_breakpoint_ops)
3906 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3907 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3908 base class ops table.
3909 (null_re_set, null_check_status, null_works_in_software_mode)
3910 (null_resources_needed, null_print_one_detail): Delete.
3911 (bkpt_dtor): Rename to ...
3912 (base_breakpoint_dtor): ... this. Make static.
3913 (bkpt_allocate_location): Rename to ...
3914 (base_breakpoint_allocate_location): ... this. Make static.
3915 (base_breakpoint_re_set): New.
3916 (internal_error_pure_virtual_called): New.
3917 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3918 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3919 (base_breakpoint_works_in_software_mode)
3920 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3921 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3922 (base_breakpoint_print_recreate): New functions.
3923 (base_breakpoint_ops): New global.
3924 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3925 (bkpt_breakpoint_hit): Make static.
3926 (bkpt_check_status): Delete.
3927 (bkpt_resources_needed): Make static.
3928 (bkpt_works_in_software_mode): Delete.
3929 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3930 static.
3931 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3932 (momentary_breakpoint_ops): Don't statically initialize.
3933 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3934 Delete.
3935 (tracepoint_insert_location, tracepoint_remove_location)
3936 (tracepoint_check_status, tracepoint_works_in_software_mode)
3937 (tracepoint_print_it): Delete.
3938 (tracepoint_breakpoint_ops): Don't statically initialize.
3939 (initialize_breakpoint_ops): New.
3940 (_initialize_breakpoint): Call it.
3941 * breakpoint.h (null_re_set, null_works_in_software_mode)
3942 (null_resources_needed, null_check_status, null_print_one_detail):
3943 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3944 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3945 (bkpt_check_status, bkpt_resources_needed)
3946 (bkpt_works_in_software_mode, bkpt_print_it)
3947 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3948 Delete declarations.
3949 (initialize_breakpoint_ops): Declare.
3950
001c8c33
PA
39512011-07-25 Pedro Alves <pedro@codesourcery.com>
3952
3953 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3954 (momentary_bkpt_print_it): Simplify.
3955
06edf0c0
PA
39562011-07-25 Pedro Alves <pedro@codesourcery.com>
3957
3958 Split internal, momentary and user breakpoints breakpoint_ops
3959 tables.
3960
3961 * breakpoint.c (internal_breakpoint_ops)
3962 (momentary_breakpoint_ops): Forward declare.
3963 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3964 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3965 (create_overlay_event_breakpoint)
3966 (create_std_terminate_master_breakpoint)
3967 (create_exception_master_breakpoint): Create breakpoints with
3968 internal_breakpoint_ops vtable.
3969 (set_longjmp_breakpoint): Create momentary breakpoints with
3970 momentary_breakpoint_ops vtable, using
3971 momentary_breakpoint_from_master.
3972 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3973 (create_solib_event_breakpoint): Create breakpoints with
3974 internal_breakpoint_ops vtable.
3975 (set_momentary_breakpoint): Create breakpoints with
3976 momentary_breakpoint_ops vtable.
3977 (momentary_breakpoint_from_master): New, factored out from
3978 clone_momentary_breakpoint.
3979 (clone_momentary_breakpoint): Adjust.
3980 (watch_command_1): Create scope breakpoints with
3981 momentary_breakpoint_ops vtable.
3982 (bkpt_re_set): Remove handling of internal and momentary
3983 breakpoints.
3984 (bkpt_print_mention, bkpt_print_recreate): New.
3985 (bkpt_breakpoint_ops): Adjust.
3986 (internal_bkpt_re_set, internal_bkpt_check_status)
3987 (internal_bkpt_print_it, internal_bkpt_print_mention)
3988 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3989 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3990 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3991 (momentary_bkpt_print_recreate): New.
3992 (momentary_breakpoint_ops): New.
3993
348d480f
PA
39942011-07-25 Pedro Alves <pedro@codesourcery.com>
3995
3996 Implement most breakpoint_ops methods for all breakpoint types,
3997 and move the default handlings to the proper callbacks.
3998
3999 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4000 works_in_software_mode method.
4001 (insert_bp_location): Go through breakpoint_ops->insert_location
4002 for software and hardware watchpoints.
4003 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4004 breakpoint_ops.
4005 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4006 for software and hardware watchpoints.
4007 (print_it_typical): Delete.
4008 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4009 method.
4010 (watchpoint_check): Adjust comment.
4011 (bpstat_check_location): Simply always call the breakpoint's
4012 breakpoint_hit method.
4013 (bpstat_stop_status): Always call the breakpoint's check_status
4014 method. Remove special cases for watchpoints and internal event
4015 breakpoints from here (moved to the check_status implementations).
4016 (print_one_breakpoint_location): Assume b->ops is never NULL.
4017 Remove static tracepoint marker id printing from here (moved to
4018 the print_one_detail callback implementation of tracepoints).
4019 (init_bp_location): Assert OPS is never NULL.
4020 (allocate_bp_location): Always call the breakpoint's
4021 allocate_location method, and remove the default code from here.
4022 (free_bp_location): Always call the location's dtor method, and
4023 remove the default code from here.
4024 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4025 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4026 parameter. Pass it down.
4027 (set_raw_breakpoint): Ditto.
4028 (print_it_catch_fork): Adjust to take a bpstat as argument.
4029 (catch_fork_breakpoint_ops): Install methods.
4030 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4031 (catch_vfork_breakpoint_ops): Install methods.
4032 (dtor_catch_syscall): Call the base dtor.
4033 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4034 (catch_syscall_breakpoint_ops): Install methods.
4035 (dtor_catch_exec): Call the base dtor.
4036 (print_it_catch_exec): Adjust to take a bpstat as argument.
4037 (catch_exec_breakpoint_ops): Install methods.
4038 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4039 the breakpoint's resources_needed method, and remove the default
4040 code from here.
4041 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4042 breakpoint_ops.
4043 (clone_momentary_breakpoint): Clone the original's ops.
4044 (mention): Always call the breakpoint's print_mention method, and
4045 remove the default code from here.
4046 (create_breakpoint_sal): Adjust to pass the ops to
4047 set_raw_breakpoint rather than setting it manually.
4048 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4049 ops to set_raw_breakpoint_without_location rather than setting it
4050 manually.
4051 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4052 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4053 (ranged_breakpoint_ops): Install methods.
4054 (break_range_command): Adjust to pass the ops to
4055 set_raw_breakpoint rather than setting it manually.
4056 (re_set_watchpoint, breakpoint_hit_watchpoint)
4057 (check_status_watchpoint, resources_needed_watchpoint)
4058 (works_in_software_mode_watchpoint, print_it_watchpoint)
4059 (print_mention_watchpoint, print_recreate_watchpoint): New
4060 functions.
4061 (watchpoint_breakpoint_ops): Install new methods.
4062 (print_it_masked_watchpoint): New function.
4063 (masked_watchpoint_breakpoint_ops): Install new methods.
4064 (watch_command_1): Adjust to pass the right breakpoint_ops to
4065 set_raw_breakpoint_without_location rather than setting it
4066 manually later. Record the current pspace.
4067 (print_it_exception_catchpoint): Adjust to take a bpstat as
4068 argument.
4069 (gnu_v3_exception_catchpoint_ops): Install new methods.
4070 (say_where): New function.
4071 (null_re_set, null_check_status, null_works_in_software_mode)
4072 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4073 New functions.
4074 (bp_location_ops): New global.
4075 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4076 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4077 (bkpt_check_status, bkpt_resources_needed)
4078 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4079 (bkpt_print_recreate): New functions.
4080 (bkpt_breakpoint_ops): New global.
4081 (tracepoint_re_set, tracepoint_insert_location)
4082 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4083 (tracepoint_check_status, tracepoint_works_in_software_mode)
4084 (tracepoint_print_it, tracepoint_print_one_detail)
4085 (tracepoint_print_mention, tracepoint_print_recreate): New
4086 functions.
4087 (tracepoint_breakpoint_ops): New global.
4088 (delete_breakpoint): Always call the breakpoint's dtor method, and
4089 remove the default handling from here.
4090 (breakpoint_re_set_default): Make static.
4091 (breakpoint_re_set_one): Always call the breakpoints re_set
4092 method, and remove the default handling from here.
4093 (trace_command, ftrace_command, strace_command)
4094 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4095 to create_breakpoint.
4096 (save_breakpoints): Always call the breakpoint's print_recreate
4097 method, and remove the default handling from here.
4098
4099 * ada-lang.c (dtor_exception): Call the base dtor.
4100 (re_set_exception): Call the base method.
4101 (print_it_exception, print_it_catch_exception): Adjust to take a
4102 bpstat as argument.
4103 (catch_exception_breakpoint_ops): Install methods.
4104 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4105 argument.
4106 (catch_exception_unhandled_breakpoint_ops): Install methods.
4107 (print_it_catch_assert): Adjust to take a bpstat as argument.
4108 (catch_assert_breakpoint_ops): Install methods.
4109
4110 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4111 to take a bpstat as argument.
4112 (enum print_stop_action): Add describing comments to each enum
4113 value.
4114 (breakpoint_re_set_default): Delete declaration.
4115 (null_re_set, null_works_in_software_mode, null_resources_needed)
4116 (null_check_status, null_print_one_detail): Declare.
4117 (bkpt_breakpoint_ops): Declare.
4118 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4119 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4120 (bkpt_check_status, bkpt_resources_needed)
4121 (bkpt_works_in_software_mode, bkpt_print_it)
4122 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4123 Declare.
4124
4125 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4126 bkpt_breakpoint_ops.
4127 * python/py-breakpoint.c (bppy_init): Ditto.
4128
be8f8133
PW
41292011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4130
4131 * MAINTAINERS (Write After Approval): Add myself to the list.
4132
3807f613
PP
41332011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4134
4135 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4136
1ced966e
PA
41372011-07-22 Pedro Alves <pedro@codesourcery.com>
4138
4139 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4140 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4141 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4142 adjust.
4143 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4144 (struct i386_debug_reg_state): New.
4145 (i386_init_dregs): New.
4146 (dr_mirror): New.
4147 (i386_cleanup_dregs): Use i386_init_dregs.
4148 (i386_show_dr): Add state parameter and adjust.
4149 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4150 the inferior here.
4151 (i386_remove_aligned_watchpoint): Likewise.
4152 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4153 (i386_update_inferior_debug_regs): New.
4154 (i386_insert_watchpoint): Work on a local mirror of the debug
4155 registers, and only update the inferior on success.
4156 (i386_remove_watchpoint): Ditto.
4157 (i386_region_ok_for_watchpoint): Adjust.
4158 (i386_stopped_data_address): Adjust.
4159 (i386_insert_hw_breakpoint): Adjust.
4160 (i386_remove_hw_breakpoint): Adjust.
4161
3543a589
TT
41622011-07-22 Tom Tromey <tromey@redhat.com>
4163
4164 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4165 from amd64_pseudo_register_read. Change arguments. Call
4166 mark_value_bytes_unavailable when needed.
4167 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4168 set_gdbarch_pseudo_register_read.
4169 * sentinel-frame.c (sentinel_frame_prev_register): Use
4170 regcache_cooked_read_value.
4171 * regcache.h (regcache_cooked_read_value): Declare.
4172 * regcache.c (regcache_cooked_read_value): New function.
4173 (regcache_cooked_read): Call
4174 gdbarch_pseudo_register_read_value if available.
4175 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4176 (i386_pseudo_register_read): Remove.
4177 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4178 i386_pseudo_register_read. Change arguments. Call
4179 mark_value_bytes_unavailable when needed.
4180 (i386_pseudo_register_read_value): New function.
4181 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4182 not set_gdbarch_pseudo_register_read.
4183 * gdbarch.sh (pseudo_register_read_value): New method.
4184 * gdbarch.c, gdbarch.h: Rebuild.
4185 * findvar.c (value_from_register): Call get_frame_register_value.
4186
95298e72
PM
41872011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4188
4189 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4190 get_prefix.
4191 (display_gdb_prompt): Likewise.
4192 (change_annotation_level): Likewise.
4193 (push_prompt): Likewise.
4194 (pop_prompt): Likewise.
4195 (handle_stop_sig): Use get_prompt with a level.
4196 * top.c (command_loop): Use get_prompt with a level.
4197 (set_async_annotation_level): Use set_prompt with a level.
4198 (get_prefix): New function.
4199 (set_prefix): Ditto.
4200 (set_suffix): Ditto.
4201 (get_suffix): Ditto.
4202 (get_prompt): Accept a level argument.
4203 (set_prompt): Accept a level argument. Free old prompts. Set
4204 new_async_prompt if level is 0.
4205 (init_main): Use set_prompt with a level. Do not set
4206 new_async_prompt.
4207 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4208 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4209 Modify set_prompt, get_prompt to account for levels.
4210 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4211 level.
4212 * python/python.c (before_prompt_hook): Use set_prompt.
4213
d26e3629
KY
42142011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4215
4216 * defs.h: Add guard against inclusion in gdbserver.
4217 (struct ptid, ptid_t): Move to common/ptid.h.
4218 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4219 xsnprintf, internal_error): Move to common/common-utils.h.
4220 (nomem): Delete.
4221 * gdb_assert.h: Move into common/ sub-directory.
4222 * gdb_locale.h: Ditto.
4223 * gdb_dirent.h: Ditto.
4224 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4225 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4226 Move into common/ptid.h.
4227 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4228 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4229 Change nomem to malloc_failure.
4230 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4231 * utils.c (nomem): Rename to malloc_failure.
4232 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4233 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4234 (gdb_buildargv): Change nomem to malloc_failure.
4235 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4236 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4237 ptid_is_pid): Move into common/ptid.c.
4238 (initialize_infrun): Delete initialization of null_ptid and
4239 minus_one_ptid.
4240 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4241 linux_common_xfer_osdata.
4242 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4243 common/ptid.c and common/buffer.c.
4244 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4245 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4246 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4247 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4248 rules.
4249 * common/gdb_assert.h: New.
4250 * common/gdb_dirent.h: New.
4251 * common/gdb_locale.h: New.
4252 * common/buffer.c: New.
4253 * common/buffer.h: New.
4254 * common/ptid.c: New.
4255 * common/ptid.h: New.
4256 * common/xml-utils.c: New.
4257 * common/xml-utils.h: New.
4258 * common/common-utils.c: New.
4259 * common/common-utils.h: New.
4260 * common/linux-osdata.c: New.
4261 * common/linux-osdata.h: New.
4262 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4263 * config/arm/linux.mh (NATDEPFILES): Ditto.
4264 * config/i386/linux.mh (NATDEPFILES): Ditto.
4265 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4266 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4267 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4268 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4269 * config/mips/linux.mh (NATDEPFILES): Ditto.
4270 * config/pa/linux.mh (NATDEPFILES): Ditto.
4271 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4272 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4273 * config/s390/s390.mh (NATDEPFILES): Ditto.
4274 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4275 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4276 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4277
edc84990 42782011-07-21 Matt Rice <ratmice@gmail.com>
4279
4280 * NEWS: Add info macros and info definitions commands.
4281
3a7bf607
PM
42822011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4283
4284 * NEWS: Document Python prompt substitution hook.
4285
9b158ba0 42862011-07-18 Matt Rice <ratmice@gmail.com>
4287
4288 PR macros/12999
4289 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4290 * macrotab.c (foreach_macro): Ditto.
4291 (foreach_macro_in_scope): Ditto.
4292 * macrocmd.c (print_macro_callback): New function.
4293 (info_macro_command): Move some code to print_macro_definition.
4294 (print_macro_definition): New function.
4295 (print_one_macro): Add new arguments to callback.
4296 (info_definitions_command): New function.
4297 (info_macros_command): Ditto.
4298 (_initialize_macrocmd): Add info macros and info definitions commands.
4299 * symtab.c (add_macro_name): Add new arguments to callback.
4300
d17b6f81
PM
43012011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4302 Tom Tromey <tromey@redhat.com>
4303
4304 * top.c (set_prompt): Rewrite to free previous prompt, free
4305 asynch_new_prompt and set both on new prompts.
4306 * event-top.c (display_gdb_prompt): Add prompt substitution
4307 logic.
4308 * python/python.c (before_prompt_hook): New function.
4309
1364323a 43102011-07-20 Matt Rice <ratmice@gmail.com>
4311
4312 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4313 arguments to store_unsigned_integer.
4314
8b70b953
TT
43152011-07-20 Tom Tromey <tromey@redhat.com>
4316
6c83ed52
TT
4317 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4318 in some declaration-only cases.
4319
43202011-07-18 Tom Tromey <tromey@redhat.com>
4321
8b70b953
TT
4322 PR symtab/12984:
4323 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4324 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4325 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4326 <debug_type_section>: New field.
4327 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4328 (load_cu): Use appropriate section.
4329 (create_signatured_type_table_from_index): Add 'section'
4330 argument.
4331 (dwarf2_read_index): Only allow a single .debug_types section.
4332 (dw2_get_file_names): Use appropriate section.
4333 (read_type_comp_unit_head): Add 'section' argument.
4334 (create_debug_types_hash_table): Loop over all .debug_types
4335 sections.
4336 (init_cu_die_reader): Use appropriate section.
4337 (process_psymtab_comp_unit, load_partial_comp_unit)
4338 (load_full_comp_unit, read_die_and_children, find_partial_die)
4339 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4340 (lookup_signatured_type_at_offset): Add 'section' argument.
4341 (read_signatured_type_at_offset): Add 'sect' argument.
4342 (read_signatured_type): Use appropriate section.
4343 (set_die_type, get_die_type_at_offset): Update.
4344 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4345 VEC.
4346 (write_psymtabs_to_index): Don't allow index with more than one
4347 .debug_types section.
4348
918dd910
JK
43492011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4350
4351 Fix crash if referenced CU is aged out.
4352 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4353 xfree of block.data.
4354 (indirect_pieced_value): New variable back_to, use to for xfree of
4355 baton.data.
4356 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4357 block.data.
4358 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4359 (load_cu): New function from ...
4360 (dw2_do_instantiate_symtab): ... the code here ...
4361 (process_full_comp_unit): ... and here.
4362 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4363 retval.data.
4364
0e37a63c
JK
43652011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4366
4367 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4368 type.
4369
7e324e48
GB
43702011-07-19 Gary Benson <gbenson@redhat.com>
4371
4372 * infrun.c (struct execution_control_state): New member
4373 stop_func_filled_in.
4374 (clear_stop_func, fill_in_stop_func): New functions.
4375 (handle_inferior_event): Call clear_stop_func rather than
4376 manipulating the execution control state directly.
4377 Call fill_in_stop_func lazily as required rather than
4378 directly calling find_pc_partial_function in all cases.
4379
d48323d8
TT
43802011-07-18 Tom Tromey <tromey@redhat.com>
4381
4382 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4383 checking for variable-sized array.
4384
40591b7d
JCD
43852011-07-18 Jean-Charles Delay <delay@adacore.com>
4386
4387 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4388 of supported languages.
4389 * varobj.c: Add top definitions and basic implementation of the
4390 following callbacks: ada_number_of_children, ada_name_of_variable,
4391 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4392 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4393 (languages): Register Ada-specific callbacks.
4394 (variable_language): Add the Ada case in the language setter switch.
4395
2e424e08
JK
43962011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4399
9e8b7a03
JK
44002011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4401
4402 Code cleanup.
4403 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4404 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4405 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4406 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4407 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4408 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4409 (struct dwarf_expr_context_funcs): New, move here methods from ...
4410 (struct dwarf_expr_context): ... here. New fields funcs.
4411 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4412 (dwarf_expr_ctx_funcs): New.
4413 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4414 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4415 (needs_frame_ctx_funcs): New.
4416 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4417
2b1260ab
FM
44182011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4419
4420 * MAINTAINERS (Write After Approval): Add myself to the list.
4421
8bd90839
FM
44222011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4423
4424 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4425 that CIE pointer of an FDE really points to a CIE .
4426
953b98d1
HZ
44272011-07-15 Hui Zhu <teawater@gmail.com>
4428
4429 * remote.c (remote_get_trace_status): Add comments.
4430
c8f2448a
JK
44312011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4432
4433 Code cleanup - constify struct lval_funcs.
4434 * dwarf2loc.c (pieced_value_funcs): Make it const.
4435 * infrun.c (siginfo_value_funcs): Likewise.
4436 * opencl-lang.c (opencl_value_funcs): Likewise.
4437 * valops.c (value_assign, value_ind): Make the funcs variable const.
4438 * value.c (struct value): Make location.computed.funcs target const.
4439 Rearrange the comments.
4440 (allocate_computed_value): Make the funcs parameter target const.
4441 (value_computed_funcs): Return the funcs target const.
4442 (value_free, value_copy, set_value_component_location): Make the funcs
4443 variable const.
4444 * value.h (allocate_computed_value): Make the funcs parameter target
4445 const.
4446 (value_computed_funcs): Return the funcs target const.
4447 * windows-tdep.c (tlb_value_funcs): Make it const.
4448
f652de6f
HZ
44492011-07-14 Hui Zhu <teawater@gmail.com>
4450
4451 * remote.c (remote_get_trace_status): Initialize p.
4452
67f41397
JK
44532011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 Work around kgdb.
4456 * remote.c (remote_get_trace_status): New variable ex. Put
4457 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4458
d1b66e6d
TT
44592011-07-13 Tom Tromey <tromey@redhat.com>
4460
4461 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4462 value_from_contents for final conversion.
4463
1632a688
JK
44642011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4465
4466 Code cleanup.
4467 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4468 Indent prototypes so they do not get into tags.
4469
a7035dbb
JK
44702011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4471
4472 Code cleanup making also optimized out values lazy.
4473 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4474 allocate_optimized_out_value. Twice.
4475 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4476 * findvar.c (read_var_value): Likewise.
4477 * value.c (allocate_optimized_out_value): New function.
4478 * value.h (allocate_optimized_out_value): New declaration.
4479
d07ed419
JK
44802011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4481
4482 Fix occasional crash of CTRL-C during DWARF read in.
4483 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4484
86d31898
TT
44852011-07-11 Tom Tromey <tromey@redhat.com>
4486
4487 * regcache.c (struct regcache_descr): Fix typo.
4488 * i387-tdep.c (i387_supply_xsave): Fix typo.
4489
2ab95328
TT
44902011-07-11 Tom Tromey <tromey@redhat.com>
4491
4492 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4493 (read_file_scope, read_type_unit_scope): Use it.
4494
04ad99e6
JK
44952011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4496
4497 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4498 `int'.
4499
713389e0
PM
45002011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4501
4502 PR python/12438
4503 * python/python.c: Set gdbpy_should_print_stack default to off.
4504 (set_python): Deprecate maint set python print-stack to
4505 class_deprecate.
4506 (_initialize_python): Deprecate maint set/show python print-stack.
4507 Add new prefix command, python. Add new setting, print-backtrace.
4508 * NEWS: Document set python print-stack. Document default change.
4509
754eadd1
PM
45102011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4511
4512 * python/py-inferior.c (infpy_dealloc): New function.
4513 (inferior_to_inferior_object): Return a new object, or a
4514 new reference to the existing object.
4515 (find_thread_object): Cleanup references to inferior.
4516 (delete_thread_object): Ditto.
4517 * python/py-infthread.c (create_thread_object): Do not increment
4518 inferior reference count.
4519
5e44ecb3
TT
45202011-07-08 Tom Tromey <tromey@redhat.com>
4521
4522 * dwarf2loc.c (locexpr_regname): New function.
4523 (locexpr_describe_location_piece): Use it.
4524 (disassemble_dwarf_expression): Add per_cu argument. Use
4525 locexpr_regname.
4526 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4527 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4528 New cases.
4529 (locexpr_describe_location_1): Add per_cu argument.
4530 (locexpr_describe_location): Update.
4531 (loclist_describe_location): Update.
4532
e0e9434c
TT
45332011-07-08 Tom Tromey <tromey@redhat.com>
4534
4535 * dwarf2expr.c (execute_stack_op): Add QUIT.
4536
26afc0d7
HZ
45372011-07-07 Hui Zhu <teawater@gmail.com>
4538
4539 Revert:
4540 2011-07-06 Hui Zhu <teawater@gmail.com>
4541 * remote.c (remote_start_remote): Add TRY_CATCH for
4542 remote_get_trace_status.
4543 * tracepoint.c (disconnect_tracing): Ditto.
4544
a40a111f
AB
45452011-07-07 Andrew Burgess <aburgess@broadcom.com>
4546
4547 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4548 variables as signed, not unsigned.
4549
e2bd3b15
JB
45502011-07-06 Joel Brobecker <brobecker@adacore.com>
4551
4552 * jit.c (jit_inferior_init): Reformat forward declaration.
4553
e3d961fe 45542011-07-06 Matt Rice <ratmice@gmail.com>
4555
4556 * MAINTAINERS (Write After Approval): Add myself to the list.
4557
0f3428f0
HZ
45582011-07-06 Hui Zhu <teawater@gmail.com>
4559
4560 * remote.c (remote_start_remote): Add TRY_CATCH for
4561 remote_get_trace_status.
4562 * tracepoint.c (disconnect_tracing): Ditto.
4563
fc9f3a69
TT
45642011-07-05 Tom Tromey <tromey@redhat.com>
4565
4566 * symtab.c (operator_chars): Now static.
4567 * linespec.c (operator_chars): Don't declare.
4568
26e519b9
TJB
45692011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4570
4571 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4572
eb2a6f42
TT
45732011-07-05 Tom Tromey <tromey@redhat.com>
4574
4575 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4576 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4577 (TYPE_CPLUS_REALLY_JAVA): New macro.
4578 * dwarf2read.c (process_structure_scope): Set
4579 TYPE_CPLUS_REALLY_JAVA.
4580
21083d0f 45812011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4582
4583 * ada-lang.c: Fix typos.
4584 * amd64-tdep.c: Likewise.
4585 * breakpoint.c: Likewise.
4586 * cli/cli-decode.c: Likewise.
4587 * findcmd.c: Likewise.
4588 * inline-frame.c: Likewise.
4589 * mi/mi-main.c: Likewise.
4590 * minsyms.c: Likewise.
4591 * monitor.c: Likewise.
4592 * monitor.h: Likewise.
4593 * prologue-value.c: Likewise.
4594 * reverse.c: Likewise.
4595 * s390-tdep.c: Likewise.
4596
3b2a0cf2
JB
45972011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4598
4599 * jit.c (jit_inferior_init): Forward declare.
4600 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4601
efae1d92
JB
46022011-07-04 Joel Brobecker <brobecker@adacore.com>
4603
4604 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4605
6040a59d
JB
46062011-07-04 Tristan Gingold <gingold@adacore.com>
4607
4608 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4609 (tcb_fieldno): Add activation_link field.
4610 (get_known_tasks_addr): Moved and rewritten.
4611 (get_tcb_types_info): Set activation_link field.
4612 (read_known_tasks_array): Add parameter. Rewritten.
4613 (read_known_tasks_list): New function.
4614 (read_known_tasks): New function.
4615 (ada_build_task_list): Call read_known_tasks instead of
4616 read_known_tasks_array.
4617 * ravenscar-thread.c: Add first_task_name constant.
4618 (has_ravenscar_runtime): Check for task list too.
4619
cb741e45
JB
46202011-07-04 Tristan Gingold <gingold@adacore.com>
4621
4622 * ada-tasks.c: Renames fieldno to actb_fieldno.
4623 (ada_get_task_number): Indentation.
4624 (get_tcb_types_info): Remove all parameters. Write directly
4625 the globals.
4626 (ptid_from_atcb_common): Adjust.
4627 (read_atcb): Adjust.
4628
7475b06c
TJB
46292011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4630
4631 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4632
15230f37
TJB
46332011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4634
4635 * ui-out.c (ui_out_field_core_addr): Mention that the function
4636 description is in the header file.
4637 * ui-out.h (ui_out_field_core_addr): Document function.
4638
65743aba
TJB
46392011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4640
4641 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4642 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4643
c37a5aab
TJB
46442011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4645
4646 * symtab.c (expand_line_sal): Remove empty line.
4647
59adf69e
TS
46482011-07-04 Thomas Schwinge <thomas@schwinge.name>
4649
4650 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4651 same way as ELFOSABI_NONE.
4652 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4653
e5dd4106
TJB
46542011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4655
4656 * breakpoint.c: Fix typos in comments.
4657 * linespec.c: Likewise.
4658 * symtab.c: Likewise.
4659
d40102a1
JB
46602011-07-04 Joel Brobecker <brobecker@adacore.com>
4661
4662 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4663 section in separate object files.
4664
2f741504
JK
46652011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Fix false GCC warning.
4668 * linespec.c (decode_line_1): Initialize values.
4669
418c7cf7
JK
46702011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4671
4672 * linespec.c (find_method): Accept the function type automatically only
4673 if it was specified with parameter types.
4674
3d50dd94
JK
46752011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4676
4677 Stop on first linespec terminator instead of eating what we can.
4678 * linespec.c (is_linespec_boundary): New function.
4679 (name_end): Remove function.
4680 (keep_name_info): New parameter on_boundary, replace the body.
4681 (decode_line_1): Provide the parameter to keep_name_info.
4682 (decode_compound): Likewise. Drop the trailing java return type
4683 handling. Twice.
4684
dcf9f4ab
JK
46852011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 Fall back linespec to minimal symbols.
4688 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4689 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4690 (find_method, symbol_found): Change error to cplusplus_error.
4691
3f542ed1
JK
46922011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
bc68c4e5 4694 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4695
900e11f9
JK
46962011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4697 Tom Tromey <tromey@redhat.com>
4698
4699 * dwarf2read.c (check_physname): New variable.
4700 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4701 (show_check_physname): New function.
4702 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4703
2301925d
JB
47042011-07-01 Joel Brobecker <brobecker@adacore.com>
4705
4706 * machoread.c (macho_symfile_read): Delete OBE comment.
4707
38947cca
JB
47082011-07-01 Joel Brobecker <brobecker@adacore.com>
4709
4710 * machoread.c (struct macho_oso_data): Delete.
4711 (current_oso): Delete.
4712 (macho_relocate_common_syms): New function, mostly extracted
4713 out of
4714 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4715 Remove code that sets and unset current_oso.
4716 (macho_symfile_relocate): Delete handling of common symbols,
4717 now moved to macho_relocate_common_syms.
4718
a7aa0d73
JB
47192011-07-01 Joel Brobecker <brobecker@adacore.com>
4720
4721 * darwin-nat.c (darwin_ptrace): Add documentation.
4722 Set errno to zero before calling ptrace. If ptrace returns
4723 -1 and errno is zero, then change then return zero.
4724 (darwin_kill_inferior): Issue a warning instead of triggering
4725 a failed assertion when the PT_KILL ptrace operations returned
4726 nonzero.
4727
5e9bc145
JB
47282011-07-01 Joel Brobecker <brobecker@adacore.com>
4729
4730 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4731 only when inf->private->no_ptrace.
4732
00eb2c4a
JB
47332011-07-01 Joel Brobecker <brobecker@adacore.com>
4734
4735 * ada-lang.c (print_it_exception): Print temporary catchpoints
4736 as "Temporary catchpoint".
4737 (print_mention_exception): Likewise.
4738
127c81bc
TT
47392011-07-01 Tom Tromey <tromey@redhat.com>
4740
4741 * jv-lang.c (java_language_defn): Use java_printchar,
4742 java_printstr.
4743 (java_get_encoding): New function.
4744 (java_emit_char): Use generic_emit_char.
4745 (java_printchar): New function.
4746 (java_printstr): Likewise.
4747
25552254
JB
47482011-07-01 Joel Brobecker <brobecker@adacore.com>
4749
4750 * ada-typeprint.c (print_record_type): If unable to decode
4751 the name of the parent type, use the encoded name.
4752
d2d43431
JB
47532011-07-01 Jean-Charles Delay <delay@adacore.com>
4754
4755 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4756 pointer to constrained packed array type output.
4757 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4758 packed array output.
4759
54ae186f
JB
47602011-07-01 Jean-Charles Delay <delay@adacore.com>
4761
4762 * ada-typeprint.c (print_array_type): removed if condition on show
4763 being negative for bounds printing.
4764
8f17729f
JB
47652011-07-01 Joel Brobecker <brobecker@adacore.com>
4766
4767 * ada-lang.c (ada_identical_enum_types_p): New function.
4768 (symbols_are_identical_enums): New function.
4769 (remove_extra_symbols): Do nothing if NSYMS < 2.
4770 Use symbols_are_identical_enums.
4771
f5aa6869
JB
47722011-07-01 Joel Brobecker <brobecker@adacore.com>
4773
4774 * ada-valprint.c (ada_value_print): Handle typedefs.
4775
8f465ea7
JB
47762011-07-01 Joel Brobecker <brobecker@adacore.com>
4777
4778 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4779
828292f2
JB
47802011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4781
4782 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4783 (decode_constrained_packed_array): Likewise.
4784 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4785
18920c42
JB
47862011-07-01 Joel Brobecker <brobecker@adacore.com>
4787
4788 * ada-exp.y (convert_char_literal): Handle typedef types.
4789
c90092fe
JB
47902011-07-01 Joel Brobecker <brobecker@adacore.com>
4791
4792 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4793
f748fb40
TT
47942011-06-30 Tom Tromey <tromey@redhat.com>
4795
4796 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4797 * valops.c (find_overload_match): Call do_cleanups on early exit
4798 path.
4799 * solib.c (solib_find): Call do_cleanups on early exit path.
4800
3bb47e8b
TT
48012011-06-30 Tom Tromey <tromey@redhat.com>
4802
4803 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4804 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4805 return paths. Defer final do_cleanups until last return.
4806 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4807 early return.
4808
4727bad3
TT
48092011-06-30 Tom Tromey <tromey@redhat.com>
4810
4811 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4812
bb361dbf
AB
48132011-06-30 Andrew Burgess <aburgess@broadcom.com>
4814
4815 * MAINTAINERS (Write After Approval): Add myself to the list.
4816
e0d00bc7
JK
48172011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 Disable epilogue unwinders on recent GCCs.
4820 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4821 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4822 * dwarf2read.c (process_full_comp_unit): Initialize
4823 EPILOGUE_UNWIND_VALID.
4824 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4825 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4826 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4827
4632c0d0
JK
48282011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4829
4830 Code cleanup - reformatting.
4831 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4832 (producer_is_gcc_ge_4): ... here, change the return value.
4833 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4834 interpretation.
4835
32019081
JK
48362011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 Fix non-only rename list for Fortran modules import.
4839 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4840 cp_add_using_directive caller.
4841 (cp_add_using_directive): New parameter excludes, describe it. New
4842 variables ix and param. Compare if also excludes match. Allocate NEW
4843 with variable size, initialize EXCLUDES there.
4844 (cp_lookup_symbol_imports): New variable excludep, test
4845 current->EXCLUDES with it.
4846 * cp-support.h: Include vec.h.
4847 (struct using_direct): New field excludes, describe it.
4848 (DEF_VEC_P (const_char_ptr)): New.
4849 (cp_add_using_directive): New parameter excludes.
4850 * defs.h (const_char_ptr): New typedef.
4851 * dwarf2read.c (read_import_statement): New variables child_die,
4852 excludes and cleanups, read in excludes.
4853 (read_namespace): Adjust the cp_add_using_directive caller.
4854
70c622a3
JK
48552011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4856
4857 Code cleanup.
4858 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4859 negative comparisons.
4860
39c4d40a
TT
48612011-06-29 André Pönitz <andre.poenitz@nokia.com>
4862
4863 * mi/mi-main.c (mi_cmd_list_features): Emit
4864 breakpoint-notifications.
4865
3b2b8fea
TT
48662011-06-29 Tom Tromey <tromey@redhat.com>
4867
4868 PR fortran/10036:
4869 * valprint.h (generic_emit_char, generic_printstr): Declare.
4870 * valprint.c (wchar_printable, append_string_as_wide)
4871 (print_wchar): Move from c-lang.c.
4872 (generic_emit_char): New function; mostly taken from c_emit_char.
4873 (generic_printstr): New function; mostly taken from c_printstr.
4874 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4875 represented as arrays.
4876 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4877 type.
4878 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4879 identically to TYPE_CODE_INT.
4880 * f-lang.c (f_get_encoding): New function.
4881 (f_emit_char): Use generic_emit_char.
4882 (f_printchar): Replace comment.
4883 (f_printstr): Use generic_printstr.
4884 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4885 "character" types specially.
4886 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4887 for Fortran.
4888 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4889 Move to valprint.c
4890 (c_emit_char): Call generic_emit_char.
4891 (c_printstr): Call generic_printstr.
4892
168e6d44
GB
48932011-06-29 Gary Benson <gbenson@redhat.com>
4894
4895 * breakpoint.c (bpstat_what): Removed duplicated case.
4896
1c033f8c
TT
48972011-06-28 Tom Tromey <tromey@redhat.com>
4898
4899 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4900
5fe41fbf
TT
49012011-06-27 Tom Tromey <tromey@redhat.com>
4902
4903 * valops.c (find_overload_match): Call do_cleanups before early
4904 return.
4905 * top.c (execute_command): Call do_cleanups before early return.
4906 (command_loop): Likewise.
4907 * stack.c (backtrace_command): Make a null cleanup early. Don't
4908 conditionally call do_cleanups.
4909 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4910 TRY_CATCH.
4911 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4912 so cleanups are always run.
4913 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4914 * findcmd.c (parse_find_args): Call do_cleanups on early return
4915 path.
4916 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4917 Don't conditionally call do_cleanups.
4918 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4919 later.
4920
e26bd57d
EB
49212011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4922
4923 * MAINTAINERS (Write After Approval): Use default email address.
4924
6c3097fc
JB
49252011-06-27 Joel Brobecker <brobecker@adacore.com>
4926
4927 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4928
369c397b
JB
49292011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4930
4931 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4932 saved_regs_mask and copied_regs_mask fields.
4933 (sparc_record_save_insn): New prototype.
4934 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4935 (sparc_record_save_insn): New function.
4936 (sparc_analyze_prologue): Add head comment. Recognize store insns
4937 of call-saved registers. Use OFFSET consistently. Recognize flat
4938 frames and cache their settings.
4939 (sparc32_skip_prologue): Handle flat frames.
4940 (sparc_frame_cache): Add frame_offset to the base address.
4941 (sparc32_frame_cache): Adjust to new frame description.
4942 (sparc32_frame_prev_register): Likewise.
4943 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4944 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4945 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4946 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4947 frame by calling sparc_record_save_insn.
4948 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4949 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4950 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4951
b315ab21
TG
49522011-06-27 Tristan Gingold <gingold@adacore.com>
4953
4954 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4955 field by map_addr and map_len.
4956 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4957 (munmap_section_buffer): Likewise.
4958
ddd49eee
TT
49592011-06-24 Tom Tromey <tromey@redhat.com>
4960
4961 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4962 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4963 * python/python.c (gdbpy_parameter): Make 'arg' const.
4964 (execute_gdb_command): Likewise.
4965 (gdbpy_decode_line): Likewise. Copy it.
4966 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4967 (gdbpy_write): Make 'arg' const.
4968 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4969 const.
4970 (gdbpy_lookup_type): Likewise.
4971 * python/py-prettyprint.c (print_children): Make 'name' const.
4972 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4973 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4974 Py_ssize_t.
4975 * python/py-function.c (fnpy_init): Make 'name' const.
4976 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4977 (gdbpy_string_to_argv): Make 'input' const.
4978 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4979 it.
4980 * gdbtypes.h (lookup_typename): Update.
4981 * gdbtypes.c (lookup_typename): Make 'name' const.
4982 (lookup_struct): Likewise.
4983 (lookup_union): Likewise.
4984 (lookup_enum): Likewise.
4985
5998129b
TT
49862011-06-24 Tom Tromey <tromey@redhat.com>
4987
4988 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4989 gdb_thread_db.h. Move all common/ entries to be together.
4990 (TAGS): Don't depend on DEPFILES.
4991
6e586cc5
YQ
49922011-06-23 Yao Qi <yao@codesourcery.com>
4993
4994 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4995 * remote.c (remote_start_remote): ... here.
4996 * monitor.c (monitor_open): ... here.
4997
86c3c1fc
AB
49982011-06-23 Andrew Burgess <aburgess@broadcom.com>
4999
5000 * gdbtypes.c (append_composite_type_field_aligned): Fix
5001 calculation of bit position based on alignment.
5002
28010a5d
PA
50032011-06-22 Pedro Alves <pedro@codesourcery.com>
5004
5005 * breakpoint.c (bpstat_stop_status): Call the check_status
5006 breakpoint_ops method.
5007 (print_one_breakpoint_location): Also print the condition for Ada
5008 exception catchpoints.
5009 (allocate_bp_location): New, factored out from
5010 allocate_bp_location.
5011 (allocate_bp_location): Adjust. Call the owner breakpoint's
5012 allocate_location method, if there is one.
5013 (free_bp_location): Call the locations's dtor method, if there is
5014 one.
5015 (init_raw_breakpoint_without_location): New breakpoint_ops
5016 parameter. Use it.
5017 (set_raw_breakpoint_without_location): Adjust.
5018 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5019 (set_raw_breakpoint): Adjust.
5020 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5021 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5022 re_set and check_status methods.
5023 (init_catchpoint): Don't memset, initialize thread, addr_string
5024 and enable_state. Pass the ops down to init_raw_breakpoint.
5025 (install_catchpoint): Rename to ...
5026 (install_breakpoint): ... this, and make extern.
5027 (create_fork_vfork_event_catchpoint): Adjust.
5028 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5029 re_set and check_status methods.
5030 (create_syscall_event_catchpoint): Adjust.
5031 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5032 (masked_watchpoint_breakpoint_ops): Install NULL
5033 allocate_location, re_set and check_status methods.
5034 (catch_exec_command_1): Adjust.
5035 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5036 re_set and check_status methods.
5037 (create_ada_exception_breakpoint): Rename to ...
5038 (init_ada_exception_breakpoint): ... this. Add a struct
5039 breakpoint parameter, and delete the exp_string, cond_string and
5040 cond parameters. Use init_raw_breakpoint, and don't install or
5041 mention the breakpoint yet. Don't clear breakpoint fields that
5042 init_raw_breakpoint already clears.
5043 (re_set_breakpoint): Delete, split into ...
5044 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5045 functions.
5046 (breakpoint_re_set_one): Call the breakpoint's
5047 breakpoint_ops->re_set implementation, if there's one. Adjust.
5048 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5049 (struct bp_location_ops): New type.
5050 (struct bp_location): New field `ops'.
5051 (struct breakpoint_ops): New `allocate_location', `re_set' and
5052 `check_status' fields. Make `breakpoint_hit''s description match
5053 reality.
5054 (init_bp_location): Declare.
5055 (breakpoint_re_set_default): Declare.
5056 (create_ada_exception_breakpoint): Rename to ...
5057 (init_ada_exception_breakpoint): ... this. Add a struct
5058 breakpoint parameter, and delete the exp_string, cond_string and
5059 cond parameters.
5060 (install_breakpoint): Declare.
5061 * ada-lang.c: Include exceptions.h.
5062 <Ada exceptions description>: Update.
5063 (struct ada_catchpoint_location): New type.
5064 (ada_catchpoint_location_dtor): New function.
5065 (ada_catchpoint_location_ops): New global.
5066 (ada_catchpoint): New type.
5067 (create_excep_cond_exprs): New function.
5068 (dtor_exception, allocate_location_exception, re_set_exception)
5069 (should_stop_exception, check_status_exception): New functions.
5070 (print_one_exception, print_mention_exception)
5071 (print_recreate_exception): Adjust.
5072 (dtor_catch_exception, allocate_location_catch_exception)
5073 (re_set_catch_exception, check_status_catch_exception): New
5074 functions.
5075 (catch_exception_breakpoint_ops): Install them.
5076 (dtor_catch_exception_unhandled)
5077 (allocate_location_catch_exception_unhandled)
5078 (re_set_catch_exception_unhandled)
5079 (check_status_catch_exception_unhandled): New functions.
5080 (catch_exception_unhandled_breakpoint_ops): Install them.
5081 (dtor_catch_assert, allocate_location_catch_assert)
5082 (re_set_catch_assert, check_status_catch_assert): New functions.
5083 (catch_assert_breakpoint_ops): Install them.
5084 (ada_exception_catchpoint_p): Delete.
5085 (catch_ada_exception_command_split)
5086 (ada_exception_catchpoint_cond_string): Rename exp_string
5087 parameter to excep_string. Adjust.
5088 (ada_parse_catchpoint_condition): Delete.
5089 (ada_exception_sal): Rename the exp_string parameter to
5090 excep_string. Delete the cond_string and cond parameters.
5091 Adjust.
5092 (ada_decode_exception_location): Rename the exp_string parameter
5093 to excep_string. Delete the cond_string and cond parameters.
5094 Adjust.
5095 (create_ada_exception_catchpoint): New function.
5096 (catch_ada_exception_command, ada_decode_assert_location)
5097 (catch_assert_command): Adjust.
5098 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5099
9ac4176b
PA
51002011-06-22 Pedro Alves <pedro@codesourcery.com>
5101
5102 * ada-lang.c: Include arch-utils.h.
5103 (ada_decode_exception_location): Make static.
5104 (catch_ada_exception_command): Moved here from breakpoint.c.
5105 (ada_decode_assert_location): Make static.
5106 (catch_assert_command): Moved here from breakpoint.c.
5107 (_initialize_ada_lang): Install the exception and assert
5108 catchpoint commands here.
5109 * ada-lang.h (ada_decode_exception_location)
5110 (ada_decode_assert_location): Delete declarations.
5111 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5112 breakpoint.h.
5113 (create_ada_exception_breakpoint): Make extern.
5114 (catch_ada_exception_command, catch_assert_command): Moved to
5115 ada-lang.c.
5116 (add_catch_command): Make extern.
5117 (_initilize_breakpoint): Don't install the exception and assert
5118 catchpoint commands here.
5119 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5120 breakpoint.c
5121 (add_catch_command, create_ada_exception_breakpoint): Declare.
5122
c56053d2
PA
51232011-06-22 Pedro Alves <pedro@codesourcery.com>
5124
5125 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5126 the breakpoint to the breakpoint chain here.
5127 (set_raw_breakpoint_without_location): Add the breakpoint to the
5128 breakpoint chain here.
5129 (init_raw_breakpoint): Adjust comments.
5130 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5131 here.
5132 (init_catchpoint): Don't set the catchpoint's breakpoint number
5133 here.
5134 (install_catchpoint): New function.
5135 (create_fork_vfork_event_catchpoint)
5136 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5137 use install_catchpoint.
5138
d2f3fc74
PA
51392011-06-22 Pedro Alves <pedro@codesourcery.com>
5140
5141 * breakpoint.c (create_catchpoint_without_mention)
5142 (create_catchpoint): Delete.
5143
b4d90040
PA
51442011-06-22 Pedro Alves <pedro@codesourcery.com>
5145
5146 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5147 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5148 reference to exec_pathname.
5149 (struct exec_catchpoint): New type.
5150 (dtor_catch_exec): New function.
5151 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5152 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5153 (catch_exec_command_1): Adjust to use init_catchpoint.
5154 (delete_breakpoint): Remove reference to exec_pathname.
5155
be5c67c1
PA
51562011-06-22 Pedro Alves <pedro@codesourcery.com>
5157
5158 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5159 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5160 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5161 reference to syscalls_to_be_caught.
5162 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5163 NULL `dtor'.
5164 (struct syscall_catchpoint): New type.
5165 (dtor_catch_syscall): New function.
5166 (insert_catch_syscall, remove_catch_syscall)
5167 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5168 (print_recreate_catch_syscall): Adjust.
5169 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5170 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5171 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5172 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5173 (masked_watchpoint_breakpoint_ops)
5174 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5175 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5176 there is one. Remove references to syscalls_to_be_caught.
5177 (catching_syscall_number): Adjust.
5178 * ada-lang.c (catch_exception_breakpoint_ops)
5179 (catch_exception_unhandled_breakpoint_ops)
5180 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5181
e29a4733
PA
51822011-06-22 Pedro Alves <pedro@codesourcery.com>
5183
5184 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5185 field.
5186 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5187 reference to forked_inferior_pid.
5188 (struct fork_catchpoint): New type.
5189 (breakpoint_hit_catch_fork, print_it_catch_fork)
5190 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5191 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5192 (create_fork_vfork_event_catchpoint): Adjust to use
5193 init_catchpoint.
5194
346774a9
PA
51952011-06-22 Pedro Alves <pedro@codesourcery.com>
5196
5197 * breakpoint.c (add_to_breakpoint_chain)
5198 (init_raw_breakpoint_without_location): New functions, factored
5199 out from ...
5200 (set_raw_breakpoint_without_location): ... this one.
5201 (init_raw_breakpoint): New function, factored out from
5202 set_raw_breakpoint and adjusted to use
5203 init_raw_breakpoint_without_location.
5204 (set_raw_breakpoint): Adjust.
5205 (init_catchpoint): New function, factored out from
5206 create_catchpoint_without_mention and adjusted to use
5207 init_raw_breakpoint.
5208 (create_catchpoint_without_mention): Adjust.
5209
c38c4bc5
TT
52102011-06-22 Tom Tromey <tromey@redhat.com>
5211
5212 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5213 argument of 0 specially.
5214
b138ce37
YQ
52152011-06-22 Yao Qi <yao@codesourcery.com>
5216
5217 * infrun.c (handle_inferior_event): Remove write-only local variable
5218 `sw_single_step_trap_p'.
5219
03de6823
TT
52202011-06-20 Tom Tromey <tromey@redhat.com>
5221
5222 * symtab.c (lookup_language_this): End loop if block is NULL.
5223
66a17cb6
TT
52242011-06-17 Tom Tromey <tromey@redhat.com>
5225
5226 * valops.c (value_of_this): Use lookup_language_this.
5227 * symtab.h (lookup_language_this): Declare.
5228 * symtab.c (lookup_language_this): New function.
5229 (lookup_symbol_aux): Use lookup_language_this.
5230 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5231
7518bff5
TT
52322011-06-17 Tom Tromey <tromey@redhat.com>
5233
5234 * value.h (value_of_this): Update.
5235 (value_of_local): Remove.
5236 * valops.c (value_of_this): Rename from value_of_local. Change
5237 parameters.
5238 * p-exp.y (exp): Update.
5239 (variable): Likewise.
5240 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5241
aee28ec6
TT
52422011-06-17 Tom Tromey <tromey@redhat.com>
5243
5244 * valops.c (value_of_local): Complain if NAME is NULL.
5245 * std-operator.def (OP_OBJC_SELF): Remove.
5246 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5247 * objc-exp.y (name_not_typename): Use OP_THIS.
5248 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5249 name for "this".
5250 <OP_OBJC_SELF>: Remove.
5251 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5252
eed8f803
TG
52532011-06-16 Tristan Gingold <gingold@adacore.com>
5254
5255 * python/py-events.h (gdb_py_events): Make it extern.
5256 * python/py-evtregistry.c (gdb_py_events): Declare.
5257
864ac8a7
HZ
52582011-06-16 Hui Zhu <teawater@gmail.com>
5259
5260 * remote.c (remote_trace_set_readonly_regions): Add check for
5261 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5262 output warning.
5263
ef7e8358
UW
52642011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5265
5266 * arm-linux-tdep.c: Include "auxv.h".
5267 (AT_HWCAP): Define.
5268 (ARM_LINUX_SIZEOF_VFP): Define.
5269 (arm_linux_supply_vfp): New function.
5270 (arm_linux_collect_vfp): Likewise.
5271 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5272 (arm_linux_fpa_regset_sections): New variable.
5273 (arm_linux_vfp_regset_sections): Likewise.
5274 (arm_linux_core_read_description): New function.
5275 (arm_linux_init_abi): Install arm_linux_core_read_description and
5276 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5277 appropriate for the architecture.
5278 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5279 (tdesc_arm_with_m): Declare.
5280 (tdesc_arm_with_iwmmxt): Likewise.
5281 (tdesc_arm_with_vfpv2): Likewise.
5282 (tdesc_arm_with_vfpv3): Likewise.
5283 (tdesc_arm_with_neon): Likewise.
5284 * arm-linux-nat.c: Move features/*.c includes ...
5285 * arm-tdep.c: ... here.
5286 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5287 target description data structures ...
5288 * arm-tdep.c (_initialize_arm_tdep): ... here.
5289 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5290 HWCAP_VFPv3D16): Move definitions ...
5291 * arm-linux-tdep.h: ... here.
5292
c2fa21f1
HZ
52932011-06-15 Hui Zhu <teawater@gmail.com>
5294
5295 * remote.c (remote_trace_set_readonly_regions): Add a check for
5296 target_buf_size.
5297
dd707e8e
TT
52982011-06-14 Tom Tromey <tromey@redhat.com>
5299
5300 * coffread.c (coffread_objfile): Rename from current_objfile.
5301 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5302 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5303
86cc0029
TT
53042011-06-14 Tom Tromey <tromey@redhat.com>
5305
5306 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5307 (class_symtab): Remove.
5308 (jv_dynamics_progspace_key): New global.
5309 (jv_per_objfile_free): Reset program space data. Update assert.
5310 Don't clear globals.
5311 (get_dynamics_objfile): Use and set program space data.
5312 (get_java_class_symtab): Use get_dynamics_objfile.
5313 (add_class_symbol): Likewise.
5314 (java_link_class_type): Likewise.
5315 (java_object_type, jv_clear_object_type, set_java_object_type):
5316 Remove.
5317 (get_java_object_type): Update. Don't cache result.
5318 (is_object_type): Don't call set_java_object_type.
5319 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5320 initialize jv_dynamics_progspace_key.
5321
91a81f69
TT
53222011-06-14 Tom Tromey <tromey@redhat.com>
5323
5324 * symtab.h (current_objfile): Don't declare.
5325 * objfiles.h (current_objfile): Don't declare.
5326 * objfiles.c (current_objfile): Remove.
5327 * mdebugread.c (current_objfile): New file-scope global.
5328 * dbxread.c (current_objfile): New file-scope global.
5329 * coffread.c (current_objfile): New file-scope global.
5330
dc7eb48e
PA
53312011-06-13 Pedro Alves <pedro@codesourcery.com>
5332
5333 * top.h (line): Rename to ...
5334 (saved_command_line): ... this.
5335 (linesize): Rename to ...
5336 (saved_command_line_size): ... this.
5337 * top.c (line): Rename to ...
5338 (saved_command_line): ... this.
5339 (linesize): Rename to ...
5340 (saved_command_line_size): ... this.
5341 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5342 * event-top.c (command_line_handler): Adjust.
5343 * main.c (captured_main): Adjust.
5344
0d6c2135
MK
53452011-06-12 Mark Kettenis <kettenis@gnu.org>
5346
5347 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5348 get_frame_func instead of get_frame_pc to determine the code
5349 address used to construct the frame ID.
5350 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5351 (i386_epilogue_frame_this_id): Likewise.
5352 (i386_epilogue_frame_prev_register): New function.
5353 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5354 (i386_stack_tramp_frame_sniffer): Fix coding style.
5355 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5356 (i386_gdbarch_init): Fix comments.
5357
8bbdd3f4
MK
53582011-06-12 Mark Kettenis <kettenis@gnu.org>
5359
5360 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5361 instruction when walking back through the instruction stream.
5362
533a737e
JK
53632011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5364
5365 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5366 fullname parameters order.
5367
44b13c5a
JK
53682011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5369
5370 Code cleanup.
5371 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5372 for fun.
5373 * psymtab.c (map_symbol_filenames_psymtab)
5374 (map_partial_symbol_filenames): Likewise.
5375 * psymtab.h: Include symfile.h.
5376 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5377 * symfile.h (symbol_filename_ftype): New.
5378 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5379 map_symbol_filenames, clarify more the naming in comment.
5380
0b5574da
DE
53812011-06-07 Doug Evans <dje@google.com>
5382
5383 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5384 Look for ../../gdb, for fullname.exp.
0b5574da 5385
5be4dfca
JK
53862011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 Pedro Alves <pedro@codesourcery.com>
5388
5389 * cli/cli-cmds.c (shell_escape): Use waitpid.
5390 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5391
316a8b21
TG
53922011-06-07 Tristan Gingold <gingold@adacore.com>
5393
5394 * xcoffread.c (dwarf2_xcoff_names): New variable.
5395 (aix_process_linenos): Add a guard.
5396 (xcoff_symfile_finish): Free dwarf2.
5397 (xcoff_initial_scan): Add dwarf2 support.
5398
3dd5b83d
PA
53992011-06-06 Pedro Alves <pedro@codesourcery.com>
5400
5401 * infcall.c (run_inferior_call): Don't mask async. Instead force
5402 a synchronous wait, if the target can async.
5403
5404 * target.h (struct target_ops): Delete to_async_mask.
5405 (target_async_mask): Delete.
5406 * target.c (update_current_target): Delete references to to_async_mask.
5407 * linux-nat.c (linux_nat_async_mask_value): Delete.
5408 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5409 to linux_nat_async_mask_value.
5410 (linux_nat_async_mask): Delete.
5411 (linux_nat_async, linux_nat_close): Remove references to
5412 linux_nat_async_mask_value.
5413 * record.c (record_async_mask_value): Delete.
5414 (record_async): Remove references to record_async_mask_value.
5415 (record_async_mask): Delete.
5416 (record_can_async_p, record_is_async_p): Remove references to
5417 record_async_mask_value.
5418 (init_record_ops, init_record_core_ops): Remove references to
5419 record_async_mask.
5420 * remote.c (remote_async_mask_value): Delete.
5421 (init_remote_ops): Remove reference to remote_async_mask.
5422 (remote_can_async_p, remote_is_async_p): Remove references to
5423 remote_async_mask_value.
5424 (remote_async): Remove references to remote_async_mask_value.
5425 (remote_async_mask): Delete.
5426
5427 * infrun.c (fetch_inferior_event): Don't claim registers changed
5428 if the current thread is already not executing.
5429
64b9b334
JB
54302011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5431
5432 From Stephen Kitt <steve@sk2.org>
5433 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5434 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5435
325663dc
JB
54362011-06-03 Joel Brobecker <brobecker@adacore.com>
5437
5438 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5439 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5440
8cf64490
TT
54412011-06-03 Tom Tromey <tromey@redhat.com>
5442
5443 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5444 code fields.
5445 * python/py-exitedevent.c (create_exited_event_object): Change
5446 type of 'exit_code'. Optionally add exit_code attribute.
5447 (emit_exited_event): Change type of 'exit_code'.
5448 * python/py-event.h (emit_exited_event): Update.
5449 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5450 * infrun.c (handle_inferior_event): Set exit code fields on
5451 inferior.
5452 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5453 fields.
5454 * inferior.c (exit_inferior_1): Initialize new fields.
5455
8ddd9a20
TT
54562011-06-03 Tom Tromey <tromey@redhat.com>
5457
5458 * dwarf2expr.c (get_signed_type): New function.
5459 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5460
8dfd1e6d
KS
54612011-06-02 Keith Seitz <keiths@redhat.com>
5462
5463 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5464
65fdb766
PA
54652011-06-02 Pedro Alves <pedro@codesourcery.com>
5466
5467 * top.h (simplified_command_loop): Delete declaration.
5468
f4b8c29b
MF
54692011-06-01 Mike Frysinger <vapier@gentoo.org>
5470
5471 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5472 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5473
1706c199
YQ
54742011-06-01 Yao Qi <yao@codesourcery.com>
5475
5476 * objfiles.h (obj_section_addr): Update reference to objfile from
5477 `abfd' to `obfd'.
5478 (obj_section_endaddr): Likewise.
5479
d19cd713 54802011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5481
5482 * MAINTAINERS: Update my email address and affiliation. Also
5483 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5484
e8eb7bc5
KS
54852010-05-31 Keith Seitz <keiths@redhat.com>
5486
5487 PR c++/12750
5488 * linespec.c (get_search_block): New function.
5489 (find_methods): Add FILE_SYMTATB parameter and use it and
5490 get_search_block to pass an appropriate block to
5491 lookup_symbol_in_namespace.
5492 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5493 Check if *ARGPTR starts with a filename first.
5494 If it does, call locate_first_half again to locate the next
5495 "first half" of the linespec.
5496 Pass FILE_SYMTATB to decode_objc and decode_compound.
5497 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5498 (locate_first_half): Stop on the first colon seen.
5499 (decode_compound): Add FILE_SYMTAB parameter.
5500 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5501 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5502 get_search_block with lookup_symbol.
5503 (find_method): Add FILE_SYMTAB parameter and pass it to
5504 find_methods.
5505 (decode_objc): Use get_search_block.
5506
2b1dbab0
KS
55072010-05-31 Keith Seitz <keiths@redhat.com>
5508
5509 PR symtab/12704
5510 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5511 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5512 and CP_ANONYMOUS_NAMESPACE_LEN.
5513 (cp_is_anonymous): Likewise.
5514 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5515 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5516 * dwarf2read.c (namespace_name): Likewise.
5517 (fixup_partial_die): Likewise.
5518 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5519 seen in the input, keep it.
5520
6d549500
PA
55212011-05-30 Pedro Alves <pedro@codesourcery.com>
5522
5523 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5524 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5525 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5526 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5527 * remote.c (_initialize_remote): Register
5528 async_remote_interrupt_twice directly as
5529 sigint_remote_twice_token event.
5530
395bff70
PA
55312011-05-30 Pedro Alves <pedro@codesourcery.com>
5532
5533 * target.h (enum inferior_event_type): Delete INF_ERROR.
5534 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5535
97224164
PA
55362011-05-30 Pedro Alves <pedro@codesourcery.com>
5537
5538 * interps.c (interp_set): Don't cancel continuations.
5539
07e78767
JK
55402011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5541
5542 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5543
fa4cd53f
PA
55442011-05-30 Pedro Alves <pedro@codesourcery.com>
5545
5546 * continuations.h (continuation_ftype): Add `err' parameter.
5547 Document parameters.
5548 (do_all_continuations, do_all_continuations_thread)
5549 (do_all_intermediate_continuations)
5550 (do_all_intermediate_continuations_thread)
5551 (do_all_inferior_continuations): Add `err' parameter.
5552 * continuations.c (do_my_continuations_1, do_my_continuations)
5553 (do_all_inferior_continuations, do_all_continuations_ptid)
5554 (do_all_continuations_thread_callback)
5555 (do_all_continuations_thread, do_all_continuations)
5556 (do_all_intermediate_continuations_thread_callback)
5557 (do_all_intermediate_continuations_thread)
5558 (do_all_intermediate_continuations): Add `err' parameter, and pass
5559 it down all the way to the continuations proper.
5560 * inf-loop.c (inferior_event_handler): If fetching an inferior
5561 event throws an error, don't pop the target, and still call the
5562 continuations, but with `err' set. Adjust all other continuation
5563 calls.
5564 * breakpoint.c (until_break_command_continuation): Add `err'
5565 parameter.
5566 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5567 issue another step if `err' is set.
5568 (struct until_next_continuation_args): New.
5569 (until_next_continuation): Add `err' parameter. Adjust.
5570 (until_next_command): Adjust.
5571 (struct finish_command_continuation_args): Add `thread' field.
5572 (finish_command_continuation): Add `err' parameter. Handle it.
5573 (finish_forward): Adjust.
5574 (attach_command_continuation): Add `err' parameter. Handle it.
5575 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5576 cancel the continuations.
5577 * interps.c (interp_set): Adjust to cancel the continuations.
5578 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5579 continuations rather than discarding.
5580 (free_thread): Don't clear thread inferior resources here.
5581 (delete_thread_1): Do it here instead. And do it before removing
5582 the thread from the threads list. Tag the thread as exited before
5583 clearing thread inferior resources.
5584
c2949be0
JB
55852011-05-30 Joel Brobecker <brobecker@adacore.com>
5586
5587 * infcall.c (call_function_by_hand): Rephrase error message.
5588
619cebe8
PA
55892011-05-27 Pedro Alves <pedro@codesourcery.com>
5590
5591 * defs.h (struct thread_info, struct inferior): Delete forward
5592 declarations.
5593 * breakpoint.h (struct thread_info): New forward declaration.
5594 * observer.sh (struct inferior): New forward declaration.
5595 * python/python-internal.h (struct inferior): New forward
5596 declaration.
5597
be34f849
PA
55982011-05-27 Pedro Alves <pedro@codesourcery.com>
5599
5600 * defs.h (struct continuation, continuation_ftype)
5601 (continuation_free_arg_ftype, add_continuation)
5602 (do_all_continuations, do_all_continuations_thread)
5603 (discard_all_continuations, discard_all_continuations_thread)
5604 (add_intermediate_continuation, do_all_intermediate_continuations)
5605 (do_all_intermediate_continuations_thread)
5606 (discard_all_intermediate_continuations)
5607 (discard_all_intermediate_continuations_thread)
5608 (add_inferior_continuation, do_all_inferior_continuations)
5609 (discard_all_inferior_continuations): Move to ...
5610 * continuations.h: ... this new file.
5611 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5612 infcmd.c, inferior.c, infrun.c, interps.c: Include
5613 continuations.h.
5614
432b4d03
JK
56152011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Doug Evans <dje@google.com>
5617
5618 Fix PR 10970, PR 12702.
5619 * linux-nat.c (linux_lwp_is_zombie): New function.
5620 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5621 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5622
b0f260d6
PA
56232011-05-27 Pedro Alves <pedro@codesourcery.com>
5624
5625 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5626 typedefs.
5627 (add_continuation, add_intermediate_continuation)
5628 (add_inferior_continuation): Use them.
5629 * continuations.c (struct continuation): Use them.
5630 (make_continuation_ftype): Delete.
5631 (make_continuation, add_inferior_continuation, add_continuation)
5632 (add_intermediate_continuation): Use continuation_ftype and
5633 continuation_free_arg_ftype. Rename parameters to shorter names.
5634
af1e9a32
PA
56352011-05-27 Pedro Alves <pedro@codesourcery.com>
5636
5637 * continuations.c (make_continuation): Make it return void.
5638 (do_my_continuations): Rename to ...
5639 (do_my_continuations_1): ... this. Remove old_chain parameter and
5640 adjust.
5641 (do_my_continuations): New.
5642 (discard_my_continuations): Rename to ...
5643 (discard_my_continuations_1): ... this. Remove old_chain
5644 parameter and adjust.
5645 (discard_my_continuations): New.
5646 (add_inferior_continuation): Simplify.
5647 (do_all_inferior_continuations): Reimplement on top
5648 do_my_continuations.
5649 (discard_all_inferior_continuations): Simplify.
5650 (add_continuation): Simplify.
5651 (do_all_continuations_ptid): Simplify.
5652 (discard_all_continuations_thread_callback): Simplify.
5653 (add_intermediate_continuation): Simplify.
5654 (discard_all_intermediate_continuations_thread_callback):
5655 Simplify.
5656
50c0c017
PA
56572011-05-27 Pedro Alves <pedro@codesourcery.com>
5658
5659 * utils.c (struct continuation, add_continuation)
5660 (add_inferior_continuation)
5661 (do_all_inferior_continuations, discard_all_inferior_continuations)
5662 (restore_thread_cleanup, do_all_continuations_ptid)
5663 (do_all_continuations_thread_callback)
5664 (do_all_continuations_thread, do_all_continuations)
5665 (discard_all_continuations_thread_callback)
5666 (discard_all_continuations_thread, discard_all_continuations)
5667 (add_intermediate_continuation)
5668 (do_all_intermediate_continuations_thread_callback)
5669 (do_all_intermediate_continuations_thread)
5670 (do_all_intermediate_continuations)
5671 (discard_all_intermediate_continuations_thread_callback)
5672 (discard_all_intermediate_continuations_thread)
5673 (discard_all_intermediate_continuations): Move to ...
5674 * continuations.c: ... this new file, and adjust to no longer
5675 implement continuations on top of cleanups.
5676 * Makefile.in (SFILES): Add continuations.c.
5677 (COMMON_OBS): Add continuations.o.
5678
d8b34453
PA
56792011-05-26 Pedro Alves <pedro@codesourcery.com>
5680
5681 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5682 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5683 Internal error on invalid values.
5684 * reverse.c: Don't handle EXEC_ERROR.
5685 * mi/mi-main.c: Don't handle EXEC_ERROR.
5686
32231432
PA
56872011-05-26 Pedro Alves <pedro@codesourcery.com>
5688
5689 * record.c: Include event-loop.h, inf-loop.h.
5690 (record_beneath_to_async): New global.
5691 (tmp_to_async): New global.
5692 (record_async_inferior_event_token): New global.
5693 (record_open_1): Don't error out if async is enabled.
5694 (record_open): Handle to_async. Create an async event source in
5695 the event loop.
5696 (record_close): Delete the async event source.
5697 (record_resumed): New global.
5698 (record_execution_dir): New global.
5699 (record_resume, record_core_resume): Set them. Register the
5700 target on the event loop.
5701 (record_wait): Rename to ...
5702 (record_wait_1): ... this. Add more debug output. Handle
5703 TARGET_WNOHANG, and the target beneath returning
5704 TARGET_WAITKIND_IGNORE.
5705 (record_wait): Reimplement on top of record_wait_1.
5706 (record_async_mask_value): New global.
5707 (record_async, record_async_mask, record_can_async_p)
5708 (record_is_async_p, record_execution_direction): New functions.
5709 (init_record_ops, init_record_core_ops): Install new methods.
5710 * infrun.c (fetch_inferior_event): Temporarily switch the global
5711 execution direction to the direction the target was going.
5712 (execution_direction): Change type to int.
5713 * target.c (default_execution_direction): New function.
5714 (update_current_target): Inherit and de_fault
5715 to_execution_direction.
5716 * target.h (struct target_ops) <to_execution_direction>: New
5717 field.
5718 (target_execution_direction): New macro.
5719 * inferior.h (execution_direction): Change type to int.
5720
949dc678
PA
57212011-05-26 Pedro Alves <pedro@codesourcery.com>
5722
5723 * infcall.c (call_function_by_hand): Don't allow calling functions
5724 in reverse execution mode.
5725
c13bd2b5
PA
57262011-05-26 Pedro Alves <pedro@codesourcery.com>
5727
5728 * infcmd.c (finish_command): Allow async finish in reverse.
5729
6938fd34
YQ
57302011-05-26 Yao Qi <yao@codesourcery.com>
5731
5732 * gdb_thread_db.h: Delete. Move to ...
5733 * common/gdb_thread_db.h: ... here.
5734
9da8c2a0
PA
57352011-05-26 Pedro Alves <pedro@codesourcery.com>
5736
5737 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5738 function's entry point instead of a manually managed momentary
5739 breakpoint, and only ever issue one proceed call.
5740 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5741 doing a reverse-finish, switch to stepi mode, to do another step.
5742 (insert_step_resume_breakpoint_at_sal): Make public.
5743 (normal_stop): No need to save function value return registers if
5744 going reverse.
5745 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5746
2c03e5be
PA
57472011-05-26 Pedro Alves <pedro@codesourcery.com>
5748
5749 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5750 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5751 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5752 at the end.
5753 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5754 step-resume breakpoints.
5755 (print_it_typical): Handle bp_hp_step_resume.
5756 (bpstat_what): Ditto.
5757 (bptype_string): Ditto.
5758 (print_one_breakpoint_location): Ditto.
5759 (allocate_bp_location): Ditto.
5760 (mention): Ditto.
5761 (breakpoint_re_set_one): Ditto.
5762 * infrun.c (handle_inferior_event): Adjust. Split
5763 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5764 BPSTAT_WHAT_HP_STEP_RESUME.
5765 (insert_step_resume_breakpoint_at_sal): Rename to ...
5766 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5767 parameter. Handle it.
5768 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5769 insert_step_resume_breakpoint_at_sal_1.
5770 (insert_step_resume_breakpoint_at_frame): Rename to ...
5771 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5772 set a high-priority step-resume breakpoint.
5773 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5774 (insert_step_resume_breakpoint_at_caller): Ditto.
5775
51be5b68
PA
57762011-05-26 Pedro Alves <pedro@codesourcery.com>
5777
5778 * breakpoint.c (iterate_over_related_breakpoints): New.
5779 (do_map_delete_breakpoint): New.
5780 (delete_command): Pass do_map_delete_breakpoint to
5781 map_breakpoint_numbers.
5782 (do_disable_breakpoint): New.
5783 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5784 breakpoints.
5785 (do_enable_breakpoint): Rename to ...
5786 (enable_breakpoint_disp): ... this.
5787 (enable_breakpoint): Adjust.
5788 (do_enable_breakpoint): New.
5789 (enable_once_breakpoint): Delete.
5790 (do_map_enable_breakpoint): New.
5791 (do_map_enable_once_breakpoint): New.
5792 (enable_once_command, enable_delete_command)
5793 (delete_trace_command): Iterate over the breakpoint's related
5794 breakpoints.
5795
4a1be8d2
PA
57962011-05-26 Pedro Alves <pedro@codesourcery.com>
5797
5798 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5799 for ALPHA_ZERO_REGNUM.
5800 (alpha_supply_int_regs): Explicitly supply zero as the value for
5801 ALPHA_ZERO_REGNUM in the register cache.
5802 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5803
59d70315
YQ
58042011-05-26 Yao Qi <yao@codesourcery.com>
5805
5806 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5807
251d32d9
TG
58082011-05-26 Tristan Gingold <gingold@adacore.com>
5809
5810 * symfile.h (struct dwarf2_section_names): New type.
5811 (struct dwarf2_debug_sections): New type.
5812 (dwarf2_has_info): Add parameter.
5813 * dwarf2read.c (dwarf2_elf_names): New variable.
5814 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5815 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5816 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5817 (dwarf2_has_info): Add names parameter. Pass names
5818 to dwarf2_locate_sections.
5819 (section_is_p): Rewrite using the names parameter.
5820 (dwarf2_locate_sections): Use section names from the names parameter.
5821 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5822 * elfread.c (read_psyms): Ditto.
5823 * machoread.c (macho_symfile_read): Ditto.
5824
652c71b4
AS
58252011-05-25 Andreas Schwab <schwab@redhat.com>
5826
5827 PR gdb/8677
5828 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5829
f17170e5
KS
58302011-05-24 Keith Seitz <keiths@redhat.com>
5831
5832 PR breakpoint/12803
5833 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5834 (decode_compound): Unconditionally call keep_name_info.
5835
cdac0397
PA
58362011-05-24 Pedro Alves <pedro@codesourcery.com>
5837
5838 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5839 scope, clear its command list.
5840 (map_breakpoint_numbers): Don't walk the related breakpoints list
5841 of each breakpoint.
5842
91d4fe3f
TT
58432011-05-24 Tom Tromey <tromey@redhat.com>
5844
5845 * MAINTAINERS: Move Jim Blandy to past maintainers.
5846
3017a003
TG
58472011-05-24 Tristan Gingold <gingold@adacore.com>
5848
5849 * symfile.h (enum dwarf2_section_enum): New type.
5850 (dwarf2_get_section_info): New prototype.
5851 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5852 section_name by sect. Use a switch to select the info.
5853 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5854 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5855
c91c8c16
PA
58562011-05-24 Pedro Alves <pedro@codesourcery.com>
5857
5858 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5859 shared library event breakpoint if there's no execution.
5860
77bc418a
TJB
58612011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5862
5863 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5864 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5865
c50491a7
TT
58662011-05-23 Tom Tromey <tromey@redhat.com>
5867
5868 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5869 NULL.
5870
6d64e6d4
DE
58712011-05-23 Doug Evans <dje@google.com>
5872
5873 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5874 entry for RuntimeError to doc string.
5875
2067c8d4
JG
58762011-05-23 Jerome Guitton <guitton@adacore.com>
5877
5878 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5879 sequence for probing loops.
5880
b136cd05
PA
58812011-05-23 Pedro Alves <pedro@codesourcery.com>
5882
5883 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5884 comment.
5885
22e74ef9
MK
58862011-05-21 Mark Kettenis <kettenis@gnu.org>
5887
5888 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5889 zero as the value for %g0 in the register cache.
5890 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5891 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5892
842951eb
PA
58932011-05-20 Pedro Alves <pedro@codesourcery.com>
5894
5895 * infrun.c (proceed): Set previous_inferior_ptid here.
5896 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5897 inferior_ptid, not null_ptid.
5898 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5899 (fetch_inferior_event): Nor here.
5900
46cf51e6
PA
59012011-05-20 Pedro Alves <pedro@codesourcery.com>
5902
5903 * inf-loop.c (inferior_event_handler): Only output a message if
5904 verbose.
5905
29ef4c46
LM
59062011-05-20 Luis Machado <lgustavo@codesourcery.com>
5907
5908 * MAINTAINERS: Update my e-mail address.
5909
f148b27e
PA
59102011-05-20 Pedro Alves <pedro@codesourcery.com>
5911
5912 * infrun.c (proceed): Switch the inferior event loop to
5913 INF_EXEC_COMPLETE if the target refused to resume from a
5914 vfork/fork.
5915
09cee04b
PA
59162011-05-20 Pedro Alves <pedro@codesourcery.com>
5917
5918 * infcmd.c: Include "inf-loop.h".
5919 (step_once): When stepping into an inline subroutine, pretend the
5920 target has run. If the target can async, switch the inferior
5921 event loop to INF_EXEC_COMPLETE.
5922 * inferior.h (user_visible_resume_ptid): Declare.
5923 * infrun.c (user_visible_resume_ptid): New function, factored out
5924 from `resume'.
5925 (resume): Use it.
5926 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5927 that the current thread is running. Merge async and sync
5928 branches.
5929
751b8ce1
PA
59302011-05-20 Pedro Alves <pedro@codesourcery.com>
5931
5932 * infcmd.c (step_1): Simplify synchronous case.
5933
e93a69ed
PA
59342011-05-20 Pedro Alves <pedro@codesourcery.com>
5935
5936 * tracepoint.c: Include exceptions.h.
5937 (TFILE_PID): Move higher in file.
5938 (tfile_open): Delay pushing the tfile target until we're assured
5939 the tfile header is present in the file. Wrap reading the initial
5940 newline-terminated lines in TRY_CATCH. Pop the target if the
5941 initial setup failed. Add the tfile's thread immediately
5942 aftwards, before any non-essential setup. Don't skip
5943 post_create_inferior if there are no traceframes present in the
5944 file.
5945 (tfile_close): Remove redundant check for null before xfree call.
5946 (tfile_thread_alive): New function.
5947 (init_tfile_ops): Register it as to_thread_alive callback.
5948
6823e2b1
PA
59492011-05-20 Pedro Alves <pedro@codesourcery.com>
5950
5951 * tracepoint.c (tfile_open): Delete #if 0'd code.
5952
b3c8eb43
JK
59532011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5954
5955 Fix -readnow for -gdwarf-4 unused type units.
5956 * dwarf2read.c (struct signatured_type): Remove the field offset.
5957 (create_signatured_type_table_from_index): Remove its initialization.
5958 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5959 instead. Add a complaint call.
5960 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5961 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5962 (lookup_signatured_type_at_offset, read_signatured_type)
5963 (write_one_signatured_type): Update the field for per_cu.
5964
310afc76
TT
59652011-05-19 Tom Tromey <tromey@redhat.com>
5966
5967 * python/py-inferior.c (python_inferior_exit): Use
5968 target_gdbarch.
5969 (python_on_resume): Likewise.
5970
cf6c5ffb
TT
59712011-05-19 Matt Rice <ratmice@gmail.com>
5972
5973 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5974
fb80a3c5
HZ
59752011-05-19 Hui Zhu <teawater@gmail.com>
5976
5977 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5978
3672b1be
HZ
59792011-05-19 Hui Zhu <teawater@gmail.com>
5980
5981 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5982
ff355380
TT
59832011-05-18 Tom Tromey <tromey@redhat.com>
5984
5985 * dwarf2read.c (dwarf2_add_field): Constify.
5986 * value.c (value_static_field): Constify.
5987 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5988 Now const.
5989 * ax-gdb.c (gen_static_field): Constify
5990
ed731959
JK
59912011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5992
5993 * linux-nat.c (kill_callback): Use SIGKILL first.
5994
967cff16
JB
59952011-05-18 Joel Brobecker <brobecker@adacore.com>
5996
5997 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5998
1d06ead6
TT
59992011-05-18 Tom Tromey <tromey@redhat.com>
6000
6001 * value.c (value_fn_field): Constify.
6002 * symtab.c (gdb_mangle_name): Constify.
6003 * stabsread.c (update_method_name_from_physname): Make 'physname'
6004 argument const.
6005 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6006 const. Use explicit fputc_filtered loop.
6007 (pascal_type_print_base): Constify.
6008 * p-lang.h (pascal_type_print_method_args): Update.
6009 * linespec.c (add_matching_methods): Constify.
6010 (add_constructors): Likewise.
6011 * jv-typeprint.c (java_type_print_base): Constify.
6012 * gdbtypes.h (struct cplus_struct_type)
6013 <fn_fieldlist.fn_field.physname>: Now const.
6014 * dwarf2read.c (compute_delayed_physnames): Constify.
6015 (dwarf2_add_member_fn): Likewise.
6016 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6017
0d9a9a5f
PA
60182011-05-18 Pedro Alves <pedro@codesourcery.com>
6019
6020 * infrun.c (resume): Mention which is the current thread, and its
6021 current PC in debug output.
6022 (prepare_to_proceed): Mention the thread switching in debug
6023 output.
6024
05386e9e
TT
60252011-05-18 Tom Tromey <tromey@redhat.com>
6026
6027 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6028 path check. Use xmalloc and cleanups.
6029 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6030
ee86786c
TT
60312011-05-17 Tom Tromey <tromey@redhat.com>
6032
6033 * cp-valprint.c (cp_print_value_fields): Catch errors from
6034 value_static_field.
6035
9ff3b74f
TT
60362011-05-17 Tom Tromey <tromey@redhat.com>
6037
6038 * dwarf2read.c (dwarf2_get_die_type): Call
6039 get_die_type_at_offset.
6040 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6041 get_base_type function.
6042
cd3da28e
PA
60432011-05-17 Tomas Martinec <fyzmat@gmail.com>
6044
6045 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6046 trap_expected.
6047
fd20d931
DE
60482011-05-16 Doug Evans <dje@google.com>
6049
6050 * python/py-auto-load.c (source_section_scripts): Mention objfile
6051 name in warning.
6052
75fc9810
DE
60532011-05-15 Doug Evans <dje@google.com>
6054
290351b8
DE
6055 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6056 (try_thread_db_load_from_pdir): Call it. If unable to find
6057 libthread_db in directory of libpthread, see if we're looking at
6058 the separate-debug-info copy.
6059
75fc9810
DE
6060 * python/py-autoload.c (print_script): Print "Missing" instead of
6061 "No" for missing scripts.
6062 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6063
9f7bc587
DE
60642011-05-13 Doug Evans <dje@google.com>
6065
6066 * ui-file.c (stdio_file_write_async_safe): Add comment.
6067
093cee7d
HZ
60682011-05-14 Hui Zhu <teawater@gmail.com>
6069
6070 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6071
dbaefcf7
DE
60722011-05-13 Doug Evans <dje@google.com>
6073
98a5dd13
DE
6074 Support $pdir and $sdir in libthread-db-search-path.
6075 * NEWS: Mention $sdir,$pdir.
6076 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6077 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6078 (try_thread_db_load_from_sdir): New function.
6079 (try_thread_db_load_from_dir): New function.
6080 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6081 system directories if search of libthread-db-search-path fails,
6082 that is now done via $sdir.
6083 (has_libpthread): New function.
6084 (thread_db_load): Remove search for libthread_db in directory of
6085 libpthread, that is now done via $pdir.
6086
dbaefcf7
DE
6087 * NEWS: Mention "info auto-load-scripts".
6088 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6089 script_not_found_warning_printed.
6090 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6091 all callers updated. Initialize script_not_found_warning_printed.
6092 (get_auto_load_pspace_data_for_loading): New function.
6093 (maybe_add_script): New function.
6094 (source_section_scripts): Simplify. Only print one warning regardless
6095 of the number of auto-load scripts not found.
6096 (clear_section_scripts): Clear script_not_found_warning_printed.
6097 (auto_load_objfile_script): Record script in hash table.
6098 (count_matching_scripts): New function.
6099 (maybe_print_script): Renamed from maybe_print_section_script, all
6100 callers updated. Rewrite to use ui_out_*.
6101 (info_auto_load_scripts): Renamed from
6102 maintenance_print_section_scripts, all callers updated.
6103 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6104 renamed as "info auto-load-scripts".
6105
9930639c
TT
61062011-05-13 Tom Tromey <tromey@redhat.com>
6107
6108 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6109 (read_sleb128): Likewise.
6110
06826322
TT
61112011-05-13 Tom Tromey <tromey@redhat.com>
6112
6113 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6114 offset display.
6115
01124a23
DE
61162011-05-13 Doug Evans <dje@google.com>
6117
6118 * linux-nat.c (debug_linux_nat_async): Delete.
6119 Replace all references to use debug_linux_nat instead.
6120 (show_debug_linux_nat_async): Delete.
6121 (sigchld_handler): Call ui_file_write_async_safe instead of
6122 fprintf_unfiltered.
6123 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6124 * ui-file.c (struct ui_file): New member to_write_async_safe.
6125 (null_file_write_async_safe): New function.
6126 (ui_file_write_async_safe): New function.
6127 (set_ui_file_write_async_safe): New function.
6128 (ui_file_new): Initialize to_write_async_safe.
6129 (stdio_file_write_async_safe): New function.
6130 (struct stdio_file): New member fd.
6131 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6132 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6133 fileno.
01124a23
DE
6134 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6135 (set_ui_file_write_async_safe): Declare.
6136 (ui_file_write_async_safe): Declare.
6137
72fc29ff
TT
61382011-05-13 Tom Tromey <tromey@redhat.com>
6139
6140 * utils.c (do_value_free): New function.
6141 (make_cleanup_value_free): Likewise.
6142 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6143 freeing correctly.
6144 (dwarf2_loc_desc_needs_frame): Call
6145 make_cleanup_value_free_to_mark.
6146 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6147 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6148 value_free_to_mark.
6149 (new_dwarf_expr_context): Don't call value_mark.
6150 * dwarf2-frame.c (execute_stack_op): Call
6151 make_cleanup_value_free_to_mark.
6152 * defs.h (make_cleanup_value_free): Declare.
6153
028d0ed5
TJB
61542011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6155
6156 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6157 prepare_execute_command.
6158 * top.c (prepare_execute_command): Return cleanup.
6159 (execute_command): Use cleanup from prepare_execute_command.
6160 * top.h (prepare_execute_command): Change prototype to return
6161 cleanup.
6162 * defs.h (struct value): Add opaque declaration.
6163 (make_cleanup_value_free_to_mark): Add prototype.
6164 * utils.c (do_value_free_to_mark): New function.
6165 (make_cleanup_value_free_to_mark): Likewise.
6166
b087e0ed
TT
61672011-05-12 Tom Tromey <tromey@redhat.com>
6168
6169 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6170 cast left-hand-side to unsigned.
6171
8a9b8146
TT
61722011-05-12 Tom Tromey <tromey@redhat.com>
6173
6174 PR gdb/12617:
6175 * value.h (value_from_contents): Declare.
6176 * value.c (value_from_contents): New function.
6177 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6178 (dwarf2_get_die_type): New function.
6179 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6180 (allocate_piece_closure): Acquire reference to values.
6181 (read_pieced_value): Update for value-based expressions.
6182 (write_pieced_value): Likewise.
6183 (free_pieced_value_closure): Call value_free as needed.
6184 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6185 Update for value-based expressions.
6186 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6187 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6188 <get_base_type>: New field.
6189 (struct dwarf_expr_piece) <v.value>: Change type.
6190 <v.regno>: New field.
6191 (struct dwarf_expr_context) <mark>: New field.
6192 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6193 (dwarf_expr_pop, dwarf_expr_push): Remove.
6194 (dwarf_expr_push_address): Declare.
6195 * dwarf2expr.c (dwarf_arch_cookie): New global.
6196 (struct dwarf_gdbarch_types): New.
6197 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6198 functions.
6199 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6200 static.
6201 (dwarf_expr_push_address): New function.
6202 (dwarf_expr_pop): Now static.
6203 (dwarf_expr_fetch): Change return type.
6204 (dwarf_require_integral): New function.
6205 (dwarf_expr_fetch): Simplify.
6206 (add_piece): Update.
6207 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6208 functions.
6209 (execute_stack_op) <sign_ext>: Remove.
6210 Use values for DWARF stack.
6211 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6212 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6213 New cases.
6214 (_initialize_dwarf2expr): New function.
6215 (add_piece): Update.
6216 (new_dwarf_expr_context): Set new field.
6217 (free_dwarf_expr_context): Call value_free_to_mark.
6218 * dwarf2-frame.c (no_base_type): New function.
6219 (execute_stack_op): Set get_base_type field. Update.
6220
e8d28ef4
TT
62212011-05-12 Tom Tromey <tromey@redhat.com>
6222
6223 * dwarf2read.c (read_common_block): Fix formatting.
6224
d248b706
KY
62252011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6226
6227 * breakpoint.c (disable_breakpoint): Disable all locations
6228 associated with a tracepoint on target if a trace experiment is
6229 running.
6230 (disable_command): Disable a specific tracepoint location on target if
6231 a trace experiment is running.
6232 (do_enable_breakpoint): Enable all locations associated with a
6233 tracepoint on target if a trace experiment is running.
6234 (enable_command) Enable a specific tracepoint location on target if a
6235 trace experiment is running.
6236 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6237 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6238 to_disable_tracepoint.
6239 * target.h: Add declaration of struct bp_location.
6240 (struct target_ops): Add new functions
6241 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6242 to_disable_tracepoint to target operations.
6243 (target_supports_enable_disable_tracepoint): New macro.
6244 (target_enable_tracepoint): New macro.
6245 (target_disable_tracepoint): New macro.
6246 * remote.c (struct remote_state): Add new field.
6247 (remote_enable_disable_tracepoint_feature): New.
6248 (remote_protocol_features): Add new entry.
6249 (remote_supports_enable_disable_tracepoint): New.
6250 (remote_enable_tracepoint): New.
6251 (remote_disable_tracepoint): New.
6252 (init_remote_ops): Add remote_enable_tracepoint,
6253 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6254 to remote operations.
6255 * tracepoint.c (start_tracing): Allow tracing to start without any
6256 tracepoints enabled with just a warning if they can be re-enabled
6257 later.
6258 * NEWS: Add news item for the new behaviour of the enable and disable
6259 GDB commands when applied to tracepoints.
6260 Add news items for the new remote packets QTEnable and QTDisable.
6261
cc88a640
JK
62622011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6263
6264 * config.in: Regenerate.
6265 * configure: Regenerate.
6266 * configure.ac <--with-system-readline> (for readline_echoing_p):
6267 Remove the test.
6268 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6269 (tui_old_rl_echoing_p): ... here.
6270 (tui_setup_io): Rename extern declaration readline_echoing_p to
6271 _rl_echoing_p. Adjust assignments for the both renames.
6272
1f84b619
TJB
62732011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6274
6275 * symtab.c (lookup_symtab): Run cleanup before returning.
6276
74ac6d43
TT
62772011-05-11 Tom Tromey <tromey@redhat.com>
6278
6279 * dwarf2read.c (handle_data_member_location): New function.
6280 (dwarf2_add_field): Use it.
6281 (read_common_block): Likewise.
6282
5488dafb
JK
62832011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6284
6285 Make addrs->SECTINDEX always defined.
6286 * symfile.c (relative_addr_info_to_section_offsets): Check for
6287 SECTINDEX -1, not for zero ADDR.
6288 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6289 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6290 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6291 on its validity.
6292
84e578fb
DE
62932011-05-10 Doug Evans <dje@google.com>
6294
2471d008
DE
6295 * linux-thread-db.c: Whitespace cleanup.
6296 (try_thread_db_load_1): Fix comment.
6297
84e578fb
DE
6298 * linux-thread-db.c (set_libthread_db_search_path): New function.
6299 (_initialize_thread_db): Add setter for libthread-db-search-path.
6300
673c2bbe
DE
63012011-05-09 Doug Evans <dje@google.com>
6302
478aac75
DE
6303 * NEWS: Mention --with-iconv-bin.
6304 * configure.ac: New option --with-iconv-bin.
6305 * configure: Regenerate.
6306 * config.in: Regenerate.
6307 * defs.h (relocate_gdb_directory): Declare.
6308 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6309 removed progname parameter, and exported. All callers updated.
6310 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6311
673c2bbe
DE
6312 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6313 adding missing call to restore_child_signals_mask.
6314
e4c8541f
PA
63152011-05-09 Pedro Alves <pedro@codesourcery.com>
6316
6317 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6318 parameter.
6319 * infrun.c (proceed, start_remote): Adjust.
6320 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6321 and adjust to not handle it.
6322 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6323 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6324 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6325 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6326 * windows-nat.c (do_initial_windows_stuff): Adjust.
6327 * infcmd.c (attach_command): Adjust.
6328 (notice_new_inferior): Adjust.
6329
a536c6d7
UW
63302011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6331
6332 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6333 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6334 * spu-tdep.c (op_selb): Use correct value.
6335
7845b013
UW
63362011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6337
6338 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6339 "parent" parameter to symbol_file_add_from_bfd call.
6340
9c06b0b4
TJB
63412011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6342 Thiago Jung Bauermann <bauerman@br.ibm.com>
6343
6344 Implement support for PowerPC BookE masked watchpoints.
6345 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6346 section.
6347 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6348 method. Initialize to NULL in all existing breakpoint_ops instances.
6349 (struct breakpoint) <hw_wp_mask>: New field.
6350 * breakpoint.c (is_masked_watchpoint): Add prototype.
6351 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6352 breakpoint's breakpoint_ops.works_in_software_mode if available.
6353 (watchpoints_triggered): Handle the case of a hardware masked
6354 watchpoint trigger.
6355 (watchpoint_check): Likewise.
6356 (works_in_software_mode_watchpoint): New function.
6357 (insert_masked_watchpoint, remove_masked_watchpoint)
6358 (resources_needed_masked_watchpoint)
6359 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6360 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6361 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6362 functions.
6363 (masked_watchpoint_breakpoint_ops): New structure.
6364 (watch_command_1): Check for the existence of the `mask' parameter.
6365 Set b->ops according to the type of hardware watchpoint being created.
6366 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6367 (ppc_linux_remove_mask_watchpoint)
6368 (ppc_linux_masked_watch_num_registers): New functions.
6369 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6370 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6371 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6372 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6373 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6374 (target_masked_watch_num_registers): New functions.
6375 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6376 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6377 methods.
6378 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6379 (target_masked_watch_num_registers): Add prototypes.
6380
8be455d7
JK
63812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6382
6383 PR 12573
6384 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6385 (producer_is_gcc_ge_4_0): New function.
6386 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6387 symtab->language code.
6388 (var_decode_location): Set cu->has_loclist.
6389 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6390 skip. Intialize force_skip from locations_valid. Move the prologue
6391 skipping code into two passes.
6392 * symtab.h (struct symtab): Make the primary field a bitfield. New
6393 field locations_valid.
6394
d8228535
JK
63952011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6396
6397 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6398 (classify_inner_name): Call cp_lookup_nested_type with
6399 yylval.tsym.type.
6400 * cp-namespace.c (cp_lookup_nested_type): New variable
6401 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6402 type_name_no_tag_or_error with saved_parent_type.
6403 * dwarf2read.c (load_partial_dies): Read in any children of
6404 DW_TAG_typedef with complaint in such case.
6405 * gdbtypes.c (type_name_no_tag_or_error): New function.
6406 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6407 * valops.c (destructor_name_p): New comment for parameter type. Remove
6408 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6409 * value.h (destructor_name_p): Remove type const.
6410
1976171a
JK
64112011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 * symtab.c (compare_symbol_name): New function.
6414 (completion_list_add_name, expand_partial_symbol_name): Call it,
6415 remove the variable ncmp.
6416 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6417 gdb_assert it.
6418
a9634178
TJB
64192011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6420
6421 Demote to sw watchpoint only in update_watchpoint.
6422 * breakpoint.c (update_watchpoint): Change between software and
6423 hardware watchpoint for all kinds of watchpoints, not just
6424 read/write ones. Determine b->exact value here instead of
6425 in watch_command_1. Error out if there are not enough resources
6426 for a read or access hardware watchpoint.
6427 (watch_command_1): Remove logic of checking whether there are
6428 enough resources available, since update_watchpoint will do that
6429 work now. Don't set b->exact here. Catch exceptions thrown by
6430 update_watchpoint and delete the watchpoint.
6431 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6432 Use target_exact_watchpoints instead.
6433 (delete_breakpoint): Notify observers only if deleted watchpoint
6434 has a breakpoint number assigned to it.
6435
4c67c798
JJ
64362011-05-05 Janis Johnson <janisjo@codesourcery.com>
6437
6438 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6439
a3fcb948
JG
64402011-05-05 Jerome Guitton <guitton@adacore.com>
6441
6442 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6443 New functions.
6444 (i386_stack_tramp_frame_unwind): New static global.
6445 (i386_match_pattern): New function, extracted from i386_match_insn.
6446 (i386_match_insn): Use i386_match_pattern.
6447 (i386_match_insn_block): New function.
6448 (i386_tramp_chain_in_reg_insns)
6449 (i386_tramp_chain_on_stack_insns): New static variables.
6450 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6451 of unwinders.
6452
4d393d60
JM
64532011-05-04 Joseph Myers <joseph@codesourcery.com>
6454
6455 * configure.host (xscale*): Don't handle target.
6456 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6457 handle targets.
6458
f70bd40b
YQ
64592011-05-04 Yao Qi <yao@codesourcery.com>
6460
6461 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6462
dd3295ee
JB
64632011-05-03 Joel Brobecker <brobecker@adacore.com>
6464
6465 Revert:
6466 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6467 | * elfread.c (elf_symtab_read): Stop memory leak.
6468
90375a0e
PM
64692011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6470
6471 * nto-tdep.c (nto_target): Replace deprecated call to
6472 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6473
d07205c2
JK
64742011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6475
6476 Fix false GCC warning.
6477 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6478
1e718ff1
TJB
64792011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6480
6481 * breakpoint.c (update_watchpoint): Move code to change
6482 the enable state of breakpoint from here ...
6483 (do_enable_breakpoint): ... to here.
6484
35bef4fd
TT
64852011-04-26 Andrew Gontarek <andrewg@cray.com>
6486
78290264
PP
6487 * valprint.c (val_print_array_elements): Fixed poor performance
6488 of printing very large arrays with repeat_count_threshold set
6489 to unlimited. New comment.
35bef4fd 6490
38a714bb
TT
64912011-04-29 Tom Tromey <tromey@redhat.com>
6492
6493 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6494 (mi_parse): Likewise.
6495 * breakpoint.c (break_range_command): Use sizeof char*, not
6496 char**.
6497 (create_breakpoint): Likewise.
6498 (parse_breakpoint_sals): Likewise.
6499
eb73ad13
PA
65002011-04-29 Pedro Alves <pedro@codesourcery.com>
6501
6502 * linux-nat.c (linux_child_remove_fork_catchpoint)
6503 (linux_child_remove_vfork_catchpoint)
6504 (linux_child_remove_exec_catchpoint): New functions.
6505 (linux_target_install_ops): Install them.
6506
d65aec65
PM
65072011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6508
6509 PR mi/12531
6510
6511 * varobj.c (install_default_visualizer): Do not install a
6512 visualizer if the varobj is CPLUS_FAKE_CHILD.
6513 (construct_visualizer): Likewise.
6514
165195f4
JK
65152011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6516
6517 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6518 case insensitive comparison.
6519
30852783
UW
65202011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6521
6522 * infrun.c (proceed): Revert previous change.
6523 (resume): Instead, handle the case of signal delivery while stepping
6524 off a breakpoint location here, and only if software single-stepping
6525 is used. Handle nested signals.
6526
7ff120b4
YQ
65272011-04-28 Yao Qi <yao@codesourcery.com>
6528
6529 * arm-tdep.c (copy_unmodified): Rename to ...
6530 (arm_copy_unmodified): .. this. New.
6531 (copy_preload): Move common part to ...
6532 (install_preload): .. this. New.
6533 (arm_copy_preload): New.
6534 (copy_preload_reg): Move common part to ...
6535 (install_preload_reg): ... this. New.
6536 (arm_copy_preload_reg): New.
6537 (copy_b_bl_blx): Move common part to ...
6538 (install_b_bl_blx): .. this. New.
6539 (arm_copy_b_bl_blx): New.
6540 (copy_bx_blx_reg): Move common part to ...
6541 (install_bx_blx_reg): ... this. New.
6542 (arm_copy_bx_blx_reg): New.
6543 (copy_alu_reg): Move common part to ...
6544 (install_alu_reg): ... this. New.
6545 (arm_copy_alu_reg): New.
6546 (copy_alu_shifted_reg): Move common part to ...
6547 (install_alu_shifted_reg): ... this. New.
6548 (copy_ldr_str_ldrb_strb): Move common part to ...
6549 (install_ldr_str_ldrb_strb): ... this. New.
6550 (arm_copy_ldr_str_ldrb_strb): New.
6551 (copy_copro_load_store): Move some common part to ...
6552 (install_copy_copro_load_store): ... this. New.
6553 (arm_copy_copro_load_store): New.
6554 (copy_svc): Delete.
6555 (arm_copy_svc): Renamed from copy_svc.
6556 (copy_undef): Delete.
6557 (arm_copy_undef): Renamed from copy_undef.
6558 (decode_ext_reg_ld_st): Delete.
6559 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6560 (decode_svc_copro): Delete.
6561 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6562 (copy_copro_load_store, copy_alu_imm): update callers.
6563 (copy_extra_ld_st, copy_block_xfer): Likewise.
6564 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6565 (decode_miscellaneous, decode_dp_misc): Likewise.
6566 (decode_ld_st_word_ubyte, decode_media): Likewise.
6567 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6568 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6569 (decode_unconditional, decode_miscellaneous): Likewise.
6570 (decode_media, decode_b_bl_ldmstm): Likewise.
6571 (arm_process_displaced_insn): Likewise..
6572 (decode_misc_memhint_neon): Delete.
6573 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6574 (decode_miscellaneous): Delete.
6575 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6576 (decode_dp_misc): Delete.
6577 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6578 (decode_ld_st_word_ubyte): Delete.
6579 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6580 (decode_media): Delete.
6581 (arm_decode_media): Renamed from decode_media.
6582 (decode_b_bl_ldmstm): Delete.
6583 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6584 (decode_ext_reg_ld_st): Delete.
6585 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6586 (decode_unconditional): Delete.
6587 (arm_decode_unconditional): Renamed from decode_unconditional.
6588
559a7a62
JK
65892011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 Case insensitive lookups implementation.
6592 * dwarf2read.c: Include ctype.h.
6593 (struct mapped_index): New field version.
6594 (mapped_index_string_hash): New parameter index_version. New comment
6595 for it. Call tolower appropriately.
6596 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6597 Choose the right index version for mapped_index_string_hash.
6598 (dwarf2_read_index): Support also the index version 5. Initialize the
6599 new struct mapped_index field version.
6600 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6601 (find_slot): Explain the version needs. Pass INT_MAX for the new
6602 parameter.
6603 (write_psymtabs_to_index): Produce version 5.
6604 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6605 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6606 * psymtab.c (lookup_partial_symbol): Find the
6607 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6608 entries.
6609 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6610 NAME lowercasing.
6611 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6612 (completion_list_add_name): New variable ncmp, initialize it, use it.
6613 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6614 * utils.c (strcmp_iw): Support case_sensitive_off.
6615 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6616 New function comment part. New variables saved_string1,
6617 saved_string2 and case_pass. Add a proper second pass.
6618
681bf369
JK
66192011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6620
6621 Replace re_comp/re_exec by regcomp/regexec.
6622 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6623 (search_symbols_name_matches): Use them, use regexec.
6624 (search_symbols): New variable retval_chain, adjust the use of
6625 old_chain against it. Replace re_comp by regcomp. Use the new struct
6626 search_symbols_data fields, use regexec instead of re_exec.
6627
b11b1f88
JK
66282011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 Format the code for the next patch.
6631 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6632 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6633 New variables c1 and c2.
6634
2484c66b
UW
66352011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6636
6637 * infrun.c (proceed): Do not single-step into signal delivery
6638 when stepping off a breakpoint location.
6639 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6640 (insert_step_resume_breakpoint_at_caller): Likewise.
6641 (insert_step_resume_breakpoint_at_sal): Likewise.
6642 (insert_longjmp_resume_breakpoint): Likewise.
6643
47423772
YQ
66442011-04-27 Yao Qi <yao@codesourcery.com>
6645
6646 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6647
13bdd2e7
JB
66482011-04-27 Joel Brobecker <brobecker@adacore.com>
6649
6650 * procfs.c (procfs_pass_signals): Fix advance declaration.
6651
2455069d
UW
66522011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6653
6654 * target.h (struct target_ops): Remove to_notice_signals;
6655 add to_pass_signals.
6656 (target_notice_signals): Remove.
6657 (target_pass_signals): Add prototype.
6658 * target.c (update_current_target): Remove to_notice_signals;
6659 mention to_pass_signals.
6660 (target_pass_signals): New function.
6661 (debug_to_notice_signals): Remove.
6662 (setup_target_debug): Do not install debug_to_notice_signals.
6663
6664 * infrun.c (signal_pass): New global.
6665 (resume): Call target_pass_signals.
6666 (handle_inferior_event): Report all signals while stepping over
6667 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6668 are re-inserted when stepping over a signal handler.
6669 (signal_cache_update): New function.
6670 (signal_stop_update): Call it.
6671 (signal_print_update): Likewise.
6672 (signal_pass_update): Likewise.
6673 (handle_command): Call signal_cache_update and target_pass_signals
6674 instead of target_notice_signals.
6675 (_initialize_infrun): Initialize signal_pass.
6676
6677 * linux-nat.c (pass_mask): New global.
6678 (linux_nat_pass_signals): New function.
6679 (linux_nat_create_inferior): Report all signals initially.
6680 (linux_nat_attach): Likewise.
6681 (linux_nat_resume): Use pass_mask to decide whether to directly
6682 handle an inferior signal.
6683 (linux_nat_wait_1): Likewise.
6684 (linux_nat_add_target): Install to_pass_signals callback.
6685
6686 * nto-procfs.c (notice_signals): Remove.
6687 (procfs_resume): Do not call notice_signals.
6688 (procfs_notice_signals): Remove.
6689 (procfs_pass_signals): New function.
6690 (init_procfs_ops): Install to_pass_signals callback instead of
6691 to_notice_signals callback.
6692 (_initialize_procfs): Report all signals initially.
6693
6694 * procfs.c (procfs_notice_signals): Remove.
6695 (procfs_pass_signals): New function.
6696 (procfs_target): Install to_pass_signals callback instead of
6697 to_notice_signals callback.
6698 (register_gdb_signals): Remove.
6699 (procfs_debug_inferior): Report all signals initially.
6700 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6701
6702 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6703 parameters; use them instead of calling signal_..._state routines.
6704 (remote_notice_signals): Remove.
6705 (remote_start_remote): Report all signals initially.
6706 (remote_resume): Do not call remote_pass_signals.
6707 (_initialize_remote): Install to_pass_signals callback instead of
6708 to_notice_signals callback.
6709
46c6471b
PA
67102011-04-27 Pedro Alves <pedro@codesourcery.com>
6711
6712 * breakpoint.c (user_settable_breakpoint): Delete.
6713 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6714 (delete_command): Check user_breakpoint_p instead of looking at
6715 the breakpoint's type.
6716 (disable_command): Ditto.
6717 (enable_command): Ditto.
6718 (delete_trace_command): Use user_breakpoint_p instead of looking
6719 at the breakpoint number directly. When checking if there are
6720 user visible tracepoints, in order to know whether to ask the user
6721 for confirmation, check whether the breakpoint is actually a
6722 tracepoint.
6723
f6d90398
VP
67242011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6725
6726 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6727 compilation.
6728
8d3788bd
VP
67292011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6730
6731 MI breakpoint notifications.
6732
f33edef8
PP
6733 * annotate.c (breakpoint_changed): Adjust parameter type.
6734 * breakpoint.c (set_breakpoint_condition): Adjust to change
6735 in breakpoint_modified type.
6736 (breakpoint_set_commands): Likewise.
6737 (do_map_commands_command): Likewise.
6738 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6739 changed after bumping hit count.
6740 (bpstat_stop_status): Likewise.
6741 (print_one_breakpoint_location): Don't wrap in tuple here.
6742 (print_one_breakpoint): Always print individual locations.
6743 For locations, use unnamed tuple.
6744 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6745 has changed.
6746 (create_catchpoint, create_syscall_event_catchpoint): Call
6747 breakpoint_created obsever.
6748 (mention): Don't call breakpoint_created observer.
6749 (create_breakpoint_sal): Call breakpoint_created observer.
6750 (create_breakpoint, watch_command_1): Likewise.
6751 (create_ada_exception_breakpoint): Likewise.
6752 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6753 (locations_are_equal): New.
6754 (update_breakpoint_locations): If locations were changed, notify.
6755 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6756 Call breakpoint_modified observer.
6757
6758 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6759 (mi_cmd_break_insert): Don't set observers for modify and delete.
6760 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6761 (mi_breakpoint_created, mi_breakpoint_deleted)
6762 (mi_breakpoint_modified): New.
6763 (mi_interpreter_init): Hook the above.
6764 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6765 while -break-* commands are executing.
6766 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6767 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6768 (mi_redirect): New.
6769 (mi_ui_out_impl): Hook in mi_redirect.
6770 (mi_field_skip): True to the name, skip the field, don't output
6771 a field with an empty value.
6772
6773 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6774 (gdbpy_breakpoint_deleted): Adjust.
6775 * tui/tui-hooks.c (tui_event_create_breakpoint)
6776 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6777
a8f42b45
UW
67782011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6779
6780 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6781 (procfs_remove_hw_watchpoint): Likewise.
6782
57e12211
TT
67832011-04-26 Michael Walle <michael@walle.cc>
6784
6785 * remote.c (remote_start_remote): Ack packet after sending the
6786 interrupt sequence.
6787
af96c192
YQ
67882011-04-26 Yao Qi <yao@codesourcery.com>
6789
f33edef8
PP
6790 * linux-nat.c: Move common macros to ...
6791 Include linux-ptrace.h.
6792 * common/linux-ptrace.h: ... here. New.
af96c192 6793
3e03848b
JK
67942011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6795
6796 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6797 !objfile_has_partial_symbols. New comment.
6798 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6799 SYM_READ_PSYMBOLS is not present. Extend the comment.
6800 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6801
1ae0d051
JK
68022011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 * defs.h (ENUM_BITFIELD): Remove.
6805
03f2bd59
JK
68062011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6807 Eli Zaretskii <eliz@gnu.org>
6808
6809 * NEWS: Document the new gdbserver --once option.
6810
4161fbb0
JZ
68112011-04-21 Jie Zhang <jzhang918@gmail.com>
6812
6813 * MAINTAINERS: Update my email address.
6814
bcb28afc
PM
68152011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6816
6817 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6818 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6819 function call if __STDC_ISO_10646__ macro is defined.
6820 (intermediate_encoding): New prototype.
6821 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6822 to generate compile time error for unsupported gdb_wchar_t size.
6823 (ENDIAN_SUFFIX): New macro.
6824 (intermediate_encoding): New function.
6825
7b08b9eb
JK
68262011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 * ada-lang.c (struct add_partial_datum): Update the comment for
6829 expand_partial_symbol_name.
6830 (ada_add_partial_symbol_completions): Rename to ...
6831 (ada_expand_partial_symbol_name): ... here, change return type, update
6832 function comment, call symbol_completion_match instead of
6833 symbol_completion_add.
6834 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6835 and ada_expand_partial_symbol_name.
6836 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6837 FILE_MATCHER.
6838 (dw2_map_symbol_names): Remove.
6839 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6840 * psymtab.c (map_symbol_names_psymtab): Remove.
6841 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6842 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6843 order.
6844 (psym_functions): Unlist map_symbol_names_psymtab.
6845 (map_partial_symbol_names): Rename to ...
6846 (expand_partial_symbol_names): ... here, change the FUN type, call
6847 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6848 * psymtab.h (map_partial_symbol_names): Rename to ...
6849 (expand_partial_symbol_names): ... here, change the FUN type.
6850 * symfile.h (struct quick_symbol_functions): Update the description of
6851 expand_symtabs_matching. Remove map_symbol_names.
6852 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6853 (struct add_name_data): Update the comment for
6854 expand_partial_symbol_name.
6855 (add_partial_symbol_name): Rename to ...
6856 (expand_partial_symbol_name): ... here. Replace
6857 completion_list_add_name call by strncmp.
6858 (default_make_symbol_completion_list_break_on): Use now
6859 expand_partial_symbol_names and expand_partial_symbol_name.
6860 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6861
90476074
TT
68622011-04-20 Tom Tromey <tromey@redhat.com>
6863
6864 * dwarf2read.c (save_gdb_index_command): Replace format
6865 documentation with a pointer to the manual.
6866
c21236dc
PA
68672011-04-20 Pedro Alves <pedro@codesourcery.com>
6868
6869 * regcache.c: Include remote.h.
6870 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6871 (regcache_dump): Handle regcache_dump_remote.
6872 (maintenance_print_remote_registers): New function.
6873 (_initialize_regcache): Install "maint print remote-registers"
6874 command.
6875 * remote.c (map_regcache_remote_table): New function, factored out
6876 from ...
6877 (init_remote_state): ... here.
6878 (remote_register_number_and_offset): New.
6879 * remote.h (remote_register_number_and_offset): Declare.
6880
b78974c3
PA
68812011-04-20 Pedro Alves <pedro@codesourcery.com>
6882
6883 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6884 null_ptid, assume and allow a NULL address space, instead of
6885 asking the target for the ptid's address space.
6886 * infrun.c (ptid_is_pid): Remove assertion.
6887
7a9dd1b2
TT
68882011-04-19 Tom Tromey <tromey@redhat.com>
6889
6890 * windows-tdep.c (windows_xfer_shared_library):
6891 * windows-nat.c (get_module_name, windows_make_so):
6892 * v850-tdep.c (v850_handle_pushm):
6893 * utils.c (null_cleanup, gdb_realpath):
6894 * ui-out.c (get_next_header):
6895 * tracepoint.c (clear_traceframe_info):
6896 * symtab.c (lookup_symtab):
6897 * serial.h (struct serial_ops):
6898 * mipsread.c (read_alphacoff_dynamic_symtab):
6899 * infcmd.c (print_return_value):
6900 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6901 * f-exp.y (parse_number):
6902 * exceptions.c (catch_exceptions):
6903 * dummy-frame.c (dummy_frame_this_id):
6904 * defs.h (struct cleanup):
6905 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6906 * arm-tdep.c (arm_push_dummy_call):
6907 * amd64-tdep.h (amd64_collect_xsave):
6908 * amd64-tdep.c (amd64_collect_xsave):
6909 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6910 * README (typing): Remove duplicate words.
6911 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6912 * infrun.c (siginfo_value_read): Fix typo.
6913 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6914 * top.c (source_line_number): Add comma.
6915
9941e0c5
MK
69162011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6917
6918 * thread.c (any_live_thread_of_process): Prioritize threads
6919 that are not executing.
6920 * gdbthread.h (any_live_thread_of_process): Update comment
6921 as per above change.
6922
ed4b0e6a
AS
69232011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6924
6925 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6926 (scan_xcoff_symtab): Likewise.
6927
9b13a2db
PM
69282011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6929
6930 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6931 inside if clause.
6932
1c6e1b0d
PM
69332011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6934 Pedro Alves <pedro@codesourcery.com>
6935
6936 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6937 variables to simplify code and avoid == operator at end of
6938 line as this is against GNU coding standards.
6939
74de0234
PM
69402011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6941
6942 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6943 lm_name to name_lm to avoid conflict with lm_name function.
6944
b23518f0
PM
69452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6946
6947 ARI fixes: Use only lowercase function name for static functions.
6948 * nto-tdep.c (LM_ADDR): Rename to...
6949 (lm_addr): New function name.
6950 (nto_relocate_section_addresses): Adapt to change above.
6951 * solib-sunos.c (LM_ADDR): Rename to...
6952 (lm_addr): New function name.
6953 (LM_NEXT): Rename to...
6954 (lm_next): New function name.
6955 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6956 function name changes above.
6957 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6958 (lm_addr_from_link_map): New function name.
6959 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6960 (has_lm_dynamic_from_link_map): New function name.
6961 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6962 (lm_dynamic_from_link_map): New function name.
6963 (LM_ADDR_CHECK): Rename to...
6964 (lm_addr_check): New function name.
6965 (LM_NEXT): Rename to...
6966 (lm_next): New function name.
6967 (LM_PREV): Rename to...
6968 (lm_prev): New function name.
6969 (LM_NAME): Rename to...
6970 (lm_name): New function name.
6971 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6972 (ignore_first_link_map_entry): New function name.
6973 (svr4_keep_data_in_core): Adapt to function name changes above.
6974 (svr4_current_sos): Likewise.
6975 (enable_break): Likewise.
6976 (svr4_relocate_section_addresses): Likewise.
6977
1448a0a2
PM
69782011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6979
6980 ARI cleanup.
6981 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6982 sprintf. Simplify code and avoid loosing memory.
6983 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6984 (call0_frame_cache): Remove && operator from end of line.
6985
02835898
JK
69862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6987
6988 Fix libraries displacement if they change whether they were prelinked.
6989 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6990 does not match. Comment why.
6991
9a845ea2
JK
69922011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6993
6994 * corelow.c: Include wrapper.h.
6995 (core_open): Call now gdb_target_find_new_threads.
6996 * wrapper.c: Include target.h.
6997 (gdb_target_find_new_threads): New.
6998 * wrapper.h (gdb_target_find_new_threads): New declaration.
6999
254f582e
JK
70002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7001
7002 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7003 even if !TARGET_HAS_EXECUTION.
7004
63524580
JK
70052011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7006
7007 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7008 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7009 bfd_get_synthetic_symtab.
7010 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7011 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7012 parameter parent, remove the call to add_separate_debug_objfile.
7013 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7014 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7015 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7016 parent, new comment for it, call add_separate_debug_objfile for it.
7017 (symbol_file_add_separate): Pass objfile as the parameter parent,
7018 remove the call to add_separate_debug_objfile.
7019 (symbol_file_add_from_bfd): New parameter parent, pass it.
7020 (symbol_file_add): Pass NULL to the new parameter parent.
7021 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7022
90359a16
JK
70232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7024
7025 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7026 BSF_SYNTHETIC.
7027
626e7282
JK
70282011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7029
7030 Fix Python access to inlined frames.
7031 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7032 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7033
cf31e6f9
TT
70342011-04-15 Tom Tromey <tromey@redhat.com>
7035
7036 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7037
c8d895f1
GB
70382011-04-15 Gary Benson <gbenson@redhat.com>
7039
7040 * MAINTAINERS: Add myself to write-after-approval section.
7041
56a9aa1d
MF
70422011-04-14 Mike Frysinger <vapier@gentoo.org>
7043
7044 * remote-sim.c (sim_command_completer): New function.
7045 (_initialize_remote_sim): Set completer to sim_command_completer.
7046
ba770c9c
TJB
70472011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7048
7049 * breakpoint.c (print_exception_catchpoint): Rename to ...
7050 (print_it_exception_catchpoint): ... this.
7051 (gnu_v3_exception_catchpoint_ops): Update with new name
7052 for print_it_exception_catchpoint.
7053
51bf2553
EBM
70542011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7055
7056 * MAINTAINERS: Add myself for write after approval privileges.
7057
d242658c
MP
70582011-04-13 Marek Polacek <mpolacek@redhat.com>
7059
7060 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7061
4a4106ca
TJB
70622011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7063
7064 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7065
26063d49
TJB
70662011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7067
7068 * breakpoint.c (save_breakpoints): Verify whether
7069 breakpoint_ops.print_recreate is defined before calling it.
7070
7782b183
GB
70712011-04-11 Gary Benson <gbenson@redhat.com>
7072
7073 Fix failure with --enable-maintainer-mode.
7074 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7075
e8930875
JK
70762011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 Code cleanup.
7079 * symtab.c (search_symbols): Reorder the KIND description in the
7080 function comment. Remove the unused 4th element of types, types2,
7081 types3 and types4. New gdb_assert on KIND.
7082 (symtab_symbol_info): Remove the unused 4th element of classnames.
7083 New gdb_assert on KIND.
7084 * symtab.h (enum search_domain): New warning in the enum comment.
7085 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7086 TYPES_DOMAIN.
7087
b4f2f049
JK
70882011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 Fix crash of gdb save-index on a STABS file.
7091 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7092 PSYMTABS_ADDRMAP.
7093
60d5a603
JK
70942011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7097 * dwarf2read.c: Include ctype.h.
7098 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7099 functions.
7100 (dwarf2_add_field): Fix new_field->accessibility by calling
7101 dwarf2_default_access_attribute. Restructure setting accessibility
7102 vs. virtuality.
7103 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7104 is_private and is_protected by calling
7105 dwarf2_default_access_attribute.
7106
e0f68161
KB
71072011-04-08 Kevin Buettner <kevinb@redhat.com>
7108
7109 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7110 to the initialization.
7111
2e1aae43
SE
71122011-04-08 Steve Ellcey <sje@cup.hp.com>
7113
7114 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7115 initalization.
7116
c6ca3dab
PM
71172011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7118
7119 Remove support for old Cygwin 1.5 versions.
7120 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7121 function on old Cygwin version.
7122 * windows-nat.c: Remove cygwin version check and always define
7123 __USEWIDE for Cygwin compilation.
7124
bd18283a
YQ
71252011-04-07 Yao Qi <yao@codesourcery.com>
7126
7127 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7128 and TO.
7129 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7130 (arm_copy_svc): Remove parameters INSN and TO.
7131 (decode_svc_copro): Update caller.
7132 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7133 from function pointer `copy_svc_os'.
7134
8c8dba6d
YQ
71352011-04-07 Yao Qi <yao@codesourcery.com>
7136
7137 * arm-tdep.c (cleanup_branch): Set a correct return address in
7138 LR for ARM and Thumb.
7139
59d7bcaf
JK
71402011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7141
7142 Code cleanup.
7143 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7144 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7145 in the function comment, a new note on values compatibility.
7146 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7147 * symtab.h (SYMBOL_HASH_NEXT): New.
7148
e7db58ea
TJB
71492011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7150
7151 * ppc-linux-nat.c (check_condition): Add len output parameter.
7152 Set it based on the memory region referenced in the condition
7153 expression. Update all callers.
7154
9f743ef6
JK
71552011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7156
7157 Fix crash regression on systems featuring .gdb_index.
7158 * objfiles.c (free_objfile): Move the
7159 forget_cached_source_info_for_objfile call earlier. Comment it.
7160 Extend the comment for objfile_free_data.
7161
9182c5bc
JK
71622011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7163
7164 Fix regression of displaying the debug format.
7165 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7166 subfile.
7167
04bd08de
TT
71682011-04-04 Tom Tromey <tromey@redhat.com>
7169
7170 * cli/cli-interp.c (struct captured_execute_command_args):
7171 Remove.
7172 (do_captured_execute_command): Remove.
7173 (safe_execute_command): Use TRY_CATCH.
7174 * cli/cli-script.c (struct wrapped_read_command_file_args):
7175 Remove.
7176 (wrapped_read_command_file): Remove.
7177 (script_from_file): Use TRY_CATCH.
7178 * exceptions.c (catch_exception): Remove.
7179 * exceptions.h (catch_exception): Remove.
7180 (deprecated_throw_reason): Update comment.
7181 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7182 argument to 'context'.
7183 (mi_execute_command): Use TRY_CATCH.
7184 * remote.c (struct start_remote_args): Remove.
7185 (remote_start_remote): Update; change arguments.
7186 (remote_open_1): Use TRY_CATCH.
7187
58438ac1
TT
71882011-04-04 Tom Tromey <tromey@redhat.com>
7189
7190 * tracepoint.c (scope_info): Update.
7191 * symtab.c (decode_line_spec): Update.
7192 * python/python.c (gdbpy_decode_line): Update.
7193 * linespec.h (decode_line_1): Update.
7194 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7195 (decode_compound, find_method, symtab_from_filename)
7196 (decode_variable): Likewise.
7197 * cli/cli-cmds.c (edit_command): Update.
7198 (list_command): Update.
7199 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7200 argument.
7201 (create_breakpoint): Update.
7202 (until_break_command): Update.
7203 (addr_string_to_sals): Update.
7204 (decode_line_spec_1): Update.
7205
b78a6381
TT
72062011-04-04 Tom Tromey <tromey@redhat.com>
7207
7208 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7209 (do_captured_parse_breakpoint): Remove.
7210 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7211 Use TRY_CATCH directly.
7212
00174a86
TT
72132011-04-04 Tom Tromey <tromey@redhat.com>
7214
7215 * symtab.h (free_symtab): Remove.
7216 (forget_cached_source_info_for_objfile): Declare.
7217 * symmisc.c (free_symtab): Remove.
7218 * source.c (forget_cached_source_info_for_objfile): New function.
7219 (forget_cached_source_info): Use it.
7220 * objfiles.c (free_objfile): Simplify check before calling
7221 clear_current_source_symtab_and_line. Call
7222 forget_cached_source_info_for_objfile.
7223
30cc903e
TT
72242011-04-04 Tom Tromey <tromey@redhat.com>
7225
7226 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7227 (new_symtab): Don't set `free_code' on symtab.
7228 (new_linetable): Properly handle size==0.
7229 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7230 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7231 free_func.
7232 * jv-lang.c (struct jv_per_objfile_data): New.
7233 (jv_per_objfile_free): Free the data.
7234 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7235 (get_java_class_symtab): Set the `dict' field on the
7236 jv_per_objfile_data.
7237 (free_class_block): Remove.
7238 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7239 the symtab.
7240
0c2e6019
TT
72412011-04-04 Tom Tromey <tromey@redhat.com>
7242
7243 * symfile.c (reread_symbols): Update.
7244 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7245 field.
7246 * objfiles.c (allocate_objfile): Update.
7247 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7248 declare.
7249 * cp-namespace.c (lookup_symbol_file): Don't call
7250 lookup_possible_namespace_symbol.
7251 (initialize_namespace_symtab, get_possible_namespace_block)
7252 (free_namespace_block, cp_check_possible_namespace_symbols)
7253 (check_possible_namespace_symbols_loop)
7254 (check_one_possible_namespace_symbol)
7255 (lookup_possible_namespace_symbol): Remove.
7256 (maintenance_cplus_namespace): Replace with notice.
7257 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7258
554d387d
TT
72592011-04-04 Tom Tromey <tromey@redhat.com>
7260
7261 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7262 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7263 * symmisc.c (free_symtab): Don't free debugformat.
7264 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7265 (record_debugformat, record_producer): Document.
7266 * buildsym.c (end_symtab): Don't save debugformat and producer
7267 names on obstack.
7268 (end_symtab): Don't free debugformat and producer fields.
7269 (record_debugformat): Don't call xstrdup.
7270 (record_producer): Likewise.
7271
d4d4db8a
TT
72722011-04-04 Tom Tromey <tromey@redhat.com>
7273
7274 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7275 (source_line_charpos, source_charpos_line): Remove.
7276
8903c50d
TT
72772011-04-04 Tom Tromey <tromey@redhat.com>
7278
7279 * symtab.h (domain_enum): Split in two...
7280 (enum search_domain): New.
7281 (search_symbols): Update.
7282 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7283 redundant declarations.
7284 (search_symbols): Change 'kind' argument to search_domain.
7285 Update.
7286 (print_symbol_info): Likewise.
7287 (symtab_symbol_info): Likewise.
7288 * symfile.h (struct quick_symbol_functions)
7289 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7290 <expand_symtabs_matching>: Likewise.
7291 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7292 (expand_symtabs_matching_via_partial): Update.
7293 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7294 (dw2_expand_symtabs_for_function): Update.
7295 * block.h: Moved anonymous enum...
7296 * defs.h (enum block_enum): ... here. Now named.
7297
d9351f5f 72982011-04-03 Joel Brobecker <brobecker@adacore.com>
7299
7300 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7301 * version.in: Bump version to 7.3.50.20110403-cvs.
7302
d6e00af6
JB
73032011-04-03 Joel Brobecker <brobecker@adacore.com>
7304
7305 * NEWS: Create a new section for the next release branch.
7306 Rename the section of the current branch, now that it has
7307 been cut.
7308
2b9e5ea6
UW
73092011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7310
7311 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7312 for "fpscr" in target description.
7313
0cf03b49
JK
73142011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7315
7316 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7317 initialize it. Delay HASH initialization. Strip the part after open
7318 parenthesis for languages with qualifiers. Call do_cleanups.
7319
5d901a73
TT
73202011-04-01 Tom Tromey <tromey@redhat.com>
7321
7322 * utils.c (report_command_stats): Don't print `-' for negative
7323 number.
7324
b0dd7688
JB
73252011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7326
7327 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7328 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7329 typedefs.
7330
956a9fb9
JB
73312011-04-01 Joel Brobecker <brobecker@adacore.com>
7332
7333 * breakpoint.h (bpdisp_text): Add declaration.
7334 * breakpoint.c (bpdisp_text): Make non-static.
7335 * ada-lang.c: #include "mi/mi-common.h".
7336 (print_it_exception): Rewrite to improve GDB/MI output.
7337
3352110b
PA
73382011-04-01 Pedro Alves <pedro@codesourcery.com>
7339
7340 * arm-tdep.h (struct address_space): Add forward declaration.
7341
18819fa6
UW
73422011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7343
7344 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7345 * arm-tdep.c (arm_override_mode): New global.
7346 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7347 execution mode heuristics.
7348 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7349 second single-step breakpoint if needed, using
7350 arm_insert_single_step_breakpoint.
7351 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7352 ARM execution mode, do not call thumb_get_next_pc_raw.
7353 (arm_get_next_pc): Encode execution mode in return value. Call
7354 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7355 (arm_insert_single_step_breakpoint): New function.
7356 (arm_software_single_step): Call it.
7357 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7358 argument to return execution mode of sigreturn target.
7359 (arm_linux_syscall_next_pc): Use it.
7360 (arm_linux_copy_svc): Update call.
7361 (arm_linux_software_single_step): Call
7362 arm_insert_single_step_breakpoint.
7363
a6e293d1
JK
73642011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7365
7366 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7367 the comment.
7368
a4c8e806
TT
73692011-03-31 Tom Tromey <tromey@redhat.com>
7370
7371 * varobj.c (update_dynamic_varobj_children): Properly handle
7372 errors from iterator.
7373
df5c6c50
JK
73742011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7375
7376 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7377 struct linkage name twice.
7378
1dae3efc
TT
73792011-03-31 Tom Tromey <tromey@redhat.com>
7380
7381 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7382 missing ">" to message.
7383
f4f7ab05
TT
73842011-03-31 Tom Tromey <tromey@redhat.com>
7385
7386 * varobj.c (instantiate_pretty_printer): Remove duplicate
7387 'return'.
7388
fcf250e2
UW
73892011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7390
7391 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7392 if neither saved value nor register available (e.g. signal frame).
7393
ee6436e3
TJB
73942011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7395
7396 * macroexp.c (expand): Avoid uninitialized variable
7397 compiler warning.
7398
423f41a5
TJB
73992011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7400
7401 * breakpoint.c (break_range_command): Fix typo in comment.
7402
f1310107
TJB
74032011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7404 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7405
7406 Implement support for PowerPC BookE ranged breakpoints.
7407 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7408 * breakpoint.h (struct bp_target_info) <length>: New member
7409 variable.
7410 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7411 instead of struct breakpoint as argument, and also add ASPACE
7412 and BP_ADDR arguments. Update all callers.
7413 (struct breakpoint_ops) <print_one_detail>: New method.
7414 (struct breakpoint) <addr_string_range_end>: New member variable.
7415 * breakpoint.c (breakpoint_location_address_match): Add function
7416 prototype.
7417 (insert_bp_location): Set bl->target_info.length.
7418 (breakpoint_here_p): Call breakpoint_location_address_match.
7419 (moribund_breakpoint_here_p): Likewise.
7420 (regular_breakpoint_inserted_here_p): Likewise.
7421 (breakpoint_thread_match): Likewise.
7422 (bpstat_stop_status): Likewise.
7423 (bpstat_check_location): Move call to
7424 breakpoint_ops.breakpoint_hit to the top.
7425 (print_one_breakpoint_location): Call
7426 breakpoint_ops.print_one_detail if available.
7427 (breakpoint_address_match_range): New function.
7428 (breakpoint_location_address_match): Likewise.
7429 (breakpoint_locations_match): Compare the length field of the
7430 locations too.
7431 (hw_breakpoint_used_count): Count resources used by all locations
7432 in a breakpoint, and use breakpoint_ops.resources_needed if
7433 available.
7434 (breakpoint_hit_ranged_breakpoint): New function.
7435 (resources_needed_ranged_breakpoint): Likewise.
7436 (print_it_ranged_breakpoint): Likewise.
7437 (print_one_ranged_breakpoint): Likewise.
7438 (print_one_detail_ranged_breakpoint): Likewise.
7439 (print_mention_ranged_breakpoint): Likewise.
7440 (print_recreate_ranged_breakpoint): Likewise.
7441 (ranged_breakpoint_ops): New structure.
7442 (find_breakpoint_range_end): New function.
7443 (break_range_command): Likewise.
7444 (delete_breakpoint): Free addr_string_range_end.
7445 (update_breakpoint_locations): Add SALS_END argument. Update
7446 all callers. Calculate breakpoint length if a non-zero SALS_END
7447 is given. Call breakpoint_locations_match instead of
7448 breakpoint_address_match.
7449 (reset_breakpoint): Find SaL of the end of the range if B is a
7450 ranged breakpoint.
7451 (_initialize_breakpoint): Register break-range command.
7452 * defs.h (print_core_address): Add function prototype.
7453 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7454 function.
7455 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7456 (ppc_linux_remove_hw_breakpoint): Likewise.
7457 (_initialize_ppc_linux_nat): Initialize
7458 to_ranged_break_num_registers.
7459 * target.c (update_current_target): Add comment about
7460 to_ranged_break_num_registers.
7461 (target_ranged_break_num_registers): New function.
7462 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7463 New method.
7464 (target_ranged_break_num_registers): Add function prototype.
7465 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7466 * utils.c (print_core_address): ... here.
7467
02d20e4a
UW
74682011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7469
7470 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7471 variable compiler warning.
7472
ef23e705
TJB
74732011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7474
7475 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7476 code from here ...
7477 (re_set_breakpoint): ... to here ...
7478 (addr_string_to_sals): ... and here.
7479
311e6ab3
PM
74802011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7481
7482 * Makefile.in (SFILES): Add missing C sources.
7483 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7484 Add missing headers.
7485
acd1d99c
MF
74862011-03-29 Mike Frysinger <vapier@gentoo.org>
7487
7488 * .gitignore: New file.
7489
66ee2731
MF
74902011-03-29 Mike Frysinger <vapier@gentoo.org>
7491
7492 * NEWS: Mention new cfi device simulation.
7493
53832f31
TT
74942011-03-29 Tom Tromey <tromey@redhat.com>
7495
7496 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7497 otherwise anonymous types.
7498 (dwarf2_name): Likewise.
7499 * valops.c (value_struct_elt_for_reference): Refine artificial
7500 type logic. Call error if j==-1.
7501
09b58708
JK
75022011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7503
7504 Fix false GCC warning.
7505 * infcall.c (find_function_addr): Initialize funaddr.
7506
6023c606
PM
75072011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7508
7509 Fix mingw compilation with --enable-targets=all.
7510 * remote-mips.c (gdb_usleep.h): Include header.
7511 (mips_enter_debug): Use gdb_usleep instead of sleep.
7512
0e30163f
JK
75132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7514
7515 Support resolution of STT_GNU_IFUNC via breakpoints.
7516 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7517 bp_gnu_ifunc_resolver_return.
7518 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7519 the loop. Support bp_gnu_ifunc_resolver and
7520 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7521 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7522 breakpoints.
7523 (bptype_string, print_one_breakpoint_location): Support
7524 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7525 (user_settable_breakpoint): Return true also for
7526 bp_gnu_ifunc_resolver.
7527 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7528 bp_gnu_ifunc_resolver_return.
7529 (set_breakpoint_location_function): New parameter explicit_loc,
7530 describe it. Call find_pc_partial_function_gnu_ifunc with new
7531 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7532 EXPLICIT_LOC is not set.
7533 (set_raw_breakpoint): Set EXPLICIT_LOC for
7534 set_breakpoint_location_function.
7535 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7536 set_breakpoint_location_function.
7537 (mention): Support bp_gnu_ifunc_resolver and
7538 bp_gnu_ifunc_resolver_return.
7539 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7540 set_breakpoint_location_function.
7541 (update_breakpoint_locations): Remove static.
7542 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7543 bp_gnu_ifunc_resolver_return.
7544 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7545 bp_gnu_ifunc_resolver_return.
7546 (update_breakpoint_locations): New declaration.
7547 * elfread.c: Include gdbthread.h and regcache.h.
7548 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7549 functions.
7550 (elf_gnu_ifunc_fns): Install them.
7551 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7552 (stub_gnu_ifunc_resolver_return_stop): New functions.
7553 (stub_gnu_ifunc_fns): Install them.
7554 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7555 and gnu_ifunc_resolver_return_stop.
7556 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7557
07be84bf
JK
75582011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 STT_GNU_IFUNC reader implementation.
7561 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7562 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7563 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7564 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7565 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7566 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7567 (elf_gnu_ifunc_resolve_addr): New.
7568 (elf_symfile_read): Call elf_rel_plt_read.
7569 (elf_gnu_ifunc_fns): New.
7570 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7571 Install elf_gnu_ifunc_fns.
7572 * infcall.c (find_function_return_type): New function.
7573 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7574 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7575 (stub_gnu_ifunc_resolve_name): New functions.
7576 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7577 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7578 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7579
300f8e10
JK
75802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7581
7582 Code cleanup for later STT_GNU_IFUNC support.
7583 * infcall.c (find_function_addr): Remove variable code, use explicit
7584 dereferences for it. Move VALUE_TYPE initialization later.
7585
11c81455
JK
75862011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7587
7588 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7589 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7590 (clear_pc_function_cache): Clear it.
7591 (find_pc_partial_function): Rename to ...
7592 (find_pc_partial_function_gnu_ifunc): ... this function. New
7593 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7594 (find_pc_partial_function): New wrapper for this function.
7595 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7596
0875794a
JK
75972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 GDB internal type support for STT_GNU_IFUNC.
7600 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7601 (elf_symtab_read): Set mst_text_gnu_ifunc for
7602 BSF_GNU_INDIRECT_FUNCTION.
7603 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7604 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7605 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7606 nodebug_got_plt_symbol.
7607 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7608 (TYPE_GNU_IFUNC): New.
7609 (struct main_type): New field flag_gnu_ifunc.
7610 (struct builtin_type): New field builtin_func_func.
7611 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7612 nodebug_got_plt_symbol.
7613 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7614 (in_gnu_ifunc_stub): New.
7615 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7616 mst_text_gnu_ifunc.
7617 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7618 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7619 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7620 in_gnu_ifunc_stub.
7621 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7622 * symtab.c (search_symbols): Likewise.
7623 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7624 and mst_slot_got_plt.
7625 (in_gnu_ifunc_stub): New declaration.
7626
d0fb5eae
JK
76272011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7628
7629 Support a ring of related breakpoints.
7630 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7631 other functions, add gdb_assert.
7632 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7633 watchpoint_del_at_next_stop.
7634 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7635 (bpstat_stop_status): Handle ring in related_breakpoint.
7636 (set_raw_breakpoint_without_location): Initialize ring in
7637 related_breakpoint.
7638 (delete_breakpoint): Handle ring in related_breakpoint, use
7639 watchpoint_del_at_next_stop.
7640 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7641
9cded63f
TT
76422011-03-28 Tom Tromey <tromey@redhat.com>
7643
7644 PR symtab/12441:
7645 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7646 with `language_minimal'.
7647
467d42c4
UW
76482011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7649
7650 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7651 instead of checking for STT_ARM_TFUNC symbol type.
7652
62853458
TT
76532011-03-25 Tom Tromey <tromey@redhat.com>
7654
7655 * linespec.c (symbol_found): Restore line-based result for
7656 non-LOC_LABEL symbols.
7657
a7417d46
KT
76582011-03-25 Kai Tietz <ktietz@redhat.com>
7659
7660 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7661 instead of strcmp for comparison.
7662 (tui_source_is_displayed): Likewise.
7663 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7664
55f1336d
TT
76652011-03-24 Mark Wielaard <mjw@redhat.com>
7666
f33edef8
PP
7667 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7668 complaint.
7669 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7670 (find_partial_die_in_comp_unit): Likewise in comment.
7671 (read_attribute_value): Likewise.
7672 (lookup_die_type): Likewise.
7673 (dwarf_form_name): Likewise.
7674 (dump_die_shallow): Likewise.
7675 (follow_die_ref_or_sig): Likewise.
55f1336d 7676
9ef07c8c
TT
76772011-03-24 Tom Tromey <tromey@redhat.com>
7678
7679 PR breakpoints/11816:
7680 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7681 (decode_compound): Update.
7682 (find_function_symbol): New function.
7683 (decode_dollar): Update.
7684 (decode_label): Add 'function_symbol' parameter. Handle
7685 function-relative labels.
7686 (decode_variable): Update.
7687 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7688 not its line. Set `special_display' and canonical name for
7689 labels.
7690
56435ebe
TT
76912011-03-24 Tom Tromey <tromey@redhat.com>
7692
7693 * linespec.h (struct linespec_result) <special_display>: New
7694 field.
7695 * breakpoint.h (struct breakpoint) <display_canonical>: New
7696 field.
7697 * breakpoint.c (print_breakpoint_location): Respect
7698 display_canonical.
7699 (create_breakpoint_sal): Add 'display_canonical' parameter.
7700 (create_breakpoints_sal): Update.
7701 (create_breakpoint): Update.
7702
7efd8fc2
TT
77032011-03-24 Tom Tromey <tromey@redhat.com>
7704
7705 * symtab.c (decode_line_spec): Update.
7706 * linespec.c (build_canonical_line_spec): Change type of
7707 'canonical'.
7708 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7709 (find_method, decode_all_digits, decode_dollar, decode_label)
7710 (symbol_found): Likewise.
7711 (init_linespec_result): New function.
7712 * breakpoint.c (struct captured_parse_breakpoint_args)
7713 <canonical_p>: New field, replaces addr_string_p.
7714 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7715 'addr_string'.
7716 (parse_breakpoint_sals): Likewise.
7717 (do_captured_parse_breakpoint): Update.
7718 (create_breakpoint): Use struct linespec_result.
7719 (until_break_command): Update.
7720 (breakpoint_re_set_one): Update.
7721 (decode_line_spec_1): Update.
7722 * linespec.h (struct linespec_result): New.
7723 (init_linespec_result): Declare.
7724
788c8b10
PA
77252011-03-23 Pedro Alves <pedro@codesourcery.com>
7726
7727 * regcache.c (regcache_raw_read): If the target didn't supply a
7728 given raw register, mark it as unavailable.
7729
0ba1096a
KT
77302011-03-23 Kai Tietz <ktietz@redhat.com>
7731
7732 * breakpoint.c (clear_command): Use filename_cmp
7733 instead of strcmp for comparison.
7734 * buildsym.c (watch_main_source_file_lossage): Likewise.
7735 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7736 checking just for slash.
7737 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7738 strrchr and filename_cmp instead of strcmp for filenames.
7739 (add_old_header_file): Use filename_cmp
7740 instead of strcmp for comparison.
7741 * exec.c (exec_set_section_address): Likewise.
7742 * macrotab.c (macro_lookup_inclusion): Likewise.
7743 (macro_lookup_inclusion): Likewise.
7744 * elfread.c (_initialize_elfread): Likewise.
7745 (elfstab_offset_sections): Likewise.
7746 (elfstab_offset_sections): Use lbasename instead of
7747 strrchr.
7748 * mdebugread.c (parse_partial_symbols): Likewise.
7749 (arse_partial_symbols): Use filename_(n)cmp instead of
7750 str(n)cmp for comparison.
7751 * minsyms.c (lookup_minimal_symbol): Likewise.
7752 * psymtab.c (read_psymtabs_with_filename): Likewise.
7753 * solib.c (solib_read_symbols): Likewise.
7754 (reload_shared_libraries_1): Likewise.
7755 * symmisc.c (maintenance_print_symbols): Likewise.
7756 * symfile.c (separate_debug_file_exists): Likewise.
7757 (reread_symbols): Likewise.
7758 (find_separate_debug_file_by_debuglink): Likewise.
7759 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7760 * source.c (add_path): Likewise.
7761 * symtab.c (filename_seen): Likewise.
7762 (file_matches): Likewise.
7763 (print_symbol_info): Likewise.
7764 (maybe_add_partial_symtab_filename): Likewise.
7765 (make_source_files_completion_list): Likewise.
7766 * xml-syscall.c (init_sysinfo): Likewise.
7767 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7768 IS_DIR_SEPARATOR for checking for trailing path separator.
7769
dd90784c
JK
77702011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7773 label abort_expression.
7774 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7775 DWARF_VALUE_OPTIMIZED_OUT.
7776
3167638f
JK
77772011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7778
7779 Code cleanup.
7780 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7781 to linkage_name. Invert its value. Update the function comment.
7782 (c_type_print_varspec_suffix): Invert it at the caller.
7783 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7784
ce406537
PA
77852011-03-22 Pedro Alves <pedro@codesourcery.com>
7786
7787 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7788 errors when reading the `stop_pc'.
7789 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7790 get_frame_pc.
7791
da5d4055
PM
77922011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7793
7794 * NEWS: Document gdb.Write stream keyword.
7795
29e0eb9c
JK
77962011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 Revert:
7799 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7800 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7801 (dwarf2_add_field): Fix new_field->accessibility for
7802 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7803
05775840
PM
78042011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7805
f33edef8 7806 PR python/12183
05775840
PM
7807
7808 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7809 other error classes. Do not print stack trace.
7810
a0cb7835
JK
78112011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7814 (dwarf2_add_field): Fix new_field->accessibility for
7815 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7816
d19f7eee
UW
78172011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7818
7819 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7820 encountering a load via a non-SP register.
7821
4a2fbb50
UW
78222011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7823
7824 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7825 field in returned unwinder.
7826
3489610d
JB
78272012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7828
7829 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7830
8c1a34e7
JB
78312012-03-21 Joel Brobecker <brobecker@adacore.com>
7832
7833 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7834 of xmalloc.
7835
8fbca658
PA
78362012-03-18 Pedro Alves <pedro@codesourcery.com>
7837
7838 * frame.c (frame_unwind_register): Throw an error if unwinding the
7839 register failed.
7840 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7841 an unwind stop reason.
7842 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7843 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7844 UNWIND_UNAVAILABLE>: New.
7845 * inline-frame.c (inline_frame_unwind): Install
7846 default_frame_unwind_stop_reason.
7847 * frame-unwind.c: Include "exceptions.h".
7848 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7849 (default_frame_unwind_stop_reason): New.
7850 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7851 (default_frame_unwind_stop_reason): Declare.
7852 (struct frame_unwind) <stop_reason>: New function pointer.
7853
7854 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7855 * dwarf2-frame.c: Include exceptions.h.
7856 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7857 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7858 computing the CFA. If such an error was thrown, set
7859 unavailable_retaddr.
7860 (dwarf2_frame_unwind_stop_reason): New.
7861 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7862 unavailable.
7863 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7864 (dwarf2_signal_frame_unwind): Ditto.
7865
7866 * amd64-tdep.c: Include "exceptions.h".
7867 (struct amd64_frame_cache): New field "base_p".
7868 (amd64_init_frame_cache): Clear it.
7869 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7870 Avoid reading registers with functions that throw if the register
7871 is not necessary to compute the frame base.
7872 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7873 swallowing NOT_AVAILABLE_ERROR.
7874 (amd64_frame_unwind_stop_reason): New.
7875 (amd64_frame_this_id): Don't build a frame id if the frame base
7876 was unavailable.
7877 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7878 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7879 base_p if the frame base was computable.
7880 (amd64_sigtramp_frame_unwind_stop_reason): New.
7881 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7882 frame base was unavailable.
7883 (amd64_sigtramp_frame_unwind): Install
7884 amd64_sigtramp_frame_unwind_stop_reason.
7885 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7886 base_p if the frame base was computable.
7887 (amd64_epilogue_frame_unwind_stop_reason): New.
7888 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7889 frame base was unavailable.
7890 (amd64_epilogue_frame_unwind): Install
7891 amd64_epilogue_frame_unwind_stop_reason.
7892 * i386-tdep.c: Include "exceptions.h".
7893 (struct i386_frame_cache): New field "base_p".
7894 (i386_init_frame_cache): Clear it.
7895 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7896 Avoid reading registers with functions that throw if the register
7897 is not necessary to compute the frame base.
7898 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7899 swallowing NOT_AVAILABLE_ERROR.
7900 (i386_frame_unwind_stop_reason): New.
7901 (i386_frame_this_id): Don't build a frame id if the frame base was
7902 unavailable.
7903 (i386_frame_prev_register): Handle unavailable SP.
7904 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7905 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7906 base_p if the frame base was computable.
7907 (i386_epilogue_frame_unwind_stop_reason): New.
7908 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7909 base was unavailable.
7910 (i386_epilogue_frame_unwind): Install
7911 i386_epilogue_frame_unwind_stop_reason.
7912 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7913 base_p if the frame base was computable.
7914 (i386_sigtramp_frame_unwind_stop_reason): New.
7915 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7916 base was unavailable.
7917 (i386_sigtramp_frame_unwind): Install
7918 i386_sigtramp_frame_unwind_stop_reason.
7919 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7920 type's size, not the register's.
7921 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7922
7923 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7924 default_frame_unwind_stop_reason.
7925 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7926 (alpha_heuristic_frame_unwind): Ditto.
7927 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7928 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7929 * avr-tdep.c (avr_frame_unwind): Ditto.
7930 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7931 Ditto.
7932 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7933 * frv-tdep.c (frv_frame_unwind): Ditto.
7934 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7935 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7936 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7937 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7938 (hppa_stub_frame_unwind): Ditto.
7939 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7940 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7941 (ia64_libunwind_frame_unwind)
7942 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7943 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7944 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7945 * m32c-tdep.c (m32c_unwind): Ditto.
7946 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7947 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7948 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7949 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7950 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7951 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7952 * mep-tdep.c (mep_frame_unwind): Ditto.
7953 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7954 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7955 (mips_stub_frame_unwind): Ditto.
7956 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7957 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7958 * mt-tdep.c (mt_frame_unwind): Ditto.
7959 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7960 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7961 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7962 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7963 (s390_sigtramp_frame_unwind): Ditto.
7964 * score-tdep.c (score_prologue_unwind): Ditto.
7965 * sh-tdep.c (sh_frame_unwind): Ditto.
7966 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7967 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7968 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7969 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7970 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7971 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7972 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7973 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7974 (sparc64obsd_trapframe_unwind): Ditto.
7975 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7976 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7977 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7978 * v850-tdep.c (v850_frame_unwind): Ditto.
7979 * vax-tdep.c (vax_frame_unwind): Ditto.
7980 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7981 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7982 * xtensa-tdep.c (xtensa_unwind): Ditto.
7983
f23d1b92
PA
79842011-03-18 Pedro Alves <pedro@codesourcery.com>
7985
7986 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7987 there's always a frame. Use get_frame_pc_if_available instead of
7988 get_frame_pc, and if there's no PC available, don't look up a
7989 symtab.
7990
1d4f5741
PA
79912011-03-18 Pedro Alves <pedro@codesourcery.com>
7992
7993 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7994 unavailable PC.
7995
dba09041
PA
79962011-03-18 Pedro Alves <pedro@codesourcery.com>
7997
7998 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7999 gracefully.
8000
9a26e44c
PA
80012011-03-18 Pedro Alves <pedro@codesourcery.com>
8002
8003 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8004 * frame.c (frame_unwind_caller_pc_if_available): New.
8005 * stack.c (frame_info): Handle unavailable PC.
8006
80072011-03-18 Pedro Alves <pedro@codesourcery.com>
8008
8009 * frame.c (frame_unwind_pc): Rename to ...
8010 (frame_unwind_pc_if_available): ... this. New `pc' output
8011 parameter. Change return type to int. Gracefully handle
8012 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8013 happened, or 1 otherwise.
8014 (frame_unwind_pc): Reimplement on top of
8015 frame_unwind_pc_if_available.
8016 (get_frame_func): Rename to ...
8017 (get_frame_func_if_available): New `pc' output parameter. Change
8018 return type to int. Gracefully handle the PC not being available.
8019 (get_frame_func): Reimplement on top of
8020 get_frame_func_if_available.
8021 (select_frame): Handle the PC being unavailable.
8022 (get_prev_frame): Handle the PC being unavailable.
8023 (get_frame_pc_if_available): New.
8024 (get_frame_address_in_block_if_available): New.
8025 (find_frame_sal): Handle the frame PC not being available.
8026 * frame.h (get_frame_pc_if_available): Declare.
8027 (get_frame_address_in_block_if_available): Declare.
8028 (get_frame_func_if_available): Declare.
8029 * stack.c (print_frame_info): Handle the PC being unavailable.
8030 (find_frame_funname): Ditto.
8031 (print_frame): Handle the PC being unavailable.
8032 (get_frame_language): Ditto.
8033 * blockframe.c (get_frame_block): Ditto.
8034 * macroscope.c (default_macro_scope): Ditto.
8035 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8036
80372011-03-18 Pedro Alves <pedro@codesourcery.com>
8038
8039 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8040 NOT_AVAILABLE_ERROR when evaluating the location expression.
8041
80422011-03-18 Pedro Alves <pedro@codesourcery.com>
8043
8044 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8045 returning that the register piece is unavailable/optimized out.
8046 (write_pieced_value): Handle get_frame_register_bytes returning
8047 that the register piece is unavailable/optimized out when doing a
8048 read-modify write of a bitfield.
8049 * findvar.c (value_from_register): Handle get_frame_register_bytes
8050 returning that the register piece is unavailable/optimized out.
8051 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8052 and `unavailablep'. Throw error on bad debug info. Use
8053 frame_register instead of frame_register_read, to fill in the new
8054 arguments.
8055 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8056 and `unavailablep'.
8057 * valops.c: (value_assign): Adjust, and handle
8058 get_frame_register_bytes failing.
8059 * spu-tdep.c: Include exceptions.h.
8060 (spu_software_single_step): Adjust, and handle
8061 get_frame_register_bytes failing.
8062 (spu_get_longjmp_target): Ditto.
8063 * gdbarch.sh (register_to_value): Change to return int. New
8064 parameters `optimizedp' and `unavailablep'.
8065 * gdbarch.h, gdbarch.c: Regenerate.
8066 * i386-tdep.c (i386_register_to_value): Adjust to new
8067 gdbarch_register_to_value interface.
8068 * i387-tdep.c (i387_register_to_value): Ditto.
8069 * i387-tdep.h (i387_register_to_value): Ditto.
8070 * alpha-tdep.c (alpha_register_to_value): Ditto.
8071 * ia64-tdep.c (ia64_register_to_value): Ditto.
8072 * m68k-tdep.c (m68k_register_to_value): Ditto.
8073 * mips-tdep.c (mips_register_to_value): Ditto.
8074 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8075
0fdb4f18
PA
80762011-03-18 Pedro Alves <pedro@codesourcery.com>
8077
8078 * findvar.c (value_of_register): Mark the value as unavailable, if
8079 the register is unavailable.
8080 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8081 (frame_register): New `unavailablep' parameter.
8082 (frame_register_read): Update comment.
8083 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8084 Set it if the register is unavailable. If the register is
8085 unavailable, clear the output buffer.
8086 (frame_register): New `unavailablep' parameter. Pass it down.
8087 (frame_unwind_register): Adjust.
8088 (put_frame_register): Adjust.
8089 (frame_register_read): Adjust. Also return false if the register
8090 is not available.
8091 (frame_register_unwind_location): Adjust.
8092 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8093 is unavailable, mark the value accordingly.
8094 * stack.c (frame_info): Handle unavailable registers.
8095
e69aa73e
PA
80962011-03-18 Pedro Alves <pedro@codesourcery.com>
8097
8098 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8099 simplify, using regcache_cooked_read.
8100
05d1431c
PA
81012011-03-18 Pedro Alves <pedro@codesourcery.com>
8102
8103 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8104 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8105 (regcache_raw_read_unsigned, regcache_raw_read_part)
8106 (regcache_cooked_read, regcache_cooked_read_signed)
8107 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8108 (regcache_cooked_read_ftype): Change return to enum
8109 register_status.
8110 * regcache.c: Include exceptions.h
8111 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8112 (do_cooked_read): Change return to enum register_status. Always
8113 forward to regcache_cooked_read.
8114 (regcache_raw_read): Change return to enum register_status. If
8115 the register is not REG_VALID, memset the buffer. Return the
8116 register's status.
8117 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8118 return the register's status.
8119 (regcache_raw_read_unsigned): Ditto.
8120 (regcache_cooked_read): Change return to enum register_status.
8121 Assert that with read-only regcaches, the register's status must
8122 be known. If the regcache is read-only, and the register is not
8123 REG_VALID, memset the buffer. Return the register's status.
8124 (regcache_cooked_read_signed): Change return to enum
8125 register_status. Handle non-REG_VALID registers and return the
8126 register's status.
8127 (regcache_cooked_read_unsigned): Change return to enum
8128 register_status. Handle non-REG_VALID registers and return the
8129 register's status.
8130 (regcache_xfer_part, regcache_raw_read_part)
8131 (regcache_cooked_read_part): Change return to enum
8132 register_status. Return the register's status.
8133 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8134 unavailable.
8135 (regcache_dump): Handle unavailable cooked registers.
8136 * frame.c (do_frame_register_read): Adjust interface to match
8137 regcache_cooked_read_ftype.
8138 * gdbarch.sh (pseudo_register_read): Change return to enum
8139 register_status.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141
8142 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8143 register_status.
8144 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8145 register_status. If reading a raw register indicates the raw
8146 register is not valid, return the raw register's status,
8147 otherwise, return REG_VALID.
8148 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8149 register_status. Handle non-REG_VALID raw registers and return
8150 the register's status.
8151 * arm-tdep.c (arm_neon_quad_read)
8152 (arm_pseudo_read): Change return to enum register_status. Handle
8153 non-REG_VALID raw registers and return the register's status.
8154 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8155 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8156 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8157 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8158 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8159 register_status.
8160 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8161 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8162 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8163 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8164 (m32c_pseudo_register_read): Change return to enum
8165 register_status. Adjust.
8166 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8167 enum register_status. Return the register's status.
8168 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8169 register_status. Return the register's status.
8170 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8171 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8172 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8173 * rs6000-tdep.c (move_ev_register_func): New typedef.
8174 (e500_move_ev_register): Use it. Change return to enum
8175 register_status. Return the register's status.
8176 (do_regcache_raw_read): New function.
8177 (do_regcache_raw_write): New function.
8178 (e500_pseudo_register_read): Change return to enum
8179 register_status. Return the register's status. Use
8180 do_regcache_raw_read.
8181 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8182 (dfp_pseudo_register_read): Change return to enum register_status.
8183 Return the register's status.
8184 (vsx_pseudo_register_read): Ditto.
8185 (efpr_pseudo_register_read): Ditto.
8186 (rs6000_pseudo_register_read): Ditto.
8187 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8188 register_status. Return the register's status.
8189 * sh64-tdep.c (pseudo_register_read_portions): New function.
8190 (sh64_pseudo_register_read): Change return to enum
8191 register_status. Use pseudo_register_read_portions. Return the
8192 register's status.
8193 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8194 register_status. Return the register's status.
8195 * sh-tdep.c (pseudo_register_read_portions): New function.
8196 (sh_pseudo_register_read): Change return to enum register_status.
8197 Use pseudo_register_read_portions. Return the register's status.
8198 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8199 enum register_status. Return the register's status.
8200 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8201 * spu-tdep.c (spu_pseudo_register_read_spu)
8202 (spu_pseudo_register_read): Ditto.
8203 * xtensa-tdep.c (xtensa_register_read_masked)
8204 (xtensa_pseudo_register_read): Ditto.
8205 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8206
e10abd8f
PM
82072011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8208
8209 * python/py-value.c (valpy_getitem): Fix formatting of error function
8210 call.
8211
7ea6d463
PM
82122011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8213
8214 ARI fixes: Add missing internationalization markups throughout
8215 C source files.
8216 * darwin-nat-info.c: Ditto.
8217 * record.c: Ditto.
8218 * remote.c: Ditto.
8219 * mi/mi-main.c: Ditto.
8220
001083c6
PM
82212011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8222
8223 ARI fixes: Add missing internationalization markups throughout
8224 yacc files.
8225 * c-exp.y: Ditto.
8226 * cp-name-parser.y: Ditto.
8227 * f-exp.y: Ditto.
8228 * m2-exp.y: Ditto.
8229 * objc-exp.y: Ditto.
8230 * p-exp.y: Ditto.
8231
4f1cdeec
PM
82322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8233
8234 ARI fixes: Messages should have no trailing new lines.
8235 * darwin-nat.c (mach_check_error): Remove trailing new line from
8236 warning function call message.
8237 * record.c (bfdcore_read): Idem for error call.
8238
28e698f1
PM
82392011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8240
8241 * common/signals.c (target_signal_from_host): Add _ markup to error
8242 function call message.
8243 (target_signal_to_host): Add _ markup and remove trailing new line
8244 from warning call message.
8245 (target_signal_from_command): Add _ markup to error function call
8246 message.
8247
99c3dc11
PM
82482011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8249
f33edef8 8250 PR python/12149
99c3dc11
PM
8251
8252 * python/python.c (gdbpy_write): Accept a stream argument and
8253 operate to the appropriate stream.
8254 (gdbpy_flush): Likewise.
8255 (_initialize_python): Add stream constants.
8256 (finish_python_initialization): Add GdbOutputErrorFile class.
8257
c20800be
KY
82582011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8259
8260 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8261
f4a1794a
KY
82622011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8263
8264 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8265 to store_signed_integer. Add debug message when relocating CALL
8266 instructions. Fix formatting of debug message.
8267 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8268
d4862372
JB
82692011-03-17 Joel Brobecker <brobecker@gnat.com>
8270
8271 * target.h (struct target_ops): Remove to_lookup_symbol field.
8272 (target_lookup_symbol): Delete macro.
8273 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8274 (update_current_target, setup_target_debug): Remove handling
8275 of to_lookup_symbol target_ops field.
8276 * ada-tasks.c (get_known_tasks_addr): Remove use of
8277 target_lookup_symbol.
8278 * coffread.c (coff_symtab_read): Likewise.
8279 * dbxread.c (read_dbx_symtab): Ditto.
8280
d645e32e
JB
82812011-03-17 Joel Brobecker <brobecker@gnat.com>
8282
8283 PR gdb/12116:
8284 * configure.ac: Add getthrds declaration check.
8285 * configure, config.in: Regenerate.
8286 * aix-thread.c (getthrds): Declare only if not already declared
8287 in procinfo.h. More declaration out of get_signaled_thread to
8288 global scope.
8289
29703da4
PM
82902011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8291
8292 * python/py-symtab.c: Populate symtab_object_methods,
8293 sal_object_methods.
8294 (stpy_is_valid): New function.
8295 (salpy_is_valid): Ditto.
8296 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8297 (sympy_is_valid): New function.
8298 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8299 (objfpy_is_valid): New function.
8300 * python/py-inferior.c: Populate inferior_object_methods.
8301 (infpy_is_valid): New function.
8302 * python/py-infthread.c: Populate thread_object_methods.
8303 (thpy_is_valid): New function.
8304 * python/py-block.c: Declare block_object_methods. Populate. Declare
8305 block_iterator_object_methods. Populate.
8306 (blpy_is_valid): New function.
8307 (blpy_iter_is_valid): Ditto.
8308
c00f8484
KS
83092011-03-16 Keith Seitz <keiths@redhat.com>
8310
8311 * linespec.c (find_methods): Canonicalize NAME before looking
8312 up the symbol.
8313 (name_end): New function.
8314 (keep_name_info): New function.
8315 (decode_line_1): Use keep_name_info.
8316 (decode_compound): Likewise.
8317 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8318 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8319
8320 PR c++/12273
8321 * linespec.c (locate_first_half): Keep overload information, too.
8322 (decode_compound): Use a string to represent break characters
8323 to escape the loop.
8324 If P points to a break character, do not increment it.
8325 For C++ and Java, keep overload information and relevant keywords.
8326 If we cannot find a symbol, search the minimal symbols.
8327
8328 PR c++/11734
8329 * linespec.c (decode_compound): Rename SAVED_ARG to
8330 THE_REAL_SAVED_ARG.
8331 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8332 single-quotes.
8333 Pass a valid block to lookup_symbol.
8334 (lookup_prefix_sym): Likewise.
8335 (find_method): Construct search name based on SYM_CLASS instead
8336 of SAVED_ARG.
8337 * psymtab.c (lookup_partial_symbol): Add language parameter.
8338 (lookup_symbol_aux_psymtabs): Likewise.
8339 Don't assume that the psymtab we found was the right one. Search
8340 for the desired symbol in the symtab to be certain.
8341 (psymtab_search_name): New function.
8342 (lookup_partial_symbol): Use psymtab_search_name.
8343 Add language parameter.
8344 (read_symtabs_for_function): Add language parameter and pass to
8345 lookup_partial_symbol.
8346 (find_symbol_file_from_partial): Likewise.
8347
c91513d8
PP
83482011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8349
8350 PR gdb/12528
8351 * dwarf2read.c (noop_record_line): New function.
8352 (dwarf_decode_lines): Ignore line tables for GCd functions.
8353
b37520b6
PM
83542011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8355
8356 Fix ARI warnings about new lines at the end of messages, which
8357 are unneeded as there is a new line added at the end of the message
8358 automatically.
8359 * darwin-nat.c (darwin_stop_inferior): Ditto.
8360 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8361 * dfp.c (decimal_to_number): Ditto.
8362 * exec.c (print_section_info): Ditto.
8363 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8364 * osdata.c (get_osdata): Ditto.
8365 * record.c (bfdcore_write): Ditto.
8366 * remote-mips.c (mips_readchar): Ditto.
8367 * remote.c (read_ptid): Ditto.
8368 * ser-mingw.c (ser_windows_raw): Ditto.
8369 * tracepoint.c (add_local_symbols): Ditto.
8370 * windows-nat.c (fake_create_process): Ditto.
8371
b08ee6a2
TT
83722011-03-16 Tom Tromey <tromey@redhat.com>
8373
8374 * tracepoint.c (stop_tracing): Don't declare.
8375 * event-top.c (after_char_processing_hook): Add `(void)'.
8376
9a6f1302
PM
83772011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8378
8379 * NEWS: Add Parameter sub-classing description.
8380
7ceb86b1
KT
83812011-03-16 Kai Tietz <ktietz@redhat.com>
8382
8383 * MAINTAINERS: Update my e-mail address.
8384
efeff6cf
AT
83852011-03-15 Andreas Tobler <andreast@fgznet.ch>
8386
8387 * MAINTAINERS: Add myself for write after approval privileges.
8388
681c238c
MS
83892011-03-15 Michael Snyder <msnyder@vmware.com>
8390
f3df5b08
MS
8391 * frame.c (find_frame_sal): Assert sym is not null.
8392
13f6513c
MS
8393 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8394
50412521
MS
8395 * objc-lang.c (selectors_info): Check strchr for null result.
8396
681c238c
MS
8397 * stabsread.c (define_symbol): Guard against bad stabstring input.
8398
6ced1581
PM
83992011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8400
8401 Remove trailing spaces and tabulations from pascal language
8402 support sources.
8403 p-exp.y: Ditto.
8404 p-lang.c: Ditto.
8405 p-lang.h: Ditto.
8406 p-valprint.c: Ditto.
8407
9373cf26
JK
84082011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8411 than LOW. Comment it.
8412 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8413 HIGHPC not strictly higher than LOWPC.
8414
9a1edae6
PM
84152011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8416
8417 Fix formatting of function declarations returning a pointer in
8418 previous commit.
8419 * varobj.c (varobj_add_child): Ditto.
8420 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8421 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8422
24e9cda0
UW
84232011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8424
8425 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8426 for the "generic" vector ABI used with GCC 4.3 and later.
8427 (ppc64_sysv_abi_return_value): Likewise.
8428
84292011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8430
8431 * infcall.c (call_function_by_hand): Function return value is
8432 always a non_lval, even when using struct_return.
8433
c9174737
PA
84342011-03-15 Pedro Alves <pedro@codesourcery.com>
8435
8436 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8437 (map_display_numbers): New.
8438 (do_delete_display): New.
8439 (undisplay_command): Use map_display_numbers.
8440 (do_enable_disable_display): New.
8441 (enable_disable_display_command): New function.
8442 (enable_display): Delete.
8443 (enable_display_command): New.
8444 (disable_display_command): Reimplement.
8445 (_initialize_printcmd): Adjust "enable display" command to use
8446 `enable_display_command' as callback.
8447
350c6c65
PM
84482011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8449
8450 * NEWS: Add Python breakpoint 'stop' operation.
8451
824446ad
PM
84522011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8453
8454 * NEWS: Delete duplicate entry. Fix typo.
8455
2021ad3a
PM
84562011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8457
8458 Fix ARI warning about function names in first column.
8459 Put prototype declaration on same line as return type.
8460 * objc-exp.y: Ditto.
8461 * p-exp.y: Ditto.
8462 * python/py-stopevent.h: Ditto.
8463 For long function names, split parameters to
8464 allow function name on same line as return type.
8465 * solib-pa64.c: Ditto.
8466 * varobj.c: Ditto.
8467 * varobj.h: Ditto.
8468 For long function declaration, use single line.
8469 * hppa-tdep.h: Ditto.
8470 * inferior.h: Ditto.
8471
7371cf6d
PM
84722011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8473
8474 * python/python.h: Declare gdbpy_should_stop and
8475 gdbpy_breakpoint_has_py_cond.
8476 * python/python.c: Add python.h to includes. Remove python.h from
8477 HAVE_PYTHON definition
8478 (gdbpy_should_stop): New dummy function.
8479 (gdbpy_breakpoint_has_py_cond): New dummy function.
8480 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8481 sub-classing capabilities.
8482 (gdbpy_should_stop): New function.
8483 (gdbpy_breakpoint_has_py_cond): New function.
8484 (local_setattro): New function.
8485 * breakpoint.c (condition_command): Add check for Python 'stop'
8486 operation.
8487 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8488 operation function as part of stop/continue tests.
8489
37b50a69
TT
84902011-03-14 Tom Tromey <tromey@redhat.com>
8491
8492 PR gdb/12576:
8493 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8494 (needs_frame_dwarf_call): Likewise.
8495
eeae04df
PM
84962011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8497
8498 Fix ARI warning about functions without parameters that do not
8499 use (void).
8500 * breakpoint.c (all_tracepoints): Replace () by (void).
8501 * f-exp.y (match_string_literal): Ditto.
8502 (yylex): Ditto.
8503 * m2-exp.y (yylex): Ditto.
8504 * mep-tdep.c (current_me_module): Ditto.
8505 (current_options): Ditto.
8506 (current_cop_data_bus_width): Ditto.
8507 (current_cr_names): Ditto.
8508 (current_cr_is_float): Ditto.
8509 (current_ccr_names): Ditto.
8510 * objc-exp.y (yylex): Ditto.
8511 * p-exp.y (yylex): Ditto.
8512 * remote.c (send_interrupt_sequence): Ditto.
8513 * tracepoint.c (current_trace_status): Ditto.
8514 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8515 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8516
6dc3565d
MS
85172011-03-11 Michael Snyder <msnyder@vmware.com>
8518
1427fe5e
MS
8519 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8520 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8521 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8522 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8523 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8524
60bc018f
MS
8525 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8526 (delete_async_event_handler): Ditto.
8527
f3be5b64
MS
8528 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8529
4c2d5724
MS
8530 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8531
6dc3565d
MS
8532 * top.c (set_verbose): Assert showcmd was found.
8533
4e6ca6d5
MG
85342011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8535
8536 * xtensa-tdep.c (warning_once): Correct style issues.
8537
815a83e4
YQ
85382011-03-11 Yao Qi <yao@codesourcery.com>
8539
8540 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8541
f2eb0bc8
AS
85422011-03-11 Andreas Schwab <schwab@redhat.com>
8543
8544 * common/aclocal.m4: Remove.
8545
b801de47
MG
85462011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8547
8548 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8549 (xtensa_write_register, xtensa_read_register): Likewise.
8550 (xtensa_hextochar): Removed.
8551 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8552
dbab50de
MG
85532011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8554
8555 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8556 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8557 (xtensa_alloc_frame_cache): Add initialization for new fields.
8558 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8559 (warning_once): New function.
8560 (xtensa_insn_kind): New item c0opc_and.
8561 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8562 (call0_track_op): Change arguments. New local variable litbase.
8563 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8564 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8565 in the prologue.
dbab50de 8566 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8567 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8568 Add the variety of updates to handle extended prologues, which now can
8569 conduct dynamic stack adjustments.
8570 (call0_frame_cache): Likewise.
8571 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8572 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8573
b2c04452
MS
85742011-03-10 Michael Snyder <msnyder@vmware.com>
8575
f8f67713
MS
8576 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8577 (cmd_qtframe): Ditto.
8578 (cmd_qtbuffer): Ditto.
8579 (cmd_bigqtbuffer): Ditto.
8580
197f0a60
TT
85812011-03-10 Tom Tromey <tromey@redhat.com>
8582
8583 * tracepoint.c (trace_actions_command): Update.
8584 * thread.c (thread_apply_command): Update.
8585 * reverse.c (delete_bookmark_command): Update.
8586 (bookmarks_info): Update.
8587 * printcmd.c (undisplay_command): Update.
8588 * memattr.c (mem_enable_command): Update.
8589 (mem_disable_command): Update.
8590 (mem_delete_command): Update.
8591 * inferior.c (detach_inferior_command): Update.
8592 (kill_inferior_command): Update.
8593 (remove_inferior_command): Update.
8594 * cli/cli-utils.h (struct get_number_or_range_state): New.
8595 (init_number_or_range): Declare.
8596 (get_number_or_range): Update.
8597 * cli/cli-utils.c (init_number_or_range): New function.
8598 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8599 static variables.
8600 (number_is_in_list): Update.
8601 * breakpoint.h (get_tracepoint_by_number): Update.
8602 * breakpoint.c (map_breakpoint_numbers): Update for change to
8603 get_number_or_range.
8604 (find_location_by_number): Use get_number, not
8605 get_number_or_range.
8606 (trace_pass_set_count): New function.
8607 (trace_pass_command): Update for change to get_number_or_range.
8608 Rework loop logic.
8609 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8610 'state' parameter.
8611
ecec24e6
PM
86122011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8613
8614 * python/py-param.c (add_setshow_generic): Add set/show callback
8615 parameters. Register Python object context.
8616 (get_show_value): New function.
8617 (get_set_value): New function.
8618 (call_doc_function): New function.
8619 (get_doc_string): Move behind get_show_value/get_set_value.
8620
6d6c6b1f
JK
86212011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8622
8623 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8624
68d6df83
MG
86252011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8626
dbab50de 8627 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8628 (xtensa_write_register): Likewise.
8629 (xtensa_hextochar): Add comment and update to match coding conventions.
8630 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8631 (execute_l32e, execute_s32e, execute_code): Update comments.
8632 (xtensa_exception_handler_t): Update to match coding conventions.
8633 (xtensa_insn_kind): Likewise.
8634
85c9d6a6
MS
86352011-03-09 Michael Snyder <msnyder@vmware.com>
8636
8637 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8638
91495617
PA
86392011-03-09 Pedro Alves <pedro@codesourcery.com>
8640
8641 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8642
eb8c0621
TT
86432011-03-09 Tom Tromey <tromey@redhat.com>
8644
8645 * thread.c (restore_selected_frame): Handle frame_level == -1.
8646 (make_cleanup_restore_current_thread): Use
8647 get_selected_frame_if_set.
8648 * frame.h (get_selected_frame_if_set): Declare.
8649 * frame.c (get_selected_frame_if_set): New function.
8650
9f37bbcc
PA
86512011-03-09 Pedro Alves <pedro@codesourcery.com>
8652
8653 * cli/cli-cmds.c (shell_escape): Use lbasename.
8654 * coffread.c (coff_start_symtab): Constify parameter.
8655 (complete_symtab): Constify `name' parameter.
8656 (coff_symtab_read): Constify `filestring' local.
8657 (coff_getfilename): Constify return and `result' local.
8658 Use lbasename.
8659 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8660 * linux-fork.c (info_checkpoints_command): Use lbasename.
8661 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8662 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8663 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8664 * procfs.c (procfs_make_note_section): Use lbasename.
8665 * tui/tui-io.c (printable_part): Constity return and parameter.
8666 Use lbasename.
8667 (print_filename): Constify parameters, and local `s'.
8668 (tui_rl_display_match_list): Constify local `temp'.
8669
f8de3c55
JK
86702011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8671
8672 Revert:
8673 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8674 Fix DWARF-3+ DW_AT_accessibility default assumption.
8675 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8676 cu->header.version >= 3.
8677
d9837b00
YQ
86782011-03-09 Yao Qi <yao@codesourcery.com>
8679
8680 * common/Makefile.in: Remove.
8681 * common/configure: Remove.
8682 * common/configure.ac: Remove.
8683
e637a4f5
YQ
86842011-03-09 Yao Qi <yao@codesourcery.com>
8685
8686 Revert:
8687 2011-02-11 Yao Qi <yao@codesourcery.com>
8688
8689 * common/Makefile.in: Add copyright header.
8690
8691 2011-02-11 Yao Qi <yao@codesourcery.com>
8692
8693 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8694 libcommon.a.
8695 * configure.ac: Add common to sub dir.
8696 * configure: Regenerate.
8697
f976a05d
MG
86982011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8699
8700 * xtensa-tdep.c (call0_ret): New function.
8701 (xtensa_skip_prologue): Speed up analysis.
8702
57041825
MG
87032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8704
8705 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8706 while executing MI command -data-list-changed-registers.
8707
08b9c608
MG
87082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8709
8710 * xtensa-tdep.c (xtensa_read_register): New function.
8711 (xtensa_write_register): New function.
8712 (xtensa_find_register_by_name): New function.
8713 (xtensa_windowed_frame_cache): Update comments in type description.
8714 (xtensa_frame_cache): Likewise.
8715 (xtensa_window_interrupt_insn): New function.
8716 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8717 (xtensa_insn_kind): Add new instructions.
8718 (rwx_special_register): New function.
8719 (call0_classify_opcode): Add new instructions to the analysis.
8720 (a0_saved, a7_saved, a11_saved): New variables.
8721 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8722 (execute_l32e): New function.
8723 (execute_s32e): New function.
8724 (xtensa_exception_handler_t): New type.
8725 (execute_code): New function.
8726 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8727 analysis for Xtensa Window Exception handlers.
8728
4d1acb11
MG
87292011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8730
98689b25
MG
8731 * xtensa-tdep.c (TX_PS): New.
8732 (windowing_enabled): Update to count for Call0 ABI.
8733 (xtensa_hextochar): New.
8734 (xtensa_init_reggroups): Make algorithm generic.
8735 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8736
87372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8738
8739 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8740
d3f323f3
MS
87412011-03-08 Michael Snyder <msnyder@vmware.com>
8742
3dcabaa8
MS
8743 * i386-tdep.c (i386_follow_jump): Check return value of
8744 target_read_memory.
8745 (i386_analyze_struct_return): Ditto.
8746 (i386_skip_probe): Ditto.
8747 (i386_match_insn): Ditto.
8748 (i386_skip_noop): Ditto.
8749 (i386_analyze_frame_setup): Ditto.
8750 (i386_analyze_register_saves): Ditto.
8751 (i386_skip_prologue): Ditto.
8752 (i386_skip_main_prologue): Ditto.
8753
13b3fd9b
MS
8754 * target.c (read_whatever_is_readable): Fix memory leak.
8755
d3f323f3
MS
8756 * i386-tdep.c (i386_process_record): Document fall through.
8757
421d5c74
JK
87582011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8759
8760 Fix DWARF-3+ DW_AT_accessibility default assumption.
8761 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8762 cu->header.version >= 3.
8763
63154eca
PA
87642011-03-08 Pedro Alves <pedro@codesourcery.com>
8765
8766 * remote.c (remote_check_symbols): Skip if the target has no
8767 execution.
8768
f1a507a1
JB
87692011-03-08 Joel Brobecker <brobecker@adacore.com>
8770
8771 * target.c (read_whatever_is_readable): Reformat comment,
8772 with a minor typo fix. Minor reformatting of the code.
8773
36073a92
YQ
87742011-03-08 Yao Qi <yao@codesourcery.com>
8775
8776 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8777 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8778 Use cached result instead of calling displaced_in_arm_mode again.
8779 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8780 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8781 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8782 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8783 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8784 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8785 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8786 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8787 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8788 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8789 (arm_catch_kernel_helper_return): Likewise.
8790 * gdb/arm-tdep.h : Update function declarations.
8791
d3f323f3 87922011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8793
e0e40094
MS
8794 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8795
0b2381f5
MS
8796 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8797
0350914a
MS
8798 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8799
69feea6f
MS
8800 * elfread.c (elf_symtab_read): Stop memory leak.
8801
e6040cbd
MS
8802 * main.c (captured_main): Fix memory leak.
8803
052874e8
AS
88042011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8805
8806 * ada-lang.c (compare_names): Call is_name_suffix with string1
8807 instead of string2.
8808
b11896a5
TT
88092011-03-07 Tom Tromey <tromey@redhat.com>
8810
8811 * xcoffread.c (xcoff_sym_fns): Update.
8812 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8813 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8814 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8815 (symbol_file_add_with_addrs_or_offsets): Likewise.
8816 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8817 * somread.c (som_sym_fns): Update.
8818 * psymtab.h (require_partial_symbols): Declare.
8819 * psymtab.c (require_partial_symbols): New function.
8820 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8821 (ALL_OBJFILE_PSYMTABS): Undef.
8822 (ALL_PSYMTABS): Move from psympriv.h.
8823 (lookup_partial_symtab, find_pc_sect_psymtab)
8824 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8825 (find_last_source_symtab_from_partial)
8826 (forget_cached_source_info_partial)
8827 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8828 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8829 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8830 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8831 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8832 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8833 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8834 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8835 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8836 psymtabs.
8837 * mipsread.c (ecoff_sym_fns): Update.
8838 * machoread.c (macho_sym_fns): Update.
8839 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8840 (read_psyms): New function.
8841 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8842 (elf_sym_fns_lazy_psyms): New global.
8843 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8844 dwarf2_build_psymtabs.
8845 * dbxread.c (aout_sym_fns): Update.
8846 * coffread.c (coff_sym_fns): Update.
8847
fda326dd
TT
88482011-03-07 Tom Tromey <tromey@redhat.com>
8849
8850 * infrun.c (print_exited_reason): Include inferior id and pid in
8851 message.
8852
aeaec162
TT
88532011-03-07 Tom Tromey <tromey@redhat.com>
8854
8855 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8856 parameter.
8857 (target_has_execution_1): Update.
8858 (target_has_execution_current): Declare.
8859 (target_has_execution): Call target_has_execution_current.
8860 (default_child_has_execution): Update.
8861 * target.c (default_child_has_execution): Add 'the_ptid'
8862 parameter.
8863 (target_has_execution_1): Likewise.
8864 (target_has_execution_current): New function.
8865 (add_target): Update.
8866 (init_dummy_target): Update.
8867 * remote-m32r-sdi.c (m32r_has_execution): New function.
8868 (init_m32r_ops): Use it.
8869 * record.c (record_core_has_execution): Now static. Add
8870 'the_ptid' parameter.
8871 * inferior.c (have_live_inferiors): Don't save current thread.
8872 Use target_has_execution_1.
8873
08e14083
YQ
88742011-03-07 Yao Qi <yao@codesourcery.com>
8875
8876 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8877
c05d19c5
JB
88782011-03-07 Joel Brobecker <brobecker@adacore.com>
8879
8880 * elfread.c (elf_symtab_read): Minor reformatting.
8881
3e6ef9e4
JB
88822011-03-07 Joel Brobecker <brobecker@adacore.com>
8883
8884 * objc-lang.c (selectors_info): Minor reformatting.
8885
dbb8534f
JB
88862011-03-07 Joel Brobecker <brobecker@adacore.com>
8887
8888 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8889
dd70cc93
JB
88902011-03-07 Joel Brobecker <brobecker@adacore.com>
8891 Michael Snyder <msnyder@vmware.com>
8892
8893 * ada-valprint.c (ada_val_print_array): Move the declaration of
8894 "byte_order" and "elttype" inside the block where these variables
8895 are actually used. Remove some special handling for the case
8896 where "elttype" and "eltlen" are null. Replace by a comment
8897 and a couple of assertion checks.
8898
b27cf2b3
MS
88992011-03-05 Michael Snyder <msnyder@vmware.com>
8900
8901 * source.c (add_path): Replace semicolon at end of block.
8902 * dwarf2expr.c (execute_stack_op): Ditto.
8903
5387a0c6
MF
89042011-03-05 Mike Frysinger <vapier@gentoo.org>
8905
8906 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8907 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8908 (bfin-*-*): Likewise.
8909
e3aa49af
MS
89102011-03-05 Michael Snyder <msnyder@vmware.com>
8911
82ae4854
MS
8912 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8913 * mdebugread.c (parse_symbol): Ditto.
8914 * parse.c (parse_exp_in_context): Ditto.
8915 * source.c (add_path): Ditto.
8916 * utils.c (gnu_debuglink_crc32): Ditto.
8917 * varobj.c (variable_language): Ditto.
8918
e3aa49af
MS
8919 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8920
154f592e
MS
89212011-03-04 Michael Snyder <msnyder@vmware.com>
8922
da3ecdc6
MS
8923 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8924
9cc89665
MS
8925 * symfile.c (simple_overlay_update): Check for null return value
8926 from lookup_minimal_symbol.
8927
154f592e
MS
8928 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8929
63ffa6ee
TJB
89302011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8931
8932 * eval.c (parse_and_eval_address_1): Remove function.
8933 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8934 instead of parse_and_eval_address_1.
8935 * value.h (parse_and_eval_address_1): Remove prototype.
8936
a17d146e
MS
89372011-03-04 Michael Snyder <msnyder@vmware.com>
8938
8939 * remote.c (putpkt_binary): Document that case stmt falls through.
8940
1a6a67de
TJB
89412011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8942
8943 * breakpointc (print_it_typical): Move NULL check from here...
8944 (print_bp_stop_message): ... to here.
8945
488919c4
MS
89462011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8947
8948 * breakpoint.c (enable_command): Use break instead of continue,
8949 and fill in a missing break.
8950 (disable_command): Ditto.
8951
1e182ce8
UW
89522011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8953
8954 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8955 (terminal_save_ours): Remove misleading comment.
8956 (inflow_inferior_data_cleanup): Free ttystate.
8957 (inflow_inferior_exit): Likewise.
8958 (copy_terminal_info): Copy ttystate.
8959
8960 * serial.c (serial_copy_tty_state): New function.
8961 * serial.h (serial_copy_tty_state): Add prototype.
8962 (struct serial_ops): Add copy_tty_state callback.
8963 * ser-base.c (ser_base_copy_tty_state): New function.
8964 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8965 * ser-go32.c (dos_copy_tty_state): New function.
8966 (dos_ops): Install copy_tty_state callback.
8967 * ser-mingw.c (_initialize_ser_windows): Likewise.
8968 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8969 * ser-unix.c (hardwire_copy_tty_state): New function.
8970 (_initialize_ser_hardwire): Install it.
8971
b2c5f112
MS
89722011-03-04 Michael Snyder <msnyder@vmware.com>
8973
2abae994
MS
8974 * breakpoint.c (create_breakpoint): Add missing break statement.
8975
7f5936f9
MS
8976 Reverting this patch:
8977 * infcall.c (call_function_by_hand): Add break statements for lint.
8978
b2c5f112
MS
8979 Reverting this patch:
8980 * cli/cli-script.c (script_from_file): Add break for lint.
8981
42b1321c
MS
89822011-03-04 Michael Snyder <msnyder@vmware.com>
8983
8984 * solib.c (reload_shared_libraries_1): Close memory leak.
8985
3e2a0cee
TT
89862011-03-03 Tom Tromey <tromey@redhat.com>
8987
8988 PR gdb/12538:
8989 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8990 DW_STRING is NULL.
8991
58397cb7
MS
89922011-03-03 Michael Snyder <msnyder@vmware.com>
8993
2e3fd767
MS
8994 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8995 fields of struct 'st' to zero.
8996
58397cb7
MS
8997 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8998 sal.pspace before calling set_current_source_symtab_and_line.
8999
ced54c8f
YQ
90002011-03-03 Yao Qi <yao@codesourcery.com>
9001
9002 * Makefile.in (configure-common): Remove. Let Makefile
9003 in dir common to rebuild itself.
9004 (common/Makefile): Likewise.
9005
3351ea09
JB
90062011-03-03 Joel Brobecker <brobecker@adacore.com>
9007
9008 * utils.c (parse_escape): Add i18n markup in error message.
9009
bf9f652a
YQ
90102011-03-03 Yao Qi <yao@codesourcery.com>
9011
9012 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9013 ARM_PC_REGNUM.
9014 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9015 (displaced_write_reg, displaced_read_reg): Likewise.
9016 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9017 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9018 (cleanup_branch): Replace magic number 14 and 15 with
9019 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9020
d42de051
MS
90212011-03-02 Michael Snyder <msnyder@vmware.com>
9022
240f9570
MS
9023 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9024
10dd8b54
MS
9025 * cli/cli-script.c (script_from_file): Add break for lint.
9026
b98bd911
MS
9027 * mdebugread.c (parse_partial_symbols): Fix indent.
9028
3494b66d
MS
9029 * target-descriptions.c (tdesc_gdb_type): No need to call
9030 xstrdup, callee saves a copy.
9031
daac021a
MS
9032 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9033
c38d16a7
MS
9034 * infcall.c (call_function_by_hand): Add break statements for lint.
9035
905b671b
MS
9036 * utils.c (parse_escape): Escape the escape char.
9037
f2eb0bc8 9038 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9039 PyList_Append fails.
9040 (gdbpy_inferiors): Error out if build_inferior_list fails.
9041
8c6a60d1
MS
9042 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9043 a function call.
9044
d42de051
MS
9045 * record.c (record_restore): Move printf to before error return.
9046
4db71c0b
YQ
90472011-03-02 Yao Qi <yao@codesourcery.com>
9048
9049 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9050 is_thumb and insn_size.
9051 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9052 on both ARM and Thumb mode.
9053 (arm_process_displaced_insn): Set is_thumb and insn_size.
9054 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9055 (arm_displaced_step_fixup): Likewise.
9056
a9dc8dcc
MS
90572011-03-01 Michael Snyder <msnyder@vmware.com>
9058
53624a93
MS
9059 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9060
77766669
MS
9061 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9062
62d5b8da
MS
9063 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9064
5e9e105f
MS
9065 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9066
dc19db01
MS
9067 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9068 with xmalloc.
9069
5ce64950
MS
9070 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9071 which shadows function parameter.
9072
a0aa2878
MS
9073 * tracepoint.c (create_tsv_from_upload): Superfluous call
9074 to xstrdup. Callee already calls xstrdup.
9075
e325fb69
MS
9076 * linespec.c (decode_line_1): Remove unnecessary null check.
9077
21cbba77
MS
9078 * tracepoint.c (scope_info): Fix mem leak, remove underused
9079 variable.
9080
63360adc
MS
9081 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9082 superfluous null check.
9083
18ea20ac 9084 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9085 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9086
d014929c
MS
9087 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9088
6e9130cf
MS
9089 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9090 be null.
9091
5f01dbc0
MS
9092 * linespec.c (decode_line_1): Check for null before dereference.
9093
d684ab85
MS
9094 * reverse.c (record_restore): Move null-check to before pointer
9095 dereference.
9096
bfffb7e3
MS
9097 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9098
a9dc8dcc
MS
9099 * objc-lang.c (selectors_info): Add explanitory comment.
9100 (classes_info): Ditto.
9101
478fd957
UW
91022011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9103
9104 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9105 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9106 versions of the trampoline. Handle Thumb vs. ARM addresses.
9107 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9108 (arm_linux_init_abi): Install it.
9109 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9110 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9111
0480cefa
MS
91122011-02-28 Michael Snyder <msnyder@vmware.com>
9113
ac50ab3b
MS
9114 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9115 a little bigger, to avoid possibility of an overflow.
9116
f63fbe86
MS
9117 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9118 buffers a little bigger, to avoid possibility of an overflow.
9119
9e91a352
MS
9120 * coffread.c (coff_getfilename): Add check to avoid overflow.
9121
f2eb0bc8 9122 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9123 avoid overflow.
9124 (classes_info): Error out on too long REGEXP.
9125
098ab512
MS
9126 * infrun.c (handle_inferior_event): Remove unused function call.
9127
bcbd1de9
MS
9128 * fork-child.c (fork_inferior): Remove ifdef'd code and
9129 unused variable.
9130
2e456570
MS
9131 * linux-thread-db.c (attach_thread): Discard unused value.
9132
14571dad
MS
9133 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9134
a9cbf802
MS
9135 * remote.c (remote_get_noisy_reply): Discard unused value.
9136 (remote_vcont_resume): Ditto.
9137 (remote_stop_ns): Ditto.
9138
5715d26e
MS
9139 * linespec.c (decode_objc): Delete unused variable.
9140
4a9bca80
MS
9141 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9142
f47fb265
MS
9143 * dwarf2read.c (add_partial_symbol): Discard unused values.
9144 (read_base_type): Delete unused variable.
9145
e81cff30
MS
9146 * dbxread.c (read_dbx_symtab): Discard unused value.
9147
262acaeb
MS
9148 * eval.c (evaluate_subexp_standard): Delete unused variable,
9149 and discard unused values.
9150
df983543
MS
9151 * infcmd.c (_initialize_infcmd): Discard unused values.
9152
89acf84d
MS
9153 * stabsread.c (rs6000_builtin_type): Missing break statement.
9154
ab8b8aca
MS
9155 * dbxread.c (process_one_symbol): Discard unused value.
9156
6b4511ab
MS
9157 * coffread.c (coff_end_symtab): Delete unused variable.
9158
e8e80198
MS
9159 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9160 (dwarf2_add_typedef): Delete unused variable.
9161 (read_namespace): Ditto.
9162 (dwarf_decode_macros): Ditto.
9163
976aa66e
MS
9164 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9165
5b92b49f
MS
9166 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9167
91e8df85
MS
9168 * p-valprint.c (pascal_val_print): Discard unused value.
9169
899500d6
MS
9170 * utils.c (nquery): Call va_end before return;
9171 (yquery): Ditto.
9172 (query): Ditto.
9173
0480cefa
MS
9174 * proc-service.c (ps_plog): Call va_end before return.
9175
fb6a3ed3
TT
91762011-02-28 Tom Tromey <tromey@redhat.com>
9177
9178 * python/python.c (gdbpy_value_cst): New global.
9179 (_initialize_python): Initialize it.
9180 * python/python-internal.h (gdbpy_value_cst): Declare.
9181 * python/py-value.c (convert_value_from_python): Use
9182 gdbpy_value_cst.
9183
c05202a1
MS
91842011-02-28 Michael Snyder <msnyder@vmware.com>
9185
e463f587
MS
9186 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9187
c38eea1a
MS
9188 * breakpoint.c (catch_syscall_completer): Free malloced list.
9189
3ef09ab5
MS
9190 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9191
8f9a01ee
MS
9192 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9193 (lval_func_check_synthetic_pointer): Ditto.
9194 (lval_func_free_closure): Fix use-after-free.
c05202a1 9195
477d0d57
TT
91962011-02-28 Tom Tromey <tromey@redhat.com>
9197
9198 * psymtab.c (expand_partial_symbol_tables): Use
9199 ALL_OBJFILE_PSYMTABS.
9200
20937029
JK
92012011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9202
9203 * objc-lang.c (selectors_info): Error on too long REGEXP.
9204
907b7f4f
MS
92052011-02-28 Michael Snyder <msnyder@vmware.com>
9206
92e96192
MS
9207 * python/py-param.c (set_parameter_value): Add missing
9208 break statement.
9209
907b7f4f
MS
9210 * linux-record.c (record_linux_system_call): Add missing
9211 break statement.
9212
12c5a436
UW
92132011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9214
9215 * breakpoint.c (print_one_breakpoint_location): Remove unused
9216 argument PRINT_ADDRESS_BITS. Update callers.
9217 (print_one_breakpoint): Likewise.
9218
170b53b2
UW
92192011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9220
9221 * breakpoint.c (wrap_indent_at_field): New function.
9222 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9223 Allocate ui_stream locally instead of using STB argument.
9224 (print_one_breakpoint_location): Update call.
9225 * ui-out.c (ui_out_query_field): New function.
9226 * ui-out.h (ui_out_query_field): Add prototype.
9227
8ab1f94d
JB
92282011-02-28 Joel Brobecker <brobecker@adacore.com>
9229
9230 From Michael Snyder <msnyder@vmware.com>
9231 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9232
7d488639
MS
92332011-02-27 Michael Snyder <msnyder@vmware.com>
9234
ae179fba
MS
9235 * objc-lang.c (selectors_info): Prevent string overrun.
9236
086dbf66
MS
9237 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9238 error in strncpy.
9239
f2eb0bc8 9240 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9241 outer scope.
9242
7d488639
MS
9243 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9244 param with a local variable of the same name.
9245
3bd0f5ef
MS
92462011-02-27 Michael Snyder <msnyder@vmware.com>
9247
9248 * value.c (value_from_history_ref): New function.
9249 * value.h (value_from_history_ref): Export.
9250 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9251 to parse value history references.
9252 * cli/cli-utils.h (get_number_trailer): Update comment.
9253
92542011-02-27 Michael Snyder <msnyder@vmware.com>
9255
9256 * inferior.c (detach_inferior_command): Use get_number_or_range.
9257 (kill_inferior_command): Ditto.
9258 (remove_inferior_command): Ditto.
9259 (initialize_inferiors): Make command names plural.
9260 Update help strings.
9261
766062f6
MS
92622011-02-27 Michael Snyder <msnyder@vmware.com>
9263
9264 * darwin-nat-info.c: Fix comment typo.
9265 * dwarf2expr.h: Ditto.
9266 * fbsd-nat.c: Ditto.
9267 * fbsd-nat.h: Ditto.
9268 * frame-unwind.h: Ditto.
9269 * frame.h: Ditto.
9270 * hppa-hpux-tdep.c: Ditto.
9271 * i386-linux-nat.c: Ditto.
9272 * linux-nat.c: Ditto.
9273 * nbsd-nat.c: Ditto.
9274 * nbsd-nat.h: Ditto.
9275 * ppc-linux-tdep.c: Ditto.
9276 * serial.c: Ditto.
9277 * ui-file.h: Ditto.
9278 * tui/tui-winsource.c: Ditto.
9279
f2c4ead5
MS
92802011-02-26 Michael Snyder <msnyder@vmware.com>
9281
86b887df
MS
9282 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9283
66fd3b1e
MS
9284 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9285
8c814cdd
MS
9286 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9287 with a local variable of the same name.
9288
6d5e094a 9289 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9290 param with a local variable of the same name.
6d5e094a 9291 (i387_supply_xsave): Ditto.
e5b3d7d6 9292
5eee517d
MS
9293 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9294 that it does not shadow a function parameter.
9295
8fbf6b93
MS
9296 * i386-nat.c (i386_length_and_rw_bits): Document that case
9297 statement is meant to fall through.
9298
cb969d61
MS
9299 * expprint.c (dump_subexp_body_standard): Document that case
9300 statement is meant to fall through.
9301
f2c4ead5
MS
9302 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9303 dead if statement. Condition can't be false.
9304
b021a221
MS
93052011-02-25 Michael Snyder <msnyder@vmware.com>
9306
9307 * arm-tdep.c: Fix typos in comments.
9308 * bsd-uthread.c: Ditto.
9309 * completer.c: Ditto.
9310 * corelow.c: Ditto.
9311 * cp-namespace.c: Ditto.
9312 * cp-support.c: Ditto.
9313 * cris-tdep.c: Ditto.
9314 * dbxread.c: Ditto.
9315 * dwarf2read.c: Ditto.
9316 * frame.h: Ditto.
9317 * gdbtypes.h: Ditto.
9318 * inferior.h: Ditto.
9319 * mdebugread.c: Ditto.
9320 * mips-tdep.c: Ditto.
9321 * ppc-linux-nat.c: Ditto.
9322 * ppc-linux-tdep.c: Ditto.
9323 * printcmd.c: Ditto.
9324 * sol-thread.c: Ditto.
9325 * solib-frv.c: Ditto.
9326 * solist.h: Ditto.
9327 * sparc64-tdep.c: Ditto.
9328 * spu-tdep.c: Ditto.
9329 * stabsread.c: Ditto.
9330 * symfile.c: Ditto.
9331 * valops.c: Ditto.
9332 * varobj.c: Ditto.
9333 * vax-nat.c: Ditto.
9334 * python/py-block.c: Ditto.
9335 * python/py-symbol.c: Ditto.
9336 * python/py-symtab.c: Ditto.
9337 * python/py-value.c: Ditto.
9338 * tui/tui-win.c: Ditto.
9339
c82c0b55
MS
93402011-02-25 Michael Snyder <msnyder@vmware.com>
9341
9342 * inferior.c (print_inferior): Accept a string instead of an int
9343 for requested_inferiors, and use get_number_or_range to parse it.
9344 (info_inferiors_command): Pass args string to print_inferior.
9345 (initialize_inferiors): Change help string for info inferiors.
9346 * inferior.h (print_inferior): Export prototype change.
9347
ee00cd23
TT
93482011-02-25 Tom Tromey <tromey@redhat.com>
9349
9350 * common/ax.def (invalid2): Set to 0x31.
9351
0502ed8c
JK
93522011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9355 L and plongest.
9356 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9357 use L and plongest.
9358 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9359
2c9de912
MS
93602011-02-24 Michael Snyder <msnyder@vmware.com>
9361
9362 * Makefile.in (clean): Make clean should remove generated files
9363 observer.h and observer.inc.
9364
a04b0428
JB
93652011-02-24 Joel Brobecker <brobecker@adacore.com>
9366
9367 Revert the following patch (not approved yet):
9368 2011-02-21 Hui Zhu <teawater@gmail.com>
9369 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9370 * ax-gdb.c (gen_printf_expr_callback): New function.
9371 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9372 * ax-general.c (ax_memcpy): New function.
9373 (ax_print): Handle "printf".
9374 (ax_reqs): Ditto.
9375 * ax.h (ax_memcpy): Forward declare.
9376 * common/ax.def (invalid2): Removed.
9377 (printf): New entry.
9378 * printcmd.c (printcmd.h): New include.
9379 (string_printf): New function.
9380 (ui_printf): Removed.
9381 (printf_command): Remove static. Call string_printf.
9382 (eval_command): Call string_printf.
9383 * printcmd.h: New file.
9384 * tracepoint.c (validate_actionline,
9385 encode_actions_1): handle printf_command.
9386
2b52013f
TT
93872011-02-23 Tom Tromey <tromey@redhat.com>
9388
9389 * ax-general.c (ax_pick): Add missing newline.
9390
e5a67952
MS
93912011-02-23 Michael Snyder <msnyder@vmware.com>
9392
9393 * breakpoint.c (breakpoint_1): Change first argument from an int
9394 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9395 breakpoints rather than just one. Use new function
e5a67952
MS
9396 'number_is_in_list' to implement.
9397 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9398 (watchpoints_info): Ditto.
9399 (tracepoints_info): Ditto.
9400 (maintenance_info_breakpoints): Ditto.
9401 (_initialize_breakpoint): Update help strings to reflect the fact
9402 that these functions can now take more than one argument.
9403 * cli/cli-utils.c (number_is_in_list): New function.
9404 * cli/cli-utils.h (number_is_in_list): Export.
9405
94062011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9407
9408 * memattr.c (mem_enable_command): Use get_number_or_range.
9409 (mem_disable_command): Ditto.
9410 (mem_delete_command): Ditto.
9411 (_initialize_mem): Tweak usage message to reflect multiple
9412 arguments.
9413
6e6fbe60
DE
94142011-02-22 Doug Evans <dje@google.com>
9415
9416 Add gdb.lookup_global_symbol python function.
9417 * NEWS: Add entry.
9418 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9419 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9420 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9421
79b97fa8
TT
94222011-02-22 Tom Tromey <tromey@redhat.com>
9423
9424 * language.c (language_class_name_from_physname): Rename
9425 'curr_language' argument to 'lang'; use in body.
9426
298f437a
MS
94272011-02-22 Michael Snyder <msnyder@vmware.com>
9428
9429 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9430
b7ea3126
PA
94312011-02-22 Pedro Alves <pedro@codesourcery.com>
9432
9433 * frame-unwind.h: Fix comment to mention the this frame, not the
9434 next.
9435
58ee6d60
TT
94362011-02-22 Tom Tromey <tromey@redhat.com>
9437
9438 * symfile.c (auto_solib_limit): Remove.
9439 * symfile.h (auto_solib_limit): Remove.
9440
36238dbc
JB
94412011-02-22 Joel Brobecker <brobecker@adacore.com>
9442
9443 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9444
aea5b279
MS
94452011-02-21 Michael Snyder <msnyder@vmware.com>
9446
9447 * gdbthread.h (print_thread_info): Change prototype.
9448 * thread.c (print_thread_info): Accept char* instead of int for
9449 requested_threads argument. Use new function number_is_in_list
9450 to determine which threads to list.
9451 (info_threads_command): Pass char* to print_thread_info.
9452 * cli/cli-utils.c (number_is_in_list): New function.
9453 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9454 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9455 print_thread_info.
9456 (print_one_inferior): Ditto.
9457 (mi_cmd_list_thread_groups): Ditto.
9458
8caa75ee
JK
94592011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9460
9461 * common/Makefile.in (CFLAGS): New.
9462 (COMPILE): Add $(CFLAGS).
9463
ea666128
TT
94642011-02-21 Tom Tromey <tromey@redhat.com>
9465
9466 * breakpoint.c (catch_syscall_command_1): Fix typo.
9467
e9cafbcc
TT
94682011-02-21 Tom Tromey <tromey@redhat.com>
9469
9470 * reverse.c: Include cli-utils.h.
9471 * printcmd.c: Include cli-utils.h.
9472 (string_printf): Use skip_spaces.
9473 * cli/cli-utils.h: New file.
9474 * cli/cli-utils.c: New file.
9475 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9476 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9477 * breakpoint.h (get_number, get_number_or_range): Move to
9478 cli-utils.h.
9479 * breakpoint.c: Include cli-utils.h.
9480 (get_number_trailer, get_number, get_number_or_range)
9481 (ep_skip_leading_whitespace): Move to cli-utils.c.
9482 (create_breakpoint_sal, find_condition_and_thread)
9483 (decode_static_tracepoint_spec, watch_command_1)
9484 (watch_maybe_just_location, ep_parse_optional_if_clause)
9485 (catch_fork_command_1, catch_exec_command_1)
9486 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9487 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9488 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9489 (HFILES_NO_SRCDIR): Add cli-utils.h.
9490 (cli-utils.o): New target.
9491
f67fd822
PM
94922011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9493
9494 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9495 before calling discard_all_inferiors.
9496
c9def01d
UW
94972011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9498
9499 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9500 (struct builtin_opencl_type): Remove.
9501 (builtin_opencl_type): Change return type to "struct type **".
9502 (lookup_opencl_vector_type): Update caller.
9503 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9504 (build_opencl_types): Install plain array of "struct type *"
9505 instead of "struct builtin_opencl_type".
9506
e3039479
UW
95072011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9508 Ulrich Weigand <uweigand@de.ibm.com>
9509
9510 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9511 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9512 (struct arm_linux_hwbp_cap): New type.
9513 (arm_linux_get_hwbp_cap): New function.
9514 (arm_linux_get_hw_breakpoint_count): Likewise.
9515 (arm_linux_get_hw_watchpoint_count): Likewise.
9516 (arm_linux_can_use_hw_breakpoint): Likewise.
9517 (arm_hwbp_type): New type.
9518 (arm_hwbp_control_t): Likewise.
9519 (struct arm_linux_hw_breakpoint): Likewise.
9520 (struct arm_linux_thread_points): Likewise.
9521 (arm_threads): New global variable.
9522 (arm_linux_find_breakpoints_by_tid): New function.
9523 (arm_hwbp_control_initialize): Likewise.
9524 (arm_hwbp_control_is_enabled): Likewise.
9525 (arm_hwbp_control_disable): Likewise.
9526 (arm_linux_hw_breakpoint_initialize): Likewise.
9527 (arm_linux_get_hwbp_type): Likewise.
9528 (arm_linux_hw_watchpoint_initialize): Likewise.
9529 (arm_linux_hw_breakpoint_equal): Likewise.
9530 (arm_linux_insert_hw_breakpoint1): Likewise.
9531 (arm_linux_remove_hw_breakpoint1): Likewise.
9532 (arm_linux_insert_hw_breakpoint): Likewise.
9533 (arm_linux_remove_hw_breakpoint): Likewise.
9534 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9535 (arm_linux_insert_watchpoint): Likewise.
9536 (arm_linux_remove_watchpoint): Likewise.
9537 (arm_linux_stopped_data_address): Likewise.
9538 (arm_linux_stopped_by_watchpoint): Likewise.
9539 (arm_linux_watchpoint_addr_within_range): Likewise.
9540 (arm_linux_new_thread): Likewise.
9541 (arm_linux_thread_exit): Likewise.
9542 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9543 related target callbacks. Register arm_linux_new_thread and
9544 arm_linux_thread_exit.
9545 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9546 * arm-tdep.c (arm_pc_is_thumb): Make global.
9547 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9548
b5db5dfc
UW
95492011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9550
9551 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9552 per-frame locations while within a function epilogue.
9553
e25b2cfa
PM
95542011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9555
9556 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9557 to GNU coding standards.
9558
4af53f97
PM
95592011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9560
9561 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9562 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9563 (ser_windows_close): Only call CancelIo if function exists.
9564 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9565 to check for existence of CancelIo function in kernel32 DLL.
9566
d0e92d82
HZ
95672011-02-21 Hui Zhu <teawater@gmail.com>
9568
9569 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9570 * ax-gdb.c (gen_printf_expr_callback): New function.
9571 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9572 * ax-general.c (ax_memcpy): New function.
9573 (ax_print): Handle "printf".
9574 (ax_reqs): Ditto.
9575 * ax.h (ax_memcpy): Forward declare.
9576 * common/ax.def (invalid2): Removed.
9577 (printf): New entry.
9578 * printcmd.c (printcmd.h): New include.
9579 (string_printf): New function.
9580 (ui_printf): Removed.
9581 (printf_command): Remove static. Call string_printf.
9582 (eval_command): Call string_printf.
9583 * printcmd.h: New file.
9584 * tracepoint.c (validate_actionline,
9585 encode_actions_1): handle printf_command.
9586
7d357efd
MS
95872011-02-19 Michael Snyder <msnyder@vmware.com>
9588
9589 * reverse.c (delete_one_bookmark): Argument is now bookmark
9590 id rather than pointer to bookmark struct.
9591 (delete_bookmark_command): Use get_number_or_range.
9592 (goto_bookmark_command): Parse with get_number instead of strtoul.
9593 (bookmark_1): New function. Print info for one bookmark.
9594 (bookmarks_info): Use get_number_or_range and bookmark_1.
9595
7a45ebd7
MS
95962011-02-18 Michael Snyder <msnyder@vmware.com>
9597
f2eb0bc8 9598 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9599 get_number_or_range.
65ebfb52 9600 (thread_apply_command): Ditto.
7a45ebd7 9601
94d5e490
TT
96022011-02-18 Tom Tromey <tromey@redhat.com>
9603
9604 * common/ax.def: New file.
9605 * ax.h (enum agent_op): Use ax.def.
9606 * ax-general.c (aop_map): Use ax.def.
9607
c7f96d2b
TT
96082011-02-18 Tom Tromey <tromey@redhat.com>
9609
9610 * ax-general.c (aop_map): Add pick and rot.
9611 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9612 <DW_OP_rot>: Implement.
9613 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9614 (ax_pick): Declare.
9615 * ax-general.c (ax_pick): New function.
9616
66694b75
TT
96172011-02-18 Tom Tromey <tromey@redhat.com>
9618
9619 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9620
eeaafae2
JK
96212011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9622 Tom Tromey <tromey@redhat.com>
9623
9624 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9625 make_symbol_overload_list_block with NULL BLOCK.
9626 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9627
3c3fe74c
PA
96282011-02-18 Pedro Alves <pedro@codesourcery.com>
9629
9630 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9631 * breakpoint.h (get_number_or_range): Declare.
9632 * printcmd.c (ALL_DISPLAYS): Declare.
9633 (delete_display): Reimplement taking a display pointer.
9634 (undisplay_command): Accept a range of displays to delete, using
9635 get_number_or_range.
9636
13163d80
PM
96372011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9638
9639 * c-valprint.c (c_val_print): Add embedded_offset to address
9640 for arrays of unspecified length.
9641 * p-valprint.c (pascal_val_print): Likewise.
9642
b434a28f
YQ
96432011-02-18 Yao Qi <yao@codesourcery.com>
9644
9645 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9646 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9647 (thumb_process_displaced_insn): New.
9648 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9649 call to arm_process_displaced_insn.
9650 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9651
9f6f94ff
TT
96522011-02-17 Tom Tromey <tromey@redhat.com>
9653
9654 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9655 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9656 compile_dwarf_to_ax. No longer static. Call
9657 dwarf2_compile_cfa_to_ax.
9658 (locexpr_tracepoint_var_ref): Update.
9659 (loclist_tracepoint_var_ref): Update.
9660 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9661 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9662 argument; add 'gdbarch' and 'pc'.
9663 (dwarf2_compile_cfa_to_ax): New function.
9664 (dwarf2_frame_cache): Update.
9665
e67ad678
JB
96662011-02-17 Joel Brobecker <brobecker@adacore.com>
9667
9668 * ada-lang.c (ada_type_of_array): Fix the size of the array
9669 in the case of an unconstrained packed array.
9670
946ebb0d
YQ
96712011-02-17 Yao Qi <yao@codesourcery.com>
9672
9673 * common/Makefile.in: Add more targets for make.
9674
1ba1b353
TT
96752011-02-16 Tom Tromey <tromey@redhat.com>
9676
9677 * dwarf2loc.c (unimplemented): Fix typo.
9678
b1bfef65
TT
96792011-02-16 Tom Tromey <tromey@redhat.com>
9680
9681 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9682 (compile_dwarf_to_ax) <default>: Use unimplemented.
9683 <DW_OP_deref>: Update.
9684 (disassemble_dwarf_expression): Update.
9685 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9686 (decode_locdesc): Update.
9687 * dwarf2expr.h (dwarf_stack_op_name): Update.
9688
5f1e6f19
TT
96892011-02-16 Tom Tromey <tromey@redhat.com>
9690
9691 * ax.h (struct aop_map) <name>: Now const.
9692
a0c78a73
PA
96932011-02-16 Tom Tromey <tromey@redhat.com>
9694
9695 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9696 than axs_rvalue.
9697
946ebb0d 96982011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9699
9700 * infrun.c (get_displaced_step_closure_by_addr): New.
9701 * inferior.h: Declare it.
9702 * arm-tdep.c: (arm_pc_is_thumb): Call
9703 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9704 returns non-NULL.
9705
08807d5a
PA
97062011-02-16 Pedro Alves <pedro@codesourcery.com>
9707 Jan Kratochvil <jan.kratochvil@redhat.com>
9708
9709 gdb/
9710 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9711
29976f3f
PA
97122011-02-16 Pedro Alves <pedro@codesourcery.com>
9713 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * value.c (value_contents_copy_raw): Extend describing comment.
9716 Assert that the destination contents we're overwriting are wholly
9717 available.
fb68ae73 9718 (value_contents_copy): Extend describing comment.
29976f3f 9719
cd24cfaa
PA
97202011-02-16 Pedro Alves <pedro@codesourcery.com>
9721 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 * value.c (value_available_contents_eq): Remove redundant local
9724 variables. Fix available contents comparision.
9725 * value.h (value_available_contents_eq): Extend describing
9726 comment.
9727
60bbf338
YQ
97282011-02-16 Yao Qi <yao@codesourcery.com>
9729
9730 * thread.c (info_threads_command): Add missing i18n markup and remove
9731 trailing newline.
9732
17450429
PP
97332011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9734
9735 * breakpoint.c (longjmp_names): New variable.
9736 (struct breakpoint_objfile_data): New type.
9737 (breakpoint_objfile_key): New variable.
9738 (msym_not_found): New variable.
9739 (msym_not_found_p): New predicate.
9740 (get_breakpoint_objfile_data): New function.
9741 (create_overlay_event_breakpoint): Check per-objfile cache for
9742 symbols first.
9743 (create_longjmp_master_breakpoint): Likewise.
9744 (create_std_terminate_master_breakpoint): Likewise.
9745 (create_exception_master_breakpoint): Likewise.
9746 (_initialize_breakpoint): Register per-objfile data key.
9747
af02033e
PP
97482011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9749
9750 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9751 parameter value.
9752 (create_longjmp_master_breakpoint): Loop over longjmp names.
9753 (create_std_terminate_master_breakpoint): Const-propagate parameter
9754 value.
9755 (update_breakpoints_after_exec): Adjust.
9756 (breakpoint_re_set): Adjust.
9757
60f98dde
MS
97582011-02-15 Michael Snyder <msnyder@vmware.com>
9759
cdf99611
MS
9760 * thread.c (info_threads_command): Process arg as thread id,
9761 or list of thread ids.
9762 (thread_find_command): New command.
9763 (_initialize_thread): Document argument for info threads.
9764 Document 'thread find' command.
9765 * NEWS: Document new command "thread find".
60f98dde 9766
0feedb2c
JK
97672011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9768
9769 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9770 * aclocal.m4: Regenerated with aclocal-1.11.1.
9771 * common/configure: Regenerate with autoconf-2.64.
9772
648cd113
KW
97732011-02-15 Ken Werner <ken.werner@de.ibm.com>
9774
9775 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9776 bool data type to a size of one byte.
9777
5657161f
PA
97782011-02-15 Pedro Alves <pedro@codesourcery.com>
9779 Jan Kratochvil <jan.kratochvil@redhat.com>
9780
9781 * target.c (memory_xfer_live_readonly_partial): Document where to
9782 look for interface description.
9783
494e194e
YQ
97842011-02-15 Yao Qi <yao@codesourcery.com>
9785
9786 PR tdep/12352
9787 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9788 order to store PC value on stack instead of text section.
9789
d9492458
TJB
97902011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9791
9792 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9793 the EFP register set size.
9794 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9795 data from the VMX register.
9796 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9797 and write data from/to the VMX register.
9798
cdf99611
MS
97992011-02-14 Michael Snyder <msnyder@vmware.com>
9800
9801 * command.h (enum command_class): New class 'no_set_class', for
9802 "show" commands without a corresponding "set" command.
9803 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9804 * copying.c (_initialize_copying): Ditto for "show copying" and
9805 "show warranty".
9806 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9807 "show version".
9808 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9809 which there is no corresponding "set" command (eg. "show copying").
9810
424447ee
PA
98112011-02-14 Pedro Alves <pedro@codesourcery.com>
9812 Jan Kratochvil <jan.kratochvil@redhat.com>
9813
9814 * exec.c (section_table_available_memory): Change `len' parameter
9815 type to ULONGEST.
9816 * exec.h (section_table_available_memory): Ditto.
9817 * value.h (read_value_memory): Rename the `offset' parameter to
9818 `embedded_offset'.
9819
c0f61f9c 98202011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9821 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9822
9823 * memrange.c (compare_mem_ranges): Mention sort order in
9824 describing comment.
9825 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9826 * tracepoint.c (traceframe_available_memory): Extend comment to
9827 mention what happens to RESULT when the target does not support
9828 the query.
9829
6bfc80c7
PA
98302011-02-14 Pedro Alves <pedro@codesourcery.com>
9831 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9834 range.
9835
e7303042
PA
98362011-02-14 Pedro Alves <pedro@codesourcery.com>
9837
9838 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9839 No longer handle NULL values.
9840
8af8e3bc
PA
98412011-02-14 Pedro Alves <pedro@codesourcery.com>
9842
9843 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9844 * value.c: Include "exceptions.h".
9845 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9846 generic error.
9847 * cp-abi.c: Include gdb_assert.h.
9848 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9849 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9850 errors.
9851 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9852 parameters. No longer returns -1 on error.
9853 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9854 `val' parameters.
9855 * cp-valprint.c: Include exceptions.h.
9856 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9857 the baseclass_offset. Handle unavailable base classes. Use
9858 val_print_invalid_address.
9859 * p-valprint.c: Include exceptions.h.
9860 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9861 when fetching the baseclass_offset. No longer expect
9862 baseclass_offset returning -1. Handle unavailable base classes.
9863 Use val_print_invalid_address.
9864 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9865 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9866 `embedded_offset' and `val' parameters. Adjust.
9867 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9868 parameter, and change its type to gdb_byte pointer. Add
9869 `embedded_offset' and `val' parameters. Adjust. No longer expect
9870 baseclass_offset returning -1.
9871 (value_dynamic_cast): Use value_contents_for_printing rather than
9872 value_contents. Adjust.
9873 (search_struct_field): No longer expect baseclass_offset returning
9874 -1.
9875 (search_struct_method): If reading memory from the target is
9876 necessary, wrap it in a new value to pass to baseclass_offset. No
9877 longer expect baseclass_offset returning -1.
9878 (find_method_list): No longer expect baseclass_offset returning
9879 -1. Use value_contents_for_printing rather than value_contents.
9880 * valprint.c (val_print_invalid_address): New function.
9881 * valprint.h (val_print_invalid_address): Declare.
9882 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9883 and `val' parameters. No longer expect baseclass_offset returning
9884 -1. Adjust.
9885 * gnu-v2-abi.c: Include "exceptions.h".
9886 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9887 parameters. Handle unavailable memory. Recurse through
9888 gnuv2_baseclass_offset directly, rather than through
9889 baseclass_offset. No longer returns -1 on not found, instead
9890 throw an error.
9891 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9892 `val' parameters. Adjust.
9893
1b28d0b3
PA
98942011-02-14 Pedro Alves <pedro@codesourcery.com>
9895
9896 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9897 almost but not quite adjacent.
9898
ec0a52e1
PA
98992011-02-14 Pedro Alves <pedro@codesourcery.com>
9900
9901 * value.h (value_entirely_available): Declare.
9902 * value.c (value_entirely_available): New function.
9903 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9904 real type if the pointer is unavailable.
9905
24e6bcee
PA
99062011-02-14 Pedro Alves <pedro@codesourcery.com>
9907
9908 * valops.c (value_repeat): Use read_value_memory instead of
9909 read_memory.
9910
39d37385
PA
99112011-02-14 Pedro Alves <pedro@codesourcery.com>
9912
9913 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9914 * value.c (value_contents_copy_raw, value_contents_copy): New
9915 functions.
9916 (value_primitive_field): Use value_contents_copy_raw instead of
9917 memcpy.
9918 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9919 memcpy.
9920 (value_array, value_slice): Ditto.
9921 * valarith.c (value_subscripted_rvalue): Use
9922 value_contents_copy_raw instead of memcpy.
9923
a3d34bf4
PA
99242011-02-14 Pedro Alves <pedro@codesourcery.com>
9925
9926 <unavailable> references.
9927
9928 * valops.c (get_value_at): Use value_from_contents_and_address,
9929 avoiding read_memory.
9930
9fc6d940
PA
99312011-02-14 Pedro Alves <pedro@codesourcery.com>
9932
9933 * c-valprint.c (c_val_print): Print a string with unavailable
9934 contents as an array.
9935
5467c6c8
PA
99362011-02-14 Pedro Alves <pedro@codesourcery.com>
9937
9938 * value.h (unpack_bits_as_long): Delete declaration.
9939 (unpack_value_bits_as_long): Declare.
9940 (unpack_value_field_as_long): Declare.
9941 (value_field_bitfield): Declare.
9942 * value.c (unpack_bits_as_long): Rename to...
9943 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9944 value parameters. Return the extracted result in a new output
9945 parameter. If the value contents are unavailable, return false,
9946 otherwise return true.
9947 (unpack_value_bits_as_long): New.
9948 (unpack_field_as_long): Rename to...
9949 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9950 Add embedded_offset and value parameters. Return the extracted
9951 result in a new output parameter. If the value contents are
9952 unavailable, return false, otherwise return true.
9953 (unpack_value_field_as_long): New.
9954 (unpack_field_as_long_1): New.
9955 (unpack_field_as_long): Reimplement as wrapper around
9956 unpack_value_field_as_long_1.
9957 (value_field_bitfield): New function.
9958 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9959 unpack_value_bits_as_long. Mark the value as unavailable, if it
9960 is unavailable.
9961 * jv-valprint.c (java_print_value_fields): Use
9962 value_field_bitfield.
9963 * p-valprint.c (pascal_object_print_value_fields): Use
9964 value_field_bitfield.
9965 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9966
3158c6ed
PA
99672011-02-14 Pedro Alves <pedro@codesourcery.com>
9968
9969 * value.c (get_internalvar_integer): Also return the int value of
9970 TYPE_CODE_INT INTERNALVAR_VALUE values.
9971 (set_internalvar): Don't special case TYPE_CODE_INT.
9972
9fbdca0d
PA
99732011-02-14 Pedro Alves <pedro@codesourcery.com>
9974
9975 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9976 INTERNALVAR_POINTER.
9977 <pointer>: Delete.
9978 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9979 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9980 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9981
c8c1c22f
PA
99822011-02-14 Pedro Alves <pedro@codesourcery.com>
9983
9984 * value.h (value_available_contents_eq): Declare.
9985 * value.c (find_first_range_overlap): New function.
9986 (value_available_contents_eq): New function.
9987 * valprint.c (val_print_array_elements): Use
9988 value_available_contents_eq.
9989 * ada-valprint.c (val_print_packed_array_elements): Use
9990 value_available_contents_eq.
9991 * jv-valprint.c (java_value_print): Use
9992 value_available_contents_eq.
9993
e6e4e701
PA
99942011-02-14 Pedro Alves <pedro@codesourcery.com>
9995
9996 * target.c (target_read_live_memory): New function.
9997 (memory_xfer_live_readonly_partial): New.
9998 (memory_xfer_partial): If reading from a traceframe, fallback to
9999 reading unavailable read-only memory from read-only regions of
10000 live target memory.
10001 * tracepoint.c (disconnect_tracing): Adjust.
10002 (set_current_traceframe): New, factored out from
10003 set_traceframe_number.
10004 (set_traceframe_number): Reimplement to only change the traceframe
10005 number on the GDB side.
10006 (do_restore_current_traceframe_cleanup): Adjust.
10007 (make_cleanup_restore_traceframe_number): New.
10008 (cur_traceframe_number): New global.
10009 (tfile_open): Set cur_traceframe_number to no traceframe.
10010 (set_tfile_traceframe): New function.
10011 (tfile_trace_find): If looking up a traceframe using any method
10012 other than by number, make sure the current tfile traceframe
10013 matches gdb's current traceframe. Update the current tfile
10014 traceframe if the lookup succeeded.
10015 (tfile_fetch_registers, tfile_xfer_partial)
10016 (tfile_get_trace_state_variable_value): Make sure the remote
10017 traceframe matches gdb's current traceframe.
10018 * remote.c (remote_traceframe_number): New global.
10019 (remote_open_1): Set it to -1.
10020 (set_remote_traceframe): New function.
10021 (remote_fetch_registers, remote_store_registers)
10022 (remote_xfer_memory, remote_xfer_partial)
10023 (remote_get_trace_state_variable_value): Make sure the remote
10024 traceframe matches gdb's current traceframe.
10025 (remote_trace_find): If looking up a traceframe using any method
10026 other than by number, make sure the current remote traceframe
10027 matches gdb's current traceframe. Update the current remote
10028 traceframe if the lookup succeeded.
10029 * infrun.c (fetch_inferior_event): Adjust.
10030 * tracepoint.h (set_current_traceframe): Declare.
10031 (get_traceframe_number, set_traceframe_number): Add describing
10032 comments.
10033
e6ca34fc
PA
100342011-02-14 Pedro Alves <pedro@codesourcery.com>
10035
10036 Mark pieces of values as unavailable if the corresponding memory
10037 is unavailable.
10038
10039 * valops.c: Include tracepoint.h.
10040 (value_fetch_lazy): Use read_value_memory.
10041 (read_value_memory): New.
10042 * value.h (read_value_memory): Declare.
10043 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10044 * exec.c (section_table_available_memory): New function.
10045 * exec.h (section_table_available_memory): Declare.
10046
2a7498d8
PA
100472011-02-14 Pedro Alves <pedro@codesourcery.com>
10048
10049 * Makefile.in (SFILES): Add memrange.c.
10050 (HFILES_NO_SRCDIR): Add memrange.h.
10051 (COMMON_OBS): Add memrange.o.
10052 * memrange.c: New file.
10053 * memrange.h: New file.
10054 * tracepoint.c: Include memrange.h.
10055 (struct mem_range): Delete.
10056 (mem_range_s): Delete.
10057 (traceframe_available_memory): New function.
10058 * tracepoint.h (traceframe_available_memory): Declare.
10059
b3b9301e
PA
100602011-02-14 Pedro Alves <pedro@codesourcery.com>
10061
10062 * target.h (struct traceframe_info): Forward declare.
10063 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10064 (struct target_ops) <to_traceframe_info>: New field.
10065 (target_traceframe_info): New.
10066 * target.c (update_current_target): Inherit and default
10067 to_traceframe_info.
10068 * remote.c (PACKET_qXfer_traceframe_info): New.
10069 (remote_protocol_features): Register qXfer:traceframe-info:read.
10070 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10071 (remote_traceframe_info): New.
10072 (init_remote_ops): Install it.
10073 (_initialize_remote): Install "set/show remote traceframe-info"
10074 commands.
10075 * tracepoint.h (parse_traceframe_info): Declare.
10076 * tracepoint.c (struct mem_range): New.
10077 (mem_range_s): New typedef.
10078 (struct traceframe_info): New.
10079 (traceframe_info): New global.
10080 (free_traceframe_info): New function.
10081 (clear_traceframe_info): New function.
10082 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10083 info.
10084 (build_traceframe_info): New function.
10085 (tfile_traceframe_info): New function.
10086 (init_tfile_ops): Install tfile_traceframe_info.
10087 (traceframe_info_start_memory, free_result): New functions.
10088 (memory_attributes, traceframe_info_elements): New globals.
10089 (parse_traceframe_info, get_traceframe_info): New functions.
10090 * features/traceframe-info.dtd: New file.
10091 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10092
4e07d55f
PA
100932011-02-14 Pedro Alves <pedro@codesourcery.com>
10094
10095 Base support for <unavailable> value contents.
10096
4e07d55f
PA
10097 * value.h (value_bytes_available): Declare.
10098 (mark_value_bytes_unavailable): Declare.
10099 * value.c (struct range): New struct.
10100 (range_s): New typedef.
10101 (ranges_overlap): New function.
10102 (range_lessthan): New function.
10103 (ranges_contain_p): New function.
10104 (struct value) <unavailable>: New field.
10105 (value_bytes_available): New function.
10106 (mark_value_bytes_unavailable): New function.
10107 (require_not_optimized_out): Constify parameter.
10108 (require_available): New function.
10109 (value_contents_all, value_contents): Require all bytes be
10110 available.
10111 (value_free): Free `unavailable'.
10112 (value_copy): Copy `unavailable'.
10113 * valprint.h (val_print_unavailable): Declare.
10114 * valprint.c (valprint_check_validity): Rename `offset' parameter
10115 to `embedded_offset'. If printing a scalar, check whether the
10116 value chunk is available.
10117 (val_print_unavailable): New.
10118 (val_print_scalar_formatted): Check whether the value is
10119 available.
10120 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10121 pretty-printing unavailable values.
10122
bc9a5551
JK
101232011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10124
10125 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10126 * c-typeprint.c (c_type_print_args): Update the function comment. New
10127 variable param_type, initialize it. Remove const/volatile qualifiers
10128 for language_cplus and !show_artificial. Use param_type.
10129
93b55aa1
JK
101302011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10131
10132 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10133 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10134 * symtab.h (struct symtab) <next>: Comment extension.
10135
181d9476
YQ
101362011-02-12 Yao Qi <yao@codesourcery.com>
10137
10138 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10139
b708a5c7
JK
101402011-02-11 Yao Qi <yao@codesourcery.com>
10141
10142 * common/Makefile.in: Add copyright header.
10143
c5187ac6
PA
101442011-02-11 Pedro Alves <pedro@codesourcery.com>
10145
10146 * infrun.c (proceed): Move switching out and in of tfind mode from
10147 here ...
10148 (fetch_inferior_event): ... to here.
10149
4f3e6fb7
YQ
101502011-02-11 Yao Qi <yao@codesourcery.com>
10151
10152 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10153 libcommon.a.
10154 * configure.ac: Add common to sub dir.
10155 * configure: Regenerate.
10156
b708a5c7
JK
101572011-02-11 Yao Qi <yao@codesourcery.com>
10158
10159 Build libcommon.a.
10160
10161 * common/Makefile.in: New.
10162 * common/configure.ac: New.
10163 * common/aclocal.m4: New.
10164 * common/configure: Generate.
10165
2287cc7e
PA
101662011-02-10 Pedro Alves <pedro@codesourcery.com>
10167
10168 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10169 side of the parenthesis.
10170
10171 Merge from GCC:
10172 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10173 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10174
fd62cb89
MS
101752011-02-08 Michael Snyder <msnyder@vmware.com>
10176
10177 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10178
56d2815c
JK
101792011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10182 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10183 psubd and paddd.
10184
4f7d61a8
JK
101852011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10186
10187 PR 12361.
10188 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10189 phsubsw.
10190 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10191 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10192
54fcddd0
UW
101932011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10194
10195 * dwarf2read.c (read_subroutine_type): Set special calling
10196 convention flag for functions compiled by IBM XL C for OpenCL.
10197 * ppc-sysv-tdep.c: Include "dwarf2.h"
10198 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10199 calling convention.
10200 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10201 IBM OpenCL vector types calling convention.
10202 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10203 (ppc_sysv_abi_broken_return_value): Likewise.
10204 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10205 types calling convention.
10206 (ppc64_sysv_abi_return_value): Likewise.
10207 * spu-tdep.c: Include "dwarf2.h"
10208 (spu_return_value): Implement IBM OpenCL vector types calling
10209 convention.
10210
d6dafb7c
UW
102112011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10212
10213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10214 correct ABI for AltiVec vector arguments.
10215
32b72a42
PA
102162011-02-07 Pedro Alves <pedro@codesourcery.com>
10217
10218 * valprint.c (val_print): Extend comment.
10219 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10220 interface explanation to val_print.
10221 (ada_val_print_array): Adjust comment to current interface.
10222 (print_field_values): Adjust comment to current interface.
10223 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10224 explanation to val_print.
10225 * f-valprint.c (f_val_print): Ditto.
10226 * jv-valprint.c (java_val_print): Ditto.
10227 * m2-valprint.c (m2_val_print): Ditto.
10228 * p-valprint.c (pascal_val_print): Ditto.
10229
9998af43
TJB
102302011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10231
10232 * breakpoint.c (parse_breakpoint_sals): Fix description.
10233
505500db 102342011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10235 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10236
10237 * python/py-inferior.c (python_on_normal_stop): New function.
10238 (python_on_resume): New function.
10239 (python_inferior_exit): New function.
10240 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10241 inferior_exit observers.
10242 * python/py-evtregistry.c: New file.
10243 * python/py-threadevent.c : New file.
10244 * python/py-event.c: New file.
10245 * python/py-evts.c: New file.
10246 * python/py-continueevent.c: New file.
10247 * python/py-bpevent.c: New file.
10248 * python/py-signalevent.c: New file.
10249 * python/py-exetiedevent.c: New file.
10250 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10251 Move struct breakpoint_object from here...
10252 * python/python-internal.h: ... to here.
10253 * python/py-event.h: New file.
10254 * python/py-events.h: New file.
10255 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10256 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10257 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10258 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10259 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10260 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10261 Add build rules for all the above.
10262
9e0ac564
TT
102632011-02-04 Tom Tromey <tromey@redhat.com>
10264
10265 * dwarf2read.c (dwarf2_section_empty_p): New function.
10266 (dwarf2_read_section): Use dwarf2_section_empty_p.
10267 (dwarf2_section_size): New function.
10268 (dwarf2_get_section_info): Unconditionally read section.
10269 (dwarf2_read_index): Use dwarf2_section_empty_p.
10270 (partial_read_comp_unit_head): Use dwarf2_section_size.
10271 (dwarf2_symbol_mark_computed): Likewise.
10272
eee5b35e
DD
102732011-02-04 David Daney <ddaney@caviumnetworks.com>
10274
10275 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10276
385203ed
DD
102772011-02-04 David Daney <ddaney@caviumnetworks.com>
10278
10279 * mips-linux-tdep.c: Include xml-syscall.h.
10280 (mips_linux_get_syscall_number): New function.
10281 (mips_linux_init_abi): Add calls to
10282 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10283 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10284 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10285 * syscalls/mips-n32-linux.xml: New file.
10286 * syscalls/mips-n64-linux.xml: New file.
10287 * syscalls/mips-o32-linux.xml: New file.
10288
9277c30c
UW
102892011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10290
10291 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10292 Complain about inverted range entries.
10293 (dwarf2_record_block_ranges): Likewise.
10294
a3be7890
TJB
102952011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10296
10297 Fix some typos.
10298 * breakpoint.c (update_watchpoint): Fix name of the
10299 update_global_location_list function.
10300 (print_one_breakpoint): Fix typo.
10301 (_initialize_breakpoint): Remove extra space in hbreak help
10302 string.
10303 * breakpoint.h (struct bp_location) <length>: Fix field
10304 description.
10305
041274d8
PA
103062011-02-04 Pedro Alves <pedro@codesourcery.com>
10307
10308 * regcache.c (registers_changed_ptid): Don't explictly always
10309 clear `current_regcache'. Only clear current_thread_ptid and
10310 current_thread_arch when PTID matches. Only reinit the frame
10311 cache if PTID matches the current inferior_ptid. Move alloca(0)
10312 call to ...
10313 (registers_changed): ... here.
10314
c1c2ab58
UW
103152011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10316
10317 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10318 starts with __stack_chk_guard as stack guard symbol.
10319
9011945e
AB
103202011-02-03 Andrew Burgess <aburgess@broadcom.com>
10321
10322 * disasm.c (compare_lines): Handle the end of sequence markers
10323 within the line table to better support disassembling over
10324 compilation unit boundaries.
10325
e0634ccf
UW
103262011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10327
10328 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10329 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10330 implementation even if no symbols are available.
10331 (thumb_analyze_prologue): Update call to skip_prologue_function.
10332 (arm_analyze_prologue): Likewise.
10333
0e9e9abd
UW
103342011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10335
10336 * arm-tdep.c: Include "observer.h".
10337 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10338 (arm_exidx_data_key): New static variable.
10339 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10340 (struct arm_exidx_data): Likewise.
10341 (arm_exidx_data_free): New function.
10342 (arm_compare_exidx_entries): Likewise.
10343 (arm_obj_section_from_vma): Likewise.
10344 (arm_exidx_new_objfile): Likewise.
10345 (arm_find_exidx_entry): Likewise.
10346 (arm_exidx_fill_cache): Likewise.
10347 (arm_exidx_unwind_sniffer): Likewise.
10348 (arm_exidx_unwind): New global variable.
10349 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10350 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10351 observer. Register arm_exidx_data_key as objfile data.
10352
2e9e421f
UW
103532011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10354
10355 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10356 due to accessing uninitialized variable. Fix indentation.
10357
580688f3
PA
103582011-02-02 Pedro Alves <pedro@codesourcery.com>
10359
10360 * c-valprint.c (c_value_print): When doing virtual base pointer
10361 adjustment, create a new value with adjusted contents rather than
10362 changing the contents of the value being printed (and getting it
10363 wrong).
10364
3d2c1d41
PA
103652011-02-02 Pedro Alves <pedro@codesourcery.com>
10366
10367 * xml-support.c (xml_find_attribute): New.
10368 (xinclude_start_include): Use it.
10369 * xml-support.h (xml_find_attribute): Declare.
10370 * memory-map.c (memory_map_start_memory)
10371 (memory_map_start_property): Use xml_find_attribute.
10372 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10373 xml_find_attribute.
10374 * remote.c (start_thread): Use xml_find_attribute.
10375 * solib-target.c (library_list_start_segment)
10376 (library_list_start_section, library_list_start_library)
10377 (library_list_start_list): Use xml_find_attribute.
10378 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10379 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10380 (tdesc_start_field): Use xml_find_attribute.
10381
0af3e2db
UW
103822011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10383
10384 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10385 (BUILD_OCL_VTYPES): Update.
10386
c1039e3c
JB
103872011-02-02 Joel Brobecker <brobecker@adacore.com>
10388
10389 * configure.ac: Work around non-GNU sed limitation when computing
10390 python version number.
10391 * configure: Regenerate.
10392
600ea1be
JK
103932011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 Fix debug printing of TYPE_INSTANCE.
10396 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10397 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10398
56c12414
JK
103992011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10400
10401 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10402 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10403 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10404 * ada-operator.inc: Rename the file to ...
10405 * ada-operator.def: ... here, wrap all the entries by macro OP.
10406 * expprint.c (op_name_standard): Remove all the entries. Include
10407 "std-operator.def" instead.
10408 * expression.h (enum exp_opcode): Include "std-operator.def" and
10409 "ada-operator.def". Move all the entries ...
10410 * std-operator.def: ... here, wrap all the entries by macro OP.
10411
c52b559d
PP
104122011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10413
10414 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10415 * breakpoint.c (remove_jit_event_breakpoints): New function.
10416 * jit.c (jit_descriptor_addr): Delete.
10417 (registering_code): Delete.
10418 (clear_int): Delete.
10419 (jit_inferior_data): New variable.
10420 (struct jit_inferior_data): New type.
10421 (get_jit_inferior_data): New function.
10422 (jit_inferior_data_cleanup): New function.
10423 (jit_read_descriptor): Adjust.
10424 (jit_register_code): Adjust.
10425 (jit_breakpoint_re_set_internal): New function; move code here ...
10426 (jit_inferior_init): ... from here.
10427 (jit_breakpoint_re_set): Adjust.
10428 (jit_reset_inferior_data_and_breakpoints): New function.
10429 (jit_inferior_created_observer): Adjust.
10430 (jit_inferior_exit_hook): Adjust.
10431 (jit_executable_changed_observer): New function.
10432 (jit_event_handler): Adjust.
10433 (_initialize_jit): Adjust.
10434
e839132d
MS
104352011-01-31 Michael Snyder <msnyder@vmware.com>
10436
10437 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10438 line.
10439
47a80e90
TT
104402011-01-31 Tom Tromey <tromey@redhat.com>
10441
10442 PR python/12216:
10443 * python/python.c (execute_gdb_command): Call
10444 prevent_dont_repeat.
10445 * top.c (suppress_dont_repeat): New global.
10446 (dont_repeat): Use it.
10447 (prevent_dont_repeat): New function.
10448 * command.h (prevent_dont_repeat): Declare.
10449
45a43567
TT
104502011-01-31 Tom Tromey <tromey@redhat.com>
10451
10452 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10453 * python/py-breakpoint.c (bppy_set_silent): Use
10454 breakpoint_set_silent.
10455 (bppy_set_thread): Use breakpoint_set_thread.
10456 (bppy_set_task): Use breakpoint_set_task.
10457 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10458 (breakpoint_set_task): Declare.
10459 (make_breakpoint_silent): Remove.
10460 * breakpoint.c (breakpoint_set_silent): New function.
10461 (breakpoint_set_thread): Likewise.
10462 (breakpoint_set_task): Likewise.
10463 (make_breakpoint_silent): Remove.
10464
09d682a4
TT
104652011-01-31 Tom Tromey <tromey@redhat.com>
10466
10467 * breakpoint.h (user_breakpoint_p): Declare.
10468 * breakpoint.c (user_breakpoint_p): New function.
10469 (breakpoint_1): Use it.
10470 (save_breakpoints): Likewise.
10471
9c4ea6c5
JB
104722011-01-31 Joel Brobecker <brobecker@adacore.com>
10473
10474 * configure.ac: Add handling of Python distribution on Windows.
10475 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10476 sysconfig variables are not defined, then do not use them.
10477 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10478 instead. On Windows, return all paths using forward-slashes
10479 rather than backslashes.
10480
ac534cba
JB
104812011-01-31 Joel Brobecker <brobecker@adacore.com>
10482
10483 * configure.ac: Remove fallback behavior for building
10484 against Python. Remove tweaking of Python include path.
10485 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10486 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10487 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10488 Always restore CPPFLAGS and LIBS after linking test.
10489 * configure: Regenerated.
10490 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10491 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10492 * python/python-internal.h: Adjust includes of Python .h files.
10493
c2f0d045
JB
104942011-01-31 Joel Brobecker <brobecker@adacore.com>
10495
10496 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10497 in error message.
10498
6b0c4c1f
JB
104992011-01-31 Joel Brobecker <brobecker@adacore.com>
10500
10501 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10502 value test.
10503
672c9795
YQ
105042011-01-31 Yao Qi <yao@codesourcery.com>
10505
10506 * arm-linux-nat.c: Update calls to regcache_register_status
10507 instead of regcache_valid_p.
10508 * aix-thread.c: Likewise.
10509 * i386gnu-nat.c: Likewise.
10510
80b23b6a
JK
105112011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10512
10513 Fix crash.
10514 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10515 touching TYPE_FIELD_ARTIFICIAL.
10516
4cd712bd
RE
105172011-01-28 Richard Earnshaw <rearnsha@arm.com>
10518
10519 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10520 Committers.
10521
ffd5ec24
PA
105222011-01-28 Pedro Alves <pedro@codesourcery.com>
10523
10524 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10525 selected, don't try iterating over the traceframe's blocks.
10526 (tfile_has_stack): If there's no traceframe selected, then there's
10527 no stack.
10528 (tfile_has_registers): If there's no traceframe selected, then
10529 there's no registers.
10530
e8c9e0a1
PA
105312011-01-28 Pedro Alves <pedro@codesourcery.com>
10532
10533 * target.c (memory_xfer_partial): No need to restore shadows if we
10534 haven't read anything.
10535
de15c4ab
PA
105362011-01-28 Pedro Alves <pedro@codesourcery.com>
10537
10538 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10539 and val_print_scalar_formatted.
10540
9f41c731
PA
105412011-01-27 Pedro Alves <pedro@codesourcery.com>
10542
10543 * tracepoint.c (tfile_read): New.
10544 (tfile_open): Use it.
10545 (tfile_get_traceframe_address): Use it.
10546 (tfile_trace_find): Use it.
10547 (walk_blocks_callback_func): New typedef.
10548 (match_blocktype): New function.
10549 (traceframe_walk_blocks): New function.
10550 (traceframe_find_block_type): New function.
10551 (tfile_fetch_registers, tfile_xfer_partial)
10552 (tfile_get_trace_state_variable_value): Use
10553 traceframe_find_block_type and tfile_read.
10554
cdefc55d
KB
105552011-01-26 Kevin Buettner <kevinb@redhat.com>
10556
10557 * remote-mips.c: Add internationalization mark ups. Remove
10558 trailing \n from already marked up strings.
10559
a81766d8
TT
105602011-01-26 Tom Tromey <tromey@redhat.com>
10561
10562 * python/py-prettyprint.c (print_string_repr): Clear
10563 'addressprint' option when calling val_print_string.
10564 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10565 option when calling val_print_string.
10566
74aedc46
TT
105672011-01-26 Tom Tromey <tromey@redhat.com>
10568
10569 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10570 GDB_PY_LL_ARG.
10571 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10572 macros.
10573 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10574 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10575 (gdb_py_long_as_ulongest): New defines.
10576 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10577 (gdb_py_int_as_long): Declare.
10578 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10579 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10580 (valpy_long): Add comment.
10581 * python/py-utils.c (get_addr_from_python): Use
10582 gdb_py_long_as_ulongest. Handle overflow properly.
10583 (gdb_py_object_from_longest): New function.
10584 (gdb_py_object_from_ulongest): Likewise.
10585 (gdb_py_int_as_long): Likewise.
10586 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10587 * python/py-symtab.c (salpy_get_pc): Use
10588 gdb_py_long_from_ulongest.
10589 (salpy_get_line): Use PyInt_FromLong.
10590 * python/py-param.c (set_parameter_value): Use
10591 gdb_py_int_as_long.
10592 * python/py-lazy-string.c (stpy_get_address): Use
10593 gdb_py_long_from_ulongest.
10594 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10595 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10596 * python/py-breakpoint.c (bppy_set_thread): Use
10597 gdb_py_int_as_long.
10598 (bppy_set_task): Likewise.
10599 (bppy_set_ignore_count): Likewise.
10600 (bppy_set_hit_count): Likewise.
10601 * python/py-block.c (blpy_get_start): Use
10602 gdb_py_object_from_ulongest.
10603 (blpy_get_end): Likewise.
10604 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10605
e4f6d2ec
TJB
106062011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10607
10608 PR/symtab 11766:
10609 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10610 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10611 equality test for objfile, initialize addr_low if needed.
10612
b30aa278
PA
106132011-01-25 Pedro Alves <pedro@codesourcery.com>
10614
10615 * tui/tui-regs.c (tui_register_format): Remove dead code.
10616
ab2188aa
PA
106172011-01-25 Pedro Alves <pedro@codesourcery.com>
10618
10619 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10620 instead of print_scalar_formatted.
10621 (print_scalar_formatted): Don't handle 's' format strings here,
10622 and add an assertion that we never see such format here.
10623 * valprint.h (val_print_scalar_formatted): Declare.
10624 * valprint.c (val_print_scalar_formatted): New.
10625 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10626 instead of print_scalar_formatted.
10627 * jv-valprint.c (java_val_print): Ditto.
10628 * p-valprint.c (pascal_val_print): Ditto.
10629 * ada-valprint.c (ada_val_print_1): Ditto.
10630 * f-valprint.c (f_val_print): Ditto.
10631 * infcmd.c (registers_info): Ditto.
10632 * m2-valprint.c (m2_val_print): Ditto.
10633
66d61a4c
PA
106342011-01-25 Pedro Alves <pedro@codesourcery.com>
10635
10636 * m2-valprint.c (print_unbounded_array): Pass
10637 value_contents_for_printing rather than value_contents, to
10638 m2_print_array_contents. Also pass in the value.
10639
831adc1f
JK
106402011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10641
10642 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10643 (save_gdb_index_command): Switch to .gdb_index version 4.
10644
20622269
PA
106452011-01-25 Pedro Alves <pedro@codesourcery.com>
10646
10647 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10648 than frame_register, and always pass a valid value to val_print.
10649
585fdaa1
PA
106502011-01-25 Pedro Alves <pedro@codesourcery.com>
10651
10652 Centralize printing "<optimized out>".
10653
10654 * valprint.h (val_print_optimized_out): Declare.
10655 * cp-valprint.c (cp_print_value_fields): Use
10656 val_print_optimized_out.
10657 * jv-valprint.c (java_print_value_fields): Ditto.
10658 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10659 * printcmd.c (print_formatted): Ditto.
10660 * valprint.c (valprint_check_validity): Ditto.
10661 (value_check_printable): Ditto.
10662 (val_print_optimized_out): New.
10663
29ec5263
PA
106642011-01-25 Pedro Alves <pedro@codesourcery.com>
10665
10666 * infcmd.c (default_print_registers_info): Allocate values so to
10667 never pass a NULL value to val_print.
10668
de4127a3
PA
106692011-01-25 Pedro Alves <pedro@codesourcery.com>
10670
10671 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10672 boolean. Make sure to always pass a value that matches the
10673 contents buffer to callees. Preserve `address' for following
10674 iterations.
10675 * value.c (value_contents_for_printing_const): New.
10676 (value_address): Constify value argument.
10677 * value.h (value_contents_for_printing_const): Declare.
10678 (value_address): Constify value argument.
10679
ee99023e
PA
106802011-01-25 Pedro Alves <pedro@codesourcery.com>
10681
10682 * regcache.c (struct regcache_descr): Rename
10683 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10684 and sizeof_cooked_register_valid_p to
10685 sizeof_cooked_register_status.
10686 (init_regcache_descr): Adjust.
10687 (struct regcache): Rename register_valid_p field to
10688 register_status.
10689 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10690 (do_cooked_read): Adjust.
10691 (regcache_valid_p): Rename to ...
10692 (regcache_register_status): ... this. Adjust.
10693 (regcache_invalidate): Adjust.
10694 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10695 Adjust.
10696 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10697 as unavailable, not valid.
10698 (regcache_dump): Adjust.
10699 * regcache.h (enum register_status): New.
10700 (regcache_register_status): Declare.
10701 (regcache_invalidate): Delete declaration.
10702 * corelow.c (get_core_registers): Adjust.
10703 * tracepoint.c (tfile_fetch_registers): Adjust.
10704 * trad-frame.c (REG_VALUE): Rename to ...
10705 (TF_REG_VALUE): ... this.
10706 (REG_UNKNOWN): Rename to ...
10707 (TF_REG_UNKNOWN): ... this.
10708 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10709 * mi/mi-main.c (register_changed_p): Adjust.
10710
99e42fd8
PA
107112011-01-25 Pedro Alves <pedro@codesourcery.com>
10712
10713 * regcache.c (struct regcache_descr): Remove outdated comment.
10714 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10715 overallocate hack.
10716 (regcache_xmalloc): Rename to ...
10717 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10718 Allocate the regcache type accordingly.
10719 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10720 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10721 cooked registers, not raw.
10722 (regcache_dup_no_passthrough): Delete.
10723 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10724 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10725 mention obsolete write_register_bytes.
10726 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10727
f7605bc2
PA
107282011-01-25 Pedro Alves <pedro@codesourcery.com>
10729
10730 Stop remote_read_bytes from handling partial reads itself.
10731
10732 * remote-fileio.c: Include target.h.
10733 (remote_fileio_write_bytes): Delete.
10734 (remote_fileio_func_open, remote_fileio_func_write)
10735 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10736 target_read_memory.
10737 (remote_fileio_func_stat): Use target_read_memory and
10738 target_write_memory.
10739 (remote_fileio_func_gettimeofday): Use target_write_memory.
10740 (remote_fileio_func_system): Use target_read_memory.
10741 * remote.c (remote_write_bytes): Make it static.
10742 (remote_read_bytes): Don't handle partial reads here.
10743 * remote.h (remote_read_bytes): Delete declaration.
10744
efc0eabd
PA
107452011-01-25 Pedro Alves <pedro@codesourcery.com>
10746
10747 Simplify XML parsing a bit.
10748
10749 * xml-support.h (gdb_xml_parse_quick): Declare.
10750 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10751 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10752 parameter.
10753 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10754 gdb_xml_create_parser_and_cleanup_1.
10755 (gdb_xml_parse_quick): New.
10756 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10757 * osdata.c (osdata_parse): Ditto.
10758 * remote.c (remote_threads_info): Ditto.
10759 * solib-target.c (solib_target_parse_libraries): Ditto.
10760 * xml-syscall.c (syscall_parse_xml): Ditto.
10761 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10762
314d366a
KB
107632011-01-24 Kevin Buettner <kevinb@redhat.com>
10764
10765 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10766 with remote-mips.o added to gdb_target_obs.
10767 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10768
a491d753
PA
107692011-01-24 Pedro Alves <pedro@codesourcery.com>
10770
10771 * ada-valprint.c (val_print_packed_array_elements): Pass the
10772 correct struct value to val_print.
10773 (ada_val_print_1): Ditto.
10774
490f124f
PA
107752011-01-24 Pedro Alves <pedro@codesourcery.com>
10776
10777 Don't lose embedded_offset in printing routines throughout.
10778
10779 * valprint.h (val_print_array_elements): Change prototype.
10780 * valprint.c (val_print_array_elements): Add `embedded_offset'
10781 parameter, and adjust to pass it down to val_print, while passing
10782 `valaddr' or `address' unmodified. Take embedded_offset into
10783 account when checking repetitions.
10784 * c-valprint.c (c_val_print): Pass embedded_offset to
10785 val_print_array_elements instead of adjusting `valaddr' and
10786 `address'.
10787 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10788 embedded_offset to val_print_array_elements instead of adjusting
10789 `valaddr'.
10790 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10791 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10792 val_print_array_elements and pascal_object_print_value_fields
10793 instead of adjusting `valaddr'.
10794 (pascal_object_print_value_fields): Add `offset' parameter, and
10795 adjust to use it.
10796 (pascal_object_print_value): Add `offset' parameter, and adjust to
10797 use it.
10798 (pascal_object_print_static_field): Use
10799 value_contents_for_printing/value_embedded_offset, rather than
10800 value_contents.
10801 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10802 parameter, and adjust to use it. Use
10803 value_contents_for_printing/value_embedded_offset, rather than
10804 value_contents.
10805 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10806 (ada_val_print_array): Add `offset' parameter, and adjust to use
10807 it.
10808 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10809 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10810 Instead work with offsets. Use
10811 value_contents_for_printing/value_embedded_offset, rather than
10812 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10813 and use value_from_pointer to extract a target pointer, rather
10814 than value_from_longest.
10815 (print_variant_part): Add `offset' parameter. Replace
10816 `outer_valaddr' parameter by a new `outer_offset' parameter.
10817 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10818 (ada_value_print): Use
10819 value_contents_for_printing/value_embedded_offset, rather than
10820 value_contents.
10821 (print_record): Add `offset' parameter, and adjust to pass it
10822 down.
10823 (print_field_values): Add `offset' parameter. Replace
10824 `outer_valaddr' parameter by a new `outer_offset' parameter.
10825 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10826 Use value_contents_for_printing/value_embedded_offset, rather than
10827 value_contents.
10828 * d-valprint.c (dynamic_array_type): Use
10829 value_contents_for_printing/value_embedded_offset, rather than
10830 value_contents.
10831 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10832 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10833 (java_print_value_fields): Take `offset' into account. Don't
10834 re-adjust `valaddr'. Instead pass down adjusted offsets.
10835 (java_val_print): Take `embedded_offset' into account. Pass it to
10836 java_print_value_fields.
10837 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10838 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10839 down adjusted offsets.
10840 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10841 (f_val_print): Take `embedded_offset' into account.
10842
7bfc9434
JB
108432011-01-21 Joel Brobecker <brobecker@adacore.com>
10844
10845 * inflow.c: Include "gdbcmd.h".
10846 (interactive_mode): New static global, moved here from top.c.
10847 (show_interactive_mode): New function, moved here from top.c.
10848 use gdb_has_a_terminal instead of input_from_terminal_p to
10849 determine the current mode.
10850 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10851 setting.
10852 (_initialize_inflow): Add the "set/show interactive-mode"
10853 commands. Moved here from top.c, after having adjusted slightly
10854 the help text.
10855 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10856 to inflow.c.
10857 (input_from_terminal_p): Remove handling of "interactive-mode"
10858 setting, moved to infow.c.
10859 (init_main): Remove creation of the "set/show interactive-mode"
10860 commands, moved to inflow.c.
10861
44603653
JB
108622011-01-19 Joel Brobecker <brobecker@adacore.com>
10863
10864 * NEWS: Add entry for native ia64-hpux support.
10865
4694da01
TT
108662011-01-19 Tom Tromey <tromey@redhat.com>
10867
10868 PR mi/8618:
10869 * thread.c (free_thread): Free 'name'.
10870 (print_thread_info): Emit thread name. Change CLI output.
10871 (thread_name_command): New function.
10872 (do_captured_thread_select): Emit newline.
10873 (_initialize_thread): Register 'thread name' command.
10874 * target.h (struct target_ops) <to_thread_name>: New field.
10875 (target_thread_name): New macro.
10876 * target.c (update_current_target): Handle to_thread_name.
10877 * python/py-infthread.c (thpy_get_name): New function.
10878 (thpy_set_name): Likewise.
10879 (thread_object_getset): Add "name".
10880 * linux-nat.c (linux_nat_thread_name): New function.
10881 (linux_nat_add_target): Set to_thread_name.
10882 * gdbthread.h (struct thread_info) <name>: New field.
10883
10d44370
JB
108842011-01-18 Joel Brobecker <brobecker@adacore.com>
10885
10886 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10887 (ada_val_print_1): Likewise.
10888
e3acb115
JB
108892011-01-18 Joel Brobecker <brobecker@adacore.com>
10890
10891 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10892 upper limit address is not greater than the function end address
10893 when the upper limit could not be computed using the debugging
10894 info.
10895
dc92e161
TT
108962011-01-17 Tom Tromey <tromey@redhat.com>
10897
10898 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10899 get_regcomp_error.
10900 * utils.c: Include gdb_regex.h.
10901 (do_regfree_cleanup): New function.
10902 (make_regfree_cleanup): Likewise.
10903 (get_regcomp_error): Likewise.
10904 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10905
f55af66d
TT
109062011-01-17 Tom Tromey <tromey@redhat.com>
10907
10908 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10909 re_compile_fastmap.
10910
a5a44b53
PM
109112011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10912
10913 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10914 for internal variables.
10915 (last_was_structop): New static variable.
10916 (COMPLETE): New token.
10917 (field_exp): New rule to group all '.' suffix handling.
10918 Add mark_struct_expression calls when approriate to be able
10919 to correctly find fields for completion.
10920 (yylex): Adapt to handle field completion and set INTVAR when
10921 required.
10922
2c291032
YQ
109232011-01-14 Yao Qi <yao@codesourcery.com>
10924
10925 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10926 save_reggroup, restore_reggroup and all_reggroup.
10927
447b483c
JB
109282011-01-14 Joel Brobecker <brobecker@adacore.com>
10929
10930 * ada-valprint. (ada_printchar): Use the correct type length
10931 in call to ada_emit_char.
10932 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10933
7b64a93b
PM
109342011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10935
10936 * solib-som.h (hpux_major_release): Declare variable here.
10937 * solib-som.c: Remove <sys/utsname.h> header.
10938 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10939 (hpux_major_release): Make global, change default value to
10940 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10941 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10942 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10943 Add "solib-som.h" header.
10944 (set_hpux_major_release): New function.
10945 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10946
4e18c053
MF
109472011-01-14 Mike Frysinger <vapier@gentoo.org>
10948
10949 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10950
a9df6b22
JB
109512011-01-14 Joel Brobecker <brobecker@adacore.com>
10952
10953 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10954 new-line at end of warning message.
10955 (ia64_hpux_store_register): Remove trailing new-line at end of
10956 error message.
10957 * ia64-hpux-tdep.c: Rephrase comment.
10958 * solib-ia64-hpux.c (struct dld_info): Change type of field
10959 dld_flags from "long long" to ULONGEST.
10960
ecb956dd
PA
109612011-01-14 Pedro Alves <pedro@codesourcery.com>
10962
10963 * target.h (deprecated_child_ops): Delete declaration.
10964 * target.c (deprecated_child_ops): Delete definition.
10965
76adfcae
PA
109662011-01-14 Pedro Alves <pedro@codesourcery.com>
10967
10968 * Makefile.in (hpux-thread.o): Delete rule.
10969 * configure.ac: Don't check for HPUX DCE threads support.
10970 * configure, config.in: Regenerate.
10971 * hppa-hpux-nat.c (child_suppress_run): Delete.
10972 (hppa_hpux_child_can_run): Delete.
10973 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10974 * hpux-thread.c: Delete.
10975
042e866e
JB
109762011-01-13 Joel Brobecker <brobecker@adacore.com>
10977
10978 * hpux-thread.c (hpux_pid_to_str): Delete.
10979
4ffa5a33
JB
109802011-01-13 Joel Brobecker <brobecker@adacore.com>
10981
10982 * ada-valprint.c (ada_emit_char): Remove strange code.
10983 Check that c is <= UCHAR_MAX before passing it to isascii.
10984 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10985
de8fa76c
JB
109862011-01-13 Joel Brobecker <brobecker@adacore.com>
10987
10988 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10989 to the case where instream is stdin.
10990
c4de7027
JB
109912011-01-13 Joel Brobecker <brobecker@adacore.com>
10992
10993 * ia64-tdep.h (struct regcache): Forward declare.
10994 (struct ia64_infcall_ops): New struct type.
10995 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10996 and "infcall_ops".
10997 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10998 Renames ia64_find_global_pointer.
10999 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11000 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11001 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11002 methods.
11003 (ia64_infcall_ops): New static global constant.
11004 (ia64_gdbarch_init): Set tdep->infcall_ops.
11005 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11006 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11007 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11008 (ia64_hpux_dummy_code): New static global constant.
11009 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11010 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11011 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11012 New function.
11013 (ia64_hpux_infcall_ops): New static global constant.
11014 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11015 for inferior function calls to work properly on ia64-hpux.
11016
77ca787b
JB
110172011-01-13 Joel Brobecker <brobecker@adacore.com>
11018
11019 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11020 * ia64-tdep.h (struct frame_info): forward declaration.
11021 (struct gdbarch_tdep): Add field size_of_register_frame.
11022 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11023 to determine the size of the register frame.
11024 (ia64_size_of_register_frame): New function.
11025 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11026 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11027 (IA64_HPUX_UREG_REASON): New macro.
11028 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11029 New functions.
11030 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11031 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11032 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11033 objects.
11034
92c9a463
JB
110352011-01-13 Joel Brobecker <brobecker@adacore.com>
11036
11037 Add support for ia64-hpux.
11038 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11039 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11040
11041 * configure.host: Add handling for ia64-hpux hosts. Add associated
11042 floatformats.
11043 * configure.tgt: Add handling for ia64-hpux targets.
11044 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11045 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11046 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11047
f688d93f
JB
110482011-01-13 Joel Brobecker <brobecker@adacore.com>
11049
11050 [ttrace] Compute thread list immediately after attach.
11051 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11052 New subprogram.
11053 (inf_ttrace_attach): Use it.
11054
1b89e62f
JB
110552011-01-13 Joel Brobecker <brobecker@adacore.com>
11056
11057 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11058 if we could not determine the frame's function address. Instead,
11059 use the frame's PC, and then continue.
11060
3e5e6e2a
JB
110612011-01-13 Joel Brobecker <brobecker@adacore.com>
11062
11063 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11064 not already defined.
11065
825d6d8a
JB
110662011-01-13 Joel Brobecker <brobecker@adacore.com>
11067
11068 * ia64-tdep.c (ia64_struct_type_p): New function.
11069 (ia64_extract_return_value): Handle integral values that are
11070 less than 8 bytes long.
11071 (ia64_push_dummy_call): Likewise.
11072
7458e667
JB
110732011-01-13 Joel Brobecker <brobecker@adacore.com>
11074
11075 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11076 floatformat_ia64_ext.
11077 (floatformat_ia64_ext_big): New static const.
11078 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11079
1b05df00
TT
110802011-01-12 Tom Tromey <tromey@redhat.com>
11081
11082 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11083 messages.
11084 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11085 (mi_cmd_thread_list_ids): Likewise.
11086 (mi_cmd_data_list_changed_registers): Likewise.
11087 (mi_cmd_data_list_register_values): Likewise.
11088 (mi_cmd_data_write_register_values): Likewise.
11089 (mi_cmd_data_evaluate_expression): Likewise.
11090 (mi_cmd_data_read_memory): Likewise.
11091 (mi_cmd_data_read_memory_bytes): Likewise.
11092 (mi_cmd_data_write_memory): Likewise.
11093 (mi_cmd_enable_timings): Likewise.
11094 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11095 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11096 (mi_cmd_var_delete): Likewise.
11097 (mi_cmd_var_set_format): Likewise.
11098 (mi_cmd_var_show_format): Likewise.
11099 (mi_cmd_var_info_num_children): Likewise.
11100 (mi_cmd_var_list_children): Likewise.
11101 (mi_cmd_var_info_type): Likewise.
11102 (mi_cmd_var_info_expression): Likewise.
11103 (mi_cmd_var_show_attributes): Likewise.
11104 (mi_cmd_var_assign): Likewise.
11105 (mi_cmd_var_update): Likewise.
11106 (mi_cmd_enable_pretty_printing): Likewise.
11107 (mi_cmd_var_set_update_range): Likewise.
11108 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11109 messages.
11110 (mi_cmd_target_file_put): Likewise.
11111 (mi_cmd_target_file_delete): Likewise.
11112 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11113 messages.
11114 (mi_cmd_stack_info_depth): Likewise.
11115 (mi_cmd_stack_list_locals): Likewise.
11116 (mi_cmd_stack_list_args): Likewise.
11117 (mi_cmd_stack_select_frame): Likewise.
11118 (mi_cmd_stack_select_frame): Likewise.
11119 (mi_cmd_stack_info_frame): Likewise.
11120 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11121 messages.
11122 (mi_cmd_file_list_exec_source_files): Likewise.
11123 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11124 (mi_cmd_env_cd): Likewise.
11125 (mi_cmd_env_path): Likewise.
11126 (mi_cmd_env_dir): Likewise.
11127 (mi_cmd_inferior_tty_show): Likewise.
11128 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11129 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11130 (mi_cmd_break_watch): Likewise.
11131
ad422571
TJB
111322011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11133
11134 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11135 (ppc_linux_insert_hw_breakpoint): Likewise.
11136 (ppc_linux_remove_hw_breakpoint): Likewise.
11137 (ppc_linux_insert_watchpoint): Likewise.
11138
c2ff108b
JK
111392011-01-12 Andrew Burgess <aburgess@broadcom.com>
11140 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 PR fortran/11104 and DWARF unbound arrays detection.
11143 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11144 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11145 unspecified upper bound.
11146 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11147 variables array_size_array, tmp_type and offset_item. New variable
11148 array. Remove call to f77_get_upperbound. New variables array_type
11149 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11150 the final call to deprecated_set_value_type.
11151
41e8491f
JK
111522011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 Make value allocations more lazy.
11155 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11156 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11157 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11158 instead of allocate_value and set_value_lazy.
11159 * findvar.c (value_of_register_lazy): Likewise.
11160 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11161 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11162 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11163 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11164 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11165 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11166 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11167 the end, remove set_value_lazy there.
11168 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11169 instead of allocate_value and set_value_lazy when possible.
11170 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11171 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11172 of allocate_value and set_value_lazy.
11173 (value_from_contents_and_address): Use allocate_value_lazy instead of
11174 allocate_value and set_value_lazy when possible.
11175
b716877b
AB
111762011-01-12 Andrew Burgess <aburgess@broadcom.com>
11177
11178 * disasm.c (dump_insns): Support dumping opcodes for MI.
11179 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11180 dumping of instruction opcodes.
11181
d5ae309f
JB
111822011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11183
11184 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11185 appropiately.
11186
98871305
TT
111872011-01-11 Tom Tromey <tromey@redhat.com>
11188
11189 * thread.c (do_captured_thread_select): Emit newline before
11190 printing frame.
11191
c378eb4e
MS
111922011-01-11 Michael Snyder <msnyder@vmware.com>
11193
11194 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11195 * score-tdep.c: Ditto.
11196 * score-tdep.h: Ditto.
11197 * ser-base.c: Ditto.
11198 * ser-go32.c: Ditto.
11199 * serial.c: Ditto.
11200 * serial.h: Ditto.
11201 * ser-mingw.c: Ditto.
11202 * ser-pipe.c: Ditto.
11203 * ser-tcp.c: Ditto.
11204 * ser-unix.c: Ditto.
11205 * sh64-tdep.c: Ditto.
11206 * shnbsd-nat.c: Ditto.
11207 * sh-tdep.c: Ditto.
11208 * sh-tdep.h: Ditto.
11209 * solib.c: Ditto.
11210 * solib-darwin.c: Ditto.
11211 * solib-frv.c: Ditto.
11212 * solib.h: Ditto.
11213 * solib-irix.c: Ditto.
11214 * solib-osf.c: Ditto.
11215 * solib-pa64.c: Ditto.
11216 * solib-som.c: Ditto.
11217 * solib-spu.c: Ditto.
11218 * solib-sunos.c: Ditto.
11219 * solib-svr4.c: Ditto.
11220 * solist.h: Ditto.
11221 * sol-thread.c: Ditto.
11222 * somread.c: Ditto.
11223 * source.c: Ditto.
11224 * source.h: Ditto.
11225 * sparc64-linux-tdep.c: Ditto.
11226 * sparc64-tdep.c: Ditto.
11227 * sparc-linux-nat.c: Ditto.
11228 * sparc-linux-tdep.c: Ditto.
11229 * sparc-sol2-nat.c: Ditto.
11230 * sparc-sol2-tdep.c: Ditto.
11231 * sparc-tdep.c: Ditto.
11232 * sparc-tdep.h: Ditto.
11233 * spu-tdep.c: Ditto.
11234 * stabsread.c: Ditto.
11235 * stabsread.h: Ditto.
11236 * stack.c: Ditto.
11237 * symfile.c: Ditto.
11238 * symfile.h: Ditto.
11239 * symmisc.c: Ditto.
11240 * symtab.c: Ditto.
11241 * symtab.h: Ditto.
11242 * target.c: Ditto.
11243 * target-descriptions.c: Ditto.
11244 * target-descriptions.h: Ditto.
11245 * target.h: Ditto.
11246 * target-memory.c: Ditto.
11247 * terminal.h: Ditto.
11248 * thread.c: Ditto.
11249 * top.c: Ditto.
11250 * tracepoint.c: Ditto.
11251 * tracepoint.h: Ditto.
11252 * trad-frame.h: Ditto.
11253 * typeprint.c: Ditto.
11254
581e13c1
MS
112552011-01-11 Michael Snyder <msnyder@vmware.com>
11256
11257 * ui-file.c: Comment cleanup, mostly periods and spaces.
11258 * ui-file.h: Ditto.
11259 * ui-out.c: Ditto.
11260 * ui-out.h: Ditto.
11261 * utils.c: Ditto.
11262 * v850-tdep.c: Ditto.
11263 * valarith.c: Ditto.
11264 * valops.c: Ditto.
11265 * valprint.c: Ditto.
11266 * valprint.h: Ditto.
11267 * value.c: Ditto.
11268 * value.h: Ditto.
11269 * varobj.c: Ditto.
11270 * varobj.h: Ditto.
11271 * vax-tdep.c: Ditto.
11272 * vec.c: Ditto.
11273 * vec.h: Ditto.
11274 * version.h: Ditto.
11275 * windows-nat.c: Ditto.
11276 * windows-tdep.c: Ditto.
11277 * xcoffread.c: Ditto.
11278 * xcoffsolib.c: Ditto.
11279 * xml-support.c: Ditto.
11280 * xstormy16-tdep.c: Ditto.
11281 * xtensa-tdep.c: Ditto.
11282 * xtensa-tdep.h: Ditto.
11283
90e4670f
TJB
112842011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11285
11286 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11287 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11288
e09342b5
TJB
112892011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11290 Thiago Jung Bauermann <bauerman@br.ibm.com>
11291
11292 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11293 * breakpoint.h
e09342b5
TJB
11294 (struct breakpoint_ops) <resources_needed>: New method.
11295 Initialize to NULL in all existing breakpoint_ops instances.
11296 (struct breakpoint) <exact>: New field.
11297 (target_exact_watchpoints): Declare external global.
11298 * breakpoint.c (target_exact_watchpoints): New global flag.
11299 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11300 b->enable_state to bp_enabled before calling
11301 hw_watchpoint_used_count.
11302 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11303 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11304 if available.
11305 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11306 if the watchpoint is exact.
11307 (resources_needed_watchpoint): New function.
11308 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11309 (watch_command_1): Set b->exact if the user asked for an exact
11310 watchpoint and one can be set.
11311 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11312 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11313 the user asks for an exact watchpoint and one can be set. Return
11314 number of needed debug registers to watch the expression.
11315 * gdbtypes.c (is_scalar_type): New function, based on
11316 valprint.c:scalar_type_p.
11317 (is_scalar_type_recursive): New function.
11318 * gdbtypes.h (is_scalar_type_recursive): Declare.
11319 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11320 handle regions when ranged watchpoints are available.
11321 (create_watchpoint_request): New function.
11322 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11323 create_watchpoint_request.
11324 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11325 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11326 `set powerpc' and `show powerpc' commands.
11327 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11328 Mention documentation comment in the target macro.
11329 (target_region_ok_for_hw_watchpoint): Document return value.
11330
9fa40276
TJB
113312011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11332
11333 * breakpoint.c (update_watchpoint): Decide on using a software or
11334 hardware watchpoint after the bp_locations are created.
11335
77b06cd7
TJB
113362010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11337
11338 Convert hardware watchpoints to use breakpoint_ops.
11339 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11340 <insert_location>: ... this. Return int instead of void.
11341 Accept pointer to struct bp_location instead of pointer to
11342 struct breakpoint. Adapt all implementations.
f2eb0bc8 11343 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11344 <remove_location>: ... this. Accept pointer to struct bp_location
11345 instead of pointer to struct breakpoint. Adapt all implementations.
11346 * breakpoint.c (insert_catchpoint): Delete function.
11347 (insert_bp_location): Call the watchpoint or catchpoint's
11348 breakpoint_ops.insert method.
11349 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11350 breakpoint_ops.remove method.
11351 (insert_watchpoint, remove_watchpoint): New functions.
11352 (watchpoint_breakpoint_ops): New structure.
11353 (watch_command_1): Initialize the OPS field.
11354 * inf-child.c (inf_child_insert_fork_catchpoint)
11355 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11356 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11357 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11358 Delete functions.
11359 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11360 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11361 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11362 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11363 * target.c (update_current_target): Change default implementation of
11364 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11365 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11366 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11367 to_set_syscall_catchpoint to return_one.
11368 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11369 (debug_to_insert_exec_catchpoint): Report return value.
11370 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11371 (to_insert_exec_catchpoint): Change declaration to return int instead
11372 of void.
11373
9b20d036
MS
113742011-01-11 Michael Snyder <msnyder@vmware.com>
11375
11376 * arm-tdep.c: Internationalization.
11377 * c-lang.c: Ditto.
11378 * charset.c: Ditto.
11379 * fork-child.c: Ditto.
11380 * nto-procfs.c: Ditto.
11381 * ppc-sysv-tdep.c: Ditto.
11382 * procfs.c: Ditto.
11383 * remote-mips.c: Ditto.
11384 * remote.c: Ditto.
11385 * rs6000-nat.c: Ditto.
11386 * rs6000-tdep.c: Ditto.
11387 * target.c: Ditto.
11388 * valops.c: Ditto.
11389 * value.c: Ditto.
11390 * xml-support.c: Ditto.
11391 * mi/mi-cmd-break.c: Ditto.
11392 * mi/mi-cmd-var.c: Ditto.
11393 * mi/mi-interp.c: Ditto.
11394 * mi/mi-main.c: Ditto.
11395
dae477fe
AB
113962011-01-11 Andrew Burgess <aburgess@broadcom.com>
11397
11398 * remote-sim.c (gdbsim_store_register): Update API to
11399 sim_store_register to check more error conditions.
11400
0df8b418
MS
114012011-01-10 Michael Snyder <msnyder@vmware.com>
11402
11403 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11404 * nto-tdep.c: Ditto.
11405 * nto-tdep.h: Ditto.
11406 * objc-exp.y: Ditto.
11407 * objc-lang.c: Ditto.
11408 * objfiles.c: Ditto.
11409 * objfiles.h: Ditto.
11410 * observer.c: Ditto.
11411 * opencl-lang.c: Ditto.
11412 * osabi.c: Ditto.
11413 * parse.c: Ditto.
11414 * parser-defs.h: Ditto.
11415 * p-exp.y: Ditto.
11416 * p-lang.c: Ditto.
11417 * posix-hdep.c: Ditto.
11418 * ppcbug-rom.c: Ditto.
11419 * ppc-linux-nat.c: Ditto.
11420 * ppc-linux-tdep.c: Ditto.
11421 * ppc-linux-tdep.h: Ditto.
11422 * ppcnbsd-tdep.c: Ditto.
11423 * ppcobsd-tdep.c: Ditto.
11424 * ppcobsd-tdep.h: Ditto.
11425 * ppc-sysv-tdep.c: Ditto.
11426 * ppc-tdep.h: Ditto.
11427 * printcmd.c: Ditto.
11428 * proc-abi.c: Ditto.
11429 * proc-flags.c: Ditto.
11430 * procfs.c: Ditto.
11431 * proc-utils.h: Ditto.
11432 * progspace.h: Ditto.
11433 * prologue-value.c: Ditto.
11434 * prologue-value.h: Ditto.
11435 * psympriv.h: Ditto.
11436 * psymtab.c: Ditto.
11437 * p-typeprint.c: Ditto.
11438 * p-valprint.c: Ditto.
11439 * ravenscar-sparc-thread.c: Ditto.
11440 * ravenscar-thread.c: Ditto.
11441 * ravenscar-thread.h: Ditto.
11442 * record.c: Ditto.
11443 * regcache.c: Ditto.
11444 * regcache.h: Ditto.
11445 * remote.c: Ditto.
11446 * remote-fileio.c: Ditto.
11447 * remote-fileio.h: Ditto.
11448 * remote.h: Ditto.
11449 * remote-m32r-sdi.c: Ditto.
11450 * remote-mips.c: Ditto.
11451 * remote-sim.c: Ditto.
11452 * rs6000-aix-tdep.c: Ditto.
11453 * rs6000-nat.c: Ditto.
11454 * rs6000-tdep.c: Ditto.
11455
0d7a18f7
MS
114562011-01-10 Michael Snyder <msnyder@vmware.com>
11457
11458 * charset.c (validate): Internationalization.
11459 * coffread.c (read_one_sym): Ditto.
11460 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11461 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11462 * inflow.c (new_tty): Ditto.
11463 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11464 * m32c-tdep.c (m32c_return_value): Ditto.
11465 * mep-tdep.c (mep_store_return_value): Ditto.
11466 * score-tdep.c (score7_fetch_insn): Ditto.
11467 * ser-mingw.c (pipe_windows_open): Ditto.
11468 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11469 * spu-tdep.c (spu_register_type): Ditto.
11470 * tracepoint.c (trace_find_command): Ditto.
11471 * valarith.c (value_pos): Ditto.
11472
9a153e0b
JB
114732011-01-10 Joel Brobecker <brobecker@adacore.com>
11474
11475 * ada-valprint.c (printstr): Minor comment reformatting.
11476
35ecd2d6
MS
114772011-01-08 Michael Snyder <msnyder@vmware.com>
11478
11479 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11480 markup.
11481
1777feb0
MS
114822011-01-08 Michael Snyder <msnyder@vmware.com>
11483
11484 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11485 * hppa-hpux-tdep.c: Ditto.
11486 * hppa-linux-nat.c: Ditto.
11487 * hppa-linux-tdep.c: Ditto.
11488 * hppanbsd-tdep.c: Ditto.
11489 * hppa-tdep.c: Ditto.
11490 * hppa-tdep.h: Ditto.
11491 * hpux-thread.c: Ditto.
11492 * i386-cygwin-tdep.c: Ditto.
11493 * i386-darwin-nat.c: Ditto.
11494 * i386gnu-nat.c: Ditto.
11495 * i386-linux-nat.c: Ditto.
11496 * i386-linux-tdep.c: Ditto.
11497 * i386-nat.c: Ditto.
11498 * i386-nat.h: Ditto.
11499 * i386nbsd-tdep.c: Ditto.
11500 * i386-sol2-nat.c: Ditto.
11501 * i386-stub.c: Ditto.
11502 * i386-tdep.c: Ditto.
11503 * i386-tdep.h: Ditto.
11504 * i387-tdep.c: Ditto.
11505 * ia64-linux-nat.c: Ditto.
11506 * ia64-linux-tdep.c: Ditto.
11507 * ia64-tdep.c: Ditto.
11508 * infcall.c: Ditto.
11509 * infcall.h: Ditto.
11510 * infcmd.c: Ditto.
11511 * inferior.c: Ditto.
11512 * inferior.h: Ditto.
11513 * infloop.c: Ditto.
11514 * inflow.c: Ditto.
11515 * infrun.c: Ditto.
11516 * interps.c: Ditto.
11517 * interps.h: Ditto.
11518 * iq2000-tdep.c: Ditto.
11519 * irix5-nat.c: Ditto.
11520 * jit.c: Ditto.
11521 * jit.h: Ditto.
11522 * jv-exp.y: Ditto.
11523 * jv-lang.c: Ditto.
11524 * jv-lang.h: Ditto.
11525 * jv-typeprint.c: Ditto.
11526 * jv-valprint.c: Ditto.
11527 * language.c: Ditto.
11528 * language.h: Ditto.
11529 * linespec.c: Ditto.
11530 * linux-fork.c: Ditto.
11531 * linux-nat.c: Ditto.
11532 * linux-thread-db.c: Ditto.
11533 * lm32-tdep.c: Ditto.
11534
025bb325
MS
115352011-01-08 Michael Snyder <msnyder@vmware.com>
11536
11537 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11538 * m2-lang.c: Ditto.
11539 * m2-typeprint.c: Ditto.
11540 * m2-valprint.c: Ditto.
11541 * m32c-tdep.c: Ditto.
11542 * m32r-linux-nat.c: Ditto.
11543 * m32r-rom.c: Ditto.
11544 * m32r-tdep.c: Ditto.
11545 * m32r-tdep.h: Ditto.
11546 * m68hc11-tdep.c: Ditto.
11547 * m58klinux-nat.c: Ditto.
11548 * m68k-tdep.c: Ditto.
11549 * m88k-tdep.c: Ditto.
11550 * m88k-tdep.h: Ditto.
11551 * machoread.c: Ditto.
11552 * macrocmd.c: Ditto.
11553 * macroexp.c: Ditto.
11554 * macrotab.c: Ditto.
11555 * main.c: Ditto.
11556 * maint.c: Ditto.
11557 * mdebugread.c: Ditto.
11558 * mdebugread.h: Ditto.
11559 * memattr.c: Ditto.
11560 * memattr.h: Ditto.
11561 * memory-map.h: Ditto.
11562 * mep-tdep.c: Ditto.
11563 * microblaze-rom.c: Ditto.
11564 * microblaze-tdep.c: Ditto.
11565 * minsyms.c: Ditto.
11566 * mips-irix-tdep.c: Ditto.
11567 * mips-linux-nat.c: Ditto.
11568 * mips-linux-tdep.c: Ditto.
11569 * mips-linux-tdep.h: Ditto.
11570 * mipsnbsd-nat.c: Ditto.
11571 * mipsnbsd-tdep.c: Ditto.
11572 * mipsread.c: Ditto.
11573 * mips-tdep.c: Ditto.
11574 * mips-tdep.h: Ditto.
11575 * mn10300-linux-tdep.c: Ditto.
11576 * mn10300-tdep.c: Ditto.
11577 * mn10300-tdep.h: Ditto.
11578 * monitor.c: Ditto.
11579 * monitor.h: Ditto.
11580 * moxie-tdep.c: Ditto.
11581 * moxie-tdep.h: Ditto.
11582 * mt-tdep.c: Ditto.
11583
1642781b
MF
115842011-01-08 Mike Frysinger <vapier@gentoo.org>
11585
11586 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11587
394b0adb
JB
115882011-01-08 Robert Millan <rmh@gnu.org>
11589
11590 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11591
b670013c
MS
115922011-01-07 Michael Snyder <msnyder@vmware.com>
11593
11594 * charset.c (_initialize_charset): Fix typo in string.
11595
a743e542
MS
115962011-01-07 Michael Snyder <msnyder@vmware.com>
11597
11598 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11599 for i18n.
f2eb0bc8 11600 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11601 Split line so that operator goes to beginning of line.
11602 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11603 assignment out of if statement.
11604
0963b4bd
MS
116052011-01-07 Michael Snyder <msnyder@vmware.com>
11606
11607 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11608 * ada-lang.h: Ditto.
11609 * ada-tasks.c: Ditto.
11610 * ada-valprint.c: Ditto.
11611 * aix-threads.c: Ditto.
11612 * alpha-linux-nat.c: Ditto.
11613 * alpha-linux-tdep.c: Ditto.
11614 * alpha-mdebug-tdep.c: Ditto.
11615 * alpha-nat.c: Ditto.
11616 * alpha-osf1-tdep.c: Ditto.
11617 * alpha-tdep.c: Ditto.
11618 * alphabsd-nat.c: Ditto.
11619 * alphabsd-tdep.c: Ditto.
11620 * amd64-darwin-tdep.c: Ditto.
11621 * amd64-linux-nat.c: Ditto.
11622 * amd64-linux-tdep.c: Ditto.
11623 * amd64-sol2-tdep.c: Ditto.
11624 * amd64-tdep.c: Ditto.
11625 * amd64-fbsd-tdep.c: Ditto.
11626 * amd64-nbsd-tdep.c: Ditto.
11627 * amd64-obsd-tdep.c: Ditto.
11628 * amd64-linux-nat.c: Ditto.
11629 * amd64-linux-tdep.c: Ditto.
11630 * arm-tdep.c: Ditto.
11631 * arm-tdep.h: Ditto.
11632 * armnbsd-nat.c: Ditto.
11633 * avr-tdep.c: Ditto.
11634 * bfin-tdep.c: Ditto.
11635 * bsd-kvm.c: Ditto.
11636 * c-typeprintc: Ditto.
11637 * c-valprint.c: Ditto.
11638 * coff-pe-read.h: Ditto.
11639 * coffreead.c: Ditto.
11640 * cris-tdep.c: Ditto.
11641 * d-lang.c: Ditto.
11642 * darwin-nat-info.c: Ditto.
11643 * darwin-nat.c: Ditto.
11644 * dbug-rom.c: Ditto.
11645 * dbxread.c: Ditto.
11646 * dcache.c: Ditto.
11647 * dcache.h: Ditto.
11648 * dec-thread.c: Ditto.
11649 * defs.h: Ditto.
11650 * demangle.c: Ditto.
11651 * dicos-tdep.c: Ditto.
11652 * dictionary.c: Ditto.
11653 * dictionary.h: Ditto.
11654 * dink32-rom.c: Ditto.
11655 * disasm.c: Ditto.
11656 * doublest.c: Ditto.
11657 * dsrec.c: Ditto.
11658 * dummy-frame.c: Ditto.
11659 * dwarf2-frame.c: Ditto.
11660 * dwarf2expr.c: Ditto.
11661 * dwarf2loc.c: Ditto.
11662 * dwarf2read.c: Ditto.
11663 * elfread.c: Ditto.
11664 * environ.c: Ditto.
11665 * eval.c: Ditto.
11666 * event-top.h: Ditto.
11667 * exceptions.c: Ditto.
11668 * exceptions.h: Ditto.
11669 * exec.c: Ditto.
11670 * expprint.c: Ditto.
11671 * expression.h: Ditto.
11672 * f-exp.y: Ditto.
11673 * f-lang.c: Ditto.
11674 * f-lang.h: Ditto.
11675 * f-typeprint.c: Ditto.
11676 * f-valprint.c: Ditto.
11677 * fbsd-nat.c: Ditto.
11678 * findvar.c: Ditto.
11679 * fork-child.c: Ditto.
11680 * frame.c: Ditto.
11681 * frame.h: Ditto.
11682 * frv-linux-tdep.c: Ditto.
11683 * frv-tdep.c: Ditto.
11684 * gcore.c: Ditto.
11685 * gdb-stabs.h: Ditto.
11686 * gdb_assert.h: Ditto.
11687 * gdb_string.h: Ditto.
11688 * gdb_thread_db.h: Ditto.
11689 * gdb_wait.h: Ditto.
11690 * gdbarch.sh: Ditto.
11691 * gdbcore.h: Ditto.
11692 * gdbthread.h: Ditto.
11693 * gdbtypes.c: Ditto.
11694 * gdbtypes.h: Ditto.
11695 * gnu-nat.c: Ditto.
11696 * gnu-nat.h: Ditto.
11697 * gnu-v2-abi.c: Ditto.
11698 * gnu-v3-abi.c: Ditto.
11699 * go32-nat.c: Ditto.
11700 * gdbarch.c: Regenerate.
11701 * gdbarch.h: Regenerate.
11702
ac74f770
MS
117032011-01-07 Michael Snyder <msnyder@vmware.com>
11704
11705 * ax-gdb.c: Adjust some long output strings.
11706 * breakpoint.c: Ditto.
11707 * charset.c: Ditto.
11708 * cp-abi.c: Ditto.
11709 * infcall.c: Ditto.
11710 * infrun.c: Ditto.
11711 * linux-nat.c: Ditto.
11712 * solib-pa64.c: Ditto.
11713 * solib-som.c: Ditto.
11714
d8e22779
TT
117152011-01-06 Tom Tromey <tromey@redhat.com>
11716
11717 PR python/12367:
11718 * NEWS: Add item.
11719 * python/python.c (GdbMethods): Add "newest_frame" method.
11720 * python/python-internal.h (gdbpy_newest_frame): Declare.
11721 * python/py-frame.c (gdbpy_newest_frame): New function.
11722
a255712f
PP
117232010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11724
11725 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11726 * jit.c (jit_debug): New variable.
11727 (show_jit_debug): New function.
11728 (struct target_buffer): Use ULONGEST.
11729 (bfd_open_from_target_memory): Likewise.
11730 (jit_register_code, jit_inferior_init): Add debug output.
11731 (_initialize_jit): Register "debug jit" command.
11732
ccfc3d6e
TT
117332011-01-06 Tom Tromey <tromey@redhat.com>
11734
11735 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11736 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11737 and ARCH_FRAME.
11738
57126e4a
TT
117392011-01-06 Tom Tromey <tromey@redhat.com>
11740
11741 * python/py-frame.c (frapy_block): Use get_frame_block.
11742
16dfc9ce
JB
117432011-01-06 Joel Brobecker <brobecker@adacore.com>
11744
11745 Do not stop on SIGPRIO signals by default
11746 * infrun.c (_initialize_infrun): Unset signal_stop and
11747 signal_print for TARGET_SIGNAL_PRIO.
11748
b1ce2347
JB
117492011-01-06 Joel Brobecker <brobecker@adacore.com>
11750
11751 * ada-tasks.c: Fix style violation in comment.
11752
8f7e195f
JB
117532011-01-06 Joel Brobecker <brobecker@adacore.com>
11754
11755 * linespec.c (decode_compound, find_method): Remove trailing \n
11756 at end of error string.
11757 * solib-irix.c (irix_current_sos): Likewise.
11758 * varobj.c (uninstall_variable): Likewise.
11759
e9bdf92c
JB
117602011-01-06 Joel Brobecker <brobecker@adacore.com>
11761
11762 * copyright.py: New script.
11763 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11764 Launch emacs without exec'ing. Call copyright.py afterwards.
11765
3e43a32a
MS
117662011-01-05 Michael Snyder <msnyder@vmware.com>
11767
11768 * addrmap.c: Shorten lines of >= 80 columns.
11769 * arch-utils.c: Ditto.
11770 * arch-utils.h: Ditto.
11771 * ax-gdb.c: Ditto.
11772 * ax-general.c: Ditto.
11773 * bcache.c: Ditto.
11774 * blockframe.c: Ditto.
11775 * breakpoint.c: Ditto.
11776 * buildsym.c: Ditto.
11777 * c-lang.c: Ditto.
11778 * c-typeprint.c: Ditto.
11779 * charset.c: Ditto.
11780 * coffread.c: Ditto.
11781 * command.h: Ditto.
11782 * corelow.c: Ditto.
11783 * cp-abi.c: Ditto.
11784 * cp-namespace.c: Ditto.
11785 * cp-support.c: Ditto.
11786 * dbug-rom.c: Ditto.
11787 * dbxread.c: Ditto.
11788 * defs.h: Ditto.
11789 * dfp.c: Ditto.
11790 * dfp.h: Ditto.
11791 * dictionary.c: Ditto.
11792 * disasm.c: Ditto.
11793 * doublest.c: Ditto.
11794 * dwarf2-frame.c: Ditto.
11795 * dwarf2expr.c: Ditto.
11796 * dwarf2loc.c: Ditto.
11797 * dwarf2read.c: Ditto.
11798 * elfread.c: Ditto.
11799 * eval.c: Ditto.
11800 * event-loop.c: Ditto.
11801 * event-loop.h: Ditto.
11802 * exceptions.h: Ditto.
11803 * exec.c: Ditto.
11804 * expprint.c: Ditto.
11805 * expression.h: Ditto.
11806 * f-lang.c: Ditto.
11807 * f-valprint.c: Ditto.
11808 * findcmd.c: Ditto.
11809 * frame-base.c: Ditto.
11810 * frame-unwind.c: Ditto.
11811 * frame-unwind.h: Ditto.
11812 * frame.c: Ditto.
11813 * frame.h: Ditto.
11814 * gcore.c: Ditto.
11815 * gdb-stabs.h: Ditto.
11816 * gdb_assert.h: Ditto.
11817 * gdb_dirent.h: Ditto.
11818 * gdb_obstack.h: Ditto.
11819 * gdbcore.h: Ditto.
11820 * gdbtypes.c: Ditto.
11821 * gdbtypes.h: Ditto.
11822 * inf-ttrace.c: Ditto.
11823 * infcall.c: Ditto.
11824 * infcmd.c: Ditto.
11825 * inflow.c: Ditto.
11826 * infrun.c: Ditto.
11827 * inline-frame.h: Ditto.
11828 * language.c: Ditto.
11829 * language.h: Ditto.
11830 * libunwind-frame.c: Ditto.
11831 * libunwind-frame.h: Ditto.
11832 * linespec.c: Ditto.
11833 * linux-nat.c: Ditto.
11834 * linux-nat.h: Ditto.
11835 * linux-thread-db.c: Ditto.
11836 * machoread.c: Ditto.
11837 * macroexp.c: Ditto.
11838 * macrotab.c: Ditto.
11839 * main.c: Ditto.
11840 * maint.c: Ditto.
11841 * mdebugread.c: Ditto.
11842 * memattr.c: Ditto.
11843 * minsyms.c: Ditto.
11844 * monitor.c: Ditto.
11845 * monitor.h: Ditto.
11846 * objfiles.c: Ditto.
11847 * objfiles.h: Ditto.
11848 * osabi.c: Ditto.
11849 * p-typeprint.c: Ditto.
11850 * p-valprint.c: Ditto.
11851 * parse.c: Ditto.
11852 * printcmd.c: Ditto.
11853 * proc-events.c: Ditto.
11854 * procfs.c: Ditto.
11855 * progspace.c: Ditto.
11856 * progspace.h: Ditto.
11857 * psympriv.h: Ditto.
11858 * psymtab.c: Ditto.
11859 * record.c: Ditto.
11860 * regcache.c: Ditto.
11861 * regcache.h: Ditto.
11862 * remote-fileio.c: Ditto.
11863 * remote.c: Ditto.
11864 * ser-mingw.c: Ditto.
11865 * ser-tcp.c: Ditto.
11866 * ser-unix.c: Ditto.
11867 * serial.c: Ditto.
11868 * serial.h: Ditto.
11869 * solib-frv.c: Ditto.
11870 * solib-irix.c: Ditto.
11871 * solib-osf.c: Ditto.
11872 * solib-pa64.c: Ditto.
11873 * solib-som.c: Ditto.
11874 * solib-sunos.c: Ditto.
11875 * solib-svr4.c: Ditto.
11876 * solib-target.c: Ditto.
11877 * solib.c: Ditto.
11878 * somread.c: Ditto.
11879 * source.c: Ditto.
11880 * stabsread.c: Ditto.
11881 * stabsread.c: Ditto.
11882 * stack.c: Ditto.
11883 * stack.h: Ditto.
11884 * symfile-mem.c: Ditto.
11885 * symfile.c: Ditto.
11886 * symfile.h: Ditto.
11887 * symmisc.c: Ditto.
11888 * symtab.c: Ditto.
11889 * symtab.h: Ditto.
11890 * target-descriptions.c: Ditto.
11891 * target-memory.c: Ditto.
11892 * target.c: Ditto.
11893 * target.h: Ditto.
11894 * terminal.h: Ditto.
11895 * thread.c: Ditto.
11896 * top.c: Ditto.
11897 * tracepoint.c: Ditto.
11898 * tracepoint.h: Ditto.
11899 * ui-file.c: Ditto.
11900 * ui-file.h: Ditto.
11901 * ui-out.h: Ditto.
11902 * user-regs.c: Ditto.
11903 * user-regs.h: Ditto.
11904 * utils.c: Ditto.
11905 * valarith.c: Ditto.
11906 * valops.c: Ditto.
11907 * valprint.c: Ditto.
11908 * valprint.h: Ditto.
11909 * value.c: Ditto.
11910 * varobj.c: Ditto.
11911 * varobj.h: Ditto.
11912 * vec.h: Ditto.
11913 * xcoffread.c: Ditto.
11914 * xcoffsolib.c: Ditto.
11915 * xcoffsolib.h: Ditto.
11916 * xml-syscall.c: Ditto.
11917 * xml-tdesc.c: Ditto.
11918
9a2b4c1b
MS
119192011-01-05 Michael Snyder <msnyder@vmware.com>
11920
11921 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11922 * cli/cli-decode.c: Ditto.
11923 * cli/cli-dump.c: Ditto.
11924 * cli/cli-logging.c: Ditto.
11925 * cli/cli-script.c: Ditto.
11926 * cli/cli-setshow.c: Ditto.
11927 * common/signals.c: Ditto.
11928 * mi/mi-cmd-break.c: Ditto.
11929 * mi/mi-cmd-disas.c: Ditto.
11930 * mi/mi-cmd-stack.c: Ditto.
11931 * mi/mi-cmd-var.c: Ditto.
11932 * mi/mi-cmds.c: Ditto.
11933 * mi/mi-common.h: Ditto.
11934 * mi/mi-console.c: Ditto.
11935 * mi/mi-interp.c: Ditto.
11936 * mi/mi-main.c: Ditto.
11937 * osf-share/cma_attr.c: Ditto.
11938 * osf-share/cma_deb_core.h: Ditto.
11939 * osf-share/cma_debug_client.h: Ditto.
11940 * osf-share/cma_handle.h: Ditto.
11941 * osf-share/cma_mutex.h: Ditto.
11942 * osf-share/cma_stack_int.h: Ditto.
11943 * osf-share/cma_tcb_defs.h: Ditto.
11944 * python/py-auto-load.c: Ditto.
11945 * python/py-breakpoint.c: Ditto.
11946 * python/py-cmd.c: Ditto.
11947 * python/py-frame.c: Ditto.
11948 * python/py-objfile.c: Ditto.
11949 * python/py-param.c: Ditto.
11950 * python/py-progspace.c: Ditto.
11951 * python/py-symbol.c: Ditto.
11952 * python/py-value.c: Ditto.
11953 * python/python-internal.h: Ditto.
11954 * python/python.c: Ditto.
11955 * tui/tui-data.c: Ditto.
11956 * tui/tui-disasm.c: Ditto.
11957 * tui/tui-hooks.c: Ditto.
11958 * tui/tui-io.c: Ditto.
11959 * tui/tui-layout.c: Ditto.
11960 * tui/tui-regs.c: Ditto.
11961 * tui/tui-source.c: Ditto.
11962 * tui/tui-stack.c: Ditto.
11963 * tui/tui-win.c: Ditto.
11964 * tui/tui-windata.c: Ditto.
11965 * tui/tui-winsource.c: Ditto.
11966
44944448
JB
119672011-01-05 Joel Brobecker <brobecker@adacore.com>
11968
11969 * configure.ac, gdb.1: Copyright year update.
11970
ebedcab5
JK
119712011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11972
11973 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11974 this_pc_in_block, morestack_msym and morestack_name. Check for
11975 "__morestack" minimal symbol there.
11976
e5cc9f32
JB
119772011-01-03 Joel Brobecker <brobecker@adacore.com>
11978
11979 * symfile.c (find_sym_fns): Add call to dont_repeat.
11980
7b6bb8da
JB
119812011-01-01 Joel Brobecker <brobecker@adacore.com>
11982
11983 Copyright year update in most files (performed by copyright.sh).
11984
71ce852c
JB
119852011-01-01 Joel Brobecker <brobecker@adacore.com>
11986
11987 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11988
c3c1ebe8 11989For older changes see ChangeLog-2010.
c906108c
SS
11990\f
11991Local Variables:
11992mode: change-log
11993left-margin: 8
11994fill-column: 74
11995version-control: never
57da7796 11996coding: utf-8
c906108c 11997End:
This page took 1.821927 seconds and 4 git commands to generate.