2011-12-14 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ad32032e
JB
12011-12-14 Joel Brobecker <brobecker@adacore.com>
2
3 * linespec.c (decode_line_internal): Make static.
4
d14c4eb7
YQ
52011-12-14 Yao Qi <yao@codesourcery.com>
6
7 * breakpoint.c (create_breakpoint): Set canonical.addr_string
8 for static tracepoint.
9
25564b66 102011-12-13 Joel Brobecker <brobecker@adacore.com>
11
12 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
13 * version.in: Bump version to 7.4.50.20111213-cvs.
14
8837a20f
JB
152011-12-13 Joel Brobecker <brobecker@adacore.com>
16
17 * NEWS: Create a new section for the next release branch.
18 Rename the section of the current branch, now that it has
19 been cut.
20
7dda8cff
JB
212011-12-11 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c (ada_exception_support_info_sniffer): Improve
24 error message.
25
3eecfa55
JB
262011-12-11 Joel Brobecker <brobecker@adacore.com>
27
28 * ada-lang.c (struct ada_inferior_data) [exception_info]:
29 New field.
30 (exception_info): Delete.
31 (ada_exception_support_info_sniffer): Get exception_support_info
32 data from our per-inferior data. Adjust code accordingly.
33 (ada_unhandled_exception_name_addr_from_raise): Likewise.
34 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
35 (ada_executable_changed_observer): Delete.
36 (_initialize_ada_language): Remove call to
37 observer_attach_executable_changed.
38
a6af7abe
JB
392011-12-11 Joel Brobecker <brobecker@adacore.com>
40
41 * ada-lang.c (ada_has_this_exception_support): Raise an error
42 if we could find the Ada exception hook in the Ada runtime,
43 but no debugging info for that hook.
44
f17011e0
JB
452011-12-11 Joel Brobecker <brobecker@adacore.com>
46
47 * ada-lang.c (ada_has_this_exception_support): New function,
48 extracted out of ada_exception_sal and ada_exception_sal.
49 (ada_exception_support_info_sniffer): Simplify by using
50 ada_has_this_exception_support.
51 (ada_exception_sal): Replace unnecessary checks by assertions.
52 Minor simplifications.
53
d3fbdd86
AS
542011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
55
56 * breakpoint.c (update_global_location_list): Remove nested
57 definition of `b'(-Wshadow).
58
eacd795a
AS
592011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
60
61 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
62 `error_flag'(-Wshadow).
63
ad13d8df
AS
642011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
65
66 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
67 `abfd'(-Wshadow).
68
917793af
AS
692011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
70
71 * annotate.c (annotate_array_section_begin): Rename `index' to
72 `idx'(-Wshadow).
73
d48ebb5b
AS
742011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
75
76 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
77 `idx'(-Wshadow).
78
9ed936ec
AS
792011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
80
81 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
82 `syscall' to `syscall_number'(-Wshadow).
83
a35ddb44
AS
842011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
85
86 * ada-lang.c (remove_extra_symbols): Rename `remove' to
87 `remove_p'(-Wshadow).
88
e5e61bd7
AS
892011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
90
91 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
92 `ren_sym'(-Wshadow).
93
d200ab1e
DE
942011-12-10 Doug Evans <dje@google.com>
95
b0df02fd
DE
96 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
97 debug_types_section. All uses updated.
98 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
99 to is_debug_types_section.
100
d200ab1e
DE
101 * python/py-auto-load.c (source_section_scripts): Call xfree
102 instead of free.
103
4511b1ba
YQ
1042011-12-10 Hui Zhu <teawater@gmail.com>
105 Yao Qi <yao@codesourcery.com>
106
107 * tracepoint.c (start_tracing): Clear `inserted' flag.
108
df5a4bd3
HZ
1092011-12-10 Hui Zhu <teawater@gmail.com>
110
111 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
112
1afeeb75
AS
1132011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
114
115 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
116 `bpoint'(-Wshadow).
117
80e1d417
AS
1182011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
119
120 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
121 `marker' variables to `sal2' and `tpmarker' respectively
122 (-Wshadow).
123
04ca3c22
AP
1242011-12-09 Andrew Pinski <apinski@cavium.com>
125
126 * linespec.c (hash_address_entry): Use iterative_hash_object on each
127 field rather than the struct itself.
128
8a2c437b
TT
1292011-12-09 Tom Tromey <tromey@redhat.com>
130
131 * breakpoint.c (compare_breakpoints): New function.
132 (clear_command): Remove duplicate breakpoints. Properly clean
133 up.
134
280711e7
MR
1352011-12-08 Maciej W. Rozycki <macro@mips.com>
136 Maciej W. Rozycki <macro@codesourcery.com>
137
138 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
139 address chunks retrieved from decoded lui/addiu pairs.
140
4c2051c6
MR
1412011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
142
143 * mips-tdep.c (extended_offset): Correct calculation.
144 (unpack_mips16): Correct bitfield positions used for extraction
145 of the immediate argument; fix sign-extension of same.
146 (extended_mips16_next_pc): Correct B instruction's offset
147 calculation. Correct register decoding of the BEQZ and BNEZ
148 as well as jump-register instructions. Handle compact jumps.
149
ff011ed7
TT
1502011-12-08 Tom Tromey <tromey@redhat.com>
151
152 * objfiles.h (struct objfile): Remove obsolete comment.
153 * objfiles.c (build_objfile_section_table): Remove obsolete
154 comment.
155
7cd3876c
SS
1562011-12-07 Stan Shebs <stan@codesourcery.com>
157
158 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
159 maintainer of the tic6x target.
160
35f73cfc
UW
1612011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
162
163 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
164 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
165 (arm_deal_with_atomic_sequence_raw): Likewise.
166 (arm_deal_with_atomic_sequence): Likewise.
167 (arm_software_single_step): Call it.
168 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
169
94eae614
UW
1702011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
171
172 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
173 where appropriate.
174 * s390-tdep.h: Likewise.
175
13b8d0c6
TG
1762011-12-07 Tristan Gingold <gingold@adacore.com>
177
178 * machoread.c (macho_symtab_read): Do not consider N_OPT as
179 a debugging stab. Improve complaint message.
180
5436df95
MR
1812011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
182
183 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
184 load adjustment if still within the prologue.
185
040dff2a
MR
1862011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
187
188 * mips-tdep.c (mips32_next_pc): Fix floating point condition
189 code mask.
190
754d7c78
MR
1912011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
192
193 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
194 of BLTZ* and BGEZ* instructions.
195
91912e4d
MR
1962011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
197
198 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
199 performed to determine whether an address refers to standard
200 MIPS or MIPS16 code.
201 (mips16_next_pc): Use mips_pc_is_mips16 instead of
202 is_mips16_addr.
203
f0ba3972
PA
2042011-12-06 Pedro Alves <pedro@codesourcery.com>
205
206 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
207 (breakpoint_xfer_memory): ... this. Change prototype. Handle
208 memory writes too.
209 * breakpoint.h (breakpoint_restore_shadows): Delete.
210 (breakpoint_xfer_memory): Declare.
211 * mem-break.c (default_memory_insert_breakpoint)
212 (default_memory_remove_breakpoint): Use target_write_raw_memory.
213 (memory_xfer_partial): Rename to ...
214 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
215 here.
216 (memory_xfer_partial): New.
217 (target_write_raw_memory): New.
218 * target.h (target_write_raw_memory): New.
219
31aba06f
DE
2202011-12-06 Doug Evans <dje@google.com>
221
222 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
223
f8eba3c6
TT
2242011-12-06 Joel Brobecker <brobecker@acacore.com>
225
226 * language.h (struct language_defn): Add new component
227 la_symbol_name_compare.
228 * symfile.h (struct quick_symbol_functions): Update the profile
229 of parameter "name_matcher" for the expand_symtabs_matching
230 method. Update the documentation accordingly.
231 * ada-lang.h (ada_name_for_lookup): Add declaration.
232 * ada-lang.c (ada_name_for_lookup): New function, extracted out
233 from ada_iterate_over_symbols.
234 (ada_iterate_over_symbols): Do not encode symbol name anymore.
235 (ada_expand_partial_symbol_name): Adjust profile.
236 (ada_language_defn): Add value for la_symbol_name_compare field.
237 * linespec.c: #include "ada-lang.h".
238 (iterate_name_matcher): Add language parameter. Replace call
239 to strcmp_iw by call to language->la_symbol_name_compare.
240 (decode_variable): Encode COPY if current language is Ada.
241 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
242 of name_matcher parameter. Adjust call to name_matcher.
243 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
244 (expand_partial_symbol_names): Update profile of parameter "fun".
245 * psymtab.h (expand_partial_symbol_names): Update profile of
246 parameter "fun".
247 * symtab.c (demangle_for_lookup): Update function documentation.
248 (search_symbols_name_matches): Add language parameter.
249 (expand_partial_symbol_name): Likewise.
250 * c-lang.c (c_language_defn, cplus_language_defn)
251 (asm_language_defn, minimal_language_defn): Add value for
252 la_symbol_name_compare field.
253 * d-lang.c (d_language_defn): Likewise.
254 * f-lang.c (f_language_defn): Ditto.
255 * jv-lang.c (java_language_defn): Ditto.
256 * m2-lang.c (m2_language_defn): Ditto.
257 * objc-lang.c (objc_language_defn): Ditto.
258 * opencl-lang.c (opencl_language_defn): Ditto.
259 * p-lang.c (pascal_language_defn): Ditto.
260 * language.c (unknown_language_defn, auto_language_defn)
261 (local_language_defn): Ditto.
262
2632011-12-06 Tom Tromey <tromey@redhat.com>
264
265 * linespec.c (iterate_over_all_matching_symtabs): Use
266 LA_ITERATE_OVER_SYMBOLS.
267 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
268 (find_function_symbols, decode_variable): Remove Ada special
269 case.
270 * language.h (struct language_defn) <la_iterate_over_symbols>: New
271 field.
272 (LA_ITERATE_OVER_SYMBOLS): New macro.
273 * language.c (unknown_language_defn, auto_language_defn)
274 (local_language_defn): Update.
275 * c-lang.c (c_language_defn, cplus_language_defn)
276 (asm_language_defn, minimal_language_defn): Update.
277 * d-lang.c (d_language_defn): Update.
278 * f-lang.c (f_language_defn): Update.
279 * jv-lang.c (java_language_defn): Update.
280 * m2-lang.c (m2_language_defn): Update.
281 * objc-lang.c (objc_language_defn): Update.
282 * opencl-lang.c (opencl_language_defn): Update.
283 * p-lang.c (pascal_language_defn): Update.
284 * ada-lang.c (ada_iterate_over_symbols): New function.
285 (ada_language_defn): Update.
286
2872011-12-06 Tom Tromey <tromey@redhat.com>
288 Joel Brobecker <brobecker@acacore.com>
289
290 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
291 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
292 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
293 PR shlibs/8929, PR shlibs/7393:
294 * python/py-type.c (compare_maybe_null_strings): Rename from
295 compare_strings.
296 (check_types_equal): Update.
297 * utils.c (compare_strings): New function.
298 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
299 location changes.
300 * tracepoint.c (scope_info): Update.
301 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
302 * symtab.h (iterate_over_minimal_symbols)
303 (iterate_over_some_symtabs, iterate_over_symtabs)
304 (find_pcs_for_symtab_line, iterate_over_symbols)
305 (demangle_for_lookup): Declare.
306 (expand_line_sal): Remove.
307 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
308 (lookup_symtab_callback): New functions.
309 (lookup_symtab): Rewrite.
310 (demangle_for_lookup): New function, extract from
311 lookup_symbol_in_language.
312 (lookup_symbol_in_language): Use it.
313 (iterate_over_symbols): New function.
314 (find_line_symtab): Update.
315 (find_pcs_for_symtab_line): New functions.
316 (find_line_common): Add 'start' argument.
317 (decode_line_spec): Update. Change argument to 'flags', change
318 interpretation.
319 (append_expanded_sal): Remove.
320 (append_exact_match_to_sals): Remove.
321 (expand_line_sal): Remove.
322 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
323 Remove.
324 <map_symtabs_matching_filename>: New field.
325 * stack.c (func_command): Only look in the current program space.
326 Use DECODE_LINE_FUNFIRSTLINE.
327 * source.c (line_info): Set pspace on sal. Check program space in
328 the loop. Use DECODE_LINE_LIST_MODE.
329 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
330 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
331 * python/python.c (gdbpy_decode_line): Update.
332 * psymtab.c (partial_map_expand_apply): New function.
333 (partial_map_symtabs_matching_filename): Rename from
334 lookup_partial_symbol. Update arguments.
335 (lookup_symtab_via_partial_symtab): Remove.
336 (psym_functions): Update.
337 * objc-lang.h (parse_selector, parse_method): Don't declare.
338 (find_imps): Update.
339 * objc-lang.c (parse_selector, parse_method): Now static.
340 (find_methods): Change arguments. Fill in a vector of symbol
341 names.
342 (uniquify_strings): New function.
343 (find_imps): Change arguments.
344 * minsyms.c (iterate_over_minimal_symbols): New function.
345 * linespec.h (enum decode_line_flags): New.
346 (struct linespec_sals): New.
347 (struct linespec_result) <canonical>: Remove.
348 <pre_expanded, addr_string, sals>: New fields.
349 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
350 (decode_line_full): Declare.
351 (decode_line_1): Update.
352 * linespec.c (struct address_entry, struct linespec_state, struct
353 collect_info): New types.
354 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
355 (eq_address_entry, maybe_add_address): New functions.
356 (total_number_of_methods): Remove.
357 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
358 functions.
359 (find_methods): Change arguments. Don't canonicalize input.
360 Simplify logic.
361 (add_matching_methods, add_constructors)
362 (build_canonical_line_spec): Remove.
363 (filter_results, convert_results_to_lsals): New functions.
364 (decode_line_2): Change arguments. Rewrite for new data
365 structures.
366 (decode_line_internal): Rename from decode_line_1. Change
367 arguments. Add cleanups. Update for new data structures.
368 (linespec_state_constructor, linespec_state_destructor)
369 (decode_line_full, decode_line_1): New functions.
370 (decode_indirect): Change arguments. Update.
371 (locate_first_half): Use skip_spaces.
372 (decode_objc): Change arguments. Update for new data structures.
373 Simplify logic.
374 (decode_compound): Change arguments. Add cleanups. Remove
375 fallback code, replace with error.
376 (struct decode_compound_collector): New type.
377 (collect_one_symbol): New function.
378 (lookup_prefix_sym): Change arguments. Update.
379 (compare_symbol_name, add_all_symbol_names_from_pspace)
380 (find_superclass_methods ): New functions.
381 (find_method): Rewrite.
382 (struct symtab_collector): New type.
383 (add_symtabs_to_list, collect_symtabs_from_filename): New
384 functions.
385 (symtabs_from_filename): Change API. Rename from
386 symtab_from_filename.
387 (collect_function_symbols): New function.
388 (find_function_symbols): Change API. Rename from
389 find_function_symbol. Rewrite.
390 (decode_all_digits): Change arguments. Rewrite.
391 (decode_dollar): Change arguments. Use decode_variable.
392 (decode_label): Change arguments. Rewrite.
393 (collect_symbols): New function.
394 (minsym_found): Change arguments. Rewrite.
395 (check_minsym, search_minsyms_for_name)
396 (add_matching_symbols_to_info): New function.
397 (decode_variable): Change arguments. Iterate over all symbols.
398 (symbol_found): Remove.
399 (symbol_to_sal): New function.
400 (init_linespec_result, destroy_linespec_result)
401 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
402 New functions.
403 (decode_digits_list_mode, decode_digits_ordinary): New functions.
404 * dwarf2read.c (dw2_map_expand_apply): New function.
405 (dw2_map_symtabs_matching_filename): Rename from
406 dw2_lookup_symtab. Change arguments.
407 (dwarf2_gdb_index_functions): Update.
408 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
409 * defs.h (compare_strings): Declare.
410 * cli/cli-cmds.c (compare_strings): Move to utils.c.
411 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
412 filter_sals.
413 (compare_symtabs, filter_sals): New functions.
414 * breakpoint.h (struct bp_location) <line_number, source_file>:
415 New fields.
416 (struct breakpoint) <line_number, source_file>: Remove.
417 <filter>: New field.
418 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
419 (momentary_breakpoint_from_master, add_location_to_breakpoint):
420 Update for changes to locations.
421 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
422 breakpoint.
423 (create_breakpoint_sal): Add 'filter' argument.
424 (remove_sal, expand_line_sal_maybe): Remove.
425 (create_breakpoints_sal): Remove 'sals' argument. Handle
426 pre-expanded sals and the filter.
427 (parse_breakpoint_sals): Use decode_line_full.
428 (check_fast_tracepoint_sals): Use get_sal_arch.
429 (create_breakpoint): Create a linespec_sals. Update.
430 (break_range_command): Use decode_line_full. Update.
431 (until_break_command): Update.
432 (clear_command): Update match conditions for linespec.c changes.
433 Use DECODE_LINE_LIST_MODE.
434 (say_where): Update for changes to locations.
435 (bp_location_dtor): Free 'source_file'.
436 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
437 (update_static_tracepoint): Update for changes to locations.
438 (update_breakpoint_locations): Disable ranged breakpoint if too
439 many locations match. Update.
440 (addr_string_to_sals): Use decode_line_full. Resolve all sal
441 PCs.
442 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
443 (decode_line_spec_1): Update. Change argument name to 'flags',
444 change interpretation.
445 * block.h (block_containing_function): Declare.
446 * block.c (block_containing_function): New function.
447 * skip.c (skip_function_command): Update.
448 (skip_re_set): Update.
449 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
450 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
451 * NEWS: Add entry.
452
4532011-12-06 Tom Tromey <tromey@redhat.com>
454
455 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
456 breakpoint's pspace to be NULL.
457 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
458 * breakpoint.c (init_raw_breakpoint): Conditionally set
459 breakpoint's pspace.
460 (init_breakpoint_sal): Don't set breakpoint's pspace.
461 (prepare_re_set_context): Conditionally switch program space.
462 (addr_string_to_sals): Check executing_startup on location's
463 program space.
464
4652011-12-06 Tom Tromey <tromey@redhat.com>
466
467 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
468 * breakpoint.c (should_be_inserted): Explicitly check if program
469 space is executing startup.
470 (describe_other_breakpoints): Update.
471 (disable_breakpoints_before_startup): Change executing_startup
472 earlier. Remove loop.
473 (enable_breakpoints_after_startup): Likewise.
474 (init_breakpoint_sal): Don't use bp_startup_disabled.
475 (create_breakpoint): Don't use bp_startup_disabled.
476 (update_global_location_list): Use should_be_inserted.
477 (bkpt_re_set): Update.
478
75c8c9d7
TT
4792011-12-06 Tom Tromey <tromey@redhat.com>
480
481 * python/lib/gdb/command/pretty_printers.py
482 (InfoPrettyPrinter.invoke1): Remove extra double quote.
483
7376e450
TT
4842011-12-06 Tom Tromey <tromey@redhat.com>
485
486 * NEWS: Add MI news.
487
c642a434
UW
4882011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
489
490 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
491 (S390_LAST_BREAK_REGNUM): Likewise.
492 (S390_SYSTEM_CALL_REGNUM): Likewise.
493 (S390_NUM_REGS): Update.
494
495 (s390_regmap_last_break): Add declaration.
496 (s390x_regmap_last_break): Likewise.
497 (s390_regmap_system_call): Likewise.
498
499 (tdesc_s390_linux32v1): Add declaration.
500 (tdesc_s390_linux32v2): Likewise.
501 (tdesc_s390_linux64v1): Likewise.
502 (tdesc_s390_linux64v2): Likewise.
503 (tdesc_s390x_linux64v1): Likewise.
504 (tdesc_s390x_linux64v2): Likewise.
505
506 * s390-tdep.c: Include new target description files
507 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
508 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
509 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
510 (s390_cannot_store_register): New function.
511 (s390_write_pc): Likewise.
512 (s390_dwarf_regmap): Add fields for new registers.
513 (s390_regmap_gregset): Likewise.
514 (s390x_regmap_gregset): Likewise.
515 (s390_regmap_fpregset): Likewise.
516 (s390_regmap_upper): Likewise.
517 (s390_regmap_last_break): New variable.
518 (s390x_regmap_last_break): Likewise.
519 (s390_regmap_system_call): Likewise.
520 (s390_last_break_regset): Likewise.
521 (s390x_last_break_regset): Likewise.
522 (s390_system_call_regset): Likewise.
523 (s390_upper_regset_sections): Rename to ...
524 (s390_linux64_regset_sections): ... this.
525 (s390_linux32_regset_sections): New variable.
526 (s390x_linux64_regset_sections): Likewise.
527 (s390_linux32v1_regset_sections): Likewise.
528 (s390_linux32v2_regset_sections): Likewise.
529 (s390_linux64v1_regset_sections): Likewise.
530 (s390_linux64v2_regset_sections): Likewise.
531 (s390x_linux64v1_regset_sections): Likewise.
532 (s390x_linux64v2_regset_sections): Likewise.
533 (s390_regset_from_core_section): Handle .reg-s390-last-break and
534 .reg-s390-system-call core file sections.
535 (s390_core_read_description): Check for presence of
536 .reg-s390-last-break and .reg-s390-system-call core file
537 sections and return appropriate target description.
538 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
539 "last_break" and "system_call" in target description. Install
540 appropriate gdbarch_core_regset_sections array.
541 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
542 (_initialize_s390_tdep): Initialize additional target descriptions.
543
544 * s390-nat.c: Include "elf/common.h".
545 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
546 (have_regset_last_break): New static variable.
547 (have_regset_system_call): Likewise.
548 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
549 (s390_native_collect): Likewise.
550 (fetch_regset, store_regset, check_regset): New functions.
551 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
552 and S390_SYSTEM_CALL_REGNUM.
553 (s390_linux_store_inferior_registers): Likewise.
554 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
555 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
556
557 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
558 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
559 (s390-linux32v1-expedite): Define.
560 (s390-linux32v2-expedite): Likewise.
561 (s390-linux64v1-expedite): Likewise.
562 (s390-linux64v2-expedite): Likewise.
563 (s390x-linux64v1-expedite): Likewise.
564 (s390x-linux64v2-expedite): Likewise.
565
566 * features/s390-linux32.xml: Add orig_r2 register.
567 * features/s390-linux64.xml: Likewise.
568 * features/s390x-linux64.xml: Likewise.
569 * features/s390-linux32v1.xml: New file.
570 * features/s390-linux32v2.xml: Likewise.
571 * features/s390-linux64v1.xml: Likewise.
572 * features/s390-linux64v2.xml: Likewise.
573 * features/s390x-linux64v1.xml: Likewise.
574 * features/s390x-linux64v2.xml: Likewise.
575
576 * features/s390-linux32.c: Regenerate.
577 * features/s390-linux64.c: Likewise.
578 * features/s390x-linux64.c: Likewise.
579 * features/s390-linux32v1.c: New generated file.
580 * features/s390-linux32v2.c: Likewise.
581 * features/s390-linux64v1.c: Likewise.
582 * features/s390-linux64v2.c: Likewise.
583 * features/s390x-linux64v1.c: Likewise.
584 * features/s390x-linux64v2.c: Likewise.
585
586 * regformats/s390-linux32.dat: Regenerate.
587 * regformats/s390-linux64.dat: Regenerate.
588 * regformats/s390x-linux64.dat: Regenerate.
589 * regformats/s390-linux32v1.dat: New generated file.
590 * regformats/s390-linux32v2.dat: Likewise.
591 * regformats/s390-linux64v1.dat: Likewise.
592 * regformats/s390-linux64v2.dat: Likewise.
593 * regformats/s390x-linux64v1.dat: Likewise.
594 * regformats/s390x-linux64v2.dat: Likewise.
595
336060f3
PA
5962011-12-05 Pedro Alves <pedro@codesourcery.com>
597
598 * linux-nat.c (resume_stopped_resumed_lwps): Call
599 registers_changed.
600
049e32d3
PA
6012011-12-05 Pedro Alves <pedro@codesourcery.com>
602
603 * breakpoint.c: Include record.h.
604 (breakpoints_always_inserted_mode): Return false when the record
605 target is in use.
606
5c03c7f9 6072011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
608
609 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
610 Reinstate perror_with_name call on ptrace error. Remove #if 0.
611 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
612 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
613
fbbd034e
AS
6142011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
615
616 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
617 `i'(-Wshadow).
618
a5ff8356 6192011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
620
621 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
622
6232011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
624
a5ff8356
AS
625 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
626 of `tdep'(-Wshadow).
627
93f2a35e
JK
6282011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 Fix compilation --without-expat.
631 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
632 from ...
633 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
634
2268b414
JK
6352011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
636 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
639 * features/library-list-svr4.dtd: New file.
640 * remote.c (PACKET_qXfer_libraries_svr4): New.
641 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
642 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
643 * solib-svr4.c (struct svr4_library_list): New.
644 [HAVE_LIBEXPAT]: Include xml-support.h.
645 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
646 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
647 [HAVE_LIBEXPAT] (svr4_library_list_children)
648 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
649 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
650 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
651 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
652 (svr4_read_so_list): Extend the corruption message by addresses.
653 (svr4_current_sos): New variable library_list, call
654 svr4_current_sos_via_xfer_libraries.
655 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
656
585861ea
JK
6572011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
658
659 PR threads/13448
660 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
661 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
662
9750bca9
JK
6632011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 PR breakpoints/13346
666 * dwarf2read.c (process_psymtab_comp_unit): Set
667 PSYMTABS_ADDRMAP_SUPPORTED.
668 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
669 validity. New field psymtabs_addrmap_supported.
670 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
671 psymtabs_addrmap_supported.
672 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
673 !PSYMTABS_ADDRMAP_SUPPORTED.
674 (dump_psymtab, maintenance_info_psymtabs): Print also
675 psymtabs_addrmap_supported.
676
f28c316a
DE
6772011-12-01 Doug Evans <dje@google.com>
678
679 * python/py-type.c (type_object_methods): Fix "array" doc string.
680
fc0ae648
AB
6812011-12-01 Andrew Burgess <aburgess@broadcom.com>
682
683 * source.c (print_source_lines_base): Fix missing braces on else
684 clause leading to additional output.
685
d6db1fab
UW
6862011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
687
688 * s390-nat.c (SUBOFF): Remove.
689 (s390_native_supply, s390_native_collect): New functions.
690 (supply_gregset, supply_fpregset): Use s390_native_supply.
691 (fill_gregset, fill_fpregset): Use s390_native_collect.
692
693 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
694 (s390_unwind_pseudo_register): New function.
695 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
696 registers instead of PC and CC.
697 (s390_backchain_frame_unwind_cache): Likewise.
698 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
699 full GPR pseudos.
700 (s390_trad_frame_prev_register): New function.
701 (s390_frame_prev_register): Use it.
702 (s390_sigtramp_frame_prev_register): Likewise.
703 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
704 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
705 special callback to unwind any pseudo.
706
707 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
708 * features/s390-core64.xml: Likewise.
709 * features/s390x-core64.xml: Likewise.
710 * features/s390-linux32.c: Regenerate.
711 * features/s390-linux64.c: Likewise.
712 * features/s390x-linux64.c: Likewise.
713
1dd635ac
UW
7142011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
715
716 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
717
0161e4b9
UW
7182011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
719
720 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
721 instruction. Add more diagnostic output.
722
0c36327f
AS
7232011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
724
725 * MAINTAINERS (Write After Approval): Add myself to the list.
726
b4264740
SD
7272011-11-29 Sanjoy Das <sdas@igalia.com>
728
729 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
730 (jit_bfd_try_read_symtab): Fix comments.
731
87326c78
DD
7322011-11-28 DJ Delorie <dj@redhat.com>
733
734 * NEWS: Mention RL78 simulator.
735
1e3a8f45
JB
7362011-11-28 Joel Brobecker <brobecker@adacore.com>
737
738 * symfile.h (struct quick_symbol_functions): Fix the documentation
739 of field map_matching_symbols, as symbols are sorted using
740 strcmp_iw_ordered, not strcmp_iw.
741
265e52c3
JB
7422011-11-28 Paul Hilfinger <hilfinger@adacore.com>
743
744 * symfile.h (struct quick_symbol_functions): Update the
745 documentation for field map_matching_symbols.
746
1a1d5513
JB
7472011-11-28 Joel Brobecker <brobecker@adacore.com>
748
749 * ada-lang.c (compare_names): Fix wrong return value in case
750 string1 starts with the same contents as string2, followed
751 by an underscore that do not start a symbol name suffix.
752
5d9c5995
PM
7532011-11-28 Phil Muldoon <pmuldoon@redhat.com>
754
755 PR python/13369
756 PR python/13374
757
758 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
759 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
760 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
761 exceptions.
762 * python/py-type.c (typy_strip_typedefs): Ditto.
763 (typy_legacy_template_argument): Ditto.
764 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
765 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
766
2bf50f6f
JB
7672011-11-27 Joel Brobecker <brobecker@acacore.com>
768
769 * remote.c (remote_get_tracepoint_status): Delete addrbuf
770 local variable. Avoid use of sprintf_vma.
771
744ab88c
SD
7722011-11-27 Sanjoy Das <sdas@igalia.com>
773
774 Fix regression in jit.exp.
775 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
776 (jit_register_code): Set the jit_objfile_data field to the correct
777 value.
778
46ad3598
UW
7792011-11-25  Uros Bizjak  <ubizjak@gmail.com>
780
781 * alpha-tdep.c (br_opcode): New.
782 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
783 (alpha_deal_with_atomic_sequence): New function.
784 (alpha_gdbarch_init): Handle single stepping of atomic sequences
785 with alpha_deal_with_atomic_sequence.
786
e4c5f296
TG
7872011-11-24 Tristan Gingold <gingold@adacore.com>
788
789 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
790 fields. Add oso_sym, end_sym and nbr_syms.
791 (macho_register_oso): Change interface.
792 (macho_symtab_add_minsym): New function.
793 (macho_symtab_read): Rewritten.
794 (get_archive_prefix_len): Remove trailing blanks.
795 (oso_el_compare_name): Add comment.
796 (struct macho_sym_hash_entry): New structure.
797 (macho_relocate_common_syms): Remove.
798 (macho_sym_hash_newfunc): New function.
799 (macho_resolve_oso_sym_with_minsym): Likewise.
800 (macho_add_oso_symfile): Rewritten.
801 (macho_symfile_read_all_oso): Remove trailing blanks.
802 Adjust code to free oso vector.
803 (macho_symfile_read): Likewise.
804 Move code to initialize minimal symbol
805
130854df
MR
8062011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
807
808 * mips-tdep.c (extended_offset): Fix formatting.
809
3d7bb9d9
DE
8102011-11-23 Doug Evans <dje@google.com>
811
812 * dwarf2read.c (dw2_lookup_symtab): Add comment.
813 (dw2_expand_symtabs_with_filename): Ditto.
814 (dw2_expand_symtabs_matching): Ditto.
815 (dw2_map_symbol_filenames): Ditto.
816
1fbf5ada
JB
8172011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
818
819 * ada-lang.c (assign_aggregate): Minor reformatting.
820
d984108d
JB
8212011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
822
823 * ada-lang.c (assign_aggregate): Remove declaration of local
824 variable `i' which is shadowing another variable with the same
825 name declared in the outer scope.
826
18af8284
JB
8272011-11-23 Joel Brobecker <brobecker@adacore.com>
828
829 * ada-lang.c (get_base_type): Renames base_type. Adjust all
830 calls throughout this file.
831
1fc7b5d7
JB
8322011-11-23 Joel Brobecker <brobecker@adacore.com>
833
834 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
835 FormatMessage.
836
36dfb11c
TT
8372011-11-22 Tom Tromey <tromey@redhat.com>
838
839 PR mi/8444:
840 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
841 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
842 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
843 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
844 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
845 (print_it_catch_syscall, print_it_catch_exec)
846 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
847 (bpstat_print): Add 'kind' argument. Handle
848 TARGET_WAITKIND_LOADED.
849 * infrun.c (normal_stop): Update for bpstat_print change. Don't
850 handle TARGET_WAITKIND_LOADED here.
851 * breakpoint.h (bpstat_print): Update.
852
5bd6aa83
TT
8532011-11-22 Tom Tromey <tromey@redhat.com>
854
855 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
856
f5afdc18
TT
8572011-11-22 Tom Tromey <tromey@redhat.com>
858
859 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
860 Use static_assert to check the size of
861 async_reason_string_lookup.
862 * common/gdb_assert.h (static_assert): New macro.
863
a3769e0c
AM
8642011-11-22 Alan Modra <amodra@gmail.com>
865
866 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
867 destination calculation. Don't expect >> to sign extend. Don't
868 add a break if branch lands inside the sequence anywhere.
869
56767571
KS
8702011-11-21 Keith Seitz <keiths@redhat.com>
871
872 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
873 -var-evaluate-expression of an enumeration and fix expected result.
874 * gdb.mi/mi2-varvdisplay.exp: Likewise.
875
8443c207
KY
8762011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
877
878 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
879 the case where osdata->items is empty. Rename column names to a
880 canonical form to avoid problems with unusual column names.
881
97643830
YQ
8822011-11-21 Yao Qi <yao@codesourcery.com>
883
884 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
885
f196051f
SS
8862011-11-20 Stan Shebs <stan@codesourcery.com>
887
888 * NEWS: Mention tracepoint additions.
889 * breakpoint.h (struct tracepoint): New field traceframe_usage.
890 * breakpoint.c (print_one_breakpoint_location): Identify
891 tracepoints as such when reporting hit counts, report
892 trace buffer usage.
893 (create_tracepoint_from_upload): Copy status info.
894 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
895 add fields user_name, notes, start_time, stop_time.
896 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
897 * tracepoint.c (trace_user): New global.
898 (trace_notes): New global.
899 (trace_stop_notes): New global.
900 (start_tracing): Add argument and trace note handling.
901 (stop_tracing): Ditto.
902 (trace_start_command): Add notes argument.
903 (trace_stop_command): Ditto.
904 (trace_status_command): Report additional status info.
905 (trace_status_mi): Similarly.
906 (trace_save): Update, record tracepoint status.
907 (set_disconnected_tracing): Call target method directly.
908 (send_disconnected_tracing_value): Remove.
909 (set_trace_user): New function.
910 (set_trace_notes): New function.
911 (set_trace_stop_notes): New function.
912 (parse_trace_status): Handle additional status.
913 (parse_tracepoint_status): New function.
914 (parse_tracepoint_definition): Call it.
915 (tfile_get_tracepoint_status): New function.
916 (init_tfile_ops): Use it.
917 (_initialize_tracepoint): Add new setshows.
918 * target.h (struct target_ops): New methods to_get_tracepoint_status
919 and to_set_trace_notes.
920 (target_get_tracepoint_status): New macro.
921 (target_set_trace_notes): New macro.
922 * target.c (update_current_target): Add new methods.
923 * remote.c (remote_get_tracepoint_status): New function.
924 (remote_set_trace_notes): New function.
925 (init_remote_ops): Add them.
926 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
927 (mi_cmd_trace_stop): Ditto.
928
3623dc3a
SD
9292011-11-20 Sanjoy Das <sdas@igalia.com>
930
931 * jit.c: Include regcache.h.
932 (jit_gdbarch_data, jit_frame_unwind): New static variables.
933 (jit_unwind_reg_set_impl, free_reg_value_impl)
934 (jit_unwind_reg_get_impl, jit_frame_sniffer)
935 (jit_frame_unwind_stop_reason, jit_frame_this_id)
936 (jit_frame_prev_register, jit_dealloc_cache)
937 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
938 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
939 jit_prepend_unwinder.
940 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
941
1825a88d
SD
9422011-11-20 Sanjoy Das <sdas@igalia.com>
943
944 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
945 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
946 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
947 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
948 (finalize_symtab, jit_object_close_impl)
949 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
950 (free_objfile_data): New functions.
951 (_initialize_jit): Register jit_objfile_data with a proper cleanup
952 function.
953
784c47ee
SD
9542011-11-20 Sanjoy Das <sdas@igalia.com>
955
956 * jit.c: Include gdb-dlfcn.h.
957 (loaded_jit_reader, reader_init_fn_sym): New static variables.
958 (jit_reader_load, jit_reader_load_command)
959 (jit_reader_unload_command): New functions.
960 (_initialize_jit): Add commands "jit-reader-load" and
961 "jit-reader-unload".
962
a2d08b9e
SD
9632011-11-20 Sanjoy Das <sdas@igalia.com>
964
965 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
966 * config.in: Add new #define HAVE_LIBDL.
967 * configure.ac: Add check for -ldl.
968 * configure: Re-generated by autoconf.
969 * gdb-dlfcn.c: New file.
970 * gdb-dlfcn.h: New file.
971
b8e0a31c
SD
9722011-11-20 Sanjoy Das <sdas@igalia.com>
973
974 * config.in: Add new #defines: JIT_READER_DIR and
975 JIT_READER_DIR_RELOCATABLE.
976 * configure.ac: New GDB directory entry for jit-reader-dir.
977 * configure: Re-generated by autoconf.
978 * jit.c: New static variable: const char *jit_reader_dir.
979 (_initialize_jit): Relocate jit_reader_dir.
980
f997c383
SD
9812011-11-20 Sanjoy Das <sdas@igalia.com>
982
983 * Makefile.in: Add jit-reader.h as a header. Have it installed in
984 $(includedir)/gdb.
985 * configure.ac: Generate a correct value for TARGET_PTR for
986 jit-reader.h. Tell configure to generate jit-reader.h from
987 jit-reader.in.
988 * configure: Re-generated by autoconf.
989 * jit-reader.in: New file.
990 * jit.c: Include jit-reader.h.
991
dc8c0494
SD
9922011-11-20 Sanjoy Das <sdas@igalia.com>
993
994 * MAINTAINERS (Write After Approval): Add myself to the list.
995
01efb936
UW
9962011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
997
998 * findvar.c (read_frame_register_value): Respect value_offset
999 of the register value. Remove big-endian special case.
1000
732f3f12
TT
10012011-11-18 Tom Tromey <tromey@redhat.com>
1002
1003 PR build/7196:
1004 * remote.c (putpkt_for_catch_errors): New function.
1005 (remote_kill): Use it.
1006
bfccc43c
YQ
10072011-11-18 Yao Qi <yao@codesourcery.com>
1008
1009 * breakpoint.c (create_breakpoint): Produce query message according to
1010 breakpoint's type.
1011 Allocate tracepoint per correct type.
1012 Don't check SALs for pending fast tracepoints.
1013 * tracepoint.c (process_tracepoint_on_disconnect): New.
1014 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1015
3ea46bff
YQ
10162011-11-18 Yao Qi <yao@codesourcery.com>
1017
1018 * breakpoint.c (install_breakpoint): Add one more parameter so that
1019 update_global_location_list is called conditionally.
1020 (create_fork_vfork_event_catchpoint): Update.
1021 (create_syscall_event_catchpoint): Update.
1022 (create_breakpoint_sal): Update.
1023 (create_breakpoint_sal): Update. Call do_cleanups before
1024 install_breakpoint.
1025 * ada-lang.c (create_ada_exception_catchpoint): Update.
1026 * breakpoint.h (install_breakpoint): Update declaration.
1027
598cfb71
UW
10282011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1029
1030 * spu-tdep.c (spu_return_value): Fix handling of
1031 TYPE_CALLING_CONVENTION annotation.
1032
caf4328c
UW
10332011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1034
1035 * skip.c (skip_function_command): Work around uninitialized
1036 variable warning.
1037
2b54dda2
DM
10382011-11-16 David S. Miller <davem@davemloft.net>
1039
1040 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1041 'tv_usec' to long for printf since these fields have a type which
1042 varies.
1043
93bf33fd
DE
10442011-11-15 Doug Evans <dje@google.com>
1045
1046 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1047
9cc10fd1
PK
10482011-11-15 Paul Koning <paul_koning@dell.com>
1049
1050 * python/py-type.c (typy_get_composite): New function.
1051 (typy_nonzero): New function.
1052 (typy_values): Rename from typy_fields.
1053 (typy_fields): New function.
1054 (typy_length): Raise exception if not struct, union, or enum type.
1055 (typy_getitem): Ditto.
1056 (typy_has_key): Ditto.
1057 (typy_make_iter): Ditto.
1058
c011a4f4
DE
10592011-11-15 Doug Evans <dje@google.com>
1060
1061 * NEWS: Mention new parameter basenames-may-differ.
1062 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1063 ! basenames_may_differ.
1064 * psymtab.c (lookup_partial_symtab): Ditto.
1065 * symtab.c (lookup_symtab): Ditto.
1066 (basenames_may_differ): New global.
1067 (_initialize_symtab): New parameter basenames-may-differ.
1068 * symtab.h (basenames_may_differ): Declare.
1069
865ecab4
LM
10702011-11-15 Pedro Alves <pedro@codesourcery.com>
1071 Luis Machado <lgustavo@codesourcery.com>
1072
1073 * auxv.c: Include observer.h.
1074 (auxv_inferior_data_cleanup): New.
1075 (invalidate_auxv_cache_inf): New.
1076 (invalidate_auxv_cache): New.
1077 (get_auxv_inferior_data): New.
1078 (auxv_inferior_data): New static global.
1079 (auxv_info): New structure.
1080 (target_auxv_search): Use get_auxv_inferior_data instead of
1081 target_read_alloc and don't free cached buffers.
1082 (fprint_target_auxv): Likewise
1083 (_initialize_auxv): Register per-inferior auxv cache and register
1084 observers to invalidate auxv cache when needed.
1085
ed59ded5
DE
10862011-11-14 Doug Evans <dje@google.com>
1087
1088 Make "!" an alias for "shell".
1089 * NEWS: Add mention.
1090 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1091 adding "!" command, always add it.
1092 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1093 command of length one.
1094
405f8e94
SS
10952011-11-14 Stan Shebs <stan@codesourcery.com>
1096 Kwok Cheung Yeung <kcy@codesourcery.com>
1097
1098 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1099 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1100 the minimum instruction size for fast tracepoints.
1101 * target.h (struct target_ops): Add new method
1102 to_get_min_fast_tracepoint_insn_len.
1103 (target_get_min_fast_tracepoint_insn_len): New.
1104 * target.c (update_current_target): Set up new target operation.
1105 * remote.c (remote_write_bytes_aux): Fix typo.
1106 (remote_get_min_fast_tracepoint_insn_len): New.
1107 (init_remote_ops): Initialize new field.
1108
3e05895e
TT
11092011-11-14 Tom Tromey <tromey@redhat.com>
1110
1111 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1112 (encode_actions): Likewise.
1113
1e4d1764
YQ
11142011-11-14 Yao Qi <yao@codesourcery.com>
1115
1116 * remote.c (struct remote_state): <install_in_trace> new field.
1117 (PACKET_InstallInTrace): New enum value.
1118 (remote_install_in_trace_feature): Support InstallInTrace.
1119 (remote_supports_install_in_trace): Likewise.
1120 (remote_protocol_features): Likewise.
1121 (_initialize_remote): Likewise.
1122 (remote_can_download_tracepoint): New.
1123 * target.h (struct target): New field
1124 `to_can_download_tracepoint'.
1125 (target_can_download_tracepoint): New macro.
1126 * target.c (update_current_target): Update.
1127 * breakpoint.h (struct bp_location): Add comment on field
1128 `duplicate'.
3ccd4ac6
YQ
1129 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1130 and tracepoint.
1e4d1764
YQ
1131 (remove_breakpoints): Don't remove tracepoints.
1132 (tracepoint_locations_match ): New.
1133 (breakpoint_locations_match): Call it.
1134 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1135 (download_tracepoint_locations): New.
1136 (update_global_location_list): Call it.
1137 * tracepoint.c (find_matching_tracepoint): Delete.
1138 (find_matching_tracepoint_location): Renamed from
1139 find_matching_tracepoint. Return bp_location rather than
1140 tracepoint.
1141 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1142 tracepoint is found.
1143
e8ba3115
YQ
11442011-11-14 Yao Qi <yao@codesourcery.com>
1145
1146 * target.h (struct target): <to_download_tracepoint> Change type
1147 of parameter from tracepoint to bp_location.
1148 * target.c (update_current_target): Update.
1149 * tracepoint.c (start_tracing): Update.
1150 * remote.c (remote_download_tracepoint): Remove loop for each location
1151 of a tracepoint.
1152
edcc485a
MR
11532011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1154
1155 * i386-nat.c (i386_insert_hw_breakpoint): Call
1156 i386_update_inferior_debug_regs.
1157 (i386_remove_hw_breakpoint): Likewise.
1158
3742cc8b
YQ
11592011-11-14 Yao Qi <yao@codesourcery.com>
1160
1161 * breakpoint.c (init_raw_breakpoint): Call
1162 add_location_to_breakpoint to replace duplicated code.
1163 (add_location_to_breakpoint): Adjust the breakpoint's
1164 address prior to allocating a location.
1165
71eba9c2 11662011-11-12 Matt Rice <ratmice@gmail.com>
1167
1168 * macrocmd.c (macro_no_macro_info): New function.
1169 (macro_expand_command): Use macro_no_macro_info.
1170 (macro_expand_once_command): Ditto.
1171 (info_macro_command): Add argument processing,
1172 move info_definitions_command here.
1173 (_initialize_macrocmd): Remove info definitions command.
1174 Add arguments to info macro help text.
1175 * NEWS: Replace info definitions command with new info macro options.
1176
731971ed
KS
11772011-11-11 Keith Seitz <keiths@redhat.com>
1178
1179 PR gdb/12843
1180 * linespec.c (locate_first_half): Keep ':' if it looks
1181 like it could be part of a Windows path starting with
1182 a drive letter.
1183
6953d224
PA
11842011-11-10 Pedro Alves <pedro@codesourcery.com>
1185
1186 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1187 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1188
0c94aa73
PA
11892011-11-10 Pedro Alves <pedro@codesourcery.com>
1190
1191 * target.c (target_waitstatus_to_string): Handle
1192 TARGET_WAITKIND_NO_RESUMED.
1193
f6b47be4
DE
11942011-11-10 Doug Evans <dje@google.com>
1195
74e2f255
DE
1196 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1197 `need_fullname'.
1198 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1199 (map_partial_symbol_filenames): Ditto. All callers updated.
1200 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1201 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1202 parameter need_fullname.
1203
256f06f3
DE
1204 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1205 * source.c (symtab_to_fullname): Ditto.
1206
50f182aa
DE
1207 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1208 * gdb-demangle.h: ... here. New file.
1209 * demangle.c: #include "gdb-demangle.h".
1210 (_initialize_demangler): Use initialize_file_ftype for prototype.
1211 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1212 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1213 from utils.c
1214 * utils.c: Update. #include "gdb-demangle.h".
1215 * symtab.h (asm_demangle): Delete.
1216 (demangle): Move declaration next to use.
1217 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1218 * dwarf2read.c: #include "gdb-demangle.h".
1219 * gnu-v2-abi.c: Ditto.
1220 * jv-typeprint.c: Ditto.
1221 * mdebugread.c: Ditto.
1222 * p-typeprint.c: Ditto.
1223 * stabsread.c: Ditto.
1224 * printcmd.c: Ditto.
1225 (asm_demangle): Delete declaration.
1226 * tui/tui-stack.c: #include "gdb-demangle.h".
1227
f6b47be4
DE
1228 * python/py-type.c (typy_fields_items): Call check_typedef.
1229
22355c90
JB
12302011-11-10 Joel Brobecker <brobecker@adacore.com>
1231
1232 * findvar.c (read_frame_register_value): Read the correct bytes
1233 from registers on big-endian architectures.
1234
bd119cf1 12352011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1236
1237 * procfs.c (load_syscalls): Make a cleanup.
1238 (open_procinfo_files): fd==0 is ok.
1239
0a86f364
JB
12402011-11-10 Joel Brobecker <brobecker@adacore.com>
1241
1242 * procfs.c (iterate_over_mappings): Call do_cleanups before
1243 returning.
1244
9bc118a5
DE
12452011-11-09 Doug Evans <dje@google.com>
1246
1247 * gdbtypes.c (check_typedef): Document that this function can
1248 throw an exception.
1249
a7860e76
TT
12502011-11-09 Tom Tromey <tromey@redhat.com>
1251
1252 PR c++/13342:
1253 * valops.c (value_full_object): Return early if real type is
1254 smaller than the enclosing type.
1255
60965737
YQ
12562011-11-08 Yao Qi <yao@codesourcery.com>
1257
1258 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1259
72a2e3dc
MI
12602011-11-08 Meador Inge <meadori@codesourcery.com>
1261
1262 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1263 register when the frame can't be determined.
1264 * arm-tdep.c (arm_analyze_prologue): Ditto.
1265
ce3b0ff7
SS
12662011-11-07 Stan Shebs <stan@codesourcery.com>
1267
1268 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1269
2b914b52
JB
12702011-11-07 Joel Brobecker <brobecker@adacore.com>
1271
1272 * infrun.c (handle_inferior_event): Minor reformatting.
1273
6f809020
DE
12742011-11-05 Doug Evans <dje@google.com>
1275
1276 * source.c (forget_cached_source_info_for_objfile): Move call to
1277 objfile->sf->qf->forget_cached_source_info outside of
1278 ALL_OBJFILE_SYMTABS loop.
1279 (forget_cached_source_info): Delete unused variable `s'.
1280
75d12218
JK
12812011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1282
1283 * i386-nat.c (dr_ref_count): Remove unused variable.
1284
e565b837
DE
12852011-11-05 Doug Evans <dje@google.com>
1286
1287 * main.c (captured_main): Set lim_at_start before calling
1288 make_command_stats_cleanup.
1289
0a1c4d10
DE
12902011-11-04 Doug Evans <dje@google.com>
1291
1292 * utils.c: #include "timeval-utils.h".
1293 (cmd_stats): Rename start_time to start_cpu_time.
1294 New member start_wall_time.
1295 (report_command_stats): Report wall time.
1296 (make_command_stats_cleanup): Record start wall time.
1297
a1d705ee
TT
12982011-11-04 Tom Tromey <tromey@redhat.com>
1299
1300 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1301
81de56be
RO
13022011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1303
1304 * coff-pe-read.c: Include defs.h before bfd.h.
1305
3ab1ec27
PM
13062011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1307
1308 PR Python/13345
1309
1310 * python/python.c (python_run_simple_file): Expand tilde in path.
1311
cd829959
PM
13122011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1313
1314 PR Python/13363
1315
1316 * python/py-type.c (typy_lookup_type): Do not return a type in
1317 an exception handler.
1318
080ad648
JK
13192011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1320 Eli Zaretskii <eliz@gnu.org>
1321
1322 * linux-nat.c (_initialize_linux_nat): Improve help
1323 for `info proc stat', `info proc status', `info proc cwd',
1324 `info proc cmdline' and `info proc exe'.
1325
3065dfb6
SS
13262011-11-02 Stan Shebs <stan@codesourcery.com>
1327
1328 String collection for tracepoints.
1329 * NEWS: Mention string collection.
1330 * common/ax.def (tracenz): New bytecode.
1331 * ax-gdb.h (trace_string_kludge): Declare.
1332 * ax-gdb.c: Include valprint.h and c-lang.h.
1333 (trace_string_kludge): New global.
1334 (gen_traced_pop): Add string case.
1335 (agent_command): Add string case.
1336 * tracepoint.h (decode_agent_options): Declare.
1337 * tracepoint.c: Include cli-utils.h.
1338 (decode_agent_options): New function.
1339 (validate_actionline): Call it.
1340 (encode_actions_1): Ditto.
1341 * target.h (struct target_ops): New method to_supports_string_tracing.
1342 (target_supports_string_tracing): New macro.
1343 * target.c (update_current_target): Add to_supports_string_tracing.
1344 * remote.c (struct remote_state): New field string_tracing.
1345 (remote_string_tracing_feature): New function.
1346 (remote_protocol_features): New feature tracenz.
1347 (remote_supports_string_tracing): New function.
1348 (init_remote_ops): Set to_supports_string_tracing.
1349
f179e162
JK
13502011-11-02 Pedro Alves <pedro@codesourcery.com>
1351 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 * linux-nat.c: Include cli/cli-utils.h.
1354 (enum info_proc_what): New.
1355 (linux_nat_info_proc_cmd): Rename to ...
1356 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1357 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1358 status_f and stat_f from WHAT. Throw error on extra parameters.
1359 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1360 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1361 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1362 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1363 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1364 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1365 `info proc cmdline', `info proc exe' and `info proc all' as real
1366 subcommands of `info proc'.
1367
7b35ec7f 13682011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1369
1370 * Makefile.in: (SFILES): Add skip.c.
1371 (HFILES_NO_SRCDIR): Add skip.h.
1372 (COMMON_OBS): Add skip.o.
1373 * skip.h, skip.c: New.
1374 * breakpoint.h (set_default_breakpoint): Remove.
1375 (get_sal_arch): Declare.
1376 * breakpoint.c: Remove default_breakpoint_valid,
1377 default_breakpoint_address, default_breakpoint_symtab,
1378 default_breakpoint_line, default_breakpoint_pspace variables.
1379 (get_sal_arch): Make public.
1380 (set_default_breakpoint): Remove.
1381 (parse_breakpoint_sals, create_breakpoint, clear_command,
1382 decode_line_spec_1): Remove uses of default_breakpoint variables;
1383 replaced with function calls into stack.c.
1384 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1385 * cli/cli-cmds.c: Add skiplist.
1386 (init_cmd_lists): Initialize skiplist.
1387 (init_cli_cmds): Fix comment (classes of commands appear in
1388 alphabetical order).
1389 * infrun.c (handle_inferior_event): Add check that we don't step into
1390 a function whose pc is marked for skip.
1391 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1392 last_displayed_addr, last_displayed_symtab, last_displayed_line
1393 variables.
1394 (set_last_displayed_sal): New static function.
1395 (print_frame_info): Switch call to set_default_breakpoint to call to
1396 set_last_displayed_sal.
1397 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1398 get_last_displayed_pspace, get_last_displayed_addr,
1399 get_last_displayed_symtab, get_last_displayed_line,
1400 get_last_displayed_sal): New public functions.
1401 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1402 get_last_displayed_pspace, get_last_displayed_addr,
1403 get_last_displayed_symtab, get_last_displayed_line,
1404 get_last_displayed_sal): Declare.
1405
b60e1588
JL
14062011-11-01 Justin Lebar <justin.lebar@gmail.com>
1407
1408 * MAINTAINERS (Write After Approval): Add myself to the list.
1409
d31647d2
YQ
14102011-10-29 Yao Qi <yao@codesourcery.com>
1411
1412 * infcmd.c (disconnect_command): Call disconnect_tracing.
1413
b1d96efd
JK
14142011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Code cleanup.
1417 * symtab.c (skip_prologue_sal): Code reformatting.
1418
4dfb2365
JK
14192011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 PR symtab/13208
1422 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1423 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1424 SAI.
1425
0e5bf2a8
PA
14262011-10-28 Pedro Alves <pedro@codesourcery.com>
1427
1428 * linux-nat.c (linux_nat_filter_event): Remove `options'
1429 parameter, and dead code that used it. If we're handling a
1430 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1431 in our lwp list, re-add it.
1432 (check_zombie_leaders): New.
1433 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1434 wait for children with WNOHANG, and always wait for all children.
1435 Don't check for no resumed children upfront. Simplify wait loop.
1436 Check for zombie thread group leaders after handling all wait
1437 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1438 unwaited-for children left.
1439 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1440 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1441 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1442 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1443
821296b7
SA
14442011-10-28 Sterling Augustine <saugustine@google.com>
1445
1446 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1447 * symtab.c (free_completion_list): New function.
1448 (do_free_completion_list): Likewise.
1449 (default_make_symbol_completion_list_break_on): New variable
1450 back_to. Call make_cleanup and discard_cleanups.
1451 (make_source_files_completion_list): Likewise.
1452
03c3051a
PK
14532011-10-28 Paul Koning <paul_koning@dell.com>
1454
1455 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1456 * NEWS: Mention deep_items.
1457
8e7ebaf5
PA
14582011-10-28 Alen Skondro <askondro@gmail.com>
1459
8de33dc2 1460 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1461 defined.
1462
e0c6ef61
MI
14632011-10-27 Meador Inge <meadori@codesourcery.com>
1464
1465 * MAINTAINERS (Write After Approval): Add myself to the list.
1466
b56d6f31
JB
14672011-10-27 Joel Brobecker <brobecker@adacore.com>
1468
1469 * value.h (read_frame_register_value): Add declaration.
1470 * findvar.c (read_frame_register_value): New function.
1471 (value_from_register): Use read_frame_register_value
1472 instead of get_frame_register_value + value_contents_copy
1473 to get value contents.
1474
d234ef5c
DE
14752011-10-27 Doug Evans <dje@google.com>
1476
1477 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1478 source_script_from_stream if it may have been found on the search path.
1479 * python/py-auto-load.c (source_section_scripts): Pass full path to
1480 source_python_script_for_objfile.
1481 * python/python.c (source_python_script): Delete stream parameter.
1482 All callers updated.
1483 (source_python_script_for_objfile): Ditto.
1484 * python/python-internal.h (source_python_script_for_objfile): Update.
1485 * python/python.h (source_python_script): Update.
1486
d849d44f
TT
14872011-10-27 Tom Tromey <tromey@redhat.com>
1488
1489 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1490 (ada_sals_for_line): Remove declarations.
1491
2231f1fb
KP
14922011-10-27 Kevin Pouget <kevin.pouget@st.com>
1493
1494 Move unwind reasons to an external .def file
1495 * frame.c (frame_stop_reason_string): Rewrite using
1496 unwind_stop_reasons.def.
1497 * frame.h (enum unwind_stop_reason): Likewise.
1498 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1499 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1500 constants for bound-checking.
1501 * unwind_stop_reasons.def: New file.
1502 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1503 instead of a distinct value.
1504
f77b9a5d
PM
15052011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1506
1507 PR python/13331
1508
1509 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1510 (convert_values_to_python): Return on Python tuple allocation
1511 failure. Return NULL on value conversion error.
1512
76dce0be
PM
15132011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1514
1515 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1516 (bppy_set_task): Ditto.
1517 (bppy_delete_breakpoint): Ditto.
1518 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1519 (gdbpy_lookup_global_symbol): Ditto.
1520 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1521 * python/py-frame.c (frapy_is_valid): Ditto.
1522 (frame_info_to_frame_object): Ditto.
1523 * python/py-type.c (typy_lookup_type): Ditto.
1524 (typy_getitem): Ditto.
1525 (typy_has_key): Ditto.
1526 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1527
f17b6955
JB
15282011-10-26 Joel Brobecker <brobecker@adacore.com>
1529
1530 * gdbarch.h: Regenerate.
1531
86ba1042
JB
15322011-10-26 Meador Inge <meadori@codesourcery.com>
1533
1534 * gdbarch.sh (function_list): Use 'pstring' when printing
1535 'gcore_bfd_target'.
1536 * gdbarch.c: Regenerate.
1537
c34fd852
UW
15382011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1539
1540 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1541 and frame caches if PTID refers to all threads of a process.
1542
931bb47f
UW
15432011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1544
1545 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1546 to create_breakpoint.
1547
88aed45e
UW
15482011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1549
1550 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1551 (ppc_sysv_abi_push_dummy_call): Use it.
1552 (do_ppc_sysv_return_value): Likewise.
1553 (ppc64_sysv_abi_push_dummy_call): Likewise.
1554 (ppc64_sysv_abi_return_value): Likewise.
1555
3eaf3fa2
PK
15562011-10-26 Paul Koning <paul_koning@dell.com>
1557
1558 * python/lib/gdb/types.py (deepitems): New function.
1559
913460fc
PK
15602011-10-25 Paul Koning <paul_koning@dell.com>
1561
1562 PR python/13327
1563
1564 * python/py-value.c (value_to_value_object): Remove fetching of
1565 the value if it was lazy.
1566 (valpy_get_is_lazy): New function.
1567 (valpy_fetch_lazy): New function.
1568
2b5b9d09
JB
15692011-10-24 Joel Brobecker <brobecker@adacore.com>
1570
1571 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1572 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1573
e21ffe51
PA
15742011-10-24 Pedro Alves <pedro@codesourcery.com>
1575
1576 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1577 event, in non-stop, if not stopping, make sure the new lwp has
1578 last_resume_kind set to resume_continue. Assert that when we're
1579 resuming the new lwp, its last_resume_kind is resume_continue.
1580
7aee8dc2
PA
15812011-10-24 Pedro Alves <pedro@codesourcery.com>
1582
1583 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1584 already set when marking the event thread as not executing in
1585 non-stop mode.
1586
4b4e080e
PA
15872011-10-24 Pedro Alves <pedro@codesourcery.com>
1588
1589 * infrun.c (handle_inferior_event): Add debug output for
1590 TARGET_WAITKIND_NO_HISTORY.
1591
baacfb07
PM
15922011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1593
1594 * NEWS: Move set/show extended-prompt to "New Options". Expand
1595 description. Fix typos.
1596
8432bc41
PM
15972011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1598
1599 PR python/13310
1600
1601 * python/py-param.c (call_doc_function): Correctly deference on
1602 function exit.
1603
6cda5a20
JB
16042011-10-21 Joel Brobecker <brobecker@adacore.com>
1605
1606 * ada-tasks.c (print_ada_task_info): Fix computation of
1607 number of tasks displayed in command output.
1608
13294f7d
JK
16092011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1610 Ulrich Weigand <uweigand@de.ibm.com>
1611
1612 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1613 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1614 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1615 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1616 gdbarch_unwind_pc.
1617
460c1c54
CC
16182011-10-20 Cary Coutant <ccoutant@google.com>
1619
1620 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1621 section to...
1622 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1623 flag. Adjust all callers.
1624 (process_psymtab_comp_unit): Remove adjustment for type section.
1625
a10964d1
AR
16262011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1627
1628 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1629 arguments by adding OBJFILE. Instead of getting objfile from
1630 symbol's symtab, use new argument OBJFILE.
1631 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1632 arguments by adding OBJFILE.
1633 * gdb/dwarf2read.c (new_symbol_full): Change call to
1634 cp_scan_for_anonymous_namespaces to match new signature.
1635 * gdb/stabsread.c (define_symbol): Change call to
1636 cp_scan_for_anonymous_namespaces to match new signature.
1637
27ca1a5b
PM
16382011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1639
1640 PR python/13308
1641 PR python/13309
1642
1643 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1644 leak.
1645 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1646 leak. Delete unused variables.
1647
9df2fbc4
PM
16482011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1649
1650 PR python/12656
1651
1652 * python/py-frame.c (frapy_read_var): Use const struct *block.
1653 * python/py-type.c (typy_lookup_typename): Likewise.
1654 (typy_lookup_type): Likewise.
1655 (typy_legacy_template_argument): Likewise.
1656 (typy_template_argument): Likewise.
1657 (gdbpy_lookup_type): Likewise.
1658 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1659 * python/py-block.c (blpy_block_object): Likewise.
1660 (blpy_iter): Likewise.
1661 (blpy_get_start): Likewise.
1662 (blpy_get_end): Likewise.
1663 (blpy_get_function): Likewise.
1664 (blpy_get_superblock): Likewise.
1665 (set_block): Likewise.
1666 (block_to_block_object): Likewise.
1667 (block_object_to_block): Likewise.
1668 (blpy_is_valid): Likewise.
1669 (blpy_get_global_block): New function.
1670 (blpy_get_static_block): New function.
1671 (blpy_is_global): New function.
1672 (blpy_is_static): New function.
1673 * blockframe.c (block_innermost_frame): Likewise.
1674 * valops.c (value_of_variable): Likewise.
1675 * frame.h: Update prototypes.
1676 * python/python-internal.h: Likewise.
1677 * value.h: Likewise.
1678
4743b735
CC
16792011-10-19 Cary Coutant <ccoutant@google.com>
1680
1681 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1682 type_offset field.
1683
6caca83c
CC
16842011-10-19 Cary Coutant <ccoutant@google.com>
1685
1686 * dwarf2read.c (peek_abbrev_code): New function.
1687 (dw2_get_file_names): Check for dummy compilation units.
1688 (create_debug_types_hash_table): Likewise.
1689 (process_psymtab_comp_unit): Likewise.
1690 (load_partial_comp_unit): Likewise.
1691 (load_full_comp_unit): Likewise.
1692
43136979
AR
16932011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1694
1695 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1696 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1697 pt_phdr if PT_PHDR was found.
1698
0a07729b
TT
16992011-10-17 Joost van der Sluis <joost@cnoc.nl>
1700
1701 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1702 type or "<unnamed type"> when there is no name assigned.
1703 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1704 avoid a sigint when no name is assigned.
1705
21ae7a4d
JK
17062011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1707
1708 Revert:
1709 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1710 * dwarf2expr.c (ctx_no_read_reg): New function.
1711 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1712 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1713 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1714 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1715
32d1c362
DE
17162011-10-16 Doug Evans <dje@google.com>
1717
1718 * NEWS: Document python gdb.printing.register_pretty_printer's new
1719 `replace' parameter.
1720
da096638
KS
17212011-10-14 Keith Seitz <keiths@redhat.com>
1722
1723 PR c++/13225
1724 * eval.c (evaluate_subexp_standard): Do not construct
1725 an array of types; pass the value array directly to
1726 find_overload_match.
1727 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1728 (rank_function): Take an array of values instead of types.
1729 (rank_one_type): Add struct value * parameter.
1730 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1731 (rank_function): For each argument, pass the argument's
1732 value to rank_one_type.
1733 (rank_one_type): Add VALUE parameter.
1734 If the parameter type is a pointer and the argument type
1735 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1736 VALUE is zero.
1737 Update all calls to rank_one_type, passing NULL for new
1738 VALUE parameter.
1739 * valarith.c (value_user_defined_cpp_op): Do not construct
1740 an array of types; pass the value array directly to
1741 find_overload_match.
1742 * valops.c (find_overload_method_list): Take an array of
1743 values instead of types.
1744 Save the type of OBJP for later use.
1745 Update calls to find_oload_champ, and find_oload_champ_namespace.
1746 (find_oload_champ_namespace): Take an array of values instead
1747 of types.
1748 (find_oload_champ_namespace_loop): Likewise.
1749 (find_oload_champ): Likewise.
1750 (classify_oload_match): Inspect all arguments
1751 until INCOMPATIBLE is found. Return the worst badness found
1752 otherwise.
1753 (compare_parameters): Update call to rank_one_type.
1754 * value.h (find_overload_match): Take an array of values instead
1755 of types.
1756
3957565a
JK
17572011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 Drop lazy lm_info reading.
1760 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1761 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1762 (lm_info_read): New function.
1763 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1764 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1765 lm_dynamic_from_link_map.
1766 (lm_next, lm_prev, lm_name): Remove.
1767 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1768 initialization incl. read_memory. No longer use lm_name.
1769 (svr4_free_so): Drop lm_info->lm freeing.
1770 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1771 explicit lm_addr and lm initialization.
1772 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1773 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1774 lm_name.
1775
cb08cc53
JK
17762011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1777 Paul Pluzhnikov <ppluzhnikov@google.com>
1778
1779 * defs.h (struct so_list): New forward declaration.
1780 (make_cleanup_free_so): New declaration.
1781 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1782 (svr4_free_so): Move the function here from downwards. Handle NULL
1783 so->lm_info.
1784 (svr4_free_library_list): New.
1785 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1786 Use more cleanups. Use new parameter ignore_first instead of
1787 ignore_first_link_map_entry.
1788 (svr4_current_sos): New variable ignore_first, initialize it. New
1789 variable back_to, use it for svr4_free_library_list protection.
1790 (svr4_free_so): Remove - move upwards.
1791 * utils.c: Include solist.h.
1792 (do_free_so, make_cleanup_free_so): New functions.
1793
22c05d8a
JK
17942011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1795
1796 Fix internal error regression.
1797 * value.c (value_primitive_field): Handle value_optimized_out. Move
1798 packed bitfields comment.
1799
d930d06e
TT
18002011-10-13 Tom Tromey <tromey@redhat.com>
1801
1802 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1803 always released.
1804
2ff6b080
TT
18052011-10-13 Tom Tromey <tromey@redhat.com>
1806
1807 * python/py-type.c (typy_has_key): Make 'field' const.
1808
d6c5869f
LM
18092011-10-13 Luis Machado <lgustavo@codesourcery.com>
1810
1811 * remote.c (remote_save_trace_data): Invert comparison.
1812
a70633a2
LM
18132011-10-13 Luis Machado <lgustavo@codesourcery.com>
1814
1815 * tracepoint.c (trace_save_command): Use filename instead of
1816 args when printing.
1817
e103e986
JK
18182011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1819
1820 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1821 if .size is 0.
1822
db24da6d
YQ
18232011-10-13 Yao Qi <yao@codesourcery.com>
1824
1825 PR gdb/12703
1826 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1827 whether insn is a 32-bit Thumb-2 instruction.
1828 (thumb_in_function_epilogue_p): Likewise.
1829 (thumb_get_next_pc_raw): Likewise.
1830 (arm_breakpoint_from_pc): Likewise.
1831
1d6edc3c
JK
18322011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1835 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1836 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1837 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1838 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1839 zero DATA.
1840 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1841 validity.
1842 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1843 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1844 clear DATA on zero SIZE.
1845
adabb602
DE
18462011-10-12 Doug Evans <dje@google.com>
1847
1848 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1849 header->first_die_offset here. All callers updated.
1850
5048e516
JK
18512011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 Fix compatibility with texinfo versions older than 4.12.
1854 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1855 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1856 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1857 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1858 * configure: Regenerate.
1859 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1860 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1861 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1862
0574c78f
GB
18632011-10-12 Gary Benson <gbenson@redhat.com>
1864
1865 * breakpoint.h (pc_at_non_inline_function): Declare.
1866 * breakpoint.c (is_non_inline_function,
1867 pc_at_non_inline_function): New functions.
1868 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1869 if the stop is at a location where functions cannot be inlined.
1870
12d9289a
PA
18712011-10-12 Pedro Alves <pedro@codesourcery.com>
1872
1873 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1874 the core wanted them stopped, or if they now have a pending event
1875 to report.
ecf8e7f5
PA
1876 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1877 down to stop_and_resume_callback.
1878 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1879 having new pending events after calling linux_nat_filter_event.
12d9289a 1880
96408a79
SA
18812011-10-11 Sterling Augustine <saugustine@google.com>
1882
1883 * dwarf2read.c: Undo inadvertent changes in previous commit.
1884
9c6c53f7
SA
18852011-10-11 Sterling Augustine <saugustine@google.com>
1886
1887 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1888 logic.
1889
0e8aefe7
UW
18902011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1891
1892 * symfile.c (separate_debug_file_exists): Fix condition.
1893
349d1385
DM
18942011-10-11 David S. Miller <davem@davemloft.net>
1895
1896 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1897 static.
1898 * regcache.h (regcache_restore): Remove declaration.
1899
205c306f
DM
1900 * gdbarch.sh: New field 'long_long_align_bit'.
1901 * gdbarch.c, gdbarch.h: Regenerate.
1902 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1903 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1904
941b2081
JK
19052011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 Revert this part of:
1908 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1909 Support @entry in input expressions.
1910 * c-exp.y (ENTRY, unknown_cpp_name): New.
1911 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1912 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1913 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1914 (name_not_typename: ENTRY): New.
1915 (yylex): Recognize ENTRY.
1916
1917 Reimplement @entry in input expressions.
1918 * c-exp.y (ENTRY): New.
1919 (variable: name_not_typename ENTRY): New.
1920 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1921
3c4d7e12
PA
19222011-10-11 Pedro Alves <pedro@codesourcery.com>
1923
1924 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1925 parent and child's pids as soon as we detect a clone event.
1926 Adjust another debug message.
1927
ea23808b
PA
19282011-10-11 Pedro Alves <pedro@codesourcery.com>
1929
1930 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1931 not zombie instead of reading the whole file.
1932
904578ed
JK
19332011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 Fix separate debuginfo warning with "remote:" access.
1936 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1937 * symfile.c (get_file_crc): New function with the code moved from ...
1938 (separate_debug_file_exists): ... this function, specifically variables
1939 buffer and count. New variable verified_as_different, set it. Remove
1940 file_crc initialization. Verify also if both files are not the same
1941 manually, if needed.
1942
51370a33
YQ
19432011-10-11 Yao Qi <yao@codesourcery.com>
1944
1945 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1946 to get address.
1947
0838fb57
DE
19482011-10-10 Doug Evans <dje@google.com>
1949
1950 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1951 libthread_db when we load libpthread or the main symbol file.
1952 (thread_db_inferior_created): New function.
1953 (_initialize_thread_db): Attach inferior_created observer.
1954 * linux-nat.c (linux_child_post_attach): Remove call to
1955 check_for_thread_db.
1956 (linux_child_post_startup_inferior): Ditto.
1957 * objfiles.h (OBJF_MAINLINE): Define.
1958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1959 allocate_objfile when appropriate.
1960
623bd5b7
UW
19612011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1962
1963 PR gdb/13218
1964 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1965 Remove unused variables.
1966 (get_linux_version): Remove function.
1967 (_initialize_arm_linux_nat): Do not call it.
1968
79395f92
PA
19692011-10-10 Pedro Alves <pedro@codesourcery.com>
1970
1971 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1972 new clone lwp if the core asked it to stop. Don't pass on
1973 unexpected signals to the new clone; leave them pending instead.
1974
eff3df78
PA
19752011-10-10 Pedro Alves <pedro@codesourcery.com>
1976
1977 * linux-nat.c (resume_lwp): Remove redundant debug output.
1978
4b60df3d
PA
19792011-10-10 Pedro Alves <pedro@codesourcery.com>
1980
1981 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1982 last_resume_kind before clearing it, and use the copy instead to
1983 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1984 resume_clear_callback in the non-stop path too.
1985
6501578c
YQ
19862011-10-09 Yao Qi <yao@codesourcery.com>
1987
1988 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1989 Honor OPTIONS and VAL's type.
1990 (common_val_print, value_print): Update to pass one more parameter.
1991
5a56e9c5
DE
19922011-10-09 Doug Evans <dje@google.com>
1993
1994 Add new "alias" command.
1995 * NEWS: Mention new command.
1996 * command.h (valid_user_defined_cmd_name_p): Declare.
1997 * defs.h (make_cleanup_dyn_string_delete): Declare.
1998 * utils.c: #include "dyn-string.h".
1999 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2000 * cli/cli-cmds.c: #include "dyn-string.h".
2001 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2002 (init_cli_cmds): Add new command.
2003 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2004
509f0fd9
JK
20052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2006
2007 Fix compatibility with older GCCs.
2008 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2009 * stack.c (read_frame_arg): Initialize val_deref.
2010
2bda9cc5
JK
20112011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2012
2013 Entry values NEWS entries, DWARF disassembly support.
2014 * NEWS: New entry values entry.
2015 (set print entry-values, show print entry-values)
2016 (set debug entry-values, show debug entry-values): New entries.
2017 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2018 indent. Remove variable start. Move header printing out. Respect
2019 INDENT. Support DW_OP_GNU_entry_value.
2020 (locexpr_describe_location_1): Move the header printing here, extend
2021 the disassemble_dwarf_expression passed parameters.
2022
a471c594
JK
20232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Display @entry parameter values even for references.
2026 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2027 coerce_ref_if_computed.
2028 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2029 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2030 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2031 existing push_dwarf_reg_entry_value call. Add new detection calling
2032 dwarf_block_to_dwarf_reg_deref. Update the error message.
2033 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2034 * dwarf2expr.h
2035 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2036 parameter deref_size, describe it in the comment.
2037 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2038 (dwarf_block_to_dwarf_reg_deref): New declaration.
2039 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2040 deref_size, describe it in the function comment. New variables
2041 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2042 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2043 describe it in the function comment. Fetch the alternative block
2044 accoring to DEREF_SIZE.
2045 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2046 (entry_data_value_free_closure, entry_data_value_funcs): New.
2047 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2048 outer_val, target_val, val and addr. Try to fetch and create also
2049 referenced value content.
2050 (pieced_value_funcs): NULL value for coerce_ref.
2051 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2052 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2053 coerce_ref_if_computed.
2054 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2055 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2056 * stack.c (read_frame_arg): Compare also dereferenced values.
2057 * value.c (value_computed_funcs): Make the parameter v const, use
2058 value_lval_const for it.
2059 (value_lval_const, coerce_ref_if_computed): New function.
2060 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2061 * value.h (struct lval_funcs): New field coerce_ref.
2062 (value_computed_funcs): Make the parameter v const.
2063 (value_lval_const, coerce_ref_if_computed): New declarations.
2064
36b11add
JK
20652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2066
2067 Support @entry in input expressions.
2068 * c-exp.y (ENTRY, unknown_cpp_name): New.
2069 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2070 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2071 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2072 (name_not_typename: ENTRY): New.
2073 (yylex): Recognize ENTRY.
2074 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2075 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2076 Likewise.
2077 * parse.c (operator_length_standard): Likewise.
2078 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2079
3343315b
JK
20802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2081
2082 Display referenced values in backtraces.
2083 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2084 * stack.c (print_frame_arg): Likewise.
2085
ac71a68c
JK
20862011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2087
2088 Make some lval_funcs methods to default on NULL.
2089 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2090 NULL.
2091 (value_assign): Check if lval_computed write method is NULL.
2092 * value.h (struct lval_funcs): Comment NULL values for read and write
2093 methods.
2094
e18b2753
JK
20952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2096
2097 Display @entry parameter values (without references).
2098 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2099 New functions.
2100 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2101 New declarations.
2102 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2103 entry record.
2104 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2105 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2106 functions.
2107 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2108 (loclist_read_variable_at_entry): New function.
2109 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2110 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2111 DW_AT_location, call dwarf_block_to_sp_offset for it.
2112 * frame.h (print_entry_values_no, print_entry_values_only)
2113 (print_entry_values_preferred, print_entry_values_if_needed)
2114 (print_entry_values_both, print_entry_values_compact)
2115 (print_entry_values_default, print_entry_values): New declarations.
2116 (struct frame_arg): New field entry_kind.
2117 (read_frame_arg): New parameter entryargp.
2118 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2119 arg->entry_kind. Optionally print the `@entry' suffix.
2120 (list_args_or_locals): New variable entryarg, initialize it.
2121 Initialize also entry_kind of arg and entryarg. Conditionalize
2122 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2123 xfree for entryarg.error.
2124 * stack.c (print_entry_values_no, print_entry_values_only)
2125 (print_entry_values_preferred, print_entry_values_if_needed)
2126 (print_entry_values_both, print_entry_values_compact)
2127 (print_entry_values_default, print_entry_values_choices)
2128 (print_entry_values): New variables.
2129 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2130 print the `@entry' suffix, possibly in combination for
2131 print_entry_values_compact.
2132 (read_frame_arg): New parameter entryargp, new variables entryval,
2133 entryval_error and val_equal. Read in also entryargp, respect
2134 print_entry_values, compare the values using val_equal, fill in also
2135 argp->entry_kind (together with entryargp->entry_kind).
2136 (print_frame_args): New variable entryarg, initialize it.
2137 Conditionalize print_frame_arg for arg, add print_frame_arg for
2138 entryarg. Call xfree for entryarg.error.
2139 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2140 * symtab.h (struct symbol_computed_ops): New field
2141 read_variable_at_entry.
2142
93d86cef
JK
21432011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 Code reshuffle.
2146 * frame.h (struct frame_arg): New definition.
2147 (read_frame_arg): New declaration.
2148 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2149 (list_args_or_locals): ... the code here. New variable arg, call
2150 read_frame_arg and list_arg_or_local with it. Unify the
2151 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2152 arg.error.
2153 * stack.c (print_frame_arg): New functiom from the code of
2154 print_frame_args.
2155 (read_frame_arg): New function.
2156 (print_frame_args): Remove variable val. New variable arg, call
2157 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2158
2d6c5dc2
JK
21592011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 Protect entry values against self tail calls.
2162 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2163 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2164
111c6489
JK
21652011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Recognize virtual tail call frames.
2168 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2169 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2170 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2171 * dwarf2-frame-tailcall.c: New file.
2172 * dwarf2-frame-tailcall.h: New file.
2173 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2174 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2175 REGS.PREV only after CIE execution.
2176 (struct dwarf2_frame_cache): New field tailcall_cache.
2177 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2178 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2179 parts, try to find entry_cfa_sp_offset. Call
2180 dwarf2_tailcall_sniffer_first.
2181 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2182 when appropriate.
2183 (dwarf2_frame_dealloc_cache): New function.
2184 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2185 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2186 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2187 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2188 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2189 * dwarf2loc.c (func_addr_to_tail_call_list)
2190 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2191 (call_site_find_chain_1, call_site_find_chain): New.
2192 * dwarf2loc.h (struct call_site_chain): New.
2193 (call_site_find_chain): New declaration.
2194 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2195 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2196 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2197 * stack.c (frame_info): Support also TAILCALL_FRAME.
2198
bb984ff1
JK
21992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2200
2201 Tail call sites reader implementation.
2202 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2203 fill in TYPE_TAIL_CALL_LIST.
2204 * gdbtypes.h (struct func_type): New field tail_call_list.
2205 (struct call_site): New field tail_call_next.
2206 (TYPE_TAIL_CALL_LIST): New definition.
2207
8e3b41a9
JK
22082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2209
2210 Implement basic support for DW_TAG_GNU_call_site.
2211 * block.c: Include gdbtypes.h and exceptions.h.
2212 (call_site_for_pc): New function.
2213 * block.h (call_site_for_pc): New declaration.
2214 * defs.h: Include hashtab.h.
2215 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2216 declarations.
2217 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2218 ctx_no_push_dwarf_reg_entry_value.
2219 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2220 (dwarf_block_to_dwarf_reg): New function.
2221 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2222 (ctx_no_push_dwarf_reg_entry_value): New function.
2223 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2224 push_dwarf_reg_entry_value.
2225 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2226 declarations.
2227 * dwarf2loc.c: Include gdbcmd.h.
2228 (dwarf_expr_ctx_funcs): New forward declaration.
2229 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2230 (dwarf_expr_reg_to_entry_parameter)
2231 (dwarf_expr_push_dwarf_reg_entry_value): New.
2232 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2233 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2234 (needs_dwarf_reg_entry_value): New function.
2235 (needs_frame_ctx_funcs): Install it.
2236 (_initialize_dwarf2loc): New function.
2237 * dwarf2loc.h (entry_values_debug): New declaration.
2238 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2239 (read_call_site_scope): New forward declaration.
2240 (process_full_comp_unit): Copy call_site_htab.
2241 (process_die): Support DW_TAG_GNU_call_site.
2242 (read_call_site_scope): New function.
2243 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2244 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2245 (cleanup_htab): Delete.
2246 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2247 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2248 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2249 FIELD_LOC_KIND_DWARF_BLOCK.
2250 * gdbtypes.h (enum field_loc_kind): New entry
2251 FIELD_LOC_KIND_DWARF_BLOCK.
2252 (struct main_type): New loc entry dwarf_block.
2253 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2254 (TYPE_FIELD_DWARF_BLOCK): New.
2255 * python/py-type.c: Include dwarf2loc.h.
2256 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2257 internal_error call on unknown FIELD_LOC_KIND.
2258 * symtab.h (struct symtab): New field call_site_htab.
2259 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2260 (core_addr_hash, core_addr_eq): New functions.
2261
b6cdc2c1
JK
22622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 Code reshuffle.
2265 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2266 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2267 calling_convention under func_stuff there.
2268 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2269 (init_type) <TYPE_CODE_FUNC>: Likewise.
2270 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2271 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2272 * gdbtypes.h (enum type_specific_kind): Change
2273 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2274 (struct main_type) <type_specific>: Change calling_convention to
2275 func_stuff. Move calling_convention to ...
2276 (struct func_type): ... this new struct.
2277 (INIT_FUNC_SPECIFIC): New #define.
2278 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2279
181cebd4
JK
22802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2281
2282 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2283 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2284 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2285 ctx->ref_addr_size. Handle its invalid value.
2286 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2287 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2288 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2289 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2290 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2291 (dwarf2_per_cu_ref_addr_size): New function.
2292
c471e790
JK
22932011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2294
2295 Code cleanup.
2296 * dwarf2read.c (per_cu_header_read_in): New function.
2297 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2298 variables cu_header_local and cu_headerp.
2299
741f5e3c
JK
23002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2301
2302 Fix initial language detection with -readnow.
2303 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2304 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2305 searches only for global symbols.
2306
a73d2258
JK
23072011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2308
2309 Fix printed anonymous struct name.
2310 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2311 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2312 (anonymous_struct_prefix): New function.
2313 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2314 (dwarf2_name): Strip for anonymous structs any prefixes.
2315
749fd4ea
DE
23162011-10-07 Doug Evans <dje@google.com>
2317
1fa57852
DE
2318 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2319 `replace'.
2320
690a4937
DE
2321 * python/lib/gdb/printing.py: Whitespace cleanup.
2322
749fd4ea
DE
2323 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2324 warning.
2325
4c38200f
PA
23262011-10-07 Pedro Alves <pedro@codesourcery.com>
2327
2328 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2329 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2330 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2331 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2332 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2333 (arm_linux_remove_watchpoint): Adjust.
2334 * i386-linux-nat.c (i386_linux_dr_set_control)
2335 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2336 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2337 (ia64_linux_remove_watchpoint): Adjust.
2338 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2339 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2340 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2341 (ppc_linux_insert_mask_watchpoint)
2342 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2343 (ppc_linux_remove_watchpoint): Adjust.
2344 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2345 Adjust.
2346
b7ff339d
CV
23472011-10-07 Corinna Vinschen <vinschen@redhat.com>
2348
2349 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2350 (clear_win32_environment): New function for Cygwin to clear out
2351 Win32 environment.
2352 (windows_create_inferior): Prepare new environment from in_env
2353 for Cygwin, too.
2354
f287c1f3
PM
23552011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2356
5631e596 2357 PR python/13264
f287c1f3
PM
2358 * python/py-value.c (valpy_call): Check that arguments are
2359 a tuple.
2360 (is_intlike): Remove call to CHECK_TYPEDEF.
2361 (valpy_nonzero): Catch GDB exceptions.
2362 (valpy_absolute): Ditto.
2363 (valpy_lazy_string): Ditto.
2364 (valpy_call): Ditto.
2365 (valpy_get_is_optimized_out): Ditto.
2366 (valpy_long): Ditto.
2367 (valpy_float): Ditto.
2368 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2369 (valpy_richcompare): Ditto.
2370
03583c20
UW
23712011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2372
2373 * inferior.h (disable_randomization): Declare.
2374 * infrun.c (disable_randomization): New global variable.
2375 (show_disable_randomization): New function.
2376 (set_disable_randomization): Likewise.
2377 (_initialize_infrun): Install set/show disable-randomization
2378 commands.
2379 * linux-nat.c (disable_randomization): Remove.
2380 (show_disable_randomization): Likewise.
2381 (set_disable_randomization): Likewise.
2382 (_initialize_linux_nat): No longer install set/show
2383 disable-randomization commands here.
2384 (linux_nat_supports_disable_randomization): New function.
2385 (linux_nat_add_target): Install it.
2386 * remote.c (PACKET_QDisableRandomization): New enum value.
2387 (remote_protocol_packets): Support QDisableRandomization.
2388 (_initialize_remote): Likewise.
2389 (remote_supports_disable_randomization): New function.
2390 (init_remote_ops): Install it.
2391 (extended_remote_supports_disable_randomization): New function.
2392 (init_extended_remote_ops): Install it.
2393 (extended_remote_disable_randomization): New function.
2394 (extended_remote_create_inferior_1): Call it.
2395 * target.h (struct target_ops): Add to_supports_disable_randomization.
2396 (target_supports_disable_randomization): Add prototype.
2397 * target.c (target_supports_disable_randomization): New function.
2398 (find_default_supports_disable_randomization): Likewise.
2399 (init_dummy_target): Install it.
2400
20c168b5
KP
24012011-10-07 Kevin Pouget <kevin.pouget@st.com>
2402
2403 Allow Python notification of new object-file loadings.
2404 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2405 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2406 Add build rule for this file.
2407 * python/py-event.h (emit_new_objfile_event): New prototype.
2408 (newobjfile): New Python event emitter.
2409 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2410 Python event registry.
2411 * python/py-inferior.c: Include objfiles.h
2412 (python_new_objfile): New function.
2413 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2414 observers.
2415 * python/py-newobjfileevent.c: New file.
2416 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2417 prototype.
2418 * python/python.c (_initialize_python): Add
2419 gdbpy_initialize_new_objfile_event call.
2420 * NEWS: Add item for new Python event "gdb.newobjfile"
2421
b1c8db38
TG
24222011-10-05 Tristan Gingold <gingold@adacore.com>
2423
2424 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2425 Extract the ravenscar task name from the symbol for the atcb.
2426
0dab82e9
PK
24272011-10-04 Paul Koning <paul_koning@dell.com>
2428
2429 * python/py-type.c (typy_make_iter): Add forward declaration.
2430 (typy_fields_items): Use the gdb.Type iterator.
2431
84ad80e6
PK
24322011-10-04 Paul Koning <paul_koning@dell.com>
2433
2434 * NEWS: Add entry for Python gdb.Type mapping methods.
2435
cb6be26b
KP
24362011-10-04 Kevin Pouget <kevin.pouget@st.com>
2437
2438 PR python/12691: Add the inferior to Python exited event
2439 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2440 to exited_event.
2441 * python/py-event.h (emit_exited_event): Likewise
2442 * python/-inferior.c (python_inferior_exit): Likewise
2443
6005b210
JB
24442011-10-03 Joel Brobecker <brobecker@adacore.com>
2445
2446 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2447 in output of -ada-task-info GDB/MI command.
2448
75082e8c
JB
24492011-10-03 Joel Brobecker <brobecker@adacore.com>
2450
2451 * ada-lang.h (struct inferior): Declare.
2452 (print_ada_task_info): Add declaration.
2453 * ada-tasks.c (print_ada_task_info): Make non-static.
2454 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2455 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2456 * mi/mi-main.c: #include "ada-lang.h".
2457 (mi_cmd_list_features): Add "ada-task-info" to the list
2458 of supported features.
2459 (mi_cmd_ada_task_info): New function.
2460
7ed7d719
JB
24612011-10-03 Joel Brobecker <brobecker@adacore.com>
2462
2463 * python/python.c (python_run_simple_file): New function.
2464 (source_python_script, source_python_script_for_objfile):
2465 Replace call to PyRun_SimpleFile by call to
2466 python_run_simple_file.
2467
3fcaed38
PK
24682011-10-03 Paul Koning <paul_koning@dell.com>
2469
2470 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2471 (value_to_value_object): Fetch value if it was lazy.
2472
8e5c319d
JK
24732011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 Code cleanup.
2476 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2477 Rearrange the code for it.
2478
dd11a36c
JB
24792011-10-02 Joel Brobecker <brobecker@adacore.com>
2480
2481 * breakpoint.c (bkpt_print_recreate): Add call to
2482 print_recreate_thread.
2483
723b724b
MF
24842011-09-29 Mike Frysinger <vapier@gentoo.org>
2485
2486 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2487 PTRACE_GETFDPIC_INTERP): Define.
2488
412946b6
YQ
24892011-09-28 Yao Qi <yao@codesourcery.com>
2490
2491 * symfile.c (add_symbol_file_command): Update message on usage.
2492
a73bb892
PK
24932011-09-28 Paul Koning <paul_koning@dell.com>
2494
2495 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2496 (typy_length, typy_get, typy_has_key, typy_make_iter)
2497 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2498 (typy_iterator_iter, typy_iterator_iternext)
2499 (typy_iterator_dealloc): New functions to implement standard
2500 Python mapping methods on gdb.Type object.
2501 (gdb.TypeIterator): New Python type.
2502 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2503
fe10a582
DM
25042011-09-28 David S. Miller <davem@davemloft.net>
2505
2506 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2507 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2508 * sparc-tdep.c (sparc_complex_floating_p): New function.
2509 (sparc32_store_arguments): Handle complex floats.
2510 (sparc32_extract_return_value): Likewise.
2511 (sparc32_store_return_value): Likewise.
2512 (sparc32_stabs_argument_has_addr): Likewise.
2513 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2514 (sparc64_store_floating_fields): Handle complex floats.
2515 (sparc64_store_arguments): Likewise.
2516 (sparc64_store_return_value): Likewise.
2517
c93dbcba
EZ
25182011-09-28 Eli Zaretskii <eliz@gnu.org>
2519
2520 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2521 before the change on 2006-12-09.
2522 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2523 generates the environment block for CreateProcessA, modulo the
2524 Cygwin-specific parts that are not needed here.
2525
f00c55f8
TG
25262011-09-27 Tristan Gingold <gingold@adacore.com>
2527
2528 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2529 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2530 (darwin_solib_get_all_image_info_addr_at_init): New function.
2531 (darwin_solib_read_all_image_info_addr): Likewise.
2532 (darwin_solib_create_inferior_hook): Use the above two functions.
2533 * darwin-nat.c (darwin_execvp): Renames retval to res.
2534 (darwin_read_write_inferior): Update comment.
2535 (darwin_read_dyld_info): New function.
2536 (darwin_xfer_partial): Handle DYLD_INFO.
2537
6710bf39
SS
25382011-09-27 Stan Shebs <stan@codesourcery.com>
2539
2540 Add return address collection for tracepoints.
2541 * tracepoint.c (encode_actions_1): Add case for $_ret.
2542 (validate_actionline): Check for $_ret.
2543 (trace_dump_actions): Ditto.
2544 * ax-gdb.h (gen_trace_for_return_address): Declare.
2545 * ax-gdb.c: Include arch-utils.h.
2546 (gen_trace_for_return_address): New function.
2547 (agent_command): Add return address special case.
2548 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2549 (amd64_gen_return_address): New function.
2550 (amd64_init_abi): Call it.
2551 * i386-tdep.c: Include ax.h and ax-gdb.h.
2552 (i386_gen_return_address): New function.
2553 (i386_init_abi): Call it.
2554 * arch-utils.h (default_gen_return_address): Declare.
2555 * arch-utils.c (default_gen_return_address): New function.
2556 * gdbarch.sh (gen_return_address): New method.
2557 * gdbarch.h, gdbarch.c: Regenerate.
2558
e04e5beb
JM
25592011-09-23 Joseph Myers <joseph@codesourcery.com>
2560
2561 PR gdb/13079
2562 * i386-tdep.c (i386_frame_align): New.
2563 (i386_gdbarch_init): Use i386_frame_align.
2564
f3d6df6d
YQ
25652011-09-23 Yao Qi <yao@codesourcery.com>
2566
2567 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2568 to get address.
2569
e69860f1
TG
25702011-09-22 Tristan Gingold <gingold@adacore.com>
2571
2572 * fork-child.c (fork_inferior): Add exec_fun parameter.
2573 Call exec_fun or execvp.
2574 * inferior.h: Adjust prototype.
2575 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2576 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2577 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2578 * procfs.c (procfs_create_inferior): Ditto.
2579 * darwin-nat.c (darwin_execvp): New function.
2580 (darwin_create_inferior): Use it.
2581
4b51d87b
YQ
25822011-09-22 Yao Qi <yao@codesourcery.com>
2583
2584 * infrun.c (context_switch): Print debug message when switching to
2585 a different thread.
2586
56b9d9ac
UW
25872011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2588
2589 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2590 complex and vector types.
2591 (s390_return_value_convention): Likewise.
2592
2593 (s390_value_from_register): Call check_typedef.
2594 (extend_simple_arg): Likewise.
2595 (alignment_of): Likewise.
2596 (s390_push_dummy_call): Likewise.
2597 (s390_return_value): Likewise.
2598
b2cd6b29
JM
25992011-09-21 Joseph Myers <joseph@codesourcery.com>
2600
2601 * event-top.c (async_disconnect): If an exception is thrown from
2602 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2603 catch_errors.
2604 * top.c (quit_cover): Return void and take no arguments.
2605 * top.h (quit_cover): Update prototype.
2606
67ba4e42
JM
26072011-09-20 Joseph Myers <joseph@codesourcery.com>
2608
2609 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2610 current_uiout, not uiout.
2611
562f943b
DE
26122011-09-19 Doug Evans <dje@google.com>
2613
2614 * python/py-auto-load.c (source_section_scripts): Fix file
2615 descriptor leak.
2616 * python/python.c (source_python_script_for_objfile): Tweak comments.
2617
34518530
YQ
26182011-09-18 Yao Qi <yao@codesourcery.com>
2619 Ulrich Weigand <ulrich.weigand@linaro.org>
2620
2621 Support displaced stepping for Thumb 16-bit insns.
2622 * arm-tdep.c (THUMB_NOP) Define.
2623 (thumb_copy_unmodified_16bit): New.
2624 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2625 (thumb_copy_alu_reg): New.
2626 (arm_copy_svc): Move some common code to ...
2627 (install_svc): ... here. New.
2628 (thumb_copy_svc): New.
2629 (install_pc_relative): New.
2630 (thumb_copy_pc_relative_16bit): New.
2631 (thumb_decode_pc_relative_16bit): New.
2632 (thumb_copy_16bit_ldr_literal): New.
2633 (thumb_copy_cbnz_cbz): New.
2634 (cleanup_pop_pc_16bit_all): New.
2635 (thumb_copy_pop_pc_16bit): New.
2636 (thumb_process_displaced_16bit_insn): New.
2637 (thumb_process_displaced_32bit_insn): New.
2638 (thumb_process_displaced_insn): process thumb instruction.
2639
2640 Support displaced stepping for Thumb 32-bit insns.
2641 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2642 (thumb2_copy_preload): New.
2643 (thumb2_copy_copro_load_store): New.
2644 (thumb2_copy_b_bl_blx): New.
2645 (thumb2_copy_alu_imm): New.
2646 (thumb2_copy_load_reg_imm): New.
2647 (thumb2_copy_load_literal): New
2648 (thumb2_copy_block_xfer): New.
2649 (thumb_32bit_copy_undef): New.
2650 (thumb_32bit_copy_unpred): New.
2651 (thumb2_decode_ext_reg_ld_st): New.
2652 (thumb2_decode_svc_copro): New.
2653 (decode_thumb_32bit_store_single_data_item): New.
2654 (thumb_copy_pc_relative_32bit): New.
2655 (thumb_decode_pc_relative_32bit): New.
2656 (decode_thumb_32bit_ld_mem_hints): New.
2657 (thumb2_copy_table_branch): New
2658 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2659 instructions.
2660
2b16b2e3
YQ
26612011-09-18 Yao Qi <yao@codesourcery.com>
2662
2663 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2664 (install_b_bl_blx): Likewise.
2665
0f6f04ba
YQ
26662011-09-17 Yao Qi <yao@codesourcery.com>
2667
2668 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2669 (install_load_store): ... this. New.
2670 Change parameter BYTE to SIZE.
2671 (arm_copy_ldr_str_ldrb_strb): Update caller.
2672 (arm_decode_ld_st_word_ubyte): Update caller.
2673
e2d96639
YQ
26742011-09-17 Yao Qi <yao@codesourcery.com>
2675
2676 * infrun.c (displaced_step_fixup): Move some code ...
2677 (displaced_step_restore): ... here. New function.
2678 (handle_inferior_event): Cleanup displaced stepping state for both
2679 child and parent when get forked or vforked event.
2680 * regcache.c (get_thread_arch_aspace_regcache): New function.
2681 get_thread_arch_regcache (): Call it.
2682
a8123151
JB
26832011-09-16 Joel Brobecker <brobecker@adacore.com>
2684
2685 * ada-tasks.c (print_ada_task_info): New function, merging
2686 short_task_info and info_tasks together. Reimplement using
2687 ui-out instead of printing to stdout directly. Move the code
2688 building and checking the task list here, instead of leaving it
2689 in info_tasks_command.
2690 (info_task): Move the code building and checking the task
2691 list here, instead of leaving it in info_tasks_command.
2692 (info_tasks_command): Delete code building and checking
2693 the task list - moved elsewhere. Update calls to info_tasks
2694 and info_task.
2695
fbf06824
JB
26962011-09-16 Joel Brobecker <brobecker@adacore.com>
2697
2698 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2699
34a0bc90
JB
27002011-09-16 Joel Brobecker <brobecker@adacore.com>
2701
2702 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2703
79779fa9
JB
27042011-09-16 Joel Brobecker <brobecker@adacore.com>
2705
2706 * ada-lang.h (ada_build_task_list): Remove parameter
2707 `warn_if_null'.
2708 * ada-tasks.c (ada_build_task_list): Remove parameter
2709 `warn_if_null'. Adjust implementation and documentation.
2710 (valid_task_id, ada_get_environment_task)
2711 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2712 (info_tasks_command): Adjust implementation.
2713 (task_command): Likewise.
2714 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2715 to ada_build_task_list.
2716
e225eb91
JB
27172011-09-16 Joel Brobecker <brobecker@adacore.com>
2718
2719 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2720 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2721 (ada_tasks_inferior_data_handle): New static global.
2722 (get_ada_tasks_inferior_data): New function.
2723 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2724 (ada_get_environment_task, iterate_over_live_ada_tasks)
2725 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2726 Adjust.
2727 (ada_set_current_inferior_known_tasks_addr): New function.
2728 (read_known_tasks, ada_build_task_list, short_task_info)
2729 (info_tasks, info_task, info_tasks_command, task_command_1)
2730 (task_command, ada_task_list_changed): Adjust.
2731 (ada_tasks_invalidate_inferior_data): New function.
2732 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2733 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2734 * ada-lang.h (struct inferior): Add declaration.
2735 (ada_task_list_changed): Update profile.
2736 * remote-wtx-pd.c: #include "inferior.h".
2737 (switch_to_pd_internal): Update call to ada_task_list_changed.
2738
6da9ca05
JB
27392011-09-16 Joel Brobecker <brobecker@adacore.com>
2740
2741 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2742 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2743 (atcb_fieldno): Delete these static globals.
2744 (struct ada_tasks_pspace_data): New struct.
2745 (ada_tasks_pspace_data_handle): New static global.
2746 (get_ada_tasks_pspace_data): New function.
2747 (ada_tasks_invalidate_pspace_data): New function.
2748 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2749 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2750 (_initialize_tasks): Create this module's per-progspace
2751 data handle.
2752
dccd3cbd
JB
27532011-09-16 Joel Brobecker <brobecker@adacore.com>
2754
2755 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2756
f877b031
TG
27572011-09-16 Tristan Gingold <gingold@adacore.com>
2758
2759 * fork-child.c (fork_inferior): Update comment. Use alloca
2760 instead of xmalloc for argv. Move len and shell_command
2761 declarations in the block where they are used.
2762 Only call execvp. Factorize failure code.
2763
ae0c443d
JK
27642011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2765
2766 Code cleanup.
2767 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2768 `exp_element' instead of an element of the same and make the function
2769 static.
2770 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2771 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2772 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2773 Change argument of `write_exp_elt' function call.
2774 Remove extra spaces from comments.
2775 * parser-defs.h (write_exp_elt): Remove prototype.
2776
5af65ec0
PK
27772011-09-15 Paul Koning <paul_koning@dell.com>
2778
2779 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2780 count of item appended to list.
2781 * python/py-type.c (typy_fields): Likewise.
2782
72be8ccc
PK
27832011-09-15 Paul Koning <paul_koning@dell.com>
2784
883640a8 2785 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2786
92f6badc
KP
27872011-09-15 Kevin Pouget <kevin.pouget@st.com>
2788
2789 PR threads/12628
2790 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2791 processes with multiple threads.
2792 (inf_has_multiple_thread_cb): New function.
2793 (inf_has_multiple_threads): New function.
2794
0672bf41 27952011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2796
2797 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2798 * python/py-inferior.c (GdbMethods): New Python method definition.
2799
6839b47f
KP
28002011-09-15 Kevin Pouget <kevin.pouget@st.com>
2801
2802 Handle multiple breakpoint hits in Python interface:
2803 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2804 variable to breakpoints.
2805 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2806 bps instead of single breakpoint. Fix some space typos.
2807 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2808 variable to breakpoints.
2809
672f9b60
KP
28102011-09-15 Kevin Pouget <kevin.pouget@st.com>
2811
2812 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2813 note if the breakpoint is internal.
2814
43675ae4
KP
28152011-09-15 Kevin Pouget <kevin.pouget@st.com>
2816
0672bf41 2817 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2818
15148d6a
PA
28192011-09-14 Pedro Alves <pedro@codesourcery.com>
2820
2821 * infrun.c (prepare_for_detach, wait_for_inferior)
2822 (fetch_inferior_event): Don't flush the register cache.
2823 * remote.c (struct stop_reply) <regcache>: Add comment.
2824
d83e736b
JK
28252011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 Remove excessive DWARF expressions memory duplication.
2828 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2829 for block.data.
2830 (indirect_pieced_value): Remove variable result. Remove variable
2831 back_to and its use for baton.data.
2832 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2833 block.data.
2834 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2835 Update the function comment.
2836
c65b3e0d
PA
28372011-09-13 Pedro Alves <pedro@codesourcery.com>
2838
2839 * inferior.h (ALL_INFERIORS): New.
2840 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2841 for a stopped thread.
2842 (thread_db_find_new_threads): Look for threads in all inferiors.
2843
a1398e0c
PA
28442011-09-13 Pedro Alves <pedro@codesourcery.com>
2845
2846 * breakpoint.c (update_watchpoint): Handle the case of the
2847 watchpoint to update not being in the breakpoint list yet.
2848 (hw_watchpoint_use_count): New, factored out from
2849 hw_watchpoint_used_count.
2850 (hw_watchpoint_used_count): Rename to ...
2851 (hw_watchpoint_used_count_others): ... this. Add `except'
2852 parameter. Don't count resources of `except'. Use
2853 hw_watchpoint_use_count.
2854
30596231
PA
28552011-09-13 Pedro Alves <pedro@codesourcery.com>
2856
2857 * gdbthread.h (enum thread_state): Moved here.
2858 (struct thread_info): Rename `executing_' field to `executing' and
2859 `state_' to `state'.
2860 * thread.c (enum thread_state): Moved to gdbthread.h.
2861 (new_thread, add_thread_silent, delete_thread_1)
2862 (any_live_thread_of_process, thread_alive, set_running)
2863 (set_running, is_thread_state, any_running, is_executing)
2864 (set_executing, finish_thread_state, print_thread_info)
2865 (do_captured_thread_select): Adjust.
2866
bede5f5f
JK
28672011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2868
2869 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2870 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2871
4801a9a3
PA
28722011-09-12 Pedro Alves <pedro@codesourcery.com>
2873 Matt Rice <ratmice@gmail.com>
2874
2875 PR gdb/13175
2876
2877 * interps.c (struct interp) <interpreter_out>: Delete field.
2878 (interp_new): Remove the data and uiout parameters and adjust.
2879 (interp_set): Only set the current_uiout from the interpreter's
2880 uiout after initializing the interpreter. Adjust call to
2881 init_proc.
2882 (interp_ui_out): Adjust to call procs->ui_out_proc.
2883 (interp_data, interp_name): New.
2884 * interps.h (interp_init_ftype): Add `self' parameter.
2885 (interp_ui_out_ftype): New typedef.
2886 (struct interp_procs) <ui_out_proc>: New method pointer.
2887 (interp_new): Remove the data and uiout parameters.
2888 (interp_data, interp_name): Declare.
2889 * tui/tui-interp.c (tui_init): Adjust prototype.
2890 (tui_ui_out): New.
2891 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2892 tui_out here. Adjust call to interp_new.
2893 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2894 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2895 (cli_ui_out): New.
2896 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2897 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2898 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2899 Initialize mi->uiout depending on the mi_version as extracted from
2900 the interpreter's name.
2901 (mi_ui_out): New.
2902 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2903 interp_new. Don't allocate the ui_out's of the interpreters here.
2904
d0afda03 29052011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2906
d0afda03 2907 * solib.c (solib_used): New function.
59145f8c
AR
2908 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2909 by another so_list object before freeing it.
2910
bdaf8d4a
JK
29112011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2912
2913 Code cleanup.
2914 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2915 values.
2916
df15bd07
JK
29172011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 Code cleanup.
2920 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2921 (amd64_skip_xmm_prologue): ... this new function. Describe its
2922 parameters. No longer use amd64_prologue_line_bug.
2923 * defs.h (producer_is_gcc_ge_4): New declaration.
2924 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2925 (process_full_comp_unit): Update its caller. Remove
2926 amd64_prologue_line_bug initialization.
2927 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2928 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2929
25289eb2
PA
29302011-09-09 Pedro Alves <pedro@codesourcery.com>
2931
2932 * linux-nat.h (enum resume_kind): New.
2933 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2934 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2935 resume_stop on the new lwp.
25289eb2
PA
2936 (add_lwp): Set last_resume_kind as resume_continue by default.
2937 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2938 (resume_lwp): New, factored out from resume_callback. Also check
2939 for pending status in lp->waitstatus.
2940 (resume_callback): Reimplement.
2941 (resume_clear_callback): Set last_resume_kind as resume_stop.
2942 (resume_set_callback): Set last_resume_kind as resume_continue.
2943 (linux_nat_resume, linux_handle_extended_wait): Set
2944 last_resume_kind.
2945 (running_callback): Also check lp->waitstatus for pending events.
2946 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2947 is resume_step.
2948 (stop_and_resume_callback): Don't re-resume if the core wanted the
2949 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2950 using an invalidated pointer.
2951 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2952 SIGSTOPs if the core wanted the LWP to stop.
2953 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2954 wanted the lwp to stop. If the core wanted the lwp to stop, and
2955 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2956 of TARGET_SIGNAL_STOP.
2957 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2958 here. Instead, signal the lwp, and set the last_resume_kind to
2959 resume_stop.
2960
f687d035
PA
29612011-09-09 Pedro Alves <pedro@codesourcery.com>
2962
2963 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2964 -1 (error), if the lwp exits right after attaching.
2965
bc587a6b
DE
29662011-09-08 Doug Evans <dje@google.com>
2967
63d97a20
DE
2968 * py-cmd.c: Some minor formatting fixes.
2969 (gdbpy_parse_command_name): Rename text arg to name, make const.
2970 All callers updated.
2971 * python-internal.h (gdbpy_parse_command_name): Update.
2972
bc587a6b
DE
2973 * cli/cli-decode.c (add_cmd): Add comment.
2974
08711b9a
JK
29752011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2976
2977 PR breakpoints/12435
2978 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2979 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2980 * dwarf2read.c (process_full_comp_unit): Initialize
2981 amd64_prologue_line_bug.
2982 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2983
b2e7f004
JK
29842011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 Fix TUI screen corruption.
2987 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2988 batch_flag.
2989
8afd712c
JK
29902011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2991
2992 * findvar.c (read_var_value): Never return NULL, throw an error
2993 instead. Update the function comment. State symbol name in the error
2994 messages.
2995 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2996 read_var_value.
2997 * stack.c (print_frame_args): Likewise.
2998 * valops.c (value_of_variable): Likewise.
2999
b99b5f66
JK
30002011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 * stack.c (print_frame_args): New variable except. Wrap
3003 read_var_value and common_val_print into TRY_CATCH.
3004
85bc8cb7
JK
30052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3006
3007 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3008 caller to value_of_this.
3009 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3010 Twice.
3011 * valops.c (value_of_this): Remove parameter complain and variable ret.
3012 Update function comment. Never return NULL by this code.
3013 (value_of_this_silent): New function.
3014 * value.h (value_of_this): Remove parameter complain.
3015 (value_of_this_silent): New declaration.
3016
ede1849f
YQ
30172011-09-07 Yao Qi <yao@codesourcery.com>
3018
3019 * gdbthread.h (struct thread_info): Remove fields
3020 `stepping_through_solib_after_catch' and
3021 `stepping_through_solib_catchpoints'.
3022 * infrun.c (init_thread_stepping_state): Update.
3023 (process_event_stop_test, currently_stepping): Update.
3024 (currently_stepping_or_nexting_callback): Update.
3025
6aa27652
YQ
30262011-09-07 Yao Qi <yao@codesourcery.com>
3027
3028 * gdbthread.h (struct thread_info): Comment on field
3029 `step_after_step_resume_breakpoint'.
3030
00db5b94
PA
30312011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3032
3033 * remote.c (remote_console_output): Reindent.
3034
861152be
LM
30352011-09-06 Luis Machado <lgustavo@codesourcery.com>
3036
3037 * frame.c (has_stack_frames): Check for currently selected
3038 traceframe.
3039
ab821bc6
PA
30402011-09-06 Pedro Alves <pedro@codesourcery.com>
3041
3042 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3043 (set_async_annotation_level, set_async_prompt, pop_prompt)
3044 (push_prompt, new_async_prompt): Delete declarations.
3045 * top.h (get_prompt, set_prompt): Change prototype.
3046 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3047 declarations.
3048 * top.c (command_loop):
3049 (top_prompt): New global.
3050 (get_prefix, set_prefix, get_suffix, ): Delete.
3051 (get_prompt, set_prompt): Rewrite.
3052 (show_new_async_prompt): Rename to ...
3053 (show_prompt): ... this.
3054 (init_main): Adjust. Don't handle --annotate=2 here.
3055 * event-top.c (new_async_prompt): Delete.
3056 (the_prompts): Delete.
3057 (more_to_come): Make static.
3058 (display_gdb_prompt): Use top_level_prompt() to compute the top
3059 level prompt, and don't notify the before_prompt observers
3060 directly here. Always trick readline into not trying to display
3061 the prompt if sync_execution and displaying the primary prompt.
3062 If displaying a local/secondary prompt, always show it, even if
3063 sync_execution is set.
3064 (change_annotation_level): Delete.
3065 (top_level_prompt): New, based on change_annotation_level.
3066 (push_prompt, pop_prompt): Delete.
3067 (async_disable_stdin): No longer pushes prompt.
3068 (command_line_handler): No longer pushes or pops prompt. If more
3069 input is expected, call display_gdb_prompt with an explicit empty
3070 prompt.
3071 (async_stop_sig): Adjust.
3072 (set_async_annotation_level, set_async_prompt): Delete.
3073 * python/python.c (before_prompt_hook): Adjust.
3074
f1d90504
PA
30752011-09-05 Pedro Alves <pedro@codesourcery.com>
3076
3077 PR cli/13110
3078
3079 * infrun.c (fetch_inferior_event): Check if there's a selected
3080 thread before checking if the selected thread is executing.
3081
0f641c01
PA
30822011-09-05 Pedro Alves <pedro@codesourcery.com>
3083
3084 * inf-loop.c (execute_command): Don't check if the current thread
3085 if running before synchronously waiting for command completion.
3086 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3087 here.
3088 (normal_stop): Call async_enable_stdin here.
3089 * inf-loop.c (inferior_event_handler): Don't call
3090 async_enable_stdin, nor handle "set exec-done-display" here.
3091
30368258 30922011-09-04 Joel Brobecker <brobecker@adacore.com>
3093
3094 GDB 7.3.1 released.
3095
31916278
JB
30962011-09-04 Joel Brobecker <brobecker@adacore.com>
3097
3098 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3099
e8d56f18
JB
31002011-09-04 Joel Brobecker <brobecker@adacore.com>
3101
3102 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3103
5dd05d8c
JK
31042011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3105
3106 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3107
7d8e6458 31082011-09-02 Matt Rice <ratmice@gmail.com>
3109
3110 PR gdb/10720
3111 * event-top.c (cli_command_loop): Replace readline setup with
3112 direct call to display_gdb_prompt.
3113 (display_gdb_prompt): Do not call observer mechanism during
3114 synchronous execution.
3115
84636d28
PA
31162011-09-02 Pedro Alves <pedro@codesourcery.com>
3117
3118 * linux-nat.c (in_pid_list_p): New.
3119 (linux_record_stopped_pid): Delete.
3120 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3121 already attached to the LWP. Return an indication if so.
3122 (linux_nat_filter_event): Adjust.
3123 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3124 returning an indication to ignore this thread.
3125
b4a14fd0
PA
31262011-09-02 Pedro Alves <pedro@codesourcery.com>
3127
3128 * top.c: Include interps.h.
3129 (execute_command): If the target can async, but the interpreter is
3130 in sync mode, synchronously wait for the command to finish before
3131 returning.
3132 (execute_command_to_string): Force the interpreter to sync mode.
3133 * infrun.c: Include interps.h.
3134 (fetch_inferior_event): Don't restore the prompt yet if the
3135 interpreter is in sync mode.
3136 * interps.c (interpreter_async): New global.
3137 * interps.h (interpreter_async): Declare.
3138 * inf-loop.c: Include interps.h.
3139 (inferior_event_handler): Don't print the language change or run
3140 breakpoint commands yet if the interpreter in is sync mode.
3141 * main.c (captured_command_loop): Flip the interpreter to async
3142 mode.
3143 * cli/cli-script.c: Include interps.h.
3144 (execute_user_command, while_command, if_command): Force the
3145 interpreter to sync mode.
3146 * python/python.c: Include interps.h.
3147 (python_command, execute_gdb_command): Force the interpreter to
3148 sync mode.
3149
c709acd1
PA
31502011-09-02 Pedro Alves <pedro@codesourcery.com>
3151
3152 * value.c (show_convenience): Catch errors thrown while printing
3153 each internal variable.
3154 * infrun.c (validate_siginfo_access): New function.
3155 (siginfo_value_read, siginfo_value_write): Call it.
3156
9655e943
JK
31572011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 Revert:
3160 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3161 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3162 attribute.
3163
cb457ae2
YQ
31642011-08-29 Yao Qi <yao@codesourcery.com>
3165
3166 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3167 (cmp_name): New.
3168 (enable_break2): Update caller.
3169 * solib-frv.c (bfd_lookup_symbol): Removed.
3170 (cmp_name): New.
3171 (enable_break2): Update caller.
3172 * solib-pa64.c (bfd_lookup_symbol): Removed.
3173 (cmp_name): New.
3174 * solib-svr4.c (bfd_lookup_symbol): Removed.
3175 (cmp_name_and_sec_flags): New.
3176 (enable_break): Update caller.
3177 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3178 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3179 (gdb_bfd_lookup_symbol): New.
3180 * solib.h: Functions declarations.
3181
83d1a36a
YQ
31822011-08-29 Yao Qi <yao@codesourcery.com>
3183
3184 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3185 and solib-dsbt.o.
3186
c04b3e8f
JK
31872011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 Fix TUI stepi on code without symbols.
3190 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3191 current PC instead.
3192
cb0fd152
JK
31932011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3194
3195 Code cleanup.
3196 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3197 and the static keyword.
3198 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3199 Make prefix an array.
3200 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3201 * mi/mi-main.c (get_register): Remove stb initialization and the static
3202 keyword.
3203
91174723
JK
32042011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3205
3206 Code cleanup - make mi_opt const.
3207 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3208 opts const.
3209 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3210 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3211 (mi_cmd_env_dir): Likewise.
3212 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3213 (mi_cmd_target_file_put): Likewise.
3214 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3215 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3216 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3217 (mi_valid_noargs): Make opts const.
3218 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3219 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3220 (mi_cmd_data_read_memory): Likewise.
3221 (mi_cmd_data_read_memory_bytes): Likewise.
3222 (mi_cmd_data_write_memory): Likewise.
3223
5068b8e8 32242011-08-26 Matt Rice <ratmice@gmail.com>
3225
3226 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3227 bcache_xmalloc, replace bcache_xmalloc with call to
3228 psymbol_bcache_init for psymbol_cache.
3229 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3230
a4f2ce05
JK
32312011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3232
3233 * inf-loop.c (inferior_event_handler): Add exception_print in
3234 INF_EXEC_COMPLETE.
3235
353d1d73
JK
32362011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3237
3238 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3239 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3240 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3241 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3242 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3243 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3244 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3245 * infrun.c (fetch_inferior_event): Call
3246 make_bpstat_clear_actions_cleanup.
3247 * top.c (execute_command): New variable cleanup_if_error, call
3248 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3249 * utils.c (do_bpstat_clear_actions_cleanup)
3250 (make_bpstat_clear_actions_cleanup): New functions.
3251
3ced3da4
PA
32522011-08-26 Pedro Alves <pedro@codesourcery.com>
3253
3254 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3255 either the parent or the child forks. Rename a couple locals.
3256
a9f4bb21
PA
32572011-08-26 Pedro Alves <pedro@codesourcery.com>
3258
3259 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3260 library call. Avoid reading the `status' local if all waitpid
3261 calls failed.
3262
e5798bef
PA
32632011-08-26 Pedro Alves <pedro@codesourcery.com>
3264
3265 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3266 opening /proc/PID/task always succeeds.
3267
edb2aadf
AR
32682011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3269
3270 * linespec.c (symtab_from_filename): Check for the end of string.
3271
0d932b2f
MK
32722011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3273
3274 PR mi/11912
3275 * varobj.c (cplus_describe_child): Add the keyword
3276 'class' to the output of the method when dealing
3277 with a cast to a base class.
3278
e93ca019
JK
32792011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 No functionality change.
3282 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3283 function comment a reference, new variables tp and bs, move here code
3284 from throw_exception.
3285 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3286 describe it in the comment.
3287 * exceptions.c (throw_exception): Remove variable tp, move the code for
3288 bpstat_clear_actions to bpstat_clear_actions.
3289
13da1c97
LM
32902011-08-24 Luis Machado <lgustavo@codesourcery.com>
3291
3292 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3293 * linux-nat.c: Include linux-procfs.h.
3294 (linux_proc_get_tgid): Move to ...
3295 * common/linux-procfs.c: ... here. New file.
3296 * common/linux-procfs.h: New file.
3297 * linux-thread-db.c: Include linux-procfs.h.
3298 * Makefile.in: Update dependencies.
3299 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3300 * config/arm/linux.mh: Likewise.
3301 * config/i386/linux.mh: Likewise.
3302 * config/i386/linux64.mh: Likewise.
3303 * config/ia64/linux.mh: Likewise.
3304 * config/m32r/linux.mh: Likewise.
3305 * config/m68k/linux.mh: Likewise.
3306 * config/mips/linux.mh: Likewise.
3307 * config/pa/linux.mh: Likewise.
3308 * config/pa/linux.mh: Likewise.
3309 * config/powerpc/linux.mh: Likewise.
3310 * config/powerpc/ppc64-linux.mh: Likewise.
3311 * config/powerpc/spu-linux.mh: Likewise.
3312 * config/sparc/linux.mh: Likewise.
3313 * config/sparc/linux64.mh: Likewise.
3314 * config/xtensa/linux.mh: Likewise.
3315
4e5c165d
HZ
33162011-08-24 Hui Zhu <teawater@gmail.com>
3317
3318 * tracepoint.c (cond_string_is_same): New function.
3319 (find_matching_tracepoint): Add condition check
3320 by cond_string_is_same.
3321
6e2f5b22
JK
33222011-08-23 Josh Matthews <josh@joshmatthews.net>
3323
3324 Fix build error in Darwin port.
3325 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3326
abf85f46
JK
33272011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3328
3329 Code cleanup.
3330 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3331 (command_line_is_silent): New function.
3332 (bpstat_do_actions_1): No longer use commands_left, use
3333 command_line_is_silent for commands.
3334 (bpstat_alloc): Remove clearing of commands_left.
3335 (bpstat_stop_status): Remove initialization of commands_left, use
3336 command_line_is_silent.
3337 * breakpoint.h (struct bpstats): Remove commands_left.
3338
3a93a0c2
KS
33392011-08-18 Keith Seitz <keiths@redhat.com>
3340
3341 PR c++/12266
3342 * cp-name-parser.y (struct demangle_info): Remove unused
3343 member PREV.
3344 (d_grab): Likewise.
3345 (allocate_info): Change return type to struct demangle_info *.
3346 Always allocate a new demangle_info.
3347 Remove unused PREV pointer.
3348 (cp_new_demangle_parse_info): New function.
3349 (cp_demangled_name_parse_free): New function.
3350 (do_demangled_name_parse_free_cleanup): New function.
3351 (make_cleanup_cp_demangled_name_parse_free): New function.
3352 (cp_demangled_name_to_comp): Change return type to
3353 struct demangle_parse_info *.
3354 Allocate a new storage for each call.
3355 (main): Update usage for cp_demangled_name_to_comp
3356 API change.
3357 * cp-support.h (struct demangle_parse_info): New structure.
3358 (cp_demangled_name_to_comp): Update API change for
3359 return type.
3360 (cp_new_demangle_parse_info): Declare.
3361 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3362 (cp_demangled_name_parse_free): Declare.
3363 * cp-support.c (cp_canonicalize_string): Update API
3364 change for cp_demangled_name_to_comp.
3365 (mangled_name_to_comp): Likewise.
3366 Return struct demangle_parse_info, too.
3367 (cp_class_name_from_physname): Update mangled_name_to_comp
3368 API change.
3369 (method_name_from_physname): Likewise.
3370 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3371 (cp_remove_params): Likewise.
3372 * python/py-type.c (typy_legacy_template_argument): Likewise.
3373
3374 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3375 (cp_merge_demangle_parse_infos): Declare.
3376 * cp-support.c (ignore_typedefs): New file global.
3377 (copy_string_to_obstack): New function.
3378 (inspect_type): New function.
3379 (replace_typedefs): New function.
3380 (replace_typedefs_qualified_name): New function.
3381 (cp_canonicalize_string_no_typedefs): New function.
3382 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3383 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3384 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3385 instead of cp_canonicalize_string.
3386 (find_method): Likewise.
3387 (decode_compound): Before looking up the name, call
3388 cp_canonicalize_string_no_typedefs.
3389 (decode_variable): Likewise.
3390
fa3a4f15
PM
33912011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3392 Tom Tromey <tromey@redhat.com>
3393 Matt Rice <ratmice@gmail.com>
3394
3395 * python/lib/gdb/prompt.py: New file.
3396 * python/lib/gdb/command/prompt.py: New file.
3397 * NEWS: Document set extended-prompt and gdb.prompt library
3398
85661b1e
YQ
33992011-08-16 Yao Qi <yao@codesourcery.com>
3400
3401 * tic6x-linux-tdep.c: Move const arrays definition from here...
3402 * tic6x-tdep.c: to here ...
3403
11315641
YQ
34042011-08-14 Yao Qi <yao@codesourcery.com>
3405
3406 * NEWS: New port to Texas Instruments TMS320C6x.
3407
8cd64e00
YQ
34082011-08-14 Andrew Jenner <andrew@codesourcery.com>
3409 Bernd Schmidt <bernds@codesourcery.com>
3410 Yao Qi <yao@codesourcery.com>
3411
3412 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3413 * solib-dsbt.c: New file. Support DSBT shared object.
3414 * tic6x-linux-tdep.c: New file.
3415 * tic6x-tdep.c: New file.
3416 * tic6x-tdep.h: New file.
3417
78d85199
YQ
34182011-08-14 Andrew Stubbs <ams@codesourcery.com>
3419 Yao Qi <yao@codesourcery.com>
3420
3421 * remote.c (PACKET_qXfer_fdpic): New enum value.
3422 (remote_protocol_features): Add qXfer:fdpic:read packet.
3423 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3424 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3425 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3426
224bbe49
YQ
34272011-08-14 Yao Qi <yao@codesourcery.com>
3428
3429 Target description for tic6x.
3430 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3431 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3432 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3433 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3434 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3435 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3436 * features/tic6x-c64xp-linux.xml: New.
3437 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3438 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3439 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3440 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3441 * regformats/tic6x-c64xp.dat,
3442 regformats/tic6x-c62x-linux.dat: Generated.
3443 * regformats/tic6x-c64x-linux.dat,
3444 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3445 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3446 features/tic6x-*.c files.
3447 Add regformats/tic6x-*.dat files.
3448
457e09f0
DE
34492011-08-12 Doug Evans <dje@google.com>
3450
3451 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3452 * python/py-symbol.c (sympy_get_type): New function.
3453 (symbol_object_getset): Add "type".
3454
d20c1c3f
PA
34552011-08-12 Pedro Alves <pedro@codesourcery.com>
3456
3457 PR tui/13073
3458
3459 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3460 empty name.
3461 (tui_show_register_group): Don't store a byte buffer in the data
3462 element's value.
3463 (tui_register_format): Skip registers with an empty name.
3464 (tui_get_register): Store a struct value in the data element's
3465 value field instead of a byte buffer holding the raw register
3466 contents. Account for optimized-out and unavailable registers
3467 when comparing register contents.
3468
9d8fa392
PA
34692011-08-09 Pedro Alves <pedro@codesourcery.com>
3470
3471 * printcmd.c (current_display_number): Update comment.
3472 (disable_current_display_cleanup): Delete.
3473 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3474 catch errors thrown while evaluating and printing the display.
3475
401a70b8
TT
34762011-08-09 Tom Tromey <tromey@redhat.com>
3477
3478 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3479
7f86f058
PA
34802011-08-09 Pedro Alves <pedro@codesourcery.com>
3481
94b71cca 3482 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3483 * maint.c (maintenance_command): Ditto.
3484 * somread.c (som_symtab_read): Ditto.
3485 * solib.c (solib_find, solib_map_sections, update_solib_list)
3486 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3487 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3488 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3489 * solib-irix.c (locate_base, disable_break, enable_break)
3490 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3491 (irix_current_sos, irix_open_symbol_file_object)
3492 (irix_special_symbol_handling): Ditto.
3493 * solib-sunos.c (locate_base, first_link_map_member)
3494 (sunos_current_sos, disable_break, enable_break)
3495 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3496 Ditto.
3497 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3498 (open_symbol_file_object, svr4_current_sos, enable_break)
3499 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3500 Ditto.
3501 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3502 (frv_current_sos, enable_break, frv_special_symbol_handling)
3503 (frv_solib_create_inferior_hook): Ditto.
3504 * solist.h (struct target_so_ops): Extend the comments of the
3505 special_symbol_handling, current_sos and open_symbol_file_object
3506 methods.
3507
5e239b84
PM
35082011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3509
3510 * python/lib/gdb/__init__.py: Auto-load files in command and
3511 function directories.
3512 * python/python.c (finish_python_initialization): Use
3513 os.path.join.
3514 * python/lib/gdb/command/pretty_printers.py: Self register
3515 command.
3516 * NEWS: Document auto-loading.
3517
b6cede78
JK
35182011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3521 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3522 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3523
29d0bb3d
TT
35242011-08-08 Tom Tromey <tromey@redhat.com>
3525
3526 * breakpoint.c (clean_up_filters): Remove.
3527 (catch_syscall_split_args): Use VEC_cleanup.
3528
2f7fb8e4
JK
35292011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3532 (main): Uncomment "Demangling error\n".
3533
d6c10e95
PP
35342011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3535
3536 * solib-target.c (segment_attributes): Make them static.
3537 (section_attributes, library_children, library_attributes): Likewise.
3538 (library_list_children, library_list_attributes): Likesise.
3539 (library_list_elements): Likewise.
3540
af6e93b2
PA
35412011-08-05 Pedro Alves <pedro@codesourcery.com>
3542
3543 * exceptions.c (throw_exception): Don't disable the current
3544 display.
3545 * printcmd.c (disable_current_display_cleanup): New function.
3546 (do_one_display): Install a cleanup to disable the current display
3547 if doing the display throws.
3548
6a1b1664
EZ
35492011-08-05 Eli Zaretskii <eliz@gnu.org>
3550
3551 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3552 initialization of the tp_new member to the corresponding
3553 gdbpy_initialize_* function.
3554 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3555 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3556 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3557 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3558 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3559
31a0ae49
JK
35602011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3561
3562 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3563 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3564 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3565 references to current_uiout.
3566
e0dd0826
PA
35672011-08-04 Pedro Alves <pedro@codesourcery.com>
3568
3569 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3570 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3571 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3572 * top.c (gdb_readline_wrapper): Adjust.
3573 * tui/tui-interp.c (tui_command_loop):
3574 (_initialize_tui_interp): Don't install it.
3575
79a45e25
PA
35762011-08-04 Pedro Alves <pedro@codesourcery.com>
3577
3578 * ui-out.h (uiout): Rename to ...
3579 (current_uiout): ... this.
3580 * ui-out.c (uiout): Rename to ...
3581 (current_uiout): ... this.
3582 * ada-lang.c (print_it_exception, print_one_exception)
3583 (print_mention_exception): Adjust.
3584 * breakpoint.c (watchpoint_check): Adjust.
3585 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3586 (default_collect_info, watchpoints_info, print_one_catch_fork)
3587 (print_one_catch_vfork, print_one_catch_syscall)
3588 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3589 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3590 (print_it_watchpoint, print_mention_watchpoint)
3591 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3592 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3593 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3594 (bkpt_print_mention, momentary_bkpt_print_it)
3595 (tracepoint_print_mention, update_static_tracepoint)
3596 (tracepoints_info, save_breakpoints): Adjust.
3597 * cli-out.c (field_separator): Adjust.
3598 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3599 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3600 * frame.c (get_current_frame): Adjust.
3601 * infcmd.c (run_command_1, print_return_value): Adjust.
3602 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3603 * infrun.c (print_end_stepping_range_reason): Adjust.
3604 (print_signal_exited_reason, print_exited_reason): Adjust.
3605 (print_signal_received_reason, print_no_history_reason): Adjust.
3606 * interps.c (interp_set): Adjust.
3607 * osdata.c (info_osdata_command): Adjust.
3608 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3609 * remote-fileio.c (remote_fileio_request): Adjust.
3610 * remote.c (show_remote_cmd): Adjust.
3611 * solib.c (info_sharedlibrary_command): Adjust.
3612 * source.c (print_source_lines_base): Adjust.
3613 * stack.c (print_stack_frame): Adjust.
3614 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3615 * symfile-mem.c (add_vsyscall_page): Adjust.
3616 * symfile.c (load_progress, generic_load)
3617 (print_transfer_performance): Adjust.
3618 * thread.c (info_threads_command, restore_selected_frame)
3619 (thread_command): Adjust.
3620 * top.c (make_cleanup_restore_ui_file): Adjust.
3621 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3622 (print_one_static_tracepoint_marker): Adjust.
3623 * cli/cli-cmds.c (print_disassembly): Adjust.
3624 * cli/cli-decode.c (print_doc_line): Adjust.
3625 * cli/cli-interp.c (safe_execute_command): Adjust.
3626 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3627 (handle_redirections): Adjust.
3628 * cli/cli-script.c (show_user_1): Adjust.
3629 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3630 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3631 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3632 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3633 (mi_cmd_env_dir): Adjust.
3634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3635 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3636 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3637 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3638 (list_args_or_locals): Adjust.
3639 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3640 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3641 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3642 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3643 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3644 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3645 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3646 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3647 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3648 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3649 (list_available_thread_groups, mi_cmd_list_thread_groups)
3650 (mi_cmd_data_list_register_names)
3651 (mi_cmd_data_list_changed_registers)
3652 (mi_cmd_data_list_register_values, get_register)
3653 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3654 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3655 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3656 (mi_execute_command, mi_load_progress): Adjust.
3657 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3658 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3659 Adjust.
3660 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3661 * tui/tui-interp.c (tui_command_loop): Adjust.
3662 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3663
f9679975
PA
36642011-08-04 Pedro Alves <pedro@codesourcery.com>
3665
3666 * exceptions.c (struct catcher): Remove saved_uiout field.
3667 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3668 no longer save/resvore the global ui_out builder.
3669 (catch_exceptions_with_msg): Save/override/restore the global
3670 ui_out builder manually instead of relying on TRY_CATCH to do it.
3671 (catch_errors): Save/restore the global ui_out builder manually
3672 instead of relying on TRY_CATCH to do it.
3673 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3674 parameter.
3675 (TRY_CATCH): Adjust.
3676 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3677 the global ui_out builder manually instead of relying on TRY_CATCH
3678 to do it.
3679
934709f0
PW
36802011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3681
3682 * breakpoint.c (update_global_location_list): Ensure
3683 invariant 'first loc marked not duplicated and inserted,
3684 following locs marked duplicated/not inserted' is respected
3685 for multiple locations at the same address.
3686 (unduplicated_should_be_inserted) New function.
3687 (swap_insertion) New function.
3688
2421fe6f
JK
36892011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3690
3691 * stack.c (print_frame_arguments_choices): Comment typo fix.
3692
3fbb6ffa
TJB
36932011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3694
3695 Revert:
3696 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3697 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3698 argument. Update callers.
3699
fbe12357
PP
37002011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3701
3702 PR gdb/13045
3703 * doublest.c (convert_doublest_to_floatformat): Pass correct
3704 mantissa length to put_field.
3705
b1d288d3
JK
37062011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3709 exception_print code path.
3710 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3711 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3712 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3713
311b5970
JK
37142011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3715
3716 Code cleanup.
3717 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3718 Remove, merge them into ...
3719 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3720 variable args and its initialization.
3721 (struct print_args_args, print_args_stub): Remove, merge them into
3722 print_frame.
3723 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3724 them into ...
3725 (do_gdb_disassembly): ... here. Remove variable args and its
3726 initialization.
3727 (print_frame): Remove variable args and its initialization, new
3728 variable gdbarch and numargs (from print_args_stub), inline here
3729 print_args_stub with a TRY_CATCH.
3730 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3731 them into ...
3732 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3733 New variable e, remove variable btargs and its initialization.
311b5970 3734
484a26a8
TG
37352011-08-01 Tristan Gingold <gingold@adacore.com>
3736
3737 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3738
c30eee59
TJB
37392011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3740
3741 * breakpoint.c (insert_bp_location): Document return value.
3742 (insert_breakpoint_locations): Fix documentation.
3743 (remove_breakpoints): Add documentation.
3744
f116073b
TJB
37452011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3746
3747 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3748 argument. Update callers.
3749
65aa373f
JK
37502011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 * stack.c (print_frame_info): Comment typo fix.
3753
a50242fb
SA
37542011-07-29 Sterling Augustine <saugustine@google.com>
3755
3756 * MAINTAINERS (Write After Approval): Add myself to the list.
3757
267f6504
TT
37582011-07-29 Tom Tromey <tromey@redhat.com>
3759
3760 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3761 (library_list_start_segment): Update.
3762 (library_list_start_section): Update.
3763
00bd41d6
PM
37642011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3765
3766 * varobj.c (value_get_print_value): Move hint check later into the
3767 function. Comment function. Free thevalue before reusing it.
3768
18a46dbe
JK
37692011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 Pedro Alves <pedro@codesourcery.com>
3771
3772 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3773 value_one.
3774 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3775 Assert the result kind.
3776 * value.h (value_one): Remove parameter lv.
3777
bb7da2bf
JK
37782011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Fix crash on lval_computed values.
3781 * valops.c (value_zero): Use not_lval for lval_computed.
3782
2d5213f8
TT
37832011-07-27 Tom Tromey <tromey@redhat.com>
3784
3785 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3786 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3787
11081198
JK
37882011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3789
3790 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3791 "ptype" by their typedefs difference.
3792
3c6e0cb3
JK
37932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3794
3795 * dwarf2expr.c (ctx_no_read_reg): New function.
3796 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3797 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3798 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3799 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3800
523f3620
JK
38012011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3802
3803 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3804 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3805 file.
3806 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3807 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3808 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3809 (ctx_no_get_base_type): Move the functions here.
3810 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3811 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3812 (ctx_no_get_base_type): New declarations.
3813
24d3216f
TT
38142011-07-27 Tom Tromey <tromey@redhat.com>
3815
3816 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3817 entries.
3818 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3819 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3820
5005c8a9
PP
38212011-07-26 Sterling Augustine <saugustine@google.com>
3822
3823 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3824 ULONGEST.
3825 (dump_bfd_file): Likewise.
3826
480a3f21
PW
38272011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3828
3829 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3830 (remote_hw_watchpoint_length_limit): New variable.
3831 (_initialize_remote) add set,show cmds for this new variable.
3832 * gdb.texinfo: document these new commands.
3833 * NEWS: Mention these new commands.
3834
efa80663
PA
38352011-07-26 Pedro Alves <pedro@codesourcery.com>
3836
3837 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3838 true for software watchpoints.
3839
dbdaa232 38402011-07-26 Joel Brobecker <brobecker@adacore.com>
3841
3842 GDB 7.3 released.
3843
cf2c3c16
TT
38442011-07-26 Tom Tromey <tromey@redhat.com>
3845
3846 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3847 * dwarf2read.c (read_indirect_string_at_offset): New function.
3848 (read_indirect_string): Use it.
3849 (dwarf_decode_macro_bytes): New function, taken from
3850 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3851 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3852 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3853 New functions.
3854 (struct dwarf2_per_objfile) <macro>: New field.
3855 (dwarf2_elf_names): Add .debug_macro.
3856 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3857 (dwarf2_locate_sections): Handle new section.
3858 (read_file_scope): Handle DW_AT_GNU_macros.
3859 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3860
1a532630
PP
38612011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3862
3863 * NEWS: Mention dcache configuration.
3864 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3865 (dcache_size, dcache_line_size): New variables.
3866 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3867 (struct dcache_block): Make it expandable.
3868 (struct dcache_struct): New field.
3869 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3870 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3871 (dcache_poke_byte, dcache_print_line): Adjust.
3872 (set_dcache_size, set_dcache_line_size): New functions.
3873 (set_dcache_command, show_dcache_command): New functions.
3874 (_initialize_dcache): Add new commands.
3875
2eff07b3
PP
38762011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3877
3878 * progspace.h (struct program_space): Add solib_add_generation.
3879 * infcmd.c (post_create_inferior): Only call solib_add if not
3880 already done.
3881 * solib.c (solib_add): Increment solib_add_generation.
3882
543305c9
JK
38832011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3884
3885 Fix implicit pointer offsets.
3886 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3887 ptr.OFFSET.
3888
c0a91b2b
TT
38892011-07-25 Tom Tromey <tromey@redhat.com>
3890
3891 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3892 const.
3893 (ada_exception_sal): Make 'ops' const.
3894 (ada_decode_exception_location): Likewise.
3895 (ada_decode_assert_location): Likewise.
3896 (catch_assert_command): Update.
3897 (catch_ada_exception_command): Update.
3898 (create_ada_exception_catchpoint): Make 'ops' const.
3899 * breakpoint.c (set_raw_breakpoint_without_location)
3900 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3901 const.
3902 (create_internal_breakpoint): Update.
3903 (init_raw_breakpoint_without_location): Make 'ops' const.
3904 (init_raw_breakpoint, init_catchpoint)
3905 (create_fork_vfork_event_catchpoint)
3906 (create_syscall_event_catchpoint, init_breakpoint_sal)
3907 (create_breakpoint_sal, create_breakpoints_sal)
3908 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3909 * breakpoint.h (struct breakpoint) <ops>: Now const.
3910 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3911 const.
3912
6cb9b55b
PP
39132011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3914
3915 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3916
d9b3f62e
PA
39172011-07-25 Pedro Alves <pedro@codesourcery.com>
3918
3919 * breakpoint.h (print_recreate_thread): Declare.
3920 (struct breakpoint): Move step_count, pass_count,
3921 number_on_target, static_trace_marker_id,
3922 static_trace_marker_id_idx ...
3923 (struct tracepoint): ... to this new struct.
3924 (get_tracepoint, get_tracepoint_by_number_on_target)
3925 (get_tracepoint_by_number): Change return type to struct
3926 tracepoint pointer.
3927 * breakpoint.c (is_tracepoint_type): New, factored out from
3928 is_tracepoint.
3929 (is_tracepoint): Adjust.
3930 (print_one_breakpoint_location): Cast to struct tracepoint as
3931 necessary, and adjust.
3932 (print_recreate_catch_fork, print_recreate_catch_vfork)
3933 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3934 print_recreate_thread.
3935 (init_breakpoint_sal): New, factored out from
3936 create_breakpoint_sal.
3937 (create_breakpoint_sal): Reimplement.
3938 (create_breakpoint): Allocate a struct tracecepoint if the caller
3939 wanted a tracepoint. Use init_breakpoint_sal and
3940 install_breakpoint.
3941 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3942 (print_recreate_masked_watchpoint)
3943 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3944 (tracepoint_print_one_detail): Adjust.
3945 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3946 Dump the pass count here.
3947 (update_static_tracepoint): Adjust.
3948 (addr_string_to_sals): Adjust.
3949 (create_tracepoint_from_upload): Adjust. Change return type to
3950 struct tracepoint pointer.
3951 (trace_pass_set_count): Change parameter type to struct tracepoint
3952 pointer, and adjust.
3953 (trace_pass_command): Adjust.
3954 (get_tracepoint, get_tracepoint_by_number_on_target)
3955 (get_tracepoint_by_number): Change return type to struct
3956 tracepoint pointer, and adjust.
3957 (print_recreate_thread): New, factored out from save_breakpoints.
3958 (save_breakpoints): Don't print thread and task and passcount
3959 recreation here.
3960 * remote.c (remote_download_tracepoint): Adjust.
3961 * tracepoint.c (trace_actions_command, validate_actionline)
3962 (start_tracing, tfind_1, trace_find_tracepoint_command)
3963 (trace_dump_command): Adjust.
3964 (find_matching_tracepoint): Change return type to struct
3965 tracepoint pointer, and adjust.
3966 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3967 (tfile_trace_find, tfile_fetch_registers): Adjust.
3968 * tracepoint.h (create_tracepoint_from_upload): Change return type
3969 to struct tracepoint pointer.
3970 * ada-lang.c (print_recreate_exception): Call
3971 print_recreate_thread.
3972 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3973
3a5c3e22
PA
39742011-07-25 Pedro Alves <pedro@codesourcery.com>
3975
3976 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3977 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3978 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3979 watchpoint_thread, watchpoint_triggered ...
3980 (struct watchpoint): ... to this new struct.
3981 (is_watchpoint): Declare.
3982 (install_breakpoint): Add new `internal' parameter.
3983 * breakpoint.c (is_watchpoint): Delete declaration.
3984 (set_breakpoint_condition): Handle watchpoints.
3985 (is_watchpoint): Make public.
3986 (watchpoint_in_thread_scope): Change parameter type to struct
3987 watchpoint.
3988 (watchpoint_del_at_next_stop): Change parameter type to struct
3989 watchpoint. Remove assertion. Adjust.
3990 (update_watchpoint): Ditto.
3991 (insert_breakpoints, breakpoint_init_inferior)
3992 (watchpoints_triggered, watchpoint_check)
3993 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3994 (bpstat_stop_status, print_one_breakpoint_location)
3995 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3996 to struct watchpoint as necessary, and adjust.
3997 (install_breakpoint): Add `internal' argument. If true, don't
3998 mention the new breakpoint. Use set_breakpoint_number.
3999 (create_fork_vfork_event_catchpoint)
4000 (create_syscall_event_catchpoint): Adjust.
4001 (dtor_watchpoint): New.
4002 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4003 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4004 (print_it_watchpoint, print_mention_watchpoint)
4005 (print_recreate_watchpoint, insert_masked_watchpoint)
4006 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4007 (print_one_detail_masked_watchpoint)
4008 (print_mention_masked_watchpoint)
4009 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4010 necessary, and adjust.
4011 (watch_command_1): Allocate and initialize a struct watchpoint
4012 instead of a struct breakpoint. Use install_breakpoint.
4013 (catch_exec_command_1): Adjust.
4014 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4015 fields.
4016 (delete_breakpoint, enable_breakpoint_disp)
4017 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4018 as necessary, and adjust.
4019 (initialize_breakpoint_ops): Install dtor_watchpoint as
4020 watchpoints' dtor method.
4021 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4022 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4023 to struct watchpoint as necessary, and adjust.
4024
2060206e
PA
40252011-07-25 Pedro Alves <pedro@codesourcery.com>
4026
4027 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4028 the the base class ops table.
4029 (catch_exception_breakpoint_ops)
4030 (catch_exception_unhandled_breakpoint_ops)
4031 (catch_assert_breakpoint_ops): Don't statically initialize.
4032 (initialize_ada_catchpoint_ops): New.
4033 (_initialize_ada_language): Call it.
4034 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4035 (bkpt_breakpoint_ops): Forward declare.
4036 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4037 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4038 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4039 (masked_watchpoint_breakpoint_ops)
4040 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4041 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4042 base class ops table.
4043 (null_re_set, null_check_status, null_works_in_software_mode)
4044 (null_resources_needed, null_print_one_detail): Delete.
4045 (bkpt_dtor): Rename to ...
4046 (base_breakpoint_dtor): ... this. Make static.
4047 (bkpt_allocate_location): Rename to ...
4048 (base_breakpoint_allocate_location): ... this. Make static.
4049 (base_breakpoint_re_set): New.
4050 (internal_error_pure_virtual_called): New.
4051 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4052 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4053 (base_breakpoint_works_in_software_mode)
4054 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4055 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4056 (base_breakpoint_print_recreate): New functions.
4057 (base_breakpoint_ops): New global.
4058 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4059 (bkpt_breakpoint_hit): Make static.
4060 (bkpt_check_status): Delete.
4061 (bkpt_resources_needed): Make static.
4062 (bkpt_works_in_software_mode): Delete.
4063 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4064 static.
4065 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4066 (momentary_breakpoint_ops): Don't statically initialize.
4067 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4068 Delete.
4069 (tracepoint_insert_location, tracepoint_remove_location)
4070 (tracepoint_check_status, tracepoint_works_in_software_mode)
4071 (tracepoint_print_it): Delete.
4072 (tracepoint_breakpoint_ops): Don't statically initialize.
4073 (initialize_breakpoint_ops): New.
4074 (_initialize_breakpoint): Call it.
4075 * breakpoint.h (null_re_set, null_works_in_software_mode)
4076 (null_resources_needed, null_check_status, null_print_one_detail):
4077 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4078 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4079 (bkpt_check_status, bkpt_resources_needed)
4080 (bkpt_works_in_software_mode, bkpt_print_it)
4081 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4082 Delete declarations.
4083 (initialize_breakpoint_ops): Declare.
4084
001c8c33
PA
40852011-07-25 Pedro Alves <pedro@codesourcery.com>
4086
4087 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4088 (momentary_bkpt_print_it): Simplify.
4089
06edf0c0
PA
40902011-07-25 Pedro Alves <pedro@codesourcery.com>
4091
4092 Split internal, momentary and user breakpoints breakpoint_ops
4093 tables.
4094
4095 * breakpoint.c (internal_breakpoint_ops)
4096 (momentary_breakpoint_ops): Forward declare.
4097 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4098 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4099 (create_overlay_event_breakpoint)
4100 (create_std_terminate_master_breakpoint)
4101 (create_exception_master_breakpoint): Create breakpoints with
4102 internal_breakpoint_ops vtable.
4103 (set_longjmp_breakpoint): Create momentary breakpoints with
4104 momentary_breakpoint_ops vtable, using
4105 momentary_breakpoint_from_master.
4106 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4107 (create_solib_event_breakpoint): Create breakpoints with
4108 internal_breakpoint_ops vtable.
4109 (set_momentary_breakpoint): Create breakpoints with
4110 momentary_breakpoint_ops vtable.
4111 (momentary_breakpoint_from_master): New, factored out from
4112 clone_momentary_breakpoint.
4113 (clone_momentary_breakpoint): Adjust.
4114 (watch_command_1): Create scope breakpoints with
4115 momentary_breakpoint_ops vtable.
4116 (bkpt_re_set): Remove handling of internal and momentary
4117 breakpoints.
4118 (bkpt_print_mention, bkpt_print_recreate): New.
4119 (bkpt_breakpoint_ops): Adjust.
4120 (internal_bkpt_re_set, internal_bkpt_check_status)
4121 (internal_bkpt_print_it, internal_bkpt_print_mention)
4122 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4123 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4124 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4125 (momentary_bkpt_print_recreate): New.
4126 (momentary_breakpoint_ops): New.
4127
348d480f
PA
41282011-07-25 Pedro Alves <pedro@codesourcery.com>
4129
4130 Implement most breakpoint_ops methods for all breakpoint types,
4131 and move the default handlings to the proper callbacks.
4132
4133 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4134 works_in_software_mode method.
4135 (insert_bp_location): Go through breakpoint_ops->insert_location
4136 for software and hardware watchpoints.
4137 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4138 breakpoint_ops.
4139 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4140 for software and hardware watchpoints.
4141 (print_it_typical): Delete.
4142 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4143 method.
4144 (watchpoint_check): Adjust comment.
4145 (bpstat_check_location): Simply always call the breakpoint's
4146 breakpoint_hit method.
4147 (bpstat_stop_status): Always call the breakpoint's check_status
4148 method. Remove special cases for watchpoints and internal event
4149 breakpoints from here (moved to the check_status implementations).
4150 (print_one_breakpoint_location): Assume b->ops is never NULL.
4151 Remove static tracepoint marker id printing from here (moved to
4152 the print_one_detail callback implementation of tracepoints).
4153 (init_bp_location): Assert OPS is never NULL.
4154 (allocate_bp_location): Always call the breakpoint's
4155 allocate_location method, and remove the default code from here.
4156 (free_bp_location): Always call the location's dtor method, and
4157 remove the default code from here.
4158 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4159 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4160 parameter. Pass it down.
4161 (set_raw_breakpoint): Ditto.
4162 (print_it_catch_fork): Adjust to take a bpstat as argument.
4163 (catch_fork_breakpoint_ops): Install methods.
4164 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4165 (catch_vfork_breakpoint_ops): Install methods.
4166 (dtor_catch_syscall): Call the base dtor.
4167 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4168 (catch_syscall_breakpoint_ops): Install methods.
4169 (dtor_catch_exec): Call the base dtor.
4170 (print_it_catch_exec): Adjust to take a bpstat as argument.
4171 (catch_exec_breakpoint_ops): Install methods.
4172 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4173 the breakpoint's resources_needed method, and remove the default
4174 code from here.
4175 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4176 breakpoint_ops.
4177 (clone_momentary_breakpoint): Clone the original's ops.
4178 (mention): Always call the breakpoint's print_mention method, and
4179 remove the default code from here.
4180 (create_breakpoint_sal): Adjust to pass the ops to
4181 set_raw_breakpoint rather than setting it manually.
4182 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4183 ops to set_raw_breakpoint_without_location rather than setting it
4184 manually.
4185 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4186 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4187 (ranged_breakpoint_ops): Install methods.
4188 (break_range_command): Adjust to pass the ops to
4189 set_raw_breakpoint rather than setting it manually.
4190 (re_set_watchpoint, breakpoint_hit_watchpoint)
4191 (check_status_watchpoint, resources_needed_watchpoint)
4192 (works_in_software_mode_watchpoint, print_it_watchpoint)
4193 (print_mention_watchpoint, print_recreate_watchpoint): New
4194 functions.
4195 (watchpoint_breakpoint_ops): Install new methods.
4196 (print_it_masked_watchpoint): New function.
4197 (masked_watchpoint_breakpoint_ops): Install new methods.
4198 (watch_command_1): Adjust to pass the right breakpoint_ops to
4199 set_raw_breakpoint_without_location rather than setting it
4200 manually later. Record the current pspace.
4201 (print_it_exception_catchpoint): Adjust to take a bpstat as
4202 argument.
4203 (gnu_v3_exception_catchpoint_ops): Install new methods.
4204 (say_where): New function.
4205 (null_re_set, null_check_status, null_works_in_software_mode)
4206 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4207 New functions.
4208 (bp_location_ops): New global.
4209 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4210 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4211 (bkpt_check_status, bkpt_resources_needed)
4212 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4213 (bkpt_print_recreate): New functions.
4214 (bkpt_breakpoint_ops): New global.
4215 (tracepoint_re_set, tracepoint_insert_location)
4216 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4217 (tracepoint_check_status, tracepoint_works_in_software_mode)
4218 (tracepoint_print_it, tracepoint_print_one_detail)
4219 (tracepoint_print_mention, tracepoint_print_recreate): New
4220 functions.
4221 (tracepoint_breakpoint_ops): New global.
4222 (delete_breakpoint): Always call the breakpoint's dtor method, and
4223 remove the default handling from here.
4224 (breakpoint_re_set_default): Make static.
4225 (breakpoint_re_set_one): Always call the breakpoints re_set
4226 method, and remove the default handling from here.
4227 (trace_command, ftrace_command, strace_command)
4228 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4229 to create_breakpoint.
4230 (save_breakpoints): Always call the breakpoint's print_recreate
4231 method, and remove the default handling from here.
4232
4233 * ada-lang.c (dtor_exception): Call the base dtor.
4234 (re_set_exception): Call the base method.
4235 (print_it_exception, print_it_catch_exception): Adjust to take a
4236 bpstat as argument.
4237 (catch_exception_breakpoint_ops): Install methods.
4238 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4239 argument.
4240 (catch_exception_unhandled_breakpoint_ops): Install methods.
4241 (print_it_catch_assert): Adjust to take a bpstat as argument.
4242 (catch_assert_breakpoint_ops): Install methods.
4243
4244 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4245 to take a bpstat as argument.
4246 (enum print_stop_action): Add describing comments to each enum
4247 value.
4248 (breakpoint_re_set_default): Delete declaration.
4249 (null_re_set, null_works_in_software_mode, null_resources_needed)
4250 (null_check_status, null_print_one_detail): Declare.
4251 (bkpt_breakpoint_ops): Declare.
4252 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4253 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4254 (bkpt_check_status, bkpt_resources_needed)
4255 (bkpt_works_in_software_mode, bkpt_print_it)
4256 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4257 Declare.
4258
4259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4260 bkpt_breakpoint_ops.
4261 * python/py-breakpoint.c (bppy_init): Ditto.
4262
be8f8133
PW
42632011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4264
4265 * MAINTAINERS (Write After Approval): Add myself to the list.
4266
3807f613
PP
42672011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4268
4269 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4270
1ced966e
PA
42712011-07-22 Pedro Alves <pedro@codesourcery.com>
4272
4273 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4274 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4275 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4276 adjust.
4277 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4278 (struct i386_debug_reg_state): New.
4279 (i386_init_dregs): New.
4280 (dr_mirror): New.
4281 (i386_cleanup_dregs): Use i386_init_dregs.
4282 (i386_show_dr): Add state parameter and adjust.
4283 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4284 the inferior here.
4285 (i386_remove_aligned_watchpoint): Likewise.
4286 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4287 (i386_update_inferior_debug_regs): New.
4288 (i386_insert_watchpoint): Work on a local mirror of the debug
4289 registers, and only update the inferior on success.
4290 (i386_remove_watchpoint): Ditto.
4291 (i386_region_ok_for_watchpoint): Adjust.
4292 (i386_stopped_data_address): Adjust.
4293 (i386_insert_hw_breakpoint): Adjust.
4294 (i386_remove_hw_breakpoint): Adjust.
4295
3543a589
TT
42962011-07-22 Tom Tromey <tromey@redhat.com>
4297
4298 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4299 from amd64_pseudo_register_read. Change arguments. Call
4300 mark_value_bytes_unavailable when needed.
4301 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4302 set_gdbarch_pseudo_register_read.
4303 * sentinel-frame.c (sentinel_frame_prev_register): Use
4304 regcache_cooked_read_value.
4305 * regcache.h (regcache_cooked_read_value): Declare.
4306 * regcache.c (regcache_cooked_read_value): New function.
4307 (regcache_cooked_read): Call
4308 gdbarch_pseudo_register_read_value if available.
4309 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4310 (i386_pseudo_register_read): Remove.
4311 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4312 i386_pseudo_register_read. Change arguments. Call
4313 mark_value_bytes_unavailable when needed.
4314 (i386_pseudo_register_read_value): New function.
4315 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4316 not set_gdbarch_pseudo_register_read.
4317 * gdbarch.sh (pseudo_register_read_value): New method.
4318 * gdbarch.c, gdbarch.h: Rebuild.
4319 * findvar.c (value_from_register): Call get_frame_register_value.
4320
95298e72
PM
43212011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4322
4323 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4324 get_prefix.
4325 (display_gdb_prompt): Likewise.
4326 (change_annotation_level): Likewise.
4327 (push_prompt): Likewise.
4328 (pop_prompt): Likewise.
4329 (handle_stop_sig): Use get_prompt with a level.
4330 * top.c (command_loop): Use get_prompt with a level.
4331 (set_async_annotation_level): Use set_prompt with a level.
4332 (get_prefix): New function.
4333 (set_prefix): Ditto.
4334 (set_suffix): Ditto.
4335 (get_suffix): Ditto.
4336 (get_prompt): Accept a level argument.
4337 (set_prompt): Accept a level argument. Free old prompts. Set
4338 new_async_prompt if level is 0.
4339 (init_main): Use set_prompt with a level. Do not set
4340 new_async_prompt.
4341 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4342 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4343 Modify set_prompt, get_prompt to account for levels.
4344 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4345 level.
4346 * python/python.c (before_prompt_hook): Use set_prompt.
4347
d26e3629
KY
43482011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4349
4350 * defs.h: Add guard against inclusion in gdbserver.
4351 (struct ptid, ptid_t): Move to common/ptid.h.
4352 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4353 xsnprintf, internal_error): Move to common/common-utils.h.
4354 (nomem): Delete.
4355 * gdb_assert.h: Move into common/ sub-directory.
4356 * gdb_locale.h: Ditto.
4357 * gdb_dirent.h: Ditto.
4358 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4359 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4360 Move into common/ptid.h.
4361 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4362 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4363 Change nomem to malloc_failure.
4364 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4365 * utils.c (nomem): Rename to malloc_failure.
4366 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4367 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4368 (gdb_buildargv): Change nomem to malloc_failure.
4369 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4370 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4371 ptid_is_pid): Move into common/ptid.c.
4372 (initialize_infrun): Delete initialization of null_ptid and
4373 minus_one_ptid.
4374 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4375 linux_common_xfer_osdata.
4376 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4377 common/ptid.c and common/buffer.c.
4378 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4379 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4380 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4381 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4382 rules.
4383 * common/gdb_assert.h: New.
4384 * common/gdb_dirent.h: New.
4385 * common/gdb_locale.h: New.
4386 * common/buffer.c: New.
4387 * common/buffer.h: New.
4388 * common/ptid.c: New.
4389 * common/ptid.h: New.
4390 * common/xml-utils.c: New.
4391 * common/xml-utils.h: New.
4392 * common/common-utils.c: New.
4393 * common/common-utils.h: New.
4394 * common/linux-osdata.c: New.
4395 * common/linux-osdata.h: New.
4396 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4397 * config/arm/linux.mh (NATDEPFILES): Ditto.
4398 * config/i386/linux.mh (NATDEPFILES): Ditto.
4399 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4400 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4401 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4402 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4403 * config/mips/linux.mh (NATDEPFILES): Ditto.
4404 * config/pa/linux.mh (NATDEPFILES): Ditto.
4405 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4406 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4407 * config/s390/s390.mh (NATDEPFILES): Ditto.
4408 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4409 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4410 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4411
edc84990 44122011-07-21 Matt Rice <ratmice@gmail.com>
4413
4414 * NEWS: Add info macros and info definitions commands.
4415
3a7bf607
PM
44162011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4417
4418 * NEWS: Document Python prompt substitution hook.
4419
9b158ba0 44202011-07-18 Matt Rice <ratmice@gmail.com>
4421
4422 PR macros/12999
4423 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4424 * macrotab.c (foreach_macro): Ditto.
4425 (foreach_macro_in_scope): Ditto.
4426 * macrocmd.c (print_macro_callback): New function.
4427 (info_macro_command): Move some code to print_macro_definition.
4428 (print_macro_definition): New function.
4429 (print_one_macro): Add new arguments to callback.
4430 (info_definitions_command): New function.
4431 (info_macros_command): Ditto.
4432 (_initialize_macrocmd): Add info macros and info definitions commands.
4433 * symtab.c (add_macro_name): Add new arguments to callback.
4434
d17b6f81
PM
44352011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4436 Tom Tromey <tromey@redhat.com>
4437
4438 * top.c (set_prompt): Rewrite to free previous prompt, free
4439 asynch_new_prompt and set both on new prompts.
4440 * event-top.c (display_gdb_prompt): Add prompt substitution
4441 logic.
4442 * python/python.c (before_prompt_hook): New function.
4443
1364323a 44442011-07-20 Matt Rice <ratmice@gmail.com>
4445
4446 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4447 arguments to store_unsigned_integer.
4448
8b70b953
TT
44492011-07-20 Tom Tromey <tromey@redhat.com>
4450
6c83ed52
TT
4451 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4452 in some declaration-only cases.
4453
44542011-07-18 Tom Tromey <tromey@redhat.com>
4455
8b70b953
TT
4456 PR symtab/12984:
4457 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4458 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4459 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4460 <debug_type_section>: New field.
4461 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4462 (load_cu): Use appropriate section.
4463 (create_signatured_type_table_from_index): Add 'section'
4464 argument.
4465 (dwarf2_read_index): Only allow a single .debug_types section.
4466 (dw2_get_file_names): Use appropriate section.
4467 (read_type_comp_unit_head): Add 'section' argument.
4468 (create_debug_types_hash_table): Loop over all .debug_types
4469 sections.
4470 (init_cu_die_reader): Use appropriate section.
4471 (process_psymtab_comp_unit, load_partial_comp_unit)
4472 (load_full_comp_unit, read_die_and_children, find_partial_die)
4473 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4474 (lookup_signatured_type_at_offset): Add 'section' argument.
4475 (read_signatured_type_at_offset): Add 'sect' argument.
4476 (read_signatured_type): Use appropriate section.
4477 (set_die_type, get_die_type_at_offset): Update.
4478 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4479 VEC.
4480 (write_psymtabs_to_index): Don't allow index with more than one
4481 .debug_types section.
4482
918dd910
JK
44832011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 Fix crash if referenced CU is aged out.
4486 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4487 xfree of block.data.
4488 (indirect_pieced_value): New variable back_to, use to for xfree of
4489 baton.data.
4490 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4491 block.data.
4492 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4493 (load_cu): New function from ...
4494 (dw2_do_instantiate_symtab): ... the code here ...
4495 (process_full_comp_unit): ... and here.
4496 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4497 retval.data.
4498
0e37a63c
JK
44992011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4500
4501 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4502 type.
4503
7e324e48
GB
45042011-07-19 Gary Benson <gbenson@redhat.com>
4505
4506 * infrun.c (struct execution_control_state): New member
4507 stop_func_filled_in.
4508 (clear_stop_func, fill_in_stop_func): New functions.
4509 (handle_inferior_event): Call clear_stop_func rather than
4510 manipulating the execution control state directly.
4511 Call fill_in_stop_func lazily as required rather than
4512 directly calling find_pc_partial_function in all cases.
4513
d48323d8
TT
45142011-07-18 Tom Tromey <tromey@redhat.com>
4515
4516 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4517 checking for variable-sized array.
4518
40591b7d
JCD
45192011-07-18 Jean-Charles Delay <delay@adacore.com>
4520
4521 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4522 of supported languages.
4523 * varobj.c: Add top definitions and basic implementation of the
4524 following callbacks: ada_number_of_children, ada_name_of_variable,
4525 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4526 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4527 (languages): Register Ada-specific callbacks.
4528 (variable_language): Add the Ada case in the language setter switch.
4529
2e424e08
JK
45302011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4531
4532 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4533
9e8b7a03
JK
45342011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4535
4536 Code cleanup.
4537 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4538 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4539 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4540 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4541 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4542 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4543 (struct dwarf_expr_context_funcs): New, move here methods from ...
4544 (struct dwarf_expr_context): ... here. New fields funcs.
4545 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4546 (dwarf_expr_ctx_funcs): New.
4547 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4548 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4549 (needs_frame_ctx_funcs): New.
4550 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4551
2b1260ab
FM
45522011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4553
4554 * MAINTAINERS (Write After Approval): Add myself to the list.
4555
8bd90839
FM
45562011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4557
4558 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4559 that CIE pointer of an FDE really points to a CIE .
4560
953b98d1
HZ
45612011-07-15 Hui Zhu <teawater@gmail.com>
4562
4563 * remote.c (remote_get_trace_status): Add comments.
4564
c8f2448a
JK
45652011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4566
4567 Code cleanup - constify struct lval_funcs.
4568 * dwarf2loc.c (pieced_value_funcs): Make it const.
4569 * infrun.c (siginfo_value_funcs): Likewise.
4570 * opencl-lang.c (opencl_value_funcs): Likewise.
4571 * valops.c (value_assign, value_ind): Make the funcs variable const.
4572 * value.c (struct value): Make location.computed.funcs target const.
4573 Rearrange the comments.
4574 (allocate_computed_value): Make the funcs parameter target const.
4575 (value_computed_funcs): Return the funcs target const.
4576 (value_free, value_copy, set_value_component_location): Make the funcs
4577 variable const.
4578 * value.h (allocate_computed_value): Make the funcs parameter target
4579 const.
4580 (value_computed_funcs): Return the funcs target const.
4581 * windows-tdep.c (tlb_value_funcs): Make it const.
4582
f652de6f
HZ
45832011-07-14 Hui Zhu <teawater@gmail.com>
4584
4585 * remote.c (remote_get_trace_status): Initialize p.
4586
67f41397
JK
45872011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4588
4589 Work around kgdb.
4590 * remote.c (remote_get_trace_status): New variable ex. Put
4591 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4592
d1b66e6d
TT
45932011-07-13 Tom Tromey <tromey@redhat.com>
4594
4595 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4596 value_from_contents for final conversion.
4597
1632a688
JK
45982011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 Code cleanup.
4601 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4602 Indent prototypes so they do not get into tags.
4603
a7035dbb
JK
46042011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4605
4606 Code cleanup making also optimized out values lazy.
4607 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4608 allocate_optimized_out_value. Twice.
4609 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4610 * findvar.c (read_var_value): Likewise.
4611 * value.c (allocate_optimized_out_value): New function.
4612 * value.h (allocate_optimized_out_value): New declaration.
4613
d07ed419
JK
46142011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4615
4616 Fix occasional crash of CTRL-C during DWARF read in.
4617 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4618
86d31898
TT
46192011-07-11 Tom Tromey <tromey@redhat.com>
4620
4621 * regcache.c (struct regcache_descr): Fix typo.
4622 * i387-tdep.c (i387_supply_xsave): Fix typo.
4623
2ab95328
TT
46242011-07-11 Tom Tromey <tromey@redhat.com>
4625
4626 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4627 (read_file_scope, read_type_unit_scope): Use it.
4628
04ad99e6
JK
46292011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4632 `int'.
4633
713389e0
PM
46342011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4635
4636 PR python/12438
4637 * python/python.c: Set gdbpy_should_print_stack default to off.
4638 (set_python): Deprecate maint set python print-stack to
4639 class_deprecate.
4640 (_initialize_python): Deprecate maint set/show python print-stack.
4641 Add new prefix command, python. Add new setting, print-backtrace.
4642 * NEWS: Document set python print-stack. Document default change.
4643
754eadd1
PM
46442011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4645
4646 * python/py-inferior.c (infpy_dealloc): New function.
4647 (inferior_to_inferior_object): Return a new object, or a
4648 new reference to the existing object.
4649 (find_thread_object): Cleanup references to inferior.
4650 (delete_thread_object): Ditto.
4651 * python/py-infthread.c (create_thread_object): Do not increment
4652 inferior reference count.
4653
5e44ecb3
TT
46542011-07-08 Tom Tromey <tromey@redhat.com>
4655
4656 * dwarf2loc.c (locexpr_regname): New function.
4657 (locexpr_describe_location_piece): Use it.
4658 (disassemble_dwarf_expression): Add per_cu argument. Use
4659 locexpr_regname.
4660 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4661 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4662 New cases.
4663 (locexpr_describe_location_1): Add per_cu argument.
4664 (locexpr_describe_location): Update.
4665 (loclist_describe_location): Update.
4666
e0e9434c
TT
46672011-07-08 Tom Tromey <tromey@redhat.com>
4668
4669 * dwarf2expr.c (execute_stack_op): Add QUIT.
4670
26afc0d7
HZ
46712011-07-07 Hui Zhu <teawater@gmail.com>
4672
4673 Revert:
4674 2011-07-06 Hui Zhu <teawater@gmail.com>
4675 * remote.c (remote_start_remote): Add TRY_CATCH for
4676 remote_get_trace_status.
4677 * tracepoint.c (disconnect_tracing): Ditto.
4678
a40a111f
AB
46792011-07-07 Andrew Burgess <aburgess@broadcom.com>
4680
4681 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4682 variables as signed, not unsigned.
4683
e2bd3b15
JB
46842011-07-06 Joel Brobecker <brobecker@adacore.com>
4685
4686 * jit.c (jit_inferior_init): Reformat forward declaration.
4687
e3d961fe 46882011-07-06 Matt Rice <ratmice@gmail.com>
4689
4690 * MAINTAINERS (Write After Approval): Add myself to the list.
4691
0f3428f0
HZ
46922011-07-06 Hui Zhu <teawater@gmail.com>
4693
4694 * remote.c (remote_start_remote): Add TRY_CATCH for
4695 remote_get_trace_status.
4696 * tracepoint.c (disconnect_tracing): Ditto.
4697
fc9f3a69
TT
46982011-07-05 Tom Tromey <tromey@redhat.com>
4699
4700 * symtab.c (operator_chars): Now static.
4701 * linespec.c (operator_chars): Don't declare.
4702
26e519b9
TJB
47032011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4704
4705 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4706
eb2a6f42
TT
47072011-07-05 Tom Tromey <tromey@redhat.com>
4708
4709 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4710 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4711 (TYPE_CPLUS_REALLY_JAVA): New macro.
4712 * dwarf2read.c (process_structure_scope): Set
4713 TYPE_CPLUS_REALLY_JAVA.
4714
21083d0f 47152011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4716
4717 * ada-lang.c: Fix typos.
4718 * amd64-tdep.c: Likewise.
4719 * breakpoint.c: Likewise.
4720 * cli/cli-decode.c: Likewise.
4721 * findcmd.c: Likewise.
4722 * inline-frame.c: Likewise.
4723 * mi/mi-main.c: Likewise.
4724 * minsyms.c: Likewise.
4725 * monitor.c: Likewise.
4726 * monitor.h: Likewise.
4727 * prologue-value.c: Likewise.
4728 * reverse.c: Likewise.
4729 * s390-tdep.c: Likewise.
4730
3b2a0cf2
JB
47312011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4732
4733 * jit.c (jit_inferior_init): Forward declare.
4734 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4735
efae1d92
JB
47362011-07-04 Joel Brobecker <brobecker@adacore.com>
4737
4738 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4739
6040a59d
JB
47402011-07-04 Tristan Gingold <gingold@adacore.com>
4741
4742 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4743 (tcb_fieldno): Add activation_link field.
4744 (get_known_tasks_addr): Moved and rewritten.
4745 (get_tcb_types_info): Set activation_link field.
4746 (read_known_tasks_array): Add parameter. Rewritten.
4747 (read_known_tasks_list): New function.
4748 (read_known_tasks): New function.
4749 (ada_build_task_list): Call read_known_tasks instead of
4750 read_known_tasks_array.
4751 * ravenscar-thread.c: Add first_task_name constant.
4752 (has_ravenscar_runtime): Check for task list too.
4753
cb741e45
JB
47542011-07-04 Tristan Gingold <gingold@adacore.com>
4755
4756 * ada-tasks.c: Renames fieldno to actb_fieldno.
4757 (ada_get_task_number): Indentation.
4758 (get_tcb_types_info): Remove all parameters. Write directly
4759 the globals.
4760 (ptid_from_atcb_common): Adjust.
4761 (read_atcb): Adjust.
4762
7475b06c
TJB
47632011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4764
4765 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4766
15230f37
TJB
47672011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4768
4769 * ui-out.c (ui_out_field_core_addr): Mention that the function
4770 description is in the header file.
4771 * ui-out.h (ui_out_field_core_addr): Document function.
4772
65743aba
TJB
47732011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4774
4775 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4776 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4777
c37a5aab
TJB
47782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4779
4780 * symtab.c (expand_line_sal): Remove empty line.
4781
59adf69e
TS
47822011-07-04 Thomas Schwinge <thomas@schwinge.name>
4783
4784 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4785 same way as ELFOSABI_NONE.
4786 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4787
e5dd4106
TJB
47882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4789
4790 * breakpoint.c: Fix typos in comments.
4791 * linespec.c: Likewise.
4792 * symtab.c: Likewise.
4793
d40102a1
JB
47942011-07-04 Joel Brobecker <brobecker@adacore.com>
4795
4796 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4797 section in separate object files.
4798
2f741504
JK
47992011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4800
4801 Fix false GCC warning.
4802 * linespec.c (decode_line_1): Initialize values.
4803
418c7cf7
JK
48042011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4805
4806 * linespec.c (find_method): Accept the function type automatically only
4807 if it was specified with parameter types.
4808
3d50dd94
JK
48092011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 Stop on first linespec terminator instead of eating what we can.
4812 * linespec.c (is_linespec_boundary): New function.
4813 (name_end): Remove function.
4814 (keep_name_info): New parameter on_boundary, replace the body.
4815 (decode_line_1): Provide the parameter to keep_name_info.
4816 (decode_compound): Likewise. Drop the trailing java return type
4817 handling. Twice.
4818
dcf9f4ab
JK
48192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 Fall back linespec to minimal symbols.
4822 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4823 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4824 (find_method, symbol_found): Change error to cplusplus_error.
4825
3f542ed1
JK
48262011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
bc68c4e5 4828 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4829
900e11f9
JK
48302011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 Tom Tromey <tromey@redhat.com>
4832
4833 * dwarf2read.c (check_physname): New variable.
4834 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4835 (show_check_physname): New function.
4836 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4837
2301925d
JB
48382011-07-01 Joel Brobecker <brobecker@adacore.com>
4839
4840 * machoread.c (macho_symfile_read): Delete OBE comment.
4841
38947cca
JB
48422011-07-01 Joel Brobecker <brobecker@adacore.com>
4843
4844 * machoread.c (struct macho_oso_data): Delete.
4845 (current_oso): Delete.
4846 (macho_relocate_common_syms): New function, mostly extracted
4847 out of
4848 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4849 Remove code that sets and unset current_oso.
4850 (macho_symfile_relocate): Delete handling of common symbols,
4851 now moved to macho_relocate_common_syms.
4852
a7aa0d73
JB
48532011-07-01 Joel Brobecker <brobecker@adacore.com>
4854
4855 * darwin-nat.c (darwin_ptrace): Add documentation.
4856 Set errno to zero before calling ptrace. If ptrace returns
4857 -1 and errno is zero, then change then return zero.
4858 (darwin_kill_inferior): Issue a warning instead of triggering
4859 a failed assertion when the PT_KILL ptrace operations returned
4860 nonzero.
4861
5e9bc145
JB
48622011-07-01 Joel Brobecker <brobecker@adacore.com>
4863
4864 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4865 only when inf->private->no_ptrace.
4866
00eb2c4a
JB
48672011-07-01 Joel Brobecker <brobecker@adacore.com>
4868
4869 * ada-lang.c (print_it_exception): Print temporary catchpoints
4870 as "Temporary catchpoint".
4871 (print_mention_exception): Likewise.
4872
127c81bc
TT
48732011-07-01 Tom Tromey <tromey@redhat.com>
4874
4875 * jv-lang.c (java_language_defn): Use java_printchar,
4876 java_printstr.
4877 (java_get_encoding): New function.
4878 (java_emit_char): Use generic_emit_char.
4879 (java_printchar): New function.
4880 (java_printstr): Likewise.
4881
25552254
JB
48822011-07-01 Joel Brobecker <brobecker@adacore.com>
4883
4884 * ada-typeprint.c (print_record_type): If unable to decode
4885 the name of the parent type, use the encoded name.
4886
d2d43431
JB
48872011-07-01 Jean-Charles Delay <delay@adacore.com>
4888
4889 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4890 pointer to constrained packed array type output.
4891 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4892 packed array output.
4893
54ae186f
JB
48942011-07-01 Jean-Charles Delay <delay@adacore.com>
4895
4896 * ada-typeprint.c (print_array_type): removed if condition on show
4897 being negative for bounds printing.
4898
8f17729f
JB
48992011-07-01 Joel Brobecker <brobecker@adacore.com>
4900
4901 * ada-lang.c (ada_identical_enum_types_p): New function.
4902 (symbols_are_identical_enums): New function.
4903 (remove_extra_symbols): Do nothing if NSYMS < 2.
4904 Use symbols_are_identical_enums.
4905
f5aa6869
JB
49062011-07-01 Joel Brobecker <brobecker@adacore.com>
4907
4908 * ada-valprint.c (ada_value_print): Handle typedefs.
4909
8f465ea7
JB
49102011-07-01 Joel Brobecker <brobecker@adacore.com>
4911
4912 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4913
828292f2
JB
49142011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4915
4916 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4917 (decode_constrained_packed_array): Likewise.
4918 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4919
18920c42
JB
49202011-07-01 Joel Brobecker <brobecker@adacore.com>
4921
4922 * ada-exp.y (convert_char_literal): Handle typedef types.
4923
c90092fe
JB
49242011-07-01 Joel Brobecker <brobecker@adacore.com>
4925
4926 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4927
f748fb40
TT
49282011-06-30 Tom Tromey <tromey@redhat.com>
4929
4930 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4931 * valops.c (find_overload_match): Call do_cleanups on early exit
4932 path.
4933 * solib.c (solib_find): Call do_cleanups on early exit path.
4934
3bb47e8b
TT
49352011-06-30 Tom Tromey <tromey@redhat.com>
4936
4937 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4938 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4939 return paths. Defer final do_cleanups until last return.
4940 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4941 early return.
4942
4727bad3
TT
49432011-06-30 Tom Tromey <tromey@redhat.com>
4944
4945 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4946
bb361dbf
AB
49472011-06-30 Andrew Burgess <aburgess@broadcom.com>
4948
4949 * MAINTAINERS (Write After Approval): Add myself to the list.
4950
e0d00bc7
JK
49512011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 Disable epilogue unwinders on recent GCCs.
4954 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4955 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4956 * dwarf2read.c (process_full_comp_unit): Initialize
4957 EPILOGUE_UNWIND_VALID.
4958 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4959 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4960 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4961
4632c0d0
JK
49622011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4963
4964 Code cleanup - reformatting.
4965 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4966 (producer_is_gcc_ge_4): ... here, change the return value.
4967 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4968 interpretation.
4969
32019081
JK
49702011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4971
4972 Fix non-only rename list for Fortran modules import.
4973 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4974 cp_add_using_directive caller.
4975 (cp_add_using_directive): New parameter excludes, describe it. New
4976 variables ix and param. Compare if also excludes match. Allocate NEW
4977 with variable size, initialize EXCLUDES there.
4978 (cp_lookup_symbol_imports): New variable excludep, test
4979 current->EXCLUDES with it.
4980 * cp-support.h: Include vec.h.
4981 (struct using_direct): New field excludes, describe it.
4982 (DEF_VEC_P (const_char_ptr)): New.
4983 (cp_add_using_directive): New parameter excludes.
4984 * defs.h (const_char_ptr): New typedef.
4985 * dwarf2read.c (read_import_statement): New variables child_die,
4986 excludes and cleanups, read in excludes.
4987 (read_namespace): Adjust the cp_add_using_directive caller.
4988
70c622a3
JK
49892011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 Code cleanup.
4992 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4993 negative comparisons.
4994
39c4d40a
TT
49952011-06-29 André Pönitz <andre.poenitz@nokia.com>
4996
4997 * mi/mi-main.c (mi_cmd_list_features): Emit
4998 breakpoint-notifications.
4999
3b2b8fea
TT
50002011-06-29 Tom Tromey <tromey@redhat.com>
5001
5002 PR fortran/10036:
5003 * valprint.h (generic_emit_char, generic_printstr): Declare.
5004 * valprint.c (wchar_printable, append_string_as_wide)
5005 (print_wchar): Move from c-lang.c.
5006 (generic_emit_char): New function; mostly taken from c_emit_char.
5007 (generic_printstr): New function; mostly taken from c_printstr.
5008 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5009 represented as arrays.
5010 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5011 type.
5012 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5013 identically to TYPE_CODE_INT.
5014 * f-lang.c (f_get_encoding): New function.
5015 (f_emit_char): Use generic_emit_char.
5016 (f_printchar): Replace comment.
5017 (f_printstr): Use generic_printstr.
5018 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5019 "character" types specially.
5020 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5021 for Fortran.
5022 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5023 Move to valprint.c
5024 (c_emit_char): Call generic_emit_char.
5025 (c_printstr): Call generic_printstr.
5026
168e6d44
GB
50272011-06-29 Gary Benson <gbenson@redhat.com>
5028
5029 * breakpoint.c (bpstat_what): Removed duplicated case.
5030
1c033f8c
TT
50312011-06-28 Tom Tromey <tromey@redhat.com>
5032
5033 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5034
5fe41fbf
TT
50352011-06-27 Tom Tromey <tromey@redhat.com>
5036
5037 * valops.c (find_overload_match): Call do_cleanups before early
5038 return.
5039 * top.c (execute_command): Call do_cleanups before early return.
5040 (command_loop): Likewise.
5041 * stack.c (backtrace_command): Make a null cleanup early. Don't
5042 conditionally call do_cleanups.
5043 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5044 TRY_CATCH.
5045 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5046 so cleanups are always run.
5047 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5048 * findcmd.c (parse_find_args): Call do_cleanups on early return
5049 path.
5050 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5051 Don't conditionally call do_cleanups.
5052 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5053 later.
5054
e26bd57d
EB
50552011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5056
5057 * MAINTAINERS (Write After Approval): Use default email address.
5058
6c3097fc
JB
50592011-06-27 Joel Brobecker <brobecker@adacore.com>
5060
5061 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5062
369c397b
JB
50632011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5064
5065 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5066 saved_regs_mask and copied_regs_mask fields.
5067 (sparc_record_save_insn): New prototype.
5068 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5069 (sparc_record_save_insn): New function.
5070 (sparc_analyze_prologue): Add head comment. Recognize store insns
5071 of call-saved registers. Use OFFSET consistently. Recognize flat
5072 frames and cache their settings.
5073 (sparc32_skip_prologue): Handle flat frames.
5074 (sparc_frame_cache): Add frame_offset to the base address.
5075 (sparc32_frame_cache): Adjust to new frame description.
5076 (sparc32_frame_prev_register): Likewise.
5077 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5078 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5079 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5080 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5081 frame by calling sparc_record_save_insn.
5082 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5083 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5084 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5085
b315ab21
TG
50862011-06-27 Tristan Gingold <gingold@adacore.com>
5087
5088 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5089 field by map_addr and map_len.
5090 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5091 (munmap_section_buffer): Likewise.
5092
ddd49eee
TT
50932011-06-24 Tom Tromey <tromey@redhat.com>
5094
5095 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5096 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5097 * python/python.c (gdbpy_parameter): Make 'arg' const.
5098 (execute_gdb_command): Likewise.
5099 (gdbpy_decode_line): Likewise. Copy it.
5100 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5101 (gdbpy_write): Make 'arg' const.
5102 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5103 const.
5104 (gdbpy_lookup_type): Likewise.
5105 * python/py-prettyprint.c (print_children): Make 'name' const.
5106 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5107 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5108 Py_ssize_t.
5109 * python/py-function.c (fnpy_init): Make 'name' const.
5110 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5111 (gdbpy_string_to_argv): Make 'input' const.
5112 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5113 it.
5114 * gdbtypes.h (lookup_typename): Update.
5115 * gdbtypes.c (lookup_typename): Make 'name' const.
5116 (lookup_struct): Likewise.
5117 (lookup_union): Likewise.
5118 (lookup_enum): Likewise.
5119
5998129b
TT
51202011-06-24 Tom Tromey <tromey@redhat.com>
5121
5122 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5123 gdb_thread_db.h. Move all common/ entries to be together.
5124 (TAGS): Don't depend on DEPFILES.
5125
6e586cc5
YQ
51262011-06-23 Yao Qi <yao@codesourcery.com>
5127
5128 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5129 * remote.c (remote_start_remote): ... here.
5130 * monitor.c (monitor_open): ... here.
5131
86c3c1fc
AB
51322011-06-23 Andrew Burgess <aburgess@broadcom.com>
5133
5134 * gdbtypes.c (append_composite_type_field_aligned): Fix
5135 calculation of bit position based on alignment.
5136
28010a5d
PA
51372011-06-22 Pedro Alves <pedro@codesourcery.com>
5138
5139 * breakpoint.c (bpstat_stop_status): Call the check_status
5140 breakpoint_ops method.
5141 (print_one_breakpoint_location): Also print the condition for Ada
5142 exception catchpoints.
5143 (allocate_bp_location): New, factored out from
5144 allocate_bp_location.
5145 (allocate_bp_location): Adjust. Call the owner breakpoint's
5146 allocate_location method, if there is one.
5147 (free_bp_location): Call the locations's dtor method, if there is
5148 one.
5149 (init_raw_breakpoint_without_location): New breakpoint_ops
5150 parameter. Use it.
5151 (set_raw_breakpoint_without_location): Adjust.
5152 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5153 (set_raw_breakpoint): Adjust.
5154 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5155 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5156 re_set and check_status methods.
5157 (init_catchpoint): Don't memset, initialize thread, addr_string
5158 and enable_state. Pass the ops down to init_raw_breakpoint.
5159 (install_catchpoint): Rename to ...
5160 (install_breakpoint): ... this, and make extern.
5161 (create_fork_vfork_event_catchpoint): Adjust.
5162 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5163 re_set and check_status methods.
5164 (create_syscall_event_catchpoint): Adjust.
5165 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5166 (masked_watchpoint_breakpoint_ops): Install NULL
5167 allocate_location, re_set and check_status methods.
5168 (catch_exec_command_1): Adjust.
5169 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5170 re_set and check_status methods.
5171 (create_ada_exception_breakpoint): Rename to ...
5172 (init_ada_exception_breakpoint): ... this. Add a struct
5173 breakpoint parameter, and delete the exp_string, cond_string and
5174 cond parameters. Use init_raw_breakpoint, and don't install or
5175 mention the breakpoint yet. Don't clear breakpoint fields that
5176 init_raw_breakpoint already clears.
5177 (re_set_breakpoint): Delete, split into ...
5178 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5179 functions.
5180 (breakpoint_re_set_one): Call the breakpoint's
5181 breakpoint_ops->re_set implementation, if there's one. Adjust.
5182 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5183 (struct bp_location_ops): New type.
5184 (struct bp_location): New field `ops'.
5185 (struct breakpoint_ops): New `allocate_location', `re_set' and
5186 `check_status' fields. Make `breakpoint_hit''s description match
5187 reality.
5188 (init_bp_location): Declare.
5189 (breakpoint_re_set_default): Declare.
5190 (create_ada_exception_breakpoint): Rename to ...
5191 (init_ada_exception_breakpoint): ... this. Add a struct
5192 breakpoint parameter, and delete the exp_string, cond_string and
5193 cond parameters.
5194 (install_breakpoint): Declare.
5195 * ada-lang.c: Include exceptions.h.
5196 <Ada exceptions description>: Update.
5197 (struct ada_catchpoint_location): New type.
5198 (ada_catchpoint_location_dtor): New function.
5199 (ada_catchpoint_location_ops): New global.
5200 (ada_catchpoint): New type.
5201 (create_excep_cond_exprs): New function.
5202 (dtor_exception, allocate_location_exception, re_set_exception)
5203 (should_stop_exception, check_status_exception): New functions.
5204 (print_one_exception, print_mention_exception)
5205 (print_recreate_exception): Adjust.
5206 (dtor_catch_exception, allocate_location_catch_exception)
5207 (re_set_catch_exception, check_status_catch_exception): New
5208 functions.
5209 (catch_exception_breakpoint_ops): Install them.
5210 (dtor_catch_exception_unhandled)
5211 (allocate_location_catch_exception_unhandled)
5212 (re_set_catch_exception_unhandled)
5213 (check_status_catch_exception_unhandled): New functions.
5214 (catch_exception_unhandled_breakpoint_ops): Install them.
5215 (dtor_catch_assert, allocate_location_catch_assert)
5216 (re_set_catch_assert, check_status_catch_assert): New functions.
5217 (catch_assert_breakpoint_ops): Install them.
5218 (ada_exception_catchpoint_p): Delete.
5219 (catch_ada_exception_command_split)
5220 (ada_exception_catchpoint_cond_string): Rename exp_string
5221 parameter to excep_string. Adjust.
5222 (ada_parse_catchpoint_condition): Delete.
5223 (ada_exception_sal): Rename the exp_string parameter to
5224 excep_string. Delete the cond_string and cond parameters.
5225 Adjust.
5226 (ada_decode_exception_location): Rename the exp_string parameter
5227 to excep_string. Delete the cond_string and cond parameters.
5228 Adjust.
5229 (create_ada_exception_catchpoint): New function.
5230 (catch_ada_exception_command, ada_decode_assert_location)
5231 (catch_assert_command): Adjust.
5232 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5233
9ac4176b
PA
52342011-06-22 Pedro Alves <pedro@codesourcery.com>
5235
5236 * ada-lang.c: Include arch-utils.h.
5237 (ada_decode_exception_location): Make static.
5238 (catch_ada_exception_command): Moved here from breakpoint.c.
5239 (ada_decode_assert_location): Make static.
5240 (catch_assert_command): Moved here from breakpoint.c.
5241 (_initialize_ada_lang): Install the exception and assert
5242 catchpoint commands here.
5243 * ada-lang.h (ada_decode_exception_location)
5244 (ada_decode_assert_location): Delete declarations.
5245 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5246 breakpoint.h.
5247 (create_ada_exception_breakpoint): Make extern.
5248 (catch_ada_exception_command, catch_assert_command): Moved to
5249 ada-lang.c.
5250 (add_catch_command): Make extern.
5251 (_initilize_breakpoint): Don't install the exception and assert
5252 catchpoint commands here.
5253 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5254 breakpoint.c
5255 (add_catch_command, create_ada_exception_breakpoint): Declare.
5256
c56053d2
PA
52572011-06-22 Pedro Alves <pedro@codesourcery.com>
5258
5259 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5260 the breakpoint to the breakpoint chain here.
5261 (set_raw_breakpoint_without_location): Add the breakpoint to the
5262 breakpoint chain here.
5263 (init_raw_breakpoint): Adjust comments.
5264 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5265 here.
5266 (init_catchpoint): Don't set the catchpoint's breakpoint number
5267 here.
5268 (install_catchpoint): New function.
5269 (create_fork_vfork_event_catchpoint)
5270 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5271 use install_catchpoint.
5272
d2f3fc74
PA
52732011-06-22 Pedro Alves <pedro@codesourcery.com>
5274
5275 * breakpoint.c (create_catchpoint_without_mention)
5276 (create_catchpoint): Delete.
5277
b4d90040
PA
52782011-06-22 Pedro Alves <pedro@codesourcery.com>
5279
5280 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5281 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5282 reference to exec_pathname.
5283 (struct exec_catchpoint): New type.
5284 (dtor_catch_exec): New function.
5285 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5286 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5287 (catch_exec_command_1): Adjust to use init_catchpoint.
5288 (delete_breakpoint): Remove reference to exec_pathname.
5289
be5c67c1
PA
52902011-06-22 Pedro Alves <pedro@codesourcery.com>
5291
5292 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5293 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5294 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5295 reference to syscalls_to_be_caught.
5296 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5297 NULL `dtor'.
5298 (struct syscall_catchpoint): New type.
5299 (dtor_catch_syscall): New function.
5300 (insert_catch_syscall, remove_catch_syscall)
5301 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5302 (print_recreate_catch_syscall): Adjust.
5303 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5304 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5305 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5306 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5307 (masked_watchpoint_breakpoint_ops)
5308 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5309 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5310 there is one. Remove references to syscalls_to_be_caught.
5311 (catching_syscall_number): Adjust.
5312 * ada-lang.c (catch_exception_breakpoint_ops)
5313 (catch_exception_unhandled_breakpoint_ops)
5314 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5315
e29a4733
PA
53162011-06-22 Pedro Alves <pedro@codesourcery.com>
5317
5318 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5319 field.
5320 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5321 reference to forked_inferior_pid.
5322 (struct fork_catchpoint): New type.
5323 (breakpoint_hit_catch_fork, print_it_catch_fork)
5324 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5325 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5326 (create_fork_vfork_event_catchpoint): Adjust to use
5327 init_catchpoint.
5328
346774a9
PA
53292011-06-22 Pedro Alves <pedro@codesourcery.com>
5330
5331 * breakpoint.c (add_to_breakpoint_chain)
5332 (init_raw_breakpoint_without_location): New functions, factored
5333 out from ...
5334 (set_raw_breakpoint_without_location): ... this one.
5335 (init_raw_breakpoint): New function, factored out from
5336 set_raw_breakpoint and adjusted to use
5337 init_raw_breakpoint_without_location.
5338 (set_raw_breakpoint): Adjust.
5339 (init_catchpoint): New function, factored out from
5340 create_catchpoint_without_mention and adjusted to use
5341 init_raw_breakpoint.
5342 (create_catchpoint_without_mention): Adjust.
5343
c38c4bc5
TT
53442011-06-22 Tom Tromey <tromey@redhat.com>
5345
5346 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5347 argument of 0 specially.
5348
b138ce37
YQ
53492011-06-22 Yao Qi <yao@codesourcery.com>
5350
5351 * infrun.c (handle_inferior_event): Remove write-only local variable
5352 `sw_single_step_trap_p'.
5353
03de6823
TT
53542011-06-20 Tom Tromey <tromey@redhat.com>
5355
5356 * symtab.c (lookup_language_this): End loop if block is NULL.
5357
66a17cb6
TT
53582011-06-17 Tom Tromey <tromey@redhat.com>
5359
5360 * valops.c (value_of_this): Use lookup_language_this.
5361 * symtab.h (lookup_language_this): Declare.
5362 * symtab.c (lookup_language_this): New function.
5363 (lookup_symbol_aux): Use lookup_language_this.
5364 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5365
7518bff5
TT
53662011-06-17 Tom Tromey <tromey@redhat.com>
5367
5368 * value.h (value_of_this): Update.
5369 (value_of_local): Remove.
5370 * valops.c (value_of_this): Rename from value_of_local. Change
5371 parameters.
5372 * p-exp.y (exp): Update.
5373 (variable): Likewise.
5374 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5375
aee28ec6
TT
53762011-06-17 Tom Tromey <tromey@redhat.com>
5377
5378 * valops.c (value_of_local): Complain if NAME is NULL.
5379 * std-operator.def (OP_OBJC_SELF): Remove.
5380 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5381 * objc-exp.y (name_not_typename): Use OP_THIS.
5382 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5383 name for "this".
5384 <OP_OBJC_SELF>: Remove.
5385 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5386
eed8f803
TG
53872011-06-16 Tristan Gingold <gingold@adacore.com>
5388
5389 * python/py-events.h (gdb_py_events): Make it extern.
5390 * python/py-evtregistry.c (gdb_py_events): Declare.
5391
864ac8a7
HZ
53922011-06-16 Hui Zhu <teawater@gmail.com>
5393
5394 * remote.c (remote_trace_set_readonly_regions): Add check for
5395 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5396 output warning.
5397
ef7e8358
UW
53982011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5399
5400 * arm-linux-tdep.c: Include "auxv.h".
5401 (AT_HWCAP): Define.
5402 (ARM_LINUX_SIZEOF_VFP): Define.
5403 (arm_linux_supply_vfp): New function.
5404 (arm_linux_collect_vfp): Likewise.
5405 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5406 (arm_linux_fpa_regset_sections): New variable.
5407 (arm_linux_vfp_regset_sections): Likewise.
5408 (arm_linux_core_read_description): New function.
5409 (arm_linux_init_abi): Install arm_linux_core_read_description and
5410 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5411 appropriate for the architecture.
5412 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5413 (tdesc_arm_with_m): Declare.
5414 (tdesc_arm_with_iwmmxt): Likewise.
5415 (tdesc_arm_with_vfpv2): Likewise.
5416 (tdesc_arm_with_vfpv3): Likewise.
5417 (tdesc_arm_with_neon): Likewise.
5418 * arm-linux-nat.c: Move features/*.c includes ...
5419 * arm-tdep.c: ... here.
5420 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5421 target description data structures ...
5422 * arm-tdep.c (_initialize_arm_tdep): ... here.
5423 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5424 HWCAP_VFPv3D16): Move definitions ...
5425 * arm-linux-tdep.h: ... here.
5426
c2fa21f1
HZ
54272011-06-15 Hui Zhu <teawater@gmail.com>
5428
5429 * remote.c (remote_trace_set_readonly_regions): Add a check for
5430 target_buf_size.
5431
dd707e8e
TT
54322011-06-14 Tom Tromey <tromey@redhat.com>
5433
5434 * coffread.c (coffread_objfile): Rename from current_objfile.
5435 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5436 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5437
86cc0029
TT
54382011-06-14 Tom Tromey <tromey@redhat.com>
5439
5440 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5441 (class_symtab): Remove.
5442 (jv_dynamics_progspace_key): New global.
5443 (jv_per_objfile_free): Reset program space data. Update assert.
5444 Don't clear globals.
5445 (get_dynamics_objfile): Use and set program space data.
5446 (get_java_class_symtab): Use get_dynamics_objfile.
5447 (add_class_symbol): Likewise.
5448 (java_link_class_type): Likewise.
5449 (java_object_type, jv_clear_object_type, set_java_object_type):
5450 Remove.
5451 (get_java_object_type): Update. Don't cache result.
5452 (is_object_type): Don't call set_java_object_type.
5453 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5454 initialize jv_dynamics_progspace_key.
5455
91a81f69
TT
54562011-06-14 Tom Tromey <tromey@redhat.com>
5457
5458 * symtab.h (current_objfile): Don't declare.
5459 * objfiles.h (current_objfile): Don't declare.
5460 * objfiles.c (current_objfile): Remove.
5461 * mdebugread.c (current_objfile): New file-scope global.
5462 * dbxread.c (current_objfile): New file-scope global.
5463 * coffread.c (current_objfile): New file-scope global.
5464
dc7eb48e
PA
54652011-06-13 Pedro Alves <pedro@codesourcery.com>
5466
5467 * top.h (line): Rename to ...
5468 (saved_command_line): ... this.
5469 (linesize): Rename to ...
5470 (saved_command_line_size): ... this.
5471 * top.c (line): Rename to ...
5472 (saved_command_line): ... this.
5473 (linesize): Rename to ...
5474 (saved_command_line_size): ... this.
5475 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5476 * event-top.c (command_line_handler): Adjust.
5477 * main.c (captured_main): Adjust.
5478
0d6c2135
MK
54792011-06-12 Mark Kettenis <kettenis@gnu.org>
5480
5481 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5482 get_frame_func instead of get_frame_pc to determine the code
5483 address used to construct the frame ID.
5484 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5485 (i386_epilogue_frame_this_id): Likewise.
5486 (i386_epilogue_frame_prev_register): New function.
5487 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5488 (i386_stack_tramp_frame_sniffer): Fix coding style.
5489 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5490 (i386_gdbarch_init): Fix comments.
5491
8bbdd3f4
MK
54922011-06-12 Mark Kettenis <kettenis@gnu.org>
5493
5494 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5495 instruction when walking back through the instruction stream.
5496
533a737e
JK
54972011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5498
5499 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5500 fullname parameters order.
5501
44b13c5a
JK
55022011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5503
5504 Code cleanup.
5505 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5506 for fun.
5507 * psymtab.c (map_symbol_filenames_psymtab)
5508 (map_partial_symbol_filenames): Likewise.
5509 * psymtab.h: Include symfile.h.
5510 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5511 * symfile.h (symbol_filename_ftype): New.
5512 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5513 map_symbol_filenames, clarify more the naming in comment.
5514
0b5574da
DE
55152011-06-07 Doug Evans <dje@google.com>
5516
5517 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5518 Look for ../../gdb, for fullname.exp.
0b5574da 5519
5be4dfca
JK
55202011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5521 Pedro Alves <pedro@codesourcery.com>
5522
5523 * cli/cli-cmds.c (shell_escape): Use waitpid.
5524 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5525
316a8b21
TG
55262011-06-07 Tristan Gingold <gingold@adacore.com>
5527
5528 * xcoffread.c (dwarf2_xcoff_names): New variable.
5529 (aix_process_linenos): Add a guard.
5530 (xcoff_symfile_finish): Free dwarf2.
5531 (xcoff_initial_scan): Add dwarf2 support.
5532
3dd5b83d
PA
55332011-06-06 Pedro Alves <pedro@codesourcery.com>
5534
5535 * infcall.c (run_inferior_call): Don't mask async. Instead force
5536 a synchronous wait, if the target can async.
5537
5538 * target.h (struct target_ops): Delete to_async_mask.
5539 (target_async_mask): Delete.
5540 * target.c (update_current_target): Delete references to to_async_mask.
5541 * linux-nat.c (linux_nat_async_mask_value): Delete.
5542 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5543 to linux_nat_async_mask_value.
5544 (linux_nat_async_mask): Delete.
5545 (linux_nat_async, linux_nat_close): Remove references to
5546 linux_nat_async_mask_value.
5547 * record.c (record_async_mask_value): Delete.
5548 (record_async): Remove references to record_async_mask_value.
5549 (record_async_mask): Delete.
5550 (record_can_async_p, record_is_async_p): Remove references to
5551 record_async_mask_value.
5552 (init_record_ops, init_record_core_ops): Remove references to
5553 record_async_mask.
5554 * remote.c (remote_async_mask_value): Delete.
5555 (init_remote_ops): Remove reference to remote_async_mask.
5556 (remote_can_async_p, remote_is_async_p): Remove references to
5557 remote_async_mask_value.
5558 (remote_async): Remove references to remote_async_mask_value.
5559 (remote_async_mask): Delete.
5560
5561 * infrun.c (fetch_inferior_event): Don't claim registers changed
5562 if the current thread is already not executing.
5563
64b9b334
JB
55642011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5565
5566 From Stephen Kitt <steve@sk2.org>
5567 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5568 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5569
325663dc
JB
55702011-06-03 Joel Brobecker <brobecker@adacore.com>
5571
5572 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5573 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5574
8cf64490
TT
55752011-06-03 Tom Tromey <tromey@redhat.com>
5576
5577 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5578 code fields.
5579 * python/py-exitedevent.c (create_exited_event_object): Change
5580 type of 'exit_code'. Optionally add exit_code attribute.
5581 (emit_exited_event): Change type of 'exit_code'.
5582 * python/py-event.h (emit_exited_event): Update.
5583 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5584 * infrun.c (handle_inferior_event): Set exit code fields on
5585 inferior.
5586 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5587 fields.
5588 * inferior.c (exit_inferior_1): Initialize new fields.
5589
8ddd9a20
TT
55902011-06-03 Tom Tromey <tromey@redhat.com>
5591
5592 * dwarf2expr.c (get_signed_type): New function.
5593 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5594
8dfd1e6d
KS
55952011-06-02 Keith Seitz <keiths@redhat.com>
5596
5597 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5598
65fdb766
PA
55992011-06-02 Pedro Alves <pedro@codesourcery.com>
5600
5601 * top.h (simplified_command_loop): Delete declaration.
5602
f4b8c29b
MF
56032011-06-01 Mike Frysinger <vapier@gentoo.org>
5604
5605 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5606 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5607
1706c199
YQ
56082011-06-01 Yao Qi <yao@codesourcery.com>
5609
5610 * objfiles.h (obj_section_addr): Update reference to objfile from
5611 `abfd' to `obfd'.
5612 (obj_section_endaddr): Likewise.
5613
d19cd713 56142011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5615
5616 * MAINTAINERS: Update my email address and affiliation. Also
5617 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5618
e8eb7bc5
KS
56192010-05-31 Keith Seitz <keiths@redhat.com>
5620
5621 PR c++/12750
5622 * linespec.c (get_search_block): New function.
5623 (find_methods): Add FILE_SYMTATB parameter and use it and
5624 get_search_block to pass an appropriate block to
5625 lookup_symbol_in_namespace.
5626 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5627 Check if *ARGPTR starts with a filename first.
5628 If it does, call locate_first_half again to locate the next
5629 "first half" of the linespec.
5630 Pass FILE_SYMTATB to decode_objc and decode_compound.
5631 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5632 (locate_first_half): Stop on the first colon seen.
5633 (decode_compound): Add FILE_SYMTAB parameter.
5634 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5635 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5636 get_search_block with lookup_symbol.
5637 (find_method): Add FILE_SYMTAB parameter and pass it to
5638 find_methods.
5639 (decode_objc): Use get_search_block.
5640
2b1dbab0
KS
56412010-05-31 Keith Seitz <keiths@redhat.com>
5642
5643 PR symtab/12704
5644 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5645 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5646 and CP_ANONYMOUS_NAMESPACE_LEN.
5647 (cp_is_anonymous): Likewise.
5648 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5649 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5650 * dwarf2read.c (namespace_name): Likewise.
5651 (fixup_partial_die): Likewise.
5652 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5653 seen in the input, keep it.
5654
6d549500
PA
56552011-05-30 Pedro Alves <pedro@codesourcery.com>
5656
5657 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5658 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5659 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5660 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5661 * remote.c (_initialize_remote): Register
5662 async_remote_interrupt_twice directly as
5663 sigint_remote_twice_token event.
5664
395bff70
PA
56652011-05-30 Pedro Alves <pedro@codesourcery.com>
5666
5667 * target.h (enum inferior_event_type): Delete INF_ERROR.
5668 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5669
97224164
PA
56702011-05-30 Pedro Alves <pedro@codesourcery.com>
5671
5672 * interps.c (interp_set): Don't cancel continuations.
5673
07e78767
JK
56742011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5675
5676 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5677
fa4cd53f
PA
56782011-05-30 Pedro Alves <pedro@codesourcery.com>
5679
5680 * continuations.h (continuation_ftype): Add `err' parameter.
5681 Document parameters.
5682 (do_all_continuations, do_all_continuations_thread)
5683 (do_all_intermediate_continuations)
5684 (do_all_intermediate_continuations_thread)
5685 (do_all_inferior_continuations): Add `err' parameter.
5686 * continuations.c (do_my_continuations_1, do_my_continuations)
5687 (do_all_inferior_continuations, do_all_continuations_ptid)
5688 (do_all_continuations_thread_callback)
5689 (do_all_continuations_thread, do_all_continuations)
5690 (do_all_intermediate_continuations_thread_callback)
5691 (do_all_intermediate_continuations_thread)
5692 (do_all_intermediate_continuations): Add `err' parameter, and pass
5693 it down all the way to the continuations proper.
5694 * inf-loop.c (inferior_event_handler): If fetching an inferior
5695 event throws an error, don't pop the target, and still call the
5696 continuations, but with `err' set. Adjust all other continuation
5697 calls.
5698 * breakpoint.c (until_break_command_continuation): Add `err'
5699 parameter.
5700 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5701 issue another step if `err' is set.
5702 (struct until_next_continuation_args): New.
5703 (until_next_continuation): Add `err' parameter. Adjust.
5704 (until_next_command): Adjust.
5705 (struct finish_command_continuation_args): Add `thread' field.
5706 (finish_command_continuation): Add `err' parameter. Handle it.
5707 (finish_forward): Adjust.
5708 (attach_command_continuation): Add `err' parameter. Handle it.
5709 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5710 cancel the continuations.
5711 * interps.c (interp_set): Adjust to cancel the continuations.
5712 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5713 continuations rather than discarding.
5714 (free_thread): Don't clear thread inferior resources here.
5715 (delete_thread_1): Do it here instead. And do it before removing
5716 the thread from the threads list. Tag the thread as exited before
5717 clearing thread inferior resources.
5718
c2949be0
JB
57192011-05-30 Joel Brobecker <brobecker@adacore.com>
5720
5721 * infcall.c (call_function_by_hand): Rephrase error message.
5722
619cebe8
PA
57232011-05-27 Pedro Alves <pedro@codesourcery.com>
5724
5725 * defs.h (struct thread_info, struct inferior): Delete forward
5726 declarations.
5727 * breakpoint.h (struct thread_info): New forward declaration.
5728 * observer.sh (struct inferior): New forward declaration.
5729 * python/python-internal.h (struct inferior): New forward
5730 declaration.
5731
be34f849
PA
57322011-05-27 Pedro Alves <pedro@codesourcery.com>
5733
5734 * defs.h (struct continuation, continuation_ftype)
5735 (continuation_free_arg_ftype, add_continuation)
5736 (do_all_continuations, do_all_continuations_thread)
5737 (discard_all_continuations, discard_all_continuations_thread)
5738 (add_intermediate_continuation, do_all_intermediate_continuations)
5739 (do_all_intermediate_continuations_thread)
5740 (discard_all_intermediate_continuations)
5741 (discard_all_intermediate_continuations_thread)
5742 (add_inferior_continuation, do_all_inferior_continuations)
5743 (discard_all_inferior_continuations): Move to ...
5744 * continuations.h: ... this new file.
5745 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5746 infcmd.c, inferior.c, infrun.c, interps.c: Include
5747 continuations.h.
5748
432b4d03
JK
57492011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 Doug Evans <dje@google.com>
5751
5752 Fix PR 10970, PR 12702.
5753 * linux-nat.c (linux_lwp_is_zombie): New function.
5754 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5755 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5756
b0f260d6
PA
57572011-05-27 Pedro Alves <pedro@codesourcery.com>
5758
5759 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5760 typedefs.
5761 (add_continuation, add_intermediate_continuation)
5762 (add_inferior_continuation): Use them.
5763 * continuations.c (struct continuation): Use them.
5764 (make_continuation_ftype): Delete.
5765 (make_continuation, add_inferior_continuation, add_continuation)
5766 (add_intermediate_continuation): Use continuation_ftype and
5767 continuation_free_arg_ftype. Rename parameters to shorter names.
5768
af1e9a32
PA
57692011-05-27 Pedro Alves <pedro@codesourcery.com>
5770
5771 * continuations.c (make_continuation): Make it return void.
5772 (do_my_continuations): Rename to ...
5773 (do_my_continuations_1): ... this. Remove old_chain parameter and
5774 adjust.
5775 (do_my_continuations): New.
5776 (discard_my_continuations): Rename to ...
5777 (discard_my_continuations_1): ... this. Remove old_chain
5778 parameter and adjust.
5779 (discard_my_continuations): New.
5780 (add_inferior_continuation): Simplify.
5781 (do_all_inferior_continuations): Reimplement on top
5782 do_my_continuations.
5783 (discard_all_inferior_continuations): Simplify.
5784 (add_continuation): Simplify.
5785 (do_all_continuations_ptid): Simplify.
5786 (discard_all_continuations_thread_callback): Simplify.
5787 (add_intermediate_continuation): Simplify.
5788 (discard_all_intermediate_continuations_thread_callback):
5789 Simplify.
5790
50c0c017
PA
57912011-05-27 Pedro Alves <pedro@codesourcery.com>
5792
5793 * utils.c (struct continuation, add_continuation)
5794 (add_inferior_continuation)
5795 (do_all_inferior_continuations, discard_all_inferior_continuations)
5796 (restore_thread_cleanup, do_all_continuations_ptid)
5797 (do_all_continuations_thread_callback)
5798 (do_all_continuations_thread, do_all_continuations)
5799 (discard_all_continuations_thread_callback)
5800 (discard_all_continuations_thread, discard_all_continuations)
5801 (add_intermediate_continuation)
5802 (do_all_intermediate_continuations_thread_callback)
5803 (do_all_intermediate_continuations_thread)
5804 (do_all_intermediate_continuations)
5805 (discard_all_intermediate_continuations_thread_callback)
5806 (discard_all_intermediate_continuations_thread)
5807 (discard_all_intermediate_continuations): Move to ...
5808 * continuations.c: ... this new file, and adjust to no longer
5809 implement continuations on top of cleanups.
5810 * Makefile.in (SFILES): Add continuations.c.
5811 (COMMON_OBS): Add continuations.o.
5812
d8b34453
PA
58132011-05-26 Pedro Alves <pedro@codesourcery.com>
5814
5815 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5816 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5817 Internal error on invalid values.
5818 * reverse.c: Don't handle EXEC_ERROR.
5819 * mi/mi-main.c: Don't handle EXEC_ERROR.
5820
32231432
PA
58212011-05-26 Pedro Alves <pedro@codesourcery.com>
5822
5823 * record.c: Include event-loop.h, inf-loop.h.
5824 (record_beneath_to_async): New global.
5825 (tmp_to_async): New global.
5826 (record_async_inferior_event_token): New global.
5827 (record_open_1): Don't error out if async is enabled.
5828 (record_open): Handle to_async. Create an async event source in
5829 the event loop.
5830 (record_close): Delete the async event source.
5831 (record_resumed): New global.
5832 (record_execution_dir): New global.
5833 (record_resume, record_core_resume): Set them. Register the
5834 target on the event loop.
5835 (record_wait): Rename to ...
5836 (record_wait_1): ... this. Add more debug output. Handle
5837 TARGET_WNOHANG, and the target beneath returning
5838 TARGET_WAITKIND_IGNORE.
5839 (record_wait): Reimplement on top of record_wait_1.
5840 (record_async_mask_value): New global.
5841 (record_async, record_async_mask, record_can_async_p)
5842 (record_is_async_p, record_execution_direction): New functions.
5843 (init_record_ops, init_record_core_ops): Install new methods.
5844 * infrun.c (fetch_inferior_event): Temporarily switch the global
5845 execution direction to the direction the target was going.
5846 (execution_direction): Change type to int.
5847 * target.c (default_execution_direction): New function.
5848 (update_current_target): Inherit and de_fault
5849 to_execution_direction.
5850 * target.h (struct target_ops) <to_execution_direction>: New
5851 field.
5852 (target_execution_direction): New macro.
5853 * inferior.h (execution_direction): Change type to int.
5854
949dc678
PA
58552011-05-26 Pedro Alves <pedro@codesourcery.com>
5856
5857 * infcall.c (call_function_by_hand): Don't allow calling functions
5858 in reverse execution mode.
5859
c13bd2b5
PA
58602011-05-26 Pedro Alves <pedro@codesourcery.com>
5861
5862 * infcmd.c (finish_command): Allow async finish in reverse.
5863
6938fd34
YQ
58642011-05-26 Yao Qi <yao@codesourcery.com>
5865
5866 * gdb_thread_db.h: Delete. Move to ...
5867 * common/gdb_thread_db.h: ... here.
5868
9da8c2a0
PA
58692011-05-26 Pedro Alves <pedro@codesourcery.com>
5870
5871 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5872 function's entry point instead of a manually managed momentary
5873 breakpoint, and only ever issue one proceed call.
5874 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5875 doing a reverse-finish, switch to stepi mode, to do another step.
5876 (insert_step_resume_breakpoint_at_sal): Make public.
5877 (normal_stop): No need to save function value return registers if
5878 going reverse.
5879 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5880
2c03e5be
PA
58812011-05-26 Pedro Alves <pedro@codesourcery.com>
5882
5883 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5884 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5885 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5886 at the end.
5887 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5888 step-resume breakpoints.
5889 (print_it_typical): Handle bp_hp_step_resume.
5890 (bpstat_what): Ditto.
5891 (bptype_string): Ditto.
5892 (print_one_breakpoint_location): Ditto.
5893 (allocate_bp_location): Ditto.
5894 (mention): Ditto.
5895 (breakpoint_re_set_one): Ditto.
5896 * infrun.c (handle_inferior_event): Adjust. Split
5897 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5898 BPSTAT_WHAT_HP_STEP_RESUME.
5899 (insert_step_resume_breakpoint_at_sal): Rename to ...
5900 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5901 parameter. Handle it.
5902 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5903 insert_step_resume_breakpoint_at_sal_1.
5904 (insert_step_resume_breakpoint_at_frame): Rename to ...
5905 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5906 set a high-priority step-resume breakpoint.
5907 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5908 (insert_step_resume_breakpoint_at_caller): Ditto.
5909
51be5b68
PA
59102011-05-26 Pedro Alves <pedro@codesourcery.com>
5911
5912 * breakpoint.c (iterate_over_related_breakpoints): New.
5913 (do_map_delete_breakpoint): New.
5914 (delete_command): Pass do_map_delete_breakpoint to
5915 map_breakpoint_numbers.
5916 (do_disable_breakpoint): New.
5917 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5918 breakpoints.
5919 (do_enable_breakpoint): Rename to ...
5920 (enable_breakpoint_disp): ... this.
5921 (enable_breakpoint): Adjust.
5922 (do_enable_breakpoint): New.
5923 (enable_once_breakpoint): Delete.
5924 (do_map_enable_breakpoint): New.
5925 (do_map_enable_once_breakpoint): New.
5926 (enable_once_command, enable_delete_command)
5927 (delete_trace_command): Iterate over the breakpoint's related
5928 breakpoints.
5929
4a1be8d2
PA
59302011-05-26 Pedro Alves <pedro@codesourcery.com>
5931
5932 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5933 for ALPHA_ZERO_REGNUM.
5934 (alpha_supply_int_regs): Explicitly supply zero as the value for
5935 ALPHA_ZERO_REGNUM in the register cache.
5936 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5937
59d70315
YQ
59382011-05-26 Yao Qi <yao@codesourcery.com>
5939
5940 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5941
251d32d9
TG
59422011-05-26 Tristan Gingold <gingold@adacore.com>
5943
5944 * symfile.h (struct dwarf2_section_names): New type.
5945 (struct dwarf2_debug_sections): New type.
5946 (dwarf2_has_info): Add parameter.
5947 * dwarf2read.c (dwarf2_elf_names): New variable.
5948 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5949 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5950 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5951 (dwarf2_has_info): Add names parameter. Pass names
5952 to dwarf2_locate_sections.
5953 (section_is_p): Rewrite using the names parameter.
5954 (dwarf2_locate_sections): Use section names from the names parameter.
5955 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5956 * elfread.c (read_psyms): Ditto.
5957 * machoread.c (macho_symfile_read): Ditto.
5958
652c71b4
AS
59592011-05-25 Andreas Schwab <schwab@redhat.com>
5960
5961 PR gdb/8677
5962 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5963
f17170e5
KS
59642011-05-24 Keith Seitz <keiths@redhat.com>
5965
5966 PR breakpoint/12803
5967 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5968 (decode_compound): Unconditionally call keep_name_info.
5969
cdac0397
PA
59702011-05-24 Pedro Alves <pedro@codesourcery.com>
5971
5972 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5973 scope, clear its command list.
5974 (map_breakpoint_numbers): Don't walk the related breakpoints list
5975 of each breakpoint.
5976
91d4fe3f
TT
59772011-05-24 Tom Tromey <tromey@redhat.com>
5978
5979 * MAINTAINERS: Move Jim Blandy to past maintainers.
5980
3017a003
TG
59812011-05-24 Tristan Gingold <gingold@adacore.com>
5982
5983 * symfile.h (enum dwarf2_section_enum): New type.
5984 (dwarf2_get_section_info): New prototype.
5985 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5986 section_name by sect. Use a switch to select the info.
5987 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5988 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5989
c91c8c16
PA
59902011-05-24 Pedro Alves <pedro@codesourcery.com>
5991
5992 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5993 shared library event breakpoint if there's no execution.
5994
77bc418a
TJB
59952011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5996
5997 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5998 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5999
c50491a7
TT
60002011-05-23 Tom Tromey <tromey@redhat.com>
6001
6002 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6003 NULL.
6004
6d64e6d4
DE
60052011-05-23 Doug Evans <dje@google.com>
6006
6007 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6008 entry for RuntimeError to doc string.
6009
2067c8d4
JG
60102011-05-23 Jerome Guitton <guitton@adacore.com>
6011
6012 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6013 sequence for probing loops.
6014
b136cd05
PA
60152011-05-23 Pedro Alves <pedro@codesourcery.com>
6016
6017 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6018 comment.
6019
22e74ef9
MK
60202011-05-21 Mark Kettenis <kettenis@gnu.org>
6021
6022 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6023 zero as the value for %g0 in the register cache.
6024 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6025 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6026
842951eb
PA
60272011-05-20 Pedro Alves <pedro@codesourcery.com>
6028
6029 * infrun.c (proceed): Set previous_inferior_ptid here.
6030 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6031 inferior_ptid, not null_ptid.
6032 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6033 (fetch_inferior_event): Nor here.
6034
46cf51e6
PA
60352011-05-20 Pedro Alves <pedro@codesourcery.com>
6036
6037 * inf-loop.c (inferior_event_handler): Only output a message if
6038 verbose.
6039
29ef4c46
LM
60402011-05-20 Luis Machado <lgustavo@codesourcery.com>
6041
6042 * MAINTAINERS: Update my e-mail address.
6043
f148b27e
PA
60442011-05-20 Pedro Alves <pedro@codesourcery.com>
6045
6046 * infrun.c (proceed): Switch the inferior event loop to
6047 INF_EXEC_COMPLETE if the target refused to resume from a
6048 vfork/fork.
6049
09cee04b
PA
60502011-05-20 Pedro Alves <pedro@codesourcery.com>
6051
6052 * infcmd.c: Include "inf-loop.h".
6053 (step_once): When stepping into an inline subroutine, pretend the
6054 target has run. If the target can async, switch the inferior
6055 event loop to INF_EXEC_COMPLETE.
6056 * inferior.h (user_visible_resume_ptid): Declare.
6057 * infrun.c (user_visible_resume_ptid): New function, factored out
6058 from `resume'.
6059 (resume): Use it.
6060 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6061 that the current thread is running. Merge async and sync
6062 branches.
6063
751b8ce1
PA
60642011-05-20 Pedro Alves <pedro@codesourcery.com>
6065
6066 * infcmd.c (step_1): Simplify synchronous case.
6067
e93a69ed
PA
60682011-05-20 Pedro Alves <pedro@codesourcery.com>
6069
6070 * tracepoint.c: Include exceptions.h.
6071 (TFILE_PID): Move higher in file.
6072 (tfile_open): Delay pushing the tfile target until we're assured
6073 the tfile header is present in the file. Wrap reading the initial
6074 newline-terminated lines in TRY_CATCH. Pop the target if the
6075 initial setup failed. Add the tfile's thread immediately
6076 aftwards, before any non-essential setup. Don't skip
6077 post_create_inferior if there are no traceframes present in the
6078 file.
6079 (tfile_close): Remove redundant check for null before xfree call.
6080 (tfile_thread_alive): New function.
6081 (init_tfile_ops): Register it as to_thread_alive callback.
6082
6823e2b1
PA
60832011-05-20 Pedro Alves <pedro@codesourcery.com>
6084
6085 * tracepoint.c (tfile_open): Delete #if 0'd code.
6086
b3c8eb43
JK
60872011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6088
6089 Fix -readnow for -gdwarf-4 unused type units.
6090 * dwarf2read.c (struct signatured_type): Remove the field offset.
6091 (create_signatured_type_table_from_index): Remove its initialization.
6092 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6093 instead. Add a complaint call.
6094 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6095 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6096 (lookup_signatured_type_at_offset, read_signatured_type)
6097 (write_one_signatured_type): Update the field for per_cu.
6098
310afc76
TT
60992011-05-19 Tom Tromey <tromey@redhat.com>
6100
6101 * python/py-inferior.c (python_inferior_exit): Use
6102 target_gdbarch.
6103 (python_on_resume): Likewise.
6104
cf6c5ffb
TT
61052011-05-19 Matt Rice <ratmice@gmail.com>
6106
6107 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6108
fb80a3c5
HZ
61092011-05-19 Hui Zhu <teawater@gmail.com>
6110
6111 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6112
3672b1be
HZ
61132011-05-19 Hui Zhu <teawater@gmail.com>
6114
6115 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6116
ff355380
TT
61172011-05-18 Tom Tromey <tromey@redhat.com>
6118
6119 * dwarf2read.c (dwarf2_add_field): Constify.
6120 * value.c (value_static_field): Constify.
6121 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6122 Now const.
6123 * ax-gdb.c (gen_static_field): Constify
6124
ed731959
JK
61252011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6126
6127 * linux-nat.c (kill_callback): Use SIGKILL first.
6128
967cff16
JB
61292011-05-18 Joel Brobecker <brobecker@adacore.com>
6130
6131 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6132
1d06ead6
TT
61332011-05-18 Tom Tromey <tromey@redhat.com>
6134
6135 * value.c (value_fn_field): Constify.
6136 * symtab.c (gdb_mangle_name): Constify.
6137 * stabsread.c (update_method_name_from_physname): Make 'physname'
6138 argument const.
6139 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6140 const. Use explicit fputc_filtered loop.
6141 (pascal_type_print_base): Constify.
6142 * p-lang.h (pascal_type_print_method_args): Update.
6143 * linespec.c (add_matching_methods): Constify.
6144 (add_constructors): Likewise.
6145 * jv-typeprint.c (java_type_print_base): Constify.
6146 * gdbtypes.h (struct cplus_struct_type)
6147 <fn_fieldlist.fn_field.physname>: Now const.
6148 * dwarf2read.c (compute_delayed_physnames): Constify.
6149 (dwarf2_add_member_fn): Likewise.
6150 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6151
0d9a9a5f
PA
61522011-05-18 Pedro Alves <pedro@codesourcery.com>
6153
6154 * infrun.c (resume): Mention which is the current thread, and its
6155 current PC in debug output.
6156 (prepare_to_proceed): Mention the thread switching in debug
6157 output.
6158
05386e9e
TT
61592011-05-18 Tom Tromey <tromey@redhat.com>
6160
6161 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6162 path check. Use xmalloc and cleanups.
6163 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6164
ee86786c
TT
61652011-05-17 Tom Tromey <tromey@redhat.com>
6166
6167 * cp-valprint.c (cp_print_value_fields): Catch errors from
6168 value_static_field.
6169
9ff3b74f
TT
61702011-05-17 Tom Tromey <tromey@redhat.com>
6171
6172 * dwarf2read.c (dwarf2_get_die_type): Call
6173 get_die_type_at_offset.
6174 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6175 get_base_type function.
6176
cd3da28e
PA
61772011-05-17 Tomas Martinec <fyzmat@gmail.com>
6178
6179 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6180 trap_expected.
6181
fd20d931
DE
61822011-05-16 Doug Evans <dje@google.com>
6183
6184 * python/py-auto-load.c (source_section_scripts): Mention objfile
6185 name in warning.
6186
75fc9810
DE
61872011-05-15 Doug Evans <dje@google.com>
6188
290351b8
DE
6189 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6190 (try_thread_db_load_from_pdir): Call it. If unable to find
6191 libthread_db in directory of libpthread, see if we're looking at
6192 the separate-debug-info copy.
6193
75fc9810
DE
6194 * python/py-autoload.c (print_script): Print "Missing" instead of
6195 "No" for missing scripts.
6196 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6197
9f7bc587
DE
61982011-05-13 Doug Evans <dje@google.com>
6199
6200 * ui-file.c (stdio_file_write_async_safe): Add comment.
6201
093cee7d
HZ
62022011-05-14 Hui Zhu <teawater@gmail.com>
6203
6204 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6205
dbaefcf7
DE
62062011-05-13 Doug Evans <dje@google.com>
6207
98a5dd13
DE
6208 Support $pdir and $sdir in libthread-db-search-path.
6209 * NEWS: Mention $sdir,$pdir.
6210 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6211 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6212 (try_thread_db_load_from_sdir): New function.
6213 (try_thread_db_load_from_dir): New function.
6214 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6215 system directories if search of libthread-db-search-path fails,
6216 that is now done via $sdir.
6217 (has_libpthread): New function.
6218 (thread_db_load): Remove search for libthread_db in directory of
6219 libpthread, that is now done via $pdir.
6220
dbaefcf7
DE
6221 * NEWS: Mention "info auto-load-scripts".
6222 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6223 script_not_found_warning_printed.
6224 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6225 all callers updated. Initialize script_not_found_warning_printed.
6226 (get_auto_load_pspace_data_for_loading): New function.
6227 (maybe_add_script): New function.
6228 (source_section_scripts): Simplify. Only print one warning regardless
6229 of the number of auto-load scripts not found.
6230 (clear_section_scripts): Clear script_not_found_warning_printed.
6231 (auto_load_objfile_script): Record script in hash table.
6232 (count_matching_scripts): New function.
6233 (maybe_print_script): Renamed from maybe_print_section_script, all
6234 callers updated. Rewrite to use ui_out_*.
6235 (info_auto_load_scripts): Renamed from
6236 maintenance_print_section_scripts, all callers updated.
6237 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6238 renamed as "info auto-load-scripts".
6239
9930639c
TT
62402011-05-13 Tom Tromey <tromey@redhat.com>
6241
6242 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6243 (read_sleb128): Likewise.
6244
06826322
TT
62452011-05-13 Tom Tromey <tromey@redhat.com>
6246
6247 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6248 offset display.
6249
01124a23
DE
62502011-05-13 Doug Evans <dje@google.com>
6251
6252 * linux-nat.c (debug_linux_nat_async): Delete.
6253 Replace all references to use debug_linux_nat instead.
6254 (show_debug_linux_nat_async): Delete.
6255 (sigchld_handler): Call ui_file_write_async_safe instead of
6256 fprintf_unfiltered.
6257 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6258 * ui-file.c (struct ui_file): New member to_write_async_safe.
6259 (null_file_write_async_safe): New function.
6260 (ui_file_write_async_safe): New function.
6261 (set_ui_file_write_async_safe): New function.
6262 (ui_file_new): Initialize to_write_async_safe.
6263 (stdio_file_write_async_safe): New function.
6264 (struct stdio_file): New member fd.
6265 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6266 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6267 fileno.
01124a23
DE
6268 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6269 (set_ui_file_write_async_safe): Declare.
6270 (ui_file_write_async_safe): Declare.
6271
72fc29ff
TT
62722011-05-13 Tom Tromey <tromey@redhat.com>
6273
6274 * utils.c (do_value_free): New function.
6275 (make_cleanup_value_free): Likewise.
6276 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6277 freeing correctly.
6278 (dwarf2_loc_desc_needs_frame): Call
6279 make_cleanup_value_free_to_mark.
6280 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6281 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6282 value_free_to_mark.
6283 (new_dwarf_expr_context): Don't call value_mark.
6284 * dwarf2-frame.c (execute_stack_op): Call
6285 make_cleanup_value_free_to_mark.
6286 * defs.h (make_cleanup_value_free): Declare.
6287
028d0ed5
TJB
62882011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6289
6290 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6291 prepare_execute_command.
6292 * top.c (prepare_execute_command): Return cleanup.
6293 (execute_command): Use cleanup from prepare_execute_command.
6294 * top.h (prepare_execute_command): Change prototype to return
6295 cleanup.
6296 * defs.h (struct value): Add opaque declaration.
6297 (make_cleanup_value_free_to_mark): Add prototype.
6298 * utils.c (do_value_free_to_mark): New function.
6299 (make_cleanup_value_free_to_mark): Likewise.
6300
b087e0ed
TT
63012011-05-12 Tom Tromey <tromey@redhat.com>
6302
6303 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6304 cast left-hand-side to unsigned.
6305
8a9b8146
TT
63062011-05-12 Tom Tromey <tromey@redhat.com>
6307
6308 PR gdb/12617:
6309 * value.h (value_from_contents): Declare.
6310 * value.c (value_from_contents): New function.
6311 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6312 (dwarf2_get_die_type): New function.
6313 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6314 (allocate_piece_closure): Acquire reference to values.
6315 (read_pieced_value): Update for value-based expressions.
6316 (write_pieced_value): Likewise.
6317 (free_pieced_value_closure): Call value_free as needed.
6318 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6319 Update for value-based expressions.
6320 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6321 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6322 <get_base_type>: New field.
6323 (struct dwarf_expr_piece) <v.value>: Change type.
6324 <v.regno>: New field.
6325 (struct dwarf_expr_context) <mark>: New field.
6326 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6327 (dwarf_expr_pop, dwarf_expr_push): Remove.
6328 (dwarf_expr_push_address): Declare.
6329 * dwarf2expr.c (dwarf_arch_cookie): New global.
6330 (struct dwarf_gdbarch_types): New.
6331 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6332 functions.
6333 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6334 static.
6335 (dwarf_expr_push_address): New function.
6336 (dwarf_expr_pop): Now static.
6337 (dwarf_expr_fetch): Change return type.
6338 (dwarf_require_integral): New function.
6339 (dwarf_expr_fetch): Simplify.
6340 (add_piece): Update.
6341 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6342 functions.
6343 (execute_stack_op) <sign_ext>: Remove.
6344 Use values for DWARF stack.
6345 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6346 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6347 New cases.
6348 (_initialize_dwarf2expr): New function.
6349 (add_piece): Update.
6350 (new_dwarf_expr_context): Set new field.
6351 (free_dwarf_expr_context): Call value_free_to_mark.
6352 * dwarf2-frame.c (no_base_type): New function.
6353 (execute_stack_op): Set get_base_type field. Update.
6354
e8d28ef4
TT
63552011-05-12 Tom Tromey <tromey@redhat.com>
6356
6357 * dwarf2read.c (read_common_block): Fix formatting.
6358
d248b706
KY
63592011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6360
6361 * breakpoint.c (disable_breakpoint): Disable all locations
6362 associated with a tracepoint on target if a trace experiment is
6363 running.
6364 (disable_command): Disable a specific tracepoint location on target if
6365 a trace experiment is running.
6366 (do_enable_breakpoint): Enable all locations associated with a
6367 tracepoint on target if a trace experiment is running.
6368 (enable_command) Enable a specific tracepoint location on target if a
6369 trace experiment is running.
6370 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6371 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6372 to_disable_tracepoint.
6373 * target.h: Add declaration of struct bp_location.
6374 (struct target_ops): Add new functions
6375 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6376 to_disable_tracepoint to target operations.
6377 (target_supports_enable_disable_tracepoint): New macro.
6378 (target_enable_tracepoint): New macro.
6379 (target_disable_tracepoint): New macro.
6380 * remote.c (struct remote_state): Add new field.
6381 (remote_enable_disable_tracepoint_feature): New.
6382 (remote_protocol_features): Add new entry.
6383 (remote_supports_enable_disable_tracepoint): New.
6384 (remote_enable_tracepoint): New.
6385 (remote_disable_tracepoint): New.
6386 (init_remote_ops): Add remote_enable_tracepoint,
6387 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6388 to remote operations.
6389 * tracepoint.c (start_tracing): Allow tracing to start without any
6390 tracepoints enabled with just a warning if they can be re-enabled
6391 later.
6392 * NEWS: Add news item for the new behaviour of the enable and disable
6393 GDB commands when applied to tracepoints.
6394 Add news items for the new remote packets QTEnable and QTDisable.
6395
cc88a640
JK
63962011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 * config.in: Regenerate.
6399 * configure: Regenerate.
6400 * configure.ac <--with-system-readline> (for readline_echoing_p):
6401 Remove the test.
6402 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6403 (tui_old_rl_echoing_p): ... here.
6404 (tui_setup_io): Rename extern declaration readline_echoing_p to
6405 _rl_echoing_p. Adjust assignments for the both renames.
6406
1f84b619
TJB
64072011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6408
6409 * symtab.c (lookup_symtab): Run cleanup before returning.
6410
74ac6d43
TT
64112011-05-11 Tom Tromey <tromey@redhat.com>
6412
6413 * dwarf2read.c (handle_data_member_location): New function.
6414 (dwarf2_add_field): Use it.
6415 (read_common_block): Likewise.
6416
5488dafb
JK
64172011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6418
6419 Make addrs->SECTINDEX always defined.
6420 * symfile.c (relative_addr_info_to_section_offsets): Check for
6421 SECTINDEX -1, not for zero ADDR.
6422 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6423 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6424 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6425 on its validity.
6426
84e578fb
DE
64272011-05-10 Doug Evans <dje@google.com>
6428
2471d008
DE
6429 * linux-thread-db.c: Whitespace cleanup.
6430 (try_thread_db_load_1): Fix comment.
6431
84e578fb
DE
6432 * linux-thread-db.c (set_libthread_db_search_path): New function.
6433 (_initialize_thread_db): Add setter for libthread-db-search-path.
6434
673c2bbe
DE
64352011-05-09 Doug Evans <dje@google.com>
6436
478aac75
DE
6437 * NEWS: Mention --with-iconv-bin.
6438 * configure.ac: New option --with-iconv-bin.
6439 * configure: Regenerate.
6440 * config.in: Regenerate.
6441 * defs.h (relocate_gdb_directory): Declare.
6442 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6443 removed progname parameter, and exported. All callers updated.
6444 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6445
673c2bbe
DE
6446 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6447 adding missing call to restore_child_signals_mask.
6448
e4c8541f
PA
64492011-05-09 Pedro Alves <pedro@codesourcery.com>
6450
6451 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6452 parameter.
6453 * infrun.c (proceed, start_remote): Adjust.
6454 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6455 and adjust to not handle it.
6456 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6457 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6458 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6459 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6460 * windows-nat.c (do_initial_windows_stuff): Adjust.
6461 * infcmd.c (attach_command): Adjust.
6462 (notice_new_inferior): Adjust.
6463
a536c6d7
UW
64642011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6465
6466 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6467 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6468 * spu-tdep.c (op_selb): Use correct value.
6469
7845b013
UW
64702011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6471
6472 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6473 "parent" parameter to symbol_file_add_from_bfd call.
6474
9c06b0b4
TJB
64752011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6476 Thiago Jung Bauermann <bauerman@br.ibm.com>
6477
6478 Implement support for PowerPC BookE masked watchpoints.
6479 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6480 section.
6481 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6482 method. Initialize to NULL in all existing breakpoint_ops instances.
6483 (struct breakpoint) <hw_wp_mask>: New field.
6484 * breakpoint.c (is_masked_watchpoint): Add prototype.
6485 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6486 breakpoint's breakpoint_ops.works_in_software_mode if available.
6487 (watchpoints_triggered): Handle the case of a hardware masked
6488 watchpoint trigger.
6489 (watchpoint_check): Likewise.
6490 (works_in_software_mode_watchpoint): New function.
6491 (insert_masked_watchpoint, remove_masked_watchpoint)
6492 (resources_needed_masked_watchpoint)
6493 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6494 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6495 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6496 functions.
6497 (masked_watchpoint_breakpoint_ops): New structure.
6498 (watch_command_1): Check for the existence of the `mask' parameter.
6499 Set b->ops according to the type of hardware watchpoint being created.
6500 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6501 (ppc_linux_remove_mask_watchpoint)
6502 (ppc_linux_masked_watch_num_registers): New functions.
6503 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6504 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6505 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6506 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6507 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6508 (target_masked_watch_num_registers): New functions.
6509 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6510 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6511 methods.
6512 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6513 (target_masked_watch_num_registers): Add prototypes.
6514
8be455d7
JK
65152011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6516
6517 PR 12573
6518 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6519 (producer_is_gcc_ge_4_0): New function.
6520 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6521 symtab->language code.
6522 (var_decode_location): Set cu->has_loclist.
6523 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6524 skip. Intialize force_skip from locations_valid. Move the prologue
6525 skipping code into two passes.
6526 * symtab.h (struct symtab): Make the primary field a bitfield. New
6527 field locations_valid.
6528
d8228535
JK
65292011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6530
6531 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6532 (classify_inner_name): Call cp_lookup_nested_type with
6533 yylval.tsym.type.
6534 * cp-namespace.c (cp_lookup_nested_type): New variable
6535 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6536 type_name_no_tag_or_error with saved_parent_type.
6537 * dwarf2read.c (load_partial_dies): Read in any children of
6538 DW_TAG_typedef with complaint in such case.
6539 * gdbtypes.c (type_name_no_tag_or_error): New function.
6540 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6541 * valops.c (destructor_name_p): New comment for parameter type. Remove
6542 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6543 * value.h (destructor_name_p): Remove type const.
6544
1976171a
JK
65452011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6546
6547 * symtab.c (compare_symbol_name): New function.
6548 (completion_list_add_name, expand_partial_symbol_name): Call it,
6549 remove the variable ncmp.
6550 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6551 gdb_assert it.
6552
a9634178
TJB
65532011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6554
6555 Demote to sw watchpoint only in update_watchpoint.
6556 * breakpoint.c (update_watchpoint): Change between software and
6557 hardware watchpoint for all kinds of watchpoints, not just
6558 read/write ones. Determine b->exact value here instead of
6559 in watch_command_1. Error out if there are not enough resources
6560 for a read or access hardware watchpoint.
6561 (watch_command_1): Remove logic of checking whether there are
6562 enough resources available, since update_watchpoint will do that
6563 work now. Don't set b->exact here. Catch exceptions thrown by
6564 update_watchpoint and delete the watchpoint.
6565 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6566 Use target_exact_watchpoints instead.
6567 (delete_breakpoint): Notify observers only if deleted watchpoint
6568 has a breakpoint number assigned to it.
6569
4c67c798
JJ
65702011-05-05 Janis Johnson <janisjo@codesourcery.com>
6571
6572 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6573
a3fcb948
JG
65742011-05-05 Jerome Guitton <guitton@adacore.com>
6575
6576 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6577 New functions.
6578 (i386_stack_tramp_frame_unwind): New static global.
6579 (i386_match_pattern): New function, extracted from i386_match_insn.
6580 (i386_match_insn): Use i386_match_pattern.
6581 (i386_match_insn_block): New function.
6582 (i386_tramp_chain_in_reg_insns)
6583 (i386_tramp_chain_on_stack_insns): New static variables.
6584 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6585 of unwinders.
6586
4d393d60
JM
65872011-05-04 Joseph Myers <joseph@codesourcery.com>
6588
6589 * configure.host (xscale*): Don't handle target.
6590 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6591 handle targets.
6592
f70bd40b
YQ
65932011-05-04 Yao Qi <yao@codesourcery.com>
6594
6595 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6596
dd3295ee
JB
65972011-05-03 Joel Brobecker <brobecker@adacore.com>
6598
6599 Revert:
6600 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6601 | * elfread.c (elf_symtab_read): Stop memory leak.
6602
90375a0e
PM
66032011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6604
6605 * nto-tdep.c (nto_target): Replace deprecated call to
6606 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6607
d07205c2
JK
66082011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6609
6610 Fix false GCC warning.
6611 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6612
1e718ff1
TJB
66132011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6614
6615 * breakpoint.c (update_watchpoint): Move code to change
6616 the enable state of breakpoint from here ...
6617 (do_enable_breakpoint): ... to here.
6618
35bef4fd
TT
66192011-04-26 Andrew Gontarek <andrewg@cray.com>
6620
78290264
PP
6621 * valprint.c (val_print_array_elements): Fixed poor performance
6622 of printing very large arrays with repeat_count_threshold set
6623 to unlimited. New comment.
35bef4fd 6624
38a714bb
TT
66252011-04-29 Tom Tromey <tromey@redhat.com>
6626
6627 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6628 (mi_parse): Likewise.
6629 * breakpoint.c (break_range_command): Use sizeof char*, not
6630 char**.
6631 (create_breakpoint): Likewise.
6632 (parse_breakpoint_sals): Likewise.
6633
eb73ad13
PA
66342011-04-29 Pedro Alves <pedro@codesourcery.com>
6635
6636 * linux-nat.c (linux_child_remove_fork_catchpoint)
6637 (linux_child_remove_vfork_catchpoint)
6638 (linux_child_remove_exec_catchpoint): New functions.
6639 (linux_target_install_ops): Install them.
6640
d65aec65
PM
66412011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6642
6643 PR mi/12531
6644
6645 * varobj.c (install_default_visualizer): Do not install a
6646 visualizer if the varobj is CPLUS_FAKE_CHILD.
6647 (construct_visualizer): Likewise.
6648
165195f4
JK
66492011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6652 case insensitive comparison.
6653
30852783
UW
66542011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6655
6656 * infrun.c (proceed): Revert previous change.
6657 (resume): Instead, handle the case of signal delivery while stepping
6658 off a breakpoint location here, and only if software single-stepping
6659 is used. Handle nested signals.
6660
7ff120b4
YQ
66612011-04-28 Yao Qi <yao@codesourcery.com>
6662
6663 * arm-tdep.c (copy_unmodified): Rename to ...
6664 (arm_copy_unmodified): .. this. New.
6665 (copy_preload): Move common part to ...
6666 (install_preload): .. this. New.
6667 (arm_copy_preload): New.
6668 (copy_preload_reg): Move common part to ...
6669 (install_preload_reg): ... this. New.
6670 (arm_copy_preload_reg): New.
6671 (copy_b_bl_blx): Move common part to ...
6672 (install_b_bl_blx): .. this. New.
6673 (arm_copy_b_bl_blx): New.
6674 (copy_bx_blx_reg): Move common part to ...
6675 (install_bx_blx_reg): ... this. New.
6676 (arm_copy_bx_blx_reg): New.
6677 (copy_alu_reg): Move common part to ...
6678 (install_alu_reg): ... this. New.
6679 (arm_copy_alu_reg): New.
6680 (copy_alu_shifted_reg): Move common part to ...
6681 (install_alu_shifted_reg): ... this. New.
6682 (copy_ldr_str_ldrb_strb): Move common part to ...
6683 (install_ldr_str_ldrb_strb): ... this. New.
6684 (arm_copy_ldr_str_ldrb_strb): New.
6685 (copy_copro_load_store): Move some common part to ...
6686 (install_copy_copro_load_store): ... this. New.
6687 (arm_copy_copro_load_store): New.
6688 (copy_svc): Delete.
6689 (arm_copy_svc): Renamed from copy_svc.
6690 (copy_undef): Delete.
6691 (arm_copy_undef): Renamed from copy_undef.
6692 (decode_ext_reg_ld_st): Delete.
6693 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6694 (decode_svc_copro): Delete.
6695 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6696 (copy_copro_load_store, copy_alu_imm): update callers.
6697 (copy_extra_ld_st, copy_block_xfer): Likewise.
6698 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6699 (decode_miscellaneous, decode_dp_misc): Likewise.
6700 (decode_ld_st_word_ubyte, decode_media): Likewise.
6701 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6702 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6703 (decode_unconditional, decode_miscellaneous): Likewise.
6704 (decode_media, decode_b_bl_ldmstm): Likewise.
6705 (arm_process_displaced_insn): Likewise..
6706 (decode_misc_memhint_neon): Delete.
6707 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6708 (decode_miscellaneous): Delete.
6709 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6710 (decode_dp_misc): Delete.
6711 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6712 (decode_ld_st_word_ubyte): Delete.
6713 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6714 (decode_media): Delete.
6715 (arm_decode_media): Renamed from decode_media.
6716 (decode_b_bl_ldmstm): Delete.
6717 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6718 (decode_ext_reg_ld_st): Delete.
6719 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6720 (decode_unconditional): Delete.
6721 (arm_decode_unconditional): Renamed from decode_unconditional.
6722
559a7a62
JK
67232011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 Case insensitive lookups implementation.
6726 * dwarf2read.c: Include ctype.h.
6727 (struct mapped_index): New field version.
6728 (mapped_index_string_hash): New parameter index_version. New comment
6729 for it. Call tolower appropriately.
6730 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6731 Choose the right index version for mapped_index_string_hash.
6732 (dwarf2_read_index): Support also the index version 5. Initialize the
6733 new struct mapped_index field version.
6734 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6735 (find_slot): Explain the version needs. Pass INT_MAX for the new
6736 parameter.
6737 (write_psymtabs_to_index): Produce version 5.
6738 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6739 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6740 * psymtab.c (lookup_partial_symbol): Find the
6741 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6742 entries.
6743 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6744 NAME lowercasing.
6745 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6746 (completion_list_add_name): New variable ncmp, initialize it, use it.
6747 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6748 * utils.c (strcmp_iw): Support case_sensitive_off.
6749 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6750 New function comment part. New variables saved_string1,
6751 saved_string2 and case_pass. Add a proper second pass.
6752
681bf369
JK
67532011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6754
6755 Replace re_comp/re_exec by regcomp/regexec.
6756 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6757 (search_symbols_name_matches): Use them, use regexec.
6758 (search_symbols): New variable retval_chain, adjust the use of
6759 old_chain against it. Replace re_comp by regcomp. Use the new struct
6760 search_symbols_data fields, use regexec instead of re_exec.
6761
b11b1f88
JK
67622011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 Format the code for the next patch.
6765 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6766 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6767 New variables c1 and c2.
6768
2484c66b
UW
67692011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6770
6771 * infrun.c (proceed): Do not single-step into signal delivery
6772 when stepping off a breakpoint location.
6773 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6774 (insert_step_resume_breakpoint_at_caller): Likewise.
6775 (insert_step_resume_breakpoint_at_sal): Likewise.
6776 (insert_longjmp_resume_breakpoint): Likewise.
6777
47423772
YQ
67782011-04-27 Yao Qi <yao@codesourcery.com>
6779
6780 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6781
13bdd2e7
JB
67822011-04-27 Joel Brobecker <brobecker@adacore.com>
6783
6784 * procfs.c (procfs_pass_signals): Fix advance declaration.
6785
2455069d
UW
67862011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6787
6788 * target.h (struct target_ops): Remove to_notice_signals;
6789 add to_pass_signals.
6790 (target_notice_signals): Remove.
6791 (target_pass_signals): Add prototype.
6792 * target.c (update_current_target): Remove to_notice_signals;
6793 mention to_pass_signals.
6794 (target_pass_signals): New function.
6795 (debug_to_notice_signals): Remove.
6796 (setup_target_debug): Do not install debug_to_notice_signals.
6797
6798 * infrun.c (signal_pass): New global.
6799 (resume): Call target_pass_signals.
6800 (handle_inferior_event): Report all signals while stepping over
6801 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6802 are re-inserted when stepping over a signal handler.
6803 (signal_cache_update): New function.
6804 (signal_stop_update): Call it.
6805 (signal_print_update): Likewise.
6806 (signal_pass_update): Likewise.
6807 (handle_command): Call signal_cache_update and target_pass_signals
6808 instead of target_notice_signals.
6809 (_initialize_infrun): Initialize signal_pass.
6810
6811 * linux-nat.c (pass_mask): New global.
6812 (linux_nat_pass_signals): New function.
6813 (linux_nat_create_inferior): Report all signals initially.
6814 (linux_nat_attach): Likewise.
6815 (linux_nat_resume): Use pass_mask to decide whether to directly
6816 handle an inferior signal.
6817 (linux_nat_wait_1): Likewise.
6818 (linux_nat_add_target): Install to_pass_signals callback.
6819
6820 * nto-procfs.c (notice_signals): Remove.
6821 (procfs_resume): Do not call notice_signals.
6822 (procfs_notice_signals): Remove.
6823 (procfs_pass_signals): New function.
6824 (init_procfs_ops): Install to_pass_signals callback instead of
6825 to_notice_signals callback.
6826 (_initialize_procfs): Report all signals initially.
6827
6828 * procfs.c (procfs_notice_signals): Remove.
6829 (procfs_pass_signals): New function.
6830 (procfs_target): Install to_pass_signals callback instead of
6831 to_notice_signals callback.
6832 (register_gdb_signals): Remove.
6833 (procfs_debug_inferior): Report all signals initially.
6834 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6835
6836 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6837 parameters; use them instead of calling signal_..._state routines.
6838 (remote_notice_signals): Remove.
6839 (remote_start_remote): Report all signals initially.
6840 (remote_resume): Do not call remote_pass_signals.
6841 (_initialize_remote): Install to_pass_signals callback instead of
6842 to_notice_signals callback.
6843
46c6471b
PA
68442011-04-27 Pedro Alves <pedro@codesourcery.com>
6845
6846 * breakpoint.c (user_settable_breakpoint): Delete.
6847 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6848 (delete_command): Check user_breakpoint_p instead of looking at
6849 the breakpoint's type.
6850 (disable_command): Ditto.
6851 (enable_command): Ditto.
6852 (delete_trace_command): Use user_breakpoint_p instead of looking
6853 at the breakpoint number directly. When checking if there are
6854 user visible tracepoints, in order to know whether to ask the user
6855 for confirmation, check whether the breakpoint is actually a
6856 tracepoint.
6857
f6d90398
VP
68582011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6859
6860 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6861 compilation.
6862
8d3788bd
VP
68632011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6864
6865 MI breakpoint notifications.
6866
f33edef8
PP
6867 * annotate.c (breakpoint_changed): Adjust parameter type.
6868 * breakpoint.c (set_breakpoint_condition): Adjust to change
6869 in breakpoint_modified type.
6870 (breakpoint_set_commands): Likewise.
6871 (do_map_commands_command): Likewise.
6872 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6873 changed after bumping hit count.
6874 (bpstat_stop_status): Likewise.
6875 (print_one_breakpoint_location): Don't wrap in tuple here.
6876 (print_one_breakpoint): Always print individual locations.
6877 For locations, use unnamed tuple.
6878 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6879 has changed.
6880 (create_catchpoint, create_syscall_event_catchpoint): Call
6881 breakpoint_created obsever.
6882 (mention): Don't call breakpoint_created observer.
6883 (create_breakpoint_sal): Call breakpoint_created observer.
6884 (create_breakpoint, watch_command_1): Likewise.
6885 (create_ada_exception_breakpoint): Likewise.
6886 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6887 (locations_are_equal): New.
6888 (update_breakpoint_locations): If locations were changed, notify.
6889 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6890 Call breakpoint_modified observer.
6891
6892 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6893 (mi_cmd_break_insert): Don't set observers for modify and delete.
6894 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6895 (mi_breakpoint_created, mi_breakpoint_deleted)
6896 (mi_breakpoint_modified): New.
6897 (mi_interpreter_init): Hook the above.
6898 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6899 while -break-* commands are executing.
6900 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6901 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6902 (mi_redirect): New.
6903 (mi_ui_out_impl): Hook in mi_redirect.
6904 (mi_field_skip): True to the name, skip the field, don't output
6905 a field with an empty value.
6906
6907 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6908 (gdbpy_breakpoint_deleted): Adjust.
6909 * tui/tui-hooks.c (tui_event_create_breakpoint)
6910 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6911
a8f42b45
UW
69122011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6913
6914 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6915 (procfs_remove_hw_watchpoint): Likewise.
6916
57e12211
TT
69172011-04-26 Michael Walle <michael@walle.cc>
6918
6919 * remote.c (remote_start_remote): Ack packet after sending the
6920 interrupt sequence.
6921
af96c192
YQ
69222011-04-26 Yao Qi <yao@codesourcery.com>
6923
f33edef8
PP
6924 * linux-nat.c: Move common macros to ...
6925 Include linux-ptrace.h.
6926 * common/linux-ptrace.h: ... here. New.
af96c192 6927
3e03848b
JK
69282011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6929
6930 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6931 !objfile_has_partial_symbols. New comment.
6932 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6933 SYM_READ_PSYMBOLS is not present. Extend the comment.
6934 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6935
1ae0d051
JK
69362011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 * defs.h (ENUM_BITFIELD): Remove.
6939
03f2bd59
JK
69402011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6941 Eli Zaretskii <eliz@gnu.org>
6942
6943 * NEWS: Document the new gdbserver --once option.
6944
4161fbb0
JZ
69452011-04-21 Jie Zhang <jzhang918@gmail.com>
6946
6947 * MAINTAINERS: Update my email address.
6948
bcb28afc
PM
69492011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6950
6951 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6952 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6953 function call if __STDC_ISO_10646__ macro is defined.
6954 (intermediate_encoding): New prototype.
6955 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6956 to generate compile time error for unsupported gdb_wchar_t size.
6957 (ENDIAN_SUFFIX): New macro.
6958 (intermediate_encoding): New function.
6959
7b08b9eb
JK
69602011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 * ada-lang.c (struct add_partial_datum): Update the comment for
6963 expand_partial_symbol_name.
6964 (ada_add_partial_symbol_completions): Rename to ...
6965 (ada_expand_partial_symbol_name): ... here, change return type, update
6966 function comment, call symbol_completion_match instead of
6967 symbol_completion_add.
6968 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6969 and ada_expand_partial_symbol_name.
6970 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6971 FILE_MATCHER.
6972 (dw2_map_symbol_names): Remove.
6973 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6974 * psymtab.c (map_symbol_names_psymtab): Remove.
6975 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6976 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6977 order.
6978 (psym_functions): Unlist map_symbol_names_psymtab.
6979 (map_partial_symbol_names): Rename to ...
6980 (expand_partial_symbol_names): ... here, change the FUN type, call
6981 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6982 * psymtab.h (map_partial_symbol_names): Rename to ...
6983 (expand_partial_symbol_names): ... here, change the FUN type.
6984 * symfile.h (struct quick_symbol_functions): Update the description of
6985 expand_symtabs_matching. Remove map_symbol_names.
6986 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6987 (struct add_name_data): Update the comment for
6988 expand_partial_symbol_name.
6989 (add_partial_symbol_name): Rename to ...
6990 (expand_partial_symbol_name): ... here. Replace
6991 completion_list_add_name call by strncmp.
6992 (default_make_symbol_completion_list_break_on): Use now
6993 expand_partial_symbol_names and expand_partial_symbol_name.
6994 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6995
90476074
TT
69962011-04-20 Tom Tromey <tromey@redhat.com>
6997
6998 * dwarf2read.c (save_gdb_index_command): Replace format
6999 documentation with a pointer to the manual.
7000
c21236dc
PA
70012011-04-20 Pedro Alves <pedro@codesourcery.com>
7002
7003 * regcache.c: Include remote.h.
7004 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7005 (regcache_dump): Handle regcache_dump_remote.
7006 (maintenance_print_remote_registers): New function.
7007 (_initialize_regcache): Install "maint print remote-registers"
7008 command.
7009 * remote.c (map_regcache_remote_table): New function, factored out
7010 from ...
7011 (init_remote_state): ... here.
7012 (remote_register_number_and_offset): New.
7013 * remote.h (remote_register_number_and_offset): Declare.
7014
b78974c3
PA
70152011-04-20 Pedro Alves <pedro@codesourcery.com>
7016
7017 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7018 null_ptid, assume and allow a NULL address space, instead of
7019 asking the target for the ptid's address space.
7020 * infrun.c (ptid_is_pid): Remove assertion.
7021
7a9dd1b2
TT
70222011-04-19 Tom Tromey <tromey@redhat.com>
7023
7024 * windows-tdep.c (windows_xfer_shared_library):
7025 * windows-nat.c (get_module_name, windows_make_so):
7026 * v850-tdep.c (v850_handle_pushm):
7027 * utils.c (null_cleanup, gdb_realpath):
7028 * ui-out.c (get_next_header):
7029 * tracepoint.c (clear_traceframe_info):
7030 * symtab.c (lookup_symtab):
7031 * serial.h (struct serial_ops):
7032 * mipsread.c (read_alphacoff_dynamic_symtab):
7033 * infcmd.c (print_return_value):
7034 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7035 * f-exp.y (parse_number):
7036 * exceptions.c (catch_exceptions):
7037 * dummy-frame.c (dummy_frame_this_id):
7038 * defs.h (struct cleanup):
7039 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7040 * arm-tdep.c (arm_push_dummy_call):
7041 * amd64-tdep.h (amd64_collect_xsave):
7042 * amd64-tdep.c (amd64_collect_xsave):
7043 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7044 * README (typing): Remove duplicate words.
7045 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7046 * infrun.c (siginfo_value_read): Fix typo.
7047 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7048 * top.c (source_line_number): Add comma.
7049
9941e0c5
MK
70502011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7051
7052 * thread.c (any_live_thread_of_process): Prioritize threads
7053 that are not executing.
7054 * gdbthread.h (any_live_thread_of_process): Update comment
7055 as per above change.
7056
ed4b0e6a
AS
70572011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7058
7059 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7060 (scan_xcoff_symtab): Likewise.
7061
9b13a2db
PM
70622011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7063
7064 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7065 inside if clause.
7066
1c6e1b0d
PM
70672011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7068 Pedro Alves <pedro@codesourcery.com>
7069
7070 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7071 variables to simplify code and avoid == operator at end of
7072 line as this is against GNU coding standards.
7073
74de0234
PM
70742011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7075
7076 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7077 lm_name to name_lm to avoid conflict with lm_name function.
7078
b23518f0
PM
70792011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7080
7081 ARI fixes: Use only lowercase function name for static functions.
7082 * nto-tdep.c (LM_ADDR): Rename to...
7083 (lm_addr): New function name.
7084 (nto_relocate_section_addresses): Adapt to change above.
7085 * solib-sunos.c (LM_ADDR): Rename to...
7086 (lm_addr): New function name.
7087 (LM_NEXT): Rename to...
7088 (lm_next): New function name.
7089 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7090 function name changes above.
7091 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7092 (lm_addr_from_link_map): New function name.
7093 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7094 (has_lm_dynamic_from_link_map): New function name.
7095 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7096 (lm_dynamic_from_link_map): New function name.
7097 (LM_ADDR_CHECK): Rename to...
7098 (lm_addr_check): New function name.
7099 (LM_NEXT): Rename to...
7100 (lm_next): New function name.
7101 (LM_PREV): Rename to...
7102 (lm_prev): New function name.
7103 (LM_NAME): Rename to...
7104 (lm_name): New function name.
7105 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7106 (ignore_first_link_map_entry): New function name.
7107 (svr4_keep_data_in_core): Adapt to function name changes above.
7108 (svr4_current_sos): Likewise.
7109 (enable_break): Likewise.
7110 (svr4_relocate_section_addresses): Likewise.
7111
1448a0a2
PM
71122011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7113
7114 ARI cleanup.
7115 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7116 sprintf. Simplify code and avoid loosing memory.
7117 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7118 (call0_frame_cache): Remove && operator from end of line.
7119
02835898
JK
71202011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7121
7122 Fix libraries displacement if they change whether they were prelinked.
7123 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7124 does not match. Comment why.
7125
9a845ea2
JK
71262011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7127
7128 * corelow.c: Include wrapper.h.
7129 (core_open): Call now gdb_target_find_new_threads.
7130 * wrapper.c: Include target.h.
7131 (gdb_target_find_new_threads): New.
7132 * wrapper.h (gdb_target_find_new_threads): New declaration.
7133
254f582e
JK
71342011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7135
7136 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7137 even if !TARGET_HAS_EXECUTION.
7138
63524580
JK
71392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7140
7141 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7142 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7143 bfd_get_synthetic_symtab.
7144 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7145 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7146 parameter parent, remove the call to add_separate_debug_objfile.
7147 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7148 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7149 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7150 parent, new comment for it, call add_separate_debug_objfile for it.
7151 (symbol_file_add_separate): Pass objfile as the parameter parent,
7152 remove the call to add_separate_debug_objfile.
7153 (symbol_file_add_from_bfd): New parameter parent, pass it.
7154 (symbol_file_add): Pass NULL to the new parameter parent.
7155 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7156
90359a16
JK
71572011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7158
7159 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7160 BSF_SYNTHETIC.
7161
626e7282
JK
71622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7163
7164 Fix Python access to inlined frames.
7165 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7166 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7167
cf31e6f9
TT
71682011-04-15 Tom Tromey <tromey@redhat.com>
7169
7170 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7171
c8d895f1
GB
71722011-04-15 Gary Benson <gbenson@redhat.com>
7173
7174 * MAINTAINERS: Add myself to write-after-approval section.
7175
56a9aa1d
MF
71762011-04-14 Mike Frysinger <vapier@gentoo.org>
7177
7178 * remote-sim.c (sim_command_completer): New function.
7179 (_initialize_remote_sim): Set completer to sim_command_completer.
7180
ba770c9c
TJB
71812011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7182
7183 * breakpoint.c (print_exception_catchpoint): Rename to ...
7184 (print_it_exception_catchpoint): ... this.
7185 (gnu_v3_exception_catchpoint_ops): Update with new name
7186 for print_it_exception_catchpoint.
7187
51bf2553
EBM
71882011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7189
7190 * MAINTAINERS: Add myself for write after approval privileges.
7191
d242658c
MP
71922011-04-13 Marek Polacek <mpolacek@redhat.com>
7193
7194 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7195
4a4106ca
TJB
71962011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7197
7198 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7199
26063d49
TJB
72002011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7201
7202 * breakpoint.c (save_breakpoints): Verify whether
7203 breakpoint_ops.print_recreate is defined before calling it.
7204
7782b183
GB
72052011-04-11 Gary Benson <gbenson@redhat.com>
7206
7207 Fix failure with --enable-maintainer-mode.
7208 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7209
e8930875
JK
72102011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7211
7212 Code cleanup.
7213 * symtab.c (search_symbols): Reorder the KIND description in the
7214 function comment. Remove the unused 4th element of types, types2,
7215 types3 and types4. New gdb_assert on KIND.
7216 (symtab_symbol_info): Remove the unused 4th element of classnames.
7217 New gdb_assert on KIND.
7218 * symtab.h (enum search_domain): New warning in the enum comment.
7219 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7220 TYPES_DOMAIN.
7221
b4f2f049
JK
72222011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7223
7224 Fix crash of gdb save-index on a STABS file.
7225 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7226 PSYMTABS_ADDRMAP.
7227
60d5a603
JK
72282011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7229
7230 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7231 * dwarf2read.c: Include ctype.h.
7232 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7233 functions.
7234 (dwarf2_add_field): Fix new_field->accessibility by calling
7235 dwarf2_default_access_attribute. Restructure setting accessibility
7236 vs. virtuality.
7237 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7238 is_private and is_protected by calling
7239 dwarf2_default_access_attribute.
7240
e0f68161
KB
72412011-04-08 Kevin Buettner <kevinb@redhat.com>
7242
7243 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7244 to the initialization.
7245
2e1aae43
SE
72462011-04-08 Steve Ellcey <sje@cup.hp.com>
7247
7248 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7249 initalization.
7250
c6ca3dab
PM
72512011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7252
7253 Remove support for old Cygwin 1.5 versions.
7254 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7255 function on old Cygwin version.
7256 * windows-nat.c: Remove cygwin version check and always define
7257 __USEWIDE for Cygwin compilation.
7258
bd18283a
YQ
72592011-04-07 Yao Qi <yao@codesourcery.com>
7260
7261 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7262 and TO.
7263 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7264 (arm_copy_svc): Remove parameters INSN and TO.
7265 (decode_svc_copro): Update caller.
7266 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7267 from function pointer `copy_svc_os'.
7268
8c8dba6d
YQ
72692011-04-07 Yao Qi <yao@codesourcery.com>
7270
7271 * arm-tdep.c (cleanup_branch): Set a correct return address in
7272 LR for ARM and Thumb.
7273
59d7bcaf
JK
72742011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 Code cleanup.
7277 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7278 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7279 in the function comment, a new note on values compatibility.
7280 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7281 * symtab.h (SYMBOL_HASH_NEXT): New.
7282
e7db58ea
TJB
72832011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7284
7285 * ppc-linux-nat.c (check_condition): Add len output parameter.
7286 Set it based on the memory region referenced in the condition
7287 expression. Update all callers.
7288
9f743ef6
JK
72892011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7290
7291 Fix crash regression on systems featuring .gdb_index.
7292 * objfiles.c (free_objfile): Move the
7293 forget_cached_source_info_for_objfile call earlier. Comment it.
7294 Extend the comment for objfile_free_data.
7295
9182c5bc
JK
72962011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 Fix regression of displaying the debug format.
7299 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7300 subfile.
7301
04bd08de
TT
73022011-04-04 Tom Tromey <tromey@redhat.com>
7303
7304 * cli/cli-interp.c (struct captured_execute_command_args):
7305 Remove.
7306 (do_captured_execute_command): Remove.
7307 (safe_execute_command): Use TRY_CATCH.
7308 * cli/cli-script.c (struct wrapped_read_command_file_args):
7309 Remove.
7310 (wrapped_read_command_file): Remove.
7311 (script_from_file): Use TRY_CATCH.
7312 * exceptions.c (catch_exception): Remove.
7313 * exceptions.h (catch_exception): Remove.
7314 (deprecated_throw_reason): Update comment.
7315 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7316 argument to 'context'.
7317 (mi_execute_command): Use TRY_CATCH.
7318 * remote.c (struct start_remote_args): Remove.
7319 (remote_start_remote): Update; change arguments.
7320 (remote_open_1): Use TRY_CATCH.
7321
58438ac1
TT
73222011-04-04 Tom Tromey <tromey@redhat.com>
7323
7324 * tracepoint.c (scope_info): Update.
7325 * symtab.c (decode_line_spec): Update.
7326 * python/python.c (gdbpy_decode_line): Update.
7327 * linespec.h (decode_line_1): Update.
7328 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7329 (decode_compound, find_method, symtab_from_filename)
7330 (decode_variable): Likewise.
7331 * cli/cli-cmds.c (edit_command): Update.
7332 (list_command): Update.
7333 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7334 argument.
7335 (create_breakpoint): Update.
7336 (until_break_command): Update.
7337 (addr_string_to_sals): Update.
7338 (decode_line_spec_1): Update.
7339
b78a6381
TT
73402011-04-04 Tom Tromey <tromey@redhat.com>
7341
7342 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7343 (do_captured_parse_breakpoint): Remove.
7344 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7345 Use TRY_CATCH directly.
7346
00174a86
TT
73472011-04-04 Tom Tromey <tromey@redhat.com>
7348
7349 * symtab.h (free_symtab): Remove.
7350 (forget_cached_source_info_for_objfile): Declare.
7351 * symmisc.c (free_symtab): Remove.
7352 * source.c (forget_cached_source_info_for_objfile): New function.
7353 (forget_cached_source_info): Use it.
7354 * objfiles.c (free_objfile): Simplify check before calling
7355 clear_current_source_symtab_and_line. Call
7356 forget_cached_source_info_for_objfile.
7357
30cc903e
TT
73582011-04-04 Tom Tromey <tromey@redhat.com>
7359
7360 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7361 (new_symtab): Don't set `free_code' on symtab.
7362 (new_linetable): Properly handle size==0.
7363 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7364 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7365 free_func.
7366 * jv-lang.c (struct jv_per_objfile_data): New.
7367 (jv_per_objfile_free): Free the data.
7368 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7369 (get_java_class_symtab): Set the `dict' field on the
7370 jv_per_objfile_data.
7371 (free_class_block): Remove.
7372 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7373 the symtab.
7374
0c2e6019
TT
73752011-04-04 Tom Tromey <tromey@redhat.com>
7376
7377 * symfile.c (reread_symbols): Update.
7378 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7379 field.
7380 * objfiles.c (allocate_objfile): Update.
7381 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7382 declare.
7383 * cp-namespace.c (lookup_symbol_file): Don't call
7384 lookup_possible_namespace_symbol.
7385 (initialize_namespace_symtab, get_possible_namespace_block)
7386 (free_namespace_block, cp_check_possible_namespace_symbols)
7387 (check_possible_namespace_symbols_loop)
7388 (check_one_possible_namespace_symbol)
7389 (lookup_possible_namespace_symbol): Remove.
7390 (maintenance_cplus_namespace): Replace with notice.
7391 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7392
554d387d
TT
73932011-04-04 Tom Tromey <tromey@redhat.com>
7394
7395 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7396 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7397 * symmisc.c (free_symtab): Don't free debugformat.
7398 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7399 (record_debugformat, record_producer): Document.
7400 * buildsym.c (end_symtab): Don't save debugformat and producer
7401 names on obstack.
7402 (end_symtab): Don't free debugformat and producer fields.
7403 (record_debugformat): Don't call xstrdup.
7404 (record_producer): Likewise.
7405
d4d4db8a
TT
74062011-04-04 Tom Tromey <tromey@redhat.com>
7407
7408 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7409 (source_line_charpos, source_charpos_line): Remove.
7410
8903c50d
TT
74112011-04-04 Tom Tromey <tromey@redhat.com>
7412
7413 * symtab.h (domain_enum): Split in two...
7414 (enum search_domain): New.
7415 (search_symbols): Update.
7416 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7417 redundant declarations.
7418 (search_symbols): Change 'kind' argument to search_domain.
7419 Update.
7420 (print_symbol_info): Likewise.
7421 (symtab_symbol_info): Likewise.
7422 * symfile.h (struct quick_symbol_functions)
7423 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7424 <expand_symtabs_matching>: Likewise.
7425 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7426 (expand_symtabs_matching_via_partial): Update.
7427 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7428 (dw2_expand_symtabs_for_function): Update.
7429 * block.h: Moved anonymous enum...
7430 * defs.h (enum block_enum): ... here. Now named.
7431
d9351f5f 74322011-04-03 Joel Brobecker <brobecker@adacore.com>
7433
7434 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7435 * version.in: Bump version to 7.3.50.20110403-cvs.
7436
d6e00af6
JB
74372011-04-03 Joel Brobecker <brobecker@adacore.com>
7438
7439 * NEWS: Create a new section for the next release branch.
7440 Rename the section of the current branch, now that it has
7441 been cut.
7442
2b9e5ea6
UW
74432011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7444
7445 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7446 for "fpscr" in target description.
7447
0cf03b49
JK
74482011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7449
7450 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7451 initialize it. Delay HASH initialization. Strip the part after open
7452 parenthesis for languages with qualifiers. Call do_cleanups.
7453
5d901a73
TT
74542011-04-01 Tom Tromey <tromey@redhat.com>
7455
7456 * utils.c (report_command_stats): Don't print `-' for negative
7457 number.
7458
b0dd7688
JB
74592011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7460
7461 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7462 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7463 typedefs.
7464
956a9fb9
JB
74652011-04-01 Joel Brobecker <brobecker@adacore.com>
7466
7467 * breakpoint.h (bpdisp_text): Add declaration.
7468 * breakpoint.c (bpdisp_text): Make non-static.
7469 * ada-lang.c: #include "mi/mi-common.h".
7470 (print_it_exception): Rewrite to improve GDB/MI output.
7471
3352110b
PA
74722011-04-01 Pedro Alves <pedro@codesourcery.com>
7473
7474 * arm-tdep.h (struct address_space): Add forward declaration.
7475
18819fa6
UW
74762011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7477
7478 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7479 * arm-tdep.c (arm_override_mode): New global.
7480 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7481 execution mode heuristics.
7482 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7483 second single-step breakpoint if needed, using
7484 arm_insert_single_step_breakpoint.
7485 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7486 ARM execution mode, do not call thumb_get_next_pc_raw.
7487 (arm_get_next_pc): Encode execution mode in return value. Call
7488 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7489 (arm_insert_single_step_breakpoint): New function.
7490 (arm_software_single_step): Call it.
7491 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7492 argument to return execution mode of sigreturn target.
7493 (arm_linux_syscall_next_pc): Use it.
7494 (arm_linux_copy_svc): Update call.
7495 (arm_linux_software_single_step): Call
7496 arm_insert_single_step_breakpoint.
7497
a6e293d1
JK
74982011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7499
7500 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7501 the comment.
7502
a4c8e806
TT
75032011-03-31 Tom Tromey <tromey@redhat.com>
7504
7505 * varobj.c (update_dynamic_varobj_children): Properly handle
7506 errors from iterator.
7507
df5c6c50
JK
75082011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7509
7510 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7511 struct linkage name twice.
7512
1dae3efc
TT
75132011-03-31 Tom Tromey <tromey@redhat.com>
7514
7515 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7516 missing ">" to message.
7517
f4f7ab05
TT
75182011-03-31 Tom Tromey <tromey@redhat.com>
7519
7520 * varobj.c (instantiate_pretty_printer): Remove duplicate
7521 'return'.
7522
fcf250e2
UW
75232011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7524
7525 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7526 if neither saved value nor register available (e.g. signal frame).
7527
ee6436e3
TJB
75282011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7529
7530 * macroexp.c (expand): Avoid uninitialized variable
7531 compiler warning.
7532
423f41a5
TJB
75332011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7534
7535 * breakpoint.c (break_range_command): Fix typo in comment.
7536
f1310107
TJB
75372011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7538 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7539
7540 Implement support for PowerPC BookE ranged breakpoints.
7541 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7542 * breakpoint.h (struct bp_target_info) <length>: New member
7543 variable.
7544 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7545 instead of struct breakpoint as argument, and also add ASPACE
7546 and BP_ADDR arguments. Update all callers.
7547 (struct breakpoint_ops) <print_one_detail>: New method.
7548 (struct breakpoint) <addr_string_range_end>: New member variable.
7549 * breakpoint.c (breakpoint_location_address_match): Add function
7550 prototype.
7551 (insert_bp_location): Set bl->target_info.length.
7552 (breakpoint_here_p): Call breakpoint_location_address_match.
7553 (moribund_breakpoint_here_p): Likewise.
7554 (regular_breakpoint_inserted_here_p): Likewise.
7555 (breakpoint_thread_match): Likewise.
7556 (bpstat_stop_status): Likewise.
7557 (bpstat_check_location): Move call to
7558 breakpoint_ops.breakpoint_hit to the top.
7559 (print_one_breakpoint_location): Call
7560 breakpoint_ops.print_one_detail if available.
7561 (breakpoint_address_match_range): New function.
7562 (breakpoint_location_address_match): Likewise.
7563 (breakpoint_locations_match): Compare the length field of the
7564 locations too.
7565 (hw_breakpoint_used_count): Count resources used by all locations
7566 in a breakpoint, and use breakpoint_ops.resources_needed if
7567 available.
7568 (breakpoint_hit_ranged_breakpoint): New function.
7569 (resources_needed_ranged_breakpoint): Likewise.
7570 (print_it_ranged_breakpoint): Likewise.
7571 (print_one_ranged_breakpoint): Likewise.
7572 (print_one_detail_ranged_breakpoint): Likewise.
7573 (print_mention_ranged_breakpoint): Likewise.
7574 (print_recreate_ranged_breakpoint): Likewise.
7575 (ranged_breakpoint_ops): New structure.
7576 (find_breakpoint_range_end): New function.
7577 (break_range_command): Likewise.
7578 (delete_breakpoint): Free addr_string_range_end.
7579 (update_breakpoint_locations): Add SALS_END argument. Update
7580 all callers. Calculate breakpoint length if a non-zero SALS_END
7581 is given. Call breakpoint_locations_match instead of
7582 breakpoint_address_match.
7583 (reset_breakpoint): Find SaL of the end of the range if B is a
7584 ranged breakpoint.
7585 (_initialize_breakpoint): Register break-range command.
7586 * defs.h (print_core_address): Add function prototype.
7587 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7588 function.
7589 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7590 (ppc_linux_remove_hw_breakpoint): Likewise.
7591 (_initialize_ppc_linux_nat): Initialize
7592 to_ranged_break_num_registers.
7593 * target.c (update_current_target): Add comment about
7594 to_ranged_break_num_registers.
7595 (target_ranged_break_num_registers): New function.
7596 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7597 New method.
7598 (target_ranged_break_num_registers): Add function prototype.
7599 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7600 * utils.c (print_core_address): ... here.
7601
02d20e4a
UW
76022011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7603
7604 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7605 variable compiler warning.
7606
ef23e705
TJB
76072011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7608
7609 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7610 code from here ...
7611 (re_set_breakpoint): ... to here ...
7612 (addr_string_to_sals): ... and here.
7613
311e6ab3
PM
76142011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7615
7616 * Makefile.in (SFILES): Add missing C sources.
7617 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7618 Add missing headers.
7619
acd1d99c
MF
76202011-03-29 Mike Frysinger <vapier@gentoo.org>
7621
7622 * .gitignore: New file.
7623
66ee2731
MF
76242011-03-29 Mike Frysinger <vapier@gentoo.org>
7625
7626 * NEWS: Mention new cfi device simulation.
7627
53832f31
TT
76282011-03-29 Tom Tromey <tromey@redhat.com>
7629
7630 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7631 otherwise anonymous types.
7632 (dwarf2_name): Likewise.
7633 * valops.c (value_struct_elt_for_reference): Refine artificial
7634 type logic. Call error if j==-1.
7635
09b58708
JK
76362011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7637
7638 Fix false GCC warning.
7639 * infcall.c (find_function_addr): Initialize funaddr.
7640
6023c606
PM
76412011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7642
7643 Fix mingw compilation with --enable-targets=all.
7644 * remote-mips.c (gdb_usleep.h): Include header.
7645 (mips_enter_debug): Use gdb_usleep instead of sleep.
7646
0e30163f
JK
76472011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7648
7649 Support resolution of STT_GNU_IFUNC via breakpoints.
7650 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7651 bp_gnu_ifunc_resolver_return.
7652 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7653 the loop. Support bp_gnu_ifunc_resolver and
7654 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7655 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7656 breakpoints.
7657 (bptype_string, print_one_breakpoint_location): Support
7658 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7659 (user_settable_breakpoint): Return true also for
7660 bp_gnu_ifunc_resolver.
7661 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7662 bp_gnu_ifunc_resolver_return.
7663 (set_breakpoint_location_function): New parameter explicit_loc,
7664 describe it. Call find_pc_partial_function_gnu_ifunc with new
7665 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7666 EXPLICIT_LOC is not set.
7667 (set_raw_breakpoint): Set EXPLICIT_LOC for
7668 set_breakpoint_location_function.
7669 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7670 set_breakpoint_location_function.
7671 (mention): Support bp_gnu_ifunc_resolver and
7672 bp_gnu_ifunc_resolver_return.
7673 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7674 set_breakpoint_location_function.
7675 (update_breakpoint_locations): Remove static.
7676 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7677 bp_gnu_ifunc_resolver_return.
7678 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7679 bp_gnu_ifunc_resolver_return.
7680 (update_breakpoint_locations): New declaration.
7681 * elfread.c: Include gdbthread.h and regcache.h.
7682 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7683 functions.
7684 (elf_gnu_ifunc_fns): Install them.
7685 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7686 (stub_gnu_ifunc_resolver_return_stop): New functions.
7687 (stub_gnu_ifunc_fns): Install them.
7688 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7689 and gnu_ifunc_resolver_return_stop.
7690 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7691
07be84bf
JK
76922011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7693
7694 STT_GNU_IFUNC reader implementation.
7695 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7696 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7697 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7698 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7699 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7700 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7701 (elf_gnu_ifunc_resolve_addr): New.
7702 (elf_symfile_read): Call elf_rel_plt_read.
7703 (elf_gnu_ifunc_fns): New.
7704 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7705 Install elf_gnu_ifunc_fns.
7706 * infcall.c (find_function_return_type): New function.
7707 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7708 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7709 (stub_gnu_ifunc_resolve_name): New functions.
7710 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7711 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7712 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7713
300f8e10
JK
77142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7715
7716 Code cleanup for later STT_GNU_IFUNC support.
7717 * infcall.c (find_function_addr): Remove variable code, use explicit
7718 dereferences for it. Move VALUE_TYPE initialization later.
7719
11c81455
JK
77202011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7721
7722 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7723 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7724 (clear_pc_function_cache): Clear it.
7725 (find_pc_partial_function): Rename to ...
7726 (find_pc_partial_function_gnu_ifunc): ... this function. New
7727 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7728 (find_pc_partial_function): New wrapper for this function.
7729 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7730
0875794a
JK
77312011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7732
7733 GDB internal type support for STT_GNU_IFUNC.
7734 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7735 (elf_symtab_read): Set mst_text_gnu_ifunc for
7736 BSF_GNU_INDIRECT_FUNCTION.
7737 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7738 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7739 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7740 nodebug_got_plt_symbol.
7741 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7742 (TYPE_GNU_IFUNC): New.
7743 (struct main_type): New field flag_gnu_ifunc.
7744 (struct builtin_type): New field builtin_func_func.
7745 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7746 nodebug_got_plt_symbol.
7747 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7748 (in_gnu_ifunc_stub): New.
7749 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7750 mst_text_gnu_ifunc.
7751 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7752 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7753 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7754 in_gnu_ifunc_stub.
7755 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7756 * symtab.c (search_symbols): Likewise.
7757 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7758 and mst_slot_got_plt.
7759 (in_gnu_ifunc_stub): New declaration.
7760
d0fb5eae
JK
77612011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7762
7763 Support a ring of related breakpoints.
7764 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7765 other functions, add gdb_assert.
7766 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7767 watchpoint_del_at_next_stop.
7768 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7769 (bpstat_stop_status): Handle ring in related_breakpoint.
7770 (set_raw_breakpoint_without_location): Initialize ring in
7771 related_breakpoint.
7772 (delete_breakpoint): Handle ring in related_breakpoint, use
7773 watchpoint_del_at_next_stop.
7774 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7775
9cded63f
TT
77762011-03-28 Tom Tromey <tromey@redhat.com>
7777
7778 PR symtab/12441:
7779 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7780 with `language_minimal'.
7781
467d42c4
UW
77822011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7783
7784 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7785 instead of checking for STT_ARM_TFUNC symbol type.
7786
62853458
TT
77872011-03-25 Tom Tromey <tromey@redhat.com>
7788
7789 * linespec.c (symbol_found): Restore line-based result for
7790 non-LOC_LABEL symbols.
7791
a7417d46
KT
77922011-03-25 Kai Tietz <ktietz@redhat.com>
7793
7794 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7795 instead of strcmp for comparison.
7796 (tui_source_is_displayed): Likewise.
7797 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7798
55f1336d
TT
77992011-03-24 Mark Wielaard <mjw@redhat.com>
7800
f33edef8
PP
7801 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7802 complaint.
7803 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7804 (find_partial_die_in_comp_unit): Likewise in comment.
7805 (read_attribute_value): Likewise.
7806 (lookup_die_type): Likewise.
7807 (dwarf_form_name): Likewise.
7808 (dump_die_shallow): Likewise.
7809 (follow_die_ref_or_sig): Likewise.
55f1336d 7810
9ef07c8c
TT
78112011-03-24 Tom Tromey <tromey@redhat.com>
7812
7813 PR breakpoints/11816:
7814 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7815 (decode_compound): Update.
7816 (find_function_symbol): New function.
7817 (decode_dollar): Update.
7818 (decode_label): Add 'function_symbol' parameter. Handle
7819 function-relative labels.
7820 (decode_variable): Update.
7821 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7822 not its line. Set `special_display' and canonical name for
7823 labels.
7824
56435ebe
TT
78252011-03-24 Tom Tromey <tromey@redhat.com>
7826
7827 * linespec.h (struct linespec_result) <special_display>: New
7828 field.
7829 * breakpoint.h (struct breakpoint) <display_canonical>: New
7830 field.
7831 * breakpoint.c (print_breakpoint_location): Respect
7832 display_canonical.
7833 (create_breakpoint_sal): Add 'display_canonical' parameter.
7834 (create_breakpoints_sal): Update.
7835 (create_breakpoint): Update.
7836
7efd8fc2
TT
78372011-03-24 Tom Tromey <tromey@redhat.com>
7838
7839 * symtab.c (decode_line_spec): Update.
7840 * linespec.c (build_canonical_line_spec): Change type of
7841 'canonical'.
7842 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7843 (find_method, decode_all_digits, decode_dollar, decode_label)
7844 (symbol_found): Likewise.
7845 (init_linespec_result): New function.
7846 * breakpoint.c (struct captured_parse_breakpoint_args)
7847 <canonical_p>: New field, replaces addr_string_p.
7848 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7849 'addr_string'.
7850 (parse_breakpoint_sals): Likewise.
7851 (do_captured_parse_breakpoint): Update.
7852 (create_breakpoint): Use struct linespec_result.
7853 (until_break_command): Update.
7854 (breakpoint_re_set_one): Update.
7855 (decode_line_spec_1): Update.
7856 * linespec.h (struct linespec_result): New.
7857 (init_linespec_result): Declare.
7858
788c8b10
PA
78592011-03-23 Pedro Alves <pedro@codesourcery.com>
7860
7861 * regcache.c (regcache_raw_read): If the target didn't supply a
7862 given raw register, mark it as unavailable.
7863
0ba1096a
KT
78642011-03-23 Kai Tietz <ktietz@redhat.com>
7865
7866 * breakpoint.c (clear_command): Use filename_cmp
7867 instead of strcmp for comparison.
7868 * buildsym.c (watch_main_source_file_lossage): Likewise.
7869 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7870 checking just for slash.
7871 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7872 strrchr and filename_cmp instead of strcmp for filenames.
7873 (add_old_header_file): Use filename_cmp
7874 instead of strcmp for comparison.
7875 * exec.c (exec_set_section_address): Likewise.
7876 * macrotab.c (macro_lookup_inclusion): Likewise.
7877 (macro_lookup_inclusion): Likewise.
7878 * elfread.c (_initialize_elfread): Likewise.
7879 (elfstab_offset_sections): Likewise.
7880 (elfstab_offset_sections): Use lbasename instead of
7881 strrchr.
7882 * mdebugread.c (parse_partial_symbols): Likewise.
7883 (arse_partial_symbols): Use filename_(n)cmp instead of
7884 str(n)cmp for comparison.
7885 * minsyms.c (lookup_minimal_symbol): Likewise.
7886 * psymtab.c (read_psymtabs_with_filename): Likewise.
7887 * solib.c (solib_read_symbols): Likewise.
7888 (reload_shared_libraries_1): Likewise.
7889 * symmisc.c (maintenance_print_symbols): Likewise.
7890 * symfile.c (separate_debug_file_exists): Likewise.
7891 (reread_symbols): Likewise.
7892 (find_separate_debug_file_by_debuglink): Likewise.
7893 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7894 * source.c (add_path): Likewise.
7895 * symtab.c (filename_seen): Likewise.
7896 (file_matches): Likewise.
7897 (print_symbol_info): Likewise.
7898 (maybe_add_partial_symtab_filename): Likewise.
7899 (make_source_files_completion_list): Likewise.
7900 * xml-syscall.c (init_sysinfo): Likewise.
7901 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7902 IS_DIR_SEPARATOR for checking for trailing path separator.
7903
dd90784c
JK
79042011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7905
7906 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7907 label abort_expression.
7908 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7909 DWARF_VALUE_OPTIMIZED_OUT.
7910
3167638f
JK
79112011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 Code cleanup.
7914 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7915 to linkage_name. Invert its value. Update the function comment.
7916 (c_type_print_varspec_suffix): Invert it at the caller.
7917 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7918
ce406537
PA
79192011-03-22 Pedro Alves <pedro@codesourcery.com>
7920
7921 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7922 errors when reading the `stop_pc'.
7923 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7924 get_frame_pc.
7925
da5d4055
PM
79262011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7927
7928 * NEWS: Document gdb.Write stream keyword.
7929
29e0eb9c
JK
79302011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7931
7932 Revert:
7933 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7934 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7935 (dwarf2_add_field): Fix new_field->accessibility for
7936 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7937
05775840
PM
79382011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7939
f33edef8 7940 PR python/12183
05775840
PM
7941
7942 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7943 other error classes. Do not print stack trace.
7944
a0cb7835
JK
79452011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7948 (dwarf2_add_field): Fix new_field->accessibility for
7949 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7950
d19f7eee
UW
79512011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7952
7953 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7954 encountering a load via a non-SP register.
7955
4a2fbb50
UW
79562011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7957
7958 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7959 field in returned unwinder.
7960
3489610d
JB
79612012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7962
7963 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7964
8c1a34e7
JB
79652012-03-21 Joel Brobecker <brobecker@adacore.com>
7966
7967 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7968 of xmalloc.
7969
8fbca658
PA
79702012-03-18 Pedro Alves <pedro@codesourcery.com>
7971
7972 * frame.c (frame_unwind_register): Throw an error if unwinding the
7973 register failed.
7974 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7975 an unwind stop reason.
7976 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7977 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7978 UNWIND_UNAVAILABLE>: New.
7979 * inline-frame.c (inline_frame_unwind): Install
7980 default_frame_unwind_stop_reason.
7981 * frame-unwind.c: Include "exceptions.h".
7982 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7983 (default_frame_unwind_stop_reason): New.
7984 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7985 (default_frame_unwind_stop_reason): Declare.
7986 (struct frame_unwind) <stop_reason>: New function pointer.
7987
7988 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7989 * dwarf2-frame.c: Include exceptions.h.
7990 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7991 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7992 computing the CFA. If such an error was thrown, set
7993 unavailable_retaddr.
7994 (dwarf2_frame_unwind_stop_reason): New.
7995 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7996 unavailable.
7997 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7998 (dwarf2_signal_frame_unwind): Ditto.
7999
8000 * amd64-tdep.c: Include "exceptions.h".
8001 (struct amd64_frame_cache): New field "base_p".
8002 (amd64_init_frame_cache): Clear it.
8003 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8004 Avoid reading registers with functions that throw if the register
8005 is not necessary to compute the frame base.
8006 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8007 swallowing NOT_AVAILABLE_ERROR.
8008 (amd64_frame_unwind_stop_reason): New.
8009 (amd64_frame_this_id): Don't build a frame id if the frame base
8010 was unavailable.
8011 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8012 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8013 base_p if the frame base was computable.
8014 (amd64_sigtramp_frame_unwind_stop_reason): New.
8015 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8016 frame base was unavailable.
8017 (amd64_sigtramp_frame_unwind): Install
8018 amd64_sigtramp_frame_unwind_stop_reason.
8019 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8020 base_p if the frame base was computable.
8021 (amd64_epilogue_frame_unwind_stop_reason): New.
8022 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8023 frame base was unavailable.
8024 (amd64_epilogue_frame_unwind): Install
8025 amd64_epilogue_frame_unwind_stop_reason.
8026 * i386-tdep.c: Include "exceptions.h".
8027 (struct i386_frame_cache): New field "base_p".
8028 (i386_init_frame_cache): Clear it.
8029 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8030 Avoid reading registers with functions that throw if the register
8031 is not necessary to compute the frame base.
8032 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8033 swallowing NOT_AVAILABLE_ERROR.
8034 (i386_frame_unwind_stop_reason): New.
8035 (i386_frame_this_id): Don't build a frame id if the frame base was
8036 unavailable.
8037 (i386_frame_prev_register): Handle unavailable SP.
8038 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8039 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8040 base_p if the frame base was computable.
8041 (i386_epilogue_frame_unwind_stop_reason): New.
8042 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8043 base was unavailable.
8044 (i386_epilogue_frame_unwind): Install
8045 i386_epilogue_frame_unwind_stop_reason.
8046 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8047 base_p if the frame base was computable.
8048 (i386_sigtramp_frame_unwind_stop_reason): New.
8049 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8050 base was unavailable.
8051 (i386_sigtramp_frame_unwind): Install
8052 i386_sigtramp_frame_unwind_stop_reason.
8053 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8054 type's size, not the register's.
8055 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8056
8057 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8058 default_frame_unwind_stop_reason.
8059 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8060 (alpha_heuristic_frame_unwind): Ditto.
8061 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8062 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8063 * avr-tdep.c (avr_frame_unwind): Ditto.
8064 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8065 Ditto.
8066 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8067 * frv-tdep.c (frv_frame_unwind): Ditto.
8068 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8069 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8070 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8071 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8072 (hppa_stub_frame_unwind): Ditto.
8073 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8074 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8075 (ia64_libunwind_frame_unwind)
8076 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8077 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8078 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8079 * m32c-tdep.c (m32c_unwind): Ditto.
8080 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8081 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8082 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8083 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8084 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8085 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8086 * mep-tdep.c (mep_frame_unwind): Ditto.
8087 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8088 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8089 (mips_stub_frame_unwind): Ditto.
8090 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8091 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8092 * mt-tdep.c (mt_frame_unwind): Ditto.
8093 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8094 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8095 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8096 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8097 (s390_sigtramp_frame_unwind): Ditto.
8098 * score-tdep.c (score_prologue_unwind): Ditto.
8099 * sh-tdep.c (sh_frame_unwind): Ditto.
8100 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8101 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8102 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8103 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8104 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8105 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8106 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8107 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8108 (sparc64obsd_trapframe_unwind): Ditto.
8109 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8110 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8111 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8112 * v850-tdep.c (v850_frame_unwind): Ditto.
8113 * vax-tdep.c (vax_frame_unwind): Ditto.
8114 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8115 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8116 * xtensa-tdep.c (xtensa_unwind): Ditto.
8117
f23d1b92
PA
81182011-03-18 Pedro Alves <pedro@codesourcery.com>
8119
8120 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8121 there's always a frame. Use get_frame_pc_if_available instead of
8122 get_frame_pc, and if there's no PC available, don't look up a
8123 symtab.
8124
1d4f5741
PA
81252011-03-18 Pedro Alves <pedro@codesourcery.com>
8126
8127 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8128 unavailable PC.
8129
dba09041
PA
81302011-03-18 Pedro Alves <pedro@codesourcery.com>
8131
8132 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8133 gracefully.
8134
9a26e44c
PA
81352011-03-18 Pedro Alves <pedro@codesourcery.com>
8136
8137 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8138 * frame.c (frame_unwind_caller_pc_if_available): New.
8139 * stack.c (frame_info): Handle unavailable PC.
8140
81412011-03-18 Pedro Alves <pedro@codesourcery.com>
8142
8143 * frame.c (frame_unwind_pc): Rename to ...
8144 (frame_unwind_pc_if_available): ... this. New `pc' output
8145 parameter. Change return type to int. Gracefully handle
8146 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8147 happened, or 1 otherwise.
8148 (frame_unwind_pc): Reimplement on top of
8149 frame_unwind_pc_if_available.
8150 (get_frame_func): Rename to ...
8151 (get_frame_func_if_available): New `pc' output parameter. Change
8152 return type to int. Gracefully handle the PC not being available.
8153 (get_frame_func): Reimplement on top of
8154 get_frame_func_if_available.
8155 (select_frame): Handle the PC being unavailable.
8156 (get_prev_frame): Handle the PC being unavailable.
8157 (get_frame_pc_if_available): New.
8158 (get_frame_address_in_block_if_available): New.
8159 (find_frame_sal): Handle the frame PC not being available.
8160 * frame.h (get_frame_pc_if_available): Declare.
8161 (get_frame_address_in_block_if_available): Declare.
8162 (get_frame_func_if_available): Declare.
8163 * stack.c (print_frame_info): Handle the PC being unavailable.
8164 (find_frame_funname): Ditto.
8165 (print_frame): Handle the PC being unavailable.
8166 (get_frame_language): Ditto.
8167 * blockframe.c (get_frame_block): Ditto.
8168 * macroscope.c (default_macro_scope): Ditto.
8169 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8170
81712011-03-18 Pedro Alves <pedro@codesourcery.com>
8172
8173 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8174 NOT_AVAILABLE_ERROR when evaluating the location expression.
8175
81762011-03-18 Pedro Alves <pedro@codesourcery.com>
8177
8178 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8179 returning that the register piece is unavailable/optimized out.
8180 (write_pieced_value): Handle get_frame_register_bytes returning
8181 that the register piece is unavailable/optimized out when doing a
8182 read-modify write of a bitfield.
8183 * findvar.c (value_from_register): Handle get_frame_register_bytes
8184 returning that the register piece is unavailable/optimized out.
8185 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8186 and `unavailablep'. Throw error on bad debug info. Use
8187 frame_register instead of frame_register_read, to fill in the new
8188 arguments.
8189 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8190 and `unavailablep'.
8191 * valops.c: (value_assign): Adjust, and handle
8192 get_frame_register_bytes failing.
8193 * spu-tdep.c: Include exceptions.h.
8194 (spu_software_single_step): Adjust, and handle
8195 get_frame_register_bytes failing.
8196 (spu_get_longjmp_target): Ditto.
8197 * gdbarch.sh (register_to_value): Change to return int. New
8198 parameters `optimizedp' and `unavailablep'.
8199 * gdbarch.h, gdbarch.c: Regenerate.
8200 * i386-tdep.c (i386_register_to_value): Adjust to new
8201 gdbarch_register_to_value interface.
8202 * i387-tdep.c (i387_register_to_value): Ditto.
8203 * i387-tdep.h (i387_register_to_value): Ditto.
8204 * alpha-tdep.c (alpha_register_to_value): Ditto.
8205 * ia64-tdep.c (ia64_register_to_value): Ditto.
8206 * m68k-tdep.c (m68k_register_to_value): Ditto.
8207 * mips-tdep.c (mips_register_to_value): Ditto.
8208 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8209
0fdb4f18
PA
82102011-03-18 Pedro Alves <pedro@codesourcery.com>
8211
8212 * findvar.c (value_of_register): Mark the value as unavailable, if
8213 the register is unavailable.
8214 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8215 (frame_register): New `unavailablep' parameter.
8216 (frame_register_read): Update comment.
8217 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8218 Set it if the register is unavailable. If the register is
8219 unavailable, clear the output buffer.
8220 (frame_register): New `unavailablep' parameter. Pass it down.
8221 (frame_unwind_register): Adjust.
8222 (put_frame_register): Adjust.
8223 (frame_register_read): Adjust. Also return false if the register
8224 is not available.
8225 (frame_register_unwind_location): Adjust.
8226 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8227 is unavailable, mark the value accordingly.
8228 * stack.c (frame_info): Handle unavailable registers.
8229
e69aa73e
PA
82302011-03-18 Pedro Alves <pedro@codesourcery.com>
8231
8232 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8233 simplify, using regcache_cooked_read.
8234
05d1431c
PA
82352011-03-18 Pedro Alves <pedro@codesourcery.com>
8236
8237 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8238 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8239 (regcache_raw_read_unsigned, regcache_raw_read_part)
8240 (regcache_cooked_read, regcache_cooked_read_signed)
8241 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8242 (regcache_cooked_read_ftype): Change return to enum
8243 register_status.
8244 * regcache.c: Include exceptions.h
8245 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8246 (do_cooked_read): Change return to enum register_status. Always
8247 forward to regcache_cooked_read.
8248 (regcache_raw_read): Change return to enum register_status. If
8249 the register is not REG_VALID, memset the buffer. Return the
8250 register's status.
8251 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8252 return the register's status.
8253 (regcache_raw_read_unsigned): Ditto.
8254 (regcache_cooked_read): Change return to enum register_status.
8255 Assert that with read-only regcaches, the register's status must
8256 be known. If the regcache is read-only, and the register is not
8257 REG_VALID, memset the buffer. Return the register's status.
8258 (regcache_cooked_read_signed): Change return to enum
8259 register_status. Handle non-REG_VALID registers and return the
8260 register's status.
8261 (regcache_cooked_read_unsigned): Change return to enum
8262 register_status. Handle non-REG_VALID registers and return the
8263 register's status.
8264 (regcache_xfer_part, regcache_raw_read_part)
8265 (regcache_cooked_read_part): Change return to enum
8266 register_status. Return the register's status.
8267 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8268 unavailable.
8269 (regcache_dump): Handle unavailable cooked registers.
8270 * frame.c (do_frame_register_read): Adjust interface to match
8271 regcache_cooked_read_ftype.
8272 * gdbarch.sh (pseudo_register_read): Change return to enum
8273 register_status.
8274 * gdbarch.h, gdbarch.c: Regenerate.
8275
8276 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8277 register_status.
8278 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8279 register_status. If reading a raw register indicates the raw
8280 register is not valid, return the raw register's status,
8281 otherwise, return REG_VALID.
8282 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8283 register_status. Handle non-REG_VALID raw registers and return
8284 the register's status.
8285 * arm-tdep.c (arm_neon_quad_read)
8286 (arm_pseudo_read): Change return to enum register_status. Handle
8287 non-REG_VALID raw registers and return the register's status.
8288 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8289 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8290 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8291 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8292 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8293 register_status.
8294 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8295 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8296 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8297 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8298 (m32c_pseudo_register_read): Change return to enum
8299 register_status. Adjust.
8300 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8301 enum register_status. Return the register's status.
8302 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8303 register_status. Return the register's status.
8304 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8305 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8306 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8307 * rs6000-tdep.c (move_ev_register_func): New typedef.
8308 (e500_move_ev_register): Use it. Change return to enum
8309 register_status. Return the register's status.
8310 (do_regcache_raw_read): New function.
8311 (do_regcache_raw_write): New function.
8312 (e500_pseudo_register_read): Change return to enum
8313 register_status. Return the register's status. Use
8314 do_regcache_raw_read.
8315 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8316 (dfp_pseudo_register_read): Change return to enum register_status.
8317 Return the register's status.
8318 (vsx_pseudo_register_read): Ditto.
8319 (efpr_pseudo_register_read): Ditto.
8320 (rs6000_pseudo_register_read): Ditto.
8321 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8322 register_status. Return the register's status.
8323 * sh64-tdep.c (pseudo_register_read_portions): New function.
8324 (sh64_pseudo_register_read): Change return to enum
8325 register_status. Use pseudo_register_read_portions. Return the
8326 register's status.
8327 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8328 register_status. Return the register's status.
8329 * sh-tdep.c (pseudo_register_read_portions): New function.
8330 (sh_pseudo_register_read): Change return to enum register_status.
8331 Use pseudo_register_read_portions. Return the register's status.
8332 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8333 enum register_status. Return the register's status.
8334 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8335 * spu-tdep.c (spu_pseudo_register_read_spu)
8336 (spu_pseudo_register_read): Ditto.
8337 * xtensa-tdep.c (xtensa_register_read_masked)
8338 (xtensa_pseudo_register_read): Ditto.
8339 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8340
e10abd8f
PM
83412011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8342
8343 * python/py-value.c (valpy_getitem): Fix formatting of error function
8344 call.
8345
7ea6d463
PM
83462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8347
8348 ARI fixes: Add missing internationalization markups throughout
8349 C source files.
8350 * darwin-nat-info.c: Ditto.
8351 * record.c: Ditto.
8352 * remote.c: Ditto.
8353 * mi/mi-main.c: Ditto.
8354
001083c6
PM
83552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8356
8357 ARI fixes: Add missing internationalization markups throughout
8358 yacc files.
8359 * c-exp.y: Ditto.
8360 * cp-name-parser.y: Ditto.
8361 * f-exp.y: Ditto.
8362 * m2-exp.y: Ditto.
8363 * objc-exp.y: Ditto.
8364 * p-exp.y: Ditto.
8365
4f1cdeec
PM
83662011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8367
8368 ARI fixes: Messages should have no trailing new lines.
8369 * darwin-nat.c (mach_check_error): Remove trailing new line from
8370 warning function call message.
8371 * record.c (bfdcore_read): Idem for error call.
8372
28e698f1
PM
83732011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8374
8375 * common/signals.c (target_signal_from_host): Add _ markup to error
8376 function call message.
8377 (target_signal_to_host): Add _ markup and remove trailing new line
8378 from warning call message.
8379 (target_signal_from_command): Add _ markup to error function call
8380 message.
8381
99c3dc11
PM
83822011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8383
f33edef8 8384 PR python/12149
99c3dc11
PM
8385
8386 * python/python.c (gdbpy_write): Accept a stream argument and
8387 operate to the appropriate stream.
8388 (gdbpy_flush): Likewise.
8389 (_initialize_python): Add stream constants.
8390 (finish_python_initialization): Add GdbOutputErrorFile class.
8391
c20800be
KY
83922011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8393
8394 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8395
f4a1794a
KY
83962011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8397
8398 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8399 to store_signed_integer. Add debug message when relocating CALL
8400 instructions. Fix formatting of debug message.
8401 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8402
d4862372
JB
84032011-03-17 Joel Brobecker <brobecker@gnat.com>
8404
8405 * target.h (struct target_ops): Remove to_lookup_symbol field.
8406 (target_lookup_symbol): Delete macro.
8407 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8408 (update_current_target, setup_target_debug): Remove handling
8409 of to_lookup_symbol target_ops field.
8410 * ada-tasks.c (get_known_tasks_addr): Remove use of
8411 target_lookup_symbol.
8412 * coffread.c (coff_symtab_read): Likewise.
8413 * dbxread.c (read_dbx_symtab): Ditto.
8414
d645e32e
JB
84152011-03-17 Joel Brobecker <brobecker@gnat.com>
8416
8417 PR gdb/12116:
8418 * configure.ac: Add getthrds declaration check.
8419 * configure, config.in: Regenerate.
8420 * aix-thread.c (getthrds): Declare only if not already declared
8421 in procinfo.h. More declaration out of get_signaled_thread to
8422 global scope.
8423
29703da4
PM
84242011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8425
8426 * python/py-symtab.c: Populate symtab_object_methods,
8427 sal_object_methods.
8428 (stpy_is_valid): New function.
8429 (salpy_is_valid): Ditto.
8430 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8431 (sympy_is_valid): New function.
8432 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8433 (objfpy_is_valid): New function.
8434 * python/py-inferior.c: Populate inferior_object_methods.
8435 (infpy_is_valid): New function.
8436 * python/py-infthread.c: Populate thread_object_methods.
8437 (thpy_is_valid): New function.
8438 * python/py-block.c: Declare block_object_methods. Populate. Declare
8439 block_iterator_object_methods. Populate.
8440 (blpy_is_valid): New function.
8441 (blpy_iter_is_valid): Ditto.
8442
c00f8484
KS
84432011-03-16 Keith Seitz <keiths@redhat.com>
8444
8445 * linespec.c (find_methods): Canonicalize NAME before looking
8446 up the symbol.
8447 (name_end): New function.
8448 (keep_name_info): New function.
8449 (decode_line_1): Use keep_name_info.
8450 (decode_compound): Likewise.
8451 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8452 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8453
8454 PR c++/12273
8455 * linespec.c (locate_first_half): Keep overload information, too.
8456 (decode_compound): Use a string to represent break characters
8457 to escape the loop.
8458 If P points to a break character, do not increment it.
8459 For C++ and Java, keep overload information and relevant keywords.
8460 If we cannot find a symbol, search the minimal symbols.
8461
8462 PR c++/11734
8463 * linespec.c (decode_compound): Rename SAVED_ARG to
8464 THE_REAL_SAVED_ARG.
8465 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8466 single-quotes.
8467 Pass a valid block to lookup_symbol.
8468 (lookup_prefix_sym): Likewise.
8469 (find_method): Construct search name based on SYM_CLASS instead
8470 of SAVED_ARG.
8471 * psymtab.c (lookup_partial_symbol): Add language parameter.
8472 (lookup_symbol_aux_psymtabs): Likewise.
8473 Don't assume that the psymtab we found was the right one. Search
8474 for the desired symbol in the symtab to be certain.
8475 (psymtab_search_name): New function.
8476 (lookup_partial_symbol): Use psymtab_search_name.
8477 Add language parameter.
8478 (read_symtabs_for_function): Add language parameter and pass to
8479 lookup_partial_symbol.
8480 (find_symbol_file_from_partial): Likewise.
8481
c91513d8
PP
84822011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8483
8484 PR gdb/12528
8485 * dwarf2read.c (noop_record_line): New function.
8486 (dwarf_decode_lines): Ignore line tables for GCd functions.
8487
b37520b6
PM
84882011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8489
8490 Fix ARI warnings about new lines at the end of messages, which
8491 are unneeded as there is a new line added at the end of the message
8492 automatically.
8493 * darwin-nat.c (darwin_stop_inferior): Ditto.
8494 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8495 * dfp.c (decimal_to_number): Ditto.
8496 * exec.c (print_section_info): Ditto.
8497 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8498 * osdata.c (get_osdata): Ditto.
8499 * record.c (bfdcore_write): Ditto.
8500 * remote-mips.c (mips_readchar): Ditto.
8501 * remote.c (read_ptid): Ditto.
8502 * ser-mingw.c (ser_windows_raw): Ditto.
8503 * tracepoint.c (add_local_symbols): Ditto.
8504 * windows-nat.c (fake_create_process): Ditto.
8505
b08ee6a2
TT
85062011-03-16 Tom Tromey <tromey@redhat.com>
8507
8508 * tracepoint.c (stop_tracing): Don't declare.
8509 * event-top.c (after_char_processing_hook): Add `(void)'.
8510
9a6f1302
PM
85112011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8512
8513 * NEWS: Add Parameter sub-classing description.
8514
7ceb86b1
KT
85152011-03-16 Kai Tietz <ktietz@redhat.com>
8516
8517 * MAINTAINERS: Update my e-mail address.
8518
efeff6cf
AT
85192011-03-15 Andreas Tobler <andreast@fgznet.ch>
8520
8521 * MAINTAINERS: Add myself for write after approval privileges.
8522
681c238c
MS
85232011-03-15 Michael Snyder <msnyder@vmware.com>
8524
f3df5b08
MS
8525 * frame.c (find_frame_sal): Assert sym is not null.
8526
13f6513c
MS
8527 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8528
50412521
MS
8529 * objc-lang.c (selectors_info): Check strchr for null result.
8530
681c238c
MS
8531 * stabsread.c (define_symbol): Guard against bad stabstring input.
8532
6ced1581
PM
85332011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8534
8535 Remove trailing spaces and tabulations from pascal language
8536 support sources.
8537 p-exp.y: Ditto.
8538 p-lang.c: Ditto.
8539 p-lang.h: Ditto.
8540 p-valprint.c: Ditto.
8541
9373cf26
JK
85422011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8545 than LOW. Comment it.
8546 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8547 HIGHPC not strictly higher than LOWPC.
8548
9a1edae6
PM
85492011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8550
8551 Fix formatting of function declarations returning a pointer in
8552 previous commit.
8553 * varobj.c (varobj_add_child): Ditto.
8554 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8555 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8556
24e9cda0
UW
85572011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8558
8559 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8560 for the "generic" vector ABI used with GCC 4.3 and later.
8561 (ppc64_sysv_abi_return_value): Likewise.
8562
85632011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8564
8565 * infcall.c (call_function_by_hand): Function return value is
8566 always a non_lval, even when using struct_return.
8567
c9174737
PA
85682011-03-15 Pedro Alves <pedro@codesourcery.com>
8569
8570 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8571 (map_display_numbers): New.
8572 (do_delete_display): New.
8573 (undisplay_command): Use map_display_numbers.
8574 (do_enable_disable_display): New.
8575 (enable_disable_display_command): New function.
8576 (enable_display): Delete.
8577 (enable_display_command): New.
8578 (disable_display_command): Reimplement.
8579 (_initialize_printcmd): Adjust "enable display" command to use
8580 `enable_display_command' as callback.
8581
350c6c65
PM
85822011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8583
8584 * NEWS: Add Python breakpoint 'stop' operation.
8585
824446ad
PM
85862011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8587
8588 * NEWS: Delete duplicate entry. Fix typo.
8589
2021ad3a
PM
85902011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8591
8592 Fix ARI warning about function names in first column.
8593 Put prototype declaration on same line as return type.
8594 * objc-exp.y: Ditto.
8595 * p-exp.y: Ditto.
8596 * python/py-stopevent.h: Ditto.
8597 For long function names, split parameters to
8598 allow function name on same line as return type.
8599 * solib-pa64.c: Ditto.
8600 * varobj.c: Ditto.
8601 * varobj.h: Ditto.
8602 For long function declaration, use single line.
8603 * hppa-tdep.h: Ditto.
8604 * inferior.h: Ditto.
8605
7371cf6d
PM
86062011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8607
8608 * python/python.h: Declare gdbpy_should_stop and
8609 gdbpy_breakpoint_has_py_cond.
8610 * python/python.c: Add python.h to includes. Remove python.h from
8611 HAVE_PYTHON definition
8612 (gdbpy_should_stop): New dummy function.
8613 (gdbpy_breakpoint_has_py_cond): New dummy function.
8614 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8615 sub-classing capabilities.
8616 (gdbpy_should_stop): New function.
8617 (gdbpy_breakpoint_has_py_cond): New function.
8618 (local_setattro): New function.
8619 * breakpoint.c (condition_command): Add check for Python 'stop'
8620 operation.
8621 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8622 operation function as part of stop/continue tests.
8623
37b50a69
TT
86242011-03-14 Tom Tromey <tromey@redhat.com>
8625
8626 PR gdb/12576:
8627 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8628 (needs_frame_dwarf_call): Likewise.
8629
eeae04df
PM
86302011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8631
8632 Fix ARI warning about functions without parameters that do not
8633 use (void).
8634 * breakpoint.c (all_tracepoints): Replace () by (void).
8635 * f-exp.y (match_string_literal): Ditto.
8636 (yylex): Ditto.
8637 * m2-exp.y (yylex): Ditto.
8638 * mep-tdep.c (current_me_module): Ditto.
8639 (current_options): Ditto.
8640 (current_cop_data_bus_width): Ditto.
8641 (current_cr_names): Ditto.
8642 (current_cr_is_float): Ditto.
8643 (current_ccr_names): Ditto.
8644 * objc-exp.y (yylex): Ditto.
8645 * p-exp.y (yylex): Ditto.
8646 * remote.c (send_interrupt_sequence): Ditto.
8647 * tracepoint.c (current_trace_status): Ditto.
8648 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8649 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8650
6dc3565d
MS
86512011-03-11 Michael Snyder <msnyder@vmware.com>
8652
1427fe5e
MS
8653 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8654 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8655 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8656 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8657 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8658
60bc018f
MS
8659 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8660 (delete_async_event_handler): Ditto.
8661
f3be5b64
MS
8662 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8663
4c2d5724
MS
8664 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8665
6dc3565d
MS
8666 * top.c (set_verbose): Assert showcmd was found.
8667
4e6ca6d5
MG
86682011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8669
8670 * xtensa-tdep.c (warning_once): Correct style issues.
8671
815a83e4
YQ
86722011-03-11 Yao Qi <yao@codesourcery.com>
8673
8674 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8675
f2eb0bc8
AS
86762011-03-11 Andreas Schwab <schwab@redhat.com>
8677
8678 * common/aclocal.m4: Remove.
8679
b801de47
MG
86802011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8681
8682 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8683 (xtensa_write_register, xtensa_read_register): Likewise.
8684 (xtensa_hextochar): Removed.
8685 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8686
dbab50de
MG
86872011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8688
8689 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8690 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8691 (xtensa_alloc_frame_cache): Add initialization for new fields.
8692 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8693 (warning_once): New function.
8694 (xtensa_insn_kind): New item c0opc_and.
8695 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8696 (call0_track_op): Change arguments. New local variable litbase.
8697 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8698 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8699 in the prologue.
dbab50de 8700 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8701 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8702 Add the variety of updates to handle extended prologues, which now can
8703 conduct dynamic stack adjustments.
8704 (call0_frame_cache): Likewise.
8705 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8706 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8707
b2c04452
MS
87082011-03-10 Michael Snyder <msnyder@vmware.com>
8709
f8f67713
MS
8710 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8711 (cmd_qtframe): Ditto.
8712 (cmd_qtbuffer): Ditto.
8713 (cmd_bigqtbuffer): Ditto.
8714
197f0a60
TT
87152011-03-10 Tom Tromey <tromey@redhat.com>
8716
8717 * tracepoint.c (trace_actions_command): Update.
8718 * thread.c (thread_apply_command): Update.
8719 * reverse.c (delete_bookmark_command): Update.
8720 (bookmarks_info): Update.
8721 * printcmd.c (undisplay_command): Update.
8722 * memattr.c (mem_enable_command): Update.
8723 (mem_disable_command): Update.
8724 (mem_delete_command): Update.
8725 * inferior.c (detach_inferior_command): Update.
8726 (kill_inferior_command): Update.
8727 (remove_inferior_command): Update.
8728 * cli/cli-utils.h (struct get_number_or_range_state): New.
8729 (init_number_or_range): Declare.
8730 (get_number_or_range): Update.
8731 * cli/cli-utils.c (init_number_or_range): New function.
8732 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8733 static variables.
8734 (number_is_in_list): Update.
8735 * breakpoint.h (get_tracepoint_by_number): Update.
8736 * breakpoint.c (map_breakpoint_numbers): Update for change to
8737 get_number_or_range.
8738 (find_location_by_number): Use get_number, not
8739 get_number_or_range.
8740 (trace_pass_set_count): New function.
8741 (trace_pass_command): Update for change to get_number_or_range.
8742 Rework loop logic.
8743 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8744 'state' parameter.
8745
ecec24e6
PM
87462011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8747
8748 * python/py-param.c (add_setshow_generic): Add set/show callback
8749 parameters. Register Python object context.
8750 (get_show_value): New function.
8751 (get_set_value): New function.
8752 (call_doc_function): New function.
8753 (get_doc_string): Move behind get_show_value/get_set_value.
8754
6d6c6b1f
JK
87552011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8756
8757 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8758
68d6df83
MG
87592011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8760
dbab50de 8761 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8762 (xtensa_write_register): Likewise.
8763 (xtensa_hextochar): Add comment and update to match coding conventions.
8764 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8765 (execute_l32e, execute_s32e, execute_code): Update comments.
8766 (xtensa_exception_handler_t): Update to match coding conventions.
8767 (xtensa_insn_kind): Likewise.
8768
85c9d6a6
MS
87692011-03-09 Michael Snyder <msnyder@vmware.com>
8770
8771 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8772
91495617
PA
87732011-03-09 Pedro Alves <pedro@codesourcery.com>
8774
8775 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8776
eb8c0621
TT
87772011-03-09 Tom Tromey <tromey@redhat.com>
8778
8779 * thread.c (restore_selected_frame): Handle frame_level == -1.
8780 (make_cleanup_restore_current_thread): Use
8781 get_selected_frame_if_set.
8782 * frame.h (get_selected_frame_if_set): Declare.
8783 * frame.c (get_selected_frame_if_set): New function.
8784
9f37bbcc
PA
87852011-03-09 Pedro Alves <pedro@codesourcery.com>
8786
8787 * cli/cli-cmds.c (shell_escape): Use lbasename.
8788 * coffread.c (coff_start_symtab): Constify parameter.
8789 (complete_symtab): Constify `name' parameter.
8790 (coff_symtab_read): Constify `filestring' local.
8791 (coff_getfilename): Constify return and `result' local.
8792 Use lbasename.
8793 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8794 * linux-fork.c (info_checkpoints_command): Use lbasename.
8795 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8796 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8797 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8798 * procfs.c (procfs_make_note_section): Use lbasename.
8799 * tui/tui-io.c (printable_part): Constity return and parameter.
8800 Use lbasename.
8801 (print_filename): Constify parameters, and local `s'.
8802 (tui_rl_display_match_list): Constify local `temp'.
8803
f8de3c55
JK
88042011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8805
8806 Revert:
8807 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8808 Fix DWARF-3+ DW_AT_accessibility default assumption.
8809 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8810 cu->header.version >= 3.
8811
d9837b00
YQ
88122011-03-09 Yao Qi <yao@codesourcery.com>
8813
8814 * common/Makefile.in: Remove.
8815 * common/configure: Remove.
8816 * common/configure.ac: Remove.
8817
e637a4f5
YQ
88182011-03-09 Yao Qi <yao@codesourcery.com>
8819
8820 Revert:
8821 2011-02-11 Yao Qi <yao@codesourcery.com>
8822
8823 * common/Makefile.in: Add copyright header.
8824
8825 2011-02-11 Yao Qi <yao@codesourcery.com>
8826
8827 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8828 libcommon.a.
8829 * configure.ac: Add common to sub dir.
8830 * configure: Regenerate.
8831
f976a05d
MG
88322011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8833
8834 * xtensa-tdep.c (call0_ret): New function.
8835 (xtensa_skip_prologue): Speed up analysis.
8836
57041825
MG
88372011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8838
8839 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8840 while executing MI command -data-list-changed-registers.
8841
08b9c608
MG
88422011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8843
8844 * xtensa-tdep.c (xtensa_read_register): New function.
8845 (xtensa_write_register): New function.
8846 (xtensa_find_register_by_name): New function.
8847 (xtensa_windowed_frame_cache): Update comments in type description.
8848 (xtensa_frame_cache): Likewise.
8849 (xtensa_window_interrupt_insn): New function.
8850 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8851 (xtensa_insn_kind): Add new instructions.
8852 (rwx_special_register): New function.
8853 (call0_classify_opcode): Add new instructions to the analysis.
8854 (a0_saved, a7_saved, a11_saved): New variables.
8855 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8856 (execute_l32e): New function.
8857 (execute_s32e): New function.
8858 (xtensa_exception_handler_t): New type.
8859 (execute_code): New function.
8860 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8861 analysis for Xtensa Window Exception handlers.
8862
4d1acb11
MG
88632011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8864
98689b25
MG
8865 * xtensa-tdep.c (TX_PS): New.
8866 (windowing_enabled): Update to count for Call0 ABI.
8867 (xtensa_hextochar): New.
8868 (xtensa_init_reggroups): Make algorithm generic.
8869 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8870
88712011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8872
8873 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8874
d3f323f3
MS
88752011-03-08 Michael Snyder <msnyder@vmware.com>
8876
3dcabaa8
MS
8877 * i386-tdep.c (i386_follow_jump): Check return value of
8878 target_read_memory.
8879 (i386_analyze_struct_return): Ditto.
8880 (i386_skip_probe): Ditto.
8881 (i386_match_insn): Ditto.
8882 (i386_skip_noop): Ditto.
8883 (i386_analyze_frame_setup): Ditto.
8884 (i386_analyze_register_saves): Ditto.
8885 (i386_skip_prologue): Ditto.
8886 (i386_skip_main_prologue): Ditto.
8887
13b3fd9b
MS
8888 * target.c (read_whatever_is_readable): Fix memory leak.
8889
d3f323f3
MS
8890 * i386-tdep.c (i386_process_record): Document fall through.
8891
421d5c74
JK
88922011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8893
8894 Fix DWARF-3+ DW_AT_accessibility default assumption.
8895 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8896 cu->header.version >= 3.
8897
63154eca
PA
88982011-03-08 Pedro Alves <pedro@codesourcery.com>
8899
8900 * remote.c (remote_check_symbols): Skip if the target has no
8901 execution.
8902
f1a507a1
JB
89032011-03-08 Joel Brobecker <brobecker@adacore.com>
8904
8905 * target.c (read_whatever_is_readable): Reformat comment,
8906 with a minor typo fix. Minor reformatting of the code.
8907
36073a92
YQ
89082011-03-08 Yao Qi <yao@codesourcery.com>
8909
8910 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8911 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8912 Use cached result instead of calling displaced_in_arm_mode again.
8913 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8914 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8915 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8916 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8917 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8918 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8919 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8920 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8921 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8922 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8923 (arm_catch_kernel_helper_return): Likewise.
8924 * gdb/arm-tdep.h : Update function declarations.
8925
d3f323f3 89262011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8927
e0e40094
MS
8928 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8929
0b2381f5
MS
8930 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8931
0350914a
MS
8932 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8933
69feea6f
MS
8934 * elfread.c (elf_symtab_read): Stop memory leak.
8935
e6040cbd
MS
8936 * main.c (captured_main): Fix memory leak.
8937
052874e8
AS
89382011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8939
8940 * ada-lang.c (compare_names): Call is_name_suffix with string1
8941 instead of string2.
8942
b11896a5
TT
89432011-03-07 Tom Tromey <tromey@redhat.com>
8944
8945 * xcoffread.c (xcoff_sym_fns): Update.
8946 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8947 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8948 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8949 (symbol_file_add_with_addrs_or_offsets): Likewise.
8950 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8951 * somread.c (som_sym_fns): Update.
8952 * psymtab.h (require_partial_symbols): Declare.
8953 * psymtab.c (require_partial_symbols): New function.
8954 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8955 (ALL_OBJFILE_PSYMTABS): Undef.
8956 (ALL_PSYMTABS): Move from psympriv.h.
8957 (lookup_partial_symtab, find_pc_sect_psymtab)
8958 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8959 (find_last_source_symtab_from_partial)
8960 (forget_cached_source_info_partial)
8961 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8962 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8963 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8964 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8965 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8966 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8967 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8968 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8969 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8970 psymtabs.
8971 * mipsread.c (ecoff_sym_fns): Update.
8972 * machoread.c (macho_sym_fns): Update.
8973 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8974 (read_psyms): New function.
8975 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8976 (elf_sym_fns_lazy_psyms): New global.
8977 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8978 dwarf2_build_psymtabs.
8979 * dbxread.c (aout_sym_fns): Update.
8980 * coffread.c (coff_sym_fns): Update.
8981
fda326dd
TT
89822011-03-07 Tom Tromey <tromey@redhat.com>
8983
8984 * infrun.c (print_exited_reason): Include inferior id and pid in
8985 message.
8986
aeaec162
TT
89872011-03-07 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8990 parameter.
8991 (target_has_execution_1): Update.
8992 (target_has_execution_current): Declare.
8993 (target_has_execution): Call target_has_execution_current.
8994 (default_child_has_execution): Update.
8995 * target.c (default_child_has_execution): Add 'the_ptid'
8996 parameter.
8997 (target_has_execution_1): Likewise.
8998 (target_has_execution_current): New function.
8999 (add_target): Update.
9000 (init_dummy_target): Update.
9001 * remote-m32r-sdi.c (m32r_has_execution): New function.
9002 (init_m32r_ops): Use it.
9003 * record.c (record_core_has_execution): Now static. Add
9004 'the_ptid' parameter.
9005 * inferior.c (have_live_inferiors): Don't save current thread.
9006 Use target_has_execution_1.
9007
08e14083
YQ
90082011-03-07 Yao Qi <yao@codesourcery.com>
9009
9010 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9011
c05d19c5
JB
90122011-03-07 Joel Brobecker <brobecker@adacore.com>
9013
9014 * elfread.c (elf_symtab_read): Minor reformatting.
9015
3e6ef9e4
JB
90162011-03-07 Joel Brobecker <brobecker@adacore.com>
9017
9018 * objc-lang.c (selectors_info): Minor reformatting.
9019
dbb8534f
JB
90202011-03-07 Joel Brobecker <brobecker@adacore.com>
9021
9022 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9023
dd70cc93
JB
90242011-03-07 Joel Brobecker <brobecker@adacore.com>
9025 Michael Snyder <msnyder@vmware.com>
9026
9027 * ada-valprint.c (ada_val_print_array): Move the declaration of
9028 "byte_order" and "elttype" inside the block where these variables
9029 are actually used. Remove some special handling for the case
9030 where "elttype" and "eltlen" are null. Replace by a comment
9031 and a couple of assertion checks.
9032
b27cf2b3
MS
90332011-03-05 Michael Snyder <msnyder@vmware.com>
9034
9035 * source.c (add_path): Replace semicolon at end of block.
9036 * dwarf2expr.c (execute_stack_op): Ditto.
9037
5387a0c6
MF
90382011-03-05 Mike Frysinger <vapier@gentoo.org>
9039
9040 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9041 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9042 (bfin-*-*): Likewise.
9043
e3aa49af
MS
90442011-03-05 Michael Snyder <msnyder@vmware.com>
9045
82ae4854
MS
9046 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9047 * mdebugread.c (parse_symbol): Ditto.
9048 * parse.c (parse_exp_in_context): Ditto.
9049 * source.c (add_path): Ditto.
9050 * utils.c (gnu_debuglink_crc32): Ditto.
9051 * varobj.c (variable_language): Ditto.
9052
e3aa49af
MS
9053 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9054
154f592e
MS
90552011-03-04 Michael Snyder <msnyder@vmware.com>
9056
da3ecdc6
MS
9057 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9058
9cc89665
MS
9059 * symfile.c (simple_overlay_update): Check for null return value
9060 from lookup_minimal_symbol.
9061
154f592e
MS
9062 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9063
63ffa6ee
TJB
90642011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9065
9066 * eval.c (parse_and_eval_address_1): Remove function.
9067 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9068 instead of parse_and_eval_address_1.
9069 * value.h (parse_and_eval_address_1): Remove prototype.
9070
a17d146e
MS
90712011-03-04 Michael Snyder <msnyder@vmware.com>
9072
9073 * remote.c (putpkt_binary): Document that case stmt falls through.
9074
1a6a67de
TJB
90752011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9076
9077 * breakpointc (print_it_typical): Move NULL check from here...
9078 (print_bp_stop_message): ... to here.
9079
488919c4
MS
90802011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9081
9082 * breakpoint.c (enable_command): Use break instead of continue,
9083 and fill in a missing break.
9084 (disable_command): Ditto.
9085
1e182ce8
UW
90862011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9087
9088 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9089 (terminal_save_ours): Remove misleading comment.
9090 (inflow_inferior_data_cleanup): Free ttystate.
9091 (inflow_inferior_exit): Likewise.
9092 (copy_terminal_info): Copy ttystate.
9093
9094 * serial.c (serial_copy_tty_state): New function.
9095 * serial.h (serial_copy_tty_state): Add prototype.
9096 (struct serial_ops): Add copy_tty_state callback.
9097 * ser-base.c (ser_base_copy_tty_state): New function.
9098 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9099 * ser-go32.c (dos_copy_tty_state): New function.
9100 (dos_ops): Install copy_tty_state callback.
9101 * ser-mingw.c (_initialize_ser_windows): Likewise.
9102 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9103 * ser-unix.c (hardwire_copy_tty_state): New function.
9104 (_initialize_ser_hardwire): Install it.
9105
b2c5f112
MS
91062011-03-04 Michael Snyder <msnyder@vmware.com>
9107
2abae994
MS
9108 * breakpoint.c (create_breakpoint): Add missing break statement.
9109
7f5936f9
MS
9110 Reverting this patch:
9111 * infcall.c (call_function_by_hand): Add break statements for lint.
9112
b2c5f112
MS
9113 Reverting this patch:
9114 * cli/cli-script.c (script_from_file): Add break for lint.
9115
42b1321c
MS
91162011-03-04 Michael Snyder <msnyder@vmware.com>
9117
9118 * solib.c (reload_shared_libraries_1): Close memory leak.
9119
3e2a0cee
TT
91202011-03-03 Tom Tromey <tromey@redhat.com>
9121
9122 PR gdb/12538:
9123 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9124 DW_STRING is NULL.
9125
58397cb7
MS
91262011-03-03 Michael Snyder <msnyder@vmware.com>
9127
2e3fd767
MS
9128 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9129 fields of struct 'st' to zero.
9130
58397cb7
MS
9131 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9132 sal.pspace before calling set_current_source_symtab_and_line.
9133
ced54c8f
YQ
91342011-03-03 Yao Qi <yao@codesourcery.com>
9135
9136 * Makefile.in (configure-common): Remove. Let Makefile
9137 in dir common to rebuild itself.
9138 (common/Makefile): Likewise.
9139
3351ea09
JB
91402011-03-03 Joel Brobecker <brobecker@adacore.com>
9141
9142 * utils.c (parse_escape): Add i18n markup in error message.
9143
bf9f652a
YQ
91442011-03-03 Yao Qi <yao@codesourcery.com>
9145
9146 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9147 ARM_PC_REGNUM.
9148 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9149 (displaced_write_reg, displaced_read_reg): Likewise.
9150 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9151 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9152 (cleanup_branch): Replace magic number 14 and 15 with
9153 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9154
d42de051
MS
91552011-03-02 Michael Snyder <msnyder@vmware.com>
9156
240f9570
MS
9157 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9158
10dd8b54
MS
9159 * cli/cli-script.c (script_from_file): Add break for lint.
9160
b98bd911
MS
9161 * mdebugread.c (parse_partial_symbols): Fix indent.
9162
3494b66d
MS
9163 * target-descriptions.c (tdesc_gdb_type): No need to call
9164 xstrdup, callee saves a copy.
9165
daac021a
MS
9166 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9167
c38d16a7
MS
9168 * infcall.c (call_function_by_hand): Add break statements for lint.
9169
905b671b
MS
9170 * utils.c (parse_escape): Escape the escape char.
9171
f2eb0bc8 9172 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9173 PyList_Append fails.
9174 (gdbpy_inferiors): Error out if build_inferior_list fails.
9175
8c6a60d1
MS
9176 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9177 a function call.
9178
d42de051
MS
9179 * record.c (record_restore): Move printf to before error return.
9180
4db71c0b
YQ
91812011-03-02 Yao Qi <yao@codesourcery.com>
9182
9183 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9184 is_thumb and insn_size.
9185 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9186 on both ARM and Thumb mode.
9187 (arm_process_displaced_insn): Set is_thumb and insn_size.
9188 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9189 (arm_displaced_step_fixup): Likewise.
9190
a9dc8dcc
MS
91912011-03-01 Michael Snyder <msnyder@vmware.com>
9192
53624a93
MS
9193 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9194
77766669
MS
9195 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9196
62d5b8da
MS
9197 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9198
5e9e105f
MS
9199 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9200
dc19db01
MS
9201 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9202 with xmalloc.
9203
5ce64950
MS
9204 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9205 which shadows function parameter.
9206
a0aa2878
MS
9207 * tracepoint.c (create_tsv_from_upload): Superfluous call
9208 to xstrdup. Callee already calls xstrdup.
9209
e325fb69
MS
9210 * linespec.c (decode_line_1): Remove unnecessary null check.
9211
21cbba77
MS
9212 * tracepoint.c (scope_info): Fix mem leak, remove underused
9213 variable.
9214
63360adc
MS
9215 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9216 superfluous null check.
9217
18ea20ac 9218 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9219 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9220
d014929c
MS
9221 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9222
6e9130cf
MS
9223 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9224 be null.
9225
5f01dbc0
MS
9226 * linespec.c (decode_line_1): Check for null before dereference.
9227
d684ab85
MS
9228 * reverse.c (record_restore): Move null-check to before pointer
9229 dereference.
9230
bfffb7e3
MS
9231 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9232
a9dc8dcc
MS
9233 * objc-lang.c (selectors_info): Add explanitory comment.
9234 (classes_info): Ditto.
9235
478fd957
UW
92362011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9237
9238 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9239 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9240 versions of the trampoline. Handle Thumb vs. ARM addresses.
9241 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9242 (arm_linux_init_abi): Install it.
9243 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9244 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9245
0480cefa
MS
92462011-02-28 Michael Snyder <msnyder@vmware.com>
9247
ac50ab3b
MS
9248 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9249 a little bigger, to avoid possibility of an overflow.
9250
f63fbe86
MS
9251 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9252 buffers a little bigger, to avoid possibility of an overflow.
9253
9e91a352
MS
9254 * coffread.c (coff_getfilename): Add check to avoid overflow.
9255
f2eb0bc8 9256 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9257 avoid overflow.
9258 (classes_info): Error out on too long REGEXP.
9259
098ab512
MS
9260 * infrun.c (handle_inferior_event): Remove unused function call.
9261
bcbd1de9
MS
9262 * fork-child.c (fork_inferior): Remove ifdef'd code and
9263 unused variable.
9264
2e456570
MS
9265 * linux-thread-db.c (attach_thread): Discard unused value.
9266
14571dad
MS
9267 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9268
a9cbf802
MS
9269 * remote.c (remote_get_noisy_reply): Discard unused value.
9270 (remote_vcont_resume): Ditto.
9271 (remote_stop_ns): Ditto.
9272
5715d26e
MS
9273 * linespec.c (decode_objc): Delete unused variable.
9274
4a9bca80
MS
9275 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9276
f47fb265
MS
9277 * dwarf2read.c (add_partial_symbol): Discard unused values.
9278 (read_base_type): Delete unused variable.
9279
e81cff30
MS
9280 * dbxread.c (read_dbx_symtab): Discard unused value.
9281
262acaeb
MS
9282 * eval.c (evaluate_subexp_standard): Delete unused variable,
9283 and discard unused values.
9284
df983543
MS
9285 * infcmd.c (_initialize_infcmd): Discard unused values.
9286
89acf84d
MS
9287 * stabsread.c (rs6000_builtin_type): Missing break statement.
9288
ab8b8aca
MS
9289 * dbxread.c (process_one_symbol): Discard unused value.
9290
6b4511ab
MS
9291 * coffread.c (coff_end_symtab): Delete unused variable.
9292
e8e80198
MS
9293 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9294 (dwarf2_add_typedef): Delete unused variable.
9295 (read_namespace): Ditto.
9296 (dwarf_decode_macros): Ditto.
9297
976aa66e
MS
9298 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9299
5b92b49f
MS
9300 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9301
91e8df85
MS
9302 * p-valprint.c (pascal_val_print): Discard unused value.
9303
899500d6
MS
9304 * utils.c (nquery): Call va_end before return;
9305 (yquery): Ditto.
9306 (query): Ditto.
9307
0480cefa
MS
9308 * proc-service.c (ps_plog): Call va_end before return.
9309
fb6a3ed3
TT
93102011-02-28 Tom Tromey <tromey@redhat.com>
9311
9312 * python/python.c (gdbpy_value_cst): New global.
9313 (_initialize_python): Initialize it.
9314 * python/python-internal.h (gdbpy_value_cst): Declare.
9315 * python/py-value.c (convert_value_from_python): Use
9316 gdbpy_value_cst.
9317
c05202a1
MS
93182011-02-28 Michael Snyder <msnyder@vmware.com>
9319
e463f587
MS
9320 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9321
c38eea1a
MS
9322 * breakpoint.c (catch_syscall_completer): Free malloced list.
9323
3ef09ab5
MS
9324 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9325
8f9a01ee
MS
9326 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9327 (lval_func_check_synthetic_pointer): Ditto.
9328 (lval_func_free_closure): Fix use-after-free.
c05202a1 9329
477d0d57
TT
93302011-02-28 Tom Tromey <tromey@redhat.com>
9331
9332 * psymtab.c (expand_partial_symbol_tables): Use
9333 ALL_OBJFILE_PSYMTABS.
9334
20937029
JK
93352011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9336
9337 * objc-lang.c (selectors_info): Error on too long REGEXP.
9338
907b7f4f
MS
93392011-02-28 Michael Snyder <msnyder@vmware.com>
9340
92e96192
MS
9341 * python/py-param.c (set_parameter_value): Add missing
9342 break statement.
9343
907b7f4f
MS
9344 * linux-record.c (record_linux_system_call): Add missing
9345 break statement.
9346
12c5a436
UW
93472011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9348
9349 * breakpoint.c (print_one_breakpoint_location): Remove unused
9350 argument PRINT_ADDRESS_BITS. Update callers.
9351 (print_one_breakpoint): Likewise.
9352
170b53b2
UW
93532011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9354
9355 * breakpoint.c (wrap_indent_at_field): New function.
9356 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9357 Allocate ui_stream locally instead of using STB argument.
9358 (print_one_breakpoint_location): Update call.
9359 * ui-out.c (ui_out_query_field): New function.
9360 * ui-out.h (ui_out_query_field): Add prototype.
9361
8ab1f94d
JB
93622011-02-28 Joel Brobecker <brobecker@adacore.com>
9363
9364 From Michael Snyder <msnyder@vmware.com>
9365 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9366
7d488639
MS
93672011-02-27 Michael Snyder <msnyder@vmware.com>
9368
ae179fba
MS
9369 * objc-lang.c (selectors_info): Prevent string overrun.
9370
086dbf66
MS
9371 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9372 error in strncpy.
9373
f2eb0bc8 9374 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9375 outer scope.
9376
7d488639
MS
9377 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9378 param with a local variable of the same name.
9379
3bd0f5ef
MS
93802011-02-27 Michael Snyder <msnyder@vmware.com>
9381
9382 * value.c (value_from_history_ref): New function.
9383 * value.h (value_from_history_ref): Export.
9384 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9385 to parse value history references.
9386 * cli/cli-utils.h (get_number_trailer): Update comment.
9387
93882011-02-27 Michael Snyder <msnyder@vmware.com>
9389
9390 * inferior.c (detach_inferior_command): Use get_number_or_range.
9391 (kill_inferior_command): Ditto.
9392 (remove_inferior_command): Ditto.
9393 (initialize_inferiors): Make command names plural.
9394 Update help strings.
9395
766062f6
MS
93962011-02-27 Michael Snyder <msnyder@vmware.com>
9397
9398 * darwin-nat-info.c: Fix comment typo.
9399 * dwarf2expr.h: Ditto.
9400 * fbsd-nat.c: Ditto.
9401 * fbsd-nat.h: Ditto.
9402 * frame-unwind.h: Ditto.
9403 * frame.h: Ditto.
9404 * hppa-hpux-tdep.c: Ditto.
9405 * i386-linux-nat.c: Ditto.
9406 * linux-nat.c: Ditto.
9407 * nbsd-nat.c: Ditto.
9408 * nbsd-nat.h: Ditto.
9409 * ppc-linux-tdep.c: Ditto.
9410 * serial.c: Ditto.
9411 * ui-file.h: Ditto.
9412 * tui/tui-winsource.c: Ditto.
9413
f2c4ead5
MS
94142011-02-26 Michael Snyder <msnyder@vmware.com>
9415
86b887df
MS
9416 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9417
66fd3b1e
MS
9418 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9419
8c814cdd
MS
9420 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9421 with a local variable of the same name.
9422
6d5e094a 9423 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9424 param with a local variable of the same name.
6d5e094a 9425 (i387_supply_xsave): Ditto.
e5b3d7d6 9426
5eee517d
MS
9427 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9428 that it does not shadow a function parameter.
9429
8fbf6b93
MS
9430 * i386-nat.c (i386_length_and_rw_bits): Document that case
9431 statement is meant to fall through.
9432
cb969d61
MS
9433 * expprint.c (dump_subexp_body_standard): Document that case
9434 statement is meant to fall through.
9435
f2c4ead5
MS
9436 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9437 dead if statement. Condition can't be false.
9438
b021a221
MS
94392011-02-25 Michael Snyder <msnyder@vmware.com>
9440
9441 * arm-tdep.c: Fix typos in comments.
9442 * bsd-uthread.c: Ditto.
9443 * completer.c: Ditto.
9444 * corelow.c: Ditto.
9445 * cp-namespace.c: Ditto.
9446 * cp-support.c: Ditto.
9447 * cris-tdep.c: Ditto.
9448 * dbxread.c: Ditto.
9449 * dwarf2read.c: Ditto.
9450 * frame.h: Ditto.
9451 * gdbtypes.h: Ditto.
9452 * inferior.h: Ditto.
9453 * mdebugread.c: Ditto.
9454 * mips-tdep.c: Ditto.
9455 * ppc-linux-nat.c: Ditto.
9456 * ppc-linux-tdep.c: Ditto.
9457 * printcmd.c: Ditto.
9458 * sol-thread.c: Ditto.
9459 * solib-frv.c: Ditto.
9460 * solist.h: Ditto.
9461 * sparc64-tdep.c: Ditto.
9462 * spu-tdep.c: Ditto.
9463 * stabsread.c: Ditto.
9464 * symfile.c: Ditto.
9465 * valops.c: Ditto.
9466 * varobj.c: Ditto.
9467 * vax-nat.c: Ditto.
9468 * python/py-block.c: Ditto.
9469 * python/py-symbol.c: Ditto.
9470 * python/py-symtab.c: Ditto.
9471 * python/py-value.c: Ditto.
9472 * tui/tui-win.c: Ditto.
9473
c82c0b55
MS
94742011-02-25 Michael Snyder <msnyder@vmware.com>
9475
9476 * inferior.c (print_inferior): Accept a string instead of an int
9477 for requested_inferiors, and use get_number_or_range to parse it.
9478 (info_inferiors_command): Pass args string to print_inferior.
9479 (initialize_inferiors): Change help string for info inferiors.
9480 * inferior.h (print_inferior): Export prototype change.
9481
ee00cd23
TT
94822011-02-25 Tom Tromey <tromey@redhat.com>
9483
9484 * common/ax.def (invalid2): Set to 0x31.
9485
0502ed8c
JK
94862011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9489 L and plongest.
9490 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9491 use L and plongest.
9492 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9493
2c9de912
MS
94942011-02-24 Michael Snyder <msnyder@vmware.com>
9495
9496 * Makefile.in (clean): Make clean should remove generated files
9497 observer.h and observer.inc.
9498
a04b0428
JB
94992011-02-24 Joel Brobecker <brobecker@adacore.com>
9500
9501 Revert the following patch (not approved yet):
9502 2011-02-21 Hui Zhu <teawater@gmail.com>
9503 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9504 * ax-gdb.c (gen_printf_expr_callback): New function.
9505 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9506 * ax-general.c (ax_memcpy): New function.
9507 (ax_print): Handle "printf".
9508 (ax_reqs): Ditto.
9509 * ax.h (ax_memcpy): Forward declare.
9510 * common/ax.def (invalid2): Removed.
9511 (printf): New entry.
9512 * printcmd.c (printcmd.h): New include.
9513 (string_printf): New function.
9514 (ui_printf): Removed.
9515 (printf_command): Remove static. Call string_printf.
9516 (eval_command): Call string_printf.
9517 * printcmd.h: New file.
9518 * tracepoint.c (validate_actionline,
9519 encode_actions_1): handle printf_command.
9520
2b52013f
TT
95212011-02-23 Tom Tromey <tromey@redhat.com>
9522
9523 * ax-general.c (ax_pick): Add missing newline.
9524
e5a67952
MS
95252011-02-23 Michael Snyder <msnyder@vmware.com>
9526
9527 * breakpoint.c (breakpoint_1): Change first argument from an int
9528 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9529 breakpoints rather than just one. Use new function
e5a67952
MS
9530 'number_is_in_list' to implement.
9531 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9532 (watchpoints_info): Ditto.
9533 (tracepoints_info): Ditto.
9534 (maintenance_info_breakpoints): Ditto.
9535 (_initialize_breakpoint): Update help strings to reflect the fact
9536 that these functions can now take more than one argument.
9537 * cli/cli-utils.c (number_is_in_list): New function.
9538 * cli/cli-utils.h (number_is_in_list): Export.
9539
95402011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9541
9542 * memattr.c (mem_enable_command): Use get_number_or_range.
9543 (mem_disable_command): Ditto.
9544 (mem_delete_command): Ditto.
9545 (_initialize_mem): Tweak usage message to reflect multiple
9546 arguments.
9547
6e6fbe60
DE
95482011-02-22 Doug Evans <dje@google.com>
9549
9550 Add gdb.lookup_global_symbol python function.
9551 * NEWS: Add entry.
9552 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9553 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9554 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9555
79b97fa8
TT
95562011-02-22 Tom Tromey <tromey@redhat.com>
9557
9558 * language.c (language_class_name_from_physname): Rename
9559 'curr_language' argument to 'lang'; use in body.
9560
298f437a
MS
95612011-02-22 Michael Snyder <msnyder@vmware.com>
9562
9563 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9564
b7ea3126
PA
95652011-02-22 Pedro Alves <pedro@codesourcery.com>
9566
9567 * frame-unwind.h: Fix comment to mention the this frame, not the
9568 next.
9569
58ee6d60
TT
95702011-02-22 Tom Tromey <tromey@redhat.com>
9571
9572 * symfile.c (auto_solib_limit): Remove.
9573 * symfile.h (auto_solib_limit): Remove.
9574
36238dbc
JB
95752011-02-22 Joel Brobecker <brobecker@adacore.com>
9576
9577 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9578
aea5b279
MS
95792011-02-21 Michael Snyder <msnyder@vmware.com>
9580
9581 * gdbthread.h (print_thread_info): Change prototype.
9582 * thread.c (print_thread_info): Accept char* instead of int for
9583 requested_threads argument. Use new function number_is_in_list
9584 to determine which threads to list.
9585 (info_threads_command): Pass char* to print_thread_info.
9586 * cli/cli-utils.c (number_is_in_list): New function.
9587 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9588 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9589 print_thread_info.
9590 (print_one_inferior): Ditto.
9591 (mi_cmd_list_thread_groups): Ditto.
9592
8caa75ee
JK
95932011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9594
9595 * common/Makefile.in (CFLAGS): New.
9596 (COMPILE): Add $(CFLAGS).
9597
ea666128
TT
95982011-02-21 Tom Tromey <tromey@redhat.com>
9599
9600 * breakpoint.c (catch_syscall_command_1): Fix typo.
9601
e9cafbcc
TT
96022011-02-21 Tom Tromey <tromey@redhat.com>
9603
9604 * reverse.c: Include cli-utils.h.
9605 * printcmd.c: Include cli-utils.h.
9606 (string_printf): Use skip_spaces.
9607 * cli/cli-utils.h: New file.
9608 * cli/cli-utils.c: New file.
9609 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9610 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9611 * breakpoint.h (get_number, get_number_or_range): Move to
9612 cli-utils.h.
9613 * breakpoint.c: Include cli-utils.h.
9614 (get_number_trailer, get_number, get_number_or_range)
9615 (ep_skip_leading_whitespace): Move to cli-utils.c.
9616 (create_breakpoint_sal, find_condition_and_thread)
9617 (decode_static_tracepoint_spec, watch_command_1)
9618 (watch_maybe_just_location, ep_parse_optional_if_clause)
9619 (catch_fork_command_1, catch_exec_command_1)
9620 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9621 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9622 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9623 (HFILES_NO_SRCDIR): Add cli-utils.h.
9624 (cli-utils.o): New target.
9625
f67fd822
PM
96262011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9627
9628 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9629 before calling discard_all_inferiors.
9630
c9def01d
UW
96312011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9632
9633 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9634 (struct builtin_opencl_type): Remove.
9635 (builtin_opencl_type): Change return type to "struct type **".
9636 (lookup_opencl_vector_type): Update caller.
9637 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9638 (build_opencl_types): Install plain array of "struct type *"
9639 instead of "struct builtin_opencl_type".
9640
e3039479
UW
96412011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9642 Ulrich Weigand <uweigand@de.ibm.com>
9643
9644 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9645 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9646 (struct arm_linux_hwbp_cap): New type.
9647 (arm_linux_get_hwbp_cap): New function.
9648 (arm_linux_get_hw_breakpoint_count): Likewise.
9649 (arm_linux_get_hw_watchpoint_count): Likewise.
9650 (arm_linux_can_use_hw_breakpoint): Likewise.
9651 (arm_hwbp_type): New type.
9652 (arm_hwbp_control_t): Likewise.
9653 (struct arm_linux_hw_breakpoint): Likewise.
9654 (struct arm_linux_thread_points): Likewise.
9655 (arm_threads): New global variable.
9656 (arm_linux_find_breakpoints_by_tid): New function.
9657 (arm_hwbp_control_initialize): Likewise.
9658 (arm_hwbp_control_is_enabled): Likewise.
9659 (arm_hwbp_control_disable): Likewise.
9660 (arm_linux_hw_breakpoint_initialize): Likewise.
9661 (arm_linux_get_hwbp_type): Likewise.
9662 (arm_linux_hw_watchpoint_initialize): Likewise.
9663 (arm_linux_hw_breakpoint_equal): Likewise.
9664 (arm_linux_insert_hw_breakpoint1): Likewise.
9665 (arm_linux_remove_hw_breakpoint1): Likewise.
9666 (arm_linux_insert_hw_breakpoint): Likewise.
9667 (arm_linux_remove_hw_breakpoint): Likewise.
9668 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9669 (arm_linux_insert_watchpoint): Likewise.
9670 (arm_linux_remove_watchpoint): Likewise.
9671 (arm_linux_stopped_data_address): Likewise.
9672 (arm_linux_stopped_by_watchpoint): Likewise.
9673 (arm_linux_watchpoint_addr_within_range): Likewise.
9674 (arm_linux_new_thread): Likewise.
9675 (arm_linux_thread_exit): Likewise.
9676 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9677 related target callbacks. Register arm_linux_new_thread and
9678 arm_linux_thread_exit.
9679 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9680 * arm-tdep.c (arm_pc_is_thumb): Make global.
9681 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9682
b5db5dfc
UW
96832011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9684
9685 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9686 per-frame locations while within a function epilogue.
9687
e25b2cfa
PM
96882011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9689
9690 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9691 to GNU coding standards.
9692
4af53f97
PM
96932011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9694
9695 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9696 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9697 (ser_windows_close): Only call CancelIo if function exists.
9698 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9699 to check for existence of CancelIo function in kernel32 DLL.
9700
d0e92d82
HZ
97012011-02-21 Hui Zhu <teawater@gmail.com>
9702
9703 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9704 * ax-gdb.c (gen_printf_expr_callback): New function.
9705 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9706 * ax-general.c (ax_memcpy): New function.
9707 (ax_print): Handle "printf".
9708 (ax_reqs): Ditto.
9709 * ax.h (ax_memcpy): Forward declare.
9710 * common/ax.def (invalid2): Removed.
9711 (printf): New entry.
9712 * printcmd.c (printcmd.h): New include.
9713 (string_printf): New function.
9714 (ui_printf): Removed.
9715 (printf_command): Remove static. Call string_printf.
9716 (eval_command): Call string_printf.
9717 * printcmd.h: New file.
9718 * tracepoint.c (validate_actionline,
9719 encode_actions_1): handle printf_command.
9720
7d357efd
MS
97212011-02-19 Michael Snyder <msnyder@vmware.com>
9722
9723 * reverse.c (delete_one_bookmark): Argument is now bookmark
9724 id rather than pointer to bookmark struct.
9725 (delete_bookmark_command): Use get_number_or_range.
9726 (goto_bookmark_command): Parse with get_number instead of strtoul.
9727 (bookmark_1): New function. Print info for one bookmark.
9728 (bookmarks_info): Use get_number_or_range and bookmark_1.
9729
7a45ebd7
MS
97302011-02-18 Michael Snyder <msnyder@vmware.com>
9731
f2eb0bc8 9732 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9733 get_number_or_range.
65ebfb52 9734 (thread_apply_command): Ditto.
7a45ebd7 9735
94d5e490
TT
97362011-02-18 Tom Tromey <tromey@redhat.com>
9737
9738 * common/ax.def: New file.
9739 * ax.h (enum agent_op): Use ax.def.
9740 * ax-general.c (aop_map): Use ax.def.
9741
c7f96d2b
TT
97422011-02-18 Tom Tromey <tromey@redhat.com>
9743
9744 * ax-general.c (aop_map): Add pick and rot.
9745 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9746 <DW_OP_rot>: Implement.
9747 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9748 (ax_pick): Declare.
9749 * ax-general.c (ax_pick): New function.
9750
66694b75
TT
97512011-02-18 Tom Tromey <tromey@redhat.com>
9752
9753 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9754
eeaafae2
JK
97552011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9756 Tom Tromey <tromey@redhat.com>
9757
9758 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9759 make_symbol_overload_list_block with NULL BLOCK.
9760 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9761
3c3fe74c
PA
97622011-02-18 Pedro Alves <pedro@codesourcery.com>
9763
9764 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9765 * breakpoint.h (get_number_or_range): Declare.
9766 * printcmd.c (ALL_DISPLAYS): Declare.
9767 (delete_display): Reimplement taking a display pointer.
9768 (undisplay_command): Accept a range of displays to delete, using
9769 get_number_or_range.
9770
13163d80
PM
97712011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9772
9773 * c-valprint.c (c_val_print): Add embedded_offset to address
9774 for arrays of unspecified length.
9775 * p-valprint.c (pascal_val_print): Likewise.
9776
b434a28f
YQ
97772011-02-18 Yao Qi <yao@codesourcery.com>
9778
9779 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9780 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9781 (thumb_process_displaced_insn): New.
9782 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9783 call to arm_process_displaced_insn.
9784 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9785
9f6f94ff
TT
97862011-02-17 Tom Tromey <tromey@redhat.com>
9787
9788 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9789 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9790 compile_dwarf_to_ax. No longer static. Call
9791 dwarf2_compile_cfa_to_ax.
9792 (locexpr_tracepoint_var_ref): Update.
9793 (loclist_tracepoint_var_ref): Update.
9794 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9795 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9796 argument; add 'gdbarch' and 'pc'.
9797 (dwarf2_compile_cfa_to_ax): New function.
9798 (dwarf2_frame_cache): Update.
9799
e67ad678
JB
98002011-02-17 Joel Brobecker <brobecker@adacore.com>
9801
9802 * ada-lang.c (ada_type_of_array): Fix the size of the array
9803 in the case of an unconstrained packed array.
9804
946ebb0d
YQ
98052011-02-17 Yao Qi <yao@codesourcery.com>
9806
9807 * common/Makefile.in: Add more targets for make.
9808
1ba1b353
TT
98092011-02-16 Tom Tromey <tromey@redhat.com>
9810
9811 * dwarf2loc.c (unimplemented): Fix typo.
9812
b1bfef65
TT
98132011-02-16 Tom Tromey <tromey@redhat.com>
9814
9815 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9816 (compile_dwarf_to_ax) <default>: Use unimplemented.
9817 <DW_OP_deref>: Update.
9818 (disassemble_dwarf_expression): Update.
9819 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9820 (decode_locdesc): Update.
9821 * dwarf2expr.h (dwarf_stack_op_name): Update.
9822
5f1e6f19
TT
98232011-02-16 Tom Tromey <tromey@redhat.com>
9824
9825 * ax.h (struct aop_map) <name>: Now const.
9826
a0c78a73
PA
98272011-02-16 Tom Tromey <tromey@redhat.com>
9828
9829 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9830 than axs_rvalue.
9831
946ebb0d 98322011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9833
9834 * infrun.c (get_displaced_step_closure_by_addr): New.
9835 * inferior.h: Declare it.
9836 * arm-tdep.c: (arm_pc_is_thumb): Call
9837 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9838 returns non-NULL.
9839
08807d5a
PA
98402011-02-16 Pedro Alves <pedro@codesourcery.com>
9841 Jan Kratochvil <jan.kratochvil@redhat.com>
9842
9843 gdb/
9844 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9845
29976f3f
PA
98462011-02-16 Pedro Alves <pedro@codesourcery.com>
9847 Jan Kratochvil <jan.kratochvil@redhat.com>
9848
9849 * value.c (value_contents_copy_raw): Extend describing comment.
9850 Assert that the destination contents we're overwriting are wholly
9851 available.
fb68ae73 9852 (value_contents_copy): Extend describing comment.
29976f3f 9853
cd24cfaa
PA
98542011-02-16 Pedro Alves <pedro@codesourcery.com>
9855 Jan Kratochvil <jan.kratochvil@redhat.com>
9856
9857 * value.c (value_available_contents_eq): Remove redundant local
9858 variables. Fix available contents comparision.
9859 * value.h (value_available_contents_eq): Extend describing
9860 comment.
9861
60bbf338
YQ
98622011-02-16 Yao Qi <yao@codesourcery.com>
9863
9864 * thread.c (info_threads_command): Add missing i18n markup and remove
9865 trailing newline.
9866
17450429
PP
98672011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9868
9869 * breakpoint.c (longjmp_names): New variable.
9870 (struct breakpoint_objfile_data): New type.
9871 (breakpoint_objfile_key): New variable.
9872 (msym_not_found): New variable.
9873 (msym_not_found_p): New predicate.
9874 (get_breakpoint_objfile_data): New function.
9875 (create_overlay_event_breakpoint): Check per-objfile cache for
9876 symbols first.
9877 (create_longjmp_master_breakpoint): Likewise.
9878 (create_std_terminate_master_breakpoint): Likewise.
9879 (create_exception_master_breakpoint): Likewise.
9880 (_initialize_breakpoint): Register per-objfile data key.
9881
af02033e
PP
98822011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9883
9884 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9885 parameter value.
9886 (create_longjmp_master_breakpoint): Loop over longjmp names.
9887 (create_std_terminate_master_breakpoint): Const-propagate parameter
9888 value.
9889 (update_breakpoints_after_exec): Adjust.
9890 (breakpoint_re_set): Adjust.
9891
60f98dde
MS
98922011-02-15 Michael Snyder <msnyder@vmware.com>
9893
cdf99611
MS
9894 * thread.c (info_threads_command): Process arg as thread id,
9895 or list of thread ids.
9896 (thread_find_command): New command.
9897 (_initialize_thread): Document argument for info threads.
9898 Document 'thread find' command.
9899 * NEWS: Document new command "thread find".
60f98dde 9900
0feedb2c
JK
99012011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9904 * aclocal.m4: Regenerated with aclocal-1.11.1.
9905 * common/configure: Regenerate with autoconf-2.64.
9906
648cd113
KW
99072011-02-15 Ken Werner <ken.werner@de.ibm.com>
9908
9909 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9910 bool data type to a size of one byte.
9911
5657161f
PA
99122011-02-15 Pedro Alves <pedro@codesourcery.com>
9913 Jan Kratochvil <jan.kratochvil@redhat.com>
9914
9915 * target.c (memory_xfer_live_readonly_partial): Document where to
9916 look for interface description.
9917
494e194e
YQ
99182011-02-15 Yao Qi <yao@codesourcery.com>
9919
9920 PR tdep/12352
9921 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9922 order to store PC value on stack instead of text section.
9923
d9492458
TJB
99242011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9925
9926 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9927 the EFP register set size.
9928 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9929 data from the VMX register.
9930 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9931 and write data from/to the VMX register.
9932
cdf99611
MS
99332011-02-14 Michael Snyder <msnyder@vmware.com>
9934
9935 * command.h (enum command_class): New class 'no_set_class', for
9936 "show" commands without a corresponding "set" command.
9937 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9938 * copying.c (_initialize_copying): Ditto for "show copying" and
9939 "show warranty".
9940 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9941 "show version".
9942 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9943 which there is no corresponding "set" command (eg. "show copying").
9944
424447ee
PA
99452011-02-14 Pedro Alves <pedro@codesourcery.com>
9946 Jan Kratochvil <jan.kratochvil@redhat.com>
9947
9948 * exec.c (section_table_available_memory): Change `len' parameter
9949 type to ULONGEST.
9950 * exec.h (section_table_available_memory): Ditto.
9951 * value.h (read_value_memory): Rename the `offset' parameter to
9952 `embedded_offset'.
9953
c0f61f9c 99542011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9955 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9956
9957 * memrange.c (compare_mem_ranges): Mention sort order in
9958 describing comment.
9959 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9960 * tracepoint.c (traceframe_available_memory): Extend comment to
9961 mention what happens to RESULT when the target does not support
9962 the query.
9963
6bfc80c7
PA
99642011-02-14 Pedro Alves <pedro@codesourcery.com>
9965 Jan Kratochvil <jan.kratochvil@redhat.com>
9966
9967 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9968 range.
9969
e7303042
PA
99702011-02-14 Pedro Alves <pedro@codesourcery.com>
9971
9972 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9973 No longer handle NULL values.
9974
8af8e3bc
PA
99752011-02-14 Pedro Alves <pedro@codesourcery.com>
9976
9977 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9978 * value.c: Include "exceptions.h".
9979 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9980 generic error.
9981 * cp-abi.c: Include gdb_assert.h.
9982 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9983 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9984 errors.
9985 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9986 parameters. No longer returns -1 on error.
9987 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9988 `val' parameters.
9989 * cp-valprint.c: Include exceptions.h.
9990 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9991 the baseclass_offset. Handle unavailable base classes. Use
9992 val_print_invalid_address.
9993 * p-valprint.c: Include exceptions.h.
9994 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9995 when fetching the baseclass_offset. No longer expect
9996 baseclass_offset returning -1. Handle unavailable base classes.
9997 Use val_print_invalid_address.
9998 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9999 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10000 `embedded_offset' and `val' parameters. Adjust.
10001 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10002 parameter, and change its type to gdb_byte pointer. Add
10003 `embedded_offset' and `val' parameters. Adjust. No longer expect
10004 baseclass_offset returning -1.
10005 (value_dynamic_cast): Use value_contents_for_printing rather than
10006 value_contents. Adjust.
10007 (search_struct_field): No longer expect baseclass_offset returning
10008 -1.
10009 (search_struct_method): If reading memory from the target is
10010 necessary, wrap it in a new value to pass to baseclass_offset. No
10011 longer expect baseclass_offset returning -1.
10012 (find_method_list): No longer expect baseclass_offset returning
10013 -1. Use value_contents_for_printing rather than value_contents.
10014 * valprint.c (val_print_invalid_address): New function.
10015 * valprint.h (val_print_invalid_address): Declare.
10016 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10017 and `val' parameters. No longer expect baseclass_offset returning
10018 -1. Adjust.
10019 * gnu-v2-abi.c: Include "exceptions.h".
10020 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10021 parameters. Handle unavailable memory. Recurse through
10022 gnuv2_baseclass_offset directly, rather than through
10023 baseclass_offset. No longer returns -1 on not found, instead
10024 throw an error.
10025 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10026 `val' parameters. Adjust.
10027
1b28d0b3
PA
100282011-02-14 Pedro Alves <pedro@codesourcery.com>
10029
10030 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10031 almost but not quite adjacent.
10032
ec0a52e1
PA
100332011-02-14 Pedro Alves <pedro@codesourcery.com>
10034
10035 * value.h (value_entirely_available): Declare.
10036 * value.c (value_entirely_available): New function.
10037 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10038 real type if the pointer is unavailable.
10039
24e6bcee
PA
100402011-02-14 Pedro Alves <pedro@codesourcery.com>
10041
10042 * valops.c (value_repeat): Use read_value_memory instead of
10043 read_memory.
10044
39d37385
PA
100452011-02-14 Pedro Alves <pedro@codesourcery.com>
10046
10047 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10048 * value.c (value_contents_copy_raw, value_contents_copy): New
10049 functions.
10050 (value_primitive_field): Use value_contents_copy_raw instead of
10051 memcpy.
10052 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10053 memcpy.
10054 (value_array, value_slice): Ditto.
10055 * valarith.c (value_subscripted_rvalue): Use
10056 value_contents_copy_raw instead of memcpy.
10057
a3d34bf4
PA
100582011-02-14 Pedro Alves <pedro@codesourcery.com>
10059
10060 <unavailable> references.
10061
10062 * valops.c (get_value_at): Use value_from_contents_and_address,
10063 avoiding read_memory.
10064
9fc6d940
PA
100652011-02-14 Pedro Alves <pedro@codesourcery.com>
10066
10067 * c-valprint.c (c_val_print): Print a string with unavailable
10068 contents as an array.
10069
5467c6c8
PA
100702011-02-14 Pedro Alves <pedro@codesourcery.com>
10071
10072 * value.h (unpack_bits_as_long): Delete declaration.
10073 (unpack_value_bits_as_long): Declare.
10074 (unpack_value_field_as_long): Declare.
10075 (value_field_bitfield): Declare.
10076 * value.c (unpack_bits_as_long): Rename to...
10077 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10078 value parameters. Return the extracted result in a new output
10079 parameter. If the value contents are unavailable, return false,
10080 otherwise return true.
10081 (unpack_value_bits_as_long): New.
10082 (unpack_field_as_long): Rename to...
10083 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10084 Add embedded_offset and value parameters. Return the extracted
10085 result in a new output parameter. If the value contents are
10086 unavailable, return false, otherwise return true.
10087 (unpack_value_field_as_long): New.
10088 (unpack_field_as_long_1): New.
10089 (unpack_field_as_long): Reimplement as wrapper around
10090 unpack_value_field_as_long_1.
10091 (value_field_bitfield): New function.
10092 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10093 unpack_value_bits_as_long. Mark the value as unavailable, if it
10094 is unavailable.
10095 * jv-valprint.c (java_print_value_fields): Use
10096 value_field_bitfield.
10097 * p-valprint.c (pascal_object_print_value_fields): Use
10098 value_field_bitfield.
10099 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10100
3158c6ed
PA
101012011-02-14 Pedro Alves <pedro@codesourcery.com>
10102
10103 * value.c (get_internalvar_integer): Also return the int value of
10104 TYPE_CODE_INT INTERNALVAR_VALUE values.
10105 (set_internalvar): Don't special case TYPE_CODE_INT.
10106
9fbdca0d
PA
101072011-02-14 Pedro Alves <pedro@codesourcery.com>
10108
10109 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10110 INTERNALVAR_POINTER.
10111 <pointer>: Delete.
10112 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10113 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10114 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10115
c8c1c22f
PA
101162011-02-14 Pedro Alves <pedro@codesourcery.com>
10117
10118 * value.h (value_available_contents_eq): Declare.
10119 * value.c (find_first_range_overlap): New function.
10120 (value_available_contents_eq): New function.
10121 * valprint.c (val_print_array_elements): Use
10122 value_available_contents_eq.
10123 * ada-valprint.c (val_print_packed_array_elements): Use
10124 value_available_contents_eq.
10125 * jv-valprint.c (java_value_print): Use
10126 value_available_contents_eq.
10127
e6e4e701
PA
101282011-02-14 Pedro Alves <pedro@codesourcery.com>
10129
10130 * target.c (target_read_live_memory): New function.
10131 (memory_xfer_live_readonly_partial): New.
10132 (memory_xfer_partial): If reading from a traceframe, fallback to
10133 reading unavailable read-only memory from read-only regions of
10134 live target memory.
10135 * tracepoint.c (disconnect_tracing): Adjust.
10136 (set_current_traceframe): New, factored out from
10137 set_traceframe_number.
10138 (set_traceframe_number): Reimplement to only change the traceframe
10139 number on the GDB side.
10140 (do_restore_current_traceframe_cleanup): Adjust.
10141 (make_cleanup_restore_traceframe_number): New.
10142 (cur_traceframe_number): New global.
10143 (tfile_open): Set cur_traceframe_number to no traceframe.
10144 (set_tfile_traceframe): New function.
10145 (tfile_trace_find): If looking up a traceframe using any method
10146 other than by number, make sure the current tfile traceframe
10147 matches gdb's current traceframe. Update the current tfile
10148 traceframe if the lookup succeeded.
10149 (tfile_fetch_registers, tfile_xfer_partial)
10150 (tfile_get_trace_state_variable_value): Make sure the remote
10151 traceframe matches gdb's current traceframe.
10152 * remote.c (remote_traceframe_number): New global.
10153 (remote_open_1): Set it to -1.
10154 (set_remote_traceframe): New function.
10155 (remote_fetch_registers, remote_store_registers)
10156 (remote_xfer_memory, remote_xfer_partial)
10157 (remote_get_trace_state_variable_value): Make sure the remote
10158 traceframe matches gdb's current traceframe.
10159 (remote_trace_find): If looking up a traceframe using any method
10160 other than by number, make sure the current remote traceframe
10161 matches gdb's current traceframe. Update the current remote
10162 traceframe if the lookup succeeded.
10163 * infrun.c (fetch_inferior_event): Adjust.
10164 * tracepoint.h (set_current_traceframe): Declare.
10165 (get_traceframe_number, set_traceframe_number): Add describing
10166 comments.
10167
e6ca34fc
PA
101682011-02-14 Pedro Alves <pedro@codesourcery.com>
10169
10170 Mark pieces of values as unavailable if the corresponding memory
10171 is unavailable.
10172
10173 * valops.c: Include tracepoint.h.
10174 (value_fetch_lazy): Use read_value_memory.
10175 (read_value_memory): New.
10176 * value.h (read_value_memory): Declare.
10177 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10178 * exec.c (section_table_available_memory): New function.
10179 * exec.h (section_table_available_memory): Declare.
10180
2a7498d8
PA
101812011-02-14 Pedro Alves <pedro@codesourcery.com>
10182
10183 * Makefile.in (SFILES): Add memrange.c.
10184 (HFILES_NO_SRCDIR): Add memrange.h.
10185 (COMMON_OBS): Add memrange.o.
10186 * memrange.c: New file.
10187 * memrange.h: New file.
10188 * tracepoint.c: Include memrange.h.
10189 (struct mem_range): Delete.
10190 (mem_range_s): Delete.
10191 (traceframe_available_memory): New function.
10192 * tracepoint.h (traceframe_available_memory): Declare.
10193
b3b9301e
PA
101942011-02-14 Pedro Alves <pedro@codesourcery.com>
10195
10196 * target.h (struct traceframe_info): Forward declare.
10197 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10198 (struct target_ops) <to_traceframe_info>: New field.
10199 (target_traceframe_info): New.
10200 * target.c (update_current_target): Inherit and default
10201 to_traceframe_info.
10202 * remote.c (PACKET_qXfer_traceframe_info): New.
10203 (remote_protocol_features): Register qXfer:traceframe-info:read.
10204 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10205 (remote_traceframe_info): New.
10206 (init_remote_ops): Install it.
10207 (_initialize_remote): Install "set/show remote traceframe-info"
10208 commands.
10209 * tracepoint.h (parse_traceframe_info): Declare.
10210 * tracepoint.c (struct mem_range): New.
10211 (mem_range_s): New typedef.
10212 (struct traceframe_info): New.
10213 (traceframe_info): New global.
10214 (free_traceframe_info): New function.
10215 (clear_traceframe_info): New function.
10216 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10217 info.
10218 (build_traceframe_info): New function.
10219 (tfile_traceframe_info): New function.
10220 (init_tfile_ops): Install tfile_traceframe_info.
10221 (traceframe_info_start_memory, free_result): New functions.
10222 (memory_attributes, traceframe_info_elements): New globals.
10223 (parse_traceframe_info, get_traceframe_info): New functions.
10224 * features/traceframe-info.dtd: New file.
10225 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10226
4e07d55f
PA
102272011-02-14 Pedro Alves <pedro@codesourcery.com>
10228
10229 Base support for <unavailable> value contents.
10230
4e07d55f
PA
10231 * value.h (value_bytes_available): Declare.
10232 (mark_value_bytes_unavailable): Declare.
10233 * value.c (struct range): New struct.
10234 (range_s): New typedef.
10235 (ranges_overlap): New function.
10236 (range_lessthan): New function.
10237 (ranges_contain_p): New function.
10238 (struct value) <unavailable>: New field.
10239 (value_bytes_available): New function.
10240 (mark_value_bytes_unavailable): New function.
10241 (require_not_optimized_out): Constify parameter.
10242 (require_available): New function.
10243 (value_contents_all, value_contents): Require all bytes be
10244 available.
10245 (value_free): Free `unavailable'.
10246 (value_copy): Copy `unavailable'.
10247 * valprint.h (val_print_unavailable): Declare.
10248 * valprint.c (valprint_check_validity): Rename `offset' parameter
10249 to `embedded_offset'. If printing a scalar, check whether the
10250 value chunk is available.
10251 (val_print_unavailable): New.
10252 (val_print_scalar_formatted): Check whether the value is
10253 available.
10254 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10255 pretty-printing unavailable values.
10256
bc9a5551
JK
102572011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10260 * c-typeprint.c (c_type_print_args): Update the function comment. New
10261 variable param_type, initialize it. Remove const/volatile qualifiers
10262 for language_cplus and !show_artificial. Use param_type.
10263
93b55aa1
JK
102642011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10265
10266 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10267 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10268 * symtab.h (struct symtab) <next>: Comment extension.
10269
181d9476
YQ
102702011-02-12 Yao Qi <yao@codesourcery.com>
10271
10272 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10273
b708a5c7
JK
102742011-02-11 Yao Qi <yao@codesourcery.com>
10275
10276 * common/Makefile.in: Add copyright header.
10277
c5187ac6
PA
102782011-02-11 Pedro Alves <pedro@codesourcery.com>
10279
10280 * infrun.c (proceed): Move switching out and in of tfind mode from
10281 here ...
10282 (fetch_inferior_event): ... to here.
10283
4f3e6fb7
YQ
102842011-02-11 Yao Qi <yao@codesourcery.com>
10285
10286 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10287 libcommon.a.
10288 * configure.ac: Add common to sub dir.
10289 * configure: Regenerate.
10290
b708a5c7
JK
102912011-02-11 Yao Qi <yao@codesourcery.com>
10292
10293 Build libcommon.a.
10294
10295 * common/Makefile.in: New.
10296 * common/configure.ac: New.
10297 * common/aclocal.m4: New.
10298 * common/configure: Generate.
10299
2287cc7e
PA
103002011-02-10 Pedro Alves <pedro@codesourcery.com>
10301
10302 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10303 side of the parenthesis.
10304
10305 Merge from GCC:
10306 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10307 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10308
fd62cb89
MS
103092011-02-08 Michael Snyder <msnyder@vmware.com>
10310
10311 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10312
56d2815c
JK
103132011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10314
10315 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10316 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10317 psubd and paddd.
10318
4f7d61a8
JK
103192011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10320
10321 PR 12361.
10322 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10323 phsubsw.
10324 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10325 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10326
54fcddd0
UW
103272011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10328
10329 * dwarf2read.c (read_subroutine_type): Set special calling
10330 convention flag for functions compiled by IBM XL C for OpenCL.
10331 * ppc-sysv-tdep.c: Include "dwarf2.h"
10332 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10333 calling convention.
10334 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10335 IBM OpenCL vector types calling convention.
10336 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10337 (ppc_sysv_abi_broken_return_value): Likewise.
10338 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10339 types calling convention.
10340 (ppc64_sysv_abi_return_value): Likewise.
10341 * spu-tdep.c: Include "dwarf2.h"
10342 (spu_return_value): Implement IBM OpenCL vector types calling
10343 convention.
10344
d6dafb7c
UW
103452011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10346
10347 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10348 correct ABI for AltiVec vector arguments.
10349
32b72a42
PA
103502011-02-07 Pedro Alves <pedro@codesourcery.com>
10351
10352 * valprint.c (val_print): Extend comment.
10353 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10354 interface explanation to val_print.
10355 (ada_val_print_array): Adjust comment to current interface.
10356 (print_field_values): Adjust comment to current interface.
10357 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10358 explanation to val_print.
10359 * f-valprint.c (f_val_print): Ditto.
10360 * jv-valprint.c (java_val_print): Ditto.
10361 * m2-valprint.c (m2_val_print): Ditto.
10362 * p-valprint.c (pascal_val_print): Ditto.
10363
9998af43
TJB
103642011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10365
10366 * breakpoint.c (parse_breakpoint_sals): Fix description.
10367
505500db 103682011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10369 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10370
10371 * python/py-inferior.c (python_on_normal_stop): New function.
10372 (python_on_resume): New function.
10373 (python_inferior_exit): New function.
10374 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10375 inferior_exit observers.
10376 * python/py-evtregistry.c: New file.
10377 * python/py-threadevent.c : New file.
10378 * python/py-event.c: New file.
10379 * python/py-evts.c: New file.
10380 * python/py-continueevent.c: New file.
10381 * python/py-bpevent.c: New file.
10382 * python/py-signalevent.c: New file.
10383 * python/py-exetiedevent.c: New file.
10384 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10385 Move struct breakpoint_object from here...
10386 * python/python-internal.h: ... to here.
10387 * python/py-event.h: New file.
10388 * python/py-events.h: New file.
10389 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10390 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10391 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10392 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10393 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10394 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10395 Add build rules for all the above.
10396
9e0ac564
TT
103972011-02-04 Tom Tromey <tromey@redhat.com>
10398
10399 * dwarf2read.c (dwarf2_section_empty_p): New function.
10400 (dwarf2_read_section): Use dwarf2_section_empty_p.
10401 (dwarf2_section_size): New function.
10402 (dwarf2_get_section_info): Unconditionally read section.
10403 (dwarf2_read_index): Use dwarf2_section_empty_p.
10404 (partial_read_comp_unit_head): Use dwarf2_section_size.
10405 (dwarf2_symbol_mark_computed): Likewise.
10406
eee5b35e
DD
104072011-02-04 David Daney <ddaney@caviumnetworks.com>
10408
10409 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10410
385203ed
DD
104112011-02-04 David Daney <ddaney@caviumnetworks.com>
10412
10413 * mips-linux-tdep.c: Include xml-syscall.h.
10414 (mips_linux_get_syscall_number): New function.
10415 (mips_linux_init_abi): Add calls to
10416 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10417 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10418 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10419 * syscalls/mips-n32-linux.xml: New file.
10420 * syscalls/mips-n64-linux.xml: New file.
10421 * syscalls/mips-o32-linux.xml: New file.
10422
9277c30c
UW
104232011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10424
10425 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10426 Complain about inverted range entries.
10427 (dwarf2_record_block_ranges): Likewise.
10428
a3be7890
TJB
104292011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10430
10431 Fix some typos.
10432 * breakpoint.c (update_watchpoint): Fix name of the
10433 update_global_location_list function.
10434 (print_one_breakpoint): Fix typo.
10435 (_initialize_breakpoint): Remove extra space in hbreak help
10436 string.
10437 * breakpoint.h (struct bp_location) <length>: Fix field
10438 description.
10439
041274d8
PA
104402011-02-04 Pedro Alves <pedro@codesourcery.com>
10441
10442 * regcache.c (registers_changed_ptid): Don't explictly always
10443 clear `current_regcache'. Only clear current_thread_ptid and
10444 current_thread_arch when PTID matches. Only reinit the frame
10445 cache if PTID matches the current inferior_ptid. Move alloca(0)
10446 call to ...
10447 (registers_changed): ... here.
10448
c1c2ab58
UW
104492011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10450
10451 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10452 starts with __stack_chk_guard as stack guard symbol.
10453
9011945e
AB
104542011-02-03 Andrew Burgess <aburgess@broadcom.com>
10455
10456 * disasm.c (compare_lines): Handle the end of sequence markers
10457 within the line table to better support disassembling over
10458 compilation unit boundaries.
10459
e0634ccf
UW
104602011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10461
10462 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10463 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10464 implementation even if no symbols are available.
10465 (thumb_analyze_prologue): Update call to skip_prologue_function.
10466 (arm_analyze_prologue): Likewise.
10467
0e9e9abd
UW
104682011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10469
10470 * arm-tdep.c: Include "observer.h".
10471 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10472 (arm_exidx_data_key): New static variable.
10473 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10474 (struct arm_exidx_data): Likewise.
10475 (arm_exidx_data_free): New function.
10476 (arm_compare_exidx_entries): Likewise.
10477 (arm_obj_section_from_vma): Likewise.
10478 (arm_exidx_new_objfile): Likewise.
10479 (arm_find_exidx_entry): Likewise.
10480 (arm_exidx_fill_cache): Likewise.
10481 (arm_exidx_unwind_sniffer): Likewise.
10482 (arm_exidx_unwind): New global variable.
10483 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10484 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10485 observer. Register arm_exidx_data_key as objfile data.
10486
2e9e421f
UW
104872011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10488
10489 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10490 due to accessing uninitialized variable. Fix indentation.
10491
580688f3
PA
104922011-02-02 Pedro Alves <pedro@codesourcery.com>
10493
10494 * c-valprint.c (c_value_print): When doing virtual base pointer
10495 adjustment, create a new value with adjusted contents rather than
10496 changing the contents of the value being printed (and getting it
10497 wrong).
10498
3d2c1d41
PA
104992011-02-02 Pedro Alves <pedro@codesourcery.com>
10500
10501 * xml-support.c (xml_find_attribute): New.
10502 (xinclude_start_include): Use it.
10503 * xml-support.h (xml_find_attribute): Declare.
10504 * memory-map.c (memory_map_start_memory)
10505 (memory_map_start_property): Use xml_find_attribute.
10506 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10507 xml_find_attribute.
10508 * remote.c (start_thread): Use xml_find_attribute.
10509 * solib-target.c (library_list_start_segment)
10510 (library_list_start_section, library_list_start_library)
10511 (library_list_start_list): Use xml_find_attribute.
10512 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10513 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10514 (tdesc_start_field): Use xml_find_attribute.
10515
0af3e2db
UW
105162011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10517
10518 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10519 (BUILD_OCL_VTYPES): Update.
10520
c1039e3c
JB
105212011-02-02 Joel Brobecker <brobecker@adacore.com>
10522
10523 * configure.ac: Work around non-GNU sed limitation when computing
10524 python version number.
10525 * configure: Regenerate.
10526
600ea1be
JK
105272011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 Fix debug printing of TYPE_INSTANCE.
10530 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10531 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10532
56c12414
JK
105332011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10534
10535 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10536 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10537 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10538 * ada-operator.inc: Rename the file to ...
10539 * ada-operator.def: ... here, wrap all the entries by macro OP.
10540 * expprint.c (op_name_standard): Remove all the entries. Include
10541 "std-operator.def" instead.
10542 * expression.h (enum exp_opcode): Include "std-operator.def" and
10543 "ada-operator.def". Move all the entries ...
10544 * std-operator.def: ... here, wrap all the entries by macro OP.
10545
c52b559d
PP
105462011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10547
10548 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10549 * breakpoint.c (remove_jit_event_breakpoints): New function.
10550 * jit.c (jit_descriptor_addr): Delete.
10551 (registering_code): Delete.
10552 (clear_int): Delete.
10553 (jit_inferior_data): New variable.
10554 (struct jit_inferior_data): New type.
10555 (get_jit_inferior_data): New function.
10556 (jit_inferior_data_cleanup): New function.
10557 (jit_read_descriptor): Adjust.
10558 (jit_register_code): Adjust.
10559 (jit_breakpoint_re_set_internal): New function; move code here ...
10560 (jit_inferior_init): ... from here.
10561 (jit_breakpoint_re_set): Adjust.
10562 (jit_reset_inferior_data_and_breakpoints): New function.
10563 (jit_inferior_created_observer): Adjust.
10564 (jit_inferior_exit_hook): Adjust.
10565 (jit_executable_changed_observer): New function.
10566 (jit_event_handler): Adjust.
10567 (_initialize_jit): Adjust.
10568
e839132d
MS
105692011-01-31 Michael Snyder <msnyder@vmware.com>
10570
10571 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10572 line.
10573
47a80e90
TT
105742011-01-31 Tom Tromey <tromey@redhat.com>
10575
10576 PR python/12216:
10577 * python/python.c (execute_gdb_command): Call
10578 prevent_dont_repeat.
10579 * top.c (suppress_dont_repeat): New global.
10580 (dont_repeat): Use it.
10581 (prevent_dont_repeat): New function.
10582 * command.h (prevent_dont_repeat): Declare.
10583
45a43567
TT
105842011-01-31 Tom Tromey <tromey@redhat.com>
10585
10586 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10587 * python/py-breakpoint.c (bppy_set_silent): Use
10588 breakpoint_set_silent.
10589 (bppy_set_thread): Use breakpoint_set_thread.
10590 (bppy_set_task): Use breakpoint_set_task.
10591 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10592 (breakpoint_set_task): Declare.
10593 (make_breakpoint_silent): Remove.
10594 * breakpoint.c (breakpoint_set_silent): New function.
10595 (breakpoint_set_thread): Likewise.
10596 (breakpoint_set_task): Likewise.
10597 (make_breakpoint_silent): Remove.
10598
09d682a4
TT
105992011-01-31 Tom Tromey <tromey@redhat.com>
10600
10601 * breakpoint.h (user_breakpoint_p): Declare.
10602 * breakpoint.c (user_breakpoint_p): New function.
10603 (breakpoint_1): Use it.
10604 (save_breakpoints): Likewise.
10605
9c4ea6c5
JB
106062011-01-31 Joel Brobecker <brobecker@adacore.com>
10607
10608 * configure.ac: Add handling of Python distribution on Windows.
10609 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10610 sysconfig variables are not defined, then do not use them.
10611 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10612 instead. On Windows, return all paths using forward-slashes
10613 rather than backslashes.
10614
ac534cba
JB
106152011-01-31 Joel Brobecker <brobecker@adacore.com>
10616
10617 * configure.ac: Remove fallback behavior for building
10618 against Python. Remove tweaking of Python include path.
10619 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10620 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10621 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10622 Always restore CPPFLAGS and LIBS after linking test.
10623 * configure: Regenerated.
10624 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10625 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10626 * python/python-internal.h: Adjust includes of Python .h files.
10627
c2f0d045
JB
106282011-01-31 Joel Brobecker <brobecker@adacore.com>
10629
10630 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10631 in error message.
10632
6b0c4c1f
JB
106332011-01-31 Joel Brobecker <brobecker@adacore.com>
10634
10635 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10636 value test.
10637
672c9795
YQ
106382011-01-31 Yao Qi <yao@codesourcery.com>
10639
10640 * arm-linux-nat.c: Update calls to regcache_register_status
10641 instead of regcache_valid_p.
10642 * aix-thread.c: Likewise.
10643 * i386gnu-nat.c: Likewise.
10644
80b23b6a
JK
106452011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10646
10647 Fix crash.
10648 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10649 touching TYPE_FIELD_ARTIFICIAL.
10650
4cd712bd
RE
106512011-01-28 Richard Earnshaw <rearnsha@arm.com>
10652
10653 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10654 Committers.
10655
ffd5ec24
PA
106562011-01-28 Pedro Alves <pedro@codesourcery.com>
10657
10658 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10659 selected, don't try iterating over the traceframe's blocks.
10660 (tfile_has_stack): If there's no traceframe selected, then there's
10661 no stack.
10662 (tfile_has_registers): If there's no traceframe selected, then
10663 there's no registers.
10664
e8c9e0a1
PA
106652011-01-28 Pedro Alves <pedro@codesourcery.com>
10666
10667 * target.c (memory_xfer_partial): No need to restore shadows if we
10668 haven't read anything.
10669
de15c4ab
PA
106702011-01-28 Pedro Alves <pedro@codesourcery.com>
10671
10672 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10673 and val_print_scalar_formatted.
10674
9f41c731
PA
106752011-01-27 Pedro Alves <pedro@codesourcery.com>
10676
10677 * tracepoint.c (tfile_read): New.
10678 (tfile_open): Use it.
10679 (tfile_get_traceframe_address): Use it.
10680 (tfile_trace_find): Use it.
10681 (walk_blocks_callback_func): New typedef.
10682 (match_blocktype): New function.
10683 (traceframe_walk_blocks): New function.
10684 (traceframe_find_block_type): New function.
10685 (tfile_fetch_registers, tfile_xfer_partial)
10686 (tfile_get_trace_state_variable_value): Use
10687 traceframe_find_block_type and tfile_read.
10688
cdefc55d
KB
106892011-01-26 Kevin Buettner <kevinb@redhat.com>
10690
10691 * remote-mips.c: Add internationalization mark ups. Remove
10692 trailing \n from already marked up strings.
10693
a81766d8
TT
106942011-01-26 Tom Tromey <tromey@redhat.com>
10695
10696 * python/py-prettyprint.c (print_string_repr): Clear
10697 'addressprint' option when calling val_print_string.
10698 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10699 option when calling val_print_string.
10700
74aedc46
TT
107012011-01-26 Tom Tromey <tromey@redhat.com>
10702
10703 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10704 GDB_PY_LL_ARG.
10705 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10706 macros.
10707 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10708 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10709 (gdb_py_long_as_ulongest): New defines.
10710 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10711 (gdb_py_int_as_long): Declare.
10712 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10713 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10714 (valpy_long): Add comment.
10715 * python/py-utils.c (get_addr_from_python): Use
10716 gdb_py_long_as_ulongest. Handle overflow properly.
10717 (gdb_py_object_from_longest): New function.
10718 (gdb_py_object_from_ulongest): Likewise.
10719 (gdb_py_int_as_long): Likewise.
10720 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10721 * python/py-symtab.c (salpy_get_pc): Use
10722 gdb_py_long_from_ulongest.
10723 (salpy_get_line): Use PyInt_FromLong.
10724 * python/py-param.c (set_parameter_value): Use
10725 gdb_py_int_as_long.
10726 * python/py-lazy-string.c (stpy_get_address): Use
10727 gdb_py_long_from_ulongest.
10728 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10729 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10730 * python/py-breakpoint.c (bppy_set_thread): Use
10731 gdb_py_int_as_long.
10732 (bppy_set_task): Likewise.
10733 (bppy_set_ignore_count): Likewise.
10734 (bppy_set_hit_count): Likewise.
10735 * python/py-block.c (blpy_get_start): Use
10736 gdb_py_object_from_ulongest.
10737 (blpy_get_end): Likewise.
10738 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10739
e4f6d2ec
TJB
107402011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10741
10742 PR/symtab 11766:
10743 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10744 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10745 equality test for objfile, initialize addr_low if needed.
10746
b30aa278
PA
107472011-01-25 Pedro Alves <pedro@codesourcery.com>
10748
10749 * tui/tui-regs.c (tui_register_format): Remove dead code.
10750
ab2188aa
PA
107512011-01-25 Pedro Alves <pedro@codesourcery.com>
10752
10753 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10754 instead of print_scalar_formatted.
10755 (print_scalar_formatted): Don't handle 's' format strings here,
10756 and add an assertion that we never see such format here.
10757 * valprint.h (val_print_scalar_formatted): Declare.
10758 * valprint.c (val_print_scalar_formatted): New.
10759 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10760 instead of print_scalar_formatted.
10761 * jv-valprint.c (java_val_print): Ditto.
10762 * p-valprint.c (pascal_val_print): Ditto.
10763 * ada-valprint.c (ada_val_print_1): Ditto.
10764 * f-valprint.c (f_val_print): Ditto.
10765 * infcmd.c (registers_info): Ditto.
10766 * m2-valprint.c (m2_val_print): Ditto.
10767
66d61a4c
PA
107682011-01-25 Pedro Alves <pedro@codesourcery.com>
10769
10770 * m2-valprint.c (print_unbounded_array): Pass
10771 value_contents_for_printing rather than value_contents, to
10772 m2_print_array_contents. Also pass in the value.
10773
831adc1f
JK
107742011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10777 (save_gdb_index_command): Switch to .gdb_index version 4.
10778
20622269
PA
107792011-01-25 Pedro Alves <pedro@codesourcery.com>
10780
10781 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10782 than frame_register, and always pass a valid value to val_print.
10783
585fdaa1
PA
107842011-01-25 Pedro Alves <pedro@codesourcery.com>
10785
10786 Centralize printing "<optimized out>".
10787
10788 * valprint.h (val_print_optimized_out): Declare.
10789 * cp-valprint.c (cp_print_value_fields): Use
10790 val_print_optimized_out.
10791 * jv-valprint.c (java_print_value_fields): Ditto.
10792 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10793 * printcmd.c (print_formatted): Ditto.
10794 * valprint.c (valprint_check_validity): Ditto.
10795 (value_check_printable): Ditto.
10796 (val_print_optimized_out): New.
10797
29ec5263
PA
107982011-01-25 Pedro Alves <pedro@codesourcery.com>
10799
10800 * infcmd.c (default_print_registers_info): Allocate values so to
10801 never pass a NULL value to val_print.
10802
de4127a3
PA
108032011-01-25 Pedro Alves <pedro@codesourcery.com>
10804
10805 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10806 boolean. Make sure to always pass a value that matches the
10807 contents buffer to callees. Preserve `address' for following
10808 iterations.
10809 * value.c (value_contents_for_printing_const): New.
10810 (value_address): Constify value argument.
10811 * value.h (value_contents_for_printing_const): Declare.
10812 (value_address): Constify value argument.
10813
ee99023e
PA
108142011-01-25 Pedro Alves <pedro@codesourcery.com>
10815
10816 * regcache.c (struct regcache_descr): Rename
10817 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10818 and sizeof_cooked_register_valid_p to
10819 sizeof_cooked_register_status.
10820 (init_regcache_descr): Adjust.
10821 (struct regcache): Rename register_valid_p field to
10822 register_status.
10823 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10824 (do_cooked_read): Adjust.
10825 (regcache_valid_p): Rename to ...
10826 (regcache_register_status): ... this. Adjust.
10827 (regcache_invalidate): Adjust.
10828 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10829 Adjust.
10830 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10831 as unavailable, not valid.
10832 (regcache_dump): Adjust.
10833 * regcache.h (enum register_status): New.
10834 (regcache_register_status): Declare.
10835 (regcache_invalidate): Delete declaration.
10836 * corelow.c (get_core_registers): Adjust.
10837 * tracepoint.c (tfile_fetch_registers): Adjust.
10838 * trad-frame.c (REG_VALUE): Rename to ...
10839 (TF_REG_VALUE): ... this.
10840 (REG_UNKNOWN): Rename to ...
10841 (TF_REG_UNKNOWN): ... this.
10842 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10843 * mi/mi-main.c (register_changed_p): Adjust.
10844
99e42fd8
PA
108452011-01-25 Pedro Alves <pedro@codesourcery.com>
10846
10847 * regcache.c (struct regcache_descr): Remove outdated comment.
10848 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10849 overallocate hack.
10850 (regcache_xmalloc): Rename to ...
10851 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10852 Allocate the regcache type accordingly.
10853 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10854 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10855 cooked registers, not raw.
10856 (regcache_dup_no_passthrough): Delete.
10857 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10858 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10859 mention obsolete write_register_bytes.
10860 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10861
f7605bc2
PA
108622011-01-25 Pedro Alves <pedro@codesourcery.com>
10863
10864 Stop remote_read_bytes from handling partial reads itself.
10865
10866 * remote-fileio.c: Include target.h.
10867 (remote_fileio_write_bytes): Delete.
10868 (remote_fileio_func_open, remote_fileio_func_write)
10869 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10870 target_read_memory.
10871 (remote_fileio_func_stat): Use target_read_memory and
10872 target_write_memory.
10873 (remote_fileio_func_gettimeofday): Use target_write_memory.
10874 (remote_fileio_func_system): Use target_read_memory.
10875 * remote.c (remote_write_bytes): Make it static.
10876 (remote_read_bytes): Don't handle partial reads here.
10877 * remote.h (remote_read_bytes): Delete declaration.
10878
efc0eabd
PA
108792011-01-25 Pedro Alves <pedro@codesourcery.com>
10880
10881 Simplify XML parsing a bit.
10882
10883 * xml-support.h (gdb_xml_parse_quick): Declare.
10884 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10885 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10886 parameter.
10887 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10888 gdb_xml_create_parser_and_cleanup_1.
10889 (gdb_xml_parse_quick): New.
10890 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10891 * osdata.c (osdata_parse): Ditto.
10892 * remote.c (remote_threads_info): Ditto.
10893 * solib-target.c (solib_target_parse_libraries): Ditto.
10894 * xml-syscall.c (syscall_parse_xml): Ditto.
10895 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10896
314d366a
KB
108972011-01-24 Kevin Buettner <kevinb@redhat.com>
10898
10899 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10900 with remote-mips.o added to gdb_target_obs.
10901 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10902
a491d753
PA
109032011-01-24 Pedro Alves <pedro@codesourcery.com>
10904
10905 * ada-valprint.c (val_print_packed_array_elements): Pass the
10906 correct struct value to val_print.
10907 (ada_val_print_1): Ditto.
10908
490f124f
PA
109092011-01-24 Pedro Alves <pedro@codesourcery.com>
10910
10911 Don't lose embedded_offset in printing routines throughout.
10912
10913 * valprint.h (val_print_array_elements): Change prototype.
10914 * valprint.c (val_print_array_elements): Add `embedded_offset'
10915 parameter, and adjust to pass it down to val_print, while passing
10916 `valaddr' or `address' unmodified. Take embedded_offset into
10917 account when checking repetitions.
10918 * c-valprint.c (c_val_print): Pass embedded_offset to
10919 val_print_array_elements instead of adjusting `valaddr' and
10920 `address'.
10921 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10922 embedded_offset to val_print_array_elements instead of adjusting
10923 `valaddr'.
10924 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10925 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10926 val_print_array_elements and pascal_object_print_value_fields
10927 instead of adjusting `valaddr'.
10928 (pascal_object_print_value_fields): Add `offset' parameter, and
10929 adjust to use it.
10930 (pascal_object_print_value): Add `offset' parameter, and adjust to
10931 use it.
10932 (pascal_object_print_static_field): Use
10933 value_contents_for_printing/value_embedded_offset, rather than
10934 value_contents.
10935 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10936 parameter, and adjust to use it. Use
10937 value_contents_for_printing/value_embedded_offset, rather than
10938 value_contents.
10939 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10940 (ada_val_print_array): Add `offset' parameter, and adjust to use
10941 it.
10942 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10943 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10944 Instead work with offsets. Use
10945 value_contents_for_printing/value_embedded_offset, rather than
10946 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10947 and use value_from_pointer to extract a target pointer, rather
10948 than value_from_longest.
10949 (print_variant_part): Add `offset' parameter. Replace
10950 `outer_valaddr' parameter by a new `outer_offset' parameter.
10951 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10952 (ada_value_print): Use
10953 value_contents_for_printing/value_embedded_offset, rather than
10954 value_contents.
10955 (print_record): Add `offset' parameter, and adjust to pass it
10956 down.
10957 (print_field_values): Add `offset' parameter. Replace
10958 `outer_valaddr' parameter by a new `outer_offset' parameter.
10959 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10960 Use value_contents_for_printing/value_embedded_offset, rather than
10961 value_contents.
10962 * d-valprint.c (dynamic_array_type): Use
10963 value_contents_for_printing/value_embedded_offset, rather than
10964 value_contents.
10965 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10966 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10967 (java_print_value_fields): Take `offset' into account. Don't
10968 re-adjust `valaddr'. Instead pass down adjusted offsets.
10969 (java_val_print): Take `embedded_offset' into account. Pass it to
10970 java_print_value_fields.
10971 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10972 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10973 down adjusted offsets.
10974 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10975 (f_val_print): Take `embedded_offset' into account.
10976
7bfc9434
JB
109772011-01-21 Joel Brobecker <brobecker@adacore.com>
10978
10979 * inflow.c: Include "gdbcmd.h".
10980 (interactive_mode): New static global, moved here from top.c.
10981 (show_interactive_mode): New function, moved here from top.c.
10982 use gdb_has_a_terminal instead of input_from_terminal_p to
10983 determine the current mode.
10984 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10985 setting.
10986 (_initialize_inflow): Add the "set/show interactive-mode"
10987 commands. Moved here from top.c, after having adjusted slightly
10988 the help text.
10989 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10990 to inflow.c.
10991 (input_from_terminal_p): Remove handling of "interactive-mode"
10992 setting, moved to infow.c.
10993 (init_main): Remove creation of the "set/show interactive-mode"
10994 commands, moved to inflow.c.
10995
44603653
JB
109962011-01-19 Joel Brobecker <brobecker@adacore.com>
10997
10998 * NEWS: Add entry for native ia64-hpux support.
10999
4694da01
TT
110002011-01-19 Tom Tromey <tromey@redhat.com>
11001
11002 PR mi/8618:
11003 * thread.c (free_thread): Free 'name'.
11004 (print_thread_info): Emit thread name. Change CLI output.
11005 (thread_name_command): New function.
11006 (do_captured_thread_select): Emit newline.
11007 (_initialize_thread): Register 'thread name' command.
11008 * target.h (struct target_ops) <to_thread_name>: New field.
11009 (target_thread_name): New macro.
11010 * target.c (update_current_target): Handle to_thread_name.
11011 * python/py-infthread.c (thpy_get_name): New function.
11012 (thpy_set_name): Likewise.
11013 (thread_object_getset): Add "name".
11014 * linux-nat.c (linux_nat_thread_name): New function.
11015 (linux_nat_add_target): Set to_thread_name.
11016 * gdbthread.h (struct thread_info) <name>: New field.
11017
10d44370
JB
110182011-01-18 Joel Brobecker <brobecker@adacore.com>
11019
11020 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11021 (ada_val_print_1): Likewise.
11022
e3acb115
JB
110232011-01-18 Joel Brobecker <brobecker@adacore.com>
11024
11025 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11026 upper limit address is not greater than the function end address
11027 when the upper limit could not be computed using the debugging
11028 info.
11029
dc92e161
TT
110302011-01-17 Tom Tromey <tromey@redhat.com>
11031
11032 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11033 get_regcomp_error.
11034 * utils.c: Include gdb_regex.h.
11035 (do_regfree_cleanup): New function.
11036 (make_regfree_cleanup): Likewise.
11037 (get_regcomp_error): Likewise.
11038 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11039
f55af66d
TT
110402011-01-17 Tom Tromey <tromey@redhat.com>
11041
11042 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11043 re_compile_fastmap.
11044
a5a44b53
PM
110452011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11046
11047 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11048 for internal variables.
11049 (last_was_structop): New static variable.
11050 (COMPLETE): New token.
11051 (field_exp): New rule to group all '.' suffix handling.
11052 Add mark_struct_expression calls when approriate to be able
11053 to correctly find fields for completion.
11054 (yylex): Adapt to handle field completion and set INTVAR when
11055 required.
11056
2c291032
YQ
110572011-01-14 Yao Qi <yao@codesourcery.com>
11058
11059 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11060 save_reggroup, restore_reggroup and all_reggroup.
11061
447b483c
JB
110622011-01-14 Joel Brobecker <brobecker@adacore.com>
11063
11064 * ada-valprint. (ada_printchar): Use the correct type length
11065 in call to ada_emit_char.
11066 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11067
7b64a93b
PM
110682011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11069
11070 * solib-som.h (hpux_major_release): Declare variable here.
11071 * solib-som.c: Remove <sys/utsname.h> header.
11072 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11073 (hpux_major_release): Make global, change default value to
11074 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11075 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11076 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11077 Add "solib-som.h" header.
11078 (set_hpux_major_release): New function.
11079 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11080
4e18c053
MF
110812011-01-14 Mike Frysinger <vapier@gentoo.org>
11082
11083 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11084
a9df6b22
JB
110852011-01-14 Joel Brobecker <brobecker@adacore.com>
11086
11087 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11088 new-line at end of warning message.
11089 (ia64_hpux_store_register): Remove trailing new-line at end of
11090 error message.
11091 * ia64-hpux-tdep.c: Rephrase comment.
11092 * solib-ia64-hpux.c (struct dld_info): Change type of field
11093 dld_flags from "long long" to ULONGEST.
11094
ecb956dd
PA
110952011-01-14 Pedro Alves <pedro@codesourcery.com>
11096
11097 * target.h (deprecated_child_ops): Delete declaration.
11098 * target.c (deprecated_child_ops): Delete definition.
11099
76adfcae
PA
111002011-01-14 Pedro Alves <pedro@codesourcery.com>
11101
11102 * Makefile.in (hpux-thread.o): Delete rule.
11103 * configure.ac: Don't check for HPUX DCE threads support.
11104 * configure, config.in: Regenerate.
11105 * hppa-hpux-nat.c (child_suppress_run): Delete.
11106 (hppa_hpux_child_can_run): Delete.
11107 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11108 * hpux-thread.c: Delete.
11109
042e866e
JB
111102011-01-13 Joel Brobecker <brobecker@adacore.com>
11111
11112 * hpux-thread.c (hpux_pid_to_str): Delete.
11113
4ffa5a33
JB
111142011-01-13 Joel Brobecker <brobecker@adacore.com>
11115
11116 * ada-valprint.c (ada_emit_char): Remove strange code.
11117 Check that c is <= UCHAR_MAX before passing it to isascii.
11118 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11119
de8fa76c
JB
111202011-01-13 Joel Brobecker <brobecker@adacore.com>
11121
11122 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11123 to the case where instream is stdin.
11124
c4de7027
JB
111252011-01-13 Joel Brobecker <brobecker@adacore.com>
11126
11127 * ia64-tdep.h (struct regcache): Forward declare.
11128 (struct ia64_infcall_ops): New struct type.
11129 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11130 and "infcall_ops".
11131 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11132 Renames ia64_find_global_pointer.
11133 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11134 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11135 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11136 methods.
11137 (ia64_infcall_ops): New static global constant.
11138 (ia64_gdbarch_init): Set tdep->infcall_ops.
11139 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11140 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11141 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11142 (ia64_hpux_dummy_code): New static global constant.
11143 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11144 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11145 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11146 New function.
11147 (ia64_hpux_infcall_ops): New static global constant.
11148 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11149 for inferior function calls to work properly on ia64-hpux.
11150
77ca787b
JB
111512011-01-13 Joel Brobecker <brobecker@adacore.com>
11152
11153 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11154 * ia64-tdep.h (struct frame_info): forward declaration.
11155 (struct gdbarch_tdep): Add field size_of_register_frame.
11156 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11157 to determine the size of the register frame.
11158 (ia64_size_of_register_frame): New function.
11159 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11160 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11161 (IA64_HPUX_UREG_REASON): New macro.
11162 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11163 New functions.
11164 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11165 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11166 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11167 objects.
11168
92c9a463
JB
111692011-01-13 Joel Brobecker <brobecker@adacore.com>
11170
11171 Add support for ia64-hpux.
11172 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11173 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11174
11175 * configure.host: Add handling for ia64-hpux hosts. Add associated
11176 floatformats.
11177 * configure.tgt: Add handling for ia64-hpux targets.
11178 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11179 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11180 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11181
f688d93f
JB
111822011-01-13 Joel Brobecker <brobecker@adacore.com>
11183
11184 [ttrace] Compute thread list immediately after attach.
11185 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11186 New subprogram.
11187 (inf_ttrace_attach): Use it.
11188
1b89e62f
JB
111892011-01-13 Joel Brobecker <brobecker@adacore.com>
11190
11191 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11192 if we could not determine the frame's function address. Instead,
11193 use the frame's PC, and then continue.
11194
3e5e6e2a
JB
111952011-01-13 Joel Brobecker <brobecker@adacore.com>
11196
11197 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11198 not already defined.
11199
825d6d8a
JB
112002011-01-13 Joel Brobecker <brobecker@adacore.com>
11201
11202 * ia64-tdep.c (ia64_struct_type_p): New function.
11203 (ia64_extract_return_value): Handle integral values that are
11204 less than 8 bytes long.
11205 (ia64_push_dummy_call): Likewise.
11206
7458e667
JB
112072011-01-13 Joel Brobecker <brobecker@adacore.com>
11208
11209 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11210 floatformat_ia64_ext.
11211 (floatformat_ia64_ext_big): New static const.
11212 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11213
1b05df00
TT
112142011-01-12 Tom Tromey <tromey@redhat.com>
11215
11216 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11217 messages.
11218 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11219 (mi_cmd_thread_list_ids): Likewise.
11220 (mi_cmd_data_list_changed_registers): Likewise.
11221 (mi_cmd_data_list_register_values): Likewise.
11222 (mi_cmd_data_write_register_values): Likewise.
11223 (mi_cmd_data_evaluate_expression): Likewise.
11224 (mi_cmd_data_read_memory): Likewise.
11225 (mi_cmd_data_read_memory_bytes): Likewise.
11226 (mi_cmd_data_write_memory): Likewise.
11227 (mi_cmd_enable_timings): Likewise.
11228 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11229 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11230 (mi_cmd_var_delete): Likewise.
11231 (mi_cmd_var_set_format): Likewise.
11232 (mi_cmd_var_show_format): Likewise.
11233 (mi_cmd_var_info_num_children): Likewise.
11234 (mi_cmd_var_list_children): Likewise.
11235 (mi_cmd_var_info_type): Likewise.
11236 (mi_cmd_var_info_expression): Likewise.
11237 (mi_cmd_var_show_attributes): Likewise.
11238 (mi_cmd_var_assign): Likewise.
11239 (mi_cmd_var_update): Likewise.
11240 (mi_cmd_enable_pretty_printing): Likewise.
11241 (mi_cmd_var_set_update_range): Likewise.
11242 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11243 messages.
11244 (mi_cmd_target_file_put): Likewise.
11245 (mi_cmd_target_file_delete): Likewise.
11246 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11247 messages.
11248 (mi_cmd_stack_info_depth): Likewise.
11249 (mi_cmd_stack_list_locals): Likewise.
11250 (mi_cmd_stack_list_args): Likewise.
11251 (mi_cmd_stack_select_frame): Likewise.
11252 (mi_cmd_stack_select_frame): Likewise.
11253 (mi_cmd_stack_info_frame): Likewise.
11254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11255 messages.
11256 (mi_cmd_file_list_exec_source_files): Likewise.
11257 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11258 (mi_cmd_env_cd): Likewise.
11259 (mi_cmd_env_path): Likewise.
11260 (mi_cmd_env_dir): Likewise.
11261 (mi_cmd_inferior_tty_show): Likewise.
11262 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11263 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11264 (mi_cmd_break_watch): Likewise.
11265
ad422571
TJB
112662011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11267
11268 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11269 (ppc_linux_insert_hw_breakpoint): Likewise.
11270 (ppc_linux_remove_hw_breakpoint): Likewise.
11271 (ppc_linux_insert_watchpoint): Likewise.
11272
c2ff108b
JK
112732011-01-12 Andrew Burgess <aburgess@broadcom.com>
11274 Jan Kratochvil <jan.kratochvil@redhat.com>
11275
11276 PR fortran/11104 and DWARF unbound arrays detection.
11277 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11278 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11279 unspecified upper bound.
11280 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11281 variables array_size_array, tmp_type and offset_item. New variable
11282 array. Remove call to f77_get_upperbound. New variables array_type
11283 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11284 the final call to deprecated_set_value_type.
11285
41e8491f
JK
112862011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11287
11288 Make value allocations more lazy.
11289 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11290 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11291 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11292 instead of allocate_value and set_value_lazy.
11293 * findvar.c (value_of_register_lazy): Likewise.
11294 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11295 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11296 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11297 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11298 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11299 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11300 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11301 the end, remove set_value_lazy there.
11302 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11303 instead of allocate_value and set_value_lazy when possible.
11304 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11305 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11306 of allocate_value and set_value_lazy.
11307 (value_from_contents_and_address): Use allocate_value_lazy instead of
11308 allocate_value and set_value_lazy when possible.
11309
b716877b
AB
113102011-01-12 Andrew Burgess <aburgess@broadcom.com>
11311
11312 * disasm.c (dump_insns): Support dumping opcodes for MI.
11313 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11314 dumping of instruction opcodes.
11315
d5ae309f
JB
113162011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11317
11318 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11319 appropiately.
11320
98871305
TT
113212011-01-11 Tom Tromey <tromey@redhat.com>
11322
11323 * thread.c (do_captured_thread_select): Emit newline before
11324 printing frame.
11325
c378eb4e
MS
113262011-01-11 Michael Snyder <msnyder@vmware.com>
11327
11328 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11329 * score-tdep.c: Ditto.
11330 * score-tdep.h: Ditto.
11331 * ser-base.c: Ditto.
11332 * ser-go32.c: Ditto.
11333 * serial.c: Ditto.
11334 * serial.h: Ditto.
11335 * ser-mingw.c: Ditto.
11336 * ser-pipe.c: Ditto.
11337 * ser-tcp.c: Ditto.
11338 * ser-unix.c: Ditto.
11339 * sh64-tdep.c: Ditto.
11340 * shnbsd-nat.c: Ditto.
11341 * sh-tdep.c: Ditto.
11342 * sh-tdep.h: Ditto.
11343 * solib.c: Ditto.
11344 * solib-darwin.c: Ditto.
11345 * solib-frv.c: Ditto.
11346 * solib.h: Ditto.
11347 * solib-irix.c: Ditto.
11348 * solib-osf.c: Ditto.
11349 * solib-pa64.c: Ditto.
11350 * solib-som.c: Ditto.
11351 * solib-spu.c: Ditto.
11352 * solib-sunos.c: Ditto.
11353 * solib-svr4.c: Ditto.
11354 * solist.h: Ditto.
11355 * sol-thread.c: Ditto.
11356 * somread.c: Ditto.
11357 * source.c: Ditto.
11358 * source.h: Ditto.
11359 * sparc64-linux-tdep.c: Ditto.
11360 * sparc64-tdep.c: Ditto.
11361 * sparc-linux-nat.c: Ditto.
11362 * sparc-linux-tdep.c: Ditto.
11363 * sparc-sol2-nat.c: Ditto.
11364 * sparc-sol2-tdep.c: Ditto.
11365 * sparc-tdep.c: Ditto.
11366 * sparc-tdep.h: Ditto.
11367 * spu-tdep.c: Ditto.
11368 * stabsread.c: Ditto.
11369 * stabsread.h: Ditto.
11370 * stack.c: Ditto.
11371 * symfile.c: Ditto.
11372 * symfile.h: Ditto.
11373 * symmisc.c: Ditto.
11374 * symtab.c: Ditto.
11375 * symtab.h: Ditto.
11376 * target.c: Ditto.
11377 * target-descriptions.c: Ditto.
11378 * target-descriptions.h: Ditto.
11379 * target.h: Ditto.
11380 * target-memory.c: Ditto.
11381 * terminal.h: Ditto.
11382 * thread.c: Ditto.
11383 * top.c: Ditto.
11384 * tracepoint.c: Ditto.
11385 * tracepoint.h: Ditto.
11386 * trad-frame.h: Ditto.
11387 * typeprint.c: Ditto.
11388
581e13c1
MS
113892011-01-11 Michael Snyder <msnyder@vmware.com>
11390
11391 * ui-file.c: Comment cleanup, mostly periods and spaces.
11392 * ui-file.h: Ditto.
11393 * ui-out.c: Ditto.
11394 * ui-out.h: Ditto.
11395 * utils.c: Ditto.
11396 * v850-tdep.c: Ditto.
11397 * valarith.c: Ditto.
11398 * valops.c: Ditto.
11399 * valprint.c: Ditto.
11400 * valprint.h: Ditto.
11401 * value.c: Ditto.
11402 * value.h: Ditto.
11403 * varobj.c: Ditto.
11404 * varobj.h: Ditto.
11405 * vax-tdep.c: Ditto.
11406 * vec.c: Ditto.
11407 * vec.h: Ditto.
11408 * version.h: Ditto.
11409 * windows-nat.c: Ditto.
11410 * windows-tdep.c: Ditto.
11411 * xcoffread.c: Ditto.
11412 * xcoffsolib.c: Ditto.
11413 * xml-support.c: Ditto.
11414 * xstormy16-tdep.c: Ditto.
11415 * xtensa-tdep.c: Ditto.
11416 * xtensa-tdep.h: Ditto.
11417
90e4670f
TJB
114182011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11419
11420 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11421 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11422
e09342b5
TJB
114232011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11424 Thiago Jung Bauermann <bauerman@br.ibm.com>
11425
11426 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11427 * breakpoint.h
e09342b5
TJB
11428 (struct breakpoint_ops) <resources_needed>: New method.
11429 Initialize to NULL in all existing breakpoint_ops instances.
11430 (struct breakpoint) <exact>: New field.
11431 (target_exact_watchpoints): Declare external global.
11432 * breakpoint.c (target_exact_watchpoints): New global flag.
11433 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11434 b->enable_state to bp_enabled before calling
11435 hw_watchpoint_used_count.
11436 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11437 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11438 if available.
11439 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11440 if the watchpoint is exact.
11441 (resources_needed_watchpoint): New function.
11442 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11443 (watch_command_1): Set b->exact if the user asked for an exact
11444 watchpoint and one can be set.
11445 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11446 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11447 the user asks for an exact watchpoint and one can be set. Return
11448 number of needed debug registers to watch the expression.
11449 * gdbtypes.c (is_scalar_type): New function, based on
11450 valprint.c:scalar_type_p.
11451 (is_scalar_type_recursive): New function.
11452 * gdbtypes.h (is_scalar_type_recursive): Declare.
11453 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11454 handle regions when ranged watchpoints are available.
11455 (create_watchpoint_request): New function.
11456 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11457 create_watchpoint_request.
11458 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11459 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11460 `set powerpc' and `show powerpc' commands.
11461 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11462 Mention documentation comment in the target macro.
11463 (target_region_ok_for_hw_watchpoint): Document return value.
11464
9fa40276
TJB
114652011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11466
11467 * breakpoint.c (update_watchpoint): Decide on using a software or
11468 hardware watchpoint after the bp_locations are created.
11469
77b06cd7
TJB
114702010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11471
11472 Convert hardware watchpoints to use breakpoint_ops.
11473 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11474 <insert_location>: ... this. Return int instead of void.
11475 Accept pointer to struct bp_location instead of pointer to
11476 struct breakpoint. Adapt all implementations.
f2eb0bc8 11477 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11478 <remove_location>: ... this. Accept pointer to struct bp_location
11479 instead of pointer to struct breakpoint. Adapt all implementations.
11480 * breakpoint.c (insert_catchpoint): Delete function.
11481 (insert_bp_location): Call the watchpoint or catchpoint's
11482 breakpoint_ops.insert method.
11483 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11484 breakpoint_ops.remove method.
11485 (insert_watchpoint, remove_watchpoint): New functions.
11486 (watchpoint_breakpoint_ops): New structure.
11487 (watch_command_1): Initialize the OPS field.
11488 * inf-child.c (inf_child_insert_fork_catchpoint)
11489 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11490 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11491 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11492 Delete functions.
11493 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11494 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11495 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11496 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11497 * target.c (update_current_target): Change default implementation of
11498 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11499 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11500 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11501 to_set_syscall_catchpoint to return_one.
11502 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11503 (debug_to_insert_exec_catchpoint): Report return value.
11504 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11505 (to_insert_exec_catchpoint): Change declaration to return int instead
11506 of void.
11507
9b20d036
MS
115082011-01-11 Michael Snyder <msnyder@vmware.com>
11509
11510 * arm-tdep.c: Internationalization.
11511 * c-lang.c: Ditto.
11512 * charset.c: Ditto.
11513 * fork-child.c: Ditto.
11514 * nto-procfs.c: Ditto.
11515 * ppc-sysv-tdep.c: Ditto.
11516 * procfs.c: Ditto.
11517 * remote-mips.c: Ditto.
11518 * remote.c: Ditto.
11519 * rs6000-nat.c: Ditto.
11520 * rs6000-tdep.c: Ditto.
11521 * target.c: Ditto.
11522 * valops.c: Ditto.
11523 * value.c: Ditto.
11524 * xml-support.c: Ditto.
11525 * mi/mi-cmd-break.c: Ditto.
11526 * mi/mi-cmd-var.c: Ditto.
11527 * mi/mi-interp.c: Ditto.
11528 * mi/mi-main.c: Ditto.
11529
dae477fe
AB
115302011-01-11 Andrew Burgess <aburgess@broadcom.com>
11531
11532 * remote-sim.c (gdbsim_store_register): Update API to
11533 sim_store_register to check more error conditions.
11534
0df8b418
MS
115352011-01-10 Michael Snyder <msnyder@vmware.com>
11536
11537 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11538 * nto-tdep.c: Ditto.
11539 * nto-tdep.h: Ditto.
11540 * objc-exp.y: Ditto.
11541 * objc-lang.c: Ditto.
11542 * objfiles.c: Ditto.
11543 * objfiles.h: Ditto.
11544 * observer.c: Ditto.
11545 * opencl-lang.c: Ditto.
11546 * osabi.c: Ditto.
11547 * parse.c: Ditto.
11548 * parser-defs.h: Ditto.
11549 * p-exp.y: Ditto.
11550 * p-lang.c: Ditto.
11551 * posix-hdep.c: Ditto.
11552 * ppcbug-rom.c: Ditto.
11553 * ppc-linux-nat.c: Ditto.
11554 * ppc-linux-tdep.c: Ditto.
11555 * ppc-linux-tdep.h: Ditto.
11556 * ppcnbsd-tdep.c: Ditto.
11557 * ppcobsd-tdep.c: Ditto.
11558 * ppcobsd-tdep.h: Ditto.
11559 * ppc-sysv-tdep.c: Ditto.
11560 * ppc-tdep.h: Ditto.
11561 * printcmd.c: Ditto.
11562 * proc-abi.c: Ditto.
11563 * proc-flags.c: Ditto.
11564 * procfs.c: Ditto.
11565 * proc-utils.h: Ditto.
11566 * progspace.h: Ditto.
11567 * prologue-value.c: Ditto.
11568 * prologue-value.h: Ditto.
11569 * psympriv.h: Ditto.
11570 * psymtab.c: Ditto.
11571 * p-typeprint.c: Ditto.
11572 * p-valprint.c: Ditto.
11573 * ravenscar-sparc-thread.c: Ditto.
11574 * ravenscar-thread.c: Ditto.
11575 * ravenscar-thread.h: Ditto.
11576 * record.c: Ditto.
11577 * regcache.c: Ditto.
11578 * regcache.h: Ditto.
11579 * remote.c: Ditto.
11580 * remote-fileio.c: Ditto.
11581 * remote-fileio.h: Ditto.
11582 * remote.h: Ditto.
11583 * remote-m32r-sdi.c: Ditto.
11584 * remote-mips.c: Ditto.
11585 * remote-sim.c: Ditto.
11586 * rs6000-aix-tdep.c: Ditto.
11587 * rs6000-nat.c: Ditto.
11588 * rs6000-tdep.c: Ditto.
11589
0d7a18f7
MS
115902011-01-10 Michael Snyder <msnyder@vmware.com>
11591
11592 * charset.c (validate): Internationalization.
11593 * coffread.c (read_one_sym): Ditto.
11594 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11595 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11596 * inflow.c (new_tty): Ditto.
11597 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11598 * m32c-tdep.c (m32c_return_value): Ditto.
11599 * mep-tdep.c (mep_store_return_value): Ditto.
11600 * score-tdep.c (score7_fetch_insn): Ditto.
11601 * ser-mingw.c (pipe_windows_open): Ditto.
11602 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11603 * spu-tdep.c (spu_register_type): Ditto.
11604 * tracepoint.c (trace_find_command): Ditto.
11605 * valarith.c (value_pos): Ditto.
11606
9a153e0b
JB
116072011-01-10 Joel Brobecker <brobecker@adacore.com>
11608
11609 * ada-valprint.c (printstr): Minor comment reformatting.
11610
35ecd2d6
MS
116112011-01-08 Michael Snyder <msnyder@vmware.com>
11612
11613 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11614 markup.
11615
1777feb0
MS
116162011-01-08 Michael Snyder <msnyder@vmware.com>
11617
11618 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11619 * hppa-hpux-tdep.c: Ditto.
11620 * hppa-linux-nat.c: Ditto.
11621 * hppa-linux-tdep.c: Ditto.
11622 * hppanbsd-tdep.c: Ditto.
11623 * hppa-tdep.c: Ditto.
11624 * hppa-tdep.h: Ditto.
11625 * hpux-thread.c: Ditto.
11626 * i386-cygwin-tdep.c: Ditto.
11627 * i386-darwin-nat.c: Ditto.
11628 * i386gnu-nat.c: Ditto.
11629 * i386-linux-nat.c: Ditto.
11630 * i386-linux-tdep.c: Ditto.
11631 * i386-nat.c: Ditto.
11632 * i386-nat.h: Ditto.
11633 * i386nbsd-tdep.c: Ditto.
11634 * i386-sol2-nat.c: Ditto.
11635 * i386-stub.c: Ditto.
11636 * i386-tdep.c: Ditto.
11637 * i386-tdep.h: Ditto.
11638 * i387-tdep.c: Ditto.
11639 * ia64-linux-nat.c: Ditto.
11640 * ia64-linux-tdep.c: Ditto.
11641 * ia64-tdep.c: Ditto.
11642 * infcall.c: Ditto.
11643 * infcall.h: Ditto.
11644 * infcmd.c: Ditto.
11645 * inferior.c: Ditto.
11646 * inferior.h: Ditto.
11647 * infloop.c: Ditto.
11648 * inflow.c: Ditto.
11649 * infrun.c: Ditto.
11650 * interps.c: Ditto.
11651 * interps.h: Ditto.
11652 * iq2000-tdep.c: Ditto.
11653 * irix5-nat.c: Ditto.
11654 * jit.c: Ditto.
11655 * jit.h: Ditto.
11656 * jv-exp.y: Ditto.
11657 * jv-lang.c: Ditto.
11658 * jv-lang.h: Ditto.
11659 * jv-typeprint.c: Ditto.
11660 * jv-valprint.c: Ditto.
11661 * language.c: Ditto.
11662 * language.h: Ditto.
11663 * linespec.c: Ditto.
11664 * linux-fork.c: Ditto.
11665 * linux-nat.c: Ditto.
11666 * linux-thread-db.c: Ditto.
11667 * lm32-tdep.c: Ditto.
11668
025bb325
MS
116692011-01-08 Michael Snyder <msnyder@vmware.com>
11670
11671 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11672 * m2-lang.c: Ditto.
11673 * m2-typeprint.c: Ditto.
11674 * m2-valprint.c: Ditto.
11675 * m32c-tdep.c: Ditto.
11676 * m32r-linux-nat.c: Ditto.
11677 * m32r-rom.c: Ditto.
11678 * m32r-tdep.c: Ditto.
11679 * m32r-tdep.h: Ditto.
11680 * m68hc11-tdep.c: Ditto.
11681 * m58klinux-nat.c: Ditto.
11682 * m68k-tdep.c: Ditto.
11683 * m88k-tdep.c: Ditto.
11684 * m88k-tdep.h: Ditto.
11685 * machoread.c: Ditto.
11686 * macrocmd.c: Ditto.
11687 * macroexp.c: Ditto.
11688 * macrotab.c: Ditto.
11689 * main.c: Ditto.
11690 * maint.c: Ditto.
11691 * mdebugread.c: Ditto.
11692 * mdebugread.h: Ditto.
11693 * memattr.c: Ditto.
11694 * memattr.h: Ditto.
11695 * memory-map.h: Ditto.
11696 * mep-tdep.c: Ditto.
11697 * microblaze-rom.c: Ditto.
11698 * microblaze-tdep.c: Ditto.
11699 * minsyms.c: Ditto.
11700 * mips-irix-tdep.c: Ditto.
11701 * mips-linux-nat.c: Ditto.
11702 * mips-linux-tdep.c: Ditto.
11703 * mips-linux-tdep.h: Ditto.
11704 * mipsnbsd-nat.c: Ditto.
11705 * mipsnbsd-tdep.c: Ditto.
11706 * mipsread.c: Ditto.
11707 * mips-tdep.c: Ditto.
11708 * mips-tdep.h: Ditto.
11709 * mn10300-linux-tdep.c: Ditto.
11710 * mn10300-tdep.c: Ditto.
11711 * mn10300-tdep.h: Ditto.
11712 * monitor.c: Ditto.
11713 * monitor.h: Ditto.
11714 * moxie-tdep.c: Ditto.
11715 * moxie-tdep.h: Ditto.
11716 * mt-tdep.c: Ditto.
11717
1642781b
MF
117182011-01-08 Mike Frysinger <vapier@gentoo.org>
11719
11720 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11721
394b0adb
JB
117222011-01-08 Robert Millan <rmh@gnu.org>
11723
11724 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11725
b670013c
MS
117262011-01-07 Michael Snyder <msnyder@vmware.com>
11727
11728 * charset.c (_initialize_charset): Fix typo in string.
11729
a743e542
MS
117302011-01-07 Michael Snyder <msnyder@vmware.com>
11731
11732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11733 for i18n.
f2eb0bc8 11734 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11735 Split line so that operator goes to beginning of line.
11736 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11737 assignment out of if statement.
11738
0963b4bd
MS
117392011-01-07 Michael Snyder <msnyder@vmware.com>
11740
11741 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11742 * ada-lang.h: Ditto.
11743 * ada-tasks.c: Ditto.
11744 * ada-valprint.c: Ditto.
11745 * aix-threads.c: Ditto.
11746 * alpha-linux-nat.c: Ditto.
11747 * alpha-linux-tdep.c: Ditto.
11748 * alpha-mdebug-tdep.c: Ditto.
11749 * alpha-nat.c: Ditto.
11750 * alpha-osf1-tdep.c: Ditto.
11751 * alpha-tdep.c: Ditto.
11752 * alphabsd-nat.c: Ditto.
11753 * alphabsd-tdep.c: Ditto.
11754 * amd64-darwin-tdep.c: Ditto.
11755 * amd64-linux-nat.c: Ditto.
11756 * amd64-linux-tdep.c: Ditto.
11757 * amd64-sol2-tdep.c: Ditto.
11758 * amd64-tdep.c: Ditto.
11759 * amd64-fbsd-tdep.c: Ditto.
11760 * amd64-nbsd-tdep.c: Ditto.
11761 * amd64-obsd-tdep.c: Ditto.
11762 * amd64-linux-nat.c: Ditto.
11763 * amd64-linux-tdep.c: Ditto.
11764 * arm-tdep.c: Ditto.
11765 * arm-tdep.h: Ditto.
11766 * armnbsd-nat.c: Ditto.
11767 * avr-tdep.c: Ditto.
11768 * bfin-tdep.c: Ditto.
11769 * bsd-kvm.c: Ditto.
11770 * c-typeprintc: Ditto.
11771 * c-valprint.c: Ditto.
11772 * coff-pe-read.h: Ditto.
11773 * coffreead.c: Ditto.
11774 * cris-tdep.c: Ditto.
11775 * d-lang.c: Ditto.
11776 * darwin-nat-info.c: Ditto.
11777 * darwin-nat.c: Ditto.
11778 * dbug-rom.c: Ditto.
11779 * dbxread.c: Ditto.
11780 * dcache.c: Ditto.
11781 * dcache.h: Ditto.
11782 * dec-thread.c: Ditto.
11783 * defs.h: Ditto.
11784 * demangle.c: Ditto.
11785 * dicos-tdep.c: Ditto.
11786 * dictionary.c: Ditto.
11787 * dictionary.h: Ditto.
11788 * dink32-rom.c: Ditto.
11789 * disasm.c: Ditto.
11790 * doublest.c: Ditto.
11791 * dsrec.c: Ditto.
11792 * dummy-frame.c: Ditto.
11793 * dwarf2-frame.c: Ditto.
11794 * dwarf2expr.c: Ditto.
11795 * dwarf2loc.c: Ditto.
11796 * dwarf2read.c: Ditto.
11797 * elfread.c: Ditto.
11798 * environ.c: Ditto.
11799 * eval.c: Ditto.
11800 * event-top.h: Ditto.
11801 * exceptions.c: Ditto.
11802 * exceptions.h: Ditto.
11803 * exec.c: Ditto.
11804 * expprint.c: Ditto.
11805 * expression.h: Ditto.
11806 * f-exp.y: Ditto.
11807 * f-lang.c: Ditto.
11808 * f-lang.h: Ditto.
11809 * f-typeprint.c: Ditto.
11810 * f-valprint.c: Ditto.
11811 * fbsd-nat.c: Ditto.
11812 * findvar.c: Ditto.
11813 * fork-child.c: Ditto.
11814 * frame.c: Ditto.
11815 * frame.h: Ditto.
11816 * frv-linux-tdep.c: Ditto.
11817 * frv-tdep.c: Ditto.
11818 * gcore.c: Ditto.
11819 * gdb-stabs.h: Ditto.
11820 * gdb_assert.h: Ditto.
11821 * gdb_string.h: Ditto.
11822 * gdb_thread_db.h: Ditto.
11823 * gdb_wait.h: Ditto.
11824 * gdbarch.sh: Ditto.
11825 * gdbcore.h: Ditto.
11826 * gdbthread.h: Ditto.
11827 * gdbtypes.c: Ditto.
11828 * gdbtypes.h: Ditto.
11829 * gnu-nat.c: Ditto.
11830 * gnu-nat.h: Ditto.
11831 * gnu-v2-abi.c: Ditto.
11832 * gnu-v3-abi.c: Ditto.
11833 * go32-nat.c: Ditto.
11834 * gdbarch.c: Regenerate.
11835 * gdbarch.h: Regenerate.
11836
ac74f770
MS
118372011-01-07 Michael Snyder <msnyder@vmware.com>
11838
11839 * ax-gdb.c: Adjust some long output strings.
11840 * breakpoint.c: Ditto.
11841 * charset.c: Ditto.
11842 * cp-abi.c: Ditto.
11843 * infcall.c: Ditto.
11844 * infrun.c: Ditto.
11845 * linux-nat.c: Ditto.
11846 * solib-pa64.c: Ditto.
11847 * solib-som.c: Ditto.
11848
d8e22779
TT
118492011-01-06 Tom Tromey <tromey@redhat.com>
11850
11851 PR python/12367:
11852 * NEWS: Add item.
11853 * python/python.c (GdbMethods): Add "newest_frame" method.
11854 * python/python-internal.h (gdbpy_newest_frame): Declare.
11855 * python/py-frame.c (gdbpy_newest_frame): New function.
11856
a255712f
PP
118572010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11858
11859 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11860 * jit.c (jit_debug): New variable.
11861 (show_jit_debug): New function.
11862 (struct target_buffer): Use ULONGEST.
11863 (bfd_open_from_target_memory): Likewise.
11864 (jit_register_code, jit_inferior_init): Add debug output.
11865 (_initialize_jit): Register "debug jit" command.
11866
ccfc3d6e
TT
118672011-01-06 Tom Tromey <tromey@redhat.com>
11868
11869 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11870 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11871 and ARCH_FRAME.
11872
57126e4a
TT
118732011-01-06 Tom Tromey <tromey@redhat.com>
11874
11875 * python/py-frame.c (frapy_block): Use get_frame_block.
11876
16dfc9ce
JB
118772011-01-06 Joel Brobecker <brobecker@adacore.com>
11878
11879 Do not stop on SIGPRIO signals by default
11880 * infrun.c (_initialize_infrun): Unset signal_stop and
11881 signal_print for TARGET_SIGNAL_PRIO.
11882
b1ce2347
JB
118832011-01-06 Joel Brobecker <brobecker@adacore.com>
11884
11885 * ada-tasks.c: Fix style violation in comment.
11886
8f7e195f
JB
118872011-01-06 Joel Brobecker <brobecker@adacore.com>
11888
11889 * linespec.c (decode_compound, find_method): Remove trailing \n
11890 at end of error string.
11891 * solib-irix.c (irix_current_sos): Likewise.
11892 * varobj.c (uninstall_variable): Likewise.
11893
e9bdf92c
JB
118942011-01-06 Joel Brobecker <brobecker@adacore.com>
11895
11896 * copyright.py: New script.
11897 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11898 Launch emacs without exec'ing. Call copyright.py afterwards.
11899
3e43a32a
MS
119002011-01-05 Michael Snyder <msnyder@vmware.com>
11901
11902 * addrmap.c: Shorten lines of >= 80 columns.
11903 * arch-utils.c: Ditto.
11904 * arch-utils.h: Ditto.
11905 * ax-gdb.c: Ditto.
11906 * ax-general.c: Ditto.
11907 * bcache.c: Ditto.
11908 * blockframe.c: Ditto.
11909 * breakpoint.c: Ditto.
11910 * buildsym.c: Ditto.
11911 * c-lang.c: Ditto.
11912 * c-typeprint.c: Ditto.
11913 * charset.c: Ditto.
11914 * coffread.c: Ditto.
11915 * command.h: Ditto.
11916 * corelow.c: Ditto.
11917 * cp-abi.c: Ditto.
11918 * cp-namespace.c: Ditto.
11919 * cp-support.c: Ditto.
11920 * dbug-rom.c: Ditto.
11921 * dbxread.c: Ditto.
11922 * defs.h: Ditto.
11923 * dfp.c: Ditto.
11924 * dfp.h: Ditto.
11925 * dictionary.c: Ditto.
11926 * disasm.c: Ditto.
11927 * doublest.c: Ditto.
11928 * dwarf2-frame.c: Ditto.
11929 * dwarf2expr.c: Ditto.
11930 * dwarf2loc.c: Ditto.
11931 * dwarf2read.c: Ditto.
11932 * elfread.c: Ditto.
11933 * eval.c: Ditto.
11934 * event-loop.c: Ditto.
11935 * event-loop.h: Ditto.
11936 * exceptions.h: Ditto.
11937 * exec.c: Ditto.
11938 * expprint.c: Ditto.
11939 * expression.h: Ditto.
11940 * f-lang.c: Ditto.
11941 * f-valprint.c: Ditto.
11942 * findcmd.c: Ditto.
11943 * frame-base.c: Ditto.
11944 * frame-unwind.c: Ditto.
11945 * frame-unwind.h: Ditto.
11946 * frame.c: Ditto.
11947 * frame.h: Ditto.
11948 * gcore.c: Ditto.
11949 * gdb-stabs.h: Ditto.
11950 * gdb_assert.h: Ditto.
11951 * gdb_dirent.h: Ditto.
11952 * gdb_obstack.h: Ditto.
11953 * gdbcore.h: Ditto.
11954 * gdbtypes.c: Ditto.
11955 * gdbtypes.h: Ditto.
11956 * inf-ttrace.c: Ditto.
11957 * infcall.c: Ditto.
11958 * infcmd.c: Ditto.
11959 * inflow.c: Ditto.
11960 * infrun.c: Ditto.
11961 * inline-frame.h: Ditto.
11962 * language.c: Ditto.
11963 * language.h: Ditto.
11964 * libunwind-frame.c: Ditto.
11965 * libunwind-frame.h: Ditto.
11966 * linespec.c: Ditto.
11967 * linux-nat.c: Ditto.
11968 * linux-nat.h: Ditto.
11969 * linux-thread-db.c: Ditto.
11970 * machoread.c: Ditto.
11971 * macroexp.c: Ditto.
11972 * macrotab.c: Ditto.
11973 * main.c: Ditto.
11974 * maint.c: Ditto.
11975 * mdebugread.c: Ditto.
11976 * memattr.c: Ditto.
11977 * minsyms.c: Ditto.
11978 * monitor.c: Ditto.
11979 * monitor.h: Ditto.
11980 * objfiles.c: Ditto.
11981 * objfiles.h: Ditto.
11982 * osabi.c: Ditto.
11983 * p-typeprint.c: Ditto.
11984 * p-valprint.c: Ditto.
11985 * parse.c: Ditto.
11986 * printcmd.c: Ditto.
11987 * proc-events.c: Ditto.
11988 * procfs.c: Ditto.
11989 * progspace.c: Ditto.
11990 * progspace.h: Ditto.
11991 * psympriv.h: Ditto.
11992 * psymtab.c: Ditto.
11993 * record.c: Ditto.
11994 * regcache.c: Ditto.
11995 * regcache.h: Ditto.
11996 * remote-fileio.c: Ditto.
11997 * remote.c: Ditto.
11998 * ser-mingw.c: Ditto.
11999 * ser-tcp.c: Ditto.
12000 * ser-unix.c: Ditto.
12001 * serial.c: Ditto.
12002 * serial.h: Ditto.
12003 * solib-frv.c: Ditto.
12004 * solib-irix.c: Ditto.
12005 * solib-osf.c: Ditto.
12006 * solib-pa64.c: Ditto.
12007 * solib-som.c: Ditto.
12008 * solib-sunos.c: Ditto.
12009 * solib-svr4.c: Ditto.
12010 * solib-target.c: Ditto.
12011 * solib.c: Ditto.
12012 * somread.c: Ditto.
12013 * source.c: Ditto.
12014 * stabsread.c: Ditto.
12015 * stabsread.c: Ditto.
12016 * stack.c: Ditto.
12017 * stack.h: Ditto.
12018 * symfile-mem.c: Ditto.
12019 * symfile.c: Ditto.
12020 * symfile.h: Ditto.
12021 * symmisc.c: Ditto.
12022 * symtab.c: Ditto.
12023 * symtab.h: Ditto.
12024 * target-descriptions.c: Ditto.
12025 * target-memory.c: Ditto.
12026 * target.c: Ditto.
12027 * target.h: Ditto.
12028 * terminal.h: Ditto.
12029 * thread.c: Ditto.
12030 * top.c: Ditto.
12031 * tracepoint.c: Ditto.
12032 * tracepoint.h: Ditto.
12033 * ui-file.c: Ditto.
12034 * ui-file.h: Ditto.
12035 * ui-out.h: Ditto.
12036 * user-regs.c: Ditto.
12037 * user-regs.h: Ditto.
12038 * utils.c: Ditto.
12039 * valarith.c: Ditto.
12040 * valops.c: Ditto.
12041 * valprint.c: Ditto.
12042 * valprint.h: Ditto.
12043 * value.c: Ditto.
12044 * varobj.c: Ditto.
12045 * varobj.h: Ditto.
12046 * vec.h: Ditto.
12047 * xcoffread.c: Ditto.
12048 * xcoffsolib.c: Ditto.
12049 * xcoffsolib.h: Ditto.
12050 * xml-syscall.c: Ditto.
12051 * xml-tdesc.c: Ditto.
12052
9a2b4c1b
MS
120532011-01-05 Michael Snyder <msnyder@vmware.com>
12054
12055 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12056 * cli/cli-decode.c: Ditto.
12057 * cli/cli-dump.c: Ditto.
12058 * cli/cli-logging.c: Ditto.
12059 * cli/cli-script.c: Ditto.
12060 * cli/cli-setshow.c: Ditto.
12061 * common/signals.c: Ditto.
12062 * mi/mi-cmd-break.c: Ditto.
12063 * mi/mi-cmd-disas.c: Ditto.
12064 * mi/mi-cmd-stack.c: Ditto.
12065 * mi/mi-cmd-var.c: Ditto.
12066 * mi/mi-cmds.c: Ditto.
12067 * mi/mi-common.h: Ditto.
12068 * mi/mi-console.c: Ditto.
12069 * mi/mi-interp.c: Ditto.
12070 * mi/mi-main.c: Ditto.
12071 * osf-share/cma_attr.c: Ditto.
12072 * osf-share/cma_deb_core.h: Ditto.
12073 * osf-share/cma_debug_client.h: Ditto.
12074 * osf-share/cma_handle.h: Ditto.
12075 * osf-share/cma_mutex.h: Ditto.
12076 * osf-share/cma_stack_int.h: Ditto.
12077 * osf-share/cma_tcb_defs.h: Ditto.
12078 * python/py-auto-load.c: Ditto.
12079 * python/py-breakpoint.c: Ditto.
12080 * python/py-cmd.c: Ditto.
12081 * python/py-frame.c: Ditto.
12082 * python/py-objfile.c: Ditto.
12083 * python/py-param.c: Ditto.
12084 * python/py-progspace.c: Ditto.
12085 * python/py-symbol.c: Ditto.
12086 * python/py-value.c: Ditto.
12087 * python/python-internal.h: Ditto.
12088 * python/python.c: Ditto.
12089 * tui/tui-data.c: Ditto.
12090 * tui/tui-disasm.c: Ditto.
12091 * tui/tui-hooks.c: Ditto.
12092 * tui/tui-io.c: Ditto.
12093 * tui/tui-layout.c: Ditto.
12094 * tui/tui-regs.c: Ditto.
12095 * tui/tui-source.c: Ditto.
12096 * tui/tui-stack.c: Ditto.
12097 * tui/tui-win.c: Ditto.
12098 * tui/tui-windata.c: Ditto.
12099 * tui/tui-winsource.c: Ditto.
12100
44944448
JB
121012011-01-05 Joel Brobecker <brobecker@adacore.com>
12102
12103 * configure.ac, gdb.1: Copyright year update.
12104
ebedcab5
JK
121052011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12106
12107 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12108 this_pc_in_block, morestack_msym and morestack_name. Check for
12109 "__morestack" minimal symbol there.
12110
e5cc9f32
JB
121112011-01-03 Joel Brobecker <brobecker@adacore.com>
12112
12113 * symfile.c (find_sym_fns): Add call to dont_repeat.
12114
7b6bb8da
JB
121152011-01-01 Joel Brobecker <brobecker@adacore.com>
12116
12117 Copyright year update in most files (performed by copyright.sh).
12118
71ce852c
JB
121192011-01-01 Joel Brobecker <brobecker@adacore.com>
12120
12121 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12122
c3c1ebe8 12123For older changes see ChangeLog-2010.
c906108c
SS
12124\f
12125Local Variables:
12126mode: change-log
12127left-margin: 8
12128fill-column: 74
12129version-control: never
57da7796 12130coding: utf-8
c906108c 12131End:
This page took 1.83827 seconds and 4 git commands to generate.