* doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): Update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7dda8cff
JB
12011-12-11 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_exception_support_info_sniffer): Improve
4 error message.
5
3eecfa55
JB
62011-12-11 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (struct ada_inferior_data) [exception_info]:
9 New field.
10 (exception_info): Delete.
11 (ada_exception_support_info_sniffer): Get exception_support_info
12 data from our per-inferior data. Adjust code accordingly.
13 (ada_unhandled_exception_name_addr_from_raise): Likewise.
14 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
15 (ada_executable_changed_observer): Delete.
16 (_initialize_ada_language): Remove call to
17 observer_attach_executable_changed.
18
a6af7abe
JB
192011-12-11 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.c (ada_has_this_exception_support): Raise an error
22 if we could find the Ada exception hook in the Ada runtime,
23 but no debugging info for that hook.
24
f17011e0
JB
252011-12-11 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-lang.c (ada_has_this_exception_support): New function,
28 extracted out of ada_exception_sal and ada_exception_sal.
29 (ada_exception_support_info_sniffer): Simplify by using
30 ada_has_this_exception_support.
31 (ada_exception_sal): Replace unnecessary checks by assertions.
32 Minor simplifications.
33
d3fbdd86
AS
342011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
35
36 * breakpoint.c (update_global_location_list): Remove nested
37 definition of `b'(-Wshadow).
38
eacd795a
AS
392011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
40
41 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
42 `error_flag'(-Wshadow).
43
ad13d8df
AS
442011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
45
46 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
47 `abfd'(-Wshadow).
48
917793af
AS
492011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
50
51 * annotate.c (annotate_array_section_begin): Rename `index' to
52 `idx'(-Wshadow).
53
d48ebb5b
AS
542011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
55
56 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
57 `idx'(-Wshadow).
58
9ed936ec
AS
592011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
60
61 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
62 `syscall' to `syscall_number'(-Wshadow).
63
a35ddb44
AS
642011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
65
66 * ada-lang.c (remove_extra_symbols): Rename `remove' to
67 `remove_p'(-Wshadow).
68
e5e61bd7
AS
692011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
70
71 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
72 `ren_sym'(-Wshadow).
73
d200ab1e
DE
742011-12-10 Doug Evans <dje@google.com>
75
b0df02fd
DE
76 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
77 debug_types_section. All uses updated.
78 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
79 to is_debug_types_section.
80
d200ab1e
DE
81 * python/py-auto-load.c (source_section_scripts): Call xfree
82 instead of free.
83
4511b1ba
YQ
842011-12-10 Hui Zhu <teawater@gmail.com>
85 Yao Qi <yao@codesourcery.com>
86
87 * tracepoint.c (start_tracing): Clear `inserted' flag.
88
df5a4bd3
HZ
892011-12-10 Hui Zhu <teawater@gmail.com>
90
91 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
92
1afeeb75
AS
932011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
94
95 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
96 `bpoint'(-Wshadow).
97
80e1d417
AS
982011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
99
100 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
101 `marker' variables to `sal2' and `tpmarker' respectively
102 (-Wshadow).
103
04ca3c22
AP
1042011-12-09 Andrew Pinski <apinski@cavium.com>
105
106 * linespec.c (hash_address_entry): Use iterative_hash_object on each
107 field rather than the struct itself.
108
8a2c437b
TT
1092011-12-09 Tom Tromey <tromey@redhat.com>
110
111 * breakpoint.c (compare_breakpoints): New function.
112 (clear_command): Remove duplicate breakpoints. Properly clean
113 up.
114
280711e7
MR
1152011-12-08 Maciej W. Rozycki <macro@mips.com>
116 Maciej W. Rozycki <macro@codesourcery.com>
117
118 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
119 address chunks retrieved from decoded lui/addiu pairs.
120
4c2051c6
MR
1212011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
122
123 * mips-tdep.c (extended_offset): Correct calculation.
124 (unpack_mips16): Correct bitfield positions used for extraction
125 of the immediate argument; fix sign-extension of same.
126 (extended_mips16_next_pc): Correct B instruction's offset
127 calculation. Correct register decoding of the BEQZ and BNEZ
128 as well as jump-register instructions. Handle compact jumps.
129
ff011ed7
TT
1302011-12-08 Tom Tromey <tromey@redhat.com>
131
132 * objfiles.h (struct objfile): Remove obsolete comment.
133 * objfiles.c (build_objfile_section_table): Remove obsolete
134 comment.
135
7cd3876c
SS
1362011-12-07 Stan Shebs <stan@codesourcery.com>
137
138 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
139 maintainer of the tic6x target.
140
35f73cfc
UW
1412011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
142
143 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
144 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
145 (arm_deal_with_atomic_sequence_raw): Likewise.
146 (arm_deal_with_atomic_sequence): Likewise.
147 (arm_software_single_step): Call it.
148 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
149
94eae614
UW
1502011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
151
152 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
153 where appropriate.
154 * s390-tdep.h: Likewise.
155
13b8d0c6
TG
1562011-12-07 Tristan Gingold <gingold@adacore.com>
157
158 * machoread.c (macho_symtab_read): Do not consider N_OPT as
159 a debugging stab. Improve complaint message.
160
5436df95
MR
1612011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
162
163 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
164 load adjustment if still within the prologue.
165
040dff2a
MR
1662011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
167
168 * mips-tdep.c (mips32_next_pc): Fix floating point condition
169 code mask.
170
754d7c78
MR
1712011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
172
173 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
174 of BLTZ* and BGEZ* instructions.
175
91912e4d
MR
1762011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
177
178 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
179 performed to determine whether an address refers to standard
180 MIPS or MIPS16 code.
181 (mips16_next_pc): Use mips_pc_is_mips16 instead of
182 is_mips16_addr.
183
f0ba3972
PA
1842011-12-06 Pedro Alves <pedro@codesourcery.com>
185
186 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
187 (breakpoint_xfer_memory): ... this. Change prototype. Handle
188 memory writes too.
189 * breakpoint.h (breakpoint_restore_shadows): Delete.
190 (breakpoint_xfer_memory): Declare.
191 * mem-break.c (default_memory_insert_breakpoint)
192 (default_memory_remove_breakpoint): Use target_write_raw_memory.
193 (memory_xfer_partial): Rename to ...
194 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
195 here.
196 (memory_xfer_partial): New.
197 (target_write_raw_memory): New.
198 * target.h (target_write_raw_memory): New.
199
31aba06f
DE
2002011-12-06 Doug Evans <dje@google.com>
201
202 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
203
f8eba3c6
TT
2042011-12-06 Joel Brobecker <brobecker@acacore.com>
205
206 * language.h (struct language_defn): Add new component
207 la_symbol_name_compare.
208 * symfile.h (struct quick_symbol_functions): Update the profile
209 of parameter "name_matcher" for the expand_symtabs_matching
210 method. Update the documentation accordingly.
211 * ada-lang.h (ada_name_for_lookup): Add declaration.
212 * ada-lang.c (ada_name_for_lookup): New function, extracted out
213 from ada_iterate_over_symbols.
214 (ada_iterate_over_symbols): Do not encode symbol name anymore.
215 (ada_expand_partial_symbol_name): Adjust profile.
216 (ada_language_defn): Add value for la_symbol_name_compare field.
217 * linespec.c: #include "ada-lang.h".
218 (iterate_name_matcher): Add language parameter. Replace call
219 to strcmp_iw by call to language->la_symbol_name_compare.
220 (decode_variable): Encode COPY if current language is Ada.
221 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
222 of name_matcher parameter. Adjust call to name_matcher.
223 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
224 (expand_partial_symbol_names): Update profile of parameter "fun".
225 * psymtab.h (expand_partial_symbol_names): Update profile of
226 parameter "fun".
227 * symtab.c (demangle_for_lookup): Update function documentation.
228 (search_symbols_name_matches): Add language parameter.
229 (expand_partial_symbol_name): Likewise.
230 * c-lang.c (c_language_defn, cplus_language_defn)
231 (asm_language_defn, minimal_language_defn): Add value for
232 la_symbol_name_compare field.
233 * d-lang.c (d_language_defn): Likewise.
234 * f-lang.c (f_language_defn): Ditto.
235 * jv-lang.c (java_language_defn): Ditto.
236 * m2-lang.c (m2_language_defn): Ditto.
237 * objc-lang.c (objc_language_defn): Ditto.
238 * opencl-lang.c (opencl_language_defn): Ditto.
239 * p-lang.c (pascal_language_defn): Ditto.
240 * language.c (unknown_language_defn, auto_language_defn)
241 (local_language_defn): Ditto.
242
2432011-12-06 Tom Tromey <tromey@redhat.com>
244
245 * linespec.c (iterate_over_all_matching_symtabs): Use
246 LA_ITERATE_OVER_SYMBOLS.
247 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
248 (find_function_symbols, decode_variable): Remove Ada special
249 case.
250 * language.h (struct language_defn) <la_iterate_over_symbols>: New
251 field.
252 (LA_ITERATE_OVER_SYMBOLS): New macro.
253 * language.c (unknown_language_defn, auto_language_defn)
254 (local_language_defn): Update.
255 * c-lang.c (c_language_defn, cplus_language_defn)
256 (asm_language_defn, minimal_language_defn): Update.
257 * d-lang.c (d_language_defn): Update.
258 * f-lang.c (f_language_defn): Update.
259 * jv-lang.c (java_language_defn): Update.
260 * m2-lang.c (m2_language_defn): Update.
261 * objc-lang.c (objc_language_defn): Update.
262 * opencl-lang.c (opencl_language_defn): Update.
263 * p-lang.c (pascal_language_defn): Update.
264 * ada-lang.c (ada_iterate_over_symbols): New function.
265 (ada_language_defn): Update.
266
2672011-12-06 Tom Tromey <tromey@redhat.com>
268 Joel Brobecker <brobecker@acacore.com>
269
270 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
271 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
272 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
273 PR shlibs/8929, PR shlibs/7393:
274 * python/py-type.c (compare_maybe_null_strings): Rename from
275 compare_strings.
276 (check_types_equal): Update.
277 * utils.c (compare_strings): New function.
278 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
279 location changes.
280 * tracepoint.c (scope_info): Update.
281 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
282 * symtab.h (iterate_over_minimal_symbols)
283 (iterate_over_some_symtabs, iterate_over_symtabs)
284 (find_pcs_for_symtab_line, iterate_over_symbols)
285 (demangle_for_lookup): Declare.
286 (expand_line_sal): Remove.
287 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
288 (lookup_symtab_callback): New functions.
289 (lookup_symtab): Rewrite.
290 (demangle_for_lookup): New function, extract from
291 lookup_symbol_in_language.
292 (lookup_symbol_in_language): Use it.
293 (iterate_over_symbols): New function.
294 (find_line_symtab): Update.
295 (find_pcs_for_symtab_line): New functions.
296 (find_line_common): Add 'start' argument.
297 (decode_line_spec): Update. Change argument to 'flags', change
298 interpretation.
299 (append_expanded_sal): Remove.
300 (append_exact_match_to_sals): Remove.
301 (expand_line_sal): Remove.
302 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
303 Remove.
304 <map_symtabs_matching_filename>: New field.
305 * stack.c (func_command): Only look in the current program space.
306 Use DECODE_LINE_FUNFIRSTLINE.
307 * source.c (line_info): Set pspace on sal. Check program space in
308 the loop. Use DECODE_LINE_LIST_MODE.
309 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
310 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
311 * python/python.c (gdbpy_decode_line): Update.
312 * psymtab.c (partial_map_expand_apply): New function.
313 (partial_map_symtabs_matching_filename): Rename from
314 lookup_partial_symbol. Update arguments.
315 (lookup_symtab_via_partial_symtab): Remove.
316 (psym_functions): Update.
317 * objc-lang.h (parse_selector, parse_method): Don't declare.
318 (find_imps): Update.
319 * objc-lang.c (parse_selector, parse_method): Now static.
320 (find_methods): Change arguments. Fill in a vector of symbol
321 names.
322 (uniquify_strings): New function.
323 (find_imps): Change arguments.
324 * minsyms.c (iterate_over_minimal_symbols): New function.
325 * linespec.h (enum decode_line_flags): New.
326 (struct linespec_sals): New.
327 (struct linespec_result) <canonical>: Remove.
328 <pre_expanded, addr_string, sals>: New fields.
329 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
330 (decode_line_full): Declare.
331 (decode_line_1): Update.
332 * linespec.c (struct address_entry, struct linespec_state, struct
333 collect_info): New types.
334 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
335 (eq_address_entry, maybe_add_address): New functions.
336 (total_number_of_methods): Remove.
337 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
338 functions.
339 (find_methods): Change arguments. Don't canonicalize input.
340 Simplify logic.
341 (add_matching_methods, add_constructors)
342 (build_canonical_line_spec): Remove.
343 (filter_results, convert_results_to_lsals): New functions.
344 (decode_line_2): Change arguments. Rewrite for new data
345 structures.
346 (decode_line_internal): Rename from decode_line_1. Change
347 arguments. Add cleanups. Update for new data structures.
348 (linespec_state_constructor, linespec_state_destructor)
349 (decode_line_full, decode_line_1): New functions.
350 (decode_indirect): Change arguments. Update.
351 (locate_first_half): Use skip_spaces.
352 (decode_objc): Change arguments. Update for new data structures.
353 Simplify logic.
354 (decode_compound): Change arguments. Add cleanups. Remove
355 fallback code, replace with error.
356 (struct decode_compound_collector): New type.
357 (collect_one_symbol): New function.
358 (lookup_prefix_sym): Change arguments. Update.
359 (compare_symbol_name, add_all_symbol_names_from_pspace)
360 (find_superclass_methods ): New functions.
361 (find_method): Rewrite.
362 (struct symtab_collector): New type.
363 (add_symtabs_to_list, collect_symtabs_from_filename): New
364 functions.
365 (symtabs_from_filename): Change API. Rename from
366 symtab_from_filename.
367 (collect_function_symbols): New function.
368 (find_function_symbols): Change API. Rename from
369 find_function_symbol. Rewrite.
370 (decode_all_digits): Change arguments. Rewrite.
371 (decode_dollar): Change arguments. Use decode_variable.
372 (decode_label): Change arguments. Rewrite.
373 (collect_symbols): New function.
374 (minsym_found): Change arguments. Rewrite.
375 (check_minsym, search_minsyms_for_name)
376 (add_matching_symbols_to_info): New function.
377 (decode_variable): Change arguments. Iterate over all symbols.
378 (symbol_found): Remove.
379 (symbol_to_sal): New function.
380 (init_linespec_result, destroy_linespec_result)
381 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
382 New functions.
383 (decode_digits_list_mode, decode_digits_ordinary): New functions.
384 * dwarf2read.c (dw2_map_expand_apply): New function.
385 (dw2_map_symtabs_matching_filename): Rename from
386 dw2_lookup_symtab. Change arguments.
387 (dwarf2_gdb_index_functions): Update.
388 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
389 * defs.h (compare_strings): Declare.
390 * cli/cli-cmds.c (compare_strings): Move to utils.c.
391 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
392 filter_sals.
393 (compare_symtabs, filter_sals): New functions.
394 * breakpoint.h (struct bp_location) <line_number, source_file>:
395 New fields.
396 (struct breakpoint) <line_number, source_file>: Remove.
397 <filter>: New field.
398 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
399 (momentary_breakpoint_from_master, add_location_to_breakpoint):
400 Update for changes to locations.
401 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
402 breakpoint.
403 (create_breakpoint_sal): Add 'filter' argument.
404 (remove_sal, expand_line_sal_maybe): Remove.
405 (create_breakpoints_sal): Remove 'sals' argument. Handle
406 pre-expanded sals and the filter.
407 (parse_breakpoint_sals): Use decode_line_full.
408 (check_fast_tracepoint_sals): Use get_sal_arch.
409 (create_breakpoint): Create a linespec_sals. Update.
410 (break_range_command): Use decode_line_full. Update.
411 (until_break_command): Update.
412 (clear_command): Update match conditions for linespec.c changes.
413 Use DECODE_LINE_LIST_MODE.
414 (say_where): Update for changes to locations.
415 (bp_location_dtor): Free 'source_file'.
416 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
417 (update_static_tracepoint): Update for changes to locations.
418 (update_breakpoint_locations): Disable ranged breakpoint if too
419 many locations match. Update.
420 (addr_string_to_sals): Use decode_line_full. Resolve all sal
421 PCs.
422 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
423 (decode_line_spec_1): Update. Change argument name to 'flags',
424 change interpretation.
425 * block.h (block_containing_function): Declare.
426 * block.c (block_containing_function): New function.
427 * skip.c (skip_function_command): Update.
428 (skip_re_set): Update.
429 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
430 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
431 * NEWS: Add entry.
432
4332011-12-06 Tom Tromey <tromey@redhat.com>
434
435 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
436 breakpoint's pspace to be NULL.
437 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
438 * breakpoint.c (init_raw_breakpoint): Conditionally set
439 breakpoint's pspace.
440 (init_breakpoint_sal): Don't set breakpoint's pspace.
441 (prepare_re_set_context): Conditionally switch program space.
442 (addr_string_to_sals): Check executing_startup on location's
443 program space.
444
4452011-12-06 Tom Tromey <tromey@redhat.com>
446
447 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
448 * breakpoint.c (should_be_inserted): Explicitly check if program
449 space is executing startup.
450 (describe_other_breakpoints): Update.
451 (disable_breakpoints_before_startup): Change executing_startup
452 earlier. Remove loop.
453 (enable_breakpoints_after_startup): Likewise.
454 (init_breakpoint_sal): Don't use bp_startup_disabled.
455 (create_breakpoint): Don't use bp_startup_disabled.
456 (update_global_location_list): Use should_be_inserted.
457 (bkpt_re_set): Update.
458
75c8c9d7
TT
4592011-12-06 Tom Tromey <tromey@redhat.com>
460
461 * python/lib/gdb/command/pretty_printers.py
462 (InfoPrettyPrinter.invoke1): Remove extra double quote.
463
7376e450
TT
4642011-12-06 Tom Tromey <tromey@redhat.com>
465
466 * NEWS: Add MI news.
467
c642a434
UW
4682011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
469
470 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
471 (S390_LAST_BREAK_REGNUM): Likewise.
472 (S390_SYSTEM_CALL_REGNUM): Likewise.
473 (S390_NUM_REGS): Update.
474
475 (s390_regmap_last_break): Add declaration.
476 (s390x_regmap_last_break): Likewise.
477 (s390_regmap_system_call): Likewise.
478
479 (tdesc_s390_linux32v1): Add declaration.
480 (tdesc_s390_linux32v2): Likewise.
481 (tdesc_s390_linux64v1): Likewise.
482 (tdesc_s390_linux64v2): Likewise.
483 (tdesc_s390x_linux64v1): Likewise.
484 (tdesc_s390x_linux64v2): Likewise.
485
486 * s390-tdep.c: Include new target description files
487 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
488 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
489 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
490 (s390_cannot_store_register): New function.
491 (s390_write_pc): Likewise.
492 (s390_dwarf_regmap): Add fields for new registers.
493 (s390_regmap_gregset): Likewise.
494 (s390x_regmap_gregset): Likewise.
495 (s390_regmap_fpregset): Likewise.
496 (s390_regmap_upper): Likewise.
497 (s390_regmap_last_break): New variable.
498 (s390x_regmap_last_break): Likewise.
499 (s390_regmap_system_call): Likewise.
500 (s390_last_break_regset): Likewise.
501 (s390x_last_break_regset): Likewise.
502 (s390_system_call_regset): Likewise.
503 (s390_upper_regset_sections): Rename to ...
504 (s390_linux64_regset_sections): ... this.
505 (s390_linux32_regset_sections): New variable.
506 (s390x_linux64_regset_sections): Likewise.
507 (s390_linux32v1_regset_sections): Likewise.
508 (s390_linux32v2_regset_sections): Likewise.
509 (s390_linux64v1_regset_sections): Likewise.
510 (s390_linux64v2_regset_sections): Likewise.
511 (s390x_linux64v1_regset_sections): Likewise.
512 (s390x_linux64v2_regset_sections): Likewise.
513 (s390_regset_from_core_section): Handle .reg-s390-last-break and
514 .reg-s390-system-call core file sections.
515 (s390_core_read_description): Check for presence of
516 .reg-s390-last-break and .reg-s390-system-call core file
517 sections and return appropriate target description.
518 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
519 "last_break" and "system_call" in target description. Install
520 appropriate gdbarch_core_regset_sections array.
521 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
522 (_initialize_s390_tdep): Initialize additional target descriptions.
523
524 * s390-nat.c: Include "elf/common.h".
525 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
526 (have_regset_last_break): New static variable.
527 (have_regset_system_call): Likewise.
528 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
529 (s390_native_collect): Likewise.
530 (fetch_regset, store_regset, check_regset): New functions.
531 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
532 and S390_SYSTEM_CALL_REGNUM.
533 (s390_linux_store_inferior_registers): Likewise.
534 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
535 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
536
537 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
538 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
539 (s390-linux32v1-expedite): Define.
540 (s390-linux32v2-expedite): Likewise.
541 (s390-linux64v1-expedite): Likewise.
542 (s390-linux64v2-expedite): Likewise.
543 (s390x-linux64v1-expedite): Likewise.
544 (s390x-linux64v2-expedite): Likewise.
545
546 * features/s390-linux32.xml: Add orig_r2 register.
547 * features/s390-linux64.xml: Likewise.
548 * features/s390x-linux64.xml: Likewise.
549 * features/s390-linux32v1.xml: New file.
550 * features/s390-linux32v2.xml: Likewise.
551 * features/s390-linux64v1.xml: Likewise.
552 * features/s390-linux64v2.xml: Likewise.
553 * features/s390x-linux64v1.xml: Likewise.
554 * features/s390x-linux64v2.xml: Likewise.
555
556 * features/s390-linux32.c: Regenerate.
557 * features/s390-linux64.c: Likewise.
558 * features/s390x-linux64.c: Likewise.
559 * features/s390-linux32v1.c: New generated file.
560 * features/s390-linux32v2.c: Likewise.
561 * features/s390-linux64v1.c: Likewise.
562 * features/s390-linux64v2.c: Likewise.
563 * features/s390x-linux64v1.c: Likewise.
564 * features/s390x-linux64v2.c: Likewise.
565
566 * regformats/s390-linux32.dat: Regenerate.
567 * regformats/s390-linux64.dat: Regenerate.
568 * regformats/s390x-linux64.dat: Regenerate.
569 * regformats/s390-linux32v1.dat: New generated file.
570 * regformats/s390-linux32v2.dat: Likewise.
571 * regformats/s390-linux64v1.dat: Likewise.
572 * regformats/s390-linux64v2.dat: Likewise.
573 * regformats/s390x-linux64v1.dat: Likewise.
574 * regformats/s390x-linux64v2.dat: Likewise.
575
336060f3
PA
5762011-12-05 Pedro Alves <pedro@codesourcery.com>
577
578 * linux-nat.c (resume_stopped_resumed_lwps): Call
579 registers_changed.
580
049e32d3
PA
5812011-12-05 Pedro Alves <pedro@codesourcery.com>
582
583 * breakpoint.c: Include record.h.
584 (breakpoints_always_inserted_mode): Return false when the record
585 target is in use.
586
5c03c7f9 5872011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
588
589 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
590 Reinstate perror_with_name call on ptrace error. Remove #if 0.
591 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
592 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
593
fbbd034e
AS
5942011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
595
596 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
597 `i'(-Wshadow).
598
a5ff8356 5992011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
600
601 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
602
6032011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
604
a5ff8356
AS
605 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
606 of `tdep'(-Wshadow).
607
93f2a35e
JK
6082011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 Fix compilation --without-expat.
611 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
612 from ...
613 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
614
2268b414
JK
6152011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
616 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
619 * features/library-list-svr4.dtd: New file.
620 * remote.c (PACKET_qXfer_libraries_svr4): New.
621 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
622 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
623 * solib-svr4.c (struct svr4_library_list): New.
624 [HAVE_LIBEXPAT]: Include xml-support.h.
625 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
626 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
627 [HAVE_LIBEXPAT] (svr4_library_list_children)
628 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
629 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
630 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
631 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
632 (svr4_read_so_list): Extend the corruption message by addresses.
633 (svr4_current_sos): New variable library_list, call
634 svr4_current_sos_via_xfer_libraries.
635 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
636
585861ea
JK
6372011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 PR threads/13448
640 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
641 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
642
9750bca9
JK
6432011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
644
645 PR breakpoints/13346
646 * dwarf2read.c (process_psymtab_comp_unit): Set
647 PSYMTABS_ADDRMAP_SUPPORTED.
648 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
649 validity. New field psymtabs_addrmap_supported.
650 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
651 psymtabs_addrmap_supported.
652 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
653 !PSYMTABS_ADDRMAP_SUPPORTED.
654 (dump_psymtab, maintenance_info_psymtabs): Print also
655 psymtabs_addrmap_supported.
656
f28c316a
DE
6572011-12-01 Doug Evans <dje@google.com>
658
659 * python/py-type.c (type_object_methods): Fix "array" doc string.
660
fc0ae648
AB
6612011-12-01 Andrew Burgess <aburgess@broadcom.com>
662
663 * source.c (print_source_lines_base): Fix missing braces on else
664 clause leading to additional output.
665
d6db1fab
UW
6662011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
667
668 * s390-nat.c (SUBOFF): Remove.
669 (s390_native_supply, s390_native_collect): New functions.
670 (supply_gregset, supply_fpregset): Use s390_native_supply.
671 (fill_gregset, fill_fpregset): Use s390_native_collect.
672
673 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
674 (s390_unwind_pseudo_register): New function.
675 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
676 registers instead of PC and CC.
677 (s390_backchain_frame_unwind_cache): Likewise.
678 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
679 full GPR pseudos.
680 (s390_trad_frame_prev_register): New function.
681 (s390_frame_prev_register): Use it.
682 (s390_sigtramp_frame_prev_register): Likewise.
683 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
684 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
685 special callback to unwind any pseudo.
686
687 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
688 * features/s390-core64.xml: Likewise.
689 * features/s390x-core64.xml: Likewise.
690 * features/s390-linux32.c: Regenerate.
691 * features/s390-linux64.c: Likewise.
692 * features/s390x-linux64.c: Likewise.
693
1dd635ac
UW
6942011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
695
696 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
697
0161e4b9
UW
6982011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
699
700 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
701 instruction. Add more diagnostic output.
702
0c36327f
AS
7032011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
704
705 * MAINTAINERS (Write After Approval): Add myself to the list.
706
b4264740
SD
7072011-11-29 Sanjoy Das <sdas@igalia.com>
708
709 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
710 (jit_bfd_try_read_symtab): Fix comments.
711
87326c78
DD
7122011-11-28 DJ Delorie <dj@redhat.com>
713
714 * NEWS: Mention RL78 simulator.
715
1e3a8f45
JB
7162011-11-28 Joel Brobecker <brobecker@adacore.com>
717
718 * symfile.h (struct quick_symbol_functions): Fix the documentation
719 of field map_matching_symbols, as symbols are sorted using
720 strcmp_iw_ordered, not strcmp_iw.
721
265e52c3
JB
7222011-11-28 Paul Hilfinger <hilfinger@adacore.com>
723
724 * symfile.h (struct quick_symbol_functions): Update the
725 documentation for field map_matching_symbols.
726
1a1d5513
JB
7272011-11-28 Joel Brobecker <brobecker@adacore.com>
728
729 * ada-lang.c (compare_names): Fix wrong return value in case
730 string1 starts with the same contents as string2, followed
731 by an underscore that do not start a symbol name suffix.
732
5d9c5995
PM
7332011-11-28 Phil Muldoon <pmuldoon@redhat.com>
734
735 PR python/13369
736 PR python/13374
737
738 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
739 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
740 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
741 exceptions.
742 * python/py-type.c (typy_strip_typedefs): Ditto.
743 (typy_legacy_template_argument): Ditto.
744 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
745 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
746
2bf50f6f
JB
7472011-11-27 Joel Brobecker <brobecker@acacore.com>
748
749 * remote.c (remote_get_tracepoint_status): Delete addrbuf
750 local variable. Avoid use of sprintf_vma.
751
744ab88c
SD
7522011-11-27 Sanjoy Das <sdas@igalia.com>
753
754 Fix regression in jit.exp.
755 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
756 (jit_register_code): Set the jit_objfile_data field to the correct
757 value.
758
46ad3598
UW
7592011-11-25  Uros Bizjak  <ubizjak@gmail.com>
760
761 * alpha-tdep.c (br_opcode): New.
762 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
763 (alpha_deal_with_atomic_sequence): New function.
764 (alpha_gdbarch_init): Handle single stepping of atomic sequences
765 with alpha_deal_with_atomic_sequence.
766
e4c5f296
TG
7672011-11-24 Tristan Gingold <gingold@adacore.com>
768
769 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
770 fields. Add oso_sym, end_sym and nbr_syms.
771 (macho_register_oso): Change interface.
772 (macho_symtab_add_minsym): New function.
773 (macho_symtab_read): Rewritten.
774 (get_archive_prefix_len): Remove trailing blanks.
775 (oso_el_compare_name): Add comment.
776 (struct macho_sym_hash_entry): New structure.
777 (macho_relocate_common_syms): Remove.
778 (macho_sym_hash_newfunc): New function.
779 (macho_resolve_oso_sym_with_minsym): Likewise.
780 (macho_add_oso_symfile): Rewritten.
781 (macho_symfile_read_all_oso): Remove trailing blanks.
782 Adjust code to free oso vector.
783 (macho_symfile_read): Likewise.
784 Move code to initialize minimal symbol
785
130854df
MR
7862011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
787
788 * mips-tdep.c (extended_offset): Fix formatting.
789
3d7bb9d9
DE
7902011-11-23 Doug Evans <dje@google.com>
791
792 * dwarf2read.c (dw2_lookup_symtab): Add comment.
793 (dw2_expand_symtabs_with_filename): Ditto.
794 (dw2_expand_symtabs_matching): Ditto.
795 (dw2_map_symbol_filenames): Ditto.
796
1fbf5ada
JB
7972011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
798
799 * ada-lang.c (assign_aggregate): Minor reformatting.
800
d984108d
JB
8012011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
802
803 * ada-lang.c (assign_aggregate): Remove declaration of local
804 variable `i' which is shadowing another variable with the same
805 name declared in the outer scope.
806
18af8284
JB
8072011-11-23 Joel Brobecker <brobecker@adacore.com>
808
809 * ada-lang.c (get_base_type): Renames base_type. Adjust all
810 calls throughout this file.
811
1fc7b5d7
JB
8122011-11-23 Joel Brobecker <brobecker@adacore.com>
813
814 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
815 FormatMessage.
816
36dfb11c
TT
8172011-11-22 Tom Tromey <tromey@redhat.com>
818
819 PR mi/8444:
820 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
821 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
822 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
823 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
824 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
825 (print_it_catch_syscall, print_it_catch_exec)
826 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
827 (bpstat_print): Add 'kind' argument. Handle
828 TARGET_WAITKIND_LOADED.
829 * infrun.c (normal_stop): Update for bpstat_print change. Don't
830 handle TARGET_WAITKIND_LOADED here.
831 * breakpoint.h (bpstat_print): Update.
832
5bd6aa83
TT
8332011-11-22 Tom Tromey <tromey@redhat.com>
834
835 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
836
f5afdc18
TT
8372011-11-22 Tom Tromey <tromey@redhat.com>
838
839 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
840 Use static_assert to check the size of
841 async_reason_string_lookup.
842 * common/gdb_assert.h (static_assert): New macro.
843
a3769e0c
AM
8442011-11-22 Alan Modra <amodra@gmail.com>
845
846 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
847 destination calculation. Don't expect >> to sign extend. Don't
848 add a break if branch lands inside the sequence anywhere.
849
56767571
KS
8502011-11-21 Keith Seitz <keiths@redhat.com>
851
852 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
853 -var-evaluate-expression of an enumeration and fix expected result.
854 * gdb.mi/mi2-varvdisplay.exp: Likewise.
855
8443c207
KY
8562011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
857
858 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
859 the case where osdata->items is empty. Rename column names to a
860 canonical form to avoid problems with unusual column names.
861
97643830
YQ
8622011-11-21 Yao Qi <yao@codesourcery.com>
863
864 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
865
f196051f
SS
8662011-11-20 Stan Shebs <stan@codesourcery.com>
867
868 * NEWS: Mention tracepoint additions.
869 * breakpoint.h (struct tracepoint): New field traceframe_usage.
870 * breakpoint.c (print_one_breakpoint_location): Identify
871 tracepoints as such when reporting hit counts, report
872 trace buffer usage.
873 (create_tracepoint_from_upload): Copy status info.
874 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
875 add fields user_name, notes, start_time, stop_time.
876 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
877 * tracepoint.c (trace_user): New global.
878 (trace_notes): New global.
879 (trace_stop_notes): New global.
880 (start_tracing): Add argument and trace note handling.
881 (stop_tracing): Ditto.
882 (trace_start_command): Add notes argument.
883 (trace_stop_command): Ditto.
884 (trace_status_command): Report additional status info.
885 (trace_status_mi): Similarly.
886 (trace_save): Update, record tracepoint status.
887 (set_disconnected_tracing): Call target method directly.
888 (send_disconnected_tracing_value): Remove.
889 (set_trace_user): New function.
890 (set_trace_notes): New function.
891 (set_trace_stop_notes): New function.
892 (parse_trace_status): Handle additional status.
893 (parse_tracepoint_status): New function.
894 (parse_tracepoint_definition): Call it.
895 (tfile_get_tracepoint_status): New function.
896 (init_tfile_ops): Use it.
897 (_initialize_tracepoint): Add new setshows.
898 * target.h (struct target_ops): New methods to_get_tracepoint_status
899 and to_set_trace_notes.
900 (target_get_tracepoint_status): New macro.
901 (target_set_trace_notes): New macro.
902 * target.c (update_current_target): Add new methods.
903 * remote.c (remote_get_tracepoint_status): New function.
904 (remote_set_trace_notes): New function.
905 (init_remote_ops): Add them.
906 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
907 (mi_cmd_trace_stop): Ditto.
908
3623dc3a
SD
9092011-11-20 Sanjoy Das <sdas@igalia.com>
910
911 * jit.c: Include regcache.h.
912 (jit_gdbarch_data, jit_frame_unwind): New static variables.
913 (jit_unwind_reg_set_impl, free_reg_value_impl)
914 (jit_unwind_reg_get_impl, jit_frame_sniffer)
915 (jit_frame_unwind_stop_reason, jit_frame_this_id)
916 (jit_frame_prev_register, jit_dealloc_cache)
917 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
918 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
919 jit_prepend_unwinder.
920 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
921
1825a88d
SD
9222011-11-20 Sanjoy Das <sdas@igalia.com>
923
924 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
925 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
926 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
927 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
928 (finalize_symtab, jit_object_close_impl)
929 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
930 (free_objfile_data): New functions.
931 (_initialize_jit): Register jit_objfile_data with a proper cleanup
932 function.
933
784c47ee
SD
9342011-11-20 Sanjoy Das <sdas@igalia.com>
935
936 * jit.c: Include gdb-dlfcn.h.
937 (loaded_jit_reader, reader_init_fn_sym): New static variables.
938 (jit_reader_load, jit_reader_load_command)
939 (jit_reader_unload_command): New functions.
940 (_initialize_jit): Add commands "jit-reader-load" and
941 "jit-reader-unload".
942
a2d08b9e
SD
9432011-11-20 Sanjoy Das <sdas@igalia.com>
944
945 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
946 * config.in: Add new #define HAVE_LIBDL.
947 * configure.ac: Add check for -ldl.
948 * configure: Re-generated by autoconf.
949 * gdb-dlfcn.c: New file.
950 * gdb-dlfcn.h: New file.
951
b8e0a31c
SD
9522011-11-20 Sanjoy Das <sdas@igalia.com>
953
954 * config.in: Add new #defines: JIT_READER_DIR and
955 JIT_READER_DIR_RELOCATABLE.
956 * configure.ac: New GDB directory entry for jit-reader-dir.
957 * configure: Re-generated by autoconf.
958 * jit.c: New static variable: const char *jit_reader_dir.
959 (_initialize_jit): Relocate jit_reader_dir.
960
f997c383
SD
9612011-11-20 Sanjoy Das <sdas@igalia.com>
962
963 * Makefile.in: Add jit-reader.h as a header. Have it installed in
964 $(includedir)/gdb.
965 * configure.ac: Generate a correct value for TARGET_PTR for
966 jit-reader.h. Tell configure to generate jit-reader.h from
967 jit-reader.in.
968 * configure: Re-generated by autoconf.
969 * jit-reader.in: New file.
970 * jit.c: Include jit-reader.h.
971
dc8c0494
SD
9722011-11-20 Sanjoy Das <sdas@igalia.com>
973
974 * MAINTAINERS (Write After Approval): Add myself to the list.
975
01efb936
UW
9762011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
977
978 * findvar.c (read_frame_register_value): Respect value_offset
979 of the register value. Remove big-endian special case.
980
732f3f12
TT
9812011-11-18 Tom Tromey <tromey@redhat.com>
982
983 PR build/7196:
984 * remote.c (putpkt_for_catch_errors): New function.
985 (remote_kill): Use it.
986
bfccc43c
YQ
9872011-11-18 Yao Qi <yao@codesourcery.com>
988
989 * breakpoint.c (create_breakpoint): Produce query message according to
990 breakpoint's type.
991 Allocate tracepoint per correct type.
992 Don't check SALs for pending fast tracepoints.
993 * tracepoint.c (process_tracepoint_on_disconnect): New.
994 (disconnect_tracing): Call process_tracepoint_on_disconnect.
995
3ea46bff
YQ
9962011-11-18 Yao Qi <yao@codesourcery.com>
997
998 * breakpoint.c (install_breakpoint): Add one more parameter so that
999 update_global_location_list is called conditionally.
1000 (create_fork_vfork_event_catchpoint): Update.
1001 (create_syscall_event_catchpoint): Update.
1002 (create_breakpoint_sal): Update.
1003 (create_breakpoint_sal): Update. Call do_cleanups before
1004 install_breakpoint.
1005 * ada-lang.c (create_ada_exception_catchpoint): Update.
1006 * breakpoint.h (install_breakpoint): Update declaration.
1007
598cfb71
UW
10082011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1009
1010 * spu-tdep.c (spu_return_value): Fix handling of
1011 TYPE_CALLING_CONVENTION annotation.
1012
caf4328c
UW
10132011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1014
1015 * skip.c (skip_function_command): Work around uninitialized
1016 variable warning.
1017
2b54dda2
DM
10182011-11-16 David S. Miller <davem@davemloft.net>
1019
1020 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1021 'tv_usec' to long for printf since these fields have a type which
1022 varies.
1023
93bf33fd
DE
10242011-11-15 Doug Evans <dje@google.com>
1025
1026 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1027
9cc10fd1
PK
10282011-11-15 Paul Koning <paul_koning@dell.com>
1029
1030 * python/py-type.c (typy_get_composite): New function.
1031 (typy_nonzero): New function.
1032 (typy_values): Rename from typy_fields.
1033 (typy_fields): New function.
1034 (typy_length): Raise exception if not struct, union, or enum type.
1035 (typy_getitem): Ditto.
1036 (typy_has_key): Ditto.
1037 (typy_make_iter): Ditto.
1038
c011a4f4
DE
10392011-11-15 Doug Evans <dje@google.com>
1040
1041 * NEWS: Mention new parameter basenames-may-differ.
1042 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1043 ! basenames_may_differ.
1044 * psymtab.c (lookup_partial_symtab): Ditto.
1045 * symtab.c (lookup_symtab): Ditto.
1046 (basenames_may_differ): New global.
1047 (_initialize_symtab): New parameter basenames-may-differ.
1048 * symtab.h (basenames_may_differ): Declare.
1049
865ecab4
LM
10502011-11-15 Pedro Alves <pedro@codesourcery.com>
1051 Luis Machado <lgustavo@codesourcery.com>
1052
1053 * auxv.c: Include observer.h.
1054 (auxv_inferior_data_cleanup): New.
1055 (invalidate_auxv_cache_inf): New.
1056 (invalidate_auxv_cache): New.
1057 (get_auxv_inferior_data): New.
1058 (auxv_inferior_data): New static global.
1059 (auxv_info): New structure.
1060 (target_auxv_search): Use get_auxv_inferior_data instead of
1061 target_read_alloc and don't free cached buffers.
1062 (fprint_target_auxv): Likewise
1063 (_initialize_auxv): Register per-inferior auxv cache and register
1064 observers to invalidate auxv cache when needed.
1065
ed59ded5
DE
10662011-11-14 Doug Evans <dje@google.com>
1067
1068 Make "!" an alias for "shell".
1069 * NEWS: Add mention.
1070 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1071 adding "!" command, always add it.
1072 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1073 command of length one.
1074
405f8e94
SS
10752011-11-14 Stan Shebs <stan@codesourcery.com>
1076 Kwok Cheung Yeung <kcy@codesourcery.com>
1077
1078 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1079 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1080 the minimum instruction size for fast tracepoints.
1081 * target.h (struct target_ops): Add new method
1082 to_get_min_fast_tracepoint_insn_len.
1083 (target_get_min_fast_tracepoint_insn_len): New.
1084 * target.c (update_current_target): Set up new target operation.
1085 * remote.c (remote_write_bytes_aux): Fix typo.
1086 (remote_get_min_fast_tracepoint_insn_len): New.
1087 (init_remote_ops): Initialize new field.
1088
3e05895e
TT
10892011-11-14 Tom Tromey <tromey@redhat.com>
1090
1091 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1092 (encode_actions): Likewise.
1093
1e4d1764
YQ
10942011-11-14 Yao Qi <yao@codesourcery.com>
1095
1096 * remote.c (struct remote_state): <install_in_trace> new field.
1097 (PACKET_InstallInTrace): New enum value.
1098 (remote_install_in_trace_feature): Support InstallInTrace.
1099 (remote_supports_install_in_trace): Likewise.
1100 (remote_protocol_features): Likewise.
1101 (_initialize_remote): Likewise.
1102 (remote_can_download_tracepoint): New.
1103 * target.h (struct target): New field
1104 `to_can_download_tracepoint'.
1105 (target_can_download_tracepoint): New macro.
1106 * target.c (update_current_target): Update.
1107 * breakpoint.h (struct bp_location): Add comment on field
1108 `duplicate'.
3ccd4ac6
YQ
1109 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1110 and tracepoint.
1e4d1764
YQ
1111 (remove_breakpoints): Don't remove tracepoints.
1112 (tracepoint_locations_match ): New.
1113 (breakpoint_locations_match): Call it.
1114 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1115 (download_tracepoint_locations): New.
1116 (update_global_location_list): Call it.
1117 * tracepoint.c (find_matching_tracepoint): Delete.
1118 (find_matching_tracepoint_location): Renamed from
1119 find_matching_tracepoint. Return bp_location rather than
1120 tracepoint.
1121 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1122 tracepoint is found.
1123
e8ba3115
YQ
11242011-11-14 Yao Qi <yao@codesourcery.com>
1125
1126 * target.h (struct target): <to_download_tracepoint> Change type
1127 of parameter from tracepoint to bp_location.
1128 * target.c (update_current_target): Update.
1129 * tracepoint.c (start_tracing): Update.
1130 * remote.c (remote_download_tracepoint): Remove loop for each location
1131 of a tracepoint.
1132
edcc485a
MR
11332011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1134
1135 * i386-nat.c (i386_insert_hw_breakpoint): Call
1136 i386_update_inferior_debug_regs.
1137 (i386_remove_hw_breakpoint): Likewise.
1138
3742cc8b
YQ
11392011-11-14 Yao Qi <yao@codesourcery.com>
1140
1141 * breakpoint.c (init_raw_breakpoint): Call
1142 add_location_to_breakpoint to replace duplicated code.
1143 (add_location_to_breakpoint): Adjust the breakpoint's
1144 address prior to allocating a location.
1145
71eba9c2 11462011-11-12 Matt Rice <ratmice@gmail.com>
1147
1148 * macrocmd.c (macro_no_macro_info): New function.
1149 (macro_expand_command): Use macro_no_macro_info.
1150 (macro_expand_once_command): Ditto.
1151 (info_macro_command): Add argument processing,
1152 move info_definitions_command here.
1153 (_initialize_macrocmd): Remove info definitions command.
1154 Add arguments to info macro help text.
1155 * NEWS: Replace info definitions command with new info macro options.
1156
731971ed
KS
11572011-11-11 Keith Seitz <keiths@redhat.com>
1158
1159 PR gdb/12843
1160 * linespec.c (locate_first_half): Keep ':' if it looks
1161 like it could be part of a Windows path starting with
1162 a drive letter.
1163
6953d224
PA
11642011-11-10 Pedro Alves <pedro@codesourcery.com>
1165
1166 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1167 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1168
0c94aa73
PA
11692011-11-10 Pedro Alves <pedro@codesourcery.com>
1170
1171 * target.c (target_waitstatus_to_string): Handle
1172 TARGET_WAITKIND_NO_RESUMED.
1173
f6b47be4
DE
11742011-11-10 Doug Evans <dje@google.com>
1175
74e2f255
DE
1176 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1177 `need_fullname'.
1178 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1179 (map_partial_symbol_filenames): Ditto. All callers updated.
1180 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1181 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1182 parameter need_fullname.
1183
256f06f3
DE
1184 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1185 * source.c (symtab_to_fullname): Ditto.
1186
50f182aa
DE
1187 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1188 * gdb-demangle.h: ... here. New file.
1189 * demangle.c: #include "gdb-demangle.h".
1190 (_initialize_demangler): Use initialize_file_ftype for prototype.
1191 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1192 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1193 from utils.c
1194 * utils.c: Update. #include "gdb-demangle.h".
1195 * symtab.h (asm_demangle): Delete.
1196 (demangle): Move declaration next to use.
1197 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1198 * dwarf2read.c: #include "gdb-demangle.h".
1199 * gnu-v2-abi.c: Ditto.
1200 * jv-typeprint.c: Ditto.
1201 * mdebugread.c: Ditto.
1202 * p-typeprint.c: Ditto.
1203 * stabsread.c: Ditto.
1204 * printcmd.c: Ditto.
1205 (asm_demangle): Delete declaration.
1206 * tui/tui-stack.c: #include "gdb-demangle.h".
1207
f6b47be4
DE
1208 * python/py-type.c (typy_fields_items): Call check_typedef.
1209
22355c90
JB
12102011-11-10 Joel Brobecker <brobecker@adacore.com>
1211
1212 * findvar.c (read_frame_register_value): Read the correct bytes
1213 from registers on big-endian architectures.
1214
bd119cf1 12152011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1216
1217 * procfs.c (load_syscalls): Make a cleanup.
1218 (open_procinfo_files): fd==0 is ok.
1219
0a86f364
JB
12202011-11-10 Joel Brobecker <brobecker@adacore.com>
1221
1222 * procfs.c (iterate_over_mappings): Call do_cleanups before
1223 returning.
1224
9bc118a5
DE
12252011-11-09 Doug Evans <dje@google.com>
1226
1227 * gdbtypes.c (check_typedef): Document that this function can
1228 throw an exception.
1229
a7860e76
TT
12302011-11-09 Tom Tromey <tromey@redhat.com>
1231
1232 PR c++/13342:
1233 * valops.c (value_full_object): Return early if real type is
1234 smaller than the enclosing type.
1235
60965737
YQ
12362011-11-08 Yao Qi <yao@codesourcery.com>
1237
1238 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1239
72a2e3dc
MI
12402011-11-08 Meador Inge <meadori@codesourcery.com>
1241
1242 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1243 register when the frame can't be determined.
1244 * arm-tdep.c (arm_analyze_prologue): Ditto.
1245
ce3b0ff7
SS
12462011-11-07 Stan Shebs <stan@codesourcery.com>
1247
1248 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1249
2b914b52
JB
12502011-11-07 Joel Brobecker <brobecker@adacore.com>
1251
1252 * infrun.c (handle_inferior_event): Minor reformatting.
1253
6f809020
DE
12542011-11-05 Doug Evans <dje@google.com>
1255
1256 * source.c (forget_cached_source_info_for_objfile): Move call to
1257 objfile->sf->qf->forget_cached_source_info outside of
1258 ALL_OBJFILE_SYMTABS loop.
1259 (forget_cached_source_info): Delete unused variable `s'.
1260
75d12218
JK
12612011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1262
1263 * i386-nat.c (dr_ref_count): Remove unused variable.
1264
e565b837
DE
12652011-11-05 Doug Evans <dje@google.com>
1266
1267 * main.c (captured_main): Set lim_at_start before calling
1268 make_command_stats_cleanup.
1269
0a1c4d10
DE
12702011-11-04 Doug Evans <dje@google.com>
1271
1272 * utils.c: #include "timeval-utils.h".
1273 (cmd_stats): Rename start_time to start_cpu_time.
1274 New member start_wall_time.
1275 (report_command_stats): Report wall time.
1276 (make_command_stats_cleanup): Record start wall time.
1277
a1d705ee
TT
12782011-11-04 Tom Tromey <tromey@redhat.com>
1279
1280 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1281
81de56be
RO
12822011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 * coff-pe-read.c: Include defs.h before bfd.h.
1285
3ab1ec27
PM
12862011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1287
1288 PR Python/13345
1289
1290 * python/python.c (python_run_simple_file): Expand tilde in path.
1291
cd829959
PM
12922011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1293
1294 PR Python/13363
1295
1296 * python/py-type.c (typy_lookup_type): Do not return a type in
1297 an exception handler.
1298
080ad648
JK
12992011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 Eli Zaretskii <eliz@gnu.org>
1301
1302 * linux-nat.c (_initialize_linux_nat): Improve help
1303 for `info proc stat', `info proc status', `info proc cwd',
1304 `info proc cmdline' and `info proc exe'.
1305
3065dfb6
SS
13062011-11-02 Stan Shebs <stan@codesourcery.com>
1307
1308 String collection for tracepoints.
1309 * NEWS: Mention string collection.
1310 * common/ax.def (tracenz): New bytecode.
1311 * ax-gdb.h (trace_string_kludge): Declare.
1312 * ax-gdb.c: Include valprint.h and c-lang.h.
1313 (trace_string_kludge): New global.
1314 (gen_traced_pop): Add string case.
1315 (agent_command): Add string case.
1316 * tracepoint.h (decode_agent_options): Declare.
1317 * tracepoint.c: Include cli-utils.h.
1318 (decode_agent_options): New function.
1319 (validate_actionline): Call it.
1320 (encode_actions_1): Ditto.
1321 * target.h (struct target_ops): New method to_supports_string_tracing.
1322 (target_supports_string_tracing): New macro.
1323 * target.c (update_current_target): Add to_supports_string_tracing.
1324 * remote.c (struct remote_state): New field string_tracing.
1325 (remote_string_tracing_feature): New function.
1326 (remote_protocol_features): New feature tracenz.
1327 (remote_supports_string_tracing): New function.
1328 (init_remote_ops): Set to_supports_string_tracing.
1329
f179e162
JK
13302011-11-02 Pedro Alves <pedro@codesourcery.com>
1331 Jan Kratochvil <jan.kratochvil@redhat.com>
1332
1333 * linux-nat.c: Include cli/cli-utils.h.
1334 (enum info_proc_what): New.
1335 (linux_nat_info_proc_cmd): Rename to ...
1336 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1337 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1338 status_f and stat_f from WHAT. Throw error on extra parameters.
1339 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1340 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1341 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1342 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1343 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1344 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1345 `info proc cmdline', `info proc exe' and `info proc all' as real
1346 subcommands of `info proc'.
1347
7b35ec7f 13482011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1349
1350 * Makefile.in: (SFILES): Add skip.c.
1351 (HFILES_NO_SRCDIR): Add skip.h.
1352 (COMMON_OBS): Add skip.o.
1353 * skip.h, skip.c: New.
1354 * breakpoint.h (set_default_breakpoint): Remove.
1355 (get_sal_arch): Declare.
1356 * breakpoint.c: Remove default_breakpoint_valid,
1357 default_breakpoint_address, default_breakpoint_symtab,
1358 default_breakpoint_line, default_breakpoint_pspace variables.
1359 (get_sal_arch): Make public.
1360 (set_default_breakpoint): Remove.
1361 (parse_breakpoint_sals, create_breakpoint, clear_command,
1362 decode_line_spec_1): Remove uses of default_breakpoint variables;
1363 replaced with function calls into stack.c.
1364 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1365 * cli/cli-cmds.c: Add skiplist.
1366 (init_cmd_lists): Initialize skiplist.
1367 (init_cli_cmds): Fix comment (classes of commands appear in
1368 alphabetical order).
1369 * infrun.c (handle_inferior_event): Add check that we don't step into
1370 a function whose pc is marked for skip.
1371 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1372 last_displayed_addr, last_displayed_symtab, last_displayed_line
1373 variables.
1374 (set_last_displayed_sal): New static function.
1375 (print_frame_info): Switch call to set_default_breakpoint to call to
1376 set_last_displayed_sal.
1377 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1378 get_last_displayed_pspace, get_last_displayed_addr,
1379 get_last_displayed_symtab, get_last_displayed_line,
1380 get_last_displayed_sal): New public functions.
1381 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1382 get_last_displayed_pspace, get_last_displayed_addr,
1383 get_last_displayed_symtab, get_last_displayed_line,
1384 get_last_displayed_sal): Declare.
1385
b60e1588
JL
13862011-11-01 Justin Lebar <justin.lebar@gmail.com>
1387
1388 * MAINTAINERS (Write After Approval): Add myself to the list.
1389
d31647d2
YQ
13902011-10-29 Yao Qi <yao@codesourcery.com>
1391
1392 * infcmd.c (disconnect_command): Call disconnect_tracing.
1393
b1d96efd
JK
13942011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1395
1396 Code cleanup.
1397 * symtab.c (skip_prologue_sal): Code reformatting.
1398
4dfb2365
JK
13992011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1400
1401 PR symtab/13208
1402 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1403 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1404 SAI.
1405
0e5bf2a8
PA
14062011-10-28 Pedro Alves <pedro@codesourcery.com>
1407
1408 * linux-nat.c (linux_nat_filter_event): Remove `options'
1409 parameter, and dead code that used it. If we're handling a
1410 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1411 in our lwp list, re-add it.
1412 (check_zombie_leaders): New.
1413 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1414 wait for children with WNOHANG, and always wait for all children.
1415 Don't check for no resumed children upfront. Simplify wait loop.
1416 Check for zombie thread group leaders after handling all wait
1417 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1418 unwaited-for children left.
1419 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1420 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1421 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1422 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1423
821296b7
SA
14242011-10-28 Sterling Augustine <saugustine@google.com>
1425
1426 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1427 * symtab.c (free_completion_list): New function.
1428 (do_free_completion_list): Likewise.
1429 (default_make_symbol_completion_list_break_on): New variable
1430 back_to. Call make_cleanup and discard_cleanups.
1431 (make_source_files_completion_list): Likewise.
1432
03c3051a
PK
14332011-10-28 Paul Koning <paul_koning@dell.com>
1434
1435 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1436 * NEWS: Mention deep_items.
1437
8e7ebaf5
PA
14382011-10-28 Alen Skondro <askondro@gmail.com>
1439
8de33dc2 1440 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1441 defined.
1442
e0c6ef61
MI
14432011-10-27 Meador Inge <meadori@codesourcery.com>
1444
1445 * MAINTAINERS (Write After Approval): Add myself to the list.
1446
b56d6f31
JB
14472011-10-27 Joel Brobecker <brobecker@adacore.com>
1448
1449 * value.h (read_frame_register_value): Add declaration.
1450 * findvar.c (read_frame_register_value): New function.
1451 (value_from_register): Use read_frame_register_value
1452 instead of get_frame_register_value + value_contents_copy
1453 to get value contents.
1454
d234ef5c
DE
14552011-10-27 Doug Evans <dje@google.com>
1456
1457 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1458 source_script_from_stream if it may have been found on the search path.
1459 * python/py-auto-load.c (source_section_scripts): Pass full path to
1460 source_python_script_for_objfile.
1461 * python/python.c (source_python_script): Delete stream parameter.
1462 All callers updated.
1463 (source_python_script_for_objfile): Ditto.
1464 * python/python-internal.h (source_python_script_for_objfile): Update.
1465 * python/python.h (source_python_script): Update.
1466
d849d44f
TT
14672011-10-27 Tom Tromey <tromey@redhat.com>
1468
1469 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1470 (ada_sals_for_line): Remove declarations.
1471
2231f1fb
KP
14722011-10-27 Kevin Pouget <kevin.pouget@st.com>
1473
1474 Move unwind reasons to an external .def file
1475 * frame.c (frame_stop_reason_string): Rewrite using
1476 unwind_stop_reasons.def.
1477 * frame.h (enum unwind_stop_reason): Likewise.
1478 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1479 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1480 constants for bound-checking.
1481 * unwind_stop_reasons.def: New file.
1482 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1483 instead of a distinct value.
1484
f77b9a5d
PM
14852011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1486
1487 PR python/13331
1488
1489 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1490 (convert_values_to_python): Return on Python tuple allocation
1491 failure. Return NULL on value conversion error.
1492
76dce0be
PM
14932011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1494
1495 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1496 (bppy_set_task): Ditto.
1497 (bppy_delete_breakpoint): Ditto.
1498 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1499 (gdbpy_lookup_global_symbol): Ditto.
1500 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1501 * python/py-frame.c (frapy_is_valid): Ditto.
1502 (frame_info_to_frame_object): Ditto.
1503 * python/py-type.c (typy_lookup_type): Ditto.
1504 (typy_getitem): Ditto.
1505 (typy_has_key): Ditto.
1506 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1507
f17b6955
JB
15082011-10-26 Joel Brobecker <brobecker@adacore.com>
1509
1510 * gdbarch.h: Regenerate.
1511
86ba1042
JB
15122011-10-26 Meador Inge <meadori@codesourcery.com>
1513
1514 * gdbarch.sh (function_list): Use 'pstring' when printing
1515 'gcore_bfd_target'.
1516 * gdbarch.c: Regenerate.
1517
c34fd852
UW
15182011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1519
1520 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1521 and frame caches if PTID refers to all threads of a process.
1522
931bb47f
UW
15232011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1524
1525 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1526 to create_breakpoint.
1527
88aed45e
UW
15282011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1529
1530 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1531 (ppc_sysv_abi_push_dummy_call): Use it.
1532 (do_ppc_sysv_return_value): Likewise.
1533 (ppc64_sysv_abi_push_dummy_call): Likewise.
1534 (ppc64_sysv_abi_return_value): Likewise.
1535
3eaf3fa2
PK
15362011-10-26 Paul Koning <paul_koning@dell.com>
1537
1538 * python/lib/gdb/types.py (deepitems): New function.
1539
913460fc
PK
15402011-10-25 Paul Koning <paul_koning@dell.com>
1541
1542 PR python/13327
1543
1544 * python/py-value.c (value_to_value_object): Remove fetching of
1545 the value if it was lazy.
1546 (valpy_get_is_lazy): New function.
1547 (valpy_fetch_lazy): New function.
1548
2b5b9d09
JB
15492011-10-24 Joel Brobecker <brobecker@adacore.com>
1550
1551 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1552 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1553
e21ffe51
PA
15542011-10-24 Pedro Alves <pedro@codesourcery.com>
1555
1556 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1557 event, in non-stop, if not stopping, make sure the new lwp has
1558 last_resume_kind set to resume_continue. Assert that when we're
1559 resuming the new lwp, its last_resume_kind is resume_continue.
1560
7aee8dc2
PA
15612011-10-24 Pedro Alves <pedro@codesourcery.com>
1562
1563 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1564 already set when marking the event thread as not executing in
1565 non-stop mode.
1566
4b4e080e
PA
15672011-10-24 Pedro Alves <pedro@codesourcery.com>
1568
1569 * infrun.c (handle_inferior_event): Add debug output for
1570 TARGET_WAITKIND_NO_HISTORY.
1571
baacfb07
PM
15722011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1573
1574 * NEWS: Move set/show extended-prompt to "New Options". Expand
1575 description. Fix typos.
1576
8432bc41
PM
15772011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1578
1579 PR python/13310
1580
1581 * python/py-param.c (call_doc_function): Correctly deference on
1582 function exit.
1583
6cda5a20
JB
15842011-10-21 Joel Brobecker <brobecker@adacore.com>
1585
1586 * ada-tasks.c (print_ada_task_info): Fix computation of
1587 number of tasks displayed in command output.
1588
13294f7d
JK
15892011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 Ulrich Weigand <uweigand@de.ibm.com>
1591
1592 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1593 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1594 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1595 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1596 gdbarch_unwind_pc.
1597
460c1c54
CC
15982011-10-20 Cary Coutant <ccoutant@google.com>
1599
1600 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1601 section to...
1602 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1603 flag. Adjust all callers.
1604 (process_psymtab_comp_unit): Remove adjustment for type section.
1605
a10964d1
AR
16062011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1607
1608 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1609 arguments by adding OBJFILE. Instead of getting objfile from
1610 symbol's symtab, use new argument OBJFILE.
1611 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1612 arguments by adding OBJFILE.
1613 * gdb/dwarf2read.c (new_symbol_full): Change call to
1614 cp_scan_for_anonymous_namespaces to match new signature.
1615 * gdb/stabsread.c (define_symbol): Change call to
1616 cp_scan_for_anonymous_namespaces to match new signature.
1617
27ca1a5b
PM
16182011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1619
1620 PR python/13308
1621 PR python/13309
1622
1623 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1624 leak.
1625 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1626 leak. Delete unused variables.
1627
9df2fbc4
PM
16282011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1629
1630 PR python/12656
1631
1632 * python/py-frame.c (frapy_read_var): Use const struct *block.
1633 * python/py-type.c (typy_lookup_typename): Likewise.
1634 (typy_lookup_type): Likewise.
1635 (typy_legacy_template_argument): Likewise.
1636 (typy_template_argument): Likewise.
1637 (gdbpy_lookup_type): Likewise.
1638 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1639 * python/py-block.c (blpy_block_object): Likewise.
1640 (blpy_iter): Likewise.
1641 (blpy_get_start): Likewise.
1642 (blpy_get_end): Likewise.
1643 (blpy_get_function): Likewise.
1644 (blpy_get_superblock): Likewise.
1645 (set_block): Likewise.
1646 (block_to_block_object): Likewise.
1647 (block_object_to_block): Likewise.
1648 (blpy_is_valid): Likewise.
1649 (blpy_get_global_block): New function.
1650 (blpy_get_static_block): New function.
1651 (blpy_is_global): New function.
1652 (blpy_is_static): New function.
1653 * blockframe.c (block_innermost_frame): Likewise.
1654 * valops.c (value_of_variable): Likewise.
1655 * frame.h: Update prototypes.
1656 * python/python-internal.h: Likewise.
1657 * value.h: Likewise.
1658
4743b735
CC
16592011-10-19 Cary Coutant <ccoutant@google.com>
1660
1661 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1662 type_offset field.
1663
6caca83c
CC
16642011-10-19 Cary Coutant <ccoutant@google.com>
1665
1666 * dwarf2read.c (peek_abbrev_code): New function.
1667 (dw2_get_file_names): Check for dummy compilation units.
1668 (create_debug_types_hash_table): Likewise.
1669 (process_psymtab_comp_unit): Likewise.
1670 (load_partial_comp_unit): Likewise.
1671 (load_full_comp_unit): Likewise.
1672
43136979
AR
16732011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1674
1675 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1676 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1677 pt_phdr if PT_PHDR was found.
1678
0a07729b
TT
16792011-10-17 Joost van der Sluis <joost@cnoc.nl>
1680
1681 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1682 type or "<unnamed type"> when there is no name assigned.
1683 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1684 avoid a sigint when no name is assigned.
1685
21ae7a4d
JK
16862011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 Revert:
1689 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1690 * dwarf2expr.c (ctx_no_read_reg): New function.
1691 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1692 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1693 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1694 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1695
32d1c362
DE
16962011-10-16 Doug Evans <dje@google.com>
1697
1698 * NEWS: Document python gdb.printing.register_pretty_printer's new
1699 `replace' parameter.
1700
da096638
KS
17012011-10-14 Keith Seitz <keiths@redhat.com>
1702
1703 PR c++/13225
1704 * eval.c (evaluate_subexp_standard): Do not construct
1705 an array of types; pass the value array directly to
1706 find_overload_match.
1707 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1708 (rank_function): Take an array of values instead of types.
1709 (rank_one_type): Add struct value * parameter.
1710 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1711 (rank_function): For each argument, pass the argument's
1712 value to rank_one_type.
1713 (rank_one_type): Add VALUE parameter.
1714 If the parameter type is a pointer and the argument type
1715 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1716 VALUE is zero.
1717 Update all calls to rank_one_type, passing NULL for new
1718 VALUE parameter.
1719 * valarith.c (value_user_defined_cpp_op): Do not construct
1720 an array of types; pass the value array directly to
1721 find_overload_match.
1722 * valops.c (find_overload_method_list): Take an array of
1723 values instead of types.
1724 Save the type of OBJP for later use.
1725 Update calls to find_oload_champ, and find_oload_champ_namespace.
1726 (find_oload_champ_namespace): Take an array of values instead
1727 of types.
1728 (find_oload_champ_namespace_loop): Likewise.
1729 (find_oload_champ): Likewise.
1730 (classify_oload_match): Inspect all arguments
1731 until INCOMPATIBLE is found. Return the worst badness found
1732 otherwise.
1733 (compare_parameters): Update call to rank_one_type.
1734 * value.h (find_overload_match): Take an array of values instead
1735 of types.
1736
3957565a
JK
17372011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1738
1739 Drop lazy lm_info reading.
1740 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1741 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1742 (lm_info_read): New function.
1743 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1744 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1745 lm_dynamic_from_link_map.
1746 (lm_next, lm_prev, lm_name): Remove.
1747 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1748 initialization incl. read_memory. No longer use lm_name.
1749 (svr4_free_so): Drop lm_info->lm freeing.
1750 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1751 explicit lm_addr and lm initialization.
1752 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1753 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1754 lm_name.
1755
cb08cc53
JK
17562011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1757 Paul Pluzhnikov <ppluzhnikov@google.com>
1758
1759 * defs.h (struct so_list): New forward declaration.
1760 (make_cleanup_free_so): New declaration.
1761 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1762 (svr4_free_so): Move the function here from downwards. Handle NULL
1763 so->lm_info.
1764 (svr4_free_library_list): New.
1765 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1766 Use more cleanups. Use new parameter ignore_first instead of
1767 ignore_first_link_map_entry.
1768 (svr4_current_sos): New variable ignore_first, initialize it. New
1769 variable back_to, use it for svr4_free_library_list protection.
1770 (svr4_free_so): Remove - move upwards.
1771 * utils.c: Include solist.h.
1772 (do_free_so, make_cleanup_free_so): New functions.
1773
22c05d8a
JK
17742011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 Fix internal error regression.
1777 * value.c (value_primitive_field): Handle value_optimized_out. Move
1778 packed bitfields comment.
1779
d930d06e
TT
17802011-10-13 Tom Tromey <tromey@redhat.com>
1781
1782 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1783 always released.
1784
2ff6b080
TT
17852011-10-13 Tom Tromey <tromey@redhat.com>
1786
1787 * python/py-type.c (typy_has_key): Make 'field' const.
1788
d6c5869f
LM
17892011-10-13 Luis Machado <lgustavo@codesourcery.com>
1790
1791 * remote.c (remote_save_trace_data): Invert comparison.
1792
a70633a2
LM
17932011-10-13 Luis Machado <lgustavo@codesourcery.com>
1794
1795 * tracepoint.c (trace_save_command): Use filename instead of
1796 args when printing.
1797
e103e986
JK
17982011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1799
1800 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1801 if .size is 0.
1802
db24da6d
YQ
18032011-10-13 Yao Qi <yao@codesourcery.com>
1804
1805 PR gdb/12703
1806 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1807 whether insn is a 32-bit Thumb-2 instruction.
1808 (thumb_in_function_epilogue_p): Likewise.
1809 (thumb_get_next_pc_raw): Likewise.
1810 (arm_breakpoint_from_pc): Likewise.
1811
1d6edc3c
JK
18122011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1815 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1816 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1817 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1818 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1819 zero DATA.
1820 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1821 validity.
1822 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1823 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1824 clear DATA on zero SIZE.
1825
adabb602
DE
18262011-10-12 Doug Evans <dje@google.com>
1827
1828 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1829 header->first_die_offset here. All callers updated.
1830
5048e516
JK
18312011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Fix compatibility with texinfo versions older than 4.12.
1834 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1835 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1836 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1837 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1838 * configure: Regenerate.
1839 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1840 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1841 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1842
0574c78f
GB
18432011-10-12 Gary Benson <gbenson@redhat.com>
1844
1845 * breakpoint.h (pc_at_non_inline_function): Declare.
1846 * breakpoint.c (is_non_inline_function,
1847 pc_at_non_inline_function): New functions.
1848 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1849 if the stop is at a location where functions cannot be inlined.
1850
12d9289a
PA
18512011-10-12 Pedro Alves <pedro@codesourcery.com>
1852
1853 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1854 the core wanted them stopped, or if they now have a pending event
1855 to report.
ecf8e7f5
PA
1856 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1857 down to stop_and_resume_callback.
1858 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1859 having new pending events after calling linux_nat_filter_event.
12d9289a 1860
96408a79
SA
18612011-10-11 Sterling Augustine <saugustine@google.com>
1862
1863 * dwarf2read.c: Undo inadvertent changes in previous commit.
1864
9c6c53f7
SA
18652011-10-11 Sterling Augustine <saugustine@google.com>
1866
1867 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1868 logic.
1869
0e8aefe7
UW
18702011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1871
1872 * symfile.c (separate_debug_file_exists): Fix condition.
1873
349d1385
DM
18742011-10-11 David S. Miller <davem@davemloft.net>
1875
1876 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1877 static.
1878 * regcache.h (regcache_restore): Remove declaration.
1879
205c306f
DM
1880 * gdbarch.sh: New field 'long_long_align_bit'.
1881 * gdbarch.c, gdbarch.h: Regenerate.
1882 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1883 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1884
941b2081
JK
18852011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 Revert this part of:
1888 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Support @entry in input expressions.
1890 * c-exp.y (ENTRY, unknown_cpp_name): New.
1891 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1892 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1893 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1894 (name_not_typename: ENTRY): New.
1895 (yylex): Recognize ENTRY.
1896
1897 Reimplement @entry in input expressions.
1898 * c-exp.y (ENTRY): New.
1899 (variable: name_not_typename ENTRY): New.
1900 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1901
3c4d7e12
PA
19022011-10-11 Pedro Alves <pedro@codesourcery.com>
1903
1904 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1905 parent and child's pids as soon as we detect a clone event.
1906 Adjust another debug message.
1907
ea23808b
PA
19082011-10-11 Pedro Alves <pedro@codesourcery.com>
1909
1910 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1911 not zombie instead of reading the whole file.
1912
904578ed
JK
19132011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1914
1915 Fix separate debuginfo warning with "remote:" access.
1916 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1917 * symfile.c (get_file_crc): New function with the code moved from ...
1918 (separate_debug_file_exists): ... this function, specifically variables
1919 buffer and count. New variable verified_as_different, set it. Remove
1920 file_crc initialization. Verify also if both files are not the same
1921 manually, if needed.
1922
51370a33
YQ
19232011-10-11 Yao Qi <yao@codesourcery.com>
1924
1925 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1926 to get address.
1927
0838fb57
DE
19282011-10-10 Doug Evans <dje@google.com>
1929
1930 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1931 libthread_db when we load libpthread or the main symbol file.
1932 (thread_db_inferior_created): New function.
1933 (_initialize_thread_db): Attach inferior_created observer.
1934 * linux-nat.c (linux_child_post_attach): Remove call to
1935 check_for_thread_db.
1936 (linux_child_post_startup_inferior): Ditto.
1937 * objfiles.h (OBJF_MAINLINE): Define.
1938 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1939 allocate_objfile when appropriate.
1940
623bd5b7
UW
19412011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1942
1943 PR gdb/13218
1944 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1945 Remove unused variables.
1946 (get_linux_version): Remove function.
1947 (_initialize_arm_linux_nat): Do not call it.
1948
79395f92
PA
19492011-10-10 Pedro Alves <pedro@codesourcery.com>
1950
1951 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1952 new clone lwp if the core asked it to stop. Don't pass on
1953 unexpected signals to the new clone; leave them pending instead.
1954
eff3df78
PA
19552011-10-10 Pedro Alves <pedro@codesourcery.com>
1956
1957 * linux-nat.c (resume_lwp): Remove redundant debug output.
1958
4b60df3d
PA
19592011-10-10 Pedro Alves <pedro@codesourcery.com>
1960
1961 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1962 last_resume_kind before clearing it, and use the copy instead to
1963 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1964 resume_clear_callback in the non-stop path too.
1965
6501578c
YQ
19662011-10-09 Yao Qi <yao@codesourcery.com>
1967
1968 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1969 Honor OPTIONS and VAL's type.
1970 (common_val_print, value_print): Update to pass one more parameter.
1971
5a56e9c5
DE
19722011-10-09 Doug Evans <dje@google.com>
1973
1974 Add new "alias" command.
1975 * NEWS: Mention new command.
1976 * command.h (valid_user_defined_cmd_name_p): Declare.
1977 * defs.h (make_cleanup_dyn_string_delete): Declare.
1978 * utils.c: #include "dyn-string.h".
1979 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1980 * cli/cli-cmds.c: #include "dyn-string.h".
1981 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1982 (init_cli_cmds): Add new command.
1983 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1984
509f0fd9
JK
19852011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1986
1987 Fix compatibility with older GCCs.
1988 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1989 * stack.c (read_frame_arg): Initialize val_deref.
1990
2bda9cc5
JK
19912011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1992
1993 Entry values NEWS entries, DWARF disassembly support.
1994 * NEWS: New entry values entry.
1995 (set print entry-values, show print entry-values)
1996 (set debug entry-values, show debug entry-values): New entries.
1997 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1998 indent. Remove variable start. Move header printing out. Respect
1999 INDENT. Support DW_OP_GNU_entry_value.
2000 (locexpr_describe_location_1): Move the header printing here, extend
2001 the disassemble_dwarf_expression passed parameters.
2002
a471c594
JK
20032011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 Display @entry parameter values even for references.
2006 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2007 coerce_ref_if_computed.
2008 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2009 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2010 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2011 existing push_dwarf_reg_entry_value call. Add new detection calling
2012 dwarf_block_to_dwarf_reg_deref. Update the error message.
2013 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2014 * dwarf2expr.h
2015 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2016 parameter deref_size, describe it in the comment.
2017 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2018 (dwarf_block_to_dwarf_reg_deref): New declaration.
2019 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2020 deref_size, describe it in the function comment. New variables
2021 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2022 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2023 describe it in the function comment. Fetch the alternative block
2024 accoring to DEREF_SIZE.
2025 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2026 (entry_data_value_free_closure, entry_data_value_funcs): New.
2027 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2028 outer_val, target_val, val and addr. Try to fetch and create also
2029 referenced value content.
2030 (pieced_value_funcs): NULL value for coerce_ref.
2031 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2032 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2033 coerce_ref_if_computed.
2034 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2035 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2036 * stack.c (read_frame_arg): Compare also dereferenced values.
2037 * value.c (value_computed_funcs): Make the parameter v const, use
2038 value_lval_const for it.
2039 (value_lval_const, coerce_ref_if_computed): New function.
2040 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2041 * value.h (struct lval_funcs): New field coerce_ref.
2042 (value_computed_funcs): Make the parameter v const.
2043 (value_lval_const, coerce_ref_if_computed): New declarations.
2044
36b11add
JK
20452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 Support @entry in input expressions.
2048 * c-exp.y (ENTRY, unknown_cpp_name): New.
2049 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2050 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2051 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2052 (name_not_typename: ENTRY): New.
2053 (yylex): Recognize ENTRY.
2054 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2055 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2056 Likewise.
2057 * parse.c (operator_length_standard): Likewise.
2058 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2059
3343315b
JK
20602011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2061
2062 Display referenced values in backtraces.
2063 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2064 * stack.c (print_frame_arg): Likewise.
2065
ac71a68c
JK
20662011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2067
2068 Make some lval_funcs methods to default on NULL.
2069 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2070 NULL.
2071 (value_assign): Check if lval_computed write method is NULL.
2072 * value.h (struct lval_funcs): Comment NULL values for read and write
2073 methods.
2074
e18b2753
JK
20752011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2076
2077 Display @entry parameter values (without references).
2078 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2079 New functions.
2080 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2081 New declarations.
2082 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2083 entry record.
2084 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2085 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2086 functions.
2087 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2088 (loclist_read_variable_at_entry): New function.
2089 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2090 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2091 DW_AT_location, call dwarf_block_to_sp_offset for it.
2092 * frame.h (print_entry_values_no, print_entry_values_only)
2093 (print_entry_values_preferred, print_entry_values_if_needed)
2094 (print_entry_values_both, print_entry_values_compact)
2095 (print_entry_values_default, print_entry_values): New declarations.
2096 (struct frame_arg): New field entry_kind.
2097 (read_frame_arg): New parameter entryargp.
2098 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2099 arg->entry_kind. Optionally print the `@entry' suffix.
2100 (list_args_or_locals): New variable entryarg, initialize it.
2101 Initialize also entry_kind of arg and entryarg. Conditionalize
2102 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2103 xfree for entryarg.error.
2104 * stack.c (print_entry_values_no, print_entry_values_only)
2105 (print_entry_values_preferred, print_entry_values_if_needed)
2106 (print_entry_values_both, print_entry_values_compact)
2107 (print_entry_values_default, print_entry_values_choices)
2108 (print_entry_values): New variables.
2109 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2110 print the `@entry' suffix, possibly in combination for
2111 print_entry_values_compact.
2112 (read_frame_arg): New parameter entryargp, new variables entryval,
2113 entryval_error and val_equal. Read in also entryargp, respect
2114 print_entry_values, compare the values using val_equal, fill in also
2115 argp->entry_kind (together with entryargp->entry_kind).
2116 (print_frame_args): New variable entryarg, initialize it.
2117 Conditionalize print_frame_arg for arg, add print_frame_arg for
2118 entryarg. Call xfree for entryarg.error.
2119 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2120 * symtab.h (struct symbol_computed_ops): New field
2121 read_variable_at_entry.
2122
93d86cef
JK
21232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2124
2125 Code reshuffle.
2126 * frame.h (struct frame_arg): New definition.
2127 (read_frame_arg): New declaration.
2128 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2129 (list_args_or_locals): ... the code here. New variable arg, call
2130 read_frame_arg and list_arg_or_local with it. Unify the
2131 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2132 arg.error.
2133 * stack.c (print_frame_arg): New functiom from the code of
2134 print_frame_args.
2135 (read_frame_arg): New function.
2136 (print_frame_args): Remove variable val. New variable arg, call
2137 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2138
2d6c5dc2
JK
21392011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 Protect entry values against self tail calls.
2142 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2143 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2144
111c6489
JK
21452011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Recognize virtual tail call frames.
2148 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2149 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2150 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2151 * dwarf2-frame-tailcall.c: New file.
2152 * dwarf2-frame-tailcall.h: New file.
2153 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2154 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2155 REGS.PREV only after CIE execution.
2156 (struct dwarf2_frame_cache): New field tailcall_cache.
2157 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2158 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2159 parts, try to find entry_cfa_sp_offset. Call
2160 dwarf2_tailcall_sniffer_first.
2161 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2162 when appropriate.
2163 (dwarf2_frame_dealloc_cache): New function.
2164 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2165 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2166 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2167 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2168 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2169 * dwarf2loc.c (func_addr_to_tail_call_list)
2170 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2171 (call_site_find_chain_1, call_site_find_chain): New.
2172 * dwarf2loc.h (struct call_site_chain): New.
2173 (call_site_find_chain): New declaration.
2174 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2175 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2176 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2177 * stack.c (frame_info): Support also TAILCALL_FRAME.
2178
bb984ff1
JK
21792011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 Tail call sites reader implementation.
2182 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2183 fill in TYPE_TAIL_CALL_LIST.
2184 * gdbtypes.h (struct func_type): New field tail_call_list.
2185 (struct call_site): New field tail_call_next.
2186 (TYPE_TAIL_CALL_LIST): New definition.
2187
8e3b41a9
JK
21882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2189
2190 Implement basic support for DW_TAG_GNU_call_site.
2191 * block.c: Include gdbtypes.h and exceptions.h.
2192 (call_site_for_pc): New function.
2193 * block.h (call_site_for_pc): New declaration.
2194 * defs.h: Include hashtab.h.
2195 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2196 declarations.
2197 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2198 ctx_no_push_dwarf_reg_entry_value.
2199 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2200 (dwarf_block_to_dwarf_reg): New function.
2201 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2202 (ctx_no_push_dwarf_reg_entry_value): New function.
2203 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2204 push_dwarf_reg_entry_value.
2205 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2206 declarations.
2207 * dwarf2loc.c: Include gdbcmd.h.
2208 (dwarf_expr_ctx_funcs): New forward declaration.
2209 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2210 (dwarf_expr_reg_to_entry_parameter)
2211 (dwarf_expr_push_dwarf_reg_entry_value): New.
2212 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2213 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2214 (needs_dwarf_reg_entry_value): New function.
2215 (needs_frame_ctx_funcs): Install it.
2216 (_initialize_dwarf2loc): New function.
2217 * dwarf2loc.h (entry_values_debug): New declaration.
2218 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2219 (read_call_site_scope): New forward declaration.
2220 (process_full_comp_unit): Copy call_site_htab.
2221 (process_die): Support DW_TAG_GNU_call_site.
2222 (read_call_site_scope): New function.
2223 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2224 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2225 (cleanup_htab): Delete.
2226 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2227 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2228 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2229 FIELD_LOC_KIND_DWARF_BLOCK.
2230 * gdbtypes.h (enum field_loc_kind): New entry
2231 FIELD_LOC_KIND_DWARF_BLOCK.
2232 (struct main_type): New loc entry dwarf_block.
2233 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2234 (TYPE_FIELD_DWARF_BLOCK): New.
2235 * python/py-type.c: Include dwarf2loc.h.
2236 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2237 internal_error call on unknown FIELD_LOC_KIND.
2238 * symtab.h (struct symtab): New field call_site_htab.
2239 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2240 (core_addr_hash, core_addr_eq): New functions.
2241
b6cdc2c1
JK
22422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2243
2244 Code reshuffle.
2245 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2246 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2247 calling_convention under func_stuff there.
2248 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2249 (init_type) <TYPE_CODE_FUNC>: Likewise.
2250 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2251 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2252 * gdbtypes.h (enum type_specific_kind): Change
2253 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2254 (struct main_type) <type_specific>: Change calling_convention to
2255 func_stuff. Move calling_convention to ...
2256 (struct func_type): ... this new struct.
2257 (INIT_FUNC_SPECIFIC): New #define.
2258 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2259
181cebd4
JK
22602011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2261
2262 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2263 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2264 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2265 ctx->ref_addr_size. Handle its invalid value.
2266 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2267 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2268 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2269 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2270 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2271 (dwarf2_per_cu_ref_addr_size): New function.
2272
c471e790
JK
22732011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 Code cleanup.
2276 * dwarf2read.c (per_cu_header_read_in): New function.
2277 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2278 variables cu_header_local and cu_headerp.
2279
741f5e3c
JK
22802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2281
2282 Fix initial language detection with -readnow.
2283 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2284 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2285 searches only for global symbols.
2286
a73d2258
JK
22872011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2288
2289 Fix printed anonymous struct name.
2290 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2291 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2292 (anonymous_struct_prefix): New function.
2293 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2294 (dwarf2_name): Strip for anonymous structs any prefixes.
2295
749fd4ea
DE
22962011-10-07 Doug Evans <dje@google.com>
2297
1fa57852
DE
2298 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2299 `replace'.
2300
690a4937
DE
2301 * python/lib/gdb/printing.py: Whitespace cleanup.
2302
749fd4ea
DE
2303 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2304 warning.
2305
4c38200f
PA
23062011-10-07 Pedro Alves <pedro@codesourcery.com>
2307
2308 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2309 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2310 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2311 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2312 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2313 (arm_linux_remove_watchpoint): Adjust.
2314 * i386-linux-nat.c (i386_linux_dr_set_control)
2315 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2316 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2317 (ia64_linux_remove_watchpoint): Adjust.
2318 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2319 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2320 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2321 (ppc_linux_insert_mask_watchpoint)
2322 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2323 (ppc_linux_remove_watchpoint): Adjust.
2324 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2325 Adjust.
2326
b7ff339d
CV
23272011-10-07 Corinna Vinschen <vinschen@redhat.com>
2328
2329 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2330 (clear_win32_environment): New function for Cygwin to clear out
2331 Win32 environment.
2332 (windows_create_inferior): Prepare new environment from in_env
2333 for Cygwin, too.
2334
f287c1f3
PM
23352011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2336
5631e596 2337 PR python/13264
f287c1f3
PM
2338 * python/py-value.c (valpy_call): Check that arguments are
2339 a tuple.
2340 (is_intlike): Remove call to CHECK_TYPEDEF.
2341 (valpy_nonzero): Catch GDB exceptions.
2342 (valpy_absolute): Ditto.
2343 (valpy_lazy_string): Ditto.
2344 (valpy_call): Ditto.
2345 (valpy_get_is_optimized_out): Ditto.
2346 (valpy_long): Ditto.
2347 (valpy_float): Ditto.
2348 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2349 (valpy_richcompare): Ditto.
2350
03583c20
UW
23512011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2352
2353 * inferior.h (disable_randomization): Declare.
2354 * infrun.c (disable_randomization): New global variable.
2355 (show_disable_randomization): New function.
2356 (set_disable_randomization): Likewise.
2357 (_initialize_infrun): Install set/show disable-randomization
2358 commands.
2359 * linux-nat.c (disable_randomization): Remove.
2360 (show_disable_randomization): Likewise.
2361 (set_disable_randomization): Likewise.
2362 (_initialize_linux_nat): No longer install set/show
2363 disable-randomization commands here.
2364 (linux_nat_supports_disable_randomization): New function.
2365 (linux_nat_add_target): Install it.
2366 * remote.c (PACKET_QDisableRandomization): New enum value.
2367 (remote_protocol_packets): Support QDisableRandomization.
2368 (_initialize_remote): Likewise.
2369 (remote_supports_disable_randomization): New function.
2370 (init_remote_ops): Install it.
2371 (extended_remote_supports_disable_randomization): New function.
2372 (init_extended_remote_ops): Install it.
2373 (extended_remote_disable_randomization): New function.
2374 (extended_remote_create_inferior_1): Call it.
2375 * target.h (struct target_ops): Add to_supports_disable_randomization.
2376 (target_supports_disable_randomization): Add prototype.
2377 * target.c (target_supports_disable_randomization): New function.
2378 (find_default_supports_disable_randomization): Likewise.
2379 (init_dummy_target): Install it.
2380
20c168b5
KP
23812011-10-07 Kevin Pouget <kevin.pouget@st.com>
2382
2383 Allow Python notification of new object-file loadings.
2384 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2385 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2386 Add build rule for this file.
2387 * python/py-event.h (emit_new_objfile_event): New prototype.
2388 (newobjfile): New Python event emitter.
2389 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2390 Python event registry.
2391 * python/py-inferior.c: Include objfiles.h
2392 (python_new_objfile): New function.
2393 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2394 observers.
2395 * python/py-newobjfileevent.c: New file.
2396 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2397 prototype.
2398 * python/python.c (_initialize_python): Add
2399 gdbpy_initialize_new_objfile_event call.
2400 * NEWS: Add item for new Python event "gdb.newobjfile"
2401
b1c8db38
TG
24022011-10-05 Tristan Gingold <gingold@adacore.com>
2403
2404 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2405 Extract the ravenscar task name from the symbol for the atcb.
2406
0dab82e9
PK
24072011-10-04 Paul Koning <paul_koning@dell.com>
2408
2409 * python/py-type.c (typy_make_iter): Add forward declaration.
2410 (typy_fields_items): Use the gdb.Type iterator.
2411
84ad80e6
PK
24122011-10-04 Paul Koning <paul_koning@dell.com>
2413
2414 * NEWS: Add entry for Python gdb.Type mapping methods.
2415
cb6be26b
KP
24162011-10-04 Kevin Pouget <kevin.pouget@st.com>
2417
2418 PR python/12691: Add the inferior to Python exited event
2419 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2420 to exited_event.
2421 * python/py-event.h (emit_exited_event): Likewise
2422 * python/-inferior.c (python_inferior_exit): Likewise
2423
6005b210
JB
24242011-10-03 Joel Brobecker <brobecker@adacore.com>
2425
2426 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2427 in output of -ada-task-info GDB/MI command.
2428
75082e8c
JB
24292011-10-03 Joel Brobecker <brobecker@adacore.com>
2430
2431 * ada-lang.h (struct inferior): Declare.
2432 (print_ada_task_info): Add declaration.
2433 * ada-tasks.c (print_ada_task_info): Make non-static.
2434 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2435 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2436 * mi/mi-main.c: #include "ada-lang.h".
2437 (mi_cmd_list_features): Add "ada-task-info" to the list
2438 of supported features.
2439 (mi_cmd_ada_task_info): New function.
2440
7ed7d719
JB
24412011-10-03 Joel Brobecker <brobecker@adacore.com>
2442
2443 * python/python.c (python_run_simple_file): New function.
2444 (source_python_script, source_python_script_for_objfile):
2445 Replace call to PyRun_SimpleFile by call to
2446 python_run_simple_file.
2447
3fcaed38
PK
24482011-10-03 Paul Koning <paul_koning@dell.com>
2449
2450 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2451 (value_to_value_object): Fetch value if it was lazy.
2452
8e5c319d
JK
24532011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 Code cleanup.
2456 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2457 Rearrange the code for it.
2458
dd11a36c
JB
24592011-10-02 Joel Brobecker <brobecker@adacore.com>
2460
2461 * breakpoint.c (bkpt_print_recreate): Add call to
2462 print_recreate_thread.
2463
723b724b
MF
24642011-09-29 Mike Frysinger <vapier@gentoo.org>
2465
2466 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2467 PTRACE_GETFDPIC_INTERP): Define.
2468
412946b6
YQ
24692011-09-28 Yao Qi <yao@codesourcery.com>
2470
2471 * symfile.c (add_symbol_file_command): Update message on usage.
2472
a73bb892
PK
24732011-09-28 Paul Koning <paul_koning@dell.com>
2474
2475 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2476 (typy_length, typy_get, typy_has_key, typy_make_iter)
2477 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2478 (typy_iterator_iter, typy_iterator_iternext)
2479 (typy_iterator_dealloc): New functions to implement standard
2480 Python mapping methods on gdb.Type object.
2481 (gdb.TypeIterator): New Python type.
2482 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2483
fe10a582
DM
24842011-09-28 David S. Miller <davem@davemloft.net>
2485
2486 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2487 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2488 * sparc-tdep.c (sparc_complex_floating_p): New function.
2489 (sparc32_store_arguments): Handle complex floats.
2490 (sparc32_extract_return_value): Likewise.
2491 (sparc32_store_return_value): Likewise.
2492 (sparc32_stabs_argument_has_addr): Likewise.
2493 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2494 (sparc64_store_floating_fields): Handle complex floats.
2495 (sparc64_store_arguments): Likewise.
2496 (sparc64_store_return_value): Likewise.
2497
c93dbcba
EZ
24982011-09-28 Eli Zaretskii <eliz@gnu.org>
2499
2500 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2501 before the change on 2006-12-09.
2502 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2503 generates the environment block for CreateProcessA, modulo the
2504 Cygwin-specific parts that are not needed here.
2505
f00c55f8
TG
25062011-09-27 Tristan Gingold <gingold@adacore.com>
2507
2508 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2509 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2510 (darwin_solib_get_all_image_info_addr_at_init): New function.
2511 (darwin_solib_read_all_image_info_addr): Likewise.
2512 (darwin_solib_create_inferior_hook): Use the above two functions.
2513 * darwin-nat.c (darwin_execvp): Renames retval to res.
2514 (darwin_read_write_inferior): Update comment.
2515 (darwin_read_dyld_info): New function.
2516 (darwin_xfer_partial): Handle DYLD_INFO.
2517
6710bf39
SS
25182011-09-27 Stan Shebs <stan@codesourcery.com>
2519
2520 Add return address collection for tracepoints.
2521 * tracepoint.c (encode_actions_1): Add case for $_ret.
2522 (validate_actionline): Check for $_ret.
2523 (trace_dump_actions): Ditto.
2524 * ax-gdb.h (gen_trace_for_return_address): Declare.
2525 * ax-gdb.c: Include arch-utils.h.
2526 (gen_trace_for_return_address): New function.
2527 (agent_command): Add return address special case.
2528 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2529 (amd64_gen_return_address): New function.
2530 (amd64_init_abi): Call it.
2531 * i386-tdep.c: Include ax.h and ax-gdb.h.
2532 (i386_gen_return_address): New function.
2533 (i386_init_abi): Call it.
2534 * arch-utils.h (default_gen_return_address): Declare.
2535 * arch-utils.c (default_gen_return_address): New function.
2536 * gdbarch.sh (gen_return_address): New method.
2537 * gdbarch.h, gdbarch.c: Regenerate.
2538
e04e5beb
JM
25392011-09-23 Joseph Myers <joseph@codesourcery.com>
2540
2541 PR gdb/13079
2542 * i386-tdep.c (i386_frame_align): New.
2543 (i386_gdbarch_init): Use i386_frame_align.
2544
f3d6df6d
YQ
25452011-09-23 Yao Qi <yao@codesourcery.com>
2546
2547 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2548 to get address.
2549
e69860f1
TG
25502011-09-22 Tristan Gingold <gingold@adacore.com>
2551
2552 * fork-child.c (fork_inferior): Add exec_fun parameter.
2553 Call exec_fun or execvp.
2554 * inferior.h: Adjust prototype.
2555 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2556 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2557 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2558 * procfs.c (procfs_create_inferior): Ditto.
2559 * darwin-nat.c (darwin_execvp): New function.
2560 (darwin_create_inferior): Use it.
2561
4b51d87b
YQ
25622011-09-22 Yao Qi <yao@codesourcery.com>
2563
2564 * infrun.c (context_switch): Print debug message when switching to
2565 a different thread.
2566
56b9d9ac
UW
25672011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2568
2569 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2570 complex and vector types.
2571 (s390_return_value_convention): Likewise.
2572
2573 (s390_value_from_register): Call check_typedef.
2574 (extend_simple_arg): Likewise.
2575 (alignment_of): Likewise.
2576 (s390_push_dummy_call): Likewise.
2577 (s390_return_value): Likewise.
2578
b2cd6b29
JM
25792011-09-21 Joseph Myers <joseph@codesourcery.com>
2580
2581 * event-top.c (async_disconnect): If an exception is thrown from
2582 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2583 catch_errors.
2584 * top.c (quit_cover): Return void and take no arguments.
2585 * top.h (quit_cover): Update prototype.
2586
67ba4e42
JM
25872011-09-20 Joseph Myers <joseph@codesourcery.com>
2588
2589 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2590 current_uiout, not uiout.
2591
562f943b
DE
25922011-09-19 Doug Evans <dje@google.com>
2593
2594 * python/py-auto-load.c (source_section_scripts): Fix file
2595 descriptor leak.
2596 * python/python.c (source_python_script_for_objfile): Tweak comments.
2597
34518530
YQ
25982011-09-18 Yao Qi <yao@codesourcery.com>
2599 Ulrich Weigand <ulrich.weigand@linaro.org>
2600
2601 Support displaced stepping for Thumb 16-bit insns.
2602 * arm-tdep.c (THUMB_NOP) Define.
2603 (thumb_copy_unmodified_16bit): New.
2604 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2605 (thumb_copy_alu_reg): New.
2606 (arm_copy_svc): Move some common code to ...
2607 (install_svc): ... here. New.
2608 (thumb_copy_svc): New.
2609 (install_pc_relative): New.
2610 (thumb_copy_pc_relative_16bit): New.
2611 (thumb_decode_pc_relative_16bit): New.
2612 (thumb_copy_16bit_ldr_literal): New.
2613 (thumb_copy_cbnz_cbz): New.
2614 (cleanup_pop_pc_16bit_all): New.
2615 (thumb_copy_pop_pc_16bit): New.
2616 (thumb_process_displaced_16bit_insn): New.
2617 (thumb_process_displaced_32bit_insn): New.
2618 (thumb_process_displaced_insn): process thumb instruction.
2619
2620 Support displaced stepping for Thumb 32-bit insns.
2621 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2622 (thumb2_copy_preload): New.
2623 (thumb2_copy_copro_load_store): New.
2624 (thumb2_copy_b_bl_blx): New.
2625 (thumb2_copy_alu_imm): New.
2626 (thumb2_copy_load_reg_imm): New.
2627 (thumb2_copy_load_literal): New
2628 (thumb2_copy_block_xfer): New.
2629 (thumb_32bit_copy_undef): New.
2630 (thumb_32bit_copy_unpred): New.
2631 (thumb2_decode_ext_reg_ld_st): New.
2632 (thumb2_decode_svc_copro): New.
2633 (decode_thumb_32bit_store_single_data_item): New.
2634 (thumb_copy_pc_relative_32bit): New.
2635 (thumb_decode_pc_relative_32bit): New.
2636 (decode_thumb_32bit_ld_mem_hints): New.
2637 (thumb2_copy_table_branch): New
2638 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2639 instructions.
2640
2b16b2e3
YQ
26412011-09-18 Yao Qi <yao@codesourcery.com>
2642
2643 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2644 (install_b_bl_blx): Likewise.
2645
0f6f04ba
YQ
26462011-09-17 Yao Qi <yao@codesourcery.com>
2647
2648 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2649 (install_load_store): ... this. New.
2650 Change parameter BYTE to SIZE.
2651 (arm_copy_ldr_str_ldrb_strb): Update caller.
2652 (arm_decode_ld_st_word_ubyte): Update caller.
2653
e2d96639
YQ
26542011-09-17 Yao Qi <yao@codesourcery.com>
2655
2656 * infrun.c (displaced_step_fixup): Move some code ...
2657 (displaced_step_restore): ... here. New function.
2658 (handle_inferior_event): Cleanup displaced stepping state for both
2659 child and parent when get forked or vforked event.
2660 * regcache.c (get_thread_arch_aspace_regcache): New function.
2661 get_thread_arch_regcache (): Call it.
2662
a8123151
JB
26632011-09-16 Joel Brobecker <brobecker@adacore.com>
2664
2665 * ada-tasks.c (print_ada_task_info): New function, merging
2666 short_task_info and info_tasks together. Reimplement using
2667 ui-out instead of printing to stdout directly. Move the code
2668 building and checking the task list here, instead of leaving it
2669 in info_tasks_command.
2670 (info_task): Move the code building and checking the task
2671 list here, instead of leaving it in info_tasks_command.
2672 (info_tasks_command): Delete code building and checking
2673 the task list - moved elsewhere. Update calls to info_tasks
2674 and info_task.
2675
fbf06824
JB
26762011-09-16 Joel Brobecker <brobecker@adacore.com>
2677
2678 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2679
34a0bc90
JB
26802011-09-16 Joel Brobecker <brobecker@adacore.com>
2681
2682 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2683
79779fa9
JB
26842011-09-16 Joel Brobecker <brobecker@adacore.com>
2685
2686 * ada-lang.h (ada_build_task_list): Remove parameter
2687 `warn_if_null'.
2688 * ada-tasks.c (ada_build_task_list): Remove parameter
2689 `warn_if_null'. Adjust implementation and documentation.
2690 (valid_task_id, ada_get_environment_task)
2691 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2692 (info_tasks_command): Adjust implementation.
2693 (task_command): Likewise.
2694 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2695 to ada_build_task_list.
2696
e225eb91
JB
26972011-09-16 Joel Brobecker <brobecker@adacore.com>
2698
2699 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2700 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2701 (ada_tasks_inferior_data_handle): New static global.
2702 (get_ada_tasks_inferior_data): New function.
2703 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2704 (ada_get_environment_task, iterate_over_live_ada_tasks)
2705 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2706 Adjust.
2707 (ada_set_current_inferior_known_tasks_addr): New function.
2708 (read_known_tasks, ada_build_task_list, short_task_info)
2709 (info_tasks, info_task, info_tasks_command, task_command_1)
2710 (task_command, ada_task_list_changed): Adjust.
2711 (ada_tasks_invalidate_inferior_data): New function.
2712 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2713 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2714 * ada-lang.h (struct inferior): Add declaration.
2715 (ada_task_list_changed): Update profile.
2716 * remote-wtx-pd.c: #include "inferior.h".
2717 (switch_to_pd_internal): Update call to ada_task_list_changed.
2718
6da9ca05
JB
27192011-09-16 Joel Brobecker <brobecker@adacore.com>
2720
2721 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2722 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2723 (atcb_fieldno): Delete these static globals.
2724 (struct ada_tasks_pspace_data): New struct.
2725 (ada_tasks_pspace_data_handle): New static global.
2726 (get_ada_tasks_pspace_data): New function.
2727 (ada_tasks_invalidate_pspace_data): New function.
2728 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2729 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2730 (_initialize_tasks): Create this module's per-progspace
2731 data handle.
2732
dccd3cbd
JB
27332011-09-16 Joel Brobecker <brobecker@adacore.com>
2734
2735 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2736
f877b031
TG
27372011-09-16 Tristan Gingold <gingold@adacore.com>
2738
2739 * fork-child.c (fork_inferior): Update comment. Use alloca
2740 instead of xmalloc for argv. Move len and shell_command
2741 declarations in the block where they are used.
2742 Only call execvp. Factorize failure code.
2743
ae0c443d
JK
27442011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2745
2746 Code cleanup.
2747 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2748 `exp_element' instead of an element of the same and make the function
2749 static.
2750 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2751 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2752 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2753 Change argument of `write_exp_elt' function call.
2754 Remove extra spaces from comments.
2755 * parser-defs.h (write_exp_elt): Remove prototype.
2756
5af65ec0
PK
27572011-09-15 Paul Koning <paul_koning@dell.com>
2758
2759 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2760 count of item appended to list.
2761 * python/py-type.c (typy_fields): Likewise.
2762
72be8ccc
PK
27632011-09-15 Paul Koning <paul_koning@dell.com>
2764
883640a8 2765 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 2766
92f6badc
KP
27672011-09-15 Kevin Pouget <kevin.pouget@st.com>
2768
2769 PR threads/12628
2770 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2771 processes with multiple threads.
2772 (inf_has_multiple_thread_cb): New function.
2773 (inf_has_multiple_threads): New function.
2774
0672bf41 27752011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
2776
2777 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2778 * python/py-inferior.c (GdbMethods): New Python method definition.
2779
6839b47f
KP
27802011-09-15 Kevin Pouget <kevin.pouget@st.com>
2781
2782 Handle multiple breakpoint hits in Python interface:
2783 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2784 variable to breakpoints.
2785 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2786 bps instead of single breakpoint. Fix some space typos.
2787 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2788 variable to breakpoints.
2789
672f9b60
KP
27902011-09-15 Kevin Pouget <kevin.pouget@st.com>
2791
2792 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2793 note if the breakpoint is internal.
2794
43675ae4
KP
27952011-09-15 Kevin Pouget <kevin.pouget@st.com>
2796
0672bf41 2797 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 2798
15148d6a
PA
27992011-09-14 Pedro Alves <pedro@codesourcery.com>
2800
2801 * infrun.c (prepare_for_detach, wait_for_inferior)
2802 (fetch_inferior_event): Don't flush the register cache.
2803 * remote.c (struct stop_reply) <regcache>: Add comment.
2804
d83e736b
JK
28052011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2806
2807 Remove excessive DWARF expressions memory duplication.
2808 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2809 for block.data.
2810 (indirect_pieced_value): Remove variable result. Remove variable
2811 back_to and its use for baton.data.
2812 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2813 block.data.
2814 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2815 Update the function comment.
2816
c65b3e0d
PA
28172011-09-13 Pedro Alves <pedro@codesourcery.com>
2818
2819 * inferior.h (ALL_INFERIORS): New.
2820 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2821 for a stopped thread.
2822 (thread_db_find_new_threads): Look for threads in all inferiors.
2823
a1398e0c
PA
28242011-09-13 Pedro Alves <pedro@codesourcery.com>
2825
2826 * breakpoint.c (update_watchpoint): Handle the case of the
2827 watchpoint to update not being in the breakpoint list yet.
2828 (hw_watchpoint_use_count): New, factored out from
2829 hw_watchpoint_used_count.
2830 (hw_watchpoint_used_count): Rename to ...
2831 (hw_watchpoint_used_count_others): ... this. Add `except'
2832 parameter. Don't count resources of `except'. Use
2833 hw_watchpoint_use_count.
2834
30596231
PA
28352011-09-13 Pedro Alves <pedro@codesourcery.com>
2836
2837 * gdbthread.h (enum thread_state): Moved here.
2838 (struct thread_info): Rename `executing_' field to `executing' and
2839 `state_' to `state'.
2840 * thread.c (enum thread_state): Moved to gdbthread.h.
2841 (new_thread, add_thread_silent, delete_thread_1)
2842 (any_live_thread_of_process, thread_alive, set_running)
2843 (set_running, is_thread_state, any_running, is_executing)
2844 (set_executing, finish_thread_state, print_thread_info)
2845 (do_captured_thread_select): Adjust.
2846
bede5f5f
JK
28472011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2848
2849 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2850 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2851
4801a9a3
PA
28522011-09-12 Pedro Alves <pedro@codesourcery.com>
2853 Matt Rice <ratmice@gmail.com>
2854
2855 PR gdb/13175
2856
2857 * interps.c (struct interp) <interpreter_out>: Delete field.
2858 (interp_new): Remove the data and uiout parameters and adjust.
2859 (interp_set): Only set the current_uiout from the interpreter's
2860 uiout after initializing the interpreter. Adjust call to
2861 init_proc.
2862 (interp_ui_out): Adjust to call procs->ui_out_proc.
2863 (interp_data, interp_name): New.
2864 * interps.h (interp_init_ftype): Add `self' parameter.
2865 (interp_ui_out_ftype): New typedef.
2866 (struct interp_procs) <ui_out_proc>: New method pointer.
2867 (interp_new): Remove the data and uiout parameters.
2868 (interp_data, interp_name): Declare.
2869 * tui/tui-interp.c (tui_init): Adjust prototype.
2870 (tui_ui_out): New.
2871 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2872 tui_out here. Adjust call to interp_new.
2873 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2874 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2875 (cli_ui_out): New.
2876 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2877 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2878 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2879 Initialize mi->uiout depending on the mi_version as extracted from
2880 the interpreter's name.
2881 (mi_ui_out): New.
2882 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2883 interp_new. Don't allocate the ui_out's of the interpreters here.
2884
d0afda03 28852011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2886
d0afda03 2887 * solib.c (solib_used): New function.
59145f8c
AR
2888 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2889 by another so_list object before freeing it.
2890
bdaf8d4a
JK
28912011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2892
2893 Code cleanup.
2894 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2895 values.
2896
df15bd07
JK
28972011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 Code cleanup.
2900 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2901 (amd64_skip_xmm_prologue): ... this new function. Describe its
2902 parameters. No longer use amd64_prologue_line_bug.
2903 * defs.h (producer_is_gcc_ge_4): New declaration.
2904 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2905 (process_full_comp_unit): Update its caller. Remove
2906 amd64_prologue_line_bug initialization.
2907 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2908 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2909
25289eb2
PA
29102011-09-09 Pedro Alves <pedro@codesourcery.com>
2911
2912 * linux-nat.h (enum resume_kind): New.
2913 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2914 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2915 resume_stop on the new lwp.
25289eb2
PA
2916 (add_lwp): Set last_resume_kind as resume_continue by default.
2917 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2918 (resume_lwp): New, factored out from resume_callback. Also check
2919 for pending status in lp->waitstatus.
2920 (resume_callback): Reimplement.
2921 (resume_clear_callback): Set last_resume_kind as resume_stop.
2922 (resume_set_callback): Set last_resume_kind as resume_continue.
2923 (linux_nat_resume, linux_handle_extended_wait): Set
2924 last_resume_kind.
2925 (running_callback): Also check lp->waitstatus for pending events.
2926 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2927 is resume_step.
2928 (stop_and_resume_callback): Don't re-resume if the core wanted the
2929 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2930 using an invalidated pointer.
2931 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2932 SIGSTOPs if the core wanted the LWP to stop.
2933 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2934 wanted the lwp to stop. If the core wanted the lwp to stop, and
2935 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2936 of TARGET_SIGNAL_STOP.
2937 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2938 here. Instead, signal the lwp, and set the last_resume_kind to
2939 resume_stop.
2940
f687d035
PA
29412011-09-09 Pedro Alves <pedro@codesourcery.com>
2942
2943 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2944 -1 (error), if the lwp exits right after attaching.
2945
bc587a6b
DE
29462011-09-08 Doug Evans <dje@google.com>
2947
63d97a20
DE
2948 * py-cmd.c: Some minor formatting fixes.
2949 (gdbpy_parse_command_name): Rename text arg to name, make const.
2950 All callers updated.
2951 * python-internal.h (gdbpy_parse_command_name): Update.
2952
bc587a6b
DE
2953 * cli/cli-decode.c (add_cmd): Add comment.
2954
08711b9a
JK
29552011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 PR breakpoints/12435
2958 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2959 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2960 * dwarf2read.c (process_full_comp_unit): Initialize
2961 amd64_prologue_line_bug.
2962 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2963
b2e7f004
JK
29642011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2965
2966 Fix TUI screen corruption.
2967 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2968 batch_flag.
2969
8afd712c
JK
29702011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2971
2972 * findvar.c (read_var_value): Never return NULL, throw an error
2973 instead. Update the function comment. State symbol name in the error
2974 messages.
2975 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2976 read_var_value.
2977 * stack.c (print_frame_args): Likewise.
2978 * valops.c (value_of_variable): Likewise.
2979
b99b5f66
JK
29802011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 * stack.c (print_frame_args): New variable except. Wrap
2983 read_var_value and common_val_print into TRY_CATCH.
2984
85bc8cb7
JK
29852011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2986
2987 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2988 caller to value_of_this.
2989 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2990 Twice.
2991 * valops.c (value_of_this): Remove parameter complain and variable ret.
2992 Update function comment. Never return NULL by this code.
2993 (value_of_this_silent): New function.
2994 * value.h (value_of_this): Remove parameter complain.
2995 (value_of_this_silent): New declaration.
2996
ede1849f
YQ
29972011-09-07 Yao Qi <yao@codesourcery.com>
2998
2999 * gdbthread.h (struct thread_info): Remove fields
3000 `stepping_through_solib_after_catch' and
3001 `stepping_through_solib_catchpoints'.
3002 * infrun.c (init_thread_stepping_state): Update.
3003 (process_event_stop_test, currently_stepping): Update.
3004 (currently_stepping_or_nexting_callback): Update.
3005
6aa27652
YQ
30062011-09-07 Yao Qi <yao@codesourcery.com>
3007
3008 * gdbthread.h (struct thread_info): Comment on field
3009 `step_after_step_resume_breakpoint'.
3010
00db5b94
PA
30112011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3012
3013 * remote.c (remote_console_output): Reindent.
3014
861152be
LM
30152011-09-06 Luis Machado <lgustavo@codesourcery.com>
3016
3017 * frame.c (has_stack_frames): Check for currently selected
3018 traceframe.
3019
ab821bc6
PA
30202011-09-06 Pedro Alves <pedro@codesourcery.com>
3021
3022 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3023 (set_async_annotation_level, set_async_prompt, pop_prompt)
3024 (push_prompt, new_async_prompt): Delete declarations.
3025 * top.h (get_prompt, set_prompt): Change prototype.
3026 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3027 declarations.
3028 * top.c (command_loop):
3029 (top_prompt): New global.
3030 (get_prefix, set_prefix, get_suffix, ): Delete.
3031 (get_prompt, set_prompt): Rewrite.
3032 (show_new_async_prompt): Rename to ...
3033 (show_prompt): ... this.
3034 (init_main): Adjust. Don't handle --annotate=2 here.
3035 * event-top.c (new_async_prompt): Delete.
3036 (the_prompts): Delete.
3037 (more_to_come): Make static.
3038 (display_gdb_prompt): Use top_level_prompt() to compute the top
3039 level prompt, and don't notify the before_prompt observers
3040 directly here. Always trick readline into not trying to display
3041 the prompt if sync_execution and displaying the primary prompt.
3042 If displaying a local/secondary prompt, always show it, even if
3043 sync_execution is set.
3044 (change_annotation_level): Delete.
3045 (top_level_prompt): New, based on change_annotation_level.
3046 (push_prompt, pop_prompt): Delete.
3047 (async_disable_stdin): No longer pushes prompt.
3048 (command_line_handler): No longer pushes or pops prompt. If more
3049 input is expected, call display_gdb_prompt with an explicit empty
3050 prompt.
3051 (async_stop_sig): Adjust.
3052 (set_async_annotation_level, set_async_prompt): Delete.
3053 * python/python.c (before_prompt_hook): Adjust.
3054
f1d90504
PA
30552011-09-05 Pedro Alves <pedro@codesourcery.com>
3056
3057 PR cli/13110
3058
3059 * infrun.c (fetch_inferior_event): Check if there's a selected
3060 thread before checking if the selected thread is executing.
3061
0f641c01
PA
30622011-09-05 Pedro Alves <pedro@codesourcery.com>
3063
3064 * inf-loop.c (execute_command): Don't check if the current thread
3065 if running before synchronously waiting for command completion.
3066 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3067 here.
3068 (normal_stop): Call async_enable_stdin here.
3069 * inf-loop.c (inferior_event_handler): Don't call
3070 async_enable_stdin, nor handle "set exec-done-display" here.
3071
30368258 30722011-09-04 Joel Brobecker <brobecker@adacore.com>
3073
3074 GDB 7.3.1 released.
3075
31916278
JB
30762011-09-04 Joel Brobecker <brobecker@adacore.com>
3077
3078 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3079
e8d56f18
JB
30802011-09-04 Joel Brobecker <brobecker@adacore.com>
3081
3082 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3083
5dd05d8c
JK
30842011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3087
7d8e6458 30882011-09-02 Matt Rice <ratmice@gmail.com>
3089
3090 PR gdb/10720
3091 * event-top.c (cli_command_loop): Replace readline setup with
3092 direct call to display_gdb_prompt.
3093 (display_gdb_prompt): Do not call observer mechanism during
3094 synchronous execution.
3095
84636d28
PA
30962011-09-02 Pedro Alves <pedro@codesourcery.com>
3097
3098 * linux-nat.c (in_pid_list_p): New.
3099 (linux_record_stopped_pid): Delete.
3100 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3101 already attached to the LWP. Return an indication if so.
3102 (linux_nat_filter_event): Adjust.
3103 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3104 returning an indication to ignore this thread.
3105
b4a14fd0
PA
31062011-09-02 Pedro Alves <pedro@codesourcery.com>
3107
3108 * top.c: Include interps.h.
3109 (execute_command): If the target can async, but the interpreter is
3110 in sync mode, synchronously wait for the command to finish before
3111 returning.
3112 (execute_command_to_string): Force the interpreter to sync mode.
3113 * infrun.c: Include interps.h.
3114 (fetch_inferior_event): Don't restore the prompt yet if the
3115 interpreter is in sync mode.
3116 * interps.c (interpreter_async): New global.
3117 * interps.h (interpreter_async): Declare.
3118 * inf-loop.c: Include interps.h.
3119 (inferior_event_handler): Don't print the language change or run
3120 breakpoint commands yet if the interpreter in is sync mode.
3121 * main.c (captured_command_loop): Flip the interpreter to async
3122 mode.
3123 * cli/cli-script.c: Include interps.h.
3124 (execute_user_command, while_command, if_command): Force the
3125 interpreter to sync mode.
3126 * python/python.c: Include interps.h.
3127 (python_command, execute_gdb_command): Force the interpreter to
3128 sync mode.
3129
c709acd1
PA
31302011-09-02 Pedro Alves <pedro@codesourcery.com>
3131
3132 * value.c (show_convenience): Catch errors thrown while printing
3133 each internal variable.
3134 * infrun.c (validate_siginfo_access): New function.
3135 (siginfo_value_read, siginfo_value_write): Call it.
3136
9655e943
JK
31372011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 Revert:
3140 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3141 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3142 attribute.
3143
cb457ae2
YQ
31442011-08-29 Yao Qi <yao@codesourcery.com>
3145
3146 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3147 (cmp_name): New.
3148 (enable_break2): Update caller.
3149 * solib-frv.c (bfd_lookup_symbol): Removed.
3150 (cmp_name): New.
3151 (enable_break2): Update caller.
3152 * solib-pa64.c (bfd_lookup_symbol): Removed.
3153 (cmp_name): New.
3154 * solib-svr4.c (bfd_lookup_symbol): Removed.
3155 (cmp_name_and_sec_flags): New.
3156 (enable_break): Update caller.
3157 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3158 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3159 (gdb_bfd_lookup_symbol): New.
3160 * solib.h: Functions declarations.
3161
83d1a36a
YQ
31622011-08-29 Yao Qi <yao@codesourcery.com>
3163
3164 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3165 and solib-dsbt.o.
3166
c04b3e8f
JK
31672011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3168
3169 Fix TUI stepi on code without symbols.
3170 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3171 current PC instead.
3172
cb0fd152
JK
31732011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 Code cleanup.
3176 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3177 and the static keyword.
3178 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3179 Make prefix an array.
3180 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3181 * mi/mi-main.c (get_register): Remove stb initialization and the static
3182 keyword.
3183
91174723
JK
31842011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 Code cleanup - make mi_opt const.
3187 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3188 opts const.
3189 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3190 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3191 (mi_cmd_env_dir): Likewise.
3192 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3193 (mi_cmd_target_file_put): Likewise.
3194 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3195 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3196 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3197 (mi_valid_noargs): Make opts const.
3198 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3199 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3200 (mi_cmd_data_read_memory): Likewise.
3201 (mi_cmd_data_read_memory_bytes): Likewise.
3202 (mi_cmd_data_write_memory): Likewise.
3203
5068b8e8 32042011-08-26 Matt Rice <ratmice@gmail.com>
3205
3206 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3207 bcache_xmalloc, replace bcache_xmalloc with call to
3208 psymbol_bcache_init for psymbol_cache.
3209 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3210
a4f2ce05
JK
32112011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3212
3213 * inf-loop.c (inferior_event_handler): Add exception_print in
3214 INF_EXEC_COMPLETE.
3215
353d1d73
JK
32162011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3219 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3220 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3221 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3222 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3223 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3224 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3225 * infrun.c (fetch_inferior_event): Call
3226 make_bpstat_clear_actions_cleanup.
3227 * top.c (execute_command): New variable cleanup_if_error, call
3228 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3229 * utils.c (do_bpstat_clear_actions_cleanup)
3230 (make_bpstat_clear_actions_cleanup): New functions.
3231
3ced3da4
PA
32322011-08-26 Pedro Alves <pedro@codesourcery.com>
3233
3234 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3235 either the parent or the child forks. Rename a couple locals.
3236
a9f4bb21
PA
32372011-08-26 Pedro Alves <pedro@codesourcery.com>
3238
3239 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3240 library call. Avoid reading the `status' local if all waitpid
3241 calls failed.
3242
e5798bef
PA
32432011-08-26 Pedro Alves <pedro@codesourcery.com>
3244
3245 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3246 opening /proc/PID/task always succeeds.
3247
edb2aadf
AR
32482011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3249
3250 * linespec.c (symtab_from_filename): Check for the end of string.
3251
0d932b2f
MK
32522011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3253
3254 PR mi/11912
3255 * varobj.c (cplus_describe_child): Add the keyword
3256 'class' to the output of the method when dealing
3257 with a cast to a base class.
3258
e93ca019
JK
32592011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3260
3261 No functionality change.
3262 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3263 function comment a reference, new variables tp and bs, move here code
3264 from throw_exception.
3265 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3266 describe it in the comment.
3267 * exceptions.c (throw_exception): Remove variable tp, move the code for
3268 bpstat_clear_actions to bpstat_clear_actions.
3269
13da1c97
LM
32702011-08-24 Luis Machado <lgustavo@codesourcery.com>
3271
3272 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3273 * linux-nat.c: Include linux-procfs.h.
3274 (linux_proc_get_tgid): Move to ...
3275 * common/linux-procfs.c: ... here. New file.
3276 * common/linux-procfs.h: New file.
3277 * linux-thread-db.c: Include linux-procfs.h.
3278 * Makefile.in: Update dependencies.
3279 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3280 * config/arm/linux.mh: Likewise.
3281 * config/i386/linux.mh: Likewise.
3282 * config/i386/linux64.mh: Likewise.
3283 * config/ia64/linux.mh: Likewise.
3284 * config/m32r/linux.mh: Likewise.
3285 * config/m68k/linux.mh: Likewise.
3286 * config/mips/linux.mh: Likewise.
3287 * config/pa/linux.mh: Likewise.
3288 * config/pa/linux.mh: Likewise.
3289 * config/powerpc/linux.mh: Likewise.
3290 * config/powerpc/ppc64-linux.mh: Likewise.
3291 * config/powerpc/spu-linux.mh: Likewise.
3292 * config/sparc/linux.mh: Likewise.
3293 * config/sparc/linux64.mh: Likewise.
3294 * config/xtensa/linux.mh: Likewise.
3295
4e5c165d
HZ
32962011-08-24 Hui Zhu <teawater@gmail.com>
3297
3298 * tracepoint.c (cond_string_is_same): New function.
3299 (find_matching_tracepoint): Add condition check
3300 by cond_string_is_same.
3301
6e2f5b22
JK
33022011-08-23 Josh Matthews <josh@joshmatthews.net>
3303
3304 Fix build error in Darwin port.
3305 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3306
abf85f46
JK
33072011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3308
3309 Code cleanup.
3310 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3311 (command_line_is_silent): New function.
3312 (bpstat_do_actions_1): No longer use commands_left, use
3313 command_line_is_silent for commands.
3314 (bpstat_alloc): Remove clearing of commands_left.
3315 (bpstat_stop_status): Remove initialization of commands_left, use
3316 command_line_is_silent.
3317 * breakpoint.h (struct bpstats): Remove commands_left.
3318
3a93a0c2
KS
33192011-08-18 Keith Seitz <keiths@redhat.com>
3320
3321 PR c++/12266
3322 * cp-name-parser.y (struct demangle_info): Remove unused
3323 member PREV.
3324 (d_grab): Likewise.
3325 (allocate_info): Change return type to struct demangle_info *.
3326 Always allocate a new demangle_info.
3327 Remove unused PREV pointer.
3328 (cp_new_demangle_parse_info): New function.
3329 (cp_demangled_name_parse_free): New function.
3330 (do_demangled_name_parse_free_cleanup): New function.
3331 (make_cleanup_cp_demangled_name_parse_free): New function.
3332 (cp_demangled_name_to_comp): Change return type to
3333 struct demangle_parse_info *.
3334 Allocate a new storage for each call.
3335 (main): Update usage for cp_demangled_name_to_comp
3336 API change.
3337 * cp-support.h (struct demangle_parse_info): New structure.
3338 (cp_demangled_name_to_comp): Update API change for
3339 return type.
3340 (cp_new_demangle_parse_info): Declare.
3341 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3342 (cp_demangled_name_parse_free): Declare.
3343 * cp-support.c (cp_canonicalize_string): Update API
3344 change for cp_demangled_name_to_comp.
3345 (mangled_name_to_comp): Likewise.
3346 Return struct demangle_parse_info, too.
3347 (cp_class_name_from_physname): Update mangled_name_to_comp
3348 API change.
3349 (method_name_from_physname): Likewise.
3350 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3351 (cp_remove_params): Likewise.
3352 * python/py-type.c (typy_legacy_template_argument): Likewise.
3353
3354 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3355 (cp_merge_demangle_parse_infos): Declare.
3356 * cp-support.c (ignore_typedefs): New file global.
3357 (copy_string_to_obstack): New function.
3358 (inspect_type): New function.
3359 (replace_typedefs): New function.
3360 (replace_typedefs_qualified_name): New function.
3361 (cp_canonicalize_string_no_typedefs): New function.
3362 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3363 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3364 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3365 instead of cp_canonicalize_string.
3366 (find_method): Likewise.
3367 (decode_compound): Before looking up the name, call
3368 cp_canonicalize_string_no_typedefs.
3369 (decode_variable): Likewise.
3370
fa3a4f15
PM
33712011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3372 Tom Tromey <tromey@redhat.com>
3373 Matt Rice <ratmice@gmail.com>
3374
3375 * python/lib/gdb/prompt.py: New file.
3376 * python/lib/gdb/command/prompt.py: New file.
3377 * NEWS: Document set extended-prompt and gdb.prompt library
3378
85661b1e
YQ
33792011-08-16 Yao Qi <yao@codesourcery.com>
3380
3381 * tic6x-linux-tdep.c: Move const arrays definition from here...
3382 * tic6x-tdep.c: to here ...
3383
11315641
YQ
33842011-08-14 Yao Qi <yao@codesourcery.com>
3385
3386 * NEWS: New port to Texas Instruments TMS320C6x.
3387
8cd64e00
YQ
33882011-08-14 Andrew Jenner <andrew@codesourcery.com>
3389 Bernd Schmidt <bernds@codesourcery.com>
3390 Yao Qi <yao@codesourcery.com>
3391
3392 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3393 * solib-dsbt.c: New file. Support DSBT shared object.
3394 * tic6x-linux-tdep.c: New file.
3395 * tic6x-tdep.c: New file.
3396 * tic6x-tdep.h: New file.
3397
78d85199
YQ
33982011-08-14 Andrew Stubbs <ams@codesourcery.com>
3399 Yao Qi <yao@codesourcery.com>
3400
3401 * remote.c (PACKET_qXfer_fdpic): New enum value.
3402 (remote_protocol_features): Add qXfer:fdpic:read packet.
3403 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3404 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3405 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3406
224bbe49
YQ
34072011-08-14 Yao Qi <yao@codesourcery.com>
3408
3409 Target description for tic6x.
3410 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3411 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3412 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3413 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3414 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3415 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3416 * features/tic6x-c64xp-linux.xml: New.
3417 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3418 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3419 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3420 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3421 * regformats/tic6x-c64xp.dat,
3422 regformats/tic6x-c62x-linux.dat: Generated.
3423 * regformats/tic6x-c64x-linux.dat,
3424 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3425 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3426 features/tic6x-*.c files.
3427 Add regformats/tic6x-*.dat files.
3428
457e09f0
DE
34292011-08-12 Doug Evans <dje@google.com>
3430
3431 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3432 * python/py-symbol.c (sympy_get_type): New function.
3433 (symbol_object_getset): Add "type".
3434
d20c1c3f
PA
34352011-08-12 Pedro Alves <pedro@codesourcery.com>
3436
3437 PR tui/13073
3438
3439 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3440 empty name.
3441 (tui_show_register_group): Don't store a byte buffer in the data
3442 element's value.
3443 (tui_register_format): Skip registers with an empty name.
3444 (tui_get_register): Store a struct value in the data element's
3445 value field instead of a byte buffer holding the raw register
3446 contents. Account for optimized-out and unavailable registers
3447 when comparing register contents.
3448
9d8fa392
PA
34492011-08-09 Pedro Alves <pedro@codesourcery.com>
3450
3451 * printcmd.c (current_display_number): Update comment.
3452 (disable_current_display_cleanup): Delete.
3453 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3454 catch errors thrown while evaluating and printing the display.
3455
401a70b8
TT
34562011-08-09 Tom Tromey <tromey@redhat.com>
3457
3458 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3459
7f86f058
PA
34602011-08-09 Pedro Alves <pedro@codesourcery.com>
3461
94b71cca 3462 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3463 * maint.c (maintenance_command): Ditto.
3464 * somread.c (som_symtab_read): Ditto.
3465 * solib.c (solib_find, solib_map_sections, update_solib_list)
3466 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3467 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3468 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3469 * solib-irix.c (locate_base, disable_break, enable_break)
3470 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3471 (irix_current_sos, irix_open_symbol_file_object)
3472 (irix_special_symbol_handling): Ditto.
3473 * solib-sunos.c (locate_base, first_link_map_member)
3474 (sunos_current_sos, disable_break, enable_break)
3475 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3476 Ditto.
3477 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3478 (open_symbol_file_object, svr4_current_sos, enable_break)
3479 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3480 Ditto.
3481 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3482 (frv_current_sos, enable_break, frv_special_symbol_handling)
3483 (frv_solib_create_inferior_hook): Ditto.
3484 * solist.h (struct target_so_ops): Extend the comments of the
3485 special_symbol_handling, current_sos and open_symbol_file_object
3486 methods.
3487
5e239b84
PM
34882011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3489
3490 * python/lib/gdb/__init__.py: Auto-load files in command and
3491 function directories.
3492 * python/python.c (finish_python_initialization): Use
3493 os.path.join.
3494 * python/lib/gdb/command/pretty_printers.py: Self register
3495 command.
3496 * NEWS: Document auto-loading.
3497
b6cede78
JK
34982011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3499
3500 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3501 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3502 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3503
29d0bb3d
TT
35042011-08-08 Tom Tromey <tromey@redhat.com>
3505
3506 * breakpoint.c (clean_up_filters): Remove.
3507 (catch_syscall_split_args): Use VEC_cleanup.
3508
2f7fb8e4
JK
35092011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3510
3511 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3512 (main): Uncomment "Demangling error\n".
3513
d6c10e95
PP
35142011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3515
3516 * solib-target.c (segment_attributes): Make them static.
3517 (section_attributes, library_children, library_attributes): Likewise.
3518 (library_list_children, library_list_attributes): Likesise.
3519 (library_list_elements): Likewise.
3520
af6e93b2
PA
35212011-08-05 Pedro Alves <pedro@codesourcery.com>
3522
3523 * exceptions.c (throw_exception): Don't disable the current
3524 display.
3525 * printcmd.c (disable_current_display_cleanup): New function.
3526 (do_one_display): Install a cleanup to disable the current display
3527 if doing the display throws.
3528
6a1b1664
EZ
35292011-08-05 Eli Zaretskii <eliz@gnu.org>
3530
3531 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3532 initialization of the tp_new member to the corresponding
3533 gdbpy_initialize_* function.
3534 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3535 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3536 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3537 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3538 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3539
31a0ae49
JK
35402011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3541
3542 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3543 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3544 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3545 references to current_uiout.
3546
e0dd0826
PA
35472011-08-04 Pedro Alves <pedro@codesourcery.com>
3548
3549 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3550 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3551 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3552 * top.c (gdb_readline_wrapper): Adjust.
3553 * tui/tui-interp.c (tui_command_loop):
3554 (_initialize_tui_interp): Don't install it.
3555
79a45e25
PA
35562011-08-04 Pedro Alves <pedro@codesourcery.com>
3557
3558 * ui-out.h (uiout): Rename to ...
3559 (current_uiout): ... this.
3560 * ui-out.c (uiout): Rename to ...
3561 (current_uiout): ... this.
3562 * ada-lang.c (print_it_exception, print_one_exception)
3563 (print_mention_exception): Adjust.
3564 * breakpoint.c (watchpoint_check): Adjust.
3565 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3566 (default_collect_info, watchpoints_info, print_one_catch_fork)
3567 (print_one_catch_vfork, print_one_catch_syscall)
3568 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3569 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3570 (print_it_watchpoint, print_mention_watchpoint)
3571 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3572 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3573 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3574 (bkpt_print_mention, momentary_bkpt_print_it)
3575 (tracepoint_print_mention, update_static_tracepoint)
3576 (tracepoints_info, save_breakpoints): Adjust.
3577 * cli-out.c (field_separator): Adjust.
3578 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3579 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3580 * frame.c (get_current_frame): Adjust.
3581 * infcmd.c (run_command_1, print_return_value): Adjust.
3582 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3583 * infrun.c (print_end_stepping_range_reason): Adjust.
3584 (print_signal_exited_reason, print_exited_reason): Adjust.
3585 (print_signal_received_reason, print_no_history_reason): Adjust.
3586 * interps.c (interp_set): Adjust.
3587 * osdata.c (info_osdata_command): Adjust.
3588 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3589 * remote-fileio.c (remote_fileio_request): Adjust.
3590 * remote.c (show_remote_cmd): Adjust.
3591 * solib.c (info_sharedlibrary_command): Adjust.
3592 * source.c (print_source_lines_base): Adjust.
3593 * stack.c (print_stack_frame): Adjust.
3594 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3595 * symfile-mem.c (add_vsyscall_page): Adjust.
3596 * symfile.c (load_progress, generic_load)
3597 (print_transfer_performance): Adjust.
3598 * thread.c (info_threads_command, restore_selected_frame)
3599 (thread_command): Adjust.
3600 * top.c (make_cleanup_restore_ui_file): Adjust.
3601 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3602 (print_one_static_tracepoint_marker): Adjust.
3603 * cli/cli-cmds.c (print_disassembly): Adjust.
3604 * cli/cli-decode.c (print_doc_line): Adjust.
3605 * cli/cli-interp.c (safe_execute_command): Adjust.
3606 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3607 (handle_redirections): Adjust.
3608 * cli/cli-script.c (show_user_1): Adjust.
3609 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3610 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3611 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3612 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3613 (mi_cmd_env_dir): Adjust.
3614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3615 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3616 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3617 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3618 (list_args_or_locals): Adjust.
3619 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3620 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3621 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3622 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3623 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3624 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3625 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3626 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3627 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3628 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3629 (list_available_thread_groups, mi_cmd_list_thread_groups)
3630 (mi_cmd_data_list_register_names)
3631 (mi_cmd_data_list_changed_registers)
3632 (mi_cmd_data_list_register_values, get_register)
3633 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3634 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3635 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3636 (mi_execute_command, mi_load_progress): Adjust.
3637 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3638 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3639 Adjust.
3640 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3641 * tui/tui-interp.c (tui_command_loop): Adjust.
3642 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3643
f9679975
PA
36442011-08-04 Pedro Alves <pedro@codesourcery.com>
3645
3646 * exceptions.c (struct catcher): Remove saved_uiout field.
3647 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3648 no longer save/resvore the global ui_out builder.
3649 (catch_exceptions_with_msg): Save/override/restore the global
3650 ui_out builder manually instead of relying on TRY_CATCH to do it.
3651 (catch_errors): Save/restore the global ui_out builder manually
3652 instead of relying on TRY_CATCH to do it.
3653 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3654 parameter.
3655 (TRY_CATCH): Adjust.
3656 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3657 the global ui_out builder manually instead of relying on TRY_CATCH
3658 to do it.
3659
934709f0
PW
36602011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3661
3662 * breakpoint.c (update_global_location_list): Ensure
3663 invariant 'first loc marked not duplicated and inserted,
3664 following locs marked duplicated/not inserted' is respected
3665 for multiple locations at the same address.
3666 (unduplicated_should_be_inserted) New function.
3667 (swap_insertion) New function.
3668
2421fe6f
JK
36692011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3670
3671 * stack.c (print_frame_arguments_choices): Comment typo fix.
3672
3fbb6ffa
TJB
36732011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3674
3675 Revert:
3676 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3677 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3678 argument. Update callers.
3679
fbe12357
PP
36802011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3681
3682 PR gdb/13045
3683 * doublest.c (convert_doublest_to_floatformat): Pass correct
3684 mantissa length to put_field.
3685
b1d288d3
JK
36862011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3687
3688 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3689 exception_print code path.
3690 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3691 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3692 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3693
311b5970
JK
36942011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3695
3696 Code cleanup.
3697 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3698 Remove, merge them into ...
3699 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3700 variable args and its initialization.
3701 (struct print_args_args, print_args_stub): Remove, merge them into
3702 print_frame.
3703 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3704 them into ...
3705 (do_gdb_disassembly): ... here. Remove variable args and its
3706 initialization.
3707 (print_frame): Remove variable args and its initialization, new
3708 variable gdbarch and numargs (from print_args_stub), inline here
3709 print_args_stub with a TRY_CATCH.
3710 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3711 them into ...
3712 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 3713 New variable e, remove variable btargs and its initialization.
311b5970 3714
484a26a8
TG
37152011-08-01 Tristan Gingold <gingold@adacore.com>
3716
3717 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3718
c30eee59
TJB
37192011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3720
3721 * breakpoint.c (insert_bp_location): Document return value.
3722 (insert_breakpoint_locations): Fix documentation.
3723 (remove_breakpoints): Add documentation.
3724
f116073b
TJB
37252011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3726
3727 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3728 argument. Update callers.
3729
65aa373f
JK
37302011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3731
3732 * stack.c (print_frame_info): Comment typo fix.
3733
a50242fb
SA
37342011-07-29 Sterling Augustine <saugustine@google.com>
3735
3736 * MAINTAINERS (Write After Approval): Add myself to the list.
3737
267f6504
TT
37382011-07-29 Tom Tromey <tromey@redhat.com>
3739
3740 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3741 (library_list_start_segment): Update.
3742 (library_list_start_section): Update.
3743
00bd41d6
PM
37442011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3745
3746 * varobj.c (value_get_print_value): Move hint check later into the
3747 function. Comment function. Free thevalue before reusing it.
3748
18a46dbe
JK
37492011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 Pedro Alves <pedro@codesourcery.com>
3751
3752 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3753 value_one.
3754 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3755 Assert the result kind.
3756 * value.h (value_one): Remove parameter lv.
3757
bb7da2bf
JK
37582011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 Fix crash on lval_computed values.
3761 * valops.c (value_zero): Use not_lval for lval_computed.
3762
2d5213f8
TT
37632011-07-27 Tom Tromey <tromey@redhat.com>
3764
3765 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3766 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3767
11081198
JK
37682011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3769
3770 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3771 "ptype" by their typedefs difference.
3772
3c6e0cb3
JK
37732011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 * dwarf2expr.c (ctx_no_read_reg): New function.
3776 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3777 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3778 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3779 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3780
523f3620
JK
37812011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3784 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3785 file.
3786 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3787 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3788 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3789 (ctx_no_get_base_type): Move the functions here.
3790 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3791 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3792 (ctx_no_get_base_type): New declarations.
3793
24d3216f
TT
37942011-07-27 Tom Tromey <tromey@redhat.com>
3795
3796 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3797 entries.
3798 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3799 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3800
5005c8a9
PP
38012011-07-26 Sterling Augustine <saugustine@google.com>
3802
3803 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3804 ULONGEST.
3805 (dump_bfd_file): Likewise.
3806
480a3f21
PW
38072011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3808
3809 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3810 (remote_hw_watchpoint_length_limit): New variable.
3811 (_initialize_remote) add set,show cmds for this new variable.
3812 * gdb.texinfo: document these new commands.
3813 * NEWS: Mention these new commands.
3814
efa80663
PA
38152011-07-26 Pedro Alves <pedro@codesourcery.com>
3816
3817 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3818 true for software watchpoints.
3819
dbdaa232 38202011-07-26 Joel Brobecker <brobecker@adacore.com>
3821
3822 GDB 7.3 released.
3823
cf2c3c16
TT
38242011-07-26 Tom Tromey <tromey@redhat.com>
3825
3826 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3827 * dwarf2read.c (read_indirect_string_at_offset): New function.
3828 (read_indirect_string): Use it.
3829 (dwarf_decode_macro_bytes): New function, taken from
3830 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3831 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3832 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3833 New functions.
3834 (struct dwarf2_per_objfile) <macro>: New field.
3835 (dwarf2_elf_names): Add .debug_macro.
3836 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3837 (dwarf2_locate_sections): Handle new section.
3838 (read_file_scope): Handle DW_AT_GNU_macros.
3839 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3840
1a532630
PP
38412011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3842
3843 * NEWS: Mention dcache configuration.
3844 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3845 (dcache_size, dcache_line_size): New variables.
3846 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3847 (struct dcache_block): Make it expandable.
3848 (struct dcache_struct): New field.
3849 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3850 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3851 (dcache_poke_byte, dcache_print_line): Adjust.
3852 (set_dcache_size, set_dcache_line_size): New functions.
3853 (set_dcache_command, show_dcache_command): New functions.
3854 (_initialize_dcache): Add new commands.
3855
2eff07b3
PP
38562011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3857
3858 * progspace.h (struct program_space): Add solib_add_generation.
3859 * infcmd.c (post_create_inferior): Only call solib_add if not
3860 already done.
3861 * solib.c (solib_add): Increment solib_add_generation.
3862
543305c9
JK
38632011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 Fix implicit pointer offsets.
3866 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3867 ptr.OFFSET.
3868
c0a91b2b
TT
38692011-07-25 Tom Tromey <tromey@redhat.com>
3870
3871 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3872 const.
3873 (ada_exception_sal): Make 'ops' const.
3874 (ada_decode_exception_location): Likewise.
3875 (ada_decode_assert_location): Likewise.
3876 (catch_assert_command): Update.
3877 (catch_ada_exception_command): Update.
3878 (create_ada_exception_catchpoint): Make 'ops' const.
3879 * breakpoint.c (set_raw_breakpoint_without_location)
3880 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3881 const.
3882 (create_internal_breakpoint): Update.
3883 (init_raw_breakpoint_without_location): Make 'ops' const.
3884 (init_raw_breakpoint, init_catchpoint)
3885 (create_fork_vfork_event_catchpoint)
3886 (create_syscall_event_catchpoint, init_breakpoint_sal)
3887 (create_breakpoint_sal, create_breakpoints_sal)
3888 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3889 * breakpoint.h (struct breakpoint) <ops>: Now const.
3890 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3891 const.
3892
6cb9b55b
PP
38932011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3894
3895 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3896
d9b3f62e
PA
38972011-07-25 Pedro Alves <pedro@codesourcery.com>
3898
3899 * breakpoint.h (print_recreate_thread): Declare.
3900 (struct breakpoint): Move step_count, pass_count,
3901 number_on_target, static_trace_marker_id,
3902 static_trace_marker_id_idx ...
3903 (struct tracepoint): ... to this new struct.
3904 (get_tracepoint, get_tracepoint_by_number_on_target)
3905 (get_tracepoint_by_number): Change return type to struct
3906 tracepoint pointer.
3907 * breakpoint.c (is_tracepoint_type): New, factored out from
3908 is_tracepoint.
3909 (is_tracepoint): Adjust.
3910 (print_one_breakpoint_location): Cast to struct tracepoint as
3911 necessary, and adjust.
3912 (print_recreate_catch_fork, print_recreate_catch_vfork)
3913 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3914 print_recreate_thread.
3915 (init_breakpoint_sal): New, factored out from
3916 create_breakpoint_sal.
3917 (create_breakpoint_sal): Reimplement.
3918 (create_breakpoint): Allocate a struct tracecepoint if the caller
3919 wanted a tracepoint. Use init_breakpoint_sal and
3920 install_breakpoint.
3921 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3922 (print_recreate_masked_watchpoint)
3923 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3924 (tracepoint_print_one_detail): Adjust.
3925 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3926 Dump the pass count here.
3927 (update_static_tracepoint): Adjust.
3928 (addr_string_to_sals): Adjust.
3929 (create_tracepoint_from_upload): Adjust. Change return type to
3930 struct tracepoint pointer.
3931 (trace_pass_set_count): Change parameter type to struct tracepoint
3932 pointer, and adjust.
3933 (trace_pass_command): Adjust.
3934 (get_tracepoint, get_tracepoint_by_number_on_target)
3935 (get_tracepoint_by_number): Change return type to struct
3936 tracepoint pointer, and adjust.
3937 (print_recreate_thread): New, factored out from save_breakpoints.
3938 (save_breakpoints): Don't print thread and task and passcount
3939 recreation here.
3940 * remote.c (remote_download_tracepoint): Adjust.
3941 * tracepoint.c (trace_actions_command, validate_actionline)
3942 (start_tracing, tfind_1, trace_find_tracepoint_command)
3943 (trace_dump_command): Adjust.
3944 (find_matching_tracepoint): Change return type to struct
3945 tracepoint pointer, and adjust.
3946 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3947 (tfile_trace_find, tfile_fetch_registers): Adjust.
3948 * tracepoint.h (create_tracepoint_from_upload): Change return type
3949 to struct tracepoint pointer.
3950 * ada-lang.c (print_recreate_exception): Call
3951 print_recreate_thread.
3952 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3953
3a5c3e22
PA
39542011-07-25 Pedro Alves <pedro@codesourcery.com>
3955
3956 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3957 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3958 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3959 watchpoint_thread, watchpoint_triggered ...
3960 (struct watchpoint): ... to this new struct.
3961 (is_watchpoint): Declare.
3962 (install_breakpoint): Add new `internal' parameter.
3963 * breakpoint.c (is_watchpoint): Delete declaration.
3964 (set_breakpoint_condition): Handle watchpoints.
3965 (is_watchpoint): Make public.
3966 (watchpoint_in_thread_scope): Change parameter type to struct
3967 watchpoint.
3968 (watchpoint_del_at_next_stop): Change parameter type to struct
3969 watchpoint. Remove assertion. Adjust.
3970 (update_watchpoint): Ditto.
3971 (insert_breakpoints, breakpoint_init_inferior)
3972 (watchpoints_triggered, watchpoint_check)
3973 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3974 (bpstat_stop_status, print_one_breakpoint_location)
3975 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3976 to struct watchpoint as necessary, and adjust.
3977 (install_breakpoint): Add `internal' argument. If true, don't
3978 mention the new breakpoint. Use set_breakpoint_number.
3979 (create_fork_vfork_event_catchpoint)
3980 (create_syscall_event_catchpoint): Adjust.
3981 (dtor_watchpoint): New.
3982 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3983 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3984 (print_it_watchpoint, print_mention_watchpoint)
3985 (print_recreate_watchpoint, insert_masked_watchpoint)
3986 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3987 (print_one_detail_masked_watchpoint)
3988 (print_mention_masked_watchpoint)
3989 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3990 necessary, and adjust.
3991 (watch_command_1): Allocate and initialize a struct watchpoint
3992 instead of a struct breakpoint. Use install_breakpoint.
3993 (catch_exec_command_1): Adjust.
3994 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3995 fields.
3996 (delete_breakpoint, enable_breakpoint_disp)
3997 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3998 as necessary, and adjust.
3999 (initialize_breakpoint_ops): Install dtor_watchpoint as
4000 watchpoints' dtor method.
4001 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4002 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4003 to struct watchpoint as necessary, and adjust.
4004
2060206e
PA
40052011-07-25 Pedro Alves <pedro@codesourcery.com>
4006
4007 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4008 the the base class ops table.
4009 (catch_exception_breakpoint_ops)
4010 (catch_exception_unhandled_breakpoint_ops)
4011 (catch_assert_breakpoint_ops): Don't statically initialize.
4012 (initialize_ada_catchpoint_ops): New.
4013 (_initialize_ada_language): Call it.
4014 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4015 (bkpt_breakpoint_ops): Forward declare.
4016 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4017 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4018 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4019 (masked_watchpoint_breakpoint_ops)
4020 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4021 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4022 base class ops table.
4023 (null_re_set, null_check_status, null_works_in_software_mode)
4024 (null_resources_needed, null_print_one_detail): Delete.
4025 (bkpt_dtor): Rename to ...
4026 (base_breakpoint_dtor): ... this. Make static.
4027 (bkpt_allocate_location): Rename to ...
4028 (base_breakpoint_allocate_location): ... this. Make static.
4029 (base_breakpoint_re_set): New.
4030 (internal_error_pure_virtual_called): New.
4031 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4032 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4033 (base_breakpoint_works_in_software_mode)
4034 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4035 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4036 (base_breakpoint_print_recreate): New functions.
4037 (base_breakpoint_ops): New global.
4038 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4039 (bkpt_breakpoint_hit): Make static.
4040 (bkpt_check_status): Delete.
4041 (bkpt_resources_needed): Make static.
4042 (bkpt_works_in_software_mode): Delete.
4043 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4044 static.
4045 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4046 (momentary_breakpoint_ops): Don't statically initialize.
4047 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4048 Delete.
4049 (tracepoint_insert_location, tracepoint_remove_location)
4050 (tracepoint_check_status, tracepoint_works_in_software_mode)
4051 (tracepoint_print_it): Delete.
4052 (tracepoint_breakpoint_ops): Don't statically initialize.
4053 (initialize_breakpoint_ops): New.
4054 (_initialize_breakpoint): Call it.
4055 * breakpoint.h (null_re_set, null_works_in_software_mode)
4056 (null_resources_needed, null_check_status, null_print_one_detail):
4057 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4058 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4059 (bkpt_check_status, bkpt_resources_needed)
4060 (bkpt_works_in_software_mode, bkpt_print_it)
4061 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4062 Delete declarations.
4063 (initialize_breakpoint_ops): Declare.
4064
001c8c33
PA
40652011-07-25 Pedro Alves <pedro@codesourcery.com>
4066
4067 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4068 (momentary_bkpt_print_it): Simplify.
4069
06edf0c0
PA
40702011-07-25 Pedro Alves <pedro@codesourcery.com>
4071
4072 Split internal, momentary and user breakpoints breakpoint_ops
4073 tables.
4074
4075 * breakpoint.c (internal_breakpoint_ops)
4076 (momentary_breakpoint_ops): Forward declare.
4077 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4078 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4079 (create_overlay_event_breakpoint)
4080 (create_std_terminate_master_breakpoint)
4081 (create_exception_master_breakpoint): Create breakpoints with
4082 internal_breakpoint_ops vtable.
4083 (set_longjmp_breakpoint): Create momentary breakpoints with
4084 momentary_breakpoint_ops vtable, using
4085 momentary_breakpoint_from_master.
4086 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4087 (create_solib_event_breakpoint): Create breakpoints with
4088 internal_breakpoint_ops vtable.
4089 (set_momentary_breakpoint): Create breakpoints with
4090 momentary_breakpoint_ops vtable.
4091 (momentary_breakpoint_from_master): New, factored out from
4092 clone_momentary_breakpoint.
4093 (clone_momentary_breakpoint): Adjust.
4094 (watch_command_1): Create scope breakpoints with
4095 momentary_breakpoint_ops vtable.
4096 (bkpt_re_set): Remove handling of internal and momentary
4097 breakpoints.
4098 (bkpt_print_mention, bkpt_print_recreate): New.
4099 (bkpt_breakpoint_ops): Adjust.
4100 (internal_bkpt_re_set, internal_bkpt_check_status)
4101 (internal_bkpt_print_it, internal_bkpt_print_mention)
4102 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4103 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4104 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4105 (momentary_bkpt_print_recreate): New.
4106 (momentary_breakpoint_ops): New.
4107
348d480f
PA
41082011-07-25 Pedro Alves <pedro@codesourcery.com>
4109
4110 Implement most breakpoint_ops methods for all breakpoint types,
4111 and move the default handlings to the proper callbacks.
4112
4113 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4114 works_in_software_mode method.
4115 (insert_bp_location): Go through breakpoint_ops->insert_location
4116 for software and hardware watchpoints.
4117 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4118 breakpoint_ops.
4119 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4120 for software and hardware watchpoints.
4121 (print_it_typical): Delete.
4122 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4123 method.
4124 (watchpoint_check): Adjust comment.
4125 (bpstat_check_location): Simply always call the breakpoint's
4126 breakpoint_hit method.
4127 (bpstat_stop_status): Always call the breakpoint's check_status
4128 method. Remove special cases for watchpoints and internal event
4129 breakpoints from here (moved to the check_status implementations).
4130 (print_one_breakpoint_location): Assume b->ops is never NULL.
4131 Remove static tracepoint marker id printing from here (moved to
4132 the print_one_detail callback implementation of tracepoints).
4133 (init_bp_location): Assert OPS is never NULL.
4134 (allocate_bp_location): Always call the breakpoint's
4135 allocate_location method, and remove the default code from here.
4136 (free_bp_location): Always call the location's dtor method, and
4137 remove the default code from here.
4138 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4139 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4140 parameter. Pass it down.
4141 (set_raw_breakpoint): Ditto.
4142 (print_it_catch_fork): Adjust to take a bpstat as argument.
4143 (catch_fork_breakpoint_ops): Install methods.
4144 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4145 (catch_vfork_breakpoint_ops): Install methods.
4146 (dtor_catch_syscall): Call the base dtor.
4147 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4148 (catch_syscall_breakpoint_ops): Install methods.
4149 (dtor_catch_exec): Call the base dtor.
4150 (print_it_catch_exec): Adjust to take a bpstat as argument.
4151 (catch_exec_breakpoint_ops): Install methods.
4152 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4153 the breakpoint's resources_needed method, and remove the default
4154 code from here.
4155 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4156 breakpoint_ops.
4157 (clone_momentary_breakpoint): Clone the original's ops.
4158 (mention): Always call the breakpoint's print_mention method, and
4159 remove the default code from here.
4160 (create_breakpoint_sal): Adjust to pass the ops to
4161 set_raw_breakpoint rather than setting it manually.
4162 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4163 ops to set_raw_breakpoint_without_location rather than setting it
4164 manually.
4165 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4166 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4167 (ranged_breakpoint_ops): Install methods.
4168 (break_range_command): Adjust to pass the ops to
4169 set_raw_breakpoint rather than setting it manually.
4170 (re_set_watchpoint, breakpoint_hit_watchpoint)
4171 (check_status_watchpoint, resources_needed_watchpoint)
4172 (works_in_software_mode_watchpoint, print_it_watchpoint)
4173 (print_mention_watchpoint, print_recreate_watchpoint): New
4174 functions.
4175 (watchpoint_breakpoint_ops): Install new methods.
4176 (print_it_masked_watchpoint): New function.
4177 (masked_watchpoint_breakpoint_ops): Install new methods.
4178 (watch_command_1): Adjust to pass the right breakpoint_ops to
4179 set_raw_breakpoint_without_location rather than setting it
4180 manually later. Record the current pspace.
4181 (print_it_exception_catchpoint): Adjust to take a bpstat as
4182 argument.
4183 (gnu_v3_exception_catchpoint_ops): Install new methods.
4184 (say_where): New function.
4185 (null_re_set, null_check_status, null_works_in_software_mode)
4186 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4187 New functions.
4188 (bp_location_ops): New global.
4189 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4190 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4191 (bkpt_check_status, bkpt_resources_needed)
4192 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4193 (bkpt_print_recreate): New functions.
4194 (bkpt_breakpoint_ops): New global.
4195 (tracepoint_re_set, tracepoint_insert_location)
4196 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4197 (tracepoint_check_status, tracepoint_works_in_software_mode)
4198 (tracepoint_print_it, tracepoint_print_one_detail)
4199 (tracepoint_print_mention, tracepoint_print_recreate): New
4200 functions.
4201 (tracepoint_breakpoint_ops): New global.
4202 (delete_breakpoint): Always call the breakpoint's dtor method, and
4203 remove the default handling from here.
4204 (breakpoint_re_set_default): Make static.
4205 (breakpoint_re_set_one): Always call the breakpoints re_set
4206 method, and remove the default handling from here.
4207 (trace_command, ftrace_command, strace_command)
4208 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4209 to create_breakpoint.
4210 (save_breakpoints): Always call the breakpoint's print_recreate
4211 method, and remove the default handling from here.
4212
4213 * ada-lang.c (dtor_exception): Call the base dtor.
4214 (re_set_exception): Call the base method.
4215 (print_it_exception, print_it_catch_exception): Adjust to take a
4216 bpstat as argument.
4217 (catch_exception_breakpoint_ops): Install methods.
4218 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4219 argument.
4220 (catch_exception_unhandled_breakpoint_ops): Install methods.
4221 (print_it_catch_assert): Adjust to take a bpstat as argument.
4222 (catch_assert_breakpoint_ops): Install methods.
4223
4224 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4225 to take a bpstat as argument.
4226 (enum print_stop_action): Add describing comments to each enum
4227 value.
4228 (breakpoint_re_set_default): Delete declaration.
4229 (null_re_set, null_works_in_software_mode, null_resources_needed)
4230 (null_check_status, null_print_one_detail): Declare.
4231 (bkpt_breakpoint_ops): Declare.
4232 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4233 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4234 (bkpt_check_status, bkpt_resources_needed)
4235 (bkpt_works_in_software_mode, bkpt_print_it)
4236 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4237 Declare.
4238
4239 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4240 bkpt_breakpoint_ops.
4241 * python/py-breakpoint.c (bppy_init): Ditto.
4242
be8f8133
PW
42432011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4244
4245 * MAINTAINERS (Write After Approval): Add myself to the list.
4246
3807f613
PP
42472011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4248
4249 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4250
1ced966e
PA
42512011-07-22 Pedro Alves <pedro@codesourcery.com>
4252
4253 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4254 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4255 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4256 adjust.
4257 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4258 (struct i386_debug_reg_state): New.
4259 (i386_init_dregs): New.
4260 (dr_mirror): New.
4261 (i386_cleanup_dregs): Use i386_init_dregs.
4262 (i386_show_dr): Add state parameter and adjust.
4263 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4264 the inferior here.
4265 (i386_remove_aligned_watchpoint): Likewise.
4266 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4267 (i386_update_inferior_debug_regs): New.
4268 (i386_insert_watchpoint): Work on a local mirror of the debug
4269 registers, and only update the inferior on success.
4270 (i386_remove_watchpoint): Ditto.
4271 (i386_region_ok_for_watchpoint): Adjust.
4272 (i386_stopped_data_address): Adjust.
4273 (i386_insert_hw_breakpoint): Adjust.
4274 (i386_remove_hw_breakpoint): Adjust.
4275
3543a589
TT
42762011-07-22 Tom Tromey <tromey@redhat.com>
4277
4278 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4279 from amd64_pseudo_register_read. Change arguments. Call
4280 mark_value_bytes_unavailable when needed.
4281 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4282 set_gdbarch_pseudo_register_read.
4283 * sentinel-frame.c (sentinel_frame_prev_register): Use
4284 regcache_cooked_read_value.
4285 * regcache.h (regcache_cooked_read_value): Declare.
4286 * regcache.c (regcache_cooked_read_value): New function.
4287 (regcache_cooked_read): Call
4288 gdbarch_pseudo_register_read_value if available.
4289 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4290 (i386_pseudo_register_read): Remove.
4291 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4292 i386_pseudo_register_read. Change arguments. Call
4293 mark_value_bytes_unavailable when needed.
4294 (i386_pseudo_register_read_value): New function.
4295 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4296 not set_gdbarch_pseudo_register_read.
4297 * gdbarch.sh (pseudo_register_read_value): New method.
4298 * gdbarch.c, gdbarch.h: Rebuild.
4299 * findvar.c (value_from_register): Call get_frame_register_value.
4300
95298e72
PM
43012011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4302
4303 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4304 get_prefix.
4305 (display_gdb_prompt): Likewise.
4306 (change_annotation_level): Likewise.
4307 (push_prompt): Likewise.
4308 (pop_prompt): Likewise.
4309 (handle_stop_sig): Use get_prompt with a level.
4310 * top.c (command_loop): Use get_prompt with a level.
4311 (set_async_annotation_level): Use set_prompt with a level.
4312 (get_prefix): New function.
4313 (set_prefix): Ditto.
4314 (set_suffix): Ditto.
4315 (get_suffix): Ditto.
4316 (get_prompt): Accept a level argument.
4317 (set_prompt): Accept a level argument. Free old prompts. Set
4318 new_async_prompt if level is 0.
4319 (init_main): Use set_prompt with a level. Do not set
4320 new_async_prompt.
4321 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4322 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4323 Modify set_prompt, get_prompt to account for levels.
4324 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4325 level.
4326 * python/python.c (before_prompt_hook): Use set_prompt.
4327
d26e3629
KY
43282011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4329
4330 * defs.h: Add guard against inclusion in gdbserver.
4331 (struct ptid, ptid_t): Move to common/ptid.h.
4332 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4333 xsnprintf, internal_error): Move to common/common-utils.h.
4334 (nomem): Delete.
4335 * gdb_assert.h: Move into common/ sub-directory.
4336 * gdb_locale.h: Ditto.
4337 * gdb_dirent.h: Ditto.
4338 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4339 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4340 Move into common/ptid.h.
4341 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4342 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4343 Change nomem to malloc_failure.
4344 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4345 * utils.c (nomem): Rename to malloc_failure.
4346 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4347 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4348 (gdb_buildargv): Change nomem to malloc_failure.
4349 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4350 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4351 ptid_is_pid): Move into common/ptid.c.
4352 (initialize_infrun): Delete initialization of null_ptid and
4353 minus_one_ptid.
4354 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4355 linux_common_xfer_osdata.
4356 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4357 common/ptid.c and common/buffer.c.
4358 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4359 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4360 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4361 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4362 rules.
4363 * common/gdb_assert.h: New.
4364 * common/gdb_dirent.h: New.
4365 * common/gdb_locale.h: New.
4366 * common/buffer.c: New.
4367 * common/buffer.h: New.
4368 * common/ptid.c: New.
4369 * common/ptid.h: New.
4370 * common/xml-utils.c: New.
4371 * common/xml-utils.h: New.
4372 * common/common-utils.c: New.
4373 * common/common-utils.h: New.
4374 * common/linux-osdata.c: New.
4375 * common/linux-osdata.h: New.
4376 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4377 * config/arm/linux.mh (NATDEPFILES): Ditto.
4378 * config/i386/linux.mh (NATDEPFILES): Ditto.
4379 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4380 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4381 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4382 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4383 * config/mips/linux.mh (NATDEPFILES): Ditto.
4384 * config/pa/linux.mh (NATDEPFILES): Ditto.
4385 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4386 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4387 * config/s390/s390.mh (NATDEPFILES): Ditto.
4388 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4389 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4390 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4391
edc84990 43922011-07-21 Matt Rice <ratmice@gmail.com>
4393
4394 * NEWS: Add info macros and info definitions commands.
4395
3a7bf607
PM
43962011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4397
4398 * NEWS: Document Python prompt substitution hook.
4399
9b158ba0 44002011-07-18 Matt Rice <ratmice@gmail.com>
4401
4402 PR macros/12999
4403 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4404 * macrotab.c (foreach_macro): Ditto.
4405 (foreach_macro_in_scope): Ditto.
4406 * macrocmd.c (print_macro_callback): New function.
4407 (info_macro_command): Move some code to print_macro_definition.
4408 (print_macro_definition): New function.
4409 (print_one_macro): Add new arguments to callback.
4410 (info_definitions_command): New function.
4411 (info_macros_command): Ditto.
4412 (_initialize_macrocmd): Add info macros and info definitions commands.
4413 * symtab.c (add_macro_name): Add new arguments to callback.
4414
d17b6f81
PM
44152011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4416 Tom Tromey <tromey@redhat.com>
4417
4418 * top.c (set_prompt): Rewrite to free previous prompt, free
4419 asynch_new_prompt and set both on new prompts.
4420 * event-top.c (display_gdb_prompt): Add prompt substitution
4421 logic.
4422 * python/python.c (before_prompt_hook): New function.
4423
1364323a 44242011-07-20 Matt Rice <ratmice@gmail.com>
4425
4426 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4427 arguments to store_unsigned_integer.
4428
8b70b953
TT
44292011-07-20 Tom Tromey <tromey@redhat.com>
4430
6c83ed52
TT
4431 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4432 in some declaration-only cases.
4433
44342011-07-18 Tom Tromey <tromey@redhat.com>
4435
8b70b953
TT
4436 PR symtab/12984:
4437 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4438 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4439 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4440 <debug_type_section>: New field.
4441 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4442 (load_cu): Use appropriate section.
4443 (create_signatured_type_table_from_index): Add 'section'
4444 argument.
4445 (dwarf2_read_index): Only allow a single .debug_types section.
4446 (dw2_get_file_names): Use appropriate section.
4447 (read_type_comp_unit_head): Add 'section' argument.
4448 (create_debug_types_hash_table): Loop over all .debug_types
4449 sections.
4450 (init_cu_die_reader): Use appropriate section.
4451 (process_psymtab_comp_unit, load_partial_comp_unit)
4452 (load_full_comp_unit, read_die_and_children, find_partial_die)
4453 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4454 (lookup_signatured_type_at_offset): Add 'section' argument.
4455 (read_signatured_type_at_offset): Add 'sect' argument.
4456 (read_signatured_type): Use appropriate section.
4457 (set_die_type, get_die_type_at_offset): Update.
4458 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4459 VEC.
4460 (write_psymtabs_to_index): Don't allow index with more than one
4461 .debug_types section.
4462
918dd910
JK
44632011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4464
4465 Fix crash if referenced CU is aged out.
4466 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4467 xfree of block.data.
4468 (indirect_pieced_value): New variable back_to, use to for xfree of
4469 baton.data.
4470 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4471 block.data.
4472 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4473 (load_cu): New function from ...
4474 (dw2_do_instantiate_symtab): ... the code here ...
4475 (process_full_comp_unit): ... and here.
4476 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4477 retval.data.
4478
0e37a63c
JK
44792011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4480
4481 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4482 type.
4483
7e324e48
GB
44842011-07-19 Gary Benson <gbenson@redhat.com>
4485
4486 * infrun.c (struct execution_control_state): New member
4487 stop_func_filled_in.
4488 (clear_stop_func, fill_in_stop_func): New functions.
4489 (handle_inferior_event): Call clear_stop_func rather than
4490 manipulating the execution control state directly.
4491 Call fill_in_stop_func lazily as required rather than
4492 directly calling find_pc_partial_function in all cases.
4493
d48323d8
TT
44942011-07-18 Tom Tromey <tromey@redhat.com>
4495
4496 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4497 checking for variable-sized array.
4498
40591b7d
JCD
44992011-07-18 Jean-Charles Delay <delay@adacore.com>
4500
4501 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4502 of supported languages.
4503 * varobj.c: Add top definitions and basic implementation of the
4504 following callbacks: ada_number_of_children, ada_name_of_variable,
4505 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4506 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4507 (languages): Register Ada-specific callbacks.
4508 (variable_language): Add the Ada case in the language setter switch.
4509
2e424e08
JK
45102011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4513
9e8b7a03
JK
45142011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4515
4516 Code cleanup.
4517 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4518 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4519 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4520 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4521 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4522 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4523 (struct dwarf_expr_context_funcs): New, move here methods from ...
4524 (struct dwarf_expr_context): ... here. New fields funcs.
4525 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4526 (dwarf_expr_ctx_funcs): New.
4527 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4528 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4529 (needs_frame_ctx_funcs): New.
4530 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4531
2b1260ab
FM
45322011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4533
4534 * MAINTAINERS (Write After Approval): Add myself to the list.
4535
8bd90839
FM
45362011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4537
4538 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4539 that CIE pointer of an FDE really points to a CIE .
4540
953b98d1
HZ
45412011-07-15 Hui Zhu <teawater@gmail.com>
4542
4543 * remote.c (remote_get_trace_status): Add comments.
4544
c8f2448a
JK
45452011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 Code cleanup - constify struct lval_funcs.
4548 * dwarf2loc.c (pieced_value_funcs): Make it const.
4549 * infrun.c (siginfo_value_funcs): Likewise.
4550 * opencl-lang.c (opencl_value_funcs): Likewise.
4551 * valops.c (value_assign, value_ind): Make the funcs variable const.
4552 * value.c (struct value): Make location.computed.funcs target const.
4553 Rearrange the comments.
4554 (allocate_computed_value): Make the funcs parameter target const.
4555 (value_computed_funcs): Return the funcs target const.
4556 (value_free, value_copy, set_value_component_location): Make the funcs
4557 variable const.
4558 * value.h (allocate_computed_value): Make the funcs parameter target
4559 const.
4560 (value_computed_funcs): Return the funcs target const.
4561 * windows-tdep.c (tlb_value_funcs): Make it const.
4562
f652de6f
HZ
45632011-07-14 Hui Zhu <teawater@gmail.com>
4564
4565 * remote.c (remote_get_trace_status): Initialize p.
4566
67f41397
JK
45672011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4568
4569 Work around kgdb.
4570 * remote.c (remote_get_trace_status): New variable ex. Put
4571 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4572
d1b66e6d
TT
45732011-07-13 Tom Tromey <tromey@redhat.com>
4574
4575 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4576 value_from_contents for final conversion.
4577
1632a688
JK
45782011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4579
4580 Code cleanup.
4581 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4582 Indent prototypes so they do not get into tags.
4583
a7035dbb
JK
45842011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4585
4586 Code cleanup making also optimized out values lazy.
4587 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4588 allocate_optimized_out_value. Twice.
4589 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4590 * findvar.c (read_var_value): Likewise.
4591 * value.c (allocate_optimized_out_value): New function.
4592 * value.h (allocate_optimized_out_value): New declaration.
4593
d07ed419
JK
45942011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4595
4596 Fix occasional crash of CTRL-C during DWARF read in.
4597 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4598
86d31898
TT
45992011-07-11 Tom Tromey <tromey@redhat.com>
4600
4601 * regcache.c (struct regcache_descr): Fix typo.
4602 * i387-tdep.c (i387_supply_xsave): Fix typo.
4603
2ab95328
TT
46042011-07-11 Tom Tromey <tromey@redhat.com>
4605
4606 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4607 (read_file_scope, read_type_unit_scope): Use it.
4608
04ad99e6
JK
46092011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4610
4611 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4612 `int'.
4613
713389e0
PM
46142011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4615
4616 PR python/12438
4617 * python/python.c: Set gdbpy_should_print_stack default to off.
4618 (set_python): Deprecate maint set python print-stack to
4619 class_deprecate.
4620 (_initialize_python): Deprecate maint set/show python print-stack.
4621 Add new prefix command, python. Add new setting, print-backtrace.
4622 * NEWS: Document set python print-stack. Document default change.
4623
754eadd1
PM
46242011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4625
4626 * python/py-inferior.c (infpy_dealloc): New function.
4627 (inferior_to_inferior_object): Return a new object, or a
4628 new reference to the existing object.
4629 (find_thread_object): Cleanup references to inferior.
4630 (delete_thread_object): Ditto.
4631 * python/py-infthread.c (create_thread_object): Do not increment
4632 inferior reference count.
4633
5e44ecb3
TT
46342011-07-08 Tom Tromey <tromey@redhat.com>
4635
4636 * dwarf2loc.c (locexpr_regname): New function.
4637 (locexpr_describe_location_piece): Use it.
4638 (disassemble_dwarf_expression): Add per_cu argument. Use
4639 locexpr_regname.
4640 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4641 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4642 New cases.
4643 (locexpr_describe_location_1): Add per_cu argument.
4644 (locexpr_describe_location): Update.
4645 (loclist_describe_location): Update.
4646
e0e9434c
TT
46472011-07-08 Tom Tromey <tromey@redhat.com>
4648
4649 * dwarf2expr.c (execute_stack_op): Add QUIT.
4650
26afc0d7
HZ
46512011-07-07 Hui Zhu <teawater@gmail.com>
4652
4653 Revert:
4654 2011-07-06 Hui Zhu <teawater@gmail.com>
4655 * remote.c (remote_start_remote): Add TRY_CATCH for
4656 remote_get_trace_status.
4657 * tracepoint.c (disconnect_tracing): Ditto.
4658
a40a111f
AB
46592011-07-07 Andrew Burgess <aburgess@broadcom.com>
4660
4661 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4662 variables as signed, not unsigned.
4663
e2bd3b15
JB
46642011-07-06 Joel Brobecker <brobecker@adacore.com>
4665
4666 * jit.c (jit_inferior_init): Reformat forward declaration.
4667
e3d961fe 46682011-07-06 Matt Rice <ratmice@gmail.com>
4669
4670 * MAINTAINERS (Write After Approval): Add myself to the list.
4671
0f3428f0
HZ
46722011-07-06 Hui Zhu <teawater@gmail.com>
4673
4674 * remote.c (remote_start_remote): Add TRY_CATCH for
4675 remote_get_trace_status.
4676 * tracepoint.c (disconnect_tracing): Ditto.
4677
fc9f3a69
TT
46782011-07-05 Tom Tromey <tromey@redhat.com>
4679
4680 * symtab.c (operator_chars): Now static.
4681 * linespec.c (operator_chars): Don't declare.
4682
26e519b9
TJB
46832011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4684
4685 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4686
eb2a6f42
TT
46872011-07-05 Tom Tromey <tromey@redhat.com>
4688
4689 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4690 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4691 (TYPE_CPLUS_REALLY_JAVA): New macro.
4692 * dwarf2read.c (process_structure_scope): Set
4693 TYPE_CPLUS_REALLY_JAVA.
4694
21083d0f 46952011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
4696
4697 * ada-lang.c: Fix typos.
4698 * amd64-tdep.c: Likewise.
4699 * breakpoint.c: Likewise.
4700 * cli/cli-decode.c: Likewise.
4701 * findcmd.c: Likewise.
4702 * inline-frame.c: Likewise.
4703 * mi/mi-main.c: Likewise.
4704 * minsyms.c: Likewise.
4705 * monitor.c: Likewise.
4706 * monitor.h: Likewise.
4707 * prologue-value.c: Likewise.
4708 * reverse.c: Likewise.
4709 * s390-tdep.c: Likewise.
4710
3b2a0cf2
JB
47112011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4712
4713 * jit.c (jit_inferior_init): Forward declare.
4714 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4715
efae1d92
JB
47162011-07-04 Joel Brobecker <brobecker@adacore.com>
4717
4718 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4719
6040a59d
JB
47202011-07-04 Tristan Gingold <gingold@adacore.com>
4721
4722 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4723 (tcb_fieldno): Add activation_link field.
4724 (get_known_tasks_addr): Moved and rewritten.
4725 (get_tcb_types_info): Set activation_link field.
4726 (read_known_tasks_array): Add parameter. Rewritten.
4727 (read_known_tasks_list): New function.
4728 (read_known_tasks): New function.
4729 (ada_build_task_list): Call read_known_tasks instead of
4730 read_known_tasks_array.
4731 * ravenscar-thread.c: Add first_task_name constant.
4732 (has_ravenscar_runtime): Check for task list too.
4733
cb741e45
JB
47342011-07-04 Tristan Gingold <gingold@adacore.com>
4735
4736 * ada-tasks.c: Renames fieldno to actb_fieldno.
4737 (ada_get_task_number): Indentation.
4738 (get_tcb_types_info): Remove all parameters. Write directly
4739 the globals.
4740 (ptid_from_atcb_common): Adjust.
4741 (read_atcb): Adjust.
4742
7475b06c
TJB
47432011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4744
4745 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4746
15230f37
TJB
47472011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4748
4749 * ui-out.c (ui_out_field_core_addr): Mention that the function
4750 description is in the header file.
4751 * ui-out.h (ui_out_field_core_addr): Document function.
4752
65743aba
TJB
47532011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4754
4755 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4756 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4757
c37a5aab
TJB
47582011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4759
4760 * symtab.c (expand_line_sal): Remove empty line.
4761
59adf69e
TS
47622011-07-04 Thomas Schwinge <thomas@schwinge.name>
4763
4764 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4765 same way as ELFOSABI_NONE.
4766 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4767
e5dd4106
TJB
47682011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4769
4770 * breakpoint.c: Fix typos in comments.
4771 * linespec.c: Likewise.
4772 * symtab.c: Likewise.
4773
d40102a1
JB
47742011-07-04 Joel Brobecker <brobecker@adacore.com>
4775
4776 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4777 section in separate object files.
4778
2f741504
JK
47792011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 Fix false GCC warning.
4782 * linespec.c (decode_line_1): Initialize values.
4783
418c7cf7
JK
47842011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4785
4786 * linespec.c (find_method): Accept the function type automatically only
4787 if it was specified with parameter types.
4788
3d50dd94
JK
47892011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4790
4791 Stop on first linespec terminator instead of eating what we can.
4792 * linespec.c (is_linespec_boundary): New function.
4793 (name_end): Remove function.
4794 (keep_name_info): New parameter on_boundary, replace the body.
4795 (decode_line_1): Provide the parameter to keep_name_info.
4796 (decode_compound): Likewise. Drop the trailing java return type
4797 handling. Twice.
4798
dcf9f4ab
JK
47992011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4800
4801 Fall back linespec to minimal symbols.
4802 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4803 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4804 (find_method, symbol_found): Change error to cplusplus_error.
4805
3f542ed1
JK
48062011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
bc68c4e5 4808 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 4809
900e11f9
JK
48102011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4811 Tom Tromey <tromey@redhat.com>
4812
4813 * dwarf2read.c (check_physname): New variable.
4814 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4815 (show_check_physname): New function.
4816 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4817
2301925d
JB
48182011-07-01 Joel Brobecker <brobecker@adacore.com>
4819
4820 * machoread.c (macho_symfile_read): Delete OBE comment.
4821
38947cca
JB
48222011-07-01 Joel Brobecker <brobecker@adacore.com>
4823
4824 * machoread.c (struct macho_oso_data): Delete.
4825 (current_oso): Delete.
4826 (macho_relocate_common_syms): New function, mostly extracted
4827 out of
4828 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4829 Remove code that sets and unset current_oso.
4830 (macho_symfile_relocate): Delete handling of common symbols,
4831 now moved to macho_relocate_common_syms.
4832
a7aa0d73
JB
48332011-07-01 Joel Brobecker <brobecker@adacore.com>
4834
4835 * darwin-nat.c (darwin_ptrace): Add documentation.
4836 Set errno to zero before calling ptrace. If ptrace returns
4837 -1 and errno is zero, then change then return zero.
4838 (darwin_kill_inferior): Issue a warning instead of triggering
4839 a failed assertion when the PT_KILL ptrace operations returned
4840 nonzero.
4841
5e9bc145
JB
48422011-07-01 Joel Brobecker <brobecker@adacore.com>
4843
4844 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4845 only when inf->private->no_ptrace.
4846
00eb2c4a
JB
48472011-07-01 Joel Brobecker <brobecker@adacore.com>
4848
4849 * ada-lang.c (print_it_exception): Print temporary catchpoints
4850 as "Temporary catchpoint".
4851 (print_mention_exception): Likewise.
4852
127c81bc
TT
48532011-07-01 Tom Tromey <tromey@redhat.com>
4854
4855 * jv-lang.c (java_language_defn): Use java_printchar,
4856 java_printstr.
4857 (java_get_encoding): New function.
4858 (java_emit_char): Use generic_emit_char.
4859 (java_printchar): New function.
4860 (java_printstr): Likewise.
4861
25552254
JB
48622011-07-01 Joel Brobecker <brobecker@adacore.com>
4863
4864 * ada-typeprint.c (print_record_type): If unable to decode
4865 the name of the parent type, use the encoded name.
4866
d2d43431
JB
48672011-07-01 Jean-Charles Delay <delay@adacore.com>
4868
4869 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4870 pointer to constrained packed array type output.
4871 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4872 packed array output.
4873
54ae186f
JB
48742011-07-01 Jean-Charles Delay <delay@adacore.com>
4875
4876 * ada-typeprint.c (print_array_type): removed if condition on show
4877 being negative for bounds printing.
4878
8f17729f
JB
48792011-07-01 Joel Brobecker <brobecker@adacore.com>
4880
4881 * ada-lang.c (ada_identical_enum_types_p): New function.
4882 (symbols_are_identical_enums): New function.
4883 (remove_extra_symbols): Do nothing if NSYMS < 2.
4884 Use symbols_are_identical_enums.
4885
f5aa6869
JB
48862011-07-01 Joel Brobecker <brobecker@adacore.com>
4887
4888 * ada-valprint.c (ada_value_print): Handle typedefs.
4889
8f465ea7
JB
48902011-07-01 Joel Brobecker <brobecker@adacore.com>
4891
4892 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4893
828292f2
JB
48942011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4895
4896 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4897 (decode_constrained_packed_array): Likewise.
4898 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4899
18920c42
JB
49002011-07-01 Joel Brobecker <brobecker@adacore.com>
4901
4902 * ada-exp.y (convert_char_literal): Handle typedef types.
4903
c90092fe
JB
49042011-07-01 Joel Brobecker <brobecker@adacore.com>
4905
4906 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4907
f748fb40
TT
49082011-06-30 Tom Tromey <tromey@redhat.com>
4909
4910 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4911 * valops.c (find_overload_match): Call do_cleanups on early exit
4912 path.
4913 * solib.c (solib_find): Call do_cleanups on early exit path.
4914
3bb47e8b
TT
49152011-06-30 Tom Tromey <tromey@redhat.com>
4916
4917 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4918 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4919 return paths. Defer final do_cleanups until last return.
4920 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4921 early return.
4922
4727bad3
TT
49232011-06-30 Tom Tromey <tromey@redhat.com>
4924
4925 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4926
bb361dbf
AB
49272011-06-30 Andrew Burgess <aburgess@broadcom.com>
4928
4929 * MAINTAINERS (Write After Approval): Add myself to the list.
4930
e0d00bc7
JK
49312011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 Disable epilogue unwinders on recent GCCs.
4934 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4935 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4936 * dwarf2read.c (process_full_comp_unit): Initialize
4937 EPILOGUE_UNWIND_VALID.
4938 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4939 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4940 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4941
4632c0d0
JK
49422011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4943
4944 Code cleanup - reformatting.
4945 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4946 (producer_is_gcc_ge_4): ... here, change the return value.
4947 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4948 interpretation.
4949
32019081
JK
49502011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 Fix non-only rename list for Fortran modules import.
4953 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4954 cp_add_using_directive caller.
4955 (cp_add_using_directive): New parameter excludes, describe it. New
4956 variables ix and param. Compare if also excludes match. Allocate NEW
4957 with variable size, initialize EXCLUDES there.
4958 (cp_lookup_symbol_imports): New variable excludep, test
4959 current->EXCLUDES with it.
4960 * cp-support.h: Include vec.h.
4961 (struct using_direct): New field excludes, describe it.
4962 (DEF_VEC_P (const_char_ptr)): New.
4963 (cp_add_using_directive): New parameter excludes.
4964 * defs.h (const_char_ptr): New typedef.
4965 * dwarf2read.c (read_import_statement): New variables child_die,
4966 excludes and cleanups, read in excludes.
4967 (read_namespace): Adjust the cp_add_using_directive caller.
4968
70c622a3
JK
49692011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4970
4971 Code cleanup.
4972 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4973 negative comparisons.
4974
39c4d40a
TT
49752011-06-29 André Pönitz <andre.poenitz@nokia.com>
4976
4977 * mi/mi-main.c (mi_cmd_list_features): Emit
4978 breakpoint-notifications.
4979
3b2b8fea
TT
49802011-06-29 Tom Tromey <tromey@redhat.com>
4981
4982 PR fortran/10036:
4983 * valprint.h (generic_emit_char, generic_printstr): Declare.
4984 * valprint.c (wchar_printable, append_string_as_wide)
4985 (print_wchar): Move from c-lang.c.
4986 (generic_emit_char): New function; mostly taken from c_emit_char.
4987 (generic_printstr): New function; mostly taken from c_printstr.
4988 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4989 represented as arrays.
4990 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4991 type.
4992 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4993 identically to TYPE_CODE_INT.
4994 * f-lang.c (f_get_encoding): New function.
4995 (f_emit_char): Use generic_emit_char.
4996 (f_printchar): Replace comment.
4997 (f_printstr): Use generic_printstr.
4998 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4999 "character" types specially.
5000 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5001 for Fortran.
5002 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5003 Move to valprint.c
5004 (c_emit_char): Call generic_emit_char.
5005 (c_printstr): Call generic_printstr.
5006
168e6d44
GB
50072011-06-29 Gary Benson <gbenson@redhat.com>
5008
5009 * breakpoint.c (bpstat_what): Removed duplicated case.
5010
1c033f8c
TT
50112011-06-28 Tom Tromey <tromey@redhat.com>
5012
5013 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5014
5fe41fbf
TT
50152011-06-27 Tom Tromey <tromey@redhat.com>
5016
5017 * valops.c (find_overload_match): Call do_cleanups before early
5018 return.
5019 * top.c (execute_command): Call do_cleanups before early return.
5020 (command_loop): Likewise.
5021 * stack.c (backtrace_command): Make a null cleanup early. Don't
5022 conditionally call do_cleanups.
5023 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5024 TRY_CATCH.
5025 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5026 so cleanups are always run.
5027 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5028 * findcmd.c (parse_find_args): Call do_cleanups on early return
5029 path.
5030 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5031 Don't conditionally call do_cleanups.
5032 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5033 later.
5034
e26bd57d
EB
50352011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5036
5037 * MAINTAINERS (Write After Approval): Use default email address.
5038
6c3097fc
JB
50392011-06-27 Joel Brobecker <brobecker@adacore.com>
5040
5041 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5042
369c397b
JB
50432011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5044
5045 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5046 saved_regs_mask and copied_regs_mask fields.
5047 (sparc_record_save_insn): New prototype.
5048 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5049 (sparc_record_save_insn): New function.
5050 (sparc_analyze_prologue): Add head comment. Recognize store insns
5051 of call-saved registers. Use OFFSET consistently. Recognize flat
5052 frames and cache their settings.
5053 (sparc32_skip_prologue): Handle flat frames.
5054 (sparc_frame_cache): Add frame_offset to the base address.
5055 (sparc32_frame_cache): Adjust to new frame description.
5056 (sparc32_frame_prev_register): Likewise.
5057 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5058 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5059 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5060 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5061 frame by calling sparc_record_save_insn.
5062 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5063 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5064 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5065
b315ab21
TG
50662011-06-27 Tristan Gingold <gingold@adacore.com>
5067
5068 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5069 field by map_addr and map_len.
5070 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5071 (munmap_section_buffer): Likewise.
5072
ddd49eee
TT
50732011-06-24 Tom Tromey <tromey@redhat.com>
5074
5075 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5076 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5077 * python/python.c (gdbpy_parameter): Make 'arg' const.
5078 (execute_gdb_command): Likewise.
5079 (gdbpy_decode_line): Likewise. Copy it.
5080 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5081 (gdbpy_write): Make 'arg' const.
5082 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5083 const.
5084 (gdbpy_lookup_type): Likewise.
5085 * python/py-prettyprint.c (print_children): Make 'name' const.
5086 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5087 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5088 Py_ssize_t.
5089 * python/py-function.c (fnpy_init): Make 'name' const.
5090 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5091 (gdbpy_string_to_argv): Make 'input' const.
5092 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5093 it.
5094 * gdbtypes.h (lookup_typename): Update.
5095 * gdbtypes.c (lookup_typename): Make 'name' const.
5096 (lookup_struct): Likewise.
5097 (lookup_union): Likewise.
5098 (lookup_enum): Likewise.
5099
5998129b
TT
51002011-06-24 Tom Tromey <tromey@redhat.com>
5101
5102 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5103 gdb_thread_db.h. Move all common/ entries to be together.
5104 (TAGS): Don't depend on DEPFILES.
5105
6e586cc5
YQ
51062011-06-23 Yao Qi <yao@codesourcery.com>
5107
5108 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5109 * remote.c (remote_start_remote): ... here.
5110 * monitor.c (monitor_open): ... here.
5111
86c3c1fc
AB
51122011-06-23 Andrew Burgess <aburgess@broadcom.com>
5113
5114 * gdbtypes.c (append_composite_type_field_aligned): Fix
5115 calculation of bit position based on alignment.
5116
28010a5d
PA
51172011-06-22 Pedro Alves <pedro@codesourcery.com>
5118
5119 * breakpoint.c (bpstat_stop_status): Call the check_status
5120 breakpoint_ops method.
5121 (print_one_breakpoint_location): Also print the condition for Ada
5122 exception catchpoints.
5123 (allocate_bp_location): New, factored out from
5124 allocate_bp_location.
5125 (allocate_bp_location): Adjust. Call the owner breakpoint's
5126 allocate_location method, if there is one.
5127 (free_bp_location): Call the locations's dtor method, if there is
5128 one.
5129 (init_raw_breakpoint_without_location): New breakpoint_ops
5130 parameter. Use it.
5131 (set_raw_breakpoint_without_location): Adjust.
5132 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5133 (set_raw_breakpoint): Adjust.
5134 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5135 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5136 re_set and check_status methods.
5137 (init_catchpoint): Don't memset, initialize thread, addr_string
5138 and enable_state. Pass the ops down to init_raw_breakpoint.
5139 (install_catchpoint): Rename to ...
5140 (install_breakpoint): ... this, and make extern.
5141 (create_fork_vfork_event_catchpoint): Adjust.
5142 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5143 re_set and check_status methods.
5144 (create_syscall_event_catchpoint): Adjust.
5145 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5146 (masked_watchpoint_breakpoint_ops): Install NULL
5147 allocate_location, re_set and check_status methods.
5148 (catch_exec_command_1): Adjust.
5149 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5150 re_set and check_status methods.
5151 (create_ada_exception_breakpoint): Rename to ...
5152 (init_ada_exception_breakpoint): ... this. Add a struct
5153 breakpoint parameter, and delete the exp_string, cond_string and
5154 cond parameters. Use init_raw_breakpoint, and don't install or
5155 mention the breakpoint yet. Don't clear breakpoint fields that
5156 init_raw_breakpoint already clears.
5157 (re_set_breakpoint): Delete, split into ...
5158 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5159 functions.
5160 (breakpoint_re_set_one): Call the breakpoint's
5161 breakpoint_ops->re_set implementation, if there's one. Adjust.
5162 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5163 (struct bp_location_ops): New type.
5164 (struct bp_location): New field `ops'.
5165 (struct breakpoint_ops): New `allocate_location', `re_set' and
5166 `check_status' fields. Make `breakpoint_hit''s description match
5167 reality.
5168 (init_bp_location): Declare.
5169 (breakpoint_re_set_default): Declare.
5170 (create_ada_exception_breakpoint): Rename to ...
5171 (init_ada_exception_breakpoint): ... this. Add a struct
5172 breakpoint parameter, and delete the exp_string, cond_string and
5173 cond parameters.
5174 (install_breakpoint): Declare.
5175 * ada-lang.c: Include exceptions.h.
5176 <Ada exceptions description>: Update.
5177 (struct ada_catchpoint_location): New type.
5178 (ada_catchpoint_location_dtor): New function.
5179 (ada_catchpoint_location_ops): New global.
5180 (ada_catchpoint): New type.
5181 (create_excep_cond_exprs): New function.
5182 (dtor_exception, allocate_location_exception, re_set_exception)
5183 (should_stop_exception, check_status_exception): New functions.
5184 (print_one_exception, print_mention_exception)
5185 (print_recreate_exception): Adjust.
5186 (dtor_catch_exception, allocate_location_catch_exception)
5187 (re_set_catch_exception, check_status_catch_exception): New
5188 functions.
5189 (catch_exception_breakpoint_ops): Install them.
5190 (dtor_catch_exception_unhandled)
5191 (allocate_location_catch_exception_unhandled)
5192 (re_set_catch_exception_unhandled)
5193 (check_status_catch_exception_unhandled): New functions.
5194 (catch_exception_unhandled_breakpoint_ops): Install them.
5195 (dtor_catch_assert, allocate_location_catch_assert)
5196 (re_set_catch_assert, check_status_catch_assert): New functions.
5197 (catch_assert_breakpoint_ops): Install them.
5198 (ada_exception_catchpoint_p): Delete.
5199 (catch_ada_exception_command_split)
5200 (ada_exception_catchpoint_cond_string): Rename exp_string
5201 parameter to excep_string. Adjust.
5202 (ada_parse_catchpoint_condition): Delete.
5203 (ada_exception_sal): Rename the exp_string parameter to
5204 excep_string. Delete the cond_string and cond parameters.
5205 Adjust.
5206 (ada_decode_exception_location): Rename the exp_string parameter
5207 to excep_string. Delete the cond_string and cond parameters.
5208 Adjust.
5209 (create_ada_exception_catchpoint): New function.
5210 (catch_ada_exception_command, ada_decode_assert_location)
5211 (catch_assert_command): Adjust.
5212 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5213
9ac4176b
PA
52142011-06-22 Pedro Alves <pedro@codesourcery.com>
5215
5216 * ada-lang.c: Include arch-utils.h.
5217 (ada_decode_exception_location): Make static.
5218 (catch_ada_exception_command): Moved here from breakpoint.c.
5219 (ada_decode_assert_location): Make static.
5220 (catch_assert_command): Moved here from breakpoint.c.
5221 (_initialize_ada_lang): Install the exception and assert
5222 catchpoint commands here.
5223 * ada-lang.h (ada_decode_exception_location)
5224 (ada_decode_assert_location): Delete declarations.
5225 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5226 breakpoint.h.
5227 (create_ada_exception_breakpoint): Make extern.
5228 (catch_ada_exception_command, catch_assert_command): Moved to
5229 ada-lang.c.
5230 (add_catch_command): Make extern.
5231 (_initilize_breakpoint): Don't install the exception and assert
5232 catchpoint commands here.
5233 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5234 breakpoint.c
5235 (add_catch_command, create_ada_exception_breakpoint): Declare.
5236
c56053d2
PA
52372011-06-22 Pedro Alves <pedro@codesourcery.com>
5238
5239 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5240 the breakpoint to the breakpoint chain here.
5241 (set_raw_breakpoint_without_location): Add the breakpoint to the
5242 breakpoint chain here.
5243 (init_raw_breakpoint): Adjust comments.
5244 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5245 here.
5246 (init_catchpoint): Don't set the catchpoint's breakpoint number
5247 here.
5248 (install_catchpoint): New function.
5249 (create_fork_vfork_event_catchpoint)
5250 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5251 use install_catchpoint.
5252
d2f3fc74
PA
52532011-06-22 Pedro Alves <pedro@codesourcery.com>
5254
5255 * breakpoint.c (create_catchpoint_without_mention)
5256 (create_catchpoint): Delete.
5257
b4d90040
PA
52582011-06-22 Pedro Alves <pedro@codesourcery.com>
5259
5260 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5261 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5262 reference to exec_pathname.
5263 (struct exec_catchpoint): New type.
5264 (dtor_catch_exec): New function.
5265 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5266 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5267 (catch_exec_command_1): Adjust to use init_catchpoint.
5268 (delete_breakpoint): Remove reference to exec_pathname.
5269
be5c67c1
PA
52702011-06-22 Pedro Alves <pedro@codesourcery.com>
5271
5272 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5273 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5274 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5275 reference to syscalls_to_be_caught.
5276 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5277 NULL `dtor'.
5278 (struct syscall_catchpoint): New type.
5279 (dtor_catch_syscall): New function.
5280 (insert_catch_syscall, remove_catch_syscall)
5281 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5282 (print_recreate_catch_syscall): Adjust.
5283 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5284 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5285 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5286 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5287 (masked_watchpoint_breakpoint_ops)
5288 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5289 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5290 there is one. Remove references to syscalls_to_be_caught.
5291 (catching_syscall_number): Adjust.
5292 * ada-lang.c (catch_exception_breakpoint_ops)
5293 (catch_exception_unhandled_breakpoint_ops)
5294 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5295
e29a4733
PA
52962011-06-22 Pedro Alves <pedro@codesourcery.com>
5297
5298 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5299 field.
5300 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5301 reference to forked_inferior_pid.
5302 (struct fork_catchpoint): New type.
5303 (breakpoint_hit_catch_fork, print_it_catch_fork)
5304 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5305 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5306 (create_fork_vfork_event_catchpoint): Adjust to use
5307 init_catchpoint.
5308
346774a9
PA
53092011-06-22 Pedro Alves <pedro@codesourcery.com>
5310
5311 * breakpoint.c (add_to_breakpoint_chain)
5312 (init_raw_breakpoint_without_location): New functions, factored
5313 out from ...
5314 (set_raw_breakpoint_without_location): ... this one.
5315 (init_raw_breakpoint): New function, factored out from
5316 set_raw_breakpoint and adjusted to use
5317 init_raw_breakpoint_without_location.
5318 (set_raw_breakpoint): Adjust.
5319 (init_catchpoint): New function, factored out from
5320 create_catchpoint_without_mention and adjusted to use
5321 init_raw_breakpoint.
5322 (create_catchpoint_without_mention): Adjust.
5323
c38c4bc5
TT
53242011-06-22 Tom Tromey <tromey@redhat.com>
5325
5326 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5327 argument of 0 specially.
5328
b138ce37
YQ
53292011-06-22 Yao Qi <yao@codesourcery.com>
5330
5331 * infrun.c (handle_inferior_event): Remove write-only local variable
5332 `sw_single_step_trap_p'.
5333
03de6823
TT
53342011-06-20 Tom Tromey <tromey@redhat.com>
5335
5336 * symtab.c (lookup_language_this): End loop if block is NULL.
5337
66a17cb6
TT
53382011-06-17 Tom Tromey <tromey@redhat.com>
5339
5340 * valops.c (value_of_this): Use lookup_language_this.
5341 * symtab.h (lookup_language_this): Declare.
5342 * symtab.c (lookup_language_this): New function.
5343 (lookup_symbol_aux): Use lookup_language_this.
5344 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5345
7518bff5
TT
53462011-06-17 Tom Tromey <tromey@redhat.com>
5347
5348 * value.h (value_of_this): Update.
5349 (value_of_local): Remove.
5350 * valops.c (value_of_this): Rename from value_of_local. Change
5351 parameters.
5352 * p-exp.y (exp): Update.
5353 (variable): Likewise.
5354 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5355
aee28ec6
TT
53562011-06-17 Tom Tromey <tromey@redhat.com>
5357
5358 * valops.c (value_of_local): Complain if NAME is NULL.
5359 * std-operator.def (OP_OBJC_SELF): Remove.
5360 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5361 * objc-exp.y (name_not_typename): Use OP_THIS.
5362 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5363 name for "this".
5364 <OP_OBJC_SELF>: Remove.
5365 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5366
eed8f803
TG
53672011-06-16 Tristan Gingold <gingold@adacore.com>
5368
5369 * python/py-events.h (gdb_py_events): Make it extern.
5370 * python/py-evtregistry.c (gdb_py_events): Declare.
5371
864ac8a7
HZ
53722011-06-16 Hui Zhu <teawater@gmail.com>
5373
5374 * remote.c (remote_trace_set_readonly_regions): Add check for
5375 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5376 output warning.
5377
ef7e8358
UW
53782011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5379
5380 * arm-linux-tdep.c: Include "auxv.h".
5381 (AT_HWCAP): Define.
5382 (ARM_LINUX_SIZEOF_VFP): Define.
5383 (arm_linux_supply_vfp): New function.
5384 (arm_linux_collect_vfp): Likewise.
5385 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5386 (arm_linux_fpa_regset_sections): New variable.
5387 (arm_linux_vfp_regset_sections): Likewise.
5388 (arm_linux_core_read_description): New function.
5389 (arm_linux_init_abi): Install arm_linux_core_read_description and
5390 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5391 appropriate for the architecture.
5392 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5393 (tdesc_arm_with_m): Declare.
5394 (tdesc_arm_with_iwmmxt): Likewise.
5395 (tdesc_arm_with_vfpv2): Likewise.
5396 (tdesc_arm_with_vfpv3): Likewise.
5397 (tdesc_arm_with_neon): Likewise.
5398 * arm-linux-nat.c: Move features/*.c includes ...
5399 * arm-tdep.c: ... here.
5400 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5401 target description data structures ...
5402 * arm-tdep.c (_initialize_arm_tdep): ... here.
5403 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5404 HWCAP_VFPv3D16): Move definitions ...
5405 * arm-linux-tdep.h: ... here.
5406
c2fa21f1
HZ
54072011-06-15 Hui Zhu <teawater@gmail.com>
5408
5409 * remote.c (remote_trace_set_readonly_regions): Add a check for
5410 target_buf_size.
5411
dd707e8e
TT
54122011-06-14 Tom Tromey <tromey@redhat.com>
5413
5414 * coffread.c (coffread_objfile): Rename from current_objfile.
5415 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5416 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5417
86cc0029
TT
54182011-06-14 Tom Tromey <tromey@redhat.com>
5419
5420 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5421 (class_symtab): Remove.
5422 (jv_dynamics_progspace_key): New global.
5423 (jv_per_objfile_free): Reset program space data. Update assert.
5424 Don't clear globals.
5425 (get_dynamics_objfile): Use and set program space data.
5426 (get_java_class_symtab): Use get_dynamics_objfile.
5427 (add_class_symbol): Likewise.
5428 (java_link_class_type): Likewise.
5429 (java_object_type, jv_clear_object_type, set_java_object_type):
5430 Remove.
5431 (get_java_object_type): Update. Don't cache result.
5432 (is_object_type): Don't call set_java_object_type.
5433 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5434 initialize jv_dynamics_progspace_key.
5435
91a81f69
TT
54362011-06-14 Tom Tromey <tromey@redhat.com>
5437
5438 * symtab.h (current_objfile): Don't declare.
5439 * objfiles.h (current_objfile): Don't declare.
5440 * objfiles.c (current_objfile): Remove.
5441 * mdebugread.c (current_objfile): New file-scope global.
5442 * dbxread.c (current_objfile): New file-scope global.
5443 * coffread.c (current_objfile): New file-scope global.
5444
dc7eb48e
PA
54452011-06-13 Pedro Alves <pedro@codesourcery.com>
5446
5447 * top.h (line): Rename to ...
5448 (saved_command_line): ... this.
5449 (linesize): Rename to ...
5450 (saved_command_line_size): ... this.
5451 * top.c (line): Rename to ...
5452 (saved_command_line): ... this.
5453 (linesize): Rename to ...
5454 (saved_command_line_size): ... this.
5455 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5456 * event-top.c (command_line_handler): Adjust.
5457 * main.c (captured_main): Adjust.
5458
0d6c2135
MK
54592011-06-12 Mark Kettenis <kettenis@gnu.org>
5460
5461 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5462 get_frame_func instead of get_frame_pc to determine the code
5463 address used to construct the frame ID.
5464 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5465 (i386_epilogue_frame_this_id): Likewise.
5466 (i386_epilogue_frame_prev_register): New function.
5467 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5468 (i386_stack_tramp_frame_sniffer): Fix coding style.
5469 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5470 (i386_gdbarch_init): Fix comments.
5471
8bbdd3f4
MK
54722011-06-12 Mark Kettenis <kettenis@gnu.org>
5473
5474 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5475 instruction when walking back through the instruction stream.
5476
533a737e
JK
54772011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5478
5479 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5480 fullname parameters order.
5481
44b13c5a
JK
54822011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5483
5484 Code cleanup.
5485 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5486 for fun.
5487 * psymtab.c (map_symbol_filenames_psymtab)
5488 (map_partial_symbol_filenames): Likewise.
5489 * psymtab.h: Include symfile.h.
5490 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5491 * symfile.h (symbol_filename_ftype): New.
5492 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5493 map_symbol_filenames, clarify more the naming in comment.
5494
0b5574da
DE
54952011-06-07 Doug Evans <dje@google.com>
5496
5497 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5498 Look for ../../gdb, for fullname.exp.
0b5574da 5499
5be4dfca
JK
55002011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5501 Pedro Alves <pedro@codesourcery.com>
5502
5503 * cli/cli-cmds.c (shell_escape): Use waitpid.
5504 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5505
316a8b21
TG
55062011-06-07 Tristan Gingold <gingold@adacore.com>
5507
5508 * xcoffread.c (dwarf2_xcoff_names): New variable.
5509 (aix_process_linenos): Add a guard.
5510 (xcoff_symfile_finish): Free dwarf2.
5511 (xcoff_initial_scan): Add dwarf2 support.
5512
3dd5b83d
PA
55132011-06-06 Pedro Alves <pedro@codesourcery.com>
5514
5515 * infcall.c (run_inferior_call): Don't mask async. Instead force
5516 a synchronous wait, if the target can async.
5517
5518 * target.h (struct target_ops): Delete to_async_mask.
5519 (target_async_mask): Delete.
5520 * target.c (update_current_target): Delete references to to_async_mask.
5521 * linux-nat.c (linux_nat_async_mask_value): Delete.
5522 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5523 to linux_nat_async_mask_value.
5524 (linux_nat_async_mask): Delete.
5525 (linux_nat_async, linux_nat_close): Remove references to
5526 linux_nat_async_mask_value.
5527 * record.c (record_async_mask_value): Delete.
5528 (record_async): Remove references to record_async_mask_value.
5529 (record_async_mask): Delete.
5530 (record_can_async_p, record_is_async_p): Remove references to
5531 record_async_mask_value.
5532 (init_record_ops, init_record_core_ops): Remove references to
5533 record_async_mask.
5534 * remote.c (remote_async_mask_value): Delete.
5535 (init_remote_ops): Remove reference to remote_async_mask.
5536 (remote_can_async_p, remote_is_async_p): Remove references to
5537 remote_async_mask_value.
5538 (remote_async): Remove references to remote_async_mask_value.
5539 (remote_async_mask): Delete.
5540
5541 * infrun.c (fetch_inferior_event): Don't claim registers changed
5542 if the current thread is already not executing.
5543
64b9b334
JB
55442011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5545
5546 From Stephen Kitt <steve@sk2.org>
5547 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5548 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5549
325663dc
JB
55502011-06-03 Joel Brobecker <brobecker@adacore.com>
5551
5552 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5553 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5554
8cf64490
TT
55552011-06-03 Tom Tromey <tromey@redhat.com>
5556
5557 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5558 code fields.
5559 * python/py-exitedevent.c (create_exited_event_object): Change
5560 type of 'exit_code'. Optionally add exit_code attribute.
5561 (emit_exited_event): Change type of 'exit_code'.
5562 * python/py-event.h (emit_exited_event): Update.
5563 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5564 * infrun.c (handle_inferior_event): Set exit code fields on
5565 inferior.
5566 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5567 fields.
5568 * inferior.c (exit_inferior_1): Initialize new fields.
5569
8ddd9a20
TT
55702011-06-03 Tom Tromey <tromey@redhat.com>
5571
5572 * dwarf2expr.c (get_signed_type): New function.
5573 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5574
8dfd1e6d
KS
55752011-06-02 Keith Seitz <keiths@redhat.com>
5576
5577 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5578
65fdb766
PA
55792011-06-02 Pedro Alves <pedro@codesourcery.com>
5580
5581 * top.h (simplified_command_loop): Delete declaration.
5582
f4b8c29b
MF
55832011-06-01 Mike Frysinger <vapier@gentoo.org>
5584
5585 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5586 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5587
1706c199
YQ
55882011-06-01 Yao Qi <yao@codesourcery.com>
5589
5590 * objfiles.h (obj_section_addr): Update reference to objfile from
5591 `abfd' to `obfd'.
5592 (obj_section_endaddr): Likewise.
5593
d19cd713 55942011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5595
5596 * MAINTAINERS: Update my email address and affiliation. Also
5597 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5598
e8eb7bc5
KS
55992010-05-31 Keith Seitz <keiths@redhat.com>
5600
5601 PR c++/12750
5602 * linespec.c (get_search_block): New function.
5603 (find_methods): Add FILE_SYMTATB parameter and use it and
5604 get_search_block to pass an appropriate block to
5605 lookup_symbol_in_namespace.
5606 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5607 Check if *ARGPTR starts with a filename first.
5608 If it does, call locate_first_half again to locate the next
5609 "first half" of the linespec.
5610 Pass FILE_SYMTATB to decode_objc and decode_compound.
5611 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5612 (locate_first_half): Stop on the first colon seen.
5613 (decode_compound): Add FILE_SYMTAB parameter.
5614 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5615 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5616 get_search_block with lookup_symbol.
5617 (find_method): Add FILE_SYMTAB parameter and pass it to
5618 find_methods.
5619 (decode_objc): Use get_search_block.
5620
2b1dbab0
KS
56212010-05-31 Keith Seitz <keiths@redhat.com>
5622
5623 PR symtab/12704
5624 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5625 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5626 and CP_ANONYMOUS_NAMESPACE_LEN.
5627 (cp_is_anonymous): Likewise.
5628 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5629 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5630 * dwarf2read.c (namespace_name): Likewise.
5631 (fixup_partial_die): Likewise.
5632 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5633 seen in the input, keep it.
5634
6d549500
PA
56352011-05-30 Pedro Alves <pedro@codesourcery.com>
5636
5637 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5638 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5639 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5640 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5641 * remote.c (_initialize_remote): Register
5642 async_remote_interrupt_twice directly as
5643 sigint_remote_twice_token event.
5644
395bff70
PA
56452011-05-30 Pedro Alves <pedro@codesourcery.com>
5646
5647 * target.h (enum inferior_event_type): Delete INF_ERROR.
5648 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5649
97224164
PA
56502011-05-30 Pedro Alves <pedro@codesourcery.com>
5651
5652 * interps.c (interp_set): Don't cancel continuations.
5653
07e78767
JK
56542011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5657
fa4cd53f
PA
56582011-05-30 Pedro Alves <pedro@codesourcery.com>
5659
5660 * continuations.h (continuation_ftype): Add `err' parameter.
5661 Document parameters.
5662 (do_all_continuations, do_all_continuations_thread)
5663 (do_all_intermediate_continuations)
5664 (do_all_intermediate_continuations_thread)
5665 (do_all_inferior_continuations): Add `err' parameter.
5666 * continuations.c (do_my_continuations_1, do_my_continuations)
5667 (do_all_inferior_continuations, do_all_continuations_ptid)
5668 (do_all_continuations_thread_callback)
5669 (do_all_continuations_thread, do_all_continuations)
5670 (do_all_intermediate_continuations_thread_callback)
5671 (do_all_intermediate_continuations_thread)
5672 (do_all_intermediate_continuations): Add `err' parameter, and pass
5673 it down all the way to the continuations proper.
5674 * inf-loop.c (inferior_event_handler): If fetching an inferior
5675 event throws an error, don't pop the target, and still call the
5676 continuations, but with `err' set. Adjust all other continuation
5677 calls.
5678 * breakpoint.c (until_break_command_continuation): Add `err'
5679 parameter.
5680 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5681 issue another step if `err' is set.
5682 (struct until_next_continuation_args): New.
5683 (until_next_continuation): Add `err' parameter. Adjust.
5684 (until_next_command): Adjust.
5685 (struct finish_command_continuation_args): Add `thread' field.
5686 (finish_command_continuation): Add `err' parameter. Handle it.
5687 (finish_forward): Adjust.
5688 (attach_command_continuation): Add `err' parameter. Handle it.
5689 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5690 cancel the continuations.
5691 * interps.c (interp_set): Adjust to cancel the continuations.
5692 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5693 continuations rather than discarding.
5694 (free_thread): Don't clear thread inferior resources here.
5695 (delete_thread_1): Do it here instead. And do it before removing
5696 the thread from the threads list. Tag the thread as exited before
5697 clearing thread inferior resources.
5698
c2949be0
JB
56992011-05-30 Joel Brobecker <brobecker@adacore.com>
5700
5701 * infcall.c (call_function_by_hand): Rephrase error message.
5702
619cebe8
PA
57032011-05-27 Pedro Alves <pedro@codesourcery.com>
5704
5705 * defs.h (struct thread_info, struct inferior): Delete forward
5706 declarations.
5707 * breakpoint.h (struct thread_info): New forward declaration.
5708 * observer.sh (struct inferior): New forward declaration.
5709 * python/python-internal.h (struct inferior): New forward
5710 declaration.
5711
be34f849
PA
57122011-05-27 Pedro Alves <pedro@codesourcery.com>
5713
5714 * defs.h (struct continuation, continuation_ftype)
5715 (continuation_free_arg_ftype, add_continuation)
5716 (do_all_continuations, do_all_continuations_thread)
5717 (discard_all_continuations, discard_all_continuations_thread)
5718 (add_intermediate_continuation, do_all_intermediate_continuations)
5719 (do_all_intermediate_continuations_thread)
5720 (discard_all_intermediate_continuations)
5721 (discard_all_intermediate_continuations_thread)
5722 (add_inferior_continuation, do_all_inferior_continuations)
5723 (discard_all_inferior_continuations): Move to ...
5724 * continuations.h: ... this new file.
5725 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5726 infcmd.c, inferior.c, infrun.c, interps.c: Include
5727 continuations.h.
5728
432b4d03
JK
57292011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5730 Doug Evans <dje@google.com>
5731
5732 Fix PR 10970, PR 12702.
5733 * linux-nat.c (linux_lwp_is_zombie): New function.
5734 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5735 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5736
b0f260d6
PA
57372011-05-27 Pedro Alves <pedro@codesourcery.com>
5738
5739 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5740 typedefs.
5741 (add_continuation, add_intermediate_continuation)
5742 (add_inferior_continuation): Use them.
5743 * continuations.c (struct continuation): Use them.
5744 (make_continuation_ftype): Delete.
5745 (make_continuation, add_inferior_continuation, add_continuation)
5746 (add_intermediate_continuation): Use continuation_ftype and
5747 continuation_free_arg_ftype. Rename parameters to shorter names.
5748
af1e9a32
PA
57492011-05-27 Pedro Alves <pedro@codesourcery.com>
5750
5751 * continuations.c (make_continuation): Make it return void.
5752 (do_my_continuations): Rename to ...
5753 (do_my_continuations_1): ... this. Remove old_chain parameter and
5754 adjust.
5755 (do_my_continuations): New.
5756 (discard_my_continuations): Rename to ...
5757 (discard_my_continuations_1): ... this. Remove old_chain
5758 parameter and adjust.
5759 (discard_my_continuations): New.
5760 (add_inferior_continuation): Simplify.
5761 (do_all_inferior_continuations): Reimplement on top
5762 do_my_continuations.
5763 (discard_all_inferior_continuations): Simplify.
5764 (add_continuation): Simplify.
5765 (do_all_continuations_ptid): Simplify.
5766 (discard_all_continuations_thread_callback): Simplify.
5767 (add_intermediate_continuation): Simplify.
5768 (discard_all_intermediate_continuations_thread_callback):
5769 Simplify.
5770
50c0c017
PA
57712011-05-27 Pedro Alves <pedro@codesourcery.com>
5772
5773 * utils.c (struct continuation, add_continuation)
5774 (add_inferior_continuation)
5775 (do_all_inferior_continuations, discard_all_inferior_continuations)
5776 (restore_thread_cleanup, do_all_continuations_ptid)
5777 (do_all_continuations_thread_callback)
5778 (do_all_continuations_thread, do_all_continuations)
5779 (discard_all_continuations_thread_callback)
5780 (discard_all_continuations_thread, discard_all_continuations)
5781 (add_intermediate_continuation)
5782 (do_all_intermediate_continuations_thread_callback)
5783 (do_all_intermediate_continuations_thread)
5784 (do_all_intermediate_continuations)
5785 (discard_all_intermediate_continuations_thread_callback)
5786 (discard_all_intermediate_continuations_thread)
5787 (discard_all_intermediate_continuations): Move to ...
5788 * continuations.c: ... this new file, and adjust to no longer
5789 implement continuations on top of cleanups.
5790 * Makefile.in (SFILES): Add continuations.c.
5791 (COMMON_OBS): Add continuations.o.
5792
d8b34453
PA
57932011-05-26 Pedro Alves <pedro@codesourcery.com>
5794
5795 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5796 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5797 Internal error on invalid values.
5798 * reverse.c: Don't handle EXEC_ERROR.
5799 * mi/mi-main.c: Don't handle EXEC_ERROR.
5800
32231432
PA
58012011-05-26 Pedro Alves <pedro@codesourcery.com>
5802
5803 * record.c: Include event-loop.h, inf-loop.h.
5804 (record_beneath_to_async): New global.
5805 (tmp_to_async): New global.
5806 (record_async_inferior_event_token): New global.
5807 (record_open_1): Don't error out if async is enabled.
5808 (record_open): Handle to_async. Create an async event source in
5809 the event loop.
5810 (record_close): Delete the async event source.
5811 (record_resumed): New global.
5812 (record_execution_dir): New global.
5813 (record_resume, record_core_resume): Set them. Register the
5814 target on the event loop.
5815 (record_wait): Rename to ...
5816 (record_wait_1): ... this. Add more debug output. Handle
5817 TARGET_WNOHANG, and the target beneath returning
5818 TARGET_WAITKIND_IGNORE.
5819 (record_wait): Reimplement on top of record_wait_1.
5820 (record_async_mask_value): New global.
5821 (record_async, record_async_mask, record_can_async_p)
5822 (record_is_async_p, record_execution_direction): New functions.
5823 (init_record_ops, init_record_core_ops): Install new methods.
5824 * infrun.c (fetch_inferior_event): Temporarily switch the global
5825 execution direction to the direction the target was going.
5826 (execution_direction): Change type to int.
5827 * target.c (default_execution_direction): New function.
5828 (update_current_target): Inherit and de_fault
5829 to_execution_direction.
5830 * target.h (struct target_ops) <to_execution_direction>: New
5831 field.
5832 (target_execution_direction): New macro.
5833 * inferior.h (execution_direction): Change type to int.
5834
949dc678
PA
58352011-05-26 Pedro Alves <pedro@codesourcery.com>
5836
5837 * infcall.c (call_function_by_hand): Don't allow calling functions
5838 in reverse execution mode.
5839
c13bd2b5
PA
58402011-05-26 Pedro Alves <pedro@codesourcery.com>
5841
5842 * infcmd.c (finish_command): Allow async finish in reverse.
5843
6938fd34
YQ
58442011-05-26 Yao Qi <yao@codesourcery.com>
5845
5846 * gdb_thread_db.h: Delete. Move to ...
5847 * common/gdb_thread_db.h: ... here.
5848
9da8c2a0
PA
58492011-05-26 Pedro Alves <pedro@codesourcery.com>
5850
5851 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5852 function's entry point instead of a manually managed momentary
5853 breakpoint, and only ever issue one proceed call.
5854 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5855 doing a reverse-finish, switch to stepi mode, to do another step.
5856 (insert_step_resume_breakpoint_at_sal): Make public.
5857 (normal_stop): No need to save function value return registers if
5858 going reverse.
5859 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5860
2c03e5be
PA
58612011-05-26 Pedro Alves <pedro@codesourcery.com>
5862
5863 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5864 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5865 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5866 at the end.
5867 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5868 step-resume breakpoints.
5869 (print_it_typical): Handle bp_hp_step_resume.
5870 (bpstat_what): Ditto.
5871 (bptype_string): Ditto.
5872 (print_one_breakpoint_location): Ditto.
5873 (allocate_bp_location): Ditto.
5874 (mention): Ditto.
5875 (breakpoint_re_set_one): Ditto.
5876 * infrun.c (handle_inferior_event): Adjust. Split
5877 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5878 BPSTAT_WHAT_HP_STEP_RESUME.
5879 (insert_step_resume_breakpoint_at_sal): Rename to ...
5880 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5881 parameter. Handle it.
5882 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5883 insert_step_resume_breakpoint_at_sal_1.
5884 (insert_step_resume_breakpoint_at_frame): Rename to ...
5885 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5886 set a high-priority step-resume breakpoint.
5887 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5888 (insert_step_resume_breakpoint_at_caller): Ditto.
5889
51be5b68
PA
58902011-05-26 Pedro Alves <pedro@codesourcery.com>
5891
5892 * breakpoint.c (iterate_over_related_breakpoints): New.
5893 (do_map_delete_breakpoint): New.
5894 (delete_command): Pass do_map_delete_breakpoint to
5895 map_breakpoint_numbers.
5896 (do_disable_breakpoint): New.
5897 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5898 breakpoints.
5899 (do_enable_breakpoint): Rename to ...
5900 (enable_breakpoint_disp): ... this.
5901 (enable_breakpoint): Adjust.
5902 (do_enable_breakpoint): New.
5903 (enable_once_breakpoint): Delete.
5904 (do_map_enable_breakpoint): New.
5905 (do_map_enable_once_breakpoint): New.
5906 (enable_once_command, enable_delete_command)
5907 (delete_trace_command): Iterate over the breakpoint's related
5908 breakpoints.
5909
4a1be8d2
PA
59102011-05-26 Pedro Alves <pedro@codesourcery.com>
5911
5912 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5913 for ALPHA_ZERO_REGNUM.
5914 (alpha_supply_int_regs): Explicitly supply zero as the value for
5915 ALPHA_ZERO_REGNUM in the register cache.
5916 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5917
59d70315
YQ
59182011-05-26 Yao Qi <yao@codesourcery.com>
5919
5920 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5921
251d32d9
TG
59222011-05-26 Tristan Gingold <gingold@adacore.com>
5923
5924 * symfile.h (struct dwarf2_section_names): New type.
5925 (struct dwarf2_debug_sections): New type.
5926 (dwarf2_has_info): Add parameter.
5927 * dwarf2read.c (dwarf2_elf_names): New variable.
5928 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5929 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5930 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5931 (dwarf2_has_info): Add names parameter. Pass names
5932 to dwarf2_locate_sections.
5933 (section_is_p): Rewrite using the names parameter.
5934 (dwarf2_locate_sections): Use section names from the names parameter.
5935 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5936 * elfread.c (read_psyms): Ditto.
5937 * machoread.c (macho_symfile_read): Ditto.
5938
652c71b4
AS
59392011-05-25 Andreas Schwab <schwab@redhat.com>
5940
5941 PR gdb/8677
5942 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5943
f17170e5
KS
59442011-05-24 Keith Seitz <keiths@redhat.com>
5945
5946 PR breakpoint/12803
5947 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5948 (decode_compound): Unconditionally call keep_name_info.
5949
cdac0397
PA
59502011-05-24 Pedro Alves <pedro@codesourcery.com>
5951
5952 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5953 scope, clear its command list.
5954 (map_breakpoint_numbers): Don't walk the related breakpoints list
5955 of each breakpoint.
5956
91d4fe3f
TT
59572011-05-24 Tom Tromey <tromey@redhat.com>
5958
5959 * MAINTAINERS: Move Jim Blandy to past maintainers.
5960
3017a003
TG
59612011-05-24 Tristan Gingold <gingold@adacore.com>
5962
5963 * symfile.h (enum dwarf2_section_enum): New type.
5964 (dwarf2_get_section_info): New prototype.
5965 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5966 section_name by sect. Use a switch to select the info.
5967 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5968 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5969
c91c8c16
PA
59702011-05-24 Pedro Alves <pedro@codesourcery.com>
5971
5972 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5973 shared library event breakpoint if there's no execution.
5974
77bc418a
TJB
59752011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5976
5977 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5978 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5979
c50491a7
TT
59802011-05-23 Tom Tromey <tromey@redhat.com>
5981
5982 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5983 NULL.
5984
6d64e6d4
DE
59852011-05-23 Doug Evans <dje@google.com>
5986
5987 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5988 entry for RuntimeError to doc string.
5989
2067c8d4
JG
59902011-05-23 Jerome Guitton <guitton@adacore.com>
5991
5992 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5993 sequence for probing loops.
5994
b136cd05
PA
59952011-05-23 Pedro Alves <pedro@codesourcery.com>
5996
5997 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5998 comment.
5999
22e74ef9
MK
60002011-05-21 Mark Kettenis <kettenis@gnu.org>
6001
6002 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6003 zero as the value for %g0 in the register cache.
6004 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6005 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6006
842951eb
PA
60072011-05-20 Pedro Alves <pedro@codesourcery.com>
6008
6009 * infrun.c (proceed): Set previous_inferior_ptid here.
6010 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6011 inferior_ptid, not null_ptid.
6012 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6013 (fetch_inferior_event): Nor here.
6014
46cf51e6
PA
60152011-05-20 Pedro Alves <pedro@codesourcery.com>
6016
6017 * inf-loop.c (inferior_event_handler): Only output a message if
6018 verbose.
6019
29ef4c46
LM
60202011-05-20 Luis Machado <lgustavo@codesourcery.com>
6021
6022 * MAINTAINERS: Update my e-mail address.
6023
f148b27e
PA
60242011-05-20 Pedro Alves <pedro@codesourcery.com>
6025
6026 * infrun.c (proceed): Switch the inferior event loop to
6027 INF_EXEC_COMPLETE if the target refused to resume from a
6028 vfork/fork.
6029
09cee04b
PA
60302011-05-20 Pedro Alves <pedro@codesourcery.com>
6031
6032 * infcmd.c: Include "inf-loop.h".
6033 (step_once): When stepping into an inline subroutine, pretend the
6034 target has run. If the target can async, switch the inferior
6035 event loop to INF_EXEC_COMPLETE.
6036 * inferior.h (user_visible_resume_ptid): Declare.
6037 * infrun.c (user_visible_resume_ptid): New function, factored out
6038 from `resume'.
6039 (resume): Use it.
6040 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6041 that the current thread is running. Merge async and sync
6042 branches.
6043
751b8ce1
PA
60442011-05-20 Pedro Alves <pedro@codesourcery.com>
6045
6046 * infcmd.c (step_1): Simplify synchronous case.
6047
e93a69ed
PA
60482011-05-20 Pedro Alves <pedro@codesourcery.com>
6049
6050 * tracepoint.c: Include exceptions.h.
6051 (TFILE_PID): Move higher in file.
6052 (tfile_open): Delay pushing the tfile target until we're assured
6053 the tfile header is present in the file. Wrap reading the initial
6054 newline-terminated lines in TRY_CATCH. Pop the target if the
6055 initial setup failed. Add the tfile's thread immediately
6056 aftwards, before any non-essential setup. Don't skip
6057 post_create_inferior if there are no traceframes present in the
6058 file.
6059 (tfile_close): Remove redundant check for null before xfree call.
6060 (tfile_thread_alive): New function.
6061 (init_tfile_ops): Register it as to_thread_alive callback.
6062
6823e2b1
PA
60632011-05-20 Pedro Alves <pedro@codesourcery.com>
6064
6065 * tracepoint.c (tfile_open): Delete #if 0'd code.
6066
b3c8eb43
JK
60672011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 Fix -readnow for -gdwarf-4 unused type units.
6070 * dwarf2read.c (struct signatured_type): Remove the field offset.
6071 (create_signatured_type_table_from_index): Remove its initialization.
6072 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6073 instead. Add a complaint call.
6074 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6075 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6076 (lookup_signatured_type_at_offset, read_signatured_type)
6077 (write_one_signatured_type): Update the field for per_cu.
6078
310afc76
TT
60792011-05-19 Tom Tromey <tromey@redhat.com>
6080
6081 * python/py-inferior.c (python_inferior_exit): Use
6082 target_gdbarch.
6083 (python_on_resume): Likewise.
6084
cf6c5ffb
TT
60852011-05-19 Matt Rice <ratmice@gmail.com>
6086
6087 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6088
fb80a3c5
HZ
60892011-05-19 Hui Zhu <teawater@gmail.com>
6090
6091 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6092
3672b1be
HZ
60932011-05-19 Hui Zhu <teawater@gmail.com>
6094
6095 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6096
ff355380
TT
60972011-05-18 Tom Tromey <tromey@redhat.com>
6098
6099 * dwarf2read.c (dwarf2_add_field): Constify.
6100 * value.c (value_static_field): Constify.
6101 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6102 Now const.
6103 * ax-gdb.c (gen_static_field): Constify
6104
ed731959
JK
61052011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 * linux-nat.c (kill_callback): Use SIGKILL first.
6108
967cff16
JB
61092011-05-18 Joel Brobecker <brobecker@adacore.com>
6110
6111 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6112
1d06ead6
TT
61132011-05-18 Tom Tromey <tromey@redhat.com>
6114
6115 * value.c (value_fn_field): Constify.
6116 * symtab.c (gdb_mangle_name): Constify.
6117 * stabsread.c (update_method_name_from_physname): Make 'physname'
6118 argument const.
6119 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6120 const. Use explicit fputc_filtered loop.
6121 (pascal_type_print_base): Constify.
6122 * p-lang.h (pascal_type_print_method_args): Update.
6123 * linespec.c (add_matching_methods): Constify.
6124 (add_constructors): Likewise.
6125 * jv-typeprint.c (java_type_print_base): Constify.
6126 * gdbtypes.h (struct cplus_struct_type)
6127 <fn_fieldlist.fn_field.physname>: Now const.
6128 * dwarf2read.c (compute_delayed_physnames): Constify.
6129 (dwarf2_add_member_fn): Likewise.
6130 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6131
0d9a9a5f
PA
61322011-05-18 Pedro Alves <pedro@codesourcery.com>
6133
6134 * infrun.c (resume): Mention which is the current thread, and its
6135 current PC in debug output.
6136 (prepare_to_proceed): Mention the thread switching in debug
6137 output.
6138
05386e9e
TT
61392011-05-18 Tom Tromey <tromey@redhat.com>
6140
6141 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6142 path check. Use xmalloc and cleanups.
6143 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6144
ee86786c
TT
61452011-05-17 Tom Tromey <tromey@redhat.com>
6146
6147 * cp-valprint.c (cp_print_value_fields): Catch errors from
6148 value_static_field.
6149
9ff3b74f
TT
61502011-05-17 Tom Tromey <tromey@redhat.com>
6151
6152 * dwarf2read.c (dwarf2_get_die_type): Call
6153 get_die_type_at_offset.
6154 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6155 get_base_type function.
6156
cd3da28e
PA
61572011-05-17 Tomas Martinec <fyzmat@gmail.com>
6158
6159 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6160 trap_expected.
6161
fd20d931
DE
61622011-05-16 Doug Evans <dje@google.com>
6163
6164 * python/py-auto-load.c (source_section_scripts): Mention objfile
6165 name in warning.
6166
75fc9810
DE
61672011-05-15 Doug Evans <dje@google.com>
6168
290351b8
DE
6169 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6170 (try_thread_db_load_from_pdir): Call it. If unable to find
6171 libthread_db in directory of libpthread, see if we're looking at
6172 the separate-debug-info copy.
6173
75fc9810
DE
6174 * python/py-autoload.c (print_script): Print "Missing" instead of
6175 "No" for missing scripts.
6176 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6177
9f7bc587
DE
61782011-05-13 Doug Evans <dje@google.com>
6179
6180 * ui-file.c (stdio_file_write_async_safe): Add comment.
6181
093cee7d
HZ
61822011-05-14 Hui Zhu <teawater@gmail.com>
6183
6184 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6185
dbaefcf7
DE
61862011-05-13 Doug Evans <dje@google.com>
6187
98a5dd13
DE
6188 Support $pdir and $sdir in libthread-db-search-path.
6189 * NEWS: Mention $sdir,$pdir.
6190 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6191 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6192 (try_thread_db_load_from_sdir): New function.
6193 (try_thread_db_load_from_dir): New function.
6194 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6195 system directories if search of libthread-db-search-path fails,
6196 that is now done via $sdir.
6197 (has_libpthread): New function.
6198 (thread_db_load): Remove search for libthread_db in directory of
6199 libpthread, that is now done via $pdir.
6200
dbaefcf7
DE
6201 * NEWS: Mention "info auto-load-scripts".
6202 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6203 script_not_found_warning_printed.
6204 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6205 all callers updated. Initialize script_not_found_warning_printed.
6206 (get_auto_load_pspace_data_for_loading): New function.
6207 (maybe_add_script): New function.
6208 (source_section_scripts): Simplify. Only print one warning regardless
6209 of the number of auto-load scripts not found.
6210 (clear_section_scripts): Clear script_not_found_warning_printed.
6211 (auto_load_objfile_script): Record script in hash table.
6212 (count_matching_scripts): New function.
6213 (maybe_print_script): Renamed from maybe_print_section_script, all
6214 callers updated. Rewrite to use ui_out_*.
6215 (info_auto_load_scripts): Renamed from
6216 maintenance_print_section_scripts, all callers updated.
6217 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6218 renamed as "info auto-load-scripts".
6219
9930639c
TT
62202011-05-13 Tom Tromey <tromey@redhat.com>
6221
6222 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6223 (read_sleb128): Likewise.
6224
06826322
TT
62252011-05-13 Tom Tromey <tromey@redhat.com>
6226
6227 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6228 offset display.
6229
01124a23
DE
62302011-05-13 Doug Evans <dje@google.com>
6231
6232 * linux-nat.c (debug_linux_nat_async): Delete.
6233 Replace all references to use debug_linux_nat instead.
6234 (show_debug_linux_nat_async): Delete.
6235 (sigchld_handler): Call ui_file_write_async_safe instead of
6236 fprintf_unfiltered.
6237 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6238 * ui-file.c (struct ui_file): New member to_write_async_safe.
6239 (null_file_write_async_safe): New function.
6240 (ui_file_write_async_safe): New function.
6241 (set_ui_file_write_async_safe): New function.
6242 (ui_file_new): Initialize to_write_async_safe.
6243 (stdio_file_write_async_safe): New function.
6244 (struct stdio_file): New member fd.
6245 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6246 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6247 fileno.
01124a23
DE
6248 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6249 (set_ui_file_write_async_safe): Declare.
6250 (ui_file_write_async_safe): Declare.
6251
72fc29ff
TT
62522011-05-13 Tom Tromey <tromey@redhat.com>
6253
6254 * utils.c (do_value_free): New function.
6255 (make_cleanup_value_free): Likewise.
6256 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6257 freeing correctly.
6258 (dwarf2_loc_desc_needs_frame): Call
6259 make_cleanup_value_free_to_mark.
6260 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6261 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6262 value_free_to_mark.
6263 (new_dwarf_expr_context): Don't call value_mark.
6264 * dwarf2-frame.c (execute_stack_op): Call
6265 make_cleanup_value_free_to_mark.
6266 * defs.h (make_cleanup_value_free): Declare.
6267
028d0ed5
TJB
62682011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6269
6270 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6271 prepare_execute_command.
6272 * top.c (prepare_execute_command): Return cleanup.
6273 (execute_command): Use cleanup from prepare_execute_command.
6274 * top.h (prepare_execute_command): Change prototype to return
6275 cleanup.
6276 * defs.h (struct value): Add opaque declaration.
6277 (make_cleanup_value_free_to_mark): Add prototype.
6278 * utils.c (do_value_free_to_mark): New function.
6279 (make_cleanup_value_free_to_mark): Likewise.
6280
b087e0ed
TT
62812011-05-12 Tom Tromey <tromey@redhat.com>
6282
6283 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6284 cast left-hand-side to unsigned.
6285
8a9b8146
TT
62862011-05-12 Tom Tromey <tromey@redhat.com>
6287
6288 PR gdb/12617:
6289 * value.h (value_from_contents): Declare.
6290 * value.c (value_from_contents): New function.
6291 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6292 (dwarf2_get_die_type): New function.
6293 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6294 (allocate_piece_closure): Acquire reference to values.
6295 (read_pieced_value): Update for value-based expressions.
6296 (write_pieced_value): Likewise.
6297 (free_pieced_value_closure): Call value_free as needed.
6298 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6299 Update for value-based expressions.
6300 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6301 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6302 <get_base_type>: New field.
6303 (struct dwarf_expr_piece) <v.value>: Change type.
6304 <v.regno>: New field.
6305 (struct dwarf_expr_context) <mark>: New field.
6306 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6307 (dwarf_expr_pop, dwarf_expr_push): Remove.
6308 (dwarf_expr_push_address): Declare.
6309 * dwarf2expr.c (dwarf_arch_cookie): New global.
6310 (struct dwarf_gdbarch_types): New.
6311 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6312 functions.
6313 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6314 static.
6315 (dwarf_expr_push_address): New function.
6316 (dwarf_expr_pop): Now static.
6317 (dwarf_expr_fetch): Change return type.
6318 (dwarf_require_integral): New function.
6319 (dwarf_expr_fetch): Simplify.
6320 (add_piece): Update.
6321 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6322 functions.
6323 (execute_stack_op) <sign_ext>: Remove.
6324 Use values for DWARF stack.
6325 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6326 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6327 New cases.
6328 (_initialize_dwarf2expr): New function.
6329 (add_piece): Update.
6330 (new_dwarf_expr_context): Set new field.
6331 (free_dwarf_expr_context): Call value_free_to_mark.
6332 * dwarf2-frame.c (no_base_type): New function.
6333 (execute_stack_op): Set get_base_type field. Update.
6334
e8d28ef4
TT
63352011-05-12 Tom Tromey <tromey@redhat.com>
6336
6337 * dwarf2read.c (read_common_block): Fix formatting.
6338
d248b706
KY
63392011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6340
6341 * breakpoint.c (disable_breakpoint): Disable all locations
6342 associated with a tracepoint on target if a trace experiment is
6343 running.
6344 (disable_command): Disable a specific tracepoint location on target if
6345 a trace experiment is running.
6346 (do_enable_breakpoint): Enable all locations associated with a
6347 tracepoint on target if a trace experiment is running.
6348 (enable_command) Enable a specific tracepoint location on target if a
6349 trace experiment is running.
6350 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6351 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6352 to_disable_tracepoint.
6353 * target.h: Add declaration of struct bp_location.
6354 (struct target_ops): Add new functions
6355 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6356 to_disable_tracepoint to target operations.
6357 (target_supports_enable_disable_tracepoint): New macro.
6358 (target_enable_tracepoint): New macro.
6359 (target_disable_tracepoint): New macro.
6360 * remote.c (struct remote_state): Add new field.
6361 (remote_enable_disable_tracepoint_feature): New.
6362 (remote_protocol_features): Add new entry.
6363 (remote_supports_enable_disable_tracepoint): New.
6364 (remote_enable_tracepoint): New.
6365 (remote_disable_tracepoint): New.
6366 (init_remote_ops): Add remote_enable_tracepoint,
6367 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6368 to remote operations.
6369 * tracepoint.c (start_tracing): Allow tracing to start without any
6370 tracepoints enabled with just a warning if they can be re-enabled
6371 later.
6372 * NEWS: Add news item for the new behaviour of the enable and disable
6373 GDB commands when applied to tracepoints.
6374 Add news items for the new remote packets QTEnable and QTDisable.
6375
cc88a640
JK
63762011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6377
6378 * config.in: Regenerate.
6379 * configure: Regenerate.
6380 * configure.ac <--with-system-readline> (for readline_echoing_p):
6381 Remove the test.
6382 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6383 (tui_old_rl_echoing_p): ... here.
6384 (tui_setup_io): Rename extern declaration readline_echoing_p to
6385 _rl_echoing_p. Adjust assignments for the both renames.
6386
1f84b619
TJB
63872011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6388
6389 * symtab.c (lookup_symtab): Run cleanup before returning.
6390
74ac6d43
TT
63912011-05-11 Tom Tromey <tromey@redhat.com>
6392
6393 * dwarf2read.c (handle_data_member_location): New function.
6394 (dwarf2_add_field): Use it.
6395 (read_common_block): Likewise.
6396
5488dafb
JK
63972011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6398
6399 Make addrs->SECTINDEX always defined.
6400 * symfile.c (relative_addr_info_to_section_offsets): Check for
6401 SECTINDEX -1, not for zero ADDR.
6402 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6403 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6404 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6405 on its validity.
6406
84e578fb
DE
64072011-05-10 Doug Evans <dje@google.com>
6408
2471d008
DE
6409 * linux-thread-db.c: Whitespace cleanup.
6410 (try_thread_db_load_1): Fix comment.
6411
84e578fb
DE
6412 * linux-thread-db.c (set_libthread_db_search_path): New function.
6413 (_initialize_thread_db): Add setter for libthread-db-search-path.
6414
673c2bbe
DE
64152011-05-09 Doug Evans <dje@google.com>
6416
478aac75
DE
6417 * NEWS: Mention --with-iconv-bin.
6418 * configure.ac: New option --with-iconv-bin.
6419 * configure: Regenerate.
6420 * config.in: Regenerate.
6421 * defs.h (relocate_gdb_directory): Declare.
6422 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6423 removed progname parameter, and exported. All callers updated.
6424 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6425
673c2bbe
DE
6426 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6427 adding missing call to restore_child_signals_mask.
6428
e4c8541f
PA
64292011-05-09 Pedro Alves <pedro@codesourcery.com>
6430
6431 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6432 parameter.
6433 * infrun.c (proceed, start_remote): Adjust.
6434 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6435 and adjust to not handle it.
6436 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6437 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6438 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6439 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6440 * windows-nat.c (do_initial_windows_stuff): Adjust.
6441 * infcmd.c (attach_command): Adjust.
6442 (notice_new_inferior): Adjust.
6443
a536c6d7
UW
64442011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6445
6446 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6447 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6448 * spu-tdep.c (op_selb): Use correct value.
6449
7845b013
UW
64502011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6451
6452 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6453 "parent" parameter to symbol_file_add_from_bfd call.
6454
9c06b0b4
TJB
64552011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6456 Thiago Jung Bauermann <bauerman@br.ibm.com>
6457
6458 Implement support for PowerPC BookE masked watchpoints.
6459 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6460 section.
6461 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6462 method. Initialize to NULL in all existing breakpoint_ops instances.
6463 (struct breakpoint) <hw_wp_mask>: New field.
6464 * breakpoint.c (is_masked_watchpoint): Add prototype.
6465 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6466 breakpoint's breakpoint_ops.works_in_software_mode if available.
6467 (watchpoints_triggered): Handle the case of a hardware masked
6468 watchpoint trigger.
6469 (watchpoint_check): Likewise.
6470 (works_in_software_mode_watchpoint): New function.
6471 (insert_masked_watchpoint, remove_masked_watchpoint)
6472 (resources_needed_masked_watchpoint)
6473 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6474 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6475 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6476 functions.
6477 (masked_watchpoint_breakpoint_ops): New structure.
6478 (watch_command_1): Check for the existence of the `mask' parameter.
6479 Set b->ops according to the type of hardware watchpoint being created.
6480 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6481 (ppc_linux_remove_mask_watchpoint)
6482 (ppc_linux_masked_watch_num_registers): New functions.
6483 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6484 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6485 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6486 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6487 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6488 (target_masked_watch_num_registers): New functions.
6489 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6490 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6491 methods.
6492 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6493 (target_masked_watch_num_registers): Add prototypes.
6494
8be455d7
JK
64952011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6496
6497 PR 12573
6498 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6499 (producer_is_gcc_ge_4_0): New function.
6500 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6501 symtab->language code.
6502 (var_decode_location): Set cu->has_loclist.
6503 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6504 skip. Intialize force_skip from locations_valid. Move the prologue
6505 skipping code into two passes.
6506 * symtab.h (struct symtab): Make the primary field a bitfield. New
6507 field locations_valid.
6508
d8228535
JK
65092011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6512 (classify_inner_name): Call cp_lookup_nested_type with
6513 yylval.tsym.type.
6514 * cp-namespace.c (cp_lookup_nested_type): New variable
6515 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6516 type_name_no_tag_or_error with saved_parent_type.
6517 * dwarf2read.c (load_partial_dies): Read in any children of
6518 DW_TAG_typedef with complaint in such case.
6519 * gdbtypes.c (type_name_no_tag_or_error): New function.
6520 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6521 * valops.c (destructor_name_p): New comment for parameter type. Remove
6522 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6523 * value.h (destructor_name_p): Remove type const.
6524
1976171a
JK
65252011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 * symtab.c (compare_symbol_name): New function.
6528 (completion_list_add_name, expand_partial_symbol_name): Call it,
6529 remove the variable ncmp.
6530 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6531 gdb_assert it.
6532
a9634178
TJB
65332011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6534
6535 Demote to sw watchpoint only in update_watchpoint.
6536 * breakpoint.c (update_watchpoint): Change between software and
6537 hardware watchpoint for all kinds of watchpoints, not just
6538 read/write ones. Determine b->exact value here instead of
6539 in watch_command_1. Error out if there are not enough resources
6540 for a read or access hardware watchpoint.
6541 (watch_command_1): Remove logic of checking whether there are
6542 enough resources available, since update_watchpoint will do that
6543 work now. Don't set b->exact here. Catch exceptions thrown by
6544 update_watchpoint and delete the watchpoint.
6545 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6546 Use target_exact_watchpoints instead.
6547 (delete_breakpoint): Notify observers only if deleted watchpoint
6548 has a breakpoint number assigned to it.
6549
4c67c798
JJ
65502011-05-05 Janis Johnson <janisjo@codesourcery.com>
6551
6552 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6553
a3fcb948
JG
65542011-05-05 Jerome Guitton <guitton@adacore.com>
6555
6556 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6557 New functions.
6558 (i386_stack_tramp_frame_unwind): New static global.
6559 (i386_match_pattern): New function, extracted from i386_match_insn.
6560 (i386_match_insn): Use i386_match_pattern.
6561 (i386_match_insn_block): New function.
6562 (i386_tramp_chain_in_reg_insns)
6563 (i386_tramp_chain_on_stack_insns): New static variables.
6564 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6565 of unwinders.
6566
4d393d60
JM
65672011-05-04 Joseph Myers <joseph@codesourcery.com>
6568
6569 * configure.host (xscale*): Don't handle target.
6570 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6571 handle targets.
6572
f70bd40b
YQ
65732011-05-04 Yao Qi <yao@codesourcery.com>
6574
6575 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6576
dd3295ee
JB
65772011-05-03 Joel Brobecker <brobecker@adacore.com>
6578
6579 Revert:
6580 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6581 | * elfread.c (elf_symtab_read): Stop memory leak.
6582
90375a0e
PM
65832011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6584
6585 * nto-tdep.c (nto_target): Replace deprecated call to
6586 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6587
d07205c2
JK
65882011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6589
6590 Fix false GCC warning.
6591 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6592
1e718ff1
TJB
65932011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6594
6595 * breakpoint.c (update_watchpoint): Move code to change
6596 the enable state of breakpoint from here ...
6597 (do_enable_breakpoint): ... to here.
6598
35bef4fd
TT
65992011-04-26 Andrew Gontarek <andrewg@cray.com>
6600
78290264
PP
6601 * valprint.c (val_print_array_elements): Fixed poor performance
6602 of printing very large arrays with repeat_count_threshold set
6603 to unlimited. New comment.
35bef4fd 6604
38a714bb
TT
66052011-04-29 Tom Tromey <tromey@redhat.com>
6606
6607 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6608 (mi_parse): Likewise.
6609 * breakpoint.c (break_range_command): Use sizeof char*, not
6610 char**.
6611 (create_breakpoint): Likewise.
6612 (parse_breakpoint_sals): Likewise.
6613
eb73ad13
PA
66142011-04-29 Pedro Alves <pedro@codesourcery.com>
6615
6616 * linux-nat.c (linux_child_remove_fork_catchpoint)
6617 (linux_child_remove_vfork_catchpoint)
6618 (linux_child_remove_exec_catchpoint): New functions.
6619 (linux_target_install_ops): Install them.
6620
d65aec65
PM
66212011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6622
6623 PR mi/12531
6624
6625 * varobj.c (install_default_visualizer): Do not install a
6626 visualizer if the varobj is CPLUS_FAKE_CHILD.
6627 (construct_visualizer): Likewise.
6628
165195f4
JK
66292011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6630
6631 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6632 case insensitive comparison.
6633
30852783
UW
66342011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6635
6636 * infrun.c (proceed): Revert previous change.
6637 (resume): Instead, handle the case of signal delivery while stepping
6638 off a breakpoint location here, and only if software single-stepping
6639 is used. Handle nested signals.
6640
7ff120b4
YQ
66412011-04-28 Yao Qi <yao@codesourcery.com>
6642
6643 * arm-tdep.c (copy_unmodified): Rename to ...
6644 (arm_copy_unmodified): .. this. New.
6645 (copy_preload): Move common part to ...
6646 (install_preload): .. this. New.
6647 (arm_copy_preload): New.
6648 (copy_preload_reg): Move common part to ...
6649 (install_preload_reg): ... this. New.
6650 (arm_copy_preload_reg): New.
6651 (copy_b_bl_blx): Move common part to ...
6652 (install_b_bl_blx): .. this. New.
6653 (arm_copy_b_bl_blx): New.
6654 (copy_bx_blx_reg): Move common part to ...
6655 (install_bx_blx_reg): ... this. New.
6656 (arm_copy_bx_blx_reg): New.
6657 (copy_alu_reg): Move common part to ...
6658 (install_alu_reg): ... this. New.
6659 (arm_copy_alu_reg): New.
6660 (copy_alu_shifted_reg): Move common part to ...
6661 (install_alu_shifted_reg): ... this. New.
6662 (copy_ldr_str_ldrb_strb): Move common part to ...
6663 (install_ldr_str_ldrb_strb): ... this. New.
6664 (arm_copy_ldr_str_ldrb_strb): New.
6665 (copy_copro_load_store): Move some common part to ...
6666 (install_copy_copro_load_store): ... this. New.
6667 (arm_copy_copro_load_store): New.
6668 (copy_svc): Delete.
6669 (arm_copy_svc): Renamed from copy_svc.
6670 (copy_undef): Delete.
6671 (arm_copy_undef): Renamed from copy_undef.
6672 (decode_ext_reg_ld_st): Delete.
6673 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6674 (decode_svc_copro): Delete.
6675 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6676 (copy_copro_load_store, copy_alu_imm): update callers.
6677 (copy_extra_ld_st, copy_block_xfer): Likewise.
6678 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6679 (decode_miscellaneous, decode_dp_misc): Likewise.
6680 (decode_ld_st_word_ubyte, decode_media): Likewise.
6681 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6682 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6683 (decode_unconditional, decode_miscellaneous): Likewise.
6684 (decode_media, decode_b_bl_ldmstm): Likewise.
6685 (arm_process_displaced_insn): Likewise..
6686 (decode_misc_memhint_neon): Delete.
6687 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6688 (decode_miscellaneous): Delete.
6689 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6690 (decode_dp_misc): Delete.
6691 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6692 (decode_ld_st_word_ubyte): Delete.
6693 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6694 (decode_media): Delete.
6695 (arm_decode_media): Renamed from decode_media.
6696 (decode_b_bl_ldmstm): Delete.
6697 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6698 (decode_ext_reg_ld_st): Delete.
6699 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6700 (decode_unconditional): Delete.
6701 (arm_decode_unconditional): Renamed from decode_unconditional.
6702
559a7a62
JK
67032011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6704
6705 Case insensitive lookups implementation.
6706 * dwarf2read.c: Include ctype.h.
6707 (struct mapped_index): New field version.
6708 (mapped_index_string_hash): New parameter index_version. New comment
6709 for it. Call tolower appropriately.
6710 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6711 Choose the right index version for mapped_index_string_hash.
6712 (dwarf2_read_index): Support also the index version 5. Initialize the
6713 new struct mapped_index field version.
6714 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6715 (find_slot): Explain the version needs. Pass INT_MAX for the new
6716 parameter.
6717 (write_psymtabs_to_index): Produce version 5.
6718 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6719 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6720 * psymtab.c (lookup_partial_symbol): Find the
6721 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6722 entries.
6723 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6724 NAME lowercasing.
6725 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6726 (completion_list_add_name): New variable ncmp, initialize it, use it.
6727 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6728 * utils.c (strcmp_iw): Support case_sensitive_off.
6729 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6730 New function comment part. New variables saved_string1,
6731 saved_string2 and case_pass. Add a proper second pass.
6732
681bf369
JK
67332011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 Replace re_comp/re_exec by regcomp/regexec.
6736 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6737 (search_symbols_name_matches): Use them, use regexec.
6738 (search_symbols): New variable retval_chain, adjust the use of
6739 old_chain against it. Replace re_comp by regcomp. Use the new struct
6740 search_symbols_data fields, use regexec instead of re_exec.
6741
b11b1f88
JK
67422011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6743
6744 Format the code for the next patch.
6745 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6746 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6747 New variables c1 and c2.
6748
2484c66b
UW
67492011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6750
6751 * infrun.c (proceed): Do not single-step into signal delivery
6752 when stepping off a breakpoint location.
6753 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6754 (insert_step_resume_breakpoint_at_caller): Likewise.
6755 (insert_step_resume_breakpoint_at_sal): Likewise.
6756 (insert_longjmp_resume_breakpoint): Likewise.
6757
47423772
YQ
67582011-04-27 Yao Qi <yao@codesourcery.com>
6759
6760 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6761
13bdd2e7
JB
67622011-04-27 Joel Brobecker <brobecker@adacore.com>
6763
6764 * procfs.c (procfs_pass_signals): Fix advance declaration.
6765
2455069d
UW
67662011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6767
6768 * target.h (struct target_ops): Remove to_notice_signals;
6769 add to_pass_signals.
6770 (target_notice_signals): Remove.
6771 (target_pass_signals): Add prototype.
6772 * target.c (update_current_target): Remove to_notice_signals;
6773 mention to_pass_signals.
6774 (target_pass_signals): New function.
6775 (debug_to_notice_signals): Remove.
6776 (setup_target_debug): Do not install debug_to_notice_signals.
6777
6778 * infrun.c (signal_pass): New global.
6779 (resume): Call target_pass_signals.
6780 (handle_inferior_event): Report all signals while stepping over
6781 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6782 are re-inserted when stepping over a signal handler.
6783 (signal_cache_update): New function.
6784 (signal_stop_update): Call it.
6785 (signal_print_update): Likewise.
6786 (signal_pass_update): Likewise.
6787 (handle_command): Call signal_cache_update and target_pass_signals
6788 instead of target_notice_signals.
6789 (_initialize_infrun): Initialize signal_pass.
6790
6791 * linux-nat.c (pass_mask): New global.
6792 (linux_nat_pass_signals): New function.
6793 (linux_nat_create_inferior): Report all signals initially.
6794 (linux_nat_attach): Likewise.
6795 (linux_nat_resume): Use pass_mask to decide whether to directly
6796 handle an inferior signal.
6797 (linux_nat_wait_1): Likewise.
6798 (linux_nat_add_target): Install to_pass_signals callback.
6799
6800 * nto-procfs.c (notice_signals): Remove.
6801 (procfs_resume): Do not call notice_signals.
6802 (procfs_notice_signals): Remove.
6803 (procfs_pass_signals): New function.
6804 (init_procfs_ops): Install to_pass_signals callback instead of
6805 to_notice_signals callback.
6806 (_initialize_procfs): Report all signals initially.
6807
6808 * procfs.c (procfs_notice_signals): Remove.
6809 (procfs_pass_signals): New function.
6810 (procfs_target): Install to_pass_signals callback instead of
6811 to_notice_signals callback.
6812 (register_gdb_signals): Remove.
6813 (procfs_debug_inferior): Report all signals initially.
6814 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6815
6816 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6817 parameters; use them instead of calling signal_..._state routines.
6818 (remote_notice_signals): Remove.
6819 (remote_start_remote): Report all signals initially.
6820 (remote_resume): Do not call remote_pass_signals.
6821 (_initialize_remote): Install to_pass_signals callback instead of
6822 to_notice_signals callback.
6823
46c6471b
PA
68242011-04-27 Pedro Alves <pedro@codesourcery.com>
6825
6826 * breakpoint.c (user_settable_breakpoint): Delete.
6827 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6828 (delete_command): Check user_breakpoint_p instead of looking at
6829 the breakpoint's type.
6830 (disable_command): Ditto.
6831 (enable_command): Ditto.
6832 (delete_trace_command): Use user_breakpoint_p instead of looking
6833 at the breakpoint number directly. When checking if there are
6834 user visible tracepoints, in order to know whether to ask the user
6835 for confirmation, check whether the breakpoint is actually a
6836 tracepoint.
6837
f6d90398
VP
68382011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6839
6840 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6841 compilation.
6842
8d3788bd
VP
68432011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6844
6845 MI breakpoint notifications.
6846
f33edef8
PP
6847 * annotate.c (breakpoint_changed): Adjust parameter type.
6848 * breakpoint.c (set_breakpoint_condition): Adjust to change
6849 in breakpoint_modified type.
6850 (breakpoint_set_commands): Likewise.
6851 (do_map_commands_command): Likewise.
6852 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6853 changed after bumping hit count.
6854 (bpstat_stop_status): Likewise.
6855 (print_one_breakpoint_location): Don't wrap in tuple here.
6856 (print_one_breakpoint): Always print individual locations.
6857 For locations, use unnamed tuple.
6858 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6859 has changed.
6860 (create_catchpoint, create_syscall_event_catchpoint): Call
6861 breakpoint_created obsever.
6862 (mention): Don't call breakpoint_created observer.
6863 (create_breakpoint_sal): Call breakpoint_created observer.
6864 (create_breakpoint, watch_command_1): Likewise.
6865 (create_ada_exception_breakpoint): Likewise.
6866 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6867 (locations_are_equal): New.
6868 (update_breakpoint_locations): If locations were changed, notify.
6869 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6870 Call breakpoint_modified observer.
6871
6872 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6873 (mi_cmd_break_insert): Don't set observers for modify and delete.
6874 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6875 (mi_breakpoint_created, mi_breakpoint_deleted)
6876 (mi_breakpoint_modified): New.
6877 (mi_interpreter_init): Hook the above.
6878 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6879 while -break-* commands are executing.
6880 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6881 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6882 (mi_redirect): New.
6883 (mi_ui_out_impl): Hook in mi_redirect.
6884 (mi_field_skip): True to the name, skip the field, don't output
6885 a field with an empty value.
6886
6887 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6888 (gdbpy_breakpoint_deleted): Adjust.
6889 * tui/tui-hooks.c (tui_event_create_breakpoint)
6890 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6891
a8f42b45
UW
68922011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6893
6894 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6895 (procfs_remove_hw_watchpoint): Likewise.
6896
57e12211
TT
68972011-04-26 Michael Walle <michael@walle.cc>
6898
6899 * remote.c (remote_start_remote): Ack packet after sending the
6900 interrupt sequence.
6901
af96c192
YQ
69022011-04-26 Yao Qi <yao@codesourcery.com>
6903
f33edef8
PP
6904 * linux-nat.c: Move common macros to ...
6905 Include linux-ptrace.h.
6906 * common/linux-ptrace.h: ... here. New.
af96c192 6907
3e03848b
JK
69082011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6909
6910 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6911 !objfile_has_partial_symbols. New comment.
6912 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6913 SYM_READ_PSYMBOLS is not present. Extend the comment.
6914 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6915
1ae0d051
JK
69162011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 * defs.h (ENUM_BITFIELD): Remove.
6919
03f2bd59
JK
69202011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6921 Eli Zaretskii <eliz@gnu.org>
6922
6923 * NEWS: Document the new gdbserver --once option.
6924
4161fbb0
JZ
69252011-04-21 Jie Zhang <jzhang918@gmail.com>
6926
6927 * MAINTAINERS: Update my email address.
6928
bcb28afc
PM
69292011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6930
6931 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6932 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6933 function call if __STDC_ISO_10646__ macro is defined.
6934 (intermediate_encoding): New prototype.
6935 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6936 to generate compile time error for unsupported gdb_wchar_t size.
6937 (ENDIAN_SUFFIX): New macro.
6938 (intermediate_encoding): New function.
6939
7b08b9eb
JK
69402011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6941
6942 * ada-lang.c (struct add_partial_datum): Update the comment for
6943 expand_partial_symbol_name.
6944 (ada_add_partial_symbol_completions): Rename to ...
6945 (ada_expand_partial_symbol_name): ... here, change return type, update
6946 function comment, call symbol_completion_match instead of
6947 symbol_completion_add.
6948 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6949 and ada_expand_partial_symbol_name.
6950 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6951 FILE_MATCHER.
6952 (dw2_map_symbol_names): Remove.
6953 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6954 * psymtab.c (map_symbol_names_psymtab): Remove.
6955 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6956 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6957 order.
6958 (psym_functions): Unlist map_symbol_names_psymtab.
6959 (map_partial_symbol_names): Rename to ...
6960 (expand_partial_symbol_names): ... here, change the FUN type, call
6961 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6962 * psymtab.h (map_partial_symbol_names): Rename to ...
6963 (expand_partial_symbol_names): ... here, change the FUN type.
6964 * symfile.h (struct quick_symbol_functions): Update the description of
6965 expand_symtabs_matching. Remove map_symbol_names.
6966 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6967 (struct add_name_data): Update the comment for
6968 expand_partial_symbol_name.
6969 (add_partial_symbol_name): Rename to ...
6970 (expand_partial_symbol_name): ... here. Replace
6971 completion_list_add_name call by strncmp.
6972 (default_make_symbol_completion_list_break_on): Use now
6973 expand_partial_symbol_names and expand_partial_symbol_name.
6974 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6975
90476074
TT
69762011-04-20 Tom Tromey <tromey@redhat.com>
6977
6978 * dwarf2read.c (save_gdb_index_command): Replace format
6979 documentation with a pointer to the manual.
6980
c21236dc
PA
69812011-04-20 Pedro Alves <pedro@codesourcery.com>
6982
6983 * regcache.c: Include remote.h.
6984 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6985 (regcache_dump): Handle regcache_dump_remote.
6986 (maintenance_print_remote_registers): New function.
6987 (_initialize_regcache): Install "maint print remote-registers"
6988 command.
6989 * remote.c (map_regcache_remote_table): New function, factored out
6990 from ...
6991 (init_remote_state): ... here.
6992 (remote_register_number_and_offset): New.
6993 * remote.h (remote_register_number_and_offset): Declare.
6994
b78974c3
PA
69952011-04-20 Pedro Alves <pedro@codesourcery.com>
6996
6997 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6998 null_ptid, assume and allow a NULL address space, instead of
6999 asking the target for the ptid's address space.
7000 * infrun.c (ptid_is_pid): Remove assertion.
7001
7a9dd1b2
TT
70022011-04-19 Tom Tromey <tromey@redhat.com>
7003
7004 * windows-tdep.c (windows_xfer_shared_library):
7005 * windows-nat.c (get_module_name, windows_make_so):
7006 * v850-tdep.c (v850_handle_pushm):
7007 * utils.c (null_cleanup, gdb_realpath):
7008 * ui-out.c (get_next_header):
7009 * tracepoint.c (clear_traceframe_info):
7010 * symtab.c (lookup_symtab):
7011 * serial.h (struct serial_ops):
7012 * mipsread.c (read_alphacoff_dynamic_symtab):
7013 * infcmd.c (print_return_value):
7014 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7015 * f-exp.y (parse_number):
7016 * exceptions.c (catch_exceptions):
7017 * dummy-frame.c (dummy_frame_this_id):
7018 * defs.h (struct cleanup):
7019 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7020 * arm-tdep.c (arm_push_dummy_call):
7021 * amd64-tdep.h (amd64_collect_xsave):
7022 * amd64-tdep.c (amd64_collect_xsave):
7023 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7024 * README (typing): Remove duplicate words.
7025 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7026 * infrun.c (siginfo_value_read): Fix typo.
7027 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7028 * top.c (source_line_number): Add comma.
7029
9941e0c5
MK
70302011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7031
7032 * thread.c (any_live_thread_of_process): Prioritize threads
7033 that are not executing.
7034 * gdbthread.h (any_live_thread_of_process): Update comment
7035 as per above change.
7036
ed4b0e6a
AS
70372011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7038
7039 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7040 (scan_xcoff_symtab): Likewise.
7041
9b13a2db
PM
70422011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7043
7044 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7045 inside if clause.
7046
1c6e1b0d
PM
70472011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7048 Pedro Alves <pedro@codesourcery.com>
7049
7050 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7051 variables to simplify code and avoid == operator at end of
7052 line as this is against GNU coding standards.
7053
74de0234
PM
70542011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7055
7056 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7057 lm_name to name_lm to avoid conflict with lm_name function.
7058
b23518f0
PM
70592011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7060
7061 ARI fixes: Use only lowercase function name for static functions.
7062 * nto-tdep.c (LM_ADDR): Rename to...
7063 (lm_addr): New function name.
7064 (nto_relocate_section_addresses): Adapt to change above.
7065 * solib-sunos.c (LM_ADDR): Rename to...
7066 (lm_addr): New function name.
7067 (LM_NEXT): Rename to...
7068 (lm_next): New function name.
7069 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7070 function name changes above.
7071 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7072 (lm_addr_from_link_map): New function name.
7073 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7074 (has_lm_dynamic_from_link_map): New function name.
7075 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7076 (lm_dynamic_from_link_map): New function name.
7077 (LM_ADDR_CHECK): Rename to...
7078 (lm_addr_check): New function name.
7079 (LM_NEXT): Rename to...
7080 (lm_next): New function name.
7081 (LM_PREV): Rename to...
7082 (lm_prev): New function name.
7083 (LM_NAME): Rename to...
7084 (lm_name): New function name.
7085 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7086 (ignore_first_link_map_entry): New function name.
7087 (svr4_keep_data_in_core): Adapt to function name changes above.
7088 (svr4_current_sos): Likewise.
7089 (enable_break): Likewise.
7090 (svr4_relocate_section_addresses): Likewise.
7091
1448a0a2
PM
70922011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7093
7094 ARI cleanup.
7095 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7096 sprintf. Simplify code and avoid loosing memory.
7097 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7098 (call0_frame_cache): Remove && operator from end of line.
7099
02835898
JK
71002011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7101
7102 Fix libraries displacement if they change whether they were prelinked.
7103 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7104 does not match. Comment why.
7105
9a845ea2
JK
71062011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7107
7108 * corelow.c: Include wrapper.h.
7109 (core_open): Call now gdb_target_find_new_threads.
7110 * wrapper.c: Include target.h.
7111 (gdb_target_find_new_threads): New.
7112 * wrapper.h (gdb_target_find_new_threads): New declaration.
7113
254f582e
JK
71142011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7117 even if !TARGET_HAS_EXECUTION.
7118
63524580
JK
71192011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7122 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7123 bfd_get_synthetic_symtab.
7124 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7125 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7126 parameter parent, remove the call to add_separate_debug_objfile.
7127 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7128 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7129 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7130 parent, new comment for it, call add_separate_debug_objfile for it.
7131 (symbol_file_add_separate): Pass objfile as the parameter parent,
7132 remove the call to add_separate_debug_objfile.
7133 (symbol_file_add_from_bfd): New parameter parent, pass it.
7134 (symbol_file_add): Pass NULL to the new parameter parent.
7135 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7136
90359a16
JK
71372011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7140 BSF_SYNTHETIC.
7141
626e7282
JK
71422011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7143
7144 Fix Python access to inlined frames.
7145 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7146 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7147
cf31e6f9
TT
71482011-04-15 Tom Tromey <tromey@redhat.com>
7149
7150 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7151
c8d895f1
GB
71522011-04-15 Gary Benson <gbenson@redhat.com>
7153
7154 * MAINTAINERS: Add myself to write-after-approval section.
7155
56a9aa1d
MF
71562011-04-14 Mike Frysinger <vapier@gentoo.org>
7157
7158 * remote-sim.c (sim_command_completer): New function.
7159 (_initialize_remote_sim): Set completer to sim_command_completer.
7160
ba770c9c
TJB
71612011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7162
7163 * breakpoint.c (print_exception_catchpoint): Rename to ...
7164 (print_it_exception_catchpoint): ... this.
7165 (gnu_v3_exception_catchpoint_ops): Update with new name
7166 for print_it_exception_catchpoint.
7167
51bf2553
EBM
71682011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7169
7170 * MAINTAINERS: Add myself for write after approval privileges.
7171
d242658c
MP
71722011-04-13 Marek Polacek <mpolacek@redhat.com>
7173
7174 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7175
4a4106ca
TJB
71762011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7177
7178 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7179
26063d49
TJB
71802011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7181
7182 * breakpoint.c (save_breakpoints): Verify whether
7183 breakpoint_ops.print_recreate is defined before calling it.
7184
7782b183
GB
71852011-04-11 Gary Benson <gbenson@redhat.com>
7186
7187 Fix failure with --enable-maintainer-mode.
7188 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7189
e8930875
JK
71902011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7191
7192 Code cleanup.
7193 * symtab.c (search_symbols): Reorder the KIND description in the
7194 function comment. Remove the unused 4th element of types, types2,
7195 types3 and types4. New gdb_assert on KIND.
7196 (symtab_symbol_info): Remove the unused 4th element of classnames.
7197 New gdb_assert on KIND.
7198 * symtab.h (enum search_domain): New warning in the enum comment.
7199 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7200 TYPES_DOMAIN.
7201
b4f2f049
JK
72022011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7203
7204 Fix crash of gdb save-index on a STABS file.
7205 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7206 PSYMTABS_ADDRMAP.
7207
60d5a603
JK
72082011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7209
7210 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7211 * dwarf2read.c: Include ctype.h.
7212 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7213 functions.
7214 (dwarf2_add_field): Fix new_field->accessibility by calling
7215 dwarf2_default_access_attribute. Restructure setting accessibility
7216 vs. virtuality.
7217 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7218 is_private and is_protected by calling
7219 dwarf2_default_access_attribute.
7220
e0f68161
KB
72212011-04-08 Kevin Buettner <kevinb@redhat.com>
7222
7223 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7224 to the initialization.
7225
2e1aae43
SE
72262011-04-08 Steve Ellcey <sje@cup.hp.com>
7227
7228 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7229 initalization.
7230
c6ca3dab
PM
72312011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7232
7233 Remove support for old Cygwin 1.5 versions.
7234 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7235 function on old Cygwin version.
7236 * windows-nat.c: Remove cygwin version check and always define
7237 __USEWIDE for Cygwin compilation.
7238
bd18283a
YQ
72392011-04-07 Yao Qi <yao@codesourcery.com>
7240
7241 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7242 and TO.
7243 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7244 (arm_copy_svc): Remove parameters INSN and TO.
7245 (decode_svc_copro): Update caller.
7246 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7247 from function pointer `copy_svc_os'.
7248
8c8dba6d
YQ
72492011-04-07 Yao Qi <yao@codesourcery.com>
7250
7251 * arm-tdep.c (cleanup_branch): Set a correct return address in
7252 LR for ARM and Thumb.
7253
59d7bcaf
JK
72542011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 Code cleanup.
7257 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7258 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7259 in the function comment, a new note on values compatibility.
7260 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7261 * symtab.h (SYMBOL_HASH_NEXT): New.
7262
e7db58ea
TJB
72632011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7264
7265 * ppc-linux-nat.c (check_condition): Add len output parameter.
7266 Set it based on the memory region referenced in the condition
7267 expression. Update all callers.
7268
9f743ef6
JK
72692011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7270
7271 Fix crash regression on systems featuring .gdb_index.
7272 * objfiles.c (free_objfile): Move the
7273 forget_cached_source_info_for_objfile call earlier. Comment it.
7274 Extend the comment for objfile_free_data.
7275
9182c5bc
JK
72762011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7277
7278 Fix regression of displaying the debug format.
7279 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7280 subfile.
7281
04bd08de
TT
72822011-04-04 Tom Tromey <tromey@redhat.com>
7283
7284 * cli/cli-interp.c (struct captured_execute_command_args):
7285 Remove.
7286 (do_captured_execute_command): Remove.
7287 (safe_execute_command): Use TRY_CATCH.
7288 * cli/cli-script.c (struct wrapped_read_command_file_args):
7289 Remove.
7290 (wrapped_read_command_file): Remove.
7291 (script_from_file): Use TRY_CATCH.
7292 * exceptions.c (catch_exception): Remove.
7293 * exceptions.h (catch_exception): Remove.
7294 (deprecated_throw_reason): Update comment.
7295 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7296 argument to 'context'.
7297 (mi_execute_command): Use TRY_CATCH.
7298 * remote.c (struct start_remote_args): Remove.
7299 (remote_start_remote): Update; change arguments.
7300 (remote_open_1): Use TRY_CATCH.
7301
58438ac1
TT
73022011-04-04 Tom Tromey <tromey@redhat.com>
7303
7304 * tracepoint.c (scope_info): Update.
7305 * symtab.c (decode_line_spec): Update.
7306 * python/python.c (gdbpy_decode_line): Update.
7307 * linespec.h (decode_line_1): Update.
7308 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7309 (decode_compound, find_method, symtab_from_filename)
7310 (decode_variable): Likewise.
7311 * cli/cli-cmds.c (edit_command): Update.
7312 (list_command): Update.
7313 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7314 argument.
7315 (create_breakpoint): Update.
7316 (until_break_command): Update.
7317 (addr_string_to_sals): Update.
7318 (decode_line_spec_1): Update.
7319
b78a6381
TT
73202011-04-04 Tom Tromey <tromey@redhat.com>
7321
7322 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7323 (do_captured_parse_breakpoint): Remove.
7324 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7325 Use TRY_CATCH directly.
7326
00174a86
TT
73272011-04-04 Tom Tromey <tromey@redhat.com>
7328
7329 * symtab.h (free_symtab): Remove.
7330 (forget_cached_source_info_for_objfile): Declare.
7331 * symmisc.c (free_symtab): Remove.
7332 * source.c (forget_cached_source_info_for_objfile): New function.
7333 (forget_cached_source_info): Use it.
7334 * objfiles.c (free_objfile): Simplify check before calling
7335 clear_current_source_symtab_and_line. Call
7336 forget_cached_source_info_for_objfile.
7337
30cc903e
TT
73382011-04-04 Tom Tromey <tromey@redhat.com>
7339
7340 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7341 (new_symtab): Don't set `free_code' on symtab.
7342 (new_linetable): Properly handle size==0.
7343 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7344 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7345 free_func.
7346 * jv-lang.c (struct jv_per_objfile_data): New.
7347 (jv_per_objfile_free): Free the data.
7348 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7349 (get_java_class_symtab): Set the `dict' field on the
7350 jv_per_objfile_data.
7351 (free_class_block): Remove.
7352 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7353 the symtab.
7354
0c2e6019
TT
73552011-04-04 Tom Tromey <tromey@redhat.com>
7356
7357 * symfile.c (reread_symbols): Update.
7358 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7359 field.
7360 * objfiles.c (allocate_objfile): Update.
7361 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7362 declare.
7363 * cp-namespace.c (lookup_symbol_file): Don't call
7364 lookup_possible_namespace_symbol.
7365 (initialize_namespace_symtab, get_possible_namespace_block)
7366 (free_namespace_block, cp_check_possible_namespace_symbols)
7367 (check_possible_namespace_symbols_loop)
7368 (check_one_possible_namespace_symbol)
7369 (lookup_possible_namespace_symbol): Remove.
7370 (maintenance_cplus_namespace): Replace with notice.
7371 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7372
554d387d
TT
73732011-04-04 Tom Tromey <tromey@redhat.com>
7374
7375 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7376 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7377 * symmisc.c (free_symtab): Don't free debugformat.
7378 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7379 (record_debugformat, record_producer): Document.
7380 * buildsym.c (end_symtab): Don't save debugformat and producer
7381 names on obstack.
7382 (end_symtab): Don't free debugformat and producer fields.
7383 (record_debugformat): Don't call xstrdup.
7384 (record_producer): Likewise.
7385
d4d4db8a
TT
73862011-04-04 Tom Tromey <tromey@redhat.com>
7387
7388 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7389 (source_line_charpos, source_charpos_line): Remove.
7390
8903c50d
TT
73912011-04-04 Tom Tromey <tromey@redhat.com>
7392
7393 * symtab.h (domain_enum): Split in two...
7394 (enum search_domain): New.
7395 (search_symbols): Update.
7396 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7397 redundant declarations.
7398 (search_symbols): Change 'kind' argument to search_domain.
7399 Update.
7400 (print_symbol_info): Likewise.
7401 (symtab_symbol_info): Likewise.
7402 * symfile.h (struct quick_symbol_functions)
7403 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7404 <expand_symtabs_matching>: Likewise.
7405 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7406 (expand_symtabs_matching_via_partial): Update.
7407 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7408 (dw2_expand_symtabs_for_function): Update.
7409 * block.h: Moved anonymous enum...
7410 * defs.h (enum block_enum): ... here. Now named.
7411
d9351f5f 74122011-04-03 Joel Brobecker <brobecker@adacore.com>
7413
7414 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7415 * version.in: Bump version to 7.3.50.20110403-cvs.
7416
d6e00af6
JB
74172011-04-03 Joel Brobecker <brobecker@adacore.com>
7418
7419 * NEWS: Create a new section for the next release branch.
7420 Rename the section of the current branch, now that it has
7421 been cut.
7422
2b9e5ea6
UW
74232011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7424
7425 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7426 for "fpscr" in target description.
7427
0cf03b49
JK
74282011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7431 initialize it. Delay HASH initialization. Strip the part after open
7432 parenthesis for languages with qualifiers. Call do_cleanups.
7433
5d901a73
TT
74342011-04-01 Tom Tromey <tromey@redhat.com>
7435
7436 * utils.c (report_command_stats): Don't print `-' for negative
7437 number.
7438
b0dd7688
JB
74392011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7440
7441 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7442 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7443 typedefs.
7444
956a9fb9
JB
74452011-04-01 Joel Brobecker <brobecker@adacore.com>
7446
7447 * breakpoint.h (bpdisp_text): Add declaration.
7448 * breakpoint.c (bpdisp_text): Make non-static.
7449 * ada-lang.c: #include "mi/mi-common.h".
7450 (print_it_exception): Rewrite to improve GDB/MI output.
7451
3352110b
PA
74522011-04-01 Pedro Alves <pedro@codesourcery.com>
7453
7454 * arm-tdep.h (struct address_space): Add forward declaration.
7455
18819fa6
UW
74562011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7457
7458 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7459 * arm-tdep.c (arm_override_mode): New global.
7460 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7461 execution mode heuristics.
7462 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7463 second single-step breakpoint if needed, using
7464 arm_insert_single_step_breakpoint.
7465 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7466 ARM execution mode, do not call thumb_get_next_pc_raw.
7467 (arm_get_next_pc): Encode execution mode in return value. Call
7468 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7469 (arm_insert_single_step_breakpoint): New function.
7470 (arm_software_single_step): Call it.
7471 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7472 argument to return execution mode of sigreturn target.
7473 (arm_linux_syscall_next_pc): Use it.
7474 (arm_linux_copy_svc): Update call.
7475 (arm_linux_software_single_step): Call
7476 arm_insert_single_step_breakpoint.
7477
a6e293d1
JK
74782011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7479
7480 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7481 the comment.
7482
a4c8e806
TT
74832011-03-31 Tom Tromey <tromey@redhat.com>
7484
7485 * varobj.c (update_dynamic_varobj_children): Properly handle
7486 errors from iterator.
7487
df5c6c50
JK
74882011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7489
7490 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7491 struct linkage name twice.
7492
1dae3efc
TT
74932011-03-31 Tom Tromey <tromey@redhat.com>
7494
7495 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7496 missing ">" to message.
7497
f4f7ab05
TT
74982011-03-31 Tom Tromey <tromey@redhat.com>
7499
7500 * varobj.c (instantiate_pretty_printer): Remove duplicate
7501 'return'.
7502
fcf250e2
UW
75032011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7504
7505 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7506 if neither saved value nor register available (e.g. signal frame).
7507
ee6436e3
TJB
75082011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7509
7510 * macroexp.c (expand): Avoid uninitialized variable
7511 compiler warning.
7512
423f41a5
TJB
75132011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7514
7515 * breakpoint.c (break_range_command): Fix typo in comment.
7516
f1310107
TJB
75172011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7518 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7519
7520 Implement support for PowerPC BookE ranged breakpoints.
7521 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7522 * breakpoint.h (struct bp_target_info) <length>: New member
7523 variable.
7524 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7525 instead of struct breakpoint as argument, and also add ASPACE
7526 and BP_ADDR arguments. Update all callers.
7527 (struct breakpoint_ops) <print_one_detail>: New method.
7528 (struct breakpoint) <addr_string_range_end>: New member variable.
7529 * breakpoint.c (breakpoint_location_address_match): Add function
7530 prototype.
7531 (insert_bp_location): Set bl->target_info.length.
7532 (breakpoint_here_p): Call breakpoint_location_address_match.
7533 (moribund_breakpoint_here_p): Likewise.
7534 (regular_breakpoint_inserted_here_p): Likewise.
7535 (breakpoint_thread_match): Likewise.
7536 (bpstat_stop_status): Likewise.
7537 (bpstat_check_location): Move call to
7538 breakpoint_ops.breakpoint_hit to the top.
7539 (print_one_breakpoint_location): Call
7540 breakpoint_ops.print_one_detail if available.
7541 (breakpoint_address_match_range): New function.
7542 (breakpoint_location_address_match): Likewise.
7543 (breakpoint_locations_match): Compare the length field of the
7544 locations too.
7545 (hw_breakpoint_used_count): Count resources used by all locations
7546 in a breakpoint, and use breakpoint_ops.resources_needed if
7547 available.
7548 (breakpoint_hit_ranged_breakpoint): New function.
7549 (resources_needed_ranged_breakpoint): Likewise.
7550 (print_it_ranged_breakpoint): Likewise.
7551 (print_one_ranged_breakpoint): Likewise.
7552 (print_one_detail_ranged_breakpoint): Likewise.
7553 (print_mention_ranged_breakpoint): Likewise.
7554 (print_recreate_ranged_breakpoint): Likewise.
7555 (ranged_breakpoint_ops): New structure.
7556 (find_breakpoint_range_end): New function.
7557 (break_range_command): Likewise.
7558 (delete_breakpoint): Free addr_string_range_end.
7559 (update_breakpoint_locations): Add SALS_END argument. Update
7560 all callers. Calculate breakpoint length if a non-zero SALS_END
7561 is given. Call breakpoint_locations_match instead of
7562 breakpoint_address_match.
7563 (reset_breakpoint): Find SaL of the end of the range if B is a
7564 ranged breakpoint.
7565 (_initialize_breakpoint): Register break-range command.
7566 * defs.h (print_core_address): Add function prototype.
7567 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7568 function.
7569 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7570 (ppc_linux_remove_hw_breakpoint): Likewise.
7571 (_initialize_ppc_linux_nat): Initialize
7572 to_ranged_break_num_registers.
7573 * target.c (update_current_target): Add comment about
7574 to_ranged_break_num_registers.
7575 (target_ranged_break_num_registers): New function.
7576 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7577 New method.
7578 (target_ranged_break_num_registers): Add function prototype.
7579 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7580 * utils.c (print_core_address): ... here.
7581
02d20e4a
UW
75822011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7583
7584 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7585 variable compiler warning.
7586
ef23e705
TJB
75872011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7588
7589 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7590 code from here ...
7591 (re_set_breakpoint): ... to here ...
7592 (addr_string_to_sals): ... and here.
7593
311e6ab3
PM
75942011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7595
7596 * Makefile.in (SFILES): Add missing C sources.
7597 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7598 Add missing headers.
7599
acd1d99c
MF
76002011-03-29 Mike Frysinger <vapier@gentoo.org>
7601
7602 * .gitignore: New file.
7603
66ee2731
MF
76042011-03-29 Mike Frysinger <vapier@gentoo.org>
7605
7606 * NEWS: Mention new cfi device simulation.
7607
53832f31
TT
76082011-03-29 Tom Tromey <tromey@redhat.com>
7609
7610 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7611 otherwise anonymous types.
7612 (dwarf2_name): Likewise.
7613 * valops.c (value_struct_elt_for_reference): Refine artificial
7614 type logic. Call error if j==-1.
7615
09b58708
JK
76162011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7617
7618 Fix false GCC warning.
7619 * infcall.c (find_function_addr): Initialize funaddr.
7620
6023c606
PM
76212011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7622
7623 Fix mingw compilation with --enable-targets=all.
7624 * remote-mips.c (gdb_usleep.h): Include header.
7625 (mips_enter_debug): Use gdb_usleep instead of sleep.
7626
0e30163f
JK
76272011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7628
7629 Support resolution of STT_GNU_IFUNC via breakpoints.
7630 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7631 bp_gnu_ifunc_resolver_return.
7632 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7633 the loop. Support bp_gnu_ifunc_resolver and
7634 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7635 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7636 breakpoints.
7637 (bptype_string, print_one_breakpoint_location): Support
7638 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7639 (user_settable_breakpoint): Return true also for
7640 bp_gnu_ifunc_resolver.
7641 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7642 bp_gnu_ifunc_resolver_return.
7643 (set_breakpoint_location_function): New parameter explicit_loc,
7644 describe it. Call find_pc_partial_function_gnu_ifunc with new
7645 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7646 EXPLICIT_LOC is not set.
7647 (set_raw_breakpoint): Set EXPLICIT_LOC for
7648 set_breakpoint_location_function.
7649 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7650 set_breakpoint_location_function.
7651 (mention): Support bp_gnu_ifunc_resolver and
7652 bp_gnu_ifunc_resolver_return.
7653 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7654 set_breakpoint_location_function.
7655 (update_breakpoint_locations): Remove static.
7656 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7657 bp_gnu_ifunc_resolver_return.
7658 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7659 bp_gnu_ifunc_resolver_return.
7660 (update_breakpoint_locations): New declaration.
7661 * elfread.c: Include gdbthread.h and regcache.h.
7662 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7663 functions.
7664 (elf_gnu_ifunc_fns): Install them.
7665 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7666 (stub_gnu_ifunc_resolver_return_stop): New functions.
7667 (stub_gnu_ifunc_fns): Install them.
7668 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7669 and gnu_ifunc_resolver_return_stop.
7670 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7671
07be84bf
JK
76722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
7674 STT_GNU_IFUNC reader implementation.
7675 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7676 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7677 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7678 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7679 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7680 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7681 (elf_gnu_ifunc_resolve_addr): New.
7682 (elf_symfile_read): Call elf_rel_plt_read.
7683 (elf_gnu_ifunc_fns): New.
7684 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7685 Install elf_gnu_ifunc_fns.
7686 * infcall.c (find_function_return_type): New function.
7687 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7688 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7689 (stub_gnu_ifunc_resolve_name): New functions.
7690 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7691 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7692 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7693
300f8e10
JK
76942011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 Code cleanup for later STT_GNU_IFUNC support.
7697 * infcall.c (find_function_addr): Remove variable code, use explicit
7698 dereferences for it. Move VALUE_TYPE initialization later.
7699
11c81455
JK
77002011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7703 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7704 (clear_pc_function_cache): Clear it.
7705 (find_pc_partial_function): Rename to ...
7706 (find_pc_partial_function_gnu_ifunc): ... this function. New
7707 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7708 (find_pc_partial_function): New wrapper for this function.
7709 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7710
0875794a
JK
77112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7712
7713 GDB internal type support for STT_GNU_IFUNC.
7714 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7715 (elf_symtab_read): Set mst_text_gnu_ifunc for
7716 BSF_GNU_INDIRECT_FUNCTION.
7717 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7718 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7719 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7720 nodebug_got_plt_symbol.
7721 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7722 (TYPE_GNU_IFUNC): New.
7723 (struct main_type): New field flag_gnu_ifunc.
7724 (struct builtin_type): New field builtin_func_func.
7725 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7726 nodebug_got_plt_symbol.
7727 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7728 (in_gnu_ifunc_stub): New.
7729 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7730 mst_text_gnu_ifunc.
7731 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7732 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7733 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7734 in_gnu_ifunc_stub.
7735 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7736 * symtab.c (search_symbols): Likewise.
7737 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7738 and mst_slot_got_plt.
7739 (in_gnu_ifunc_stub): New declaration.
7740
d0fb5eae
JK
77412011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 Support a ring of related breakpoints.
7744 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7745 other functions, add gdb_assert.
7746 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7747 watchpoint_del_at_next_stop.
7748 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7749 (bpstat_stop_status): Handle ring in related_breakpoint.
7750 (set_raw_breakpoint_without_location): Initialize ring in
7751 related_breakpoint.
7752 (delete_breakpoint): Handle ring in related_breakpoint, use
7753 watchpoint_del_at_next_stop.
7754 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7755
9cded63f
TT
77562011-03-28 Tom Tromey <tromey@redhat.com>
7757
7758 PR symtab/12441:
7759 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7760 with `language_minimal'.
7761
467d42c4
UW
77622011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7763
7764 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7765 instead of checking for STT_ARM_TFUNC symbol type.
7766
62853458
TT
77672011-03-25 Tom Tromey <tromey@redhat.com>
7768
7769 * linespec.c (symbol_found): Restore line-based result for
7770 non-LOC_LABEL symbols.
7771
a7417d46
KT
77722011-03-25 Kai Tietz <ktietz@redhat.com>
7773
7774 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7775 instead of strcmp for comparison.
7776 (tui_source_is_displayed): Likewise.
7777 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7778
55f1336d
TT
77792011-03-24 Mark Wielaard <mjw@redhat.com>
7780
f33edef8
PP
7781 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7782 complaint.
7783 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7784 (find_partial_die_in_comp_unit): Likewise in comment.
7785 (read_attribute_value): Likewise.
7786 (lookup_die_type): Likewise.
7787 (dwarf_form_name): Likewise.
7788 (dump_die_shallow): Likewise.
7789 (follow_die_ref_or_sig): Likewise.
55f1336d 7790
9ef07c8c
TT
77912011-03-24 Tom Tromey <tromey@redhat.com>
7792
7793 PR breakpoints/11816:
7794 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7795 (decode_compound): Update.
7796 (find_function_symbol): New function.
7797 (decode_dollar): Update.
7798 (decode_label): Add 'function_symbol' parameter. Handle
7799 function-relative labels.
7800 (decode_variable): Update.
7801 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7802 not its line. Set `special_display' and canonical name for
7803 labels.
7804
56435ebe
TT
78052011-03-24 Tom Tromey <tromey@redhat.com>
7806
7807 * linespec.h (struct linespec_result) <special_display>: New
7808 field.
7809 * breakpoint.h (struct breakpoint) <display_canonical>: New
7810 field.
7811 * breakpoint.c (print_breakpoint_location): Respect
7812 display_canonical.
7813 (create_breakpoint_sal): Add 'display_canonical' parameter.
7814 (create_breakpoints_sal): Update.
7815 (create_breakpoint): Update.
7816
7efd8fc2
TT
78172011-03-24 Tom Tromey <tromey@redhat.com>
7818
7819 * symtab.c (decode_line_spec): Update.
7820 * linespec.c (build_canonical_line_spec): Change type of
7821 'canonical'.
7822 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7823 (find_method, decode_all_digits, decode_dollar, decode_label)
7824 (symbol_found): Likewise.
7825 (init_linespec_result): New function.
7826 * breakpoint.c (struct captured_parse_breakpoint_args)
7827 <canonical_p>: New field, replaces addr_string_p.
7828 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7829 'addr_string'.
7830 (parse_breakpoint_sals): Likewise.
7831 (do_captured_parse_breakpoint): Update.
7832 (create_breakpoint): Use struct linespec_result.
7833 (until_break_command): Update.
7834 (breakpoint_re_set_one): Update.
7835 (decode_line_spec_1): Update.
7836 * linespec.h (struct linespec_result): New.
7837 (init_linespec_result): Declare.
7838
788c8b10
PA
78392011-03-23 Pedro Alves <pedro@codesourcery.com>
7840
7841 * regcache.c (regcache_raw_read): If the target didn't supply a
7842 given raw register, mark it as unavailable.
7843
0ba1096a
KT
78442011-03-23 Kai Tietz <ktietz@redhat.com>
7845
7846 * breakpoint.c (clear_command): Use filename_cmp
7847 instead of strcmp for comparison.
7848 * buildsym.c (watch_main_source_file_lossage): Likewise.
7849 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7850 checking just for slash.
7851 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7852 strrchr and filename_cmp instead of strcmp for filenames.
7853 (add_old_header_file): Use filename_cmp
7854 instead of strcmp for comparison.
7855 * exec.c (exec_set_section_address): Likewise.
7856 * macrotab.c (macro_lookup_inclusion): Likewise.
7857 (macro_lookup_inclusion): Likewise.
7858 * elfread.c (_initialize_elfread): Likewise.
7859 (elfstab_offset_sections): Likewise.
7860 (elfstab_offset_sections): Use lbasename instead of
7861 strrchr.
7862 * mdebugread.c (parse_partial_symbols): Likewise.
7863 (arse_partial_symbols): Use filename_(n)cmp instead of
7864 str(n)cmp for comparison.
7865 * minsyms.c (lookup_minimal_symbol): Likewise.
7866 * psymtab.c (read_psymtabs_with_filename): Likewise.
7867 * solib.c (solib_read_symbols): Likewise.
7868 (reload_shared_libraries_1): Likewise.
7869 * symmisc.c (maintenance_print_symbols): Likewise.
7870 * symfile.c (separate_debug_file_exists): Likewise.
7871 (reread_symbols): Likewise.
7872 (find_separate_debug_file_by_debuglink): Likewise.
7873 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7874 * source.c (add_path): Likewise.
7875 * symtab.c (filename_seen): Likewise.
7876 (file_matches): Likewise.
7877 (print_symbol_info): Likewise.
7878 (maybe_add_partial_symtab_filename): Likewise.
7879 (make_source_files_completion_list): Likewise.
7880 * xml-syscall.c (init_sysinfo): Likewise.
7881 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7882 IS_DIR_SEPARATOR for checking for trailing path separator.
7883
dd90784c
JK
78842011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7885
7886 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7887 label abort_expression.
7888 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7889 DWARF_VALUE_OPTIMIZED_OUT.
7890
3167638f
JK
78912011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7892
7893 Code cleanup.
7894 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7895 to linkage_name. Invert its value. Update the function comment.
7896 (c_type_print_varspec_suffix): Invert it at the caller.
7897 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7898
ce406537
PA
78992011-03-22 Pedro Alves <pedro@codesourcery.com>
7900
7901 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7902 errors when reading the `stop_pc'.
7903 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7904 get_frame_pc.
7905
da5d4055
PM
79062011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7907
7908 * NEWS: Document gdb.Write stream keyword.
7909
29e0eb9c
JK
79102011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7911
7912 Revert:
7913 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7914 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7915 (dwarf2_add_field): Fix new_field->accessibility for
7916 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7917
05775840
PM
79182011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7919
f33edef8 7920 PR python/12183
05775840
PM
7921
7922 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7923 other error classes. Do not print stack trace.
7924
a0cb7835
JK
79252011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7926
7927 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7928 (dwarf2_add_field): Fix new_field->accessibility for
7929 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7930
d19f7eee
UW
79312011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7932
7933 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7934 encountering a load via a non-SP register.
7935
4a2fbb50
UW
79362011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7937
7938 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7939 field in returned unwinder.
7940
3489610d
JB
79412012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7942
7943 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7944
8c1a34e7
JB
79452012-03-21 Joel Brobecker <brobecker@adacore.com>
7946
7947 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7948 of xmalloc.
7949
8fbca658
PA
79502012-03-18 Pedro Alves <pedro@codesourcery.com>
7951
7952 * frame.c (frame_unwind_register): Throw an error if unwinding the
7953 register failed.
7954 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7955 an unwind stop reason.
7956 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7957 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7958 UNWIND_UNAVAILABLE>: New.
7959 * inline-frame.c (inline_frame_unwind): Install
7960 default_frame_unwind_stop_reason.
7961 * frame-unwind.c: Include "exceptions.h".
7962 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7963 (default_frame_unwind_stop_reason): New.
7964 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7965 (default_frame_unwind_stop_reason): Declare.
7966 (struct frame_unwind) <stop_reason>: New function pointer.
7967
7968 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7969 * dwarf2-frame.c: Include exceptions.h.
7970 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7971 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7972 computing the CFA. If such an error was thrown, set
7973 unavailable_retaddr.
7974 (dwarf2_frame_unwind_stop_reason): New.
7975 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7976 unavailable.
7977 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7978 (dwarf2_signal_frame_unwind): Ditto.
7979
7980 * amd64-tdep.c: Include "exceptions.h".
7981 (struct amd64_frame_cache): New field "base_p".
7982 (amd64_init_frame_cache): Clear it.
7983 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7984 Avoid reading registers with functions that throw if the register
7985 is not necessary to compute the frame base.
7986 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7987 swallowing NOT_AVAILABLE_ERROR.
7988 (amd64_frame_unwind_stop_reason): New.
7989 (amd64_frame_this_id): Don't build a frame id if the frame base
7990 was unavailable.
7991 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7992 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7993 base_p if the frame base was computable.
7994 (amd64_sigtramp_frame_unwind_stop_reason): New.
7995 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7996 frame base was unavailable.
7997 (amd64_sigtramp_frame_unwind): Install
7998 amd64_sigtramp_frame_unwind_stop_reason.
7999 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8000 base_p if the frame base was computable.
8001 (amd64_epilogue_frame_unwind_stop_reason): New.
8002 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8003 frame base was unavailable.
8004 (amd64_epilogue_frame_unwind): Install
8005 amd64_epilogue_frame_unwind_stop_reason.
8006 * i386-tdep.c: Include "exceptions.h".
8007 (struct i386_frame_cache): New field "base_p".
8008 (i386_init_frame_cache): Clear it.
8009 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8010 Avoid reading registers with functions that throw if the register
8011 is not necessary to compute the frame base.
8012 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8013 swallowing NOT_AVAILABLE_ERROR.
8014 (i386_frame_unwind_stop_reason): New.
8015 (i386_frame_this_id): Don't build a frame id if the frame base was
8016 unavailable.
8017 (i386_frame_prev_register): Handle unavailable SP.
8018 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8019 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8020 base_p if the frame base was computable.
8021 (i386_epilogue_frame_unwind_stop_reason): New.
8022 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8023 base was unavailable.
8024 (i386_epilogue_frame_unwind): Install
8025 i386_epilogue_frame_unwind_stop_reason.
8026 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8027 base_p if the frame base was computable.
8028 (i386_sigtramp_frame_unwind_stop_reason): New.
8029 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8030 base was unavailable.
8031 (i386_sigtramp_frame_unwind): Install
8032 i386_sigtramp_frame_unwind_stop_reason.
8033 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8034 type's size, not the register's.
8035 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8036
8037 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8038 default_frame_unwind_stop_reason.
8039 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8040 (alpha_heuristic_frame_unwind): Ditto.
8041 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8042 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8043 * avr-tdep.c (avr_frame_unwind): Ditto.
8044 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8045 Ditto.
8046 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8047 * frv-tdep.c (frv_frame_unwind): Ditto.
8048 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8049 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8050 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8051 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8052 (hppa_stub_frame_unwind): Ditto.
8053 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8054 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8055 (ia64_libunwind_frame_unwind)
8056 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8057 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8058 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8059 * m32c-tdep.c (m32c_unwind): Ditto.
8060 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8061 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8062 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8063 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8064 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8065 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8066 * mep-tdep.c (mep_frame_unwind): Ditto.
8067 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8068 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8069 (mips_stub_frame_unwind): Ditto.
8070 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8071 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8072 * mt-tdep.c (mt_frame_unwind): Ditto.
8073 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8074 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8075 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8076 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8077 (s390_sigtramp_frame_unwind): Ditto.
8078 * score-tdep.c (score_prologue_unwind): Ditto.
8079 * sh-tdep.c (sh_frame_unwind): Ditto.
8080 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8081 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8082 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8083 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8084 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8085 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8086 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8087 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8088 (sparc64obsd_trapframe_unwind): Ditto.
8089 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8090 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8091 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8092 * v850-tdep.c (v850_frame_unwind): Ditto.
8093 * vax-tdep.c (vax_frame_unwind): Ditto.
8094 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8095 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8096 * xtensa-tdep.c (xtensa_unwind): Ditto.
8097
f23d1b92
PA
80982011-03-18 Pedro Alves <pedro@codesourcery.com>
8099
8100 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8101 there's always a frame. Use get_frame_pc_if_available instead of
8102 get_frame_pc, and if there's no PC available, don't look up a
8103 symtab.
8104
1d4f5741
PA
81052011-03-18 Pedro Alves <pedro@codesourcery.com>
8106
8107 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8108 unavailable PC.
8109
dba09041
PA
81102011-03-18 Pedro Alves <pedro@codesourcery.com>
8111
8112 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8113 gracefully.
8114
9a26e44c
PA
81152011-03-18 Pedro Alves <pedro@codesourcery.com>
8116
8117 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8118 * frame.c (frame_unwind_caller_pc_if_available): New.
8119 * stack.c (frame_info): Handle unavailable PC.
8120
81212011-03-18 Pedro Alves <pedro@codesourcery.com>
8122
8123 * frame.c (frame_unwind_pc): Rename to ...
8124 (frame_unwind_pc_if_available): ... this. New `pc' output
8125 parameter. Change return type to int. Gracefully handle
8126 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8127 happened, or 1 otherwise.
8128 (frame_unwind_pc): Reimplement on top of
8129 frame_unwind_pc_if_available.
8130 (get_frame_func): Rename to ...
8131 (get_frame_func_if_available): New `pc' output parameter. Change
8132 return type to int. Gracefully handle the PC not being available.
8133 (get_frame_func): Reimplement on top of
8134 get_frame_func_if_available.
8135 (select_frame): Handle the PC being unavailable.
8136 (get_prev_frame): Handle the PC being unavailable.
8137 (get_frame_pc_if_available): New.
8138 (get_frame_address_in_block_if_available): New.
8139 (find_frame_sal): Handle the frame PC not being available.
8140 * frame.h (get_frame_pc_if_available): Declare.
8141 (get_frame_address_in_block_if_available): Declare.
8142 (get_frame_func_if_available): Declare.
8143 * stack.c (print_frame_info): Handle the PC being unavailable.
8144 (find_frame_funname): Ditto.
8145 (print_frame): Handle the PC being unavailable.
8146 (get_frame_language): Ditto.
8147 * blockframe.c (get_frame_block): Ditto.
8148 * macroscope.c (default_macro_scope): Ditto.
8149 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8150
81512011-03-18 Pedro Alves <pedro@codesourcery.com>
8152
8153 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8154 NOT_AVAILABLE_ERROR when evaluating the location expression.
8155
81562011-03-18 Pedro Alves <pedro@codesourcery.com>
8157
8158 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8159 returning that the register piece is unavailable/optimized out.
8160 (write_pieced_value): Handle get_frame_register_bytes returning
8161 that the register piece is unavailable/optimized out when doing a
8162 read-modify write of a bitfield.
8163 * findvar.c (value_from_register): Handle get_frame_register_bytes
8164 returning that the register piece is unavailable/optimized out.
8165 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8166 and `unavailablep'. Throw error on bad debug info. Use
8167 frame_register instead of frame_register_read, to fill in the new
8168 arguments.
8169 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8170 and `unavailablep'.
8171 * valops.c: (value_assign): Adjust, and handle
8172 get_frame_register_bytes failing.
8173 * spu-tdep.c: Include exceptions.h.
8174 (spu_software_single_step): Adjust, and handle
8175 get_frame_register_bytes failing.
8176 (spu_get_longjmp_target): Ditto.
8177 * gdbarch.sh (register_to_value): Change to return int. New
8178 parameters `optimizedp' and `unavailablep'.
8179 * gdbarch.h, gdbarch.c: Regenerate.
8180 * i386-tdep.c (i386_register_to_value): Adjust to new
8181 gdbarch_register_to_value interface.
8182 * i387-tdep.c (i387_register_to_value): Ditto.
8183 * i387-tdep.h (i387_register_to_value): Ditto.
8184 * alpha-tdep.c (alpha_register_to_value): Ditto.
8185 * ia64-tdep.c (ia64_register_to_value): Ditto.
8186 * m68k-tdep.c (m68k_register_to_value): Ditto.
8187 * mips-tdep.c (mips_register_to_value): Ditto.
8188 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8189
0fdb4f18
PA
81902011-03-18 Pedro Alves <pedro@codesourcery.com>
8191
8192 * findvar.c (value_of_register): Mark the value as unavailable, if
8193 the register is unavailable.
8194 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8195 (frame_register): New `unavailablep' parameter.
8196 (frame_register_read): Update comment.
8197 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8198 Set it if the register is unavailable. If the register is
8199 unavailable, clear the output buffer.
8200 (frame_register): New `unavailablep' parameter. Pass it down.
8201 (frame_unwind_register): Adjust.
8202 (put_frame_register): Adjust.
8203 (frame_register_read): Adjust. Also return false if the register
8204 is not available.
8205 (frame_register_unwind_location): Adjust.
8206 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8207 is unavailable, mark the value accordingly.
8208 * stack.c (frame_info): Handle unavailable registers.
8209
e69aa73e
PA
82102011-03-18 Pedro Alves <pedro@codesourcery.com>
8211
8212 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8213 simplify, using regcache_cooked_read.
8214
05d1431c
PA
82152011-03-18 Pedro Alves <pedro@codesourcery.com>
8216
8217 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8218 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8219 (regcache_raw_read_unsigned, regcache_raw_read_part)
8220 (regcache_cooked_read, regcache_cooked_read_signed)
8221 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8222 (regcache_cooked_read_ftype): Change return to enum
8223 register_status.
8224 * regcache.c: Include exceptions.h
8225 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8226 (do_cooked_read): Change return to enum register_status. Always
8227 forward to regcache_cooked_read.
8228 (regcache_raw_read): Change return to enum register_status. If
8229 the register is not REG_VALID, memset the buffer. Return the
8230 register's status.
8231 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8232 return the register's status.
8233 (regcache_raw_read_unsigned): Ditto.
8234 (regcache_cooked_read): Change return to enum register_status.
8235 Assert that with read-only regcaches, the register's status must
8236 be known. If the regcache is read-only, and the register is not
8237 REG_VALID, memset the buffer. Return the register's status.
8238 (regcache_cooked_read_signed): Change return to enum
8239 register_status. Handle non-REG_VALID registers and return the
8240 register's status.
8241 (regcache_cooked_read_unsigned): Change return to enum
8242 register_status. Handle non-REG_VALID registers and return the
8243 register's status.
8244 (regcache_xfer_part, regcache_raw_read_part)
8245 (regcache_cooked_read_part): Change return to enum
8246 register_status. Return the register's status.
8247 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8248 unavailable.
8249 (regcache_dump): Handle unavailable cooked registers.
8250 * frame.c (do_frame_register_read): Adjust interface to match
8251 regcache_cooked_read_ftype.
8252 * gdbarch.sh (pseudo_register_read): Change return to enum
8253 register_status.
8254 * gdbarch.h, gdbarch.c: Regenerate.
8255
8256 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8257 register_status.
8258 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8259 register_status. If reading a raw register indicates the raw
8260 register is not valid, return the raw register's status,
8261 otherwise, return REG_VALID.
8262 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8263 register_status. Handle non-REG_VALID raw registers and return
8264 the register's status.
8265 * arm-tdep.c (arm_neon_quad_read)
8266 (arm_pseudo_read): Change return to enum register_status. Handle
8267 non-REG_VALID raw registers and return the register's status.
8268 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8269 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8270 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8271 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8272 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8273 register_status.
8274 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8275 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8276 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8277 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8278 (m32c_pseudo_register_read): Change return to enum
8279 register_status. Adjust.
8280 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8281 enum register_status. Return the register's status.
8282 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8283 register_status. Return the register's status.
8284 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8285 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8286 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8287 * rs6000-tdep.c (move_ev_register_func): New typedef.
8288 (e500_move_ev_register): Use it. Change return to enum
8289 register_status. Return the register's status.
8290 (do_regcache_raw_read): New function.
8291 (do_regcache_raw_write): New function.
8292 (e500_pseudo_register_read): Change return to enum
8293 register_status. Return the register's status. Use
8294 do_regcache_raw_read.
8295 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8296 (dfp_pseudo_register_read): Change return to enum register_status.
8297 Return the register's status.
8298 (vsx_pseudo_register_read): Ditto.
8299 (efpr_pseudo_register_read): Ditto.
8300 (rs6000_pseudo_register_read): Ditto.
8301 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8302 register_status. Return the register's status.
8303 * sh64-tdep.c (pseudo_register_read_portions): New function.
8304 (sh64_pseudo_register_read): Change return to enum
8305 register_status. Use pseudo_register_read_portions. Return the
8306 register's status.
8307 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8308 register_status. Return the register's status.
8309 * sh-tdep.c (pseudo_register_read_portions): New function.
8310 (sh_pseudo_register_read): Change return to enum register_status.
8311 Use pseudo_register_read_portions. Return the register's status.
8312 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8313 enum register_status. Return the register's status.
8314 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8315 * spu-tdep.c (spu_pseudo_register_read_spu)
8316 (spu_pseudo_register_read): Ditto.
8317 * xtensa-tdep.c (xtensa_register_read_masked)
8318 (xtensa_pseudo_register_read): Ditto.
8319 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8320
e10abd8f
PM
83212011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8322
8323 * python/py-value.c (valpy_getitem): Fix formatting of error function
8324 call.
8325
7ea6d463
PM
83262011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8327
8328 ARI fixes: Add missing internationalization markups throughout
8329 C source files.
8330 * darwin-nat-info.c: Ditto.
8331 * record.c: Ditto.
8332 * remote.c: Ditto.
8333 * mi/mi-main.c: Ditto.
8334
001083c6
PM
83352011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8336
8337 ARI fixes: Add missing internationalization markups throughout
8338 yacc files.
8339 * c-exp.y: Ditto.
8340 * cp-name-parser.y: Ditto.
8341 * f-exp.y: Ditto.
8342 * m2-exp.y: Ditto.
8343 * objc-exp.y: Ditto.
8344 * p-exp.y: Ditto.
8345
4f1cdeec
PM
83462011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8347
8348 ARI fixes: Messages should have no trailing new lines.
8349 * darwin-nat.c (mach_check_error): Remove trailing new line from
8350 warning function call message.
8351 * record.c (bfdcore_read): Idem for error call.
8352
28e698f1
PM
83532011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8354
8355 * common/signals.c (target_signal_from_host): Add _ markup to error
8356 function call message.
8357 (target_signal_to_host): Add _ markup and remove trailing new line
8358 from warning call message.
8359 (target_signal_from_command): Add _ markup to error function call
8360 message.
8361
99c3dc11
PM
83622011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8363
f33edef8 8364 PR python/12149
99c3dc11
PM
8365
8366 * python/python.c (gdbpy_write): Accept a stream argument and
8367 operate to the appropriate stream.
8368 (gdbpy_flush): Likewise.
8369 (_initialize_python): Add stream constants.
8370 (finish_python_initialization): Add GdbOutputErrorFile class.
8371
c20800be
KY
83722011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8373
8374 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8375
f4a1794a
KY
83762011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8377
8378 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8379 to store_signed_integer. Add debug message when relocating CALL
8380 instructions. Fix formatting of debug message.
8381 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8382
d4862372
JB
83832011-03-17 Joel Brobecker <brobecker@gnat.com>
8384
8385 * target.h (struct target_ops): Remove to_lookup_symbol field.
8386 (target_lookup_symbol): Delete macro.
8387 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8388 (update_current_target, setup_target_debug): Remove handling
8389 of to_lookup_symbol target_ops field.
8390 * ada-tasks.c (get_known_tasks_addr): Remove use of
8391 target_lookup_symbol.
8392 * coffread.c (coff_symtab_read): Likewise.
8393 * dbxread.c (read_dbx_symtab): Ditto.
8394
d645e32e
JB
83952011-03-17 Joel Brobecker <brobecker@gnat.com>
8396
8397 PR gdb/12116:
8398 * configure.ac: Add getthrds declaration check.
8399 * configure, config.in: Regenerate.
8400 * aix-thread.c (getthrds): Declare only if not already declared
8401 in procinfo.h. More declaration out of get_signaled_thread to
8402 global scope.
8403
29703da4
PM
84042011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8405
8406 * python/py-symtab.c: Populate symtab_object_methods,
8407 sal_object_methods.
8408 (stpy_is_valid): New function.
8409 (salpy_is_valid): Ditto.
8410 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8411 (sympy_is_valid): New function.
8412 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8413 (objfpy_is_valid): New function.
8414 * python/py-inferior.c: Populate inferior_object_methods.
8415 (infpy_is_valid): New function.
8416 * python/py-infthread.c: Populate thread_object_methods.
8417 (thpy_is_valid): New function.
8418 * python/py-block.c: Declare block_object_methods. Populate. Declare
8419 block_iterator_object_methods. Populate.
8420 (blpy_is_valid): New function.
8421 (blpy_iter_is_valid): Ditto.
8422
c00f8484
KS
84232011-03-16 Keith Seitz <keiths@redhat.com>
8424
8425 * linespec.c (find_methods): Canonicalize NAME before looking
8426 up the symbol.
8427 (name_end): New function.
8428 (keep_name_info): New function.
8429 (decode_line_1): Use keep_name_info.
8430 (decode_compound): Likewise.
8431 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8432 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8433
8434 PR c++/12273
8435 * linespec.c (locate_first_half): Keep overload information, too.
8436 (decode_compound): Use a string to represent break characters
8437 to escape the loop.
8438 If P points to a break character, do not increment it.
8439 For C++ and Java, keep overload information and relevant keywords.
8440 If we cannot find a symbol, search the minimal symbols.
8441
8442 PR c++/11734
8443 * linespec.c (decode_compound): Rename SAVED_ARG to
8444 THE_REAL_SAVED_ARG.
8445 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8446 single-quotes.
8447 Pass a valid block to lookup_symbol.
8448 (lookup_prefix_sym): Likewise.
8449 (find_method): Construct search name based on SYM_CLASS instead
8450 of SAVED_ARG.
8451 * psymtab.c (lookup_partial_symbol): Add language parameter.
8452 (lookup_symbol_aux_psymtabs): Likewise.
8453 Don't assume that the psymtab we found was the right one. Search
8454 for the desired symbol in the symtab to be certain.
8455 (psymtab_search_name): New function.
8456 (lookup_partial_symbol): Use psymtab_search_name.
8457 Add language parameter.
8458 (read_symtabs_for_function): Add language parameter and pass to
8459 lookup_partial_symbol.
8460 (find_symbol_file_from_partial): Likewise.
8461
c91513d8
PP
84622011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8463
8464 PR gdb/12528
8465 * dwarf2read.c (noop_record_line): New function.
8466 (dwarf_decode_lines): Ignore line tables for GCd functions.
8467
b37520b6
PM
84682011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8469
8470 Fix ARI warnings about new lines at the end of messages, which
8471 are unneeded as there is a new line added at the end of the message
8472 automatically.
8473 * darwin-nat.c (darwin_stop_inferior): Ditto.
8474 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8475 * dfp.c (decimal_to_number): Ditto.
8476 * exec.c (print_section_info): Ditto.
8477 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8478 * osdata.c (get_osdata): Ditto.
8479 * record.c (bfdcore_write): Ditto.
8480 * remote-mips.c (mips_readchar): Ditto.
8481 * remote.c (read_ptid): Ditto.
8482 * ser-mingw.c (ser_windows_raw): Ditto.
8483 * tracepoint.c (add_local_symbols): Ditto.
8484 * windows-nat.c (fake_create_process): Ditto.
8485
b08ee6a2
TT
84862011-03-16 Tom Tromey <tromey@redhat.com>
8487
8488 * tracepoint.c (stop_tracing): Don't declare.
8489 * event-top.c (after_char_processing_hook): Add `(void)'.
8490
9a6f1302
PM
84912011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8492
8493 * NEWS: Add Parameter sub-classing description.
8494
7ceb86b1
KT
84952011-03-16 Kai Tietz <ktietz@redhat.com>
8496
8497 * MAINTAINERS: Update my e-mail address.
8498
efeff6cf
AT
84992011-03-15 Andreas Tobler <andreast@fgznet.ch>
8500
8501 * MAINTAINERS: Add myself for write after approval privileges.
8502
681c238c
MS
85032011-03-15 Michael Snyder <msnyder@vmware.com>
8504
f3df5b08
MS
8505 * frame.c (find_frame_sal): Assert sym is not null.
8506
13f6513c
MS
8507 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8508
50412521
MS
8509 * objc-lang.c (selectors_info): Check strchr for null result.
8510
681c238c
MS
8511 * stabsread.c (define_symbol): Guard against bad stabstring input.
8512
6ced1581
PM
85132011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8514
8515 Remove trailing spaces and tabulations from pascal language
8516 support sources.
8517 p-exp.y: Ditto.
8518 p-lang.c: Ditto.
8519 p-lang.h: Ditto.
8520 p-valprint.c: Ditto.
8521
9373cf26
JK
85222011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8523
8524 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8525 than LOW. Comment it.
8526 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8527 HIGHPC not strictly higher than LOWPC.
8528
9a1edae6
PM
85292011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8530
8531 Fix formatting of function declarations returning a pointer in
8532 previous commit.
8533 * varobj.c (varobj_add_child): Ditto.
8534 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8535 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8536
24e9cda0
UW
85372011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8538
8539 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8540 for the "generic" vector ABI used with GCC 4.3 and later.
8541 (ppc64_sysv_abi_return_value): Likewise.
8542
85432011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8544
8545 * infcall.c (call_function_by_hand): Function return value is
8546 always a non_lval, even when using struct_return.
8547
c9174737
PA
85482011-03-15 Pedro Alves <pedro@codesourcery.com>
8549
8550 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8551 (map_display_numbers): New.
8552 (do_delete_display): New.
8553 (undisplay_command): Use map_display_numbers.
8554 (do_enable_disable_display): New.
8555 (enable_disable_display_command): New function.
8556 (enable_display): Delete.
8557 (enable_display_command): New.
8558 (disable_display_command): Reimplement.
8559 (_initialize_printcmd): Adjust "enable display" command to use
8560 `enable_display_command' as callback.
8561
350c6c65
PM
85622011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8563
8564 * NEWS: Add Python breakpoint 'stop' operation.
8565
824446ad
PM
85662011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8567
8568 * NEWS: Delete duplicate entry. Fix typo.
8569
2021ad3a
PM
85702011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8571
8572 Fix ARI warning about function names in first column.
8573 Put prototype declaration on same line as return type.
8574 * objc-exp.y: Ditto.
8575 * p-exp.y: Ditto.
8576 * python/py-stopevent.h: Ditto.
8577 For long function names, split parameters to
8578 allow function name on same line as return type.
8579 * solib-pa64.c: Ditto.
8580 * varobj.c: Ditto.
8581 * varobj.h: Ditto.
8582 For long function declaration, use single line.
8583 * hppa-tdep.h: Ditto.
8584 * inferior.h: Ditto.
8585
7371cf6d
PM
85862011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8587
8588 * python/python.h: Declare gdbpy_should_stop and
8589 gdbpy_breakpoint_has_py_cond.
8590 * python/python.c: Add python.h to includes. Remove python.h from
8591 HAVE_PYTHON definition
8592 (gdbpy_should_stop): New dummy function.
8593 (gdbpy_breakpoint_has_py_cond): New dummy function.
8594 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8595 sub-classing capabilities.
8596 (gdbpy_should_stop): New function.
8597 (gdbpy_breakpoint_has_py_cond): New function.
8598 (local_setattro): New function.
8599 * breakpoint.c (condition_command): Add check for Python 'stop'
8600 operation.
8601 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8602 operation function as part of stop/continue tests.
8603
37b50a69
TT
86042011-03-14 Tom Tromey <tromey@redhat.com>
8605
8606 PR gdb/12576:
8607 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8608 (needs_frame_dwarf_call): Likewise.
8609
eeae04df
PM
86102011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8611
8612 Fix ARI warning about functions without parameters that do not
8613 use (void).
8614 * breakpoint.c (all_tracepoints): Replace () by (void).
8615 * f-exp.y (match_string_literal): Ditto.
8616 (yylex): Ditto.
8617 * m2-exp.y (yylex): Ditto.
8618 * mep-tdep.c (current_me_module): Ditto.
8619 (current_options): Ditto.
8620 (current_cop_data_bus_width): Ditto.
8621 (current_cr_names): Ditto.
8622 (current_cr_is_float): Ditto.
8623 (current_ccr_names): Ditto.
8624 * objc-exp.y (yylex): Ditto.
8625 * p-exp.y (yylex): Ditto.
8626 * remote.c (send_interrupt_sequence): Ditto.
8627 * tracepoint.c (current_trace_status): Ditto.
8628 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8629 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8630
6dc3565d
MS
86312011-03-11 Michael Snyder <msnyder@vmware.com>
8632
1427fe5e
MS
8633 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8634 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8635 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8636 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8637 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8638
60bc018f
MS
8639 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8640 (delete_async_event_handler): Ditto.
8641
f3be5b64
MS
8642 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8643
4c2d5724
MS
8644 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8645
6dc3565d
MS
8646 * top.c (set_verbose): Assert showcmd was found.
8647
4e6ca6d5
MG
86482011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8649
8650 * xtensa-tdep.c (warning_once): Correct style issues.
8651
815a83e4
YQ
86522011-03-11 Yao Qi <yao@codesourcery.com>
8653
8654 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8655
f2eb0bc8
AS
86562011-03-11 Andreas Schwab <schwab@redhat.com>
8657
8658 * common/aclocal.m4: Remove.
8659
b801de47
MG
86602011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8661
8662 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8663 (xtensa_write_register, xtensa_read_register): Likewise.
8664 (xtensa_hextochar): Removed.
8665 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8666
dbab50de
MG
86672011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8668
8669 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 8670 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
8671 (xtensa_alloc_frame_cache): Add initialization for new fields.
8672 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8673 (warning_once): New function.
8674 (xtensa_insn_kind): New item c0opc_and.
8675 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
8676 (call0_track_op): Change arguments. New local variable litbase.
8677 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8678 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8679 in the prologue.
dbab50de 8680 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 8681 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
8682 Add the variety of updates to handle extended prologues, which now can
8683 conduct dynamic stack adjustments.
8684 (call0_frame_cache): Likewise.
8685 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8686 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8687
b2c04452
MS
86882011-03-10 Michael Snyder <msnyder@vmware.com>
8689
f8f67713
MS
8690 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8691 (cmd_qtframe): Ditto.
8692 (cmd_qtbuffer): Ditto.
8693 (cmd_bigqtbuffer): Ditto.
8694
197f0a60
TT
86952011-03-10 Tom Tromey <tromey@redhat.com>
8696
8697 * tracepoint.c (trace_actions_command): Update.
8698 * thread.c (thread_apply_command): Update.
8699 * reverse.c (delete_bookmark_command): Update.
8700 (bookmarks_info): Update.
8701 * printcmd.c (undisplay_command): Update.
8702 * memattr.c (mem_enable_command): Update.
8703 (mem_disable_command): Update.
8704 (mem_delete_command): Update.
8705 * inferior.c (detach_inferior_command): Update.
8706 (kill_inferior_command): Update.
8707 (remove_inferior_command): Update.
8708 * cli/cli-utils.h (struct get_number_or_range_state): New.
8709 (init_number_or_range): Declare.
8710 (get_number_or_range): Update.
8711 * cli/cli-utils.c (init_number_or_range): New function.
8712 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8713 static variables.
8714 (number_is_in_list): Update.
8715 * breakpoint.h (get_tracepoint_by_number): Update.
8716 * breakpoint.c (map_breakpoint_numbers): Update for change to
8717 get_number_or_range.
8718 (find_location_by_number): Use get_number, not
8719 get_number_or_range.
8720 (trace_pass_set_count): New function.
8721 (trace_pass_command): Update for change to get_number_or_range.
8722 Rework loop logic.
8723 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8724 'state' parameter.
8725
ecec24e6
PM
87262011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8727
8728 * python/py-param.c (add_setshow_generic): Add set/show callback
8729 parameters. Register Python object context.
8730 (get_show_value): New function.
8731 (get_set_value): New function.
8732 (call_doc_function): New function.
8733 (get_doc_string): Move behind get_show_value/get_set_value.
8734
6d6c6b1f
JK
87352011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8736
8737 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8738
68d6df83
MG
87392011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8740
dbab50de 8741 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
8742 (xtensa_write_register): Likewise.
8743 (xtensa_hextochar): Add comment and update to match coding conventions.
8744 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8745 (execute_l32e, execute_s32e, execute_code): Update comments.
8746 (xtensa_exception_handler_t): Update to match coding conventions.
8747 (xtensa_insn_kind): Likewise.
8748
85c9d6a6
MS
87492011-03-09 Michael Snyder <msnyder@vmware.com>
8750
8751 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8752
91495617
PA
87532011-03-09 Pedro Alves <pedro@codesourcery.com>
8754
8755 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8756
eb8c0621
TT
87572011-03-09 Tom Tromey <tromey@redhat.com>
8758
8759 * thread.c (restore_selected_frame): Handle frame_level == -1.
8760 (make_cleanup_restore_current_thread): Use
8761 get_selected_frame_if_set.
8762 * frame.h (get_selected_frame_if_set): Declare.
8763 * frame.c (get_selected_frame_if_set): New function.
8764
9f37bbcc
PA
87652011-03-09 Pedro Alves <pedro@codesourcery.com>
8766
8767 * cli/cli-cmds.c (shell_escape): Use lbasename.
8768 * coffread.c (coff_start_symtab): Constify parameter.
8769 (complete_symtab): Constify `name' parameter.
8770 (coff_symtab_read): Constify `filestring' local.
8771 (coff_getfilename): Constify return and `result' local.
8772 Use lbasename.
8773 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8774 * linux-fork.c (info_checkpoints_command): Use lbasename.
8775 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8776 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8777 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8778 * procfs.c (procfs_make_note_section): Use lbasename.
8779 * tui/tui-io.c (printable_part): Constity return and parameter.
8780 Use lbasename.
8781 (print_filename): Constify parameters, and local `s'.
8782 (tui_rl_display_match_list): Constify local `temp'.
8783
f8de3c55
JK
87842011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8785
8786 Revert:
8787 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8788 Fix DWARF-3+ DW_AT_accessibility default assumption.
8789 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8790 cu->header.version >= 3.
8791
d9837b00
YQ
87922011-03-09 Yao Qi <yao@codesourcery.com>
8793
8794 * common/Makefile.in: Remove.
8795 * common/configure: Remove.
8796 * common/configure.ac: Remove.
8797
e637a4f5
YQ
87982011-03-09 Yao Qi <yao@codesourcery.com>
8799
8800 Revert:
8801 2011-02-11 Yao Qi <yao@codesourcery.com>
8802
8803 * common/Makefile.in: Add copyright header.
8804
8805 2011-02-11 Yao Qi <yao@codesourcery.com>
8806
8807 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8808 libcommon.a.
8809 * configure.ac: Add common to sub dir.
8810 * configure: Regenerate.
8811
f976a05d
MG
88122011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8813
8814 * xtensa-tdep.c (call0_ret): New function.
8815 (xtensa_skip_prologue): Speed up analysis.
8816
57041825
MG
88172011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8818
8819 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8820 while executing MI command -data-list-changed-registers.
8821
08b9c608
MG
88222011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8823
8824 * xtensa-tdep.c (xtensa_read_register): New function.
8825 (xtensa_write_register): New function.
8826 (xtensa_find_register_by_name): New function.
8827 (xtensa_windowed_frame_cache): Update comments in type description.
8828 (xtensa_frame_cache): Likewise.
8829 (xtensa_window_interrupt_insn): New function.
8830 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8831 (xtensa_insn_kind): Add new instructions.
8832 (rwx_special_register): New function.
8833 (call0_classify_opcode): Add new instructions to the analysis.
8834 (a0_saved, a7_saved, a11_saved): New variables.
8835 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8836 (execute_l32e): New function.
8837 (execute_s32e): New function.
8838 (xtensa_exception_handler_t): New type.
8839 (execute_code): New function.
8840 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8841 analysis for Xtensa Window Exception handlers.
8842
4d1acb11
MG
88432011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8844
98689b25
MG
8845 * xtensa-tdep.c (TX_PS): New.
8846 (windowing_enabled): Update to count for Call0 ABI.
8847 (xtensa_hextochar): New.
8848 (xtensa_init_reggroups): Make algorithm generic.
8849 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8850
88512011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8852
8853 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 8854
d3f323f3
MS
88552011-03-08 Michael Snyder <msnyder@vmware.com>
8856
3dcabaa8
MS
8857 * i386-tdep.c (i386_follow_jump): Check return value of
8858 target_read_memory.
8859 (i386_analyze_struct_return): Ditto.
8860 (i386_skip_probe): Ditto.
8861 (i386_match_insn): Ditto.
8862 (i386_skip_noop): Ditto.
8863 (i386_analyze_frame_setup): Ditto.
8864 (i386_analyze_register_saves): Ditto.
8865 (i386_skip_prologue): Ditto.
8866 (i386_skip_main_prologue): Ditto.
8867
13b3fd9b
MS
8868 * target.c (read_whatever_is_readable): Fix memory leak.
8869
d3f323f3
MS
8870 * i386-tdep.c (i386_process_record): Document fall through.
8871
421d5c74
JK
88722011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8873
8874 Fix DWARF-3+ DW_AT_accessibility default assumption.
8875 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8876 cu->header.version >= 3.
8877
63154eca
PA
88782011-03-08 Pedro Alves <pedro@codesourcery.com>
8879
8880 * remote.c (remote_check_symbols): Skip if the target has no
8881 execution.
8882
f1a507a1
JB
88832011-03-08 Joel Brobecker <brobecker@adacore.com>
8884
8885 * target.c (read_whatever_is_readable): Reformat comment,
8886 with a minor typo fix. Minor reformatting of the code.
8887
36073a92
YQ
88882011-03-08 Yao Qi <yao@codesourcery.com>
8889
8890 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8891 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8892 Use cached result instead of calling displaced_in_arm_mode again.
8893 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8894 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8895 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8896 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8897 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8898 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8899 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8900 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8901 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8902 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8903 (arm_catch_kernel_helper_return): Likewise.
8904 * gdb/arm-tdep.h : Update function declarations.
8905
d3f323f3 89062011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8907
e0e40094
MS
8908 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8909
0b2381f5
MS
8910 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8911
0350914a
MS
8912 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8913
69feea6f
MS
8914 * elfread.c (elf_symtab_read): Stop memory leak.
8915
e6040cbd
MS
8916 * main.c (captured_main): Fix memory leak.
8917
052874e8
AS
89182011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8919
8920 * ada-lang.c (compare_names): Call is_name_suffix with string1
8921 instead of string2.
8922
b11896a5
TT
89232011-03-07 Tom Tromey <tromey@redhat.com>
8924
8925 * xcoffread.c (xcoff_sym_fns): Update.
8926 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8927 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8928 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8929 (symbol_file_add_with_addrs_or_offsets): Likewise.
8930 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8931 * somread.c (som_sym_fns): Update.
8932 * psymtab.h (require_partial_symbols): Declare.
8933 * psymtab.c (require_partial_symbols): New function.
8934 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8935 (ALL_OBJFILE_PSYMTABS): Undef.
8936 (ALL_PSYMTABS): Move from psympriv.h.
8937 (lookup_partial_symtab, find_pc_sect_psymtab)
8938 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8939 (find_last_source_symtab_from_partial)
8940 (forget_cached_source_info_partial)
8941 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8942 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8943 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8944 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8945 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8946 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8947 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8948 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8949 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8950 psymtabs.
8951 * mipsread.c (ecoff_sym_fns): Update.
8952 * machoread.c (macho_sym_fns): Update.
8953 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8954 (read_psyms): New function.
8955 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8956 (elf_sym_fns_lazy_psyms): New global.
8957 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8958 dwarf2_build_psymtabs.
8959 * dbxread.c (aout_sym_fns): Update.
8960 * coffread.c (coff_sym_fns): Update.
8961
fda326dd
TT
89622011-03-07 Tom Tromey <tromey@redhat.com>
8963
8964 * infrun.c (print_exited_reason): Include inferior id and pid in
8965 message.
8966
aeaec162
TT
89672011-03-07 Tom Tromey <tromey@redhat.com>
8968
8969 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8970 parameter.
8971 (target_has_execution_1): Update.
8972 (target_has_execution_current): Declare.
8973 (target_has_execution): Call target_has_execution_current.
8974 (default_child_has_execution): Update.
8975 * target.c (default_child_has_execution): Add 'the_ptid'
8976 parameter.
8977 (target_has_execution_1): Likewise.
8978 (target_has_execution_current): New function.
8979 (add_target): Update.
8980 (init_dummy_target): Update.
8981 * remote-m32r-sdi.c (m32r_has_execution): New function.
8982 (init_m32r_ops): Use it.
8983 * record.c (record_core_has_execution): Now static. Add
8984 'the_ptid' parameter.
8985 * inferior.c (have_live_inferiors): Don't save current thread.
8986 Use target_has_execution_1.
8987
08e14083
YQ
89882011-03-07 Yao Qi <yao@codesourcery.com>
8989
8990 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8991
c05d19c5
JB
89922011-03-07 Joel Brobecker <brobecker@adacore.com>
8993
8994 * elfread.c (elf_symtab_read): Minor reformatting.
8995
3e6ef9e4
JB
89962011-03-07 Joel Brobecker <brobecker@adacore.com>
8997
8998 * objc-lang.c (selectors_info): Minor reformatting.
8999
dbb8534f
JB
90002011-03-07 Joel Brobecker <brobecker@adacore.com>
9001
9002 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9003
dd70cc93
JB
90042011-03-07 Joel Brobecker <brobecker@adacore.com>
9005 Michael Snyder <msnyder@vmware.com>
9006
9007 * ada-valprint.c (ada_val_print_array): Move the declaration of
9008 "byte_order" and "elttype" inside the block where these variables
9009 are actually used. Remove some special handling for the case
9010 where "elttype" and "eltlen" are null. Replace by a comment
9011 and a couple of assertion checks.
9012
b27cf2b3
MS
90132011-03-05 Michael Snyder <msnyder@vmware.com>
9014
9015 * source.c (add_path): Replace semicolon at end of block.
9016 * dwarf2expr.c (execute_stack_op): Ditto.
9017
5387a0c6
MF
90182011-03-05 Mike Frysinger <vapier@gentoo.org>
9019
9020 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9021 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9022 (bfin-*-*): Likewise.
9023
e3aa49af
MS
90242011-03-05 Michael Snyder <msnyder@vmware.com>
9025
82ae4854
MS
9026 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9027 * mdebugread.c (parse_symbol): Ditto.
9028 * parse.c (parse_exp_in_context): Ditto.
9029 * source.c (add_path): Ditto.
9030 * utils.c (gnu_debuglink_crc32): Ditto.
9031 * varobj.c (variable_language): Ditto.
9032
e3aa49af
MS
9033 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9034
154f592e
MS
90352011-03-04 Michael Snyder <msnyder@vmware.com>
9036
da3ecdc6
MS
9037 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9038
9cc89665
MS
9039 * symfile.c (simple_overlay_update): Check for null return value
9040 from lookup_minimal_symbol.
9041
154f592e
MS
9042 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9043
63ffa6ee
TJB
90442011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9045
9046 * eval.c (parse_and_eval_address_1): Remove function.
9047 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9048 instead of parse_and_eval_address_1.
9049 * value.h (parse_and_eval_address_1): Remove prototype.
9050
a17d146e
MS
90512011-03-04 Michael Snyder <msnyder@vmware.com>
9052
9053 * remote.c (putpkt_binary): Document that case stmt falls through.
9054
1a6a67de
TJB
90552011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9056
9057 * breakpointc (print_it_typical): Move NULL check from here...
9058 (print_bp_stop_message): ... to here.
9059
488919c4
MS
90602011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9061
9062 * breakpoint.c (enable_command): Use break instead of continue,
9063 and fill in a missing break.
9064 (disable_command): Ditto.
9065
1e182ce8
UW
90662011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9067
9068 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9069 (terminal_save_ours): Remove misleading comment.
9070 (inflow_inferior_data_cleanup): Free ttystate.
9071 (inflow_inferior_exit): Likewise.
9072 (copy_terminal_info): Copy ttystate.
9073
9074 * serial.c (serial_copy_tty_state): New function.
9075 * serial.h (serial_copy_tty_state): Add prototype.
9076 (struct serial_ops): Add copy_tty_state callback.
9077 * ser-base.c (ser_base_copy_tty_state): New function.
9078 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9079 * ser-go32.c (dos_copy_tty_state): New function.
9080 (dos_ops): Install copy_tty_state callback.
9081 * ser-mingw.c (_initialize_ser_windows): Likewise.
9082 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9083 * ser-unix.c (hardwire_copy_tty_state): New function.
9084 (_initialize_ser_hardwire): Install it.
9085
b2c5f112
MS
90862011-03-04 Michael Snyder <msnyder@vmware.com>
9087
2abae994
MS
9088 * breakpoint.c (create_breakpoint): Add missing break statement.
9089
7f5936f9
MS
9090 Reverting this patch:
9091 * infcall.c (call_function_by_hand): Add break statements for lint.
9092
b2c5f112
MS
9093 Reverting this patch:
9094 * cli/cli-script.c (script_from_file): Add break for lint.
9095
42b1321c
MS
90962011-03-04 Michael Snyder <msnyder@vmware.com>
9097
9098 * solib.c (reload_shared_libraries_1): Close memory leak.
9099
3e2a0cee
TT
91002011-03-03 Tom Tromey <tromey@redhat.com>
9101
9102 PR gdb/12538:
9103 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9104 DW_STRING is NULL.
9105
58397cb7
MS
91062011-03-03 Michael Snyder <msnyder@vmware.com>
9107
2e3fd767
MS
9108 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9109 fields of struct 'st' to zero.
9110
58397cb7
MS
9111 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9112 sal.pspace before calling set_current_source_symtab_and_line.
9113
ced54c8f
YQ
91142011-03-03 Yao Qi <yao@codesourcery.com>
9115
9116 * Makefile.in (configure-common): Remove. Let Makefile
9117 in dir common to rebuild itself.
9118 (common/Makefile): Likewise.
9119
3351ea09
JB
91202011-03-03 Joel Brobecker <brobecker@adacore.com>
9121
9122 * utils.c (parse_escape): Add i18n markup in error message.
9123
bf9f652a
YQ
91242011-03-03 Yao Qi <yao@codesourcery.com>
9125
9126 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9127 ARM_PC_REGNUM.
9128 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9129 (displaced_write_reg, displaced_read_reg): Likewise.
9130 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9131 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9132 (cleanup_branch): Replace magic number 14 and 15 with
9133 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9134
d42de051
MS
91352011-03-02 Michael Snyder <msnyder@vmware.com>
9136
240f9570
MS
9137 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9138
10dd8b54
MS
9139 * cli/cli-script.c (script_from_file): Add break for lint.
9140
b98bd911
MS
9141 * mdebugread.c (parse_partial_symbols): Fix indent.
9142
3494b66d
MS
9143 * target-descriptions.c (tdesc_gdb_type): No need to call
9144 xstrdup, callee saves a copy.
9145
daac021a
MS
9146 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9147
c38d16a7
MS
9148 * infcall.c (call_function_by_hand): Add break statements for lint.
9149
905b671b
MS
9150 * utils.c (parse_escape): Escape the escape char.
9151
f2eb0bc8 9152 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9153 PyList_Append fails.
9154 (gdbpy_inferiors): Error out if build_inferior_list fails.
9155
8c6a60d1
MS
9156 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9157 a function call.
9158
d42de051
MS
9159 * record.c (record_restore): Move printf to before error return.
9160
4db71c0b
YQ
91612011-03-02 Yao Qi <yao@codesourcery.com>
9162
9163 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9164 is_thumb and insn_size.
9165 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9166 on both ARM and Thumb mode.
9167 (arm_process_displaced_insn): Set is_thumb and insn_size.
9168 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9169 (arm_displaced_step_fixup): Likewise.
9170
a9dc8dcc
MS
91712011-03-01 Michael Snyder <msnyder@vmware.com>
9172
53624a93
MS
9173 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9174
77766669
MS
9175 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9176
62d5b8da
MS
9177 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9178
5e9e105f
MS
9179 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9180
dc19db01
MS
9181 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9182 with xmalloc.
9183
5ce64950
MS
9184 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9185 which shadows function parameter.
9186
a0aa2878
MS
9187 * tracepoint.c (create_tsv_from_upload): Superfluous call
9188 to xstrdup. Callee already calls xstrdup.
9189
e325fb69
MS
9190 * linespec.c (decode_line_1): Remove unnecessary null check.
9191
21cbba77
MS
9192 * tracepoint.c (scope_info): Fix mem leak, remove underused
9193 variable.
9194
63360adc
MS
9195 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9196 superfluous null check.
9197
18ea20ac 9198 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9199 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9200
d014929c
MS
9201 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9202
6e9130cf
MS
9203 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9204 be null.
9205
5f01dbc0
MS
9206 * linespec.c (decode_line_1): Check for null before dereference.
9207
d684ab85
MS
9208 * reverse.c (record_restore): Move null-check to before pointer
9209 dereference.
9210
bfffb7e3
MS
9211 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9212
a9dc8dcc
MS
9213 * objc-lang.c (selectors_info): Add explanitory comment.
9214 (classes_info): Ditto.
9215
478fd957
UW
92162011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9217
9218 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9219 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9220 versions of the trampoline. Handle Thumb vs. ARM addresses.
9221 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9222 (arm_linux_init_abi): Install it.
9223 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9224 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9225
0480cefa
MS
92262011-02-28 Michael Snyder <msnyder@vmware.com>
9227
ac50ab3b
MS
9228 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9229 a little bigger, to avoid possibility of an overflow.
9230
f63fbe86
MS
9231 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9232 buffers a little bigger, to avoid possibility of an overflow.
9233
9e91a352
MS
9234 * coffread.c (coff_getfilename): Add check to avoid overflow.
9235
f2eb0bc8 9236 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9237 avoid overflow.
9238 (classes_info): Error out on too long REGEXP.
9239
098ab512
MS
9240 * infrun.c (handle_inferior_event): Remove unused function call.
9241
bcbd1de9
MS
9242 * fork-child.c (fork_inferior): Remove ifdef'd code and
9243 unused variable.
9244
2e456570
MS
9245 * linux-thread-db.c (attach_thread): Discard unused value.
9246
14571dad
MS
9247 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9248
a9cbf802
MS
9249 * remote.c (remote_get_noisy_reply): Discard unused value.
9250 (remote_vcont_resume): Ditto.
9251 (remote_stop_ns): Ditto.
9252
5715d26e
MS
9253 * linespec.c (decode_objc): Delete unused variable.
9254
4a9bca80
MS
9255 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9256
f47fb265
MS
9257 * dwarf2read.c (add_partial_symbol): Discard unused values.
9258 (read_base_type): Delete unused variable.
9259
e81cff30
MS
9260 * dbxread.c (read_dbx_symtab): Discard unused value.
9261
262acaeb
MS
9262 * eval.c (evaluate_subexp_standard): Delete unused variable,
9263 and discard unused values.
9264
df983543
MS
9265 * infcmd.c (_initialize_infcmd): Discard unused values.
9266
89acf84d
MS
9267 * stabsread.c (rs6000_builtin_type): Missing break statement.
9268
ab8b8aca
MS
9269 * dbxread.c (process_one_symbol): Discard unused value.
9270
6b4511ab
MS
9271 * coffread.c (coff_end_symtab): Delete unused variable.
9272
e8e80198
MS
9273 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9274 (dwarf2_add_typedef): Delete unused variable.
9275 (read_namespace): Ditto.
9276 (dwarf_decode_macros): Ditto.
9277
976aa66e
MS
9278 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9279
5b92b49f
MS
9280 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9281
91e8df85
MS
9282 * p-valprint.c (pascal_val_print): Discard unused value.
9283
899500d6
MS
9284 * utils.c (nquery): Call va_end before return;
9285 (yquery): Ditto.
9286 (query): Ditto.
9287
0480cefa
MS
9288 * proc-service.c (ps_plog): Call va_end before return.
9289
fb6a3ed3
TT
92902011-02-28 Tom Tromey <tromey@redhat.com>
9291
9292 * python/python.c (gdbpy_value_cst): New global.
9293 (_initialize_python): Initialize it.
9294 * python/python-internal.h (gdbpy_value_cst): Declare.
9295 * python/py-value.c (convert_value_from_python): Use
9296 gdbpy_value_cst.
9297
c05202a1
MS
92982011-02-28 Michael Snyder <msnyder@vmware.com>
9299
e463f587
MS
9300 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9301
c38eea1a
MS
9302 * breakpoint.c (catch_syscall_completer): Free malloced list.
9303
3ef09ab5
MS
9304 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9305
8f9a01ee
MS
9306 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9307 (lval_func_check_synthetic_pointer): Ditto.
9308 (lval_func_free_closure): Fix use-after-free.
c05202a1 9309
477d0d57
TT
93102011-02-28 Tom Tromey <tromey@redhat.com>
9311
9312 * psymtab.c (expand_partial_symbol_tables): Use
9313 ALL_OBJFILE_PSYMTABS.
9314
20937029
JK
93152011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9316
9317 * objc-lang.c (selectors_info): Error on too long REGEXP.
9318
907b7f4f
MS
93192011-02-28 Michael Snyder <msnyder@vmware.com>
9320
92e96192
MS
9321 * python/py-param.c (set_parameter_value): Add missing
9322 break statement.
9323
907b7f4f
MS
9324 * linux-record.c (record_linux_system_call): Add missing
9325 break statement.
9326
12c5a436
UW
93272011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9328
9329 * breakpoint.c (print_one_breakpoint_location): Remove unused
9330 argument PRINT_ADDRESS_BITS. Update callers.
9331 (print_one_breakpoint): Likewise.
9332
170b53b2
UW
93332011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9334
9335 * breakpoint.c (wrap_indent_at_field): New function.
9336 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9337 Allocate ui_stream locally instead of using STB argument.
9338 (print_one_breakpoint_location): Update call.
9339 * ui-out.c (ui_out_query_field): New function.
9340 * ui-out.h (ui_out_query_field): Add prototype.
9341
8ab1f94d
JB
93422011-02-28 Joel Brobecker <brobecker@adacore.com>
9343
9344 From Michael Snyder <msnyder@vmware.com>
9345 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9346
7d488639
MS
93472011-02-27 Michael Snyder <msnyder@vmware.com>
9348
ae179fba
MS
9349 * objc-lang.c (selectors_info): Prevent string overrun.
9350
086dbf66
MS
9351 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9352 error in strncpy.
9353
f2eb0bc8 9354 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9355 outer scope.
9356
7d488639
MS
9357 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9358 param with a local variable of the same name.
9359
3bd0f5ef
MS
93602011-02-27 Michael Snyder <msnyder@vmware.com>
9361
9362 * value.c (value_from_history_ref): New function.
9363 * value.h (value_from_history_ref): Export.
9364 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9365 to parse value history references.
9366 * cli/cli-utils.h (get_number_trailer): Update comment.
9367
93682011-02-27 Michael Snyder <msnyder@vmware.com>
9369
9370 * inferior.c (detach_inferior_command): Use get_number_or_range.
9371 (kill_inferior_command): Ditto.
9372 (remove_inferior_command): Ditto.
9373 (initialize_inferiors): Make command names plural.
9374 Update help strings.
9375
766062f6
MS
93762011-02-27 Michael Snyder <msnyder@vmware.com>
9377
9378 * darwin-nat-info.c: Fix comment typo.
9379 * dwarf2expr.h: Ditto.
9380 * fbsd-nat.c: Ditto.
9381 * fbsd-nat.h: Ditto.
9382 * frame-unwind.h: Ditto.
9383 * frame.h: Ditto.
9384 * hppa-hpux-tdep.c: Ditto.
9385 * i386-linux-nat.c: Ditto.
9386 * linux-nat.c: Ditto.
9387 * nbsd-nat.c: Ditto.
9388 * nbsd-nat.h: Ditto.
9389 * ppc-linux-tdep.c: Ditto.
9390 * serial.c: Ditto.
9391 * ui-file.h: Ditto.
9392 * tui/tui-winsource.c: Ditto.
9393
f2c4ead5
MS
93942011-02-26 Michael Snyder <msnyder@vmware.com>
9395
86b887df
MS
9396 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9397
66fd3b1e
MS
9398 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9399
8c814cdd
MS
9400 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9401 with a local variable of the same name.
9402
6d5e094a 9403 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9404 param with a local variable of the same name.
6d5e094a 9405 (i387_supply_xsave): Ditto.
e5b3d7d6 9406
5eee517d
MS
9407 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9408 that it does not shadow a function parameter.
9409
8fbf6b93
MS
9410 * i386-nat.c (i386_length_and_rw_bits): Document that case
9411 statement is meant to fall through.
9412
cb969d61
MS
9413 * expprint.c (dump_subexp_body_standard): Document that case
9414 statement is meant to fall through.
9415
f2c4ead5
MS
9416 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9417 dead if statement. Condition can't be false.
9418
b021a221
MS
94192011-02-25 Michael Snyder <msnyder@vmware.com>
9420
9421 * arm-tdep.c: Fix typos in comments.
9422 * bsd-uthread.c: Ditto.
9423 * completer.c: Ditto.
9424 * corelow.c: Ditto.
9425 * cp-namespace.c: Ditto.
9426 * cp-support.c: Ditto.
9427 * cris-tdep.c: Ditto.
9428 * dbxread.c: Ditto.
9429 * dwarf2read.c: Ditto.
9430 * frame.h: Ditto.
9431 * gdbtypes.h: Ditto.
9432 * inferior.h: Ditto.
9433 * mdebugread.c: Ditto.
9434 * mips-tdep.c: Ditto.
9435 * ppc-linux-nat.c: Ditto.
9436 * ppc-linux-tdep.c: Ditto.
9437 * printcmd.c: Ditto.
9438 * sol-thread.c: Ditto.
9439 * solib-frv.c: Ditto.
9440 * solist.h: Ditto.
9441 * sparc64-tdep.c: Ditto.
9442 * spu-tdep.c: Ditto.
9443 * stabsread.c: Ditto.
9444 * symfile.c: Ditto.
9445 * valops.c: Ditto.
9446 * varobj.c: Ditto.
9447 * vax-nat.c: Ditto.
9448 * python/py-block.c: Ditto.
9449 * python/py-symbol.c: Ditto.
9450 * python/py-symtab.c: Ditto.
9451 * python/py-value.c: Ditto.
9452 * tui/tui-win.c: Ditto.
9453
c82c0b55
MS
94542011-02-25 Michael Snyder <msnyder@vmware.com>
9455
9456 * inferior.c (print_inferior): Accept a string instead of an int
9457 for requested_inferiors, and use get_number_or_range to parse it.
9458 (info_inferiors_command): Pass args string to print_inferior.
9459 (initialize_inferiors): Change help string for info inferiors.
9460 * inferior.h (print_inferior): Export prototype change.
9461
ee00cd23
TT
94622011-02-25 Tom Tromey <tromey@redhat.com>
9463
9464 * common/ax.def (invalid2): Set to 0x31.
9465
0502ed8c
JK
94662011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9467
9468 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9469 L and plongest.
9470 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9471 use L and plongest.
9472 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9473
2c9de912
MS
94742011-02-24 Michael Snyder <msnyder@vmware.com>
9475
9476 * Makefile.in (clean): Make clean should remove generated files
9477 observer.h and observer.inc.
9478
a04b0428
JB
94792011-02-24 Joel Brobecker <brobecker@adacore.com>
9480
9481 Revert the following patch (not approved yet):
9482 2011-02-21 Hui Zhu <teawater@gmail.com>
9483 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9484 * ax-gdb.c (gen_printf_expr_callback): New function.
9485 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9486 * ax-general.c (ax_memcpy): New function.
9487 (ax_print): Handle "printf".
9488 (ax_reqs): Ditto.
9489 * ax.h (ax_memcpy): Forward declare.
9490 * common/ax.def (invalid2): Removed.
9491 (printf): New entry.
9492 * printcmd.c (printcmd.h): New include.
9493 (string_printf): New function.
9494 (ui_printf): Removed.
9495 (printf_command): Remove static. Call string_printf.
9496 (eval_command): Call string_printf.
9497 * printcmd.h: New file.
9498 * tracepoint.c (validate_actionline,
9499 encode_actions_1): handle printf_command.
9500
2b52013f
TT
95012011-02-23 Tom Tromey <tromey@redhat.com>
9502
9503 * ax-general.c (ax_pick): Add missing newline.
9504
e5a67952
MS
95052011-02-23 Michael Snyder <msnyder@vmware.com>
9506
9507 * breakpoint.c (breakpoint_1): Change first argument from an int
9508 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9509 breakpoints rather than just one. Use new function
e5a67952
MS
9510 'number_is_in_list' to implement.
9511 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9512 (watchpoints_info): Ditto.
9513 (tracepoints_info): Ditto.
9514 (maintenance_info_breakpoints): Ditto.
9515 (_initialize_breakpoint): Update help strings to reflect the fact
9516 that these functions can now take more than one argument.
9517 * cli/cli-utils.c (number_is_in_list): New function.
9518 * cli/cli-utils.h (number_is_in_list): Export.
9519
95202011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9521
9522 * memattr.c (mem_enable_command): Use get_number_or_range.
9523 (mem_disable_command): Ditto.
9524 (mem_delete_command): Ditto.
9525 (_initialize_mem): Tweak usage message to reflect multiple
9526 arguments.
9527
6e6fbe60
DE
95282011-02-22 Doug Evans <dje@google.com>
9529
9530 Add gdb.lookup_global_symbol python function.
9531 * NEWS: Add entry.
9532 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9533 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9534 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9535
79b97fa8
TT
95362011-02-22 Tom Tromey <tromey@redhat.com>
9537
9538 * language.c (language_class_name_from_physname): Rename
9539 'curr_language' argument to 'lang'; use in body.
9540
298f437a
MS
95412011-02-22 Michael Snyder <msnyder@vmware.com>
9542
9543 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9544
b7ea3126
PA
95452011-02-22 Pedro Alves <pedro@codesourcery.com>
9546
9547 * frame-unwind.h: Fix comment to mention the this frame, not the
9548 next.
9549
58ee6d60
TT
95502011-02-22 Tom Tromey <tromey@redhat.com>
9551
9552 * symfile.c (auto_solib_limit): Remove.
9553 * symfile.h (auto_solib_limit): Remove.
9554
36238dbc
JB
95552011-02-22 Joel Brobecker <brobecker@adacore.com>
9556
9557 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9558
aea5b279
MS
95592011-02-21 Michael Snyder <msnyder@vmware.com>
9560
9561 * gdbthread.h (print_thread_info): Change prototype.
9562 * thread.c (print_thread_info): Accept char* instead of int for
9563 requested_threads argument. Use new function number_is_in_list
9564 to determine which threads to list.
9565 (info_threads_command): Pass char* to print_thread_info.
9566 * cli/cli-utils.c (number_is_in_list): New function.
9567 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9568 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9569 print_thread_info.
9570 (print_one_inferior): Ditto.
9571 (mi_cmd_list_thread_groups): Ditto.
9572
8caa75ee
JK
95732011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9574
9575 * common/Makefile.in (CFLAGS): New.
9576 (COMPILE): Add $(CFLAGS).
9577
ea666128
TT
95782011-02-21 Tom Tromey <tromey@redhat.com>
9579
9580 * breakpoint.c (catch_syscall_command_1): Fix typo.
9581
e9cafbcc
TT
95822011-02-21 Tom Tromey <tromey@redhat.com>
9583
9584 * reverse.c: Include cli-utils.h.
9585 * printcmd.c: Include cli-utils.h.
9586 (string_printf): Use skip_spaces.
9587 * cli/cli-utils.h: New file.
9588 * cli/cli-utils.c: New file.
9589 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9590 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9591 * breakpoint.h (get_number, get_number_or_range): Move to
9592 cli-utils.h.
9593 * breakpoint.c: Include cli-utils.h.
9594 (get_number_trailer, get_number, get_number_or_range)
9595 (ep_skip_leading_whitespace): Move to cli-utils.c.
9596 (create_breakpoint_sal, find_condition_and_thread)
9597 (decode_static_tracepoint_spec, watch_command_1)
9598 (watch_maybe_just_location, ep_parse_optional_if_clause)
9599 (catch_fork_command_1, catch_exec_command_1)
9600 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9601 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9602 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9603 (HFILES_NO_SRCDIR): Add cli-utils.h.
9604 (cli-utils.o): New target.
9605
f67fd822
PM
96062011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9607
9608 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9609 before calling discard_all_inferiors.
9610
c9def01d
UW
96112011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9612
9613 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9614 (struct builtin_opencl_type): Remove.
9615 (builtin_opencl_type): Change return type to "struct type **".
9616 (lookup_opencl_vector_type): Update caller.
9617 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9618 (build_opencl_types): Install plain array of "struct type *"
9619 instead of "struct builtin_opencl_type".
9620
e3039479
UW
96212011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9622 Ulrich Weigand <uweigand@de.ibm.com>
9623
9624 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9625 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9626 (struct arm_linux_hwbp_cap): New type.
9627 (arm_linux_get_hwbp_cap): New function.
9628 (arm_linux_get_hw_breakpoint_count): Likewise.
9629 (arm_linux_get_hw_watchpoint_count): Likewise.
9630 (arm_linux_can_use_hw_breakpoint): Likewise.
9631 (arm_hwbp_type): New type.
9632 (arm_hwbp_control_t): Likewise.
9633 (struct arm_linux_hw_breakpoint): Likewise.
9634 (struct arm_linux_thread_points): Likewise.
9635 (arm_threads): New global variable.
9636 (arm_linux_find_breakpoints_by_tid): New function.
9637 (arm_hwbp_control_initialize): Likewise.
9638 (arm_hwbp_control_is_enabled): Likewise.
9639 (arm_hwbp_control_disable): Likewise.
9640 (arm_linux_hw_breakpoint_initialize): Likewise.
9641 (arm_linux_get_hwbp_type): Likewise.
9642 (arm_linux_hw_watchpoint_initialize): Likewise.
9643 (arm_linux_hw_breakpoint_equal): Likewise.
9644 (arm_linux_insert_hw_breakpoint1): Likewise.
9645 (arm_linux_remove_hw_breakpoint1): Likewise.
9646 (arm_linux_insert_hw_breakpoint): Likewise.
9647 (arm_linux_remove_hw_breakpoint): Likewise.
9648 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9649 (arm_linux_insert_watchpoint): Likewise.
9650 (arm_linux_remove_watchpoint): Likewise.
9651 (arm_linux_stopped_data_address): Likewise.
9652 (arm_linux_stopped_by_watchpoint): Likewise.
9653 (arm_linux_watchpoint_addr_within_range): Likewise.
9654 (arm_linux_new_thread): Likewise.
9655 (arm_linux_thread_exit): Likewise.
9656 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9657 related target callbacks. Register arm_linux_new_thread and
9658 arm_linux_thread_exit.
9659 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9660 * arm-tdep.c (arm_pc_is_thumb): Make global.
9661 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9662
b5db5dfc
UW
96632011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9664
9665 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9666 per-frame locations while within a function epilogue.
9667
e25b2cfa
PM
96682011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9669
9670 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9671 to GNU coding standards.
9672
4af53f97
PM
96732011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9674
9675 Allow use of mingw native on Windows 95 OS.
e25b2cfa 9676 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
9677 (ser_windows_close): Only call CancelIo if function exists.
9678 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9679 to check for existence of CancelIo function in kernel32 DLL.
9680
d0e92d82
HZ
96812011-02-21 Hui Zhu <teawater@gmail.com>
9682
9683 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9684 * ax-gdb.c (gen_printf_expr_callback): New function.
9685 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9686 * ax-general.c (ax_memcpy): New function.
9687 (ax_print): Handle "printf".
9688 (ax_reqs): Ditto.
9689 * ax.h (ax_memcpy): Forward declare.
9690 * common/ax.def (invalid2): Removed.
9691 (printf): New entry.
9692 * printcmd.c (printcmd.h): New include.
9693 (string_printf): New function.
9694 (ui_printf): Removed.
9695 (printf_command): Remove static. Call string_printf.
9696 (eval_command): Call string_printf.
9697 * printcmd.h: New file.
9698 * tracepoint.c (validate_actionline,
9699 encode_actions_1): handle printf_command.
9700
7d357efd
MS
97012011-02-19 Michael Snyder <msnyder@vmware.com>
9702
9703 * reverse.c (delete_one_bookmark): Argument is now bookmark
9704 id rather than pointer to bookmark struct.
9705 (delete_bookmark_command): Use get_number_or_range.
9706 (goto_bookmark_command): Parse with get_number instead of strtoul.
9707 (bookmark_1): New function. Print info for one bookmark.
9708 (bookmarks_info): Use get_number_or_range and bookmark_1.
9709
7a45ebd7
MS
97102011-02-18 Michael Snyder <msnyder@vmware.com>
9711
f2eb0bc8 9712 * thread.c (info_threads_command): Re-implement using
7a45ebd7 9713 get_number_or_range.
65ebfb52 9714 (thread_apply_command): Ditto.
7a45ebd7 9715
94d5e490
TT
97162011-02-18 Tom Tromey <tromey@redhat.com>
9717
9718 * common/ax.def: New file.
9719 * ax.h (enum agent_op): Use ax.def.
9720 * ax-general.c (aop_map): Use ax.def.
9721
c7f96d2b
TT
97222011-02-18 Tom Tromey <tromey@redhat.com>
9723
9724 * ax-general.c (aop_map): Add pick and rot.
9725 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9726 <DW_OP_rot>: Implement.
9727 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9728 (ax_pick): Declare.
9729 * ax-general.c (ax_pick): New function.
9730
66694b75
TT
97312011-02-18 Tom Tromey <tromey@redhat.com>
9732
9733 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9734
eeaafae2
JK
97352011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9736 Tom Tromey <tromey@redhat.com>
9737
9738 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9739 make_symbol_overload_list_block with NULL BLOCK.
9740 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9741
3c3fe74c
PA
97422011-02-18 Pedro Alves <pedro@codesourcery.com>
9743
9744 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9745 * breakpoint.h (get_number_or_range): Declare.
9746 * printcmd.c (ALL_DISPLAYS): Declare.
9747 (delete_display): Reimplement taking a display pointer.
9748 (undisplay_command): Accept a range of displays to delete, using
9749 get_number_or_range.
9750
13163d80
PM
97512011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9752
9753 * c-valprint.c (c_val_print): Add embedded_offset to address
9754 for arrays of unspecified length.
9755 * p-valprint.c (pascal_val_print): Likewise.
9756
b434a28f
YQ
97572011-02-18 Yao Qi <yao@codesourcery.com>
9758
9759 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9760 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9761 (thumb_process_displaced_insn): New.
9762 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9763 call to arm_process_displaced_insn.
9764 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9765
9f6f94ff
TT
97662011-02-17 Tom Tromey <tromey@redhat.com>
9767
9768 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9769 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9770 compile_dwarf_to_ax. No longer static. Call
9771 dwarf2_compile_cfa_to_ax.
9772 (locexpr_tracepoint_var_ref): Update.
9773 (loclist_tracepoint_var_ref): Update.
9774 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9775 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9776 argument; add 'gdbarch' and 'pc'.
9777 (dwarf2_compile_cfa_to_ax): New function.
9778 (dwarf2_frame_cache): Update.
9779
e67ad678
JB
97802011-02-17 Joel Brobecker <brobecker@adacore.com>
9781
9782 * ada-lang.c (ada_type_of_array): Fix the size of the array
9783 in the case of an unconstrained packed array.
9784
946ebb0d
YQ
97852011-02-17 Yao Qi <yao@codesourcery.com>
9786
9787 * common/Makefile.in: Add more targets for make.
9788
1ba1b353
TT
97892011-02-16 Tom Tromey <tromey@redhat.com>
9790
9791 * dwarf2loc.c (unimplemented): Fix typo.
9792
b1bfef65
TT
97932011-02-16 Tom Tromey <tromey@redhat.com>
9794
9795 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9796 (compile_dwarf_to_ax) <default>: Use unimplemented.
9797 <DW_OP_deref>: Update.
9798 (disassemble_dwarf_expression): Update.
9799 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9800 (decode_locdesc): Update.
9801 * dwarf2expr.h (dwarf_stack_op_name): Update.
9802
5f1e6f19
TT
98032011-02-16 Tom Tromey <tromey@redhat.com>
9804
9805 * ax.h (struct aop_map) <name>: Now const.
9806
a0c78a73
PA
98072011-02-16 Tom Tromey <tromey@redhat.com>
9808
9809 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9810 than axs_rvalue.
9811
946ebb0d 98122011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
9813
9814 * infrun.c (get_displaced_step_closure_by_addr): New.
9815 * inferior.h: Declare it.
9816 * arm-tdep.c: (arm_pc_is_thumb): Call
9817 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9818 returns non-NULL.
9819
08807d5a
PA
98202011-02-16 Pedro Alves <pedro@codesourcery.com>
9821 Jan Kratochvil <jan.kratochvil@redhat.com>
9822
9823 gdb/
9824 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9825
29976f3f
PA
98262011-02-16 Pedro Alves <pedro@codesourcery.com>
9827 Jan Kratochvil <jan.kratochvil@redhat.com>
9828
9829 * value.c (value_contents_copy_raw): Extend describing comment.
9830 Assert that the destination contents we're overwriting are wholly
9831 available.
fb68ae73 9832 (value_contents_copy): Extend describing comment.
29976f3f 9833
cd24cfaa
PA
98342011-02-16 Pedro Alves <pedro@codesourcery.com>
9835 Jan Kratochvil <jan.kratochvil@redhat.com>
9836
9837 * value.c (value_available_contents_eq): Remove redundant local
9838 variables. Fix available contents comparision.
9839 * value.h (value_available_contents_eq): Extend describing
9840 comment.
9841
60bbf338
YQ
98422011-02-16 Yao Qi <yao@codesourcery.com>
9843
9844 * thread.c (info_threads_command): Add missing i18n markup and remove
9845 trailing newline.
9846
17450429
PP
98472011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9848
9849 * breakpoint.c (longjmp_names): New variable.
9850 (struct breakpoint_objfile_data): New type.
9851 (breakpoint_objfile_key): New variable.
9852 (msym_not_found): New variable.
9853 (msym_not_found_p): New predicate.
9854 (get_breakpoint_objfile_data): New function.
9855 (create_overlay_event_breakpoint): Check per-objfile cache for
9856 symbols first.
9857 (create_longjmp_master_breakpoint): Likewise.
9858 (create_std_terminate_master_breakpoint): Likewise.
9859 (create_exception_master_breakpoint): Likewise.
9860 (_initialize_breakpoint): Register per-objfile data key.
9861
af02033e
PP
98622011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9863
9864 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9865 parameter value.
9866 (create_longjmp_master_breakpoint): Loop over longjmp names.
9867 (create_std_terminate_master_breakpoint): Const-propagate parameter
9868 value.
9869 (update_breakpoints_after_exec): Adjust.
9870 (breakpoint_re_set): Adjust.
9871
60f98dde
MS
98722011-02-15 Michael Snyder <msnyder@vmware.com>
9873
cdf99611
MS
9874 * thread.c (info_threads_command): Process arg as thread id,
9875 or list of thread ids.
9876 (thread_find_command): New command.
9877 (_initialize_thread): Document argument for info threads.
9878 Document 'thread find' command.
9879 * NEWS: Document new command "thread find".
60f98dde 9880
0feedb2c
JK
98812011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9882
9883 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9884 * aclocal.m4: Regenerated with aclocal-1.11.1.
9885 * common/configure: Regenerate with autoconf-2.64.
9886
648cd113
KW
98872011-02-15 Ken Werner <ken.werner@de.ibm.com>
9888
9889 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9890 bool data type to a size of one byte.
9891
5657161f
PA
98922011-02-15 Pedro Alves <pedro@codesourcery.com>
9893 Jan Kratochvil <jan.kratochvil@redhat.com>
9894
9895 * target.c (memory_xfer_live_readonly_partial): Document where to
9896 look for interface description.
9897
494e194e
YQ
98982011-02-15 Yao Qi <yao@codesourcery.com>
9899
9900 PR tdep/12352
9901 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9902 order to store PC value on stack instead of text section.
9903
d9492458
TJB
99042011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9905
9906 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9907 the EFP register set size.
9908 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9909 data from the VMX register.
9910 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9911 and write data from/to the VMX register.
9912
cdf99611
MS
99132011-02-14 Michael Snyder <msnyder@vmware.com>
9914
9915 * command.h (enum command_class): New class 'no_set_class', for
9916 "show" commands without a corresponding "set" command.
9917 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9918 * copying.c (_initialize_copying): Ditto for "show copying" and
9919 "show warranty".
9920 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9921 "show version".
9922 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9923 which there is no corresponding "set" command (eg. "show copying").
9924
424447ee
PA
99252011-02-14 Pedro Alves <pedro@codesourcery.com>
9926 Jan Kratochvil <jan.kratochvil@redhat.com>
9927
9928 * exec.c (section_table_available_memory): Change `len' parameter
9929 type to ULONGEST.
9930 * exec.h (section_table_available_memory): Ditto.
9931 * value.h (read_value_memory): Rename the `offset' parameter to
9932 `embedded_offset'.
9933
c0f61f9c 99342011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9935 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9936
9937 * memrange.c (compare_mem_ranges): Mention sort order in
9938 describing comment.
9939 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9940 * tracepoint.c (traceframe_available_memory): Extend comment to
9941 mention what happens to RESULT when the target does not support
9942 the query.
9943
6bfc80c7
PA
99442011-02-14 Pedro Alves <pedro@codesourcery.com>
9945 Jan Kratochvil <jan.kratochvil@redhat.com>
9946
9947 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9948 range.
9949
e7303042
PA
99502011-02-14 Pedro Alves <pedro@codesourcery.com>
9951
9952 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9953 No longer handle NULL values.
9954
8af8e3bc
PA
99552011-02-14 Pedro Alves <pedro@codesourcery.com>
9956
9957 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9958 * value.c: Include "exceptions.h".
9959 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9960 generic error.
9961 * cp-abi.c: Include gdb_assert.h.
9962 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9963 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9964 errors.
9965 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9966 parameters. No longer returns -1 on error.
9967 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9968 `val' parameters.
9969 * cp-valprint.c: Include exceptions.h.
9970 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9971 the baseclass_offset. Handle unavailable base classes. Use
9972 val_print_invalid_address.
9973 * p-valprint.c: Include exceptions.h.
9974 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9975 when fetching the baseclass_offset. No longer expect
9976 baseclass_offset returning -1. Handle unavailable base classes.
9977 Use val_print_invalid_address.
9978 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9979 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9980 `embedded_offset' and `val' parameters. Adjust.
9981 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9982 parameter, and change its type to gdb_byte pointer. Add
9983 `embedded_offset' and `val' parameters. Adjust. No longer expect
9984 baseclass_offset returning -1.
9985 (value_dynamic_cast): Use value_contents_for_printing rather than
9986 value_contents. Adjust.
9987 (search_struct_field): No longer expect baseclass_offset returning
9988 -1.
9989 (search_struct_method): If reading memory from the target is
9990 necessary, wrap it in a new value to pass to baseclass_offset. No
9991 longer expect baseclass_offset returning -1.
9992 (find_method_list): No longer expect baseclass_offset returning
9993 -1. Use value_contents_for_printing rather than value_contents.
9994 * valprint.c (val_print_invalid_address): New function.
9995 * valprint.h (val_print_invalid_address): Declare.
9996 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9997 and `val' parameters. No longer expect baseclass_offset returning
9998 -1. Adjust.
9999 * gnu-v2-abi.c: Include "exceptions.h".
10000 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10001 parameters. Handle unavailable memory. Recurse through
10002 gnuv2_baseclass_offset directly, rather than through
10003 baseclass_offset. No longer returns -1 on not found, instead
10004 throw an error.
10005 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10006 `val' parameters. Adjust.
10007
1b28d0b3
PA
100082011-02-14 Pedro Alves <pedro@codesourcery.com>
10009
10010 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10011 almost but not quite adjacent.
10012
ec0a52e1
PA
100132011-02-14 Pedro Alves <pedro@codesourcery.com>
10014
10015 * value.h (value_entirely_available): Declare.
10016 * value.c (value_entirely_available): New function.
10017 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10018 real type if the pointer is unavailable.
10019
24e6bcee
PA
100202011-02-14 Pedro Alves <pedro@codesourcery.com>
10021
10022 * valops.c (value_repeat): Use read_value_memory instead of
10023 read_memory.
10024
39d37385
PA
100252011-02-14 Pedro Alves <pedro@codesourcery.com>
10026
10027 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10028 * value.c (value_contents_copy_raw, value_contents_copy): New
10029 functions.
10030 (value_primitive_field): Use value_contents_copy_raw instead of
10031 memcpy.
10032 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10033 memcpy.
10034 (value_array, value_slice): Ditto.
10035 * valarith.c (value_subscripted_rvalue): Use
10036 value_contents_copy_raw instead of memcpy.
10037
a3d34bf4
PA
100382011-02-14 Pedro Alves <pedro@codesourcery.com>
10039
10040 <unavailable> references.
10041
10042 * valops.c (get_value_at): Use value_from_contents_and_address,
10043 avoiding read_memory.
10044
9fc6d940
PA
100452011-02-14 Pedro Alves <pedro@codesourcery.com>
10046
10047 * c-valprint.c (c_val_print): Print a string with unavailable
10048 contents as an array.
10049
5467c6c8
PA
100502011-02-14 Pedro Alves <pedro@codesourcery.com>
10051
10052 * value.h (unpack_bits_as_long): Delete declaration.
10053 (unpack_value_bits_as_long): Declare.
10054 (unpack_value_field_as_long): Declare.
10055 (value_field_bitfield): Declare.
10056 * value.c (unpack_bits_as_long): Rename to...
10057 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10058 value parameters. Return the extracted result in a new output
10059 parameter. If the value contents are unavailable, return false,
10060 otherwise return true.
10061 (unpack_value_bits_as_long): New.
10062 (unpack_field_as_long): Rename to...
10063 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10064 Add embedded_offset and value parameters. Return the extracted
10065 result in a new output parameter. If the value contents are
10066 unavailable, return false, otherwise return true.
10067 (unpack_value_field_as_long): New.
10068 (unpack_field_as_long_1): New.
10069 (unpack_field_as_long): Reimplement as wrapper around
10070 unpack_value_field_as_long_1.
10071 (value_field_bitfield): New function.
10072 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10073 unpack_value_bits_as_long. Mark the value as unavailable, if it
10074 is unavailable.
10075 * jv-valprint.c (java_print_value_fields): Use
10076 value_field_bitfield.
10077 * p-valprint.c (pascal_object_print_value_fields): Use
10078 value_field_bitfield.
10079 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10080
3158c6ed
PA
100812011-02-14 Pedro Alves <pedro@codesourcery.com>
10082
10083 * value.c (get_internalvar_integer): Also return the int value of
10084 TYPE_CODE_INT INTERNALVAR_VALUE values.
10085 (set_internalvar): Don't special case TYPE_CODE_INT.
10086
9fbdca0d
PA
100872011-02-14 Pedro Alves <pedro@codesourcery.com>
10088
10089 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10090 INTERNALVAR_POINTER.
10091 <pointer>: Delete.
10092 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10093 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10094 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10095
c8c1c22f
PA
100962011-02-14 Pedro Alves <pedro@codesourcery.com>
10097
10098 * value.h (value_available_contents_eq): Declare.
10099 * value.c (find_first_range_overlap): New function.
10100 (value_available_contents_eq): New function.
10101 * valprint.c (val_print_array_elements): Use
10102 value_available_contents_eq.
10103 * ada-valprint.c (val_print_packed_array_elements): Use
10104 value_available_contents_eq.
10105 * jv-valprint.c (java_value_print): Use
10106 value_available_contents_eq.
10107
e6e4e701
PA
101082011-02-14 Pedro Alves <pedro@codesourcery.com>
10109
10110 * target.c (target_read_live_memory): New function.
10111 (memory_xfer_live_readonly_partial): New.
10112 (memory_xfer_partial): If reading from a traceframe, fallback to
10113 reading unavailable read-only memory from read-only regions of
10114 live target memory.
10115 * tracepoint.c (disconnect_tracing): Adjust.
10116 (set_current_traceframe): New, factored out from
10117 set_traceframe_number.
10118 (set_traceframe_number): Reimplement to only change the traceframe
10119 number on the GDB side.
10120 (do_restore_current_traceframe_cleanup): Adjust.
10121 (make_cleanup_restore_traceframe_number): New.
10122 (cur_traceframe_number): New global.
10123 (tfile_open): Set cur_traceframe_number to no traceframe.
10124 (set_tfile_traceframe): New function.
10125 (tfile_trace_find): If looking up a traceframe using any method
10126 other than by number, make sure the current tfile traceframe
10127 matches gdb's current traceframe. Update the current tfile
10128 traceframe if the lookup succeeded.
10129 (tfile_fetch_registers, tfile_xfer_partial)
10130 (tfile_get_trace_state_variable_value): Make sure the remote
10131 traceframe matches gdb's current traceframe.
10132 * remote.c (remote_traceframe_number): New global.
10133 (remote_open_1): Set it to -1.
10134 (set_remote_traceframe): New function.
10135 (remote_fetch_registers, remote_store_registers)
10136 (remote_xfer_memory, remote_xfer_partial)
10137 (remote_get_trace_state_variable_value): Make sure the remote
10138 traceframe matches gdb's current traceframe.
10139 (remote_trace_find): If looking up a traceframe using any method
10140 other than by number, make sure the current remote traceframe
10141 matches gdb's current traceframe. Update the current remote
10142 traceframe if the lookup succeeded.
10143 * infrun.c (fetch_inferior_event): Adjust.
10144 * tracepoint.h (set_current_traceframe): Declare.
10145 (get_traceframe_number, set_traceframe_number): Add describing
10146 comments.
10147
e6ca34fc
PA
101482011-02-14 Pedro Alves <pedro@codesourcery.com>
10149
10150 Mark pieces of values as unavailable if the corresponding memory
10151 is unavailable.
10152
10153 * valops.c: Include tracepoint.h.
10154 (value_fetch_lazy): Use read_value_memory.
10155 (read_value_memory): New.
10156 * value.h (read_value_memory): Declare.
10157 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10158 * exec.c (section_table_available_memory): New function.
10159 * exec.h (section_table_available_memory): Declare.
10160
2a7498d8
PA
101612011-02-14 Pedro Alves <pedro@codesourcery.com>
10162
10163 * Makefile.in (SFILES): Add memrange.c.
10164 (HFILES_NO_SRCDIR): Add memrange.h.
10165 (COMMON_OBS): Add memrange.o.
10166 * memrange.c: New file.
10167 * memrange.h: New file.
10168 * tracepoint.c: Include memrange.h.
10169 (struct mem_range): Delete.
10170 (mem_range_s): Delete.
10171 (traceframe_available_memory): New function.
10172 * tracepoint.h (traceframe_available_memory): Declare.
10173
b3b9301e
PA
101742011-02-14 Pedro Alves <pedro@codesourcery.com>
10175
10176 * target.h (struct traceframe_info): Forward declare.
10177 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10178 (struct target_ops) <to_traceframe_info>: New field.
10179 (target_traceframe_info): New.
10180 * target.c (update_current_target): Inherit and default
10181 to_traceframe_info.
10182 * remote.c (PACKET_qXfer_traceframe_info): New.
10183 (remote_protocol_features): Register qXfer:traceframe-info:read.
10184 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10185 (remote_traceframe_info): New.
10186 (init_remote_ops): Install it.
10187 (_initialize_remote): Install "set/show remote traceframe-info"
10188 commands.
10189 * tracepoint.h (parse_traceframe_info): Declare.
10190 * tracepoint.c (struct mem_range): New.
10191 (mem_range_s): New typedef.
10192 (struct traceframe_info): New.
10193 (traceframe_info): New global.
10194 (free_traceframe_info): New function.
10195 (clear_traceframe_info): New function.
10196 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10197 info.
10198 (build_traceframe_info): New function.
10199 (tfile_traceframe_info): New function.
10200 (init_tfile_ops): Install tfile_traceframe_info.
10201 (traceframe_info_start_memory, free_result): New functions.
10202 (memory_attributes, traceframe_info_elements): New globals.
10203 (parse_traceframe_info, get_traceframe_info): New functions.
10204 * features/traceframe-info.dtd: New file.
10205 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10206
4e07d55f
PA
102072011-02-14 Pedro Alves <pedro@codesourcery.com>
10208
10209 Base support for <unavailable> value contents.
10210
4e07d55f
PA
10211 * value.h (value_bytes_available): Declare.
10212 (mark_value_bytes_unavailable): Declare.
10213 * value.c (struct range): New struct.
10214 (range_s): New typedef.
10215 (ranges_overlap): New function.
10216 (range_lessthan): New function.
10217 (ranges_contain_p): New function.
10218 (struct value) <unavailable>: New field.
10219 (value_bytes_available): New function.
10220 (mark_value_bytes_unavailable): New function.
10221 (require_not_optimized_out): Constify parameter.
10222 (require_available): New function.
10223 (value_contents_all, value_contents): Require all bytes be
10224 available.
10225 (value_free): Free `unavailable'.
10226 (value_copy): Copy `unavailable'.
10227 * valprint.h (val_print_unavailable): Declare.
10228 * valprint.c (valprint_check_validity): Rename `offset' parameter
10229 to `embedded_offset'. If printing a scalar, check whether the
10230 value chunk is available.
10231 (val_print_unavailable): New.
10232 (val_print_scalar_formatted): Check whether the value is
10233 available.
10234 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10235 pretty-printing unavailable values.
10236
bc9a5551
JK
102372011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10238
10239 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10240 * c-typeprint.c (c_type_print_args): Update the function comment. New
10241 variable param_type, initialize it. Remove const/volatile qualifiers
10242 for language_cplus and !show_artificial. Use param_type.
10243
93b55aa1
JK
102442011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10245
10246 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10247 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10248 * symtab.h (struct symtab) <next>: Comment extension.
10249
181d9476
YQ
102502011-02-12 Yao Qi <yao@codesourcery.com>
10251
10252 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10253
b708a5c7
JK
102542011-02-11 Yao Qi <yao@codesourcery.com>
10255
10256 * common/Makefile.in: Add copyright header.
10257
c5187ac6
PA
102582011-02-11 Pedro Alves <pedro@codesourcery.com>
10259
10260 * infrun.c (proceed): Move switching out and in of tfind mode from
10261 here ...
10262 (fetch_inferior_event): ... to here.
10263
4f3e6fb7
YQ
102642011-02-11 Yao Qi <yao@codesourcery.com>
10265
10266 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10267 libcommon.a.
10268 * configure.ac: Add common to sub dir.
10269 * configure: Regenerate.
10270
b708a5c7
JK
102712011-02-11 Yao Qi <yao@codesourcery.com>
10272
10273 Build libcommon.a.
10274
10275 * common/Makefile.in: New.
10276 * common/configure.ac: New.
10277 * common/aclocal.m4: New.
10278 * common/configure: Generate.
10279
2287cc7e
PA
102802011-02-10 Pedro Alves <pedro@codesourcery.com>
10281
10282 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10283 side of the parenthesis.
10284
10285 Merge from GCC:
10286 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10287 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10288
fd62cb89
MS
102892011-02-08 Michael Snyder <msnyder@vmware.com>
10290
10291 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10292
56d2815c
JK
102932011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10294
10295 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10296 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10297 psubd and paddd.
10298
4f7d61a8
JK
102992011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10300
10301 PR 12361.
10302 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10303 phsubsw.
10304 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10305 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10306
54fcddd0
UW
103072011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10308
10309 * dwarf2read.c (read_subroutine_type): Set special calling
10310 convention flag for functions compiled by IBM XL C for OpenCL.
10311 * ppc-sysv-tdep.c: Include "dwarf2.h"
10312 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10313 calling convention.
10314 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10315 IBM OpenCL vector types calling convention.
10316 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10317 (ppc_sysv_abi_broken_return_value): Likewise.
10318 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10319 types calling convention.
10320 (ppc64_sysv_abi_return_value): Likewise.
10321 * spu-tdep.c: Include "dwarf2.h"
10322 (spu_return_value): Implement IBM OpenCL vector types calling
10323 convention.
10324
d6dafb7c
UW
103252011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10326
10327 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10328 correct ABI for AltiVec vector arguments.
10329
32b72a42
PA
103302011-02-07 Pedro Alves <pedro@codesourcery.com>
10331
10332 * valprint.c (val_print): Extend comment.
10333 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10334 interface explanation to val_print.
10335 (ada_val_print_array): Adjust comment to current interface.
10336 (print_field_values): Adjust comment to current interface.
10337 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10338 explanation to val_print.
10339 * f-valprint.c (f_val_print): Ditto.
10340 * jv-valprint.c (java_val_print): Ditto.
10341 * m2-valprint.c (m2_val_print): Ditto.
10342 * p-valprint.c (pascal_val_print): Ditto.
10343
9998af43
TJB
103442011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10345
10346 * breakpoint.c (parse_breakpoint_sals): Fix description.
10347
505500db 103482011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10349 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10350
10351 * python/py-inferior.c (python_on_normal_stop): New function.
10352 (python_on_resume): New function.
10353 (python_inferior_exit): New function.
10354 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10355 inferior_exit observers.
10356 * python/py-evtregistry.c: New file.
10357 * python/py-threadevent.c : New file.
10358 * python/py-event.c: New file.
10359 * python/py-evts.c: New file.
10360 * python/py-continueevent.c: New file.
10361 * python/py-bpevent.c: New file.
10362 * python/py-signalevent.c: New file.
10363 * python/py-exetiedevent.c: New file.
10364 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10365 Move struct breakpoint_object from here...
10366 * python/python-internal.h: ... to here.
10367 * python/py-event.h: New file.
10368 * python/py-events.h: New file.
10369 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10370 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10371 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10372 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10373 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10374 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10375 Add build rules for all the above.
10376
9e0ac564
TT
103772011-02-04 Tom Tromey <tromey@redhat.com>
10378
10379 * dwarf2read.c (dwarf2_section_empty_p): New function.
10380 (dwarf2_read_section): Use dwarf2_section_empty_p.
10381 (dwarf2_section_size): New function.
10382 (dwarf2_get_section_info): Unconditionally read section.
10383 (dwarf2_read_index): Use dwarf2_section_empty_p.
10384 (partial_read_comp_unit_head): Use dwarf2_section_size.
10385 (dwarf2_symbol_mark_computed): Likewise.
10386
eee5b35e
DD
103872011-02-04 David Daney <ddaney@caviumnetworks.com>
10388
10389 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10390
385203ed
DD
103912011-02-04 David Daney <ddaney@caviumnetworks.com>
10392
10393 * mips-linux-tdep.c: Include xml-syscall.h.
10394 (mips_linux_get_syscall_number): New function.
10395 (mips_linux_init_abi): Add calls to
10396 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10397 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10398 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10399 * syscalls/mips-n32-linux.xml: New file.
10400 * syscalls/mips-n64-linux.xml: New file.
10401 * syscalls/mips-o32-linux.xml: New file.
10402
9277c30c
UW
104032011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10404
10405 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10406 Complain about inverted range entries.
10407 (dwarf2_record_block_ranges): Likewise.
10408
a3be7890
TJB
104092011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10410
10411 Fix some typos.
10412 * breakpoint.c (update_watchpoint): Fix name of the
10413 update_global_location_list function.
10414 (print_one_breakpoint): Fix typo.
10415 (_initialize_breakpoint): Remove extra space in hbreak help
10416 string.
10417 * breakpoint.h (struct bp_location) <length>: Fix field
10418 description.
10419
041274d8
PA
104202011-02-04 Pedro Alves <pedro@codesourcery.com>
10421
10422 * regcache.c (registers_changed_ptid): Don't explictly always
10423 clear `current_regcache'. Only clear current_thread_ptid and
10424 current_thread_arch when PTID matches. Only reinit the frame
10425 cache if PTID matches the current inferior_ptid. Move alloca(0)
10426 call to ...
10427 (registers_changed): ... here.
10428
c1c2ab58
UW
104292011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10430
10431 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10432 starts with __stack_chk_guard as stack guard symbol.
10433
9011945e
AB
104342011-02-03 Andrew Burgess <aburgess@broadcom.com>
10435
10436 * disasm.c (compare_lines): Handle the end of sequence markers
10437 within the line table to better support disassembling over
10438 compilation unit boundaries.
10439
e0634ccf
UW
104402011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10441
10442 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10443 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10444 implementation even if no symbols are available.
10445 (thumb_analyze_prologue): Update call to skip_prologue_function.
10446 (arm_analyze_prologue): Likewise.
10447
0e9e9abd
UW
104482011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10449
10450 * arm-tdep.c: Include "observer.h".
10451 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10452 (arm_exidx_data_key): New static variable.
10453 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10454 (struct arm_exidx_data): Likewise.
10455 (arm_exidx_data_free): New function.
10456 (arm_compare_exidx_entries): Likewise.
10457 (arm_obj_section_from_vma): Likewise.
10458 (arm_exidx_new_objfile): Likewise.
10459 (arm_find_exidx_entry): Likewise.
10460 (arm_exidx_fill_cache): Likewise.
10461 (arm_exidx_unwind_sniffer): Likewise.
10462 (arm_exidx_unwind): New global variable.
10463 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10464 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10465 observer. Register arm_exidx_data_key as objfile data.
10466
2e9e421f
UW
104672011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10468
10469 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10470 due to accessing uninitialized variable. Fix indentation.
10471
580688f3
PA
104722011-02-02 Pedro Alves <pedro@codesourcery.com>
10473
10474 * c-valprint.c (c_value_print): When doing virtual base pointer
10475 adjustment, create a new value with adjusted contents rather than
10476 changing the contents of the value being printed (and getting it
10477 wrong).
10478
3d2c1d41
PA
104792011-02-02 Pedro Alves <pedro@codesourcery.com>
10480
10481 * xml-support.c (xml_find_attribute): New.
10482 (xinclude_start_include): Use it.
10483 * xml-support.h (xml_find_attribute): Declare.
10484 * memory-map.c (memory_map_start_memory)
10485 (memory_map_start_property): Use xml_find_attribute.
10486 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10487 xml_find_attribute.
10488 * remote.c (start_thread): Use xml_find_attribute.
10489 * solib-target.c (library_list_start_segment)
10490 (library_list_start_section, library_list_start_library)
10491 (library_list_start_list): Use xml_find_attribute.
10492 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10493 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10494 (tdesc_start_field): Use xml_find_attribute.
10495
0af3e2db
UW
104962011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10497
10498 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10499 (BUILD_OCL_VTYPES): Update.
10500
c1039e3c
JB
105012011-02-02 Joel Brobecker <brobecker@adacore.com>
10502
10503 * configure.ac: Work around non-GNU sed limitation when computing
10504 python version number.
10505 * configure: Regenerate.
10506
600ea1be
JK
105072011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 Fix debug printing of TYPE_INSTANCE.
10510 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10511 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10512
56c12414
JK
105132011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10514
10515 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10516 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10517 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10518 * ada-operator.inc: Rename the file to ...
10519 * ada-operator.def: ... here, wrap all the entries by macro OP.
10520 * expprint.c (op_name_standard): Remove all the entries. Include
10521 "std-operator.def" instead.
10522 * expression.h (enum exp_opcode): Include "std-operator.def" and
10523 "ada-operator.def". Move all the entries ...
10524 * std-operator.def: ... here, wrap all the entries by macro OP.
10525
c52b559d
PP
105262011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10527
10528 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10529 * breakpoint.c (remove_jit_event_breakpoints): New function.
10530 * jit.c (jit_descriptor_addr): Delete.
10531 (registering_code): Delete.
10532 (clear_int): Delete.
10533 (jit_inferior_data): New variable.
10534 (struct jit_inferior_data): New type.
10535 (get_jit_inferior_data): New function.
10536 (jit_inferior_data_cleanup): New function.
10537 (jit_read_descriptor): Adjust.
10538 (jit_register_code): Adjust.
10539 (jit_breakpoint_re_set_internal): New function; move code here ...
10540 (jit_inferior_init): ... from here.
10541 (jit_breakpoint_re_set): Adjust.
10542 (jit_reset_inferior_data_and_breakpoints): New function.
10543 (jit_inferior_created_observer): Adjust.
10544 (jit_inferior_exit_hook): Adjust.
10545 (jit_executable_changed_observer): New function.
10546 (jit_event_handler): Adjust.
10547 (_initialize_jit): Adjust.
10548
e839132d
MS
105492011-01-31 Michael Snyder <msnyder@vmware.com>
10550
10551 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10552 line.
10553
47a80e90
TT
105542011-01-31 Tom Tromey <tromey@redhat.com>
10555
10556 PR python/12216:
10557 * python/python.c (execute_gdb_command): Call
10558 prevent_dont_repeat.
10559 * top.c (suppress_dont_repeat): New global.
10560 (dont_repeat): Use it.
10561 (prevent_dont_repeat): New function.
10562 * command.h (prevent_dont_repeat): Declare.
10563
45a43567
TT
105642011-01-31 Tom Tromey <tromey@redhat.com>
10565
10566 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10567 * python/py-breakpoint.c (bppy_set_silent): Use
10568 breakpoint_set_silent.
10569 (bppy_set_thread): Use breakpoint_set_thread.
10570 (bppy_set_task): Use breakpoint_set_task.
10571 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10572 (breakpoint_set_task): Declare.
10573 (make_breakpoint_silent): Remove.
10574 * breakpoint.c (breakpoint_set_silent): New function.
10575 (breakpoint_set_thread): Likewise.
10576 (breakpoint_set_task): Likewise.
10577 (make_breakpoint_silent): Remove.
10578
09d682a4
TT
105792011-01-31 Tom Tromey <tromey@redhat.com>
10580
10581 * breakpoint.h (user_breakpoint_p): Declare.
10582 * breakpoint.c (user_breakpoint_p): New function.
10583 (breakpoint_1): Use it.
10584 (save_breakpoints): Likewise.
10585
9c4ea6c5
JB
105862011-01-31 Joel Brobecker <brobecker@adacore.com>
10587
10588 * configure.ac: Add handling of Python distribution on Windows.
10589 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10590 sysconfig variables are not defined, then do not use them.
10591 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10592 instead. On Windows, return all paths using forward-slashes
10593 rather than backslashes.
10594
ac534cba
JB
105952011-01-31 Joel Brobecker <brobecker@adacore.com>
10596
10597 * configure.ac: Remove fallback behavior for building
10598 against Python. Remove tweaking of Python include path.
10599 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10600 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10601 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10602 Always restore CPPFLAGS and LIBS after linking test.
10603 * configure: Regenerated.
10604 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10605 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10606 * python/python-internal.h: Adjust includes of Python .h files.
10607
c2f0d045
JB
106082011-01-31 Joel Brobecker <brobecker@adacore.com>
10609
10610 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10611 in error message.
10612
6b0c4c1f
JB
106132011-01-31 Joel Brobecker <brobecker@adacore.com>
10614
10615 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10616 value test.
10617
672c9795
YQ
106182011-01-31 Yao Qi <yao@codesourcery.com>
10619
10620 * arm-linux-nat.c: Update calls to regcache_register_status
10621 instead of regcache_valid_p.
10622 * aix-thread.c: Likewise.
10623 * i386gnu-nat.c: Likewise.
10624
80b23b6a
JK
106252011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10626
10627 Fix crash.
10628 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10629 touching TYPE_FIELD_ARTIFICIAL.
10630
4cd712bd
RE
106312011-01-28 Richard Earnshaw <rearnsha@arm.com>
10632
10633 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10634 Committers.
10635
ffd5ec24
PA
106362011-01-28 Pedro Alves <pedro@codesourcery.com>
10637
10638 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10639 selected, don't try iterating over the traceframe's blocks.
10640 (tfile_has_stack): If there's no traceframe selected, then there's
10641 no stack.
10642 (tfile_has_registers): If there's no traceframe selected, then
10643 there's no registers.
10644
e8c9e0a1
PA
106452011-01-28 Pedro Alves <pedro@codesourcery.com>
10646
10647 * target.c (memory_xfer_partial): No need to restore shadows if we
10648 haven't read anything.
10649
de15c4ab
PA
106502011-01-28 Pedro Alves <pedro@codesourcery.com>
10651
10652 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10653 and val_print_scalar_formatted.
10654
9f41c731
PA
106552011-01-27 Pedro Alves <pedro@codesourcery.com>
10656
10657 * tracepoint.c (tfile_read): New.
10658 (tfile_open): Use it.
10659 (tfile_get_traceframe_address): Use it.
10660 (tfile_trace_find): Use it.
10661 (walk_blocks_callback_func): New typedef.
10662 (match_blocktype): New function.
10663 (traceframe_walk_blocks): New function.
10664 (traceframe_find_block_type): New function.
10665 (tfile_fetch_registers, tfile_xfer_partial)
10666 (tfile_get_trace_state_variable_value): Use
10667 traceframe_find_block_type and tfile_read.
10668
cdefc55d
KB
106692011-01-26 Kevin Buettner <kevinb@redhat.com>
10670
10671 * remote-mips.c: Add internationalization mark ups. Remove
10672 trailing \n from already marked up strings.
10673
a81766d8
TT
106742011-01-26 Tom Tromey <tromey@redhat.com>
10675
10676 * python/py-prettyprint.c (print_string_repr): Clear
10677 'addressprint' option when calling val_print_string.
10678 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10679 option when calling val_print_string.
10680
74aedc46
TT
106812011-01-26 Tom Tromey <tromey@redhat.com>
10682
10683 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10684 GDB_PY_LL_ARG.
10685 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10686 macros.
10687 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10688 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10689 (gdb_py_long_as_ulongest): New defines.
10690 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10691 (gdb_py_int_as_long): Declare.
10692 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10693 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10694 (valpy_long): Add comment.
10695 * python/py-utils.c (get_addr_from_python): Use
10696 gdb_py_long_as_ulongest. Handle overflow properly.
10697 (gdb_py_object_from_longest): New function.
10698 (gdb_py_object_from_ulongest): Likewise.
10699 (gdb_py_int_as_long): Likewise.
10700 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10701 * python/py-symtab.c (salpy_get_pc): Use
10702 gdb_py_long_from_ulongest.
10703 (salpy_get_line): Use PyInt_FromLong.
10704 * python/py-param.c (set_parameter_value): Use
10705 gdb_py_int_as_long.
10706 * python/py-lazy-string.c (stpy_get_address): Use
10707 gdb_py_long_from_ulongest.
10708 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10709 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10710 * python/py-breakpoint.c (bppy_set_thread): Use
10711 gdb_py_int_as_long.
10712 (bppy_set_task): Likewise.
10713 (bppy_set_ignore_count): Likewise.
10714 (bppy_set_hit_count): Likewise.
10715 * python/py-block.c (blpy_get_start): Use
10716 gdb_py_object_from_ulongest.
10717 (blpy_get_end): Likewise.
10718 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10719
e4f6d2ec
TJB
107202011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10721
10722 PR/symtab 11766:
10723 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10724 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10725 equality test for objfile, initialize addr_low if needed.
10726
b30aa278
PA
107272011-01-25 Pedro Alves <pedro@codesourcery.com>
10728
10729 * tui/tui-regs.c (tui_register_format): Remove dead code.
10730
ab2188aa
PA
107312011-01-25 Pedro Alves <pedro@codesourcery.com>
10732
10733 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10734 instead of print_scalar_formatted.
10735 (print_scalar_formatted): Don't handle 's' format strings here,
10736 and add an assertion that we never see such format here.
10737 * valprint.h (val_print_scalar_formatted): Declare.
10738 * valprint.c (val_print_scalar_formatted): New.
10739 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10740 instead of print_scalar_formatted.
10741 * jv-valprint.c (java_val_print): Ditto.
10742 * p-valprint.c (pascal_val_print): Ditto.
10743 * ada-valprint.c (ada_val_print_1): Ditto.
10744 * f-valprint.c (f_val_print): Ditto.
10745 * infcmd.c (registers_info): Ditto.
10746 * m2-valprint.c (m2_val_print): Ditto.
10747
66d61a4c
PA
107482011-01-25 Pedro Alves <pedro@codesourcery.com>
10749
10750 * m2-valprint.c (print_unbounded_array): Pass
10751 value_contents_for_printing rather than value_contents, to
10752 m2_print_array_contents. Also pass in the value.
10753
831adc1f
JK
107542011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10755
10756 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10757 (save_gdb_index_command): Switch to .gdb_index version 4.
10758
20622269
PA
107592011-01-25 Pedro Alves <pedro@codesourcery.com>
10760
10761 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10762 than frame_register, and always pass a valid value to val_print.
10763
585fdaa1
PA
107642011-01-25 Pedro Alves <pedro@codesourcery.com>
10765
10766 Centralize printing "<optimized out>".
10767
10768 * valprint.h (val_print_optimized_out): Declare.
10769 * cp-valprint.c (cp_print_value_fields): Use
10770 val_print_optimized_out.
10771 * jv-valprint.c (java_print_value_fields): Ditto.
10772 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10773 * printcmd.c (print_formatted): Ditto.
10774 * valprint.c (valprint_check_validity): Ditto.
10775 (value_check_printable): Ditto.
10776 (val_print_optimized_out): New.
10777
29ec5263
PA
107782011-01-25 Pedro Alves <pedro@codesourcery.com>
10779
10780 * infcmd.c (default_print_registers_info): Allocate values so to
10781 never pass a NULL value to val_print.
10782
de4127a3
PA
107832011-01-25 Pedro Alves <pedro@codesourcery.com>
10784
10785 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10786 boolean. Make sure to always pass a value that matches the
10787 contents buffer to callees. Preserve `address' for following
10788 iterations.
10789 * value.c (value_contents_for_printing_const): New.
10790 (value_address): Constify value argument.
10791 * value.h (value_contents_for_printing_const): Declare.
10792 (value_address): Constify value argument.
10793
ee99023e
PA
107942011-01-25 Pedro Alves <pedro@codesourcery.com>
10795
10796 * regcache.c (struct regcache_descr): Rename
10797 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10798 and sizeof_cooked_register_valid_p to
10799 sizeof_cooked_register_status.
10800 (init_regcache_descr): Adjust.
10801 (struct regcache): Rename register_valid_p field to
10802 register_status.
10803 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10804 (do_cooked_read): Adjust.
10805 (regcache_valid_p): Rename to ...
10806 (regcache_register_status): ... this. Adjust.
10807 (regcache_invalidate): Adjust.
10808 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10809 Adjust.
10810 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10811 as unavailable, not valid.
10812 (regcache_dump): Adjust.
10813 * regcache.h (enum register_status): New.
10814 (regcache_register_status): Declare.
10815 (regcache_invalidate): Delete declaration.
10816 * corelow.c (get_core_registers): Adjust.
10817 * tracepoint.c (tfile_fetch_registers): Adjust.
10818 * trad-frame.c (REG_VALUE): Rename to ...
10819 (TF_REG_VALUE): ... this.
10820 (REG_UNKNOWN): Rename to ...
10821 (TF_REG_UNKNOWN): ... this.
10822 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10823 * mi/mi-main.c (register_changed_p): Adjust.
10824
99e42fd8
PA
108252011-01-25 Pedro Alves <pedro@codesourcery.com>
10826
10827 * regcache.c (struct regcache_descr): Remove outdated comment.
10828 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10829 overallocate hack.
10830 (regcache_xmalloc): Rename to ...
10831 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10832 Allocate the regcache type accordingly.
10833 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10834 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10835 cooked registers, not raw.
10836 (regcache_dup_no_passthrough): Delete.
10837 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10838 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10839 mention obsolete write_register_bytes.
10840 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10841
f7605bc2
PA
108422011-01-25 Pedro Alves <pedro@codesourcery.com>
10843
10844 Stop remote_read_bytes from handling partial reads itself.
10845
10846 * remote-fileio.c: Include target.h.
10847 (remote_fileio_write_bytes): Delete.
10848 (remote_fileio_func_open, remote_fileio_func_write)
10849 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10850 target_read_memory.
10851 (remote_fileio_func_stat): Use target_read_memory and
10852 target_write_memory.
10853 (remote_fileio_func_gettimeofday): Use target_write_memory.
10854 (remote_fileio_func_system): Use target_read_memory.
10855 * remote.c (remote_write_bytes): Make it static.
10856 (remote_read_bytes): Don't handle partial reads here.
10857 * remote.h (remote_read_bytes): Delete declaration.
10858
efc0eabd
PA
108592011-01-25 Pedro Alves <pedro@codesourcery.com>
10860
10861 Simplify XML parsing a bit.
10862
10863 * xml-support.h (gdb_xml_parse_quick): Declare.
10864 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10865 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10866 parameter.
10867 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10868 gdb_xml_create_parser_and_cleanup_1.
10869 (gdb_xml_parse_quick): New.
10870 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10871 * osdata.c (osdata_parse): Ditto.
10872 * remote.c (remote_threads_info): Ditto.
10873 * solib-target.c (solib_target_parse_libraries): Ditto.
10874 * xml-syscall.c (syscall_parse_xml): Ditto.
10875 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10876
314d366a
KB
108772011-01-24 Kevin Buettner <kevinb@redhat.com>
10878
10879 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10880 with remote-mips.o added to gdb_target_obs.
10881 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10882
a491d753
PA
108832011-01-24 Pedro Alves <pedro@codesourcery.com>
10884
10885 * ada-valprint.c (val_print_packed_array_elements): Pass the
10886 correct struct value to val_print.
10887 (ada_val_print_1): Ditto.
10888
490f124f
PA
108892011-01-24 Pedro Alves <pedro@codesourcery.com>
10890
10891 Don't lose embedded_offset in printing routines throughout.
10892
10893 * valprint.h (val_print_array_elements): Change prototype.
10894 * valprint.c (val_print_array_elements): Add `embedded_offset'
10895 parameter, and adjust to pass it down to val_print, while passing
10896 `valaddr' or `address' unmodified. Take embedded_offset into
10897 account when checking repetitions.
10898 * c-valprint.c (c_val_print): Pass embedded_offset to
10899 val_print_array_elements instead of adjusting `valaddr' and
10900 `address'.
10901 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10902 embedded_offset to val_print_array_elements instead of adjusting
10903 `valaddr'.
10904 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10905 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10906 val_print_array_elements and pascal_object_print_value_fields
10907 instead of adjusting `valaddr'.
10908 (pascal_object_print_value_fields): Add `offset' parameter, and
10909 adjust to use it.
10910 (pascal_object_print_value): Add `offset' parameter, and adjust to
10911 use it.
10912 (pascal_object_print_static_field): Use
10913 value_contents_for_printing/value_embedded_offset, rather than
10914 value_contents.
10915 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10916 parameter, and adjust to use it. Use
10917 value_contents_for_printing/value_embedded_offset, rather than
10918 value_contents.
10919 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10920 (ada_val_print_array): Add `offset' parameter, and adjust to use
10921 it.
10922 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10923 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10924 Instead work with offsets. Use
10925 value_contents_for_printing/value_embedded_offset, rather than
10926 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10927 and use value_from_pointer to extract a target pointer, rather
10928 than value_from_longest.
10929 (print_variant_part): Add `offset' parameter. Replace
10930 `outer_valaddr' parameter by a new `outer_offset' parameter.
10931 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10932 (ada_value_print): Use
10933 value_contents_for_printing/value_embedded_offset, rather than
10934 value_contents.
10935 (print_record): Add `offset' parameter, and adjust to pass it
10936 down.
10937 (print_field_values): Add `offset' parameter. Replace
10938 `outer_valaddr' parameter by a new `outer_offset' parameter.
10939 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10940 Use value_contents_for_printing/value_embedded_offset, rather than
10941 value_contents.
10942 * d-valprint.c (dynamic_array_type): Use
10943 value_contents_for_printing/value_embedded_offset, rather than
10944 value_contents.
10945 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10946 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10947 (java_print_value_fields): Take `offset' into account. Don't
10948 re-adjust `valaddr'. Instead pass down adjusted offsets.
10949 (java_val_print): Take `embedded_offset' into account. Pass it to
10950 java_print_value_fields.
10951 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10952 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10953 down adjusted offsets.
10954 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10955 (f_val_print): Take `embedded_offset' into account.
10956
7bfc9434
JB
109572011-01-21 Joel Brobecker <brobecker@adacore.com>
10958
10959 * inflow.c: Include "gdbcmd.h".
10960 (interactive_mode): New static global, moved here from top.c.
10961 (show_interactive_mode): New function, moved here from top.c.
10962 use gdb_has_a_terminal instead of input_from_terminal_p to
10963 determine the current mode.
10964 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10965 setting.
10966 (_initialize_inflow): Add the "set/show interactive-mode"
10967 commands. Moved here from top.c, after having adjusted slightly
10968 the help text.
10969 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10970 to inflow.c.
10971 (input_from_terminal_p): Remove handling of "interactive-mode"
10972 setting, moved to infow.c.
10973 (init_main): Remove creation of the "set/show interactive-mode"
10974 commands, moved to inflow.c.
10975
44603653
JB
109762011-01-19 Joel Brobecker <brobecker@adacore.com>
10977
10978 * NEWS: Add entry for native ia64-hpux support.
10979
4694da01
TT
109802011-01-19 Tom Tromey <tromey@redhat.com>
10981
10982 PR mi/8618:
10983 * thread.c (free_thread): Free 'name'.
10984 (print_thread_info): Emit thread name. Change CLI output.
10985 (thread_name_command): New function.
10986 (do_captured_thread_select): Emit newline.
10987 (_initialize_thread): Register 'thread name' command.
10988 * target.h (struct target_ops) <to_thread_name>: New field.
10989 (target_thread_name): New macro.
10990 * target.c (update_current_target): Handle to_thread_name.
10991 * python/py-infthread.c (thpy_get_name): New function.
10992 (thpy_set_name): Likewise.
10993 (thread_object_getset): Add "name".
10994 * linux-nat.c (linux_nat_thread_name): New function.
10995 (linux_nat_add_target): Set to_thread_name.
10996 * gdbthread.h (struct thread_info) <name>: New field.
10997
10d44370
JB
109982011-01-18 Joel Brobecker <brobecker@adacore.com>
10999
11000 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11001 (ada_val_print_1): Likewise.
11002
e3acb115
JB
110032011-01-18 Joel Brobecker <brobecker@adacore.com>
11004
11005 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11006 upper limit address is not greater than the function end address
11007 when the upper limit could not be computed using the debugging
11008 info.
11009
dc92e161
TT
110102011-01-17 Tom Tromey <tromey@redhat.com>
11011
11012 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11013 get_regcomp_error.
11014 * utils.c: Include gdb_regex.h.
11015 (do_regfree_cleanup): New function.
11016 (make_regfree_cleanup): Likewise.
11017 (get_regcomp_error): Likewise.
11018 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11019
f55af66d
TT
110202011-01-17 Tom Tromey <tromey@redhat.com>
11021
11022 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11023 re_compile_fastmap.
11024
a5a44b53
PM
110252011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11026
11027 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11028 for internal variables.
11029 (last_was_structop): New static variable.
11030 (COMPLETE): New token.
11031 (field_exp): New rule to group all '.' suffix handling.
11032 Add mark_struct_expression calls when approriate to be able
11033 to correctly find fields for completion.
11034 (yylex): Adapt to handle field completion and set INTVAR when
11035 required.
11036
2c291032
YQ
110372011-01-14 Yao Qi <yao@codesourcery.com>
11038
11039 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11040 save_reggroup, restore_reggroup and all_reggroup.
11041
447b483c
JB
110422011-01-14 Joel Brobecker <brobecker@adacore.com>
11043
11044 * ada-valprint. (ada_printchar): Use the correct type length
11045 in call to ada_emit_char.
11046 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11047
7b64a93b
PM
110482011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11049
11050 * solib-som.h (hpux_major_release): Declare variable here.
11051 * solib-som.c: Remove <sys/utsname.h> header.
11052 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11053 (hpux_major_release): Make global, change default value to
11054 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11055 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11056 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11057 Add "solib-som.h" header.
11058 (set_hpux_major_release): New function.
11059 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11060
4e18c053
MF
110612011-01-14 Mike Frysinger <vapier@gentoo.org>
11062
11063 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11064
a9df6b22
JB
110652011-01-14 Joel Brobecker <brobecker@adacore.com>
11066
11067 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11068 new-line at end of warning message.
11069 (ia64_hpux_store_register): Remove trailing new-line at end of
11070 error message.
11071 * ia64-hpux-tdep.c: Rephrase comment.
11072 * solib-ia64-hpux.c (struct dld_info): Change type of field
11073 dld_flags from "long long" to ULONGEST.
11074
ecb956dd
PA
110752011-01-14 Pedro Alves <pedro@codesourcery.com>
11076
11077 * target.h (deprecated_child_ops): Delete declaration.
11078 * target.c (deprecated_child_ops): Delete definition.
11079
76adfcae
PA
110802011-01-14 Pedro Alves <pedro@codesourcery.com>
11081
11082 * Makefile.in (hpux-thread.o): Delete rule.
11083 * configure.ac: Don't check for HPUX DCE threads support.
11084 * configure, config.in: Regenerate.
11085 * hppa-hpux-nat.c (child_suppress_run): Delete.
11086 (hppa_hpux_child_can_run): Delete.
11087 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11088 * hpux-thread.c: Delete.
11089
042e866e
JB
110902011-01-13 Joel Brobecker <brobecker@adacore.com>
11091
11092 * hpux-thread.c (hpux_pid_to_str): Delete.
11093
4ffa5a33
JB
110942011-01-13 Joel Brobecker <brobecker@adacore.com>
11095
11096 * ada-valprint.c (ada_emit_char): Remove strange code.
11097 Check that c is <= UCHAR_MAX before passing it to isascii.
11098 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11099
de8fa76c
JB
111002011-01-13 Joel Brobecker <brobecker@adacore.com>
11101
11102 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11103 to the case where instream is stdin.
11104
c4de7027
JB
111052011-01-13 Joel Brobecker <brobecker@adacore.com>
11106
11107 * ia64-tdep.h (struct regcache): Forward declare.
11108 (struct ia64_infcall_ops): New struct type.
11109 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11110 and "infcall_ops".
11111 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11112 Renames ia64_find_global_pointer.
11113 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11114 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11115 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11116 methods.
11117 (ia64_infcall_ops): New static global constant.
11118 (ia64_gdbarch_init): Set tdep->infcall_ops.
11119 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11120 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11121 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11122 (ia64_hpux_dummy_code): New static global constant.
11123 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11124 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11125 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11126 New function.
11127 (ia64_hpux_infcall_ops): New static global constant.
11128 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11129 for inferior function calls to work properly on ia64-hpux.
11130
77ca787b
JB
111312011-01-13 Joel Brobecker <brobecker@adacore.com>
11132
11133 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11134 * ia64-tdep.h (struct frame_info): forward declaration.
11135 (struct gdbarch_tdep): Add field size_of_register_frame.
11136 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11137 to determine the size of the register frame.
11138 (ia64_size_of_register_frame): New function.
11139 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11140 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11141 (IA64_HPUX_UREG_REASON): New macro.
11142 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11143 New functions.
11144 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11145 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11146 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11147 objects.
11148
92c9a463
JB
111492011-01-13 Joel Brobecker <brobecker@adacore.com>
11150
11151 Add support for ia64-hpux.
11152 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11153 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11154
11155 * configure.host: Add handling for ia64-hpux hosts. Add associated
11156 floatformats.
11157 * configure.tgt: Add handling for ia64-hpux targets.
11158 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11159 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11160 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11161
f688d93f
JB
111622011-01-13 Joel Brobecker <brobecker@adacore.com>
11163
11164 [ttrace] Compute thread list immediately after attach.
11165 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11166 New subprogram.
11167 (inf_ttrace_attach): Use it.
11168
1b89e62f
JB
111692011-01-13 Joel Brobecker <brobecker@adacore.com>
11170
11171 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11172 if we could not determine the frame's function address. Instead,
11173 use the frame's PC, and then continue.
11174
3e5e6e2a
JB
111752011-01-13 Joel Brobecker <brobecker@adacore.com>
11176
11177 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11178 not already defined.
11179
825d6d8a
JB
111802011-01-13 Joel Brobecker <brobecker@adacore.com>
11181
11182 * ia64-tdep.c (ia64_struct_type_p): New function.
11183 (ia64_extract_return_value): Handle integral values that are
11184 less than 8 bytes long.
11185 (ia64_push_dummy_call): Likewise.
11186
7458e667
JB
111872011-01-13 Joel Brobecker <brobecker@adacore.com>
11188
11189 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11190 floatformat_ia64_ext.
11191 (floatformat_ia64_ext_big): New static const.
11192 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11193
1b05df00
TT
111942011-01-12 Tom Tromey <tromey@redhat.com>
11195
11196 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11197 messages.
11198 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11199 (mi_cmd_thread_list_ids): Likewise.
11200 (mi_cmd_data_list_changed_registers): Likewise.
11201 (mi_cmd_data_list_register_values): Likewise.
11202 (mi_cmd_data_write_register_values): Likewise.
11203 (mi_cmd_data_evaluate_expression): Likewise.
11204 (mi_cmd_data_read_memory): Likewise.
11205 (mi_cmd_data_read_memory_bytes): Likewise.
11206 (mi_cmd_data_write_memory): Likewise.
11207 (mi_cmd_enable_timings): Likewise.
11208 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11209 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11210 (mi_cmd_var_delete): Likewise.
11211 (mi_cmd_var_set_format): Likewise.
11212 (mi_cmd_var_show_format): Likewise.
11213 (mi_cmd_var_info_num_children): Likewise.
11214 (mi_cmd_var_list_children): Likewise.
11215 (mi_cmd_var_info_type): Likewise.
11216 (mi_cmd_var_info_expression): Likewise.
11217 (mi_cmd_var_show_attributes): Likewise.
11218 (mi_cmd_var_assign): Likewise.
11219 (mi_cmd_var_update): Likewise.
11220 (mi_cmd_enable_pretty_printing): Likewise.
11221 (mi_cmd_var_set_update_range): Likewise.
11222 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11223 messages.
11224 (mi_cmd_target_file_put): Likewise.
11225 (mi_cmd_target_file_delete): Likewise.
11226 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11227 messages.
11228 (mi_cmd_stack_info_depth): Likewise.
11229 (mi_cmd_stack_list_locals): Likewise.
11230 (mi_cmd_stack_list_args): Likewise.
11231 (mi_cmd_stack_select_frame): Likewise.
11232 (mi_cmd_stack_select_frame): Likewise.
11233 (mi_cmd_stack_info_frame): Likewise.
11234 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11235 messages.
11236 (mi_cmd_file_list_exec_source_files): Likewise.
11237 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11238 (mi_cmd_env_cd): Likewise.
11239 (mi_cmd_env_path): Likewise.
11240 (mi_cmd_env_dir): Likewise.
11241 (mi_cmd_inferior_tty_show): Likewise.
11242 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11244 (mi_cmd_break_watch): Likewise.
11245
ad422571
TJB
112462011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11247
11248 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11249 (ppc_linux_insert_hw_breakpoint): Likewise.
11250 (ppc_linux_remove_hw_breakpoint): Likewise.
11251 (ppc_linux_insert_watchpoint): Likewise.
11252
c2ff108b
JK
112532011-01-12 Andrew Burgess <aburgess@broadcom.com>
11254 Jan Kratochvil <jan.kratochvil@redhat.com>
11255
11256 PR fortran/11104 and DWARF unbound arrays detection.
11257 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11258 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11259 unspecified upper bound.
11260 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11261 variables array_size_array, tmp_type and offset_item. New variable
11262 array. Remove call to f77_get_upperbound. New variables array_type
11263 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11264 the final call to deprecated_set_value_type.
11265
41e8491f
JK
112662011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11267
11268 Make value allocations more lazy.
11269 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11270 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11271 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11272 instead of allocate_value and set_value_lazy.
11273 * findvar.c (value_of_register_lazy): Likewise.
11274 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11275 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11276 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11277 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11278 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11279 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11280 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11281 the end, remove set_value_lazy there.
11282 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11283 instead of allocate_value and set_value_lazy when possible.
11284 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11285 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11286 of allocate_value and set_value_lazy.
11287 (value_from_contents_and_address): Use allocate_value_lazy instead of
11288 allocate_value and set_value_lazy when possible.
11289
b716877b
AB
112902011-01-12 Andrew Burgess <aburgess@broadcom.com>
11291
11292 * disasm.c (dump_insns): Support dumping opcodes for MI.
11293 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11294 dumping of instruction opcodes.
11295
d5ae309f
JB
112962011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11297
11298 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11299 appropiately.
11300
98871305
TT
113012011-01-11 Tom Tromey <tromey@redhat.com>
11302
11303 * thread.c (do_captured_thread_select): Emit newline before
11304 printing frame.
11305
c378eb4e
MS
113062011-01-11 Michael Snyder <msnyder@vmware.com>
11307
11308 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11309 * score-tdep.c: Ditto.
11310 * score-tdep.h: Ditto.
11311 * ser-base.c: Ditto.
11312 * ser-go32.c: Ditto.
11313 * serial.c: Ditto.
11314 * serial.h: Ditto.
11315 * ser-mingw.c: Ditto.
11316 * ser-pipe.c: Ditto.
11317 * ser-tcp.c: Ditto.
11318 * ser-unix.c: Ditto.
11319 * sh64-tdep.c: Ditto.
11320 * shnbsd-nat.c: Ditto.
11321 * sh-tdep.c: Ditto.
11322 * sh-tdep.h: Ditto.
11323 * solib.c: Ditto.
11324 * solib-darwin.c: Ditto.
11325 * solib-frv.c: Ditto.
11326 * solib.h: Ditto.
11327 * solib-irix.c: Ditto.
11328 * solib-osf.c: Ditto.
11329 * solib-pa64.c: Ditto.
11330 * solib-som.c: Ditto.
11331 * solib-spu.c: Ditto.
11332 * solib-sunos.c: Ditto.
11333 * solib-svr4.c: Ditto.
11334 * solist.h: Ditto.
11335 * sol-thread.c: Ditto.
11336 * somread.c: Ditto.
11337 * source.c: Ditto.
11338 * source.h: Ditto.
11339 * sparc64-linux-tdep.c: Ditto.
11340 * sparc64-tdep.c: Ditto.
11341 * sparc-linux-nat.c: Ditto.
11342 * sparc-linux-tdep.c: Ditto.
11343 * sparc-sol2-nat.c: Ditto.
11344 * sparc-sol2-tdep.c: Ditto.
11345 * sparc-tdep.c: Ditto.
11346 * sparc-tdep.h: Ditto.
11347 * spu-tdep.c: Ditto.
11348 * stabsread.c: Ditto.
11349 * stabsread.h: Ditto.
11350 * stack.c: Ditto.
11351 * symfile.c: Ditto.
11352 * symfile.h: Ditto.
11353 * symmisc.c: Ditto.
11354 * symtab.c: Ditto.
11355 * symtab.h: Ditto.
11356 * target.c: Ditto.
11357 * target-descriptions.c: Ditto.
11358 * target-descriptions.h: Ditto.
11359 * target.h: Ditto.
11360 * target-memory.c: Ditto.
11361 * terminal.h: Ditto.
11362 * thread.c: Ditto.
11363 * top.c: Ditto.
11364 * tracepoint.c: Ditto.
11365 * tracepoint.h: Ditto.
11366 * trad-frame.h: Ditto.
11367 * typeprint.c: Ditto.
11368
581e13c1
MS
113692011-01-11 Michael Snyder <msnyder@vmware.com>
11370
11371 * ui-file.c: Comment cleanup, mostly periods and spaces.
11372 * ui-file.h: Ditto.
11373 * ui-out.c: Ditto.
11374 * ui-out.h: Ditto.
11375 * utils.c: Ditto.
11376 * v850-tdep.c: Ditto.
11377 * valarith.c: Ditto.
11378 * valops.c: Ditto.
11379 * valprint.c: Ditto.
11380 * valprint.h: Ditto.
11381 * value.c: Ditto.
11382 * value.h: Ditto.
11383 * varobj.c: Ditto.
11384 * varobj.h: Ditto.
11385 * vax-tdep.c: Ditto.
11386 * vec.c: Ditto.
11387 * vec.h: Ditto.
11388 * version.h: Ditto.
11389 * windows-nat.c: Ditto.
11390 * windows-tdep.c: Ditto.
11391 * xcoffread.c: Ditto.
11392 * xcoffsolib.c: Ditto.
11393 * xml-support.c: Ditto.
11394 * xstormy16-tdep.c: Ditto.
11395 * xtensa-tdep.c: Ditto.
11396 * xtensa-tdep.h: Ditto.
11397
90e4670f
TJB
113982011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11399
11400 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11401 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11402
e09342b5
TJB
114032011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11404 Thiago Jung Bauermann <bauerman@br.ibm.com>
11405
11406 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11407 * breakpoint.h
e09342b5
TJB
11408 (struct breakpoint_ops) <resources_needed>: New method.
11409 Initialize to NULL in all existing breakpoint_ops instances.
11410 (struct breakpoint) <exact>: New field.
11411 (target_exact_watchpoints): Declare external global.
11412 * breakpoint.c (target_exact_watchpoints): New global flag.
11413 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11414 b->enable_state to bp_enabled before calling
11415 hw_watchpoint_used_count.
11416 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11417 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11418 if available.
11419 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11420 if the watchpoint is exact.
11421 (resources_needed_watchpoint): New function.
11422 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11423 (watch_command_1): Set b->exact if the user asked for an exact
11424 watchpoint and one can be set.
11425 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11426 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11427 the user asks for an exact watchpoint and one can be set. Return
11428 number of needed debug registers to watch the expression.
11429 * gdbtypes.c (is_scalar_type): New function, based on
11430 valprint.c:scalar_type_p.
11431 (is_scalar_type_recursive): New function.
11432 * gdbtypes.h (is_scalar_type_recursive): Declare.
11433 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11434 handle regions when ranged watchpoints are available.
11435 (create_watchpoint_request): New function.
11436 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11437 create_watchpoint_request.
11438 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11439 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11440 `set powerpc' and `show powerpc' commands.
11441 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11442 Mention documentation comment in the target macro.
11443 (target_region_ok_for_hw_watchpoint): Document return value.
11444
9fa40276
TJB
114452011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11446
11447 * breakpoint.c (update_watchpoint): Decide on using a software or
11448 hardware watchpoint after the bp_locations are created.
11449
77b06cd7
TJB
114502010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11451
11452 Convert hardware watchpoints to use breakpoint_ops.
11453 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11454 <insert_location>: ... this. Return int instead of void.
11455 Accept pointer to struct bp_location instead of pointer to
11456 struct breakpoint. Adapt all implementations.
f2eb0bc8 11457 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11458 <remove_location>: ... this. Accept pointer to struct bp_location
11459 instead of pointer to struct breakpoint. Adapt all implementations.
11460 * breakpoint.c (insert_catchpoint): Delete function.
11461 (insert_bp_location): Call the watchpoint or catchpoint's
11462 breakpoint_ops.insert method.
11463 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11464 breakpoint_ops.remove method.
11465 (insert_watchpoint, remove_watchpoint): New functions.
11466 (watchpoint_breakpoint_ops): New structure.
11467 (watch_command_1): Initialize the OPS field.
11468 * inf-child.c (inf_child_insert_fork_catchpoint)
11469 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11470 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11471 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11472 Delete functions.
11473 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11474 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11475 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11476 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11477 * target.c (update_current_target): Change default implementation of
11478 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11479 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11480 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11481 to_set_syscall_catchpoint to return_one.
11482 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11483 (debug_to_insert_exec_catchpoint): Report return value.
11484 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11485 (to_insert_exec_catchpoint): Change declaration to return int instead
11486 of void.
11487
9b20d036
MS
114882011-01-11 Michael Snyder <msnyder@vmware.com>
11489
11490 * arm-tdep.c: Internationalization.
11491 * c-lang.c: Ditto.
11492 * charset.c: Ditto.
11493 * fork-child.c: Ditto.
11494 * nto-procfs.c: Ditto.
11495 * ppc-sysv-tdep.c: Ditto.
11496 * procfs.c: Ditto.
11497 * remote-mips.c: Ditto.
11498 * remote.c: Ditto.
11499 * rs6000-nat.c: Ditto.
11500 * rs6000-tdep.c: Ditto.
11501 * target.c: Ditto.
11502 * valops.c: Ditto.
11503 * value.c: Ditto.
11504 * xml-support.c: Ditto.
11505 * mi/mi-cmd-break.c: Ditto.
11506 * mi/mi-cmd-var.c: Ditto.
11507 * mi/mi-interp.c: Ditto.
11508 * mi/mi-main.c: Ditto.
11509
dae477fe
AB
115102011-01-11 Andrew Burgess <aburgess@broadcom.com>
11511
11512 * remote-sim.c (gdbsim_store_register): Update API to
11513 sim_store_register to check more error conditions.
11514
0df8b418
MS
115152011-01-10 Michael Snyder <msnyder@vmware.com>
11516
11517 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11518 * nto-tdep.c: Ditto.
11519 * nto-tdep.h: Ditto.
11520 * objc-exp.y: Ditto.
11521 * objc-lang.c: Ditto.
11522 * objfiles.c: Ditto.
11523 * objfiles.h: Ditto.
11524 * observer.c: Ditto.
11525 * opencl-lang.c: Ditto.
11526 * osabi.c: Ditto.
11527 * parse.c: Ditto.
11528 * parser-defs.h: Ditto.
11529 * p-exp.y: Ditto.
11530 * p-lang.c: Ditto.
11531 * posix-hdep.c: Ditto.
11532 * ppcbug-rom.c: Ditto.
11533 * ppc-linux-nat.c: Ditto.
11534 * ppc-linux-tdep.c: Ditto.
11535 * ppc-linux-tdep.h: Ditto.
11536 * ppcnbsd-tdep.c: Ditto.
11537 * ppcobsd-tdep.c: Ditto.
11538 * ppcobsd-tdep.h: Ditto.
11539 * ppc-sysv-tdep.c: Ditto.
11540 * ppc-tdep.h: Ditto.
11541 * printcmd.c: Ditto.
11542 * proc-abi.c: Ditto.
11543 * proc-flags.c: Ditto.
11544 * procfs.c: Ditto.
11545 * proc-utils.h: Ditto.
11546 * progspace.h: Ditto.
11547 * prologue-value.c: Ditto.
11548 * prologue-value.h: Ditto.
11549 * psympriv.h: Ditto.
11550 * psymtab.c: Ditto.
11551 * p-typeprint.c: Ditto.
11552 * p-valprint.c: Ditto.
11553 * ravenscar-sparc-thread.c: Ditto.
11554 * ravenscar-thread.c: Ditto.
11555 * ravenscar-thread.h: Ditto.
11556 * record.c: Ditto.
11557 * regcache.c: Ditto.
11558 * regcache.h: Ditto.
11559 * remote.c: Ditto.
11560 * remote-fileio.c: Ditto.
11561 * remote-fileio.h: Ditto.
11562 * remote.h: Ditto.
11563 * remote-m32r-sdi.c: Ditto.
11564 * remote-mips.c: Ditto.
11565 * remote-sim.c: Ditto.
11566 * rs6000-aix-tdep.c: Ditto.
11567 * rs6000-nat.c: Ditto.
11568 * rs6000-tdep.c: Ditto.
11569
0d7a18f7
MS
115702011-01-10 Michael Snyder <msnyder@vmware.com>
11571
11572 * charset.c (validate): Internationalization.
11573 * coffread.c (read_one_sym): Ditto.
11574 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11575 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11576 * inflow.c (new_tty): Ditto.
11577 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11578 * m32c-tdep.c (m32c_return_value): Ditto.
11579 * mep-tdep.c (mep_store_return_value): Ditto.
11580 * score-tdep.c (score7_fetch_insn): Ditto.
11581 * ser-mingw.c (pipe_windows_open): Ditto.
11582 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11583 * spu-tdep.c (spu_register_type): Ditto.
11584 * tracepoint.c (trace_find_command): Ditto.
11585 * valarith.c (value_pos): Ditto.
11586
9a153e0b
JB
115872011-01-10 Joel Brobecker <brobecker@adacore.com>
11588
11589 * ada-valprint.c (printstr): Minor comment reformatting.
11590
35ecd2d6
MS
115912011-01-08 Michael Snyder <msnyder@vmware.com>
11592
11593 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11594 markup.
11595
1777feb0
MS
115962011-01-08 Michael Snyder <msnyder@vmware.com>
11597
11598 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11599 * hppa-hpux-tdep.c: Ditto.
11600 * hppa-linux-nat.c: Ditto.
11601 * hppa-linux-tdep.c: Ditto.
11602 * hppanbsd-tdep.c: Ditto.
11603 * hppa-tdep.c: Ditto.
11604 * hppa-tdep.h: Ditto.
11605 * hpux-thread.c: Ditto.
11606 * i386-cygwin-tdep.c: Ditto.
11607 * i386-darwin-nat.c: Ditto.
11608 * i386gnu-nat.c: Ditto.
11609 * i386-linux-nat.c: Ditto.
11610 * i386-linux-tdep.c: Ditto.
11611 * i386-nat.c: Ditto.
11612 * i386-nat.h: Ditto.
11613 * i386nbsd-tdep.c: Ditto.
11614 * i386-sol2-nat.c: Ditto.
11615 * i386-stub.c: Ditto.
11616 * i386-tdep.c: Ditto.
11617 * i386-tdep.h: Ditto.
11618 * i387-tdep.c: Ditto.
11619 * ia64-linux-nat.c: Ditto.
11620 * ia64-linux-tdep.c: Ditto.
11621 * ia64-tdep.c: Ditto.
11622 * infcall.c: Ditto.
11623 * infcall.h: Ditto.
11624 * infcmd.c: Ditto.
11625 * inferior.c: Ditto.
11626 * inferior.h: Ditto.
11627 * infloop.c: Ditto.
11628 * inflow.c: Ditto.
11629 * infrun.c: Ditto.
11630 * interps.c: Ditto.
11631 * interps.h: Ditto.
11632 * iq2000-tdep.c: Ditto.
11633 * irix5-nat.c: Ditto.
11634 * jit.c: Ditto.
11635 * jit.h: Ditto.
11636 * jv-exp.y: Ditto.
11637 * jv-lang.c: Ditto.
11638 * jv-lang.h: Ditto.
11639 * jv-typeprint.c: Ditto.
11640 * jv-valprint.c: Ditto.
11641 * language.c: Ditto.
11642 * language.h: Ditto.
11643 * linespec.c: Ditto.
11644 * linux-fork.c: Ditto.
11645 * linux-nat.c: Ditto.
11646 * linux-thread-db.c: Ditto.
11647 * lm32-tdep.c: Ditto.
11648
025bb325
MS
116492011-01-08 Michael Snyder <msnyder@vmware.com>
11650
11651 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11652 * m2-lang.c: Ditto.
11653 * m2-typeprint.c: Ditto.
11654 * m2-valprint.c: Ditto.
11655 * m32c-tdep.c: Ditto.
11656 * m32r-linux-nat.c: Ditto.
11657 * m32r-rom.c: Ditto.
11658 * m32r-tdep.c: Ditto.
11659 * m32r-tdep.h: Ditto.
11660 * m68hc11-tdep.c: Ditto.
11661 * m58klinux-nat.c: Ditto.
11662 * m68k-tdep.c: Ditto.
11663 * m88k-tdep.c: Ditto.
11664 * m88k-tdep.h: Ditto.
11665 * machoread.c: Ditto.
11666 * macrocmd.c: Ditto.
11667 * macroexp.c: Ditto.
11668 * macrotab.c: Ditto.
11669 * main.c: Ditto.
11670 * maint.c: Ditto.
11671 * mdebugread.c: Ditto.
11672 * mdebugread.h: Ditto.
11673 * memattr.c: Ditto.
11674 * memattr.h: Ditto.
11675 * memory-map.h: Ditto.
11676 * mep-tdep.c: Ditto.
11677 * microblaze-rom.c: Ditto.
11678 * microblaze-tdep.c: Ditto.
11679 * minsyms.c: Ditto.
11680 * mips-irix-tdep.c: Ditto.
11681 * mips-linux-nat.c: Ditto.
11682 * mips-linux-tdep.c: Ditto.
11683 * mips-linux-tdep.h: Ditto.
11684 * mipsnbsd-nat.c: Ditto.
11685 * mipsnbsd-tdep.c: Ditto.
11686 * mipsread.c: Ditto.
11687 * mips-tdep.c: Ditto.
11688 * mips-tdep.h: Ditto.
11689 * mn10300-linux-tdep.c: Ditto.
11690 * mn10300-tdep.c: Ditto.
11691 * mn10300-tdep.h: Ditto.
11692 * monitor.c: Ditto.
11693 * monitor.h: Ditto.
11694 * moxie-tdep.c: Ditto.
11695 * moxie-tdep.h: Ditto.
11696 * mt-tdep.c: Ditto.
11697
1642781b
MF
116982011-01-08 Mike Frysinger <vapier@gentoo.org>
11699
11700 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11701
394b0adb
JB
117022011-01-08 Robert Millan <rmh@gnu.org>
11703
11704 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11705
b670013c
MS
117062011-01-07 Michael Snyder <msnyder@vmware.com>
11707
11708 * charset.c (_initialize_charset): Fix typo in string.
11709
a743e542
MS
117102011-01-07 Michael Snyder <msnyder@vmware.com>
11711
11712 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11713 for i18n.
f2eb0bc8 11714 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
11715 Split line so that operator goes to beginning of line.
11716 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11717 assignment out of if statement.
11718
0963b4bd
MS
117192011-01-07 Michael Snyder <msnyder@vmware.com>
11720
11721 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11722 * ada-lang.h: Ditto.
11723 * ada-tasks.c: Ditto.
11724 * ada-valprint.c: Ditto.
11725 * aix-threads.c: Ditto.
11726 * alpha-linux-nat.c: Ditto.
11727 * alpha-linux-tdep.c: Ditto.
11728 * alpha-mdebug-tdep.c: Ditto.
11729 * alpha-nat.c: Ditto.
11730 * alpha-osf1-tdep.c: Ditto.
11731 * alpha-tdep.c: Ditto.
11732 * alphabsd-nat.c: Ditto.
11733 * alphabsd-tdep.c: Ditto.
11734 * amd64-darwin-tdep.c: Ditto.
11735 * amd64-linux-nat.c: Ditto.
11736 * amd64-linux-tdep.c: Ditto.
11737 * amd64-sol2-tdep.c: Ditto.
11738 * amd64-tdep.c: Ditto.
11739 * amd64-fbsd-tdep.c: Ditto.
11740 * amd64-nbsd-tdep.c: Ditto.
11741 * amd64-obsd-tdep.c: Ditto.
11742 * amd64-linux-nat.c: Ditto.
11743 * amd64-linux-tdep.c: Ditto.
11744 * arm-tdep.c: Ditto.
11745 * arm-tdep.h: Ditto.
11746 * armnbsd-nat.c: Ditto.
11747 * avr-tdep.c: Ditto.
11748 * bfin-tdep.c: Ditto.
11749 * bsd-kvm.c: Ditto.
11750 * c-typeprintc: Ditto.
11751 * c-valprint.c: Ditto.
11752 * coff-pe-read.h: Ditto.
11753 * coffreead.c: Ditto.
11754 * cris-tdep.c: Ditto.
11755 * d-lang.c: Ditto.
11756 * darwin-nat-info.c: Ditto.
11757 * darwin-nat.c: Ditto.
11758 * dbug-rom.c: Ditto.
11759 * dbxread.c: Ditto.
11760 * dcache.c: Ditto.
11761 * dcache.h: Ditto.
11762 * dec-thread.c: Ditto.
11763 * defs.h: Ditto.
11764 * demangle.c: Ditto.
11765 * dicos-tdep.c: Ditto.
11766 * dictionary.c: Ditto.
11767 * dictionary.h: Ditto.
11768 * dink32-rom.c: Ditto.
11769 * disasm.c: Ditto.
11770 * doublest.c: Ditto.
11771 * dsrec.c: Ditto.
11772 * dummy-frame.c: Ditto.
11773 * dwarf2-frame.c: Ditto.
11774 * dwarf2expr.c: Ditto.
11775 * dwarf2loc.c: Ditto.
11776 * dwarf2read.c: Ditto.
11777 * elfread.c: Ditto.
11778 * environ.c: Ditto.
11779 * eval.c: Ditto.
11780 * event-top.h: Ditto.
11781 * exceptions.c: Ditto.
11782 * exceptions.h: Ditto.
11783 * exec.c: Ditto.
11784 * expprint.c: Ditto.
11785 * expression.h: Ditto.
11786 * f-exp.y: Ditto.
11787 * f-lang.c: Ditto.
11788 * f-lang.h: Ditto.
11789 * f-typeprint.c: Ditto.
11790 * f-valprint.c: Ditto.
11791 * fbsd-nat.c: Ditto.
11792 * findvar.c: Ditto.
11793 * fork-child.c: Ditto.
11794 * frame.c: Ditto.
11795 * frame.h: Ditto.
11796 * frv-linux-tdep.c: Ditto.
11797 * frv-tdep.c: Ditto.
11798 * gcore.c: Ditto.
11799 * gdb-stabs.h: Ditto.
11800 * gdb_assert.h: Ditto.
11801 * gdb_string.h: Ditto.
11802 * gdb_thread_db.h: Ditto.
11803 * gdb_wait.h: Ditto.
11804 * gdbarch.sh: Ditto.
11805 * gdbcore.h: Ditto.
11806 * gdbthread.h: Ditto.
11807 * gdbtypes.c: Ditto.
11808 * gdbtypes.h: Ditto.
11809 * gnu-nat.c: Ditto.
11810 * gnu-nat.h: Ditto.
11811 * gnu-v2-abi.c: Ditto.
11812 * gnu-v3-abi.c: Ditto.
11813 * go32-nat.c: Ditto.
11814 * gdbarch.c: Regenerate.
11815 * gdbarch.h: Regenerate.
11816
ac74f770
MS
118172011-01-07 Michael Snyder <msnyder@vmware.com>
11818
11819 * ax-gdb.c: Adjust some long output strings.
11820 * breakpoint.c: Ditto.
11821 * charset.c: Ditto.
11822 * cp-abi.c: Ditto.
11823 * infcall.c: Ditto.
11824 * infrun.c: Ditto.
11825 * linux-nat.c: Ditto.
11826 * solib-pa64.c: Ditto.
11827 * solib-som.c: Ditto.
11828
d8e22779
TT
118292011-01-06 Tom Tromey <tromey@redhat.com>
11830
11831 PR python/12367:
11832 * NEWS: Add item.
11833 * python/python.c (GdbMethods): Add "newest_frame" method.
11834 * python/python-internal.h (gdbpy_newest_frame): Declare.
11835 * python/py-frame.c (gdbpy_newest_frame): New function.
11836
a255712f
PP
118372010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11838
11839 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11840 * jit.c (jit_debug): New variable.
11841 (show_jit_debug): New function.
11842 (struct target_buffer): Use ULONGEST.
11843 (bfd_open_from_target_memory): Likewise.
11844 (jit_register_code, jit_inferior_init): Add debug output.
11845 (_initialize_jit): Register "debug jit" command.
11846
ccfc3d6e
TT
118472011-01-06 Tom Tromey <tromey@redhat.com>
11848
11849 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11850 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11851 and ARCH_FRAME.
11852
57126e4a
TT
118532011-01-06 Tom Tromey <tromey@redhat.com>
11854
11855 * python/py-frame.c (frapy_block): Use get_frame_block.
11856
16dfc9ce
JB
118572011-01-06 Joel Brobecker <brobecker@adacore.com>
11858
11859 Do not stop on SIGPRIO signals by default
11860 * infrun.c (_initialize_infrun): Unset signal_stop and
11861 signal_print for TARGET_SIGNAL_PRIO.
11862
b1ce2347
JB
118632011-01-06 Joel Brobecker <brobecker@adacore.com>
11864
11865 * ada-tasks.c: Fix style violation in comment.
11866
8f7e195f
JB
118672011-01-06 Joel Brobecker <brobecker@adacore.com>
11868
11869 * linespec.c (decode_compound, find_method): Remove trailing \n
11870 at end of error string.
11871 * solib-irix.c (irix_current_sos): Likewise.
11872 * varobj.c (uninstall_variable): Likewise.
11873
e9bdf92c
JB
118742011-01-06 Joel Brobecker <brobecker@adacore.com>
11875
11876 * copyright.py: New script.
11877 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11878 Launch emacs without exec'ing. Call copyright.py afterwards.
11879
3e43a32a
MS
118802011-01-05 Michael Snyder <msnyder@vmware.com>
11881
11882 * addrmap.c: Shorten lines of >= 80 columns.
11883 * arch-utils.c: Ditto.
11884 * arch-utils.h: Ditto.
11885 * ax-gdb.c: Ditto.
11886 * ax-general.c: Ditto.
11887 * bcache.c: Ditto.
11888 * blockframe.c: Ditto.
11889 * breakpoint.c: Ditto.
11890 * buildsym.c: Ditto.
11891 * c-lang.c: Ditto.
11892 * c-typeprint.c: Ditto.
11893 * charset.c: Ditto.
11894 * coffread.c: Ditto.
11895 * command.h: Ditto.
11896 * corelow.c: Ditto.
11897 * cp-abi.c: Ditto.
11898 * cp-namespace.c: Ditto.
11899 * cp-support.c: Ditto.
11900 * dbug-rom.c: Ditto.
11901 * dbxread.c: Ditto.
11902 * defs.h: Ditto.
11903 * dfp.c: Ditto.
11904 * dfp.h: Ditto.
11905 * dictionary.c: Ditto.
11906 * disasm.c: Ditto.
11907 * doublest.c: Ditto.
11908 * dwarf2-frame.c: Ditto.
11909 * dwarf2expr.c: Ditto.
11910 * dwarf2loc.c: Ditto.
11911 * dwarf2read.c: Ditto.
11912 * elfread.c: Ditto.
11913 * eval.c: Ditto.
11914 * event-loop.c: Ditto.
11915 * event-loop.h: Ditto.
11916 * exceptions.h: Ditto.
11917 * exec.c: Ditto.
11918 * expprint.c: Ditto.
11919 * expression.h: Ditto.
11920 * f-lang.c: Ditto.
11921 * f-valprint.c: Ditto.
11922 * findcmd.c: Ditto.
11923 * frame-base.c: Ditto.
11924 * frame-unwind.c: Ditto.
11925 * frame-unwind.h: Ditto.
11926 * frame.c: Ditto.
11927 * frame.h: Ditto.
11928 * gcore.c: Ditto.
11929 * gdb-stabs.h: Ditto.
11930 * gdb_assert.h: Ditto.
11931 * gdb_dirent.h: Ditto.
11932 * gdb_obstack.h: Ditto.
11933 * gdbcore.h: Ditto.
11934 * gdbtypes.c: Ditto.
11935 * gdbtypes.h: Ditto.
11936 * inf-ttrace.c: Ditto.
11937 * infcall.c: Ditto.
11938 * infcmd.c: Ditto.
11939 * inflow.c: Ditto.
11940 * infrun.c: Ditto.
11941 * inline-frame.h: Ditto.
11942 * language.c: Ditto.
11943 * language.h: Ditto.
11944 * libunwind-frame.c: Ditto.
11945 * libunwind-frame.h: Ditto.
11946 * linespec.c: Ditto.
11947 * linux-nat.c: Ditto.
11948 * linux-nat.h: Ditto.
11949 * linux-thread-db.c: Ditto.
11950 * machoread.c: Ditto.
11951 * macroexp.c: Ditto.
11952 * macrotab.c: Ditto.
11953 * main.c: Ditto.
11954 * maint.c: Ditto.
11955 * mdebugread.c: Ditto.
11956 * memattr.c: Ditto.
11957 * minsyms.c: Ditto.
11958 * monitor.c: Ditto.
11959 * monitor.h: Ditto.
11960 * objfiles.c: Ditto.
11961 * objfiles.h: Ditto.
11962 * osabi.c: Ditto.
11963 * p-typeprint.c: Ditto.
11964 * p-valprint.c: Ditto.
11965 * parse.c: Ditto.
11966 * printcmd.c: Ditto.
11967 * proc-events.c: Ditto.
11968 * procfs.c: Ditto.
11969 * progspace.c: Ditto.
11970 * progspace.h: Ditto.
11971 * psympriv.h: Ditto.
11972 * psymtab.c: Ditto.
11973 * record.c: Ditto.
11974 * regcache.c: Ditto.
11975 * regcache.h: Ditto.
11976 * remote-fileio.c: Ditto.
11977 * remote.c: Ditto.
11978 * ser-mingw.c: Ditto.
11979 * ser-tcp.c: Ditto.
11980 * ser-unix.c: Ditto.
11981 * serial.c: Ditto.
11982 * serial.h: Ditto.
11983 * solib-frv.c: Ditto.
11984 * solib-irix.c: Ditto.
11985 * solib-osf.c: Ditto.
11986 * solib-pa64.c: Ditto.
11987 * solib-som.c: Ditto.
11988 * solib-sunos.c: Ditto.
11989 * solib-svr4.c: Ditto.
11990 * solib-target.c: Ditto.
11991 * solib.c: Ditto.
11992 * somread.c: Ditto.
11993 * source.c: Ditto.
11994 * stabsread.c: Ditto.
11995 * stabsread.c: Ditto.
11996 * stack.c: Ditto.
11997 * stack.h: Ditto.
11998 * symfile-mem.c: Ditto.
11999 * symfile.c: Ditto.
12000 * symfile.h: Ditto.
12001 * symmisc.c: Ditto.
12002 * symtab.c: Ditto.
12003 * symtab.h: Ditto.
12004 * target-descriptions.c: Ditto.
12005 * target-memory.c: Ditto.
12006 * target.c: Ditto.
12007 * target.h: Ditto.
12008 * terminal.h: Ditto.
12009 * thread.c: Ditto.
12010 * top.c: Ditto.
12011 * tracepoint.c: Ditto.
12012 * tracepoint.h: Ditto.
12013 * ui-file.c: Ditto.
12014 * ui-file.h: Ditto.
12015 * ui-out.h: Ditto.
12016 * user-regs.c: Ditto.
12017 * user-regs.h: Ditto.
12018 * utils.c: Ditto.
12019 * valarith.c: Ditto.
12020 * valops.c: Ditto.
12021 * valprint.c: Ditto.
12022 * valprint.h: Ditto.
12023 * value.c: Ditto.
12024 * varobj.c: Ditto.
12025 * varobj.h: Ditto.
12026 * vec.h: Ditto.
12027 * xcoffread.c: Ditto.
12028 * xcoffsolib.c: Ditto.
12029 * xcoffsolib.h: Ditto.
12030 * xml-syscall.c: Ditto.
12031 * xml-tdesc.c: Ditto.
12032
9a2b4c1b
MS
120332011-01-05 Michael Snyder <msnyder@vmware.com>
12034
12035 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12036 * cli/cli-decode.c: Ditto.
12037 * cli/cli-dump.c: Ditto.
12038 * cli/cli-logging.c: Ditto.
12039 * cli/cli-script.c: Ditto.
12040 * cli/cli-setshow.c: Ditto.
12041 * common/signals.c: Ditto.
12042 * mi/mi-cmd-break.c: Ditto.
12043 * mi/mi-cmd-disas.c: Ditto.
12044 * mi/mi-cmd-stack.c: Ditto.
12045 * mi/mi-cmd-var.c: Ditto.
12046 * mi/mi-cmds.c: Ditto.
12047 * mi/mi-common.h: Ditto.
12048 * mi/mi-console.c: Ditto.
12049 * mi/mi-interp.c: Ditto.
12050 * mi/mi-main.c: Ditto.
12051 * osf-share/cma_attr.c: Ditto.
12052 * osf-share/cma_deb_core.h: Ditto.
12053 * osf-share/cma_debug_client.h: Ditto.
12054 * osf-share/cma_handle.h: Ditto.
12055 * osf-share/cma_mutex.h: Ditto.
12056 * osf-share/cma_stack_int.h: Ditto.
12057 * osf-share/cma_tcb_defs.h: Ditto.
12058 * python/py-auto-load.c: Ditto.
12059 * python/py-breakpoint.c: Ditto.
12060 * python/py-cmd.c: Ditto.
12061 * python/py-frame.c: Ditto.
12062 * python/py-objfile.c: Ditto.
12063 * python/py-param.c: Ditto.
12064 * python/py-progspace.c: Ditto.
12065 * python/py-symbol.c: Ditto.
12066 * python/py-value.c: Ditto.
12067 * python/python-internal.h: Ditto.
12068 * python/python.c: Ditto.
12069 * tui/tui-data.c: Ditto.
12070 * tui/tui-disasm.c: Ditto.
12071 * tui/tui-hooks.c: Ditto.
12072 * tui/tui-io.c: Ditto.
12073 * tui/tui-layout.c: Ditto.
12074 * tui/tui-regs.c: Ditto.
12075 * tui/tui-source.c: Ditto.
12076 * tui/tui-stack.c: Ditto.
12077 * tui/tui-win.c: Ditto.
12078 * tui/tui-windata.c: Ditto.
12079 * tui/tui-winsource.c: Ditto.
12080
44944448
JB
120812011-01-05 Joel Brobecker <brobecker@adacore.com>
12082
12083 * configure.ac, gdb.1: Copyright year update.
12084
ebedcab5
JK
120852011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12086
12087 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12088 this_pc_in_block, morestack_msym and morestack_name. Check for
12089 "__morestack" minimal symbol there.
12090
e5cc9f32
JB
120912011-01-03 Joel Brobecker <brobecker@adacore.com>
12092
12093 * symfile.c (find_sym_fns): Add call to dont_repeat.
12094
7b6bb8da
JB
120952011-01-01 Joel Brobecker <brobecker@adacore.com>
12096
12097 Copyright year update in most files (performed by copyright.sh).
12098
71ce852c
JB
120992011-01-01 Joel Brobecker <brobecker@adacore.com>
12100
12101 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12102
c3c1ebe8 12103For older changes see ChangeLog-2010.
c906108c
SS
12104\f
12105Local Variables:
12106mode: change-log
12107left-margin: 8
12108fill-column: 74
12109version-control: never
57da7796 12110coding: utf-8
c906108c 12111End:
This page took 1.814549 seconds and 4 git commands to generate.